PageSourceSearch

https://confeti.co/assets/index-DbJ9LbdS.js

js confeti.co collected 2026-10-03 20:07:28 UTC 1,344,303 bytes, 248 lines download raw bytes

vendor: 5,960 bytes, lines 1-9
1var VE=Object.defineProperty;var HE=(e,t,n)=>t in e?VE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Fe=(e,t,n)=>HE(e,typeof t!="symbol"?t+"":t,n);function WE(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const r=Object.getOwnPropertyDescriptor(i,s);r&&Object.defineProperty(e,s,r.get?r:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(s){if(s.ep)return;s.ep=!0;const r=n(s);fetch(s.href,r)}})();function qS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Am={exports:{}},Ml={},Pm={exports:{}},Ue={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var $w;function qE(){if($w)return Ue;$w=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),r=Symbol.for("react.provider"),o=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.iterator;function x(F){return F===null||typeof F!="object"?null:(F=m&&F[m]||F["@@iterator"],typeof F=="function"?F:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,k={};function w(F,Y,xe){this.props=F,this.context=Y,this.refs=k,this.updater=xe||y}w.prototype.isReactComponent={},w.prototype.setState=function(F,Y){if(typeof F!="object"&&typeof F!="function"&&F!=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,F,Y,"setState")},w.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function S(){}S.prototype=w.prototype;function j(F,Y,xe){this.props=F,this.context=Y,this.refs=k,this.updater=xe||y}var N=j.prototype=new S;N.constructor=j,b(N,w.prototype),N.isPureReactComponent=!0;var E=Array.isArray,T=Object.prototype.hasOwnProperty,L={current:null},M={key:!0,ref:!0,__self:!0,__source:!0};function A(F,Y,xe){var ge,te={},he=null,He=null;if(Y!=null)for(ge in Y.ref!==void 0&&(He=Y.ref),Y.key!==void 0&&(he=""+Y.key),Y)T.call(Y,ge)&&!M.hasOwnProperty(ge)&&(te[ge]=Y[ge]);var Ee=arguments.length-2;if(Ee===1)te.children=xe;else if(1<Ee){for(var Pe=Array(Ee),pt=0;pt<Ee;pt++)Pe[pt]=arguments[pt+2];te.children=Pe}if(F&&F.defaultProps)for(ge in Ee=F.defaultProps,Ee)te[ge]===void 0&&(te[ge]=Ee[ge]);return{$$typeof:e,type:F,key:he,ref:He,props:te,_owner:L.current}}function O(F,Y){return{$$typeof:e,type:F.type,key:Y,ref:F.ref,props:F.props,_owner:F._owner}}function G(F){return typeof F=="object"&&F!==null&&F.$$typeof===e}function X(F){var Y={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(xe){return Y[xe]})}var ee=/\/+/g;function le(F,Y){return typeof F=="object"&&F!==null&&F.key!=null?X(""+F.key):Y.toString(36)}function re(F,Y,xe,ge,te){var he=typeof F;(he==="undefined"||he==="boolean")&&(F=null);var He=!1;if(F===null)He=!0;else switch(he){case"string":case"number":He=!0;break;case"object":switch(F.$$typeof){case e:case t:He=!0}}if(He)return He=F,te=te(He),F=ge===""?"."+le(He,0):ge,E(te)?(xe="",F!=null&&(xe=F.replace(ee,"$&/")+"/"),re(te,Y,xe,"",function(pt){return pt})):te!=null&&(G(te)&&(te=O(te,xe+(!te.key||He&&He.key===te.key?"":(""+te.key).replace(ee,"$&/")+"/")+F)),Y.push(te)),1;if(He=0,ge=ge===""?".":ge+":",E(F))for(var Ee=0;Ee<F.length;Ee++){he=F[Ee];var Pe=ge+le(he,Ee);He+=re(he,Y,xe,Pe,te)}else if(Pe=x(F),typeof Pe=="function")for(F=Pe.call(F),Ee=0;!(he=F.next()).done;)he=he.value,Pe=ge+le(he,Ee++),He+=re(he,Y,xe,Pe,te);else if(he==="object")throw Y=String(F),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.");return He}function ne(F,Y,xe){if(F==null)return F;var ge=[],te=0;return re(F,ge,"","",function(he){return Y.call(xe,he,te++)}),ge}function Z(F){if(F._status===-1){var Y=F._result;Y=Y(),Y.then(function(xe){(F._status===0||F._status===-1)&&(F._status=1,F._result=xe)},function(xe){(F._status===0||F._status===-1)&&(F._status=2,F._result=xe)}),F._status===-1&&(F._status=0,F._result=Y)}if(F._status===1)return F._result.default;throw F._result}var ce={current:null},W={transition:null},J={ReactCurrentDispatcher:ce,ReactCurrentBatchConfig:W,ReactCurrentOwner:L};function H(){throw Error("act(...) is not supported in production builds of React.")}return Ue.Children={map:ne,forEach:function(F,Y,xe){ne(F,function(){Y.apply(this,arguments)},xe)},count:function(F){var Y=0;return ne(F,function(){Y++}),Y},toArray:function(F){return ne(F,function(Y){return Y})||[]},only:function(F){if(!G(F))throw Error("React.Children.only expected to receive a single React element child.");return F}},Ue.Component=w,Ue.Fragment=n,Ue.Profiler=s,Ue.PureComponent=j,Ue.StrictMode=i,Ue.Suspense=u,Ue.__SECRET_INT
vendor: 5,455 bytes, lines 9-25
9ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J,Ue.act=H,Ue.cloneElement=function(F,Y,xe){if(F==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+F+".");var ge=b({},F.props),te=F.key,he=F.ref,He=F._owner;if(Y!=null){if(Y.ref!==void 0&&(he=Y.ref,He=L.current),Y.key!==void 0&&(te=""+Y.key),F.type&&F.type.defaultProps)var Ee=F.type.defaultProps;for(Pe in Y)T.call(Y,Pe)&&!M.hasOwnProperty(Pe)&&(ge[Pe]=Y[Pe]===void 0&&Ee!==void 0?Ee[Pe]:Y[Pe])}var Pe=arguments.length-2;if(Pe===1)ge.children=xe;else if(1<Pe){Ee=Array(Pe);for(var pt=0;pt<Pe;pt++)Ee[pt]=arguments[pt+2];ge.children=Ee}return{$$typeof:e,type:F.type,key:te,ref:he,props:ge,_owner:He}},Ue.createContext=function(F){return F={$$typeof:o,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},F.Provider={$$typeof:r,_context:F},F.Consumer=F},Ue.createElement=A,Ue.createFactory=function(F){var Y=A.bind(null,F);return Y.type=F,Y},Ue.createRef=function(){return{current:null}},Ue.forwardRef=function(F){return{$$typeof:c,render:F}},Ue.isValidElement=G,Ue.lazy=function(F){return{$$typeof:f,_payload:{_status:-1,_result:F},_init:Z}},Ue.memo=function(F,Y){return{$$typeof:h,type:F,compare:Y===void 0?null:Y}},Ue.startTransition=function(F){var Y=W.transition;W.transition={};try{F()}finally{W.transition=Y}},Ue.unstable_act=H,Ue.useCallback=function(F,Y){return ce.current.useCallback(F,Y)},Ue.useContext=function(F){return ce.current.useContext(F)},Ue.useDebugValue=function(){},Ue.useDeferredValue=function(F){return ce.current.useDeferredValue(F)},Ue.useEffect=function(F,Y){return ce.current.useEffect(F,Y)},Ue.useId=function(){return ce.current.useId()},Ue.useImperativeHandle=function(F,Y,xe){return ce.current.useImperativeHandle(F,Y,xe)},Ue.useInsertionEffect=function(F,Y){return ce.current.useInsertionEffect(F,Y)},Ue.useLayoutEffect=function(F,Y){return ce.current.useLayoutEffect(F,Y)},Ue.useMemo=function(F,Y){return ce.current.useMemo(F,Y)},Ue.useReducer=function(F,Y,xe){return ce.current.useReducer(F,Y,xe)},Ue.useRef=function(F){return ce.current.useRef(F)},Ue.useState=function(F){return ce.current.useState(F)},Ue.useSyncExternalStore=function(F,Y,xe){return ce.current.useSyncExternalStore(F,Y,xe)},Ue.useTransition=function(){return ce.current.useTransition()},Ue.version="18.3.1",Ue}var Bw;function kv(){return Bw||(Bw=1,Pm.exports=qE()),Pm.exports}/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var zw;function UE(){if(zw)return Ml;zw=1;var e=kv(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,r={key:!0,ref:!0,__self:!0,__source:!0};function o(c,u,h){var f,m={},x=null,y=null;h!==void 0&&(x=""+h),u.key!==void 0&&(x=""+u.key),u.ref!==void 0&&(y=u.ref);for(f in u)i.call(u,f)&&!r.hasOwnProperty(f)&&(m[f]=u[f]);if(c&&c.defaultProps)for(f in u=c.defaultProps,u)m[f]===void 0&&(m[f]=u[f]);return{$$typeof:t,type:c,key:x,ref:y,props:m,_owner:s.current}}return Ml.Fragment=n,Ml.jsx=o,Ml.jsxs=o,Ml}var Vw;function GE(){return Vw||(Vw=1,Am.exports=UE()),Am.exports}var d=GE(),P=kv();const US=qS(P),YE=WE({__proto__:null,default:US},[P]);var Tu={},Im={exports:{}},Tn={},Rm={exports:{}},Mm={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var Hw;function KE(){return Hw||(Hw=1,function(e){function t(W,J){var H=W.length;W.push(J);e:for(;0<H;){var F=H-1>>>1,Y=W[F];if(0<s(Y,J))W[F]=J,W[H]=Y,H=F;else break e}}function n(W){return W.length===0?null:W[0]}function i(W){if(W.length===0)return null;var J=W[0],H=W.pop();if(H!==J){W[0]=H;e:for(var F=0,Y=W.length,xe=Y>>>1;F<xe;){var ge=2*(F+1)-1,te=W[ge],he=ge+1,He=W[he];if(0>s(te,H))he<Y&&0>s(He,te)?(W[F]=He,W[he]=H,F=he):(W[F]=te,W[ge]=H,F=ge);else if(he<Y&&0>s(He,H))W[F]=He,W[he]=H,F=he;else break e}}return J}function s(W,J){var H=W.sortIndex-J.sortIndex;return H!==0?H:W.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;e.unstable_now=function(){return r.now()}}else{var o=Date,c=o.now();e.unstable_now=function(){return o.now()-c}}var u=[],h=[],f=1,m=null,x=3,y=!1,b=!1,k=!1,w=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(W){for(var J=n(h);J!==null;){if(J.callback===null)i(h);else if(J.startTime<=W)i(h),J.sortIndex=J.expirationTime,t(u,J);else break;J=n(h)}}function E(W){if(k=!1,N(W),!b)if(n(u)!==null)b=!0,Z(T);else{var J=n(h);J!==null&&ce(E,J.startTime-W)}}function T(W,J){b=!1,k&&(k=!1,S(A),A=-1),y=!0;var H=x;try{for(N(J),m=n(u);m!==null&&(!(m.expirationTime>J)||W&&!X());){var F=m.callback;if(typeof F=="function"){m.callback=null,x=m.priorityLevel;var Y=F(m.expirationTime<=J);J=e.unstable_now(),typeof Y=="function"?m.callback=Y:m===n(u)&&i(u),N(J)}else i(u);m=n(u)}if(m!==null)var xe=!0;
vendor: 4,504 bytes, lines 25-33
25else{var ge=n(h);ge!==null&&ce(E,ge.startTime-J),xe=!1}return xe}finally{m=null,x=H,y=!1}}var L=!1,M=null,A=-1,O=5,G=-1;function X(){return!(e.unstable_now()-G<O)}function ee(){if(M!==null){var W=e.unstable_now();G=W;var J=!0;try{J=M(!0,W)}finally{J?le():(L=!1,M=null)}}else L=!1}var le;if(typeof j=="function")le=function(){j(ee)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,ne=re.port2;re.port1.onmessage=ee,le=function(){ne.postMessage(null)}}else le=function(){w(ee,0)};function Z(W){M=W,L||(L=!0,le())}function ce(W,J){A=w(function(){W(e.unstable_now())},J)}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(W){W.callback=null},e.unstable_continueExecution=function(){b||y||(b=!0,Z(T))},e.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<W?Math.floor(1e3/W):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(W){switch(x){case 1:case 2:case 3:var J=3;break;default:J=x}var H=x;x=J;try{return W()}finally{x=H}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(W,J){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var H=x;x=W;try{return J()}finally{x=H}},e.unstable_scheduleCallback=function(W,J,H){var F=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?F+H:F):H=F,W){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=H+Y,W={id:f++,callback:J,priorityLevel:W,startTime:H,expirationTime:Y,sortIndex:-1},H>F?(W.sortIndex=H,t(h,W),n(u)===null&&W===n(h)&&(k?(S(A),A=-1):k=!0,ce(E,H-F))):(W.sortIndex=Y,t(u,W),b||y||(b=!0,Z(T))),W},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(W){var J=x;return function(){var H=x;x=J;try{return W.apply(this,arguments)}finally{x=H}}}}(Mm)),Mm}var Ww;function QE(){return Ww||(Ww=1,Rm.exports=KE()),Rm.exports}/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var qw;function XE(){if(qw)return Tn;qw=1;var e=kv(),t=QE();function n(a){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+a,p=1;p<arguments.length;p++)l+="&args[]="+encodeURIComponent(arguments[p]);return"Minified React error #"+a+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function r(a,l){o(a,l),o(a+"Capture",l)}function o(a,l){for(s[a]=l,a=0;a<l.length;a++)i.add(l[a])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,h=/^[: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]*$/,f={},m={};function x(a){return u.call(m,a)?!0:u.call(f,a)?!1:h.test(a)?m[a]=!0:(f[a]=!0,!1)}function y(a,l,p,g){if(p!==null&&p.type===0)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":return g?!1:p!==null?!p.acceptsBooleans:(a=a.toLowerCase().slice(0,5),a!=="data-"&&a!=="aria-");default:return!1}}function b(a,l,p,g){if(l===null||typeof l>"u"||y(a,l,p,g))return!0;if(g)return!1;if(p!==null)switch(p.type){case 3:return!l;case 4:return l===!1;case 5:return isNaN(l);case 6:return isNaN(l)||1>l}return!1}function k(a,l,p,g,v,_,C){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=g,this.attributeNamespace=v,this.mustUseProperty=p,this.propertyName=a,this.type=l,this.sanitizeURL=_,this.removeEmptyString=C}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){w[a]=new k(a,0,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEac
vendor: 9,253 bytes, lines 33-37
33h(function(a){var l=a[0];w[l]=new k(l,1,!1,a[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){w[a]=new k(a,2,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){w[a]=new k(a,2,!1,a,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(a){w[a]=new k(a,3,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){w[a]=new k(a,3,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){w[a]=new k(a,4,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){w[a]=new k(a,6,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){w[a]=new k(a,5,!1,a.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function j(a){return a[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(a){var l=a.replace(S,j);w[l]=new k(l,1,!1,a,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var l=a.replace(S,j);w[l]=new k(l,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var l=a.replace(S,j);w[l]=new k(l,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){w[a]=new k(a,1,!1,a.toLowerCase(),null,!1,!1)}),w.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){w[a]=new k(a,1,!1,a.toLowerCase(),null,!0,!0)});function N(a,l,p,g){var v=w.hasOwnProperty(l)?w[l]:null;(v!==null?v.type!==0:g||!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(b(l,p,v,g)&&(p=null),g||v===null?x(l)&&(p===null?a.removeAttribute(l):a.setAttribute(l,""+p)):v.mustUseProperty?a[v.propertyName]=p===null?v.type===3?!1:"":p:(l=v.attributeName,g=v.attributeNamespace,p===null?a.removeAttribute(l):(v=v.type,p=v===3||v===4&&p===!0?"":""+p,g?a.setAttributeNS(g,l,p):a.setAttribute(l,p))))}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=Symbol.for("react.element"),L=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),G=Symbol.for("react.provider"),X=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),re=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),ce=Symbol.for("react.offscreen"),W=Symbol.iterator;function J(a){return a===null||typeof a!="object"?null:(a=W&&a[W]||a["@@iterator"],typeof a=="function"?a:null)}var H=Object.assign,F;function Y(a){if(F===void 0)try{throw Error()}catch(p){var l=p.stack.trim().match(/\n( *(at )?)/);F=l&&l[1]||""}return`
34`+F+a}var xe=!1;function ge(a,l){if(!a||xe)return"";xe=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(l)if(l=function(){throw Error()},Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(q){var g=q}Reflect.construct(a,[],l)}else{try{l.call()}catch(q){g=q}a.call(l.prototype)}else{try{throw Error()}catch(q){g=q}a()}}catch(q){if(q&&g&&typeof q.stack=="string"){for(var v=q.stack.split(`
35`),_=g.stack.split(`
36`),C=v.length-1,I=_.length-1;1<=C&&0<=I&&v[C]!==_[I];)I--;for(;1<=C&&0<=I;C--,I--)if(v[C]!==_[I]){if(C!==1||I!==1)do if(C--,I--,0>I||v[C]!==_[I]){var D=`
37`+v[C].replace(" at new "," at ");return a.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",a.displayName)),D}while(1<=C&&0<=I);break}}}finally{xe=!1,Error.prepareStackTrace=p}return(a=a?a.displayName||a.name:"")?Y(a):""}function te(a){switch(a.tag){case 5:return Y(a.type);case 16:return Y("Lazy");case 13:return Y("Suspense");case 19:return Y("SuspenseList");case 0:case 2:case 15:return a=ge(a.type,!1),a;case 11:return a=ge(a.type.render,!1),a;case 1:return a=ge(a.type,!0),a;default:return""}}function he(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case M:return"Fragment";case L:return"Portal";case O:return"Profiler";case A:return"StrictMode";case le:return"Suspense";case re:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case X:return(a.displayName||"Context")+".Consumer";case G:return(a._context.displayName||"Context")+".Provider";case ee:var l=a.render;return a=a.displayName,a||(a=l.displayName||l.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case ne:return l=a.displayName||null,l!==null?l:he(a.type)||"Memo";case Z:l=a._payload,a=a._init;try{return he(a(l))}catch{}}return null}function He(a){var l=a.type;switch(a.tag){case 24:return"Cache";case 9:return(l.displayName||"Context")+".Consumer";case 10:return(l._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=l.render,a=a.displayName||a.name||"",l.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return l;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return he(l);case 8:return l===A?"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 l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l}return null}function Ee(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Pe(a){var l=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function pt(a){var l=Pe(a)?"checked":"value",p=Object.getOwnPropertyDescriptor(a.constructor.prototype,l),g=""+a[l];if(!a.hasOwnProperty(l)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var v=p.get,_=p.set;return Object.defineProperty(a,l,{configurable:!0,get:function(){return v.call(this)},set:function(C){g=""+C,_.call(this,C)}}),Object.defineProperty(a,l,{enumerable:p.enumerable}),{getValue:function(){return g},setValue:function(C){g=""+C},stopTracking:function(){a._valueTracker=null,delete a[l]}}}}function oi(a){a._valueTracker||(a._valueTracker=pt(a))}function cn(a){if(!a)return!1;var l=a._valueTracker;if(!l)return!0;var p=l.getValue(),g="";return a&&(g=Pe(a)?a.checked?"true":"false":a.value),a=g,a!==p?(l.setValue(a),!0):!1}function Ni(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function Ti(a,l){var p=l.checked;return H({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??a._wrapperState.initialChecked})}function yd(a,l){var p=l.defaultValue==null?"":l.defaultValue,g=l.checked!=null?l.checked:l.defaultChecked;p=Ee(l.value!=null?l.value:p),a._wrapperState={initialChecked:g,initialValue:p,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function li(a,l){l=l.checked,l!=null&&N(a,"checked",l,!1)}function Yo(a,l){li(a,l);var p=Ee(l.value),g=l.type;if(p!=null)g==="number"?(p===0&&a.value===""||a.value!=p)&&(a.value=""+p):a.value!==""+p&&(a.value=""+p);else if(g==="submit"||g==="reset"){a.removeAttribute("value");return}l.hasOwnProperty("value")?Or(a,l.type,p):l.hasOwnProperty("defaultValue")&&Or(a,l.type,Ee(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(a.defaultChecked=!!l.defaultChecked)}function Ko(a,l,p){if(l.hasOwnProperty("value")||l.hasOwnProperty("defaultValue")){var g=l.type;if(!(g!=="submit"&&g!=="reset"||l.value!==void 0&&l.value!==null))return;l=""+a._wrapperState.initialValue,p||l===a.value||(a.value=l),a.defaultValue=l}p=a.name,p!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,p!==""&&(a.name=p)}function Or(a,l,p){(l!=="number"||Ni(a.ownerDocument)!==a)&&(p==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+p&&(a.defaultValue=""+p)
vendor: 5,116 bytes, line 37
37)}var Ps=Array.isArray;function es(a,l,p,g){if(a=a.options,l){l={};for(var v=0;v<p.length;v++)l["$"+p[v]]=!0;for(p=0;p<a.length;p++)v=l.hasOwnProperty("$"+a[p].value),a[p].selected!==v&&(a[p].selected=v),v&&g&&(a[p].defaultSelected=!0)}else{for(p=""+Ee(p),l=null,v=0;v<a.length;v++){if(a[v].value===p){a[v].selected=!0,g&&(a[v].defaultSelected=!0);return}l!==null||a[v].disabled||(l=a[v])}l!==null&&(l.selected=!0)}}function Ta(a,l){if(l.dangerouslySetInnerHTML!=null)throw Error(n(91));return H({},l,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function Ea(a,l){var p=l.value;if(p==null){if(p=l.children,l=l.defaultValue,p!=null){if(l!=null)throw Error(n(92));if(Ps(p)){if(1<p.length)throw Error(n(93));p=p[0]}l=p}l==null&&(l=""),p=l}a._wrapperState={initialValue:Ee(p)}}function Q0(a,l){var p=Ee(l.value),g=Ee(l.defaultValue);p!=null&&(p=""+p,p!==a.value&&(a.value=p),l.defaultValue==null&&a.defaultValue!==p&&(a.defaultValue=p)),g!=null&&(a.defaultValue=""+g)}function X0(a){var l=a.textContent;l===a._wrapperState.initialValue&&l!==""&&l!==null&&(a.value=l)}function Z0(a){switch(a){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 Bp(a,l){return a==null||a==="http://www.w3.org/1999/xhtml"?Z0(l):a==="http://www.w3.org/2000/svg"&&l==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var bd,J0=function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(l,p,g,v){MSApp.execUnsafeLocalFunction(function(){return a(l,p,g,v)})}:a}(function(a,l){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=l;else{for(bd=bd||document.createElement("div"),bd.innerHTML="<svg>"+l.valueOf().toString()+"</svg>",l=bd.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}});function Qo(a,l){if(l){var p=a.firstChild;if(p&&p===a.lastChild&&p.nodeType===3){p.nodeValue=l;return}}a.textContent=l}var Xo={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},U4=["Webkit","ms","Moz","O"];Object.keys(Xo).forEach(function(a){U4.forEach(function(l){l=l+a.charAt(0).toUpperCase()+a.substring(1),Xo[l]=Xo[a]})});function ey(a,l,p){return l==null||typeof l=="boolean"||l===""?"":p||typeof l!="number"||l===0||Xo.hasOwnProperty(a)&&Xo[a]?(""+l).trim():l+"px"}function ty(a,l){a=a.style;for(var p in l)if(l.hasOwnProperty(p)){var g=p.indexOf("--")===0,v=ey(p,l[p],g);p==="float"&&(p="cssFloat"),g?a.setProperty(p,v):a[p]=v}}var G4=H({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 zp(a,l){if(l){if(G4[a]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(n(137,a));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(n(60));if(typeof l.dangerouslySetInnerHTML!="object"||!("__html"in l.dangerouslySetInnerHTML))throw Error(n(61))}if(l.style!=null&&typeof l.style!="object")throw Error(n(62))}}function Vp(a,l){if(a.indexOf("-")===-1)return typeof l.is=="string";switch(a){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 Hp=null;function Wp(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var qp=null,Aa=null,Pa=null;function ny(a){if(a=yl(a)){if(typeof qp!="function")throw Error(n(280));var l=a.stateNode;l&&(l=Hd(l),qp(a.stateNode,a.type,l))}}function iy(a){Aa?Pa?Pa.push(a):Pa=[a]:Aa=a}function sy(){if(Aa){var a=Aa,l=Pa;if(Pa=Aa=null,ny(a),l)for(a=0;a<l.length;a++)ny(l[a])}}function ry(a,l){return a(l)}function ay(){}var Up=!1;function oy(a,l,p){if(Up)return a(l,p);Up=!0;try{return ry(a,l,p)}finally{Up=!1,(Aa!==null||Pa!==null)&&(ay(),sy())}}function Zo(a,l){var p=a.stateNode;if(p===null)return null;var g=Hd(p);if(g===null)return null;p=g[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(a=a.type,g=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!g;break e;default:a=!1}if(a)return null;if(p&&typeof p!="function")throw Error(n(231,l,typeof p));return p}var Gp=!1;if(c)try{var Jo={};Object.defineProperty(Jo,"passive",{get:function(){Gp=!0}
vendor: 8,500 bytes, line 37
37}),window.addEventListener("test",Jo,Jo),window.removeEventListener("test",Jo,Jo)}catch{Gp=!1}function Y4(a,l,p,g,v,_,C,I,D){var q=Array.prototype.slice.call(arguments,3);try{l.apply(p,q)}catch(se){this.onError(se)}}var el=!1,wd=null,_d=!1,Yp=null,K4={onError:function(a){el=!0,wd=a}};function Q4(a,l,p,g,v,_,C,I,D){el=!1,wd=null,Y4.apply(K4,arguments)}function X4(a,l,p,g,v,_,C,I,D){if(Q4.apply(this,arguments),el){if(el){var q=wd;el=!1,wd=null}else throw Error(n(198));_d||(_d=!0,Yp=q)}}function Lr(a){var l=a,p=a;if(a.alternate)for(;l.return;)l=l.return;else{a=l;do l=a,(l.flags&4098)!==0&&(p=l.return),a=l.return;while(a)}return l.tag===3?p:null}function ly(a){if(a.tag===13){var l=a.memoizedState;if(l===null&&(a=a.alternate,a!==null&&(l=a.memoizedState)),l!==null)return l.dehydrated}return null}function cy(a){if(Lr(a)!==a)throw Error(n(188))}function Z4(a){var l=a.alternate;if(!l){if(l=Lr(a),l===null)throw Error(n(188));return l!==a?null:a}for(var p=a,g=l;;){var v=p.return;if(v===null)break;var _=v.alternate;if(_===null){if(g=v.return,g!==null){p=g;continue}break}if(v.child===_.child){for(_=v.child;_;){if(_===p)return cy(v),a;if(_===g)return cy(v),l;_=_.sibling}throw Error(n(188))}if(p.return!==g.return)p=v,g=_;else{for(var C=!1,I=v.child;I;){if(I===p){C=!0,p=v,g=_;break}if(I===g){C=!0,g=v,p=_;break}I=I.sibling}if(!C){for(I=_.child;I;){if(I===p){C=!0,p=_,g=v;break}if(I===g){C=!0,g=_,p=v;break}I=I.sibling}if(!C)throw Error(n(189))}}if(p.alternate!==g)throw Error(n(190))}if(p.tag!==3)throw Error(n(188));return p.stateNode.current===p?a:l}function dy(a){return a=Z4(a),a!==null?uy(a):null}function uy(a){if(a.tag===5||a.tag===6)return a;for(a=a.child;a!==null;){var l=uy(a);if(l!==null)return l;a=a.sibling}return null}var hy=t.unstable_scheduleCallback,py=t.unstable_cancelCallback,J4=t.unstable_shouldYield,eT=t.unstable_requestPaint,At=t.unstable_now,tT=t.unstable_getCurrentPriorityLevel,Kp=t.unstable_ImmediatePriority,fy=t.unstable_UserBlockingPriority,kd=t.unstable_NormalPriority,nT=t.unstable_LowPriority,my=t.unstable_IdlePriority,Sd=null,Ei=null;function iT(a){if(Ei&&typeof Ei.onCommitFiberRoot=="function")try{Ei.onCommitFiberRoot(Sd,a,void 0,(a.current.flags&128)===128)}catch{}}var ci=Math.clz32?Math.clz32:aT,sT=Math.log,rT=Math.LN2;function aT(a){return a>>>=0,a===0?32:31-(sT(a)/rT|0)|0}var jd=64,Cd=4194304;function tl(a){switch(a&-a){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 a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function Nd(a,l){var p=a.pendingLanes;if(p===0)return 0;var g=0,v=a.suspendedLanes,_=a.pingedLanes,C=p&268435455;if(C!==0){var I=C&~v;I!==0?g=tl(I):(_&=C,_!==0&&(g=tl(_)))}else C=p&~v,C!==0?g=tl(C):_!==0&&(g=tl(_));if(g===0)return 0;if(l!==0&&l!==g&&(l&v)===0&&(v=g&-g,_=l&-l,v>=_||v===16&&(_&4194240)!==0))return l;if((g&4)!==0&&(g|=p&16),l=a.entangledLanes,l!==0)for(a=a.entanglements,l&=g;0<l;)p=31-ci(l),v=1<<p,g|=a[p],l&=~v;return g}function oT(a,l){switch(a){case 1:case 2:case 4:return l+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 l+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 lT(a,l){for(var p=a.suspendedLanes,g=a.pingedLanes,v=a.expirationTimes,_=a.pendingLanes;0<_;){var C=31-ci(_),I=1<<C,D=v[C];D===-1?((I&p)===0||(I&g)!==0)&&(v[C]=oT(I,l)):D<=l&&(a.expiredLanes|=I),_&=~I}}function Qp(a){return a=a.pendingLanes&-1073741825,a!==0?a:a&1073741824?1073741824:0}function gy(){var a=jd;return jd<<=1,(jd&4194240)===0&&(jd=64),a}function Xp(a){for(var l=[],p=0;31>p;p++)l.push(a);return l}function nl(a,l,p){a.pendingLanes|=l,l!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,l=31-ci(l),a[l]=p}function cT(a,l){var p=a.pendingLanes&~l;a.pendingLanes=l,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=l,a.mutableReadLanes&=l,a.entangledLanes&=l,l=a.entanglements;var g=a.eventTimes;for(a=a.expirationTimes;0<p;){var v=31-ci(p),_=1<<v;l[v]=0,g[v]=-1,a[v]=-1,p&=~_}}function Zp(a,l){var p=a.entangledLanes|=l;for(a=a.entanglements;p;){var g=31-ci(p),v=1<<g;v&l|a[g]&l&&(a[g]|=l),p&=~v}}var rt=0;function xy(a){return a&=-a,1<a?4<a?(a&268435455)!==0?16:536870912:4:1}var vy,Jp,yy,by,wy,ef=!1,Td=[],Is=null,Rs=null,Ms=null,il=new Map,sl=new Map,Os=[],dT="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 _y(a,l){switch(a){case"focusin":case"focusout":Is=null;break;case"dragenter":case"dragleave":Rs=null;break;case"mouseover":case"mouseout":Ms=null;break;case"pointerover":case"pointerout":il.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":sl.delete(l.pointerId)}}function rl(a,l,p,g,v,_){return a===null||a.nativeEvent!==_?(a={blockedOn:l,domEventName:p,eventSystemFlags:g,nativeEvent:_,targetContainers:[v]},l!==null&&(l=yl(l),l!==null&&Jp(l)),a):(a.eventSystemFlags|=g,l=a.targetContainers,v!==null&&l.indexOf(v)===-1&&l.push(v),a)}function uT(a,l,p,g,v){switch(l){case"focusin":return Is=rl(Is,a,l,p,g,v),!0;case"dragenter":return Rs=rl(Rs,a,l,p,g,v),!0;case"mouseover":return Ms=rl(Ms,a,l,p,g,v),!0;case"pointerover":var _=v.pointerId;return il.set(_,rl(il.get(_)||null,a,l,p,g,v)),!0;case"gotpointercapture":return _=v.pointerId,sl.set(_,rl(sl.get(_)||null,a,l,p,g,v)),!0}return!1}function ky(a){var l=Dr(a.target);if(l!==null){var p=Lr(l);if(p!==null){if(l=p.tag,l===13){if(l=ly(p),l!==null){a.blockedOn=l,wy(a.priority,function(){yy(p)});return}}else if(l===3&&p.stateNode.current.memoizedState.isDehydrated){a.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Ed(a){if(a.blockedOn!==null)return!1;for(var l=a.targetContainers;0<l.length;){var p=nf(a.domEventName,a.eventSystemFlags,l[0],a.nativeEvent);if(p===null){p=a.nativeEvent;var g=new p.constructor(p.type,p);Hp=g,p.target.dispatchEvent(g),Hp=null}else return l=yl(p),l!==null&&Jp(l),a.blockedOn=p,!1;l.shift()}return!0}function Sy(a,l,p){Ed(a)&&p.delete(l)}function hT(){ef=!1,Is!==null&&Ed(Is)&&(Is=null),Rs!==null&&Ed(Rs)&&(Rs=null),Ms!==null&&Ed(Ms)&&(Ms=null),il.forEach(Sy),sl.forEach(Sy)}function al(a,l){a.blockedOn===l&&(a.blockedOn=null,ef||(ef=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,hT)))}function ol(a){function l(v){return al(v,a)}if(0<Td.length){al(Td[0],a);for(var p=1;p<Td.length;p++){var g=Td[p];g.blockedOn===a&&(g.blockedOn=null)}}for(Is!==null&&al(Is,a),Rs!==null&&al(Rs,a),Ms!==null&&al(Ms,a),il.forEach(l),sl.forEach(l),p=0;p<Os.length;p++)g=Os[p],g.blockedOn===a&&(g.blockedOn=null);for(;0<Os.length&&(p=Os[0],p.blockedOn===null);)ky(p),p.blockedOn===null&&Os.shift()}var Ia=E.ReactCurrentBatchConfig,Ad=!0;function pT(a,l,p,g){var v=rt,_=Ia.transition;Ia.transition=null;try{rt=1,tf(a,l,p,g)}finally{rt=v,Ia.transition=_}}function fT(a,l,p,g){var v=rt,_=Ia.transition;Ia.transition=null;try{rt=4,tf(a,l,p,g)}finally{rt=v,Ia.transition=_}}function tf(a,l,p,g){if(Ad){var v=nf(a,l,p,g);if(v===null)bf(a,l,g,Pd,p),_y(a,g);else if(uT(v,a,l,p,g))g.stopPropagation();else if(_y(a,g),l&4&&-1<dT.indexOf(a)){for(;v!==null;){var _=yl(v);if(_!==null&&vy(_),_=nf(a,l,p,g),_===null&&bf(a,l,g,Pd,p),_===v)break;v=_}v!==null&&g.stopPropagation()}else bf(a,l,g,null,p)}}var Pd=null;function nf(a,l,p,g){if(Pd=null,a=Wp(g),a=Dr(a),a!==null)if(l=Lr(a),l===null)a=null;else if(p=l.tag,p===13){if(a=ly(l),a!==null)return a;a=null}else if(p===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;a=null}else l!==a&&(a=null);return Pd=a,null}function jy(a){switch(a){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"invali
37d":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(tT()){case Kp:return 1;case fy:return 4;case kd:case nT:return 16;case my:return 536870912;default:return 16}default:return 16}}var Ls=null,sf=null,Id=null;function Cy(){if(Id)return Id;var a,l=sf,p=l.length,g,v="value"in Ls?Ls.value:Ls.textContent,_=v.length;for(a=0;a<p&&l[a]===v[a];a++);var C=p-a;for(g=1;g<=C&&l[p-g]===v[_-g];g++);return Id=v.slice(a,1<g?1-g:void 0)}function Rd(a){var l=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&l===13&&(a=13)):a=l,a===10&&(a=13),32<=a||a===13?a:0}function Md(){return!0}function Ny(){return!1}function Ln(a){function l(p,g,v,_,C){this._reactName=p,this._targetInst=v,this.type=g,this.nativeEvent=_,this.target=C,this.currentTarget=null;for(var I in a)a.hasOwnProperty(I)&&(p=a[I],this[I]=p?p(_):_[I]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?Md:Ny,this.isPropagationStopped=Ny,this}return H(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=Md)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=Md)},persist:function(){},isPersistent:Md}),l}var Ra={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rf=Ln(Ra),ll=H({},Ra,{view:0,detail:0}),mT=Ln(ll),af,of,cl,Od=H({},ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cf,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==cl&&(cl&&a.type==="mousemove"?(af=a.screenX-cl.screenX,of=a.screenY-cl.screenY):of=af=0,cl=a),af)},movementY:function(a){return"movementY"in a?a.movementY:of}}),Ty=Ln(Od),gT=H({},Od,{dataTransfer:0}),xT=Ln(gT),vT=H({},ll,{relatedTarget:0}),lf=Ln(vT),yT=H({},Ra,{animationName:0,elapsedTime:0,pseudoElement:0}),bT=Ln(yT),wT=H({},Ra,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),_T=Ln(wT),kT=H({},Ra,{data:0}),Ey=Ln(kT),ST={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jT={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"},CT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function NT(a){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(a):(a=CT[a])?!!l[a]:!1}function cf(){return NT}var TT=H({},ll,{key:function(a){if(a.key){var l=ST[a.key]||a.key;if(l!=="Unidentified")return l}
vendor: 18,887 bytes, lines 37-38
37return a.type==="keypress"?(a=Rd(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?jT[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cf,charCode:function(a){return a.type==="keypress"?Rd(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Rd(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),ET=Ln(TT),AT=H({},Od,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ay=Ln(AT),PT=H({},ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cf}),IT=Ln(PT),RT=H({},Ra,{propertyName:0,elapsedTime:0,pseudoElement:0}),MT=Ln(RT),OT=H({},Od,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),LT=Ln(OT),DT=[9,13,27,32],df=c&&"CompositionEvent"in window,dl=null;c&&"documentMode"in document&&(dl=document.documentMode);var FT=c&&"TextEvent"in window&&!dl,Py=c&&(!df||dl&&8<dl&&11>=dl),Iy=" ",Ry=!1;function My(a,l){switch(a){case"keyup":return DT.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oy(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Ma=!1;function $T(a,l){switch(a){case"compositionend":return Oy(l);case"keypress":return l.which!==32?null:(Ry=!0,Iy);case"textInput":return a=l.data,a===Iy&&Ry?null:a;default:return null}}function BT(a,l){if(Ma)return a==="compositionend"||!df&&My(a,l)?(a=Cy(),Id=sf=Ls=null,Ma=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Py&&l.locale!=="ko"?null:l.data;default:return null}}var zT={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 Ly(a){var l=a&&a.nodeName&&a.nodeName.toLowerCase();return l==="input"?!!zT[a.type]:l==="textarea"}function Dy(a,l,p,g){iy(g),l=Bd(l,"onChange"),0<l.length&&(p=new rf("onChange","change",null,p,g),a.push({event:p,listeners:l}))}var ul=null,hl=null;function VT(a){tb(a,0)}function Ld(a){var l=$a(a);if(cn(l))return a}function HT(a,l){if(a==="change")return l}var Fy=!1;if(c){var uf;if(c){var hf="oninput"in document;if(!hf){var $y=document.createElement("div");$y.setAttribute("oninput","return;"),hf=typeof $y.oninput=="function"}uf=hf}else uf=!1;Fy=uf&&(!document.documentMode||9<document.documentMode)}function By(){ul&&(ul.detachEvent("onpropertychange",zy),hl=ul=null)}function zy(a){if(a.propertyName==="value"&&Ld(hl)){var l=[];Dy(l,hl,a,Wp(a)),oy(VT,l)}}function WT(a,l,p){a==="focusin"?(By(),ul=l,hl=p,ul.attachEvent("onpropertychange",zy)):a==="focusout"&&By()}function qT(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Ld(hl)}function UT(a,l){if(a==="click")return Ld(l)}function GT(a,l){if(a==="input"||a==="change")return Ld(l)}function YT(a,l){return a===l&&(a!==0||1/a===1/l)||a!==a&&l!==l}var di=typeof Object.is=="function"?Object.is:YT;function pl(a,l){if(di(a,l))return!0;if(typeof a!="object"||a===null||typeof l!="object"||l===null)return!1;var p=Object.keys(a),g=Object.keys(l);if(p.length!==g.length)return!1;for(g=0;g<p.length;g++){var v=p[g];if(!u.call(l,v)||!di(a[v],l[v]))return!1}return!0}function Vy(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Hy(a,l){var p=Vy(a);a=0;for(var g;p;){if(p.nodeType===3){if(g=a+p.textContent.length,a<=l&&g>=l)return{node:p,offset:l-a};a=g}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=Vy(p)}}function Wy(a,l){return a&&l?a===l?!0:a&&a.nodeType===3?!1:l&&l.nodeType===3?Wy(a,l.parentNode):"contains"in a?a.contains(l):a.compareDocumentPosition?!!(a.compareDocumentPosition(l)&16):!1:!1}function qy(){for(var a=window,l=Ni();l instanceof a.HTMLIFrameElement;){try{var p=typeof l.contentWindow.location.href=="string"}catch{p=!1}if(p)a=l.contentWindow;else break;l=Ni(a.document)}return l}function pf(a){var l=a&&a.nodeName&&a.nodeName.toLowerCase();return l&&(l==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||l==="textarea"||a.contentEditable==="true")}function KT(a){var l=qy(),p=a.focusedElem,g=a.selectionRange;if(l!==p&&p&&p.ownerDocument&&Wy(p.ownerDocument.documentElement,p)){if(g!==null&&pf(p)){if(l=g.start,a=g.end,a===void 0&&(a=l),"selectionStart"in p)p.selectionStart=l,p.selectionEnd=Math.min(a,p.value.length);else if(a=(l=p.ownerDocument||document)&&l.defaultView||window,a.getSelection){a=a.getSelection();var v=p.textContent.length,_=Math.min(g.start,v);g=g.end===void 0?_:Math.min(g.end,v),!a.extend&&_>g&&(v=g,g=_,_=v),v=Hy(p,_);var C=Hy(p,g);v&&C&&(a.rangeCount!==1||a.anchorNode!==v.node||a.anchorOffset!==v.offset||a.focusNode!==C.node||a.focusOffset!==C.offset)&&(l=l.createRange(),l.setStart(v.node,v.offset),a.removeAllRanges(),_>g?(a.addRange(l),a.extend(C.node,C.offset)):(l.setEnd(C.node,C.offset),a.addRange(l)))}}for(l=[],a=p;a=a.parentNode;)a.nodeType===1&&l.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<l.length;p++)a=l[p],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var QT=c&&"documentMode"in document&&11>=document.documentMode,Oa=null,ff=null,fl=null,mf=!1;function Uy(a,l,p){var g=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;mf||Oa==null||Oa!==Ni(g)||(g=Oa,"selectionStart"in g&&pf(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),fl&&pl(fl,g)||(fl=g,g=Bd(ff,"onSelect"),0<g.length&&(l=new rf("onSelect","select",null,l,p),a.push({event:l,listeners:g}),l.target=Oa)))}function Dd(a,l){var p={};return p[a.toLowerCase()]=l.toLowerCase(),p["Webkit"+a]="webkit"+l,p["Moz"+a]="moz"+l,p}var La={animationend:Dd("Animation","AnimationEnd"),animationiteration:Dd("Animation","AnimationIteration"),animationstart:Dd("Animation","AnimationStart"),transitionend:Dd("Transition","TransitionEnd")},gf={},Gy={};c&&(Gy=document.createElement("div").style,"AnimationEvent"in window||(delete La.animationend.animation,delete La.animationiteration.animation,delete La.animationstart.animation),"TransitionEvent"in window||delete La.transitionend.transition);function Fd(a){if(gf[a])return gf[a];if(!La[a])return a;var l=La[a],p;for(p in l)if(l.hasOwnProperty(p)&&p in Gy)return gf[a]=l[p];return a}var Yy=Fd("animationend"),Ky=Fd("animationiteration"),Qy=Fd("animationstart"),Xy=Fd("transitionend"),Zy=new Map,Jy="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 Ds(a,l){Zy.set(a,l),r(l,[a])}for(var xf=0;xf<Jy.length;xf++){var vf=Jy[xf],XT=vf.toLowerCase(),ZT=vf[0].toUpperCase()+vf.slice(1);Ds(XT,"on"+ZT)}Ds(Yy,"onAnimationEnd"),Ds(Ky,"onAnimationIteration"),Ds(Qy,"onAnimationStart"),Ds("dblclick","onDoubleClick"),Ds("focusin","onFocus"),Ds("focusout","onBlur"),Ds(Xy,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),r("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),r("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),r("onBeforeInput",["compositionend","keypress","textInput","paste"]),r("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),r("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),r("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ml="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(" "),JT=new Set("cancel close invalid load scroll toggle".split(" ").concat(ml));function eb(a,l,p){var g=a.type||"unknown-event";a.currentTarget=p,X4(g,l,void 0,a),a.currentTarget=null}function tb(a,l){l=(l&4)!==0;for(var p=0;p<a.length;p++){var g=a[p],v=g.event;g=g.listeners;e:{var _=void 0;if(l)for(var C=g.length-1;0<=C;C--){var I=g[C],D=I.instance,q=I.currentTarget;if(I=I.listener,D!==_&&v.isPropagationStopped())break e;eb(v,I,q),_=D}else for(C=0;C<g.length;C++){if(I=g[C],D=I.instance,q=I.currentTarget,I=I.listener,D!==_&&v.isPropagationStopped())break e;eb(v,I,q),_=D}}}if(_d)throw a=Yp,_d=!1,Yp=null,a}function mt(a,l){var p=l[Cf];p===void 0&&(p=l[Cf]=new Set);var g=a+"__bubble";p.has(g)||(nb(l,a,2,!1),p.add(g))}function yf(a,l,p){var g=0;l&&(g|=4),nb(p,a,g,l)}var $d="_reactListening"+Math.random().toString(36).slice(2);function gl(a){if(!a[$d]){a[$d]=!0,i.forEach(function(p){p!=="selectionchange"&&(JT.has(p)||yf(p,!1,a),yf(p,!0,a))});var l=a.nodeType===9?a:a.ownerDocument;l===null||l[$d]||(l[$d]=!0,yf("selectionchange",!1,l))}}function nb(a,l,p,g){switch(jy(l)){case 1:var v=pT;break;case 4:v=fT;break;default:v=tf}p=v.bind(null,l,p,a),v=void 0,!Gp||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(v=!0),g?v!==void 0?a.addEventListener(l,p,{capture:!0,passive:v}):a.addEventListener(l,p,!0):v!==void 0?a.addEventListener(l,p,{passive:v}):a.addEventListener(l,p,!1)}function bf(a,l,p,g,v){var _=g;if((l&1)===0&&(l&2)===0&&g!==null)e:for(;;){if(g===null)return;var C=g.tag;if(C===3||C===4){var I=g.stateNode.containerInfo;if(I===v||I.nodeType===8&&I.parentNode===v)break;if(C===4)for(C=g.return;C!==null;){var D=C.tag;if((D===3||D===4)&&(D=C.stateNode.containerInfo,D===v||D.nodeType===8&&D.parentNode===v))return;C=C.return}for(;I!==null;){if(C=Dr(I),C===null)return;if(D=C.tag,D===5||D===6){g=_=C;continue e}I=I.parentNode}}g=g.return}oy(function(){var q=_,se=Wp(p),oe=[];e:{var ie=Zy.get(a);if(ie!==void 0){var pe=rf,_e=a;switch(a){case"keypress":if(Rd(p)===0)break e;case"keydown":case"keyup":pe=ET;break;case"focusin":_e="focus",pe=lf;break;case"focusout":_e="blur",pe=lf;break;case"beforeblur":case"afterblur":pe=lf;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":pe=Ty;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pe=xT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pe=IT;break;case Yy:case Ky:case Qy:pe=bT;break;case Xy:pe=MT;break;case"scroll":pe=mT;break;case"wheel":pe=LT;break;case"copy":case"cut":case"paste":pe=_T;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pe=Ay}var Se=(l&4)!==0,Pt=!Se&&a==="scroll",z=Se?ie!==null?ie+"Capture":null:ie;Se=[];for(var $=q,V;$!==null;){V=$;var de=V.stateNode;if(V.tag===5&&de!==null&&(V=de,z!==null&&(de=Zo($,z),de!=null&&Se.push(xl($,de,V)))),Pt)break;$=$.return}0<Se.length&&(ie=new pe(ie,_e,null,p,se),oe.push({event:ie,listeners:Se}))}}if((l&7)===0){e:{if(ie=a==="mouseover"||a==="pointerover",pe=a==="mouseout"||a==="pointerout",ie&&p!==Hp&&(_e=p.relatedTarget||p.fromElement)&&(Dr(_e)||_e[ts]))break e;if((pe||ie)&&(ie=se.window===se?se:(ie=se.ownerDocument)?ie.defaultView||ie.parentWindow:window,pe?(_e=p.relatedTarget||p.toElement,pe=q,_e=_e?Dr(_e):null,_e!==null&&(Pt=Lr(_e),_e!==Pt||_e.tag!==5&&_e.tag!==6)&&(_e=null)):(pe=null,_e=q),pe!==_e)){if(Se=Ty,de="onMouseLeave",z="onMouseEnter",$="mouse",(a==="pointerout"||a==="pointerover")&&(Se=Ay,de="onPointerLeave",z="onPointerEnter",$="pointer"),Pt=pe==null?ie:$a(pe),V=_e==null?ie:$a(_e),ie=new Se(de,$+"leave",pe,p,se),ie.target=Pt,ie.relatedTarget=V,de=null,Dr(se)===q&&(Se=new Se(z,$+"enter",_e,p,se),Se.target=V,Se.relatedTarget=Pt,de=Se),Pt=de,pe&&_e)t:{for(Se=pe,z=_e,$=0,V=Se;V;V=Da(V))$++;for(V=0,de=z;de;de=Da(de))V++;for(;0<$-V;)Se=Da(Se),$--;for(;0<V-$;)z=Da(z),V--;for(;$--;){if(Se===z||z!==null&&Se===z.alternate)break t;Se=Da(Se),z=Da(z)}Se=null}else Se=null;pe!==null&&ib(oe,ie,pe,Se,!1),_e!==null&&Pt!==null&&ib(oe,Pt,_e,Se,!0)}}e:{if(ie=q?$a(q):window,pe=ie.nodeName&&ie.nodeName.toLowerCase(),pe==="select"||pe==="input"&&ie.type==="file")var Ce=HT;else if(Ly(ie))if(Fy)Ce=GT;else{Ce=qT;var Me=WT}else(pe=ie.nodeName)&&pe.toLowerCase()==="input"&&(ie.type==="checkbox"||ie.type==="radio")&&(Ce=UT);if(Ce&&(Ce=Ce(a,q))){Dy(oe,Ce,p,se);break e}Me&&Me(a,ie,q),a==="focusout"&&(Me=ie._wrapperState)&&Me.controlled&&ie.type==="number"&&Or(ie,"number",ie.value)}switch(Me=q?$a(q):window,a){case"focusin":(Ly(Me)||Me.contentEditable==="true")&&(Oa=Me,ff=q,fl=null);break;case"focusout":fl=ff=Oa=null;break;case"mousedown":mf=!0;break;case"contextmenu":case"mouseup":case"dragend":mf=!1,Uy(oe,p,se);break;case"selectionchange":if(QT)break;case"keydown":case"keyup":Uy(oe,p,se)}var Oe;if(df)e:{switch(a){case"compositionstart":var $e="onCompositionStart";break e;case"compositionend":$e="onCompositionEnd";break e;case"compositionupdate":$e="onCompositionUpdate";break e}$e=void 0}else Ma?My(a,p)&&($e="onCompositionEnd"):a==="keydown"&&p.keyCode===229&&($e="onCompositionStart");$e&&(Py&&p.locale!=="ko"&&(Ma||$e!=="onCompositionStart"?$e==="onCompositionEnd"&&Ma&&(Oe=Cy()):(Ls=se,sf="value"in Ls?Ls.value:Ls.textContent,Ma=!0)),Me=Bd(q,$e),0<Me.length&&($e=new Ey($e,a,null,p,se),oe.push({event:$e,listeners:Me}),Oe?$e.data=Oe:(Oe=Oy(p),Oe!==null&&($e.data=Oe)))),(Oe=FT?$T(a,p):BT(a,p))&&(q=Bd(q,"onBeforeInput"),0<q.length&&(se=new Ey("onBeforeInput","beforeinput",null,p,se),oe.push({event:se,listeners:q}),se.data=Oe))}tb(oe,l)})}function xl(a,l,p){return{instance:a,listener:l,currentTarget:p}}function Bd(a,l){for(var p=l+"Capture",g=[];a!==null;){var v=a,_=v.stateNode;v.tag===5&&_!==null&&(v=_,_=Zo(a,p),_!=null&&g.unshift(xl(a,_,v)),_=Zo(a,l),_!=null&&g.push(xl(a,_,v))),a=a.return}return g}function Da(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function ib(a,l,p,g,v){for(var _=l._reactName,C=[];p!==null&&p!==g;){var I=p,D=I.alternate,q=I.stateNode;if(D!==null&&D===g)break;I.tag===5&&q!==null&&(I=q,v?(D=Zo(p,_),D!=null&&C.unshift(xl(p,D,I))):v||(D=Zo(p,_),D!=null&&C.push(xl(p,D,I)))),p=p.return}C.length!==0&&a.push({event:l,listeners:C})}var eE=/\r\n?/g,tE=/\u0000|\uFFFD/g;function sb(a){return(typeof a=="string"?a:""+a).replace(eE,`
38`).replace(tE,"")}function zd(a,l,p){if(l=sb(l),sb(a)!==l&&p)throw Error(n(425))}function Vd(){}var wf=null,_f=null;function kf(a,l){return a==="textarea"||a==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Sf=typeof setTimeout=="function"?setTimeout:void 0,nE=typeof clearTimeout=="function"?clearTimeout:void 0,rb=typeof Promise=="function"?Promise:void 0,iE=typeof queueMicrotask=="function"?queueMicrotask:typeof rb<"u"?function(a){return rb.resolve(null).then(a).catch(sE)}:Sf;function sE(a){setTimeout(function(){throw a})}function jf(a,l){var p=l,g=0;do{var v=p.nextSibling;if(a.removeChild(p),v&&v.nodeType===8)if(p=v.data,p==="/$"){if(g===0){a.removeChild(v),ol(l);return}g--}else p!=="$"&&p!=="$?"&&p!=="$!"||g++;p=v}while(p);ol(l)}function Fs(a){for(;a!=null;a=a.nextSibling){var l=a.nodeType;if(l===1||l===3)break;if(l===8){if(l=a.data,l==="$"||l==="$!"||l==="$?")break;if(l==="/$")return null}}return a}function ab(a){a=a.previousSibling;for(var l=0;a;){if(a.nodeType===8){var p=a.data;if(p==="$"||p==="$!"||p==="$?"){if(l===0)return a;l--}else p==="/$"&&l++}a=a.previousSibling}return null}var Fa=Math.random().toString(36).slice(2),Ai="__reactFiber$"+Fa,vl="__reactProps$"+Fa,ts="__reactContainer$"+Fa,Cf="__reactEvents$"+Fa,rE="__reactListeners$"+Fa,aE="__reactHandles$"+Fa;function Dr(a){var l=a[Ai];if(l)return l;for(var p=a.parentNode;p;){if(l=p[ts]||p[Ai]){if(p=l.alternate,l.child!==null||p!==null&&p.child!==null)for(a=ab(a);a!==null;){if(p=a[Ai])return p;a=ab(a)}return l}a=p,p=a.parentNode}return null}function yl(a){return a=a[Ai]||a[ts],!a||a.tag!==5&&a.tag!==6&&a.tag!==13&&a.tag!==3?null:a}function $a(a){if(a.tag===5||a.tag===6)return a.stateNode;throw Error(n(33))}function Hd(a){return a[vl]||null}var Nf=[],Ba=-1;function $s(a){return{current:a}}function gt(a){0>Ba||(a.current=Nf[Ba],Nf[Ba]=null,Ba--)}function ft(a,l){Ba++,Nf[Ba]=a.current,a.current=l}var Bs={},dn=$s(Bs),kn=$s(!1),Fr=Bs;function za(a,l){var p=a.type.contextTypes;if(!p)return Bs;var g=a.stateNode;if(g&&g.__reactInternalMemoizedUnmaskedChildContext===l)return g.__reactInternalMemoizedMaskedChildContext;var v={},_;for(_ in p)v[_]=l[_];return g&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=l,a.__reactInternalMemoizedMaskedChildContext=v),v}function Sn(a){return a=a.childContextTypes,a!=null}function Wd(){gt(kn),gt(dn)}function ob(a,l,p){if(dn.current!==Bs)throw Error(n(168));ft(dn,l),ft(kn,p)}function lb(a,l,p){var g=a.stateNode;if(l=l.childContextTypes,typeof g.getChildContext!="function")return p;g=g.getChildContext();for(var v in g)if(!(v in l))throw Error(n(108,He(a)||"Unknown",v));return H({},p,g)}function qd(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Bs,Fr=dn.current,ft(dn,a),ft(kn,kn.current),!0}function cb(a,l,p){var g=a.stateNode;if(!g)throw Error(n(169));p?(a=lb(a,l,Fr),g.__reactInternalMemoizedMergedChildContext=a,gt(kn),gt(dn),ft(dn,a)):gt(kn),ft(kn,p)}var ns=null,Ud=!1,Tf=!1;function db(a){ns===null?ns=[a]:ns.push(a)}function oE(a){Ud=!0,db(a)}function zs(){if(!Tf&&ns!==null){Tf=!0;var a=0,l=rt;try{var p=ns;for(rt=1;a<p.length;a++){var g=p[a];do g=g(!0);while(g!==null)}ns=null,Ud=!1}catch(v){throw ns!==null&&(ns=ns.slice(a+1)),hy(Kp,zs),v}finally{rt=l,Tf=!1}}return null}var Va=[],Ha=0,Gd=null,Yd=0,qn=[],Un=0,$r=null,is=1,ss="";
vendor: 4,690 bytes, line 38
38function Br(a,l){Va[Ha++]=Yd,Va[Ha++]=Gd,Gd=a,Yd=l}function ub(a,l,p){qn[Un++]=is,qn[Un++]=ss,qn[Un++]=$r,$r=a;var g=is;a=ss;var v=32-ci(g)-1;g&=~(1<<v),p+=1;var _=32-ci(l)+v;if(30<_){var C=v-v%5;_=(g&(1<<C)-1).toString(32),g>>=C,v-=C,is=1<<32-ci(l)+v|p<<v|g,ss=_+a}else is=1<<_|p<<v|g,ss=a}function Ef(a){a.return!==null&&(Br(a,1),ub(a,1,0))}function Af(a){for(;a===Gd;)Gd=Va[--Ha],Va[Ha]=null,Yd=Va[--Ha],Va[Ha]=null;for(;a===$r;)$r=qn[--Un],qn[Un]=null,ss=qn[--Un],qn[Un]=null,is=qn[--Un],qn[Un]=null}var Dn=null,Fn=null,St=!1,ui=null;function hb(a,l){var p=Qn(5,null,null,0);p.elementType="DELETED",p.stateNode=l,p.return=a,l=a.deletions,l===null?(a.deletions=[p],a.flags|=16):l.push(p)}function pb(a,l){switch(a.tag){case 5:var p=a.type;return l=l.nodeType!==1||p.toLowerCase()!==l.nodeName.toLowerCase()?null:l,l!==null?(a.stateNode=l,Dn=a,Fn=Fs(l.firstChild),!0):!1;case 6:return l=a.pendingProps===""||l.nodeType!==3?null:l,l!==null?(a.stateNode=l,Dn=a,Fn=null,!0):!1;case 13:return l=l.nodeType!==8?null:l,l!==null?(p=$r!==null?{id:is,overflow:ss}:null,a.memoizedState={dehydrated:l,treeContext:p,retryLane:1073741824},p=Qn(18,null,null,0),p.stateNode=l,p.return=a,a.child=p,Dn=a,Fn=null,!0):!1;default:return!1}}function Pf(a){return(a.mode&1)!==0&&(a.flags&128)===0}function If(a){if(St){var l=Fn;if(l){var p=l;if(!pb(a,l)){if(Pf(a))throw Error(n(418));l=Fs(p.nextSibling);var g=Dn;l&&pb(a,l)?hb(g,p):(a.flags=a.flags&-4097|2,St=!1,Dn=a)}}else{if(Pf(a))throw Error(n(418));a.flags=a.flags&-4097|2,St=!1,Dn=a}}}function fb(a){for(a=a.return;a!==null&&a.tag!==5&&a.tag!==3&&a.tag!==13;)a=a.return;Dn=a}function Kd(a){if(a!==Dn)return!1;if(!St)return fb(a),St=!0,!1;var l;if((l=a.tag!==3)&&!(l=a.tag!==5)&&(l=a.type,l=l!=="head"&&l!=="body"&&!kf(a.type,a.memoizedProps)),l&&(l=Fn)){if(Pf(a))throw mb(),Error(n(418));for(;l;)hb(a,l),l=Fs(l.nextSibling)}if(fb(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(n(317));e:{for(a=a.nextSibling,l=0;a;){if(a.nodeType===8){var p=a.data;if(p==="/$"){if(l===0){Fn=Fs(a.nextSibling);break e}l--}else p!=="$"&&p!=="$!"&&p!=="$?"||l++}a=a.nextSibling}Fn=null}}else Fn=Dn?Fs(a.stateNode.nextSibling):null;return!0}function mb(){for(var a=Fn;a;)a=Fs(a.nextSibling)}function Wa(){Fn=Dn=null,St=!1}function Rf(a){ui===null?ui=[a]:ui.push(a)}var lE=E.ReactCurrentBatchConfig;function bl(a,l,p){if(a=p.ref,a!==null&&typeof a!="function"&&typeof a!="object"){if(p._owner){if(p=p._owner,p){if(p.tag!==1)throw Error(n(309));var g=p.stateNode}if(!g)throw Error(n(147,a));var v=g,_=""+a;return l!==null&&l.ref!==null&&typeof l.ref=="function"&&l.ref._stringRef===_?l.ref:(l=function(C){var I=v.refs;C===null?delete I[_]:I[_]=C},l._stringRef=_,l)}if(typeof a!="string")throw Error(n(284));if(!p._owner)throw Error(n(290,a))}return a}function Qd(a,l){throw a=Object.prototype.toString.call(l),Error(n(31,a==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":a))}function gb(a){var l=a._init;return l(a._payload)}function xb(a){function l(z,$){if(a){var V=z.deletions;V===null?(z.deletions=[$],z.flags|=16):V.push($)}}function p(z,$){if(!a)return null;for(;$!==null;)l(z,$),$=$.sibling;return null}function g(z,$){for(z=new Map;$!==null;)$.key!==null?z.set($.key,$):z.set($.index,$),$=$.sibling;return z}function v(z,$){return z=Ks(z,$),z.index=0,z.sibling=null,z}function _(z,$,V){return z.index=V,a?(V=z.alternate,V!==null?(V=V.index,V<$?(z.flags|=2,$):V):(z.flags|=2,$)):(z.flags|=1048576,$)}function C(z){return a&&z.alternate===null&&(z.flags|=2),z}function I(z,$,V,de){return $===null||$.tag!==6?($=Sm(V,z.mode,de),$.return=z,$):($=v($,V),$.return=z,$)}function D(z,$,V,de){var Ce=V.type;return Ce===M?se(z,$,V.props.children,de,V.key):$!==null&&($.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===Z&&gb(Ce)===$.type)?(de=v($,V.props),de.ref=bl(z,$,V),de.return=z,de):(de=bu(V.type,V.key,V.props,null,z.mode,de),de.ref=bl(z,$,V),de.return=z,de)}function q(z,$,V,de){return $===null||$.tag!==4||$.stateNode.containerInfo!==V.containerInfo||$.stateNode.implementation!==V.implementation?($=jm(V,z.mode,de),$.return=z,$):($=v($,V.children||[]),$.return=z,$)}function se(z,$,V,de,Ce){return $===null||$.tag!==7?($=Yr(V,z.mode,de,Ce),$.return=z,$):($=v($,V),$.return=z,$)}function oe(z,$,V){if(typeof $=="string"&&$!==""||typeof $=="number")return $=Sm(""+$,z.mode,V),$.return=z,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case T:return V=bu($.type,$.key,$.props,null,z.mode,V),V.ref=bl(z,null,$),V.return=z,V;case L:return $=jm($,z.mode,V),$.return=z,$;case Z:var de=$._init;return oe(z,de($._payload),V)}if(Ps($)||J($))return $=Yr($,z.mode,V,null),$.return=z,$;Qd(z,$)}return null}
vendor: 9,286 bytes, line 38
38function ie(z,$,V,de){var Ce=$!==null?$.key:null;if(typeof V=="string"&&V!==""||typeof V=="number")return Ce!==null?null:I(z,$,""+V,de);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case T:return V.key===Ce?D(z,$,V,de):null;case L:return V.key===Ce?q(z,$,V,de):null;case Z:return Ce=V._init,ie(z,$,Ce(V._payload),de)}if(Ps(V)||J(V))return Ce!==null?null:se(z,$,V,de,null);Qd(z,V)}return null}function pe(z,$,V,de,Ce){if(typeof de=="string"&&de!==""||typeof de=="number")return z=z.get(V)||null,I($,z,""+de,Ce);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case T:return z=z.get(de.key===null?V:de.key)||null,D($,z,de,Ce);case L:return z=z.get(de.key===null?V:de.key)||null,q($,z,de,Ce);case Z:var Me=de._init;return pe(z,$,V,Me(de._payload),Ce)}if(Ps(de)||J(de))return z=z.get(V)||null,se($,z,de,Ce,null);Qd($,de)}return null}function _e(z,$,V,de){for(var Ce=null,Me=null,Oe=$,$e=$=0,Jt=null;Oe!==null&&$e<V.length;$e++){Oe.index>$e?(Jt=Oe,Oe=null):Jt=Oe.sibling;var nt=ie(z,Oe,V[$e],de);if(nt===null){Oe===null&&(Oe=Jt);break}a&&Oe&&nt.alternate===null&&l(z,Oe),$=_(nt,$,$e),Me===null?Ce=nt:Me.sibling=nt,Me=nt,Oe=Jt}if($e===V.length)return p(z,Oe),St&&Br(z,$e),Ce;if(Oe===null){for(;$e<V.length;$e++)Oe=oe(z,V[$e],de),Oe!==null&&($=_(Oe,$,$e),Me===null?Ce=Oe:Me.sibling=Oe,Me=Oe);return St&&Br(z,$e),Ce}for(Oe=g(z,Oe);$e<V.length;$e++)Jt=pe(Oe,z,$e,V[$e],de),Jt!==null&&(a&&Jt.alternate!==null&&Oe.delete(Jt.key===null?$e:Jt.key),$=_(Jt,$,$e),Me===null?Ce=Jt:Me.sibling=Jt,Me=Jt);return a&&Oe.forEach(function(Qs){return l(z,Qs)}),St&&Br(z,$e),Ce}function Se(z,$,V,de){var Ce=J(V);if(typeof Ce!="function")throw Error(n(150));if(V=Ce.call(V),V==null)throw Error(n(151));for(var Me=Ce=null,Oe=$,$e=$=0,Jt=null,nt=V.next();Oe!==null&&!nt.done;$e++,nt=V.next()){Oe.index>$e?(Jt=Oe,Oe=null):Jt=Oe.sibling;var Qs=ie(z,Oe,nt.value,de);if(Qs===null){Oe===null&&(Oe=Jt);break}a&&Oe&&Qs.alternate===null&&l(z,Oe),$=_(Qs,$,$e),Me===null?Ce=Qs:Me.sibling=Qs,Me=Qs,Oe=Jt}if(nt.done)return p(z,Oe),St&&Br(z,$e),Ce;if(Oe===null){for(;!nt.done;$e++,nt=V.next())nt=oe(z,nt.value,de),nt!==null&&($=_(nt,$,$e),Me===null?Ce=nt:Me.sibling=nt,Me=nt);return St&&Br(z,$e),Ce}for(Oe=g(z,Oe);!nt.done;$e++,nt=V.next())nt=pe(Oe,z,$e,nt.value,de),nt!==null&&(a&&nt.alternate!==null&&Oe.delete(nt.key===null?$e:nt.key),$=_(nt,$,$e),Me===null?Ce=nt:Me.sibling=nt,Me=nt);return a&&Oe.forEach(function(zE){return l(z,zE)}),St&&Br(z,$e),Ce}function Pt(z,$,V,de){if(typeof V=="object"&&V!==null&&V.type===M&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case T:e:{for(var Ce=V.key,Me=$;Me!==null;){if(Me.key===Ce){if(Ce=V.type,Ce===M){if(Me.tag===7){p(z,Me.sibling),$=v(Me,V.props.children),$.return=z,z=$;break e}}else if(Me.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===Z&&gb(Ce)===Me.type){p(z,Me.sibling),$=v(Me,V.props),$.ref=bl(z,Me,V),$.return=z,z=$;break e}p(z,Me);break}else l(z,Me);Me=Me.sibling}V.type===M?($=Yr(V.props.children,z.mode,de,V.key),$.return=z,z=$):(de=bu(V.type,V.key,V.props,null,z.mode,de),de.ref=bl(z,$,V),de.return=z,z=de)}return C(z);case L:e:{for(Me=V.key;$!==null;){if($.key===Me)if($.tag===4&&$.stateNode.containerInfo===V.containerInfo&&$.stateNode.implementation===V.implementation){p(z,$.sibling),$=v($,V.children||[]),$.return=z,z=$;break e}else{p(z,$);break}else l(z,$);$=$.sibling}$=jm(V,z.mode,de),$.return=z,z=$}return C(z);case Z:return Me=V._init,Pt(z,$,Me(V._payload),de)}if(Ps(V))return _e(z,$,V,de);if(J(V))return Se(z,$,V,de);Qd(z,V)}return typeof V=="string"&&V!==""||typeof V=="number"?(V=""+V,$!==null&&$.tag===6?(p(z,$.sibling),$=v($,V),$.return=z,z=$):(p(z,$),$=Sm(V,z.mode,de),$.return=z,z=$),C(z)):p(z,$)}return Pt}var qa=xb(!0),vb=xb(!1),Xd=$s(null),Zd=null,Ua=null,Mf=null;function Of(){Mf=Ua=Zd=null}function Lf(a){var l=Xd.current;gt(Xd),a._currentValue=l}function Df(a,l,p){for(;a!==null;){var g=a.alternate;if((a.childLanes&l)!==l?(a.childLanes|=l,g!==null&&(g.childLanes|=l)):g!==null&&(g.childLanes&l)!==l&&(g.childLanes|=l),a===p)break;a=a.return}}function Ga(a,l){Zd=a,Mf=Ua=null,a=a.dependencies,a!==null&&a.firstContext!==null&&((a.lanes&l)!==0&&(jn=!0),a.firstContext=null)}function Gn(a){var l=a._currentValue;if(Mf!==a)if(a={context:a,memoizedValue:l,next:null},Ua===null){if(Zd===null)throw Error(n(308));Ua=a,Zd.dependencies={lanes:0,firstContext:a}}else Ua=Ua.next=a;return l}var zr=null;function Ff(a){zr===null?zr=[a]:zr.push(a)}function yb(a,l,p,g){var v=l.interleaved;return v===null?(p.next=p,Ff(l)):(p.next=v.next,v.next=p),l.interleaved=p,rs(a,g)}function rs(a,l){a.lanes|=l;var p=a.alternate;for(p!==null&&(p.lanes|=l),p=a,a=a.return;a!==null;)a.childLanes|=l,p=a.alternate,p!==null&&(p.childLanes|=l),p=a,a=a.return;return p.tag===3?p.stateNode:null}var Vs=!1;function $f(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bb(a,l){a=a.updateQueue,l.updateQueue===a&&(l.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function as(a,l){return{eventTime:a,lane:l,tag:0,payload:null,callback:null,next:null}}function Hs(a,l,p){var g=a.updateQueue;if(g===null)return null;if(g=g.shared,(Qe&2)!==0){var v=g.pending;return v===null?l.next=l:(l.next=v.next,v.next=l),g.pending=l,rs(a,p)}return v=g.interleaved,v===null?(l.next=l,Ff(g)):(l.next=v.next,v.next=l),g.interleaved=l,rs(a,p)}function Jd(a,l,p){if(l=l.updateQueue,l!==null&&(l=l.shared,(p&4194240)!==0)){var g=l.lanes;g&=a.pendingLanes,p|=g,l.lanes=p,Zp(a,p)}}function wb(a,l){var p=a.updateQueue,g=a.alternate;if(g!==null&&(g=g.updateQueue,p===g)){var v=null,_=null;if(p=p.firstBaseUpdate,p!==null){do{var C={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};_===null?v=_=C:_=_.next=C,p=p.next}while(p!==null);_===null?v=_=l:_=_.next=l}else v=_=l;p={baseState:g.baseState,firstBaseUpdate:v,lastBaseUpdate:_,shared:g.shared,effects:g.effects},a.updateQueue=p;return}a=p.lastBaseUpdate,a===null?p.firstBaseUpdate=l:a.next=l,p.lastBaseUpdate=l}function eu(a,l,p,g){var v=a.updateQueue;Vs=!1;var _=v.firstBaseUpdate,C=v.lastBaseUpdate,I=v.shared.pending;if(I!==null){v.shared.pending=null;var D=I,q=D.next;D.next=null,C===null?_=q:C.next=q,C=D;var se=a.alternate;se!==null&&(se=se.updateQueue,I=se.lastBaseUpdate,I!==C&&(I===null?se.firstBaseUpdate=q:I.next=q,se.lastBaseUpdate=D))}if(_!==null){var oe=v.baseState;C=0,se=q=D=null,I=_;do{var ie=I.lane,pe=I.eventTime;if((g&ie)===ie){se!==null&&(se=se.next={eventTime:pe,lane:0,tag:I.tag,payload:I.payload,callback:I.callback,next:null});e:{var _e=a,Se=I;switch(ie=l,pe=p,Se.tag){case 1:if(_e=Se.payload,typeof _e=="function"){oe=_e.call(pe,oe,ie);break e}oe=_e;break e;case 3:_e.flags=_e.flags&-65537|128;case 0:if(_e=Se.payload,ie=typeof _e=="function"?_e.call(pe,oe,ie):_e,ie==null)break e;oe=H({},oe,ie);break e;case 2:Vs=!0}}I.callback!==null&&I.lane!==0&&(a.flags|=64,ie=v.effects,ie===null?v.effects=[I]:ie.push(I))}else pe={eventTime:pe,lane:ie,tag:I.tag,payload:I.payload,callback:I.callback,next:null},se===null?(q=se=pe,D=oe):se=se.next=pe,C|=ie;if(I=I.next,I===null){if(I=v.shared.pending,I===null)break;ie=I,I=ie.next,ie.next=null,v.lastBaseUpdate=ie,v.shared.pending=null}}while(!0);if(se===null&&(D=oe),v.baseState=D,v.firstBaseUpdate=q,v.lastBaseUpdate=se,l=v.shared.interleaved,l!==null){v=l;do C|=v.lane,v=v.next;while(v!==l)}else _===null&&(v.shared.lanes=0);Wr|=C,a.lanes=C,a.memoizedState=oe}}function _b(a,l,p){if(a=l.effects,l.effects=null,a!==null)for(l=0;l<a.length;l++){var g=a[l],v=g.callback;if(v!==null){if(g.callback=null,g=p,typeof v!="function")throw Error(n(191,v));v.call(g)}}}var wl={},Pi=$s(wl),_l=$s(wl),kl=$s(wl);function Vr(a){if(a===wl)throw Error(n(174));return a}function Bf(a,l){switch(ft(kl,l),ft(_l,a),ft(Pi,wl),a=l.nodeType,a){case 9:case 11:l=(l=l.documentElement)?l.namespaceURI:Bp(null,"");break;default:a=a===8?l.parentNode:l,l=a.namespaceURI||null,a=a.tagName,l=Bp(l,a)}gt(Pi),ft(Pi,l)}function Ya(){gt(Pi),gt(_l),gt(kl)}function kb(a){Vr(kl.current);var l=Vr(Pi.current),p=Bp(l,a.type);l!==p&&(ft(_l,a),ft(Pi,p))}function zf(a){_l.current===a&&(gt(Pi),gt(_l))}var Ct=$s(0);function tu(a){for(var l=a;l!==null;){if(l.tag===13){var p=l.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break;for(;l.sibling===null;){if(l.return===null||l.return===a)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Vf=[];function Hf(){for(var a=0;a<Vf.length;a++)Vf[a]._workInProgressVersionPrimary=null;Vf.length=0}var nu=E.ReactCurrentDispatcher,Wf=E.ReactCurrentBatchConfig,Hr=0,Nt=null,Vt=null,Xt=null,iu=!1,Sl=!1,jl=0,cE=0;function un(){throw Error(n(321))}function qf(a,l){if(l===null)return!1;for(var p=0;p<l.length&&p<a.length;p++)if(!di(a[p],l[p]))return!1;return!0}function Uf(a,l,p,g,v,_){if(Hr=_,Nt=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,nu.current=a===null||a.memoizedState===null?pE:fE,a=p(g,v),Sl){_=0;do{if(Sl=!1,jl=0,25<=_)throw Error(n(301));
vendor: 6,575 bytes, line 38
38_+=1,Xt=Vt=null,l.updateQueue=null,nu.current=mE,a=p(g,v)}while(Sl)}if(nu.current=au,l=Vt!==null&&Vt.next!==null,Hr=0,Xt=Vt=Nt=null,iu=!1,l)throw Error(n(300));return a}function Gf(){var a=jl!==0;return jl=0,a}function Ii(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?Nt.memoizedState=Xt=a:Xt=Xt.next=a,Xt}function Yn(){if(Vt===null){var a=Nt.alternate;a=a!==null?a.memoizedState:null}else a=Vt.next;var l=Xt===null?Nt.memoizedState:Xt.next;if(l!==null)Xt=l,Vt=a;else{if(a===null)throw Error(n(310));Vt=a,a={memoizedState:Vt.memoizedState,baseState:Vt.baseState,baseQueue:Vt.baseQueue,queue:Vt.queue,next:null},Xt===null?Nt.memoizedState=Xt=a:Xt=Xt.next=a}return Xt}function Cl(a,l){return typeof l=="function"?l(a):l}function Yf(a){var l=Yn(),p=l.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=a;var g=Vt,v=g.baseQueue,_=p.pending;if(_!==null){if(v!==null){var C=v.next;v.next=_.next,_.next=C}g.baseQueue=v=_,p.pending=null}if(v!==null){_=v.next,g=g.baseState;var I=C=null,D=null,q=_;do{var se=q.lane;if((Hr&se)===se)D!==null&&(D=D.next={lane:0,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),g=q.hasEagerState?q.eagerState:a(g,q.action);else{var oe={lane:se,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null};D===null?(I=D=oe,C=g):D=D.next=oe,Nt.lanes|=se,Wr|=se}q=q.next}while(q!==null&&q!==_);D===null?C=g:D.next=I,di(g,l.memoizedState)||(jn=!0),l.memoizedState=g,l.baseState=C,l.baseQueue=D,p.lastRenderedState=g}if(a=p.interleaved,a!==null){v=a;do _=v.lane,Nt.lanes|=_,Wr|=_,v=v.next;while(v!==a)}else v===null&&(p.lanes=0);return[l.memoizedState,p.dispatch]}function Kf(a){var l=Yn(),p=l.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=a;var g=p.dispatch,v=p.pending,_=l.memoizedState;if(v!==null){p.pending=null;var C=v=v.next;do _=a(_,C.action),C=C.next;while(C!==v);di(_,l.memoizedState)||(jn=!0),l.memoizedState=_,l.baseQueue===null&&(l.baseState=_),p.lastRenderedState=_}return[_,g]}function Sb(){}function jb(a,l){var p=Nt,g=Yn(),v=l(),_=!di(g.memoizedState,v);if(_&&(g.memoizedState=v,jn=!0),g=g.queue,Qf(Tb.bind(null,p,g,a),[a]),g.getSnapshot!==l||_||Xt!==null&&Xt.memoizedState.tag&1){if(p.flags|=2048,Nl(9,Nb.bind(null,p,g,v,l),void 0,null),Zt===null)throw Error(n(349));(Hr&30)!==0||Cb(p,l,v)}return v}function Cb(a,l,p){a.flags|=16384,a={getSnapshot:l,value:p},l=Nt.updateQueue,l===null?(l={lastEffect:null,stores:null},Nt.updateQueue=l,l.stores=[a]):(p=l.stores,p===null?l.stores=[a]:p.push(a))}function Nb(a,l,p,g){l.value=p,l.getSnapshot=g,Eb(l)&&Ab(a)}function Tb(a,l,p){return p(function(){Eb(l)&&Ab(a)})}function Eb(a){var l=a.getSnapshot;a=a.value;try{var p=l();return!di(a,p)}catch{return!0}}function Ab(a){var l=rs(a,1);l!==null&&mi(l,a,1,-1)}function Pb(a){var l=Ii();return typeof a=="function"&&(a=a()),l.memoizedState=l.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Cl,lastRenderedState:a},l.queue=a,a=a.dispatch=hE.bind(null,Nt,a),[l.memoizedState,a]}function Nl(a,l,p,g){return a={tag:a,create:l,destroy:p,deps:g,next:null},l=Nt.updateQueue,l===null?(l={lastEffect:null,stores:null},Nt.updateQueue=l,l.lastEffect=a.next=a):(p=l.lastEffect,p===null?l.lastEffect=a.next=a:(g=p.next,p.next=a,a.next=g,l.lastEffect=a)),a}function Ib(){return Yn().memoizedState}function su(a,l,p,g){var v=Ii();Nt.flags|=a,v.memoizedState=Nl(1|l,p,void 0,g===void 0?null:g)}function ru(a,l,p,g){var v=Yn();g=g===void 0?null:g;var _=void 0;if(Vt!==null){var C=Vt.memoizedState;if(_=C.destroy,g!==null&&qf(g,C.deps)){v.memoizedState=Nl(l,p,_,g);return}}Nt.flags|=a,v.memoizedState=Nl(1|l,p,_,g)}function Rb(a,l){return su(8390656,8,a,l)}function Qf(a,l){return ru(2048,8,a,l)}function Mb(a,l){return ru(4,2,a,l)}function Ob(a,l){return ru(4,4,a,l)}function Lb(a,l){if(typeof l=="function")return a=a(),l(a),function(){l(null)};if(l!=null)return a=a(),l.current=a,function(){l.current=null}}function Db(a,l,p){return p=p!=null?p.concat([a]):null,ru(4,4,Lb.bind(null,l,a),p)}function Xf(){}function Fb(a,l){var p=Yn();l=l===void 0?null:l;var g=p.memoizedState;return g!==null&&l!==null&&qf(l,g[1])?g[0]:(p.memoizedState=[a,l],a)}function $b(a,l){var p=Yn();l=l===void 0?null:l;var g=p.memoizedState;return g!==null&&l!==null&&qf(l,g[1])?g[0]:(a=a(),p.memoizedState=[a,l],a)}function Bb(a,l,p){return(Hr&21)===0?(a.baseState&&(a.baseState=!1,jn=!0),a.memoizedState=p):(di(p,l)||(p=gy(),Nt.lanes|=p,Wr|=p,a.baseState=!0),l)}function dE(a,l){var p=rt;rt=p!==0&&4>p?p:4,a(!0);var g=Wf.transition;Wf.transition={};try{a(!1),l()}finally{rt=p,Wf.transition=g}}function zb(){return Yn().memoizedState}function uE(a,l,p){var g=Gs(a);if(p={lane:g,action:p,hasEagerState:!1,eagerState:null,next:null},Vb(a))Hb(l,p);else if(p=yb(a,l,p,g),p!==null){var v=gn();mi(p,a,g,v),Wb(p,l,g)}}function hE(a,l,p){var g=Gs(a),v={lane:g,action:p,hasEagerState:!1,eagerState:null,next:null};if(Vb(a))Hb(l,v);else{var _=a.alternate;if(a.lanes===0&&(_===null||_.lanes===0)&&(_=l.lastRenderedReducer,_!==null))try{var C=l.lastRenderedState,I=_(C,p);if(v.hasEagerState=!0,v.eagerState=I,di(I,C)){var D=l.interleaved;D===null?(v.next=v,Ff(l)):(v.next=D.next,D.next=v),l.interleaved=v;return}}catch{}finally{}p=yb(a,l,v,g),p!==null&&(v=gn(),mi(p,a,g,v),Wb(p,l,g))}}function Vb(a){var l=a.alternate;return a===Nt||l!==null&&l===Nt}function Hb(a,l){Sl=iu=!0;var p=a.pending;p===null?l.next=l:(l.next=p.next,p.next=l),a.pending=l}function Wb(a,l,p){if((p&4194240)!==0){var g=l.lanes;g&=a.pendingLanes,p|=g,l.lanes=p,Zp(a,p)}}var au={readContext:Gn,useCallback:un,useContext:un,useEffect:un,useImperativeHandle:un,useInsertionEffect:un,useLayoutEffect:un,useMemo:un,useReducer:un,useRef:un,useState:un,useDebugValue:un,useDeferredValue:un,useTransition:un,useMutableSource:un,useSyncExternalStore:un,useId:un,unstable_isNewReconciler:!1},pE={readContext:Gn,useCallback:function(a,l){return Ii().memoizedState=[a,l===void 0?null:l],a},useContext:Gn,useEffect:Rb,useImperativeHandle:function(a,l,p){return p=p!=null?p.concat([a]):null,su(4194308,4,Lb.bind(null,l,a),p)},useLayoutEffect:function(a,l){return su(4194308,4,a,l)},useInsertionEffect:function(a,l){return su(4,2,a,l)},useMemo:function(a,l){var p=Ii();return l=l===void 0?null:l,a=a(),p.memoizedState=[a,l],a},useReducer:function(a,l,p){var g=Ii();return l=p!==void 0?p(l):l,g.memoizedState=g.baseState=l,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:l},g.queue=a,a=a.dispatch=uE.bind(null,Nt,a),[g.memoizedState,a]}
vendor: 4,548 bytes, lines 38-40
38,useRef:function(a){var l=Ii();return a={current:a},l.memoizedState=a},useState:Pb,useDebugValue:Xf,useDeferredValue:function(a){return Ii().memoizedState=a},useTransition:function(){var a=Pb(!1),l=a[0];return a=dE.bind(null,a[1]),Ii().memoizedState=a,[l,a]},useMutableSource:function(){},useSyncExternalStore:function(a,l,p){var g=Nt,v=Ii();if(St){if(p===void 0)throw Error(n(407));p=p()}else{if(p=l(),Zt===null)throw Error(n(349));(Hr&30)!==0||Cb(g,l,p)}v.memoizedState=p;var _={value:p,getSnapshot:l};return v.queue=_,Rb(Tb.bind(null,g,_,a),[a]),g.flags|=2048,Nl(9,Nb.bind(null,g,_,p,l),void 0,null),p},useId:function(){var a=Ii(),l=Zt.identifierPrefix;if(St){var p=ss,g=is;p=(g&~(1<<32-ci(g)-1)).toString(32)+p,l=":"+l+"R"+p,p=jl++,0<p&&(l+="H"+p.toString(32)),l+=":"}else p=cE++,l=":"+l+"r"+p.toString(32)+":";return a.memoizedState=l},unstable_isNewReconciler:!1},fE={readContext:Gn,useCallback:Fb,useContext:Gn,useEffect:Qf,useImperativeHandle:Db,useInsertionEffect:Mb,useLayoutEffect:Ob,useMemo:$b,useReducer:Yf,useRef:Ib,useState:function(){return Yf(Cl)},useDebugValue:Xf,useDeferredValue:function(a){var l=Yn();return Bb(l,Vt.memoizedState,a)},useTransition:function(){var a=Yf(Cl)[0],l=Yn().memoizedState;return[a,l]},useMutableSource:Sb,useSyncExternalStore:jb,useId:zb,unstable_isNewReconciler:!1},mE={readContext:Gn,useCallback:Fb,useContext:Gn,useEffect:Qf,useImperativeHandle:Db,useInsertionEffect:Mb,useLayoutEffect:Ob,useMemo:$b,useReducer:Kf,useRef:Ib,useState:function(){return Kf(Cl)},useDebugValue:Xf,useDeferredValue:function(a){var l=Yn();return Vt===null?l.memoizedState=a:Bb(l,Vt.memoizedState,a)},useTransition:function(){var a=Kf(Cl)[0],l=Yn().memoizedState;return[a,l]},useMutableSource:Sb,useSyncExternalStore:jb,useId:zb,unstable_isNewReconciler:!1};function hi(a,l){if(a&&a.defaultProps){l=H({},l),a=a.defaultProps;for(var p in a)l[p]===void 0&&(l[p]=a[p]);return l}return l}function Zf(a,l,p,g){l=a.memoizedState,p=p(g,l),p=p==null?l:H({},l,p),a.memoizedState=p,a.lanes===0&&(a.updateQueue.baseState=p)}var ou={isMounted:function(a){return(a=a._reactInternals)?Lr(a)===a:!1},enqueueSetState:function(a,l,p){a=a._reactInternals;var g=gn(),v=Gs(a),_=as(g,v);_.payload=l,p!=null&&(_.callback=p),l=Hs(a,_,v),l!==null&&(mi(l,a,v,g),Jd(l,a,v))},enqueueReplaceState:function(a,l,p){a=a._reactInternals;var g=gn(),v=Gs(a),_=as(g,v);_.tag=1,_.payload=l,p!=null&&(_.callback=p),l=Hs(a,_,v),l!==null&&(mi(l,a,v,g),Jd(l,a,v))},enqueueForceUpdate:function(a,l){a=a._reactInternals;var p=gn(),g=Gs(a),v=as(p,g);v.tag=2,l!=null&&(v.callback=l),l=Hs(a,v,g),l!==null&&(mi(l,a,g,p),Jd(l,a,g))}};function qb(a,l,p,g,v,_,C){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(g,_,C):l.prototype&&l.prototype.isPureReactComponent?!pl(p,g)||!pl(v,_):!0}function Ub(a,l,p){var g=!1,v=Bs,_=l.contextType;return typeof _=="object"&&_!==null?_=Gn(_):(v=Sn(l)?Fr:dn.current,g=l.contextTypes,_=(g=g!=null)?za(a,v):Bs),l=new l(p,_),a.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=ou,a.stateNode=l,l._reactInternals=a,g&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=v,a.__reactInternalMemoizedMaskedChildContext=_),l}function Gb(a,l,p,g){a=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(p,g),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(p,g),l.state!==a&&ou.enqueueReplaceState(l,l.state,null)}function Jf(a,l,p,g){var v=a.stateNode;v.props=p,v.state=a.memoizedState,v.refs={},$f(a);var _=l.contextType;typeof _=="object"&&_!==null?v.context=Gn(_):(_=Sn(l)?Fr:dn.current,v.context=za(a,_)),v.state=a.memoizedState,_=l.getDerivedStateFromProps,typeof _=="function"&&(Zf(a,l,_,p),v.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(l=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),l!==v.state&&ou.enqueueReplaceState(v,v.state,null),eu(a,p,v,g),v.state=a.memoizedState),typeof v.componentDidMount=="function"&&(a.flags|=4194308)}function Ka(a,l){try{var p="",g=l;do p+=te(g),g=g.return;while(g);var v=p}catch(_){v=`
39Error generating stack: `+_.message+`
40`+_.stack}return{value:a,source:l,stack:v,digest:null}}function em(a,l,p){return{value:a,source:null,stack:p??null,digest:l??null}}function tm(a,l){try{console.error(l.value)}
vendor: 17,654 bytes, line 40
40catch(p){setTimeout(function(){throw p})}}var gE=typeof WeakMap=="function"?WeakMap:Map;function Yb(a,l,p){p=as(-1,p),p.tag=3,p.payload={element:null};var g=l.value;return p.callback=function(){fu||(fu=!0,gm=g),tm(a,l)},p}function Kb(a,l,p){p=as(-1,p),p.tag=3;var g=a.type.getDerivedStateFromError;if(typeof g=="function"){var v=l.value;p.payload=function(){return g(v)},p.callback=function(){tm(a,l)}}var _=a.stateNode;return _!==null&&typeof _.componentDidCatch=="function"&&(p.callback=function(){tm(a,l),typeof g!="function"&&(qs===null?qs=new Set([this]):qs.add(this));var C=l.stack;this.componentDidCatch(l.value,{componentStack:C!==null?C:""})}),p}function Qb(a,l,p){var g=a.pingCache;if(g===null){g=a.pingCache=new gE;var v=new Set;g.set(l,v)}else v=g.get(l),v===void 0&&(v=new Set,g.set(l,v));v.has(p)||(v.add(p),a=AE.bind(null,a,l,p),l.then(a,a))}function Xb(a){do{var l;if((l=a.tag===13)&&(l=a.memoizedState,l=l!==null?l.dehydrated!==null:!0),l)return a;a=a.return}while(a!==null);return null}function Zb(a,l,p,g,v){return(a.mode&1)===0?(a===l?a.flags|=65536:(a.flags|=128,p.flags|=131072,p.flags&=-52805,p.tag===1&&(p.alternate===null?p.tag=17:(l=as(-1,1),l.tag=2,Hs(p,l,1))),p.lanes|=1),a):(a.flags|=65536,a.lanes=v,a)}var xE=E.ReactCurrentOwner,jn=!1;function mn(a,l,p,g){l.child=a===null?vb(l,null,p,g):qa(l,a.child,p,g)}function Jb(a,l,p,g,v){p=p.render;var _=l.ref;return Ga(l,v),g=Uf(a,l,p,g,_,v),p=Gf(),a!==null&&!jn?(l.updateQueue=a.updateQueue,l.flags&=-2053,a.lanes&=~v,os(a,l,v)):(St&&p&&Ef(l),l.flags|=1,mn(a,l,g,v),l.child)}function ew(a,l,p,g,v){if(a===null){var _=p.type;return typeof _=="function"&&!km(_)&&_.defaultProps===void 0&&p.compare===null&&p.defaultProps===void 0?(l.tag=15,l.type=_,tw(a,l,_,g,v)):(a=bu(p.type,null,g,l,l.mode,v),a.ref=l.ref,a.return=l,l.child=a)}if(_=a.child,(a.lanes&v)===0){var C=_.memoizedProps;if(p=p.compare,p=p!==null?p:pl,p(C,g)&&a.ref===l.ref)return os(a,l,v)}return l.flags|=1,a=Ks(_,g),a.ref=l.ref,a.return=l,l.child=a}function tw(a,l,p,g,v){if(a!==null){var _=a.memoizedProps;if(pl(_,g)&&a.ref===l.ref)if(jn=!1,l.pendingProps=g=_,(a.lanes&v)!==0)(a.flags&131072)!==0&&(jn=!0);else return l.lanes=a.lanes,os(a,l,v)}return nm(a,l,p,g,v)}function nw(a,l,p){var g=l.pendingProps,v=g.children,_=a!==null?a.memoizedState:null;if(g.mode==="hidden")if((l.mode&1)===0)l.memoizedState={baseLanes:0,cachePool:null,transitions:null},ft(Xa,$n),$n|=p;else{if((p&1073741824)===0)return a=_!==null?_.baseLanes|p:p,l.lanes=l.childLanes=1073741824,l.memoizedState={baseLanes:a,cachePool:null,transitions:null},l.updateQueue=null,ft(Xa,$n),$n|=a,null;l.memoizedState={baseLanes:0,cachePool:null,transitions:null},g=_!==null?_.baseLanes:p,ft(Xa,$n),$n|=g}else _!==null?(g=_.baseLanes|p,l.memoizedState=null):g=p,ft(Xa,$n),$n|=g;return mn(a,l,v,p),l.child}function iw(a,l){var p=l.ref;(a===null&&p!==null||a!==null&&a.ref!==p)&&(l.flags|=512,l.flags|=2097152)}function nm(a,l,p,g,v){var _=Sn(p)?Fr:dn.current;return _=za(l,_),Ga(l,v),p=Uf(a,l,p,g,_,v),g=Gf(),a!==null&&!jn?(l.updateQueue=a.updateQueue,l.flags&=-2053,a.lanes&=~v,os(a,l,v)):(St&&g&&Ef(l),l.flags|=1,mn(a,l,p,v),l.child)}function sw(a,l,p,g,v){if(Sn(p)){var _=!0;qd(l)}else _=!1;if(Ga(l,v),l.stateNode===null)cu(a,l),Ub(l,p,g),Jf(l,p,g,v),g=!0;else if(a===null){var C=l.stateNode,I=l.memoizedProps;C.props=I;var D=C.context,q=p.contextType;typeof q=="object"&&q!==null?q=Gn(q):(q=Sn(p)?Fr:dn.current,q=za(l,q));var se=p.getDerivedStateFromProps,oe=typeof se=="function"||typeof C.getSnapshotBeforeUpdate=="function";oe||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(I!==g||D!==q)&&Gb(l,C,g,q),Vs=!1;var ie=l.memoizedState;C.state=ie,eu(l,g,C,v),D=l.memoizedState,I!==g||ie!==D||kn.current||Vs?(typeof se=="function"&&(Zf(l,p,se,g),D=l.memoizedState),(I=Vs||qb(l,p,I,g,ie,D,q))?(oe||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(l.flags|=4194308)):(typeof C.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=g,l.memoizedState=D),C.props=g,C.state=D,C.context=q,g=I):(typeof C.componentDidMount=="function"&&(l.flags|=4194308),g=!1)}else{C=l.stateNode,bb(a,l),I=l.memoizedProps,q=l.type===l.elementType?I:hi(l.type,I),C.props=q,oe=l.pendingProps,ie=C.context,D=p.contextType,typeof D=="object"&&D!==null?D=Gn(D):(D=Sn(p)?Fr:dn.current,D=za(l,D));var pe=p.getDerivedStateFromProps;(se=typeof pe=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(I!==oe||ie!==D)&&Gb(l,C,g,D),Vs=!1,ie=l.memoizedState,C.state=ie,eu(l,g,C,v);var _e=l.memoizedState;I!==oe||ie!==_e||kn.current||Vs?(typeof pe=="function"&&(Zf(l,p,pe,g),_e=l.memoizedState),(q=Vs||qb(l,p,q,g,ie,_e,D)||!1)?(se||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(g,_e,D),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(g,_e,D)),typeof C.componentDidUpdate=="function"&&(l.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof C.componentDidUpdate!="function"||I===a.memoizedProps&&ie===a.memoizedState||(l.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||I===a.memoizedProps&&ie===a.memoizedState||(l.flags|=1024),l.memoizedProps=g,l.memoizedState=_e),C.props=g,C.state=_e,C.context=D,g=q):(typeof C.componentDidUpdate!="function"||I===a.memoizedProps&&ie===a.memoizedState||(l.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||I===a.memoizedProps&&ie===a.memoizedState||(l.flags|=1024),g=!1)}return im(a,l,p,g,_,v)}function im(a,l,p,g,v,_){iw(a,l);var C=(l.flags&128)!==0;if(!g&&!C)return v&&cb(l,p,!1),os(a,l,_);g=l.stateNode,xE.current=l;var I=C&&typeof p.getDerivedStateFromError!="function"?null:g.render();return l.flags|=1,a!==null&&C?(l.child=qa(l,a.child,null,_),l.child=qa(l,null,I,_)):mn(a,l,I,_),l.memoizedState=g.state,v&&cb(l,p,!0),l.child}function rw(a){var l=a.stateNode;l.pendingContext?ob(a,l.pendingContext,l.pendingContext!==l.context):l.context&&ob(a,l.context,!1),Bf(a,l.containerInfo)}function aw(a,l,p,g,v){return Wa(),Rf(v),l.flags|=256,mn(a,l,p,g),l.child}var sm={dehydrated:null,treeContext:null,retryLane:0};function rm(a){return{baseLanes:a,cachePool:null,transitions:null}}function ow(a,l,p){var g=l.pendingProps,v=Ct.current,_=!1,C=(l.flags&128)!==0,I;if((I=C)||(I=a!==null&&a.memoizedState===null?!1:(v&2)!==0),I?(_=!0,l.flags&=-129):(a===null||a.memoizedState!==null)&&(v|=1),ft(Ct,v&1),a===null)return If(l),a=l.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?((l.mode&1)===0?l.lanes=1:a.data==="$!"?l.lanes=8:l.lanes=1073741824,null):(C=g.children,a=g.fallback,_?(g=l.mode,_=l.child,C={mode:"hidden",children:C},(g&1)===0&&_!==null?(_.childLanes=0,_.pendingProps=C):_=wu(C,g,0,null),a=Yr(a,g,p,null),_.return=l,a.return=l,_.sibling=a,l.child=_,l.child.memoizedState=rm(p),l.memoizedState=sm,a):am(l,C));if(v=a.memoizedState,v!==null&&(I=v.dehydrated,I!==null))return vE(a,l,C,g,I,v,p);if(_){_=g.fallback,C=l.mode,v=a.child,I=v.sibling;var D={mode:"hidden",children:g.children};return(C&1)===0&&l.child!==v?(g=l.child,g.childLanes=0,g.pendingProps=D,l.deletions=null):(g=Ks(v,D),g.subtreeFlags=v.subtreeFlags&14680064),I!==null?_=Ks(I,_):(_=Yr(_,C,p,null),_.flags|=2),_.return=l,g.return=l,g.sibling=_,l.child=g,g=_,_=l.child,C=a.child.memoizedState,C=C===null?rm(p):{baseLanes:C.baseLanes|p,cachePool:null,transitions:C.transitions},_.memoizedState=C,_.childLanes=a.childLanes&~p,l.memoizedState=sm,g}return _=a.child,a=_.sibling,g=Ks(_,{mode:"visible",children:g.children}),(l.mode&1)===0&&(g.lanes=p),g.return=l,g.sibling=null,a!==null&&(p=l.deletions,p===null?(l.deletions=[a],l.flags|=16):p.push(a)),l.child=g,l.memoizedState=null,g}function am(a,l){return l=wu({mode:"visible",children:l},a.mode,0,null),l.return=a,a.child=l}function lu(a,l,p,g){return g!==null&&Rf(g),qa(l,a.child,null,p),a=am(l,l.pendingProps.children),a.flags|=2,l.memoizedState=null,a}function vE(a,l,p,g,v,_,C){if(p)return l.flags&256?(l.flags&=-257,g=em(Error(n(422))),lu(a,l,C,g)):l.memoizedState!==null?(l.child=a.child,l.flags|=128,null):(_=g.fallback,v=l.mode,g=wu({mode:"visible",children:g.children},v,0,null),_=Yr(_,v,C,null),_.flags|=2,g.return=l,_.return=l,g.sibling=_,l.child=g,(l.mode&1)!==0&&qa(l,a.child,null,C),l.child.memoizedState=rm(C),l.memoizedState=sm,_);if((l.mode&1)===0)return lu(a,l,C,null);if(v.data==="$!"){if(g=v.nextSibling&&v.nextSibling.dataset,g)var I=g.dgst;return g=I,_=Error(n(419)),g=em(_,g,void 0),lu(a,l,C,g)}if(I=(C&a.childLanes)!==0,jn||I){if(g=Zt,g!==null){switch(C&-C){case 4:v=2;break;case 16:v=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:v=32;break;case 536870912:v=268435456;break;default:v=0}v=(v&(g.suspendedLanes|C))!==0?0:v,v!==0&&v!==_.retryLane&&(_.retryLane=v,rs(a,v),mi(g,a,v,-1))}return _m(),g=em(Error(n(421))),lu(a,l,C,g)}return v.data==="$?"?(l.flags|=128,l.child=a.child,l=PE.bind(null,a),v._reactRetry=l,null):(a=_.treeContext,Fn=Fs(v.nextSibling),Dn=l,St=!0,ui=null,a!==null&&(qn[Un++]=is,qn[Un++]=ss,qn[Un++]=$r,is=a.id,ss=a.overflow,$r=l),l=am(l,g.children),l.flags|=4096,l)}function lw(a,l,p){a.lanes|=l;var g=a.alternate;g!==null&&(g.lanes|=l),Df(a.return,l,p)}function om(a,l,p,g,v){var _=a.memoizedState;_===null?a.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:g,tail:p,tailMode:v}:(_.isBackwards=l,_.rendering=null,_.renderingStartTime=0,_.last=g,_.tail=p,_.tailMode=v)}function cw(a,l,p){var g=l.pendingProps,v=g.revealOrder,_=g.tail;if(mn(a,l,g.children,p),g=Ct.current,(g&2)!==0)g=g&1|2,l.flags|=128;else{if(a!==null&&(a.flags&128)!==0)e:for(a=l.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&lw(a,p,l);else if(a.tag===19)lw(a,p,l);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===l)break e;for(;a.sibling===null;){if(a.return===null||a.return===l)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}g&=1}if(ft(Ct,g),(l.mode&1)===0)l.memoizedState=null;else switch(v){case"forwards":for(p=l.child,v=null;p!==null;)a=p.alternate,a!==null&&tu(a)===null&&(v=p),p=p.sibling;p=v,p===null?(v=l.child,l.child=null):(v=p.sibling,p.sibling=null),om(l,!1,v,p,_);break;case"backwards":for(p=null,v=l.child,l.child=null;v!==null;){if(a=v.alternate,a!==null&&tu(a)===null){l.child=v;break}a=v.sibling,v.sibling=p,p=v,v=a}om(l,!0,p,null,_);break;case"together":om(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function cu(a,l){(l.mode&1)===0&&a!==null&&(a.alternate=null,l.alternate=null,l.flags|=2)}function os(a,l,p){if(a!==null&&(l.dependencies=a.dependencies),Wr|=l.lanes,(p&l.childLanes)===0)return null;if(a!==null&&l.child!==a.child)throw Error(n(153));if(l.child!==null){for(a=l.child,p=Ks(a,a.pendingProps),l.child=p,p.return=l;a.sibling!==null;)a=a.sibling,p=p.sibling=Ks(a,a.pendingProps),p.return=l;p.sibling=null}return l.child}function yE(a,l,p){switch(l.tag){case 3:rw(l),Wa();break;case 5:kb(l);break;case 1:Sn(l.type)&&qd(l);break;case 4:Bf(l,l.stateNode.containerInfo);break;case 10:var g=l.type._context,v=l.memoizedProps.value;ft(Xd,g._currentValue),g._currentValue=v;break;case 13:if(g=l.memoizedState,g!==null)return g.dehydrated!==null?(ft(Ct,Ct.current&1),l.flags|=128,null):(p&l.child.childLanes)!==0?ow(a,l,p):(ft(Ct,Ct.current&1),a=os(a,l,p),a!==null?a.sibling:null);ft(Ct,Ct.current&1);break;case 19:if(g=(p&l.childLanes)!==0,(a.flags&128)!==0){if(g)return cw(a,l,p);l.flags|=128}if(v=l.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),ft(Ct,Ct.current),g)break;return null;case 22:case 23:return l.lanes=0,nw(a,l,p)}return os(a,l,p)}var dw,lm,uw,hw;dw=function(a,l){for(var p=l.child;p!==null;){if(p.tag===5||p.tag===6)a.appendChild(p.stateNode);else if(p.tag!==4&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===l)break;for(;p.sibling===null;){if(p.return===null||p.return===l)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},lm=function(){},uw=function(a,l,p,g){var v=a.memoizedProps;if(v!==g){a=l.stateNode,Vr(Pi.current);var _=null;switch(p){case"input":v=Ti(a,v),g=Ti(a,g),_=[];break;case"select":v=H({},v,{value:void 0}),g=H({},g,{value:void 0}),_=[];break;case"textarea":v=Ta(a,v),g=Ta(a,g),_=[];break;default:typeof v.onClick!="function"&&typeof g.onClick=="function"&&(a.onclick=Vd)}zp(p,g);var C;p=null;for(q in v)if(!g.hasOwnProperty(q)&&v.hasOwnProperty(q)&&v[q]!=null)if(q==="style"){var I=v[q];for(C in I)I.hasOwnProperty(C)&&(p||(p={}),p[C]="")}else q!=="dangerouslySetInnerHTML"&&q!=="children"&&q!=="suppressContentEditableWarning"&&q!=="suppressHydrationWarning"&&q!=="autoFocus"&&(s.hasOwnProperty(q)?_||(_=[]):(_=_||[]).push(q,null));for(q in g){var D=g[q];if(I=v!=null?v[q]:void 0,g.hasOwnProperty(q)&&D!==I&&(D!=null||I!=null))if(q==="style")if(I){for(C in I)!I.hasOwnProperty(C)||D&&D.hasOwnProperty(C)||(p||(p={}),p[C]="");for(C in D)D.hasOwnProperty(C)&&I[C]!==D[C]&&(p||(p={}),p[C]=D[C])}else p||(_||(_=[]),_.push(q,p)),p=D;else q==="dangerouslySetInnerHTML"?(D=D?D.__html:void 0,I=I?I.__html:void 0,D!=null&&I!==D&&(_=_||[]).push(q,D)):q==="children"?typeof D!="string"&&typeof D!="number"||(_=_||[]).push(q,""+D):q!=="suppressContentEditableWarning"&&q!=="suppressHydrationWarning"&&(s.hasOwnProperty(q)?(D!=null&&q==="onScroll"&&mt("scroll",a),_||I===D||(_=[])):(_=_||[]).push(q,D))}p&&(_=_||[]).push("style",p);var q=_;(l.updateQueue=q)&&(l.flags|=4)}},hw=function(a,l,p,g){p!==g&&(l.flags|=4)};function Tl(a,l){if(!St)switch(a.tailMode){case"hidden":l=a.tail;for(var p=null;l!==null;)l.alternate!==null&&(p=l),l=l.sibling;p===null?a.tail=null:p.sibling=null;break;case"collapsed":p=a.tail;for(var g=null;p!==null;)p.alternate!==null&&(g=p),p=p.sibling;g===null?l||a.tail===null?a.tail=null:a.tail.sibling=null:g.sibling=null}}function hn(a){var l=a.alternate!==null&&a.alternate.child===a.child,p=0,g=0;if(l)for(var v=a.child;v!==null;)p|=v.lanes|v.childLanes,g|=v.subtreeFlags&14680064,g|=v.flags&14680064,v.return=a,v=v.sibling;else for(v=a.child;v!==null;)p|=v.lanes|v.childLanes,g|=v.subtreeFlags,g|=v.flags,v.return=a,v=v.sibling;return a.subtreeFlags|=g,a.childLanes=p,l}function bE(a,l,p){var g=l.pendingProps;switch(Af(l),l.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hn(l),null;case 1:return Sn(l.type)&&Wd(),hn(l),null;case 3:return g=l.stateNode,Ya(),gt(kn),gt(dn),Hf(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(a===null||a.child===null)&&(Kd(l)?l.flags|=4:a===null||a.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,ui!==null&&(ym(ui),ui=null))),lm(a,l),hn(l),null;case 5:zf(l);var v=Vr(kl.current);if(p=l.type,a!==null&&l.stateNode!=null)uw(a,l,p,g,v),a.ref!==l.ref&&(l.flags|=512,l.flags|=2097152);else{if(!g){if(l.stateNode===null)throw Error(n(166));return hn(l),null}if(a=Vr(Pi.current),Kd(l)){g=l.stateNode,p=l.type;var _=l.memoizedProps;switch(g[Ai]=l,g[vl]=_,a=(l.mode&1)!==0,p){case"dialog":mt("cancel",g),mt("close",g);break;case"iframe":case"object":case"embed":mt("load",g);break;case"video":case"audio":for(v=0;v<ml.length;v++)mt(ml[v],g);break;case"source":mt("error",g);break;case"img":case"image":case"link":mt("error",g),mt("load",g);break;case"details":mt("toggle",g);break;case"input":yd(g,_),mt("invalid",g);break;case"select":g._wrapperState={wasMultiple:!!_.multiple},mt("invalid",g);break;case"textarea":Ea(g,_),mt("invalid",g)}zp(p,_),v=null;for(var C in _)if(_.hasOwnProperty(C)){var I=_[C];C==="children"?typeof I=="string"?g.textContent!==I&&(_.suppressHydrationWarning!==!0&&zd(g.textContent,I,a),v=["children",I]):typeof I=="number"&&g.textContent!==""+I&&(_.suppressHydrationWarning!==!0&&zd(g.textContent,I,a),v=["children",""+I]):s.hasOwnProperty(C)&&I!=null&&C==="onScroll"&&mt("scroll",g)}switch(p){case"input":oi(g),Ko(g,_,!0);break;case"textarea":oi(g),X0(g);break;case"select":case"option":break;default:typeof _.onClick=="function"&&(g.onclick=Vd)}g=v,l.updateQueue=g,g!==null&&(l.flags|=4)}else{C=v.nodeType===9?v:v.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=Z0(p)),a==="http://www.w3.org/1999/xhtml"?p==="script"?(a=C.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof g.is=="string"?a=C.createElement(p,{is:g.is}):(a=C.createElement(p),p==="select"&&(C=a,g.multiple?C.multiple=!0:g.size&&(C.size=g.size))):a=C.createElementNS(a,p),a[Ai]=l,a[vl]=g,dw(a,l,!1,!1),l.stateNode=a;e:{switch(C=Vp(p,g),p){case"dialog":mt("cancel",a),mt("close",a),v=g;break;case"iframe":case"object":case"embed":mt("load",a),v=g;break;case"video":case"audio":for(v=0;v<ml.length;v++)mt(ml[v],a);v=g;break;case"source":mt("error",a),v=g;break;case"img":case"image":case"link":mt("error",a),mt("load",a),v=g;break;case"details":mt("toggle",a),v=g;break;case"input":yd(a,g),v=Ti(a,g),mt("invalid",a);break;case"option":v=g;break;case"select":a._wrapperState={wasMultiple:!!g.multiple},v=H({},g,{value:void 0}),mt("invalid",a);break;case"textarea":Ea(a,g),v=Ta(a,g),mt("invalid",a);break;default:v=g}zp(p,v),I=v;for(_ in I)if(I.hasOwnProperty(_)){var D=I[_];_==="style"?ty(a,D):_==="dangerouslySetInnerHTML"?(D=D?D.__html:void 0,D!=null&&J0(a,D)):_==="children"?typeof D=="str
40ing"?(p!=="textarea"||D!=="")&&Qo(a,D):typeof D=="number"&&Qo(a,""+D):_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&_!=="autoFocus"&&(s.hasOwnProperty(_)?D!=null&&_==="onScroll"&&mt("scroll",a):D!=null&&N(a,_,D,C))}switch(p){case"input":oi(a),Ko(a,g,!1);break;case"textarea":oi(a),X0(a);break;case"option":g.value!=null&&a.setAttribute("value",""+Ee(g.value));break;case"select":a.multiple=!!g.multiple,_=g.value,_!=null?es(a,!!g.multiple,_,!1):g.defaultValue!=null&&es(a,!!g.multiple,g.defaultValue,!0);break;default:typeof v.onClick=="function"&&(a.onclick=Vd)}switch(p){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break e;case"img":g=!0;break e;default:g=!1}}g&&(l.flags|=4)}l.ref!==null&&(l.flags|=512,l.flags|=2097152)}return hn(l),null;case 6:if(a&&l.stateNode!=null)hw(a,l,a.memoizedProps,g);else{if(typeof g!="string"&&l.stateNode===null)throw Error(n(166));if(p=Vr(kl.current),Vr(Pi.current),Kd(l)){if(g=l.stateNode,p=l.memoizedProps,g[Ai]=l,(_=g.nodeValue!==p)&&(a=Dn,a!==null))switch(a.tag){case 3:zd(g.nodeValue,p,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&zd(g.nodeValue,p,(a.mode&1)!==0)}_&&(l.flags|=4)}else g=(p.nodeType===9?p:p.ownerDocument).createTextNode(g),g[Ai]=l,l.stateNode=g}return hn(l),null;case 13:if(gt(Ct),g=l.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(St&&Fn!==null&&(l.mode&1)!==0&&(l.flags&128)===0)mb(),Wa(),l.flags|=98560,_=!1;else if(_=Kd(l),g!==null&&g.dehydrated!==null){if(a===null){if(!_)throw Error(n(318));if(_=l.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(n(317));_[Ai]=l}else Wa(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;hn(l),_=!1}else ui!==null&&(ym(ui),ui=null),_=!0;if(!_)return l.flags&65536?l:null}return(l.flags&128)!==0?(l.lanes=p,l):(g=g!==null,g!==(a!==null&&a.memoizedState!==null)&&g&&(l.child.flags|=8192,(l.mode&1)!==0&&(a===null||(Ct.current&1)!==0?Ht===0&&(Ht=3):_m())),l.updateQueue!==null&&(l.flags|=4),hn(l),null);case 4:return Ya(),lm(a,l),a===null&&gl(l.stateNode.containerInfo),hn(l),null;case 10:return Lf(l.type._context),hn(l),null;case 17:return Sn(l.type)&&Wd(),hn(l),null;case 19:if(gt(Ct),_=l.memoizedState,_===null)return hn(l),null;if(g=(l.flags&128)!==0,C=_.rendering,C===null)if(g)Tl(_,!1);else{if(Ht!==0||a!==null&&(a.flags&128)!==0)for(a=l.child;a!==null;){if(C=tu(a),C!==null){for(l.flags|=128,Tl(_,!1),g=C.updateQueue,g!==null&&(l.updateQueue=g,l.flags|=4),l.subtreeFlags=0,g=p,p=l.child;p!==null;)_=p,a=g,_.flags&=14680066,C=_.alternate,C===null?(_.childLanes=0,_.lanes=a,_.child=null,_.subtreeFlags=0,_.memoizedProps=null,_.memoizedState=null,_.updateQueue=null,_.dependencies=null,_.stateNode=null):(_.childLanes=C.childLanes,_.lanes=C.lanes,_.child=C.child,_.subtreeFlags=0,_.deletions=null,_.memoizedProps=C.memoizedProps,_.memoizedState=C.memoizedState,_.updateQueue=C.updateQueue,_.type=C.type,a=C.dependencies,_.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),p=p.sibling;return ft(Ct,Ct.current&1|2),l.child}a=a.sibling}_.tail!==null&&At()>Za&&(l.flags|=128,g=!0,Tl(_,!1),l.lanes=4194304)}else{if(!g)if(a=tu(C),a!==null){if(l.flags|=128,g=!0,p=a.updateQueue,p!==null&&(l.updateQueue=p,l.flags|=4),Tl(_,!0),_.tail===null&&_.tailMode==="hidden"&&!C.alternate&&!St)return hn(l),null}else 2*At()-_.renderingStartTime>Za&&p!==1073741824&&(l.flags|=128,g=!0,Tl(_,!1),l.lanes=4194304);_.isBackwards?(C.sibling=l.child,l.child=C):(p=_.last,p!==null?p.sibling=C:l.child=C,_.last=C)}return _.tail!==null?(l=_.tail,_.rendering=l,_.tail=l.sibling,_.renderingStartTime=At(),l.sibling=null,p=Ct.current,ft(Ct,g?p&1|2:p&1),l):(hn(l),null);case 22:case 23:return wm(),g=l.memoizedState!==null,a!==null&&a.memoizedState!==null!==g&&(l.flags|=8192),g&&(l.mode&1)!==0?($n&1073741824)!==0&&(hn(l),l.subtreeFlags&6&&(l.flags|=8192)):hn(l),null;case 24:return null;case 25:return null}throw Error(n(156,l.tag))}function wE(a,l){switch(Af(l),l.tag){case 1:return Sn(l.type)&&Wd(),a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 3:return Ya(),gt(kn),gt(dn),Hf(),a=l.flags,(a&65536)!==0&&(a&128)===0?(l.flags=a&-65537|128,l):null;case 5:return zf(l),null;case 13:if(gt(Ct),a=l.memoizedState,a!==null&&a.dehydrated!==null){if(l.alternate===null)throw Error(n(340));Wa()}return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 19:return gt(Ct),null;case 4:return Ya(),null;
vendor: 12,156 bytes, line 40
40case 10:return Lf(l.type._context),null;case 22:case 23:return wm(),null;case 24:return null;default:return null}}var du=!1,pn=!1,_E=typeof WeakSet=="function"?WeakSet:Set,ye=null;function Qa(a,l){var p=a.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(g){Tt(a,l,g)}else p.current=null}function cm(a,l,p){try{p()}catch(g){Tt(a,l,g)}}var pw=!1;function kE(a,l){if(wf=Ad,a=qy(),pf(a)){if("selectionStart"in a)var p={start:a.selectionStart,end:a.selectionEnd};else e:{p=(p=a.ownerDocument)&&p.defaultView||window;var g=p.getSelection&&p.getSelection();if(g&&g.rangeCount!==0){p=g.anchorNode;var v=g.anchorOffset,_=g.focusNode;g=g.focusOffset;try{p.nodeType,_.nodeType}catch{p=null;break e}var C=0,I=-1,D=-1,q=0,se=0,oe=a,ie=null;t:for(;;){for(var pe;oe!==p||v!==0&&oe.nodeType!==3||(I=C+v),oe!==_||g!==0&&oe.nodeType!==3||(D=C+g),oe.nodeType===3&&(C+=oe.nodeValue.length),(pe=oe.firstChild)!==null;)ie=oe,oe=pe;for(;;){if(oe===a)break t;if(ie===p&&++q===v&&(I=C),ie===_&&++se===g&&(D=C),(pe=oe.nextSibling)!==null)break;oe=ie,ie=oe.parentNode}oe=pe}p=I===-1||D===-1?null:{start:I,end:D}}else p=null}p=p||{start:0,end:0}}else p=null;for(_f={focusedElem:a,selectionRange:p},Ad=!1,ye=l;ye!==null;)if(l=ye,a=l.child,(l.subtreeFlags&1028)!==0&&a!==null)a.return=l,ye=a;else for(;ye!==null;){l=ye;try{var _e=l.alternate;if((l.flags&1024)!==0)switch(l.tag){case 0:case 11:case 15:break;case 1:if(_e!==null){var Se=_e.memoizedProps,Pt=_e.memoizedState,z=l.stateNode,$=z.getSnapshotBeforeUpdate(l.elementType===l.type?Se:hi(l.type,Se),Pt);z.__reactInternalSnapshotBeforeUpdate=$}break;case 3:var V=l.stateNode.containerInfo;V.nodeType===1?V.textContent="":V.nodeType===9&&V.documentElement&&V.removeChild(V.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(de){Tt(l,l.return,de)}if(a=l.sibling,a!==null){a.return=l.return,ye=a;break}ye=l.return}return _e=pw,pw=!1,_e}function El(a,l,p){var g=l.updateQueue;if(g=g!==null?g.lastEffect:null,g!==null){var v=g=g.next;do{if((v.tag&a)===a){var _=v.destroy;v.destroy=void 0,_!==void 0&&cm(l,p,_)}v=v.next}while(v!==g)}}function uu(a,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var p=l=l.next;do{if((p.tag&a)===a){var g=p.create;p.destroy=g()}p=p.next}while(p!==l)}}function dm(a){var l=a.ref;if(l!==null){var p=a.stateNode;switch(a.tag){case 5:a=p;break;default:a=p}typeof l=="function"?l(a):l.current=a}}function fw(a){var l=a.alternate;l!==null&&(a.alternate=null,fw(l)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(l=a.stateNode,l!==null&&(delete l[Ai],delete l[vl],delete l[Cf],delete l[rE],delete l[aE])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function mw(a){return a.tag===5||a.tag===3||a.tag===4}function gw(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||mw(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function um(a,l,p){var g=a.tag;if(g===5||g===6)a=a.stateNode,l?p.nodeType===8?p.parentNode.insertBefore(a,l):p.insertBefore(a,l):(p.nodeType===8?(l=p.parentNode,l.insertBefore(a,p)):(l=p,l.appendChild(a)),p=p._reactRootContainer,p!=null||l.onclick!==null||(l.onclick=Vd));else if(g!==4&&(a=a.child,a!==null))for(um(a,l,p),a=a.sibling;a!==null;)um(a,l,p),a=a.sibling}function hm(a,l,p){var g=a.tag;if(g===5||g===6)a=a.stateNode,l?p.insertBefore(a,l):p.appendChild(a);else if(g!==4&&(a=a.child,a!==null))for(hm(a,l,p),a=a.sibling;a!==null;)hm(a,l,p),a=a.sibling}var sn=null,pi=!1;function Ws(a,l,p){for(p=p.child;p!==null;)xw(a,l,p),p=p.sibling}function xw(a,l,p){if(Ei&&typeof Ei.onCommitFiberUnmount=="function")try{Ei.onCommitFiberUnmount(Sd,p)}catch{}switch(p.tag){case 5:pn||Qa(p,l);case 6:var g=sn,v=pi;sn=null,Ws(a,l,p),sn=g,pi=v,sn!==null&&(pi?(a=sn,p=p.stateNode,a.nodeType===8?a.parentNode.removeChild(p):a.removeChild(p)):sn.removeChild(p.stateNode));break;case 18:sn!==null&&(pi?(a=sn,p=p.stateNode,a.nodeType===8?jf(a.parentNode,p):a.nodeType===1&&jf(a,p),ol(a)):jf(sn,p.stateNode));break;case 4:g=sn,v=pi,sn=p.stateNode.containerInfo,pi=!0,Ws(a,l,p),sn=g,pi=v;break;case 0:case 11:case 14:case 15:if(!pn&&(g=p.updateQueue,g!==null&&(g=g.lastEffect,g!==null))){v=g=g.next;do{var _=v,C=_.destroy;_=_.tag,C!==void 0&&((_&2)!==0||(_&4)!==0)&&cm(p,l,C),v=v.next}while(v!==g)}Ws(a,l,p);break;case 1:if(!pn&&(Qa(p,l),g=p.stateNode,typeof g.componentWillUnmount=="function"))try{g.props=p.memoizedProps,g.state=p.memoizedState,g.componentWillUnmount()}catch(I){Tt(p,l,I)}Ws(a,l,p);break;case 21:Ws(a,l,p);break;case 22:p.mode&1?(pn=(g=pn)||p.memoizedState!==null,Ws(a,l,p),pn=g):Ws(a,l,p);break;default:Ws(a,l,p)}}function vw(a){var l=a.updateQueue;if(l!==null){a.updateQueue=null;var p=a.stateNode;p===null&&(p=a.stateNode=new _E),l.forEach(function(g){var v=IE.bind(null,a,g);p.has(g)||(p.add(g),g.then(v,v))})}}function fi(a,l){var p=l.deletions;if(p!==null)for(var g=0;g<p.length;g++){var v=p[g];try{var _=a,C=l,I=C;e:for(;I!==null;){switch(I.tag){case 5:sn=I.stateNode,pi=!1;break e;case 3:sn=I.stateNode.containerInfo,pi=!0;break e;case 4:sn=I.stateNode.containerInfo,pi=!0;break e}I=I.return}if(sn===null)throw Error(n(160));xw(_,C,v),sn=null,pi=!1;var D=v.alternate;D!==null&&(D.return=null),v.return=null}catch(q){Tt(v,l,q)}}if(l.subtreeFlags&12854)for(l=l.child;l!==null;)yw(l,a),l=l.sibling}function yw(a,l){var p=a.alternate,g=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(fi(l,a),Ri(a),g&4){try{El(3,a,a.return),uu(3,a)}catch(Se){Tt(a,a.return,Se)}try{El(5,a,a.return)}catch(Se){Tt(a,a.return,Se)}}break;case 1:fi(l,a),Ri(a),g&512&&p!==null&&Qa(p,p.return);break;case 5:if(fi(l,a),Ri(a),g&512&&p!==null&&Qa(p,p.return),a.flags&32){var v=a.stateNode;try{Qo(v,"")}catch(Se){Tt(a,a.return,Se)}}if(g&4&&(v=a.stateNode,v!=null)){var _=a.memoizedProps,C=p!==null?p.memoizedProps:_,I=a.type,D=a.updateQueue;if(a.updateQueue=null,D!==null)try{I==="input"&&_.type==="radio"&&_.name!=null&&li(v,_),Vp(I,C);var q=Vp(I,_);for(C=0;C<D.length;C+=2){var se=D[C],oe=D[C+1];se==="style"?ty(v,oe):se==="dangerouslySetInnerHTML"?J0(v,oe):se==="children"?Qo(v,oe):N(v,se,oe,q)}switch(I){case"input":Yo(v,_);break;case"textarea":Q0(v,_);break;case"select":var ie=v._wrapperState.wasMultiple;v._wrapperState.wasMultiple=!!_.multiple;var pe=_.value;pe!=null?es(v,!!_.multiple,pe,!1):ie!==!!_.multiple&&(_.defaultValue!=null?es(v,!!_.multiple,_.defaultValue,!0):es(v,!!_.multiple,_.multiple?[]:"",!1))}v[vl]=_}catch(Se){Tt(a,a.return,Se)}}break;case 6:if(fi(l,a),Ri(a),g&4){if(a.stateNode===null)throw Error(n(162));v=a.stateNode,_=a.memoizedProps;try{v.nodeValue=_}catch(Se){Tt(a,a.return,Se)}}break;case 3:if(fi(l,a),Ri(a),g&4&&p!==null&&p.memoizedState.isDehydrated)try{ol(l.containerInfo)}catch(Se){Tt(a,a.return,Se)}break;case 4:fi(l,a),Ri(a);break;case 13:fi(l,a),Ri(a),v=a.child,v.flags&8192&&(_=v.memoizedState!==null,v.stateNode.isHidden=_,!_||v.alternate!==null&&v.alternate.memoizedState!==null||(mm=At())),g&4&&vw(a);break;case 22:if(se=p!==null&&p.memoizedState!==null,a.mode&1?(pn=(q=pn)||se,fi(l,a),pn=q):fi(l,a),Ri(a),g&8192){if(q=a.memoizedState!==null,(a.stateNode.isHidden=q)&&!se&&(a.mode&1)!==0)for(ye=a,se=a.child;se!==null;){for(oe=ye=se;ye!==null;){switch(ie=ye,pe=ie.child,ie.tag){case 0:case 11:case 14:case 15:El(4,ie,ie.return);break;case 1:Qa(ie,ie.return);var _e=ie.stateNode;if(typeof _e.componentWillUnmount=="function"){g=ie,p=ie.return;try{l=g,_e.props=l.memoizedProps,_e.state=l.memoizedState,_e.componentWillUnmount()}catch(Se){Tt(g,p,Se)}}break;case 5:Qa(ie,ie.return);break;case 22:if(ie.memoizedState!==null){_w(oe);continue}}pe!==null?(pe.return=ie,ye=pe):_w(oe)}se=se.sibling}e:for(se=null,oe=a;;){if(oe.tag===5){if(se===null){se=oe;try{v=oe.stateNode,q?(_=v.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none"):(I=oe.stateNode,D=oe.memoizedProps.style,C=D!=null&&D.hasOwnProperty("display")?D.display:null,I.style.display=ey("display",C))}catch(Se){Tt(a,a.return,Se)}}}else if(oe.tag===6){if(se===null)try{oe.stateNode.nodeValue=q?"":oe.memoizedProps}catch(Se){Tt(a,a.return,Se)}}else if((oe.tag!==22&&oe.tag!==23||oe.memoizedState===null||oe===a)&&oe.child!==null){oe.child.return=oe,oe=oe.child;continue}if(oe===a)break e;for(;oe.sibling===null;){if(oe.return===null||oe.return===a)break e;se===oe&&(se=null),oe=oe.return}se===oe&&(se=null),oe.sibling.return=oe.return,oe=oe.sibling}}break;case 19:fi(l,a),Ri(a),g&4&&vw(a);break;case 21:break;default:fi(l,a),Ri(a)}}function Ri(a){var l=a.flags;if(l&2){try{e:{for(var p=a.return;p!==null;){if(mw(p)){var g=p;break e}p=p.return}throw Error(n(160))}switch(g.tag){case 5:var v=g.stateNode;g.flags&32&&(Qo(v,""),g.flags&=-33);var _=gw(a);hm(a,_,v);break;case 3:case 4:var C=g.stateNode.containerInfo,I=gw(a);um(a,I,C);break;default:throw Error(n(161))}}catch(D){Tt(a,a.return,D)}a.flags&=-3}l&4096&&(a.flags&=-4097)}function SE(a,l,p){ye=a,bw(a)}function bw(a,l,p){for(var g=(a.mode&1)!==0;ye!==null;){var v=ye,_=v.child;if(v.tag===22&&g){var C=v.memoizedState!==null||du;if(!C){var I=v.alternate,D=I!==null&&I.memoizedState!==null||pn;I=du;var q=pn;if(du=C,(pn=D)&&!q)for(ye=v;ye!==null;)C=ye,D=C.child,C.tag===22&&C.memoizedState!==null?kw(v):D!==null?(D.return=C,ye=D):kw(v);for(;_!==null;)ye=_,bw(_),_=_.sibling;ye=v,du=I,pn=q}ww(a)}else(v.subtreeFlags&8772)!==0&&_!==null?(_.return=v,ye=_):ww(a)}}function ww(a){for(;ye!==null;){var l=ye;if((l.flags&8772)!==0){var p=l.alternate;try{if((l.flags&8772)!==0)switch(l.tag){case 0:case 11:case 15:pn||uu(5,l);break;case 1:var g=l.stateNode;if(l.flags&4&&!pn)if(p===null)g.componentDidMount();else{var v=l.elementType===l.type?p.memoizedProps:hi(l.type,p.memoizedProps);g.componentDidUpdate(v,p.memoizedState,g.__reactInternalSnapshotBeforeUpdate)}var _=l.updateQueue;_!==null&&_b(l,_,g);break;case 3:var C=l.updateQueue;if(C!==null){if(p=null,l.child!==null)switch(l.child.tag){case 5:p=l.child.stateNode;break;case 1:p=l.child.stateNode}_b(l,C,p)}break;case 5:var I=l.stateNode;if(p===null&&l.flags&4){p=I;var D=l.memoizedProps;switch(l.type){case"button":case"input":case"select":case"textarea":D.autoFocus&&p.focus();break;case"img":D.src&&(p.src=D.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(l.memoizedState===null){var q=l.alternate;if(q!==null){var se=q.memoizedState;if(se!==null){var oe=se.dehydrated;oe!==null&&ol(oe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}pn||l.flags&512&&dm(l)}catch(ie){Tt(l,l.return,ie)}}if(l===a){ye=null;break}if(p=l.sibling,p!==null){p.return=l.return,ye=p;break}ye=l.return}}function _w(a){for(;ye!==null;){var l=ye;if(l===a){ye=null;break}var p=l.sibling;if(p!==null){p.return=l.return,ye=p;break}ye=l.return}}function kw(a){for(;ye!==null;){var l=ye;try{switch(l.tag){case 0:case 11:case 15:var p=l.return;try{uu(4,l)}catch(D){Tt(l,p,D)}break;case 1:var g=l.stateNode;if(typeof g.componentDidMount=="function"){var v=l.return;try{g.componentDidMount()}catch(D){Tt(l,v,D)}}var _=l.return;try{dm(l)}catch(D){Tt(l,_,D)}break;case 5:var C=l.return;try{dm(l)}catch(D){Tt(l,C,D)}}}catch(D){Tt(l,l.return,D)}if(l===a){ye=null;break}var I=l.sibling;if(I!==null){I.return=l.return,ye=I;break}ye=l.return}}var jE=Math.ceil,hu=E.ReactCurrentDispatcher,pm=E.ReactCurrentOwner,Kn=E.ReactCurrentBatchConfig,Qe=0,Zt=null,Mt=null,rn=0,$n=0,Xa=$s(0),Ht=0,Al=null,Wr=0,pu=0,fm=0,Pl=null,Cn=null,mm=0,Za=1/0,ls=null,fu=!1,gm=null,qs=null,mu=!1,Us=null,gu=0,Il=0,xm=null,xu=-1,vu=0;function gn(){return(Qe&6)!==0?At():xu!==-1?xu:xu=At()}function Gs(a){return(a.mode&1)===0?1:(Qe&2)!==0&&rn!==0?rn&-rn:lE.transition!==null?(vu===0&&(vu=gy()),vu):(a=rt,a!==0||(a=window.event,a=a===void 0?16:jy(a.type)),a)}function mi(a,l,p,g){if(50<Il)throw Il=0,xm=null,Error(n(185));nl(a,p,g),((Qe&2)===0||a!==Zt)&&(a===Zt&&((Qe&2)===0&&(pu|=p),Ht===4&&Ys(a,rn)),Nn(a,g),p===1&&Qe===0&&(l.mode&1)===0&&(Za=At()+500,Ud&&zs()))}function Nn(a,l){var p=a.callbackNode;lT(a,l);
vendor: 10,664 bytes, line 40
40var g=Nd(a,a===Zt?rn:0);if(g===0)p!==null&&py(p),a.callbackNode=null,a.callbackPriority=0;else if(l=g&-g,a.callbackPriority!==l){if(p!=null&&py(p),l===1)a.tag===0?oE(jw.bind(null,a)):db(jw.bind(null,a)),iE(function(){(Qe&6)===0&&zs()}),p=null;else{switch(xy(g)){case 1:p=Kp;break;case 4:p=fy;break;case 16:p=kd;break;case 536870912:p=my;break;default:p=kd}p=Rw(p,Sw.bind(null,a))}a.callbackPriority=l,a.callbackNode=p}}function Sw(a,l){if(xu=-1,vu=0,(Qe&6)!==0)throw Error(n(327));var p=a.callbackNode;if(Ja()&&a.callbackNode!==p)return null;var g=Nd(a,a===Zt?rn:0);if(g===0)return null;if((g&30)!==0||(g&a.expiredLanes)!==0||l)l=yu(a,g);else{l=g;var v=Qe;Qe|=2;var _=Nw();(Zt!==a||rn!==l)&&(ls=null,Za=At()+500,Ur(a,l));do try{TE();break}catch(I){Cw(a,I)}while(!0);Of(),hu.current=_,Qe=v,Mt!==null?l=0:(Zt=null,rn=0,l=Ht)}if(l!==0){if(l===2&&(v=Qp(a),v!==0&&(g=v,l=vm(a,v))),l===1)throw p=Al,Ur(a,0),Ys(a,g),Nn(a,At()),p;if(l===6)Ys(a,g);else{if(v=a.current.alternate,(g&30)===0&&!CE(v)&&(l=yu(a,g),l===2&&(_=Qp(a),_!==0&&(g=_,l=vm(a,_))),l===1))throw p=Al,Ur(a,0),Ys(a,g),Nn(a,At()),p;switch(a.finishedWork=v,a.finishedLanes=g,l){case 0:case 1:throw Error(n(345));case 2:Gr(a,Cn,ls);break;case 3:if(Ys(a,g),(g&130023424)===g&&(l=mm+500-At(),10<l)){if(Nd(a,0)!==0)break;if(v=a.suspendedLanes,(v&g)!==g){gn(),a.pingedLanes|=a.suspendedLanes&v;break}a.timeoutHandle=Sf(Gr.bind(null,a,Cn,ls),l);break}Gr(a,Cn,ls);break;case 4:if(Ys(a,g),(g&4194240)===g)break;for(l=a.eventTimes,v=-1;0<g;){var C=31-ci(g);_=1<<C,C=l[C],C>v&&(v=C),g&=~_}if(g=v,g=At()-g,g=(120>g?120:480>g?480:1080>g?1080:1920>g?1920:3e3>g?3e3:4320>g?4320:1960*jE(g/1960))-g,10<g){a.timeoutHandle=Sf(Gr.bind(null,a,Cn,ls),g);break}Gr(a,Cn,ls);break;case 5:Gr(a,Cn,ls);break;default:throw Error(n(329))}}}return Nn(a,At()),a.callbackNode===p?Sw.bind(null,a):null}function vm(a,l){var p=Pl;return a.current.memoizedState.isDehydrated&&(Ur(a,l).flags|=256),a=yu(a,l),a!==2&&(l=Cn,Cn=p,l!==null&&ym(l)),a}function ym(a){Cn===null?Cn=a:Cn.push.apply(Cn,a)}function CE(a){for(var l=a;;){if(l.flags&16384){var p=l.updateQueue;if(p!==null&&(p=p.stores,p!==null))for(var g=0;g<p.length;g++){var v=p[g],_=v.getSnapshot;v=v.value;try{if(!di(_(),v))return!1}catch{return!1}}}if(p=l.child,l.subtreeFlags&16384&&p!==null)p.return=l,l=p;else{if(l===a)break;for(;l.sibling===null;){if(l.return===null||l.return===a)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Ys(a,l){for(l&=~fm,l&=~pu,a.suspendedLanes|=l,a.pingedLanes&=~l,a=a.expirationTimes;0<l;){var p=31-ci(l),g=1<<p;a[p]=-1,l&=~g}}function jw(a){if((Qe&6)!==0)throw Error(n(327));Ja();var l=Nd(a,0);if((l&1)===0)return Nn(a,At()),null;var p=yu(a,l);if(a.tag!==0&&p===2){var g=Qp(a);g!==0&&(l=g,p=vm(a,g))}if(p===1)throw p=Al,Ur(a,0),Ys(a,l),Nn(a,At()),p;if(p===6)throw Error(n(345));return a.finishedWork=a.current.alternate,a.finishedLanes=l,Gr(a,Cn,ls),Nn(a,At()),null}function bm(a,l){var p=Qe;Qe|=1;try{return a(l)}finally{Qe=p,Qe===0&&(Za=At()+500,Ud&&zs())}}function qr(a){Us!==null&&Us.tag===0&&(Qe&6)===0&&Ja();var l=Qe;Qe|=1;var p=Kn.transition,g=rt;try{if(Kn.transition=null,rt=1,a)return a()}finally{rt=g,Kn.transition=p,Qe=l,(Qe&6)===0&&zs()}}function wm(){$n=Xa.current,gt(Xa)}function Ur(a,l){a.finishedWork=null,a.finishedLanes=0;var p=a.timeoutHandle;if(p!==-1&&(a.timeoutHandle=-1,nE(p)),Mt!==null)for(p=Mt.return;p!==null;){var g=p;switch(Af(g),g.tag){case 1:g=g.type.childContextTypes,g!=null&&Wd();break;case 3:Ya(),gt(kn),gt(dn),Hf();break;case 5:zf(g);break;case 4:Ya();break;case 13:gt(Ct);break;case 19:gt(Ct);break;case 10:Lf(g.type._context);break;case 22:case 23:wm()}p=p.return}if(Zt=a,Mt=a=Ks(a.current,null),rn=$n=l,Ht=0,Al=null,fm=pu=Wr=0,Cn=Pl=null,zr!==null){for(l=0;l<zr.length;l++)if(p=zr[l],g=p.interleaved,g!==null){p.interleaved=null;var v=g.next,_=p.pending;if(_!==null){var C=_.next;_.next=v,g.next=C}p.pending=g}zr=null}return a}function Cw(a,l){do{var p=Mt;try{if(Of(),nu.current=au,iu){for(var g=Nt.memoizedState;g!==null;){var v=g.queue;v!==null&&(v.pending=null),g=g.next}iu=!1}if(Hr=0,Xt=Vt=Nt=null,Sl=!1,jl=0,pm.current=null,p===null||p.return===null){Ht=1,Al=l,Mt=null;break}e:{var _=a,C=p.return,I=p,D=l;if(l=rn,I.flags|=32768,D!==null&&typeof D=="object"&&typeof D.then=="function"){var q=D,se=I,oe=se.tag;if((se.mode&1)===0&&(oe===0||oe===11||oe===15)){var ie=se.alternate;ie?(se.updateQueue=ie.updateQueue,se.memoizedState=ie.memoizedState,se.lanes=ie.lanes):(se.updateQueue=null,se.memoizedState=null)}var pe=Xb(C);if(pe!==null){pe.flags&=-257,Zb(pe,C,I,_,l),pe.mode&1&&Qb(_,q,l),l=pe,D=q;var _e=l.updateQueue;if(_e===null){var Se=new Set;Se.add(D),l.updateQueue=Se}else _e.add(D);break e}else{if((l&1)===0){Qb(_,q,l),_m();break e}D=Error(n(426))}}else if(St&&I.mode&1){var Pt=Xb(C);if(Pt!==null){(Pt.flags&65536)===0&&(Pt.flags|=256),Zb(Pt,C,I,_,l),Rf(Ka(D,I));break e}}_=D=Ka(D,I),Ht!==4&&(Ht=2),Pl===null?Pl=[_]:Pl.push(_),_=C;do{switch(_.tag){case 3:_.flags|=65536,l&=-l,_.lanes|=l;var z=Yb(_,D,l);wb(_,z);break e;case 1:I=D;var $=_.type,V=_.stateNode;if((_.flags&128)===0&&(typeof $.getDerivedStateFromError=="function"||V!==null&&typeof V.componentDidCatch=="function"&&(qs===null||!qs.has(V)))){_.flags|=65536,l&=-l,_.lanes|=l;var de=Kb(_,I,l);wb(_,de);break e}}_=_.return}while(_!==null)}Ew(p)}catch(Ce){l=Ce,Mt===p&&p!==null&&(Mt=p=p.return);continue}break}while(!0)}function Nw(){var a=hu.current;return hu.current=au,a===null?au:a}function _m(){(Ht===0||Ht===3||Ht===2)&&(Ht=4),Zt===null||(Wr&268435455)===0&&(pu&268435455)===0||Ys(Zt,rn)}function yu(a,l){var p=Qe;Qe|=2;var g=Nw();(Zt!==a||rn!==l)&&(ls=null,Ur(a,l));do try{NE();break}catch(v){Cw(a,v)}while(!0);if(Of(),Qe=p,hu.current=g,Mt!==null)throw Error(n(261));return Zt=null,rn=0,Ht}function NE(){for(;Mt!==null;)Tw(Mt)}function TE(){for(;Mt!==null&&!J4();)Tw(Mt)}function Tw(a){var l=Iw(a.alternate,a,$n);a.memoizedProps=a.pendingProps,l===null?Ew(a):Mt=l,pm.current=null}function Ew(a){var l=a;do{var p=l.alternate;if(a=l.return,(l.flags&32768)===0){if(p=bE(p,l,$n),p!==null){Mt=p;return}}else{if(p=wE(p,l),p!==null){p.flags&=32767,Mt=p;return}if(a!==null)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{Ht=6,Mt=null;return}}if(l=l.sibling,l!==null){Mt=l;return}Mt=l=a}while(l!==null);Ht===0&&(Ht=5)}function Gr(a,l,p){var g=rt,v=Kn.transition;try{Kn.transition=null,rt=1,EE(a,l,p,g)}finally{Kn.transition=v,rt=g}return null}function EE(a,l,p,g){do Ja();while(Us!==null);if((Qe&6)!==0)throw Error(n(327));p=a.finishedWork;var v=a.finishedLanes;if(p===null)return null;if(a.finishedWork=null,a.finishedLanes=0,p===a.current)throw Error(n(177));a.callbackNode=null,a.callbackPriority=0;var _=p.lanes|p.childLanes;if(cT(a,_),a===Zt&&(Mt=Zt=null,rn=0),(p.subtreeFlags&2064)===0&&(p.flags&2064)===0||mu||(mu=!0,Rw(kd,function(){return Ja(),null})),_=(p.flags&15990)!==0,(p.subtreeFlags&15990)!==0||_){_=Kn.transition,Kn.transition=null;var C=rt;rt=1;var I=Qe;Qe|=4,pm.current=null,kE(a,p),yw(p,a),KT(_f),Ad=!!wf,_f=wf=null,a.current=p,SE(p),eT(),Qe=I,rt=C,Kn.transition=_}else a.current=p;if(mu&&(mu=!1,Us=a,gu=v),_=a.pendingLanes,_===0&&(qs=null),iT(p.stateNode),Nn(a,At()),l!==null)for(g=a.onRecoverableError,p=0;p<l.length;p++)v=l[p],g(v.value,{componentStack:v.stack,digest:v.digest});if(fu)throw fu=!1,a=gm,gm=null,a;return(gu&1)!==0&&a.tag!==0&&Ja(),_=a.pendingLanes,(_&1)!==0?a===xm?Il++:(Il=0,xm=a):Il=0,zs(),null}function Ja(){if(Us!==null){var a=xy(gu),l=Kn.transition,p=rt;try{if(Kn.transition=null,rt=16>a?16:a,Us===null)var g=!1;else{if(a=Us,Us=null,gu=0,(Qe&6)!==0)throw Error(n(331));var v=Qe;for(Qe|=4,ye=a.current;ye!==null;){var _=ye,C=_.child;if((ye.flags&16)!==0){var I=_.deletions;if(I!==null){for(var D=0;D<I.length;D++){var q=I[D];for(ye=q;ye!==null;){var se=ye;switch(se.tag){case 0:case 11:case 15:El(8,se,_)}var oe=se.child;if(oe!==null)oe.return=se,ye=oe;else for(;ye!==null;){se=ye;var ie=se.sibling,pe=se.return;if(fw(se),se===q){ye=null;break}if(ie!==null){ie.return=pe,ye=ie;break}ye=pe}}}var _e=_.alternate;if(_e!==null){var Se=_e.child;if(Se!==null){_e.child=null;do{var Pt=Se.sibling;Se.sibling=null,Se=Pt}while(Se!==null)}}ye=_}}if((_.subtreeFlags&2064)!==0&&C!==null)C.return=_,ye=C;else e:for(;ye!==null;){if(_=ye,(_.flags&2048)!==0)switch(_.tag){case 0:case 11:case 15:El(9,_,_.return)}var z=_.sibling;if(z!==null){z.return=_.return,ye=z;break e}ye=_.return}}var $=a.current;for(ye=$;ye!==null;){C=ye;var V=C.child;if((C.subtreeFlags&2064)!==0&&V!==null)V.return=C,ye=V;else e:for(C=$;ye!==null;){if(I=ye,(I.flags&2048)!==0)try{switch(I.tag){case 0:case 11:case 15:uu(9,I)}}catch(Ce){Tt(I,I.return,Ce)}if(I===C){ye=null;break e}var de=I.sibling;if(de!==null){de.return=I.return,ye=de;break e}ye=I.return}}if(Qe=v,zs(),Ei&&typeof Ei.onPostCommitFiberRoot=="function")try{Ei.onPostCommitFiberRoot(Sd,a)}catch{}g=!0}return g}finally{rt=p,Kn.transition=l}}return!1}function Aw(a,l,p){l=Ka(p,l),l=Yb(a,l,1),a=Hs(a,l,1),l=gn(),a!==null&&(nl(a,1,l),Nn(a,l))}function Tt(a,l,p){if(a.tag===3)Aw(a,a,p);else for(;l!==null;){if(l.tag===3){Aw(l,a,p);break}else if(l.tag===1){var g=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(qs===null||!qs.has(g))){a=Ka(p,a),a=Kb(l,a,1),l=Hs(l,a,1),a=gn(),l!==null&&(nl(l,1,a),Nn(l,a));break}}l=l.return}}function AE(a,l,p){var g=a.pingCache;g!==null&&g.delete(l),l=gn(),a.pingedLanes|=a.suspendedLanes&p,Zt===a&&(rn&p)===p&&(Ht===4||Ht===3&&(rn&130023424)===rn&&500>At()-mm?Ur(a,0):fm|=p),Nn(a,l)}function Pw(a,l){l===0&&((a.mode&1)===0?l=1:(l=Cd,Cd<<=1,(Cd&130023424)===0&&(Cd=4194304)));var p=gn();a=rs(a,l),a!==null&&(nl(a,l,p),Nn(a,p))}function PE(a){var l=a.memoizedState,p=0;l!==null&&(p=l.retryLane),Pw(a,p)}function IE(a,l){var p=0;switch(a.tag){case 13:var g=a.stateNode,v=a.memoizedState;v!==null&&(p=v.retryLane);break;case 19:g=a.stateNode;break;default:throw Error(n(314))}g!==null&&g.delete(l),Pw(a,p)}var Iw;Iw=function(a,l,p){if(a!==null)if(a.memoizedProps!==l.pendingProps||kn.current)jn=!0;else{if((a.lanes&p)===0&&(l.flags&128)===0)return jn=!1,yE(a,l,p);jn=(a.flags&131072)!==0}else jn=!1,St&&(l.flags&1048576)!==0&&ub(l,Yd,l.index);switch(l.lanes=0,l.tag){case 2:var g=l.type;cu(a,l),a=l.pendingProps;var v=za(l,dn.current);Ga(l,p),v=Uf(null,l,g,a,v,p);var _=Gf();return l.flags|=1,typeof v=="object"&&v!==null&&typeof v.render=="function"&&v.$$typeof===void 0?(l.tag=1,l.memoizedState=null,l.updateQueue=null,Sn(g)?(_=!0,qd(l)):_=!1,l.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,$f(l),v.updater=ou,l.stateNode=v,v._reactInternals=l,Jf(l,g,a,p),l=im(null,l,g,!0,_,p)):(l.tag=0,St&&_&&Ef(l),mn(null,l,v,p),l=l.child),l;case 16:g=l.elementType;
vendor: 12,548 bytes, line 40
40e:{switch(cu(a,l),a=l.pendingProps,v=g._init,g=v(g._payload),l.type=g,v=l.tag=ME(g),a=hi(g,a),v){case 0:l=nm(null,l,g,a,p);break e;case 1:l=sw(null,l,g,a,p);break e;case 11:l=Jb(null,l,g,a,p);break e;case 14:l=ew(null,l,g,hi(g.type,a),p);break e}throw Error(n(306,g,""))}return l;case 0:return g=l.type,v=l.pendingProps,v=l.elementType===g?v:hi(g,v),nm(a,l,g,v,p);case 1:return g=l.type,v=l.pendingProps,v=l.elementType===g?v:hi(g,v),sw(a,l,g,v,p);case 3:e:{if(rw(l),a===null)throw Error(n(387));g=l.pendingProps,_=l.memoizedState,v=_.element,bb(a,l),eu(l,g,null,p);var C=l.memoizedState;if(g=C.element,_.isDehydrated)if(_={element:g,isDehydrated:!1,cache:C.cache,pendingSuspenseBoundaries:C.pendingSuspenseBoundaries,transitions:C.transitions},l.updateQueue.baseState=_,l.memoizedState=_,l.flags&256){v=Ka(Error(n(423)),l),l=aw(a,l,g,p,v);break e}else if(g!==v){v=Ka(Error(n(424)),l),l=aw(a,l,g,p,v);break e}else for(Fn=Fs(l.stateNode.containerInfo.firstChild),Dn=l,St=!0,ui=null,p=vb(l,null,g,p),l.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(Wa(),g===v){l=os(a,l,p);break e}mn(a,l,g,p)}l=l.child}return l;case 5:return kb(l),a===null&&If(l),g=l.type,v=l.pendingProps,_=a!==null?a.memoizedProps:null,C=v.children,kf(g,v)?C=null:_!==null&&kf(g,_)&&(l.flags|=32),iw(a,l),mn(a,l,C,p),l.child;case 6:return a===null&&If(l),null;case 13:return ow(a,l,p);case 4:return Bf(l,l.stateNode.containerInfo),g=l.pendingProps,a===null?l.child=qa(l,null,g,p):mn(a,l,g,p),l.child;case 11:return g=l.type,v=l.pendingProps,v=l.elementType===g?v:hi(g,v),Jb(a,l,g,v,p);case 7:return mn(a,l,l.pendingProps,p),l.child;case 8:return mn(a,l,l.pendingProps.children,p),l.child;case 12:return mn(a,l,l.pendingProps.children,p),l.child;case 10:e:{if(g=l.type._context,v=l.pendingProps,_=l.memoizedProps,C=v.value,ft(Xd,g._currentValue),g._currentValue=C,_!==null)if(di(_.value,C)){if(_.children===v.children&&!kn.current){l=os(a,l,p);break e}}else for(_=l.child,_!==null&&(_.return=l);_!==null;){var I=_.dependencies;if(I!==null){C=_.child;for(var D=I.firstContext;D!==null;){if(D.context===g){if(_.tag===1){D=as(-1,p&-p),D.tag=2;var q=_.updateQueue;if(q!==null){q=q.shared;var se=q.pending;se===null?D.next=D:(D.next=se.next,se.next=D),q.pending=D}}_.lanes|=p,D=_.alternate,D!==null&&(D.lanes|=p),Df(_.return,p,l),I.lanes|=p;break}D=D.next}}else if(_.tag===10)C=_.type===l.type?null:_.child;else if(_.tag===18){if(C=_.return,C===null)throw Error(n(341));C.lanes|=p,I=C.alternate,I!==null&&(I.lanes|=p),Df(C,p,l),C=_.sibling}else C=_.child;if(C!==null)C.return=_;else for(C=_;C!==null;){if(C===l){C=null;break}if(_=C.sibling,_!==null){_.return=C.return,C=_;break}C=C.return}_=C}mn(a,l,v.children,p),l=l.child}return l;case 9:return v=l.type,g=l.pendingProps.children,Ga(l,p),v=Gn(v),g=g(v),l.flags|=1,mn(a,l,g,p),l.child;case 14:return g=l.type,v=hi(g,l.pendingProps),v=hi(g.type,v),ew(a,l,g,v,p);case 15:return tw(a,l,l.type,l.pendingProps,p);case 17:return g=l.type,v=l.pendingProps,v=l.elementType===g?v:hi(g,v),cu(a,l),l.tag=1,Sn(g)?(a=!0,qd(l)):a=!1,Ga(l,p),Ub(l,g,v),Jf(l,g,v,p),im(null,l,g,!0,a,p);case 19:return cw(a,l,p);case 22:return nw(a,l,p)}throw Error(n(156,l.tag))};function Rw(a,l){return hy(a,l)}function RE(a,l,p,g){this.tag=a,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qn(a,l,p,g){return new RE(a,l,p,g)}function km(a){return a=a.prototype,!(!a||!a.isReactComponent)}function ME(a){if(typeof a=="function")return km(a)?1:0;if(a!=null){if(a=a.$$typeof,a===ee)return 11;if(a===ne)return 14}return 2}function Ks(a,l){var p=a.alternate;return p===null?(p=Qn(a.tag,l,a.key,a.mode),p.elementType=a.elementType,p.type=a.type,p.stateNode=a.stateNode,p.alternate=a,a.alternate=p):(p.pendingProps=l,p.type=a.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=a.flags&14680064,p.childLanes=a.childLanes,p.lanes=a.lanes,p.child=a.child,p.memoizedProps=a.memoizedProps,p.memoizedState=a.memoizedState,p.updateQueue=a.updateQueue,l=a.dependencies,p.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},p.sibling=a.sibling,p.index=a.index,p.ref=a.ref,p}function bu(a,l,p,g,v,_){var C=2;if(g=a,typeof a=="function")km(a)&&(C=1);else if(typeof a=="string")C=5;else e:switch(a){case M:return Yr(p.children,v,_,l);case A:C=8,v|=8;break;case O:return a=Qn(12,p,l,v|2),a.elementType=O,a.lanes=_,a;case le:return a=Qn(13,p,l,v),a.elementType=le,a.lanes=_,a;case re:return a=Qn(19,p,l,v),a.elementType=re,a.lanes=_,a;case ce:return wu(p,v,_,l);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case G:C=10;break e;case X:C=9;break e;case ee:C=11;break e;case ne:C=14;break e;case Z:C=16,g=null;break e}throw Error(n(130,a==null?a:typeof a,""))}return l=Qn(C,p,l,v),l.elementType=a,l.type=g,l.lanes=_,l}function Yr(a,l,p,g){return a=Qn(7,a,g,l),a.lanes=p,a}function wu(a,l,p,g){return a=Qn(22,a,g,l),a.elementType=ce,a.lanes=p,a.stateNode={isHidden:!1},a}function Sm(a,l,p){return a=Qn(6,a,null,l),a.lanes=p,a}function jm(a,l,p){return l=Qn(4,a.children!==null?a.children:[],a.key,l),l.lanes=p,l.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},l}function OE(a,l,p,g,v){this.tag=l,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xp(0),this.expirationTimes=Xp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xp(0),this.identifierPrefix=g,this.onRecoverableError=v,this.mutableSourceEagerHydrationData=null}function Cm(a,l,p,g,v,_,C,I,D){return a=new OE(a,l,p,I,D),l===1?(l=1,_===!0&&(l|=8)):l=0,_=Qn(3,null,null,l),a.current=_,_.stateNode=a,_.memoizedState={element:g,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},$f(_),a}function LE(a,l,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:g==null?null:""+g,children:a,containerInfo:l,implementation:p}}function Mw(a){if(!a)return Bs;a=a._reactInternals;e:{if(Lr(a)!==a||a.tag!==1)throw Error(n(170));var l=a;do{switch(l.tag){case 3:l=l.stateNode.context;break e;case 1:if(Sn(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}}l=l.return}while(l!==null);throw Error(n(171))}if(a.tag===1){var p=a.type;if(Sn(p))return lb(a,p,l)}return l}function Ow(a,l,p,g,v,_,C,I,D){return a=Cm(p,g,!0,a,v,_,C,I,D),a.context=Mw(null),p=a.current,g=gn(),v=Gs(p),_=as(g,v),_.callback=l??null,Hs(p,_,v),a.current.lanes=v,nl(a,v,g),Nn(a,g),a}function _u(a,l,p,g){var v=l.current,_=gn(),C=Gs(v);return p=Mw(p),l.context===null?l.context=p:l.pendingContext=p,l=as(_,C),l.payload={element:a},g=g===void 0?null:g,g!==null&&(l.callback=g),a=Hs(v,l,C),a!==null&&(mi(a,v,C,_),Jd(a,v,C)),C}function ku(a){if(a=a.current,!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function Lw(a,l){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var p=a.retryLane;a.retryLane=p!==0&&p<l?p:l}}function Nm(a,l){Lw(a,l),(a=a.alternate)&&Lw(a,l)}function DE(){return null}var Dw=typeof reportError=="function"?reportError:function(a){console.error(a)};function Tm(a){this._internalRoot=a}Su.prototype.render=Tm.prototype.render=function(a){var l=this._internalRoot;if(l===null)throw Error(n(409));_u(a,l,null,null)},Su.prototype.unmount=Tm.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var l=a.containerInfo;qr(function(){_u(null,a,null,null)}),l[ts]=null}};function Su(a){this._internalRoot=a}Su.prototype.unstable_scheduleHydration=function(a){if(a){var l=by();a={blockedOn:null,target:a,priority:l};for(var p=0;p<Os.length&&l!==0&&l<Os[p].priority;p++);Os.splice(p,0,a),p===0&&ky(a)}};function Em(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function ju(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11&&(a.nodeType!==8||a.nodeValue!==" react-mount-point-unstable "))}function Fw(){}function FE(a,l,p,g,v){if(v){if(typeof g=="function"){var _=g;g=function(){var q=ku(C);_.call(q)}}var C=Ow(l,g,a,0,null,!1,!1,"",Fw);return a._reactRootContainer=C,a[ts]=C.current,gl(a.nodeType===8?a.parentNode:a),qr(),C}for(;v=a.lastChild;)a.removeChild(v);if(typeof g=="function"){var I=g;g=function(){var q=ku(D);I.call(q)}}var D=Cm(a,0,!1,null,null,!1,!1,"",Fw);return a._reactRootContainer=D,a[ts]=D.current,gl(a.nodeType===8?a.parentNode:a),qr(function(){_u(l,D,p,g)}),D}function Cu(a,l,p,g,v){var _=p._reactRootContainer;if(_){var C=_;if(typeof v=="function"){var I=v;v=function(){var D=ku(C);I.call(D)}}_u(l,C,a,v)}else C=FE(p,l,a,v,g);return ku(C)}vy=function(a){switch(a.tag){case 3:var l=a.stateNode;if(l.current.memoizedState.isDehydrated){var p=tl(l.pendingLanes);p!==0&&(Zp(l,p|1),Nn(l,At()),(Qe&6)===0&&(Za=At()+500,zs()))}break;case 13:qr(function(){var g=rs(a,1);if(g!==null){var v=gn();mi(g,a,1,v)}}),Nm(a,1)}},Jp=function(a){if(a.tag===13){var l=rs(a,134217728);if(l!==null){var p=gn();mi(l,a,134217728,p)}Nm(a,134217728)}},yy=function(a){if(a.tag===13){var l=Gs(a),p=rs(a,l);if(p!==null){var g=gn();mi(p,a,l,g)}Nm(a,l)}},by=function(){return rt},wy=function(a,l){var p=rt;try{return rt=a,l()}finally{rt=p}},qp=function(a,l,p){switch(l){case"input":if(Yo(a,p),l=p.name,p.type==="radio"&&l!=null){for(p=a;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll("input[name="+JSON.stringify(""+l)+'][type="radio"]'),l=0;l<p.length;l++){var g=p[l];if(g!==a&&g.form===a.form){var v=Hd(g);if(!v)throw Error(n(90));cn(g),Yo(g,v)}}}break;case"textarea":Q0(a,p);break;case"select":l=p.value,l!=null&&es(a,!!p.multiple,l,!1)}},ry=bm,ay=qr;var $E={usingClientEntryPoint:!1,Events:[yl,$a,Hd,iy,sy,bm]},Rl={findFiberByHostInstance:Dr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},BE={bundleType:Rl.bundleType,version:Rl.version,rendererPackageName:Rl.rendererPackageName,rendererConfig:Rl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){return a=dy(a),a===null?null:a.stateNode},findFiberByHostInstance:Rl.findFiberByHostInstance||DE,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nu.isDisabled&&Nu.supportsFiber)try{Sd=Nu.inject(BE),Ei=Nu}catch{}}return Tn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$E,Tn.createPortal=function(a,l){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Em(l))throw Error(n(200));return LE(a,l,null,p)},Tn.createRoot=function(a,l){if(!Em(a))throw Error(n(299));var p=!1,g="",v=Dw;return l!=null&&(l.unstable_strictMode===!0&&(p=!0),l.identifierPrefix!==void 0&&(g=l.identifierPrefix),l.onRecoverableError!==void 0&&(v=l.onRecoverableError)),l=Cm(a,1,!1,null,null,p,!1,g,v),a[ts]=l.current,gl(a.nodeType===8?a.parentNode:a),new Tm(l)},Tn.findDOMNode=function(a){if(a==null)return null;if(a.nodeType===1)return a;var l=a._reactInternals;if(l===void 0)throw typeof a.render=="function"?Error(n(188)):(a=Object.keys(a).join(","),Error(n(268,a)));return a=dy(l),a=a===null?null:a.stateNode,a},Tn.flushSync=function(a){return qr(a)},Tn.hydrate=function(a,l,p){if(!ju(l))throw Error(n(200));return Cu(null,a,l,!0,p)},Tn.hydrateRoot=function(a,l,p){if(!Em(a))throw Error(n(405));var g=p!=null&&p.hydratedSources||null,v=!1,_="",C=Dw;if(p!=null&&(p.unstable_strictMode===!0&&(v=!0),p.identifierPrefix!==void 0&&(_=p.identifierPrefix),p.onRecoverableError!==void 0&&(C=p.onRecoverableError)),l=Ow(l,null,a,1,p??null,v,!1,_,C),a[ts]=l.current,gl(a),g)for(a=0;a<g.length;a++)p=g[a],v=p._getVersion,v=v(p._source),l.mutableSourceEagerHydrationData==null?l.mutableSourceEagerHydrationData=[p,v]:l.mutableSourceEagerHydrationData.push(p,v);return new Su(l)},Tn.render=function(a,l,p){if(!ju(l))throw Error(n(200));return Cu(null,a,l,!1,p)}
40,Tn.unmountComponentAtNode=function(a){if(!ju(a))throw Error(n(40));return a._reactRootContainer?(qr(function(){Cu(null,null,a,!1,function(){a._reactRootContainer=null,a[ts]=null})}),!0):!1},Tn.unstable_batchedUpdates=bm,Tn.unstable_renderSubtreeIntoContainer=function(a,l,p,g){if(!ju(p))throw Error(n(200));if(a==null||a._reactInternals===void 0)throw Error(n(38));return Cu(a,l,p,!1,g)},Tn.version="18.3.1-next-f1338f8080-20240426",Tn}var Uw;function GS(){if(Uw)return Im.exports;Uw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Im.exports=XE(),Im.exports}var Gw;function ZE(){if(Gw)return Tu;Gw=1;var e=GS();return Tu.createRoot=e.createRoot,Tu.hydrateRoot=e.hydrateRoot,Tu}var JE=ZE();const Yw=qS(JE);var eA=GS();/**
41 * @remix-run/router v1.23.4
42 *
43 * Copyright (c) Remix Software Inc.
44 *
45 * This source code is licensed under the MIT license found in the
46 * LICENSE.md file in the root directory of this source tree.
47 *
48 * @license MIT
49 */function Oc(){return Oc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Oc.apply(null,arguments)}var sr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(sr||(sr={}));const Kw="popstate";function tA(e){e===void 0&&(e={});function t(i,s){let{pathname:r,search:o,hash:c}=i.location;return tx("",{pathname:r,search:o,hash:c},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(i,s){return typeof s=="string"?s:KS(s)}return iA(t,n,null,e)}function Bt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function YS(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nA(){return Math.random().toString(36).substr(2,8)}function Qw(e,t){return{usr:e.state,key:e.key,idx:t}}function tx(e,t,n,i){return n===void 0&&(n=null),Oc({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Bo(t):t,{state:n,key:t&&t.key||i||nA()})}function KS(e){let{pathname:t="/",search:n="",hash:i=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(t+=i.charAt(0)==="#"?i:"#"+i),t}function Bo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}function iA(e,t,n,i){i===void 0&&(i={});let{window:s=document.defaultView,v5Compat:r=!1}=i,o=s.history,c=sr.Pop,u=null,h=f();h==null&&(h=0,o.replaceState(Oc({},o.state,{idx:h}),""));function f(){return(o.state||{idx:null}).idx}function m(){c=sr.Pop;let w=f(),S=w==null?null:w-h;h=w,u&&u({action:c,location:k.location,delta:S})}function x(w,S){c=sr.Push;let j=tx(k.location,w,S);h=f()+1;let N=Qw(j,h),E=k.createHref(j);try{o.pushState(N,"",E)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;s.location.assign(E)}r&&u&&u({action:c,location:k.location,delta:1})}function y(w,S){c=sr.Replace;let j=tx(k.location,w,S);h=f();let N=Qw(j,h),E=k.createHref(j);o.replaceState(N,"",E),r&&u&&u({action:c,location:k.location,delta:0})}function b(w){let S=s.location.origin!=="null"?s.location.origin:s.location.href,j=typeof w=="string"?w:KS(w);return j=j.replace(/ $/,"%20"),Bt(S,"No window.location.(origin|href) available to create URL for href: "+j),new URL(j,S)}let k={get action(){return c},get location(){return e(s,o)},listen(w){if(u)throw new Error("A history only accepts one active listener");return s.addEventListener(Kw,m),u=w,()=>{s.removeEventListener(Kw,m),u=null}},createHref(w){return t(s,w)},createURL:b,encodeLocation(w){let S=b(w);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:x,replace:y,go(w){return o.go(w)}};return k}var Xw;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Xw||(Xw={}));function sA(e,t,n){return n===void 0&&(n="/"),rA(e,t,n)}function rA(e,t,n,i){let s=typeof t=="string"?Bo(t):t,r=ZS(s.pathname||"/",n);if(r==null)return null;let o=QS(e);aA(o);
vendor: 1,995 bytes, line 49
49let c=null,u=vA(r);for(let h=0;c==null&&h<o.length;++h)c=mA(o[h],u);return c}function QS(e,t,n,i){t===void 0&&(t=[]),n===void 0&&(n=[]),i===void 0&&(i="");let s=(r,o,c)=>{let u={relativePath:c===void 0?r.path||"":c,caseSensitive:r.caseSensitive===!0,childrenIndex:o,route:r};u.relativePath.startsWith("/")&&(Bt(u.relativePath.startsWith(i),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(i.length));let h=fa([i,u.relativePath]),f=n.concat(u);r.children&&r.children.length>0&&(Bt(r.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),QS(r.children,t,f,h)),!(r.path==null&&!r.index)&&t.push({path:h,score:pA(h,r.index),routesMeta:f})};return e.forEach((r,o)=>{var c;if(r.path===""||!((c=r.path)!=null&&c.includes("?")))s(r,o);else for(let u of XS(r.path))s(r,o,u)}),t}function XS(e){let t=e.split("/");if(t.length===0)return[];let[n,...i]=t,s=n.endsWith("?"),r=n.replace(/\?$/,"");if(i.length===0)return s?[r,""]:[r];let o=XS(i.join("/")),c=[];return c.push(...o.map(u=>u===""?r:[r,u].join("/"))),s&&c.push(...o),c.map(u=>e.startsWith("/")&&u===""?"/":u)}function aA(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:fA(t.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const oA=/^:[\w-]+$/,lA=3,cA=2,dA=1,uA=10,hA=-2,Zw=e=>e==="*";function pA(e,t){let n=e.split("/"),i=n.length;return n.some(Zw)&&(i+=hA),t&&(i+=cA),n.filter(s=>!Zw(s)).reduce((s,r)=>s+(oA.test(r)?lA:r===""?dA:uA),i)}function fA(e,t){return e.length===t.length&&e.slice(0,-1).every((i,s)=>i===t[s])?e[e.length-1]-t[t.length-1]:0}function mA(e,t,n){let{routesMeta:i}=e,s={},r="/",o=[];for(let c=0;c<i.length;++c){let u=i[c],h=c===i.length-1,f=r==="/"?t:t.slice(r.length)||"/",m=gA({path:u.relativePath,caseSensitive:u.caseSensitive,end:h},f),x=u.route;if(!m)return null;
vendor: 6,481 bytes, lines 49-58
49Object.assign(s,m.params),o.push({params:s,pathname:fa([r,m.pathname]),pathnameBase:wA(fa([r,m.pathnameBase])),route:x}),m.pathnameBase!=="/"&&(r=fa([r,m.pathnameBase]))}return o}function gA(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,i]=xA(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let r=s[0],o=r.replace(/(.)\/+$/,"$1"),c=s.slice(1);return{params:i.reduce((h,f,m)=>{let{paramName:x,isOptional:y}=f;if(x==="*"){let k=c[m]||"";o=r.slice(0,r.length-k.length).replace(/(.)\/+$/,"$1")}const b=c[m];return y&&!b?h[x]=void 0:h[x]=(b||"").replace(/%2F/g,"/"),h},{}),pathname:r,pathnameBase:o,pattern:e}}function xA(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),YS(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let i=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,c,u)=>(i.push({paramName:c,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(i.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),i]}function vA(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return YS(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ZS(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&i!=="/"?null:e.slice(n)||"/"}function yA(e,t){t===void 0&&(t="/");let{pathname:n,search:i="",hash:s=""}=typeof e=="string"?Bo(e):e,r;return n?(n=tj(n),n.startsWith("/")?r=Jw(n.substring(1),"/"):r=Jw(n,t)):r=t,{pathname:r,search:_A(i),hash:kA(s)}}function Jw(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Om(e,t,n,i){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(i)+"].  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 bA(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function JS(e,t){let n=bA(e);return t?n.map((i,s)=>s===n.length-1?i.pathname:i.pathnameBase):n.map(i=>i.pathnameBase)}function ej(e,t,n,i){i===void 0&&(i=!1);let s;typeof e=="string"?s=Bo(e):(s=Oc({},e),Bt(!s.pathname||!s.pathname.includes("?"),Om("?","pathname","search",s)),Bt(!s.pathname||!s.pathname.includes("#"),Om("#","pathname","hash",s)),Bt(!s.search||!s.search.includes("#"),Om("#","search","hash",s)));let r=e===""||s.pathname==="",o=r?"/":s.pathname,c;if(o==null)c=n;else{let m=t.length-1;if(!i&&o.startsWith("..")){let x=o.split("/");for(;x[0]==="..";)x.shift(),m-=1;s.pathname=x.join("/")}c=m>=0?t[m]:"/"}let u=yA(s,c),h=o&&o!=="/"&&o.endsWith("/"),f=(r||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(h||f)&&(u.pathname+="/"),u}const tj=e=>e.replace(/\/\/+/g,"/"),fa=e=>tj(e.join("/")),wA=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_A=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,kA=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function SA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const nj=["post","put","patch","delete"];new Set(nj);const jA=["get",...nj];new Set(jA);/**
50 * React Router v6.30.6
51 *
52 * Copyright (c) Remix Software Inc.
53 *
54 * This source code is licensed under the MIT license found in the
55 * LICENSE.md file in the root directory of this source tree.
56 *
57 * @license MIT
58 */function Lc(){return Lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Lc.apply(null,arguments)}const Sv=P.createContext(null),CA=P.createContext(null),rd=P.createContext(null),kp=P.createContext(null),Nr=P.createContext({outlet:null,matches:[],isDataRoute:!1}),ij=P.createContext(null);function ad(){return P.useContext(kp)!=null}function Sp(){return ad()||Bt(!1),P.useContext(kp).location}function sj(e){P.useContext(rd).static||P.useLayoutEffect(e)}function NA(){let{isDataRoute:e}=P.useContext(Nr);return e?zA():TA()}function TA(){ad()||Bt(!1);let e=P.useContext(Sv),{basename:t,future:n,navigator:i}=P.useContext(rd),{matches:s}=P.useContext(Nr),{pathname:r}=Sp(),o=JSON.stringify(JS(s,n.v7_relativeSplatPath)),c=P.useRef(!1);return sj(()=>{c.current=!0}),P.useCallback(function(h,f){if(f===void 0&&(f={}),!c.current)return;if(typeof h=="number"){i.go(h);return}let m=ej(h,JSON.parse(o),r,f.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:fa([t,m.pathname])),(f.replace?i.replace:i.push)(m,f.state,f)},[t,i,o,r,e])}function EA(){let{matches:e}=P.useContext(Nr),t=e[e.length-1];return t?t.params:{}}function AA(e,t){return PA(e,t)}function PA(e,t,n,i){ad()||Bt(!1);let{navigator:s}=P.useContext(rd),{matches:r}=P.useContext(Nr),o=r[r.length-1],c=o?o.params:{};o&&o.pathname;let u=o?o.pathnameBase:"/";o&&o.route;let h=Sp(),f;if(t){var m;let w=typeof t=="string"?Bo(t):t;u==="/"||(m=w.pathname)!=null&&m.startsWith(u)||Bt(!1),f=w}else f=h;let x=f.pathname||"/",y=x;if(u!=="/"){let w=u.replace(/^\//,"").split("/");y="/"+x.replace(/^\//,"").split("/").slice(w.length).join("/")}let b=sA(e,{pathname:y}),k=LA(b&&b.map(w=>Object.assign({},w,{params:Object.assign({},c,w.params),pathname:fa([u,s.encodeLocation?s.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?u:fa([u,s.encodeLocation?s.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),r,n,i);return t&&k?P.createElement(kp.Provider,{value:{location:Lc({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:sr.Pop}},k):k}function IA(){let e=BA(),t=SA(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application 
58Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:s},n):null,null)}const RA=P.createElement(IA,null);class MA extends P.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?P.createElement(Nr.Provider,{value:this.props.routeContext},P.createElement(ij.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function OA(e){let{routeContext:t,match:n,children:i}=e,s=P.useContext(Sv);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(Nr.Provider,{value:t},i)}function LA(e,t,n,i){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),i===void 0&&(i=null),e==null){var r;if(!n)return null;if(n.errors)e=n.matches;else if((r=i)!=null&&r.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,c=(s=n)==null?void 0:s.errors;if(c!=null){let f=o.findIndex(m=>m.route.id&&(c==null?void 0:c[m.route.id])!==void 0);f>=0||Bt(!1),o=o.slice(0,Math.min(o.length,f+1))}let u=!1,h=-1;if(n&&i&&i.v7_partialHydration)for(let f=0;f<o.length;f++){let m=o[f];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(h=f),m.route.id){let{loaderData:x,errors:y}=n,b=m.route.loader&&x[m.route.id]===void 0&&(!y||y[m.route.id]===void 0);if(m.route.lazy||b){u=!0,h>=0?o=o.slice(0,h+1):o=[o[0]];break}}}return o.reduceRight((f,m,x)=>{let y,b=!1,k=null,w=null;n&&(y=c&&m.route.id?c[m.route.id]:void 0,k=m.route.errorElement||RA,u&&(h<0&&x===0?(VA("route-fallback"),b=!0,w=null):h===x&&(b=!0,w=m.route.hydrateFallbackElement||null)));let S=t.concat(o.slice(0,x+1)),j=()=>{let N;return y?N=k:b?N=w:m.route.Component?N=P.createElement(m.route.Component,null):m.route.element?N=m.route.element:N=f,P.createElement(OA,{match:m,routeContext:{outlet:f,matches:S,isDataRoute:n!=null},children:N})};return n&&(m.route.ErrorBoundary||m.route.errorElement||x===0)?P.createElement(MA,{location:n.location,revalidation:n.revalidation,component:k,error:y,children:j(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):j()},null)}var rj=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(rj||{}),aj=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(aj||{});function DA(e){let t=P.useContext(Sv);return t||Bt(!1),t}function FA(e){let t=P.useContext(CA);return t||Bt(!1),t}function $A(e){let t=P.useContext(Nr);return t||Bt(!1),t}function oj(e){let t=$A(),n=t.matches[t.matches.length-1];return n.route.id||Bt(!1),n.route.id}function BA(){var e;let t=P.useContext(ij),n=FA(),i=oj();return t!==void 0?t:(e=n.errors)==null?void 0:e[i]}function zA(){let{router:e}=DA(rj.UseNavigateStable),t=oj(aj.UseNavigateStable),n=P.useRef(!1);return sj(()=>{n.current=!0}),P.useCallback(function(s,r){r===void 0&&(r={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,Lc({fromRouteId:t},r)))},[e,t])}const e_={};function VA(e,t,n){e_[e]||(e_[e]=!0)}function HA(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function lj(e){let{to:t,replace:n,state:i,relative:s}=e;ad()||Bt(!1);let{future:r,static:o}=P.useContext(rd),{matches:c}=P.useContext(Nr),{pathname:u}
58=Sp(),h=NA(),f=ej(t,JS(c,r.v7_relativeSplatPath),u,s==="path"),m=JSON.stringify(f);return P.useEffect(()=>h(JSON.parse(m),{replace:n,state:i,relative:s}),[h,m,s,n,i]),null}function en(e){Bt(!1)}function WA(e){let{basename:t="/",children:n=null,location:i,navigationType:s=sr.Pop,navigator:r,static:o=!1,future:c}=e;ad()&&Bt(!1);let u=t.replace(/^\/*/,"/"),h=P.useMemo(()=>({basename:u,navigator:r,static:o,future:Lc({v7_relativeSplatPath:!1},c)}),[u,c,r,o]);typeof i=="string"&&(i=Bo(i));let{pathname:f="/",search:m="",hash:x="",state:y=null,key:b="default"}=i,k=P.useMemo(()=>{let w=ZS(f,u);return w==null?null:{location:{pathname:w,search:m,hash:x,state:y,key:b},navigationType:s}},[u,f,m,x,y,b,s]);return k==null?null:P.createElement(rd.Provider,{value:h},P.createElement(kp.Provider,{children:n,value:k}))}function qA(e){let{children:t,location:n}=e;return AA(nx(t),n)}new Promise(()=>{});function nx(e,t){t===void 0&&(t=[]);let n=[];return P.Children.forEach(e,(i,s)=>{if(!P.isValidElement(i))return;let r=[...t,s];if(i.type===P.Fragment){n.push.apply(n,nx(i.props.children,r));return}i.type!==en&&Bt(!1),!i.props.index||!i.props.children||Bt(!1);let o={id:i.props.id||r.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(o.children=nx(i.props.children,r)),n.push(o)}),n}/**
59 * React Router DOM v6.30.6
60 *
61 * Copyright (c) Remix Software Inc.
62 *
63 * This source code is licensed under the MIT license found in the
64 * LICENSE.md file in the root directory of this source tree.
65 *
66 * @license MIT
67 */const UA="6";try{window.__reactRouterVersion=UA}catch{}const GA="startTransition",t_=YE[GA];function YA(e){let{basename:t,children:n,future:i,window:s}=e,r=P.useRef();r.current==null&&(r.current=tA({window:s,v5Compat:!0}));let o=r.current,[c,u]=P.useState({action:o.action,location:o.location}),{v7_startTransition:h}=i||{},f=P.useCallback(m=>{h&&t_?t_(()=>u(m)):u(m)},[u,h]);return P.useLayoutEffect(()=>o.listen(f),[o,f]),P.useEffect(()=>HA(i),[i]),P.createElement(WA,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:o,future:i})}var n_;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(n_||(n_={}));var i_;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(i_||(i_={}));const B="u">typeof window?window:void 0,fn="u">typeof globalThis?globalThis:B,Yt=fn==null?void 0:fn.navigator,K=fn==null?void 0:fn.document,yt=fn==null?void 0:fn.location,Dc=fn==null?void 0:fn.fetch,jv=fn!=null&&fn.XMLHttpRequest&&"withCredentials"in new fn.XMLHttpRequest?fn.XMLHttpRequest:void 0,s_=fn==null?void 0:fn.AbortController,KA=fn==null?void 0:fn.CompressionStream,vn=Yt==null?void 0:Yt.userAgent;function cj(){return!(!B||B.navigator.onLine===!1)}const Ol=typeof globalThis<"u"?globalThis:B;Ol&&typeof self>"u"&&(Ol.self=Ol),Ol&&typeof File>"u"&&(Ol.File=function(){});const we=B??{},QA="0.9.0",_s={DEBUG:!1,LIB_VERSION:QA,LIB_NAME:"browser-common"};var $i=function(e){return e.AnonymousId="anonymous_id",e.DistinctId="distinct_id",e.Props="props",e.EnablePersonProcessing="enable_person_processing",e.PersonMode="person_mode",e.FeatureFlagDetails="feature_flag_details",e.FeatureFlags="feature_flags",e.FeatureFlagPayloads="feature_flag_payloads",e.BootstrapFeatureFlagDetails="bootstrap_feature_flag_details",e.BootstrapFeatureFlags="bootstrap_feature_flags",e.BootstrapFeatureFlagPayloads="bootstrap_feature_flag_payloads",e.OverrideFeatureFlags="override_feature_flags",e.Queue="queue",e.AiQueue="ai_queue",e.AiCaptureQueue="ai_capture_queue",e.LogsQueue="logs_queue",e.OptedOut="opted_out",e.SessionId="session_id",e.SessionStartTimestamp="session_start_timestamp",e.SessionLastTimestamp="session_timestamp",e.PersonProperties="person_properties",e.GroupProperties="group_properties",e.InstalledAppBuild="installed_app_build",e.InstalledAppVersion="installed_app_version",e.SessionReplay="session_replay",e.PushRegistered="push_registered",e.SessionReplayEventTriggerActivatedSession="session_replay_event_trigger_activated_session",e.SurveyLastSeenDate="survey_last_seen_date",e.SurveysInProgress="surveys_in_progress",e.SurveysSeen="surveys_seen",e.Surveys="surveys",e.RemoteConfig="remote_config",e.FlagsEndpointWasHit="flags_endpoint_was_hit",e.DeviceId="device_id",e}({}),ix=function(e){return e.GZipJS="gzip-js",e.Base64="base64",e}({});const XA=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],ZA=["token"];function Ae(e,t){return e.indexOf(t)!==-1}const jp=function(e){return e.trim()},sx=function(e){return e.replace(/^\$/,"")};function dj(e){var t;const n=[];return(t=JSON.stringify(e,function(i,s){if(typeof s=="bigint")return s.toString();if(typeof s!="function"&&typeof s!="symbol"){if(s instanceof Error)return{name:s.name,message:s.message,stack:s.stack};if(s&&typeof s=="object"){for(;n.length>0&&n[n.length-1]!==this;)n.pop();if(n.includes(s))return"[Circular]";n.push(s)}return s}}))!==null&&t!==void 0?t:"null"}const uj=Object.prototype,Cv=uj.hasOwnProperty,Cp=uj.toString,Te=Array.isArray||function(e){return Cp.call(e)==="[object Array]"},Ut=e=>typeof e=="function",We=e=>e===Object(e)&&!Te(e),An=e=>{if(We(e)){for(const t in e)if(Cv.call(e,t))return!1;return!0}return!1},U=e=>e===void 0,Be=e=>Cp.call(e)=="[object String]",mc=e=>Be(e)&&e.trim().length===0,bt=e=>
67e===null,Le=e=>U(e)||bt(e),jt=e=>Cp.call(e)=="[object Number]"&&e==e,ps=e=>jt(e)&&e>0,bn=e=>Cp.call(e)==="[object Boolean]",JA=e=>Ae(XA,e),e6=e=>Ae(ZA,e);function hj(e){return e===null||typeof e!="object"}function Th(e,t){return{}.toString.call(e)===`[object ${t}]`}function zo(e){switch({}.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object DOMError]":case"[object WebAssembly.Exception]":return!0;default:return pj(e,Error)}}function Nv(e){return"u">typeof Event&&pj(e,Event)}function pj(e,t){try{return e instanceof t}catch{return!1}}const t6=[!0,"true",1,"1","yes"],Lm=e=>Ae(t6,e),n6=[!1,"false",0,"0","no"];function r_(e,t,n,i,s,r,o){try{var c=e[r](o),u=c.value}catch(h){return void n(h)}c.done?t(u):Promise.resolve(u).then(i,s)}function dt(e){return function(){var t=this,n=arguments;return new Promise(function(i,s){var r=e.apply(t,n);function o(u){r_(r,i,s,o,c,"next",u)}function c(u){r_(r,i,s,o,c,"throw",u)}o(void 0)})}}const i6=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterestbot","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],a_=function(e,t=[]){if(!e)return!1;const n=e.toLowerCase();return i6.concat(t).some(i=>{const s=i.toLowerCase();return n.indexOf(s)!==-1})};function Ui(e,t,n,i,s){return t>n&&(i.warn("min cannot be greater than max."),t=n),jt(e)?e>n?(i.warn(" cannot be  greater than max: "+n+". Using max value instead."),n):t>e?(i.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(i.warn(" must be a number. using max or fallback. max: "+n+", fallback: "+s),Ui(s??n,t,n,i))}var s6=class{constructor(e){this.C={},this.I=e.I,this.R=Ui(e.bucketSize,0,100,e.$),this.A=Ui(e.refillRate,0,this.R,e.$),this.O=Ui(e.refillInterval,0,864e5,e.$)}F(e,t){const n=Math.floor((t-e.lastAccess)/this.O);n>0&&(e.tokens=Math.min(e.tokens+n*this.A,this.R),e.lastAccess=e.lastAccess+n*this.O)}consumeRateLimit(e){var t;const n=Date.now(),i=String(e);let s=this.C[i];return s?this.F(s,n):(s={tokens:this.R,lastAccess:n},this.C[i]=s),s.tokens===0||(s.tokens--,s.tokens===0&&((t=this.I)===null||t===void 0||t.call(this,e)),s.tokens===0)}stop(){this.C={}}};const To="Mobile",Fc="Android",Eh="Tablet",fj="Android Tablet",mj="iPad",gj="Apple Watch",oh="Safari",Np="BlackBerry",xj="Samsung Internet",lh="Chrome",vj="Chrome iOS",yj="Internet Explorer",bj="Internet Explorer Mobile",wj="Opera",_j="Microsoft Edge",ch="Firefox",kj="Firefox iOS",Ah="Nintendo",Ph="PlayStation",Tp="Xbox",Sj="Android Mobile",jj="Mobile Safari",Dm="Windows",Cj="Windows Phone",o_="Nokia",rx="Ouya",r6="Generic "+To.toLowerCase(),Nj="Generic "+Eh.toLowerCase(),ax="Konqueror",Tj="Oculus Browser",Ej="Vivaldi",Aj="Yandex",Pj="Whale",Ij="DuckDuckGo",Rj="Pale Moon",Mj="Waterfox",ox="Brave",Oj="Claude",Lj="Codex",Dj="ChatGPT",Fj="Google Search App",Fm=new RegExp("Version/(\\d+(\\.\\d+)?)"),$m=new RegExp("(Claude|Codex|ChatGPT)\\/(\\d+(\\.\\d+)?)"),a6=new RegExp(Tp,"i"),o6=new RegExp("PlayStation \\w+","i"),l6=new RegExp("Nintendo \\w+","i"),Tv=new RegExp("BlackBerry|PlayBook|BB10","i"),c6={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},$j=function(e,t,n,i){return t=t||"",function(r){return r!=null&&r.brave?ox:null}(n)||(i!=null&&i.detectGoogleSearchApp&&Ae(e,"GSA/")?Fj:Ae(e," OPR/")&&Ae(e,"Mini")?"Opera Mini":Ae(e," OPR/")?wj:Tv.test(e)?Np:Ae(e,"IEMobile")||Ae(e,"WPDesktop")?bj:Ae(e,"OculusBrowser")?Tj:Ae(e,"SamsungBrowser")?xj:Ae(e,"Edge")||Ae(e,"Edg/")?_j:Ae(e,"Vivaldi/")?Ej:Ae(e,"YaBrowser/")?Aj:Ae(e,"Whale/")?Pj:Ae(e,"DuckDuckGo/")||Ae(e,"Ddg/")?Ij:Ae(e,"Claude/")?Oj:Ae(e,"Codex/")?Lj:Ae(e,"ChatGPT/")?Dj:Ae(e,"FBIOS")?"Facebook Mobile":Ae(e,"UCWEB")||Ae(e,"UCBrowser")?"UC Browser":Ae(e,"CriOS")?vj:Ae(e,"CrMo")||Ae(e,lh)?lh:Ae(e,Fc)&&Ae(e,oh)?Sj:Ae(e,"FxiOS")?kj:Ae(e.toLowerCase(),ax.toLowerCase())?ax:Ae(e,"Brave/")?ox:((r,o)=>o&&Ae(o,"Apple")||function(c){return Ae(c,oh)&&!Ae(c,lh)&&!Ae(c,Fc)}
vendor: 4,413 bytes, line 67
67(r))(e,t)?Ae(e,To)?jj:oh:Ae(e,"PaleMoon/")?Rj:Ae(e,"Waterfox/")?Mj:Ae(e,ch)?ch:Ae(e,"MSIE")||Ae(e,"Trident/")?yj:Ae(e,"Gecko")?ch:"")},d6={[bj]:[new RegExp("rv:(\\d+(\\.\\d+)?)")],[_j]:[new RegExp("Edge?\\/(\\d+(\\.\\d+)?)")],[lh]:[new RegExp("(Chrome|CrMo)\\/(\\d+(\\.\\d+)?)")],[vj]:[new RegExp("CriOS\\/(\\d+(\\.\\d+)?)")],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/(\\d+(\\.\\d+)?)")],[oh]:[Fm],[jj]:[Fm],[wj]:[new RegExp("(Opera|OPR)\\/(\\d+(\\.\\d+)?)")],[ch]:[new RegExp("Firefox\\/(\\d+(\\.\\d+)?)")],[kj]:[new RegExp("FxiOS\\/(\\d+(\\.\\d+)?)")],[ax]:[new RegExp("Konqueror[:/]?(\\d+(\\.\\d+)?)","i")],[Np]:[new RegExp("BlackBerry (\\d+(\\.\\d+)?)"),Fm],[Sj]:[new RegExp("android\\s(\\d+(\\.\\d+)?)","i")],[xj]:[new RegExp("SamsungBrowser\\/(\\d+(\\.\\d+)?)")],[Tj]:[new RegExp("OculusBrowser\\/(\\d+(\\.\\d+)?)")],[Ej]:[new RegExp("Vivaldi\\/(\\d+(\\.\\d+)?)")],[Aj]:[new RegExp("YaBrowser\\/(\\d+(\\.\\d+)?)")],[Pj]:[new RegExp("Whale\\/(\\d+(\\.\\d+)?)")],[ox]:[new RegExp("Brave\\/(\\d+(\\.\\d+)?)")],[Oj]:[$m],[Lj]:[$m],[Dj]:[$m],[Ij]:[new RegExp("(DuckDuckGo|Ddg)\\/(\\d+(\\.\\d+)?)")],[Rj]:[new RegExp("PaleMoon\\/(\\d+(\\.\\d+)?)")],[Mj]:[new RegExp("Waterfox\\/(\\d+(\\.\\d+)?)")],[Fj]:[new RegExp("GSA\\/(\\d+(\\.\\d+)?)")],[yj]:[new RegExp("(rv:|MSIE )(\\d+(\\.\\d+)?)")],Mozilla:[new RegExp("rv:(\\d+(\\.\\d+)?)")]},u6=function(e,t,n,i){const s=$j(e,t,n,i),r=d6[s];if(U(r))return null;for(let o=0;r.length>o;o++){const c=e.match(r[o]);if(c)return parseFloat(c[c.length-2])}return null},l_=[[new RegExp("Xbox; Xbox (.*?)[);]","i"),e=>[Tp,e&&e[1]||""]],[new RegExp(Ah,"i"),[Ah,""]],[new RegExp(Ph,"i"),[Ph,""]],[Tv,[Np,""]],[new RegExp(Dm,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[Cj,""];if(new RegExp(To).test(t)&&!/IEMobile\b/.test(t))return["Windows Mobile",""];const n=/Windows NT ([0-9.]+)/i.exec(t);if(n&&n[1]){let i=c6[n[1]]||"";return/arm/i.test(t)&&(i="RT"),[Dm,i]}return[Dm,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?["iOS",[e[3],e[4],e[5]||"0"].join(".")]:["iOS",""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{let t="";return e&&e.length>=3&&(t=U(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("(Android (\\d+)\\.(\\d+)\\.?(\\d+)?|Android)","i"),e=>e&&e[2]?[Fc,[e[2],e[3],e[4]||"0"].join(".")]:[Fc,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{const t=["Mac OS X",""];return e&&e[1]&&(t[1]=[e[1],e[2],e[3]||"0"].join(".")),t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,["Chrome OS",""]],[/Linux|debian/i,["Linux",""]]],Bj=function(e){for(let t=0;l_.length>t;t++){const[n,i]=l_[t],s=n.exec(e),r=s&&(Ut(i)?i(s,e):i);if(r)return r}return["",""]},zj=function(e){return l6.test(e)?Ah:o6.test(e)?Ph:a6.test(e)?Tp:new RegExp(rx,"i").test(e)?rx:new RegExp("(Windows Phone|WPDesktop)","i").test(e)?Cj:/iPad/.test(e)?mj:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?gj:Tv.test(e)?Np:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(o_,"i").test(e)?o_:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?new RegExp(To).test(e)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)||/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?Fc:fj:new RegExp("(pda|Mobile)","i").test(e)?r6:new RegExp(Eh,"i").test(e)&&!new RegExp("Tablet pc","i").test(e)?Nj:""},h6=function(e,t){var n;const i=zj(e);return i===mj||i===fj||i==="Kobo"||i==="Kindle Fire"||i===Nj?Eh:i===Ah||i===Tp||i===Ph||i===rx?"Console":i===gj?"Wearable":i?To:(t==null?void 0:t.userAgentDataPlatform)==="Android"&&((n=t==null?void 0:t.maxTouchPoints)!==null&&n!==void 0?n:0)>0?600>Math.min((s=t==null?void 0:t.screenWidth)!==null&&s!==void 0?s:0,(r=t==null?void 0:t.screenHeight)!==null&&r!==void 0?r:0)/((o=t==null?void 0:t.devicePixelRatio)!==null&&o!==void 0?o:1)?To:Eh:"Desktop";var s,r,o},Bm=/\bFBAV\/(\d+(?:\.\d+)*)/i,c_=[[/\bInstagram(?:[ /](\d+(?:\.\d+)*))?\b/i,"Instagram"],[/\bBarcelona[ /](\d+(?:\.\d+)*)?/i,"Threads"],[/\b(?:MessengerForiOS|(?:FBAN|FB_IAB)\/Orca-Android)\b/i,"Messenger",Bm],[/\bFBAN\/EMA\b/i,"Facebook Lite",Bm],[/\b(?:FBIOS|(?:FBAN|FB_IAB)\/(?:FB4A|FBIOS))\b/i,"Facebook",Bm],[/\bLinkedInApp(?:\]?\/(\d+(?:\.\d+)*))?\b/i,"LinkedIn"],[/\bTwitter(?:Android| for (?:iPhone|iPad|Android))(?
67:\/(\d+(?:\.\d+)*))?\b/i,"Twitter"],[/\b(?:musical_ly|trill)(?:[_/](\d+\.\d+(?:\.\d+)*))?(?=\b|_)/i,"TikTok",/\bapp_version\/(\d+(?:\.\d+)*)/i],[/\b(?:MicroMessenger|WeChat)\/(\d+(?:\.\d+)*)?/i,"WeChat"],[/\bLine\/(\d+(?:\.\d+)*)?/i,"Line"],[/\bGSA\/(\d+(?:\.\d+)*)?/i,"Google"],[/\[Pinterest\/(?:iOS|Android)\b|\bPinterest(?: for (?:Android(?: Tablet)?|iOS))?\/(\d+(?:\.\d+)*)/i,"Pinterest"],[/\b(?:WA4A|WAiOS)\/(\d+(?:\.\d+)*)?/i,"WhatsApp"],[/\bSnapchat[ /](\d+(?:\.\d+)*)?/i,"Snapchat"],[/\bBing(?:Web|Sapphire)\/(\d+(?:\.\d+)*)?/i,"Bing"],[/\bNAVER\(inapp; search;/i,"Naver",/\bNAVER\(inapp; search;[^;)]*; (\d+(?:\.\d+)*)/i],[/\bKAKAOTALK[ /](\d+\.\d+(?:\.\d+)*)?/i,"KakaoTalk"]],lx="[Truncated]",od="[Unserializable]";function wo(e){let t="";for(let n=0;e.length>n;n++){const i=e.charCodeAt(n);if(55296>i||i>56319)t+=56320>i||i>57343?e[n]:"�";else{const s=e.charCodeAt(n+1);56320>s||s>57343?t+="�":(t+=e[n]+e[n+1],n++)}}return t}function Vj(e,t){if(!t)return e;let n=[];try{n=Object.keys(t)}catch{n=[]}for(const i of n){let s;try{s=t[i]}catch{s=od}Object.defineProperty(e,i,{value:s,enumerable:!0,writable:!0,configurable:!0})}return e}const dh=3e5;var Hj=class{record(e){if(e.kind==="too-large")return;if(e.kind!=="retry-later")return void this.reset();if(!e.retryAfterMs)return;const t=this.isOpen(),n=Date.now(),i=Math.min(e.retryAfterMs,dh);if(!t)return this.ts=n,void(this.es=n+i);this.es=Math.max(this.es,Math.min(n+i,this.ts+dh))}remainingMs(){const e=Date.now();if(this.ts-5e3>e)return this.reset(),0;const t=Math.min(dh,Math.max(0,this.es-e));return t===0&&this.reset(),t}isOpen(){return this.remainingMs()>0}reset(){this.es=0,this.ts=0}constructor(){this.es=0,this.ts=0}};const p6=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function d_(e,t){return typeof(n=e)=="string"&&p6.test(n)?e:t();var n}function Wj(e,t){const n=new Error(t);try{Object.defineProperty(n,"name",{value:e,writable:!0,enumerable:!0,configurable:!0})}catch{}return n}function yr(e){return e&&e.split("#")[0]}function u_(e){try{return e()}catch{return}}function qj(e,t){const n=setTimeout(e,t);return n!=null&&n.unref&&(n==null||n.unref()),n}function h_(e,t,n){return Uj.apply(this,arguments)}function Uj(){return(Uj=dt(function*(e,t,n){let i;try{return yield Promise.race([e,new Promise((s,r)=>{i=qj(()=>{try{n==null||n(),s()}catch(o){r(o)}},t)})])}finally{clearTimeout(i)}})).apply(this,arguments)}let Eu,p_,zm;function f6(e){const t=globalThis._posthogChunkIds;if(!t)return;const n=Object.keys(t);return zm&&n.length===p_||(p_=n.length,zm=n.reduce((i,s)=>{Eu||(Eu={});const r=Eu[s];if(r)i[r[0]]=r[1];else{const o=e(s);for(let c=o.length-1;c>=0;c--){const u=o[c],h=u==null?void 0:u.filename,f=t[s];if(h&&f){i[h]=f,Eu[s]=[h,f];break}}}return i},{})),zm}function gc(e){return gc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gc(e)}function m6(e,t,n){return(t=function(i){var s=function(r){if(gc(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var c=o.call(r,"string");if(gc(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(i);return gc(s)=="symbol"?s:s+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function R(e){for(var t=1;arguments.length>t;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f_(Object(n),!0).forEach(function(i){m6(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f_(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}var g6=class{constructor(e,t,n=[]){this.coercers=e,this.stackParser=t,this.modifiers=n}buildFromUnknown(e,t={}){const n=t&&t.mechanism||{handled:!0,type:"generic"},i=this.buildCoercingContext(n,t,0).apply(e),s=this.buildParsingContext(t),r=this.parseStacktrace(i,s);return{$exception_list:this.convertToExceptionList(r,n),$exception_level:"error"}}modifyFrames(e){var t=this;return dt(function*(){for(const n of e)n.stacktrace&&n.stacktrace.frames&&Te(n.stacktrace.frames)&&(n.stacktrace.frames=yield t.applyModifiers(n.stacktrace.frames));return e})()}coerceFallback(e){var t;return{type:"Error",value:"Unknown error",stack:(t=e.syntheticException)===null||t===void 0?void 0:t.stack,synthetic:!0}}parseStacktrace(e,t){var n;let i,s;if(e.cause!=null&&(i=this.parseStacktrace(e.cause,t)),e.stack!=""&&e.stack!=null)try{s=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?t.ski
67pFirstLines:0),t.chunkIdMap)}catch{}return R(R({},e),{},{cause:i,stack:s,errors:(n=e.errors)===null||n===void 0?void 0:n.map(r=>this.parseStacktrace(r,t))})}applyChunkIds(e,t){return e.map(n=>(n.filename&&t&&(n.chunk_id=t[n.filename]),n))}applyCoercers(e,t){for(const n of this.coercers)if(n.match(e))return n.coerce(e,t);return this.coerceFallback(t)}applyModifiers(e){var t=this;return dt(function*(){let n=e;for(const i of t.modifiers)n=yield i(n);return n})()}convertToExceptionList(e,t){const n=[],i=(s,r,o)=>{var c;const u=n.length,h=r===void 0?R(R({type:typeof t.type=="string"&&t.type.length>0?t.type:"generic"},typeof t.handled=="boolean"?{handled:t.handled}:t.handled===void 0?{handled:!0}:{}),{},{synthetic:typeof t.synthetic=="boolean"?t.synthetic:s.synthetic,exception_id:u}):{type:"chained",source:o,synthetic:s.synthetic,exception_id:u,parent_id:r},f={type:s.type,value:s.value,mechanism:h};s.stack&&(f.stacktrace={type:"raw",frames:s.stack}),n.push(f),s.cause&&i(s.cause,u,"cause");for(const m of(c=s.errors)!==null&&c!==void 0?c:[])i(m,u,"member")};return i(e),n}buildParsingContext(e){var t;return{chunkIdMap:f6(this.stackParser),skipFirstLines:(t=e.skipFirstLines)!==null&&t!==void 0?t:1}}getAggregateErrors(e){try{if(zo(e)){let n=Object.getPrototypeOf(e);for(let i=0;n&&100>i;i++){var t;const s=(t=Object.getOwnPropertyDescriptor(n,"constructor"))===null||t===void 0?void 0:t.value;if(typeof s=="function"&&s.name==="AggregateError"){const r=e.errors;return Te(r)?r:void 0}n=Object.getPrototypeOf(n)}}}catch{}}buildCoercingContext(e,t,n=0){let i=0,s=0,r=!1;const o=new Set,c=[],u={},h=(x,y,b=0)=>{const k=f(y,b),w=k.apply;if(k.apply=L=>{c.push(x);try{return w(L)}finally{c.pop()}},b>4||b>0&&c.indexOf(x)!==-1)return this.coerceFallback(k);const S=typeof x=="object"&&x!==null||typeof x=="function";if(b===0&&i>=50||S&&o.has(x))return;S&&o.add(x),b===0&&i++;const j=this.getAggregateErrors(x);let N,E;r||(r=!!j);try{if(N=this.applyCoercers(x,k),!N)throw u}catch(L){if(L===u)return void(b===0&&i--);if(!r)throw L;N=this.coerceFallback(k)}if(!j||i>=50)return N;try{E=j.length}catch{return N}if(!Number.isInteger(E)||0>E||E>4294967295)return N;const T=[];for(let L=0;50>i&&1e3>s&&E>L;L++){let M;s++;try{M=k.next(j[L])}catch{i++,M=this.coerceFallback(f(y+1))}M&&T.push(M)}return R(R({},N),{},{errors:T})},f=(x,y=0)=>R(R({},t),{},{syntheticException:x==0?t.syntheticException:void 0,mechanism:x==0?e:{},apply(b){const k=h(b,x,y+1);if(!k)throw u;return k},next:b=>h(b,x+1)}),m=f(n);return R(R({},m),{},{apply:x=>{var y;return(y=h(x,n))!==null&&y!==void 0?y:this.coerceFallback(m)}})}};const x6=/^([a-z][a-z0-9.+-]+):/i,v6=["http","https","file","blob","app","capacitor","ionic","webpack","webpack-internal","ng"];function y6(e){if(!e||e==="<anonymous>")return!1;const t=x6.exec(e);return!t||v6.includes(t[1].toLowerCase())}function cx(e,t,n,i,s){const r={platform:e,filename:t,function:n==="<anonymous>"?"?":n,in_app:y6(t)};return U(i)||(r.lineno=i),U(s)||(r.colno=s),r}const Gj=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,i=e.indexOf("safari-web-extension")!==-1;return n||i?[e.indexOf("@")!==-1?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},b6=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,w6=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,_6=/\((\S*)(?::(\d+))(?::(\d+))\)/,k6=(e,t)=>{const n=b6.exec(e);if(n){const[,s,r,o]=n;return cx(t,s,"?",+r,+o)}const i=w6.exec(e);if(i){if(i[2]&&i[2].indexOf("eval")===0){const o=_6.exec(i[2]);o&&(i[2]=o[1],i[3]=o[2],i[4]=o[3])}const[s,r]=Gj(i[1]||"?",i[2]);return cx(t,r,s,i[3]?+i[3]:void 0,i[4]?+i[4]:void 0)}},S6=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,j6=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,C6=(e,t)=>{const n=S6.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){const r=j6.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}let i=n[3],s=n[1]||"?";return[s,i]=Gj(s,i),cx(t,i,s,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},m_=/\(error: (.*)\)/;function Ev(e,t){return e.filename===t.filename&&e.function===t.function&&e.module===t.module&&e.lineno===t.lineno&&e.colno===t.colno}function N6(e){for(let t=1;10>=t;t++){const n=e.length-2*t;if(0>n)break;let i=!0;for(let s=0;t>s;s++)if(!Ev(e[n+s],e[n+t+s])){i=!1;break}if(i){for(let s=0;t>s;s++)e[n+s]=e[n+t+s];return e.length=n+t,{start:n,length:t}}}}function T6(e,t){const n=t.start+t.length,i=Kj(e,t);i&&e.splice(n+i===e.length?n:t.start,i)}function Yj(e,t){let n=t.start;for(;n>0&&Ev(e[n-1],e[n-1+t.length]);)n--;return t.start-n}function Kj(e,t){const n=t.start+t.length;let i=n;for(;e.length>i&&Ev(e[i],e[i-t.length]);)i++;return i-n}function E6(e,t){const n=t[0];
67let i=e.length-(n?Yj(e,n):0);for(const s of t)i-=Kj(e,s);return i}function A6(e,t,n){for(let i=0;e.length>i;i++){const s=e[(t+i)%e.length],r=e[(n+i)%e.length];if(s!==r)return r>s}return!1}var P6=class{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,t){const n=Be(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:n?e.stack:void 0,cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){const t=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?`${t}: ${e.message}`:t}isDOMException(e){return Th(e,"DOMException")}isDOMError(e){return Th(e,"DOMError")}},I6=class{match(e){return zo(e)}coerce(e,t){var n;const i=this.getStack(e),s=i===void 0?(n=t.syntheticException)===null||n===void 0?void 0:n.stack:void 0,r=!!s;return{type:this.getType(e),value:this.getMessage(e,t),stack:i??s,cause:e.cause?t.next(e.cause):void 0,synthetic:r}}getType(e){return e.name||e.constructor.name}getMessage(e,t){const n=e.message;return String(n.error&&typeof n.error.message=="string"?n.error.message:n)}getStack(e){try{const t=e.stacktrace;if(typeof t=="string"&&t.length>0)return t;const n=e.stack;return typeof n=="string"&&n.length>0?n:void 0}catch{return}}},R6=class{match(e){return!!Th(e,"ErrorEvent")&&(e.error!=null||this.ur(e))}coerce(e,t){var n;if(e.error!=null)return t.apply(e.error);const i=t.apply(e.message);return R(R({},i),{},{stack:(n=this.cr(e))!==null&&n!==void 0?n:i.stack,synthetic:!0})}ur(e){return Be(e.message)&&e.message.length>0}cr(e){var t,n;const i=e,s=(t=i.lineno)!==null&&t!==void 0?t:0,r=(n=i.colno)!==null&&n!==void 0?n:0;if(Be(i.filename)&&i.filename.length!==0&&s!==0)return`Error
68    at ${i.filename}:${s}:${r}`}};const M6=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;var O6=class{match(e){return typeof e=="string"}coerce(e,t){var n;const[i,s]=this.getInfos(e);return{type:i??"Error",value:s??e,stack:(n=t.syntheticException)===null||n===void 0?void 0:n.stack,synthetic:!0}}getInfos(e){let t="Error",n=e;const i=e.match(M6);return i&&(t=i[1],n=i[2]),[t,n]}};const L6=["fatal","error","warning","log","info","debug"];function Qj(e,t=40){const n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(let i=n.length;i>0;i--){const s=n.slice(0,i).join(", ");if(t>=s.length)return i===n.length?s:s.length>t?`${s.slice(0,t)}...`:s}return""}var D6=class{match(e){return typeof e=="object"&&e!==null}coerce(e,t){var n,i;const s=this.getErrorPropertyFromObject(e);return s?t.apply(s):{type:this.getType(e),value:this.getValue(e),stack:(n=this.getStack(e))!==null&&n!==void 0?n:(i=t.syntheticException)===null||i===void 0?void 0:i.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){if(Nv(e))return e.constructor.name;const t="name"in e?e.name:void 0;return Be(t)&&!mc(t)?t:"Error"}getValue(e){if("name"in e&&typeof e.name=="string"){let n=`'${e.name}' captured as exception`;return"message"in e&&typeof e.message=="string"&&(n+=` with message: '${e.message}'`),n}if("message"in e&&typeof e.message=="string")return e.message;const t=this.getObjectClassName(e);return`${t&&t!=="Object"?`'${t}'`:"Object"} captured as exception with keys: ${Qj(e)}`}isSeverityLevel(e){return Be(e)&&!mc(e)&&L6.indexOf(e)>=0}getStack(e){try{return Be(e.stacktrace)&&e.stacktrace.length>0?e.stacktrace:Be(e.stack)&&e.stack.length>0?e.stack:void 0}catch{return}}getErrorPropertyFromObject(e){for(const t in e)if({}.hasOwnProperty.call(e,t)){const n=e[t];if(zo(n))return n}}getObjectClassName(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{return}}},F6=class{match(e){return Nv(e)}coerce(e,t){var n;const i=e.constructor.name;return{type:i,value:`${i} captured as exception with keys: ${Qj(e)}`,stack:(n=t.syntheticException)===null||n===void 0?void 0:n.stack,synthetic:!0}}},$6=class{match(e){return hj(e)}coerce(e,t){var n;return{type:"Error",value:`Primitive value captured as exception: ${String(e)}`,stack:(n=t.syntheticException)===null||n===void 0?void 0:n.stack,synthetic:!0}}},B6=class{match(e){return Th(e,"PromiseRejectionEvent")||this.isCu
68stomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!Nv(e))return!1;try{const t=e.detail;return t!=null&&typeof t=="object"&&"reason"in t}catch{return!1}}coerce(e,t){var n;const i=this.getUnhandledRejectionReason(e);return hj(i)?{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`,stack:(n=t.syntheticException)===null||n===void 0?void 0:n.stack,synthetic:!0}:t.apply(i)}getUnhandledRejectionReason(e){try{if("reason"in e)return e.reason;if("detail"in e&&e.detail!=null&&typeof e.detail=="object"&&"reason"in e.detail)return e.detail.reason}catch{}return e}};const Ih="$message",Rh="$timestamp",z6=new Set([Ih,Rh]),Vm={enabled:!0,max_bytes:32768};function Mh(e){var t;return e?{enabled:(t=e.enabled)!==null&&t!==void 0?t:Vm.enabled,max_bytes:H6(e.max_bytes,Vm.max_bytes)}:R({},Vm)}var V6=class{constructor(e){this.ns=[],this.ss=0,this.Rr=Mh(e)}setConfig(e){this.Rr=Mh(e),this.rs()}add(e){const t=function(i){let s;try{s=dj(i)}catch{return}try{const r=JSON.parse(s);if(!We(r))return;const o=r,c=o[Ih],u=o[Rh];return!Be(c)||c.trim().length===0||!Be(u)&&!jt(u)?void 0:{step:o,json:s}}catch{return}}(e);if(!t)return;const n=function(i){if("u">typeof TextEncoder)return new TextEncoder().encode(i).length;const s=encodeURIComponent(i);let r=0;for(let o=0;s.length>o;o++)s[o]==="%"?(r+=1,o+=2):r+=1;return r}(t.json);n>this.Rr.max_bytes||(this.ns.push({step:t.step,bytes:n}),this.ss+=n,this.rs())}getAttachable(){return this.ns.map(e=>e.step)}clear(){this.ns=[],this.ss=0}size(){return this.ns.length}rs(){for(;this.ss>this.Rr.max_bytes&&this.ns.length>0;){const e=this.ns.shift();e&&(this.ss-=e.bytes)}}};function H6(e,t){if(!jt(e)||e===1/0||e===-1/0)return t;const n=Math.floor(e);return 0>n?t:n}const g_=e=>{if(typeof e!="string")return e;try{return JSON.parse(e)}catch{return e}};function x_(e){return typeof e=="string"||e}function v_(e){return typeof e=="string"?e:void 0}const W6=["$feature_flag","$feature_flag_response","$feature_flag_has_experiment","$feature_flag_id","$feature_flag_version","$feature_flag_reason","$feature_flag_request_id","$feature_flag_evaluated_at","$feature_flag_error","locally_evaluated","$groups","$process_person_profile","$geoip_disable","$current_url","$pathname","$referring_domain","utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid","gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx","$session_id","$window_id","$lib","$lib_version","$device_id","$is_server"],Xj="NativeGzipValidationError",dx=e=>e.length>=2&&e[0]===31&&e[1]===139,y_=(e,t)=>e===ix.GZipJS||t===ix.GZipJS||t==="gzip",b_=e=>!(!e||typeof e!="object")&&("name"in e?String(e.name):"")==="NotReadableError";let Ll;const Au=e=>{throw Wj(Xj,`Native gzip produced invalid output: ${e}`)},q6=(w_=dt(function*(e,t){18>e.size&&Au("too-short");const n=new Uint8Array(yield e.slice(0,10).arrayBuffer());dx(n)&&n[2]===8||Au("invalid-header");const i=new DataView(yield e.slice(e.size-8).arrayBuffer());i.getUint32(0,!0)!==(r=>{const o=(()=>{if(Ll)return Ll;Ll=[];for(let u=0;256>u;u++){let h=u;for(let f=0;8>f;f++)h=1&h?3988292384^h>>>1:h>>>1;Ll[u]=h>>>0}return Ll})();let c=4294967295;for(let u=0;r.length>u;u++)c=o[255&(c^r[u])]^c>>>8;return(4294967295^c)>>>0})(t)&&Au("invalid-crc");const s=t.length>>>0;i.getUint32(4,!0)!==s&&Au("invalid-size")}),function(e,t){return w_.apply(this,arguments)});var w_;function ux(){return ux=dt(function*(e,t=!0,n){try{const s=new TextEncoder().encode(e),r=new globalThis.CompressionStream("gzip"),o=r.writable.getWriter(),c=o.write(s).then(()=>o.close()).catch((i=dt(function*(f){try{yield o.abort(f)}catch{}throw f}),function(f){return i.apply(this,arguments)})),u=new Response(r.readable).blob(),[h]=yield Promise.all([u,c]);return yield q6(h,s),h}catch(s){if(n!=null&&n.rethrow)throw s;return t&&console.error("Failed to gzip compress data",s),null}var i}),ux.apply(this,arguments)}function Zj(e,t){if(e==null)return{};var n,i,s=function(o,c){if(o==null)return{};var u={};for(var h in o)if({}.hasOwnProperty.call(o,h)){if(c.includes(h))continue;u[h]=o[h]}return u}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;r.length>i;i++)t.includes(n=r[i])||{}.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}const U6={}.propertyIsEnumerable;function Oh(e,t){try{return Jj(e,t,{ancestors:new WeakSet,remainingNodes:1e4}
68,0)}catch{return[]}}function Av(e,t,n,i){if(0>=n.remainingNodes)return{stringValue:lx};if(n.remainingNodes--,bn(e))return{boolValue:e};if(typeof e=="bigint")return function(s,r){const o=s.toString(),c=BigInt("9223372036854775808");return s>=c||-c>s?(r==null||r.debug(`Attribute ${o} is outside the int64 range; encoding it as a string`),{stringValue:o}):{intValue:o}}(e,t);if(typeof e=="number"){if(!Number.isFinite(e))return{stringValue:String(e)};if(Number.isInteger(e)){if(Number.isSafeInteger(e))return{intValue:String(e)};if(typeof BigInt>"u")return{stringValue:String(e)};const s=BigInt(e).toString();return e>=9223372036854776e3||-9223372036854776e3>e?(t==null||t.debug(`Attribute ${s} is outside the int64 range; encoding it as a string`),{stringValue:s}):{intValue:s}}return{doubleValue:e}}if(typeof e=="string")return{stringValue:wo(e)};if(typeof e=="function")return{stringValue:"[Function]"};if(typeof e=="symbol")return{stringValue:String(e)};if(typeof e=="object"&&e!==null){if(n.ancestors.has(e))return{stringValue:"[Circular]"};if(i>=20)return{stringValue:lx};if(e instanceof Date){const s=e.getTime(),r=Number.isFinite(s)?e.toISOString():String(e);return{stringValue:typeof r=="string"?wo(r):String(r)}}n.ancestors.add(e);try{try{const s=e.toJSON;if(typeof s=="function")return Av(s.call(e),t,n,i+1)}catch{}return Te(e)?{arrayValue:{values:G6(e,t,n,i+1)}}:{kvlistValue:{values:Jj(e,t,n,i+1)}}}finally{n.ancestors.delete(e)}}return{stringValue:wo(String(e))}}function G6(e,t,n,i){const s=[],r=Math.min(e.length,1e3);let o=0;for(;r>o&&n.remainingNodes>0;o++)try{const c=o in e?e[o]:void 0;if(Le(c))continue;s.push(Av(c,t,n,i))}catch{s.push({stringValue:od})}return e.length>o&&s.push({stringValue:lx}),s}function Jj(e,t,n,i){const s=[];for(const r in e)if(U6.call(e,r)){if(!r){t==null||t.debug("Dropping an attribute with an empty key");continue}if(s.length>=1e3||0>=n.remainingNodes){t==null||t.debug("Attributes truncated: the value exceeds the OTLP encoder budget");break}try{const o=e[r];if(bt(o)||U(o))continue;s.push({key:wo(r),value:Av(o,t,n,i)})}catch{s.push({key:wo(r),value:{stringValue:od}})}}return s}function e5(e,t,n){return R(R(R(R({},Vj({},e.resourceAttributes)),{},{"service.name":e.serviceName||"unknown_service"},e.environment&&{"deployment.environment":e.environment}),e.serviceVersion&&{"service.version":e.serviceVersion}),{},{"telemetry.sdk.name":t,"telemetry.sdk.version":n})}const Y6=["service.name","deployment.environment","service.version","telemetry.sdk.name","telemetry.sdk.version"];function t5(e,t){const n=Vj({},e),i={};for(const s of Y6)({}).hasOwnProperty.call(n,s)&&(i[s]=n[s],delete n[s]);return[...Oh(n,t),...Oh(i,t)]}const __={darwin:"macOS",win32:"Windows",cygwin:"Windows",linux:"Linux",android:"Android",freebsd:"FreeBSD",openbsd:"OpenBSD",netbsd:"NetBSD",sunos:"SunOS",aix:"AIX",haiku:"Haiku","Mac OS X":"macOS"},n5={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},K6=n5.info;function Q6(e){try{return wo(String(e))}catch{return od}}function X6(e,t,n,i){const s=e.level||"info",{text:r,number:o}=n5[s]||K6,c=function(x=Date.now()){return String(x)+"000000"}(jt(i)?i:void 0),u={};t.distinctId&&(u.posthogDistinctId=t.distinctId),t.sessionId&&(u.sessionId=t.sessionId),t.windowId&&(u["window.id"]=t.windowId),Le(t.sessionStartTimestamp)||(u.sessionStartTimestamp=String(t.sessionStartTimestamp)),Le(t.lastActivityTimestamp)||(u.lastActivityTimestamp=String(t.lastActivityTimestamp)),t.currentUrl&&(u["url.full"]=t.currentUrl),t.screenName&&(u["screen.name"]=t.screenName),t.appState&&(u["app.state"]=t.appState),t.activeFeatureFlags&&t.activeFeatureFlags.length>0&&(u.feature_flags=t.activeFeatureFlags);const h=R({},u),f=e.attributes;if(f){let x=[];try{x=Object.keys(f)}catch{x=[]}for(const y of x){let b;try{b=f[y]}catch{b=od}Object.defineProperty(h,y,{value:b,enumerable:!0,writable:!0,configurable:!0})}}const m={timeUnixNano:c,observedTimeUnixNano:c,severityNumber:o,severityText:r,body:{stringValue:Q6(e.body)},attributes:Oh(h,n)};return e.trace_id&&(m.traceId=e.trace_id),e.span_id&&(m.spanId=e.span_id),U(e.trace_flags)||(m.flags=e.trace_flags),m}
68function i5(e,t,n){return e5(e,t,n)}function s5(e,t,n,i){return{resourceLogs:[{resource:{attributes:t5(t)},scopeLogs:[{scope:{name:n,version:i},logRecords:e}]}]}}var r5=class{constructor(e){this.ls=e,this.us=0}get pending(){return!!this.hs}arm(e){this.clear(),this.us=Date.now()+e,this.hs=qj(()=>{this.hs=void 0,this.ls()},e)}armNoEarlierThan(e){this.hs&&Date.now()+e<=this.us||this.arm(e)}clear(){this.hs&&(clearTimeout(this.hs),this.hs=void 0)}};function a5(){return .75+.5*Math.random()}function o5(e,t,n,i){const s=Math.min(Math.max(0,t-1),6),r=e*Math.pow(2,s);return Math.round(Math.min(r,Math.max(i,e))*n)}var Z6=class{constructor(e,t,n,i,s,r=()=>Promise.resolve(),o){var c;this._instance=e,this.Rr=t,this.$=n,this.cs=i,this.ds=s,this.vs=r,this.fs=o,this.ps=new r5(()=>this.gs()),this.ys=null,this.bs=0,this._s=0,this.ws=new Hj,this.ks=0,this.Ss=1,this.xs=0,this.Cs=0,this.$s=!1,this.Ts=t.maxBufferSize,this.Is=Math.max((c=t.maxQueueSize)!==null&&c!==void 0?c:t.maxBufferSize,t.maxBufferSize),this.Ms=t.flushIntervalMs,this.Es=t.maxBatchRecordsPerPost,this.Ps=t.rateCapWindowMs,this.Rs=t.maxLogsPerInterval}clearQueue(){this._s++,this._instance.setPersistedProperty($i.LogsQueue,[])}reset(){this.ps.clear(),this.xs=0,this.Cs=0,this.$s=!1,this.ks=0,this.Ss=1,this.ws.reset(),this.Es=this.Rr.maxBatchRecordsPerPost}onReconnect(){this.ks=0,this.Ss=1,this.ws.isOpen()?this.As()&&this.Fs():this.gs()}captureLog(e,t){var n;if(this._instance.isDisabled||this._instance.optedOut||!(e!=null&&e.body))return;const i=this.Os(e);if(i===null)return;if(!i.body)return void this.$.info("Log was rejected in beforeSend function");if(!this.Ds())return;const s={record:X6(i,(n=t==null?void 0:t.context)!==null&&n!==void 0?n:this.cs(),this.$,t==null?void 0:t.occurredAtMs)};this.ds(()=>this.Ls(s))}Os(e){const t=this.Rr.beforeSend;if(!t)return e;const n=Te(t)?t:[t];let i=e;for(const s of n)try{const r=s(i);if(!r)return this.$.info("Log was rejected in beforeSend function"),null;i=r}catch(r){return this.$.error("Error in beforeSend function for log:",r),null}return i}Ds(){if(this.Rs===void 0)return!0;const e=Date.now(),t=e-this.xs;return this.Ps>t&&t>=0||(this.xs=e,this.Cs=0,this.$s=!1),this.Rs>this.Cs?(this.Cs++,!0):(this.$s||(this.$.warn(`captureLog dropping logs: exceeded ${this.Rs} logs per ${this.Ps}ms`),this.$s=!0),!1)}flush(){var e=this;return dt(function*(){if(!e._instance.isDisabled)return e.ys||(e.ys=e.Ns().finally(()=>{e.ys=null})),e.ys})()}Ns(){var e=this;return dt(function*(){var t;e.ps.clear();let n=(t=e._instance.getPersistedProperty($i.LogsQueue))!==null&&t!==void 0?t:[];if(n.length===0)return;const i=n.length;let s=0;for(;n.length>0&&i>s;){var r,o;const c=e._s;e.bs=0;const u=Math.min(n.length,e.Es),h=n.slice(0,u),f=s5(h.map(x=>x.record),e.qs(),(r=e.fs)!==null&&r!==void 0?r:e._instance.getLibraryId(),e._instance.getLibraryVersion()),m=yield e._instance.js(f);if(e._s!==c)return;if(m.kind==="too-large"&&h.length>1)e.Es=Math.max(1,Math.floor(h.length/2)),e.$.warn(`Logs batch of size ${h.length} was too large for the ingestion endpoint, reducing batch size to ${e.Es}`);else if(e.ws.record(m),e.ps.pending&&e.ps.arm(Math.max(e.Ms,e.ws.remainingMs())),m.kind==="retry-later"||(m.kind==="too-large"?e.$.warn("Dropping a single log record with batch size 1 — the record is larger than the server cap and cannot be split further."):m.kind==="ok"&&e.Rr.maxBatchRecordsPerPost>e.Es&&(e.Es=Math.min(e.Rr.maxBatchRecordsPerPost,e.Es+1)),yield e.Bs(h.length),n=(o=e._instance.getPersistedProperty($i.LogsQueue))!==null&&o!==void 0?o:[],s+=h.length,m.kind==="fatal"))throw m.error}})()}Bs(e){var t=this;return dt(function*(){var n;const i=Math.max(0,e-t.bs),s=(n=t._instance.getPersistedProperty($i.LogsQueue))!==null&&n!==void 0?n:[];t._instance.setPersistedProperty($i.LogsQueue,s.slice(i)),yield t.vs()})()}qs(){return i5(this.Rr,this._instance.getLibraryId(),this._instance.getLibraryVersion())}Ls(e){var t;if(this._instance.optedOut)return;const n=(t=this._instance.getPersistedProperty($i.LogsQueue))!==null&&t!==void 0?t:[];this.Is>n.length||(n.shift(),this.bs++,this.$.info("Logs queue is full, dropping oldest record.")),n.push(e),this._instance.setPersistedProperty($i.LogsQueue,n),this.Ts>n.length||this.ws.isOpen()?this.Fs():this.gs()}Fs(){this.ps.pending||this.ps.arm(Math.max(this.Ms,this.ws.remainingMs()))}Hs(){return Math.max(o5(this.Ms,this.ks,this.Ss,3e4),this.ws.remainingMs())}As(){const e=this._instance.getPersistedProperty($i.LogsQueue);return!!e&&e.length>0}shutdown(e){var t=this;return dt(function*(){t.ps.clear();const n=t.flush().catch(()=>{});e!==void 0?yield h_(n,e):yield n})()}flushWithTimeout(e){var t=this;return dt(function*(){const n=t.flush();yield h_(n,e,()=>{n.catch(()=>{})})})()}gs(){this.flush().then(()=>{this.ks=0,this.Ss=1},e=>{this.ks++,this.Ss=a5(),this.$.error("PostHog logs flush failed:",e)}).finally(()=>{!this._instance.isDisabled&&this.As()&&this.ps.armNoEarlierThan(this.Hs())})}};const Hm=[0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4];function k_(e){return String(e)+"000000"}function S_(e,t,n,i){let s="";return i&&(s=Object.keys(i).sort().map(r=>`${JSON.stringify(r)}:${JSON.stringify(i[r])}`).join(",")),`${e}\0${t}\0${n??""}\0${s}`}var J6=class{constructor(e,t,n){this._instance=e,this.Rr=t,this.$=n,this.zs=new Map,this.ps=new r5(()=>this.flush().catch(i=>{this.$.error("Metrics flush failed:",i)}
vendor: 5,831 bytes, line 68
68)),this.ys=null,this.Us=!1,this.Ws=new Map,this.Vs=new Set,this.ws=new Hj,this.ks=0,this.Ss=1,this.Gs=0}count(e,t=1,n){this.Zs({name:e,type:"count",value:t,unit:n==null?void 0:n.unit,attributes:n==null?void 0:n.attributes})}gauge(e,t,n){this.Zs({name:e,type:"gauge",value:t,unit:n==null?void 0:n.unit,attributes:n==null?void 0:n.attributes})}histogram(e,t,n){this.Zs({name:e,type:"histogram",value:t,unit:n==null?void 0:n.unit,attributes:n==null?void 0:n.attributes})}flush(){var e=this;const t=this.ys,n=function(){var i=dt(function*(){t&&(yield t.catch(()=>{})),yield e.Qs()});return function(){return i.apply(this,arguments)}}()().finally(()=>{this.ys===n&&(this.ys=null)});return this.ys=n,n}drainWindow(){if(this.zs.size===0)return null;const e=this.zs;return this.zs=new Map,this.Us=!1,this.Ws=new Map,this.Vs=new Set,this.Js(e)}reset(){this.Gs++,this.ws.reset(),this.ks=0,this.Ss=1,this.ps.clear(),this.zs=new Map,this.ys=null,this.Us=!1,this.Ws=new Map,this.Vs=new Set}Zs(e){if(this._instance.isDisabled||this._instance.optedOut)return;const t=this.Os(e);if(t===null)return;if(!t.name||typeof t.name!="string")return void this.$.warn("Dropping metric with empty name");if(typeof t.value!="number"||!Number.isFinite(t.value))return void this.$.warn(`Dropping metric '${t.name}': value must be a finite number`);if(t.type==="count"&&0>t.value)return void this.$.warn(`Dropping count '${t.name}': counters are monotonic, value must be >= 0`);let n,i;try{n=t.attributes?R({},t.attributes):void 0,i=S_(t.type,t.name,t.unit,n)}catch(o){return void this.$.warn(`Dropping metric '${t.name}': attributes could not be serialized`,o)}let s=this.zs.get(i);if(!s){if(!this.Ks())return;s={name:t.name,type:t.type,unit:t.unit,attributes:n,windowStartMs:Date.now()},this.zs.set(i,s)}const r=this.Ws.get(t.name);r===void 0?this.Ws.set(t.name,t.type):r===t.type||this.Vs.has(t.name)||(this.Vs.add(t.name),this.$.warn(`Metric name '${t.name}' is already used as a ${r}; recording it as a ${t.type} too will blend both series in charts. Use a distinct name.`)),this.Xs(s,t.value),this.Fs()}Ks(){return this.Rr.maxSeriesPerFlush>this.zs.size||(this.Us||(this.Us=!0,this.$.warn(`Metric series cap reached (${this.Rr.maxSeriesPerFlush} per flush window); dropping new series until the next flush. Reduce attribute cardinality.`)),!1)}Xs(e,t){switch(e.type){case"count":var n;e.total=((n=e.total)!==null&&n!==void 0?n:0)+t;break;case"gauge":e.last=t;break;case"histogram":{e.hist||(e.hist={count:0,sum:0,min:t,max:t,bucketCounts:new Array(Hm.length+1).fill(0)});const i=e.hist;i.count+=1,i.sum+=t,i.min=Math.min(i.min,t),i.max=Math.max(i.max,t),i.bucketCounts[function(s,r){for(let o=0;r.length>o;o++)if(r[o]>=s)return o;return r.length}(t,Hm)]+=1;break}}}Os(e){const t=this.Rr.beforeSend;if(!t)return e;const n=Te(t)?t:[t];let i=e;for(const s of n)try{const r=s(i);if(!r)return this.$.info("Metric was rejected in beforeSend function"),null;i=r}catch(r){return this.$.error("Error in beforeSend function for metric:",r),null}return i}Fs(){this.ps.pending||this.ps.arm(this.Hs())}Hs(){return Math.max(o5(this.Rr.flushIntervalMs,this.ks,this.Ss,3e4),this.ws.remainingMs())}Qs(){var e=this;return dt(function*(){if(e.ps.clear(),e.zs.size===0)return;const t=e.zs;e.zs=new Map,e.Us=!1,e.Ws=new Map,e.Vs=new Set;const n=e.Gs,i=yield e._instance.Ys(e.Js(t));if(n===e.Gs)switch(e.ws.record(i),i.kind==="retry-later"?(e.ks++,e.Ss=a5()):(e.ks=0,e.Ss=1),e.ps.pending&&e.ps.arm(e.Hs()),i.kind){case"ok":return;case"retry-later":return e.ho(t),void e.ps.armNoEarlierThan(e.Hs());case"too-large":return void e.$.warn("Metrics batch exceeded the server size limit and was dropped");case"fatal":return void e.$.error("Failed to send metrics batch:",i.error)}})()}Js(e){return t=this.vo(e),n=function(r,o,c){return e5(r,o,c)}(this.Rr,this._instance.getLibraryId(),this._instance.getLibraryVersion()),i=this._instance.getLibraryId(),s=this._instance.getLibraryVersion(),{resourceMetrics:[{resource:{attributes:t5(n)},scopeMetrics:[{scope:{name:i,version:s},metrics:t}]}]};var t,n,i,s}vo(e){const t=k_(Date.now()),n=new Map;for(const o of e.values()){var i;const c=S_(o.type,o.name,o.unit,void 0);let u=n.get(c);u||(u=R({name:o.name},o.unit&&{unit:o.unit}),o.type==="count"?u.sum={aggregationTemporality:1,isMonotonic:!0,dataPoints:[]}:o.type==="gauge"?u.gauge={dataPoints:[]}:u.histogram={aggregationTemporality:1,dataPoints:[]},n.set(c,u));const h=Oh((i=o.attributes)!==null&&i!==void 0?i:{},this.$),f=k_(o.windowStartMs);if(o.type==="count"){var s;const m={attributes:h,startTimeUnixNano:f,timeUnixNano:t,asDouble:(s=o.total)!==null&&s!==void 0?s:0};u.sum.dataPoints.push(m)}else if(o.type==="gauge"){var r;const m={attributes:h,timeUnixNano:t,asDouble:(r=o.last)!==null&&r!==void 0?r:0};u.gauge.dataPoints.push(m)}else o.hist&&u.histogram.dataPoints.push({attributes:h,startTimeUnixNano:f,timeUnixNano:t,count:o.hist.count,sum:o.hist.sum,min:o.hist.min,max:o.hist.max,bucketCounts:o.hist.bucketCounts,explicitBounds:Hm})}return Array.from(n.values())}ho(e){for(const[i,s]of e){const r=this.zs.get(i);if(r)switch(r.windowStartMs=Math.min(r.windowStartMs,s.windowStartMs),r.type){case"count":var t,n;r.total=((t=r.total)!==null&&t!==void 0?t:0)+((n=s.total)!==null&&n!==void 0?n:0);break;case"gauge":break;case"histogram":if(s.hist)if(r.hist){r.hist.count+=s.hist.count,r.hist.sum+=s.hist.sum,r.hist.min=Math.min(r.hist.min,s.hist.min),r.hist.max=Math.max(r.hist.max,s.hist.max);for(let o=0;r.hist.bucketCounts.length>o;o++)r.hist.bucketCounts[o]+=s.hist.bucketCounts[o]}else r.hist=s.hist}else this.Ks()&&this.zs.set(i,s)}}};const l5=(e,{debugEnabled:t}={})=>{const n={N(i,...s){B&&(_s.DEBUG||B.POSTHOG_DEBUG||t)&&!U(B.console)&&B.console&&("__rrweb_original__"in B.console[i]?B.console[i].__rrweb_original__:B.console[i])(e,...s)},debug(...i){n.N("debug",...i)}
68,info(...i){n.N("log",...i)},warn(...i){n.N("warn",...i)},error(...i){n.N("error",...i)},critical(...i){console.error(e,...i)},uninitializedWarning(i){n.error(`You must initialize PostHog before calling ${i}`)},createLogger:(i,s)=>l5(`${e} ${i}`,s)};return n},ae=l5("[PostHog.js]"),kt=ae.createLogger,eP=kt("[ExternalScriptsLoader]"),Lh=e=>{const t=K==null?void 0:K.querySelectorAll("script");if(t){for(let n=0;t.length>n;n++)if(t[n].src===e||t[n].getAttribute("src")===e)return t[n]}},aa=(e,t,n)=>{if(e.config.disable_external_dependency_loading)return eP.warn(`${t} was requested but loading of external scripts is disabled.`),n("Loading of external scripts is disabled");const i=Lh(t);if(i){if(i.__posthog_loading_callback_fired)return n();const r=i.__posthog_loading_error;return r?n(r):(i.addEventListener("load",o=>{i.__posthog_loading_callback_fired=!0,n(void 0,o)}),void i.addEventListener("error",o=>{i.__posthog_loading_error=o,n(o)}))}const s=()=>{if(!K)return n("document not found");if(Lh(t))return aa(e,t,n);let r=K.createElement("script");if(r.type="text/javascript",r.crossOrigin="anonymous",r.src=t,r.onload=c=>{r.__posthog_loading_callback_fired=!0,n(void 0,c)},r.onerror=c=>{r.__posthog_loading_error=c,n(c)},e.config.prepare_external_dependency_script&&(r=e.config.prepare_external_dependency_script(r)),!r)return n("prepare_external_dependency_script returned null");if(e.config.external_scripts_inject_target==="head")K.head.appendChild(r);else{const c=K.querySelectorAll("body > script");var o;c.length>0?(o=c[0].parentNode)===null||o===void 0||o.insertBefore(r,c[0]):K.body.appendChild(r)}};K!=null&&K.body?s():K==null||K.addEventListener("DOMContentLoaded",s)},Wm={},j_=(e,t)=>{let n=`/static/${t}.js?v=${e.version}`;return t==="toolbar"&&(n=`${n}&t=${Math.floor(Date.now()/3e5)*3e5}`),e.requestRouter.endpointFor("assets",n)};we.__PosthogExtensions__=we.__PosthogExtensions__||{},we.__PosthogExtensions__.loadExternalDependency=(e,t,n)=>{if(t==="remote-config"){const s=e.requestRouter.endpointFor("assets",`/array/${e.config.token}/config.js`);return void aa(e,s,n)}const i=e.config.strict_script_versioning;if(i){const s=e.requestRouter.endpointFor("assets",`/static/${e.version}/${t}.js`),r=Wm[s];if(i==="fallback"&&r){if(Lh(r))return void aa(e,r,n);delete Wm[s]}return void aa(e,s,i==="fallback"?(o,c)=>{if(o)if(typeof o=="string")n(o);else{var u;const h=j_(e,t);Wm[s]=h;const f=Lh(s);f==null||(u=f.parentNode)===null||u===void 0||u.removeChild(f),aa(e,h,n)}else n(void 0,c)}:n)}aa(e,j_(e,t),n)},we.__PosthogExtensions__.loadSiteApp=(e,t,n)=>{const i=e.requestRouter.endpointFor("api",t);aa(e,i,n)},_s.DEBUG=!1,_s.LIB_VERSION="1.434.17",_s.LIB_NAME="web";var Ft=_s;const tP="$people_distinct_id",vi="distinct_id",Pv="$device_id",qm="$device_model",Dh="__alias",nP="__cmpns",C_="$fbc",_o="$fbc_persistence",N_="$fbp",xc="$fbp_persistence",hx="__timers",c5="$autocapture_disabled_server_side",px="$heatmaps_enabled_server_side",fx="$exception_capture_enabled_server_side",d5="$error_tracking_suppression_rules",mx="$error_tracking_capture_extension_exceptions",gx="$web_vitals_enabled_server_side",Iv="$dead_clicks_enabled_server_side",Rv="$product_tours_enabled_server_side",u5="$logs_capture_enabled_server_side",h5="$web_vitals_allowed_metrics",vc="$session_recording_remote_config",iP="$session_recording_enabled_server_side",sP="$replay_sample_rate",rP="$replay_override_sampling",aP="$replay_override_linked_flag",oP="$replay_override_url_trigger",lP="$replay_override_event_trigger",po="$sesid",p5="$session_is_sampled",cP="$session_past_minimum_duration",dP="$session_recording_url_trigger_activated_session",uP="$session_recording_event_trigger_activated_session",hP="$debug_first_full_snapshot_timestamp",pP="$sess_rec_flush_size",bi="$enabled_feature_flags",ys="$active_feature_flags",xx="$early_access_features",ma="$feature_flag_details",rr="$feature_flag_payloads",ga="$feature_flag_request_id",yc="$minimal_flag_called_events",Di="$override_feature_flags",oa="$override_feature_flag_payloads",ar="$stored_person_properties",or="$stored_group_properties",f5="$groups",vx="$surveys",Fh="$surveys_loaded_at",m5="$surveys_activated",g5="$surveys_activated_session",x5="$surveys_activated_timestamps",yx="ph_product_tours",fP="$product_tours_activated",mP="$product_tours_activated_session",gP="$conversations_widget_session_id",xP="$conversations_ticket_id",vP="$conversations_widget_state",yP="$conversations_user_traits",lr="$flag_call_reported",ic="$flag_call_reported_session_id",$c="$feature_flag_errors",mr="$feature_flag_evaluated_at",yn="$user_state",bx="$client_session_props",bP="$capture_rate_limit",v5="$initial_campaign_params",y5="$initial_referrer_info",fo="$initial_person_info",Mv="$epp",Um="$posthog_cookieless",b5="$cookieless_mode",w5="$sdk_debug_extensions_init_method",_5="$sdk_debug_extensions_init_time_ms",k5="$sdk_debug_recording_script_not_loaded",S5="$sdk_debug_replay_stale_config",wP="$sdk_debug_replay_event_trigger_status",_P="$sdk_debug_replay_linked_flag_trigger_status",kP="$sdk_debug_replay_matched_recording_trigger_groups",SP="$sdk_debug_replay_pen
68ding_trigger_conditions",jP="$sdk_debug_replay_remote_trigger_matching_config",CP="$sdk_debug_replay_trigger_groups_count",NP="$sdk_debug_replay_url_trigger_status",TP="$session_recording_start_reason",Ov="PostHog loadExternalDependency extension not found.",bs="anonymous",uh="identified",j5="identified_only",Bc="visibilitychange",$h="beforeunload",Lv="$pageview",T_="$pageleave",C5="$identify",E_="$groupidentify";function mo(e,t){Te(e)&&e.forEach(t)}function Ze(e,t){if(!Le(e))if(Te(e))e.forEach(t);else if((n=>n instanceof FormData)(e))e.forEach((n,i)=>t(n,i));else for(const n in e)Cv.call(e,n)&&t(e[n],n)}const ct=function(e,...t){for(const n of t)for(const i in n)n[i]!==void 0&&(e[i]=n[i]);return e};function hh(e){const t=Object.keys(e);let n=t.length;const i=new Array(n);for(;n--;)i[n]=[t[n],e[t[n]]];return i}const EP=function(e){return function(...t){try{return e.apply(this,t)}catch(n){ae.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),ae.critical(n)}}},Dv=function(e){const t={};return Ze(e,function(n,i){(Be(n)&&n.length>0||jt(n))&&(t[i]=n)}),t};function N5(e){const t=R({},e);for(const n of["name","message","stack","cause","errors"])try{n in e&&(t[n]=e[n])}catch{}return t}const AP=["herokuapp.com","vercel.app","netlify.app"];function PP(e){const t=e==null?void 0:e.hostname;if(!Be(t))return!1;const n=t.split(".").slice(-2).join(".");for(const i of AP)if(n===i)return!1;return!0}function Ke(e,t,n,i){const{capture:s=!1,passive:r=!0}=i??{};e==null||e.addEventListener(t,n,{capture:s,passive:r})}function wx(e){return e.name==="ph_toolbar_internal"}const bc=e=>{if(K){try{const t=e+"=",n=K.cookie.split(";").filter(i=>i.length);for(let i=0;n.length>i;i++){let s=n[i];for(;s.charAt(0)==" ";)s=s.substring(1,s.length);if(s.indexOf(t)===0)return decodeURIComponent(s.substring(t.length,s.length))}}catch{}return null}};Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return jt(e)&&isFinite(e)&&Math.floor(e)===e});var IP=class _x{constructor(t){if(this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(t,n,i,s){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(i)||!Number.isInteger(s)||0>t||0>n||0>i||0>s||t>0xffffffffffff||n>4095||i>1073741823||s>4294967295)throw new RangeError("invalid field value");const r=new Uint8Array(16);return r[0]=t/Math.pow(2,40),r[1]=t/Math.pow(2,32),r[2]=t/Math.pow(2,24),r[3]=t/Math.pow(2,16),r[4]=t/256,r[5]=t,r[6]=112|n>>>8,r[7]=n,r[8]=128|i>>>24,r[9]=i>>>16,r[10]=i>>>8,r[11]=i,r[12]=s>>>24,r[13]=s>>>16,r[14]=s>>>8,r[15]=s,new _x(r)}toString(){let t="";for(let n=0;this.bytes.length>n;n++)t=t+(this.bytes[n]>>>4).toString(16)+(15&this.bytes[n]).toString(16),n!==3&&n!==5&&n!==7&&n!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}clone(){return new _x(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(let n=0;16>n;n++){const i=this.bytes[n]-t.bytes[n];if(i!==0)return Math.sign(i)}return 0}},RP=class{generate(){const e=this.generateOrAbort();if(!U(e))return e;{this.Ct=0;const t=this.generateOrAbort();if(U(t))throw new Error("Could not generate UUID after timestamp reset");return t}}generateOrAbort(){const e=(()=>{const t=Date.now();return jt(t)&&isFinite(t)?Math.min(Math.max(Math.floor(t),0),0xffffffffffff):0})();if(e>this.Ct)this.Ct=e,this.Mt();else{if(this.Ct>=e+1e4)return;this.It++,this.It>4398046511103&&(this.Ct++,this.Mt())}return IP.fromFieldsV7(this.Ct,Math.trunc(this.It/Math.pow(2,30)),this.It&Math.pow(2,30)-1,this.Tt.nextUint32())}Mt(){this.It=1024*this.Tt.nextUint32()+(1023&this.Tt.nextUint32())}constructor(){this.Ct=0,this.It=0,this.Tt=new MP}};let T5=e=>{if("u">typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(let t=0;e.length>t;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};B&&!U(B.crypto)&&crypto.getRandomValues&&(T5=e=>crypto.getRandomValues(e));var MP=class{nextUint32(){return this.Rt.length>this.$t||(T5(this.Rt),this.$t=0),this.Rt[this.$t++]}constructor(){this.Rt=new Uint32Array(8),this.$t=1/0}};let A_;const wi=()=>OP().toString(),OP=()=>(A_||(A_=new RP)).generate();let Dl="";const LP=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i;let eo=null;const xt={Et(){if(!bt(eo))return eo;if(eo=!1,K)try{const e=`__ph_cookie_support_${wi()}`;xt.At(e,"xyz"),eo=bc(e)==='"xyz"',xt.Lt(e)}catch{eo=!1}return eo},Pt(e){ae.error("cookieStore error: "+e)},Ot:bc,Dt(e){let t;try{t=JSON.parse(xt.Ot(e))||{}}catch{}return t},At(e,t,n,i,s){if(!K)return!1;try{let r="",o="";const c=function(h,f){if(f){let m=function(x,y=K){if(Dl)return Dl;if(!y||["localhost","127.0.0.1"].includes(x))return"";const b=x.split(".");let k=Math.min(b.length,8);const w="dmn_chk_"+wi();for(;!Dl&&k--;){const S=b.slice(k).join("."),j=w+"=1;domain=."+S+";path=/";y.cookie=j+";max-age=3",y.cookie.includes(w)&&(y.cookie=j+";max-age=0",Dl=S)}return Dl}(h);if(!m){const x=(y=>{const b=y.match(LP);return b?b[0]:""})(h);x!==m&&ae.info("Warning: cookie subdomain discovery mismatch",x,m),m=x}return m?"; domain=."+m:""}return""}(K.location.hostname,i);if(n){const h=new Date;h.setTime(h.getTime()+864e5*n),r="; expires="+h.toUTCString()}s&&(o="; secure");const u=e+"="+encodeURIComponent(JSON.stringify(t))+r+"; SameSite=Lax; path=/"+c+o;return u.length>3686.4&&ae.warn("cookieStore warning: large cookie, len="+u.length),K.cookie=u,!0}catch{return!1}},Lt(e,t){if(K!=null&&K.cookie&&(!t||!bt(bc(e))))try{xt.At(e,"",-1,t)}catch{return}}};let Gm=null;const Ge={Et(){if(!bt(Gm))return Gm;let e=!0;if(U(B))e=!1;
68else try{const t="__mplssupport__";Ge.At(t,"xyz"),Ge.Ot(t)!=='"xyz"'&&(e=!1),Ge.Lt(t)}catch{e=!1}return e||ae.error("localStorage unsupported; falling back to cookie store"),Gm=e,e},Pt(e){ae.error("localStorage error: "+e)},Ot(e){try{return B==null?void 0:B.localStorage.getItem(e)}catch(t){Ge.Pt(t)}return null},Dt(e){try{return JSON.parse(Ge.Ot(e))||{}}catch{}return null},At(e,t){try{return B==null||B.localStorage.setItem(e,JSON.stringify(t)),!0}catch(n){Ge.Pt(n)}return!1},Lt(e){try{B==null||B.localStorage.removeItem(e)}catch(t){Ge.Pt(t)}}},Ym=[ar,ys,bi,ma,rr,ga,mr,$c,lr],la=[Pv,vi,po,p5,Mv,fo,_o,yn],Bh=e=>e+"_cpm",DP=["__proto__","constructor","prototype"],Km=e=>{if(!We(e))return{};const t={};return Object.keys(e).forEach(n=>{DP.indexOf(n)===-1&&(t[n]=e[n])}),t},Qm=(e,t=[])=>{const n={};return[...la,...t].forEach(i=>{const s=e[i];U(s)||bt(s)||s===""||(n[i]=s)}),n},E5=e=>{let t=5381,n=2166136261;for(let i=0;e.length>i;i++){const s=e.charCodeAt(i);t=33*t^s,n=Math.imul(n^s,16777619)}return e.length.toString(36)+"."+(t>>>0).toString(36)+"."+(n>>>0).toString(36)},P_=(e,t)=>({p:t,f:E5(JSON.stringify(e))}),I_=(e,t)=>{if(!t)return{properties:[],isValid:!1};try{const n=xt.Dt(Bh(e)),i=(n==null?void 0:n.f)===E5(t)&&Te(n.p);return{properties:i?n.p:[],isValid:i}}catch{return{properties:[],isValid:!1}}},Xm=(e,t)=>t+"|"+(xt.Ot(Bh(e))||""),to={},kx={Et:()=>!0,Pt(e){ae.error("memoryStorage error: "+e)},Ot:e=>e in to?to[e]:null,Dt:e=>e in to?to[e]:null,At:(e,t)=>(to[e]=t,!0),Lt(e){delete to[e]}};let Kr=null;const ot={Et(){if(!bt(Kr))return Kr;if(Kr=!0,U(B))Kr=!1;else try{const e="__support__";ot.At(e,"xyz"),ot.Ot(e)!=='"xyz"'&&(Kr=!1),ot.Lt(e)}catch{Kr=!1}return Kr},Pt(e){ae.error("sessionStorage error: ",e)},Ot(e){try{return B==null?void 0:B.sessionStorage.getItem(e)}catch(t){ot.Pt(t)}return null},Dt(e){try{return JSON.parse(ot.Ot(e))||null}catch{}return null},At(e,t){try{return B==null||B.sessionStorage.setItem(e,JSON.stringify(t)),!0}catch(n){ot.Pt(n)}return!1},Lt(e){try{B==null||B.sessionStorage.removeItem(e)}catch(t){ot.Pt(t)}}};var FP=class{constructor(e){this._instance=e}get Rr(){return this._instance.config}get consent(){return this.Lo()?0:this.No}isOptedOut(){return this.Rr.cookieless_mode==="always"||this.isRejected()||this.consent===-1&&this.Rr.cookieless_mode==="on_reject"}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.Rr.opt_out_capturing_by_default}optInOut(e){this.qo.At(this.jo,e?1:0,this.Rr.cookie_expiration,this.Rr.cross_subdomain_cookie,this.Rr.secure_cookie)}reset(){this.qo.Lt(this.jo,this.Rr.cross_subdomain_cookie)}get jo(){const{token:e,opt_out_capturing_cookie_prefix:t,consent_persistence_name:n}=this._instance.config;return n||(t?t+e:"__ph_opt_in_out_"+e)}get No(){const e=this.qo.Ot(this.jo);return Lm(e)?1:Ae(n6,e)?0:-1}get qo(){const e=this.Rr.opt_out_capturing_persistence_type,t=e==="localStorage"?Ge:xt,n=t.Et()?t:kx;if(!this.Bo||this.Bo!==n){this.Bo=n;const i=e==="localStorage"?xt:Ge;i.Ot(this.jo)&&(this.Bo.Ot(this.jo)||this.optInOut(Lm(i.Ot(this.jo))),i.Lt(this.jo,this.Rr.cross_subdomain_cookie))}return this.Bo}Lo(){return!!this.Rr.respect_dnt&&[Yt==null?void 0:Yt.doNotTrack,Yt==null?void 0:Yt.msDoNotTrack,we.doNotTrack,Yt==null?void 0:Yt.globalPrivacyControl].some(e=>Lm(e))}};function A5(e,t){var n;const i=e==null||(n=e.config)===null||n===void 0?void 0:n.get_current_url;if(!Ut(i))return t;try{const s=i(t);return Be(s)&&s?s:t}catch(s){return ae.error("Error in get_current_url, falling back to window.location.href",s),t}}function R_(e){var t;return e instanceof Element&&(e.id==="__POSTHOG_TOOLBAR__"||!!(!((t=e.closest)===null||t===void 0)&&t.call(e,".toolbar-global-fade-container")))}function Ki(e){return!!e&&e.nodeType===1}function on(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function P5(e){return!!e&&e.nodeType===3}function Fv(e){return!!e&&e.nodeType===11&&Ki(e.host)}function $v(e){return e?jp(e).split(/\s+/):[]}function M_(e,t){const n=function(i){var s;const r=B==null||(s=B.location)===null||s===void 0?void 0:s.href;return U(r)?void 0:A5(i,r)}(t);return!!(n&&e&&e.some(i=>n.match(i)))}function Eo(e){let t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return $v(t)}function I5(e){return Le(e)?null:jp(e).split(/(\s+)/).filter(t=>_c(t)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function zc(e){let t="";return ko(e)&&!Vc(e)&&e.childNodes&&e.childNodes.length&&Ze(e.childNodes,function(n){var i;P5(n)&&n.textContent&&(t+=(i=I5(n.textContent))!==null&&i!==void 0?i:"")}),jp(t)}function wc(e){var t;return U(e.target)?e.srcElement||null:!((t=e.target)===null||t===void 0)&&t.shadowRoot?e.composedPath()[0]||null:e.target||null}const Bv=["a","button","form","input","select","textarea","label"];function Sx(e,t){const n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector;try{return!!n&&n.call(e,t)}catch{return!1}}function jx(e,t){if(U(t))return!0;for(const n of e)if(t.some(i=>Sx(n,i)))return!0;return!1}function R5(e){const t=e.parentNode;return!(!t||!Ki(t))&&t}const Zm=[".ph-no-autocapture","[data-ph-no-autocapture]"],M5=["next","previous","prev",">","<"],$P=[...M5,"+","-","−","–"],O_=(e,t)=>
68/[a-z0-9]/i.test(t)?e.includes(t):e===t,L_=[".ph-no-rageclick",".ph-no-capture"],BP=["","text","search","email","password","url","tel","number"];function O5(e,t){if(!B||zv(e))return!1;let n,i,s;var r,o;if(bn(t)?(n=!!t&&L_,i=void 0,s=!1):(n=(r=t==null?void 0:t.css_selector_ignorelist)!==null&&r!==void 0?r:L_,i=t==null?void 0:t.content_ignorelist,s=(o=t==null?void 0:t.ignore_text_selection)!==null&&o!==void 0&&o),n===!1||s&&function(u){return!(!u||!Ki(u))&&(!!on(u,"textarea")||(on(u,"input")?Ae(BP,(u.getAttribute("type")||"").toLowerCase()):function(h){var f;if(h.isContentEditable)return!0;const m=(f=h.getAttribute)===null||f===void 0?void 0:f.call(h,"contenteditable");return m==="true"||m===""}(u)))}(e))return!1;const{targetElementList:c}=L5(e,!1);return!function(u,h){if(u===!1||U(u))return!1;let f;if(u===!0)f=M5;else{if(!Te(u))return!1;if(u.length>10)return ae.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;f=u.map(m=>m.toLowerCase())}return h.some(({safeText:m,ariaLabel:x})=>
vendor: 9,638 bytes, line 68
68f.some(y=>O_(m,y)||O_(x,y)))}(i,c.map(u=>{var h;return{safeText:zc(u).toLowerCase(),ariaLabel:((h=u.getAttribute("aria-label"))===null||h===void 0?void 0:h.toLowerCase().trim())||""}}))&&!jx(c,n)}const zv=e=>!e||on(e,"html")||!Ki(e),L5=(e,t)=>{if(!B||zv(e))return{parentIsUsefulElement:!1,targetElementList:[]};let n=!1;const i=[e];let s=e;for(;s.parentNode&&!on(s,"body");){if(Fv(s.parentNode)){i.push(s.parentNode.host),s=s.parentNode.host;continue}const r=R5(s);if(!r)break;if(t||Bv.indexOf(r.tagName.toLowerCase())>-1)n=!0;else try{const o=B.getComputedStyle(r);o&&o.getPropertyValue("cursor")==="pointer"&&(n=!0)}catch{}i.push(r),s=r}return{parentIsUsefulElement:n,targetElementList:i}};function ko(e){const t=new Set;let n=0;for(let r=e;r.parentNode&&!on(r,"body");r=r.parentNode){if(n++>=1e3||t.has(r))return!1;t.add(r);const o=Eo(r);if(Ae(o,"ph-sensitive")||Ae(o,"ph-no-capture"))return!1}if(Ae(Eo(e),"ph-include"))return!0;const i=e.type||"";if(Be(i))switch(i.toLowerCase()){case"hidden":case"password":return!1}const s=e.name||e.id||"";return!Be(s)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(s.replace(/[^a-zA-Z0-9]/g,""))}function Vc(e){return!!(on(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||on(e,"select")||on(e,"textarea")||e.getAttribute("contenteditable")==="true")}const D_=new RegExp("^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$"),F_=/(^|[^0-9A-Za-z_])([0-9][0-9 -]*[0-9])(?=$|[^0-9A-Za-z_])/g,zP=[16,15,14,13],VP=new RegExp("^(\\d{3}-?\\d{2}-?\\d{4})$"),$_=new RegExp("(^|[^0-9])((?!000|666)[0-9]{3}-?(?!00)[0-9]{2}-?(?!0000)[0-9]{4})(?=$|([^0-9]))","g"),B_=/[0-9A-Za-z_]/;function HP(e){let t=0,n=!1;for(let i=e.length-1;i>=0;i--){let s=e.charCodeAt(i)-48;n&&(s*=2,s>9&&(s-=9)),t+=s,n=!n}return t%10==0}function _c(e,t=!0){return!(Le(e)||Be(e)&&(e=jp(e),(t?D_.test((e||"").replace(/[- ]/g,"")):function(n){let i;for(F_.lastIndex=0;i=F_.exec(n);){const s=i[2];if(!s)continue;const r=s.replace(/[- ]/g,"");for(let o=0;r.length>o;o++)for(const c of zP){const u=o+c;if(r.length>=u){const h=r.slice(o,u);if(D_.test(h)&&HP(h))return!0}}}return!1}(e))||(t?VP.test(e):function(n){let i;for($_.lastIndex=0;i=$_.exec(n);){const s=i[1],r=i[3];if(!(s&&r&&B_.test(s)&&B_.test(r)))return!0}return!1}(e))))}function z_(e){let t=zc(e);return t=`${t} ${D5(e)}`.trim(),_c(t)?t:""}function D5(e){let t="";return e&&e.childNodes&&e.childNodes.length&&Ze(e.childNodes,function(n){var i;if(n&&((i=n.tagName)===null||i===void 0?void 0:i.toLowerCase())==="span")try{const s=zc(n);t=`${t} ${s}`.trim(),n.childNodes&&n.childNodes.length&&(t=`${t} ${D5(n)}`.trim())}catch(s){ae.error("[AutoCapture]",s)}}),t}function V_(e){return e.replace(/"|\\"/g,'\\"')}function WP(e){const t=e.attr__class;if(t)return Te(t)?t:$v(t)}const Pu=kt("[Dead Clicks]"),qP=()=>!0,UP=e=>{var t;const n=!!(!((t=e.instance.persistence)===null||t===void 0)&&t.get_property(Iv)),i=e.instance.config.capture_dead_clicks;return bn(i)?i:!!We(i)||n};var H_=class{get lazyLoadedDeadClicksAutocapture(){return this.Ho}constructor(e,t,n){this.instance=e,this.isEnabled=t,this.onCapture=n,this.startIfEnabledOrStop()}onRemoteConfig(e){if(!e.ok)return;const t=e.config;"captureDeadClicks"in t&&(this.instance.persistence&&this.instance.persistence.register({[Iv]:t.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.zo(()=>{this.Uo()}):this.stop()}zo(e){var t,n,i;!((t=we.__PosthogExtensions__)===null||t===void 0)&&t.initDeadClicksAutocapture?e():(n=we.__PosthogExtensions__)===null||n===void 0||(i=n.loadExternalDependency)===null||i===void 0||i.call(n,this.instance,"dead-clicks-autocapture",s=>{s?Pu.error("failed to load script",s):e()})}Uo(){var e;if(K){if(!this.Ho&&(!((e=we.__PosthogExtensions__)===null||e===void 0)&&e.initDeadClicksAutocapture)){const t=We(this.instance.config.capture_dead_clicks)?R({},this.instance.config.capture_dead_clicks):{};t.__onCapture=this.onCapture,this.onCapture&&(t.capture_dead_swipes=!1),this.Ho=we.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,t),this.Ho.start(K),Pu.info("starting...")}}else Pu.error("`document` not found. Cannot start.")}stop(){this.Ho&&(this.Ho.stop(),this.Ho=void 0,Pu.info("stopping..."))}};const Fl=kt("[SegmentIntegration]");function W_(e,t,n=!0){const i=e.config.segment;if(!i)return t();const{analytics:s,filterProperties:r}=(c=>Ut(c.register))(o=i)?{analytics:o}:o;var o;(function(c,u,h,f){const m=y=>{const b=()=>y.anonymousId()||wi();c.config.get_device_id=b,f&&y.id()&&(c.register({distinct_id:y.id(),$device_id:b()}),c.persistence.set_property(yn,uh)),h(f?void 0:y.anonymousId()||void 0)},x=u.user();"then"in x&&Ut(x.then)?x.then(m):m(x)})(e,s,c=>{s.register(((u,h,{filterProperties:f}={})=>{typeof Promise<"u"&&Promise.resolve||Fl.warn("This browser does not have Promise support, and can not use the segment integration");const m=(x,y)=>{if(!y)return x;const b=!!h&&x.event.anonymousId===h&&!x.event.userId;b||x.event.userId||x.event.anonymousId===u.get_distinct_id()||(Fl.info("No userId set, resetting PostHog"),u.reset()),b||(h=void 0),x.event.userId&&x.event.userId!==u.get_distinct_id()&&(Fl.info("UserId set, identifying with PostHog"),u.identify(x.event.userId));let k=u.calculateEventProperties(y,x.event.properties);if(!Le(f)){const w=x.event.properties||{},S={};for(const N of Object.keys(k))Cv.call(w,N)||(S[N]=k[N]);const j=((N,E)=>{const T=Te(N)?N:[N];let L=R({},E);for(const M of T)try{if(L=M(L),Le(L))return null}catch(A){return Fl.error("Error in Segment filterProperties:",A),null}return L})(f,S);if(Le(j))return x;k=j}return x.event.properties=Object.assign({},k,x.event.properties),x};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded(){return!0},load(){return Promise.resolve()},track(x){return m(x,x.event.event)},page(x){return m(x,Lv)},identify(x){return m(x,C5)},screen(x){return m(x,"$screen")}}})(e,c,{filterProperties:r})).then(()=>{t()},u=>{Fl.error("Failed to register the Segment integration",u),t()})},n)}const F5="posthog-js";function $5(e,{organization:t,projectId:n,prefix:i,severityAllowList:s=["error"],sendExceptionsToPostHog:r=!0}={}){return o=>{var c,u,h,f,m;if(s!=="*"&&!s.includes(o.level)||!e.__loaded)return o;o.tags||(o.tags={});const x=e.requestRouter.endpointFor("ui",`/project/${e.config.token}/person/${e.get_distinct_id()}`);o.tags["PostHog Person URL"]=x,e.sessionRecordingStarted()&&(o.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));const y=((c=o.exception)===null||c===void 0?void 0:c.values)||[],b=y.map(S=>R(R({},S),{},{stacktrace:S.stacktrace?R(R({},S.stacktrace),{},{type:"raw",frames:(S.stacktrace.frames||[]).map(j=>R(R({},j),{},{platform:"web:javascript"}))}):void 0})),k={$exception_message:((u=y[0])===null||u===void 0?void 0:u.value)||o.message,$exception_type:(h=y[0])===null||h===void 0?void 0:h.type,$exception_level:o.level,$exception_list:b,$sentry_event_id:o.event_id,$sentry_exception:o.exception,$sentry_exception_message:((f=y[0])===null||f===void 0?void 0:f.value)||o.message,$sentry_exception_type:(m=y[0])===null||m===void 0?void 0:m.type,$sentry_tags:o.tags};var w;return t&&n&&(k.$sentry_url=(i||"https://sentry.io/organizations/")+t+"/issues/?project="+n+"&query="+o.event_id),r&&((w=e.exceptions)===null||w===void 0||w.sendExceptionEvent(k)),o}}var GP=class{constructor(e,t,n,i,s,r){this.name=F5,this.setupOnce=function(o){o($5(e,{organization:t,projectId:n,prefix:i,severityAllowList:s,sendExceptionsToPostHog:r==null||r}))}}},q_=class{constructor(e){this.Wo=(t,n,i)=>{i&&(i.noSessionId||i.activityTimeout||i.sessionPastMaximumLength||i.crossTabAdoption)&&(ae.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:t,changeReason:i}),this.Vo=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.Go()}Go(){var e;this.Zo=(e=this._instance.sessionManager)===null||e===void 0?void 0:e.onSessionId(this.Wo)}destroy(){var e;(e=this.Zo)===null||e===void 0||e.call(this),this.Zo=void 0}doPageView(e,t){var n;const i=this.Qo(e,t);return this.Vo={pathname:(n=B==null?void 0:B.location.pathname)!==null&&n!==void 0?n:"",pageViewId:t,timestamp:e},this._instance.scrollManager.resetContext(),i}doPageLeave(e){var t;return this.Qo(e,(t=this.Vo)===null||t===void 0?void 0:t.pageViewId)}doEvent(){var e;return{$pageview_id:(e=this.Vo)===null||e===void 0?void 0:e.pageViewId}}Qo(e,t){const n=this.Vo;if(!n)return{$pageview_id:t};let i={$pageview_id:t,$prev_pageview_id:n.pageViewId};const s=this._instance.scrollManager.getContext();if(s&&!this._instance.config.disable_scroll_properties){let{maxScrollHeight:r,lastScrollY:o,maxScrollY:c,maxContentHeight:u,lastContentY:h,maxContentY:f}=s;if(!(U(r)||U(o)||U(c)||U(u)||U(h)||U(f))){r=Math.ceil(r),o=Math.ceil(o),c=Math.ceil(c),u=Math.ceil(u),h=Math.ceil(h),f=Math.ceil(f);const m=r>1?Ui(o/r,0,1,ae):1,x=r>1?Ui(c/r,0,1,ae):1,y=u>1?Ui(h/u,0,1,ae):1,b=u>1?Ui(f/u,0,1,ae):1;i=ct(i,{$prev_pageview_last_scroll:o,$prev_pageview_last_scroll_percentage:m,$prev_pageview_max_scroll:c,$prev_pageview_max_scroll_percentage:x,$prev_pageview_last_content:h,$prev_pageview_last_content_percentage:y,$prev_pageview_max_content:f,$prev_pageview_max_content_percentage:b})}}return n.pathname&&(i.$prev_pageview_pathname=n.pathname),n.timestamp&&(i.$prev_pageview_duration=(e.getTime()-n.timestamp.getTime())/1e3),i}};const $l=["flags","surveys"],YP={[tP]:{exposure:"hidden"},[Dh]:{exposure:"hidden"},[nP]:{exposure:"hidden"}
68,[hx]:{exposure:"hidden"},[_o]:{exposure:"hidden"},[xc]:{exposure:"hidden"},[c5]:{exposure:"event"},[px]:{exposure:"hidden"},[u5]:{exposure:"hidden"},[fx]:{exposure:"event"},[d5]:{exposure:"hidden"},[mx]:{exposure:"event"},[gx]:{exposure:"event"},[Iv]:{exposure:"event"},[Rv]:{exposure:"hidden"},[h5]:{exposure:"event"},[vc]:{exposure:"hidden"},[iP]:{exposure:"hidden"},[po]:{exposure:"hidden"},[p5]:{exposure:"event"},[sP]:{exposure:"event",shouldSkipFromEventProperties:e=>bt(e)},[cP]:{exposure:"event"},[dP]:{exposure:"event"},[uP]:{exposure:"event"},[hP]:{exposure:"event"},[pP]:{exposure:"hidden"},[bi]:{exposure:"hidden",storageGroup:"flags"},[ys]:{exposure:"hidden",storageGroup:"flags"},[xx]:{exposure:"hidden"},[ma]:{exposure:"hidden",storageGroup:"flags"},[rr]:{exposure:"hidden",storageGroup:"flags"},[ga]:{exposure:"hidden",storageGroup:"flags",volatile:!0},[yc]:{exposure:"hidden",storageGroup:"flags"},[Di]:{exposure:"hidden"},[oa]:{exposure:"hidden"},[ar]:{exposure:"hidden"},[or]:{exposure:"hidden"},[vx]:{exposure:"hidden",storageGroup:"surveys"},[Fh]:{exposure:"hidden",storageGroup:"surveys",volatile:!0},[m5]:{exposure:"event"},[g5]:{exposure:"hidden"},[x5]:{exposure:"hidden"},[yx]:{exposure:"hidden"},[fP]:{exposure:"hidden"},[mP]:{exposure:"hidden"},[gP]:{exposure:"event"},[xP]:{exposure:"event"},[vP]:{exposure:"event"},[yP]:{exposure:"event"},[lr]:{exposure:"hidden"},[ic]:{exposure:"hidden"},[f5]:{exposure:"event"},[$c]:{exposure:"hidden"},[mr]:{exposure:"hidden",storageGroup:"flags",volatile:!0},[yn]:{exposure:"hidden"},[bx]:{exposure:"hidden"},[bP]:{exposure:"hidden"},[v5]:{exposure:"hidden"},[y5]:{exposure:"hidden"},[fo]:{exposure:"hidden"},[Mv]:{exposure:"hidden"},[rP]:{exposure:"event"},[aP]:{exposure:"event"},[oP]:{exposure:"event"},[lP]:{exposure:"event"},[w5]:{exposure:"event"},[_5]:{exposure:"event"},[k5]:{exposure:"event"}
68,[S5]:{exposure:"event"},[wP]:{exposure:"event"},[_P]:{exposure:"event"},[kP]:{exposure:"event"},[SP]:{exposure:"event"},[jP]:{exposure:"event"},[CP]:{exposure:"event"},[NP]:{exposure:"event"},[TP]:{exposure:"event"}},KP=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],tn=e=>{const t=YP[e];if(t)return t;for(const[n,i]of KP)if(e.indexOf(n)===0)return i},go=(e,t)=>{try{let n;return JSON.stringify(e,(i,s)=>{var r;return zo(s)?((r=n)!==null&&r!==void 0||(n=new WeakMap),n.has(s)||n.set(s,N5(s)),n.get(s)):typeof s=="bigint"?s.toString():s},t)}catch{return dj(e)}},Ss=e=>{const t=K==null?void 0:K.createElement("a");return U(t)?null:(t.href=e,t)},Ao=function(e,t){const n=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&");let i;for(let s=0;n.length>s;s++){const r=n[s].split("=");if(r[0]===t){i=r;break}}if(!Te(i)||2>i.length)return"";{let s=i[1];try{s=decodeURIComponent(s)}catch{ae.error("Skipping decoding for malformed query param: "+s)}return s.replace(/\+/g," ")}},Hc=function(e,t,n){if(!e||!t||!t.length)return e;const i=e.split("#"),s=i[1],r=(i[0]||"").split("?"),o=r[1],c=r[0],u=(o||"").split("&"),h=[];for(let m=0;u.length>m;m++){const x=u[m].split("=");Te(x)&&(t.includes(x[0])?h.push(x[0]+"="+n):h.push(u[m]))}let f=c;return o!=null&&(f+="?"+h.join("&")),s!=null&&(f+="#"+s),f},zh=function(e,t){const n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},B5=(e,t)=>e>=t&&cj(),z5=(e,t,n,i)=>{if(e===0){if(cj()){const s=t+1;return s===n&&i(),s}return t}return 0},Po=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],QP=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...Po],Wc="<masked>",XP=["li_fat_id"];
68function V5(e,t,n){if(!K)return{};const i=t?[...Po,...n||[]]:[],s=H5(Hc(K.URL,i,Wc),e),r=function(){const o={};return Ze(XP,function(c){const u=bc(c);o[c]=u||null}),o}();return ct(r,s)}function H5(e,t){const n=QP.concat(t||[]),i={};return Ze(n,function(s){const r=Ao(e,s);i[s]=r||null}),i}function W5(e){const t=function(s){return s?s.search("https?://(.*)google.([^/?]*)")===0?"google":s.search("https?://(.*)bing.com")===0?"bing":s.search("https?://(.*)yahoo.com")===0?"yahoo":s.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null:null}(e),n=t!="yahoo"?"q":"p",i={};if(!bt(t)){i.$search_engine=t;const s=K?Ao(K.referrer,n):"";s.length&&(i.ph_keyword=s)}return i}function q5(){return navigator.language||navigator.userLanguage}function ZP(){const e=q5();return typeof e=="string"?e.split("-")[0]:void 0}const Vh="$direct";function U5(){return(K==null?void 0:K.referrer)||Vh}function G5(e,t,n=!1){const i=e?[...Po,...t||[]]:[],s=n?yr(yt==null?void 0:yt.href):yt==null?void 0:yt.href,r=s==null?void 0:s.substring(0,1e3);return{r:U5().substring(0,1e3),u:r?Hc(r,i,Wc):void 0}}function Y5(e,t=!1){var n;const{r:i,u:s}=e,r=t?yr(s):s,o={$referrer:i,$referring_domain:i==null?void 0:i==Vh?Vh:(n=Ss(i))===null||n===void 0?void 0:n.host};
68if(r){o.$current_url=r;const c=Ss(r);o.$host=c==null?void 0:c.host,o.$pathname=c==null?void 0:c.pathname;const u=H5(r);ct(o,u)}if(i){const c=W5(i);ct(o,c)}return o}function K5(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function JP(){try{return new Date().getTimezoneOffset()}catch{return}}const eI={flags:mr,surveys:Fh},tI=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],Iu=e=>`${e}_cookie_identity_change_pending`,Ru=e=>{let t="",n=0;for(const i of e){const s=encodeURIComponent(JSON.stringify(i).slice(1,-1)).length;if(n+s>1e3)break;t+=i,n+=s}return t},Ot="main",fs=[bi,ys,ma,rr,ga,mr,yc,ar],Jm=e=>fs.indexOf(e)!==-1,Q5=[_o,xc],U_=e=>Q5.indexOf(e)!==-1,Xs=(e,t)=>{try{return JSON.stringify(e)===JSON.stringify(t)}catch{return e===t}},no=e=>{if(!e)return{};const t=JSON.parse(e);return We(t)?t:{}},G_=(e,t)=>{Ze(e,(n,i)=>{const s=tn(i);s&&s.exposure!=="event"||{}.hasOwnProperty.call(t,i)||delete e[i]})};var eg=class{constructor(e,t,n=!0){if(this.Jo={},this.Ko=!1,this.Xo=!1,this.Yo=!1,this.ta=!1,this.ea=!1,this.ia=new Map,this.na=!1,this.sa=!1,this.ra=!1,this.oa=new Set,this.aa=new Set,this.Rr=e,this.la=n,this.props={},this.ua=void 0,this.ha=(i=>{let s="";return i.token&&(s=i.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),i.persistence_name?"ph_"+i.persistence_name:"ph_"+s+"_posthog"})(e),this.qo=this.ca(e),this.Yo=this.da(e),this.load(),this.va(),e.debug&&ae.info("Persistence loaded",e.persistence,R({},this.props)),this.update_config(e,e,t),this.save(),B){const i=()=>this.flush();Ke(B,"beforeunload",i,{capture:!1}),Ke(B,"pagehide",i,{capture:!1}),this.fa=s=>{if(this.Ko&&(!s.storageArea||s.storageArea===(B==null?void 0:B.localStorage))&&s.key)if(s.key!==this.ha){if(this.Yo){const r=$l.find(o=>s.key===this.pa(o));r&&this.ga(s.key,r)}}else this.ga(s.key,Ot)},Ke(B,"storage",this.fa)}}markCrossTabFeatureFlagChanges(e){Object.entries(e).forEach(([t,n])=>{const i=this.ia.get(t);if(!Jm(t)||i===!0)return;if(n===!0)return void this.ma(t,!0);const s=new Set(i||[]);n.forEach(r=>s.add(r)),s.size&&this.ma(t,s)})}onCrossTabFeatureFlagChange(e){return this.aa.add(e),()=>this.aa.delete(e)}destroy(){this.fa&&B&&(B.removeEventListener("storage",this.fa),this.fa=void 0),this.aa.clear()}ga(e,t,n=!0){if(this.mi)return!1;let i,s;try{if(s=Ge.Ot(e),bt(s)){const c=this.ya(t);return c.storageValue=null,t!==Ot&&(c.persisted=!1),!1}i=no(s)}catch{return!1}const r=t===Ot?i:Ge.Dt(this.ha);if(r&&this.ba(r))return!1;const o=this._a(i,t,n);return t===Ot&&this.Yo&&!Xs(this.wa().main,i)||this.ka(i,t,!0,s),o}ba(e){const t=this.props[vi],n=e[vi];return!U(t)&&!U(n)&&t!==n}ka(e,t,n,i){const s=this.ya(t);s.storageValue=i,t!==Ot&&(s.persisted=n);try{s.fingerprint=this.Sa(e,t)}catch{s.fingerprint=void 0}}_a(e,t,n){let i=!1;return fs.forEach(s=>{var r;const o=(r=tn(s))===null||r===void 0?void 0:r.storageGroup;if(t===Ot&&this.Yo&&o||t!==Ot&&o!==t)return;const c=s in e,u=this.xa(s,c?e[s]:void 0),h=this.ia.has(s)?s in this.props:c;h===s in this.props&&Xs(u,this.props[s])||(h?this.Ca(s,u,!1):this.$a(s,!1),i=!0)}),i&&n&&this.aa.forEach(s=>s()),i}Ta(){if(!this.Ko)return!1;try{this.ra=!1;const e=Ge.Ot(this.ha),t=this.ya(Ot);let n,i=!1,s=!1;if(e!==t.storageValue)if(bt(e))t.storageValue=null;else{if(n=no(e),this.ra=!this.sa&&this.ba(n),this.ra)return!1;s=this._a(n,Ot,!1),!this.Yo||Xs(this.wa().main,n)?this.ka(n,Ot,!0,e):t.storageValue=e,i=!0}return this.Yo&&$l.forEach(r=>{const o=Ge.Ot(this.pa(r)),c=this.ya(r),u=n||{},h=i&&fs.some(m=>{var x;return((x=tn(m))===null||x===void 0?void 0:x.storageGroup)===r&&m in u});if(o===c.storageValue&&!h)return;if(bt(o))return c.storageValue=null,c.persisted=!1,void(h&&(s=this._a(u,r,!1)||s));const f=no(o);s=this._a(f,r,!1)||s,this.ka(f,r,!0,o)}),s}catch{return!1}}ma(e,t){this.ia.set(e,t);const n=tn(e);n!=null&&n.volatile||(this.ya((this.Yo?n==null?void 0:n.storageGroup:void 0)||Ot).fingerprint=void 0,this.Ia(e))}Ma(){fs.forEach(e=>this.ia.set(e,!0))}va(){if(this.Ko)try{const e=Ge.Ot(this.ha),t=no(e);this.ya(Ot).storageValue=e,fs.forEach(n=>{var i;const s=this.Yo?(i=tn(n))===null||i===void 0?void 0:i.storageGroup:void 0,r=s?Ge.Ot(this.pa(s)):null;if(s){const c=this.ya(s);c.storageValue=r,c.persisted=!bt(r)}const o=s&&!bt(r)?no(r):t;n in this.props?this.Ea(n,o[n],this.props[n]):n in o&&this.ma(n,!0)})}catch{}}xa(e,t){const n=this.ia.get(e);if(!n)return t;if(n===!0)return this.props[e];if(e==="$active_feature_flags"){const r=new Set(Te(t)?t:[]),o=new Set(Te(this.props[e])?this.props[e]:[]);
68return n.forEach(c=>o.has(c)?r.add(c):r.delete(c)),Array.from(r)}const i=We(t)?R({},t):{},s=We(this.props[e])?this.props[e]:{};return n.forEach(r=>{r in s?i[r]=s[r]:delete i[r]}),i}Ea(e,t,n){if(!Jm(e))return;const i=this.ia.get(e);if(i===!0)return;let s=t;if(this.Ko)try{var r;const c=this.Yo?(r=tn(e))===null||r===void 0?void 0:r.storageGroup:void 0,u=c?this.pa(c):this.ha;s=no(Ge.Ot(u))[e]}catch{}const o=new Set(i||[]);if(e==="$active_feature_flags"){if(!U(t)&&!Te(t)||!U(s)&&!Te(s)||!Te(n))return void this.ma(e,!0);const c=new Set(t||[]),u=new Set(s||[]),h=new Set(n);new Set([...c,...h]).forEach(f=>{c.has(f)!==h.has(f)&&o.add(f)}),o.forEach(f=>{u.has(f)===h.has(f)&&o.delete(f)})}else{if(!We(n))return void(Xs(s,n)?this.ia.delete(e):this.ma(e,!0));{if(!U(t)&&!We(t)||U(t)&&An(n)&&U(s))return void this.ma(e,!0);const c=We(t)?t:{},u=We(s)?s:{};new Set([...Object.keys(c),...Object.keys(n)]).forEach(h=>{h in c==h in n&&Xs(c[h],n[h])||o.add(h)}),o.forEach(h=>{h in u==h in n&&Xs(u[h],n[h])&&o.delete(h)})}}o.size?this.ma(e,o):this.ia.delete(e)}Pa(){var e;const t=(e=this.Rr)===null||e===void 0?void 0:e.persistence_save_debounce_ms;return jt(t)&&t>0?t:0}Ra(e){if(this.Rr.cookieWinsOnConflict&&this.Rr.persistence.toLowerCase()==="localstorage+cookie")if(e)try{const t=Qm(e,this.Rr.cookie_persisted_properties||[]),n=P_(t,this.Rr.cookie_persisted_properties||[]),i=JSON.stringify(t)+"|"+JSON.stringify(n),s=xt.Ot(this.ha)||void 0;s&&Xm(this.ha,s)===i&&(this.Aa=i,this.Fa=s)}catch{}else try{const t=xt.Ot(this.ha)||void 0;this.Aa=t?Xm(this.ha,t):void 0,this.Fa=t}catch{}}syncCookieProperties(){return this.Oa(this.Rr)}Oa(e,t=!1){if(this.mi&&!t||this.ea||!e.cookieWinsOnConflict||e.persistence.toLowerCase()!=="localstorage+cookie")return!1;let n;try{n=xt.Ot(this.ha)||void 0}catch{}if(!n||n===this.Fa)return!1;const i=Xm(this.ha,n);let s;try{s=Km(JSON.parse(n))}catch{return!1}if((xt.Ot(this.ha)||void 0)!==n)return!1;this.Aa=i,this.Fa=n;const r=I_(this.ha,n),o=[...la,...r.properties],c={};if(Object.keys(s).forEach(k=>{const w=s[k];(U(w)||bt(w)||w===""||k==="$user_state"&&w!=="anonymous"&&w!=="identified")&&(c[k]=!0,delete s[k])}),An(s))return!1;const u="distinct_id"in s||s.$user_state==="anonymous"||s.$user_state==="identified",h=this.props,f=h[vi],m=h[yn],x=ct({},h);[...la,...e.cookie_persisted_properties||[]].forEach(k=>{if(o.indexOf(k)!==-1&&!(k in s)&&!c[k]&&(u||k!=="distinct_id"&&k!=="$user_state")){const w=x[k];(r.isValid||la.indexOf(k)===-1||w!==!1&&w!==0)&&delete x[k]}}),this.props=ct(x,s),fs.forEach(k=>{const w=k in this.props;k in h===w&&Xs(h[k],this.props[k])||(w?this.Ea(k,h[k],this.props[k]):this.ma(k,!0))}),!u||"$user_state"in s||"$user_state"in this.props||this.Ca(yn,bs);const y=this.props[vi],b=this.props[yn];return!u||y===f&&b===m||(this.sa=!0,this.ta=!0,ot.At(Iu(this.ha),!0),this.$a(ar),this.$a(ys),this.$a(bi),this.$a(ma),this.$a(rr),this.$a(ga),this.$a(mr),this.$a($c),this.$a(lr),b!=="anonymous"||m!=="identified"&&s.$user_state!=="anonymous"&&(U(f)||y===f)||(G_(this.props,s),this.$a(or)),b==="identified"?this.props.$user_id=y:delete this.props.$user_id,this.$a(Dh)),!0}
68consumeCookieIdentityChange(){const e=Iu(this.ha),t=this.ta||!!ot.Ot(e);return this.ta=!1,t&&ot.Lt(e),t}Da(e=!1){return!(this.ea||this.mi&&!e||!this.Rr.cookieWinsOnConflict||this.Rr.persistence.toLowerCase()!=="localstorage+cookie"||(this.ea=!0,0))}La(){this.ea&&(U(this.Na)||(clearTimeout(this.Na),this.Na=void 0),delete this.Jo[Ot],this.qa(!0))}ja(e=!0){if(this.ea)try{e?this.La():U(this.Na)||(clearTimeout(this.Na),this.Na=void 0)}finally{this.ea=!1}}isDisabled(){return!!this.mi}ca(e){tI.indexOf(e.persistence.toLowerCase())===-1&&(ae.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");const t=((o=[],c=!1)=>{const u=[...la,...o];return R(R({},Ge),{},{Dt(h){try{let m,x={};try{m=xt.Ot(h)||void 0,x=m?Km(JSON.parse(m)):{}}catch{}const y=JSON.parse(Ge.Ot(h)||"{}");let b;if(c){const k=I_(h,m),w=[...la,...k.properties],S={};Object.keys(x).forEach(N=>{const E=x[N];bt(E)||E===""||N==="$user_state"&&E!=="anonymous"&&E!=="identified"||(S[N]=E)});const j="distinct_id"in S||S.$user_state==="anonymous"||S.$user_state==="identified";if(Object.keys(S).length>0){var f;const N=y[vi],E=(f=y.$user_state)!==null&&f!==void 0?f:bs;u.forEach(T=>{if(w.indexOf(T)!==-1&&!(T in x)&&(j||T!=="distinct_id"&&T!=="$user_state")){const L=y[T];(k.isValid||la.indexOf(T)===-1||L!==!1&&L!==0)&&delete y[T]}}),!j||"$user_state"in x||"$user_state"in y||(y[yn]=bs),!j||("distinct_id"in S?S[vi]:y[vi])===N&&("$user_state"in S?S[yn]:y[yn])===E||(Ym.forEach(T=>delete y[T]),S.$user_state==="identified"&&"distinct_id"in S?y.$user_id=S[vi]:delete y.$user_id,S.$user_state!=="identified"&&(delete y[f5],delete y[or]),delete y.__alias)}b=ct(y,S)}else b=ct(x,y);return Ge.At(h,b),b}catch{}return null},At(h,f,m,x,y,b){const k=Ge.At(h,f,void 0,void 0,b);try{const w=Qm(f,o);if(Object.keys(w).length){if(c){const S=Bh(h),j=P_(w,o);if(xt.At(S,j,m,x,y,b),xt.Ot(S)!==JSON.stringify(j)){xt.Lt(S,x);const N=Qm(f);return xt.At(h,N,m,x,y,b),k}}xt.At(h,w,m,x,y,b)}}catch(w){Ge.Pt(w)}return k},Lt(h,f){try{B==null||B.localStorage.removeItem(h),xt.Lt(h,f),xt.Lt(Bh(h),f)}catch(m){Ge.Pt(m)}}})})(e.cookie_persisted_properties||[],e.cookieWinsOnConflict);let n,i=!1,s=!1;const r=e.persistence.toLowerCase();return r==="localstorage"&&Ge.Et()?(n=Ge,s=!0):r==="localstorage+cookie"&&t.Et()?(n=t,s=!0,i=!0):r==="sessionstorage"&&ot.Et()?n=ot:r==="memory"?n=kx:r==="cookie"&&xt.Et()?(n=xt,i=!0):t.Et()?(n=t,s=!0,i=!0):xt.Et()?(n=xt,i=!0):n=kx,this.Ko=s,this.Xo=i,n}pa(e){return`${this.ha}__${e}`}da(e){return this.Ko&&!!e.split_storage}properties(){const e={};return Ze(this.props,(t,n)=>{const i=tn(n);if(!i||i.exposure==="event"){var s;if(!(i==null||(s=i.shouldSkipFromEventProperties)===null||s===void 0)&&s.call(i,t))return;e[n]=t}}),e}load(e=!1){if(this.mi&&!e)return;const t=this.Rr.cookieWinsOnConflict&&this.Rr.persistence.toLowerCase()==="localstorage+cookie",n=t?Ge.Dt(this.ha):null;let i={};if(t)try{i=Km(xt.Dt(this.ha)),Ze(i,(c,u)=>{(U(c)||bt(c)||c==="")&&delete i[u]})}catch{}const s=this.qo.Dt(this.ha);if(s&&(this.props=ct({},s)),this.Yo&&this.Ba(),t&&s){var r,o;const c=n==null?void 0:n[vi],u=(r=n==null?void 0:n.$user_state)!==null&&r!==void 0?r:bs,h=s[vi],f=(o=s.$user_state)!==null&&o!==void 0?o:bs;if(h!==c||f!==u){this.ta=!0,ot.At(Iu(this.ha),!0);const m=ct({},this.props);Ym.forEach(y=>delete m[y]),f!=="anonymous"||u!=="identified"&&i.$user_state!=="anonymous"&&(U(c)||h===c)||(G_(m,i),delete m[or]),this.props=m;const x=new Set;Ym.forEach(y=>{var b;const k=(b=tn(y))===null||b===void 0?void 0:b.storageGroup;k&&x.add(k)}),x.forEach(y=>{const b={};Ze(this.props,(k,w)=>{var S;((S=tn(w))===null||S===void 0?void 0:S.storageGroup)===y&&(b[w]=k)}),An(b)?(Ge.Lt(this.pa(y)),this.Jo[y]={}):Ge.At(this.pa(y),b)&&(this.Jo[y]={persisted:!0,fingerprint:this.Sa(b,y)})})}}ot.Ot(Iu(this.ha))&&(this.ta=!0)}Ba(){for(const e of $l){const t=Ge.Dt(this.pa(e));if(t&&!An(t)){const n=this.ya(e);n.persisted=!0,this.Ha(e)||(n.fingerprint=this.Sa(t,e)),this.za(e,t)||ct(this.props,t)}}}Ha(e){return Object.keys(this.props).some(t=>{var n;return((n=tn(t))===null||n===void 0?void 0:n.storageGroup)===e})}za(e,t){const n=eI[e];if(!n)return!1;const i=t[n],s=this.props[n];return jt(i)&&jt(s)&&s>i}refreshKey(e){var t;if(this.mi||this.oa.has(e))return;const n=this.Yo?(t=tn(e))===null||t===void 0?void 0:t.storageGroup:void 0,i=n?Ge.Dt(this.pa(n)):this.qo.Dt(this.ha);if(i&&e in i)this.Ca(e,i[e],!1);else{if(n){const s=this.qo.Dt(this.ha);if(s&&e in s)return void this.Ca(e,s[e],!1)}this.$a(e,!1)}}save(){if(this.mi)return;const e=this.Pa();e>0?U(this.Na)&&(this.Na=setTimeout(()=>{this.Na=void 0,this.qa()},e)):this.qa()}flush(){U(this.Na)||(clearTimeout(this.Na),this.Na=void 0,this.qa())}qa(e=!1){if(this.mi||this.ea&&!e)return;e||(this.syncCookieProperties(),this.Rr.cookieWinsOnConflict&&this.Rr.persistence.toLowerCase()==="localstorage+cookie"||Q5.forEac
vendor: 6,208 bytes, line 68
68h(s=>this.refreshKey(s)));const t=!e&&!this.na;t||(this.ra=!1);const n=!!t&&this.Ta();if(this.ra)return void(this.Rr.debug&&ae.warn("skipping persistence write because storage belongs to a different distinct ID"));if(this.Yo)return this.Ua(),void(n&&this.aa.forEach(s=>s()));const i=this.Wa(this.qo,this.ha,this.props,Ot);i==="written"&&this.Ra(this.props),i!=="failed"&&(this.ia.clear(),this.sa=!1,this.oa.clear()),n&&this.aa.forEach(s=>s())}Ua(){const{main:e,groups:t}=this.wa(),n=this.Wa(this.qo,this.ha,e,Ot);n==="written"&&this.Ra(e),n!=="failed"&&(this.sa=!1,this.oa.clear(),fs.forEach(s=>{var r;!((r=tn(s))===null||r===void 0)&&r.storageGroup||this.ia.delete(s)}));for(const s of $l){var i;const r=t[s];if(An(r)&&!(!((i=this.Jo[s])===null||i===void 0)&&i.persisted)){fs.forEach(c=>{var u;((u=tn(c))===null||u===void 0?void 0:u.storageGroup)===s&&this.ia.delete(c)});continue}const o=this.Wa(Ge,this.pa(s),r,s);o!=="failed"&&fs.forEach(c=>{const u=tn(c);(u==null?void 0:u.storageGroup)!==s||o!=="written"&&u.volatile||this.ia.delete(c)})}}wa(){const e={},t={flags:{},surveys:{}};return Ze(this.props,(n,i)=>{var s;const r=(s=tn(i))===null||s===void 0?void 0:s.storageGroup;r?t[r][i]=n:e[i]=n}),{main:e,groups:t}}Sa(e,t){if(t===Ot)return JSON.stringify(e)+"|"+this.Va+"|"+this.Ga+"|"+this.Za;const n={};return Ze(e,(i,s)=>{var r;n[s]=!((r=tn(s))===null||r===void 0)&&r.volatile?"__volatile__":i}),JSON.stringify(n)}Wa(e,t,n,i){const s=this.ya(i);if(i!==Ot&&!s.dirty&&!U(s.fingerprint))return"skipped";let r;try{if(r=this.Sa(n,i),r===s.fingerprint)return s.dirty=!1,"skipped"}catch{r=void 0}return e.At(t,n,this.Va,this.Ga,this.Za,this.Rr.debug)?(s.dirty=!1,i!==Ot&&(s.persisted=!0),U(r)||(s.fingerprint=r),this.Ko&&(s.storageValue=Ge.Ot(t)),"written"):(this.Rr.debug&&ae.warn(`failed to persist storage entry "${t}"; will retry on next save`),"failed")}remove({keepGroupEntries:e=!1}={}){if(this.Ma(),U(this.Na)||(clearTimeout(this.Na),this.Na=void 0),this.qo.Lt(this.ha,!1),this.qo.Lt(this.ha,!0),!e&&this.la)for(const t of $l)Ge.Lt(this.pa(t));e?delete this.Jo[Ot]:this.Jo={},this.Aa=void 0,this.Fa=void 0}clear(){this.remove(),this.props={}}register_once(e,t,n){if(We(e)){this.syncCookieProperties(),U(t)&&(t="None"),this.Va=U(n)?this.Qa:n;let i=!1;if(Ze(e,(s,r)=>{this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.Ca(r,s),i=!0)}),i)return this.save(),!0}return!1}register(e,t){if(We(e)){this.syncCookieProperties(),this.Va=U(t)?this.Qa:t;let n=!1;if(Ze(e,(i,s)=>{e.hasOwnProperty(s)&&(this.props[s]!==i||We(i)||Te(i))&&(this.Ca(s,i),n=!0)}),n)return this.save(),!0}return!1}unregister(e){this.syncCookieProperties();const t=typeof e=="string"?[e]:e;let n=!1;for(const i of t)i in this.props&&(this.$a(i),n=!0);n&&this.save()}update_campaign_params(){const e=K==null?void 0:K.URL;if(e===this.ua)return;const t=V5(this.Rr.custom_campaign_params,this.Rr.mask_personal_data_properties,this.Rr.custom_personal_data_properties),n=!An(Dv(t));return n&&this.register(t),this.ua=e,n?t:void 0}update_search_keyword(){this.register(function(){const e=K==null?void 0:K.referrer;return e?W5(e):{}}())}update_referrer_info(){var e;this.register_once({$referrer:U5(),$referring_domain:(K==null?void 0:K.referrer)&&((e=Ss(K.referrer))===null||e===void 0?void 0:e.host)||Vh},void 0)}set_initial_person_info(){if(this.props.$initial_campaign_params||this.props.$initial_referrer_info)return;const e=G5(this.Rr.mask_personal_data_properties,this.Rr.custom_personal_data_properties,this.Rr.disable_capture_url_hashes);this.register_once({[fo]:this.Xo?{r:Ru(e.r),u:e.u?Ru(e.u):void 0}:e},void 0)}get_initial_props(){const e={};Ze([y5,v5],n=>{const i=this.props[n];i&&Ze(i,function(s,r){e["$initial_"+sx(r)]=s})});const t=this.props[fo];if(t){const n=function(i,s=!1){const r=Y5(i,s),o={};return Ze(r,function(c,u){o[`$initial_${sx(u)}`]=c}),o}(t,this.Rr.disable_capture_url_hashes);ct(e,n)}return e}safe_merge(e){return Ze(this.props,function(t,n){n in e||(e[n]=t)}),e}update_config(e,t,n){const i=e.persistence!==t.persistence,s=!((y,b)=>{if(y.length!==b.length)return!1;const k=[...y].sort(),w=[...b].sort();return k.every((S,j)=>S===w[j])})(e.cookie_persisted_properties||[],t.cookie_persisted_properties||[]),r=i||s,o=e.cookieWinsOnConflict!==t.cookieWinsOnConflict,c=e.disable_persistence||!!n,u=!!this.mi&&!c;c||this.Oa(t,u),this.Rr=e,!c&&(i||s||o)&&(this.Aa=void 0,this.Fa=void 0,this.Oa(R(R({},e),{},{cookie_persisted_properties:t.cookie_persisted_properties}),u));const h=r||o?this.ca(e):this.qo;this.Ja();const f=this.da(e),m=r||f!==this.Yo,x=!c&&(m||e.cross_subdomain_cookie!==this.Ga||e.secure_cookie!==this.Za)&&this.Da(u);this.na=m;try{if(this.Qa=this.Va=e.cookie_expiration,this.set_disabled(c),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),m){const y=this.props;this.clear(),this.qo=h,this.Yo=f,this.props=y,this.save()}else o&&(this.qo=h,c||(delete this.Jo[Ot],this.qa()))}finally{this.na=!1,x&&this.ja()}}Ja(){const e=this.props[fo];if(!this.Xo||!We(e)||typeof e.r!="string")return;const t=Ru(e.r),n=typeof e.u=="string"?Ru(e.u):e.u;t===e.r&&n===e.u||this.Ca(fo,R(R({},e),{},{r:t,u:n}))}set_disabled(e){this.mi=e,this.mi?this.remove():this.save()}set_cross_subdomain(e){e!==this.Ga&&(this.Ga=e,this.remove({keepGroupEntries:!0}),this.save())}set_secure(e){e!==this.Za&&(this.Za=e,this.remove({keepGroupEntries:!0}),this.save())}set_event_timer(e,t){const n=this.props.__timers||{};n[e]=t,this.Ca(hx,n),this.save()}remove_event_timer(e){const t=this.props.__timers||{},n=t[e];return U(n)||(delete t[e],this.Ca(hx,t),this.save()),n}get_property(e){return this.props[e]}set_property(e,t){this.Ca(e,t),this.save()}Ca(e,t,n=!0){var i;const s=this.props[e];this.props[e]=t,n&&(e!=="distinct_id"&&e!=="$user_state"||s===t||(this.sa=!0),U_(e)&&!Xs(s,t)&&this.oa.add(e),this.Ea(e,s,t),!((i=tn(e))===null||i===void 0)&&i.volatile||this.Ia(e))}$a(e,t=!0){delete this.props[e],t&&(Jm(e)&&this.ma(e,!0),U_(e)&&this.oa.add(e),this.Ia(e))}Ia(e){var t;const n=(t=tn(e))===null||t===void 0?void 0:t.storageGroup;n&&(this.ya(n).dirty=!0)}ya(e){return this.Jo[e]||(this.Jo[e]={})}};const Hn={GZipJS:"gzip-js",Base64:"base64"},Bl={Activation:"events",Cancellation:"cancelEvents"}
68,tg={Popover:"popover",API:"api",Widget:"widget"},ws={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},ng={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},Cx={Popover:"popover",Inline:"inline"};function Mu(e){let t=!0;return{dispose(){if(t){t=!1;const n=e();n&&Ut(n.then)&&n.then(void 0,()=>{})}}}}const nI={SHOWN:"product tour shown"},Y_={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},K_=kt("[RateLimiter]");var iI=class{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=t=>{const n=t.text;if(n&&n.length)try{(JSON.parse(n).quota_limited||[]).forEach(i=>{K_.info(`${i||"events"} is quota limited.`),this.serverLimits[i]=new Date().getTime()+6e4})}catch(i){return void K_.warn(`could not rate limit - continuing. Error: "${i==null?void 0:i.message}"`,{text:n})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return((e=this.instance.config.rate_limiting)===null||e===void 0?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max(((e=this.instance.config.rate_limiting)===null||e===void 0?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e=!1){var t,n,i;const{captureEventsBurstLimit:s,captureEventsPerSecond:r}=this,o=new Date().getTime(),c=(t=(n=this.instance.persistence)===null||n===void 0?void 0:n.get_property("$capture_rate_limit"))!==null&&t!==void 0?t:{tokens:s,last:o};c.tokens+=(o-c.last)/1e3*r,c.last=o,c.tokens>s&&(c.tokens=s);const u=1>c.tokens;if(u||e||(c.tokens=Math.max(0,c.tokens-1)),u&&!e){const h=(jt(c.dropped)?c.dropped:0)+1;c.dropped=h,!this.lastEventRateLimited&&this.Ka(h)&&(c.dropped=0)}return this.lastEventRateLimited=u,(i=this.instance.persistence)===null||i===void 0||i.set_property("$capture_rate_limit",c),{isRateLimited:u,remainingTokens:c.tokens}}Xa(e){const t=this.instance.config.property_denylist;return!Te(t)||!t.includes(e)}Ya(){var e;if(this.Xa("$current_url")&&this.Xa("$pathname")&&(yt!=null&&yt.pathname))return`${(e=yt.origin)!==null&&e!==void 0?e:""}${yt.pathname}`}Ka(e){var t,n;const{captureEventsBurstLimit:i,captureEventsPerSecond:s}=this,r=this.Ya(),o=this.Xa("$session_id")?(t=(n=this.instance).get_session_id)===null||t===void 0?void 0:t.call(n):void 0,c=[`${e} event(s) dropped since the last warning`,r?`triggered on ${r}`:void 0,o?`session ${o}`:void 0].filter(Boolean).join(", ");return!!this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:`posthog-js client rate limited: ${c}. Config is set to ${s} events per second and ${i} events burst limit.`},{skip_client_rate_limiting:!0})}isServerRateLimited(e){const t=this.serverLimits[e||"events"]||!1;return t!==!1&&new Date().getTime()<t}};const Zs=kt("[RemoteConfig]");var X5=class{constructor(e){this._instance=e}get remoteConfig(){var e;return(e=we._POSTHOG_REMOTE_CONFIG)===null||e===void 0||(e=e[this._instance.config.token])===null||e===void 0?void 0:e.config}tl(e){var t,n,i;!((t=we.__PosthogExtensions__)===null||t===void 0)&&t.loadExternalDependency?(n=we.__PosthogExtensions__)===null||n===void 0||(i=n.loadExternalDependency)===null||i===void 0||i.call(n,this._instance,"remote-config",()=>e(this.remoteConfig)):e()}el(e){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets",`/array/${this._instance.config.token}/config`),callback:e})}load(){try{if(this.remoteConfig)return Zs.info("Using preloaded remote config",this.remoteConfig),void this.il(this.remoteConfig);if(this._instance.nl())return void Zs.warn("Remote config is disabled. Falling back to local config.");this.tl(e=>{if(!e)return Zs.info("No config found after loading remote JS config. Falling back to JSON."),void this.el(t=>{this.il(t.json,t)});this.il(e)})}catch(e){Zs.error("Error loading remote config",e),this.il()}}il(e,t){!e&&t&&(t.statusCode===0?t.error||Zs.warn("Failed to fetch remote config from PostHog."):
vendor: 4,126 bytes, line 68
68Zs.error("Failed to fetch remote config from PostHog."));try{this._instance.il(e?{ok:!0,config:e}:{ok:!1})}catch(i){Zs.error("Error applying remote config",i)}if((e==null?void 0:e.hasFeatureFlags)!==!1&&!this._instance.config.advanced_disable_feature_flags_on_first_load)try{var n;(n=this._instance.featureFlags)===null||n===void 0||n.ensureFlagsLoaded()}catch(i){Zs.error("Error loading feature flags",i)}}},ei=Uint8Array,In=Uint16Array,Io=Uint32Array,Vv=new ei([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Hv=new ei([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Q_=new ei([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Z5=function(e,t){for(var n=new In(31),i=0;31>i;++i)n[i]=t+=1<<e[i-1];var s=new Io(n[30]);for(i=1;30>i;++i)for(var r=n[i];n[i+1]>r;++r)s[r]=r-n[i]<<5|i;return[n,s]},J5=Z5(Vv,2),Nx=J5[1];J5[0][28]=258,Nx[258]=28;for(var X_=Z5(Hv,0)[1],eC=new In(32768),_t=0;32768>_t;++_t){var io=(43690&_t)>>>1|(21845&_t)<<1;eC[_t]=((65280&(io=(61680&(io=(52428&io)>>>2|(13107&io)<<2))>>>4|(3855&io)<<4))>>>8|(255&io)<<8)>>>1}var kc=function(e,t,n){for(var i=e.length,s=0,r=new In(t);i>s;++s)++r[e[s]-1];var o,c=new In(t);for(s=0;t>s;++s)c[s]=c[s-1]+r[s-1]<<1;for(o=new In(i),s=0;i>s;++s)o[s]=eC[c[e[s]-1]++]>>>15-e[s];return o},ba=new ei(288);for(_t=0;144>_t;++_t)ba[_t]=8;for(_t=144;256>_t;++_t)ba[_t]=9;for(_t=256;280>_t;++_t)ba[_t]=7;for(_t=280;288>_t;++_t)ba[_t]=8;var Hh=new ei(32);for(_t=0;32>_t;++_t)Hh[_t]=5;var sI=kc(ba,9),rI=kc(Hh,5),tC=function(e){return(e/8|0)+(7&e&&1)},nC=function(e,t,n){(n==null||n>e.length)&&(n=e.length);var i=new(e instanceof In?In:e instanceof Io?Io:ei)(n-t);return i.set(e.subarray(t,n)),i},cs=function(e,t,n){var i=t/8|0;e[i]|=n<<=7&t,e[i+1]|=n>>>8},zl=function(e,t,n){var i=t/8|0;e[i]|=n<<=7&t,e[i+1]|=n>>>8,e[i+2]|=n>>>16},ig=function(e,t){for(var n=[],i=0;e.length>i;++i)e[i]&&n.push({s:i,f:e[i]});var s=n.length,r=n.slice();if(!s)return[new ei(0),0];if(s==1){var o=new ei(n[0].s+1);return o[n[0].s]=1,[o,1]}n.sort(function(T,L){return T.f-L.f}),n.push({s:-1,f:25001});var c=n[0],u=n[1],h=0,f=1,m=2;for(n[0]={s:-1,f:c.f+u.f,l:c,r:u};f!=s-1;)c=n[n[m].f>n[h].f?h++:m++],u=n[h!=f&&n[m].f>n[h].f?h++:m++],n[f++]={s:-1,f:c.f+u.f,l:c,r:u};var x=r[0].s;for(i=1;s>i;++i)r[i].s>x&&(x=r[i].s);var y=new In(x+1),b=Tx(n[f-1],y,0);if(b>t){i=0;var k=0,w=b-t,S=1<<w;for(r.sort(function(T,L){return y[L.s]-y[T.s]||T.f-L.f});s>i;++i){var j=r[i].s;if(t>=y[j])break;k+=S-(1<<b-y[j]),y[j]=t}for(k>>>=w;k>0;){var N=r[i].s;t>y[N]?k-=1<<t-y[N]++-1:++i}for(;i>=0&&k;--i){var E=r[i].s;y[E]==t&&(--y[E],++k)}b=t}return[new ei(y),b]},Tx=function(e,t,n){return e.s==-1?Math.max(Tx(e.l,t,n+1),Tx(e.r,t,n+1)):t[e.s]=n},Z_=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new In(++t),i=0,s=e[0],r=1,o=function(u){n[i++]=u},c=1;t>=c;++c)if(e[c]==s&&c!=t)++r;else{if(!s&&r>2){for(;r>138;r-=138)o(32754);r>2&&(o(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(o(s),--r;r>6;r-=6)o(8304);r>2&&(o(r-3<<5|8208),r=0)}for(;r--;)o(s);r=1,s=e[c]}return[n.subarray(0,i),t]},Vl=function(e,t){for(var n=0,i=0;t.length>i;++i)n+=e[i]*t[i];return n},Ex=function(e,t,n){var i=n.length,s=tC(t+2);e[s]=255&i,e[s+1]=i>>>8,e[s+2]=255^e[s],e[s+3]=255^e[s+1];for(var r=0;i>r;++r)e[s+r+4]=n[r];return 8*(s+4+i)},J_=function(e,t,n,i,s,r,o,c,u,h,f){cs(t,f++,n),++s[256];for(var m=ig(s,15),x=m[0],y=m[1],b=ig(r,15),k=b[0],w=b[1],S=Z_(x),j=S[0],N=S[1],E=Z_(k),T=E[0],L=E[1],M=new In(19),A=0;j.length>A;++A)M[31&j[A]]++;for(A=0;T.length>A;++A)M[31&T[A]]++;for(var O=ig(M,7),G=O[0],X=O[1],ee=19;ee>4&&!G[Q_[ee-1]];--ee);var le,re,ne,Z,ce=h+5<<3,W=Vl(s,ba)+Vl(r,Hh)+o,J=Vl(s,x)+Vl(r,k)+o+14+3*ee+Vl(M,G)+(2*M[16]+3*M[17]+7*M[18]);if(W>=ce&&J>=ce)return Ex(t,f,e.subarray(u,u+h));if(cs(t,f,1+(W>J)),f+=2,W>J){le=kc(x,y),re=x,ne=kc(k,w),Z=k;var H=kc(G,X);for(cs(t,f,N-257),cs(t,f+5,L-1),cs(t,f+10,ee-4),f+=14,A=0;ee>A;++A)cs(t,f+3*A,G[Q_[A]]);f+=3*ee;for(var F=[j,T],Y=0;2>Y;++Y){var xe=F[Y];for(A=0;xe.length>A;++A)cs(t,f,H[ge=31&xe[A]]),f+=G[ge],ge>15&&(cs(t,f,xe[A]>>>5&127),f+=xe[A]>>>12)}}else le=sI,re=ba,ne=rI,Z=Hh;for(A=0;c>A;++A)if(i[A]>255){var ge;zl(t,f,le[257+(ge=i[A]>
vendor: 5,492 bytes, line 68
68>>18&31)]),f+=re[ge+257],ge>7&&(cs(t,f,i[A]>>>23&31),f+=Vv[ge]);var te=31&i[A];zl(t,f,ne[te]),f+=Z[te],te>3&&(zl(t,f,i[A]>>>5&8191),f+=Hv[te])}else zl(t,f,le[i[A]]),f+=re[i[A]];return zl(t,f,le[256]),f+re[256]},aI=new Io([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),oI=function(){for(var e=new Io(256),t=0;256>t;++t){for(var n=t,i=9;--i;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),sg=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function lI(e,t){t===void 0&&(t={});var n=function(){var m=4294967295;return{p(x){for(var y=m,b=0;x.length>b;++b)y=oI[255&y^x[b]]^y>>>8;m=y},d(){return 4294967295^m}}}(),i=e.length;n.p(e);var s,r,o,c,u,h=(c=10+((s=t).filename&&s.filename.length+1||0),u=8,function(m,x,y,b,k,w){var S=m.length,j=new ei(b+S+5*(1+Math.floor(S/7e3))+k),N=j.subarray(b,j.length-k),E=0;if(!x||8>S)for(var T=0;S>=T;T+=65535){var L=T+65535;S>L?E=Ex(N,E,m.subarray(T,L)):(N[T]=w,E=Ex(N,E,m.subarray(T,S)))}else{for(var M=aI[x-1],A=M>>>13,O=8191&M,G=(1<<y)-1,X=new In(32768),ee=new In(G+1),le=Math.ceil(y/3),re=2*le,ne=function(Ea){return(m[Ea]^m[Ea+1]<<le^m[Ea+2]<<re)&G},Z=new Io(25e3),ce=new In(288),W=new In(32),J=0,H=0,F=(T=0,0),Y=0,xe=0;S>T;++T){var ge=ne(T),te=32767&T,he=ee[ge];if(X[te]=he,ee[ge]=te,T>=Y){var He=S-T;if((J>7e3||F>24576)&&He>423){E=J_(m,N,0,Z,ce,W,H,F,xe,T-xe,E),F=J=H=0,xe=T;for(var Ee=0;286>Ee;++Ee)ce[Ee]=0;for(Ee=0;30>Ee;++Ee)W[Ee]=0}var Pe=2,pt=0,oi=O,cn=te-he&32767;if(He>2&&ge==ne(T-cn))for(var Ni=Math.min(A,He)-1,Ti=Math.min(32767,T),yd=Math.min(258,He);Ti>=cn&&--oi&&te!=he;){if(m[T+Pe]==m[T+Pe-cn]){for(var li=0;yd>li&&m[T+li]==m[T+li-cn];++li);if(li>Pe){if(Pe=li,pt=cn,li>Ni)break;var Yo=Math.min(cn,li-2),Ko=0;for(Ee=0;Yo>Ee;++Ee){var Or=T-cn+Ee+32768&32767,Ps=Or-X[Or]+32768&32767;Ps>Ko&&(Ko=Ps,he=Or)}}}cn+=(te=he)-(he=X[te])+32768&32767}if(pt){Z[F++]=268435456|Nx[Pe]<<18|X_[pt];var es=31&Nx[Pe],Ta=31&X_[pt];H+=Vv[es]+Hv[Ta],++ce[257+es],++W[Ta],Y=T+Pe,++J}else Z[F++]=m[T],++ce[m[T]]}}E=J_(m,N,w,Z,ce,W,H,F,xe,T-xe,E)}return nC(j,0,b+tC(E)+k)}(r=e,(o=t).level==null?6:o.level,o.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(r.length)))):12+o.mem,c,u,!0)),f=h.length;return function(m,x){var y=x.filename;if(m[0]=31,m[1]=139,m[2]=8,m[8]=2>x.level?4:x.level==9?2:0,m[9]=3,x.mtime!=0&&sg(m,4,Math.floor(new Date(x.mtime||Date.now())/1e3)),y){m[3]=8;for(var b=0;y.length>=b;++b)m[b+10]=y.charCodeAt(b)}}(h,t),sg(h,f-8,n.d()),sg(h,f-4,i),h}const cI=!!jv||!!Dc,iC=new WeakMap,sC="text/plain";let rg=0,ph=!1;const rC=(e,t)=>{const[n,i]=e.split("#"),[s,r]=n.split("?");if(!r)return e;const o=r.split("&").filter(c=>c.split("=")[0]!==t).join("&");return`${s}${o?`?${o}`:""}${i?`#${i}`:""}`},ld=(e,t,n=!0)=>{var i;const[s,r]=e.split("?"),o=R({},t),c=(i=r==null?void 0:r.split("&").map(h=>{var f;const[m,x]=h.split("="),y=n&&(f=o[m])!==null&&f!==void 0?f:x;return delete o[m],`${m}=${y}`}))!==null&&i!==void 0?i:[],u=function(h,f="&"){let m,x;const y=[];return Ze(h,function(b,k){U(b)||U(k)||k==="undefined"||(m=encodeURIComponent((w=>w instanceof File)(b)?b.name:b.toString()),x=encodeURIComponent(k),y[y.length]=x+"="+m)}),y.join(f)}(o);return u&&c.push(u),c.length>0?`${s}?${c.join("&")}`:s},ag=e=>{if(e.sl)return e.sl;const{data:t,compression:n}=e;if(!t)return;if(n===Hn.GZipJS){const s=lI(function(r){var o=r.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(r);for(var c=new ei(r.length+(r.length>>>1)),u=0,h=function(y){c[u++]=y},f=0;o>f;++f){if(u+5>c.length){var m=new ei(u+8+(o-f<<1));m.set(c),c=m}var x=r.charCodeAt(f);128>x?h(x):2048>x?(h(192|x>>>6),h(128|63&x)):x>55295&&57344>x?(h(240|(x=65536+(1047552&x)|1023&r.charCodeAt(++f))>>>18),h(128|x>>>12&63),h(128|x>>>6&63),h(128|63&x)):(h(224|x>>>12),h(128|x>>>6&63),h(128|63&x))}return nC(c,0,u)}(go(t)),{mtime:0});return{contentType:sC,body:s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength),estimatedSize:s.byteLength}}if(n===Hn.Base64){const s=function(o){return o&&btoa(encodeURIComponent(o).replace(/%([0-9A-F]{2})/g,(c,u)=>String.fromCharCode(parseInt(u,16))))}(go(t)),r=(o=>"data="+encodeURIComponent(typeof o=="string"?o:go(o)))(s);return{contentType:"application/x-www-form-urlencoded",body:r,estimatedSize:new Blob([r]).size}}const i=go(t);return{contentType:"application/json",body:i,estimatedSize:new Blob([i]).size}},aC=e=>{const t=()=>e.transport==="sendBeacon"?{url:ld(e.url,{compression:Hn.Base64}),encodedBody:ag(R(R({},e),{},{compression:Hn.Base64,sl:void 0}))}:{url:rC(e.url,"compression"),encodedBody:ag(R(R({},e),{},{compression:void 0,sl:void 0}))};let n;try{n=ag(e)}catch(s){if(y_(e.compression,Ao(e.url,"compression")))return ae.error("Failed to gzip request body, sending uncompressed payload",s),t();throw s}return n&&y_(e.compression,Ao(e.url,"compression"))&&!((i=n.body)instanceof ArrayBuffer?dx(new Uint8Array(i)):ArrayBuffer.isView(i)&&dx(new Uint8Array(i.buffer,i.byteOffset,i.byteLength)))?(ph=!0,t()):{url:e.url,encodedBody:n};var i},oC=e=>{try{return aC(e)}catch(n){var t;return ae.error(n),void((t=e.callback)===null||t===void 0||t.call(e,{statusCode:0,error:n}))}},dI=function(){var e=dt(function*(t){const n=yield function(s){return ux.apply(this,arguments)}(go(t.data),Ft.DEBUG,{rethrow:!0});if(!n)return t;const i=yield n.arrayBuffer();return R(R({},t),{},{sl:{contentType:sC,body:i,estimatedSize:i.byteLength}})});return function(t){return e.apply(this,arguments)}}(),uI=/Failed to fetch|NetworkError|Load failed/i,lC=e=>(e==null?void 0:e.name)==="TypeError"&&uI.test((e==null?void 0:e.message)||""),cC=e=>
68{try{const t=function(n,i=Date.now()){if(typeof n!="string"||!n)return;const s=n.trim(),r=/^\d+\s*,/.test(s)?s.slice(0,s.indexOf(",")).trim():s;if(/^\d+$/.test(r)){const u=1e3*Math.min(Number(r),300);return u>0?u:void 0}if(!/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun)[a-z]*[ ,]/.test(r))return;const o=/^\w{3} \w{3} /.test(r)?r+" GMT":r,c=Date.parse(o)-i;return Number.isFinite(c)&&c>0?Math.min(c,dh):void 0}(e());return U(t)?void 0:Math.min(t,3e4)}catch{return}},dC=e=>{const t=oC(e);if(!t)return;const n=new jv;iC.set(n,!0);const{url:i,encodedBody:s}=t;n.open(e.method||"GET",i,!0);const{contentType:r,body:o}=s??{};Ze(e.headers,function(c,u){n.setRequestHeader(u,c)}),r&&n.setRequestHeader("Content-Type",r),e.timeout&&(n.timeout=e.timeout),n.onreadystatechange=()=>{if(n.readyState===4){var c;const u={statusCode:n.status,text:n.responseText};if(n.status===200)try{u.json=JSON.parse(n.responseText)}catch{}(c=e.callback)===null||c===void 0||c.call(e,u,cC(()=>n.getResponseHeader("Retry-After")))}},n.send(o)},uC=e=>{const t=oC(e);if(!t)return;const{url:n,encodedBody:i}=t,{contentType:s,body:r,estimatedSize:o}=i??{},c=new Headers;Ze(e.headers,function(b,k){c.append(k,b)}),s&&c.append("Content-Type",s);let u=null,h=!1;if(s_){const b=new s_;u={signal:b.signal,timeout:setTimeout(()=>{h=!0;try{b.abort(Wj("AbortError","PostHog request timed out"+((k=e.timeout)?` after ${k}ms`:"")))}catch(w){m(w)}var k},e.timeout)}}let f=!1;const m=b=>{var k;f||(f=!0,h&&(b==null?void 0:b.name)==="AbortError"||lC(b)?ae.warn(b):ae.error(b),(k=e.callback)===null||k===void 0||k.call(e,{statusCode:0,error:b}))};let x=0;const y=()=>{rg-=x,x=0,u&&clearTimeout(u.timeout)};try{const b=R({method:(e==null?void 0:e.method)||"GET",headers:c,referrerPolicy:"strict-origin",body:r,signal:u==null?void 0:u.signal},e.fetchOptions),k=o??(U(r)?0:void 0);b.keepalive=b.method==="POST"&&!e.rl&&b.keepalive!==!1&&b.body===r&&!U(k)&&k>=0&&52428.8>rg+k,b.keepalive&&(x=k,rg+=x),Dc(n,b).then(w=>w.text().then(S=>{var j;if(f)return;const N={statusCode:w.status,text:S};if(w.status===200)try{N.json=JSON.parse(S)}catch(E){ae.error(E)}f=!0,y(),(j=e.callback)===null||j===void 0||j.call(e,N,cC(()=>w.headers.get("Retry-After")))})).catch(w=>{y(),m(w)}).finally(y)}catch(b){y(),m(b)}},Ax=e=>{try{var t;const{url:n,encodedBody:i}=aC(e),{contentType:s,body:r,estimatedSize:o}=i??{};if(!r)return;const c=r instanceof Blob?r:new Blob([r],{type:s});if(Yt.sendBeacon(n,c))return;const u=Te(e.data)?e.data:(t=e.data)===null||t===void 0?void 0:t.batch;if(Te(u)&&u.length>1&&(o??0)>16384){const h=Math.ceil(u.length/2),f=m=>Te(e.data)?m:R(R({},e.data),{},{batch:m});return Ax(R(R({},e),{},{data:f(u.slice(0,h))})),void Ax(R(R({},e),{},{data:f(u.slice(h))}))}ae.warn(`Beacon of ~${o??0} bytes was rejected by the browser, falling back to ${Dc?"fetch":"XHR"}`),Dc?uC(R(R({},e),{},{rl:!0})):dC(e)}catch(n){ae.warn("Beacon send failed",n)}},ek=(e,t,n,i)=>{const s=i==="query"?t==="POST"?"sent_at":"_":void 0;return ld(n===Hn.GZipJS?rC(e,"compression"):e,R(R({},s?{[s]:Date.now().toString()}:{}),n===Hn.GZipJS?{}:{compression:n}))},hI=(()=>{const e=[];return Dc&&e.push({transport:"fetch",method:uC}),jv&&e.push({transport:"XHR",method:dC}),Yt!=null&&Yt.sendBeacon&&e.push({transport:"sendBeacon",method:Ax}),e})();let hC=!cI&&(vn==null?void 0:vn.indexOf("MSIE"))===-1&&(vn==null?void 0:vn.indexOf("Mozilla"))===-1;function pC(e,t,n){var i,s,r;n&&(t=R(R({},t),{},{callback:o=>n(o)})),e.__loaded?hC?e.__request_queue.push(t):e.rateLimiter.isServerRateLimited(t.batchKey)?t.fireCallbackOnDrop&&((s=t.callback)===null||s===void 0||s.call(t,{statusCode:429})):(t.transport=t.transport||e.config.api_transport,t.headers=R(R({},e.config.request_headers),t.headers),t.compression=t.compression==="best-available"?(i=e.compression)!==null&&i!==void 0?i:t.compressionFallback:t.compression,(U(e.config.disable_beacon)?e.config.__preview_disable_beacon:e.config.disable_beacon)&&(t.disableTransport=["sendBeacon"]),t.fetchOptions=t.fetchOptions||e.config.fetch_options,((o,c)=>{var u,h,f;const m=R(R({},o),{},{callback:c??(w=>{var S;return(S=o.callback)===null||S===void 0?void 0:S.call(o,w)})});m.timeout=m.timeout||6e4;const x=(u=m.transport)!==null&&u!==void 0?u:"fetch";x==="sendBeacon"&&U(m.compression)&&m.data&&(m.compression=Hn.Base64),m.method==="POST"&&m.data&&(m.timestampMode==="capture-body"?m.data=(w=>{var S,j;const N=(Te(w)?w:[w]).map(T=>R(R({},T),T.timestamp instanceof Date&&!isNaN(T.timestamp.getTime())?{timestamp:T.timestamp.toISOString()}:{})),E=N[0];return{api_key:(S=E==null||(j=E.properties)===null||j===void 0?void 0:j.token)!==null&&S!==void 0?S:E==null?void 0:E.token,batch:N,sent_at:new Date().toISOString()}})(m.data):m.timestampMode==="body"&&(m.data=((w,S=new Date().toISOString())=>Te(w)?w.map(j=>R(R({},j),{},{sent_at:S})):R(R({},w),{},{sent_at:S}))(m.data))),m.url=ek(m.url,m.method,m.compression,m.timestampMode);const y=hI.filter(w=>!m.disableTransport||!w.transport||!m.disableTransport.includes(w.transport)),b=(h=(f=function(w,S){for(let j=0;w.length>j;j++)if(S(w[j]))return w[j]}(y,w=>w.transport===x))===null||f===void 0?void 0:f.method)!==null&&h!==void 0?h:y[0].method;if(!b)throw new Error("No available transport method");const k=w=>{try{b(w)}catch(j){var S;lC(j)?ae.warn(j):ae.error(j),(S=m.callback)===null||S===void 0||S.call(m,{statusCode:0,error:j})}};x!=="sendBeacon"&&!m.preferSyncCompression&&m.data&&m.compression===Hn.GZipJS&&KA&&typeof Promise<"u"&&!ph?dI(m).then(w=>
68{k(w)}).catch(w=>{if(b_(w))return ph=!0,void k(R(R({},m),{},{compression:void 0,url:ek(o.url,o.method,void 0,o.timestampMode)}));(S=>{if(!S||typeof S!="object")return!1;const j="name"in S?String(S.name):"";return b_(S)||j===Xj})(w)&&(ph=!0),k(m)}):k(m)})(t,(o,c)=>{var u,h,f;e.rateLimiter.checkForLimiting(o),400>o.statusCode||(u=(h=e.config).on_request_error)===null||u===void 0||u.call(h,o),n?n(o,c):(f=t.callback)===null||f===void 0||f.call(t,o)})):t.fireCallbackOnDrop&&((r=t.callback)===null||r===void 0||r.call(t,{statusCode:0}))}var pI=class{constructor(e,t){this.ol=!0,this.al=[],this.ll=Ui((t==null?void 0:t.flush_interval_ms)||3e3,250,5e3,ae.createLogger("flush interval"),3e3),this.ul=e}enqueue(e){this.al.push(e),this.hl||this.cl()}unload(){this.dl();const e=this.al.length>0?this.vl():{},t=Object.values(e);[...t.filter(n=>n.url.indexOf("/e")===0),...t.filter(n=>n.url.indexOf("/e")!==0)].map(n=>{this.fl(n,"sendBeacon")})}enable(){this.ol=!1,this.cl()}cl(){this.ol||(this.hl=setTimeout(()=>{if(this.dl(),this.al.length>0){const e=this.vl();for(const t in e)this.fl(e[t])}},this.ll))}fl(e,t){try{this.ul(e,t)}catch(n){ae.error(n)}}dl(){clearTimeout(this.hl),this.hl=void 0}vl(){const e={};return Ze(this.al,t=>{var n;const i=t,s=((i?i.batchKey:null)||i.url)+(i.batchGroup?`:${i.batchGroup}`:"");U(e[s])&&(e[s]=R(R({},i),{},{data:[]})),(n=e[s].data)===null||n===void 0||n.push(i.data)}),this.al=[],e}};const fI=["retriesPerformedSoFar"];var mI=class{constructor(e){this._instance=e,this.pl=!1,this.gl=3e3,this.al=[],this.al=[],this.ml=!0,this.resume()}resume(){if(!U(B)&&"onLine"in B.navigator){if(this.ml=B.navigator.onLine,this.yl)return;this.yl=()=>{this.ml=!0,this.bl()},this._l=()=>{this.ml=!1},Ke(B,"online",this.yl),Ke(B,"offline",this._l)}}get length(){return this.al.length}retriableRequest(e,t){let{retriesPerformedSoFar:n}=e,i=Zj(e,fI);ps(n)&&(i.url=ld(i.url,{retry_count:n})),pC(this._instance,t?R(R({},i),{},{transport:t}):i,(s,r)=>{var o;if(s.statusCode!==200&&(400>s.statusCode||s.statusCode>=500)){if((s.statusCode===0?3:10)>(n??0))return void this.Ls(R({retriesPerformedSoFar:n},i),r);s.statusCode===0&&ae.warn(`Request failed before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped retrying after ${n??0} retries.`)}(o=i.callback)===null||o===void 0||o.call(i,s)})}Ls(e,t){const n=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=n+1;const i=Math.max(function(o){const c=3e3*Math.pow(2,o),u=c/2,h=Math.min(18e5,c),f=(Math.random()-.5)*(h-u);return Math.ceil(h+f)}(n),t??0),s=Date.now()+i;this.al.push({retryAt:s,requestOptions:e});let r=`Enqueued failed request for retry in ${i}`;navigator.onLine||(r+=" (Browser is offline)"),ae.warn(r),this.pl||(this.pl=!0,this.wl())}wl(){if(this.kl&&clearTimeout(this.kl),this.al.length===0)return this.pl=!1,void(this.kl=void 0);this.kl=setTimeout(()=>{this.ml&&this.al.length>0&&this.bl(),this.wl()},this.gl)}bl(){const e=Date.now(),t=[],n=this.al.filter(i=>e>i.retryAt||(t.push(i),!1));if(this.al=t,n.length>0)for(const{requestOptions:i}of n)this.retriableRequest(i)}unload(){this.kl&&(clearTimeout(this.kl),this.kl=void 0),this.pl=!1,U(B)||(this.yl&&(B.removeEventListener("online",this.yl),this.yl=void 0),this._l&&(B.removeEventListener("offline",this._l),this._l=void 0));for(const{requestOptions:e}of this.al)try{this._instance._send_request(R(R({},e),{},{transport:"sendBeacon"}))}catch(t){ae.error(t)}this.al=[]}},gI=class{constructor(e){this._instance=e,this.Sl=()=>{var t,n,i,s;this.xl||(this.xl={});const r=this.scrollElement(),o=this.scrollY(),c=r?Math.max(0,r.scrollHeight-r.clientHeight):0,u=o+((r==null?void 0:r.clientHeight)||0),h=(r==null?void 0:r.scrollHeight)||0;this.xl.lastScrollY=Math.ceil(o),this.xl.maxScrollY=Math.max(o,(t=this.xl.maxScrollY)!==null&&t!==void 0?t:0),this.xl.maxScrollHeight=Math.max(c,(n=this.xl.maxScrollHeight)!==null&&n!==void 0?n:0),this.xl.lastContentY=u,this.xl.maxContentY=Math.max(u,(i=this.xl.maxContentY)!==null&&i!==void 0?i:0),this.xl.maxContentHeight=Math.max(h,(s=this.xl.maxContentHeight)!==null&&s!==void 0?s:0)}}get Cl(){return this._instance.config.scroll_root_selector}getContext(){return this.xl}resetContext(){const e=this.xl;return this.xl=void 0,setTimeout(this.Sl,0),e}startMeasuringScrollPosition(){Ke(B,"scroll",this.Sl,{capture:!0}),Ke(B,"scrollend",this.Sl,{capture:!0}),Ke(B,"resize",this.Sl)}scrollElement(){if(this.Cl){const n=Te(this.Cl)?this.Cl:[this.Cl];for(const i of n){var e;const s=B==null||(e=B.document)===null||e===void 0?void 0:e.querySelector(i);if(s)return s}return}var t;return B==null||(t=B.document)===null||t===void 0?void 0:t.documentElement}$l(e){var t,n;const i=e==="y"?"scrollTop":"scrollLeft";if(this.Cl){const s=this.scrollElement();return s&&s[i]||0}return B?e==="y"?B.scrollY||B.pageYOffset||((t=B.document)===null||t===void 0||(t=t.documentElement)===null||t===void 0?void 0:t.scrollTop)||0:B.scrollX||B.pageXOffset||((n=B.document)===null||n===void 0||(n=n.documentElement)===null||n===void 0?void 0:n.scrollLeft)||0:0}scrollY(){return this.$l("y")}scrollX(){return this.$l("x")}};const xI=e=>G5(e==null?void 0:e.config.mask_personal_data_properties,e==null?void 0:e.config.custom_personal_data_properties,e==null?void 0:e.config.disable_capture_url_hashes
vendor: 4,513 bytes, line 68
68);var tk=class{constructor(e,t,n,i){this.Be=s=>{const r=this.Tl();if(r&&r.sessionId===s)return;const o={sessionId:s,props:this.Il(this._instance)};this.Ml.register({[bx]:o})},this._instance=e,this.El=t,this.Ml=n,this.Il=i||xI,this.El.onSessionId(this.Be)}Tl(){return this.Ml.props[bx]}getSetOnceProps(){var e;const t=(e=this.Tl())===null||e===void 0?void 0:e.props;return t?"r"in t?Y5(t,this._instance.config.disable_capture_url_hashes):{$referring_domain:t.referringDomain,$pathname:t.initialPathName,utm_source:t.utm_source,utm_campaign:t.utm_campaign,utm_medium:t.utm_medium,utm_content:t.utm_content,utm_term:t.utm_term}:{}}getSessionProps(){const e={};return Ze(Dv(this.getSetOnceProps()),(t,n)=>{n==="$current_url"&&(n="url"),e[`$session_entry_${sx(n)}`]=t}),e}},Wh=class{on(e,t){return this.Pl[e]||(this.Pl[e]=[]),this.Pl[e].push(t),()=>{this.Pl[e]=this.Pl[e].filter(n=>n!==t)}}emit(e,t){for(const n of this.Pl[e]||[])n(t);for(const n of this.Pl["*"]||[])n(e,t)}constructor(){this.Pl={}}};const so=kt("[SessionId]"),nk=864e5;var ik=class{on(e,t){return this.Rl.on(e,t)}constructor(e,t,n){var i;if(this.Al=null,this.Fl=null,this.Ol=[],this.Dl=void 0,this.Ll=!1,this.Rl=new Wh,this.Nl=(r,o)=>!(!ps(r)||!ps(o))&&Math.abs(r-o)>this.sessionTimeoutMs,!e.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(e.config.cookieless_mode==="always")throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Rr=e.config,this.Ml=e.persistence,this.He=void 0,this.Xt=void 0,this._sessionStartTimestamp=null,this.ql=void 0,this._sessionActivityTimestamp=null,this.jl=t||wi,this.Bl=n||wi;const s=this.Rr.persistence_name||this.Rr.token;if(this._sessionTimeoutMs=1e3*Ui(this.Rr.session_idle_timeout_seconds||1800,60,36e3,so.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.Hl(),this.zl="ph_"+s+"_window_id",this.Ul="ph_"+s+"_primary_window_exists",this.Wl()){const r=ot.Dt(this.zl),o=ot.Dt(this.Ul);r&&!o?this.He=r:ot.Lt(this.zl),ot.At(this.Ul,!0)}!((i=this.Rr.bootstrap)===null||i===void 0)&&i.sessionID&&this.setBootstrapSessionId(this.Rr.bootstrap.sessionID),this.Vl()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return U(this.Ol)&&(this.Ol=[]),this.Ol.push(e),this.Xt&&e(this.Xt,this.He),()=>{this.Ol=this.Ol.filter(t=>t!==e)}}Wl(){return this.Rr.persistence!=="memory"&&!this.Ml.mi&&ot.Et()}Gl(e){e!==this.He&&(this.He=e,this.Wl()&&ot.At(this.zl,e))}Zl(){return this.He?this.He:this.Wl()?ot.Dt(this.zl):null}Ql(e){const t=this.Al;return!bt(t)&&!bt(e)&&5e3>Math.abs(e-t)}Jl(e,t,n){const i=t!==this._sessionActivityTimestamp,s=!(e!==this.Xt||n!==this._sessionStartTimestamp);this._sessionStartTimestamp=n,this._sessionActivityTimestamp=t,this.Xt=e,s&&!i||s&&this.Ql(t)||(this.Al=t,this.Ml.register({[po]:[t,e,n]}))}Kl(){var e;const t=(e=this.Rr)===null||e===void 0?void 0:e.persistence_save_debounce_ms;return ps(t)&&t>0}Xl(){this.Kl()?this.Ml.refreshKey(po):(this.Ml.flush(),this.Ml.load())}Yl(){var e;if(bt(this._sessionActivityTimestamp)||this._sessionActivityTimestamp===this.Al)return;this.Xl();const[,t,n]=this.tu();t===this.Xt&&n===this._sessionStartTimestamp&&(this.Al=this._sessionActivityTimestamp,this.Ml.register({[po]:[this._sessionActivityTimestamp,(e=this.Xt)!==null&&e!==void 0?e:null,this._sessionStartTimestamp]}),this.Ml.flush())}eu(){const[e]=this.tu(),t=ps(e)?e:0,n=ps(this._sessionActivityTimestamp)?this._sessionActivityTimestamp:0;return Math.max(t,n)}iu(e){return this.Xl(),this.Nl(e,this.eu())}tu(){const e=this.Ml.props[po];return Te(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.Al=null,this.ql=void 0,clearTimeout(this.nu),this.nu=void 0,this.Jl(null,null,null)}setBootstrapSessionId(e,t=!1){const n=((i,s=new Date().getTime())=>{try{const r=(o=>{const c=o.replace(/-/g,"");if(c.length!==32)throw new Error("Not a valid UUID");if(c[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(c.substring(0,12),16)})(i);return r>s+6e4?void so.error("Bootstrap sessionID cannot be in the future"):r}catch(r){return void so.error("Invalid sessionID in bootstrap",r)}})(e);return!U(n)&&(t?this.ql={sessionId:e,sessionStartTimestamp:n}:this.Jl(e,new Date().getTime(),n),!0)}destroy(){this.Ll=!0,this.Yl(),clearTimeout(this.nu),this.nu=void 0,this.Dl&&B&&(B.removeEventListener($h,this.Dl,{capture:!1}),this.Dl=void 0),this.Ol=[]}Vl(){this.Dl=()=>{this.Yl(),this.Wl()&&ot.Lt(this.Ul)},Ke(B,$h,this.Dl,{capture:!1})}
68checkAndGetSessionAndWindowId(e=!1,t=null,n=!1){if(this.Rr.cookieless_mode==="always")throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');const i=t||new Date().getTime(),s=this.Xt;if(n)this.Fl=i;else if(bt(this.Fl)||this.Fl>i||i-this.Fl>=1e3){var r,o;(r=(o=this.Ml).syncCookieProperties)===null||r===void 0||r.call(o),this.Fl=i}let[,c,u]=this.tu();const h=!U(s)&&c!==s,f=this.eu();let m=this.Zl();const x=this.ql,y=!!x&&(x.sessionStartTimestamp>i+6e4||i-x.sessionStartTimestamp>nk),b=x?y:ps(u)&&Math.abs(i-u)>nk;let k=!1,w=h,S=!c||!!x;const j=c;let N=!S&&!e&&this.Nl(i,f);if(N&&(N=this.iu(i),N||so.info("cross-tab refresh kept the session alive",{sessionId:c}),[,c,u]=this.tu(),N||(S=!c||!!x)),S||N||b){w=!1;const M=x&&!y;c=M?x.sessionId:this.jl(),m=this.Bl(),so.info("new session ID assigned",{sessionId:c,windowId:m,bootstrapped:!!M,changeReason:{noSessionId:S,activityTimeout:N,sessionPastMaximumLength:b}}),u=M?x.sessionStartTimestamp:i,this.ql=void 0,k=!0}else m||(m=this.Bl(),k=!0),w=w||c!==j,w&&(so.info("adopted cross-tab session id",{sessionId:c,windowId:m}),k=!0);const E=ps(f)&&e&&!b?f:i,T=ps(u)?u:new Date().getTime();this.Gl(m),this.Jl(c,E,T),e||this.Hl();const L={noSessionId:S,activityTimeout:N,sessionPastMaximumLength:b,crossTabAdoption:w};return k&&this.Ol.forEach(M=>M(c,m,L)),{sessionId:c,windowId:m,sessionStartTimestamp:T,changeReason:k?L:void 0,lastActivityTimestamp:f}}Hl(){this.Ll||(clearTimeout(this.nu),this.nu=setTimeout(()=>{if(!this.Ll)if(this.iu(new Date().getTime())){const e=this.Xt;this.resetSessionId(),this.Rl.emit("forcedIdleReset",{idleSessionId:e})}else this.Hl()},1.1*this.sessionTimeoutMs))}};const fC=function(e,t){if(!e)return!1;const n=e.userAgent;if(n&&a_(n,t))return!0;try{const i=e==null?void 0:e.userAgentData;if(i!=null&&i.brands&&i.brands.some(s=>a_(s==null?void 0:s.brand,t)))return!0}catch{}return!!e.webdriver};function mC(){return(mC=dt(function*(){const e=Yt==null?void 0:Yt.userAgentData;if(e!=null&&e.getHighEntropyValues)try{const t=yield e.getHighEntropyValues(["model"]),n=t==null?void 0:t.model;return Be(n)&&n.length>0?n:void 0}catch(t){return void ae.info("Unable to resolve $device_model from userAgentData.getHighEntropyValues",t)}})).apply(this,arguments)}function vI(e,t){let n=`$survey_${t}/${e.id}`;return e.current_iteration&&e.current_iteration>0&&(n=`$survey_${t}/${e.id}/${e.current_iteration}`),n}function gC(e){var t;return!!(!((t=e.conditions)===null||t===void 0||(t=t.events)===null||t===void 0||(t=t.values)===null||t===void 0)&&t.length)}const qh=(e,t)=>{if(!(n=>{try{new RegExp(n)}catch{return!1}return!0})(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}},Ou=e=>e.toLowerCase(),xC={exact:(e,t)=>t.some(n=>e.some(i=>n===i)),is_not:(e,t)=>t.every(n=>e.every(i=>n!==i)),regex:(e,t)=>t.some(n=>e.some(i=>qh(n,i))),not_regex:(e,t)=>t.every(n=>e.every(i=>!qh(n,i))),icontains:(e,t)=>t.map(Ou).some(n=>e.map(Ou).some(i=>n.includes(i))),not_icontains:(e,t)=>t.map(Ou).every(n=>e.map(Ou).every(i=>!n.includes(i))),gt:(e,t)=>t.some(n=>{const i=parseFloat(n);return!isNaN(i)&&e.some(s=>i>parseFloat(s))}),lt:(e,t)=>t.some(n=>{const i=parseFloat(n);return!isNaN(i)&&e.some(s=>i<parseFloat(s))})};function vC(e,t){return!e||Object.entries(e).every(([n,i])=>{const s=t==null?void 0:t[n];if(s==null)return!1;const r=xC[i.operator];return!!r&&r(i.values.map(String),[String(s)])})}function og(e,t,n){return go({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:n})}const Px="custom",sk="i.posthog.com",yI=/^\/static\//,bI=["/s/","/e/","/i/"];var wI=class{constructor(e){this.su={},this.instance=e}get apiHost(){const e=this.instance.config.api_host.trim().replace(/\/$/,"");return e==="https://app.posthog.com"?"https://us.i.posthog.com":e}get flagsApiHost(){const e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e;let t=(e=this.instance.config.ui_host)===null||e===void 0?void 0:e.replace(/\/$/,"");return t||(t=this.apiHost.replace(`.${sk}`,".posthog.com")),t==="https://app.posthog.com"?"https://us.posthog.com":t}get region(){return this.su[this.apiHost]||(this.su[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":Px),this.su[this.apiHost]}ru(e){if(!yI.test(e))return;const t=this.instance.config.asset_host;return typeof t=="string"&&t.trim().replace(/\/$/,"")||void 0}ou(e){const t=Ss(e);return t?t.protocol+"//"+t.host+t.pathname:void 0}au(e,t,n){if(e==="ui")return n;let i=n;const s=this.instance.config.rewriteRequestPath;if(s){var r;const o=((r=Ss(n))===null||r===void 0?void 0:r.href)||n;i=s(new URL(o)).toString()}if(s&&e==="api"&&bI.some(o=>t.indexOf(o)===0)){const o=this.ou(i);if(o){const c=this.apiHost;let u=this.lu;(u==null?void 0:u.apiHost)===c&&u.rewriteRequestPath===s||(u={apiHost:c,rewriteRequestPath:s,urls:new Set},this.lu=u),u.urls.add(o)}}return i}isIngestionEndpoint(e){const t=this.lu,n=this.ou(e);return(t==null?void 0:t.apiHost)===this.apiHost&&t.rewriteRequestPath===this.instance.config.rewriteRequestPath&&!!n&&t.urls.has(n)}endpointFor(e,t=""){if(t&&(t=t[0]==="/"?t:`/${t}`),e==="ui")return this.au(e,t,this.uiHost+t);if(e==="flags")return this.au(e,t,this.flagsApiHost+t);if(e==="assets"){const i=this.ru(t);if(i)return this.au(e,t,`${i}${t}`)}if(this.region===Px)return this.au(e,t,this.apiHost+t);const n=sk+t;switch(e){case"assets":return this.au(e,t,`https://${this.region}-assets.${n}`);case"api":return this.au(e,t,`https://${this.region}.${n}`)}}};const Xe=kt("[Surveys]"),yC=e=>{try{const t=(n=>((i,s)=>`seenSurvey_${function(r){return r.current_iteration&&r.current_iteration>0?`${r.id}_${r.current_iteration}`:r.id}(s)}`)(0,n))(e);if(localStorage.getItem(t))return;localStorage.setItem(t,"true")}catch(t){Xe.error("Failed to persist survey seen state",t)}},_I=[tg.Popover,tg.Widget,tg.API],kI={ignoreConditions:!1,ignoreDelay:!1,displayType:Cx.Popover}
68,SI=kt("[PostHog ExternalIntegrations]"),jI={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};var CI=class{constructor(e){this._instance=e}zo(e,t){var n,i;(n=we.__PosthogExtensions__)===null||n===void 0||(i=n.loadExternalDependency)===null||i===void 0||i.call(n,this._instance,e,s=>{if(s)return SI.error("failed to load script",s);t()})}startIfEnabledOrStop(){var e;for(const[s,r]of Object.entries((e=this._instance.config.integrations)!==null&&e!==void 0?e:{})){var t,n,i;r&&!(!((t=we.__PosthogExtensions__)===null||t===void 0||(t=t.integrations)===null||t===void 0)&&t[s])&&this.zo(jI[s],()=>{var o;(o=we.__PosthogExtensions__)===null||o===void 0||(o=o.integrations)===null||o===void 0||(o=o[s])===null||o===void 0||o.start(this._instance)}),!r&&(!((n=we.__PosthogExtensions__)===null||n===void 0||(n=n.integrations)===null||n===void 0)&&n[s])&&((i=we.__PosthogExtensions__)===null||i===void 0||(i=i.integrations)===null||i===void 0||(i=i[s])===null||i===void 0||i.stop())}}},NI=class{constructor(e,t){this.$=e,this.wo=t,this.uu=new Map,this.Io=!1}add(e){var t=this;return dt(function*(){if(t.Io)throw new Error("Cannot add an extension to a disposed ExtensionRuntime");if(t.uu.has(e.name))throw new Error(`Browser extension "${e.name}" is already registered`);t.uu.set(e.name,e);try{const n=e.setup(t.wo);n&&(yield n)}catch(n){const i=t.uu.get(e.name)===e;i&&t.uu.delete(e.name),t.$.error(`Failed to set up browser extension "${e.name}"`,n),i&&t.hu(e)}})()}getExtension(e){return this.uu.get(e)}dispose(){if(this.Io)return;this.Io=!0;const e=Array.from(this.uu.values()).reverse();this.uu.clear();for(const t of e)this.hu(t)}hu(e){try{var t;const n=(t=e.dispose)===null||t===void 0?void 0:t.call(e);n&&Ut(n.then)&&n.then(void 0,i=>{this.$.error(`Failed to dispose browser extension "${e.name}"`,i)})}catch(n){this.$.error(`Failed to dispose browser extension "${e.name}"`,n)}}},TI=class{constructor(e){this._instance=e}initialize(){}get(e){const t=this._instance.persistence;if(typeof e=="string")return t==null?void 0:t.get_property(e);const n={};for(const i of e){const s=t==null?void 0:t.get_property(i);U(s)||(n[i]=s)}return n}set(e,t){var n;(n=this._instance.persistence)===null||n===void 0||n.register(typeof e=="string"?{[e]:t}:e)}remove(e){var t;(t=this._instance.persistence)===null||t===void 0||t.unregister(e)}};const rk="extensionsRemoteConfig";var EI=class{constructor(e){this.instance=e,this.Io=!1,this.$=ae,this.cu=e.du,this.kv=new TI(e),this.onEvent=t=>Mu(this.instance.on("eventCaptured",n=>{try{t({event:n.event,properties:n.properties})}catch(i){this.$.error("Browser extension event listener failed",i)}})),this.onRemoteConfig=t=>{if(this.Io)return Mu(()=>{});const n=s=>{try{t(s)}catch(r){this.$.error("Browser extension remote config listener failed",r)}},i=this.instance.vu.on(rk,n);return this.cu&&n(this.cu),Mu(i)},this.fu=new NI(ae.createLogger("[BrowserExtensions]"),this)}get logger(){return this.$}get distinctId(){return this.instance.get_distinct_id()}get anonymousId(){var e;return(e=this.instance.get_property("$device_id"))!==null&&e!==void 0?e:this.distinctId}get deviceId(){const e=this.instance.get_property(Pv);return typeof e=="string"?e:void 0}get library(){return{name:Ft.LIB_NAME,version:Ft.LIB_VERSION}}get initialPersonProperties(){var e,t;return(e=(t=this.instance.persistence)===null||t===void 0?void 0:t.get_initial_props())!==null&&e!==void 0?e:{}}get groups(){return this.instance.getGroups()}get session(){try{var e,t,n,i;const s=(e=this.instance.sessionManager)===null||e===void 0?void 0:e.checkAndGetSessionAndWindowId(!0);return{sessionId:(t=s==null?void 0:s.sessionId)!==null&&t!==void 0?t:"",windowId:(n=s==null?void 0:s.windowId)!==null&&n!==void 0?n:"",sessionStartTimestamp:(i=s==null?void 0:s.sessionStartTimestamp)!==null&&i!==void 0?i:0}}catch{return{sessionId:"",windowId:"",sessionStartTimestamp:0}}}get canCapture(){return this.instance.is_capturing()}get projectToken(){return this.instance.config.token}add(e){return this.fu.add(e)}getExtension(e){return this.fu.getExtension(e)}capture(e,t,n){n?this.instance.capture(e,t,{timestamp:n.timestamp,uuid:n.uuid,$set:n.set,$set_once:n.setOnce}):this.instance.capture(e,t)}registerDynamicEventProperties(e){return Mu(this.instance.pu(e))}handleRemoteConfig(e){this.Io||(this.cu=e,this.instance.vu.emit(rk,e))}sendRequest(e){var t=this;return dt(function*(n,i={}){var s;const r=t.instance.requestRouter.endpointFor((s=i.target)!==null&&s!==void 0?s:"api",n),o={method:i.method,url:i.query?ld(r,i.query
68):r,data:i.body,headers:i.headers,timeout:i.timeoutMs,fireCallbackOnDrop:!0,transport:i.transport,compression:i.compression,compressionFallback:i.target==="flags"&&i.compression==="best-available"?ix.Base64:void 0,timestampMode:i.sentAt};return i.transport==="sendBeacon"?(t.instance._send_request(o),{statusCode:202}):new Promise(c=>{o.callback=c,t.instance._send_request(o)})}).apply(this,arguments)}dispose(){this.Io||(this.Io=!0,this.fu.dispose())}};const Sc={};let lg=0;const jc=()=>{},ak='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',Hl="Surveys module not available",ok="sanitize_properties is deprecated. Use before_send instead",bC="Invalid value for property_denylist config: ",AI=/^[A-Za-z0-9_-]{1,400}$/,lk=/^fb\.[0-9]+\.[0-9]+\.[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]+)?$/,ck=/^fb\.[0-9]+\.[0-9]+\.[0-9]+$/,PI=["token","distinct_id",b5],sc="posthog",II=e=>{const t={};return e&&e!=="unset"&&("2025-11-30">e||(t.strictMinimumDuration=!0),"2026-05-30">e||(t.canvasCapture={resolutionScale:.6}),"2026-06-25">e||(t.streamNetworkBody=!0),"2026-08-30">e||(t.captureJsonLd=!0)),t},cg=e=>{var t;return R({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,asset_host:null,token:"",autocapture:!0,cross_subdomain_cookie:PP(K==null?void 0:K.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:jc,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:e??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,__preview_cookie_wins_on_conflict:!1,debug:yt&&Be(yt==null?void 0:yt.search)&&yt.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disableDeviceModel:!1,reuseAnonymousId:!1,disable_external_dependency_loading:!1,strict_script_versioning:"fallback",enable_recording_console_log:void 0,secure_cookie:(B==null||(t=B.location)===null||t===void 0?void 0:t.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,feature_flag_request_max_retries:1,surveys_request_timeout_ms:1e4,on_request_error(n){ae.error("Bad HTTP status: "+n.statusCode+" "+n.text)},get_device_id:n=>n,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:j5,before_send:void 0,get_current_url:void 0,request_queue_config:{flush_interval_ms:3e3},error_tracking:{},_onCapture:jc},(n=>({rageclick:n&&n>="2026-05-30"?{content_ignorelist:$P,ignore_text_selection:!0}
68:!n||"2025-11-30">n||{content_ignorelist:!0},capture_pageview:!n||"2025-05-24">n||"history_change",session_recording:II(n),external_scripts_inject_target:n&&n>="2026-01-30"?"head":"body",internal_or_test_user_hostname:n&&n>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0,persistence_save_debounce_ms:n&&n>="2026-05-30"?250:0,split_storage:!(!n||"2026-05-30">n),detect_google_search_app:!(!n||"2026-05-30">n),disable_capture_url_hashes:!(!n||"2026-06-25">n),cookieWinsOnConflict:!(!n||n==="unset"||"2026-08-29">n)}))(e))},RI=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["__preview_disable_beacon","disable_beacon"],["store_google","save_campaign_params"],["verbose","debug"],["__preview_cookie_wins_on_conflict","cookieWinsOnConflict"]],dk=e=>{const t={};for(const[s,r]of RI)U(e[s])||(t[r]=e[s]);const n=ct({},t,e),i=e.__preview_external_dependency_versioned_paths;return U(i)||(U(e.strict_script_versioning)&&(n.strict_script_versioning=!!i),Be(i)&&U(e.asset_host)&&(n.asset_host=i)),Te(e.property_blacklist)&&(U(e.property_denylist)?n.property_denylist=e.property_blacklist:Te(e.property_denylist)?n.property_denylist=[...e.property_blacklist,...e.property_denylist]:ae.error(bC+e.property_denylist)),n};var MI=class{constructor(){this.__forceAllowLocalhost=!1}get gu(){return this.__forceAllowLocalhost}set gu(e){ae.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}},Cc=class tr{mu(t){if(!t)return;const n=this.uu.indexOf(t);n!==-1&&this.uu.splice(n,1)}yu(t,n){var i;return this.mu(t),this.uu.push(n),(i=n.initialize)===null||i===void 0||i.call(n),n}bu(){return this.config.cookieless_mode==="always"||this.config.cookieless_mode==="on_reject"&&this.consent.isRejected()}_u(){if(this.wu||this.config.reuseAnonymousId||this.config.segment||this.bu())return;const t=this.config.persistence==="memory"||this.config.persistence==="sessionStorage";if(!t&&!this.config.disable_persistence||this.ku)return;let n,i,s;t?(n=`persistence is set to '${this.config.persistence}'`,i=this.config.persistence==="memory"?"on every page load":"for every new browser tab or window",s="Either set persistence to 'localStorage+cookie', keep this persistence and pass a stable ID through bootstrap.distinctID, or enable reuseAnonymousId."):(n="persistence is disabled (disable_persistence is true)",i="on every page load",s="Either set disable_persistence to false, keep persistence disabled and pass a stable ID through bootstrap.distinctID, or enable reuseAnonymousId."),this.wu=!0,console.warn("[PostHog.js]",`${n} but no bootstrap.distinctID was provided. PostHog will mint a new distinct ID ${i}, so calling identify() merges a new ID onto the person each time. A person can then pass the distinct-ID limit and its events stop appearing on person pages and the session tab. ${s}`)}Su(){if(this.bu()||this.get_distinct_id()!=="$posthog_cookieless")return;const t=this.persistence;if(!t)return;this.xu()||t.load(!0);const n=this.get_distinct_id();if(!n||n==="$posthog_cookieless"){const i=this.config.get_device_id(wi());this.register({distinct_id:i,$device_id:i}),t.set_property(yn,bs)}this.Cu()}get decideEndpointWasHit(){var t,n;return(t=(n=this.featureFlags)===null||n===void 0?void 0:n.hasLoadedFlags)!==null&&t!==void 0&&t}get flagsEndpointWasHit(){var t,n;return(t=(n=this.featureFlags)===null||n===void 0?void 0:n.hasLoadedFlags)!==null&&t!==void 0&&t}constructor(){var t;this.$u=!1,this.Tu=!1,this.webPerformance=new MI,this.Iu=!1,this.version=Ft.LIB_VERSION,this.Mu=new Set,this.Eu="",this.vu=new Wh,this.uu=[],this.Pu=[],this.ku=!1,this.wu=!1,this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=cg(),this.SentryIntegration=GP,this.sentryIntegration=i=>function(s,r){const o=$5(s,r);return{name:F5,processEvent:c=>o(c)}}(this,i),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Ru=!1,this.Au=null,this.Fu=null,this.Ou=null,this.scrollManager=new gI(this),this.pageViewM
68anager=new q_(this),this.rateLimiter=new iI(this),this.requestRouter=new wI(this),this.consent=new FP(this),this.externalIntegrations=new CI(this);const n=(t=tr.__defaultExtensionClasses)!==null&&t!==void 0?t:{};this.featureFlags=n.featureFlags&&new n.featureFlags(this),this.toolbar=n.toolbar&&new n.toolbar(this),this.surveys=n.surveys&&new n.surveys(this),this.conversations=n.conversations&&new n.conversations(this),this.logs=n.logs&&new n.logs(this),this.metrics=n.metrics&&new n.metrics(this),this.experiments=n.experiments&&new n.experiments(this),this.exceptions=n.exceptions&&new n.exceptions(this),this.people={set:(i,s,r)=>{const o=Be(i)?{[i]:s}:i;this.setPersonProperties(o),r==null||r({})},set_once:(i,s,r)=>{const o=Be(i)?{[i]:s}:i;this.setPersonProperties(void 0,o),r==null||r({})}},this.on("eventCaptured",i=>ae.info(`send "${i==null?void 0:i.event}"`,i))}init(t,n,i){if(i&&i!==sc){var s;const r=(s=Sc[i])!==null&&s!==void 0?s:new tr;return r._init(t,n,i),Sc[i]=r,Sc[sc][i]=r,r}return this._init(t,n,i)}_init(t,n={},i){var s,r,o;const c=Be(t)?t.trim():"";if(!c)return ae.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;var u;if(this.__loaded)return c!==((u=this.config)===null||u===void 0?void 0:u.token)?console.warn("[PostHog.js]",`You have already initialized PostHog with a different project token! Re-initializing is a no-op, so events will keep going to the project this instance was initialized with. To capture into a second project, load PostHog once, then initialize a named instance after the SDK has loaded, e.g. posthog.init('${c}', { ... }, 'project2')`):console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config=cg(n.defaults),n.debug=this.Du(n.debug),this.Lu=n,this.Nu=[],n.person_profiles?this.Fu=n.person_profiles:n.process_person&&(this.Fu=n.process_person);const h=cg(n.defaults),f=dk(n),m=ct({},h,f,{name:i,token:c});We(h.rageclick)&&We(f.rageclick)&&(m.rageclick=ct({},h.rageclick,f.rageclick)),We(h.session_recording)&&We(f.session_recording)&&(m.session_recording=ct({},h.session_recording,f.session_recording)),this.set_config(m),this.config.on_xhr_error&&ae.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=n.disable_compression?void 0:Hn.GZipJS;const x=this.xu();if(this.persistence=new eg(this.config,x),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new eg(R(R({},this.config),{},{persistence:"sessionStorage"}),x,!1),this.Eu="ph_"+(this.config.persistence_name||this.config.token)+"_session_registered_properties",this.config.persistence!=="memory"&&!x&&ot.Et()){const S=ot.Dt(this.Eu);Te(S)&&S.forEach(j=>{Be(j)&&this.Mu.add(j)})}else ot.Lt(this.Eu);const y=R({},this.persistence.props),b=R({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.qu=new pI((S,j)=>this.ju(S,j),this.config.request_queue_config),this.Bu=new mI(this),this.__request_queue=[];const k=this.bu();k||(this.sessionManager=new ik(this),this.sessionPropsManager=new tk(this,this.sessionManager,this.persistence),this.sessionManager.onSessionId((S,j,N)=>{(N!=null&&N.activityTimeout||N!=null&&N.sessionPastMaximumLength||N!=null&&N.crossTabAdoption)&&this.Hu()})),this.zu(),this.config.__preview_deferred_init_extensions?(ae.info("Deferring extension initialization to improve startup performance"),setTimeout(()=>{this.Uu(k)},0)):(ae.info("Initializing extensions synchronously"),this.Uu(k)),Ft.DEBUG=Ft.DEBUG||this.config.debug,Ft.DEBUG&&ae.info("Starting in debug mode",{this:this,config:n,thisC:R({},this.config),p:y,s:b}),this.config.identity_distinct_id&&!(!((s=n.bootstrap)===null||s===void 0)&&s.distinctID)&&(n.bootstrap=R(R({},n.bootstrap),{},{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0}));const w=(r=n.bootstrap)===null||r===void 0?void 0:r.distinctID;if(this.ku=!!w&&!mc(w),(o=n.bootstrap)===null||o===void 0?void 0:o.distinctID){const S=n.bootstrap.distinctID,j=this.get_distinct_id(),N=this.persistence.get_property(yn);if(n.bootstrap.isIdentifiedID&&j!=null&&j!==S&&N==="anonymous")this.identify(S);else if(n.bootstrap.isIdentifiedID&&j!=null&&j!==S&&N==="identified")ae.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{const E=this.config.get_device_id(wi()),T=n.bootstrap.isIdentifiedID?E:S;this.persistence.set_property(yn,n.bootstrap.isIdentifiedID?uh:bs),this.register({distinct_id:S,$device_id:T})}}if(k)this.register_once({distinct_id:Um,$device_id:null},"");else if(!this.get_distinct_id()){const S=this.config.get_device_id(wi());this.register_once({distinct_id:S,$device_id:S},""),this.persistence.set_property(yn,bs)}return Ke(B,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),Ke(B,"pageshow",()=>{var S;this.$u=!1,this.Tu||(S=this.Bu)===null||S===void 0||S.resume()}),n.segment?W_(this,()=>this.Wu()):this.Wu(),Ut(this.config._onCapture)&&this.config._onCapture!==jc&&(ae.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",S=>this.config._onCapture(S.event,S))),this.config.ip&&ae.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this.config.disableDeviceModel||function(){return mC.apply(this,arguments)}().then(S=>{S&&this.register({[qm]:S})}).catch(jc),this}Vu(t){const n=t;return Be(n.name)&&Ut(n.setup)}Gu(t,n){this.Vu(t)?n.push(()=>
vendor: 8,263 bytes, line 68
68{this.Zu().add(t).catch(()=>{var i;return(i=t.dispose)===null||i===void 0?void 0:i.call(t)}).catch(i=>{ae.error(`Failed to dispose browser extension "${t.name}"`,i)})}):this.uu.push(t)}zu(){var t,n,i;const s=(t=(n=this.config.__extensionClasses)===null||n===void 0?void 0:n.featureFlags)!==null&&t!==void 0?t:(i=tr.__defaultExtensionClasses)===null||i===void 0?void 0:i.featureFlags;var r,o,c;s&&(this.featureFlags&&this.featureFlags instanceof s||((r=this.Qu)===null||r===void 0||r.call(this),this.Qu=void 0,this.featureFlags=new s(this)),Ut(this.featureFlags.onReloading)&&Ut(this.featureFlags.setup)?this.Qu||(this.Qu=this.featureFlags.onReloading(()=>{this.vu.emit("featureFlagsReloading",!0)}),this.Zu().add(this.featureFlags)):(o=(c=this.featureFlags).initialize)===null||o===void 0||o.call(c))}Uu(t){const n=performance.now(),i=R(R({},tr.__defaultExtensionClasses),this.config.__extensionClasses),s=[];var r,o,c,u,h,f,m;i.exceptions&&this.uu.push(this.exceptions=(r=this.exceptions)!==null&&r!==void 0?r:new i.exceptions(this)),i.historyAutocapture&&this.uu.push(this.historyAutocapture=new i.historyAutocapture(this)),i.tracingHeaders&&this.uu.push(this.tracingHeaders=new i.tracingHeaders(this)),i.siteApps&&this.uu.push(this.siteApps=new i.siteApps(this)),i.sessionRecording&&!t&&this.uu.push(this.sessionRecording=new i.sessionRecording(this)),this.config.disable_scroll_properties||s.push(()=>{this.scrollManager.startMeasuringScrollPosition()}),i.autocapture&&this.Gu(this.autocapture=new i.autocapture(this),s),i.surveys&&this.Gu(this.surveys=(o=this.surveys)!==null&&o!==void 0?o:new i.surveys(this),s),i.logs&&this.Gu(this.logs=(c=this.logs)!==null&&c!==void 0?c:new i.logs(this),s),i.metrics&&this.uu.push(this.metrics=(u=this.metrics)!==null&&u!==void 0?u:new i.metrics(this)),i.conversations&&this.uu.push(this.conversations=(h=this.conversations)!==null&&h!==void 0?h:new i.conversations(this)),i.productTours&&this.uu.push(this.productTours=new i.productTours(this)),i.heatmaps&&this.uu.push(this.heatmaps=new i.heatmaps(this)),i.webVitalsAutocapture&&this.uu.push(this.webVitalsAutocapture=new i.webVitalsAutocapture(this)),i.exceptionObserver&&this.uu.push(this.exceptionObserver=new i.exceptionObserver(this)),i.deadClicksAutocapture&&this.uu.push(this.deadClicksAutocapture=new i.deadClicksAutocapture(this,UP)),i.toolbar&&this.uu.push(this.toolbar=(f=this.toolbar)!==null&&f!==void 0?f:new i.toolbar(this)),i.experiments&&this.uu.push(this.experiments=(m=this.experiments)!==null&&m!==void 0?m:new i.experiments(this)),this.uu.forEach(x=>{x.initialize&&s.push(()=>{var y;(y=x.initialize)===null||y===void 0||y.call(x)})}),s.push(()=>{if(this.Ju){const x=this.Ju;this.Ju=void 0,this.uu.forEach(y=>{var b;return(b=y.onRemoteConfig)===null||b===void 0?void 0:b.call(y,x)})}}),this.Ku(s,n)}Ku(t,n){for(;t.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-n>=30&&t.length>0)return void setTimeout(()=>{this.Ku(t,n)},0);const s=t.shift();if(s)try{s()}catch(r){ae.error("Error initializing extension:",r)}}const i=Math.round(performance.now()-n);this.register_for_session({[w5]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[_5]:i}),this.config.__preview_deferred_init_extensions&&ae.info(`PostHog extensions initialized (${i}ms)`)}il(t){var n;if(!K||!K.body)return ae.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this.il(t)},500);if(this.config.__preview_deferred_init_extensions&&(this.Ju=t),this.du=t,this.compression=void 0,t.ok){var i;const s=t.config;s.supportedCompression&&!this.config.disable_compression&&(this.compression=Ae(s.supportedCompression,Hn.GZipJS)?Hn.GZipJS:Ae(s.supportedCompression,Hn.Base64)?Hn.Base64:void 0),!((i=s.analytics)===null||i===void 0)&&i.endpoint&&(this.analyticsDefaultEndpoint=s.analytics.endpoint)}this.set_config({person_profiles:this.Fu?this.Fu:j5}),(n=this.Xu)===null||n===void 0||n.handleRemoteConfig(t),this.uu.forEach(s=>{var r;return(r=s.onRemoteConfig)===null||r===void 0?void 0:r.call(s,t)})}Wu(){try{this.config.loaded(this)}catch(t){ae.critical("`loaded` function failed",t)}if(this.Yu(),this.config.internal_or_test_user_hostname&&(yt==null?void 0:yt.hostname)){const t=yt.hostname,n=this.config.internal_or_test_user_hostname;(typeof n=="string"?t===n:n.test(t))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout(()=>{(this.consent.isOptedIn()||this.bu())&&this.th()},1),this.eh=new X5(this),this.eh.load()}Yu(){var t;this.is_capturing()&&this.config.request_batching&&((t=this.qu)===null||t===void 0||t.enable())}_dom_loaded(){this.is_capturing()&&mo(this.__request_queue,t=>this.ju(t)),this.__request_queue=[],this.Yu()}_handle_unload(){var t,n,i,s,r,o;this.$u=!0,(t=this.surveys)===null||t===void 0||(n=t.handlePageUnload)===null||n===void 0||n.call(t),(i=this.metrics)===null||i===void 0||i.flush("sendBeacon"),this.config.request_batching?(this.ih()&&this.capture(T_),(s=this.logs)===null||s===void 0||s.flushLogs("sendBeacon"),(r=this.qu)===null||r===void 0||r.unload(),(o=this.Bu)===null||o===void 0||o.unload()):this.ih()&&this.capture(T_,null,{transport:"sendBeacon"})}_send_request(t){pC(this,t)}ju(t,n){this.Bu?this.Bu.retriableRequest(t,n):this._send_request(n?R(R({},t),{},{transport:n}):t)}_execute_array(t){lg++;try{let n;const i=[],s=[],r=[];mo(t,c=>{if(c)if(n=c[0],Te(n))r.push(c);else if(Ut(c))try{c.call(this)}catch(u){ae.error("Error executing queued PostHog call",c,u)}else Te(c)&&n==="alias"?i.push(c):Te(c)&&n.indexOf("capture")!==-1&&Ut(this[n])?r.push(c):s.push(c)});const o=function(c,u){mo(c,function(h){try{if(Te(h[0])){let f=u;Ze(h,function(m){f=f[m[0]].apply(f,m.slice(1))})}else u[h[0]].apply(u,h.slice(1))}catch(f){ae.error("Error executing queued PostHog call",h,f)}})};o(i,this),o(s,this),o(r,this)}finally{lg--}}push(t){if(lg>0&&Te(t)&&Be(t[0])){const n=tr.prototype[t[0]];return void(Ut(n)&&n.apply(this,t.slice(1)))}this._execute_array([t])}get nh(){return{property:C_,persistenceKey:_o,cookieName:"_fbc",pattern:lk,register:(t,n)=>{var i;return(i=this.persistence)===null||i===void 0?void 0:i.register({[_o]:{value:t,delivered:n}})},unregister:()=>{var t;return(t=this.persistence)===null||t===void 0?void 0:t.unregister(_o)}}}get sh(){return{property:N_,persistenceKey:xc,cookieName:"_fbp",pattern:ck,register:(t,n)=>{var i;return(i=this.persistence)===null||i===void 0?void 0:i.register({[xc]:{value:t,delivered:n}})},unregister:()=>{var t;return(t=this.persistence)===null||t===void 0?void 0:t.unregister(xc)}}}rh(t){var n;const i=(n=this.persistence)===null||n===void 0?void 0:n.get_property(t.persistenceKey);return Be(i)&&t.pattern.test(i)?{value:i,delivered:!1}:We(i)&&Be(i.value)&&t.pattern.test(i.value)?{value:i.value,delivered:i.delivered===!0}:void 0}oh(t,n,i){return n===(i==null?void 0:i.value)?{value:n,pending:!i.delivered}:(t.register(n,!1),{value:n,pending:!0})}ah(t){if(!this.config.save_campaign_params||this.bu())return;const n=bc(t.cookieName);return Be(n)&&t.pattern.test(n)?n:void 0}uh(t,n,i,s){if(!this.persistence)return;const r=this.nh;this.persistence.refreshKey(r.persistenceKey);const o=this.rh(r);if(s)return void r.unregister();if(i)return Be(n)&&lk.test(n)?this.oh(r,n,o):void r.unregister();const c=Be(t)&&AI.test(t)?t:void 0,u=this.ah(r);return u&&((h,f,m)=>{const x=h.split(".");if(f)return x[3]===f;if(!m)return!0;const y=m.value.split(".");return x[3]===y[3]||Number(x[2])>Number(y[2])})(u,c,o)?this.oh(r,u,o):c?(o==null?void 0:o.value.split(".")[3])===c?{value:o.value,pending:!o.delivered}:this.oh(r,`fb.1.${Date.now()}.${c}`,o):o?{value:o.value,pending:!o.delivered}:void 0}hh(t,n,i){if(!this.persistence)return;const s=this.sh;this.persistence.refreshKey(s.persistenceKey);const r=this.rh(s);if(i)return void s.unregister();if(n)return Be(t)&&ck.test(t)?this.oh(s,t,r):void s.unregister();const o=this.ah(s);return o?this.oh(s,o,r):r?{value:r.value,pending:!r.delivered}:void 0}dh(t,n){if(!this.persistence)return;this.persistence.refreshKey(t.persistenceKey);const i=this.rh(t);(i==null?void 0:i.value)!==n||i.delivered||t.register(n,!0)}capture(t,n,i){var s,r;if(!(this.__loaded&&this.persistence&&this.sessionPersistence&&this.qu))return void ae.uninitializedWarning("posthog.capture");
68if(!this.is_capturing())return;if(U(t)||!Be(t))return void ae.error("No event name provided to posthog.capture");this.Su();const o=!this.config.opt_out_useragent_filter&&this._is_bot();if(o&&!this.config.__preview_capture_bot_pageviews)return;const c=i!=null&&i.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(c!=null&&c.isRateLimited)return void ae.critical("This capture call is ignored due to client rate limiting.");let u;n!=null&&n.$current_url&&!Be(n==null?void 0:n.$current_url)&&(ae.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),n==null||delete n.$current_url),t!=="$exception"||i!=null&&i.fh||ae.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&(u=this.sessionPersistence.update_campaign_params()),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();const h=new Date,f=(i==null?void 0:i.timestamp)||h,m=d_(i==null?void 0:i.uuid,wi);let x={uuid:m,event:t,properties:this.calculateEventProperties(t,n||{},f,m)};t==="$pageview"&&this.config.__preview_capture_bot_pageviews&&o&&(x.event="$bot_pageview",x.properties.$browser_type="bot"),c&&(x.properties.$lib_rate_limit_remaining_tokens=c.remainingTokens);const y=t==="$feature_flag_called"&&x.properties.$feature_flag_has_experiment===!1&&this.get_property("$minimal_flag_called_events")===!0;i!=null&&i.$set&&!y&&(x.$set=i==null?void 0:i.$set);const b=We(n==null?void 0:n.$set)?n.$set:void 0,k=Te(n==null?void 0:n.$unset)?n.$unset:[],w=(i==null?void 0:i.$unset)||[],S=re=>{var ne;const Z=!!(i!=null&&i.$set)&&re in i.$set;return{hasProvided:Z||!!b&&re in b,provided:Z?i==null||(ne=i.$set)===null||ne===void 0?void 0:ne[re]:b==null?void 0:b[re],unset:k.indexOf(re)!==-1||w.indexOf(re)!==-1}},j=S(C_),N=S(N_),E=[{channel:this.nh,hasProvided:j.hasProvided,update:this.uh(u==null?void 0:u.fbclid,j.provided,j.hasProvided,j.unset)},{channel:this.sh,hasProvided:N.hasProvided,update:this.hh(N.provided,N.hasProvided,N.unset)}];for(const{channel:re,hasProvided:ne,update:Z}of E)Z&&x.properties.$process_person_profile===!0&&Z.pending&&!ne&&!y&&(x.$set=R({[re.property]:Z.value},x.$set));const T=i==null?void 0:i.$unset;T&&(x.$unset=T);const L=y?void 0:this.ph(i==null?void 0:i.$set_once,t!==E_,t===C5);if(L&&(x.$set_once=L),i!=null&&i._noTruncate||(M=this.config.properties_string_max_length,x=function(re,ne){const Z=new Set;return function ce(W,J){if(W!==Object(W))return ne?ne(W):W;if(Z.has(W))return;let H;if(Z.add(W),Te(W))H=[],mo(W,F=>{H.push(ce(F))});else{const F={};Ze(zo(W)?N5(W):W,(Y,xe)=>{Z.has(Y)||(F[xe]=ce(Y))}),H=F}return H}(re)}(x,re=>Be(re)?re.slice(0,M):re)),x.timestamp=f,U(i==null?void 0:i.timestamp)||(x.properties.$event_time_override_provided=!0,x.properties.$event_time_override_system_time=h),y&&(x.properties=((re,ne=[])=>{const Z={},ce=W=>{re[W]!==void 0&&(Z[W]=re[W])};return W6.forEach(ce),ne.forEach(ce),Z})(x.properties,PI)),t===ws.DISMISSED||t===ws.SENT){const re=n==null?void 0:n[ng.SURVEY_ID],ne=n==null?void 0:n[ng.SURVEY_ITERATION];yC({id:re,current_iteration:ne}),x.$set=R(R({},x.$set),{},{[vI({id:re,current_iteration:ne},t===ws.SENT?"responded":"dismissed")]:!0})}else t===ws.SHOWN&&(x.$set=R(R({},x.$set),{},{[ng.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));var M;if(t===nI.SHOWN){const re=n==null?void 0:n[Y_.TOUR_TYPE];re&&(x.$set=R(R({},x.$set),{},{[`${Y_.TOUR_LAST_SEEN_DATE}/${re}`]:new Date().toISOString()}))}const A=R(R({},x.properties.$set),x.$set);if(An(A)||this.setPersonPropertiesForFlags(A),!Le(this.config.before_send)){const re=this.Os(x);if(!re)return;x=re,x.uuid=d_(x.uuid,wi)}const O=E.filter(({channel:re,update:ne})=>{var Z,ce,W;const J=(Z=(ce=x.$set)===null||ce===void 0?void 0:ce[re.property])!==null&&Z!==void 0?Z:We((W=x.properties)===null||W===void 0?void 0:W.$set)?x.properties.$set[re.property]:void 0;return(ne==null?void 0:ne.pending)&&J===ne.value});this.vu.emit("eventCaptured",x);const G=(s=i==null?void 0:i._url)!==null&&s!==void 0?s:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),X=(i==null?void 0:i._batchKey)==="recordings"||/\/s\/(?:\?|$)/.test(G),ee=R(R(R({method:"POST",url:G,data:x,compression:"best-available",preferSyncCompression:i==null?void 0:i.send_instantly,timestampMode:X?"body":"capture-body",batchKey:i==null?void 0:i._batchKey},X&&(!((r=x.properties)===null||r===void 0)&&r.$session_id)?{batchGroup:x.properties.$session_id+(x.properties.$window_id?`-${x.properties.$window_id}`:"")}:{}),i!=null&&i.transport?{transport:i.transport}:{}),O.length?{fireCallbackOnDrop:!0,callback:re=>{if(re.statusCode>=200&&300>re.statusCode)for(const{channel:ne,update:Z}of O)this.dh(ne,Z.value)}}:{});if(!this.config.request_batching||i&&!(i!=null&&i._batchKey)||i!=null&&i.send_instantly||O.length){var le;let re;!ee.transport&&!ee.callback&&An((le=this.config.request_headers)!==null&&le!==void 0?le:{})&&this.$u&&(re="sendBeacon"),this.ju(ee,re)}else this.qu.enqueue(ee);return x}_addCaptureHook(t){return this.on("eventCaptured",n=>t(n.event,n))}getExtension(t){var n;return(n=this.Xu)===null||n===void 0?void 0:n.getExtension(t)}Zu(){var t;return(t=this.Xu)!==null&&t!==void 0?t:this.Xu=new EI(this)}pu(t){this.Pu.push(t);let n=!0;return()=>{if(!n)return;n=!1;const i=this.Pu.indexOf(t);i!==-1&&this.Pu.splice(i,1)}}gh(t=!0){var n,i,s;return!!(!((n=this.persistence)===null||n===void 0)&&n.consumeCookieIdentityChange())&&(this.Ou=null,this.persistence.get_property("$user_state")==="anonymous"&&((s=this.sessionPersistence)===null||s===void 0||s.clear(),this.Mu.clear(),this.mh()),(i=this.featureFlags)===null||i===void 0||i.reset(),t&&this.reloadFeatureFlags(),!0)}calculateEventProperties(t,n,i,s,r){if(i=i||new Date,!this.persistence||!this.sessionPersistence)return n;this.persistence.syncCookieProperties(),this.gh();const o=r?void 0:this.persistence.remove_event_timer(t);let c=R({},n);if(c.token=this.config.token,c.$config_defaults=this.config.defaults,this.bu()&&(c[b5]=!0),t==="$snapshot"){const j=R(R({},this.persistence.properties()),this.sessionPersistence.properties());return c.distinct_id=j.distinct_id,(!Be(c.distinct_id)&&!jt(c.distinct_id)||mc(c.distinct_id))&&ae.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}const u=function(j,N,E,T=!1){var L,M,A,O;if(!vn)return{};const G=j?[...Po,...N||[]]:[],[X,ee]=Bj(vn),[le,re]=function(ge){for(let te=0;c_.length>te;te++){const[he,He,Ee]=c_[te],Pe=ge.match(he);
68if(Pe){const pt=Ee&&ge.match(Ee)||Pe;return[He,(pt==null?void 0:pt[1])||""]}}return["",""]}(vn),ne=function(){const ge="u">typeof navigator?navigator:void 0;return ge!=null&&ge.brave?{brave:!0}:{}}(),Z={};U(E)||(Z.detectGoogleSearchApp=E);const ce={},W=(L=navigator)===null||L===void 0||(L=L.userAgentData)===null||L===void 0?void 0:L.platform,J=(M=navigator)===null||M===void 0?void 0:M.maxTouchPoints,H=B==null||(A=B.screen)===null||A===void 0?void 0:A.width,F=B==null||(O=B.screen)===null||O===void 0?void 0:O.height,Y=B==null?void 0:B.devicePixelRatio;U(W)||(ce.userAgentDataPlatform=W),U(J)||(ce.maxTouchPoints=J),U(H)||(ce.screenWidth=H),U(F)||(ce.screenHeight=F),U(Y)||(ce.devicePixelRatio=Y);const xe=ct(Dv({$os:X,$os_version:ee,$browser:$j(vn,navigator.vendor,ne,Z),$webview_app:le,$webview_app_version:re,$device:zj(vn),$device_type:h6(vn,ce),$timezone:K5(),$timezone_offset:JP()}),{$current_url:Hc(T?yr(yt==null?void 0:yt.href):yt==null?void 0:yt.href,G,Wc),$host:yt==null?void 0:yt.host,$pathname:yt==null?void 0:yt.pathname,$raw_user_agent:vn.length>1e3?vn.substring(0,997)+"...":vn,$browser_version:u6(vn,navigator.vendor,ne,Z),$browser_language:q5(),$browser_language_prefix:ZP(),$screen_height:B==null?void 0:B.screen.height,$screen_width:B==null?void 0:B.screen.width,$viewport_height:B==null?void 0:B.innerHeight,$viewport_width:B==null?void 0:B.innerWidth,$lib:_s.LIB_NAME,$lib_version:_s.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3});return _s.SDK_DIST_CHANNEL&&(xe.$sdk_dist_channel=_s.SDK_DIST_CHANNEL),xe}(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties,this.config.detect_google_search_app,this.config.disable_capture_url_hashes);if(this.sessionManager){const{sessionId:j,windowId:N}=this.sessionManager.checkAndGetSessionAndWindowId(r,i.getTime(),!0);c.$session_id=j,c.$window_id=N}this.sessionPropsManager&&ct(c,this.sessionPropsManager.getSessionProps());try{var h;this.sessionRecording&&ct(c,this.sessionRecording.sdkDebugProperties),c.$sdk_debug_retry_queue_size=(h=this.Bu)===null||h===void 0?void 0:h.length}catch(j){c.$sdk_debug_error_capturing_properties=String(j)}let f;if(this.requestRouter.region===Px&&(c.$lib_custom_api_host=this.config.api_host),f=t!=="$pageview"||r?t!=="$pageleave"||r?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(i):this.pageViewManager.doPageView(i,s),c=ct(c,f),t==="$pageview"&&K&&(c.title=K.title),!U(o)){const j=i.getTime()-o;c.$duration=parseFloat((j/1e3).toFixed(3))}vn&&this.config.opt_out_useragent_filter&&(c.$browser_type=this._is_bot()?"bot":"browser");const m=this.persistence.properties(),x=this.sessionPersistence.properties(),y=c.$groups,b=m.$groups;We(y)&&!An(y)&&(c.$groups=R(R({},We(b)?b:{}),y)),Ze(["$referrer","$referring_domain"],j=>{j in m&&delete x[j]});const k={};if(this.Pu.length>0)for(const j of this.Pu.slice())try{ct(k,j())}catch(N){ae.error("Failed to produce browser extension event properties",N)}c=ct({},u,m,x,R(R({},k),c)),c.$is_identified=this._isIdentified(),Te(this.config.property_denylist)?Ze(this.config.property_denylist,function(j){delete c[j]}):ae.error(bC+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);const w=this.config.sanitize_properties;w&&(ae.error(ok),c=w(c,t));const S=this.yh();return c.$process_person_profile=S,S&&!r&&this.bh("_calculate_event_properties"),c}ph(t,n=!0,i=!1){var s;if(!this.persistence||!this.yh()||this.Iu&&!i)return t;const r=this.persistence.get_initial_props(),o=(s=this.sessionPropsManager)===null||s===void 0?void 0:s.getSetOnceProps();let c=ct({},r,o||{},t||{});const u=this.config.sanitize_properties;return u&&(ae.error(ok),c=u(c,"$set_once")),n&&(this.Iu=!0),An(c)?void 0:c}register(t,n){var i;(i=this.persistence)===null||i===void 0||i.register(t,n)}register_once(t,n,i){var s;(s=this.persistence)===null||s===void 0||s.register_once(t,n,i)}register_for_session(t){var n,i;(n=this.persistence)===null||n===void 0||n.syncCookieProperties(),this.gh(),(i=this.sessionPersistence)===null||i===void 0||i.register(t),Object.keys(t).forEach(s=>this.Mu.add(s)),this.mh()}unregister(t){var n;(n=this.persistence)===null||n===void 0||n.unregister(t)}unregister_for_session(t){var n;(n=this.sessionPersistence)===null||n===void 0||n.unregister(t),this.Mu.delete(t),this.mh()}_h(t,n){this.register({[t]:n})}Hu(){this.Mu.forEach(t=>{var n;(n=this.sessionPersistence)===null||n===void 0||n.unregister(t)}),this.Mu.clear(),this.mh()}mh(){var t;if(!this.Eu)return;if(this.config.persistence==="memory"||!((t=this.sessionPersistence)===null||t===void 0)&&t.mi||!ot.Et())return void ot.Lt(this.Eu);const n=[];this.Mu.forEach(i=>
68n.push(i)),n.length>0?ot.At(this.Eu,n):ot.Lt(this.Eu)}getFeatureFlag(t,n){var i;return(i=this.featureFlags)===null||i===void 0?void 0:i.getFeatureFlag(t,n)}getFeatureFlagPayload(t){var n;return(n=this.featureFlags)===null||n===void 0?void 0:n.getFeatureFlagPayload(t)}getFeatureFlagResult(t,n){var i;return(i=this.featureFlags)===null||i===void 0?void 0:i.getFeatureFlagResult(t,n)}getAllFeatureFlags(){var t,n;return(t=(n=this.featureFlags)===null||n===void 0?void 0:n.getAllFeatureFlags())!==null&&t!==void 0?t:[]}isFeatureEnabled(t,n){var i,s;return(i=(s=this.featureFlags)===null||s===void 0?void 0:s.isFeatureEnabled(t,n))!==null&&i!==void 0?i:n==null?void 0:n.defaultValue}reloadFeatureFlags(){var t;(t=this.featureFlags)===null||t===void 0||t.reloadFeatureFlags()}updateFlags(t,n,i){var s;(s=this.featureFlags)===null||s===void 0||s.updateFlags(t,n,i)}updateEarlyAccessFeatureEnrollment(t,n,i){var s;(s=this.featureFlags)===null||s===void 0||s.updateEarlyAccessFeatureEnrollment(t,n,i)}getEarlyAccessFeatures(t,n=!1,i){var s;return(s=this.featureFlags)===null||s===void 0?void 0:s.getEarlyAccessFeatures(t,n,i)}on(t,n){return this.vu.on(t,n)}onFeatureFlags(t){return this.featureFlags?this.featureFlags.onFeatureFlags(t):(t([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(t){return this.surveys?this.surveys.onSurveysLoaded(t):(t([],{isLoaded:!1,error:Hl}),()=>{})}onSessionId(t){var n,i;return(n=(i=this.sessionManager)===null||i===void 0?void 0:i.onSessionId(t))!==null&&n!==void 0?n:()=>{}}getSurveys(t,n=!1){this.surveys?this.surveys.getSurveys(t,n):t([],{isLoaded:!1,error:Hl})}getActiveMatchingSurveys(t,n=!1){this.surveys?this.surveys.getActiveMatchingSurveys(t,n):t([],{isLoaded:!1,error:Hl})}renderSurvey(t,n){var i;(i=this.surveys)===null||i===void 0||i.renderSurvey(t,n)}displaySurvey(t,n=kI){var i;(i=this.surveys)===null||i===void 0||i.displaySurvey(t,n)}cancelPendingSurvey(t){var n;(n=this.surveys)===null||n===void 0||n.cancelPendingSurvey(t)}canRenderSurvey(t){var n,i;return(n=(i=this.surveys)===null||i===void 0?void 0:i.canRenderSurvey(t))!==null&&n!==void 0?n:{visible:!1,disabledReason:Hl}}canRenderSurveyAsync(t,n=!1){var i,s;return(i=(s=this.surveys)===null||s===void 0?void 0:s.canRenderSurveyAsync(t,n))!==null&&i!==void 0?i:Promise.resolve({visible:!1,disabledReason:Hl})}wh(t){return!t||mc(t)?(ae.critical("Unique user id has not been set in posthog.identify"),!1):t==="$posthog_cookieless"?(ae.critical(`The string "${t}" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.`),!1):!["distinct_id","distinctid"].includes(t.toLowerCase())&&!["undefined","null"].includes(t.toLowerCase())||(ae.critical(`The string "${t}" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.`),!1)}identify(t,n,i){if(!this.__loaded||!this.persistence)return ae.uninitializedWarning("posthog.identify");if(jt(t)&&(t=t.toString(),ae.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),!this.wh(t)||!this.bh("posthog.identify"))return;this.Su();const s=this.get_distinct_id(),r=this.persistence.syncCookieProperties()&&this.get_distinct_id()!==s,o=this.gh(!1),c=this.persistence.Da();let u=!1;try{const f=this.get_distinct_id();this.register({$user_id:t}),this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:f},""),t!==f&&t!==this.get_property("__alias")&&(this.unregister(Dh),this.register({distinct_id:t}));const m=(this.persistence.get_property("$user_state")||"anonymous")===bs,x=t!==f,y=!x&&m;if(x&&m){var h;const b=this.config.reuseAnonymousId?{distinct_id:t}:{distinct_id:t,$anon_distinct_id:f};this.persistence.set_property(yn,uh),this.setPersonPropertiesForFlags({$set:n||{},$set_once:i||{}},!1),this.config.cookieWinsOnConflict&&this.persistence.La(),this.capture("$identify",b,{$set:n||{},$set_once:i||{}})&&(this.Ou=og(t,n,i)),(h=this.featureFlags)===null||h===void 0||h.setAnonymousDistinctId(this.config.reuseAnonymousId?void 0:f)}else if(y){this.persistence.set_property(yn,uh);const b=n||{},k=i||{};this.setPersonPropertiesForFlags({$set:b,$set_once:k},!1),this.config.cookieWinsOnConflict&&this.persistence.La(),this.capture("$set",{$set:b,$set_once:k})&&(this.Ou=og(t,n,i))}else(n||i)&&this.setPersonProperties(n,i);x||r||o?(this.reloadFeatureFlags(),this.featureFlags?this.featureFlags.resetFlagCallReported():this.unregister(lr)):y&&(n||i)&&this.reloadFeatureFlags(),u=!0}finally{c&&this.persistence.ja(u)}}setPersonProperties(t,n){if(!t&&!n||!this.bh("posthog.setPersonProperties"))return;const i=og(this.get_distinct_id(),t,n);this.Ou!==i?(this.setPersonPropertiesForFlags({$set:t||{},$set_once:n||{}},!0),this.capture("$set",{$set:t||{},$set_once:n||{}})&&(this.Ou=i)):ae.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}unsetPersonProperties(t){var n;const i=(Te(t)?t:[t]).filter(s=>Be(s)&&s.length>0);i.length!==0&&this.bh("posthog.unsetPersonProperties")&&((n=this.featureFlags)===null||n===void 0||n.unsetPersonPropertiesForFlags(i,!0),this.capture("$set",{$unset:i}),this.Ou=null)}group(t,n,i){var s;if(!t||!n)return void ae.error("posthog.group requires a group type and group key");(s=this.persistence)===null||s===void 0||s.syncCookieProperties(),this.gh();const r=this.getGroups(),o=r[t]!==n;if(o&&this.resetGroupPropertiesForFlags(t),this.register({$groups:R(R({},r),{},{[t]:n})}),(o||i)&&this.yh()){const c={$group_type:t,$group_key:n};i&&(c.$group_set=i),this.capture(E_,c)}i&&this.setGroupPropertiesForFlags({[t]:i}),o&&!i&&this.reloadFeatureFlags()}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t,n=!0){var i;(i=this.featureFlags)===null||i===void 0||i.setPersonPropertiesForFlags(t,n)}resetPersonPropertiesForFlags(t=!0){var n;(n=this.featureFlags)===null||n===void 0||n.resetPersonPropertiesForFlags(t)}setGroupPropertiesForFlags(t,n=!0){var i;this.bh("posthog.setGroupPropertiesForFlags")&&((i=this.featureFlags)===null||i===void 0||i.setGroupPropertiesForFlags(t,n))}resetGroupPropertiesForFlags(t){var n;(n=this.featureFlags)===null||n===void 0||n.resetGroupPropertiesForFlags(t)}reset(t){const n=bn(t)?t:t==null?void 0:t.resetDeviceID,i=bn(t)||t==null?void 0:t.bootstrap;this.kh(n,!1,i)}kh(t,n=!1,i){var s,r,o,c,u,h;if(ae.info("reset"),!this.__loaded)return ae.uninitializedWarning("posthog.reset");const f=i==null?void 0:i.sessionID;this.config.bootstrap=i||((s=this.Lu)===null||s===void 0?void 0:s.bootstrap)||{},(r=this.featureFlags)===null||r===void 0||(o=r.updateConfig)===null||o===void 0||o.call(r,this.config,this.nl());const m=this.get_property(Pv),x=this.get_property(qm),y=this.get_property(vc);(c=this.sessionRecording)===null||c===void 0||c.flushBeforeIdentityReset();const b=this.is_capturing();this.consent.reset(),n||!b||this.is_capturing()||console.warn("[PostHog.js]","reset() cleared the stored consent, and capturing is now off because of `opt_out_capturing_by_default`. Call opt_in_capturing() again, and prefer calling reset() before opting in rather than after.");const k=(u=this.persistence)===null||u===void 0||(h=u.Da)===null||h===void 0?void 0:h.call(u);let w=!1;try{var S,j,N,E,T,L,M,A,O,G,X,ee,le;if((S=this.persistence)===null||S===void 0||S.clear(),(j=this.sessionPersistence)===null||j===void 0||j.clear(),this.Mu.clear(),this.mh(),U(y)||(G=this.persistence)===null||G===void 0||G.register({$session_recording_remote_config:y}),(N=this.surveys)===null||N===void 0||N.reset(),(E=this.featureFlags)===null||E===void 0||E.reset(),(T=this.conversations)===null||T===void 0||T.reset(),(L=this.logs)===null||L===void 0||L.reset(),(M=this.metrics)===null||M===void 0||M.reset(),(A=this.persistence)===null||A===void 0||A.set_property("$user_state","anonymous"),(O=this.sessionManager)===null||O===void 0||O.resetSessionId(),this.Ou=null,this.config.cookieless_mode==="always")this.register_once({distinct_id:Um,$device_id:null},"");else{const Z=this.config.get_device_id(wi());this.register_once({distinct_id:Z,$device_id:t?Z:m},""),t||U(x)||this.register({[qm]:x})}if(this.register({$last_posthog_reset:new Date().toISOString()},1),i&&(i.distinctID&&!this.bu()&&((le=this.persistence)===null||le===void 0||le.set_property("$user_state",i.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:i.distinctID})),(X=this.featureFlags)===null||X===void 0||X.initialize(),!Le(f)&&!(!((ee=this.sessionManager)===null||ee===void 0)&&ee.setBootstrapSessionId(f,!0)))){const Z=R({},i);delete Z.sessionID,this.config.bootstrap=Z}delete this.config.identity_distinct_id,delete this.config.identity_hash,delete this.config.identity_claims,w=!0}finally{var re,ne;k&&((re=this.persistence)===null||re===void 0||(ne=re.ja)===null||ne===void 0||ne.call(re,w))}this.reloadFeatureFlags()}shutdown(t){var n=this;return dt(function*(){var i,s,r,o,c,u,h,f;if(n.__loaded){n.Tu=!0,n.Zu().dispose(),(i=n.sessionRecording)===null||i===void 0||i.dispose(),(s=n.logs)===null||s===void 0||s.flushLogs("sendBeacon"),(r=n.metrics)===null||r===void 0||r.flush("sendBeacon"),(o=n.metrics)===null||o===void 0||o.dispose(),(c=n.qu)===null||c===void 0||c.unload(),(u=n.Bu)===null||u===void 0||u.unload();try{var m;(m=n.featureFlags)===null||m===void 0||m.destroy()}catch(x){ae.error("Error while destroying feature flags",x)}(h=n.persistence)===null||h===void 0||h.destroy(),(f=n.sessionPersistence)===null||f===void 0||f.destroy()}else ae.uninitializedWarning("posthog.shutdown")})()}
68setIdentity(t,n){var i;delete this.config.identity_claims,this.config.identity_distinct_id=t,this.config.identity_hash=n,this.alias(t),(i=this.conversations)===null||i===void 0||i.Sh()}clearIdentity(){var t;delete this.config.identity_distinct_id,delete this.config.identity_hash,delete this.config.identity_claims,(t=this.conversations)===null||t===void 0||t.xh()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,n;return(t=(n=this.sessionManager)===null||n===void 0?void 0:n.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&t!==void 0?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";const{sessionId:n,sessionStartTimestamp:i}=this.sessionManager.checkAndGetSessionAndWindowId(!0);let s=this.requestRouter.endpointFor("ui",`/project/${this.config.token}/replay/${n}`);if(t!=null&&t.withTimestamp&&i){var r;const o=(r=t.timestampLookBack)!==null&&r!==void 0?r:10;if(!i)return s;s+=`?t=${Math.max(Math.floor((new Date().getTime()-i)/1e3)-o,0)}`}return s}alias(t,n){return t===this.get_property("$people_distinct_id")?(ae.critical("Attempting to create alias for existing People user - aborting."),-2):this.bh("posthog.alias")?(U(n)&&(n=this.get_distinct_id()),t!==n?(this._h(Dh,t),this.capture("$create_alias",{alias:t,distinct_id:n})):(ae.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){const n=R({},this.config);if(We(t)){var i,s,r,o,c,u,h,f,m,x,y,b,k,w;ct(this.config,dk(t));const j=this.xu();(i=this.persistence)===null||i===void 0||i.update_config(this.config,n,j),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new eg(R(R({},this.config),{},{persistence:"sessionStorage"}),j,!1);const N=this.Du(this.config.debug);var S;bn(N)&&(this.config.debug=N),bn(this.config.debug)&&(this.config.debug?(Ft.DEBUG=!0,Ge.Et()&&Ge.At("ph_debug",!0),ae.info("set_config",{config:t,oldConfig:n,newConfig:R({},this.config)})):(Ft.DEBUG=!1,Ge.Et()&&Ge.Lt("ph_debug"))),(s=this.featureFlags)===null||s===void 0||(r=s.updateConfig)===null||r===void 0||r.call(s,this.config,this.nl()),(o=this.exceptionObserver)===null||o===void 0||o.onConfigChange(),(c=this.exceptions)===null||c===void 0||c.onConfigChange(),(u=this.metrics)===null||u===void 0||u.onConfigChange(),(h=this.sessionRecording)===null||h===void 0||h.startIfEnabledOrStop(),(f=this.tracingHeaders)===null||f===void 0||f.startIfEnabledOrStop(),(m=this.autocapture)===null||m===void 0||m.startIfEnabled(),(x=this.heatmaps)===null||x===void 0||x.startIfEnabled(),("capture_pageview"in t||"disable_capture_url_hashes"in t)&&((S=this.historyAutocapture)===null||S===void 0||S.startIfEnabledOrStop()),(y=this.exceptionObserver)===null||y===void 0||y.startIfEnabledOrStop(),(b=this.deadClicksAutocapture)===null||b===void 0||b.startIfEnabledOrStop(),(k=this.surveys)===null||k===void 0||k.loadIfEnabled(),this.Cu(),(w=this.externalIntegrations)===null||w===void 0||w.startIfEnabledOrStop(),!n.segment&&this.config.segment&&this.persistence&&W_(this,jc,!1)}}_overrideSDKInfo(t,n){Ft.LIB_NAME=t,Ft.LIB_VERSION=n}startSessionRecording(t){const n=t===!0,i={sampling:n||!!(t!=null&&t.sampling),linked_flag:n||!!(t!=null&&t.linked_flag),url_trigger:n||!!(t!=null&&t.url_trigger),event_trigger:n||!!(t!=null&&t.event_trigger)};var s,r,o,c,u;Object.values(i).some(Boolean)&&((s=this.sessionManager)===null||s===void 0||s.checkAndGetSessionAndWindowId(),i.sampling&&((r=this.sessionRecording)===null||r===void 0||r.overrideSampling()),i.linked_flag&&((o=this.sessionRecording)===null||o===void 0||o.overrideLinkedFlag()),i.url_trigger&&((c=this.sessionRecording)===null||c===void 0||c.overrideTrigger("url")),i.event_trigger&&((u=this.sessionRecording)===null||u===void 0||u.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!!(!((t=this.sessionRecording)===null||t===void 0)&&t.started)}captureException(t,n){try{if(!this.exceptions)return;const i=this.exceptions.buildProperties(t,{handled:!0,syntheticException:new Error("PostHog syntheticException")});return this.exceptions.sendExceptionEvent(R(R({},i),n))}catch{return}}addExceptionStep(t,n){var i;(i=this.exceptions)===null||i===void 0||i.addExceptionStep(t,n)}captureLog(t){var n;(n=this.logs)===null||n===void 0||n.captureLog(t)}get logger(){var t,n;return(t=(n=this.logs)===null||n===void 0?void 0:n.logger)!==null&&t!==void 0?t:tr.Ch}startExceptionAutocapture(t){this.set_config({capture_exceptions:t==null||t})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(t){var n,i;return(n=(i=this.toolbar)===null||i===void 0?void 0:i.loadToolbar(t))!==null&&n!==void 0&&n}get_property(t){var n;return(n=this.persistence)===null||n===void 0?void 0:n.props[t]}getSessionProperty(t){var n;return(n=this.sessionPersistence)===null||n===void 0?void 0:n.props[t]}toString(){var t;let n=(t=this.config.name)!==null&&t!==void 0?t:sc;return n!==sc&&(n="posthog."+n),n}_isIdentified(){var t,n;return((t=this.persistence)===null||t===void 0?void 0:t.get_property("$user_state"))==="identified"||((n=this.sessionPersistence)===null||n===void 0?void 0:n.get_property("$user_state"))==="identified"}yh(){var t,n;return!(this.config.person_profiles==="never"||this.config.person_profiles==="identified_only"&&!this._isIdentified()&&An(this.getGroups())&&!(!((t=this.persistence)===null||t===void 0||(t=t.props)===null||t===void 0)&&t.__alias)&&
68!(!((n=this.persistence)===null||n===void 0||(n=n.props)===null||n===void 0)&&n.$epp))}ih(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&!!this.config.capture_pageview}createPersonProfile(){this.yh()||this.bh("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.bh("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}bh(t){return this.config.person_profiles==="never"?(ae.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this._u(),this._h(Mv,!0),!0)}xu(){if(this.config.cookieless_mode==="always")return!0;const t=this.consent.isOptedOut();return this.config.disable_persistence||t&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!=="on_reject")}Cu(){var t,n;const i=this.xu();var s,r,o;return this.is_capturing()||(s=this.logs)===null||s===void 0||s.$h(),((t=this.persistence)===null||t===void 0?void 0:t.mi)!==i&&((r=this.persistence)===null||r===void 0||r.set_disabled(i)),((n=this.sessionPersistence)===null||n===void 0?void 0:n.mi)!==i&&((o=this.sessionPersistence)===null||o===void 0||o.set_disabled(i)),i&&(this.Mu.clear(),this.mh()),i}opt_in_capturing(t){var n;if(this.config.cookieless_mode!=="always"){if(this.bu()){var i,s,r,o,c,u;(i=this.sessionRecording)===null||i===void 0||i.dispose({discardBufferedEvents:!0}),this.kh(!0,!0),(s=this.sessionManager)===null||s===void 0||s.destroy(),(r=this.pageViewManager)===null||r===void 0||r.destroy(),this.sessionManager=new ik(this),this.pageViewManager=new q_(this),this.persistence&&(this.sessionPropsManager=new tk(this,this.sessionManager,this.persistence));const y=(o=(c=this.config.__extensionClasses)===null||c===void 0?void 0:c.sessionRecording)!==null&&o!==void 0?o:(u=tr.__defaultExtensionClasses)===null||u===void 0?void 0:u.sessionRecording;var h,f;y&&(this.sessionRecording=this.yu(this.sessionRecording,new y(this)),this.du&&((h=this.sessionRecording)===null||h===void 0||(f=h.onRemoteConfig)===null||f===void 0||f.call(h,this.du)))}var m,x;this.consent.optInOut(!0),this.Cu(),this.Yu(),(n=this.sessionRecording)===null||n===void 0||n.startIfEnabledOrStop(),this.config.cookieless_mode=="on_reject"&&((m=this.surveys)===null||m===void 0||m.loadIfEnabled()),(U(t==null?void 0:t.captureEventName)||t!=null&&t.captureEventName)&&this.capture((x=t==null?void 0:t.captureEventName)!==null&&x!==void 0?x:"$opt_in",t==null?void 0:t.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.th()}else ae.warn(ak)}opt_out_capturing(){if(this.config.cookieless_mode==="always")return void ae.warn(ak);const t=this.config.cookieless_mode==="on_reject"?this.sessionRecording:void 0;var n,i;t==null||t.dispose({discardBufferedEvents:!0}),this.config.cookieless_mode==="on_reject"&&this.consent.isOptedIn()&&this.kh(!0,!0),this.consent.optInOut(!1),this.Cu(),this.config.cookieless_mode==="on_reject"&&(this.register({distinct_id:Um,$device_id:null}),this.mu(t),this.sessionRecording=void 0,(n=this.sessionManager)===null||n===void 0||n.destroy(),(i=this.pageViewManager)===null||i===void 0||i.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,this.config.capture_pageview&&this.th(),this.Yu())}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){const t=this.consent.consent;return t===1?"granted":t===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode==="always"||(this.config.cookieless_mode==="on_reject"?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.Cu()}_is_bot(){return Yt?fC(Yt,this.config.custom_blocked_useragents):void 0}th(){K&&(K.visibilityState==="visible"?this.Ru||(this.Ru=!0,this.capture(Lv,{title:K.title},{send_instantly:!0}),this.Au&&(K.removeEventListener(Bc,this.Au),this.Au=null)):this.Au||(this.Au=this.th.bind(this),Ke(K,Bc,this.Au)))}debug(t){t===!1?(B==null||B.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(B==null||B.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}nl(){const t=this.Lu||{};return"advanced_disable_flags"in t?!!t.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(ae.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):function(n,i,s,r,o){const c=i in n&&!Le(n[i]),u=s in n&&!Le(n[s]);return c?n[i]:!!u&&(o&&o.warn(`Config field '${s}' is deprecated. Please use '${i}' instead. The old field will be removed in a future major version.`),n[s])}(t,"advanced_disable_flags","advanced_disable_decide",0,ae)}Os(t){var n;if(Le(this.config.before_send))return t;const i=Object.keys((n=t.properties)!==null&&n!==void 0?n:{}).filter(e6),s=Te(this.config.before_send)?this.config.before_send:[this.config.before_send];let r=t;
68for(const o of s)try{if(r=o(r),Le(r)){const c=`Event '${t.event}' was rejected in beforeSend function`;return JA(t.event)?ae.warn(`${c}. This can cause unexpected behavior.`):ae.info(c),null}r.properties&&!An(r.properties)||ae.warn(`Event '${t.event}' has no properties after beforeSend function, this is likely an error.`)}catch(c){return ae.error(`Error in beforeSend function for event '${t.event}':`,c),null}for(const o of i)if(r.properties&&Le(r.properties[o]))return ae.warn(`Event '${t.event}' had its '${o}' property removed in a beforeSend function. This property is required for ingestion, so the event will be dropped.`),null;return r}getPageViewId(){var t;return(t=this.pageViewManager.Vo)===null||t===void 0?void 0:t.pageViewId}captureTraceFeedback(t,n){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:n})}captureTraceMetric(t,n,i){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:n,$ai_metric_value:String(i)})}Du(t){const n=bn(t)&&!t,i=Ge.Et()&&Ge.Ot("ph_debug")==="true";return!n&&(!!i||t)}};Cc.__defaultExtensionClasses={},Cc.Ch=(()=>{const e=()=>{};return{trace:e,debug:e,info:e,warn:e,error:e,fatal:e}})(),function(e,t){for(let n=0;t.length>n;n++)e.prototype[t[n]]=EP(e.prototype[t[n]])}(Cc,["identify"]);var wC=class{constructor(e){this.disabled=e===!1;const t=We(e)?e:{};this.thresholdPx=t.threshold_px||30,this.timeoutMs=t.timeout_ms||1e3,this.clickCount=t.click_count||3,this.clicks=[]}isRageClick(e,t,n){if(this.disabled)return!1;const i=this.clicks[this.clicks.length-1];if(i&&Math.abs(e-i.x)+Math.abs(t-i.y)<this.thresholdPx&&this.timeoutMs>n-i.timestamp){if(this.clicks.push({x:e,y:t,timestamp:n}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:t,timestamp:n}];return!1}};const dg="$copy_autocapture",ug=kt("[AutoCapture]");function hg(e,t){return t.length>e?t.slice(0,e)+"...":t}function OI(e){if(e.previousElementSibling)return e.previousElementSibling;let t=e;do t=t.previousSibling;while(t&&!Ki(t));return t}function LI(e,{e:t,maskAllElementAttributes:n,maskAllText:i,elementAttributeIgnoreList:s,elementsChainAsString:r,disableCaptureUrlHashes:o}){var c,u;if(!Ki(e))return{props:{}};const h=[e],f=new Set([e]);let m=e;for(;m.parentNode&&!on(m,"body")&&1e3>h.length;){if(Fv(m.parentNode)){const L=m.parentNode.host;if(f.has(L))break;f.add(L),h.push(L),m=L;continue}if(!Ki(m.parentNode)||f.has(m.parentNode))break;f.add(m.parentNode),h.push(m.parentNode),m=m.parentNode}const x=t.type==="click"&&e.namespaceURI==="http://www.w3.org/2000/svg"?h.findIndex(L=>on(L,"button")||on(L,"a")):-1;x>0&&(i=i||h.slice(0,x+1).some(L=>!ko(L)||Vc(L)));const y=[],b={};let k,w=!1,S=!1;if(Ze(h,L=>{const M=ko(L);if(on(L,"a")&&!n&&!(s!=null&&s.includes("href"))){const A=L.getAttribute("href");w=!!(M&&A&&_c(A))&&(o?yr(A):A)}Ae(Eo(L),"ph-no-capture")&&(S=!0),y.push(function(A,O,G,X,ee=!1){const le=A.tagName.toLowerCase(),re={tag_name:le};Bv.indexOf(le)>-1&&!G&&(re.$el_text=le.toLowerCase()==="a"||le.toLowerCase()==="button"?hg(1024,z_(A)):hg(1024,zc(A)));const ne=Eo(A);O||X!=null&&X.includes("class")||0>=ne.length||(re.classes=ne.filter(function(J){return J!==""})),Ze(A.attributes,function(J){var H;if((!Vc(A)||["name","id","class","aria-label"].indexOf(J.name)!==-1)&&!(X!=null&&X.includes(J.name))&&!O&&_c(J.value)&&(!Be(H=J.name)||H.substring(0,10)!=="_ngcontent"&&H.substring(0,7)!=="_nghost")){let F=J.value;J.name==="class"&&(F=$v(F).join(" ")),re["attr__"+J.name]=hg(1024,J.name==="href"&&ee?yr(F):F)}});let Z=1,ce=1,W=A;for(;W=OI(W);)Z++,W.tagName===A.tagName&&ce++;return re.nth_child=Z,re.nth_of_type=ce,re}(L,n,i,s,o)),Ze(function(A){if(!ko(A))return{};const O={};return Ze(A.attributes,function(G){if(G.name&&G.name.indexOf("data-ph-capture-attribute")===0){const X=G.name.replace("data-ph-capture-attribute-",""),ee=G.value;X&&ee&&_c(ee)&&(O[X]=ee)}}),O}(L),(A,O)=>{({}).hasOwnProperty.call(b,O)||(b[O]=A)})}),S)return{props:{},explicitNoCapture:S};if(x>0&&(e=h[x],y.splice(0,x)),i||(y[0].$el_text=on(e,"a")||on(e,"button")?z_(e):zc(e)),w){var j,N;y[0].attr__href=w;const L=(j=Ss(w))===null||j===void 0?void 0:j.host,M=B==null||(N=B.location)===null||N===void 0?void 0:N.host;L&&M&&L!==M&&(k=w)}return{props:ct((T=t.type,{$event_type:T,$ce_version:1}),r?{}:{$elements:y},{$elements_chain:(E=y,Te(E)?function(L){return L.map(M=>{var A,O;let G="";if(M.tag_name&&(G+=M.tag_name),M.attr_class){M.attr_class.sort();for(const le of M.attr_class)G+=`.${le.replace(/"/g,"")}`}const X=R(R(R(R({},M.text?{text:M.text}:{}),{},{"nth-child":(A=M.nth_child)!==null&&A!==void 0?A:0,"nth-of-type":(O=M.nth_of_type)!==null&&O!==void 0?O:0},M.href?{href:M.href}:{}),M.attr_id?{attr_id:M.attr_id}:{}),M.attributes),ee={};return hh(X).sort(([le],[re])=>function(ne,Z){return Z>ne?-1:ne>Z?1:0}
68(le,re)).forEach(([le,re])=>ee[V_(le.toString())]=V_(re.toString())),G+=":",G+=hh(ee).map(([le,re])=>`${le}="${re}"`).join(""),G}).join(";")}(function(L){return L.map(M=>{var A,O;const G={text:(A=M.$el_text)===null||A===void 0?void 0:A.slice(0,400),tag_name:M.tag_name,href:(O=M.attr__href)===null||O===void 0?void 0:O.slice(0,2048),attr_class:WP(M),attr_id:M.attr__id,nth_child:M.nth_child,nth_of_type:M.nth_of_type,attributes:{}};return hh(M).filter(([X])=>X.indexOf("attr__")===0).forEach(([X,ee])=>G.attributes[X]=ee),G})}(E)):"")},!((c=y[0])===null||c===void 0)&&c.$el_text?{$el_text:(u=y[0])===null||u===void 0?void 0:u.$el_text}:{},k&&t.type==="click"?{$external_click_url:k}:{},b),target:e};var E,T}var DI=class{fo(){this.po=void 0,clearTimeout(this.mo),this.mo=void 0}yo(e){var t;if(!ko(e))return!0;const n=(t=this.bo().css_selector_ignorelist)!==null&&t!==void 0?t:Zm,i=new Set;let s=e;for(;s;){if(i.size>=1e3||i.has(s))return!0;i.add(s);const r=s,o=Eo(r);if(Ae(o,"ph-no-capture")||Ae(o,"ph-sensitive")||Vc(r)||n.some(u=>Sx(r,u)))return!0;const c=s.parentNode;s=Fv(c)?c.host:c&&Ki(c)?c:null}return!1}_o(e){if(!this.isEnabled||e.type==="pointercancel")return void this.fo();if(e.type==="pointerdown"){this.fo();const i=wc(e);var t;return void(e.isPrimary&&e.button===0&&!e.ctrlKey&&i&&Ki(i)&&(this.po={target:i,excluded:this.yo(i),id:e.pointerId,x:e.clientX,y:e.clientY,released:!1,distinctId:(t=this.wo)===null||t===void 0?void 0:t.distinctId}))}const n=this.po;n&&(e.pointerId!==n.id||Math.abs(e.clientX-n.x)>5||Math.abs(e.clientY-n.y)>5?this.fo():e.type==="pointerup"&&(n.released=!0,this.mo=setTimeout(()=>this.fo(),0)))}ko(e){var t;const n=this.po;this.fo();const i=wc(e);if(n!=null&&n.released&&n.target.isConnected&&n.distinctId===((t=this.wo)===null||t===void 0?void 0:t.distinctId)&&e.pointerId===n.id&&(e.detail>0||e.pointerType==="touch"||e.pointerType==="pen")&&e.button===0&&5>=Math.abs(e.clientX-n.x)&&5>=Math.abs(e.clientY-n.y)&&i&&(on(i,"html")||on(i,"body"))){var s;if(n.excluded)return null;const r=(s=this.bo().css_selector_ignorelist)!==null&&s!==void 0?s:Zm;return[i,K==null?void 0:K.documentElement,K==null?void 0:K.body].some(o=>{if(!o)return!1;const c=Eo(o);return Ae(c,"ph-no-capture")||Ae(c,"ph-sensitive")||!ko(o)||Vc(o)||r.some(u=>Sx(o,u))})?null:n.target}}constructor(e){this.So=e,this.name="autocapture",this.xo=!1,this.Co=null,this.$o=!1,this.To=!1,this.Rr={enabled:!1,rageclick:!1,maskAllElementAttributes:!1,maskAllText:!1,disableCaptureUrlHashes:!1,remoteRequestsDisabled:!1},this.Io=!1,this.So.refresh(this.Rr),this.rageclicks=new wC(this.Rr.rageclick),this.Mo=null}setup(e){this.Eo(),this.wo=e;const t=e.onRemoteConfig(this.onRemoteConfig.bind(this));this.Io?t.dispose():(this.Po=t,this.startIfEnabled())}dispose(){var e;this.Io||(this.Io=!0,this.wo=void 0,(e=this.Po)===null||e===void 0||e.dispose(),this.Po=void 0,this.Ro())}bo(){return this.So.refresh(this.Rr),this.Rr}Eo(){var e,t;return this.bo(),this.Rr.url_allowlist=(e=this.Rr.url_allowlist)===null||e===void 0?void 0:e.map(n=>new RegExp(n)),this.Rr.url_ignorelist=(t=this.Rr.url_ignorelist)===null||t===void 0?void 0:t.map(n=>new RegExp(n)),this.Rr}Ao(){if(!this.isBrowserSupported())return void ug.info("Disabling Automatic Event Collection because this browser is not supported");if(!B||!K)return;const e=this.Fo=t=>{t=t||(B==null?void 0:B.event);try{if(t.type==="blur")return void this.fo();if(t.type.indexOf("pointer")===0)return void this._o(t);const n=t.type==="click"?this.ko(t):void 0;if(bt(n))return;this.Oo(t,"$autocapture",n)}catch(n){ug.error("Failed to capture event",n)}};if(Ke(B,"blur",e),Ke(K,"submit",e,{capture:!0}),Ke(K,"change",e,{capture:!0}),Ke(K,"click",e,{capture:!0}),Ze(["pointerdown","pointermove","pointerup","pointercancel"],t=>{Ke(K,t,e,{capture:!0})}),this.bo().capture_copied_text){const t=this.Do=n=>{n=n||(B==null?void 0:B.event);try{this.Oo(n,dg)}catch(i){ug.error("Failed to capture clipboard event",i)}};Ke(K,"copy",t,{capture:!0}),Ke(K,"cut",t,{capture:!0}),Ke(K,"paste",t,{capture:!0})}}Ro(){this.fo(),this.Fo&&(B==null||B.removeEventListener("blur",this.Fo),Ze(["pointerdown","pointermove","pointerup","pointercancel"],e=>{K==null||K.removeEventListener(e,this.Fo,!0)}),K==null||K.removeEventListener("submit",this.Fo,!0),K==null||K.removeEventListener("change",this.Fo,!0),K==null||K.removeEventListener("click",this.Fo,!0),this.Fo=void 0),this.Do&&(K==null||K.removeEventListener("copy",this.Do,!0),K==null||K.removeEventListener("cut",this.Do,!0),K==null||K.removeEventListener("paste",this.Do,!0),this.Do=void 0),this.xo=!1}startIfEnabled(){this.isEnabled||this.fo(),!this.Io&&this.wo&&this.isEnabled&&!this.xo&&(this.Ao(),this.xo=!0)}onRemoteConfig(e){if(this.Io)return;if(this.$o=!0,!e.ok)return void this.startIfEnabled();const t=e.config;
68t.elementsChainAsString&&(this.To=t.elementsChainAsString);const n=t.autocapture_opt_out;var i;bn(n)&&((i=this.wo)===null||i===void 0||i.kv.set("$autocapture_disabled_server_side",n),this.Co=n),this.startIfEnabled()}setElementSelectors(e){this.Mo=e}getElementSelectors(e,t){var n;const i=[];return(n=this.Mo)===null||n===void 0||n.forEach(s=>{const r=K==null?void 0:K.querySelectorAll(s);r==null||r.forEach(o=>{e!==o&&t!==o||Ae(i,s)||i.push(s)})}),i}get isEnabled(){var e,t;if(this.Io)return!1;const n=(e=this.wo)===null||e===void 0?void 0:e.kv.get(c5),i=this.Co,s=this.bo();if(!s.remoteRequestsDisabled&&!this.$o)return!1;const r=s.remoteRequestsDisabled&&!this.$o;if(bt(i)&&!bn(n)&&!r)return!1;const o=(t=this.Co)!==null&&t!==void 0?t:!!n;return!!s.enabled&&!o}Oo(e,t="$autocapture",n){if(!this.isEnabled)return void this.fo();let i=n||wc(e);P5(i)&&(i=i.parentNode||null);const s=this.Eo();var r;t==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&s.rageclick&&(!((r=this.rageclicks)===null||r===void 0)&&r.isRageClick(e.clientX,e.clientY,e.timeStamp||new Date().getTime()))&&O5(i,s.rageclick)&&this.Oo(e,"$rageclick",n);const o=t===dg,c=o?R(R({},s),{},{dom_event_allowlist:void 0}):s;if(i&&function(m,x,y,b,k,w){var S;if(!B||zv(m)||y!=null&&y.url_allowlist&&!M_(y.url_allowlist,w)||y!=null&&y.url_ignorelist&&M_(y.url_ignorelist,w))return!1;if(y!=null&&y.dom_event_allowlist){const T=y.dom_event_allowlist;if(T&&!T.some(L=>x.type===L))return!1}const{parentIsUsefulElement:j,targetElementList:N}=L5(m,b);if(!function(T,L){const M=L==null?void 0:L.element_allowlist;if(U(M))return!0;for(const A of T)if(M.some(O=>A.tagName.toLowerCase()===O))return!0;return!1}(N,y)||!jx(N,y==null?void 0:y.css_selector_allowlist)||jx(N,(S=y==null?void 0:y.css_selector_ignorelist)!==null&&S!==void 0?S:Zm))return!1;try{const T=B.getComputedStyle(m);if(T&&T.getPropertyValue("cursor")==="pointer"&&x.type==="click")return!0}catch{}const E=m.tagName.toLowerCase();switch(E){case"html":return!1;case"form":return(k||["submit"]).indexOf(x.type)>=0;case"input":case"select":case"textarea":return(k||["change","click"]).indexOf(x.type)>=0;default:return j?(k||["click"]).indexOf(x.type)>=0:(k||["click"]).indexOf(x.type)>=0&&(Bv.indexOf(E)>-1||m.getAttribute("contenteditable")==="true")}}(i,e,c,o,o?["copy","cut","paste"]:void 0,{config:{get_current_url:s.getCurrentUrl}})){var u;const{props:m,explicitNoCapture:x,target:y}=LI(i,{e,maskAllElementAttributes:s.maskAllElementAttributes,maskAllText:s.maskAllText,elementAttributeIgnoreList:s.element_attribute_ignorelist,elementsChainAsString:this.To,disableCaptureUrlHashes:s.disableCaptureUrlHashes});if(x)return!1;const b=this.getElementSelectors(i,y);if(b&&b.length>0&&(m.$element_selectors=b),t===dg){const k=e.type||"clipboard";if(k!=="paste"){var h,f;const w=B==null||(h=B.getSelection())===null||h===void 0?void 0:h.toString(),S=I5(w);if(!S)return!1;m.$selected_content=S,m.$clipboard_text_length=(f=w==null?void 0:w.length)!==null&&f!==void 0?f:0}m.$copy_type=k}return(u=this.wo)===null||u===void 0||u.capture(t,m),!0}}isBrowserSupported(){return Ut(K==null?void 0:K.querySelectorAll)}},FI=class{constructor(e){this._instance=e}refresh(e){const t=this._instance.config,n=We(t.autocapture)?t.autocapture:void 0;e.enabled=!!t.autocapture,e.rageclick=t.rageclick,e.maskAllElementAttributes=t.mask_all_element_attributes,e.maskAllText=t.mask_all_text,e.disableCaptureUrlHashes=t.disable_capture_url_hashes,e.getCurrentUrl=t.get_current_url,e.remoteRequestsDisabled=this._instance.nl(),e.url_allowlist=n==null?void 0:n.url_allowlist,e.url_ignorelist=n==null?void 0:n.url_ignorelist,e.dom_event_allowlist=n==null?void 0:n.dom_event_allowlist,e.element_allowlist=n==null?void 0:n.element_allowlist,e.css_selector_allowlist=n==null?void 0:n.css_selector_allowlist,e.css_selector_ignorelist=n==null?void 0:n.css_selector_ignorelist,e.element_attribute_ignorelist=n==null?void 0:n.element_attribute_ignorelist,e.capture_copied_text=n==null?void 0:n.capture_copied_text}};const Wl=kt("[ExceptionAutocapture]"),uk=()=>{},hk=e=>{var t;if(Ut(e))return(t=e.__posthog_layer__)!==null&&t!==void 0?t:e.__rrweb_layer__};function qc(e,t,n){try{if(!(t in e))return uk;const i={next:e[t]},s=n(function(...r){return i.next.apply(this,r)});return Ut(s)&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__posthog_wrapped__:{enumerable:!1,value:!0},__posthog_layer__:{enumerable:!1,value:i}}
68)),e[t]=s,()=>{if(e[t]===s)return void(e[t]=i.next);let r=e[t],o=hk(r);for(;o;){if(o.next===s)return void(o.next=i.next);r=o.next,o=hk(r)}}}catch{return uk}}const $I=kt("[TracingHeaders]"),Qr=kt("[Web Vitals]"),pk=9e5,fk=["CLS","FCP","INP","LCP"],BI=["INP","LCP"],zI=["interactionTarget","interactionType","inputDelay","processingDuration","presentationDelay","loadState","target","url","timeToFirstByte","resourceLoadDelay","resourceLoadDuration","elementRenderDelay","largestShiftTarget","largestShiftTime","largestShiftValue","firstByteToFCP"],pg="disabled",mk="lazy_loading",ds=kt("[SessionRecording]"),VI=kt("[Heatmaps]");function fg(e){return We(e)&&"clientX"in e&&"clientY"in e&&jt(e.clientX)&&jt(e.clientY)}const Lu=kt("[Product Tours]"),mg=e=>{var t;return!e.config.disable_product_tours&&!!(!((t=e.persistence)===null||t===void 0)&&t.get_property(Rv))},HI=["$set_once","$set"],Mi=kt("[SiteApps]"),gk="Error while initializing PostHog app with config id ",_C=(e,t)=>e!=null&&e.then?e.then(t):t(e),ro="SDK is not enabled or survey functionality is not yet loaded",xk="Disabled. Not loading surveys.";var WI=class{constructor(e,t){this.So=e,this.Th=t,this.name="surveys",this._surveyEventReceiver=null,this._surveyManager=null,this.Ih=!1,this.Mh=[],this.Eh=null,this.Ph=null,this.Io=!1,this.Rh=new Set,this.onRemoteConfig=n=>{if(this.Io||this.Rr.disableSurveys)return;if(!n.ok)return Xe.warn("Remote config unavailable. Not loading surveys.");const i=n.config.surveys;if(Le(i))return Xe.warn("Flags not loaded yet. Not loading surveys.");this.Ah=bn(i)?i:i.length>0,Xe.info(`flags response received, isSurveysEnabled: ${this.Ah}`),this.loadIfEnabled()}}setup(e){if(!this.Io)return this.Fh=e,_C(e.kv.initialize(),()=>{if(this.Fh!==e||this.Io)return;this.Fh=void 0,this.wo=e;const t=e.onRemoteConfig(this.onRemoteConfig);this.Io?t.dispose():(this.Po=t,this.loadIfEnabled())})}dispose(){var e,t,n,i;this.Io||(this.Io=!0,this.Fh=void 0,this.wo=void 0,(e=this.Po)===null||e===void 0||e.dispose(),this.Po=void 0,(t=this._surveyEventReceiver)===null||t===void 0||t.dispose(),this._surveyEventReceiver=null,(n=this._surveyManager)===null||n===void 0||(i=n.dispose)===null||i===void 0||i.call(n),this._surveyManager=null,this.Mh=[],this.Eh=null,this.Rh.forEach(s=>clearTimeout(s)),this.Rh.clear())}get Rr(){return this.So.get()}initialize(){this.loadIfEnabled()}reset(){var e,t;(e=this._surveyManager)===null||e===void 0||(t=e.clearInMemoryInProgressSurveyState)===null||t===void 0||t.call(e);try{var n;(n=this._surveyEventReceiver)===null||n===void 0||n.reset(),localStorage.removeItem("lastSeenSurveyDate");const i=[];for(let s=0;s<localStorage.length;s++){const r=localStorage.key(s);(r!=null&&r.startsWith("seenSurvey_")||r!=null&&r.startsWith("inProgressSurvey_"))&&i.push(r)}i.forEach(s=>localStorage.removeItem(s))}catch{}}loadIfEnabled(){if(this.Io||!this.wo)return;const e=this.Rr;if(this._surveyManager)return;if(this.Ih)return void Xe.info("Already initializing surveys, skipping...");if(e.disableSurveys)return void Xe.info(xk);if(e.cookielessMode&&this.So.isOptedOut())return void Xe.info("Not loading surveys in cookieless mode without consent.");const t=this.So.getExtensions();if(!t)return void Xe.error("PostHog Extensions not found.");if(U(this.Ah)&&!e.advancedEnableSurveys)return;const n=this.Ah||e.advancedEnableSurveys;this.Ih=!0;try{const i=t.generateSurveys;if(i)return this.Oh(i,n),void(this.Ih=!1);const s=t.loadExternalDependency;if(!s)return this.Dh(Ov),void(this.Ih=!1);s(r=>{try{if(this.Io)return;const o=this.So.getExtensions();r||!(o!=null&&o.generateSurveys)?this.Dh("Could not load surveys script",r):this.Oh(o.generateSurveys,n)}finally{this.Ih=!1}})}catch(i){throw this.Ih=!1,this.Dh("Error initializing surveys",i),i}}Oh(e,t){this.Io||(this._surveyManager=e(t),this._surveyEventReceiver=this.So.createEventReceiver(),Xe.info("Surveys loaded successfully"),this.Lh({isLoaded:!0}))}Dh(e,t){Xe.error(e,t),this.Lh({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.Mh.push(e),this._surveyManager&&this.Lh({isLoaded:!0}),()=>{this.Mh=this.Mh.filter(t=>t!==e)}}getSurveys(e,t=!1){var n;const i=(n=this.wo)!==null&&n!==void 0?n:this.Th;if(!i||this.Io)return;if(this.Rr.disableSurveys)return Xe.info(xk),e([]);const s=i.kv.get(vx);if(s&&!t)return e(s,{isLoaded:!0}
68),void(this.Nh()&&this.getSurveys(()=>{},!0));if(this.Eh)return void this.Eh.then(({surveys:c,context:u})=>{this.Io||e(c,u)}).catch(c=>Xe.error("Error in survey callback",c));const r=this.qh("/api/surveys/",{method:"GET",query:{token:i.projectToken},sentAt:"query",timeoutMs:this.Rr.requestTimeoutMs}).then(c=>{try{return this.jh(i,c)}catch(u){return Xe.error("Error processing surveys response",u),this.jh(i,{statusCode:0,error:u})}},c=>this.jh(i,{statusCode:0,error:c}));this.Eh=r;const o=()=>{this.Eh===r&&(this.Eh=null)};r.then(c=>{o(),this.Io||e(c.surveys,c.context)},o).catch(c=>Xe.error("Error in survey callback",c))}qh(e,t){const n=this.wo;return n?n.sendRequest(e,t):new Promise(i=>i({statusCode:0,error:new Error(ro)}))}jh(e,t){if(this.Io)return{surveys:[],context:{isLoaded:!1,error:ro}};const n=t.statusCode;if(n!==200||!t.json){const o=`Surveys API could not be loaded, status: ${n}`;return n!==0?Xe.error(o):t.error||Xe.warn(o),this.Ph=Date.now(),{surveys:[],context:{isLoaded:!1,error:o}}}this.Ph=null;const i=t.json.surveys||[],s=i.filter(o=>function(c){return!(!c.start_date||c.end_date)}(o)&&(gC(o)||function(c){var u;return!!(!((u=c.conditions)===null||u===void 0||(u=u.actions)===null||u===void 0||(u=u.values)===null||u===void 0)&&u.length)}(o)));var r;return s.length>0&&((r=this._surveyEventReceiver)===null||r===void 0||r.register(s)),e.kv.set({[vx]:i,[Fh]:Date.now()}),{surveys:i,context:{isLoaded:!0}}}Nh(){return this.Bh()&&!this.Eh&&!this.Hh()}Bh(){var e,t;const n=(e=(t=this.wo)!==null&&t!==void 0?t:this.Th)===null||e===void 0?void 0:e.kv.get(Fh);return jt(n)&&Date.now()-n>3e5}Hh(){return jt(this.Ph)&&3e5>Date.now()-this.Ph}markSurveyAsSeen(e,t){var n;const i={id:e,current_iteration:(n=t==null?void 0:t.iteration)!==null&&n!==void 0?n:null};yC(i);try{localStorage.setItem("lastSeenSurveyDate",new Date().toISOString())}catch{}}Lh(e){for(const t of this.Mh)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(n){Xe.error("Error in survey callback",n)}}getActiveMatchingSurveys(e,t=!1){if(!Le(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);Xe.warn("init was not called")}zh(e){let t=null;return this.getSurveys(n=>{var i;t=(i=n.find(s=>s.id===e))!==null&&i!==void 0?i:null}),t}Uh(e){if(Le(this._surveyManager))return{eligible:!1,reason:ro};const t=typeof e=="string"?this.zh(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}Wh(e){if(!this.So.isCapturing())return{eligible:!1,reason:"PostHog is not capturing, so a survey response cannot be recorded"};if(Le(this._surveyManager))return{eligible:!1,reason:ro};const t=typeof e=="string"?this.zh(e):e;return t?this._surveyManager.checkSurveyRenderability(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(Le(this._surveyManager))return Xe.warn("init was not called"),{visible:!1,disabledReason:ro};const t=this.Wh(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Le(this._surveyManager)?(Xe.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:ro})):new Promise(n=>{this.getSurveys(i=>{var s;const r=(s=i.find(o=>o.id===e))!==null&&s!==void 0?s:null;if(r){const o=this.Wh(r);n({visible:o.eligible,disabledReason:o.reason})}else n({visible:!1,disabledReason:"Survey not found"})},t)})}renderSurvey(e,t,n){var i;if(!this.So.isCapturing())return;if(Le(this._surveyManager))return void Xe.warn("init was not called");const s=typeof e=="string"?this.zh(e):e;if(!(s!=null&&s.id))return void Xe.warn("Survey not found");if(!_I.includes(s.type))return void Xe.warn(`Surveys of type ${s.type} cannot be rendered in the app`);const r=K==null?void 0:K.querySelector(t);if(r){if(!((i=s.appearance)===null||i===void 0)&&i.surveyPopupDelaySeconds){Xe.info(`Rendering survey ${s.id} with delay of ${s.appearance.surveyPopupDelaySeconds} seconds`);const o=setTimeout(()=>{var c,u;this.Rh.delete(o),!this.Io&&this.So.isCapturing()&&(Xe.info(`Rendering survey ${s.id} with delay of ${(c=s.appearance)===null||c===void 0?void 0:c.surveyPopupDelaySeconds}
68 seconds`),(u=this._surveyManager)===null||u===void 0||u.renderSurvey(s,r,n),Xe.info(`Survey ${s.id} rendered`))},1e3*s.appearance.surveyPopupDelaySeconds);return void this.Rh.add(o)}this._surveyManager.renderSurvey(s,r,n)}else Xe.warn("Survey element not found")}displaySurvey(e,t){var n;if(!this.So.isCapturing())return;if(Le(this._surveyManager))return void Xe.warn("init was not called");const i=this.zh(e);if(!i)return void Xe.warn("Survey not found");let s=i;if(!((n=i.appearance)===null||n===void 0)&&n.surveyPopupDelaySeconds&&t.ignoreDelay&&(s=R(R({},i),{},{appearance:R(R({},i.appearance),{},{surveyPopupDelaySeconds:0})})),t.displayType!==Cx.Popover&&t.initialResponses&&Xe.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){const r=this.Uh(i);if(!r.eligible)return void Xe.warn("Survey is not eligible to be displayed: ",r.reason)}t.displayType!==Cx.Inline?this._surveyManager.handlePopoverSurvey(s,t):this.renderSurvey(s,t.selector,t.properties)}cancelPendingSurvey(e){Le(this._surveyManager)?Xe.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e,t;(e=this._surveyManager)===null||e===void 0||(t=e.handlePageUnload)===null||t===void 0||t.call(e)}};function ao(e,t,n){if(Le(e))return!1;switch(n){case"exact":return e===t;case"contains":{const i=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(i,"i").test(e)}case"regex":try{return new RegExp(t).test(e)}catch{return!1}default:return!1}}var qI=class{constructor(e){this._instance=e,this.Vh=new Set,this.Gh=new Set,this.Zh=new Wh,this.Qh=(t,n)=>this.Jh(t,n)&&this.Kh(t,n)&&this.Xh(t,n)&&this.Yh(t,n),this.Jh=(t,n)=>!(n!=null&&n.event)||(t==null?void 0:t.event)===(n==null?void 0:n.event)}init(){var e,t;U((e=this._instance)===null||e===void 0?void 0:e._addCaptureHook)||(this.tc=(t=this._instance)===null||t===void 0?void 0:t._addCaptureHook((n,i)=>{this.on(n,i)}))}dispose(){var e;(e=this.tc)===null||e===void 0||e.call(this),this.tc=void 0,this.Zh=new Wh}register(e){var t,n;if(!U((t=this._instance)===null||t===void 0?void 0:t._addCaptureHook)&&(e.forEach(i=>{var s;this.Vh.add(i),(s=i.steps)===null||s===void 0||s.forEach(r=>{this.Gh.add((r==null?void 0:r.event)||"")})}),(n=this._instance)===null||n===void 0?void 0:n.autocapture)){const i=new Set;this.Vh.forEach(s=>{var r;(r=s.steps)===null||r===void 0||r.forEach(o=>{o!=null&&o.selector&&i.add(o.selector)})}),this._instance.autocapture.setElementSelectors(i)}}replace(e){this.Vh.clear(),this.Gh.clear(),this.register(e)}on(e,t){t!=null&&e.length!=0&&(this.Gh.has(e)||this.Gh.has(t.event))&&this.Vh.forEach(n=>{this.ec(t,n)&&this.Zh.emit("actionCaptured",n.name)})}nc(e){this.onAction("actionCaptured",t=>e(t))}ec(e,t){if((t==null?void 0:t.steps)==null)return!1;for(const n of t.steps)if(this.Qh(e,n))return!0;return!1}onAction(e,t){return this.Zh.on(e,t)}Kh(e,t){if(t!=null&&t.url){var n;const i=e==null||(n=e.properties)===null||n===void 0?void 0:n.$current_url;if(!i||typeof i!="string"||!ao(i,t.url,t.url_matching||"contains"))return!1}return!0}Xh(e,t){return!!this.sc(e,t)&&!!this.rc(e,t)&&!!this.oc(e,t)}sc(e,t){var n;if(!(t!=null&&t.href))return!0;const i=this.ac(e);if(i.length>0)return i.some(r=>ao(r.href,t.href,t.href_matching||"exact"));const s=(e==null||(n=e.properties)===null||n===void 0?void 0:n.$elements_chain)||"";return!!s&&ao(function(r){const o=r.match(/(?::|")href="(.*?)"/);return o?o[1]:""}(s),t.href,t.href_matching||"exact")}rc(e,t){var n;if(!(t!=null&&t.text))return!0;const i=this.ac(e);if(i.length>0)return i.some(u=>ao(u.text,t.text,t.text_matching||"exact")||ao(u.$el_text,t.text,t.text_matching||"exact"));const s=(e==null||(n=e.properties)===null||n===void 0?void 0:n.$elements_chain)||"";return!!s&&(r=function(u){const h=[],f=/(?::|")text="(.*?)"/g;let m;for(;!Le(m=f.exec(u));)h.includes(m[1])||h.push(m[1]);return h}(s),o=t.text,c=t.text_matching||"exact",r.some(u=>ao(u,o,c)));var r,o,c}oc(e,t){var n,i;if(!(t!=null&&t.selector))return!0;const s=e==null||(n=e.properties)===null||n===void 0?void 0:n.$element_selectors;if(s!=null&&s.includes(t.selector))return!0;const r=(e==null||(i=e.properties)===null||i===void 0?void 0:i.$elements_chain)||"";if(t.selector_regex&&r)try{return new RegExp(t.selector_regex).test(r)}catch{return!1}return!1}ac(e){var t;return(e==null||(t=e.properties)===null||t===void 0?void 0:t.$elements)==null?[]:e==null?void 0:e.properties.$elements}Yh(e,t){return!(t!=null&&t.properties)||t.properties.length===0||vC(t.properties.reduce((n,i)=>{const s=Te(i.value)?i.value.map(String):i.value!=null?[String(i.value)]:[];return n[i.key]={values:s,operator:i.operator||"exact"},n},{}),e==null?void 0:e.properties)}},UI=class{constructor(e){var t,n;this.lc=[],this._instance=e,this.uc=new Map,this.hc=new Map,this.cc=new Map,this.dc=(t=this._instance)===null||t===void 0||(n=t.onSessionId)===null||n===void 0?void 0:n.call(t,i=>this.vc(i))}fc(e){return!1}gc(){return null}mc(e){}yc(){}bc(e,t){return!!e&&vC(e.propertyFilters,t==null?void 0:t.properties)}_c(e,t){const n=new Map;return e.forEach(i=>
68{var s;(s=i.conditions)===null||s===void 0||(s=s[t])===null||s===void 0||(s=s.values)===null||s===void 0||s.forEach(r=>{if(r!=null&&r.name){const o=n.get(r.name)||[];o.push(i.id),n.set(r.name,o)}})}),n}wc(e,t,n){const i=(n===Bl.Activation?this.uc:this.hc).get(e);let s=[];return this.kc(r=>{s=r.filter(o=>i==null?void 0:i.includes(o.id))}),s.filter(r=>{var o;const c=(o=r.conditions)===null||o===void 0||(o=o[n])===null||o===void 0||(o=o.values)===null||o===void 0?void 0:o.find(u=>u.name===e);return this.bc(c,t)})}register(e){this.Sc(e,!1)}replace(e){this.Sc(e,!0)}Sc(e,t){var n;U((n=this._instance)===null||n===void 0?void 0:n._addCaptureHook)||(this.xc(e,t),this.Cc(e,t))}Cc(e,t){const n=e.filter(r=>{var o;return(o=r.conditions)===null||o===void 0||(o=o.actions)===null||o===void 0||(o=o.values)===null||o===void 0?void 0:o.length});var i;if(t&&this.cc.clear(),n.length===0)return void(t&&((i=this.$c)===null||i===void 0||i.replace([])));this.$c||(this.$c=new qI(this._instance),this.$c.init(),this.$c.nc(r=>this.onAction(r)));const s=[];n.forEach(r=>{var o;(o=r.conditions)===null||o===void 0||(o=o.actions)===null||o===void 0||o.values.forEach(c=>{if(s.push(c),c.name){var u;const h=(u=this.cc.get(c.name))!==null&&u!==void 0?u:[];h.includes(r.id)||h.push(r.id),this.cc.set(c.name,h)}})}),t?this.$c.replace(s):this.$c.register(s)}Tc(e,t){t.forEach((n,i)=>{var s;const r=(s=e.get(i))!==null&&s!==void 0?s:[];n.forEach(o=>{r.includes(o)||r.push(o)}),e.set(i,r)})}xc(e,t){var n,i;const s=e.filter(u=>{var h,f;return((h=u.conditions)===null||h===void 0?void 0:h.events)&&((f=u.conditions)===null||f===void 0||(f=f.events)===null||f===void 0||(f=f.values)===null||f===void 0?void 0:f.length)>0}),r=e.filter(u=>{var h,f;return((h=u.conditions)===null||h===void 0?void 0:h.cancelEvents)&&((f=u.conditions)===null||f===void 0||(f=f.cancelEvents)===null||f===void 0||(f=f.values)===null||f===void 0?void 0:f.length)>0}),o=this._c(e,Bl.Activation),c=this._c(e,Bl.Cancellation);
68t?(this.uc=o,this.hc=c):(this.Tc(this.uc,o),this.Tc(this.hc,c)),(s.length!==0||r.length!==0)&&((n=this.tc)!==null&&n!==void 0||(this.tc=(i=this._instance)===null||i===void 0?void 0:i._addCaptureHook((u,h)=>{this.onEvent(u,h)})))}onEvent(e,t){var n,i;const s=this.Ic(),r=(t==null||(n=t.properties)===null||n===void 0?void 0:n.$survey_id)||(t==null||(i=t.properties)===null||i===void 0?void 0:i.$product_tour_id);if(r&&this.getActivatedIds().includes(r)){const c=this.Mc(e,r);if(c==="consume")return s.info("event consumed activated item, removing it",{event:e,itemId:r}),void this.Ec([r]);if(c==="persist")return s.info("shown item promoted to persisted activation",{event:e,itemId:r}),this.Pc(r),void this.Rc([r])}if(this.hc.has(e)){const c=this.wc(e,t,Bl.Cancellation);c.length>0&&(s.info("cancel event matched, cancelling items",{event:e,itemsToCancel:c.map(u=>u.id)}),this.Ec(c.map(u=>u.id)),c.forEach(u=>this.Ac(u.id)))}if(!this.uc.has(e))return;s.info("event name matched",{event:e,eventPayload:t,items:this.uc.get(e)});const o=this.wc(e,t,Bl.Activation);this.Fc(o.map(c=>c.id))}onAction(e){this.cc.has(e)&&this.Fc(this.cc.get(e)||[])}Fc(e){var t,n;if(e.length===0)return;const i=!!(!((t=this._instance)===null||t===void 0||(n=t.get_session_id)===null||n===void 0)&&n.call(t)),s=[];for(const r of e)i&&this.fc(r)?this.Pc(r)&&this.Oc(r):s.push(r);s.length>0&&(this.lc=[...new Set([...this.lc,...s])]),this.Ic().info("updating activated items",{activatedItems:this.getActivatedIds()})}Pc(e){this.lc=this.lc.filter(n=>n!==e);const t=this.Dc();return!t.includes(e)&&(this.Lc([...t,e]),this.Nc(),!0)}Ec(e){const t=new Set(e);this.lc=this.lc.filter(s=>!t.has(s));const n=this.qc(),i=n.filter(s=>!t.has(s));i.length!==n.length&&(this.Lc(i),i.length===0&&this.jc()),this.Rc(e)}Bc(){var e;const t=this.gc();if(!t)return{};const n=(e=this._instance)===null||e===void 0||(e=e.persistence)===null||e===void 0?void 0:e.props[t];return n&&typeof n=="object"?n:{}}Oc(e){if(!this.gc())return;const t=this.Bc();this.mc(R(R({},t),{},{[e]:Date.now()}))}Rc(e){if(!this.gc())return;const t=this.Bc(),n={};let i=!1;for(const[s,r]of Object.entries(t))e.includes(s)?i=!0:n[s]=r;i&&(An(n)?this.yc():this.mc(n))}Hc(){this.gc()&&this.yc()}getActivationTimestamp(e){if(!this.Dc().includes(e))return;const t=this.Bc()[e];return jt(t)?t:void 0}qc(){var e;const t=this.zc();return((e=this._instance)===null||e===void 0||(e=e.persistence)===null||e===void 0?void 0:e.props[t])||[]}Dc(){var e,t,n;const i=this.qc();if(i.length===0)return[];const s=(e=this._instance)===null||e===void 0||(e=e.persistence)===null||e===void 0?void 0:e.props[this.Uc()],r=(t=this._instance)===null||t===void 0||(n=t.get_session_id)===null||n===void 0?void 0:n.call(t);return r&&s===r?i:[]}Nc(){var e,t;const n=(e=this._instance)===null||e===void 0||(t=e.get_session_id)===null||t===void 0?void 0:t.call(e);n&&this.Wc(n)}jc(){this.Vc()}vc(e){var t;const n=(t=this._instance)===null||t===void 0||(t=t.persistence)===null||t===void 0?void 0:t.props[this.Uc()];if(n&&n!==e){const i=this.qc(),s=this.Bc();i.length>0&&(this.Lc([]),i.filter(r=>jt(s[r])).forEach(r=>this.Ac(r))),this.jc(),this.Hc()}}getActivatedIds(){return[...new Set([...this.Dc(),...this.lc])].filter(e=>!this.Gc(e))}dispose(){var e,t,n;(e=this.dc)===null||e===void 0||e.call(this),this.dc=void 0,(t=this.tc)===null||t===void 0||t.call(this),this.tc=void 0,(n=this.$c)===null||n===void 0||n.dispose(),this.$c=void 0}reset(){this.lc=[],this.qc().length>0&&this.Lc([]),this.jc(),this.Hc()}getEventToItemsMap(){return this.uc}Zc(){return this.$c}},GI=class extends UI{constructor(e){super(e)}zc(){return m5}Uc(){return g5}gc(){return x5}mc(e){var t;(t=this._instance)===null||t===void 0||(t=t.persistence)===null||t===void 0||t.register({$surveys_activated_timestamps:e})}yc(){var e;(e=this._instance)===null||e===void 0||(e=e.persistence)===null||e===void 0||e.unregister("$surveys_activated_timestamps")}fc(e){var t;let n;this.kc(s=>{n=s.find(r=>r.id===e)});const i=n==null||(t=n.appearance)===null||t===void 0?void 0:t.surveyPopupDelaySeconds;return jt(i)&&i>0}Qc(){return ws.SHOWN}kc(e){var t;(t=this._instance)===null||t===void 0||t.getSurveys(e)}Ac(e){var t;(t=this._instance)===null||t===void 0||t.cancelPendingSurvey(e)}Ic(){return Xe}Lc(e){var t;(t=this._instance)===null||t===void 0||(t=t.persistence)===null||t===void 0||t.register({$surveys_activated:e})}Wc(e){var t;(t=this._instance)===null||t===void 0||(t=t.persistence)===null||t===void 0||t.register({$surveys_activated_session:e})}Vc(){var e;(e=this._instance)===null||e===void 0||(e=e.persistence)===null||e===void 0||e.unregister("$surveys_activated_session")}Gc(){return!1}Mc(e,t){let n;return this.kc(i=>{n=i.find(s=>s.id===t)}),!n||function(i){var s;return gC(i)&&!!(!((s=i.conditions)===null||s===void 0||(s=s.events)===null||s===void 0)&&s.repeatedActivation)||i.schedule==="always"}(n)?e===ws.SHOWN?"consume":"ignore":e===ws.SHOWN?"persist":e===ws.DISM
68ISSED||e===ws.SENT?"consume":"ignore"}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}},YI=class{constructor(t){this._instance=t}initialize(){}get(t){if(typeof t=="string")return this._instance.get_property(t);const n={};for(const i of t){const s=this._instance.get_property(i);U(s)||(n[i]=s)}return n}set(t,n){this._instance.register(typeof t=="string"?{[t]:n}:t)}remove(t){typeof t!="string"?t.forEach(n=>this._instance.unregister(n)):this._instance.unregister(t)}},KI=class{constructor(e){this._instance=e}get(){const e=this._instance.config;return{disableSurveys:e.disable_surveys,cookielessMode:!!e.cookieless_mode,advancedEnableSurveys:e.advanced_enable_surveys,requestTimeoutMs:e.surveys_request_timeout_ms}}isOptedOut(){return this._instance.consent.isOptedOut()}isCapturing(){return this._instance.is_capturing()}getExtensions(){const e=we==null?void 0:we.__PosthogExtensions__;if(!e)return;const{generateSurveys:t,loadExternalDependency:n}=e;return{generateSurveys:t?i=>t(this._instance,i):void 0,loadExternalDependency:n?i=>n(this._instance,"surveys",i):void 0}}createEventReceiver(){return new GI(this._instance)}};const QI=B!=null&&B.location?zh(B.location.hash,"__posthog")||zh(location.hash,"state"):null,vk="_postHogToolbarParams",yk=kt("[Toolbar]"),bk=kt("[FeatureFlags]");var XI=class{constructor(e,t=!1){this.Jc=!1,this.update(e,t)}update(e,t){this.Kc=((n,i)=>{var s,r,o,c,u,h,f,m;return{bootstrap:{featureFlags:(s=(r=n.bootstrap)===null||r===void 0?void 0:r.featureFlags)!==null&&s!==void 0?s:void 0,featureFlagPayloads:(o=(c=n.bootstrap)===null||c===void 0?void 0:c.featureFlagPayloads)!==null&&o!==void 0?o:void 0},remoteRequestsDisabled:i,featureFlagsDisabled:!!n.advanced_disable_feature_flags,onlyEvaluateSurveyFeatureFlags:!!n.advanced_only_evaluate_survey_feature_flags,deduplicateCallsPerSession:!!n.advanced_feature_flags_dedup_per_session,cacheTtlMs:n.feature_flag_cache_ttl_ms,refreshIntervalMs:(u=n.remote_config_refresh_interval_ms)!==null&&u!==void 0?u:3e5,idleRefreshBackoff:U(n.remote_config_refresh_interval_ms),requestTimeoutMs:n.feature_flag_request_timeout_ms,requestMaxRetries:Math.max(0,(h=n.feature_flag_request_max_retries)!==null&&h!==void 0?h:1),compression:n.disable_compression?void 0:"best-available",evaluationContexts:(f=(m=n.evaluation_contexts)!==null&&m!==void 0?m:n.evaluation_environments)!==null&&f!==void 0?f:[],flagKeys:Te(n.flag_keys)?n.flag_keys:void 0}})(e,t),!e.evaluation_environments||e.evaluation_contexts||this.Jc||(bk.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.Jc=!0),U(e.flag_keys)||Te(e.flag_keys)||bk.error("Invalid flag_keys found:",e.flag_keys,"Expected array of non-empty strings")}get(){return this.Kc}};const wk=kt("[FeatureFlags]"),Xr=kt("[FeatureFlags]",{debugEnabled:!0}),gg=`" failed. Feature flags didn't load in time.`,ZI=[502,504],_k=["click","keydown","wheel","touchstart","pointerdown"],kk="connection_error",Sk=e=>{const t={};for(let n=0;e.length>n;n++)t[e[n]]=!0;return t},jk=e=>{const t={};for(const[n,i]of hh(e||{}))i&&(t[n]=i);return t},Ck=e=>zo(e)&&(e.name==="RangeError"&&e.message.indexOf("Maximum call stack size exceeded")===0||e.name==="InternalError"&&e.message==="too much recursion"),gi=kt("[Error tracking]"),Ix="webkit-masked-url:",JI=[{value:"isolatedAPI.contexts.topHostname",exact:!1},{value:"No response from target",exact:!0}],eR=["chrome-extension://","moz-extension://","safari-extension:","safari-web-extension:",Ix],tR=["__firefox__","__gCrWeb"],Nk="Refusing to render web experiment since the viewer is a likely bot",nR={icontains:(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>qh(t,e),not_regex:(e,t)=>!qh(t,e),exact:(e,t)=>t===e,is_not:(e,t)=>t!==e},Xn=kt("[Conversations]"),Zr="Conversations not available yet.";function Tk(e,t){var n,i,s,r,o,c,u;const h=(n=e==null?void 0:e.flushIntervalMs)!==null&&n!==void 0?n:3e3,f=(i=e==null?void 0:e.maxBufferSize)!==null&&i!==void 0?i:100,m=t!=null&&t.consoleCapture?void 0:(s=e==null?void 0:e.maxLogsPerInterval)!==null&&s!==void 0?s:1e3,x=U(m)?Math.max(f,2048):Math.max(f,m),y=R(R({},function(){let b="",k="";try{const w=Yt==null?void 0:Yt.userAgent;w&&([b,k]=Bj(w))}catch{}return function(w,S){const j=function(N){if(N)return{}.hasOwnProperty.call(__,N)?__[N]:N}(w);return R(R({},j?{"os.name":j}:{}),S?{"os.version":S}
68:{})}(b,k)}()),e==null?void 0:e.resourceAttributes);return{serviceName:(r=(o=y==null?void 0:y["service.name"])!==null&&o!==void 0?o:e==null?void 0:e.serviceName)!==null&&r!==void 0?r:t==null?void 0:t.serviceNameDefault,serviceVersion:(c=y==null?void 0:y["service.version"])!==null&&c!==void 0?c:e==null?void 0:e.serviceVersion,environment:(u=y==null?void 0:y["deployment.environment"])!==null&&u!==void 0?u:e==null?void 0:e.environment,resourceAttributes:y,beforeSend:e==null?void 0:e.beforeSend,flushIntervalMs:h,maxBufferSize:f,maxQueueSize:x,maxBatchRecordsPerPost:100,rateCapWindowMs:h,maxLogsPerInterval:m,backgroundFlushBudgetMs:0,terminationFlushBudgetMs:0}}const iR=["debug","log","warn","error","info"],sR=e=>{for(;e!=null&&e.__rrweb_original__;)e=e.__rrweb_original__;return e},Ek="console",kC="__posthogHandledLogsRequestError",xg=(e,t)=>{const n=e instanceof Error?e:new Error(t);return n[kC]=!0,n},Ak=e=>!!e&&typeof e=="object"&&e[kC]===!0,Uh=kt("[NetworkMetrics]"),Wv=()=>{var e;return!(B==null||(e=B.performance)===null||e===void 0)&&e.now?B.performance.now():Date.now()},rR={"http:":80,"https:":443},aR=new Set(["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"]),SC=(e,t)=>{var n;const i=String(t);return{method:String(e).toUpperCase(),url:((n=Ss(i))===null||n===void 0?void 0:n.href)||i}},Rx=(e,t,n,i,s,r,o=!1)=>{try{var c,u;const h=s();if(!h)return;const f=n||void 0,m=Wv()-i,x=Ss(t.url);if(x&&x.protocol!=="http:"&&x.protocol!=="https:")return;const y={url:(x==null?void 0:x.href)||t.url,method:t.method},b=Ut(h.name)?h.name(y):Be(h.name)?h.name:"http.client.request.duration";if(!b)return;const k=o&&!f?void 0:((S,j)=>S?400>S?void 0:String(S):(j==null?void 0:j.name)||"_OTHER")(f,r),w=R(R(R(R(R({},(S=>{const j=aR.has(S)?S:"_OTHER";return R({"http.request.method":j},j==="_OTHER"&&S!==j?{"http.request.method_original":S}:{})})(y.method)),x?(S=>{return{"server.address":S.hostname.startsWith("[")&&S.hostname.endsWith("]")?S.hostname.slice(1,-1):S.hostname,"server.port":Number(S.port)||rR[S.protocol],"url.scheme":S.protocol.slice(0,-1),"url.template":(j=S.pathname,j.split("/").map(N=>(E=>/^\d+$/.test(E)||E.length>=8&&/^[0-9a-f-]*\d[0-9a-f-]*$/i.test(E))(N)?":id":N).join("/"))};var j})(x):{}),f?{"http.response.status_code":f}:{}),k?{"error.type":k}:{}),(c=h.attributes)===null||c===void 0?void 0:c.call(h,y,{status:f,durationMs:m}));(u=e.metrics)===null||u===void 0||u.histogram(b,m,{unit:"ms",attributes:w})}catch(h){Uh.error("Failed to record network metric",h)}},jC=()=>{},oR=(e,t)=>Ut(B==null?void 0:B.fetch)?qc(B,"fetch",n=>function(...i){const s=Wv(),r=n.apply(this,i);if(!t())return r;try{var o,c,u;const[h,f]=i,m=SC((o=(c=f==null?void 0:f.method)!==null&&c!==void 0?c:h==null?void 0:h.method)!==null&&o!==void 0?o:"GET",(u=h==null?void 0:h.url)!==null&&u!==void 0?u:h);return r.then(x=>(Rx(e,m,x==null?void 0:x.status,s,t,void 0,!0),x),x=>{throw Rx(e,m,void 0,s,t,x),x})}catch(h){return Uh.error("Failed to observe fetch",h),r}}):jC,lR=(e,t)=>{var n;const i=B==null||(n=B.XMLHttpRequest)===null||n===void 0?void 0:n.prototype;if(!i)return jC;const s=new WeakMap,r=qc(i,"open",c=>function(...u){try{iC.has(this)||s.set(this,SC(u[0],u[1]))}catch(h){Uh.error("Failed to observe XHR open",h)}return c.apply(this,u)}),o=qc(i,"send",c=>function(...u){let h;try{const f=s.get(this);if(f&&t()){const m=Wv();h=()=>{this.removeEventListener("loadend",h),Rx(e,f,this.status,m,t)},Ke(this,"loadend",h)}}catch(f){Uh.error("Failed to observe XHR send",f)}try{return c.apply(this,u)}catch(f){throw h&&this.removeEventListener("loadend",h),f}});return()=>{r(),o()}},Ep={featureFlags:class{constructor(e){this.name="featureFlags",this.Xc=!1,this.featureFlagEventHandlers=[],this.$=wk,this.Yc={},this.td={},this.ed=[],this.nd=!1,this.sd=!1,this.rd=0,this.od=!1,this.ad=!1,this.ld=!1,this.ud=!1,this.hd=0,this.dd=!1,this.an=()=>{const t=this.vd();this.hd=0,t&&this.reloadFeatureFlags()},this.fd=()=>{var t,n;const i=this.pd,s=(t=this.gd)!==null&&t!==void 0?t:i;U(i)||U(s)||this.Rr.remoteRequestsDisabled||!K||K.visibilityState==="hidden"||Date.now()-((n=this.md)!==null&&n!==void 0?n:0)<s||(this.gd=this.dd||!this.Rr.idleRefreshBackoff?i:Math.min(2*s,36e5),this.dd=!1,this.reloadFeatureFlags(),this.yd())},this.bd=()=>{this.dd&&this.gd===this.pd||this._d()},this.ln=()=>{(K==null?void 0:K.visibilityState)==="visible"&&this._d()},"get"in e?this.So=e:(this._instance=e,this.wd=new XI(e.config,e.nl()),this.So=this.wd)}updateConfig(e,t){var n;(n=this.wd)===null||n===void 0||n.update(e,t),this.wo&&this.kd()}setup(e){return this.Fh=e,this.$=e.logger.createLogger("[FeatureFlags]"),_C(e.kv.initialize(),()=>{this.Fh===e&&(this.Fh=void 0,this.wo=e,this.Sd(e))})}Sd(e){var t;if(this.wo===e)return B&&Ke(B,"online",this.an),this.kd(),this.xd=e.registerDynamicEventProperties(()=>
68this.Cd()?this.Yc:this.td),this.$d=(t=this._instance)===null||t===void 0||(t=t.persistence)===null||t===void 0?void 0:t.onCrossTabFeatureFlagChange(()=>{this.Td(),this.Id(),this.Md()}),this.Id(),this.initialize()}_d(){this.dd=!0,this.gd=this.pd,this.fd()}kd(){const e=this.Rr.refreshIntervalMs,t=!this.Rr.remoteRequestsDisabled&&K&&!U(e)&&e>0?e:void 0;this.Rr.idleRefreshBackoff||(this.gd=t),t!==this.pd&&(this.Ed(),U(t)||(this.pd=t,this.gd=t,this.yd(),K!=null&&K.addEventListener&&(Ke(K,Bc,this.ln),mo(_k,n=>{Ke(K,n,this.bd,{capture:!0})}))))}yd(){U(this.pd)||(U(this.Pd)||clearInterval(this.Pd),this.md=Date.now(),this.Pd=setInterval(this.fd,this.pd))}Ed(){var e;U(this.Pd)||(clearInterval(this.Pd),this.Pd=void 0,K==null||(e=K.removeEventListener)===null||e===void 0||e.call(K,"visibilitychange",this.ln),mo(_k,t=>{var n;K==null||(n=K.removeEventListener)===null||n===void 0||n.call(K,t,this.bd,{capture:!0})})),this.pd=void 0,this.gd=void 0,this.dd=!1,this.md=void 0}destroy(){this.Rd()}dispose(){this.Rd()}Rd(){var e,t;this.Ed(),this.rd++,this.ad=!1,this.Fh=void 0,this.wo&&(this.Ad(),(e=this.xd)===null||e===void 0||e.dispose(),this.xd=void 0,(t=this.$d)===null||t===void 0||t.call(this),this.$d=void 0,this.ed=[],B==null||B.removeEventListener("online",this.an),this.wo=void 0)}get Rr(){return this.So.get()}Fd(e){var t;return this.Od&&e in this.Od?this.Od[e]:(t=this.wo)===null||t===void 0?void 0:t.kv.get(e)}Td(){return!!this.Od&&(this.Od=void 0,!0)}Dd(){var e;return!U((e=this.wo)===null||e===void 0?void 0:e.kv.get("$enabled_feature_flags"))&&this.Td()}At(e){this.Ld(()=>{var t;return(t=this.wo)===null||t===void 0?void 0:t.kv.set(e)})}Nd(e,t,n){var i;if(!(!((i=this._instance)===null||i===void 0)&&i.persistence)||!e.$enabled_feature_flags)return;const s=this.Fd("$enabled_feature_flags")||{},r=e.$enabled_feature_flags||{},o=t.flags||t.featureFlags,c=t.flags?Object.entries(t.flags).filter(([,S])=>!(S!=null&&S.failed)).map(([S])=>S):[],u=!!t.errorsWhileComputingFlags&&!!t.flags,h=u?c:n&&!Te(o)?Object.keys(o||{}):Array.from(new Set([...Object.keys(s),...Object.keys(r)])),f=this.Fd("$feature_flag_payloads")||{},m=e.$feature_flag_payloads||{},x=u||n?h:Array.from(new Set([...Object.keys(f),...Object.keys(m)])),y=!u&&!n,b=!!y||h,k=!!y||x,w={[ys]:b,[bi]:b,[rr]:k};e.$feature_flag_details&&(w[ma]=b);for(const S of[ga,mr,yc])U(e[S])||(w[S]=!0);this._instance.persistence.markCrossTabFeatureFlagChanges(w)}Lt(e){this.Ld(()=>{var t;return(t=this.wo)===null||t===void 0?void 0:t.kv.remove(e)})}Ld(e){try{e()}catch(t){this.$.error("Failed to update feature flag persistence",t)}}Id(){const e={};for(const i of[ys,rr,ga,Di]){const s=this.Fd(i);U(s)||(e[i]=s)}this.Yc=e;const t=R({},e),n=this.Fd(bi);if(n)for(const[i,s]of Object.entries(n))t[`$feature/${i}`]=s;this.td=t}Cd(){const e=this.Rr.cacheTtlMs;if(!e||0>=e)return!1;const t=this.Fd(mr);return typeof t!="number"||Date.now()-t>e}qd(){return!!this.Cd()&&(this.ud||this.sd||(this.ud=!0,this.$.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}jd(){const e=this.Rr.evaluationContexts;return e!=null&&e.length?e.filter(t=>{const n=t&&typeof t=="string"&&t.trim().length>0;return n||this.$.error("Invalid evaluation context found:",t,"Expected non-empty string"),n}):[]}Bd(){const e=this.Rr.flagKeys;if(!U(e))return e.filter(t=>{const n=t&&typeof t=="string"&&t.trim().length>0;return n||this.$.error("Invalid flag key found:",t,"Expected non-empty string"),n})}initialize(){var e,t;const n=this.Rr,i=(e=(t=n.bootstrap)===null||t===void 0?void 0:t.featureFlags)!==null&&e!==void 0?e:{};if(Object.keys(i).length){var s,r;const o=(s=(r=n.bootstrap)===null||r===void 0?void 0:r.featureFlagPayloads)!==null&&s!==void 0?s:{},c=Object.keys(i).filter(h=>!U(i[h])).reduce((h,f)=>(h[f]=i[f],h),{}),u=Object.keys(o).filter(h=>c[h]).reduce((h,f)=>(h[f]=o[f],h),{});return this.Hd({featureFlags:c,featureFlagPayloads:u},void 0,{persist:!1})}}updateFlags(e,t,n){var i,s;const r=n!=null&&n.merge&&(i=this.Fd("$enabled_feature_flags"))!==null&&i!==void 0?i:{},o=n!=null&&n.merge&&(s=this.Fd("$feature_flag_payloads"))!==null&&s!==void 0?s:{},c=R(R({},r),e),u=R(R({},o),t),h={};for(const[f,m]of Object.entries(c))h[f]={key:f,enabled:x_(m),variant:v_(m),reason:void 0,metadata:U(u==null?void 0:u[f])?void 0:{id:0,version:void 0,description:void 0,payload:u[f]}};this.Hd({flags:h})}get hasLoadedFlags(){return this.nd}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){const e=this.Fd(ma),t=this.Fd(Di),n=this.Fd(oa);if(!n&&!t)return e||{};const i=ct({},e||{}),s=[...new Set([...Object.keys(n||{}),...Object.keys(t||{})])];for(const c of s){var r;
68const u=i[c],h=t==null?void 0:t[c],f=U(h)?(r=u==null?void 0:u.enabled)!==null&&r!==void 0&&r:!!h,m=U(h)?u==null?void 0:u.variant:typeof h=="string"?h:void 0,x=n==null?void 0:n[c],y=R(R({},u),{},{enabled:f,variant:f?m??(u==null?void 0:u.variant):void 0});var o;f!==(u==null?void 0:u.enabled)&&(y.original_enabled=u==null?void 0:u.enabled),m!==(u==null?void 0:u.variant)&&(y.original_variant=u==null?void 0:u.variant),x&&(y.metadata=R(R({},u==null?void 0:u.metadata),{},{payload:x,original_payload:u==null||(o=u.metadata)===null||o===void 0?void 0:o.payload})),i[c]=y}return this.Xc||(this.$.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:n,finalDetails:i}),this.Xc=!0),i}getAllFeatureFlags(){const e=this.getFlagVariants(),t=this.getFlagPayloads();return Object.keys(e).map(n=>{const i=e[n];return{key:n,enabled:x_(i),variant:v_(i),payload:g_(t[n])}})}getFlagVariants(){const e=this.Fd(bi),t=this.Fd(Di);if(!t)return e||{};const n=ct({},e||{}),i=Object.keys(t);for(let s=0;i.length>s;s++)n[i[s]]=t[i[s]];return this.Xc||(this.$.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:n}),this.Xc=!0),n}getFlagPayloads(){const e=this.Fd(rr),t=this.Fd(oa);if(!t)return e||{};const n=ct({},e||{}),i=Object.keys(t);for(let s=0;i.length>s;s++)n[i[s]]=t[i[s]];return this.Xc||(this.$.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:n}),this.Xc=!0),n}reloadFeatureFlags(){this.od||this.Rr.featureFlagsDisabled||this.vd()||(this.sd&&(this.ad=!0),this.zd||(this.ed.slice().forEach(e=>{try{e()}catch(t){this.$.error("Error while running feature flags reloading callback",t)}}),this.zd=setTimeout(()=>{this.Ud()},5)))}Ad(){clearTimeout(this.zd),this.zd=void 0}onReloading(e){return this.ed.push(e),()=>{this.ed=this.ed.filter(t=>t!==e)}}ensureFlagsLoaded(){this.nd||this.sd||this.zd||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.od=e}resetFlagCallReported(){this.Lt(lr)}Ud(e){this.Ad();const t=this.wo;if(!t||this.Rr.remoteRequestsDisabled||this.vd())return;if(this.sd)return void(this.ad=!0);const n={token:t.projectToken,distinct_id:t.distinctId,groups:t.groups,$anon_distinct_id:this.$anon_distinct_id,person_properties:R(R(R({},t.initialPersonProperties),this.Fd("$stored_person_properties")||{}),{},{$lib:t.library.name,$lib_version:t.library.version}),group_properties:this.Fd(or),timezone:K5()};U(t.deviceId)||(n.$device_id=t.deviceId),(e!=null&&e.disableFlags||this.Rr.featureFlagsDisabled)&&(n.disable_flags=!0);const i=this.jd();i.length&&(n.evaluation_contexts=i);const s=this.Bd();U(s)||(n.flag_keys=s);const r=this.Rr.onlyEvaluateSurveyFeatureFlags,o="/flags/?v=2"+(r?"&only_evaluate_survey_feature_flags=true":""),c=this.rd;this.sd=!0;const u=()=>{this.ad&&(this.ad=!1,this.Ud())},h=b=>{var k,w;const S=(k=b.json)!==null&&k!==void 0?k:{},j=b.statusCode!==200;if(this.sd=!1,c!==this.rd)return void u();if(this.Wd(b.statusCode),j||this.ad||(this.$anon_distinct_id=void 0),n.disable_flags&&!this.ad)return;this.ld=!j;const N=[];b.error?N.push(b.error instanceof Error&&b.error.name==="AbortError"?"timeout":b.error instanceof Error?kk:"unknown_error"):b.statusCode!==200&&N.push(`api_error_${b.statusCode}`),S.errorsWhileComputingFlags&&N.push("errors_while_computing_flags");const E=!!(!((w=S.quotaLimited)===null||w===void 0)&&w.includes("feature_flags"));E&&N.push("quota_limited"),this.At({[$c]:N}),E?this.$.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset.  Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):n.disable_flags||this.Hd(S,j,{partialResponse:r}),u()},f=b=>{this.sd=!1,c===this.rd&&(this.At({[$c]:[kk]}),this.$.error("Feature flag request failed",b),this.Dd()&&this.Md(!0)),u()};let m=this.Rr.requestMaxRetries;const x=()=>m>0&&c===this.rd,y=()=>{if(c!==this.rd||!this.wo||this.Rr.remoteRequestsDisabled)return this.sd=!1,void u();try{t.sendRequest(o,{target:"flags",method:"POST",body:n,compression:this.Rr.compression,sentAt:"body",timeoutMs:this.Rr.requestTimeoutMs}).then(b=>{if((k=>ZI.includes(k.statusCode)||(w=>
68w.statusCode===0&&w.error instanceof Error&&w.error.name==="AbortError")(k))(b)&&x())return m--,void setTimeout(y,500);h(b)}).catch(f)}catch(b){f(b)}};y()}vd(){return B5(this.hd,3)}Wd(e){this.hd=z5(e,this.hd,3,()=>this.$.warn("Feature flag requests are failing before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped refreshing feature flags; will try again when connectivity changes."))}getFeatureFlag(e,t={}){var n;if(t.fresh&&!this.ld)return;if(!(this.nd||this.getFlags()&&this.getFlags().length>0))return void this.$.warn('getFeatureFlag for key "'+e+gg);if(this.qd())return;const i=this.getFeatureFlagResult(e,t);return(n=i==null?void 0:i.variant)!==null&&n!==void 0?n:i==null?void 0:i.enabled}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){const t=this.getFeatureFlagResult(e,{send_event:!1});return t==null?void 0:t.payload}getFeatureFlagResult(e,t={}){if(t.fresh&&!this.ld)return;if(!(this.nd||this.getFlags()&&this.getFlags().length>0))return void this.$.warn('getFeatureFlagResult for key "'+e+gg);if(this.qd())return;const n=this.getFlagVariants(),i=e in n,s=n[e],r=this.getFlagPayloads()[e],o=String(s),c=this.Fd("$feature_flag_request_id")||void 0,u=this.Fd("$feature_flag_evaluated_at")||void 0;let h,f=this.Fd("$flag_call_reported")||{};if(this.Rr.deduplicateCallsPerSession){var m;const O=(m=this.wo)===null||m===void 0?void 0:m.session.sessionId,G=this.Fd(ic);O&&O!==G&&(f={},h=O)}if(t.send_event||!("send_event"in t))if(e in f&&f[e].includes(o))h&&this.At({[lr]:f,[ic]:h});else{var x,y,b,k,w,S,j,N,E,T,L,M;Te(f[e])?f[e].push(o):f[e]=[o],this.At(R({[lr]:f},h?{[ic]:h}:{}));const O=this.getFeatureFlagDetails(e),G=[...(x=this.Fd("$feature_flag_errors"))!==null&&x!==void 0?x:[]];U(s)&&G.push("flag_missing");const X={$feature_flag:e,$feature_flag_response:s,$feature_flag_payload:r??null,$feature_flag_request_id:c,$feature_flag_evaluated_at:u,$feature_flag_bootstrapped_response:(y=(b=this.Rr.bootstrap)===null||b===void 0||(b=b.featureFlags)===null||b===void 0?void 0:b[e])!==null&&y!==void 0?y:null,$feature_flag_bootstrapped_payload:(k=(w=this.Rr.bootstrap)===null||w===void 0||(w=w.featureFlagPayloads)===null||w===void 0?void 0:w[e])!==null&&k!==void 0?k:null,$used_bootstrap_value:!this.ld};U(O==null||(S=O.metadata)===null||S===void 0?void 0:S.has_experiment)||(X.$feature_flag_has_experiment=O.metadata.has_experiment),U(O==null||(j=O.metadata)===null||j===void 0?void 0:j.version)||(X.$feature_flag_version=O.metadata.version);const ee=(N=O==null||(E=O.reason)===null||E===void 0?void 0:E.description)!==null&&N!==void 0?N:O==null||(T=O.reason)===null||T===void 0?void 0:T.code;var A;ee&&(X.$feature_flag_reason=ee),!(O==null||(L=O.metadata)===null||L===void 0)&&L.id&&(X.$feature_flag_id=O.metadata.id),U(O==null?void 0:O.original_variant)&&U(O==null?void 0:O.original_enabled)||(X.$feature_flag_original_response=U(O.original_variant)?O.original_enabled:O.original_variant),!(O==null||(M=O.metadata)===null||M===void 0)&&M.original_payload&&(X.$feature_flag_original_payload=O==null||(A=O.metadata)===null||A===void 0?void 0:A.original_payload),G.length&&(X.$feature_flag_error=G.join(",")),this.Vd(X)}else h&&this.At({[lr]:f,[ic]:h});return i?{key:e,enabled:!!s,variant:typeof s=="string"?s:void 0,payload:g_(r)}:void 0}Vd(e){try{var t;(t=this.wo)===null||t===void 0||t.capture("$feature_flag_called",e)}catch(n){this.$.error("Failed to capture feature flag call",n)}}getRemoteConfigPayload(e,t){this.Gd(e,t)}Gd(e,t){var n=this;return dt(function*(){const i=n.wo;if(!i)return;const s={distinct_id:i.distinctId,token:i.projectToken,person_properties:{$lib:i.library.name,$lib_version:i.library.version}},r=n.jd();r.length&&(s.evaluation_contexts=r);const o=n.Bd();let c;U(o)||(s.flag_keys=o);try{var u;const h=(u=(yield i.sendRequest("/flags/?v=2",{target:"flags",method:"POST",body:s,compression:n.Rr.compression,sentAt:"body",timeoutMs:n.Rr.requestTimeoutMs})).json)===null||u===void 0?void 0:u.featureFlagPayloads;c=(h==null?void 0:h[e])||void 0}catch(h){return void n.$.error("Remote config feature flag request failed",h)}try{t(c)}catch(h){n.$.error("Remote config feature flag callback failed",h)}})()}isFeatureEnabled(e,t={}){if(t.fresh&&!this.ld)return t.defaultValue;if(!(this.nd||this.getFlags()&&this.getFlags().length>0))return this.$.warn('isFeatureEnabled for key "'+e+gg),t.defaultValue;const n=this.getFeatureFlag(e,t);return U(n)?t.defaultValue:!!n}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(t=>t!==e)}
68receivedFeatureFlags(e,t,n){this.Hd(e,t,n)}Hd(e,t,n){if(!this.wo)return;this.nd=!0;const i=((s,r={},o={},c={},u,h=wk)=>{const f=((N,E)=>{const T=N.flags;if(T){const L=Object.fromEntries(Object.keys(T).map(A=>{var O;return[A,(O=T[A].variant)!==null&&O!==void 0?O:T[A].enabled]})),M=Object.fromEntries(Object.keys(T).filter(A=>T[A].enabled).filter(A=>{var O;return!U((O=T[A].metadata)===null||O===void 0?void 0:O.payload)}).map(A=>{var O;return[A,(O=T[A].metadata)===null||O===void 0?void 0:O.payload]}));return R(R({},N),{},{featureFlags:L,featureFlagPayloads:M})}return N.featureFlags&&E.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),N})(s,h),m=f.flags,x=f.featureFlags,y=f.featureFlagPayloads;if(!x)return;const b=s.requestId,k=s.evaluatedAt;if(Te(x)){h.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");const N={};if(x)for(let E=0;x.length>E;E++)N[x[E]]=!0;return{[ys]:x,[bi]:N,[yc]:!1}}let w=x,S=y,j=m;if(u!=null&&u.partialResponse){const N=Object.keys(w),E=S||{};w=R(R({},r),w),S=R(R({},o),E),N.forEach(T=>{T in E||S==null||delete S[T]}),j=R(R({},c),j)}else if(s.errorsWhileComputingFlags)if(m){const N=new Set(Object.keys(m).filter(T=>{var L;return!(!((L=m[T])===null||L===void 0)&&L.failed)}));w=R(R({},r),Object.fromEntries(Object.entries(w).filter(([T])=>N.has(T))));const E=Object.fromEntries(Object.entries(S||{}).filter(([T])=>N.has(T)));S=R(R({},o),E),N.forEach(T=>{T in E||S==null||delete S[T]}),j=R(R({},c),Object.fromEntries(Object.entries(j||{}).filter(([T])=>N.has(T))))}else w=R(R({},r),w),S=R(R({},o),S),j=R(R({},c),j);return R(R({[ys]:Object.keys(jk(w)),[bi]:w||{},[rr]:S||{},[ma]:j||{},[yc]:s.minimalFlagCalledEvents===!0},b?{[ga]:b}:{}),k?{[mr]:k}:{})})(e,this.getFlagVariants(),this.getFlagPayloads(),this.getFlagsWithDetails(),n,this.$);if(i)if((n==null?void 0:n.persist)===!1){const s=!U(this.wo.kv.get(bi));this.Od=i,s||this.At(i)}else this.Td(),this.Nd(i,e,!!(n!=null&&n.partialResponse)),this.At(i);else t&&this.Dd();t||(this.ud=!1),this.Md(t)}override(e,t=!1){this.$.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){this.Zd(e)}Zd(e){if(this.wo){if(e===!1)return this.Lt([Di,oa]),this.Md(),void Xr.info("All overrides cleared");if(Te(e))return this.At({[Di]:Sk(e)}),this.Md(),void Xr.info("Flag overrides set",{flags:e});if(e&&typeof e=="object"&&("flags"in e||"payloads"in e)){var t;const n=e;this.Xc=!!((t=n.suppressWarning)!==null&&t!==void 0&&t);const i={},s=n.flags,r=n.payloads;return s&&(i[Di]=Te(s)?Sk(s):s),r&&(i[oa]=r),Object.keys(i).length&&this.At(i),s===!1&&r===!1?this.Lt([Di,oa]):s===!1?this.Lt(Di):r===!1&&this.Lt(oa),this.Md(),s===!1?Xr.info("Flag overrides cleared"):s&&Xr.info("Flag overrides set",{flags:s}),void(r===!1?Xr.info("Payload overrides cleared"):r&&Xr.info("Payload overrides set",{payloads:r}))}if(e&&typeof e=="object")return this.At({[Di]:e}),this.Md(),void Xr.info("Flag overrides set",{flags:e});this.$.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:e})}else this.$.warn("posthog.featureFlags.overrideFeatureFlags called before feature flags were ready")}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.nd){const{flags:t,flagVariants:n}=this.Qd();try{e(t,n)}catch(i){this.$.error("Error while running feature flags callback",i)}}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,n){var i;const s=(this.Fd("$early_access_features")||[]).find(h=>h.flagKey===e),r={[`$feature_enrollment/${e}`]:t},o={$feature_flag:e,$feature_enrollment:t,$set:r};s&&(o.$early_access_feature_name=s.name),n&&(o.$feature_enrollment_stage=n);const c=R(R({},this.getFlagVariants()),{},{[e]:t});(i=this._instance)===null||i===void 0||(i=i.persistence)===null||i===void 0||i.markCrossTabFeatureFlagChanges({$active_feature_flags:[e],$enabled_feature_flags:[e],$stored_person_properties:Object.keys(r)}),this.At({[ys]:Object.keys(jk(c)),[bi]:c,[ar]:R(R({},this.Fd("$stored_person_properties")||{}),r)}),this.Md();try{var u;(u=this.wo)===null||u===void 0||u.capture("$feature_enrollment_update",o)}catch(h){this.$.error("Failed to capture early access feature enrollment",h)}}getEarlyAccessFeatures(e,t=!1,n){const i=this.Fd(xx);!i||t?this.Jd(e,n):e(i)}Jd(e,t){var n=this;return dt(function*(){const i=n.wo;if(!i)return;const s=t?`&${t.map(o=>`stage=${o}`).join("&")}`:"";let r;try{const o=yield i.sendRequest(`/api/early_access_features/?token=${i.projectToken}${s}`,{target:"api",method:"GET",sentAt:"query"});if(!o.json)return;r=o.json.earlyAccessFeatures,n.At({[xx]:r})}catch(o){return void n.$.error("Early access feature request failed",o)}try{e(r)}catch(o){n.$.error("Early access feature callback failed",o)}})()}Qd(){const e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter(n=>t[n]),flagVariants:Object.keys(t).filter(n=>t[n]).reduce((n,i)=>(n[i]=t[i],n),{})}}Md(e){this.Id();const{flags:t,flagVariants:n}=this.Qd();
68this.featureFlagEventHandlers.forEach(i=>{try{i(t,n,{errorsLoading:e})}catch(s){this.$.error("Error while running feature flags callback",s)}})}setPersonPropertiesForFlags(e,t=!0){this.Kd(e,t)}Kd(e,t=!0){const n=this.Fd("$stored_person_properties")||{},i=(e==null?void 0:e.$set)||(e!=null&&e.$set_once?{}:e),s=e==null?void 0:e.$set_once,r={};if(s)for(const o in s)({}).hasOwnProperty.call(s,o)&&(o in n||(r[o]=s[o]));this.At({[ar]:R(R(R({},n),r),i)}),t&&this.reloadFeatureFlags()}unsetPersonPropertiesForFlags(e,t=!0){const n=R({},this.Fd("$stored_person_properties")||{});e.forEach(i=>{delete n[i]}),this.At({[ar]:n}),t&&this.reloadFeatureFlags()}resetPersonPropertiesForFlags(e=!0){this.Lt(ar),e&&this.reloadFeatureFlags()}setGroupPropertiesForFlags(e,t=!0){const n=this.Fd("$stored_group_properties")||{},i=R({},n);for(const s of Object.keys(e))i[s]=R(R({},n[s]),e[s]);this.At({[or]:i}),t&&this.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){const t=this.Fd("$stored_group_properties")||{};this.At({[or]:R(R({},t),{},{[e]:{}})})}else this.Lt(or)}reset(){this.rd++,this.ad=!1,this.Yc={},this.td={},this.Od=void 0,this.nd=!1,this.od=!1,this.ld=!1,this.$anon_distinct_id=void 0,this.Ad(),this.Xc=!1,this.hd=0}}},cR={sessionRecording:class{get Rr(){return this._instance.config}get Ml(){return this._instance.persistence}get started(){var e;return!!(!((e=this.Xd)===null||e===void 0)&&e.isStarted)}get status(){var e,t;return this.Yd==="awaiting_config"||this.Yd==="missing_config"?this.Yd:(e=(t=this.Xd)===null||t===void 0?void 0:t.status)!==null&&e!==void 0?e:this.Yd}constructor(e){if(this._instance=e,this._forceAllowLocalhostNetworkCapture=!1,this.Yd=pg,this.tv=void 0,this.ev=!1,this.Xe=(()=>{var t,n;if(!(K!=null&&K.visibilityState)||K.visibilityState==="visible")return!0;const i=B==null||(t=B.performance)===null||t===void 0||(n=t.getEntriesByType)===null||n===void 0?void 0:n.call(t,"visibility-state");return!(i!=null&&i.length)||i.some(s=>s.name==="visible")})(),this.ln=()=>{var t,n;(K==null?void 0:K.visibilityState)==="visible"&&(this.Xe=!0,(t=this.Xd)===null||t===void 0||(n=t.setDocumentWasEverVisible)===null||n===void 0||n.call(t,!0))},!this._instance.sessionManager)throw ds.error("started without valid sessionManager"),new Error("[SessionRecording] started without valid sessionManager. This is a bug.");if(this.Rr.cookieless_mode==="always")throw new Error('[SessionRecording] cannot be used with cookieless_mode="always"');K!=null&&K.addEventListener&&Ke(K,"visibilitychange",this.ln)}initialize(){this.startIfEnabledOrStop()}dispose({discardBufferedEvents:e=!1}={}){var t;this.ev=!0,K==null||(t=K.removeEventListener)===null||t===void 0||t.call(K,"visibilitychange",this.ln),e?this.iv(!0):this.stopRecording()}get nv(){var e;const t=!!(!((e=this._instance.get_property("$session_recording_remote_config"))===null||e===void 0)&&e.enabled),n=!this.Rr.disable_session_recording,i=this.Rr.disable_session_recording||this._instance.consent.isOptedOut();return B&&t&&n&&!i}startIfEnabledOrStop(e){var t;if(this.ev||this.nv&&(!((t=this.Xd)===null||t===void 0)&&t.isStarted))return;const n=!U(Object.assign)&&!U(Array.from);this.nv&&n?(this.sv(e),ds.info("starting")):(this.Yd=pg,this.stopRecording())}sv(e){var t,n;if(this.nv)if(this.Yd!=="awaiting_config"&&this.Yd!=="missing_config"&&(this.Yd=mk),(we==null||(t=we.__PosthogExtensions__)===null||t===void 0||(t=t.rrweb)===null||t===void 0?void 0:t.record)&&((n=we.__PosthogExtensions__)===null||n===void 0?void 0:n.initSessionRecording))this.rv(e);else{var i,s;const r=this._instance.sessionManager;(i=we.__PosthogExtensions__)===null||i===void 0||(s=i.loadExternalDependency)===null||s===void 0||s.call(i,this._instance,this.ov,o=>{if(!this.ev&&this.nv&&this._instance.sessionManager===r)return o?(this._instance.register_for_session({$sdk_debug_recording_script_not_loaded:!0}),ds.error("could not load recorder",o)):void this.rv(e);this.Yd="disabled"})}}stopRecording(){var e,t;(e=this.tv)===null||e===void 0||e.call(this),this.tv=void 0,(t=this.Xd)===null||t===void 0||t.stop()}iv(e=!1){var t,n;(t=this.tv)===null||t===void 0||t.call(this),this.tv=void 0,(n=this.Xd)===null||n===void 0||n.discard({discardProducerEvents:e})}av(){var e,t;(e=this.Ml)===null||e===void 0||e.unregister("$session_is_sampled"),(t=this.Ml)===null||t===void 0||t.unregister("$replay_sample_rate")}lv(e,t){if(Le(e))return null;const n=jt(e)?e:parseFloat(e);return typeof(i=n)!="number"||!Number.isFinite(i)||0>i||i>1?(ds.warn(`${t} must be between 0 and 1. Ignoring invalid value:`,e),null):n;var i}uv(e){if(this.Ml){var t,n;const i=this.Ml,s=()=>{var r;const o=e.sessionRecording===!1?void 0:e.sessionRecording,c=this.lv((r=this.Rr.session_recording)===null||r===void 0?void 0:r.sampleRate,"session_recording.sampleRate"),u=this.lv(o==null?void 0:o.sampleRate,"remote config sampleRate"),h=c??u;Le(h)&&this.av();const f=o==null?void 0:o.minimumDurationMilliseconds;i.register({[vc]:R(R({cache_timestamp:Date.now(),enabled:!!o},o),{},{networkPayloadCapture:R({capturePerformance:e.capturePerformance},o==null?void 0:o.networkPayloadCapture),canvasRecording:{enabled:o==null?void 0:o.recordCanvas,fps:o==null?void 0:o.canvasFps,quality:o==null?void 0:o.canvasQuality},sampleRate:h,minimumDurationMilliseconds:U(f)?null:f,endpoint:o==null?void 0:o.endpoint,triggerMatchType:o==null?void 0:o.triggerMatchType,masking:o==null?void 0:o.masking,urlTriggers:o==null?void 0:o.urlTriggers,version:o==null?void 0:o.version,triggerGroups:o==null?void 0:o.triggerGroups})})};s(),(t=this.tv)===null||t===void 0||t.call(this),this.tv=(n=this._instance.sessionManager)===null||n===void 0?void 0:n.onSessionId(s)}}onRemoteConfig(e){const t=e.ok?e.config:void 0;return t&&"sessionRecording"in t?t.sessionRecording===!1?(this.uv(t),void this.iv()):(this.uv(t),void this.startIfEnabledOrStop()):(this.Yd==="awaiting_config"&&(this.Yd="missing_config",this._instance.register_for_session({[S5]:!0}),ds.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(e,t="log"){var n;!((n=this.Xd)===null||n===void 0)&&n.log?this.Xd.log(e,t):ds.warn("log called before recorder was ready")}get ov(){var e,t;const n=(e=this._instance)===null||e===void 0||(e=e.persistence)===null||e===void 0?void 0:e.get_property(vc);return(n==null||(t=n.scriptConfig)===null||t===void 0?void 0:t.script)||"lazy-recorder"}hv(){const e=this._instance.get_property(vc);if(!e)return!1;let t;try{t=typeof e=="object"?e:JSON.parse(e)}catch(n){return ds.warn("persisted remote config for session recording is invali
68d and will be ignored",n),!1}return!Le(t.cache_timestamp)&&36e5>=Date.now()-t.cache_timestamp}rv(e){var t,n,i;if(!this.ev&&this.nv&&this._instance.sessionManager){if(!(!((t=we.__PosthogExtensions__)===null||t===void 0)&&t.initSessionRecording))return ds.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[k5]:!0});var s;if(this.Xd||(this.Xd=(s=we.__PosthogExtensions__)===null||s===void 0?void 0:s.initSessionRecording(this._instance,this.Xe),this.Xd._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.hv())return this.Yd==="missing_config"||this.Yd==="awaiting_config"?void 0:(this.Yd="awaiting_config",ds.info("persisted remote config is stale, requesting fresh config before starting"),void new X5(this._instance).load());this.Yd=mk,(n=(i=this.Xd).setDocumentWasEverVisible)===null||n===void 0||n.call(i,this.Xe),this.Xd.start(e)}else this.Yd=pg}onRRwebEmit(e){var t,n;(t=this.Xd)===null||t===void 0||(n=t.onRRwebEmit)===null||n===void 0||n.call(t,e)}overrideLinkedFlag(){var e,t;this.Xd||(t=this.Ml)===null||t===void 0||t.register({$replay_override_linked_flag:!0}),(e=this.Xd)===null||e===void 0||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.Xd||(t=this.Ml)===null||t===void 0||t.register({$replay_override_sampling:!0}),(e=this.Xd)===null||e===void 0||e.overrideSampling()}overrideTrigger(e){var t,n;this.Xd||(n=this.Ml)===null||n===void 0||n.register({[e==="url"?"$replay_override_url_trigger":"$replay_override_event_trigger"]:!0}),(t=this.Xd)===null||t===void 0||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return((e=this.Xd)===null||e===void 0?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var n;return!!(!((n=this.Xd)===null||n===void 0)&&n.tryAddCustomEvent(e,t))}flushBeforeIdentityReset(){var e,t;(e=this.Xd)===null||e===void 0||(t=e.flushBeforeIdentityReset)===null||t===void 0||t.call(e)}}},dR={autocapture:class extends DI{constructor(e){super(new FI(e)),this.instance=e}},historyAutocapture:class{constructor(e){this.dv=!1,this._instance=e,this.vv=this.fv()}initialize(){this.startIfEnabled()}get isEnabled(){const e=this.pv();return!!(e.path||e.search||this.gv(e))}startIfEnabled(){this.isEnabled&&(ae.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}startIfEnabledOrStop(){this.stop(),this.vv=this.fv(),this.startIfEnabled()}stop(){this.mv&&this.mv(),this.mv=void 0,this.yv&&this.yv(),this.yv=void 0,ae.info("History API monitoring stopped")}monitorHistoryChanges(){B&&B.history&&(this.bv("pushState"),this.bv("replaceState"),this._v(),this.gv()&&this.wv())}bv(e){var t;if(!B||!((t=B.history[e])===null||t===void 0)&&t.__posthog_wrapped__)return;const n=this;qc(B.history,e,i=>function(s,r,o){var c;n.Sv(o)&&n.xv(),i.call(this,s,r,o),n.Cv(e,!n.dv&&(B==null||(c=B.event)===null||c===void 0?void 0:c.type)!=="popstate")})}fv(){const e=B==null?void 0:B.location;if(e!=null&&e.pathname)return{pathname:e.pathname,search:e.search,hash:e.hash}}pv(){const e=this._instance.config.capture_pageview;return e==="history_change"?{path:!0}:We(e)?e:{}}gv(e=this.pv()){return!!e.hash&&!this._instance.config.disable_capture_url_hashes}$v(e){const t=this.pv(),n=this.vv;return!(!n||!(t.path&&e.pathname!==n.pathname||t.search&&e.search!==n.search||this.gv(t)&&e.hash!==n.hash))}Cv(e,t=!1){try{t||this.xv();const n=this.fv();if(!n)return;if(this.$v(n)){const i=()=>this._instance.capture(Lv,{navigation_type:e});t?(this.Tv=i,Promise.resolve().then(()=>this.xv())):i()}this.vv=n}catch(n){ae.error(`Error capturing ${e} pageview`,n)}}Sv(e){var t,n;return!(Le(e)||!B)&&((t=Ss(String(e)))===null||t===void 0?void 0:t.href)!==((n=B.location)===null||n===void 0?void 0:n.href)}xv(){const e=this.Tv;if(e){this.Tv=void 0,this.dv=!0;try{e()}catch(t){ae.error("Error capturing deferred pageview",t)}finally{this.dv=!1}this.vv=this.fv()}}_v(){if(this.mv)return;const e=()=>{this.Cv("popstate")};Ke(B,"popstate",e),this.mv=()=>{B&&B.removeEventListener("popstate",e)}}wv(){if(this.yv)return;const e=()=>{this.Cv("hashchange")};Ke(B,"hashchange",e),this.yv=()=>{B&&B.removeEventListener("hashchange",e)}}},heatmaps:class{get Rr(){return this.instance.config}constructor(e){var t;this.Iv=!1,this.xo=!1,this.Mv=null,this.instance=e,this.Iv=!!(!((t=this.instance.persistence)===null||t===void 0)&&t.props[px]),this.rageclicks=new wC(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){let e=5e3;return We(this.Rr.capture_heatmaps)&&this.Rr.capture_heatmaps.flush_interval_milliseconds&&(e=this.Rr.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return Le(this.Rr.capture_heatmaps)?Le(this.Rr.enable_heatmaps)?this.Iv:this.Rr.enable_heatmaps:this.Rr.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.xo)return;VI.info("starting..."),this.Ev(),this.ln()}else{var e;clearInterval((e=this.Mv)!==null&&e!==void 0?e:void 0),this.Pv(),this.getAndClearBuffer()}}onRemoteConfig(e){if(!e.ok)return;const t=e.config;if(!("heatmaps"in t))return;const n=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[px]:n}),this.Iv=n,this.startIfEnabled()}getAndClearBuffer(){const e=this.Rt;return this.Rt=void 0,e}Rv(e){fg(e.originalEvent)&&this.Tr(e.originalEvent,"deadclick")}ln(){this.Mv&&clearInterval(this.Mv),this.Mv=(K==null?void 0:K.visibilityState)==="visible"?setInterval(this.bl.bind(this),this.flushIntervalMilliseconds):null}
68Ev(){B&&K&&(this.Av=this.bl.bind(this),Ke(B,$h,this.Av),this.Fv=e=>this.Tr(e||(B==null?void 0:B.event)),Ke(K,"click",this.Fv,{capture:!0}),this.Ov=e=>this.Dv(e||(B==null?void 0:B.event)),Ke(K,"mousemove",this.Ov,{capture:!0}),this.Lv=new H_(this.instance,qP,this.Rv.bind(this)),this.Lv.startIfEnabledOrStop(),this.Nv=this.ln.bind(this),Ke(K,Bc,this.Nv),this.xo=!0)}Pv(){var e;B&&K&&(this.Av&&B.removeEventListener($h,this.Av),this.Fv&&K.removeEventListener("click",this.Fv,{capture:!0}),this.Ov&&K.removeEventListener("mousemove",this.Ov,{capture:!0}),this.Nv&&K.removeEventListener(Bc,this.Nv),clearTimeout(this.qv),(e=this.Lv)===null||e===void 0||e.stop(),this.xo=!1)}jv(e,t){const n=this.instance.scrollManager.scrollY(),i=this.instance.scrollManager.scrollX(),s=this.instance.scrollManager.scrollElement(),r=function(o,c,u){let h=o;for(;h&&Ki(h)&&!on(h,"body");){if(h===u)return!1;let y;try{var f,m,x;y=(f=(m=(x=h.ownerDocument)===null||x===void 0?void 0:x.defaultView)!==null&&m!==void 0?m:B)===null||f===void 0?void 0:f.getComputedStyle(h).position}catch{return!1}if(Ae(c,y))return!0;h=R5(h)}return!1}(wc(e),["fixed","sticky"],s);return{x:e.clientX+(r?0:i),y:e.clientY+(r?0:n),target_fixed:r,type:t}}Tr(e,t="click"){var n;if(R_(e.target)||!fg(e))return;const i=this.jv(e,t);!((n=this.rageclicks)===null||n===void 0)&&n.isRageClick(e.clientX,e.clientY,new Date().getTime())&&O5(wc(e),this.instance.config.rageclick)&&this.Zs(R(R({},i),{},{type:"rageclick"})),this.Zs(i)}Dv(e){!R_(e.target)&&fg(e)&&(clearTimeout(this.qv),this.qv=setTimeout(()=>{this.Zs(this.jv(e,"mousemove"))},500))}Zs(e){if(!B)return;const t=this.Rr.disable_capture_url_hashes?yr(B.location.href):B.location.href,n=this.Rr.custom_personal_data_properties,i=this.Rr.mask_personal_data_properties?[...Po,...n||[]]:[],s=Hc(t,i,Wc);this.Rt=this.Rt||{},this.Rt[s]||(this.Rt[s]=[]),this.Rt[s].push(e)}bl(){this.Rt&&!An(this.Rt)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:H_,webVitalsAutocapture:class{constructor(e){var t;this._instance=e,this.Iv=!1,this.xo=!1,this.Rt={navigationKey:void 0,url:void 0,metrics:[],firstMetricTimestamp:void 0},this.Bv=()=>{clearTimeout(this.Hv),this.Hv=void 0,this.Rt.metrics.length!==0&&(this._instance.capture("$web_vitals",R({$current_url:this.Rt.url},this.Rt.metrics.reduce((n,i)=>R(R({},n),{},{[`$web_vitals_${i.name}_event`]:R({},i),[`$web_vitals_${i.name}_value`]:i.value}),{}))),this.Rt={navigationKey:void 0,url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.zv=n=>{var i;if(this.Rt=this.Rt||{navigationKey:void 0,url:void 0,metrics:[],firstMetricTimestamp:void 0},Le(n==null?void 0:n.name)||Le(n==null?void 0:n.value))return void Qr.error("Invalid metric received",n);const s=typeof n.navigationURL=="string"?n.navigationURL:void 0,r=this.Uv(s);if(U(r))return;const o=jt(n.navigationId)||typeof n.navigationId=="string"?`navigation:${n.navigationId}`:`url:${r}`;if(this.Wv&&n.value>=this.Wv)return void Qr.error("Ignoring metric with value >= "+this.Wv,n);this.Rt.navigationKey!==o&&(this.Bv(),this.Hv=setTimeout(this.Bv,this.flushToCaptureTimeoutMs)),U(this.Rt.navigationKey)&&(this.Rt.navigationKey=o,this.Rt.url=r),this.Rt.firstMetricTimestamp=U(this.Rt.firstMetricTimestamp)?Date.now():this.Rt.firstMetricTimestamp;const c=(i=this._instance.sessionManager)===null||i===void 0?void 0:i.checkAndGetSessionAndWindowId(!0),u=R(R(R({},n),s?{navigationURL:r}:{}),{},{$current_url:r,timestamp:Date.now()});if(delete u.entries,We(n.attribution)&&this.attributionMetrics.indexOf(n.name)>-1){const h={};for(const f of zI){const m=f==="url"&&typeof n.attribution[f]=="string"?this.Uv(n.attribution[f]):n.attribution[f];U(m)||(h[f]=m)}u.attribution=h}else delete u.attribution;U(c)||(u.$session_id=c.sessionId,u.$window_id=c.windowId),this.Rt.metrics.push(u),this.Rt.metrics.length===this.allowedMetrics.length&&this.Bv()},this.Vv=()=>{if(this.xo)return;let n,i,s,r,o=!1;const c=we.__PosthogExtensions__,u=c==null?void 0:c.postHogWebVitalsCallbacksByFlavor,h=(u==null?void 0:u[this.Gv])||(this.Gv==="web-vitals"&&U(u)?c==null?void 0:c.postHogWebVitalsCallbacks:void 0);if(!U(h)){const x=h.withoutAttribution,y=this.attributionMetrics;o=!U(x),n=y.indexOf("LCP")>-1?h.onLCP:(x==null?void 0:x.onLCP)||h.onLCP,i=y.indexOf("CLS")>-1?h.onCLS:(x==null?void 0:x.onCLS)||h.onCLS,s=y.indexOf("FCP")>-1?h.onFCP:(x==null?void 0:x.onFCP)||h.onFCP,r=y.indexOf("INP")>-1?h.onINP:(x==null?void 0:x.onINP)||h.onINP}if(!(n&&i&&s&&r))return void Qr.error("web vitals callbacks not loaded - not starting");const f={reportSoftNavs:this.useSoftNavs},m=o&&this.attributionMetrics.indexOf("INP")>-1?R(R({},f),{},{includeProcessedEventEntries:!1}):f;this.allowedMetrics.indexOf("LCP")>-1&&n(this.zv.bind(this),f),this.allowedMetrics.indexOf("CLS")>-1&&i(this.zv.bind(this),f),this.allowedMetrics.indexOf("FCP")>-1&&s(this.zv.bind(this),f),this.allowedMetrics.indexOf("INP")>-1&&r(this.zv.bind(this),m),this.xo=!0},this.Iv=!!(!((t=this._instance.persistence)===null||t===void 0)&&t.props[gx]),this.startIfEnabled()}get Zv(){return this._instance.config.capture_performance}get allowedMetrics(){var e,t;const n=We(this.Zv)?(e=this.Zv)===null||e===void 0?void 0:e.web_vitals_allowed_metrics:void 0;return Le(n)?((t=this._instance.persistence)===null||t===void 0?void 0:t.props.$web_vitals_allowed_metrics)||fk:n}get flushToCaptureTimeoutMs(){return(We(this.Zv)?this.Zv.web_vitals_delayed_flush_ms:void 0)||5e3}get attributionMetrics(){const e=We(this.Zv)?this.Zv.web_vitals_attribution:void 0;return bn(e)?e?fk:[]:Te(e)?e:BI}get useAttribution(){return this.attributionMetrics.length>0}get useSoftNavs(){const e=We(this.Zv)?this.Zv.__preview_web_vitals_soft_navs:void 0;return e!=null&&e}get Wv(){const e=We(this.Zv)&&jt(this.Zv.__web_vitals_max_value)?this.Zv.__web_vitals_max_value:pk;return e>0&&6e4>=e?pk:e}get isEnabled(){const e=yt==null?void 0:yt.protocol;if(e!=="http:"&&e!=="https:")return Qr.info("Web Vitals are disabled on non-http/https protocols"),!1;const t=We(this.Zv)?this.Zv.web_vitals:bn(this.Zv)?this.Zv:void 0;return bn(t)?t:this.Iv}startIfEnabled(){this.isEnabled&&!this.xo&&(Qr.info("enabled, starting..."),this.zo(this.Vv))}onRemoteConfig(e){if(!e.ok)return;const t=e.config;if(!("capturePerformance"in t))return;const n=We(t.capturePerformance)&&!!t.capturePerformance.web_vitals,i=We(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[gx]:n}),this._instance.persistence.register({[h5]:i})),this.Iv=n,this.startIfEnabled()}get Gv(){return this.useSoftNavs?this.useAttribution?"web-vitals-with-attribution-soft-navs":"web-vitals-soft-navs":this.useAttribution?"web-vitals-with-attribution":"web-vitals"}zo(e){var t;
68const n=we.__PosthogExtensions__,i=this.Gv,s=n==null?void 0:n.postHogWebVitalsCallbacksByFlavor;s!=null&&s[i]||i==="web-vitals"&&U(s)&&(n!=null&&n.postHogWebVitalsCallbacks)?e():n==null||(t=n.loadExternalDependency)===null||t===void 0||t.call(n,this._instance,i,r=>{r?Qr.error("failed to load script",r):e()})}Uv(e){const t=e||(B==null?void 0:B.location.href);if(!t)return void Qr.error("Could not determine current URL");const n=this._instance.config.disable_capture_url_hashes?yr(t):t,i=this._instance.config.custom_personal_data_properties,s=this._instance.config.mask_personal_data_properties?[...Po,...i||[]]:[];return Hc(n,s,Wc)}}},uR={exceptionObserver:class{constructor(e){var t;this.Vv=()=>{var n;if(!B||!this.isEnabled||!(!((n=we.__PosthogExtensions__)===null||n===void 0)&&n.errorWrappingFunctions))return;const i=we.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,s=we.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,r=we.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.Qv&&this.Rr.capture_unhandled_errors&&(this.Qv=i(this.captureException.bind(this))),!this.Jv&&this.Rr.capture_unhandled_rejections&&(this.Jv=s(this.captureException.bind(this))),!this.Kv&&this.Rr.capture_console_errors&&(this.Kv=r(this.captureException.bind(this)))}catch(o){Wl.error("failed to start",o),this.Xv()}},this._instance=e,this.Yv=!!(!((t=this._instance.persistence)===null||t===void 0)&&t.props[fx]),this.wt=new s6(R(R({},function(n={}){var i,s,r,o;return{refillRate:(i=(s=n.exceptionRateLimiterRefillRate)!==null&&s!==void 0?s:n.__exceptionRateLimiterRefillRate)!==null&&i!==void 0?i:1,bucketSize:(r=(o=n.exceptionRateLimiterBucketSize)!==null&&o!==void 0?o:n.__exceptionRateLimiterBucketSize)!==null&&r!==void 0?r:10}}(this._instance.config.error_tracking)),{},{refillInterval:1e4,$:Wl})),this.Rr=this.tf(),this.startIfEnabledOrStop()}tf(){const e=this._instance.config.capture_exceptions;let t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return We(e)?t=R(R({},t),e):(U(e)?this.Yv:e)&&(t=R(R({},t),{},{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.Rr.capture_console_errors||this.Rr.capture_unhandled_errors||this.Rr.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(Wl.info("enabled"),this.Xv(),this.zo(this.Vv)):this.Xv()}zo(e){var t,n,i;!((t=we.__PosthogExtensions__)===null||t===void 0)&&t.errorWrappingFunctions?e():(n=we.__PosthogExtensions__)===null||n===void 0||(i=n.loadExternalDependency)===null||i===void 0||i.call(n,this._instance,"exception-autocapture",s=>{if(s)return Wl.error("failed to load script",s);e()})}Xv(){var e,t,n;(e=this.Qv)===null||e===void 0||e.call(this),this.Qv=void 0,(t=this.Jv)===null||t===void 0||t.call(this),this.Jv=void 0,(n=this.Kv)===null||n===void 0||n.call(this),this.Kv=void 0}onRemoteConfig(e){if(!e.ok)return;const t=e.config;"autocaptureExceptions"in t&&(this.Yv=!!t.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[fx]:this.Yv}),this.Rr=this.tf(),this.startIfEnabledOrStop())}onConfigChange(){this.Rr=this.tf()}captureException(e){try{var t,n,i;const s=(t=e==null||(n=e.$exception_list)===null||n===void 0||(n=n[0])===null||n===void 0?void 0:n.type)!==null&&t!==void 0?t:"Exception";if(this.wt.consumeRateLimit(s))return void Wl.info("Skipping exception capture because of client rate limiting.",{exception:s});(i=this._instance.exceptions)===null||i===void 0||i.sendExceptionEvent(e)}catch{}}},exceptions:class{constructor(e){var t,n;this.ef=[],this.if=new g6([new P6,new B6,new R6,new I6,new F6,new D6,new O6,new $6],function(i,...s){return(r,o=0)=>{const c=[],u=r.split(`
69`),h=Math.min(u.length,o+1e3),f=[];for(let y=o;h>y;y++){const b=u[y];if(b.length>1024)continue;const k=m_.test(b)?b.replace(m_,"$1"):b;if(!k.match(/\S*Error: /)){for(const w of s){const S=w(k,i);if(S){c.push(S);const j=N6(c);if(j){for(let N=f.length-1;N>=0;N--){const E=f[N];if(j.start>=E.start+E.length)break;f.pop()}f.push(j)}break}}if(E6(c,f)>=50)break}}const m=[...f].sort((y,b)=>b.start-y.start),x=m[m.length-1];if(x){const y=Yj(c,x);
69c.splice(x.start-y,y);for(const b of m)b.start-=y}for(const y of m)T6(c,y);return f.some(y=>y.start===0&&c.length===y.length)&&function(y){const b=y.map(w=>`${w.function}|${w.filename}|${w.lineno}|${w.colno}|${w.module}`);let k=0;for(let w=1;b.length>w;w++)A6(b,w,k)&&(k=w);y.push(...y.splice(0,k))}(c),function(y){if(!y.length)return[];const b=Array.from(y);return b.reverse(),b.slice(0,50).map(k=>{return R(R({},k),{},{filename:k.filename||(w=b,w[w.length-1]||{}).filename,function:k.function||"?"});var w})}(c)}}("web:javascript",k6,C6)),this._instance=e,this.ef=(t=(n=this._instance.persistence)===null||n===void 0?void 0:n.get_property("$error_tracking_suppression_rules"))!==null&&t!==void 0?t:[],this.nf=Mh(this.sf()),this.rf=new V6(this.nf)}onConfigChange(){this.nf=Mh(this.sf()),this.rf.setConfig(this.nf)}onRemoteConfig(e){var t,n,i;if(!e.ok)return;const s=e.config;if(!("errorTracking"in s))return;const r=(t=(n=s.errorTracking)===null||n===void 0?void 0:n.suppressionRules)!==null&&t!==void 0?t:[],o=(i=s.errorTracking)===null||i===void 0?void 0:i.captureExtensionExceptions;this.ef=r,this._instance.persistence&&this._instance.persistence.register({[d5]:this.ef,[mx]:o})}get af(){var e;const t=!!this._instance.get_property(mx),n=this._instance.config.error_tracking.captureExtensionExceptions;return(e=n??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.if.buildFromUnknown(e,{syntheticException:t==null?void 0:t.syntheticException,mechanism:{handled:t==null?void 0:t.handled}})}addExceptionStep(e,t){if(this.nf.enabled)try{if(!Be(e)||e.trim().length===0)return void gi.warn("Ignoring exception step because message must be a non-empty string");const{sanitizedProperties:n,droppedKeys:i}=function(s){if(!s)return{sanitizedProperties:{},droppedKeys:[]};const r=[];return{sanitizedProperties:Object.keys(s).reduce((o,c)=>z6.has(c)?(r.push(c),o):(o[c]=s[c],o),{}),droppedKeys:r}}(this.lf(t));i.length>0&&gi.warn("Ignoring reserved exception step fields",{droppedKeys:i}),this.rf.add(R({[Ih]:e,[Rh]:new Date().toISOString()},n))}catch(n){gi.error("Failed to add exception step. Ignoring breadcrumb.",n)}}sendExceptionEvent(e){try{const t=e.$exception_list;if(this.uf(t)){if(this.hf(t))return this.cf("Exception dropped: matched a suppression rule"),void gi.info("Skipping exception capture because a suppression rule matched");if(!this.af&&this.df(t))return this.cf("Exception dropped: thrown by a browser extension"),void gi.info("Skipping exception capture because it was thrown by an extension");if(!this.af&&this.vf(t))return this.cf("Exception dropped: thrown by an injected browser script"),void gi.info("Skipping exception capture because it was thrown by an injected browser script");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ff(t))return this.cf("Exception dropped: thrown by the PostHog SDK"),void gi.info("Skipping exception capture because it was thrown by the PostHog SDK")}const n=this.nf.enabled&&Le(e.$exception_steps)?this.pf(e):e,i=function(){const s=globalThis._posthogReleaseId;return typeof s=="string"&&s.length>0?s:void 0}();i&&(n.$release_id=i);try{const s=this._instance.capture("$exception",n,{_noTruncate:!0,_batchKey:"exceptionEvent",fh:!0});return s&&this.rf.clear(),s}catch(s){return Ck(s)||gi.error("Failed to capture exception event. Dropping this exception.",s),void this.rf.clear()}}catch(t){return void(Ck(t)||gi.error("Failed to process exception event. Ignoring this exception.",t))}}pf(e){try{const t=this.rf.getAttachable();return t.length===0?e:R(R({},e),{},{$exception_steps:t})}catch(t){return gi.error("Failed to read buffered exception steps. Capturing exception without steps.",t),e}}cf(e){this.nf.enabled&&this.rf.add({[Ih]:e,[Rh]:new Date().toISOString()})}lf(e){return We(e)?R({},e):{}}sf(){var e,t;return(e=(t=this._instance.config.error_tracking)===null||t===void 0?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}hf(e){if(e.length===0)return!1;try{const t=e.reduce((n,{type:i,value:s})=>(Be(i)&&i.length>0&&n.$exception_types.push(i),Be(s)&&s.length>0&&n.$exception_values.push(s),n),{$exception_types:[],$exception_values:[]});return this.ef.some(n=>{const i=n.values.map(s=>{const r=xC[s.operator],o=t[s.key];if(!r||!o)return!1;const c=Te(s.value)?s.value:[s.value];return c.length>0&&r(c,o)});return n.type==="OR"?i.some(Boolean):i.every(Boolean)})}catch(t){return gi.warn("Failed to evaluate suppression rules. Capturing the exception.",t),!1}}df(e){const t=e.flatMap(i=>{var s,r;return(s=(r=i.stacktrace)===null||r===void 0?void 0:r.frames)!==null&&s!==void 0?s:[]}),n=t.filter(({filename:i})=>!!i&&eR.some(s=>i.startsWith(s)));return n.length!==0&&(!n.every(({filename:i})=>!!i&&i.startsWith(Ix))||e.some(({type:i,value:s})=>i==="NoResponse"||Be(s)&&JI.some(({value:r,exact:o})=>o?s===r:s.includes(r)))&&!t.some(({in_app:i,filename:s})=>i&&!(s!=null&&s.startsWith(Ix))))}vf(e){return e.some(({value:t})=>Be(t)&&tR.some(n=>t.includes(n)))}ff(e){if(e.length>0){var t,n,i,s;const r=(t=(n=e[0].stacktrace)===null||n===void 0?void 0:n.frames)!==null&&t!==void 0?t:[],o=r[r.length-1];return(i=o==null||(s=o.filename)===null||s===void 0?void 0:s.includes("posthog.com/static"))!==null&&i!==void 0&&i}return!1}uf(e){return!Le(e)&&Te(e)}}},hR=R({productTours:class{get Ml(){return this._instance.persistence}constructor(e){this.gf=null,this.mf=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!e.ok)return;const t=e.config;if("productTours"in t){var n,i;if(this.Ml&&this.Ml.register({[Rv]:!!t.productTours}),!mg(this._instance))return!this.gf&&Le((n=this.Ml)===null||n===void 0?void 0:n.props.ph_product_tours)||Lu.info("product tours disabled; stopping and clearing cached tours"),(i=this.gf)===null||i===void 0||i.stop(),this.gf=null,void this.clearCache();this.loadIfEnabled()}}loadIfEnabled(){!this.gf&&mg(this._instance)&&this.zo(()=>this.yf())}zo(e){var t,n,i;!((t=we.__PosthogExtensions__)===null||t===void 0)&&t.generateProductTours?e():(n=we.__PosthogExtensions__)===null||n===void 0||(i=n.loadExternalDependency)===null||i===void 0||i.call(n,this._instance,"product-tours",s=>{s?Lu.error("Could not load product tours script",s):e()})}yf(){var e;!this.gf&&(!((e=we.__PosthogExtensions__)===null||e===void 0)&&e.generateProductTours)&&(this.gf=we.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t=!1){if(Te(this.mf)&&!t)return void e(this.mf,{isLoaded:!0});const n=this.Ml;if(n){const i=n.props[yx];if(Te(i)&&!t)return this.mf=i,void e(i,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api",`/api/product_tours/?token=${this._instance.config.token}`),method:"GET",timestampMode:"query",callback:i=>{if(!mg(this._instance))return void e([],{isLoaded:!0});const s=i.statusCode;if(s!==200||!i.json){const o=`Product Tours API could not be loaded, status: ${s}`;return s===0?i.error||Lu.warn(o):Lu.error(o),void e([],{isLoaded:!1,error:o})}const r=Te(i.json.product_tours)?i.json.product_tours:[];this.mf=r,n&&n.register({[yx]:r}),e(r,{isLoaded:!0})}})}getActiveProductTours(e){Le(this.gf)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.gf.getActiveProductTours(e)}showProductTour(e){var t;(t=this.gf)===null||t===void 0||t.showTourById(e)}previewTour(e){this.gf?this.gf.previewTour(e):this.zo(()=>{var t;this.yf(),(t=this.gf)===null||t===void 0||t.previewTour(e)})}dismissProductTour(){var e;(e=this.gf)===null||e===void 0||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.gf)===null||e===void 0||e.nextStep()}previousStep(){var e;(e=this.gf)===null||e===void 0||e.previousStep()}clearCache(){var e;this.mf=null,(e=this.Ml)===null||e===void 0||e.unregister("ph_product_tours")}resetTour(e){var t;(t=this.gf)===null||t===void 0||t.resetTour(e)}resetAllTours(){var e;(e=this.gf)===null||e===void 0||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.gf)===null||t===void 0||t.cancelPendingTour(e)}}},Ep),pR={siteApps:class{constructor(e){this._instance=e,this.bf=0,this._f=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}wf(e,t){if(!t)return;const n=this.globalsForEvent(t);
69this._f.push(n),this._f.length>1e3&&(this._f=this._f.slice(10))}get siteAppLoaders(){var e;return(e=we._POSTHOG_REMOTE_CONFIG)===null||e===void 0||(e=e[this._instance.config.token])===null||e===void 0?void 0:e.siteApps}initialize(){if(this.isEnabled){const e=this._instance._addCaptureHook(this.wf.bind(this));this.kf=()=>{e(),this._f=[],this.kf=void 0}}}globalsForEvent(e){var t,n,i,s,r,o,c;if(!e)throw new Error("Event payload is required");const u={},h=this._instance.get_property("$groups")||[],f=this._instance.get_property("$stored_group_properties")||{};for(const[y,b]of Object.entries(f))u[y]={id:h[y],type:y,properties:b};const{$set_once:m,$set:x}=e;return{event:R(R({},Zj(e,HI)),{},{properties:R(R(R({},e.properties),x?{$set:R(R({},(t=(n=e.properties)===null||n===void 0?void 0:n.$set)!==null&&t!==void 0?t:{}),x)}:{}),m?{$set_once:R(R({},(i=(s=e.properties)===null||s===void 0?void 0:s.$set_once)!==null&&i!==void 0?i:{}),m)}:{}),elements_chain:(r=(o=e.properties)===null||o===void 0?void 0:o.$elements_chain)!==null&&r!==void 0?r:"",distinct_id:(c=e.properties)===null||c===void 0?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:u}}Sf(e){var t;const n=(t=e.tagName)===null||t===void 0?void 0:t.toLowerCase();return n==="style"&&this._instance.config.prepare_external_dependency_stylesheet?this._instance.config.prepare_external_dependency_stylesheet(e)||(Mi.error("prepare_external_dependency_stylesheet returned null"),null):n==="script"&&this._instance.config.prepare_external_dependency_script?this._instance.config.prepare_external_dependency_script(e)||(Mi.error("prepare_external_dependency_script returned null"),null):e}xf(){var e,t,n,i,s,r,o,c;if(!this._instance.config.prepare_external_dependency_stylesheet&&!this._instance.config.prepare_external_dependency_script)return()=>{};const u=K==null?void 0:K.defaultView,h=u==null||(e=u.Node)===null||e===void 0?void 0:e.prototype;if(!u||!h)return()=>{};if(this.bf++,this.Cf)return this.$f();const f=[],m=this,x=new WeakSet,y=(w,S,j)=>{if(!(w!=null&&w[S]))return;const N=w[S];w[S]=j(N),f.push(()=>{w[S]=N})},b=w=>{if(x.has(w))return w;const S=m.Sf(w);return S&&x.add(S),S},k=w=>w.map(S=>typeof S=="string"?S:b(S)).filter(S=>!bt(S));return y(h,"appendChild",w=>function(S){const j=b(S);return j?w.call(this,j):S}),y(h,"insertBefore",w=>function(S,j){const N=b(S);return N?w.call(this,N,j):S}),y(h,"replaceChild",w=>function(S,j){const N=b(S);return N?w.call(this,N,j):j}),[(t=u.Element)===null||t===void 0?void 0:t.prototype,(n=u.Document)===null||n===void 0?void 0:n.prototype,(i=u.DocumentFragment)===null||i===void 0?void 0:i.prototype].forEach(w=>{y(w,"append",S=>function(...j){return S.apply(this,k(j))}),y(w,"prepend",S=>function(...j){return S.apply(this,k(j))})}),[(s=u.Element)===null||s===void 0?void 0:s.prototype,(r=u.CharacterData)===null||r===void 0?void 0:r.prototype,(o=u.DocumentType)===null||o===void 0?void 0:o.prototype].forEach(w=>{y(w,"before",S=>function(...j){return S.apply(this,k(j))}),y(w,"after",S=>function(...j){return S.apply(this,k(j))}),y(w,"replaceWith",S=>function(...j){const N=k(j);return j.length&&!N.length?void 0:S.apply(this,N)})}),y((c=u.Element)===null||c===void 0?void 0:c.prototype,"insertAdjacentElement",w=>function(S,j){const N=b(j);return N?w.call(this,S,N):null}),this.Cf=()=>{f.forEach(w=>w()),this.Cf=void 0},this.$f()}$f(){let e=!1;return()=>{var t;e||(e=!0,this.bf--,this.bf===0&&((t=this.Cf)===null||t===void 0||t.call(this)))}}Tf(e,t=!0){const n=this.xf();try{const i=e(n);return t&&n(),i}catch(i){throw n(),i}}setupSiteApp(e){const t=this.apps[e.id],n=()=>{var r;!t.errored&&this._f.length&&(Mi.info(`Processing ${this._f.length} events for site app with id ${e.id}`),this._f.forEach(o=>this.Tf(()=>{var c;return(c=t.processEvent)===null||c===void 0?void 0:c.call(t,o)})),t.processedBuffer=!0),Object.values(this.apps).every(o=>o.processedBuffer||o.errored)&&((r=this.kf)===null||r===void 0||r.call(this))};let i=!1;const s=r=>{t.errored=!r,t.loaded=!0,Mi.info(`Site app with id ${e.id} ${r?"loaded":"errored"}`),i&&n()};try{const{processEvent:r}=this.Tf(o=>e.init({posthog:this._instance,callback(c){o(),s(c)}}),!1);r&&(t.processEvent=r),i=!0}catch(r){Mi.error(gk+e.id,r),s(!1)}if(i&&t.loaded)try{n()}catch(r){Mi.error(`Error while processing buffered events PostHog app with config id ${e.id}`,r),t.errored=!0}}If(){const e=this.siteAppLoaders||[];for(const t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(const t of e)this.setupSiteApp(t)}Mf(e){if(Object.keys(this.apps).length===0)return;const t=this.globalsForEvent(e);for(const n of Object.values(this.apps))try{this.Tf(()=>{var i;return(i=n.processEvent)===null||i===void 0?void 0:i.call(n,t)})}catch(i){Mi.error(`Error while processing event ${e.event} for site app ${n.id}`,i)}}onRemoteConfig(e){var t,n,i;if(!((t=this.siteAppLoaders)===null||t===void 0)&&t.length)return this.isEnabled?(this.If(),void this._instance.on("eventCaptured",c=>this.Mf(c))):void Mi.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((n=this.kf)===null||n===void 0||n.call(this),!e.ok)return;const s=e.config;if(!((i=s.siteApps)===null||i===void 0)&&i.length)if(this.isEnabled)for(const{id:c,url:u}of s.siteApps){var r,o;we[`__$$ph_site_app_${c}`]=this._instance,(r=we.__PosthogExtensions__)===null||r===void 0||(o=r.loadSiteApp)===null||o===void 0||o.call(r,this._instance,u,h=>{if(h)return Mi.error(gk+c,h)})}else Mi.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},fR={tracingHeaders:class{constructor(e){this._instance=e,this.Ef=void 0,this.Pf=void 0,this.Rf=void 0,this.Vv=()=>{const t=this.Af();var n,i;t?(U(this.Ef)&&(this.Ef=(n=we.__PosthogExtensions__)===null||n===void 0||(n=n.tracingHeadersPatchFns)===null||n===void 0?void 0:n._patchXHR(t,()=>this._instance.get_distinct_id(),this._instance.sessionManager)),U(this.Pf)&&(this.Pf=(i=we.__PosthogExtensions__)===null||i===void 0||(i=i.tracingHeadersPatchFns)===null||i===void 0?void 0:i._patchFetch(t,()=>this._instance.get_distinct_id(),this._instance.sessionManager))):this.Xv()}}initialize(){this.startIfEnabledOrStop()}zo(e){var t,n,i;!((t=we.__PosthogExtensions__)===null||t===void 0)&&t.tracingHeadersPatchFns?e():(n=we.__PosthogExtensions__)===null||n===void 0||(i=n.loadExternalDependency)===null||i===void 0||i.call(n,this._instance,"tracing-headers",s=>{if(s)return $I.error("failed to load script",s);e()})}Ff(){var e,t;return(e=(t=this._instance.config.tracing_headers)!==null&&t!==void 0?t:this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}Af(){const e=this.Ff();return Te(e)?(Te(this.Rf)?this.Rf.splice(0,this.Rf.length,...e):this.Rf=[...e],e.length>0?this.Rf:void 0):(Te(this.Rf)&&this.Rf.splice(0),this.Rf=e||void 0,this.Rf)}Xv(){var e,t;(e=this.Ef)===null||e===void 0||e.call(this),(t=this.Pf)===null||t===void 0||t.call(this),this.Ef=void 0,this.Pf=void 0}startIfEnabledOrStop(){this.Af()?this.zo(this.Vv):this.Xv()}}},mR=R({surveys:class extends WI{constructor(e){var t;super(new KI(e),(t=e,{get projectToken(){return t.config.token},kv:new YI(t)})),this._instance=e}qh(e,t){const n=t.query?ld(e,t.query):e;return new Promise(i=>{var s;this._instance._send_request({method:t.method,url:this._instance.requestRouter.endpointFor((s=t.target)!==null&&s!==void 0?s:"api",n),data:t.body,headers:t.headers,timeout:t.timeoutMs,fireCallbackOnDrop:!0,transport:t.transport,compression:t.compression,timestampMode:t.sentAt,callback:i})})}}},Ep),gR={toolbar:class{constructor(e){this.instance=e}Of(e){we.ph_toolbar_state=e}Df(){var e;return(e=we.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e=void 0,t=void 0,n=void 0){var i,s;if(wx(this.instance.config)||!B||!K)return!1;e=(i=e)!==null&&i!==void 0?i:B.location,n=(s=n)!==null&&s!==void 0?s:B.history;try{if(!t){try{B.localStorage.setItem("test","test"),B.localStorage.removeItem("test")}catch{return!1}t=B==null?void 0:B.localStorage}const r=QI||zh(e.hash,"__posthog")||zh(e.hash,"state");let o;const c=r?u_(()=>JSON.parse(atob(decodeURIComponent(r))))||u_(()=>JSON.parse(decodeURIComponent(r))):null;return c&&c.action==="ph_authorize"?(o=c,o.source="url",o&&Object.keys(o).length>0&&(c.desiredHash?e.hash=c.desiredHash:n?n.replaceState(n.state,"",e.pathname+e.search):e.hash="")):(o=JSON.parse(t.getItem(vk)||"{}"),o.source="localstorage",delete o.userIntent),!(!o.token||this.instance.config.token!==o.token||(this.loadToolbar(o),0))}catch{return!1}}Lf(e){const t=we.ph_load_toolbar||we.ph_load_editor;!Le(t)&&Ut(t)?t(e,this.instance):yk.warn("No toolbar load function found")}loadToolbar(e){const t=!!(K!=null&&K.getElementById("__POSTHOG_TOOLBAR__"));if(!B||t)return!1;const n=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,i=R(R({token:this.instance.config.token},e),{},{apiURL:this.instance.requestRouter.endpointFor("ui")},n?{instrument:!1}:{});if(B.localStorage.setItem(vk,JSON.stringify(R(R({},i),{},{source:void 0}))),this.Df()===2)this.Lf(i);else if(this.Df()===0){var s,r;this.Of(1),(s=we.__PosthogExtensions__)===null||s===void 0||(r=s.loadExternalDependency)===null||r===void 0||r.call(s,this.instance,"toolbar",o=>{if(o)return yk.error("[Toolbar] Failed to load",o),void this.Of(0);this.Of(2),this.Lf(i)}),Ke(B,"turbolinks:load",()=>{this.Of(0),this.loadToolbar(i)})}return!0}Nf(e){return this.loadToolbar(e)}maybeLoadEditor(e=void 0,t=void 0,n=void 0){return this.maybeLoadToolbar(e,t,n)}}},xR=R({experiments:class xn{get Rr(){return this._instance.config}constructor(t){this._instance=t,this.getWebExperimentsAndEvaluateDisplayLogic=(n=!1)=>{this.getWebExperiments(i=>{xn.qf("retrieved web experiments from the server"),this.jf=new Map,i.forEac
69h(s=>{if(s.feature_flag_key){var r;this.jf&&(xn.qf("setting flag key ",s.feature_flag_key," to web experiment ",s),(r=this.jf)===null||r===void 0||r.set(s.feature_flag_key,s));const o=this._instance.getFeatureFlag(s.feature_flag_key);Be(o)&&s.variants[o]&&this.Bf(s.name,o,s.variants[o].transforms)}else if(s.variants)for(const o in s.variants){const c=s.variants[o];xn.Hf(c,this._instance)&&this.Bf(s.name,o,c.transforms)}})},n)},this._instance.onFeatureFlags(n=>{this.onFeatureFlags(n)})}initialize(){}onFeatureFlags(t){if(this._is_bot())xn.qf(Nk);else if(!this.Rr.disable_web_experiments){if(Le(this.jf))return this.jf=new Map,this.loadIfEnabled(),void this.previewWebExperiment();xn.qf("applying feature flags",t),t.forEach(n=>{var i;if(this.jf&&(!((i=this.jf)===null||i===void 0)&&i.has(n))){var s;const r=this._instance.getFeatureFlag(n),o=(s=this.jf)===null||s===void 0?void 0:s.get(n);r&&(o!=null&&o.variants[r])&&this.Bf(o.name,r,o.variants[r].transforms)}})}}previewWebExperiment(){const t=xn.getWindowLocation();if(t!=null&&t.search){const n=Ao(t==null?void 0:t.search,"__experiment_id"),i=Ao(t==null?void 0:t.search,"__experiment_variant");n&&i&&(xn.qf(`previewing web experiments ${n} && ${i}`),this.getWebExperiments(s=>{this.zf(parseInt(n),i,s)},!1,!0))}}loadIfEnabled(){this.Rr.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,n,i){if(this.Rr.disable_web_experiments&&!i)return t([]);const s=this._instance.get_property("$web_experiments");if(s&&!n)return t(s);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api",`/api/web_experiments/?token=${this.Rr.token}`),method:"GET",timestampMode:"query",callback:r=>t(r.statusCode===200&&r.json&&r.json.experiments||[])})}zf(t,n,i){const s=i.filter(r=>r.id===t);s&&s.length>0&&(xn.qf(`Previewing web experiment [${s[0].name}] with variant [${n}]`),this.Bf(s[0].name,n,s[0].variants[n].transforms))}static Hf(t,n){return!Le(t.conditions)&&xn.Uf(t,n)&&xn.Wf(t)}static Uf(t,n){var i;if(Le(t.conditions)||Le((i=t.conditions)===null||i===void 0?void 0:i.url))return!0;const s=xn.getWindowLocation();if(s){var r,o,c;const u=A5(n,s.href);return!(!((r=t.conditions)===null||r===void 0)&&r.url)||nR[(o=(c=t.conditions)===null||c===void 0?void 0:c.urlMatchType)!==null&&o!==void 0?o:"icontains"](t.conditions.url,u)}return!1}
69static getWindowLocation(){return B==null?void 0:B.location}static Wf(t){var n;if(Le(t.conditions)||Le((n=t.conditions)===null||n===void 0?void 0:n.utm))return!0;const i=V5();if(i.utm_source){var s,r,o,c,u,h,f,m;const x=!(!((s=t.conditions)===null||s===void 0||(s=s.utm)===null||s===void 0)&&s.utm_campaign)||((r=t.conditions)===null||r===void 0||(r=r.utm)===null||r===void 0?void 0:r.utm_campaign)==i.utm_campaign,y=!(!((o=t.conditions)===null||o===void 0||(o=o.utm)===null||o===void 0)&&o.utm_source)||((c=t.conditions)===null||c===void 0||(c=c.utm)===null||c===void 0?void 0:c.utm_source)==i.utm_source,b=!(!((u=t.conditions)===null||u===void 0||(u=u.utm)===null||u===void 0)&&u.utm_medium)||((h=t.conditions)===null||h===void 0||(h=h.utm)===null||h===void 0?void 0:h.utm_medium)==i.utm_medium,k=!(!((f=t.conditions)===null||f===void 0||(f=f.utm)===null||f===void 0)&&f.utm_term)||((m=t.conditions)===null||m===void 0||(m=m.utm)===null||m===void 0?void 0:m.utm_term)==i.utm_term;return x&&b&&k&&y}return!1}static qf(t,...n){ae.info(`[WebExperiments] ${t}`,n)}Bf(t,n,i){this._is_bot()?xn.qf(Nk):n!=="control"?i.forEach(s=>{if(s.selector){var r;xn.qf(`applying transform of variant ${n} for experiment ${t} `,s);const o=(r=document)===null||r===void 0?void 0:r.querySelectorAll(s.selector);o==null||o.forEach(c=>{const u=c;s.html&&(u.innerHTML=s.html),s.css&&u.setAttribute("style",s.css)})}}):xn.qf("Control variants leave the page unmodified.")}_is_bot(){return Yt&&this._instance?fC(Yt,this.Rr.custom_blocked_useragents):void 0}}},Ep),vR={conversations:class{constructor(e){this._instance=e,this.Vf=void 0,this._conversationsManager=null,this.Gf=!1,this.ne=null,this.Zf=!1}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(this._instance.config.disable_conversations||(this.Qf=e.ok,!e.ok))return;const t=e.config.conversations;Le(t)||(bn(t)?this.Vf=t:(this.Vf=t.enabled,this.ne=t),this.loadIfEnabled())}reset(){var e;(e=this._conversationsManager)===null||e===void 0||e.reset(),this._conversationsManager=null,this.Vf=void 0,this.ne=null,this.Qf=void 0,this.Zf=!1}loadIfEnabled(){if(this._conversationsManager||this.Gf||this._instance.config.disable_conversations||wx(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())return;const e=we==null?void 0:we.__PosthogExtensions__;if(e&&!U(this.Vf)&&this.Vf)if(this.ne&&this.ne.token){this.Gf=!0;try{const t=e.initConversations;if(t)return this.Jf(t),void(this.Gf=!1);const n=e.loadExternalDependency;if(!n)return void this.Kf(Ov);n(this._instance,"conversations",i=>{i||!e.initConversations?this.Kf("Could not load conversations script",i):this.Jf(e.initConversations),this.Gf=!1})}catch(t){this.Kf("Error initializing conversations",t),this.Gf=!1}}else Xn.error("Conversations enabled but missing token in remote config.")}Jf(e){if(this.ne)try{this._conversationsManager=e(this.ne,this._instance),this.Zf=!1,Xn.info("Conversations loaded successfully")}catch(t){this.Kf("Error completing conversations initialization",t)}else Xn.error("Cannot complete initialization: remote config is null")}Kf(e,t){Xn.error(e,t),this._conversationsManager=null,this.Gf=!1,this.Zf=!0}show(){this._conversationsManager?this._conversationsManager.show():Xn.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Vf===!0&&!bt(this._conversationsManager)}getUnavailableReason(){return this.isAvailable()?null:this._instance.config.disable_conversations?"disabled_by_config":wx(this._instance.config)?"disabled_for_toolbar":this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut()?"consent_opted_out":this.Qf===!1?"remote_config_failed":U(this.Vf)?this.Qf?"disabled_in_project":"remote_config_pending":this.Vf?Le(this.ne)||!this.ne.token?"missing_token":we!=null&&we.__PosthogExtensions__?this.Gf?"initializing":this.Zf?"load_failed":"not_loaded":"extensions_unavailable":"disabled_in_project"}isVisible(){var e,t;return(e=(t=this._conversationsManager)===null||t===void 0?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,n){var i=this;return dt(function*(){return i._conversationsManager?i._conversationsManager.sendMessage(e,t,n):(Xn.warn(Zr),null)})()}getMessages(e,t){var n=this;return dt(function*(){return n._conversationsManager?n._conversationsManager.getMessages(e,t):(Xn.warn(Zr),null)})()}markAsRead(e){var t=this;return dt(function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(Xn.warn(Zr),null)})()}getTickets(e){var t=this;return dt(function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(Xn.warn(Zr),null)})()}requestRestoreLink(e){var t=this;return dt(function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(Xn.warn(Zr),null)})()}restoreFromToken(e){var t=this;return dt(function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(Xn.warn(Zr),null)})()}restoreFromUrlToken(){var e=this;return dt(function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(Xn.warn(Zr),null)})()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)===null||t===void 0?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)===null||t===void 0?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}Sh(){var e;(e=this._conversationsManager)===null||e===void 0||e.setIdentity()}xh(){var e;(e=this._conversationsManager)===null||e===void 0||e.clearIdentity()}}},yR={logs:class{constructor(e){var t;this._instance=e,this.name="logs",this.Xf=!1,this.Yf=!1,this.tp=!1,this.$=kt("[logs]"),this.ep=R(R({},this.$),{},{error:(...n)=>{n.some(Ak)||this.$.error(...n)}}),this.al=[],this.np=[],this.hd=0,this.Io=!1,this.sp=[],this.rp=[],this.op=!1,this.ap=!1,this.lp=()=>{var n,i;this.Io||(this.hd=0,(n=this.up)===null||n===void 0||n.onReconnect(),(i=this.hp)===null||i===void 0||i.onReconnect())},this._instance&&(!((t=this._instance.config.logs)===null||t===void 0)&&t.captureConsoleLogs)&&(this.Xf=!0),B&&Ke(B,"online",this.lp)}cp(e,t,n,i){var s;const r=Tk((s=this._instance)===null||s===void 0||(s=s.config)===null||s===void 0?void 0:s.logs,n);return[new Z6(this.dp(e,t),r,this.ep,()=>this.vp(),o=>o(),void 0,i),r]}fp(){var e;const t=(e=this._instance)===null||e===void 0||(e=e.config)===null||e===void 0?void 0:e.logs;var n;return this.up&&this.pp===t||((n=this.up)===null||n===void 0||n.reset(),this.pp=t,[this.up,this.gp]=this.cp(()=>this.al,i=>{this.al=i})),this.up}mp(){var e;const t=(e=this._instance)===null||e===void 0||(e=e.config)===null||e===void 0?void 0:e.logs;var n;return this.hp&&this.yp===t||((n=this.hp)===null||n===void 0||n.reset(),this.yp=t,[this.hp,this.bp]=this.cp(()=>this.np,i=>{this.np=i},{serviceNameDefault:"posthog-browser-logs",consoleCapture:!0},Ek)),this.hp}setup(e){var t;if(this.Io)return;this.wo=e,!((t=this._instance)===null||t===void 0||(t=t.config)===null||t===void 0||(t=t.logs)===null||t===void 0)&&t.captureConsoleLogs&&(this.Xf=!0),(this.Xf||this._p()&&this.wp())&&this.kp();let n=!1;const i=e.onRemoteConfig(s=>{var r;n=s.ok&&((r=s.config.logs)===null||r===void 0?void 0:r.captureConsoleLogs)===!0,this.onRemoteConfig(s)});this.Io?i.dispose():(this.Po=i,n||this.loadIfEnabled())}dispose(){var e,t,n,i;this.Io||(this.Io=!0,this.Sp(),(e=this.Po)===null||e===void 0||e.dispose(),this.Po=void 0,this.wo=void 0,this.tp=!1,B==null||B.removeEventListener("online",this.lp),(t=this.xp)===null||t===void 0||t.call(this),this.xp=void 0,(n=this.up)===null||n===void 0||n.reset(),(i=this.hp)===null||i===void 0||i.reset())}onRemoteConfig(e){var t,n;if(this.Io)return;const i=e.ok?(t=e.config.logs)===null||t===void 0?void 0:t.captureConsoleLogs:void 0;Le(i)?this.Cp():((n=this._instance)===null||n===void 0||(n=n.persistence)===null||n===void 0||n.register({$logs_capture_enabled_server_side:!!i}
69),i?(this.Xf=!0,this.Yf||this.kp(),this.loadIfEnabled()):this.Cp())}reset(){var e,t,n,i;this.Sp(),(e=this.up)===null||e===void 0||e.clearQueue(),this.al=[],(t=this.up)===null||t===void 0||t.reset(),(n=this.hp)===null||n===void 0||n.clearQueue(),this.np=[],(i=this.hp)===null||i===void 0||i.reset(),this.hd=0}captureLog(e){this.Io||this.fp().captureLog(e)}captureConsoleLog(e){this.Io||this.mp().captureLog(e)}captureBufferedConsoleLog(e,t,n){this.Io||this.mp().captureLog(e,{context:t,occurredAtMs:n})}wp(){var e;return!!(!((e=this._instance)===null||e===void 0||(e=e.persistence)===null||e===void 0||(e=e.props)===null||e===void 0)&&e[u5])}_p(){var e,t,n;return!(!((e=this._instance)===null||e===void 0||(t=e.nl)===null||t===void 0)&&t.call(e))||!!(!((n=we._POSTHOG_REMOTE_CONFIG)===null||n===void 0||(n=n[this._instance.config.token])===null||n===void 0)&&n.config)}$h(){var e;this.Sp(),(e=this.hp)===null||e===void 0||e.clearQueue(),this.np=[]}Cp(){this.Xf||this.Sp()}kp(){var e;if(this.op||!(we!=null&&we.console))return;const t=Tk((e=this._instance)===null||e===void 0||(e=e.config)===null||e===void 0?void 0:e.logs).maxBufferSize;let n=!0;this.rp.push(()=>{n=!1});for(const i of iR){let s;try{s=sR(we.console[i])}catch{continue}s&&this.rp.push(qc(we.console,i,r=>{const o=(...c)=>{try{n&&this.$p(i,c,t)}catch{}return r.apply(we.console,c)};return o.__rrweb_original__=s,o}))}this.op=!0,this.Tp=setTimeout(()=>{this.Sp()},3e4)}$p(e,t,n){var i;if(this.op&&!this.ap&&t.length!==0)if(!((i=this._instance)===null||i===void 0)&&i.is_capturing()){if(n>this.sp.length){this.ap=!0;try{this.sp.push({level:e,args:t,occurredAtMs:Date.now(),context:this.vp()})}finally{this.ap=!1}}}else this.Sp()}Sp(){if(this.sp=[],this.op){this.op=!1,this.Tp&&(clearTimeout(this.Tp),this.Tp=void 0);for(const e of this.rp)e();this.rp=[]}}Ip(){const e=this.sp;return this.Sp(),e}get logger(){return this.Mp||(this.Mp={trace:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.Mp}flushLogs(e){e?this.Ep(e):(this.up&&this.up.flush().catch(t=>this.Pp(t)),this.hp&&this.hp.flush().catch(t=>this.Pp(t)))}Pp(e){Ak(e)||this.$.error("PostHog logs flush failed:",e)}loadIfEnabled(){if(this.Io||!this.Xf||this.Yf||this.tp)return;const e=we==null?void 0:we.__PosthogExtensions__;if(!e)return this.$.error("PostHog Extensions not found."),void this.Sp();const t=e.loadExternalDependency;if(!t)return this.$.error(Ov),void this.Sp();this.tp=!0;try{t(this._instance,"logs",n=>{if(this.tp=!1,this.Io||!this.Xf)return;const i=e.logs;if(n||!(i!=null&&i.initializeLogs))this.$.error("Could not load logs script",n),this.Sp();else{var s;const c=this.Ip();var r,o;this.xp=i.initializeLogs((s=this.wo)!==null&&s!==void 0?s:this._instance),this.Yf=!0,c.length>0&&((r=i.replayConsoleBuffer)===null||r===void 0||r.call(i,(o=this.wo)!==null&&o!==void 0?o:this._instance,c))}})}catch(n){throw this.tp=!1,n}}dp(e,t){const n=this._instance;return{get isDisabled(){return!1},get optedOut(){return!n.is_capturing()},getPersistedProperty:i=>i===$i.LogsQueue?e():void 0,setPersistedProperty(i,s){var r;i===$i.LogsQueue&&t((r=s)!==null&&r!==void 0?r:[])},js:i=>this.js(i),getLibraryId:()=>Ft.LIB_NAME,getLibraryVersion:()=>Ft.LIB_VERSION}}js(e){return new Promise(t=>{if(B5(this.hd,3))return void t({kind:"fatal",error:xg(void 0,"logs endpoint is unreachable, dropping batch")});let n=!1;const i=r=>{n||(n=!0,clearTimeout(s),t(r))},s=setTimeout(()=>{this.$.warn("Logs request timed out before receiving a response"),i({kind:"retry-later",error:xg(void 0,"logs request timed out")})},9e4);this._instance._send_request({method:"POST",url:this.Rp(),data:e,compression:"best-available",batchKey:"logs",fireCallbackOnDrop:!0,callback:r=>{const o=r.statusCode;if(this.Ap(o),o>=200&&300>o)i({kind:"ok"});else if(o===413)i({kind:"too-large"});else if(o!==0&&o!==408&&o!==429&&500>o)i({kind:"fatal",error:new Error(`logs request failed with status ${o}`)});else{var c;o===0?(r.error||this.$.warn("Logs request failed before receiving an HTTP response"),i({kind:"retry-later",error:xg(r.error,"logs request failed before receiving an HTTP response")})):i({kind:"retry-later",error:(c=r.error)!==null&&c!==void 0?c:new Error(`logs request failed with status ${o}`)})}}})})}Ap(e){(e!==0||this._instance.__loaded)&&(this.hd=z5(e,this.hd,3,()=>this.$.warn("Log requests are failing before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped sending logs; will try again when connectivity changes.")))}Ep(e){this.al.length>0&&this.Fp(e,this.al,this.gp,Ft.LIB_NAME,t=>{this.al=t}),this.np.length>0&&this.Fp(e,this.np,this.bp,Ek,t=>{this.np=t})}Fp(e,t,n,i,s){if(t.length===0)return;const r=t.map(c=>c.record);s([]);const o=s5(r,i5(n,Ft.LIB_NAME,Ft.LIB_VERSION),i,Ft.LIB_VERSION);this._instance._send_request({method:"POST",url:this.Rp(),data:o,compression:"best-available",batchKey:"logs",transport:e})}Rp(){return this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token)}vp(){var e;const t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){const{sessionId:n,windowId:i,sessionStartTimestamp:s,lastActivityTimestamp:r}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=n,t.windowId=i,Le(s)||(t.sessionStartTimestamp=s),Le(r)||(t.lastActivityTimestamp=r)}if(!(we==null||(e=we.location)===null||e===void 0)&&e.href&&(t.currentUrl=this._instance.config.disable_capture_url_hashes?yr(we.location.href):we.location.href),this._instance.featureFlags){const n=this._instance.featureFlags.getFlags();n&&n.length>0&&(t.activeFeatureFlags=n)}return t}}},bR={metrics:class{constructor(e){this._instance=e,this.$=kt("[metrics]"),this.Io=!1}initialize(){this.onConfigChange()}onConfigChange(){var e;if(this.Io)return;const t=!!(!((e=this._instance.config.metrics)===null||e===void 0)&&e.network);t&&!this.Op?this.Op=(n=>{let i=!0;const s=()=>i?(c=>{var u;const h=(u=c.config.metrics)===null||u===void 0?void 0:u.network;return h===!0?{}:h||void 0})(n):void 0,r=oR(n,s),o=lR(n,s);return()=>{i=!1,r(),o()}})(this._instance):!t&&this.Op&&(this.Op(),this.Op=void 0)}fp(){var e;const t=(e=this._instance)===null||e===void 0||(e=e.config)===null||e===void 0?void 0:e.metrics;var n;return this.up&&this.pp===t||((n=this.up)===null||n===void 0||n.reset(),this.pp=t,this.up=new J6(this.dp(),function(i){var s,r,o,c,u;const h=i==null?void 0:i.resourceAttributes;return{serviceName:(s=h==null?void 0:h["service.name"])!==null&&s!==void 0?s:i==null?void 0:i.serviceName,serviceVersion:(r=h==null?void 0:h["service.version"])!==null&&r!==void 0?r:i==null?void 0:i.serviceVersion,environment:(o=h==null?void 0:h["deployment.environment"])!==null&&o!==void 0?o:i==null?void 0:i.environment,resourceAttributes:h,beforeSend:i==null?void 0:i.beforeSend,flushIntervalMs:(c=i==null?void 0:i.flushIntervalMs)!==null&&c!==void 0?c:1e4,maxSeriesPerFlush:(u=i==null?void 0:i.maxSeriesPerFlush)!==null&&u!==void 0?u:1e3}}(t),this.$)),this.up}
69count(e,t=1,n){this.fp().count(e,t,n)}gauge(e,t,n){this.fp().gauge(e,t,n)}histogram(e,t,n){this.fp().histogram(e,t,n)}flush(e){if(!this.up)return Promise.resolve();if(e){const t=this.up.drainWindow();return t&&this.Ys(t,e),Promise.resolve()}return this.up.flush().catch(t=>this.$.error("PostHog metrics flush failed:",t))}reset(){var e;(e=this.up)===null||e===void 0||e.reset()}dispose(){var e,t;this.Io=!0,(e=this.Op)===null||e===void 0||e.call(this),this.Op=void 0,(t=this.up)===null||t===void 0||t.reset()}dp(){const e=this._instance,t=this;return{get isDisabled(){return!1},get optedOut(){return!e.is_capturing()},Ys:n=>t.Ys(n),getLibraryId:()=>Ft.LIB_NAME,getLibraryVersion:()=>Ft.LIB_VERSION}}Ys(e,t){return new Promise(n=>{let i=!1;const s=o=>{i||(i=!0,clearTimeout(r),n(o))},r=setTimeout(()=>s({kind:"retry-later",error:new Error("metrics request timed out")}),9e4);this._instance._send_request(R(R({method:"POST",url:this.Dp(),data:e,compression:"best-available",batchKey:"metrics"},t&&{transport:t}),{},{fireCallbackOnDrop:!0,callback(o){const c=o.statusCode;if(c>=200&&300>c)s({kind:"ok"});else if(c===413)s({kind:"too-large"});else if(c!==0&&c!==408&&c!==429&&500>c)s({kind:"fatal",error:new Error(`metrics request failed with status ${c}`)});else{var u;s({kind:"retry-later",error:(u=o.error)!==null&&u!==void 0?u:new Error(`metrics request failed with status ${c}`)})}}}))})}Dp(){return this._instance.requestRouter.endpointFor("api","/i/v1/metrics")+"?token="+encodeURIComponent(this._instance.config.token)}}};Cc.__defaultExtensionClasses=R({},R(R(R(R(R(R(R(R(R(R(R(R(R({},Ep),cR),dR),uR),hR),pR),mR),fR),gR),xR),vR),yR),bR));const wR=function(){Ft.SDK_DIST_CHANNEL="npm";const e=Sc[sc]=new Cc;return function(){function t(){t.done||(t.done=!0,hC=!1,Ze(Sc,function(n){n._dom_loaded()}))}K!=null&&K.addEventListener?K.readyState==="complete"?t():Ke(K,"DOMContentLoaded",t,{capture:!1}):B&&ae.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),e}();var _R=wR;const kR=()=>d.jsx("a",{href:"/","aria-label":"Confeti home",className:"relative text-zinc-800 text-base box-border caret-transparent block float-left tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] z-[9999999] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:z-auto hover:outline-0",children:d.jsx("img",{alt:"Confeti logo",src:"/favicon.png",className:"text-base aspect-square box-border caret-transparent tracking-[-0.32px] leading-6 max-w-14 outline-[3px] w-full md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[56px]"})}),SR=()=>d.jsxs("nav",{role:"navigation","aria-label":"Primary",className:"hidden items-center md:flex",children:[d.jsx("a",{href:"/ai-page",className:"relative ml-auto mr-[5.3816px] block rounded-[7.688px] px-[15.376px] py-[7.688px] text-[15.376px] leading-[23.064px] tracking-[-0.30752px] text-neutral-800 capitalize transition-all duration-300 ease-out hover:-translate-y-0.5 hover:bg-stone-200",children:"AI"}),d.jsx("a",{href:"/hiring-intelligence",className:"relative ml-auto mr-[5.3816px] block rounded-[7.688px] px-[15.376px] py-[7.688px] text-[15.376px] leading-[23.064px] tracking-[-0.30752px] text-neutral-800 capitalize transition-all duration-300 ease-out hover:-translate-y-0.5 hover:bg-stone-200",children:"Intelligence"}),d.jsx("a",{href:"/pricing",className:"relative ml-auto mr-[5.3816px] block rounded-[7.688px] px-[15.376px] py-[7.688px] text-[15.376px] leading-[23.064px] tracking-[-0.30752px] text-neutral-800 capitalize transition-all duration-300 ease-out hover:-translate-y-0.5 hover:bg-stone-200",children:"Pricing"}),d.jsx("a",{href:"/contact",className:"relative ml-auto mr-[5.3816px] block rounded-[7.688px] px-[15.376px] py-[7.688px] text-[15.376px] leading-[23.064px] tracking-[-0.30752px] text-neutral-800 capitalize transition-all duration-300 ease-out hover:-translate-y-0.5 hover:bg-stone-200",children:"Contact"})]}),jR="phc_tHySvotig2YirSDYKjEZVsqNSShGntUaYPyHysQD9W6v",CR="https://us.i.posthog.com";function NR(){return!0}let me=null;function TR(e){me=NR()?e.init(jR,{api_host:CR,defaults:"2026-05-30",capture_pageview:!1,logs:{serviceName:"confeti-landing-web",environment:"production"},capture_exceptions:{capture_unhandled_errors:!0,capture_unhandled_rejections:!0,capture_console_errors:!1}}):null}const qv={siteBootstrapped(e){me==null||me.logger.info("marketing site bootstrapped",{renderMode:e})},startForFreeRedirectStarted(){me==null||me.logger.info("start for free redirect started")},desktopDownloadStarted(e){me==null||me.logger.info("desktop download started",{platform:e})}},ER=2200,Pk="https://app.confeti.co",cd=({containerClassName:e,textClassName:t,as:n="button",href:i=Pk})=>{const[s,r]=P.useState(!1),o=u=>{u.preventDefault(),!s&&(r(!0),me==null||me.capture("start_for_free_clicked"),qv.startForFreeRedirectStarted(),window.setTimeout(()=>{window.location.href=Pk},ER))},c=`${e} transition-all duration-300 ${s?"scale-[0.96] cursor-wait opacity-90 shadow-[0_12px_28px_rgba(15,23,42,0.25)] animate-pulse":"hover:-translate-y-0.5"}`;return n==="link"?d.jsx("a",{href:i,"aria-label":"Start for Free",onClick:o,className:c,children:d.jsx("div",{className:t,children:s?"Just sign up.":"Start for Free"})}):d.jsx("button",{type:"button","aria-label":"Start for Free",onClick:o,className:c,children:d.jsx("div",{className:t,children:s?"Just sign up.":"Start for Free"})})},AR=()=>d.jsxs("div",{className:"text-base items-stretch box-border caret-transparent gap-x-6 hidden auto-cols-[1fr] grid-cols-[1fr] grid-rows-[auto_auto] tracking-[-0.32px] leading-6 min-h-0 min-w-0 outline-[3px] gap-y-6 md:text-[17.298px] md:items-center md:gap-x-[23.064px] md:flex md:grid-cols-[1fr_1fr] md:grid-rows-[auto] md:tracking-[-0.34596px] md:leading-[25.947px] md:min-
69h-[auto] md:min-w-[auto] md:gap-y-[23.064px]",children:[d.jsx("a",{href:"https://app.confeti.co/login",className:"text-zinc-800 text-base font-medium items-center box-border caret-transparent gap-x-2 flex justify-center tracking-[-0.32px] leading-6 max-w-full min-h-0 min-w-0 outline-[3px] text-center md:text-[15.376px] md:gap-x-[7.688px] md:tracking-[-0.34596px] md:leading-[23.064px] md:min-h-[auto] md:min-w-[auto] hover:outline-0 hover:underline",children:d.jsx("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 min-h-0 min-w-0 outline-[3px] md:text-[15.376px] md:tracking-[-0.30752px] md:leading-[23.064px] md:min-h-[auto] md:min-w-[auto]",children:"Login"})}),d.jsx(cd,{as:"button",containerClassName:"text-white text-base font-medium items-center bg-zinc-800 bg-[linear-gradient(rgba(204,204,204,0),rgba(255,255,255,0.1))] caret-transparent gap-x-2 flex justify-center tracking-[normal] leading-6 min-h-0 min-w-0 outline-[3px] text-center border border-zinc-800 px-5 py-2 rounded-[9px] md:text-[15.376px] md:gap-x-[7.688px] md:leading-[23.064px] md:min-h-[auto] md:min-w-[auto] md:px-[23.064px] md:py-[11.532px] md:rounded-[8.649px]",textClassName:"text-base box-border caret-transparent leading-6 min-h-0 min-w-0 outline-[3px] md:text-[15.376px] md:leading-[23.064px] md:min-h-[auto] md:min-w-[auto]"})]}),PR=({isOpen:e,onToggle:t})=>d.jsx("button",{type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"mobile-nav-panel",onClick:t,className:"relative z-[9999999] float-right flex aspect-square w-6 items-center justify-center text-2xl leading-9 outline-[3px] transition-transform duration-300 ease-out hover:scale-105 active:scale-95 md:hidden",children:d.jsx("img",{src:"/images/icon-2.svg",alt:"","aria-hidden":"true",className:`h-full w-full transition-transform duration-300 ease-out ${e?"rotate-90":""}`})}),IR=[{href:"/ai-page",label:"AI"},{href:"/hiring-intelligence",label:"Intelligence"},{href:"/pricing",label:"Pricing"},{href:"/contact",label:"Contact"}],RR=({isOpen:e,onNavigate:t})=>e?d.jsx("div",{id:"mobile-nav-panel",className:"absolute inset-x-0 top-[calc(100%+0.5rem)] z-[99999998] overflow-hidden rounded-2xl border border-stone-200/80 bg-white/95 shadow-[0_18px_40px_rgba(15,23,42,0.14)] backdrop-blur-md md:hidden",children:d.jsxs("nav",{role:"navigation","aria-label":"Mobile",className:"flex flex-col px-3 py-3",children:[IR.map(n=>d.jsx("a",{href:n.href,onClick:t,className:"rounded-xl px-3 py-3 text-lg font-medium tracking-[-0.36px] text-neutral-800 transition-colors hover:bg-stone-100",children:n.label},n.href)),d.jsxs("div",{className:"mt-2 flex flex-col gap-3 border-t border-stone-200 px-1 pt-4 pb-2",children:[d.jsx("a",{href:"https://app.confeti.co/login",onClick:t,className:"px-2 py-1 text-base font-medium text-zinc-800 underline-offset-4 hover:underline",children:"Login"}),d.jsx(cd,{as:"button",containerClassName:"text-white text-base font-medium items-center bg-zinc-800 bg-[linear-gradient(rgba(204,204,204,0),rgba(255,255,255,0.1))] flex justify-center border border-zinc-800 px-5 py-3 rounded-[9px]",textClassName:"leading-6"})]})]})}):null,si=()=>{const[e,t]=P.useState(!1),[n,i]=P.useState(!1);return P.useEffect(()=>{const s=()=>{t(window.scrollY>24)};return s(),window.addEventListener("scroll",s,{passive:!0}),()=>{window.removeEventListener("scroll",s)}},[]),P.useEffect(()=>{if(!n)return;const s=o=>{o.key==="Escape"&&i(!1)},r=()=>{window.matchMedia("(min-width: 768px)").matches&&i(!1)};return document.addEventListener("keydown",s),window.addEventListener("resize",r),()=>{document.removeEventListener("keydown",s),window.removeEventListener("resize",r)}},[n]),d.jsx("header",{className:"sticky top-0 z-[998] flex w-full flex-col text-base tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:d.jsxs("div",{className:"relative z-[1000] mx-auto mt-4 w-[95%] text-base tracking-[-0.32px] leading-6 outline-[3px] md:mt-[23.064px] md:w-full md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:[d.jsxs("div",{className:`relative z-[99999999] mx-auto flex h-full min-h-16 w-full max-w-[1360px] items-center justify-between rounded-2xl px-6 py-2.5 backdrop-blur-md transition-all duration-300 ease-out md:static md:min-
69h-[61.504px] md:max-w-[1306.96px] md:px-[23.064px] md:py-[9.61px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] ${e?"bg-white/90 shadow-[0_14px_34px_rgba(15,23,42,0.16)] md:-translate-y-0.5":"bg-white/60 shadow-none"}`,children:[d.jsxs("div",{className:"flex items-center justify-start gap-x-12 gap-y-12 md:gap-x-[46.128px] md:gap-y-[46.128px]",children:[d.jsx(kR,{}),d.jsx(SR,{})]}),d.jsx(AR,{}),d.jsx(PR,{isOpen:n,onToggle:()=>i(s=>!s)})]}),d.jsx(RR,{isOpen:n,onNavigate:()=>i(!1)})]})})},MR=()=>d.jsxs("div",{className:"text-base items-center box-border caret-transparent flex flex-col justify-center tracking-[-0.32px] leading-6 max-w-[960px] min-h-56 min-w-[auto] outline-[3px] text-center mx-auto md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[922.56px] md:min-h-[353.648px]",children:[d.jsxs("div",{className:"text-base items-start box-border caret-transparent gap-x-[5px] flex justify-center tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] gap-y-[5px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:[d.jsx("img",{src:"/images/6a30685b9b6760648ab528fb_Icon.svg",alt:"Confeti brand mark",className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 max-w-full min-h-[auto] min-w-[auto] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]"}),d.jsx("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] mb-4 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:mb-[23.064px]",children:d.jsx("h2",{className:"text-lg font-medium box-border caret-transparent tracking-[-0.36px] leading-[18px] outline-[3px] md:text-[20px] md:tracking-[-0.4px] md:leading-5",children:"confeti"})})]}),d.jsxs("h1",{id:"hero-heading",className:"text-[40px] font-medium box-border caret-transparent tracking-[-1.2px] leading-[1.05] min-h-[auto] min-w-[auto] outline-[3px] md:text-[72px] md:tracking-[-2.8px] md:leading-[1.02]",children:["The ",d.jsx("span",{className:"text-[#C97B3A]",children:"team"})," you build is",d.jsx("br",{}),"the ",d.jsx("span",{className:"text-[#C97B3A]",children:"company"})," you build"]}),d.jsxs("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] opacity-0 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:[d.jsx("div",{className:"text-base box-border caret-transparent hidden h-4 tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:block md:h-[15.376px] md:tracking-[-0.34596px] md:leading-[25.947px]"}),d.jsx("div",{className:"text-base box-border caret-transparent hidden h-4 tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:h-[15.376px] md:tracking-[-0.34596px] md:leading-[25.947px]"}),d.jsx("div",{className:"text-base box-border caret-transparent block h-4 tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:hidden md:h-[15.376px] md:tracking-[-0.34596px] md:leading-[25.947px]"})]}),d.jsx("div",{className:"box-border caret-transparent col-end-[span_1] col-start-[span_1] row-end-[span_1] row-start-[span_1] max-w-[670px] min-h-[auto] min-w-[auto] outline-[3px]",children:d.jsx("p",{className:"text-stone-600 text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[17px] md:tracking-[-0.34px] md:leading-[1.45]",children:"Confeti is your company’s hiring brain: what great looks like here, and who to bring in next."})}),d.jsx("div",{className:"text-base box-border caret-transparent gap-x-2 flex flex-col justify-start tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] gap-y-2 w-full mt-8 md:text-[17.298px] md:gap-x-[7.688px] md:tracking-[-0.34596px] md:leading-[25.947px] md:gap-y-[7.688px] md:w-auto md:mt-[44.206px]",children:d.jsx(cd,{as:"button",containerClassName:"text-white text-base font-medium items-center bg-zinc-800 bg-[linear-gradient(rgba(204,204,204,0),rgba(255,255,255,0.1))] caret-transparent gap-x-2 flex justify-center tracking-[normal] leading-6 min-h-[auto] min-w-[auto] outline-[3px] border border-zinc-800 px-5 py-2 rounded-[9px] md:text-[15.376px] md:gap-x-[7.688px] md:leading-[23.064px] md:px-[23.064px] md:py-[11.532px] md:rounded-[8.649px]",textClassName:"text-base box-border caret-transparent leading-6 min-h-[auto] min-w-[auto] outline-[3px] md:text-[15.376px] md:leading-[23.064px]"})})]}),OR={fetchpriority:"high"},LR="text-base shadow-[rgba(14,43,70,0.09)_-5px_8px_15px_0px] box-border caret-transparent block tracking-[-0.32px] leading-6 max-w-none outline-[3px] w-full rounded-[10px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-full md:w-auto h-auto",DR=()=>d.jsx("div",{className:"text-base items-center box-border caret-transparent flex justify-center tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] w-full md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:d.jsxs("picture",{children:[d.jsx("source",{type:"image/webp",srcSet:"/hero-product-1280.webp 1280w, /hero-product.webp 1920w",sizes:"(max-width: 768px) 100vw, min(100vw, 1246px)"}),d.jsx("img",{src:"/hero-product.jpg",alt:"Confeti interview intelligence product interface",width:1920,height:1440,sizes:"(max-width: 768px) 100vw, min(100vw, 1246px)",decoding:"async",...OR,className:LR})]})}),FR=()=>d.jsx("section",{"aria-labelledby":"hero-heading",className:"relative text-base box-border caret-transparent tracking-[-0.32px] leading-6 min-h-[500px] outline-[3px] w-full overflow-hidden py-10 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:pt-[107.632px] md:pb-[76.88px]",children:d.jsxs("div",{className:"text-base box-border caret-transparent flex flex-col grid-cols-[minmax(0px,1fr)_minmax(0px,1fr)_1fr] tracking-[-0.32px] leading-6 max-w-[1380px] outline-[3px] gap-y-8 w-full mx-auto px-5 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[1326.18px] md:gap-y-[76.88px] md:px-10",children:[d.jsx(MR,{}),d.jsx(DR,{})]})}),$R=e=>{const t=[...e.logos,...e.logos];return d.jsxs("div",{className:`group relative flex min-w-0 flex-1 items-center overflow-hidden tracking-[-0.32px] outline-[3px] md:tracking-[-0.34596px] ${e.rootVariantClass}`,role:"region","aria-label":"Trusted by logo carousel",children:[d.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 z-[5] w-8 bg-[linear-gradient(90deg,rgb(250,248,246)_12%,rgba(250,248,246,0))] md:w-16 md:bg-[linear-gradient(90deg,rgb(250,248,246)_18%,rgba(255,255,255,0))]"}),d.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 z-[5] w-8 bg-[linear-gradient(275deg,rgb(250,248,246),rgba(250,248,246,0))] md:w-16 md:bg-[linear-gradient(275deg,rgb(250,248,246),rgba(247,245,242,0))]"}),d.jsx("div",{className:"flex w-max will-change-transform animate-logo-marquee group-hover:[animation-play-state:paused]",children:d.jsx("ul",{role:"list",className:"flex shrink-0 items-center","aria-hidden":!1,children:t.map((n,i)=>d.jsx("li",{role:"listitem",className:"relative mr-10 flex shrink-0 items-center justify-start md:mr-[46.128px]",children:d.jsx("img",{src:n.src,alt:i<e.logos.length?n.alt:"","aria-hidden":i>=e.logos.length,className:"h-9 w-auto max-h-9 max-w-[8.5rem] object-contain md:h-[46.128px] md:max-h-[46.128px] md:max-w-[12rem]"})},`${n.src}-${n.alt}-${i}`))})})]})},BR=[{src:"/partner_logos/privalia.png",alt:"Privalia"},{src:"/partner_logos/gkr_logo.png",alt:"GKR"},{src:"/partner_logos/riverside.svg",alt:"Riverside"},{src:"/partner_logos/ibso_logo.png",alt:"IBSO"},{src:"/partner_logos/burrito_blanco_no_background.png",alt:"Burrito Blanco"},{src:"/partner_logos/trabeja_logo.png",alt:"Trabeja"},{src:"/partner_logos/inmatex.png",alt:"Inmatex"},{src:"/partner_logos/hispanotex.png",alt:"Hispanotex"}],zR=()=>d.jsx("section",{className:"relative w-full py-8 text-base tracking-[-0.32px] leading-6 outline-[3px] md:min-
69h-[121.47px] md:py-[38.44px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:d.jsx("div",{className:"mx-auto w-full max-w-[1380px] px-5 md:max-w-[1326.18px] md:px-10",children:d.jsxs("div",{className:"flex min-w-0 flex-col items-stretch gap-3 md:flex-row md:items-center md:gap-0",children:[d.jsx("div",{className:"shrink-0 text-sm font-medium text-stone-600 md:mr-[61.504px] md:text-base md:text-stone-800",children:"Trusted by"}),d.jsx($R,{layout:"nested",rootVariantClass:"justify-start max-w-full w-full py-2 md:py-0",logos:BR,firstTrackVariantClass:"flex min-h-[auto] min-w-[auto]",secondTrackVariantClass:""})]})})}),Uv=e=>d.jsxs("div",{className:e.rootClassName,children:[e.showTopDecorations&&d.jsxs("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] opacity-0 outline-[3px] text-left md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:text-center",children:[d.jsx("div",{className:"box-border caret-transparent outline-[3px] text-base hidden h-[104px] tracking-[-0.32px] leading-6 text-left md:text-[17.298px] md:block md:h-[99.944px] md:tracking-[-0.34596px] md:leading-[25.947px] md:text-center"}),d.jsx("div",{className:"text-base box-border caret-transparent hidden h-12 tracking-[-0.32px] leading-6 outline-[3px] text-left md:text-[17.298px] md:h-[46.128px] md:tracking-[-0.34596px] md:leading-[25.947px] md:text-center"}),d.jsx("div",{className:"text-base box-border caret-transparent hidden h-0 tracking-[-0.32px] leading-6 outline-[3px] text-left md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:text-center"}),d.jsx("div",{className:"text-base box-border caret-transparent block h-0 tracking-[-0.32px] leading-6 outline-[3px] text-left md:text-[17.298px] md:hidden md:tracking-[-0.34596px] md:leading-[25.947px] md:text-center"})]}),d.jsx("div",{className:e.headingWrapperClassName,children:e.showInnerHeadingWrapper?d.jsx("div",{className:e.innerHeadingWrapperClassName,children:d.jsx("div",{className:"text-[40px] font-medium box-border caret-transparent tracking-[-1.2px] leading-10 outline-[3px] text-left md:text-[46.128px] md:tracking-[-2.3064px] md:leading-[46.128px] md:text-center before:accent-auto before:caret-transparent before:text-stone-800 before:table before:text-[40px] before:not-italic before:normal-nums before:font-medium before:col-end-2 before:col-start-1 before:row-end-2 before:row-start-1 before:tracking-[-1.2px] before:leading-10 before:list-outside before:list-disc before:outline-[3px] before:pointer-events-auto before:text-left before:no-underline before:indent-[0px] before:normal-case before:visible before:border-separate before:font-geist before:md:text-[46.128px] before:md:tracking-[-2.3064px] before:md:leading-[46.128px] before:md:text-center after:accent-auto after:caret-transparent after:clear-both after:text-stone-800 after:table after:text-[40px] after:not-italic after:normal-nums after:font-medium after:col-end-2 after:col-start-1 after:row-end-2 after:row-start-1 after:tracking-[-1.2px] after:leading-10 after:list-outside after:list-disc after:outline-[3px] after:pointer-events-auto after:text-left after:no-underline after:indent-[0px] after:normal-case after:visible after:border-separate after:font-geist after:md:text-[46.128px] after:md:tracking-[-2.3064px] after:md:leading-[46.128px] after:md:text-center",children:d.jsxs("h2",{className:e.headingClassName,children:[e.headingText,d.jsx("em",{className:e.emphasisClassName,children:e.emphasisText})]})})}):e.showHeadingDecorationClassName?d.jsx("div",{className:e.headingDecorationClassName,children:d.jsxs("h2",{className:e.headingClassName,children:[e.headingText,d.jsx("em",{className:e.emphasisClassName,children:e.emphasisText})]})}):d.jsx("div",{className:"text-[40px] font-medium box-border caret-transparent tracking-[-1.2px] leading-10 outline-[3px] text-left md:text-[46.128px] md:tracking-[-2.3064px] md:leading-[46.128px] md:text-center before:accent-auto before:caret-transparent before:text-stone-800 before:table before:text-[40px] before:not-italic before:normal-nums before:font-medium before:col-end-2 before:col-start-1 before:row-end-2 before:row-start-1 before:tracking-[-1.2px] before:leading-10 before:list-outside before:list-disc before:outline-[3px] before:pointer-events-auto before:text-left before:no-underline before:indent-[0px] before:normal-case before:visible before:border-separate before:font-geist before:md:text-[46.128px] before:md:tracking-[-2.3064px] before:md:leading-[46.128px] before:md:text-center after:accent-auto after:caret-transparent after:clear-both after:text-stone-800 after:table after:text-[40px] after:not-italic after:normal-nums after:font-medium after:col-end-2 after:col-start-1 after:row-end-2 after:row-start-1 after:tracking-[-1.2px] after:leading-10 after:list-outside after:list-disc after:outline-[3px] after:pointer-events-auto after:text-left after:no-underline after:indent-[0px] after:normal-case after:visible after:border-separate after:font-geist after:md:text-[46.128px] after:md:tracking-[-2.3064px] after:md:leading-[46.128px] after:md:text-center",children:d.jsxs("h2",{className:e.headingClassName,children:[e.headingText,d.jsx("em",{className:e.emphasisClassName,children:e.emphasisText})]})})}),e.showDescription&&d.jsx("div",{className:"text-base box-border caret-transparent col-end-[span_1] col-start-[span_1] row-end-[span_1] row-start-[span_1] tracking-[-0.32px] leading-6 max-w-[830px] min-h-[auto] min-w-[auto] outline-[3px] text-left md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:text-center",children:d.jsx("p",{className:"text-stone-600 text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] text-left md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:text-center",children:e.descriptionText})}),e.showMiddleDecorations&&d.jsxs("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] opacity-0 outline-[3px] text-left md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:text-center",children:[d.jsx("div",{className:"text-base box-border caret-transparent hidden h-6 tracking-[-0.32px] leading-6 outline-[3px] text-left md:text-[17.298px] md:block md:h-[23.064px] md:tracking-[-0.34596px] md:leading-[25.947px] md:text-center"}),d.jsx("div",{className:"text-base box-border caret-transparent hidden h-6 tracking-[-0.32px] leading-6 outline-[3px] text-left md:text-[17.298px] md:h-[23.064px] md:tracking-[-0.34596px] md:leading-[25.947px] md:text-center"}),d.jsx("div",{className:"text-base box-border caret-transparent hidden h-6 tracking-[-0.32px] leading-6 outline-[3px] text-left md:text-[17.298px] md:h-[23.064px] md:tracking-[-0.34596px] md:leading-[25.947px] md:text-center"}),d.jsx("div",{className:"text-base box-border caret-transparent block h-6 tracking-[-0.32px] leading-6 outline-[3px] text-left md:text-[17.298px] md:hidden md:h-[23.064px] md:tracking-[-0.34596px] md:leading-[25.947px] md:text-center"})]}),e.showLink&&d.jsx("a",{href:e.linkHref,className:"text-base font-semibold items-center box-border caret-transparent clear-right gap-x-1 flex tracking-[-0.32px] leading-6 max-w-full min-h-[auto] min-w-[auto] outline-[3px] text-left md:text-[15.376px] md:gap-x-[3.844px] md:tracking-[-0.30752px] md:leading-[23.064px] md:text-center hover:outline-0 hover:underline",children:d.jsx("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] text-left md:text-[15.376px] md:tracking-[-0.30752px] md:leading-[23.064px] md:text-center",children:e.linkText})}),e.showBottomDecorations&&d.jsxs("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] opacity-0 outline-[3px] text-left md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:text-center",children:[d.jsx("div",{className:"text-base box-border caret-transparent hidden h-[72px] tracking-[-0.32px] leading-6 outline-[3px] text-left md:text-[17.298px] md:block md:h-[69.192px] md:tracking-[-0.34596px] md:leading-[25.947px] md:text-center"}),d.jsx("div",{className:"text-base box-border caret-transparent hidden h-[72px] tracking-[-0.32px] leading-6 outline-[3px] text-left md:text-[17.298px] md:h-[69.192px] md:tracking-[-0.34596px] md:leading-[25.947px] md:text-center"}),d.jsx("div",{className:"text-base box-border caret-transparent hidden h-8 tracking-[-0.32px] leading-6 outline-[3px] text-left md:text-[17.298px] md:h-[30.752px] md:tracking-[-0.34596px] md:leading-[25.947px] md:text-center"}),d.jsx("div",{className:"text-base box-border caret-transparent block h-8 tracking-[-0.32px] leading-6 outline-[3px] text-left md:text-[17.298px] md:hidden md:h-[30.752px] md:tracking-[-0.34596px] md:leading-[25.947px] md:text-center"})]}),e.showButton&&d.jsx("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] gap-x-2 flex flex-wrap gap-y-2 md:gap-x-[7.688px] md:gap-y-[7.688px]",children:e.buttonText==="Start for Free"?d.jsx(cd,{as:"button",containerClassName:"text-white text-base font-medium items-center bg-zinc-800 bg-[linear-gradient(rgba(204,204,204,0),rgba(255,255,255,0.1))] caret-transparent gap-x-2 flex justify-center tracking-[normal] leading-6 min-h-[auto] min-w-[auto] outline-[3px] border border-zinc-800 px-5 py-2 rounded-[9px] md:text-[15.376px] md:gap-x-[7.688px] md:leading-[23.064px] md:px-[23.064px] md:py-[11.532px] md:rounded-[8.649px]",textClassName:"text-base box-border caret-transparent leading-6 min-h-[auto] min-w-[auto] outline-[3px] md:text-[15.376px] md:leading-[23.064px]"}):d.jsx("button",{"aria-label":"Open modal",className:"text-white text-base font-medium items-center bg-zinc-800 bg-[linear-gradient(rgba(204,204,204,0),rgba(255,255,255,0.1))] caret-transparent gap-x-2 flex justify-center tracking-[normal] leading-6 min-h-[auto] min-w-[auto] outline-[3px] border border-zinc-800 px-5 py-2 rounded-[9px] md:text-[15.376px] md:gap-x-[7.688px] md:leading-[23.064px] md:px-[23.064px] md:py-[11.532px] md:rounded-[8.649px]",children:d.jsx("div",{className:"text-base box-border caret-transparent leading-6 min-h-[auto] min-w-[auto] outline-[3px] md:text-[15.376px] md:leading-[23.064px]",children:e.buttonText})})})]}),vg=[{title:"Notes",tag:"interviews",tagClass:"bg-fuchsia-200",image:"/images/uploaded-asset-1788700807474-0.png"},{title:"Role Memory",tag:"hiring process",tagClass:"bg-amber-300",image:"/images/uploaded-asset-1788700807511-1.png"},{title:"Process Calibration",tag:"hiring process",tagClass:"bg-yellow-200",image:"/images/uploaded-asset-1788700807573-2.png"},{title:"Interview Preparation",tag:"interviews",tagClass:"bg-red-200",image:"/images/uploaded-asset-1788700996235-0.png"},{title:"Candidate Evals",tag:"candidates & evaluations",tagClass:"bg-yellow-400",image:"/images/uploaded-asset-1788700996250-1.png"},{title:"Scorecards",tag:"candidates & evaluations",tagClass:"bg-indigo-200",image:"/images/uploaded-asset-1788700996302-2.png"},{title:"Candidate Heatmap",tag:"candidates & evaluations",tagClass:"bg-amber-300",image:"/images/uploaded-asset-1788701147592-0.png"},{title:"Custom Summaries",tag:"interviews",tagClass:"bg-yellow-200",image:"/images/uploaded-asset-1788701147606-1.png"},{title:"Smart Intake",tag:"roles & intakes",tagClass:"bg-rose-300",image:"/images/uploaded-asset-1788701147621-2.png"},{title:"Expedite Candidate",tag:"hiring process",tagClass:"bg-blue-300",image:"/images/uploaded-asset-1788701264827-0.png"}],Ik=({title:e,tag:t,tagClass:n,image:i,className:s=""})=>d.jsx("div",{className:`relative shrink-0 ${s}`,children:d.jsxs("div",{className:"relative flex h-full flex-col overflow-hidden rounded-2xl border border-stone-200 bg-stone-50",children:[d.jsx("img",{src:i,alt:`${e} — ${t}`,className:"aspect-[3.3/2.35] w-full object-cover object-center",draggable:!1}),d.jsxs("div",{className:"flex flex-col gap-2.5 p-4",children:[d.jsx("h3",{className:"text-[14px] font-semibold leading-[1.25] text-neutral-900 md:text-[16
69px]",children:e}),d.jsx("div",{children:d.jsx("span",{className:`inline-block rounded-md px-2 py-1 text-[11px] font-semibold text-slate-900 md:text-[12px] ${n}`,children:t})})]})]})}),VR=()=>d.jsxs("div",{className:"w-full max-w-full outline-[3px]","aria-label":"Vibe Hub tools carousel",children:[d.jsx("div",{className:"-mx-5 flex snap-x snap-mandatory gap-3 overflow-x-auto px-5 pb-1 [-ms-overflow-style:none] [scrollbar-width:none] md:hidden [&::-webkit-scrollbar]:hidden",children:vg.map(e=>d.jsx(Ik,{...e,className:"w-[72vw] max-w-[260px] snap-center"},e.title))}),d.jsx("div",{className:"group hidden w-full overflow-hidden md:block",children:d.jsx("div",{className:"relative flex w-max gap-5 will-change-transform animate-carousel-loop-fast group-hover:[animation-play-state:paused]",children:[...vg,...vg].map((e,t)=>d.jsx(Ik,{...e,className:"w-[220px]"},`${e.title}-${t}`))})})]}),HR=()=>d.jsxs("section",{className:"relative text-base bg-[url('/images/6a31ca942ed318d15d4a6dd2_grid.svg')] bg-no-repeat bg-size-[auto_93%] box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] w-full bg-center py-[88px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:py-[138.384px]",children:[d.jsx("div",{className:"text-base box-border caret-transparent flex flex-col grid-cols-[minmax(0px,1fr)_minmax(0px,1fr)_1fr] tracking-[-0.32px] leading-6 max-w-[1380px] outline-[3px] gap-y-8 w-full mx-auto px-5 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[1326.18px] md:gap-y-[76.88px] md:px-10",children:d.jsx(Uv,{rootClassName:"text-base items-start box-border caret-transparent flex flex-col justify-start tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] text-left w-full mx-auto md:text-[17.298px] md:items-center md:justify-normal md:tracking-[-0.34596px] md:leading-[25.947px] md:text-center md:w-auto",showTopDecorations:!0,headingWrapperClassName:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 max-w-lg min-h-[auto] min-w-[auto] outline-[3px] text-left md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[492.032px] md:text-center",showInnerHeadingWrapper:!0,innerHeadingWrapperClassName:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] text-left mb-4 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:text-center md:mb-[23.064px]",showHeadingDecorationClassName:!1,headingDecorationClassName:"",headingClassName:"text-[40px] box-border caret-transparent tracking-[-1.2px] leading-10 outline-[3px] text-left md:text-[46.128px] md:tracking-[-2.3064px] md:leading-[46.128px] md:text-center",headingText:"One system, from first call to",emphasisClassName:"text-5xl italic font-light box-border caret-transparent tracking-[-1.2px] leading-[48px] outline-[3px] text-left font-crimsonpro md:text-[58.4288px] md:tracking-[-2.3064px] md:leading-[58.4288px] md:text-center",emphasisText:" signed offer.",showDescription:!0,descriptionText:"Every team works hires differently. So why should you interview the same? With all your conversation data in Confeti, learn from each call to elevate you and your team's game.",showMiddleDecorations:!0,showLink:!0,linkHref:"/ai-page",linkText:"Learn more →",showBottomDecorations:!0,showButton:!1,buttonText:""})}),d.jsx(VR,{})]}),WR=()=>d.jsx("section",{className:"relative text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] w-full py-10 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:py-[76.88px]",children:d.jsx("div",{className:"w-full max-w-[1326px] mx-auto px-5 md:px-10",children:d.jsx("img",{src:"/images/uploaded-asset-1788707245209-0.png",alt:"Self-actualization for perfect context visual",className:"w-full h-auto max-h-[520px] object-contain mx-auto",loading:"lazy"})})}),qR=["Capture","Personalized score prep","Intake","Application review","Insights"],UR=({activeTab:e,onTabClick:t})=>d.jsx("div",{role:"tablist",className:"relative text-base items-center box-border caret-transparent gap-x-2 flex flex-nowrap auto-cols-[1fr] grid-cols-[1fr_1fr] grid-rows-[auto_auto] justify-start tracking-[-0.32px] leading-[20.8px] outline-[3px] gap-y-2 overflow-auto pl-[1.6px] py-3 md:text-[17.298px] md:gap-x-[15.376px] md:flex-wrap md:justify-center md:tracking-[-0.34596px] md:leading-[25.947px] md:gap-y-[15.376px] md:pl-0 md:py-0",children:qR.map((n,i)=>{const s=e===i;return d.jsx("button",{type:"button",role:"tab","aria-selected":s,onClick:()=>t(i),className:`relative text-base font-medium items-center box-border caret-transparent gap-x-4 flex shrink-0 justify-center tracking-[-0.32px] leading-[20.8px] max-w-full min-h-[auto] min-w-24 outline-[3px] gap-y-4 text-center align-top border border-stone-300 px-3 py-2 rounded-lg border-solid md:text-[15.376px] md:gap-x-[15.376px] md:tracking-[-0.34596px] md:leading-[23.064px] md:min-w-[auto] md:gap-y-[15.376px] md:px-[11.532px] md:py-[7.688px] md:rounded-[7.688px] transition-colors duration-150 ${s?"bg-stone-200 text-stone-900":"bg-transparent text-neutral-800 hover:bg-stone-200"}`,children:d.jsx("span",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-[20.8px] min-h-[auto] min-w-[auto] outline-[3px] md:text-[15.376px] md:tracking-[-0.34596px] md:leading-[23.064px]",children:n})},n)})}
69),Jr=e=>d.jsx("div",{role:"tabpanel",className:e.panelClassName,children:d.jsxs("div",{className:"text-base items-center box-border caret-transparent gap-x-12 grid auto-cols-[1fr] grid-cols-[1fr] grid-rows-[auto] tracking-[-0.32px] leading-[20.8px] outline-[3px] gap-y-12 w-full py-6 md:text-[17.298px] md:gap-x-[92.256px] md:grid-cols-[1fr_1fr] md:tracking-[-0.34596px] md:leading-[25.947px] md:gap-y-[61.504px] md:py-0",children:[d.jsxs("div",{className:e.contentClassName,children:[d.jsxs("div",{className:e.eyebrowClassName,children:[d.jsx("img",{src:e.eyebrowIconSrc,alt:"","aria-hidden":"true",className:e.eyebrowIconClassName}),d.jsx("div",{className:e.eyebrowTextClassName,children:e.eyebrowText})]}),d.jsx("h3",{className:e.titleClassName,children:e.title}),d.jsx("div",{className:e.descriptionWrapperClassName,children:d.jsx("p",{className:e.descriptionClassName,children:e.description})}),d.jsx("div",{className:e.ctaWrapperClassName,children:e.ctaText==="Start for Free"?d.jsx(cd,{as:"link",href:"https://app.confeti.co/",containerClassName:e.ctaButtonClassName,textClassName:e.ctaTextClassName}):d.jsx("a",{href:"https://app.confeti.co/",className:e.ctaButtonClassName,children:d.jsx("div",{className:e.ctaTextClassName,children:e.ctaText})})})]}),d.jsxs("div",{className:"relative text-base items-center box-border caret-transparent flex flex-col justify-center tracking-[-0.32px] leading-[20.8px] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:[d.jsx("img",{alt:`${e.title} product preview`,src:e.primaryImageSrc,sizes:e.primaryImageSizes,className:e.primaryImageClassName}),e.overlayStackImages&&e.overlayStackImages.length>0?d.jsx("div",{className:e.overlayStackContainerClassName??"pointer-events-none absolute -right-10 top-8 hidden md:block",children:e.overlayStackImages.map((t,n)=>d.jsx("img",{src:t.src,alt:t.alt,className:t.className},`${t.src}-${n}`))}):null]})]})}),GR=()=>{const[e,t]=P.useState(0),n=P.useRef(null),i=s=>{t(s)};return P.useEffect(()=>{const s=n.current;if(!s)return;const r=s.querySelectorAll('[role="tabpanel"]');r.length&&r.forEach((o,c)=>{o.classList.toggle("hidden",c!==e)})},[e]),d.jsx("section",{ref:n,className:"relative text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] w-full py-12 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:py-[115.32px]",children:d.jsx("div",{className:"text-base box-border caret-transparent flex flex-col grid-cols-[minmax(0px,1fr)_minmax(0px,1fr)_1fr] tracking-[-0.32px] leading-6 max-w-[1380px] outline-[3px] gap-y-8 w-full mx-auto px-5 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[1326.18px] md:gap-y-[76.88px] md:px-10",children:d.jsxs("div",{className:"text-base items-stretch box-border caret-transparent flex flex-col justify-center tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:[d.jsx(Uv,{rootClassName:"text-base items-start box-border caret-transparent flex flex-col justify-start tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] text-left w-full mx-auto md:text-[17.298px] md:items-center md:justify-normal md:tracking-[-0.34596px] md:leading-[25.947px] md:text-center md:w-auto",showTopDecorations:!1,headingWrapperClassName:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] text-left mb-5 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:text-center md:mb-[46.128px]",showInnerHeadingWrapper:!1,innerHeadingWrapperClassName:"",showHeadingDecorationClassName:!1,headingDecorationClassName:"",headingClassName:"text-[40px] box-border caret-transparent tracking-[-1.2px] leading-10 outline-[3px] text-left md:text-[46.128px] md:tracking-[-2.3064px] md:leading-[46.128px] md:text-center",headingText:"One platform for ",emphasisClassName:"text-5xl italic font-light box-border caret-transparent tracking-[-1.2px] leading-[48px] outline-[3px] text-left font-crimsonpro md:text-[58.4288px] md:tracking-[-2.3064px] md:leading-[58.4288px] md:text-center",emphasisText:"everything talent",showDescription:!1,descriptionText:"",showMiddleDecorations:!1,showLink:!1,linkHref:"",linkText:"",showBottomDecorations:!1,showButton:!1,buttonText:""}),d.jsxs("div",{className:"relative text-base bg-transparent box-border caret-transparent tracking-[-0.32px] leading-[20.8px] min-h-[704px] min-w-[auto] outline-[3px] rounded-2xl md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:min-
69h-[518.94px] md:rounded-[15.376px] before:accent-auto before:caret-transparent before:text-stone-800 before:table before:text-base before:not-italic before:normal-nums before:font-normal before:col-end-2 before:col-start-1 before:row-end-2 before:row-start-1 before:tracking-[-0.32px] before:leading-[20.8px] before:list-outside before:list-disc before:outline-[3px] before:pointer-events-auto before:text-start before:no-underline before:indent-[0px] before:normal-case before:visible before:border-separate before:font-geist before:md:text-[17.298px] before:md:tracking-[-0.34596px] before:md:leading-[25.947px] after:accent-auto after:caret-transparent after:clear-both after:text-stone-800 after:table after:text-base after:not-italic after:normal-nums after:font-normal after:col-end-2 after:col-start-1 after:row-end-2 after:row-start-1 after:tracking-[-0.32px] after:leading-[20.8px] after:list-outside after:list-disc after:outline-[3px] after:pointer-events-auto after:text-start after:no-underline after:indent-[0px] after:normal-case after:visible after:border-separate after:font-geist after:md:text-[17.298px] after:md:tracking-[-0.34596px] after:md:leading-[25.947px]",children:[d.jsx(UR,{activeTab:e,onTabClick:i}),d.jsxs("div",{className:"relative text-base box-border caret-transparent tracking-[-0.32px] leading-[20.8px] max-w-[1360px] min-h-[688px] outline-[3px] w-full mt-8 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[1306.96px] md:min-h-[369.024px] md:mt-[92.256px]",children:[d.jsx(Jr,{panelClassName:"relative text-base box-border caret-transparent h-full tracking-[-0.32px] leading-[20.8px] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",contentClassName:"text-base items-start self-start box-border caret-transparent flex flex-col tracking-[-0.32px] leading-[20.8px] max-w-none min-h-[auto] min-w-[auto] outline-[3px] gap-y-6 mt-0 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[445.904px] md:gap-y-[23.064px] md:mt-[49.2032px]",eyebrowClassName:"text-base font-semibold items-center box-border caret-transparent gap-x-2 flex justify-start tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] gap-y-2 md:text-[15.376px] md:gap-x-[9.2256px] md:tracking-[-0.30752px] md:leading-[23.064px] md:gap-y-[9.2256px]",eyebrowIconClassName:"text-base aspect-square box-border caret-transparent tracking-[-0.32px] leading-6 max-w-full min-h-[auto] min-w-[auto] outline-[3px] w-8 md:text-[15.376px] md:tracking-[-0.30752px] md:leading-[23.064px] md:w-[30.752px]",eyebrowIconSrc:"/images/69cb663efdce03c15ee2c640_Property_1_Default.svg",eyebrowTextClassName:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] md:text-[15.376px] md:tracking-[-0.30752px] md:leading-[23.064px]",eyebrowText:"Capture",titleClassName:"text-[32px] font-medium box-border caret-transparent tracking-[-0.96px] leading-[33.92px] min-h-[auto] min-w-[auto] outline-[3px] md:text-[30.752px] md:tracking-[-1.5376px] md:leading-[32.5971px]",title:"One app to capture any conversation",descriptionWrapperClassName:"text-base box-border caret-transparent col-end-[span_1] col-start-[span_1] row-end-[span_1] row-start-[span_1] tracking-[-0.32px] leading-[20.8px] max-w-screen-sm min-h-[auto] min-w-[auto] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[615.04px]",descriptionClassName:"text-stone-600 text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",description:"Capture calls, interview notes, recruiter debriefs, and hiring-manager conversations in one place. Confeti structures every interaction into shared context so teams align faster, reduce repeated intake, and move with confidence.",ctaWrapperClassName:"text-base box-border caret-transparent gap-x-2 flex flex-wrap tracking-[-0.32px] leading-[20.8px] min-h-[auto] min-w-[auto] outline-[3px] gap-y-2 md:text-[17.298px] md:gap-x-[7.688px] md:tracking-[-0.34596px] md:leading-[25.947px] md:gap-y-[7.688px]",ctaButtonClassName:"text-white text-base font-medium items-center bg-zinc-800 bg-[linear-gradient(rgba(204,204,204,0),rgba(255,255,255,0.1))] caret-transparent gap-x-2 flex justify-center tracking-[normal] leading-6 min-h-[auto] min-w-[auto] outline-[3px] text-center border border-zinc-800 px-5 py-2 rounded-[9px] md:text-[15.376px] md:gap-x-[7.688px] md:leading-[23.064px] md:px-[23.064px] md:py-[11.532px] md:rounded-[8.649px]",ctaTextClassName:"text-base box-border caret-transparent leading-6 min-h-[auto] min-w-[auto] outline-[3px] md:text-[15.376px] md:leading-[23.064px]",ctaText:"Get a demo",primaryImageSrc:"/images/uploaded-asset-1788710666601-0.png",primaryImageSizes:"(max-width: 1126px) 100v
69w, 1126px",primaryImageClassName:"text-base aspect-auto box-border caret-transparent h-full tracking-[-0.32px] leading-[20.8px] max-w-full min-h-[auto] min-w-[auto] object-cover object-left outline-[3px] w-full md:text-[17.298px] md:aspect-[3_/_2] md:tracking-[-0.34596px] md:leading-[25.947px]",overlayStackContainerClassName:"pointer-events-none absolute -right-[44px] -top-[28px] hidden md:block",overlayStackImages:[{src:"/images/uploaded-asset-1788725020382-0.png",alt:"Capture card overlay",className:"relative z-20 w-[292px]"}],secondaryImageSrc:"/images/69ce0867688f7f2bac12995d_Frame_2147236655.avif",secondaryImageSizes:"(max-width: 1314px) 100vw, 1314px",secondaryImageClassName:"absolute text-base box-border caret-transparent h-28 left-[-49.6px] tracking-[-0.32px] leading-[20.8px] max-w-full object-contain outline-[3px] text-left ml-10 -bottom-6 md:text-[17.298px] md:bottom-[-23.064px] md:h-[199.888px] md:left-[-47.6656px] md:tracking-[-0.34596px] md:leading-[25.947px] md:text-start md:ml-0"}),d.jsx(Jr,{panelClassName:"relative text-base box-border caret-transparent hidden h-full tracking-[-0.32px] leading-[20.8px] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",contentClassName:"text-base items-start self-start box-border caret-transparent flex flex-col tracking-[-0.32px] leading-[20.8px] max-w-none outline-[3px] gap-y-6 mt-0 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[445.904px] md:gap-y-[23.064px] md:mt-[49.2032px]",eyebrowClassName:"text-base font-semibold items-center box-border caret-transparent gap-x-2 flex justify-start tracking-[-0.32px] leading-6 outline-[3px] gap-y-2 md:text-[15.376px] md:gap-x-[9.2256px] md:tracking-[-0.30752px] md:leading-[23.064px] md:gap-y-[9.2256px]",eyebrowIconClassName:"text-base aspect-square box-border caret-transparent tracking-[-0.32px] leading-6 max-w-full outline-[3px] w-8 md:text-[15.376px] md:tracking-[-0.30752px] md:leading-[23.064px] md:w-[30.752px]",eyebrowIconSrc:"/images/69cb663efdce03c15ee2c644_Property_1_Variant2.svg",eyebrowTextClassName:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[15.376px] md:tracking-[-0.30752px] md:leading-[23.064px]",eyebrowText:"Interviews",titleClassName:"text-[32px] font-medium box-border caret-transparent tracking-[-0.96px] leading-[33.92px] outline-[3px] md:text-[30.752px] md:tracking-[-1.5376px] md:leading-[32.5971px]",title:"Turn every interview into usable signal",descriptionWrapperClassName:"text-base box-border caret-transparent col-end-[span_1] col-start-[span_1] row-end-[span_1] row-start-[span_1] tracking-[-0.32px] leading-[20.8px] max-w-screen-sm outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[615.04px]",descriptionClassName:"text-stone-600 text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",description:"Stay focused on the candidate while Confeti captures conversations, organizes evidence, and carries interview learning forward across the loop without meeting bots.",ctaWrapperClassName:"text-base box-border caret-transparent gap-x-2 flex flex-wrap tracking-[-0.32px] leading-[20.8px] outline-[3px] gap-y-2 md:text-[17.298px] md:gap-x-[7.688px] md:tracking-[-0.34596px] md:leading-[25.947px] md:gap-y-[7.688px]",ctaButtonClassName:"text-white text-base font-medium items-center bg-zinc-800 bg-[linear-gradient(rgba(204,204,204,0),rgba(255,255,255,0.1))] caret-transparent gap-x-2 flex justify-center tracking-[normal] leading-6 outline-[3px] text-center border border-zinc-800 px-5 py-2 rounded-[9px] md:text-[15.376px] md:gap-x-[7.688px] md:leading-[23.064px] md:px-[23.064px] md:py-[11.532px] md:rounded-[8.649px]",ctaTextClassName:"text-base box-border caret-transparent leading-6 outline-[3px] md:text-[15.376px] md:leading-[23.064px]",ctaText:"Get a demo",primaryImageSrc:"/images/uploaded-asset-1788710666629-1.png",primaryImageSizes:"(max-width: 1064px) 100vw, 1064px",primaryImageClassName:"text-base aspect-auto box-border caret-transparent h-full tracking-[-0.32px] leading-[20.8px] max-w-full object-contain outline-[3px] w-full md:text-[17.298px] md:aspect-[3_/_2] md:tracking-[-0.34596px] md:leading-[25.947px]",overlayStackContainerClassName:"pointer-events-none absolute -left-[58px] -bottom-[34px] hidden md:block",overlayStackImages:[{src:"/images/uploaded-asset-1788726916088-0.png",alt:"Personalized score prep card overlay",className:"relative z-20 w-[340px]"}],secondaryImageSrc:"/images/6a31a808ea6bc12fd842713c_Frame__2_.avif",secondaryImageClassName:"absolute text-base box-border caret-transparent h-auto left-[-41.6px] tracking-[-0.32px] leading-[20.8px] max-w-[70%] outline-[3px] top-[-20.8px] ml-8 md:text-[17.298px] md:h-[199.888px] md:left-[-39.9776px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-full md:top-[-39.9776px] md:ml-0"}),d.jsx(Jr,{panelClassName:"relative text-base box-border caret-transparent hidden h-full tracking-[-0.32px] leading-[20.8px] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",contentClassName:"text-base items-start self-start box-border caret-transparent flex flex-col tracking-[-0.32px] leading-[20.8px] max-w-none outline-[3px] gap-y-6 mt-0 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[445.904px] md:gap-y-[23.064px] md:mt-[49.2032px]",eyebrowClassName:"text-base font-semibold items-center box-border caret-transparent gap-x-2 flex justify-start tracking-[-0.32px] leading-6 outline-[3px] gap-y-2 md:text-[15.376px] md:gap-x-[9.2256px] md:tracking-[-0.30752px] md:leading-[23.064px] md:gap-y-[9.2256px]",eyebrowIconClassName:"text-base aspect-square box-border caret-transparent tracking-[-0.32px] leading-6 max-w-full outline-[3px] w-8 md:text-[15.376px] md:tracking-[-0.30752px] md:leading-[23.064px] md:w-[30.752px]",eyebrowIconSrc:"/images/69cb663efdce03c15ee2c641_Property_1_Variant4.svg",eyebrowTextClassName:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[15.376px] md:tracking-[-0.30752px] md:leading-[23.064px]",eyebrowText:"Roles & Intakes",titleClassName:"text-[32px] font-medium box-border caret-transparent tracking-[-0.96px] leading-[33.92px] outline-[3px] md:text-[30.752px] md:tracking-[-1.5376px] md:leading-[32.5971px]",title:"Understand the role behind the JD",descriptionWrapperClassName:"text-base box-border caret-transparent col-end-[span_1] col-start-[span_1] row-end-[span_1] row-start-[span_1] tracking-[-0.32px] leading-[20.8px] max-w-screen-sm outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[615.04px]",descriptionClassName:"text-stone-600 text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",description:"Confeti captures priorities, trade-offs, expectations, constraints, and nuance from hiring manager conversations so recruiters can execute against real intent.",ctaWrapperClassName:"text-base box-border caret-transparent gap-x-2 flex flex-wrap tracking-[-0.32px] leading-[20.8px] outline-[3px] gap-y-2 md:text-[17.298px] md:gap-x-[7.688px] md:tracking-[-0.34596px] md:leading-[25.947px] md:gap-y-[7.688px]",ctaButtonClassName:"text-white text-base font-medium items-center bg-zinc-800 bg-[linear-gradient(rgba(204,204,204,0),rgba(255,255,255,0.1))] caret-transparent gap-x-2 flex justify-center tracking-[normal] leading-6 outline-[3px] text-center border border-zinc-800 px-5 py-2 rounded-[9px] md:text-[15.376px] md:gap-x-[7.688px] md:leading-[23.064px] md:px-[23.064px] md:py-[11.532px] md:rounded-[8.649px]",ctaTextClassName:"text-base box-border caret-transparent leading-6 outline-[3px] md:text-[15.376px] md:leading-[23.064px]",ctaText:"Get a demo",primaryImageSrc:"/images/uploaded-asset-1788710666661-2.png",primaryImageSizes:"(max-width: 1064px) 100vw, 1064px",primaryImageClassName:"text-base aspect-auto box-border caret-transparent h-full tracking-[-0.32px] leading-[20.8px] max-w-full object-contain outline-[3px] w-full md:text-[17.298px] md:aspect-[3_/_2] md:tracking-[-0.34596px] md:leading-[25.947px]",overlayStackContainerClassName:"pointer-events-none absolute left-1/2 -translate-x-1/2 -bottom-[92px] hidden md:block",overlayStackImages:[{src:"/images/uploaded-asset-1788713930337-2.png",alt:"Intake card overlay",className:"relative z-20 w-[318px]"}],secondaryImageSrc:"/images/69ce0867688f7f2bac129929_Frame_5465.avif",secondaryImageSizes:"(max-width: 687px) 100v
69w, 687px",secondaryImageClassName:"absolute text-base box-border caret-transparent h-48 left-[-9.6px] tracking-[-0.32px] leading-[20.8px] max-w-full outline-[3px] top-[-27.2px] md:text-[17.298px] md:h-[307.52px] md:left-[-39.9776px] md:tracking-[-0.34596px] md:leading-[25.947px] md:top-[-39.9776px]"}),d.jsx(Jr,{panelClassName:"relative text-base box-border caret-transparent hidden h-full tracking-[-0.32px] leading-[20.8px] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",contentClassName:"text-base items-start self-start box-border caret-transparent flex flex-col tracking-[-0.32px] leading-[20.8px] max-w-none outline-[3px] gap-y-6 mt-0 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[445.904px] md:gap-y-[23.064px] md:mt-[49.2032px]",eyebrowClassName:"text-base font-semibold items-center box-border caret-transparent gap-x-2 flex justify-start tracking-[-0.32px] leading-6 outline-[3px] gap-y-2 md:text-[15.376px] md:gap-x-[9.2256px] md:tracking-[-0.30752px] md:leading-[23.064px] md:gap-y-[9.2256px]",eyebrowIconClassName:"text-base aspect-square box-border caret-transparent tracking-[-0.32px] leading-6 max-w-full outline-[3px] w-8 md:text-[15.376px] md:tracking-[-0.30752px] md:leading-[23.064px] md:w-[30.752px]",eyebrowIconSrc:"/images/69cb663efdce03c15ee2c63f_Property_1_Variant3.svg",eyebrowTextClassName:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[15.376px] md:tracking-[-0.30752px] md:leading-[23.064px]",eyebrowText:"Candidates & Evaluations",titleClassName:"text-[32px] font-medium box-border caret-transparent tracking-[-0.96px] leading-[33.92px] outline-[3px] md:text-[30.752px] md:tracking-[-1.5376px] md:leading-[32.5971px]",title:"See the whole candidate",descriptionWrapperClassName:"text-base box-border caret-transparent col-end-[span_1] col-start-[span_1] row-end-[span_1] row-start-[span_1] tracking-[-0.32px] leading-[20.8px] max-w-screen-sm outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[615.04px]",descriptionClassName:"text-stone-600 text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",description:"Bring interviews, evaluations, resume context, strengths, concerns, and open questions into one evolving understanding built from evidence.",ctaWrapperClassName:"text-base box-border caret-transparent gap-x-2 flex flex-wrap tracking-[-0.32px] leading-[20.8px] outline-[3px] gap-y-2 md:text-[17.298px] md:gap-x-[7.688px] md:tracking-[-0.34596px] md:leading-[25.947px] md:gap-y-[7.688px]",ctaButtonClassName:"text-white text-base font-medium items-center bg-zinc-800 bg-[linear-gradient(rgba(204,204,204,0),rgba(255,255,255,0.1))] caret-transparent gap-x-2 flex justify-center tracking-[normal] leading-6 outline-[3px] text-center border border-zinc-800 px-5 py-2 rounded-[9px] md:text-[15.376px] md:gap-x-[7.688px] md:leading-[23.064px] md:px-[23.064px] md:py-[11.532px] md:rounded-[8.649px]",ctaTextClassName:"text-base box-border caret-transparent leading-6 outline-[3px] md:text-[15.376px] md:leading-[23.064px]",ctaText:"Get a demo",primaryImageSrc:"/images/uploaded-asset-1788710973872-0.png",primaryImageSizes:"(max-width: 1180px) 100vw, 1180px",primaryImageClassName:"text-base aspect-auto box-border caret-transparent h-full tracking-[-0.32px] leading-[20.8px] max-w-full object-contain outline-[3px] w-full md:text-[17.298px] md:aspect-[3_/_2] md:tracking-[-0.34596px] md:leading-[25.947px]",overlayStackContainerClassName:"pointer-events-none absolute -right-[28px] -bottom-[22px] hidden md:block",overlayStackImages:[{src:"/images/uploaded-asset-1788713930324-1.png",alt:"Application review card overlay",className:"relative z-20 w-[312px]"}],secondaryImageSrc:"/images/69ce0867688f7f2bac129934_Frame_427318267.avif",secondaryImageSizes:"(max-width: 897px) 100vw, 897px",secondaryImageClassName:"absolute text-base bottom-[-41.6px] box-border caret-transparent h-40 tracking-[-0.32px] leading-[20.8px] max-w-full object-contain outline-[3px] right-[-17.6px] md:text-[17.298px] md:bottom-[-61.504px] md:h-[184.512px] md:tracking-[-0.34596px] md:leading-[25.947px] md:right-[-30.752px]"}),d.jsx(Jr,{panelClassName:"relative text-base box-border caret-transparent hidden h-full tracking-[-0.32px] leading-[20.8px] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",contentClassName:"text-base items-start self-start box-border caret-transparent flex flex-col tracking-[-0.32px] leading-[20.8px] max-w-none outline-[3px] gap-y-6 mt-0 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[445.904px] md:gap-y-[23.064px] md:mt-[49.2032px]",eyebrowClassName:"text-base font-semibold items-center box-border caret-transparent gap-x-2 flex justify-start tracking-[-0.32px] leading-6 outline-[3px] gap-y-2 md:text-[15.376px] md:gap-x-[9.2256px] md:tracking-[-0.30752px] md:leading-[23.064px] md:gap-y-[9.2256px]",eyebrowIconClassName:"text-base aspect-square box-border caret-transparent tracking-[-0.32px] leading-6 max-w-full outline-[3px] w-8 md:text-[15.376px] md:tracking-[-0.30752px] md:leading-[23.064px] md:w-[30.752px]",eyebrowIconSrc:"/images/69cb663efdce03c15ee2c63e_Property_1_Variant6.svg",eyebrowTextClassName:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[15.376px] md:tracking-[-0.30752px] md:leading-[23.064px]",eyebrowText:"Insights",titleClassName:"text-[32px] font-medium box-border caret-transparent tracking-[-0.96px] leading-[33.92px] outline-[3px] md:text-[30.752px] md:tracking-[-1.5376px] md:leading-[32.5971px]",title:"Ask better questions across every hire",descriptionWrapperClassName:"text-base box-border caret-transparent col-end-[span_1] col-start-[span_1] row-end-[span_1] row-start-[span_1] tracking-[-0.32px] leading-[20.8px] max-w-screen-sm outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[615.04px]",descriptionClassName:"text-stone-600 text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",description:"Turn captured conversations and evaluations into searchable intelligence. Confeti helps teams spot patterns, compare candidates with evidence, and identify risks or strengths before final decisions.",ctaWrapperClassName:"text-base box-border caret-transparent gap-x-2 flex flex-wrap tracking-[-0.32px] leading-[20.8px] outline-[3px] gap-y-2 md:text-[17.298px] md:gap-x-[7.688px] md:tracking-[-0.34596px] md:leading-[25.947px] md:gap-y-[7.688px]",ctaButtonClassName:"text-white text-base font-medium items-center bg-zinc-800 bg-[linear-gradient(rgba(204,204,204,0),rgba(255,255,255,0.1))] caret-transparent gap-x-2 flex justify-center tracking-[normal] leading-6 outline-[3px] text-center border border-zinc-800 px-5 py-2 rounded-[9px] md:text-[15.376px] md:gap-x-[7.688px] md:leading-[23.064px] md:px-[23.064px] md:py-[11.532px] md:rounded-[8.649px]",ctaTextClassName:"text-base box-border caret-transparent leading-6 outline-[3px] md:text-[15.376px] md:leading-[23.064px]",ctaText:"Get a demo",primaryImageSrc:"/images/uploaded-asset-1788710973906-1.png",primaryImageSizes:"(max-width: 1066px) 100v
69w, 1066px",primaryImageClassName:"text-base aspect-auto box-border caret-transparent h-full tracking-[-0.32px] leading-[20.8px] max-w-full object-contain outline-[3px] w-full md:text-[17.298px] md:aspect-[3_/_2] md:tracking-[-0.34596px] md:leading-[25.947px]",overlayStackContainerClassName:"pointer-events-none absolute -left-[24px] -bottom-[18px] hidden md:block",overlayStackImages:[{src:"/images/uploaded-asset-1788726916110-1.png",alt:"Insights card overlay",className:"relative z-20 w-[304px]"}],secondaryImageSrc:"/images/69ce0867688f7f2bac129964_Frame_2147237291.avif",secondaryImageClassName:"",secondaryImageWrapperClassName:"absolute text-base box-border caret-transparent tracking-[-0.32px] leading-[20.8px] outline-[3px] right-[-17.6px] bottom-[9.6px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:right-[-46.128px] md:bottom-[46.128px]",secondaryImageInnerClassName:"text-base box-border caret-transparent h-32 left-[-49.6px] tracking-[-0.32px] leading-[20.8px] max-w-full object-contain outline-[3px] align-baseline -bottom-6 md:text-[17.298px] md:bottom-[-23.064px] md:h-[184.512px] md:left-[-47.6656px] md:tracking-[-0.34596px] md:leading-[25.947px]"}),d.jsx(Jr,{panelClassName:"relative text-base box-border caret-transparent hidden h-full tracking-[-0.32px] leading-[20.8px] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",contentClassName:"text-base items-start self-start box-border caret-transparent flex flex-col tracking-[-0.32px] leading-[20.8px] max-w-none outline-[3px] gap-y-6 mt-0 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[445.904px] md:gap-y-[23.064px] md:mt-[49.2032px]",eyebrowClassName:"text-base font-semibold items-center box-border caret-transparent gap-x-2 flex justify-start tracking-[-0.32px] leading-6 outline-[3px] gap-y-2 md:text-[15.376px] md:gap-x-[9.2256px] md:tracking-[-0.30752px] md:leading-[23.064px] md:gap-y-[9.2256px]",eyebrowIconClassName:"text-base aspect-square box-border caret-transparent tracking-[-0.32px] leading-6 max-w-full outline-[3px] w-8 md:text-[15.376px] md:tracking-[-0.30752px] md:leading-[23.064px] md:w-[30.752px]",eyebrowIconSrc:"/images/69cb663efdce03c15ee2c63c_Property_1_Variant8.svg",eyebrowTextClassName:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[15.376px] md:tracking-[-0.30752px] md:leading-[23.064px]",eyebrowText:"Docs & eSign",titleClassName:"text-[32px] font-medium box-border caret-transparent tracking-[-0.96px] leading-[33.92px] outline-[3px] md:text-[30.752px] md:tracking-[-1.5376px] md:leading-[32.5971px]",title:"One place for all your docs",descriptionWrapperClassName:"text-base box-border caret-transparent col-end-[span_1] col-start-[span_1] row-end-[span_1] row-start-[span_1] tracking-[-0.32px] leading-[20.8px] max-w-screen-sm outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[615.04px]",descriptionClassName:"text-stone-600 text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",description:"Store policies, handbooks, procedures, and templates in one central hub. Get e-signatures and let employees find answers with our AI chat.",ctaWrapperClassName:"text-base box-border caret-transparent gap-x-2 flex flex-wrap tracking-[-0.32px] leading-[20.8px] outline-[3px] gap-y-2 md:text-[17.298px] md:gap-x-[7.688px] md:tracking-[-0.34596px] md:leading-[25.947px] md:gap-y-[7.688px]",ctaButtonClassName:"text-white text-base font-medium items-center bg-zinc-800 bg-[linear-gradient(rgba(204,204,204,0),rgba(255,255,255,0.1))] caret-transparent gap-x-2 flex justify-center tracking-[normal] leading-6 outline-[3px] text-center border border-zinc-800 px-5 py-2 rounded-[9px] md:text-[15.376px] md:gap-x-[7.688px] md:leading-[23.064px] md:px-[23.064px] md:py-[11.532px] md:rounded-[8.649px]",ctaTextClassName:"text-base box-border caret-transparent leading-6 outline-[3px] md:text-[15.376px] md:leading-[23.064px]",ctaText:"Start for Free",primaryImageSrc:"/images/69ce0867688f7f2bac129916_Docs.avif",primaryImageSizes:"(max-width: 1064px) 100vw, 1064px",primaryImageClassName:"text-base aspect-auto box-border caret-transparent h-full tracking-[-0.32px] leading-[20.8px] max-w-full object-contain outline-[3px] w-full md:text-[17.298px] md:aspect-[3_/_2] md:tracking-[-0.34596px] md:leading-[25.947px]",secondaryImageSrc:"/images/69ce0867688f7f2bac12993a_Docs___esign.avif",secondaryImageSizes:"(max-width: 1005px) 100v
69w, 1005px",secondaryImageClassName:"absolute text-base bottom-[-35.2px] box-border caret-transparent h-40 left-[-72px] tracking-[-0.32px] leading-[20.8px] max-w-full object-contain outline-[3px] top-10 md:text-[17.298px] md:h-[199.888px] md:left-[-69.192px] md:tracking-[-0.34596px] md:leading-[25.947px] md:top-[38.44px] md:bottom-auto"}),d.jsx(Jr,{panelClassName:"relative text-base box-border caret-transparent hidden h-full tracking-[-0.32px] leading-[20.8px] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",contentClassName:"text-base items-start self-start box-border caret-transparent flex flex-col tracking-[-0.32px] leading-[20.8px] max-w-none outline-[3px] gap-y-6 mt-0 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[445.904px] md:gap-y-[23.064px] md:mt-[49.2032px]",eyebrowClassName:"text-base font-semibold items-center box-border caret-transparent gap-x-2 flex justify-start tracking-[-0.32px] leading-6 outline-[3px] gap-y-2 md:text-[15.376px] md:gap-x-[9.2256px] md:tracking-[-0.30752px] md:leading-[23.064px] md:gap-y-[9.2256px]",eyebrowIconClassName:"text-base aspect-square box-border caret-transparent tracking-[-0.32px] leading-6 max-w-full outline-[3px] w-8 md:text-[15.376px] md:tracking-[-0.30752px] md:leading-[23.064px] md:w-[30.752px]",eyebrowIconSrc:"/images/69cb663efdce03c15ee2c63d_Property_1_Variant5.svg",eyebrowTextClassName:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[15.376px] md:tracking-[-0.30752px] md:leading-[23.064px]",eyebrowText:"Performance & Growth",titleClassName:"text-[32px] font-medium box-border caret-transparent tracking-[-0.96px] leading-[33.92px] outline-[3px] md:text-[30.752px] md:tracking-[-1.5376px] md:leading-[32.5971px]",title:"Performance cycles so smart, it's unfair",descriptionWrapperClassName:"text-base box-border caret-transparent col-end-[span_1] col-start-[span_1] row-end-[span_1] row-start-[span_1] tracking-[-0.32px] leading-[20.8px] max-w-screen-sm outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[615.04px]",descriptionClassName:"text-stone-600 text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",description:"Make feedback & growth count with AI. Build cycles, surface insights, track goals and analyse & compare performance across any slice of your org by employee, team, department, or office.",ctaWrapperClassName:"text-base box-border caret-transparent gap-x-2 flex flex-wrap tracking-[-0.32px] leading-[20.8px] outline-[3px] gap-y-2 md:text-[17.298px] md:gap-x-[7.688px] md:tracking-[-0.34596px] md:leading-[25.947px] md:gap-y-[7.688px]",ctaButtonClassName:"text-white text-base font-medium items-center bg-zinc-800 bg-[linear-gradient(rgba(204,204,204,0),rgba(255,255,255,0.1))] caret-transparent gap-x-2 flex justify-center tracking-[normal] leading-6 outline-[3px] text-center border border-zinc-800 px-5 py-2 rounded-[9px] md:text-[15.376px] md:gap-x-[7.688px] md:leading-[23.064px] md:px-[23.064px] md:py-[11.532px] md:rounded-[8.649px]",ctaTextClassName:"text-base box-border caret-transparent leading-6 outline-[3px] md:text-[15.376px] md:leading-[23.064px]",ctaText:"Start for Free",primaryImageSrc:"/images/69ce0867688f7f2bac129947_Performance.avif",primaryImageSizes:"(max-width: 1212px) 100vw, 1212px",primaryImageClassName:"text-base aspect-auto box-border caret-transparent h-full tracking-[-0.32px] leading-[20.8px] max-w-full object-contain outline-[3px] w-full md:text-[17.298px] md:aspect-[3_/_2] md:tracking-[-0.34596px] md:leading-[25.947px]",secondaryImageSrc:"/images/6a344aa88e06cf3653a2ad48_Frame_2147237198.svg",secondaryImageClassName:"absolute text-base bottom-[-67.2px] box-border caret-transparent h-36 left-[-12.8px] tracking-[-0.32px] leading-[20.8px] max-w-full object-contain outline-[3px] md:text-[17.298px] md:bottom-[-44.5904px] md:h-[138.384px] md:left-[-47.6656px] md:tracking-[-0.34596px] md:leading-[25.947px]"})]})]})]})})})},YR=e=>d.jsxs("div",{className:`text-base items-center box-border caret-transparent gap-x-8 grid auto-cols-[1fr] grid-cols-[minmax(0px,1fr)] tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] gap-y-8 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] ${e.rootVariant}`,children:[d.jsx("div",{className:`text-base box-border caret-transparent tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] ${e.contentWrapperVariant}`,children:d.jsx("div",{className:`text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] ${e.contentInnerVariant}`,children:e.titleLayout==="stacked"?d.jsxs("div",{className:"box-border caret-transparent outline-[3px] text-base tracking-[-0.32px] leading-6 max-w-md md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[430.528px]",children:[d.jsx("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] mb-4 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:mb-[23.064px]",children:d.jsxs("div",{className:"text-[40px] font-medium box-border caret-transparent tracking-[-1.2px] leading-10 outline-[3px] md:text-[46.128px] md:tracking-[-2.3064px] md:leading-[46.128px] before:accent-auto before:caret-transparent before:text-stone-800 before:table before:text-[40px] before:not-italic before:normal-nums before:font-medium before:col-end-2 before:col-start-1 before:row-end-2 before:row-start-1 before:tracking-[-1.2px] before:leading-10 before:list-outside before:list-disc before:outline-[3px] before:pointer-events-auto before:text-start before:no-underline before:indent-[0px] before:normal-case before:visible before:border-separate before:font-geist before:md:text-[46.128px] before:md:tracking-[-2.3064px] before:md:leading-[46.128px] after:accent-auto after:caret-transparent after:clear-both after:text-stone-800 after:table after:text-[40px] after:not-italic after:normal-nums after:font-medium after:col-end-2 after:col-start-1 after:row-end-2 after:row-start-1 after:tracking-[-1.2px] after:leading-10 after:list-outside after:list-disc after:outline-[3px] after:pointer-events-auto after:text-start after:no-underline after:indent-[0px] after:normal-case after:visible after:border-separate after:font-geist after:md:text-[46.128px] after:md:tracking-[-2.3064px] after:md:leading-[46.128px]",children:[d.jsx("h2",{className:"text-[40px] box-border caret-transparent tracking-[-1.2px] leading-10 outline-[3px] md:text-[46.128px] md:tracking-[-2.3064px] md:leading-[46.128px]",children:e.titleFirstLine}),d.jsx("h2",{className:"text-[40px] box-border caret-transparent tracking-[-1.2px] leading-10 outline-[3px] md:text-[46.128px] md:tracking-[-2.3064px] md:leading-[46.128px]",children:e.titleSecondLine})]})}),d.jsx("div",{className:"text-base box-border caret-transparent col-end-[span_1] col-start-[span_1] row-end-[span_1] row-start-[span_1] tracking-[-0.32px] leading-6 max-w-screen-sm outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[615.04px]",children:d.jsx("p",{className:e.descriptionClassName,children:e.description})}),d.jsxs("div",{className:e.progressContainerClassName,children:[d.jsx("div",{className:e.progressFirstClassName}),d.jsx("div",{className:e.progressMiddleClassName}),d.jsx("div",{className:e.progressMiddleClassName}),d.jsx("div",{className:e.progressLastClassName})]}),d.jsx("a",{href:e.linkHref,className:e.linkClassName,children:d.jsx("div",{className:e.linkTextClassName,children:e.linkText})})]}):d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"box-border caret-transparent outline-[3px] text-2xl font-medium tracking-[-0.72px] leading-[31.2px] text-center md:text-[30.752px] md:tracking-[-1.5376px] md:leading-[39.9776px] md:text-start",children:[e.titleText," ",d.jsx("span",{className:"text-stone-500 text-2xl box-border caret-transparent inline tracking-[-0.72px] leading-[31.2px] outline-[3px] text-center md:text-[30.752px] md:block md:tracking-[-1.5376px] md:leading-[39.9776px] md:text-start",children:e.description})]}),d.jsxs("div",{className:e.progressContainerClassName,children:[d.jsx("div",{className:e.progressFirstClassName}),d.jsx("div",{className:e.progressMiddleClassName}),d.jsx("div",{className:e.progressMiddleClassName}),d.jsx("div",{className:e.progressLastClassName})]}),d.jsx("a",{href:e.linkHref,className:e.linkClassName,children:d.jsx("div",{className:e.linkTextClassName,children:e.linkText})})]})})}),d.jsx("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] order-1 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:-order-1",children:d.jsx("div",{className:`text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] mx-auto md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] ${e.imageContainerVariant}`,children:e.showImage?d.jsx("img",{src:e.imageSrc,alt:e.imageAlt,className:e.imageClassName}):null})})]}),CC=()=>d.jsx("section",{className:"relative text-base bg-stone-100 box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] w-full pt-40 pb-28 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:py-[138.384px]",children:d.jsx("div",{className:"text-base box-border caret-transparent flex flex-col grid-cols-[minmax(0px,1fr)_minmax(0px,1fr)_1fr] tracking-[-0.32px] leading-6 max-w-[1380px] outline-[3px] gap-y-8 w-full mx-auto px-5 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[1326.18px] md:gap-y-[76.88px] md:px-10",children:d.jsx(YR,{rootVariant:"grid-rows-[auto] w-full",contentWrapperVariant:"order-none",contentInnerVariant:"text-center md:text-start",titleLayout:"inline",titleFirstLine:"",titleSecondLine:"",titleText:"AI you can actually validate",description:"Hiring decisions cannot come from an AI black box. Confeti connects its answers back to the interviews, conversations and hiring evidence behind them, so your team can see where an insight came from, check the underlying evidence, and stay in control of the decision. AI should help your team see the signal, not invent it.",descriptionClassName:"",progressContainerClassName:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 opacity-0 outline-[3px] text-center md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:text-start",progressFirstClassName:"text-base box-border caret-transparent hidden h-6 tracking-[-0.32px] leading-6 outline-[3px] text-center md:text-[17.298px] md:block md:h-[23.064px] md:tracking-[-0.34596px] md:leading-[25.947px] md:text-start",progressMiddleClassName:"text-base box-border caret-transparent hidden h-6 tracking-[-0.32px] leading-6 outline-[3px] text-center md:text-[17.298px] md:h-[23.064px] md:tracking-[-0.34596px] md:leading-[25.947px] md:text-start",progressLastClassName:"text-base box-border caret-transparent block h-6 tracking-[-0.32px] leading-6 outline-[3px] text-center md:text-[17.298px] md:hidden md:h-[23.064px] md:tracking-[-0.34596px] md:leading-[25.947px] md:text-start",linkHref:"#",linkClassName:"hidden",linkTextClassName:"hidden",linkText:"",imageContainerVariant:"relative col-end-[span_1] col-start-[span_1] row-end-[span_1] row-start-[span_1] max-w-[290px] w-full overflow-hidden rounded-lg md:max-w-none md:mx-0 md:rounded-[7.688px]",imageSrc:"/images/6a43d15765da906e08d731e8_icons.svg",imageAlt:"",imageClassName:"text-base box-border caret-transparent h-full tracking-[-0.32px] leading-6 max-w-full object-contain outline-[3px] w-full md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",showImage:!1})})}),yg=e=>d.jsxs("div",{className:"text-base items-center border-b-stone-800 border-l-stone-800 border-r-stone-800 border-t-gray-200 box-border caret-transparent flex-col tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] py-10 border-t md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:py-[38.44px]",children:[d.jsx("div",{className:"text-base items-center box-border caret-transparent inline-flex justify-center tracking-[-0.32px] leading-6 outline-[3px] mb-6 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:mb-[23.064px]",children:d.jsx("img",{src:e.imageUrl,alt:`${e.title} icon`,className:"text-base items-center box-border caret-transparent flex h-8 justify-center tracking-[-0.32px] leading-6 max-w-full min-h-[auto] min-w-[auto] outline-[3px] w-8 md:text-[17.298px] md:h-[30.752px] md:tracking-[-0.34596px] md:leading-[25.947px] md:w-[30.752px]"})}),d.jsx("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] mb-2 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:mb-[7.688px]",children:d.jsx("h3",{className:"text-[21px] font-semibold box-border caret-transparent tracking-[-0.63px] leading-[27.3px] outline-[3px] md:text-[21.142px] md:tracking-[-0.63426px] md:leading-[27.4846px]",children:e.title})}),d.jsx("div",{className:"text-base box-border caret-transparent col-end-[span_1] col-start-[span_1] row-end-[span_1] row-start-[span_1] tracking-[-0.32px] leading-6 max-w-screen-sm outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[615.04px]",children:d.jsx("p",{className:"text-stone-600 text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:e.description})})]}),KR=()=>d.jsx("section",{className:"relative text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] w-full pt-[88px] pb-8 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:pt-[138.384px] md:pb-[38.44px]",children:d.jsxs("div",{className:"text-base box-border caret-transparent flex flex-col grid-cols-[minmax(0px,1fr)_minmax(0px,1fr)_1fr] tracking-[-0.32px] leading-6 max-w-[1380px] outline-[3px] gap-y-8 w-full mx-auto px-5 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[1326.18px] md:gap-y-[76.88px] md:px-10",children:[d.jsx(Uv,{rootClassName:"text-base items-center box-border caret-transparent flex flex-col tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] text-center mx-auto md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",showTopDecorations:!1,headingWrapperClassName:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] mb-4 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:mb-[23.064px]",showInnerHeadingWrapper:!1,innerHeadingWrapperClassName:"",showHeadingDecorationClassName:!0,headingDecorationClassName:"text-[40px] font-medium box-border caret-transparent tracking-[-1.2px] leading-10 outline-[3px] md:text-[46.128px] md:tracking-[-2.3064px] md:leading-[46.128px] before:accent-auto before:caret-transparent before:text-stone-800 before:table before:text-[40px] before:not-italic before:normal-nums before:font-medium before:col-end-2 before:col-start-1 before:row-end-2 before:row-start-1 before:tracking-[-1.2px] before:leading-10 before:list-outside before:list-disc before:outline-[3px] before:pointer-events-auto before:text-center before:no-underline before:indent-[0px] before:normal-case before:visible before:border-separate before:font-geist before:md:text-[46.128px] before:md:tracking-[-2.3064px] before:md:leading-[46.128px] after:accent-auto after:caret-transparent after:clear-both after:text-stone-800 after:table after:text-[40px] after:not-italic after:normal-nums after:font-medium after:col-end-2 after:col-start-1 after:row-end-2 after:row-start-1 after:tracking-[-1.2px] after:leading-10 after:list-outside after:list-disc after:outline-[3px] after:pointer-events-auto after:text-center after:no-underline after:indent-[0px] after:normal-case after:visible after:border-separate after:font-geist after:md:text-[46.128px] after:md:tracking-[-2.3064px] after:md:leading-[46.128px]",headingClassName:"text-[40px] box-border caret-transparent tracking-[-1.2px] leading-10 outline-[3px] md:text-[46.12
698px] md:tracking-[-2.3064px] md:leading-[46.128px]",headingText:"Built for Talent leaders",emphasisClassName:"text-5xl italic font-light box-border caret-transparent tracking-[-1.2px] leading-[48px] outline-[3px] font-crimsonpro md:text-[58.4288px] md:tracking-[-2.3064px] md:leading-[58.4288px]",emphasisText:" of the future",showDescription:!1,descriptionText:"",showMiddleDecorations:!1,showLink:!1,linkHref:"",linkText:"",showBottomDecorations:!1,showButton:!0,buttonText:"Start for Free"}),d.jsxs("div",{className:"text-base box-border caret-transparent gap-x-5 grid auto-cols-[1fr] grid-cols-[minmax(0px,1fr)] grid-rows-[auto] tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] gap-y-5 md:text-[17.298px] md:gap-x-[19.22px] md:grid-cols-[minmax(0px,1fr)_minmax(0px,1fr)_minmax(0px,1fr)] md:tracking-[-0.34596px] md:leading-[25.947px] md:gap-y-[38.44px]",children:[d.jsx(yg,{imageUrl:"/images/uploaded-asset-1788778558304-0.png",title:"Simple, transparent pricing",description:"Start free or with Core at $49/recruiter. Hiring managers and interviewers are free. Add Connected and Intelligence for the complete stack."}),d.jsx(yg,{imageUrl:"/images/uploaded-asset-1788778558312-1.png",title:"Quick to implement",description:"It's SaaS, not a major systems project. Most teams are up and running in days, not weeks."}),d.jsx(yg,{imageUrl:"/images/uploaded-asset-1788778558322-2.png",title:"Support when you need it",description:"You may not need much help but when you do, our support team is on hand."})]})]})}),QR=()=>d.jsxs("div",{className:"text-base box-border caret-transparent block tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] md:text-[17.298px] md:hidden md:tracking-[-0.34596px] md:leading-[25.947px] md:min-h-0 md:min-w-0",children:[d.jsx("div",{className:"text-base box-border caret-transparent hidden tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:d.jsx("div",{role:"list",className:"text-base box-border caret-transparent hidden tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]"})}),d.jsxs("div",{role:"region","aria-label":"carousel",className:"relative text-base bg-transparent box-border caret-transparent clear-both tracking-[-0.32px] leading-6 outline-[3px] text-center md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:[d.jsxs("div",{className:"relative text-base box-border caret-transparent h-full tracking-[-0.32px] leading-6 outline-[3px] text-nowrap z-[1] overflow-hidden inset-x-0 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:[d.jsx("div",{"aria-label":"1 of 5",role:"group",className:"relative text-base box-border caret-transparent inline-block h-full tracking-[-0.32px] leading-6 outline-[3px] text-left align-top w-full md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:d.jsx("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:d.jsxs("div",{className:"text-base bg-stone-100 box-border caret-transparent gap-x-4 flex flex-col auto-cols-[1fr] grid-cols-[1fr_1fr] grid-rows-[auto_auto] tracking-[-0.32px] leading-6 outline-[3px] gap-y-4 p-5 rounded-2xl md:text-[17.298px] md:bg-transparent md:gap-x-[30.752px] md:tracking-[-0.34596px] md:leading-[25.947px] md:gap-y-[30.752px] md:p-0 md:rounded-none",children:[d.jsx("p",{className:"text-[24.8px] font-light box-border caret-transparent tracking-[-0.496px] leading-[27.28px] min-h-[auto] min-w-[auto] outline-[3px] mb-8 font-crimsonpro md:text-[38.44px] md:tracking-[-0.7688px] md:leading-[40.7464px] md:min-h-0 md:min-w-0 md:mb-0",children:'"We transitioned to confeti this year, and their Vibe View feature is something completely fresh. I can build any tool or visualisation natively, straight from our people data."'}),d.jsxs("div",{className:"text-base items-start box-border caret-transparent gap-x-4 flex flex-col tracking-[-0.32px] leading-[20.8px] min-h-[auto] min-w-[auto] outline-[3px] gap-y-4 md:text-[17.298px] md:items-center md:gap-x-[15.376px] md:flex-row md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-
69h-0 md:min-w-0 md:gap-y-[15.376px]",children:[d.jsx("img",{src:"/images/6a16a0b6bb320101c941ad66_1664814180362.jpeg",alt:"Portrait of Brad Richards",sizes:"(max-width: 800px) 100vw, 800px",className:"text-base aspect-square box-border caret-transparent tracking-[-0.32px] leading-[20.8px] max-w-full min-h-[auto] min-w-[auto] object-contain outline-[3px] w-12 rounded-xl md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-h-0 md:min-w-0 md:w-[46.128px] md:rounded-[11.532px]"}),d.jsxs("div",{className:"text-base items-start box-border caret-transparent gap-x-1 flex flex-col justify-start tracking-[-0.32px] leading-[20.8px] min-h-[auto] min-w-[auto] outline-[3px] gap-y-1 md:text-[17.298px] md:gap-x-[3.844px] md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-h-0 md:min-w-0 md:gap-y-[3.844px]",children:[d.jsx("div",{className:"text-base font-semibold box-border caret-transparent tracking-[-0.32px] leading-[20.8px] min-h-[auto] min-w-[auto] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-h-0 md:min-w-0",children:"Brad Richards"}),d.jsxs("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-[20.8px] min-h-[auto] min-w-[auto] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-h-0 md:min-w-0",children:[" ","VP Operations, Fnatic"]})]})]}),d.jsx("div",{className:"text-base box-border caret-transparent hidden tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:d.jsx("div",{className:"text-base items-center bg-transparent border-l-stone-800 border-r-stone-800 border-t-stone-800 box-border caret-transparent justify-center tracking-[-0.32px] leading-6 opacity-60 outline-[3px] px-0 py-2.5 border-b-transparent border-b-2 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:px-[30.752px] md:py-[9.61px]",children:d.jsx("img",{src:"/images/6a16de19aa3f837f068c34bb_fnatics.png",alt:"Fnatic logo",className:"text-base box-border caret-transparent h-[60.8px] tracking-[-0.32px] leading-6 max-w-full object-contain outline-[3px] md:text-[17.298px] md:h-[58.4288px] md:tracking-[-0.34596px] md:leading-[25.947px]"})})})]})})}),d.jsx("div",{"aria-label":"2 of 5",role:"group",className:"relative text-base box-border caret-transparent inline-block h-full tracking-[-0.32px] leading-6 outline-[3px] text-left align-top w-full md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:d.jsx("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:d.jsxs("div",{className:"text-base bg-stone-100 box-border caret-transparent gap-x-4 flex flex-col auto-cols-[1fr] grid-cols-[1fr_1fr] grid-rows-[auto_auto] tracking-[-0.32px] leading-6 outline-[3px] gap-y-4 p-5 rounded-2xl md:text-[17.298px] md:bg-transparent md:gap-x-[30.752px] md:tracking-[-0.34596px] md:leading-[25.947px] md:gap-y-[30.752px] md:p-0 md:rounded-none",children:[d.jsx("p",{className:"text-[24.8px] font-light box-border caret-transparent tracking-[-0.496px] leading-[27.28px] min-h-[auto] min-w-[auto] outline-[3px] mb-8 font-crimsonpro md:text-[38.44px] md:tracking-[-0.7688px] md:leading-[40.7464px] md:min-h-0 md:min-w-0 md:mb-0",children:'"confeti is built with AI-integrated features at its core, helping us modernise and improve the way we manage our people."'}),d.jsxs("div",{className:"text-base items-start box-border caret-transparent gap-x-4 flex flex-col tracking-[-0.32px] leading-[20.8px] min-h-[auto] min-w-[auto] outline-[3px] gap-y-4 md:text-[17.298px] md:items-center md:gap-x-[15.376px] md:flex-row md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-h-0 md:min-w-0 md:gap-y-[15.376px]",children:[d.jsx("img",{src:"/images/6a169f673a19c896ca9ea676_1763993254981.jpeg",alt:"Portrait of Sam Tull",sizes:"(max-width: 800px) 100vw, 800px",className:"text-base aspect-square box-border caret-transparent tracking-[-0.32px] leading-[20.8px] max-w-full min-h-[auto] min-w-[auto] object-contain outline-[3px] w-12 rounded-xl md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-
69h-0 md:min-w-0 md:w-[46.128px] md:rounded-[11.532px]"}),d.jsxs("div",{className:"text-base items-start box-border caret-transparent gap-x-1 flex flex-col justify-start tracking-[-0.32px] leading-[20.8px] min-h-[auto] min-w-[auto] outline-[3px] gap-y-1 md:text-[17.298px] md:gap-x-[3.844px] md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-h-0 md:min-w-0 md:gap-y-[3.844px]",children:[d.jsx("div",{className:"text-base font-semibold box-border caret-transparent tracking-[-0.32px] leading-[20.8px] min-h-[auto] min-w-[auto] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-h-0 md:min-w-0",children:"Sam Tull"}),d.jsx("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-[20.8px] min-h-[auto] min-w-[auto] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-h-0 md:min-w-0",children:"Talent & Labour Manager, Knowles Construction"})]})]}),d.jsx("div",{className:"text-base box-border caret-transparent hidden tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:d.jsx("div",{className:"text-base items-center bg-transparent border-l-stone-800 border-r-stone-800 border-t-stone-800 box-border caret-transparent justify-center tracking-[-0.32px] leading-6 opacity-60 outline-[3px] px-0 py-2.5 border-b-transparent border-b-2 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:px-[30.752px] md:py-[9.61px]",children:d.jsx("img",{src:"/images/6a16ded8c527a0f3577eff8f_knowls.png",alt:"Knowles Construction logo",className:"text-base box-border caret-transparent h-[60.8px] tracking-[-0.32px] leading-6 max-w-full object-contain outline-[3px] md:text-[17.298px] md:h-[58.4288px] md:tracking-[-0.34596px] md:leading-[25.947px]"})})})]})})}),d.jsx("div",{"aria-label":"3 of 5",role:"group",className:"relative text-base box-border caret-transparent inline-block h-full tracking-[-0.32px] leading-6 outline-[3px] text-left align-top w-full md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:d.jsx("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:d.jsxs("div",{className:"text-base bg-stone-100 box-border caret-transparent gap-x-4 flex flex-col auto-cols-[1fr] grid-cols-[1fr_1fr] grid-rows-[auto_auto] tracking-[-0.32px] leading-6 outline-[3px] gap-y-4 p-5 rounded-2xl md:text-[17.298px] md:bg-transparent md:gap-x-[30.752px] md:tracking-[-0.34596px] md:leading-[25.947px] md:gap-y-[30.752px] md:p-0 md:rounded-none",children:[d.jsx("p",{className:"text-[24.8px] font-light box-border caret-transparent tracking-[-0.496px] leading-[27.28px] min-h-[auto] min-w-[auto] outline-[3px] mb-8 font-crimsonpro md:text-[38.44px] md:tracking-[-0.7688px] md:leading-[40.7464px] md:min-h-0 md:min-w-0 md:mb-0",children:'"Before confeti, we were duct-taping together a 150+ person operation with spreadsheets & zero custom variables...not exactly a scalable strategy."'}),d.jsxs("div",{className:"text-base items-start box-border caret-transparent gap-x-4 flex flex-col tracking-[-0.32px] leading-[20.8px] min-h-[auto] min-w-[auto] outline-[3px] gap-y-4 md:text-[17.298px] md:items-center md:gap-x-[15.376px] md:flex-row md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-h-0 md:min-w-0 md:gap-y-[15.376px]",children:[d.jsx("img",{src:"/images/6a169efb36519af771e801f4_1770404428295.png",alt:"Portrait of Maxine Fish",sizes:"(max-width: 800px) 100vw, 800px",className:"text-base aspect-square box-border caret-transparent tracking-[-0.32px] leading-[20.8px] max-w-full min-h-[auto] min-w-[auto] object-contain outline-[3px] w-12 rounded-xl md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-h-0 md:min-w-0 md:w-[46.128px] md:rounded-[11.532px]"}),d.jsxs("div",{className:"text-base items-start box-border caret-transparent gap-x-1 flex flex-col justify-start tracking-[-0.32px] leading-[20.8px] min-h-[auto] min-w-[auto] outline-[3px] gap-y-1 md:text-[17.298px] md:gap-x-[3.844px] md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-
69h-0 md:min-w-0 md:gap-y-[3.844px]",children:[d.jsx("div",{className:"text-base font-semibold box-border caret-transparent tracking-[-0.32px] leading-[20.8px] min-h-[auto] min-w-[auto] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-h-0 md:min-w-0",children:"Maxine Fish"}),d.jsx("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-[20.8px] min-h-[auto] min-w-[auto] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-h-0 md:min-w-0",children:"Head of People & Operations, Evaro"})]})]}),d.jsx("div",{className:"text-base box-border caret-transparent hidden tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:d.jsx("div",{className:"text-base items-center bg-transparent border-l-stone-800 border-r-stone-800 border-t-stone-800 box-border caret-transparent justify-center tracking-[-0.32px] leading-6 opacity-60 outline-[3px] px-0 py-2.5 border-b-transparent border-b-2 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:px-[30.752px] md:py-[9.61px]",children:d.jsx("img",{src:"/images/6a16de8d2e6babaa821a30d1_evaro.png",alt:"Evaro logo",className:"text-base box-border caret-transparent h-[60.8px] tracking-[-0.32px] leading-6 max-w-full object-contain outline-[3px] md:text-[17.298px] md:h-[58.4288px] md:tracking-[-0.34596px] md:leading-[25.947px]"})})})]})})}),d.jsx("div",{"aria-label":"4 of 5",role:"group",className:"relative text-base box-border caret-transparent inline-block h-full tracking-[-0.32px] leading-6 outline-[3px] text-left align-top w-full md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:d.jsx("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:d.jsxs("div",{className:"text-base bg-stone-100 box-border caret-transparent gap-x-4 flex flex-col auto-cols-[1fr] grid-cols-[1fr_1fr] grid-rows-[auto_auto] tracking-[-0.32px] leading-6 outline-[3px] gap-y-4 p-5 rounded-2xl md:text-[17.298px] md:bg-transparent md:gap-x-[30.752px] md:tracking-[-0.34596px] md:leading-[25.947px] md:gap-y-[30.752px] md:p-0 md:rounded-none",children:[d.jsx("p",{className:"text-[24.8px] font-light box-border caret-transparent tracking-[-0.496px] leading-[27.28px] min-h-[auto] min-w-[auto] outline-[3px] mb-8 font-crimsonpro md:text-[38.44px] md:tracking-[-0.7688px] md:leading-[40.7464px] md:min-h-0 md:min-w-0 md:mb-0",children:`"With confeti, you just tell it what you need and it builds it, an onboarding workflow, a comp analysis, whatever. For an AI-native org where requirements shift constantly, that's the difference between an HRIS that helps and one that holds you back"`}),d.jsxs("div",{className:"text-base items-start box-border caret-transparent gap-x-4 flex flex-col tracking-[-0.32px] leading-[20.8px] min-h-[auto] min-w-[auto] outline-[3px] gap-y-4 md:text-[17.298px] md:items-center md:gap-x-[15.376px] md:flex-row md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-h-0 md:min-w-0 md:gap-y-[15.376px]",children:[d.jsx("img",{src:"/images/6a169e5212e768c86f167453_1739450939293.jpeg",alt:"Portrait of Christina Cherniawsky",sizes:"(max-width: 800px) 100vw, 800px",className:"text-base aspect-square box-border caret-transparent tracking-[-0.32px] leading-[20.8px] max-w-full min-h-[auto] min-w-[auto] object-contain outline-[3px] w-12 rounded-xl md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-h-0 md:min-w-0 md:w-[46.128px] md:rounded-[11.532px]"}),d.jsxs("div",{className:"text-base items-start box-border caret-transparent gap-x-1 flex flex-col justify-start tracking-[-0.32px] leading-[20.8px] min-h-[auto] min-w-[auto] outline-[3px] gap-y-1 md:text-[17.298px] md:gap-x-[3.844px] md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-h-0 md:min-w-0 md:gap-y-[3.844px]",children:[d.jsx("div",{className:"text-base font-semibold box-border caret-transparent tracking-[-0.32px] leading-[20.8px] min-h-[auto] min-w-[auto] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-
69h-0 md:min-w-0",children:"Christina Cherniawsky"}),d.jsx("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-[20.8px] min-h-[auto] min-w-[auto] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-h-0 md:min-w-0",children:"Director, People & Culture, BLACKBIRD.AI"})]})]}),d.jsx("div",{className:"text-base box-border caret-transparent hidden tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:d.jsx("div",{className:"text-base items-center bg-transparent border-l-stone-800 border-r-stone-800 border-t-stone-800 box-border caret-transparent justify-center tracking-[-0.32px] leading-6 opacity-60 outline-[3px] px-0 py-2.5 border-b-transparent border-b-2 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:px-[30.752px] md:py-[9.61px]",children:d.jsx("img",{src:"/images/6a16df396204d20ba4ccd0ac_blackbird.ai.png",alt:"BLACKBIRD.AI logo",className:"text-base box-border caret-transparent h-[60.8px] tracking-[-0.32px] leading-6 max-w-full object-contain outline-[3px] md:text-[17.298px] md:h-[58.4288px] md:tracking-[-0.34596px] md:leading-[25.947px]"})})})]})})}),d.jsx("div",{"aria-label":"5 of 5",role:"group",className:"relative text-base box-border caret-transparent inline-block h-full tracking-[-0.32px] leading-6 outline-[3px] text-left align-top w-full md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:d.jsx("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:d.jsxs("div",{className:"text-base bg-stone-100 box-border caret-transparent gap-x-4 flex flex-col auto-cols-[1fr] grid-cols-[1fr_1fr] grid-rows-[auto_auto] tracking-[-0.32px] leading-6 outline-[3px] gap-y-4 p-5 rounded-2xl md:text-[17.298px] md:bg-transparent md:gap-x-[30.752px] md:tracking-[-0.34596px] md:leading-[25.947px] md:gap-y-[30.752px] md:p-0 md:rounded-none",children:[d.jsx("p",{className:"text-[24.8px] font-light box-border caret-transparent tracking-[-0.496px] leading-[27.28px] min-h-[auto] min-w-[auto] outline-[3px] mb-8 font-crimsonpro md:text-[38.44px] md:tracking-[-0.7688px] md:leading-[40.7464px] md:min-h-0 md:min-w-0 md:mb-0",children:'"We went from scattered Excel files to saving 60 minutes a day on HR ops. confeti eliminated our manual processes and made onboarding and performance management completely automated."'}),d.jsxs("div",{className:"text-base items-start box-border caret-transparent gap-x-4 flex flex-col tracking-[-0.32px] leading-[20.8px] min-h-[auto] min-w-[auto] outline-[3px] gap-y-4 md:text-[17.298px] md:items-center md:gap-x-[15.376px] md:flex-row md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-h-0 md:min-w-0 md:gap-y-[15.376px]",children:[d.jsx("img",{src:"/images/69cf932e6adac79f7a6465b5_693422f68d9f648a86e4a232_692eec95ad70eabdcb3386e4_Hadas_Levi.avif",alt:"Portrait of Hadas Levi",className:"text-base aspect-square box-border caret-transparent tracking-[-0.32px] leading-[20.8px] max-w-full min-h-[auto] min-w-[auto] object-contain outline-[3px] w-12 rounded-xl md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-h-0 md:min-w-0 md:w-[46.128px] md:rounded-[11.532px]"}),d.jsxs("div",{className:"text-base items-start box-border caret-transparent gap-x-1 flex flex-col justify-start tracking-[-0.32px] leading-[20.8px] min-h-[auto] min-w-[auto] outline-[3px] gap-y-1 md:text-[17.298px] md:gap-x-[3.844px] md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-h-0 md:min-w-0 md:gap-y-[3.844px]",children:[d.jsx("div",{className:"text-base font-semibold box-border caret-transparent tracking-[-0.32px] leading-[20.8px] min-h-[auto] min-w-[auto] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-h-0 md:min-w-0",children:"Hadas Levi"}),d.jsx("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-[20.8px] min-h-[auto] min-w-[auto] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[22.4874px] md:min-
69h-0 md:min-w-0",children:"HR Business Partner, Quantum Machines"})]})]}),d.jsx("div",{className:"text-base box-border caret-transparent hidden tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:d.jsx("div",{className:"text-base items-center bg-transparent border-l-stone-800 border-r-stone-800 border-t-stone-800 box-border caret-transparent justify-center tracking-[-0.32px] leading-6 opacity-60 outline-[3px] px-0 py-2.5 border-b-transparent border-b-2 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:px-[30.752px] md:py-[9.61px]",children:d.jsx("img",{src:"/images/quantum-machines.svg",alt:"Quantum Machines logo",className:"text-base box-border caret-transparent h-[60.8px] tracking-[-0.32px] leading-6 max-w-full object-contain outline-[3px] md:text-[17.298px] md:h-[58.4288px] md:tracking-[-0.34596px] md:leading-[25.947px]"})})})]})})})]}),d.jsxs("div",{className:"text-base items-center box-border caret-transparent gap-x-3 flex flex-wrap justify-center tracking-[-0.32px] leading-6 outline-[3px] gap-y-3 mt-5 md:text-[17.298px] md:[align-items:normal] md:gap-x-[normal] md:block md:flex-nowrap md:justify-normal md:tracking-[-0.34596px] md:leading-[25.947px] md:gap-y-[normal] md:mt-0",children:[d.jsx("div",{"aria-label":"Show slide 1 of 5",role:"button",className:"text-base aspect-square bg-stone-800 box-border caret-transparent tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] w-2 rounded-[50%] scale-[1.3] md:text-[17.298px] md:aspect-auto md:bg-transparent md:tracking-[-0.34596px] md:leading-[25.947px] md:min-h-0 md:min-w-0 md:transform-none md:w-auto md:rounded-none"}),d.jsx("div",{"aria-label":"Show slide 2 of 5",role:"button",className:"text-base aspect-square bg-stone-300 box-border caret-transparent tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] w-2 rounded-[50%] md:text-[17.298px] md:aspect-auto md:bg-transparent md:tracking-[-0.34596px] md:leading-[25.947px] md:min-h-0 md:min-w-0 md:w-auto md:rounded-none"}),d.jsx("div",{"aria-label":"Show slide 3 of 5",role:"button",className:"text-base aspect-square bg-stone-300 box-border caret-transparent tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] w-2 rounded-[50%] md:text-[17.298px] md:aspect-auto md:bg-transparent md:tracking-[-0.34596px] md:leading-[25.947px] md:min-h-0 md:min-w-0 md:w-auto md:rounded-none"}),d.jsx("div",{"aria-label":"Show slide 4 of 5",role:"button",className:"text-base aspect-square bg-stone-300 box-border caret-transparent tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] w-2 rounded-[50%] md:text-[17.298px] md:aspect-auto md:bg-transparent md:tracking-[-0.34596px] md:leading-[25.947px] md:min-h-0 md:min-w-0 md:w-auto md:rounded-none"}),d.jsx("div",{"aria-label":"Show slide 5 of 5",role:"button",className:"text-base aspect-square bg-stone-300 box-border caret-transparent tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] w-2 rounded-[50%] md:text-[17.298px] md:aspect-auto md:bg-transparent md:tracking-[-0.34596px] md:leading-[25.947px] md:min-h-0 md:min-w-0 md:w-auto md:rounded-none"})]}),d.jsxs("div",{role:"button","aria-label":"previous slide",className:"absolute text-white text-[40px] box-border caret-transparent hidden tracking-[-0.32px] leading-[60px] outline-[3px] w-20 z-[3] overflow-hidden m-auto left-0 inset-y-0 md:tracking-[-0.34596px]",children:[d.jsx("div",{className:"aspect-square bg-stone-800 box-border caret-transparent tracking-[-0.32px] outline-[3px] w-2 rounded-[50%] md:aspect-auto md:bg-transparent md:tracking-[-0.34596px] md:w-auto md:rounded-none"}),d.jsx("div",{className:"absolute box-border caret-transparent h-10 tracking-[-0.32px] leading-10 outline-[3px] w-10 m-auto inset-0 font-webflow_icons md:tracking-[-0.34596px] before:accent-auto before:caret-transparent before:text-white before:text-[40px] before:not-italic before:normal-nums before:font-normal before:tracking-[-0.32px] before:leading-10 before:list-outside before:list-disc before:outline-[3px] before:pointer-events-auto before:text-center before:no-underline before:indent-[0px] before:normal-case before:visible before:border-separate before:font-webflow_icons before:md:tracking-[-0.34596px]"})]}),d.jsx("div",{role:"button","aria-label":"next slide",className:"absolute text-white text-[40px] box-border caret-transparent hidden tracking-[-0.32px] leading-[60px] outline-[3px] w-20 z-[4] overflow-hidden m-auto right-0 inset-y-0 md:tracking-[-0.34596px]",children:d.jsx("div",{className:"absolute box-border caret-transparent h-10 tracking-[-0.32px] leading-10 outline-[3px] w-10 m-auto inset-0 font-webflow_icons md:tracking-[-0.34596px] before:accent-auto before:caret-transparent before:text-white before:text-[40px] before:not-italic before:normal-nums before:font-normal before:tracking-[-0.32px] before:leading-10 before:list-outside before:list-disc before:outline-[3px] before:pointer-events-auto before:text-center before:no-underline before:indent-[0px] before:normal-case before:visible before:border-separate before:font-webflow_icons before:md:tracking-[-0.34596px]"})}),d.jsxs("div",{className:"absolute text-base box-border caret-transparent hidden h-10 tracking-[-0.32px] leading-6 outline-[3px] z-[2] m-auto pt-2.5 bottom-0 inset-x-0 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:[d.jsx("div",{"aria-label":"Show slide 1 of 5",role:"button",className:"relative text-base bg-white box-border caret-transparent hidden h-4 tracking-[-0.32px] leading-6 outline-[3px] w-4 mb-2 mx-[3px] md:text-[17.298px] md:h-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:w-[17.298px] md:mb-[8.649px]"}),d.jsx("div",{"aria-label":"Show slide 2 of 5",role:"button",className:"relative text-base bg-white/40 box-border caret-transparent hidden h-4 tracking-[-0.32px] leading-6 outline-[3px] w-4 mb-2 mx-[3px] md:text-[17.298px] md:h-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:w-[17.298px] md:mb-[8.649px]"}),d.jsx("div",{"aria-label":"Show slide 3 of 5",role:"button",className:"relative text-base bg-white/40 box-border caret-transparent hidden h-4 tracking-[-0.32px] leading-6 outline-[3px] w-4 mb-2 mx-[3px] md:text-[17.298px] md:h-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:w-[17.298px] md:mb-[8.649px]"}),d.jsx("div",{"aria-label":"Show slide 4 of 5",role:"button",className:"relative text-base bg-white/40 box-border caret-transparent hidden h-4 tracking-[-0.32px] leading-6 outline-[3px] w-4 mb-2 mx-[3px] md:text-[17.298px] md:h-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:w-[17.298px] md:mb-[8.649px]"}),d.jsx("div",{"aria-label":"Show slide 5 of 5",role:"button",className:"relative text-base bg-white/40 box-border caret-transparent hidden h-4 tracking-[-0.32px] leading-6 outline-[3px] w-4 mb-2 mx-[3px] md:text-[17.298px] md:h-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:w-[17.298px] md:mb-[8.649px]"})]})]})]}),XR=()=>d.jsx("section",{className:"relative text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] w-full py-12 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:py-[115.32px]",children:d.jsx("div",{className:"text-base box-border caret-transparent flex flex-col grid-cols-[minmax(0px,1fr)_minmax(0px,1fr)_1fr] tracking-[-0.32px] leading-6 max-w-[1380px] outline-[3px] gap-y-8 w-full mx-auto px-5 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[1326.18px] md:gap-y-[76.88px] md:px-10",children:d.jsx(QR,{})})}),ZR=()=>d.jsxs("main",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:[d.jsx(FR,{}),d.jsx(zR,{}),d.jsx(HR,{}),d.jsx(WR,{}),d.jsx(GR,{}),d.jsx(CC,{}),d.jsx(KR,{}),d.jsx(XR,{})]}),JR=()=>d.jsx("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:d.jsx("a",{href:"/",className:"relative text-zinc-800 text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] hover:outline-0",children:d.jsx("img",{src:"/favicon.png",alt:"Confeti logo",className:"text-base box-border caret-transparent h-8 tracking-[-0.32px] leading-6 max-w-[40%] outline-[3px] md:text-[17.298px] md:h-[61.504px] md:tracking-[-0.34596px] md:leading-[25.947px]"})})}
69),Gh=[{platform:"mac",label:"Download for macOS",detail:"Apple Silicon · .dmg",url:"https://github.com/confetiadmin/confeti-recorder-download/releases/download/v0.6.2/Confeti.Recorder_aarch64.dmg"},{platform:"windows",label:"Download for Windows",detail:"x64 · .msi",url:"https://github.com/confetiadmin/confeti-recorder-download/releases/download/v0.5.7/Confeti.Recorder_x64_en-US.msi"}];function NC(){var i;if(typeof navigator>"u")return"other";const e=navigator.userAgent||"",t=((i=navigator.userAgentData)==null?void 0:i.platform)||navigator.platform||"";return/Mac/i.test(t)&&typeof navigator.maxTouchPoints=="number"&&navigator.maxTouchPoints>1||/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)?"mobile":/Win/i.test(t)||/Windows NT/i.test(e)?"windows":/Mac/i.test(t)||/Mac OS X/i.test(e)?"mac":"other"}const eM=({className:e="",children:t="Download app"})=>{const[n,i]=P.useState(null),[s,r]=P.useState(null);if(P.useEffect(()=>{const c=NC();if(i(c),c==="mobile"){r(null);return}r(Gh.find(u=>u.platform===c)??Gh[0])},[]),n==="mobile")return null;const o=(s==null?void 0:s.url)??"/download";return d.jsx("a",{href:o,...s?{download:!0,target:"_blank",rel:"noopener noreferrer"}:{},className:`hidden md:block ${e}`,"data-platform":s==null?void 0:s.platform,children:t})},tM=()=>d.jsxs("nav",{className:"grid w-full grid-cols-1 items-start gap-10 text-base tracking-[-0.32px] leading-6 md:grid-cols-2 md:gap-x-20 md:gap-y-12 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:[d.jsxs("div",{className:"flex h-full flex-col gap-2.5 md:gap-3",children:[d.jsx("h3",{className:"mb-2 text-base font-medium text-stone-600 tracking-[-0.32px] leading-6 md:mb-3 md:text-[15.376px] md:tracking-[-0.30752px] md:leading-[23.064px]",children:"Platform"}),d.jsx("a",{href:"/product/roles-intakes",className:"block w-fit py-1.5 text-sm font-medium tracking-[-0.28px] leading-[21px] hover:underline md:py-1 md:text-[13.454px] md:tracking-[-0.26908px] md:leading-[20.181px]",children:"Agent AI roles and intakes"}),d.jsx("a",{href:"/product/candidates-evaluations",className:"block w-fit py-1.5 text-sm font-medium tracking-[-0.28px] leading-[21px] hover:underline md:py-1 md:text-[13.454px] md:tracking-[-0.26908px] md:leading-[20.181px]",children:"Candidates and evaluations"}),d.jsx("a",{href:"/product/hiring-analytics",className:"block w-fit py-1.5 text-sm font-medium tracking-[-0.28px] leading-[21px] hover:underline md:py-1 md:text-[13.454px] md:tracking-[-0.26908px] md:leading-[20.181px]",children:"Hiring analytics"}),d.jsx("a",{href:"/product/interviews",className:"block w-fit py-1.5 text-sm font-medium tracking-[-0.28px] leading-[21px] hover:underline md:py-1 md:text-[13.454px] md:tracking-[-0.26908px] md:leading-[20.181px]",children:"Interviews and hiring process"}),d.jsx("a",{href:"/hiring-intelligence",className:"block w-fit py-1.5 text-sm font-medium tracking-[-0.28px] leading-[21px] hover:underline md:py-1 md:text-[13.454px] md:tracking-[-0.26908px] md:leading-[20.181px]",children:"Hiring intelligence"})]}),d.jsxs("div",{className:"flex h-full flex-col gap-2.5 md:gap-3",children:[d.jsx("h3",{className:"mb-2 text-base font-medium text-stone-600 tracking-[-0.32px] leading-6 md:mb-3 md:text-[15.376px] md:tracking-[-0.30752px] md:leading-[23.064px]",children:"Company"}),d.jsx("a",{href:"/pricing",className:"block w-fit py-1.5 text-sm font-medium tracking-[-0.28px] leading-[21px] hover:underline md:py-1 md:text-[13.454px] md:tracking-[-0.26908px] md:leading-[20.181px]",children:"Pricing"}),d.jsx("a",{href:"/contact",className:"block w-fit py-1.5 text-sm font-medium tracking-[-0.28px] leading-[21px] hover:underline md:py-1 md:text-[13.454px] md:tracking-[-0.26908px] md:leading-[20.181px]",children:"Contact"}),d.jsx(eM,{className:"w-fit py-1.5 text-sm font-medium tracking-[-0.28px] leading-[21px] hover:underline md:py-1 md:text-[13.454px] md:tracking-[-0.26908px] md:leading-[20.181px]"})]})]}),nM=()=>d.jsxs("div",{className:"text-base items-start box-border caret-transparent gap-x-4 flex flex-col-reverse justify-between tracking-[-0.32px] leading-6 outline-[3px] gap-y-4 pb-4 md:text-[17.298px] md:items-center md:gap-x-[30.752px] md:flex-row md:tracking-[-0.34596px] md:leading-[25.947px] md:gap-y-[30.752px] md:pb-0",children:[d.jsxs("div",{className:"text-sm box-border caret-transparent tracking-[-0.28px] leading-[21px] min-h-[auto] min-w-[auto] outline-[3px] md:text-[13.454px] md:tracking-[-0.26908px] md:leading-[20.181px]",children:["©"," ",d.jsx("span",{className:"text-sm box-border caret-transparent tracking-[-0.28px] leading-[21px] outline-[3px] md:text-[13.454px] md:tracking-[-0.26908px] md:leading-[20.181px]",children:"2026"}),"confeti. All rights reserved.",d.jsx("span",{className:"mx-2 text-stone-400",children:"·"}),d.jsx("a",{href:"https://app.confeti.co/privacy",className:"underline-offset-2 hover:underline",children:"Privacy Policy"}),d.jsx("span",{className:"mx-2 text-stone-400",children:"·"}),d.jsx("a",{href:"https://app.confeti.co/terms",className:"underline-offset-2 hover:underline",children:"Terms of Service"})]}),d.jsx("div",{className:"text-base items-center box-border caret-transparent gap-x-2 flex flex-wrap auto-cols-[100%] grid-cols-[100%] grid-rows-[auto] h-full justify-start justify-items-start tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] gap-y-2 md:text-[17.298px] md:gap-x-[7.688px] md:tracking-[-0.34596px] md:leading-[25.947px] md:gap-y-[7.688px]",children:d.jsx("a",{href:"https://www.linkedin.com/company/confeti-ai/","aria-label":"Confeti on LinkedIn",className:"text-base box-border caret-transparent block tracking-[-0.32px] leading-6 max-w-full min-h-[auto] min-w-[auto] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] hover:outline-0",children:d.jsx("img",{src:"/images/69d33ed0e3c3a8fbcc270680_linkedin.svg",alt:"LinkedIn",className:"text-base items-center box-border caret-transparent inline-flex h-6 justify-center tracking-[-0.32px] leading-6 max-w-full outline-[3px] w-6 md:text-[17.298px] md:h-[23.064px] md:tracking-[-0.34596px] md:leading-[25.947px] md:w-[23.064px]"})})})]}),iM=()=>d.jsxs("div",{className:"text-base bg-stone-50 box-border caret-transparent tracking-[-0.32px] leading-6 min-h-[auto] min-w-[auto] outline-[3px] rounded-t-[30px] p-7 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:rounded-t-[28.83px] md:p-[64px]",children:[d.jsxs("div",{className:"grid grid-cols-[minmax(0px,1fr)] grid-rows-[auto] items-start gap-y-10 text-base tracking-[-0.32px] leading-6 md:grid-cols-[minmax(0px,0.75fr)_minmax(0px,1fr)] md:gap-x-[84px] md:gap-y-[56px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:[d.jsx(JR,{}),d.jsx(tM,{})]}),d.jsx("div",{className:"text-base bg-stone-300 box-border caret-transparent h-px tracking-[-0.32px] leading-6 outline-[3px] w-full my-8 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:mt-[58px] md:mb-[34px]"}),d.jsx(nM,{})]}),sM=()=>d.jsx("div",{role:"dialog",className:"fixed text-base items-center box-border caret-transparent hidden flex-col justify-center tracking-[-0.32px] leading-6 min-h-[1000px] outline-[3px] w-full z-[999] inset-[0%] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:d.jsxs("div",{className:"relative text-base items-start bg-white box-border caret-transparent gap-x-4 grid auto-cols-[1fr] grid-cols-[minmax(0px,1fr)] grid-rows-[auto] h-full justify-start tracking-[-0.32px] leading-6 max-h-none max-w-[1186px] opacity-0 outline-[3px] gap-y-4 w-full z-[3] overflow-auto px-4 py-14 roun
69ded-none md:text-[17.298px] md:items-stretch md:gap-x-[30.752px] md:grid-cols-[minmax(0px,1fr)_minmax(0px,1fr)] md:h-auto md:justify-normal md:tracking-[-0.34596px] md:leading-[25.947px] md:max-h-[940px] md:max-w-[1139.75px] md:gap-y-[30.752px] md:px-[38.44px] md:py-[46.128px] md:rounded-[19.22px]",children:[d.jsxs("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:[d.jsxs("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 max-w-md outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[430.528px]",children:[d.jsx("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] mb-3 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:mb-[11.532px]",children:d.jsx("h2",{className:"text-2xl font-medium box-border caret-transparent tracking-[-0.72px] leading-6 outline-[3px] md:text-[46.128px] md:tracking-[-2.3064px] md:leading-[46.128px]",children:"See confeti in action"})}),d.jsx("div",{className:"text-base box-border caret-transparent col-end-[span_1] col-start-[span_1] row-end-[span_1] row-start-[span_1] tracking-[-0.32px] leading-6 max-w-screen-sm outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[615.04px]",children:d.jsxs("p",{className:"text-stone-600 text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:["Book a quick demo to see how confeti can transform your people management.",d.jsx("br",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]"})]})}),d.jsxs("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 opacity-0 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:[d.jsx("div",{className:"text-base box-border caret-transparent hidden h-8 tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:block md:h-[30.752px] md:tracking-[-0.34596px] md:leading-[25.947px]"}),d.jsx("div",{className:"text-base box-border caret-transparent hidden h-8 tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:h-[30.752px] md:tracking-[-0.34596px] md:leading-[25.947px]"}),d.jsx("div",{className:"text-base box-border caret-transparent hidden h-4 tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:h-[15.376px] md:tracking-[-0.34596px] md:leading-[25.947px]"}),d.jsx("div",{className:"text-base box-border caret-transparent block h-4 tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:hidden md:h-[15.376px] md:tracking-[-0.34596px] md:leading-[25.947px]"})]})]}),d.jsx("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 max-w-[500px] outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[480.5px] before:accent-auto before:caret-transparent before:text-stone-800 before:table before:text-base before:not-italic before:normal-nums before:font-normal before:col-end-2 before:col-start-1 before:row-end-2 before:row-start-1 before:tracking-[-0.32px] before:leading-6 before:list-outside before:list-disc before:outline-[3px] before:pointer-events-auto before:text-start before:no-underline before:indent-[0px] before:normal-case before:visible before:border-separate before:font-geist before:md:text-[17.298px] before:md:tracking-[-0.34596px] before:md:leading-[25.947px] after:accent-auto after:caret-transparent after:clear-both after:text-stone-800 after:table after:text-base after:not-italic after:normal-nums after:font-normal after:col-end-2 after:col-start-1 after:row-end-2 after:row-start-1 after:tracking-[-0.32px] after:leading-6 after:list-outside after:list-disc after:outline-[3px] after:pointer-events-auto after:text-start after:no-underline after:indent-[0px] after:normal-case after:visible after:border-separate after:font-geist after:md:text-[17.298px] after:md:tracking-[-0.34596px] after:md:leading-[25.947px]",children:d.jsx("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]"})})]}),d.jsxs("div",{className:"text-base items-center bg-stone-100 box-border caret-transparent hidden flex-col justify-center tracking-[-0.32px] leading-6 outline-[3px] gap-y-4 py-12 rounded-2xl md:text-[17.298px] md:flex md:tracking-[-0.34596px] md:leading-[25.947px] md:gap-y-[15.376px] md:py-[46.128px] md:rounded-[15.376px]",children:[d.jsx("div",{className:"text-base box-border caret-transparent col-end-[span_1] col-start-[span_1] row-end-[span_1] row-start-[span_1] tracking-[-0.32px] leading-6 max-w-screen-sm outline-[3px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[615.04px]",children:d.jsx("p",{className:"text-stone-600 text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] md:text-[15.376px] md:tracking-[-0.30752px] md:leading-[23.064px]",children:"Trusted by"})}),d.jsx("img",{src:"/images/69f850a405d47244738cf04c_Frame_63208885.avif",alt:"Logos of companies that trust Confeti",className:"text-base aspect-[auto_403_/_278] box-border caret-transparent tracking-[-0.32px] leading-6 max-w-full outline-[3px] w-[403px] md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]"})]}),d.jsx("button",{"aria-label":"Close modal",className:"absolute text-base bg-transparent caret-transparent block tracking-[normal] leading-6 outline-[3px] text-center p-1 rounded-tr-[20px] right-4 top-8 md:text-[17.298px] md:leading-[25.947px] md:p-[3.844px] md:right-1 md:top-1",children:d.jsx("img",{src:"/images/69d33edb7a3dcbb4cc2e6ed9_icon_close-modal.svg",alt:"","aria-hidden":"true",className:"text-base box-border caret-transparent leading-6 max-w-full outline-[3px] md:text-[17.298px] md:leading-[25.947px]"})})]})}),Ci=()=>d.jsxs("footer",{className:"text-base bg-stone-200 box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] pt-12 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:pt-[115.32px]",children:[d.jsx("div",{className:"text-base box-border caret-transparent flex flex-col grid-cols-[minmax(0px,1fr)_minmax(0px,1fr)_1fr] tracking-[-0.32px] leading-6 max-w-[1380px] outline-[3px] gap-y-8 w-full mx-auto px-5 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px] md:max-w-[1326.18px] md:gap-y-0 md:px-10",children:d.jsx(iM,{})}),d.jsx(sM,{})]}),rM=()=>d.jsxs("div",{className:"text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] overflow-x-clip md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:[d.jsx(si,{}),d.jsx(ZR,{}),d.jsx(Ci,{})]}),aM=()=>d.jsx("div",{className:"fixed text-base box-border caret-transparent tracking-[-0.32px] leading-6 outline-[3px] z-[-1] inset-0 md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:d.jsx("iframe",{src:"https://confeti.co/",className:"text-base box-border caret-transparent h-0 tracking-[-0.32px] leading-6 outline-[3px] w-px md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]"})}),oM=()=>d.jsxs("div",{className:"text-stone-800 text-base not-italic normal-nums font-normal accent-auto bg-stone-50 box-border caret-transparent block tracking-[-0.32px] leading-6 list-outside list-disc min-h-full outline-[3px] pointer-events-auto text-start indent-[0px] normal-case visible border-separate font-geist md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:[d.jsx(rM,{}),d.jsx(aM,{})]}),lM=[{title:"Know what’s happening on every role",eyebrow:"Hiring context",prompts:["Why is this role stuck?","How has the profile changed since intake?","What should I pay attention to today?"],body:`Recruiters shouldn’t have to reconstruct the search from notes, Slack, and the ATS.
70
71Confeti connects intakes, interviews, debriefs, and outcomes so you can ask what’s happening — and get an answer with the evidence already attached.`},{title:"Turn every interview into usable evidence",eyebrow:"Interview intelligence",prompts:["Which competencies are still untested?","Where do interviewers disagree, and why?","Which stage adds almost no new signal?"],body:`A strong loop isn’t a prettier scorecard. It’s consistent coverage, calibrated judgment, and interviews that build on each other.
72
73Confeti surfaces drift, repetition, and missing evidence before they become late-stage surprises.`},{title:"Make every hiring cycle smarter than the last",eyebrow:"Compounding memory",prompts:["What predicted our strongest hires?","What are candidates consistently telling us?","What should we change on the next search?"],body:`Most tools stop when someone is hired or rejected. Confeti keeps the learning.
74
75Role, candidate, process, and team context carry forward — so the next search starts with memory, not from zero.`}],cM=()=>{const[e,t]=P.useState(0);P.useEffect(()=>{let r=0;const o=()=>{const u=document.getElementById("ai-reading-pin-container");if(!u)return;const h=u.getBoundingClientRect(),f=window.innerHeight||1,m=Math.max(1,h.height-f),x=Math.min(m,Math.max(0,-h.top)),y=Math.max(0,Math.min(1,x/m));t(y)},c=()=>{r||(r=window.requestAnimationFrame(()=>{r=0,o()}))};return o(),window.addEventListener("scroll",c,{passive:!0}),window.addEventListener("resize",o),()=>{r&&window.cancelAnimationFrame(r),window.removeEventListener("scroll",c),window.removeEventListener("resize",o)}},[]);const n=`Confeti AI runs on your hiring conversations, ATS data, role context & outcomes
76
77so it does not just know that a candidate moved forward. It understands what was said, what was evaluated, what changed and why.`,i=P.useMemo(()=>Array.from(n),[n]),s=Math.max(0,Math.min(i.length,Math.floor(e*i.length)));return d.jsxs("div",{className:"relative min-h-full overflow-x-clip bg-[#faf8f6] font-geist text-stone-800",children:[d.jsx(si,{}),d.jsxs("main",{className:"relative z-10 w-full",children:[d.jsx("section",{className:"w-full pt-12 pb-14 md:pt-20 md:pb-20",children:d.jsxs("div",{className:"mx-auto max-w-[1326px] px-5 md:px-10",children:[d.jsxs("div",{className:"mx-auto max-w-[980px] text-center",children:[d.jsx("h1",{className:"text-[44px] leading-[0.98] tracking-[-1.6px] md:text-[88px] md:tracking-[-3.1px]",children:"AI that learns how your team hires"}),d.jsx("p",{className:"mx-auto mt-7 max-w-[960px] text-lg leading-8 text-stone-600 md:text-[21px] md:leading-9",children:"Most recruiting AI helps you do the same work a little faster. Confeti learns from the work itself. Every intake, screen, interview and debrief gives Confeti more context about the role, the candidate and what your team is actually looking for, so recruiters stay ahead of every req and your hiring process gets better as you use it."}),d.jsx("div",{className:"mt-8 flex justify-center",children:d.jsx("a",{href:"https://app.confeti.co/",className:"inline-flex items-center justify-center rounded-xl border border-zinc-800 bg-zinc-800 px-5 py-3 text-sm font-medium text-white transition-colors hover:bg-zinc-700",children:"See Confeti AI in action"})})]}),d.jsx("div",{className:"mx-auto mt-12 max-w-[1120px] overflow-hidden rounded-2xl md:mt-14",children:d.jsx("img",{src:"/images/uploaded-asset-1788783096506-0.png",alt:"AI platform overview",className:"aspect-[3/2] w-full rounded-2xl object-cover"})})]})}),null,d.jsx("section",{id:"ai-reading-pin-container",className:"relative h-[240vh] w-full md:h-[280vh]",children:d.jsxs("div",{id:"ai-reading-section",className:"sticky top-0 h-screen w-full overflow-hidden",children:[d.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"linear-gradient(rgba(250,248,246,0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(250,248,246,0.14) 1px, transparent 1px)",backgroundSize:"52px 52px"}}),d.jsx("div",{className:"pointer-events-none absolute inset-0 bg-black/80"}),d.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 w-24 bg-gradient-to-r from-black to-transparent md:w-48"}),d.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 w-24 bg-gradient-to-l from-black to-transparent md:w-48"}),d.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-28 bg-gradient-to-b from-black to-transparent md:h-40"}),d.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-24 bg-gradient-to-t from-black to-transparent md:h-36"}),d.jsx("div",{className:"relative mx-auto flex h-full w-full max-w-[1060px] items-center px-5 md:px-10",children:d.jsx("p",{className:"whitespace-pre-wrap text-[30px] leading-[1.16] tracking-[-0.9px] md:text-[54px] md:tracking-[-1.6px]",children:i.map((r,o)=>d.jsx("span",{className:"transition-colors duration-75",style:{color:o<s?"rgba(255,255,255,1)":"rgba(255,255,255,0.16)"},children:r},`${r}-${o}`))})})]})}),d.jsx("section",{className:"w-full border-t border-stone-200/70 py-16 md:py-24",children:d.jsxs("div",{className:"mx-auto max-w-[980px] px-5 md:px-10",children:[d.jsx("div",{className:"divide-y divide-stone-200/80",children:lM.map((r,o)=>d.jsxs("article",{className:"py-12 first:pt-0 last:pb-0 md:py-16",children:[d.jsxs("p",{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-[#C97B3A]",children:[String(o+1).padStart(2,"0")," · ",r.eyebrow]}),d.jsx("h2",{className:"mt-4 max-w-[820px] text-[32px] font-medium leading-[1.08] tracking-[-1px] text-stone-900 md:text-[44px] md:tracking-[-1.4px]",children:r.title}),d.jsx("p",{className:"mt-5 max-w-[640px] whitespace-pre-line text-[16px] leading-8 text-stone-600 md:text-[17px]",children:r.body}),d.jsx("ul",{className:"mt-8 space-y-0 border-t border-stone-200/80",children:r.prompts.map(c=>d.jsx("li",{className:"border-b border-stone-200/80 last:border-b-0",children:d.jsxs("p",{className:"flex items-baseline justify-between gap-4 py-3.5 text-[15px] leading-7 text-stone-700 md:text-base",children:[d.jsx("span",{children:c}),d.jsx("span",{className:"shrink-0 text-stone-300","aria-hidden":!0,
77children:"→"})]})},c))})]},r.title))}),d.jsxs("p",{className:"mt-10 text-sm text-stone-500 md:mt-12",children:["See more of what becomes possible on"," ",d.jsx("a",{href:"/hiring-intelligence",className:"font-medium text-stone-800 underline decoration-stone-300 underline-offset-4 transition-colors hover:decoration-stone-500",children:"hiring intelligence"}),"."]})]})}),d.jsx("section",{className:"w-full py-8 md:py-12",children:d.jsx("div",{className:"mx-auto max-w-[1326px] px-5 md:px-10",children:d.jsxs("div",{className:"mx-auto max-w-[980px] text-center",children:[d.jsx("h2",{className:"text-[34px] leading-[1.08] tracking-[-1px] md:text-[54px] md:tracking-[-1.6px]",children:"Your ATS tells you what happened. Confeti helps you understand why, and what to do differently next time."}),d.jsxs("p",{className:"mx-auto mt-6 max-w-[760px] text-lg leading-8 text-stone-600",children:["It starts with the conversations themselves. See how Confeti"," ",d.jsx("a",{href:"/product/interviews",className:"font-medium text-stone-800 underline decoration-stone-300 underline-offset-4 transition-colors hover:decoration-stone-500",children:"turns hiring conversations into structured interview evidence"}),"."]})]})})}),d.jsx(CC,{}),d.jsx("section",{className:"w-full pt-6 pb-16 md:pt-8 md:pb-24",children:d.jsx("div",{className:"mx-auto max-w-[1326px] px-5 md:px-10",children:d.jsxs("div",{className:"rounded-2xl bg-stone-900 p-8 text-white md:p-12",children:[d.jsx("h2",{className:"text-[36px] leading-[1.1] tracking-[-1.1px] md:text-[52px]",children:"Hiring should get smarter every time you do it"}),d.jsx("p",{className:"mt-4 max-w-[760px] text-lg leading-8 text-stone-200",children:"Your team already learns from every candidate. Confeti makes sure your hiring process does too."}),d.jsx("a",{href:"https://app.confeti.co/",className:"mt-7 inline-flex items-center justify-center rounded-xl bg-white px-5 py-3 text-sm font-medium text-stone-900 transition-colors hover:bg-stone-100",children:"See Confeti AI in action"})]})})})]}),d.jsx(Ci,{})]})},dM={"roles-intakes":{categoryLabel:"Roles & Intakes",headline:"Start every search with shared context.",shortExplanation:"Capture what the hiring team actually needs, not only what landed in the job description. Confeti turns intake conversations, role briefs, and live recruiter learning into evolving role context.",heroVisualTitle:"Senior Product Manager workspace",heroVisualItems:["Must-haves","Nice-to-haves","Key signals","Open questions","Interview coverage"],heroTimeline:["Intake","Search","Interviews","Updated role context"],capabilities:[{headline:"Understand the role behind the JD",outcome:"Confeti captures priorities, trade-offs, expectations, constraints, and nuance from hiring manager conversations so recruiters can execute against real intent.",visualTitle:"Intake transcript to structured role context",visualItems:["Must have: Led zero-to-one products","Strong preference: B2B SaaS experience","Trade-off: Domain depth can offset people management","Concern: Avoid profiles too far from execution"]},{headline:"Turn context into an interview plan",outcome:"Connect role requirements to stages and interview owners so important signals are intentionally assessed and gaps are visible early.",visualTitle:"Signal coverage matrix",visualItems:["Product judgment: Hiring manager + final","Technical depth: Technical stage","Leadership: Hiring manager + final","Customer empathy: Recruiter screen + final"]},{headline:"Keep up when the role changes",outcome:"Requirements evolve during real candidate conversations. Confeti tracks what changed, when it changed, and why the team made the decision.",visualTitle:"Role change memory",visualItems:["Original: Must have managed 5+ people","Updated: Strong individual contributor leadership is enough","Why: Hiring manager sync after Candidate 14","Status: Change applied across interview plan"]},{headline:"Build role memory",outcome:"Carry hiring learnings from one search to the next so each new opening starts with context, not from zero.",visualTitle:"Reusable search history",visualItems:["2025 Product Lead search signals","2026 Senior Product Manager refinements","Transferable interview learnings","Market feedback carried forward"]}],intelligenceQuestions:["What does Sarah care about most for this role?","Have requirements changed since kickoff?","Which must-haves are still uncovered in interviews?","What trade-offs has the hiring manager accepted?","What did we learn from the last time we hired this role?"]},interviews:{categoryLabel:"Interviews",headline:"Turn every interview into usable signal.",shortExplanation:"Stay focused on the candidate while Confeti captures conversations, organizes evidence, and carries interview learning forward across the loop without meeting bots.",heroVisualTitle:"Continuous interview flow",heroVisualItems:["Before: Interview brief","During: Conversation capture","After: Evidence + evaluation"],heroTimeline:["Prep","Conversation","Evidence","Next interview context"],capabilities:[{headline:"Walk in knowing what matters",outcome:"Each interviewer starts with role context, prior interview findings, unresolved questions, and a clear focus for this stage.",visualTitle:"Interview prep for Maya Chen",visualItems:["Already learned: Enterprise depth and discovery strength","Still unclear: Team leadership and conflict handling","Focus now: Leadership + stakeholder management","Avoid repeating: Previously answered history questions"]},{headline:"Stay in the conversation",outcome:"Confeti captures interviews directly from recruiter workflows and organizes content by signal themes so interviewers can listen and probe instead of transcribing.",visualTitle:"Conversation capture",visualItems:["Topic-based live note grouping","Signal tags generated in real time","Question trace by interviewer","Follow-up prompts based on gaps"]},{headline:"Get evidence, not another summary",outcome:"Evaluations stay grounded in specific candidate evidence with source and timing, helping teams align on why a conclusion was reached.",visualTitle:"Evidence-backed evaluation",visualItems:["Leadership: Strong","Claim linked to exact quote and timestamp","Evidence source: Hiring manager interview","Supporting markers visible to panel"]},{headline:"Make every interview improve the next",outcome:"Confeti accumulates confirmed evidence and unresolved questions so later interviewers build signal rather than repeating earlier steps.",visualTitle:"Interview sequence signal growth",visualItems:["Recruiter screen","Hiring manager","Technical","Final panel with unresolved questions reduced"]}],intelligenceQuestions:["What did we actually learn from this interview?","What should the next interviewer dig into?","Which requirements are still unvalidated?","What questions did we repeat?","Where is the evidence behind this score?"]},"candidates-evaluations":{categoryLabel:"Candidates & Evaluations",headline:"See the whole candidate.",shortExplanation:"Bring interviews, evaluations, resume context, strengths, concerns, and open questions into one evolving understanding built from evidence.",heroVisualTitle:"Maya Chen candidate understanding",heroVisualItems:["Experience","Evidence","Strengths","Concerns","Interview history","Role fit","Open questions"],heroTimeline:["Application","Interviews","Debrief","Decision context"],capabilities:[{headline:"One candidate, every interaction",outcome:"Confeti unifies recruiter, hiring manager, and interviewer learning so teams no longer reconstruct candidates from scattered notes.",visualTitle:"Sources into one candidate view",visualItems:["Resume","Recruiter screen","Hiring manager interview","Technical interview","Debrief synthesis"]},{headline:"Know what is strong and what is unclear",outcome:"Separate validated strengths from assumptions, concerns, and unknowns so next interview steps focus on real gaps.",visualTitle:"Signal clarity map",visualItems:["Product judgment: Strong evidence","Leadership: Mixed evidence","Technical depth: Strong evidence","Executive communication: Not enough evidence"]},{headline:"Follow how evaluation evolves",outcome:"Track where new evidence confirms or contradicts earlier views, making candidate assessment transparent over time.",visualTitle:"Candidate evidence timeline",visualItems:["Application: Enterprise scale concern","Recruiter screen: Concern reduced","Hiring manager interview: Strong evidence gained","Technical interview: New architecture depth concern"]},{headline:"Compare candidates in role context",outcome:"Compare candidates against role criteria and evidence coverage rather than relying on artificial universal scoring.",visualTitle:"Role-specific comparison",visualItems:["Must-have coverage","Strength profile differences","Risk areas","Open questions still pending"]}],intelligenceQuestions:["What do we actually know about Maya?","Where is her strongest evidence?","What concerns have multiple interviewers raised?","Where do interviewers disagree?","What is still unvalidated?","How does Maya differ from Alex for this role?"]},"hiring-process":{categoryLabel:"Hiring Process",headline:"Know when your hiring process drifts.",shortExplanation:"Understand where interview stages overlap, signal drops, interviewer calibration diverges, and active searches move away from the intended process.",heroVisualTitle:"Designed process versus real process",heroVisualItems:["Designed: Screen â
77†’ HM → Technical → Leadership → Final","Real process: Duplicated signals","Real process: Skipped areas","Real process: Misaligned evaluations"],heroTimeline:["Designed plan","Active interviews","Drift detected","Process recalibrated"],capabilities:[{headline:"See what every stage actually evaluates",outcome:"Compare expected competency coverage with observed interview behavior to find low coverage, overlap, and missing signal.",visualTitle:"Stage by competency coverage",visualItems:["Strong coverage markers","Low coverage markers","No coverage warnings","Overlap hotspots"]},{headline:"Find the overlap",outcome:"Identify repeated questions and duplicated competency checks so the panel can recover time and improve total signal coverage.",visualTitle:"Interviewer overlap paths",visualItems:["Repeated competency nodes highlighted","Question duplication detection","Uncovered signal surfaced","Suggested redistribution by stage"]},{headline:"Keep interviewers calibrated",outcome:"Reveal where interviewers interpret criteria differently and where evidence supports conflicting conclusions.",visualTitle:"Calibration divergence",visualItems:["
77Strategic thinking: A strong, B weak, C strong","Conflicting interpretation flagged","Evidence links per interviewer","Panel alignment recommendation"]},{headline:"Catch process drift while it happens",outcome:"Detect shifting requirements, changed stage behavior, and evolving evaluation criteria during an active search before inconsistency compounds.",visualTitle:"Drift timeline",visualItems:["Week 1: Original interview plan","Week 4: Leadership moved earlier","Week 6: Technical exercise dropped","Week 8: New requirement repeatedly evaluated"]}],intelligenceQuestions:["Which interviewers skip key questions most often?","Where are interview stages overlapping?","Which competencies have low coverage?","Are candidates getting comparable interviews?","Where are interviewers most misaligned?","Has this process changed since the search started?"]},"hiring-analytics":{categoryLabel:"Hiring Analytics",headline:"See what is actually happening across hiring.",shortExplanation:"Go beyond funnel metrics to understand patterns across roles, interviews, candidates, hiring teams, and outcomes with operational context.",heroVisualTitle:"Cross-hiring intelligence layer",heroVisualItems:["Roles","ATS data","Interviews","Candidates","Evaluations","Outcomes","Answer example: Why did Senior AE pass-through fall this quarter?"],heroTimeline:["Signals collected","Patterns detected","Questions answered","Action taken"],capabilities:[{headline:"Understand what is behind the funnel",outcome:"Connect conversion shifts to requirement changes, interviewer mix, and evaluation behavior so teams can explain why metrics moved.",visualTitle:"Conversion change with context",visualItems:["Technical to Final: 48% to 29%","Technical bar increased","New architecture requirement introduced","Interviewer mix changed"]},{headline:"See which roles need attention",outcome:"Surface abnormal role patterns early so recruiting leaders know which searches require immediate intervention.",visualTitle:"Role health overview",visualItems:["
77Senior AE: Healthy","Backend Engineer: Requirement drift","Product Lead: Low signal coverage","Sales Manager: Candidate drop-off rising"]},{headline:"Learn from interview behavior",outcome:"Measure interviewer and question-level patterns to improve calibration, reduce duplication, and raise signal quality across teams.",visualTitle:"Interview behavior insights",visualItems:["Highest signal questions","Most duplicated competencies","Largest interviewer variance","Lowest coverage stages"]},{headline:"Understand why candidates move or do not",outcome:"Explain advancement, rejection, withdrawal, and stalled decisions through recurring evidence-backed themes rather than disposition labels alone.",visualTitle:"Outcome cluster analysis",visualItems:["Compensation","Role scope","Technical bar","Leadership experience","Process speed","Location"]}],intelligenceQuestions:["Why is this role taking longer to fill?","What changed in pass-through rate?","Why are candidates withdrawing after hiring manager stage?","Which stages produce the strongest signal?","Which questions differentiate strong candidates?","Where are hiring teams struggling to reach decisions?","What changed between strongest and weakest searches?"]}},uM=["Roles inform interviews.","Interviews create candidate evidence.","Candidate evidence exposes process patterns.","Process and outcomes improve future roles."],ql=({productKey:e})=>{const t=dM[e];return d.jsxs("div",{className:"text-stone-800 text-base not-italic normal-nums font-normal accent-auto bg-stone-50 box-border caret-transparent block tracking-[-0.32px] leading-6 list-outside list-disc min-h-full outline-[3px] pointer-events-auto text-start indent-[0px] normal-case visible border-separate font-geist md:text-[17.298px] md:tracking-[-0.34596px] md:leading-[25.947px]",children:[d.jsx(si,{}),d.jsxs("main",{className:"w-full",children:[d.jsx("section",{className:"w-full pt-12 pb-14 md:pt-20 md:pb-20",children:d.jsxs("div",{className:"mx-auto max-w-[1326px] px-5 md:px-10",children:[d.jsxs("div",{className:"mx-auto max-w-[980px] text-center",children:[d.jsx("p",{className:"text-sm font-medium uppercase tracking-[0.14em] text-stone-500 md:text-base",children:t.categoryLabel}),d.jsx("h1",{className:"mt-4 text-[44px] leading-[0.98] tracking-[-1.6px] md:text-[88px] md:tracking-[-3.1px]",children:t.headline}),d.jsx("p",{className:"mx-auto mt-7 max-w-[960px] text-lg leading-8 text-stone-600 md:text-[21px] md:leading-9",children:t.shortExplanation}),d.jsx("div",{className:"mt-8 flex justify-center",children:d.jsx("a",{href:"https://app.confeti.co/",className:"inline-flex items-center justify-center rounded-xl border border-zinc-800 bg-zinc-800 px-5 py-3 text-sm font-medium text-white transition-colors hover:bg-zinc-700",children:"Get a demo"})})]}),d.jsx("div",{className:"mx-auto mt-12 max-w-[1120px] overflow-hidden rounded-2xl border border-stone-200 bg-white p-4 shadow-[0_18px_48px_rgba(15,23,42,0.09)] md:mt-14 md:p-6",children:d.jsxs("div",{className:"grid gap-6 md:grid-cols-[1.2fr_0.8fr] md:gap-8",children:[d.jsxs("div",{className:"rounded-xl border border-stone-200 bg-stone-50 p-5 md:p-6",children:[d.jsx("h3",{className:"text-[24px] font-medium tracking-[-0.5px] md:text-[30px]",children:t.heroVisualTitle}),d.jsx("ul",{className:"mt-5 grid gap-3 text-stone-700 md:grid-cols-2",children:t.heroVisualItems.map(n=>d.jsx("li",{className:"rounded-lg border border-stone-200 bg-white px-4 py-3 text-sm md:text-base",children:n},n))})]}),d.jsxs("div",{className:"rounded-xl border border-stone-200 bg-white p-5 md:p-6",children:[d.jsx("h4",{className:"text-sm font-medium uppercase tracking-[0.12em] text-stone-500",children:"Search timeline"}),d.jsx("ol",{className:"mt-4 space-y-3",children:t.heroTimeline.map((n,i)=>d.jsxs("li",{className:"flex items-center gap-3 rounded-lg border border-stone-200 bg-stone-50 px-4 py-3",children:[d.jsx("span",{className:"inline-flex h-7 w-7 items-center justify-center rounded-full border border-stone-300 text-xs font-medium text-stone-600",children:i+1}),d.jsx("span",{className:"text-sm text-stone-700 md:text-base",children:n})]},n))})]})]})})]})}),d.jsx("section",{className:"w-full py-12 md:py-20",children:d.jsx("div",{className:"mx-auto max-w-[1326px] px-5 md:px-10",children:d.jsx("div",{className:"grid grid-cols-1 gap-y-12 md:gap-y-20",children:t.capabilities.map((n,i)=>d.jsxs("article",{className:"grid items-center gap-8 md:grid-cols-2 md:gap-16",children:[d.jsxs("div",{className:i%2===0?"order-1":"order-2",children:[d.jsx("h2",{className:"text-[34px] leading-[1.06] tracking-[-1px] md:text-[52px] md:tracking-[-1.5px]",children:n.headline}),d.jsx("p",{className:"mt-5 max-w-[560px] leading-8 text-stone-600",children:n.outcome})]}),d.jsx("div",{className:i%2===0?"order-2":"order-1",children:d.jsxs("div",{className:"rounded-2xl border border-stone-200 bg-white p-5 shadow-[0_12px_28px_rgba(15,23,42,0.06)] md:p-6",children:[d.jsx("h3",{className:"text-[24px] leading-[1.1] tracking-[-0.4px] md:text-[30px]",children:n.visualTitle}),d.jsx("ul",{className:"mt-5 space-y-3",children:n.visualItems.map(s=>d.jsx("li",{className:"rounded-lg border border-stone-200 bg-stone-50 px-4 py-3 leading-7 text-stone-700",children:s},s))})]})})]},n.headline))})})}),d.jsx("section",{className:"w-full py-8 md:py-12",children:d.jsx("div",{className:"mx-auto max-w-[1326px] px-5 md:px-10",children:d.jsxs("div",{className:"mx-auto rounded-2xl border border-stone-200 bg-white p-6 shadow-[0_16px_36px_rgba(15,23,42,0.07)] md:max-w-[1120px] md:p-10",children:[d.jsx("h2",{className:"text-center text-[34px] leading-[1.08] tracking-[-1px] md:text-[54px] md:tracking-[-1.6px]",children:"Ask Confeti"}),d.jsx("p",{className:"mx-auto mt-4 max-w-[760px] text-center leading-8 text-stone-600",children:"Confeti understands the context your team creates across roles, interviews, evidence, and outcomes so every question returns an actionable answer."}),d.jsx("ul",{className:"mt-8 grid gap-3 md:grid-cols-2",children:t.intelligenceQuestions.map(n=>d.jsx("li",{className:"rounded-xl border border-stone-200 bg-stone-50 px-4 py-4 leading-7 text-stone-700",children:n},n))})]})})}),d.jsx("section",{className:"w-full pt-6 pb-16 md:pt-8 md:pb-24",children:d.jsx("div",{className:"mx-auto max-w-[1326px] px-5 md:px-10",children:d.jsxs("div",{className:"rounded-2xl bg-stone-900 p-8 text-white md:p-12",children:[d.jsx("h2",{className:"text-[36px] leading-[1.1] tracking-[-1.1px] md:text-[52px]",children:"One connected hiring intelligence system"}),d.jsx("ul",{className:"mt-6 space-y-2 text-lg leading-8 text-stone-200",children:uM.map(n=>d.jsx("li",{children:n},n))}),d.jsx("p",{className:"mt-5 max-w-[780px] leading-8 text-stone-300",children:"Confeti creates a feedback loop from role definition to outcomes so each hiring cycle improves the next one."}),d.jsx("a",{href:"https://app.confeti.co/",className:"mt-7 inline-flex items-center justify-center rounded-xl bg-white px-5 py-3 text-sm font-medium text-stone-900 transition-colors hover:bg-stone-100",children:"Get a demo"})]})})})]}),d.jsx(Ci,{})]})},Wi={free:{name:"Free",conversationsPerWeek:5,tagline:"Try Confeti on real hiring conversations.",definition:"Basic conversation recording and transcription with a weekly limit. Enough to experience Confeti capture — not a full recruiting workflow.",includes:["Conversation recording","Transcription","Up to 5 conversations per week","Basic interview summary"]},core:{name:"Confeti Core",pricePerRecruiterMonth:49,tagline:"Everything for the conversation and the candidate.",definition:"Conversation- and candidate-level hiring intelligence. Includes interview capture, transcription, summaries, candidate-level context and workflows. Hiring managers and interviewers can participate and capture interviews for free.",includes:["Unlimited interview and recruiting-conversation capture","Transcription and interview summaries","Recruiter notes and candidate briefs","Candidate-level Ask Confeti","Evidence-backed candidate insights","Candidate-specific scorecards","Interview preparation","Hiring managers and interviewers included free"]},connected:{name:"Confeti Connected",pricePerAtsMonth:99,optionLabel:"Bring your own ATS",tagline:"Keep your ATS. Give every Confeti conversation hiring-process context.",definition:"Connects Confeti with your existing ATS so conversations, candidates, roles, stages and hiring outcomes share the same context. Charged per ATS integration, not per user.",includes:["ATS integration","Candidate and role synchronization","Hiring-stage context and ATS outcomes","Conversations linked to the right candidates and roles","ATS context across Confeti workflows"]},intelligence:{name:"Confeti Intelligence",fromPriceMonth:149,recommendedLabel:"Recommended",tagline:"What is happening across hiring, why it is happening, and what you should do.",definition:"Adds persistent role and company memory, hiring ontology, cross-role and within-role analytics, candidate comparison, calibration, process intelligence, advanced analytics and organization-level Ask Confeti.",tiers:[{maxEmployees:249,priceMonth:149,label:"Under 250 employees"},{maxEmployees:999,priceMonth:199,label:"250–999 employees"},{maxEmployees:1/0,priceMonth:249,label:"1,000+ employees"}],pillars:[{name:"Role intelligence",items:["Persistent role memory and requirement evolution","Requirement drift between intake and later interviews","What the hiring team is actually optimizing for"]},{name:"Candidate intelligence across the role",items:["Job-level candidate comparison and heatmaps","Evidence patterns across the candidate pool","Strong-candidate characteristics and repeated weaknesses"]},{name:"Process intelligence",items:["Stage conversion, bottlenecks, and feedback latency","Candidate drop-off patterns and repeated blockers","Hiring-process drift and inconsistencies"]},{name:"Interview & calibration",items:["Competency coverage and question effectiveness","Redundant or skipped evaluation","Interviewer and hiring-manager calibration"]}
77,{name:"Company memory & ontology",items:["Persistent hiring knowledge across roles","Lessons from previous searches","Structured hiring ontology connecting evidence, requirements, and outcomes"]},{name:"Organization Ask Confeti",items:["Interrogate hiring operations conversationally","Evidence-backed answers for Heads of Talent and recruiting leaders"]}],exampleQuestions:["Why is our backend role stuck?","What changed in what the hiring manager is looking for?","Where are we losing the strongest candidates?","Which interviewers are out of calibration?","What are candidates repeatedly objecting to?","Which questions actually differentiate the candidates we hire?"]},ats:{name:"Confeti ATS",optionLabel:"Run hiring on Confeti",tagline:"Make Confeti your hiring system of record — not just the layer on top.",publicPriceLabel:"Headcount-based pricing",cta:"Talk to sales",definition:"Optional expansion that makes Confeti the hiring system of record. Pricing scales with company headcount — contact sales for a quote."},story:{path:"Capture → Connect → Intelligence → ATS",narrative:"Start with every hiring conversation. Connect it to the hiring process. Turn it into organizational intelligence. Eventually run hiring itself on Confeti."}};function hM(e){const t=Wi.intelligence.tiers.find(n=>e<=n.maxEmployees)??Wi.intelligence.tiers[Wi.intelligence.tiers.length-1];return{priceMonth:t.priceMonth,label:t.label}}function pM(e){const t=Math.max(0,Math.floor(e.recruiters)||0),n=Math.max(1,Math.floor(e.employees)||1),i=t*Wi.core.pricePerRecruiterMonth,s=0,r=hM(n),o=(r==null?void 0:r.priceMonth)??0,c=i+s+o;return{core:i,connected:s,intelligence:o,monthly:c,annual:c*12,intelligenceTierLabel:(r==null?void 0:r.label)??null}}function fh(e,t){return t==="year"?e*12:e}function fM(e){return e==="year"?"/ year":"/ month"}function rc(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(e)}function TC(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=TC(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function EC(){for(var e,t,n=0,i="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=TC(e))&&(i&&(i+=" "),i+=t);return i}const mM=(e,t)=>{const n=new Array(e.length+t.length);for(let i=0;i<e.length;i++)n[i]=e[i];for(let i=0;i<t.length;i++)n[e.length+i]=t[i];return n},gM=(e,t)=>({classGroupId:e,validator:t}),AC=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Yh="-",Rk=[],xM="arbitrary..",vM=e=>{const t=bM(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return yM(o);const c=o.split(Yh),u=c[0]===""&&c.length>1?1:0;return PC(c,u,t)},getConflictingClassGroupIds:(o,c)=>{if(c){const u=i[o],h=n[o];return u?h?mM(h,u):u:h||Rk}return n[o]||Rk}}},PC=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],r=n.nextPart.get(s);if(r){const h=PC(e,t+1,r);if(h)return h}const o=n.validators;if(o===null)return;const c=t===0?e.join(Yh):e.slice(t).join(Yh),u=o.length;for(let h=0;h<u;h++){const f=o[h];if(f.validator(c))return f.classGroupId}},yM=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),i=t.slice(0,n);return i?xM+i:void 0})(),bM=e=>{const{theme:t,classGroups:n}=e;return wM(n,t)},wM=(e,t)=>{const n=AC();for(const i in e){const s=e[i];Gv(s,n,i,t)}return n},Gv=(e,t,n,i)=>{const s=e.length;for(let r=0;r<s;r++){const o=e[r];_M(o,t,n,i)}},_M=(e,t,n,i)=>{if(typeof e=="string"){kM(e,t,n);return}if(typeof e=="function"){SM(e,t,n,i);return}jM(e,t,n,i)},kM=(e,t,n)=>{const i=e===""?t:IC(t,e);i.classGroupId=n},SM=(e,t,n,i)=>{if(CM(e)){Gv(e(i),t,n,i);return}t.validators===null&&(t.validators=[]),t.validators.push(gM(n,e))},jM=(e,t,n,i)=>{const s=Object.entries(e),r=s.length;for(let o=0;o<r;o++){const[c,u]=s[o];Gv(u,IC(t,c),n,i)}},IC=(e,t)=>{let n=e;const i=t.split(Yh),s=i.length;for(let r=0;r<s;r++){const o=i[r];let c=n.nextPart.get(o);c||(c=AC(),n.nextPart.set(o,c)),n=c}return n},CM=e=>
vendor: 4,381 bytes, line 77
77"isThemeGetter"in e&&e.isThemeGetter===!0,NM=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),i=Object.create(null);const s=(r,o)=>{n[r]=o,t++,t>e&&(t=0,i=n,n=Object.create(null))};return{get(r){let o=n[r];if(o!==void 0)return o;if((o=i[r])!==void 0)return s(r,o),o},set(r,o){r in n?n[r]=o:s(r,o)}}},Mx="!",Mk=":",TM=[],Ok=(e,t,n,i,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:i,isExternal:s}),EM=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=s=>{const r=[];let o=0,c=0,u=0,h;const f=s.length;for(let k=0;k<f;k++){const w=s[k];if(o===0&&c===0){if(w===Mk){r.push(s.slice(u,k)),u=k+1;continue}if(w==="/"){h=k;continue}}w==="["?o++:w==="]"?o--:w==="("?c++:w===")"&&c--}const m=r.length===0?s:s.slice(u);let x=m,y=!1;m.endsWith(Mx)?(x=m.slice(0,-1),y=!0):m.startsWith(Mx)&&(x=m.slice(1),y=!0);const b=h&&h>u?h-u:void 0;return Ok(r,y,x,b)};if(t){const s=t+Mk,r=i;i=o=>o.startsWith(s)?r(o.slice(s.length)):Ok(TM,!1,o,void 0,!0)}if(n){const s=i;i=r=>n({className:r,parseClassName:s})}return i},AM=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,i)=>{t.set(n,1e6+i)}),n=>{const i=[];let s=[];for(let r=0;r<n.length;r++){const o=n[r],c=o[0]==="[",u=t.has(o);c||u?(s.length>0&&(s.sort(),i.push(...s),s=[]),i.push(o)):s.push(o)}return s.length>0&&(s.sort(),i.push(...s)),i}},PM=e=>({cache:NM(e.cacheSize),parseClassName:EM(e),sortModifiers:AM(e),postfixLookupClassGroupIds:IM(e),...vM(e)}),IM=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let i=0;i<n.length;i++)t[n[i]]=!0;return t},RM=/\s+/,MM=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:r,postfixLookupClassGroupIds:o}=t,c=[],u=e.trim().split(RM);let h="";for(let f=u.length-1;f>=0;f-=1){const m=u[f],{isExternal:x,modifiers:y,hasImportantModifier:b,baseClassName:k,maybePostfixModifierPosition:w}=n(m);if(x){h=m+(h.length>0?" "+h:h);continue}let S=!!w,j;if(S){const M=k.substring(0,w);j=i(M);const A=j&&o[j]?i(k):void 0;A&&A!==j&&(j=A,S=!1)}else j=i(k);if(!j){if(!S){h=m+(h.length>0?" "+h:h);continue}if(j=i(k),!j){h=m+(h.length>0?" "+h:h);continue}S=!1}const N=y.length===0?"":y.length===1?y[0]:r(y).join(":"),E=b?N+Mx:N,T=E+j;if(c.indexOf(T)>-1)continue;c.push(T);const L=s(j,S);for(let M=0;M<L.length;++M){const A=L[M];c.push(E+A)}h=m+(h.length>0?" "+h:h)}return h},OM=(...e)=>{let t=0,n,i,s="";for(;t<e.length;)(n=e[t++])&&(i=RC(n))&&(s&&(s+=" "),s+=i);return s},RC=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=RC(e[i]))&&(n&&(n+=" "),n+=t);return n},LM=(e,...t)=>{let n,i,s,r;const o=u=>{const h=t.reduce((f,m)=>m(f),e());return n=PM(h),i=n.cache.get,s=n.cache.set,r=c,c(u)},c=u=>{const h=i(u);if(h)return h;const f=MM(u,n);return s(u,f),f};return r=o,(...u)=>r(OM(...u))},DM=[],Wt=e=>{const t=n=>n[e]||DM;return t.isThemeGetter=!0,t},MC=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,OC=/^\((?:(\w[\w-]*):)?(.+)\)$/i,FM=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,$M=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,BM=/\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$/,zM=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,VM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,HM=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Js=e=>FM.test(e),qe=e=>!!e&&!Number.isNaN(Number(e)),Oi=e=>!!e&&Number.isInteger(Number(e)),bg=e=>e.endsWith("%")&&qe(e.slice(0,-1)),us=e=>$M.test(e),LC=()=>!0,WM=e=>BM.test(e)&&!zM.test(e),Yv=()=>!1,qM=e=>VM.test(e),UM=e=>HM.test(e),GM=e=>!ve(e)&&!be(e),YM=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),KM=e=>Tr(e,$C,Yv),ve=e=>MC.test(e),ea=e=>Tr(e,BC,WM),Lk=e=>Tr(e,i8,qe),QM=e=>Tr(e,VC,LC),XM=e=>Tr(e,zC,Yv),Dk=e=>Tr(e,DC,Yv),ZM=e=>Tr(e,FC,UM),Du=e=>Tr(e,HC,qM),be=e=>OC.test(e),Ul=e=>Na(e,BC),JM=e=>Na(e,zC),Fk=e=>Na(e,DC),e8=e=>Na(e,$C),t8=e=>Na(e,FC),Fu=e=>Na(e,HC,!0),n8=e=>Na(e,VC,!0),Tr=(e,t,n)=>{const i=MC.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},Na=(e,t,n=!1)=>{const i=OC.exec(e);return i?i[1]?t(i[1]):n:!1},DC=e=>e==="position"||e==="percentage",FC=e=>e==="image"||e==="url",$C=e=>e==="length"||e==="size"||e==="bg-size",BC=e=>e==="length",i8=e=>e==="number",zC=e=>
vendor: 8,823 bytes, line 77
77e==="family-name",VC=e=>e==="number"||e==="weight",HC=e=>e==="shadow",s8=()=>{const e=Wt("color"),t=Wt("font"),n=Wt("text"),i=Wt("font-weight"),s=Wt("tracking"),r=Wt("leading"),o=Wt("breakpoint"),c=Wt("container"),u=Wt("spacing"),h=Wt("radius"),f=Wt("shadow"),m=Wt("inset-shadow"),x=Wt("text-shadow"),y=Wt("drop-shadow"),b=Wt("blur"),k=Wt("perspective"),w=Wt("aspect"),S=Wt("ease"),j=Wt("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...E(),be,ve],L=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],A=()=>[be,ve,u],O=()=>[Js,"full","auto",...A()],G=()=>[Oi,"none","subgrid",be,ve],X=()=>["auto",{span:["full",Oi,be,ve]},Oi,be,ve],ee=()=>[Oi,"auto",be,ve],le=()=>["auto","min","max","fr",be,ve],re=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ne=()=>["start","end","center","stretch","center-safe","end-safe"],Z=()=>["auto",...A()],ce=()=>[Js,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],W=()=>[Js,"screen","full","dvw","lvw","svw","min","max","fit",...A()],J=()=>[Js,"screen","full","lh","dvh","lvh","svh","min","max","fit",...A()],H=()=>[e,be,ve],F=()=>[...E(),Fk,Dk,{position:[be,ve]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],xe=()=>["auto","cover","contain",e8,KM,{size:[be,ve]}],ge=()=>[bg,Ul,ea],te=()=>["","none","full",h,be,ve],he=()=>["",qe,Ul,ea],He=()=>["solid","dashed","dotted","double"],Ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Pe=()=>[qe,bg,Fk,Dk],pt=()=>["","none",b,be,ve],oi=()=>["none",qe,be,ve],cn=()=>["none",qe,be,ve],Ni=()=>[qe,be,ve],Ti=()=>[Js,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[us],breakpoint:[us],color:[LC],container:[us],"drop-shadow":[us],ease:["in","out","in-out"],font:[GM],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[us],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[us],shadow:[us],spacing:["px",qe],text:[us],"text-shadow":[us],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Js,ve,be,w]}],container:["container"],"container-type":[{"@container":["","normal","size",be,ve]}],"container-named":[YM],columns:[{columns:[qe,ve,be,c]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"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:T()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{"inset-s":O(),start:O()}],end:[{"inset-e":O(),end:O()}],"inset-bs":[{"inset-bs":O()}],"inset-be":[{"inset-be":O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[Oi,"auto",be,ve]}],basis:[{basis:[Js,"full","auto",c,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[qe,Js,"auto","initial","none",ve]}],grow:[{grow:["",qe,be,ve]}],shrink:[{shrink:["",qe,be,ve]}],order:[{order:[Oi,"first","last","none",be,ve]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...re(),"normal"]}],"justify-items":[{"justify-items":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...re()]}],"align-items":[{items:[...ne(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ne(),{baseline:["","last"]}]}],"place-content":[{"place-content":re()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pbs:[{pbs:A()}],pbe:[{pbe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:Z()}],mx:[{mx:Z()}],my:[{my:Z()}],ms:[{ms:Z()}],me:[{me:Z()}],mbs:[{mbs:Z()}],mbe:[{mbe:Z()}],mt:[{mt:Z()}],mr:[{mr:Z()}],mb:[{mb:Z()}],ml:[{ml:Z()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:ce()}],"inline-size":[{inline:["auto",...W()]}],"min-inline-size":[{"min-inline":["auto",...W()]}],"max-inline-size":[{"max-inline":["none",...W()]}],"block-size":[{block:["auto",...J()]}],"min-block-size":[{"min-block":["auto",...J()]}],"max-block-size":[{"max-block":["none",...J()]}],w:[{w:[c,"screen",...ce()]}],"min-w":[{"min-w":[c,"screen","none",...ce()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[o]},...ce()]}],h:[{h:["screen","lh",...ce()]}],"min-h":[{"min-h":["screen","lh","none",...ce()]}],"max-h":[{"max-h":["screen","lh",...ce()]}],"font-size":[{text:["base",n,Ul,ea]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,n8,QM]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",bg,ve]}],"font-family":[{font:[JM,XM,t]}],"font-features":[{"font-features":[ve]}],"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:[s,be,ve]}],"line-clamp":[{"line-clamp":[qe,"none",be,Lk]}],leading:[{leading:[r,...A()]}],"list-image":[{"list-image":["none",be,ve]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",be,ve]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:H()}],"text-color":[{text:H()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...He(),"wavy"]}],"text-decoration-thickness":[{decoration:[qe,"from-font","auto",be,ea]}],"text-decoration-color":[{decoration:H()}],"underline-offset":[{"underline-offset":[qe,"auto",be,ve]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"tab-size":[{tab:[Oi,be,ve]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be,ve]}],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",be,ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:Y()}],"bg-size":[{bg:xe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Oi,be,ve],radial:["",be,ve],conic:[Oi,be,ve]},t8,ZM]}],"bg-color":[{bg:H()}],"gradient-from-pos":[{from:ge()}
vendor: 7,428 bytes, line 77
77],"gradient-via-pos":[{via:ge()}],"gradient-to-pos":[{to:ge()}],"gradient-from":[{from:H()}],"gradient-via":[{via:H()}],"gradient-to":[{to:H()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:he()}],"border-w-x":[{"border-x":he()}],"border-w-y":[{"border-y":he()}],"border-w-s":[{"border-s":he()}],"border-w-e":[{"border-e":he()}],"border-w-bs":[{"border-bs":he()}],"border-w-be":[{"border-be":he()}],"border-w-t":[{"border-t":he()}],"border-w-r":[{"border-r":he()}],"border-w-b":[{"border-b":he()}],"border-w-l":[{"border-l":he()}],"divide-x":[{"divide-x":he()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":he()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...He(),"hidden","none"]}],"divide-style":[{divide:[...He(),"hidden","none"]}],"border-color":[{border:H()}],"border-color-x":[{"border-x":H()}],"border-color-y":[{"border-y":H()}],"border-color-s":[{"border-s":H()}],"border-color-e":[{"border-e":H()}],"border-color-bs":[{"border-bs":H()}],"border-color-be":[{"border-be":H()}],"border-color-t":[{"border-t":H()}],"border-color-r":[{"border-r":H()}],"border-color-b":[{"border-b":H()}],"border-color-l":[{"border-l":H()}],"divide-color":[{divide:H()}],"outline-style":[{outline:[...He(),"none","hidden"]}],"outline-offset":[{"outline-offset":[qe,be,ve]}],"outline-w":[{outline:["",qe,Ul,ea]}],"outline-color":[{outline:H()}],shadow:[{shadow:["","none",f,Fu,Du]}],"shadow-color":[{shadow:H()}],"inset-shadow":[{"inset-shadow":["none",m,Fu,Du]}],"inset-shadow-color":[{"inset-shadow":H()}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:H()}],"ring-offset-w":[{"ring-offset":[qe,ea]}],"ring-offset-color":[{"ring-offset":H()}],"inset-ring-w":[{"inset-ring":he()}],"inset-ring-color":[{"inset-ring":H()}],"text-shadow":[{"text-shadow":["none",x,Fu,Du]}],"text-shadow-color":[{"text-shadow":H()}],opacity:[{opacity:[qe,be,ve]}],"mix-blend":[{"mix-blend":[...Ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ee()}],"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":[qe]}],"mask-image-linear-from-pos":[{"mask-linear-from":Pe()}],"mask-image-linear-to-pos":[{"mask-linear-to":Pe()}],"mask-image-linear-from-color":[{"mask-linear-from":H()}],"mask-image-linear-to-color":[{"mask-linear-to":H()}],"mask-image-t-from-pos":[{"mask-t-from":Pe()}],"mask-image-t-to-pos":[{"mask-t-to":Pe()}],"mask-image-t-from-color":[{"mask-t-from":H()}],"mask-image-t-to-color":[{"mask-t-to":H()}],"mask-image-r-from-pos":[{"mask-r-from":Pe()}],"mask-image-r-to-pos":[{"mask-r-to":Pe()}],"mask-image-r-from-color":[{"mask-r-from":H()}],"mask-image-r-to-color":[{"mask-r-to":H()}],"mask-image-b-from-pos":[{"mask-b-from":Pe()}],"mask-image-b-to-pos":[{"mask-b-to":Pe()}],"mask-image-b-from-color":[{"mask-b-from":H()}],"mask-image-b-to-color":[{"mask-b-to":H()}],"mask-image-l-from-pos":[{"mask-l-from":Pe()}],"mask-image-l-to-pos":[{"mask-l-to":Pe()}],"mask-image-l-from-color":[{"mask-l-from":H()}],"mask-image-l-to-color":[{"mask-l-to":H()}],"mask-image-x-from-pos":[{"mask-x-from":Pe()}],"mask-image-x-to-pos":[{"mask-x-to":Pe()}],"mask-image-x-from-color":[{"mask-x-from":H()}],"mask-image-x-to-color":[{"mask-x-to":H()}],"mask-image-y-from-pos":[{"mask-y-from":Pe()}],"mask-image-y-to-pos":[{"mask-y-to":Pe()}],"mask-image-y-from-color":[{"mask-y-from":H()}],"mask-image-y-to-color":[{"mask-y-to":H()}],"mask-image-radial":[{"mask-radial":[be,ve]}],"mask-image-radial-from-pos":[{"mask-radial-from":Pe()}],"mask-image-radial-to-pos":[{"mask-radial-to":Pe()}],"mask-image-radial-from-color":[{"mask-radial-from":H()}],"mask-image-radial-to-color":[{"mask-radial-to":H()}],"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":E()}],"mask-image-conic-pos":[{"mask-conic":[qe]}],"mask-image-conic-from-pos":[{"mask-conic-from":Pe()}],"mask-image-conic-to-pos":[{"mask-conic-to":Pe()}],"mask-image-conic-from-color":[{"mask-conic-from":H()}],"mask-image-conic-to-color":[{"mask-conic-to":H()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:F()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:xe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",be,ve]}],filter:[{filter:["","none",be,ve]}],blur:[{blur:pt()}],brightness:[{brightness:[qe,be,ve]}],contrast:[{contrast:[qe,be,ve]}],"drop-shadow":[{"drop-shadow":["","none",y,Fu,Du]}],"drop-shadow-color":[{"drop-shadow":H()}],grayscale:[{grayscale:["",qe,be,ve]}],"hue-rotate":[{"hue-rotate":[qe,be,ve]}],invert:[{invert:["",qe,be,ve]}],saturate:[{saturate:[qe,be,ve]}],sepia:[{sepia:["",qe,be,ve]}],"backdrop-filter":[{"backdrop-filter":["","none",be,ve]}],"backdrop-blur":[{"backdrop-blur":pt()}],"backdrop-brightness":[{"backdrop-brightness":[qe,be,ve]}],"backdrop-contrast":[{"backdrop-contrast":[qe,be,ve]}],"backdrop-grayscale":[{"backdrop-grayscale":["",qe,be,ve]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[qe,be,ve]}],"backdrop-invert":[{"backdrop-invert":["",qe,be,ve]}],"backdrop-opacity":[{"backdrop-opacity":[qe,be,ve]}],"backdrop-saturate":[{"backdrop-saturate":[qe,be,ve]}],"backdrop-sepia":[{"backdrop-sepia":["",qe,be,ve]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",be,ve]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[qe,"initial",be,ve]}],ease:[{ease:["linear","initial",S,be,ve]}],delay:[{delay:[qe,be,ve]}],animate:[{animate:["none",j,be,ve]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,be,ve]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:oi()}],"rotate-x":[{"rotate-x":oi()}],"rotate-y":[{"rotate-y":oi()}],"rotate-z":[{"rotate-z":oi()}],scale:[{scale:cn()}],"scale-x":[{"scale-x":cn()}],"scale-y":[{"scale-y":cn()}],"scale-z":[{"scale-z":cn()}],"scale-3d":["scale-3d"],skew:[{skew:Ni()}],"skew-x":[{"skew-x":Ni()}],"skew-y":[{"skew-y":Ni()}],transform:[{transform:[be,ve,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ti()}],"translate-x":[{"translate-x":Ti()}],"translate-y":[{"translate-y":Ti()}],"translate-z":[{"translate-z":Ti()}],"translate-none":["translate-none"],zoom:[{zoom:[Oi,be,ve]}],accent:[{accent:H()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:H()}
77],"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",be,ve]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":H()}],"scrollbar-track-color":[{"scrollbar-track":H()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mbs":[{"scroll-mbs":A()}],"scroll-mbe":[{"scroll-mbe":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pbs":[{"scroll-pbs":A()}],"scroll-pbe":[{"scroll-pbe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",be,ve]}],fill:[{fill:["none",...H()]}],"stroke-w":[{stroke:[qe,Ul,ea,Lk]}],stroke:[{stroke:["none",...H()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},r8=LM(s8);function Re(...e){return r8(EC(e))}function a8({period:e,onChange:t}){return d.jsx("div",{className:"inline-flex rounded-full border border-stone-200 bg-stone-100/80 p-0.5",role:"group","aria-label":"Billing period",children:[{id:"month",label:"Monthly"},{id:"year",label:"Yearly"}].map(n=>d.jsx("button",{type:"button","aria-pressed":e===n.id,onClick:()=>{t(n.id),me==null||me.capture("pricing_billing_period_selected",{billing_period:n.id})},className:Re("rounded-full px-3.5 py-1.5 text-sm font-medium transition-colors",e===n.id?"bg-white text-stone-900 shadow-sm":"text-stone-500 hover:text-stone-700"),children:n.label},n.id))})}function o8({period:e,recruiters:t,onRecruitersChange:n}){const[i,s]=P.useState(!1),r=pM({recruiters:t,employees:120}),o=fh(r.monthly,e);return d.jsxs("div",{className:"border-t border-stone-200/80 pt-5",children:[d.jsxs("button",{type:"button","aria-expanded":i,onClick:()=>{const c=!i;s(c),me==null||me.capture("pricing_estimate_toggled",{is_open:c})},className:"group flex w-full items-center justify-between gap-3 text-left",children:[d.jsx("span",{className:"text-sm text-stone-500 transition-colors group-hover:text-stone-800",children:"Estimate for your recruiting team"}),d.jsx("span",{className:"text-sm tabular-nums text-stone-400","aria-hidden":!0,
77children:i?"−":"+"})]}),i?d.jsxs("div",{className:"mt-4 flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between",children:[d.jsxs("label",{className:"block",children:[d.jsx("span",{className:"text-xs font-medium uppercase tracking-[0.1em] text-stone-400",children:"Recruiters"}),d.jsxs("div",{className:"mt-2 inline-flex items-center gap-0 border-b border-stone-300",children:[d.jsx("button",{type:"button","aria-label":"Fewer recruiters",onClick:()=>n(Math.max(1,t-1)),className:"px-2 py-1 text-lg leading-none text-stone-500 hover:text-stone-800",children:"−"}),d.jsx("input",{type:"number",inputMode:"numeric",min:1,max:200,value:t,onChange:c=>{const u=Number(c.target.value);Number.isNaN(u)||n(Math.min(200,Math.max(1,u)))},className:"w-12 border-0 bg-transparent p-0 text-center text-lg font-medium tabular-nums text-stone-900 outline-none"}),d.jsx("button",{type:"button","aria-label":"More recruiters",onClick:()=>n(Math.min(200,t+1)),className:"px-2 py-1 text-lg leading-none text-stone-500 hover:text-stone-800",children:"+"})]}),d.jsx("span",{className:"mt-2 block text-xs text-stone-400",children:"Hiring managers & interviewers stay free"})]}),d.jsxs("p",{className:"text-sm text-stone-600 sm:text-right",children:["Core + Intelligence"," ",d.jsx("span",{className:"font-medium tabular-nums text-stone-900",children:rc(o)}),d.jsxs("span",{className:"text-stone-400",children:[" ",fM(e)]})]})]}):null]})}function l8(){const e=[{name:"Free",body:Wi.free.definition},{name:"Core",body:Wi.core.definition},{name:"Connected",body:Wi.connected.definition},{name:"Intelligence",body:Wi.intelligence.definition},{name:"ATS",body:Wi.ats.definition}];return d.jsx("div",{className:"mt-10 grid gap-4 border-t border-stone-200/80 pt-8 md:grid-cols-2",children:e.map(t=>d.jsxs("details",{className:"group",children:[d.jsxs("summary",{className:"cursor-pointer list-none text-sm font-medium text-stone-700 marker:content-none [&::-webkit-details-marker]:hidden",children:[d.jsx("span",{className:"underline decoration-stone-300 underline-offset-4 group-open:text-stone-900",children:t.name}),d.jsx("span",{className:"text-stone-400",children:" *"})]}),d.jsx("p",{className:"mt-2 text-sm leading-6 text-stone-500",children:t.body})]},t.name))})}const c8=()=>{const{free:e,core:t,connected:n,intelligence:i,ats:s,story:r}=Wi,[o,c]=P.useState("month"),[u,h]=P.useState(3),f=fh(t.pricePerRecruiterMonth,o),m=fh(i.fromPriceMonth,o),x=fh(n.pricePerAtsMonth,o),y=o==="year"?"/ recruiter / year":"/ recruiter / month",b=o==="year"?"/ company / year":"/ company / month",k=o==="year"?"/ ATS / year":"/ ATS / month";return d.jsxs("div",{className:"min-h-full bg-[#faf8f6] font-geist text-stone-800 tracking-[-0.32px]",children:[d.jsx(si,{}),d.jsxs("main",{className:"w-full",children:[d.jsx("section",{className:"w-full pt-12 pb-8 md:pt-16 md:pb-10",children:d.jsxs("div",{className:"mx-auto max-w-[980px] px-5 text-center md:px-10",children:[d.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-[#C97B3A]",children:r.path}),d.jsx("h1",{className:"mt-4 text-[40px] font-medium leading-[0.98] tracking-[-1.4px] md:text-[68px] md:tracking-[-2.4px]",children:"Start capturing. Grow into hiring intelligence."}),d.jsx("p",{className:"mx-auto mt-5 max-w-[640px] text-base leading-7 text-stone-600 md:text-[18px] md:leading-8",children:r.narrative}),d.jsx("div",{className:"mt-8 flex justify-center",children:d.jsx(a8,{period:o,onChange:c})})]})}),d.jsx("section",{className:"w-full pb-10 md:pb-14",children:d.jsxs("div",{className:"mx-auto max-w-[1120px] px-5 md:px-10",children:[d.jsxs("div",{className:"grid gap-4 lg:grid-cols-3 lg:items-stretch lg:gap-5",children:[d.jsxs("article",{className:"flex h-full flex-col rounded-[24px] border border-stone-200 bg-white p-6 md:p-7",children:[d.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-stone-400",children:"Starter"}),d.jsx("h2",{className:"mt-2 text-[24px] font-medium tracking-[-0.5px] text-stone-900",children:e.name}),d.jsx("p",{className:"mt-5 text-[36px] font-medium leading-none tracking-[-1.2px] text-stone-900",children:rc(0)}),d.jsxs("p",{className:"mt-2 text-sm text-stone-500",children:[e.conversationsPerWeek," conversations / week"]}),d.jsx("p",{className:"mt-4 text-sm leading-6 text-stone-600",children:e.tagline}),d.jsx("ul",{className:"mt-5 flex-1 space-y-2 text-sm leading-6 text-stone-700",children:e.includes.map(w=>d.jsxs("li",{children:["• ",w]},w))}),d.jsx("a",{href:"https://app.confeti.co/",className:"mt-7 inline-flex items-center justify-center rounded-[9px] border border-stone-300 px-4 py-2.5 text-sm font-medium text-stone-800 transition-colors hover:bg-stone-50",children:"Try Free"})]}),d.jsxs("article",{className:"flex h-full flex-col rounded-[24px] border border-stone-200 bg-white p-6 shadow-[0_12px_32px_rgba(15,23,42,0.04)] md:p-7",children:[d.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-stone-400",children:"Paid start"}),d.jsx("h2",{className:"mt-2 text-[24px] font-medium tracking-[-0.5px] text-stone-900",children:t.name}),d.jsx("p",{className:"mt-5 text-[36px] font-medium leading-none tracking-[-1.2px] text-stone-900",children:rc(f)}),d.jsx("p",{className:"mt-2 text-sm text-stone-500",children:y}),d.jsxs("div",{className:"mt-4 overflow-hidden rounded-xl border border-[#1d3a66]/15 bg-[linear-gradient(135deg,#f4f6fa_0%,#eef2f8_55%,#faf6f1_100%)] px-3.5 py-3.5",children:[d.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-[0.14em] text-[#C97B3A]",children:"Always free"}),d.jsx("p",{className:"mt-1 text-sm font-medium tracking-[-0.2px] text-[#1d3a66]",children:"Hiring team included"}),d.jsx("p",{className:"mt-0.5 text-xs leading-5 text-stone-500",children:"Hiring managers and interviewers — unlimited seats, forever $0."})]}),d.jsx("p",{className:"mt-4 text-sm leading-6 text-stone-600",children:t.tagline}),d.jsx("ul",{className:"mt-5 flex-1 space-y-2 text-sm leading-6 text-stone-700",children:t.includes.filter(w=>!w.toLowerCase().includes("hiring managers")).slice(0,5).map(w=>d.jsxs("li",{className:"flex gap-2",children:[d.jsx("span",{className:"mt-[0.55em] h-1 w-1 shrink-0 rounded-full bg-stone-400"}),w]},w))}),d.jsx("a",{href:"https://app.confeti.co/",className:"mt-7 inline-flex items-center justify-center rounded-[9px] border border-zinc-800 bg-zinc-800 bg-[linear-gradient(rgba(204,204,204,0),rgba(255,255,255,0.1))] px-4 py-2.5 text-sm font-medium text-white transition-colors hover:bg-zinc-700",children:"Start with Core"})]}),d.jsxs("article",{className:"relative flex h-full flex-col overflow-hidden rounded-[24px] bg-[#1d3a66] p-6 text-[#fafaf7] shadow-[0_24px_60px_rgba(29,58,102,0.28),0_4px_14px_rgba(15,23,42,0.08)] md:p-7",children:[d.jsx("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(ellipse_at_top_right,rgba(201,123,58,0.16),transparent_42%),linear-gradient(180deg,rgba(255,255,255,0.07)_0%,transparent_28%)]","aria-hidden":!0}),d.jsxs("div",{className:"relative flex h-full flex-col",children:[d.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[d.jsx("span",{className:"rounded-full bg-white/10 px-2.5 py-0.5 text-[10px] font-semibold uppercase tracking-[0.14em] text-[#C97B3A]",children:i.recommendedLabel}),d.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-white/45",children:"Organization"})]}),d.jsx("h2",{className:"mt-3 text-[24px] font-medium tracking-[-0.5px] text-white",children:i.name}),d.jsxs("div",{className:"mt-5 flex items-baseline gap-2.5",children:[d.jsx("span",{className:"text-[15px] font-semibold uppercase tracking-[0.12em] text-[#C97B3A]",children:"From"}),d.jsx("p",{className:"text-[36px] font-medium leading-none tracking-[-1.2px] text-white",children:rc(m)})]}),d.jsx("p",{className:"mt-2 text-sm text-white/50",children:b}),d.jsx("p",{className:"mt-4 text-sm leading-6 text-white/70",children:i.tagline}),d.jsx("ul",{className:"mt-5 flex-1 space-y-2 text-sm leading-6 text-white/85",children:["Persistent role & company memory","Cross-role analytics & calibration","Process intelligence & bottlenecks","Organization-level Ask Confeti","Evidence-backed hiring decisions"].map(w=>d.jsxs("li",{className:"flex gap-2",children:[d.jsx("span",{className:"mt-[0.55em] h-1 w-1 shrink-0 rounded-full bg-[#C97B3A]"}),w]},w))}),d.jsx("a",{href:"https://app.confeti.co/",className:"mt-7 inline-flex items-center justify-center rounded-[9px] bg-white px-4 py-2.5 text-sm font-medium text-stone-900 transition-colors hover:bg-stone-100",children:"Add Intelligence"})]})]})]}),d.jsx("div",{className:"mt-6",children:d.jsx(o8,{period:o,recruiters:u,onRecruitersChange:h})}),d.jsxs("div",{className:"mt-10",children:[d.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-stone-400",children:"ATS options"}),d.jsx("h2",{className:"mt-2 text-[22px] font-medium tracking-[-0.5px] text-stone-900 md:text-[28px]",children:"Keep your ATS — or make Confeti the system of record."}),d.jsxs("div",{className:"mt-5 grid gap-4 md:grid-cols-2",children:[d.jsxs("article",{className:"rounded-[20px] border border-stone-200 bg-white p-6 md:p-7",children:[d.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-stone-400",children:n.optionLabel}),d.jsx("h3",{className:"mt-2 text-[20px] font-medium tracking-[-0.4px] text-stone-900",children:n.name}),d.jsxs("p",{className:"mt-4 text-[28px] font-medium leading-none tracking-[-0.8px] text-stone-900",children:["+",rc(x)]}),d.jsx("p",{className:"mt-2 text-sm text-stone-500",children:k}),d.jsx("p",{className:"mt-4 text-sm leading-6 text-stone-600",children:n.tagline}),d.jsx("ul",{className:"mt-5 space-y-2 text-sm leading-6 text-stone-700",children:n.includes.slice(0,4).map(w=>d.jsxs("li",{children:["• ",w]},w))}),d.jsx("p",{className:"mt-5 text-xs text-stone-400",children:"Company-level · not per recruiter"})]}),d.jsxs("article",{className:"rounded-[20px] border border-stone-200 bg-white p-6 md:p-7",children:[d.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-stone-400",children:s.optionLabel}),d.jsx("h3",{className:"mt-2 text-[20px] font-medium tracking-[-0.4px] text-stone-900",children:s.name}),d.jsx("p",{className:"mt-4 text-[28px] font-medium leading-none tracking-[-0.8px] text-stone-900",children:"Custom"}),d.jsx("p",{className:"mt-2 text-sm text-stone-500",children:s.publicPriceLabel}),d.jsx("p",{className:"mt-4 text-sm leading-6 text-stone-600",children:s.tagline}),d.jsx("p",{className:"mt-5 text-sm leading-6 text-stone-500",children:"For teams ready to run the full hiring process on Confeti — intake through offer — as the system of record."}),d.jsx("a",{href:"/contact",className:"mt-7 inline-flex items-center justify-center rounded-[9px] border border-zinc-800 bg-zinc-800 px-4 py-2.5 text-sm font-medium text-white transition-colors hover:bg-zinc-700",children:s.cta})]})]})]}),d.jsx(l8,{})]})}),d.jsx("section",{className:"w-full border-t border-stone-200/70 py-14 md:py-20",children:d.jsxs("div",{className:"mx-auto max-w-[980px] px-5 md:px-10",children:[d.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-[#C97B3A]",children:"Why Intelligence wins"}),d.jsx("h2",{className:"mt-3 max-w-[720px] text-[32px] font-medium leading-[1.08] tracking-[-1px] text-stone-900 md:text-[44px] md:tracking-[-1.4px]",children:"Leaders don’t buy Confeti for one interview. They buy it for the organization."}),d.jsx("p",{className:"mt-4 max-w-xl text-base leading-7 text-stone-600",children:"Persistent memory, process insight, and Ask Confeti across Talent — priced per company, not per seat."}),d.jsx("div",{className:"mt-10 divide-y divide-stone-200/80 border-y border-stone-200/80",children:i.pillars.map(w=>d.jsxs("div",{className:"grid gap-3 py-6 md:grid-cols-[200px_minmax(0,1fr)] md:gap-10",children:[d.jsx("h3",{className:"text-sm font-medium text-stone-900",children:w.name}),d.jsx("ul",{className:"space-y-2 text-sm leading-6 text-stone-600",children:w.items.map(S=>d.jsx("li",{children:S},S))})]},w.name))}),d.jsxs("div",{className:"mt-10",children:[d.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-stone-400",children:"Ask Confeti"}),d.jsx("ul",{className:"mt-4 space-y-0 border-t border-stone-200/80",children:i.exampleQuestions.map(w=>d.jsxs("li",{className:"flex items-baseline justify-between gap-4 border-b border-stone-200/80 py-3.5 text-[15px] text-stone-700",children:[d.jsx("span",{children:w}
vendor: 11,863 bytes, lines 77-197
77),d.jsx("span",{className:"text-stone-300","aria-hidden":!0,children:"→"})]},w))})]})]})})]}),d.jsx(Ci,{})]})};/**
78 * @license lucide-react v0.453.0 - ISC
79 *
80 * This source code is licensed under the ISC license.
81 * See the LICENSE file in the root directory of this source tree.
82 */const d8=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),WC=(...e)=>e.filter((t,n,i)=>!!t&&i.indexOf(t)===n).join(" ");/**
83 * @license lucide-react v0.453.0 - ISC
84 *
85 * This source code is licensed under the ISC license.
86 * See the LICENSE file in the root directory of this source tree.
87 */var u8={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"};/**
88 * @license lucide-react v0.453.0 - ISC
89 *
90 * This source code is licensed under the ISC license.
91 * See the LICENSE file in the root directory of this source tree.
92 */const h8=P.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:s="",children:r,iconNode:o,...c},u)=>P.createElement("svg",{ref:u,...u8,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:WC("lucide",s),...c},[...o.map(([h,f])=>P.createElement(h,f)),...Array.isArray(r)?r:[r]]));/**
93 * @license lucide-react v0.453.0 - ISC
94 *
95 * This source code is licensed under the ISC license.
96 * See the LICENSE file in the root directory of this source tree.
97 */const zt=(e,t)=>{const n=P.forwardRef(({className:i,...s},r)=>P.createElement(h8,{ref:r,iconNode:t,className:WC(`lucide-${d8(e)}`,i),...s}));return n.displayName=`${e}`,n};/**
98 * @license lucide-react v0.453.0 - ISC
99 *
100 * This source code is licensed under the ISC license.
101 * See the LICENSE file in the root directory of this source tree.
102 */const p8=zt("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
103 * @license lucide-react v0.453.0 - ISC
104 *
105 * This source code is licensed under the ISC license.
106 * See the LICENSE file in the root directory of this source tree.
107 */const dd=zt("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
108 * @license lucide-react v0.453.0 - ISC
109 *
110 * This source code is licensed under the ISC license.
111 * See the LICENSE file in the root directory of this source tree.
112 */const f8=zt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
113 * @license lucide-react v0.453.0 - ISC
114 *
115 * This source code is licensed under the ISC license.
116 * See the LICENSE file in the root directory of this source tree.
117 */const Kv=zt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
118 * @license lucide-react v0.453.0 - ISC
119 *
120 * This source code is licensed under the ISC license.
121 * See the LICENSE file in the root directory of this source tree.
122 */const m8=zt("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
123 * @license lucide-react v0.453.0 - ISC
124 *
125 * This source code is licensed under the ISC license.
126 * See the LICENSE file in the root directory of this source tree.
127 */const Ox=zt("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
128 * @license lucide-react v0.453.0 - ISC
129 *
130 * This source code is licensed under the ISC license.
131 * See the LICENSE file in the root directory of this source tree.
132 */const g8=zt("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
133 * @license lucide-react v0.453.0 - ISC
134 *
135 * This source code is licensed under the ISC license.
136 * See the LICENSE file in the root directory of this source tree.
137 */const x8=zt("CloudUpload",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]]);/**
138 * @license lucide-react v0.453.0 - ISC
139 *
140 * This source code is licensed under the ISC license.
141 * See the LICENSE file in the root directory of this source tree.
142 */const Lx=zt("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"}]]);/**
143 * @license lucide-react v0.453.0 - ISC
144 *
145 * This source code is licensed under the ISC license.
146 * See the LICENSE file in the root directory of this source tree.
147 */const v8=zt("FileCheck2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m3 15 2 2 4-4",key:"1lhrkk"}]]);/**
148 * @license lucide-react v0.453.0 - ISC
149 *
150 * This source code is licensed under the ISC license.
151 * See the LICENSE file in the root directory of this source tree.
152 */const y8=zt("FilePlus2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M3 15h6",key:"4e2qda"}],["path",{d:"M6 12v6",key:"1u72j0"}]]);/**
153 * @license lucide-react v0.453.0 - ISC
154 *
155 * This source code is licensed under the ISC license.
156 * See the LICENSE file in the root directory of this source tree.
157 */const b8=zt("FlaskConical",[["path",{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2",key:"pzvekw"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M7 16h10",key:"wp8him"}]]);/**
158 * @license lucide-react v0.453.0 - ISC
159 *
160 * This source code is licensed under the ISC license.
161 * See the LICENSE file in the root directory of this source tree.
162 */const xo=zt("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
163 * @license lucide-react v0.453.0 - ISC
164 *
165 * This source code is licensed under the ISC license.
166 * See the LICENSE file in the root directory of this source tree.
167 */const w8=zt("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
168 * @license lucide-react v0.453.0 - ISC
169 *
170 * This source code is licensed under the ISC license.
171 * See the LICENSE file in the root directory of this source tree.
172 */const _8=zt("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
173 * @license lucide-react v0.453.0 - ISC
174 *
175 * This source code is licensed under the ISC license.
176 * See the LICENSE file in the root directory of this source tree.
177 */const k8=zt("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
178 * @license lucide-react v0.453.0 - ISC
179 *
180 * This source code is licensed under the ISC license.
181 * See the LICENSE file in the root directory of this source tree.
182 */const S8=zt("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
183 * @license lucide-react v0.453.0 - ISC
184 *
185 * This source code is licensed under the ISC license.
186 * See the LICENSE file in the root directory of this source tree.
187 */const j8=zt("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"}]]);/**
188 * @license lucide-react v0.453.0 - ISC
189 *
190 * This source code is licensed under the ISC license.
191 * See the LICENSE file in the root directory of this source tree.
192 */const C8=zt("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
193 * @license lucide-react v0.453.0 - ISC
194 *
195 * This source code is licensed under the ISC license.
196 * See the LICENSE file in the root directory of this source tree.
197 */const qC=zt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),$k=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Bk=EC,N8=(e,t)=>n=>{var i;if((t==null?void 0:t.variants)==null)return Bk(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:r}=t,o=Object.keys(s).map(h=>{const f=n==null?void 0:n[h],m=r==null?void 0:r[h];if(f===null)return null;const x=$k(f)||$k(m);return s[h][x]}),c=n&&Object.entries(n).reduce((h,f)=>{let[m,x]=f;return x===void 0||(h[m]=x),h},{}),u=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((h,f)=>{let{class:m,className:x,...y}=f;return Object.entries(y).every(b=>{let[k,w]=b;return Array.isArray(w)?w.includes({...r,...c}[k]):{...r,...c}[k]===w})?[...h,m,x]:h},[]);return Bk(e,o,u,n==null?void 0:n.class,n==null?void 0:n.className)},T8=N8(["group relative inline-flex items-center justify-center gap-2","rounded-full font-semibold tracking-tight","transition-[background-color,box-shadow,color,border-color,opacity] duration-200 ease-out","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-purple/40 focus-visible:ring-offset-2 focus-visible:ring-offset-white","disabled:pointer-events-none disabled:opacity-60"].join(" "),{variants:{variant:{primary:"bg-brand-purple text-white shadow-[0_1px_2px_rgba(26,31,46,0.06),0_8px_20px_rgba(29,58,102,0.18)] hover:bg-[color:var(--color-primary-hover)] hover:shadow-[0_2px_4px_rgba(26,31,46,0.06),0_12px_28px_rgba(29,58,102,0.25)]",secondary:"bg-white text-text-primary shadow-[var(--shadow-card)] hover:shadow-[var(--shadow-card-hover)]",outline:"bg-transparent text-text-primary shadow-[var(--shadow-xs)] hover:bg-[color:var(--color-surface-muted)] hover:shadow-[var(--shadow-sm)]",ghost:"bg-transparent text-text-primary hover:bg-[color:var(--color-surface-muted)]",inverse:"bg-white text-brand-purple shadow-[0_1px_2px_rgba(15,23,42,0.10)] hover:bg-white/95",glow:"bg-brand-purple text-white shadow-[0_1px_2px_rgba(26,31,46,0.06),0_8px_20px_rgba(29,58,102,0.18)] hover:bg-[color:var(--color-primary-hover)] hover:shadow-[0_2px_4px_rgba(26,31,46,0.06),0_12px_28px_rgba(29,58,102,0.25)]"},size:{sm:"h-9 px-4 text-[13px]",md:"h-10 px-5 text-[13.5px]",lg:"h-11 px-6 text-[14px]",xl:"h-12 px-7 text-[15px]"}},defaultVariants:{variant:"primary",size:"md"}}),js=P.forwardRef(({className:e,variant:t,size:n,type:i,...s},r)=>d.jsx("button",{ref:r,type:i??"button",className:Re(T8({variant:t,size:n}),e),...s}));js.displayName="Button";const ac=P.forwardRef(({className:e,type:t,...n},i)=>d.jsx("input",{ref:i,type:t,className:Re("h-11 w-full rounded-2xl border border-black/10 bg-white/90 px-4 text-sm text-foreground shadow-[0_2px_8px_rgba(0,0,0,0.04)] outline-none placeholder:text-neutral-400 focus:border-black/30",e),...n}));ac.displayName="Input";const UC=P.forwardRef(({className:e,...t},n)=>d.jsx("textarea",{ref:n,className:Re("min-h-[140px] w-full resize-y rounded-3xl border border-black/10 bg-white/90 px-4 py-3 text-sm text-foreground shadow-[0_2px_8px_rgba(0,0,0,0.04)] outline-none placeholder:text-neutral-400 focus:border-black/30",e),...t}));UC.displayName="Textarea";var st;(function(e){e.assertEqual=s=>{};function t(s){}e.assertIs=t;function n(s){throw new Error}e.assertNever=n,e.arrayToEnum=s=>{const r={};for(const o of s)r[o]=o;return r},e.getValidEnumValues=s=>{const r=e.objectKeys(s).filter(c=>typeof s[s[c]]!="number"),o={};for(const c of r)o[c]=s[c];return e.objectValues(o)},e.objectValues=s=>e.objectKeys(s).map(function(r){return s[r]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const r=[];for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&r.push(o);return r},e.find=(s,r)=>{for(const o of s)if(r(o))return o}
vendor: 5,526 bytes, line 197
197,e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function i(s,r=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(r)}e.joinValues=i,e.jsonStringifyReplacer=(s,r)=>typeof r=="bigint"?r.toString():r})(st||(st={}));var zk;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(zk||(zk={}));const je=st.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ir=e=>{switch(typeof e){case"undefined":return je.undefined;case"string":return je.string;case"number":return Number.isNaN(e)?je.nan:je.number;case"boolean":return je.boolean;case"function":return je.function;case"bigint":return je.bigint;case"symbol":return je.symbol;case"object":return Array.isArray(e)?je.array:e===null?je.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?je.promise:typeof Map<"u"&&e instanceof Map?je.map:typeof Set<"u"&&e instanceof Set?je.set:typeof Date<"u"&&e instanceof Date?je.date:je.object;default:return je.unknown}},ue=st.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Cs extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(r){return r.message},i={_errors:[]},s=r=>{for(const o of r.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)i._errors.push(n(o));else{let c=i,u=0;for(;u<o.path.length;){const h=o.path[u];u===o.path.length-1?(c[h]=c[h]||{_errors:[]},c[h]._errors.push(n(o))):c[h]=c[h]||{_errors:[]},c=c[h],u++}}};return s(this),i}static assert(t){if(!(t instanceof Cs))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,st.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},i=[];for(const s of this.issues)if(s.path.length>0){const r=s.path[0];n[r]=n[r]||[],n[r].push(t(s))}else i.push(t(s));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}}Cs.create=e=>new Cs(e);const Dx=(e,t)=>{let n;switch(e.code){case ue.invalid_type:e.received===je.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ue.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,st.jsonStringifyReplacer)}`;break;case ue.unrecognized_keys:n=`Unrecognized key(s) in object: ${st.joinValues(e.keys,", ")}`;break;case ue.invalid_union:n="Invalid input";break;case ue.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${st.joinValues(e.options)}`;break;case ue.invalid_enum_value:n=`Invalid enum value. Expected ${st.joinValues(e.options)}, received '${e.received}'`;break;case ue.invalid_arguments:n="Invalid function arguments";break;case ue.invalid_return_type:n="Invalid function return type";break;case ue.invalid_date:n="Invalid date";break;case ue.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:st.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ue.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case ue.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case ue.custom:n="Invalid input";break;
vendor: 7,534 bytes, line 197
197case ue.invalid_intersection_types:n="Intersection results could not be merged";break;case ue.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ue.not_finite:n="Number must be finite";break;default:n=t.defaultError,st.assertNever(e)}return{message:n}};let E8=Dx;function A8(){return E8}const P8=e=>{const{data:t,path:n,errorMaps:i,issueData:s}=e,r=[...n,...s.path||[]],o={...s,path:r};if(s.message!==void 0)return{...s,path:r,message:s.message};let c="";const u=i.filter(h=>!!h).slice().reverse();for(const h of u)c=h(o,{data:t,defaultError:c}).message;return{...s,path:r,message:c}};function fe(e,t){const n=A8(),i=P8({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Dx?void 0:Dx].filter(s=>!!s)});e.common.issues.push(i)}class Wn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const i=[];for(const s of n){if(s.status==="aborted")return ze;s.status==="dirty"&&t.dirty(),i.push(s.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,n){const i=[];for(const s of n){const r=await s.key,o=await s.value;i.push({key:r,value:o})}return Wn.mergeObjectSync(t,i)}static mergeObjectSync(t,n){const i={};for(const s of n){const{key:r,value:o}=s;if(r.status==="aborted"||o.status==="aborted")return ze;r.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),r.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(i[r.value]=o.value)}return{status:t.value,value:i}}}const ze=Object.freeze({status:"aborted"}),oc=e=>({status:"dirty",value:e}),ri=e=>({status:"valid",value:e}),Vk=e=>e.status==="aborted",Hk=e=>e.status==="dirty",Ro=e=>e.status==="valid",Kh=e=>typeof Promise<"u"&&e instanceof Promise;var Ne;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Ne||(Ne={}));class br{constructor(t,n,i,s){this._cachedPath=[],this.parent=t,this.data=n,this._path=i,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Wk=(e,t)=>{if(Ro(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Cs(e.common.issues);return this._error=n,this._error}}};function Ye(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:i,description:s}=e;if(t&&(n||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(o,c)=>{const{message:u}=e;return o.code==="invalid_enum_value"?{message:u??c.defaultError}:typeof c.data>"u"?{message:u??i??c.defaultError}:o.code!=="invalid_type"?{message:c.defaultError}:{message:u??n??c.defaultError}},description:s}}class tt{get description(){return this._def.description}_getType(t){return ir(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:ir(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Wn,ctx:{common:t.parent.common,data:t.data,parsedType:ir(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Kh(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const i=this.safeParse(t,n);if(i.success)return i.data;throw i.error}safeParse(t,n){const i={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ir(t)},s=this._parseSync({data:t,path:i.path,parent:i});return Wk(i,s)}"~validate"(t){var i,s;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ir(t)};if(!this["~standard"].async)try{const r=this._parseSync({data:t,path:[],parent:n});return Ro(r)?{value:r.value}:{issues:n.common.issues}}catch(r){(s=(i=r==null?void 0:r.message)==null?void 0:i.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>Ro(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){const i=await this.safeParseAsync(t,n);if(i.success)return i.data;throw i.error}async safeParseAsync(t,n){const i={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ir(t)},s=this._parse({data:t,path:i.path,parent:i}),r=await(Kh(s)?s:Promise.resolve(s));return Wk(i,r)}refine(t,n){const i=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,r)=>{const o=t(s),c=()=>r.addIssue({code:ue.custom,...i(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(u=>u?!0:(c(),!1)):o?!0:(c(),!1)})}refinement(t,n){return this._refinement((i,s)=>t(i)?!0:(s.addIssue(typeof n=="function"?n(i,s):n),!1))}_refinement(t){return new Oo({schema:this,typeName:Ve.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return gr.create(this,this._def)}nullable(){return Lo.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Gi.create(this)}promise(){return Jh.create(this,this._def)}or(t){return Xh.create([this,t],this._def)}and(t){return Zh.create(this,t,this._def)}transform(t){return new Oo({...Ye(this._def),schema:this,typeName:Ve.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Bx({...Ye(this._def),innerType:this,defaultValue:n,typeName:Ve.ZodDefault})}brand(){return new e9({typeName:Ve.ZodBranded,type:this,...Ye(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new zx({...Ye(this._def),innerType:this,catchValue:n,typeName:Ve.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Qv.create(this,t)}readonly(){return Vx.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const I8=/^c[^\s-]{8,}
vendor: 4,618 bytes, line 197
197$/i,R8=/^[0-9a-z]+$/,M8=/^[0-9A-HJKMNP-TV-Z]{26}$/i,O8=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,L8=/^[a-z0-9_-]{21}$/i,D8=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,F8=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,$8=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,B8="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let wg;const z8=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,V8=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,H8=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,W8=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,q8=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,U8=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,GC="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",G8=new RegExp(`^${GC}$`);function YC(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Y8(e){return new RegExp(`^${YC(e)}$`)}function K8(e){let t=`${GC}T${YC(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Q8(e,t){return!!((t==="v4"||!t)&&z8.test(e)||(t==="v6"||!t)&&H8.test(e))}function X8(e,t){if(!D8.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const i=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(i));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||t&&s.alg!==t)}catch{return!1}}function Z8(e,t){return!!((t==="v4"||!t)&&V8.test(e)||(t==="v6"||!t)&&W8.test(e))}class cr extends tt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==je.string){const r=this._getOrReturnCtx(t);return fe(r,{code:ue.invalid_type,expected:je.string,received:r.parsedType}),ze}const i=new Wn;let s;for(const r of this._def.checks)if(r.kind==="min")t.data.length<r.value&&(s=this._getOrReturnCtx(t,s),fe(s,{code:ue.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),i.dirty());else if(r.kind==="max")t.data.length>r.value&&(s=this._getOrReturnCtx(t,s),fe(s,{code:ue.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),i.dirty());else if(r.kind==="length"){const o=t.data.length>r.value,c=t.data.length<r.value;(o||c)&&(s=this._getOrReturnCtx(t,s),o?fe(s,{code:ue.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):c&&fe(s,{code:ue.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),i.dirty())}else if(r.kind==="email")$8.test(t.data)||(s=this._getOrReturnCtx(t,s),fe(s,{validation:"email",code:ue.invali
vendor: 6,028 bytes, line 197
197d_string,message:r.message}),i.dirty());else if(r.kind==="emoji")wg||(wg=new RegExp(B8,"u")),wg.test(t.data)||(s=this._getOrReturnCtx(t,s),fe(s,{validation:"emoji",code:ue.invalid_string,message:r.message}),i.dirty());else if(r.kind==="uuid")O8.test(t.data)||(s=this._getOrReturnCtx(t,s),fe(s,{validation:"uuid",code:ue.invalid_string,message:r.message}),i.dirty());else if(r.kind==="nanoid")L8.test(t.data)||(s=this._getOrReturnCtx(t,s),fe(s,{validation:"nanoid",code:ue.invalid_string,message:r.message}),i.dirty());else if(r.kind==="cuid")I8.test(t.data)||(s=this._getOrReturnCtx(t,s),fe(s,{validation:"cuid",code:ue.invalid_string,message:r.message}),i.dirty());else if(r.kind==="cuid2")R8.test(t.data)||(s=this._getOrReturnCtx(t,s),fe(s,{validation:"cuid2",code:ue.invalid_string,message:r.message}),i.dirty());else if(r.kind==="ulid")M8.test(t.data)||(s=this._getOrReturnCtx(t,s),fe(s,{validation:"ulid",code:ue.invalid_string,message:r.message}),i.dirty());else if(r.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),fe(s,{validation:"url",code:ue.invalid_string,message:r.message}),i.dirty()}else r.kind==="regex"?(r.regex.lastIndex=0,r.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),fe(s,{validation:"regex",code:ue.invalid_string,message:r.message}),i.dirty())):r.kind==="trim"?t.data=t.data.trim():r.kind==="includes"?t.data.includes(r.value,r.position)||(s=this._getOrReturnCtx(t,s),fe(s,{code:ue.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),i.dirty()):r.kind==="toLowerCase"?t.data=t.data.toLowerCase():r.kind==="toUpperCase"?t.data=t.data.toUpperCase():r.kind==="startsWith"?t.data.startsWith(r.value)||(s=this._getOrReturnCtx(t,s),fe(s,{code:ue.invalid_string,validation:{startsWith:r.value},message:r.message}),i.dirty()):r.kind==="endsWith"?t.data.endsWith(r.value)||(s=this._getOrReturnCtx(t,s),fe(s,{code:ue.invalid_string,validation:{endsWith:r.value},message:r.message}),i.dirty()):r.kind==="datetime"?K8(r).test(t.data)||(s=this._getOrReturnCtx(t,s),fe(s,{code:ue.invalid_string,validation:"datetime",message:r.message}),i.dirty()):r.kind==="date"?G8.test(t.data)||(s=this._getOrReturnCtx(t,s),fe(s,{code:ue.invalid_string,validation:"date",message:r.message}),i.dirty()):r.kind==="time"?Y8(r).test(t.data)||(s=this._getOrReturnCtx(t,s),fe(s,{code:ue.invalid_string,validation:"time",message:r.message}),i.dirty()):r.kind==="duration"?F8.test(t.data)||(s=this._getOrReturnCtx(t,s),fe(s,{validation:"duration",code:ue.invalid_string,message:r.message}),i.dirty()):r.kind==="ip"?Q8(t.data,r.version)||(s=this._getOrReturnCtx(t,s),fe(s,{validation:"ip",code:ue.invalid_string,message:r.message}),i.dirty()):r.kind==="jwt"?X8(t.data,r.alg)||(s=this._getOrReturnCtx(t,s),fe(s,{validation:"jwt",code:ue.invalid_string,message:r.message}),i.dirty()):r.kind==="cidr"?Z8(t.data,r.version)||(s=this._getOrReturnCtx(t,s),fe(s,{validation:"cidr",code:ue.invalid_string,message:r.message}),i.dirty()):r.kind==="base64"?q8.test(t.data)||(s=this._getOrReturnCtx(t,s),fe(s,{validation:"base64",code:ue.invalid_string,message:r.message}),i.dirty()):r.kind==="base64url"?U8.test(t.data)||(s=this._getOrReturnCtx(t,s),fe(s,{validation:"base64url",code:ue.invalid_string,message:r.message}),i.dirty()):st.assertNever(r);return{status:i.value,value:t.data}}_regex(t,n,i){return this.refinement(s=>t.test(s),{validation:n,code:ue.invalid_string,...Ne.errToObj(i)})}_addCheck(t){return new cr({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Ne.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Ne.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Ne.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Ne.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Ne.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Ne.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Ne.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Ne.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Ne.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Ne.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Ne.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Ne.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Ne.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Ne.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Ne.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Ne.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Ne.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Ne.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Ne.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Ne.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Ne.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Ne.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Ne.errToObj(n)})}nonempty(t){return this.min(1,Ne.errToObj(t))}trim(){return new cr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new cr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new cr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}
vendor: 4,523 bytes, line 197
197get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}cr.create=e=>new cr({checks:[],typeName:Ve.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Ye(e)});function J8(e,t){const n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,s=n>i?n:i,r=Number.parseInt(e.toFixed(s).replace(".","")),o=Number.parseInt(t.toFixed(s).replace(".",""));return r%o/10**s}class Uc extends tt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==je.number){const r=this._getOrReturnCtx(t);return fe(r,{code:ue.invalid_type,expected:je.number,received:r.parsedType}),ze}let i;const s=new Wn;for(const r of this._def.checks)r.kind==="int"?st.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),fe(i,{code:ue.invalid_type,expected:"integer",received:"float",message:r.message}),s.dirty()):r.kind==="min"?(r.inclusive?t.data<r.value:t.data<=r.value)&&(i=this._getOrReturnCtx(t,i),fe(i,{code:ue.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),s.dirty()):r.kind==="max"?(r.inclusive?t.data>r.value:t.data>=r.value)&&(i=this._getOrReturnCtx(t,i),fe(i,{code:ue.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),s.dirty()):r.kind==="multipleOf"?J8(t.data,r.value)!==0&&(i=this._getOrReturnCtx(t,i),fe(i,{code:ue.not_multiple_of,multipleOf:r.value,message:r.message}),s.dirty()):r.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),fe(i,{code:ue.not_finite,message:r.message}),s.dirty()):st.assertNever(r);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Ne.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Ne.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Ne.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Ne.toString(n))}setLimit(t,n,i,s){return new Uc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:Ne.toString(s)}]})}_addCheck(t){return new Uc({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Ne.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ne.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ne.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ne.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ne.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Ne.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Ne.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ne.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ne.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&st.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;
vendor: 4,391 bytes, line 197
197i.kind==="min"?(n===null||i.value>n)&&(n=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Uc.create=e=>new Uc({checks:[],typeName:Ve.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ye(e)});class Gc extends tt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==je.bigint)return this._getInvalidInput(t);let i;const s=new Wn;for(const r of this._def.checks)r.kind==="min"?(r.inclusive?t.data<r.value:t.data<=r.value)&&(i=this._getOrReturnCtx(t,i),fe(i,{code:ue.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),s.dirty()):r.kind==="max"?(r.inclusive?t.data>r.value:t.data>=r.value)&&(i=this._getOrReturnCtx(t,i),fe(i,{code:ue.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),s.dirty()):r.kind==="multipleOf"?t.data%r.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),fe(i,{code:ue.not_multiple_of,multipleOf:r.value,message:r.message}),s.dirty()):st.assertNever(r);return{status:s.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return fe(n,{code:ue.invalid_type,expected:je.bigint,received:n.parsedType}),ze}gte(t,n){return this.setLimit("min",t,!0,Ne.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Ne.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Ne.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Ne.toString(n))}setLimit(t,n,i,s){return new Gc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:Ne.toString(s)}]})}_addCheck(t){return new Gc({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ne.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ne.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ne.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ne.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Ne.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Gc.create=e=>new Gc({checks:[],typeName:Ve.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Ye(e)});class qk extends tt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==je.boolean){const i=this._getOrReturnCtx(t);return fe(i,{code:ue.invalid_type,expected:je.boolean,received:i.parsedType}),ze}return ri(t.data)}}qk.create=e=>new qk({typeName:Ve.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ye(e)});class Qh extends tt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==je.date){const r=this._getOrReturnCtx(t);return fe(r,{code:ue.invalid_type,expected:je.date,received:r.parsedType}),ze}if(Number.isNaN(t.data.getTime())){const r=this._getOrReturnCtx(t);return fe(r,{code:ue.invalid_date}),ze}const i=new Wn;let s;for(const r of this._def.checks)r.kind==="min"?t.data.getTime()<r.value&&(s=this._getOrReturnCtx(t,s),fe(s,{code:ue.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),i.dirty()):r.kind==="max"?t.data.getTime()>r.value&&(s=this._getOrReturnCtx(t,s),fe(s,{code:ue.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),i.dirty()):st.assertNever(r);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Qh({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Ne.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Ne.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Qh.create=e=>new Qh({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Ve.ZodDate,...Ye(e)});class Uk extends tt{_parse(t){if(this._getType(t)!==je.symbol){const i=this._getOrReturnCtx(t);
vendor: 8,559 bytes, line 197
197return fe(i,{code:ue.invalid_type,expected:je.symbol,received:i.parsedType}),ze}return ri(t.data)}}Uk.create=e=>new Uk({typeName:Ve.ZodSymbol,...Ye(e)});class Gk extends tt{_parse(t){if(this._getType(t)!==je.undefined){const i=this._getOrReturnCtx(t);return fe(i,{code:ue.invalid_type,expected:je.undefined,received:i.parsedType}),ze}return ri(t.data)}}Gk.create=e=>new Gk({typeName:Ve.ZodUndefined,...Ye(e)});class Yk extends tt{_parse(t){if(this._getType(t)!==je.null){const i=this._getOrReturnCtx(t);return fe(i,{code:ue.invalid_type,expected:je.null,received:i.parsedType}),ze}return ri(t.data)}}Yk.create=e=>new Yk({typeName:Ve.ZodNull,...Ye(e)});class Kk extends tt{constructor(){super(...arguments),this._any=!0}_parse(t){return ri(t.data)}}Kk.create=e=>new Kk({typeName:Ve.ZodAny,...Ye(e)});class Qk extends tt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ri(t.data)}}Qk.create=e=>new Qk({typeName:Ve.ZodUnknown,...Ye(e)});class wr extends tt{_parse(t){const n=this._getOrReturnCtx(t);return fe(n,{code:ue.invalid_type,expected:je.never,received:n.parsedType}),ze}}wr.create=e=>new wr({typeName:Ve.ZodNever,...Ye(e)});class Xk extends tt{_parse(t){if(this._getType(t)!==je.undefined){const i=this._getOrReturnCtx(t);return fe(i,{code:ue.invalid_type,expected:je.void,received:i.parsedType}),ze}return ri(t.data)}}Xk.create=e=>new Xk({typeName:Ve.ZodVoid,...Ye(e)});class Gi extends tt{_parse(t){const{ctx:n,status:i}=this._processInputParams(t),s=this._def;if(n.parsedType!==je.array)return fe(n,{code:ue.invalid_type,expected:je.array,received:n.parsedType}),ze;if(s.exactLength!==null){const o=n.data.length>s.exactLength.value,c=n.data.length<s.exactLength.value;(o||c)&&(fe(n,{code:o?ue.too_big:ue.too_small,minimum:c?s.exactLength.value:void 0,maximum:o?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),i.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&(fe(n,{code:ue.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),i.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&(fe(n,{code:ue.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((o,c)=>s.type._parseAsync(new br(n,o,n.path,c)))).then(o=>Wn.mergeArray(i,o));const r=[...n.data].map((o,c)=>s.type._parseSync(new br(n,o,n.path,c)));return Wn.mergeArray(i,r)}get element(){return this._def.type}min(t,n){return new Gi({...this._def,minLength:{value:t,message:Ne.toString(n)}})}max(t,n){return new Gi({...this._def,maxLength:{value:t,message:Ne.toString(n)}})}length(t,n){return new Gi({...this._def,exactLength:{value:t,message:Ne.toString(n)}})}nonempty(t){return this.min(1,t)}}Gi.create=(e,t)=>new Gi({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ve.ZodArray,...Ye(t)});function uo(e){if(e instanceof Lt){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=gr.create(uo(i))}return new Lt({...e._def,shape:()=>t})}else return e instanceof Gi?new Gi({...e._def,type:uo(e.element)}):e instanceof gr?gr.create(uo(e.unwrap())):e instanceof Lo?Lo.create(uo(e.unwrap())):e instanceof wa?wa.create(e.items.map(t=>uo(t))):e}class Lt extends tt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=st.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==je.object){const h=this._getOrReturnCtx(t);return fe(h,{code:ue.invalid_type,expected:je.object,received:h.parsedType}),ze}const{status:i,ctx:s}=this._processInputParams(t),{shape:r,keys:o}=this._getCached(),c=[];if(!(this._def.catchall instanceof wr&&this._def.unknownKeys==="strip"))for(const h in s.data)o.includes(h)||c.push(h);const u=[];for(const h of o){const f=r[h],m=s.data[h];u.push({key:{status:"valid",value:h},value:f._parse(new br(s,m,s.path,h)),alwaysSet:h in s.data})}if(this._def.catchall instanceof wr){const h=this._def.unknownKeys;if(h==="passthrough")for(const f of c)u.push({key:{status:"valid",value:f},value:{status:"valid",value:s.data[f]}});else if(h==="strict")c.length>0&&(fe(s,{code:ue.unrecognized_keys,keys:c}),i.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const f of c){const m=s.data[f];u.push({key:{status:"valid",value:f},value:h._parse(new br(s,m,s.path,f)),alwaysSet:f in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const h=[];for(const f of u){const m=await f.key,x=await f.value;h.push({key:m,value:x,alwaysSet:f.alwaysSet})}return h}).then(h=>Wn.mergeObjectSync(i,h)):Wn.mergeObjectSync(i,u)}get shape(){return this._def.shape()}strict(t){return Ne.errToObj,new Lt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,i)=>{var r,o;const s=((o=(r=this._def).errorMap)==null?void 0:o.call(r,n,i).message)??i.defaultError;return n.code==="unrecognized_keys"?{message:Ne.errToObj(t).message??s}:{message:s}}}:{}})}strip(){return new Lt({...this._def,unknownKeys:"strip"})}passthrough(){return new Lt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Lt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Lt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ve.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Lt({...this._def,catchall:t})}pick(t){const n={};for(const i of st.objectKeys(t))t[i]&&this.shape[i]&&(n[i]=this.shape[i]);return new Lt({...this._def,shape:()=>n})}omit(t){const n={};for(const i of st.objectKeys(this.shape))t[i]||(n[i]=this.shape[i]);return new Lt({...this._def,shape:()=>n})}deepPartial(){return uo(this)}partial(t){const n={};for(const i of st.objectKeys(this.shape)){const s=this.shape[i];t&&!t[i]?n[i]=s:n[i]=s.optional()}return new Lt({...this._def,shape:()=>n})}required(t){const n={};for(const i of st.objectKeys(this.shape))if(t&&!t[i])n[i]=this.shape[i];else{let r=this.shape[i];for(;r instanceof gr;)r=r._def.innerType;n[i]=r}return new Lt({...this._def,shape:()=>n})}keyof(){return KC(st.objectKeys(this.shape))}}Lt.create=(e,t)=>new Lt({shape:()=>e,unknownKeys:"strip",catchall:wr.create(),typeName:Ve.ZodObject,...Ye(t)});Lt.strictCreate=(e,t)=>new Lt({shape:()=>e,unknownKeys:"strict",catchall:wr.create(),typeName:Ve.ZodObject,...Ye(t)});Lt.lazycreate=(e,t)=>new Lt({shape:e,unknownKeys:"strip",catchall:wr.create(),typeName:Ve.ZodObject,...Ye(t)});class Xh extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),i=this._def.options;function s(r){for(const c of r)if(c.result.status==="valid")return c.result;for(const c of r)if(c.result.status==="dirty")return n.common.issues.push(...c.ctx.common.issues),c.result;const o=r.map(c=>new Cs(c.ctx.common.issues));return fe(n,{code:ue.invalid_union,unionErrors:o}),ze}if(n.common.async)return Promise.all(i.map(async r=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await r._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(s);{let r;const o=[];for(const u of i){const h={...n,common:{...n.common,issues:[]},parent:null},f=u._parseSync({data:n.data,path:n.path,parent:h});if(f.status==="valid")return f;f.status==="dirty"&&!r&&(r={result:f,ctx:h}),h.common.issues.length&&o.push(h.common.issues)}if(r)return n.common.issues.push(...r.ctx.common.issues),r.result;const c=o.map(u=>new Cs(u));return fe(n,{code:ue.invalid_union,unionErrors:c}),ze}}get options(){return this._def.options}}Xh.create=(e,t)=>new Xh({options:e,typeName:Ve.ZodUnion,...Ye(t)});function Fx(e,t){const n=ir(e),i=ir(t);if(e===t)return{valid:!0,data:e};if(n===je.object&&i===je.object){const s=st.objectKeys(t),r=st.objectKeys(e).filter(c=>s.indexOf(c)!==-1),o={...e,...t};for(const c of r){const u=Fx(e[c],t[c]);if(!u.valid)return{valid:!1};o[c]=u.data}return{valid:!0,data:o}}else if(n===je.array&&i===je.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let r=0;r<e.length;r++){const o=e[r],c=t[r],u=Fx(o,c);if(!u.valid)return{valid:!1};s.push(u.data)}return{valid:!0,data:s}}else return n===je.date&&i===je.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Zh extends tt{_parse(t){const{status:n,ctx:i}=this._processInputParams(t),s=(r,o)=>{if(Vk(r)||Vk(o))return ze;const c=Fx(r.value,o.value);return c.valid?((Hk(r)||Hk(o))&&n.dirty(),{status:n.value,value:c.data}
vendor: 4,144 bytes, line 197
197):(fe(i,{code:ue.invalid_intersection_types}),ze)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([r,o])=>s(r,o)):s(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}Zh.create=(e,t,n)=>new Zh({left:e,right:t,typeName:Ve.ZodIntersection,...Ye(n)});class wa extends tt{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==je.array)return fe(i,{code:ue.invalid_type,expected:je.array,received:i.parsedType}),ze;if(i.data.length<this._def.items.length)return fe(i,{code:ue.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ze;!this._def.rest&&i.data.length>this._def.items.length&&(fe(i,{code:ue.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const r=[...i.data].map((o,c)=>{const u=this._def.items[c]||this._def.rest;return u?u._parse(new br(i,o,i.path,c)):null}).filter(o=>!!o);return i.common.async?Promise.all(r).then(o=>Wn.mergeArray(n,o)):Wn.mergeArray(n,r)}get items(){return this._def.items}rest(t){return new wa({...this._def,rest:t})}}wa.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new wa({items:e,typeName:Ve.ZodTuple,rest:null,...Ye(t)})};class Zk extends tt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==je.map)return fe(i,{code:ue.invalid_type,expected:je.map,received:i.parsedType}),ze;const s=this._def.keyType,r=this._def.valueType,o=[...i.data.entries()].map(([c,u],h)=>({key:s._parse(new br(i,c,i.path,[h,"key"])),value:r._parse(new br(i,u,i.path,[h,"value"]))}));if(i.common.async){const c=new Map;return Promise.resolve().then(async()=>{for(const u of o){const h=await u.key,f=await u.value;if(h.status==="aborted"||f.status==="aborted")return ze;(h.status==="dirty"||f.status==="dirty")&&n.dirty(),c.set(h.value,f.value)}return{status:n.value,value:c}})}else{const c=new Map;for(const u of o){const h=u.key,f=u.value;if(h.status==="aborted"||f.status==="aborted")return ze;(h.status==="dirty"||f.status==="dirty")&&n.dirty(),c.set(h.value,f.value)}return{status:n.value,value:c}}}}Zk.create=(e,t,n)=>new Zk({valueType:t,keyType:e,typeName:Ve.ZodMap,...Ye(n)});class Yc extends tt{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==je.set)return fe(i,{code:ue.invalid_type,expected:je.set,received:i.parsedType}),ze;const s=this._def;s.minSize!==null&&i.data.size<s.minSize.value&&(fe(i,{code:ue.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&i.data.size>s.maxSize.value&&(fe(i,{code:ue.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const r=this._def.valueType;function o(u){const h=new Set;for(const f of u){if(f.status==="aborted")return ze;f.status==="dirty"&&n.dirty(),h.add(f.value)}return{status:n.value,value:h}}const c=[...i.data.values()].map((u,h)=>r._parse(new br(i,u,i.path,h)));return i.common.async?Promise.all(c).then(u=>o(u)):o(c)}min(t,n){return new Yc({...this._def,minSize:{value:t,message:Ne.toString(n)}})}max(t,n){return new Yc({...this._def,maxSize:{value:t,message:Ne.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Yc.create=(e,t)=>new Yc({valueType:e,minSize:null,maxSize:null,typeName:Ve.ZodSet,...Ye(t)});class Jk extends tt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Jk.create=(e,t)=>new Jk({getter:e,typeName:Ve.ZodLazy,...Ye(t)});class $x extends tt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return fe(n,{received:n.data,code:ue.invalid_literal,expected:this._def.value}),ze}return{status:"valid",value:t.data}}get value(){return this._def.value}}$x.create=(e,t)=>
vendor: 4,437 bytes, line 197
197new $x({value:e,typeName:Ve.ZodLiteral,...Ye(t)});function KC(e,t){return new Mo({values:e,typeName:Ve.ZodEnum,...Ye(t)})}class Mo extends tt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),i=this._def.values;return fe(n,{expected:st.joinValues(i),received:n.parsedType,code:ue.invalid_type}),ze}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),i=this._def.values;return fe(n,{received:n.data,code:ue.invalid_enum_value,options:i}),ze}return ri(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Mo.create(t,{...this._def,...n})}exclude(t,n=this._def){return Mo.create(this.options.filter(i=>!t.includes(i)),{...this._def,...n})}}Mo.create=KC;class e1 extends tt{_parse(t){const n=st.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==je.string&&i.parsedType!==je.number){const s=st.objectValues(n);return fe(i,{expected:st.joinValues(s),received:i.parsedType,code:ue.invalid_type}),ze}if(this._cache||(this._cache=new Set(st.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const s=st.objectValues(n);return fe(i,{received:i.data,code:ue.invalid_enum_value,options:s}),ze}return ri(t.data)}get enum(){return this._def.values}}e1.create=(e,t)=>new e1({values:e,typeName:Ve.ZodNativeEnum,...Ye(t)});class Jh extends tt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==je.promise&&n.common.async===!1)return fe(n,{code:ue.invalid_type,expected:je.promise,received:n.parsedType}),ze;const i=n.parsedType===je.promise?n.data:Promise.resolve(n.data);return ri(i.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Jh.create=(e,t)=>new Jh({type:e,typeName:Ve.ZodPromise,...Ye(t)});class Oo extends tt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ve.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:i}=this._processInputParams(t),s=this._def.effect||null,r={addIssue:o=>{fe(i,o),o.fatal?n.abort():n.dirty()},get path(){return i.path}};if(r.addIssue=r.addIssue.bind(r),s.type==="preprocess"){const o=s.transform(i.data,r);if(i.common.async)return Promise.resolve(o).then(async c=>{if(n.value==="aborted")return ze;const u=await this._def.schema._parseAsync({data:c,path:i.path,parent:i});return u.status==="aborted"?ze:u.status==="dirty"||n.value==="dirty"?oc(u.value):u});{if(n.value==="aborted")return ze;const c=this._def.schema._parseSync({data:o,path:i.path,parent:i});return c.status==="aborted"?ze:c.status==="dirty"||n.value==="dirty"?oc(c.value):c}}if(s.type==="refinement"){const o=c=>{const u=s.refinement(c,r);if(i.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return c};if(i.common.async===!1){const c=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return c.status==="aborted"?ze:(c.status==="dirty"&&n.dirty(),o(c.value),{status:n.value,value:c.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(c=>c.status==="aborted"?ze:(c.status==="dirty"&&n.dirty(),o(c.value).then(()=>({status:n.value,value:c.value}))))}if(s.type==="transform")if(i.common.async===!1){const o=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Ro(o))return ze;const c=s.transform(o.value,r);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:c}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(o=>Ro(o)?Promise.resolve(s.transform(o.value,r)).then(c=>({status:n.value,value:c})):ze);st.assertNever(s)}}Oo.create=(e,t,n)=>new Oo({schema:e,typeName:Ve.ZodEffects,effect:t,...Ye(n)});Oo.createWithPreprocess=(e,t,n)=>new Oo({schema:t,effect:{type:"preprocess",transform:e},typeName:Ve.ZodEffects,...Ye(n)});class gr extends tt{_parse(t){return this._getType(t)===je.undefined?ri(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}gr.create=(e,t)=>
197new gr({innerType:e,typeName:Ve.ZodOptional,...Ye(t)});class Lo extends tt{_parse(t){return this._getType(t)===je.null?ri(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Lo.create=(e,t)=>new Lo({innerType:e,typeName:Ve.ZodNullable,...Ye(t)});class Bx extends tt{_parse(t){const{ctx:n}=this._processInputParams(t);let i=n.data;return n.parsedType===je.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Bx.create=(e,t)=>new Bx({innerType:e,typeName:Ve.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ye(t)});class zx extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),i={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return Kh(s)?s.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new Cs(i.common.issues)},input:i.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Cs(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}zx.create=(e,t)=>new zx({innerType:e,typeName:Ve.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ye(t)});class t1 extends tt{_parse(t){if(this._getType(t)!==je.nan){const i=this._getOrReturnCtx(t);return fe(i,{code:ue.invalid_type,expected:je.nan,received:i.parsedType}),ze}return{status:"valid",value:t.data}}}t1.create=e=>new t1({typeName:Ve.ZodNaN,...Ye(e)});class e9 extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}}class Qv extends tt{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{const r=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return r.status==="aborted"?ze:r.status==="dirty"?(n.dirty(),oc(r.value)):this._def.out._parseAsync({data:r.value,path:i.path,parent:i})})();{const s=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?ze:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:i.path,parent:i})}}static create(t,n){return new Qv({in:t,out:n,typeName:Ve.ZodPipeline})}}class Vx extends tt{_parse(t){const n=this._def.innerType._parse(t),i=s=>(Ro(s)&&(s.value=Object.freeze(s.value)),s);return Kh(n)?n.then(s=>i(s)):i(n)}unwrap(){return this._def.innerType}}Vx.create=(e,t)=>new Vx({innerType:e,typeName:Ve.ZodReadonly,...Ye(t)});var Ve;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ve||(Ve={}));const ta=cr.create;wr.create;Gi.create;const t9=Lt.create;Xh.create;Zh.create;wa.create;const $u=$x.create,n9=Mo.create;Jh.create;gr.create;Lo.create;const i9=n9(["demo","question","partnership"]),s9=t9({name:ta().trim().min(2,"Enter your name").max(100),email:ta().trim().email("Enter a valid work email").max(200),company:ta().trim().max(200).optional().or($u("")),role:ta().trim().max(200).optional().or($u("")),message:ta().trim().min(10,"Add a few sentences so we can prepare").max(4e3),intent:i9.default("demo"),source:ta().trim().max(200).optional().or($u("")),website:ta().max(200).optional().or($u(""))});function r9(e){return e.flatten().fieldErrors}const a9={contact:{formHint:"Name and work email are required. Everything else helps us prepare.",intents:[{value:"demo",label:"Request a demo"},{value:"question",label:"Ask a question"},{value:"partnership",label:"Partnership / design partner"}]}},Hx="G-LSJYDN9KV5";function QC(){if(typeof window>"u"||!window.gtag)return!1;const e=window.location.hostname;return e!=="localhost"&&e!=="127.0.0.1"&&e!==""}function o9(e){QC()&&window.gtag("config",Hx,{page_path:e})}function qi(e,t){QC()&&window.gtag("event",e,t)}const Gl="h-11 rounded-xl border-border-subtle bg-surface px-3.5 text-[14px] shadow-[var(--shadow-xs)] placeholder:text-text-muted focus:border-brand-purple/35 focus:ring-2 focus:ring-brand-purple/15",oo="text-[13px] font-medium text-text-primary";function _g({message:e}){return e?d.jsx("p",{className:"text-[12px] text-red-600",children:e}):null}function l9({source:e}){const{contact:t}=a9,[n,i]=P.useState({state:"idle"}),[s,r]=P.useState({}),[o,c]=P.useState("demo"),[u,h]=P.useState(""),[f,m]=P.useState(""),[x,y]=P.useState(""),[b,k]=P.useState(""),[w,S]=P.useState("");function j(T){r(L=>{if(!L[T])return L;const M={...L};return delete M[T],M})}async function N(T){T.preventDefault(),r({});const L={name:u,email:f,company:x,role:b,message:w,intent:o,source:e,website:""},M=s9.safeParse(L);if(!M.success){r(r9(M.error)),i({state:"error",message:"Check the highlighted fields and try again."});return}i({state:"submitting"});try{const A=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M.data)}),O=await A.json().catch(()=>null);if(!A.ok){O!=null&&O.fields&&r(O.fields),i({state:"error",message:(O==null?void 0:O.error)??"Something went wrong. Please try again."});return}if((O==null?void 0:O.delivered)===!1){i({state:"success",devOnly:!0});return}i({state:"success"});const G={source:e??"contact_form",intent:o,location:window.location.pathname};qi("generate_lead",G),me==null||me.capture("generate_lead",G),h(""),m(""),y(""),k(""),S(""),c("demo")}catch{i({state:"error",message:"Network error. Please try again."})}}if(n.state==="success")return d.jsxs("div",{className:"rounded-2xl border border-emerald-500/25 bg-emerald-500/[0.06] px-6 py-8 text-center",role:"status",children:[d.jsx("p",{className:"text-h3 text-emerald-900",children:n.devOnly?"Logged locally (dev)":"Message sent"}),d.jsx("p",{className:"text-body mt-2 text-emerald-800/90",children:n.devOnly?"Delivery is not configured in this environment. Set RESEND_API_KEY or CONTACT_WEBHOOK_URL to send for real.":"Thanks — we'll reply within one business day."}),n.devOnly?null:d.jsx(js,{type:"button",variant:"outline",size:"md",className:"mt-6",onClick:()=>i({state:"idle"}),children:"Send another message"})]});const E=T=>{var L;return(L=s[T])==null?void 0:L[0]};return d.jsxs("form",{onSubmit:N,className:"grid gap-5",noValidate:!0,children:[d.jsxs("div",{className:"absolute -left-[9999px] h-0 w-0 overflow-hidden","aria-hidden":!0,
197children:[d.jsx("label",{htmlFor:"contact-website",children:"Website"}),d.jsx("input",{id:"contact-website",name:"website",type:"text",tabIndex:-1,autoComplete:"off"})]}),d.jsxs("fieldset",{className:"grid gap-2",children:[d.jsx("legend",{className:oo,children:"I'd like to"}),d.jsx("div",{className:"flex flex-wrap gap-2",children:t.intents.map(T=>{const L=o===T.value;return d.jsx("button",{type:"button",onClick:()=>{c(T.value),j("intent")},className:Re("rounded-full border px-3.5 py-2 text-[13px] font-medium transition-colors",L?"border-brand-purple/30 bg-brand-purple/[0.08] text-brand-purple":"border-border-subtle bg-surface text-text-secondary hover:border-border hover:text-text-primary"),children:T.label},T.value)})})]}),d.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[d.jsxs("div",{className:"grid gap-1.5",children:[d.jsxs("label",{htmlFor:"contact-name",className:oo,children:["Name ",d.jsx("span",{className:"text-accent",children:"*"})]}),d.jsx(ac,{id:"contact-name",value:u,onChange:T=>{h(T.target.value),j("name")},placeholder:"Your name",className:Gl,autoComplete:"name","aria-invalid":!!E("name")}),d.jsx(_g,{message:E("name")})]}),d.jsxs("div",{className:"grid gap-1.5",children:[d.jsxs("label",{htmlFor:"contact-email",className:oo,children:["Work email ",d.jsx("span",{className:"text-accent",children:"*"})]}),d.jsx(ac,{id:"contact-email",value:f,onChange:T=>{m(T.target.value),j("email")},placeholder:"[email protected]",type:"email",className:Gl,autoComplete:"email","aria-invalid":!!E("email")}),d.jsx(_g,{message:E("email")})]})]}),d.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[d.jsxs("div",{className:"grid gap-1.5",children:[d.jsx("label",{htmlFor:"contact-company",className:oo,children:"Company"}),d.jsx(ac,{id:"contact-company",value:x,onChange:T=>y(T.target.value),placeholder:"Company",className:Gl,autoComplete:"organization"})]}),d.jsxs("div",{className:"grid gap-1.5",children:[d.jsx("label",{htmlFor:"contact-role",className:oo,children:"Role"}),d.jsx(ac,{id:"contact-role",value:b,onChange:T=>k(T.target.value),placeholder:"e.g. Head of Talent",className:Gl,autoComplete:"organization-title"})]})]}),d.jsxs("div",{className:"grid gap-1.5",children:[d.jsxs("label",{htmlFor:"contact-message",className:oo,children:["Message ",d.jsx("span",{className:"text-accent",children:"*"})]}),d.jsx(UC,{id:"contact-message",value:w,onChange:T=>{S(T.target.value),j("message")},placeholder:"Hiring volume, tools you use, and what you'd like Confeti to help with.",className:Re(Gl,"min-h-[120px] resize-y rounded-xl py-3 leading-relaxed"),"aria-invalid":!!E("message")}),d.jsx(_g,{message:E("message")})]}),n.state==="error"?d.jsx("div",{className:"rounded-xl border border-red-500/20 bg-red-500/[0.06] px-4 py-3 text-[13px] text-red-700",role:"alert",children:n.message}):null,d.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center",children:[d.jsx(js,{type:"submit",size:"lg",disabled:n.state==="submitting",className:"w-full sm:w-auto",children:n.state==="submitting"?d.jsxs(d.Fragment,{children:[d.jsx(xo,{className:"h-4 w-4 animate-spin","aria-hidden":!0}),"Sending…"]}):"Send message"}),d.jsx("p",{className:"text-caption text-text-muted",children:t.formHint})]})]})}const Do={name:"Confeti",urls:{site:"https://confeti.co"},contact:{email:"[email protected]"}},c9="https://www.linkedin.com/company/confeti-ai/",d9=()=>d.jsxs("div",{className:"min-h-full bg-[#faf8f6] font-geist text-stone-800",children:[d.jsx(si,{}),d.jsxs("main",{className:"w-full",children:[d.jsx("section",{className:"w-full pt-12 pb-8 md:pt-16 md:pb-10",children:d.jsx("div",{className:"mx-auto max-w-[1326px] px-5 md:px-10",children:d.jsxs("div",{className:"mx-auto max-w-[860px] text-center",children:[d.jsx("h1",{className:"text-[42px] leading-[0.98] tracking-[-1.5px] md:text-[74px] md:tracking-[-2.6px]",children:"Contact Confeti"}),d.jsx("p",{className:"mx-auto mt-5 max-w-[760px] text-base leading-7 text-stone-600 md:text-[20px] md:leading-8",children:"Request a walkthrough or ask a question. We reply within one business day."})]})})}),d.jsx("section",{className:"w-full pb-16 md:pb-24",children:d.jsx("div",{className:"mx-auto max-w-[1326px] px-5 md:px-10",children:d.jsxs("div",{className:"mx-auto grid max-w-[1100px] gap-10 md:grid-cols-[1.2fr_0.8fr] md:gap-14",children:[d.jsx("div",{className:"rounded-3xl border border-stone-200 bg-white p-6 shadow-[0_12px_34px_rgba(15,23,42,0.06)] md:p-8",children:d.jsx(l9,{source:"contact-page"})}),d.jsxs("aside",{className:"space-y-6 text-sm leading-6 text-stone-600 md:text-base md:leading-7",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"text-sm font-semibold uppercase tracking-[0.12em] text-stone-500",children:"Email"}),d.jsx("a",{href:`mailto:${Do.contact.email}`,className:"mt-2 inline-block font-medium text-stone-800 underline decoration-stone-300 decoration-2 underline-offset-[6px]",children:Do.contact.email})]}),d.jsxs("div",{children:[d.jsx("h2",{className:"text-sm font-semibold uppercase tracking-[0.12em] text-stone-500",children:"LinkedIn"}),d.jsx("a",{href:c9,target:"_blank",rel:"noreferrer",className:"mt-2 inline-block font-medium text-stone-800 underline decoration-stone-300 decoration-2 underline-offset-[6px]",children:"confeti-ai"})]}),d.jsxs("div",{children:[d.jsx("h2",{className:"text-sm font-semibold uppercase tracking-[0.12em] text-stone-500",children:"Response time"}),d.jsx("p",{className:"mt-2",children:"Within one business day"})]})]})]})})})]}),d.jsx(Ci,{})]}),u9=()=>{const[e,t]=P.useState("other");P.useEffect(()=>{t(NC())},[]);const n=P.useMemo(()=>e!=="mac"&&e!=="windows"?Gh:[...Gh].sort((i,s)=>i.platform===e?-1:s.platform===e?1:0),[e]);return d.jsxs("div",{className:"min-h-full bg-[#faf8f6] font-geist text-stone-800",children:[d.jsx(si,{}),d.jsxs("main",{className:"w-full",children:[d.jsx("section",{className:"w-full pt-12 pb-8 md:pt-16 md:pb-10",children:d.jsx("div",{className:"mx-auto max-w-[1326px] px-5 md:px-10",children:d.jsxs("div",{className:"mx-auto max-w-[860px] text-center",children:[d.jsx("h1",{className:"text-[42px] leading-[0.98] tracking-[-1.5px] md:text-[74px] md:tracking-[-2.6px]",children:"Download Confeti"}),d.jsx("p",{className:"mx-auto mt-5 max-w-[760px] text-base leading-7 text-stone-600 md:text-[20px] md:leading-8",children:"Get the desktop app for interview capture on macOS or Windows."})]})})}),d.jsx("section",{className:"w-full pb-16 md:pb-24",children:d.jsxs("div",{className:"mx-auto max-w-[1326px] px-5 md:px-10",children:[d.jsx("div",{className:"mx-auto flex max-w-[720px] flex-col gap-4 sm:flex-row sm:justify-center sm:gap-5",children:n.map((i,s)=>{const r=(e==="mac"||e==="windows")&&i.platform===e;return d.jsxs("a",{href:i.url,download:!0,target:"_blank",rel:"noopener noreferrer",onClick:()=>{me==null||me.capture("desktop_download_started",{platform:i.platform}),qv.desktopDownloadStarted(i.platform)},className:`group flex flex-1 flex-col items-center rounded-2xl border bg-white px-6 py-7 text-center shadow-[0_12px_34px_rgba(15,23,42,0.06)] transition-transform duration-300 hover:-translate-y-0.5 ${r?"border-zinc-800 ring-2 ring-zinc-800/10":"border-stone-200"} ${s>0&&r===!1&&(e==="mac"||e==="windows")?"opacity-90":""}`,children:[d.jsx("span",{className:"inline-flex h-11 w-11 items-center justify-center rounded-xl bg-zinc-800 text-white",children:d.jsxs("svg",{viewBox:"0 0 24 24",className:"h-5 w-5 transition-transform duration-300 group-hover:translate-y-0.5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[d.jsx("path",{d:"M12 3v12"}),d.jsx("path",{d:"m7 10 5 5 5-5"}),d.jsx("path",{d:"M5 21h14"})]})}),d.jsx("span",{className:"mt-4 text-base font-semibold tracking-[-0.3px] text-stone-900 md:text-lg",children:i.label}),d.jsxs("span",{className:"mt-1 text-sm text-stone-500",children:[i.detail,r?" · Recommended for this device":""]})]},i.platform)})}),d.jsxs("p",{className:"mx-auto mt-8 max-w-[640px] text-center text-sm leading-6 text-stone-500",children:["Prefer the browser?"," ",d.jsx("a",{href:"https://app.confeti.co",className:"font-medium text-stone-800 underline decoration-stone-300 decoration-2 underline-offset-[5px] transition-colors hover:text-stone-950",children:"Open Confeti in the web app"}),"."]})]})})]}),d.jsx(Ci,{})]})},Xv=P.createContext({});function ud(e){const t=P.useRef(null);return t.current===null&&(t.current=e()),t.current}const h9=typeof window<"u",Kc=h9?P.useLayoutEffect:P.useEffect,Ap=P.createContext(null);function Zv(e,t){e.indexOf(t)===-1&&e.push(t)}function ep(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Qi=(e,t,n)=>n>t?t:n<e?e:n;let Pp=()=>{};const _r={},XC=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ZC=e=>typeof e=="object"&&e!==null,JC=e=>/^0[^.\s]+$/u.test(e);function e3(e){let t;return()=>(t===void 0&&(t=e()),t)}const ti=e=>e,hd=(...e)=>e.reduce((t,n)=>i=>n(t(i))),Qc=(e,t,n)=>{const i=t-e;return i?(n-e)/i:1};class Jv{constructor(){this.subscriptions=[]}add(t){return Zv(this.subscriptions,t),()=>ep(this.subscriptions,t)}notify(t,n,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,i);else for(let r=0;r<s;r++){const o=this.subscriptions[r];o&&o(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ni=e=>e*1e3,Jn=e=>e/1e3,t3=(e,t)=>
vendor: 27,817 bytes, line 197
197t?e*(1e3/t):0,n3=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,p9=1e-7,f9=12;function m9(e,t,n,i,s){let r,o,c=0;do o=t+(n-t)/2,r=n3(o,i,s)-e,r>0?n=o:t=o;while(Math.abs(r)>p9&&++c<f9);return o}function pd(e,t,n,i){if(e===t&&n===i)return ti;const s=r=>m9(r,0,1,e,n);return r=>r===0||r===1?r:n3(s(r),t,i)}const i3=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,s3=e=>t=>1-e(1-t),r3=pd(.33,1.53,.69,.99),e0=s3(r3),a3=i3(e0),o3=e=>e>=1?1:(e*=2)<1?.5*e0(e):.5*(2-Math.pow(2,-10*(e-1))),t0=e=>1-Math.sin(Math.acos(e)),l3=s3(t0),c3=i3(t0),g9=pd(.42,0,1,1),x9=pd(0,0,.58,1),d3=pd(.42,0,.58,1),v9=e=>Array.isArray(e)&&typeof e[0]!="number",u3=e=>Array.isArray(e)&&typeof e[0]=="number",y9={linear:ti,easeIn:g9,easeInOut:d3,easeOut:x9,circIn:t0,circInOut:c3,circOut:l3,backIn:e0,backInOut:a3,backOut:r3,anticipate:o3},b9=e=>typeof e=="string",n1=e=>{if(u3(e)){Pp(e.length===4);const[t,n,i,s]=e;return pd(t,n,i,s)}else if(b9(e))return y9[e];return e},Bu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function w9(e){let t=new Set,n=new Set,i=!1,s=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function c(h){r.has(h)&&(u.schedule(h),e()),h(o)}const u={schedule:(h,f=!1,m=!1)=>{const y=m&&i?t:n;return f&&r.add(h),y.add(h),h},cancel:h=>{n.delete(h),r.delete(h)},process:h=>{if(o=h,i){s=!0;return}i=!0;const f=t;t=n,n=f,t.forEach(c),t.clear(),i=!1,s&&(s=!1,u.process(h))}};return u}const _9=40;function h3(e,t){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Bu.reduce((N,E)=>(N[E]=w9(r),N),{}),{setup:c,read:u,resolveKeyframes:h,preUpdate:f,update:m,preRender:x,render:y,postRender:b}=o,k=()=>{const N=_r.useManualTiming,E=N?s.timestamp:performance.now();n=!1,N||(s.delta=i?1e3/60:Math.max(Math.min(E-s.timestamp,_9),1)),s.timestamp=E,s.isProcessing=!0,c.process(s),u.process(s),h.process(s),f.process(s),m.process(s),x.process(s),y.process(s),b.process(s),s.isProcessing=!1,n&&t&&(i=!1,e(k))},w=()=>{n=!0,i=!0,s.isProcessing||e(k)};return{schedule:Bu.reduce((N,E)=>{const T=o[E];return N[E]=(L,M=!1,A=!1)=>(n||w(),T.schedule(L,M,A)),N},{}),cancel:N=>{for(let E=0;E<Bu.length;E++)o[Bu[E]].cancel(N)},state:s,steps:o}}const{schedule:lt,cancel:Ns,state:an,steps:kg}=h3(typeof requestAnimationFrame<"u"?requestAnimationFrame:ti,!0);let mh;function k9(){mh=void 0}const wn={now:()=>(mh===void 0&&wn.set(an.isProcessing||_r.useManualTiming?an.timestamp:performance.now()),mh),set:e=>{mh=e,queueMicrotask(k9)}},p3=e=>t=>typeof t=="string"&&t.startsWith(e),f3=p3("--"),S9=p3("var(--"),n0=e=>S9(e)?j9.test(e.split("/*")[0].trim()):!1,j9=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function i1(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Vo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Xc={...Vo,transform:e=>Qi(0,1,e)},zu={...Vo,default:1},Nc=e=>Math.round(e*1e5)/1e5,i0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function C9(e){return e==null}const N9=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s0=(e,t)=>n=>!!(typeof n=="string"&&N9.test(n)&&n.startsWith(e)||t&&!C9(n)&&Object.prototype.hasOwnProperty.call(n,t)),m3=(e,t,n)=>i=>{if(typeof i!="string")return i;const[s,r,o,c]=i.match(i0);return{[e]:parseFloat(s),[t]:parseFloat(r),[n]:parseFloat(o),alpha:c!==void 0?parseFloat(c):1}},T9=e=>Qi(0,255,e),Sg={...Vo,transform:e=>Math.round(T9(e))},ua={test:s0("rgb","red"),parse:m3("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+Sg.transform(e)+", "+Sg.transform(t)+", "+Sg.transform(n)+", "+Nc(Xc.transform(i))+")"};function E9(e){let t="",n="",i="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,i+=i,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const Wx={test:s0("#"),parse:E9,transform:ua.transform},fd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ms=fd("deg"),Yi=fd("%"),ke=fd("px"),A9=fd("vh"),P9=fd("vw"),s1={...Yi,parse:e=>Yi.parse(e)/100,transform:e=>Yi.transform(e*100)},vo={test:s0("hsl","hue"),parse:m3("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Yi.transform(Nc(t))+", "+Yi.transform(Nc(n))+", "+Nc(Xc.transform(i))+")"},Dt={test:e=>ua.test(e)||Wx.test(e)||vo.test(e),parse:e=>ua.test(e)?ua.parse(e):vo.test(e)?vo.parse(e):Wx.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ua.transform(e):vo.transform(e),getAnimatableNone:e=>{const t=Dt.parse(e);return t.alpha=0,Dt.transform(t)}},I9=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function R9(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(i0))==null?void 0:t.length)||0)+(((n=e.match(I9))==null?void 0:n.length)||0)>0}const g3="number",x3="color",M9="var",O9="var(",r1="${}",L9=/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 Fo(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},s=[];let r=0;const c=t.replace(L9,u=>(Dt.test(u)?(i.color.push(r),s.push(x3),n.push(Dt.parse(u))):u.startsWith(O9)?(i.var.push(r),s.push(M9),n.push(u)):(i.number.push(r),s.push(g3),n.push(parseFloat(u))),++r,r1)).split(r1);return{values:n,split:c,indexes:i,types:s}}function D9(e){return Fo(e).values}function v3({split:e,types:t}){const n=e.length;return i=>{let s="";for(let r=0;r<n;r++)if(s+=e[r],i[r]!==void 0){const o=t[r];o===g3?s+=Nc(i[r]):o===x3?s+=Dt.transform(i[r]):s+=i[r]}return s}}function F9(e){return v3(Fo(e))}const $9=e=>typeof e=="number"?0:Dt.test(e)?Dt.getAnimatableNone(e):e,B9=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:$9(e);function z9(e){const t=Fo(e);return v3(t)(t.values.map((i,s)=>B9(i,t.split[s])))}const _i={test:R9,parse:D9,createTransformer:F9,getAnimatableNone:z9};function jg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function V9({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let s=0,r=0,o=0;if(!t)s=r=o=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;s=jg(u,c,e+1/3),r=jg(u,c,e),o=jg(u,c,e-1/3)}return{red:Math.round(s*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:i}}function tp(e,t){return n=>n>0?t:e}const ut=(e,t,n)=>e+(t-e)*n,Cg=(e,t,n)=>{const i=e*e,s=n*(t*t-i)+i;return s<0?0:Math.sqrt(s)},H9=[Wx,ua,vo],W9=e=>H9.find(t=>t.test(e));function a1(e){const t=W9(e);if(!t)return!1;let n=t.parse(e);return t===vo&&(n=V9(n)),n}const o1=(e,t)=>{const n=a1(e),i=a1(t);if(!n||!i)return tp(e,t);const s={...n};return r=>(s.red=Cg(n.red,i.red,r),s.green=Cg(n.green,i.green,r),s.blue=Cg(n.blue,i.blue,r),s.alpha=ut(n.alpha,i.alpha,r),ua.transform(s))},qx=new Set(["none","hidden"]);function q9(e,t){return qx.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function U9(e,t){return n=>ut(e,t,n)}function r0(e){return typeof e=="number"?U9:typeof e=="string"?n0(e)?tp:Dt.test(e)?o1:K9:Array.isArray(e)?y3:typeof e=="object"?Dt.test(e)?o1:G9:tp}function y3(e,t){const n=[...e],i=n.length,s=e.map((r,o)=>r0(r)(r,t[o]));return r=>{for(let o=0;o<i;o++)n[o]=s[o](r);return n}}function G9(e,t){const n={...e,...t},i={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(i[s]=r0(e[s])(e[s],t[s]));return s=>{for(const r in i)n[r]=i[r](s);return n}}function Y9(e,t){const n=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const r=t.types[s],o=e.indexes[r][i[r]],c=e.values[o]??0;n[s]=c,i[r]++}return n}const K9=(e,t)=>{const n=_i.createTransformer(t),i=Fo(e),s=Fo(t);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?qx.has(e)&&!s.values.length||qx.has(t)&&!i.values.length?q9(e,t):hd(y3(Y9(i,s),s.values),n):tp(e,t)};function b3(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ut(e,t,n):r0(e)(e,t)}const Q9=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>lt.update(t,n),stop:()=>Ns(t),now:()=>an.isProcessing?an.timestamp:wn.now()}},w3=(e,t,n=10)=>{let i="";const s=Math.max(Math.round(t/n),2);for(let r=0;r<s;r++)i+=Math.round(e(r/(s-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},a0=2e4;function o0(e,t=50,n=a0,i){let s=0,r=e.next(s);for(;!r.done&&s<n;)s+=t,r=e.next(s);return s>=n?1/0:s}function X9(e,t=100,n){const i=n({...e,keyframes:[0,t]}),s=Math.min(o0(i),a0);return{type:"keyframes",ease:r=>i.next(s*r).value/t,duration:Jn(s)}}const Et={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Ux(e,t){return e*Math.sqrt(1-t*t)}const Z9=12;function J9(e,t,n){let i=n;for(let s=1;s<Z9;s++)i=i-e(i)/t(i);return i}const Ng=.001;function eO({duration:e=Et.duration,bounce:t=Et.bounce,velocity:n=Et.velocity,mass:i=Et.mass}){let s,r,o=1-t;o=Qi(Et.minDamping,Et.maxDamping,o),e=Qi(Et.minDuration,Et.maxDuration,Jn(e)),o<1?(s=h=>{const f=h*o,m=f*e,x=f-n,y=Ux(h,o),b=Math.exp(-m);return Ng-x/y*b},r=h=>{const m=h*o*e,x=m*n+n,y=o*o*h*h*e,b=Math.exp(-m),k=Ux(h*h,o);return(-s(h)+Ng>0?-1:1)*((x-y)*b)/k}):(s=h=>{const f=Math.exp(-h*e),m=(h-n)*e+1;return-Ng+f*m},r=h=>{const f=Math.exp(-h*e),m=(n-h)*(e*e);return f*m});const c=5/e,u=J9(s,r,c);if(e=ni(e),isNaN(u))return{stiffness:Et.stiffness,damping:Et.damping,duration:e};{const h=u*u*i;return{stiffness:h,damping:o*2*Math.sqrt(i*h),duration:e}}}const tO=["duration","bounce"],nO=["stiffness","damping","mass"];function l1(e,t){return t.some(n=>e[n]!==void 0)}function iO(e){let t={velocity:Et.velocity,stiffness:Et.stiffness,damping:Et.damping,mass:Et.mass,isResolvedFromDuration:!1,...e};if(!l1(e,nO)&&l1(e,tO))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,i=2*Math.PI/(n*1.2),s=i*i,r=2*Qi(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:Et.mass,stiffness:s,damping:r}}else{const n=eO({...e,velocity:0});t={...t,...n,mass:Et.mass},t.isResolvedFromDuration=!0}return t}function np(e=Et.visualDuration,t=Et.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:s}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],c={done:!1,value:r},{stiffness:u,damping:h,mass:f,duration:m,velocity:x,isResolvedFromDuration:y}=iO({...n,velocity:-Jn(n.velocity||0)}),b=x||0,k=h/(2*Math.sqrt(u*f)),w=o-r,S=Jn(Math.sqrt(u/f)),j=k*S,N=Math.abs(w)<5;i||(i=N?Et.restSpeed.granular:Et.restSpeed.default),s||(s=N?Et.restDelta.granular:Et.restDelta.default);let E,T;if(k<1){const M=Ux(S,k),A=(b+j*w)/M,O=j*A+w*M,G=j*w-A*M;let X=-1,ee=0,le=0;const re=ne=>{if(ne!==X){X=ne;const Z=Math.exp(-j*ne),ce=Math.sin(M*ne),W=Math.cos(M*ne);ee=o-Z*(A*ce+w*W),le=Z*(O*ce+G*W)}};E=ne=>(re(ne),ee),T=ne=>(re(ne),le)}else if(k===1){E=A=>o-Math.exp(-S*A)*(w+(b+S*w)*A);const M=b+S*w;T=A=>Math.exp(-S*A)*(S*M*A-b)}else{const M=S*Math.sqrt(k*k-1);E=X=>{const ee=Math.exp(-j*X),le=Math.min(M*X,300);return o-ee*((b+j*w)*Math.sinh(le)+M*w*Math.cosh(le))/M};const A=(b+j*w)/M,O=j*A-w*M,G=j*w-A*M;T=X=>{const ee=Math.exp(-j*X),le=Math.min(M*X,300);return ee*(O*Math.sinh(le)+G*Math.cosh(le))}}const L={calculatedDuration:y&&m||null,velocity:M=>ni(T(M)),next:M=>{const A=E(M);if(y)c.done=M>=m;else{const O=ni(T(M));c.done=Math.abs(O)<=i&&Math.abs(o-A)<=s}return c.value=c.done?o:A,c},toString:()=>{const M=Math.min(o0(L),a0),A=w3(O=>L.next(M*O).value,M,30);return M+"ms "+A},toTransition:()=>{}};return L}np.applyToOptions=e=>{const t=X9(e,100,np);return e.ease=t.ease,e.duration=ni(t.duration),e.type="keyframes",e};function Gx({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:c,max:u,restDelta:h=.5,restSpeed:f}){const m=e[0],x={done:!1,value:m},y=M=>M<c||M>u,b=M=>c===void 0?u:u===void 0||Math.abs(c-M)<Math.abs(u-M)?c:u;let k=n*t;const w=m+k,S=o===void 0?w:o(w);S!==w&&(k=S-m);const j=M=>-k*Math.exp(-M/i),N=M=>{const A=j(M);x.done=Math.abs(A)<=h,x.value=x.done?S:S+A};let E,T;const L=M=>{y(x.value)&&(E=M,T=np({keyframes:[x.value,b(x.value)],velocity:-j(M)/i*1e3,damping:s,stiffness:r,restDelta:h,restSpeed:f}))};return L(0),{calculatedDuration:null,next:M=>{let A=!1;return!T&&E===void 0&&(A=!0,N(M),L(M)),E!==void 0&&M>=E?T.next(M-E):(!A&&N(M),x)}}}function sO(e,t,n){const i=[],s=n||_r.mix||b3,r=e.length-1;for(let o=0;o<r;o++){let c=s(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||ti:t;c=hd(u,c)}i.push(c)}return i}function _3(e,t,{clamp:n=!0,ease:i,mixer:s}={}){const r=e.length;if(Pp(r===t.length),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=sO(t,i,s),u=c.length,h=f=>{if(o&&f<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(f<e[m+1]);m++);const x=Qc(e[m],e[m+1],f);return c[m](x)};return n?f=>h(Qi(e[0],e[r-1],f)):h}function rO(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const s=Qc(0,t,i);e.push(ut(n,1,s))}}function aO(e){const t=[0];return rO(t,e.length-1),t}function oO(e,t){return e.map(n=>n*t)}function lO(e,t){return e.map(()=>t||d3).splice(0,e.length-1)}function Tc({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const s=v9(i)?i.map(n1):n1(i),r={done:!1,value:t[0]},o=oO(n&&n.length===t.length?n:aO(t),e),c=_3(o,t,{ease:Array.isArray(s)?s:lO(t,s)});return{calculatedDuration:e,next:u=>(r.value=c(u),r.done=u>=e,r)}}const cO=5;function dO(e,t,n){const i=Math.max(t-cO,0);return t3(n-e(i),t-i)}const uO=e=>e!==null;function Ip(e,{repeat:t,repeatType:n="loop"},i,s=1){const r=e.filter(uO),c=s<0||t&&n!=="loop"&&t%2===1?0:r.length-1;return!c||i===void 0?r[c]:i}const hO={decay:Gx,inertia:Gx,tween:Tc,keyframes:Tc,spring:np};function k3(e){typeof e.type=="string"&&(e.type=hO[e.type])}class l0{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const pO=e=>e/100;class Zc extends l0{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var i,s;const{motionValue:n}=this.options;n&&n.updatedAt!==wn.now()&&this.tick(wn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(i=this.options).onStop)==null||s.call(i))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;k3(t);const{type:n=Tc,repeat:i=0,repeatDelay:s=0,repeatType:r,velocity:o=0}=t;let{keyframes:c}=t;const u=n||Tc;u!==Tc&&typeof c[0]!="number"&&(this.mixKeyframes=hd(pO,b3(c[0],c[1])),c=[0,100]);const h=u({...t,keyframes:c});r==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...c].reverse(),velocity:-o})),h.calculatedDuration===null&&(h.calculatedDuration=o0(h));const{calculatedDuration:f}=h;this.calculatedDuration=f,this.resolvedDuration=f+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=h}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:i,totalDuration:s,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:c,calculatedDuration:u}=this;if(this.startTime===null)return i.next(0);const{delay:h=0,keyframes:f,repeat:m,repeatType:x,repeatDelay:y,type:b,onUpdate:k,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const S=this.currentTime-h*(this.playbackSpeed>=0?1:-1),j=this.playbackSpeed>=0?S<0:S>s;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let N=this.currentTime,E=i;if(m){const A=Math.min(this.currentTime,s)/c;let O=Math.floor(A),G=A%1;!G&&A>=1&&(G=1),G===1&&O--,O=Math.min(O,m+1),!!(O%2)&&(x==="reverse"?(G=1-G,y&&(G-=y/c)):x==="mirror"&&(E=o)),N=Qi(0,1,G)*c}let T;j?(this.delayState.value=f[0],T=this.delayState):T=E.next(N),r&&!j&&(T.value=r(T.value));let{done:L}=T;!j&&u!==null&&(L=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return M&&b!==Gx&&(T.value=Ip(f,this.options,w,this.speed)),k&&k(T.value),M&&this.finish(),T}then(t,n){return this.finished.then(t,n)}get duration(){return Jn(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Jn(t)}get time(){return Jn(this.currentTime)}set time(t){t=ni(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return dO(i=>this.generator.next(i).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(wn.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Jn(this.currentTime))}play(){var s,r;if(this.isStopped)return;const{driver:t=Q9,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(r=(s=this.options).onPlay)==null||r.call(s);const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=n??i),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(wn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function fO(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ha=e=>e*180/Math.PI,Yx=e=>{const t=ha(Math.atan2(e[1],e[0]));return Kx(t)},mO={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Yx,rotateZ:Yx,skewX:e=>ha(Math.atan(e[1])),skewY:e=>ha(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Kx=e=>(e=e%360,e<0&&(e+=360),e),c1=Yx,d1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),u1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),gO={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:d1,scaleY:u1,scale:e=>(d1(e)+u1(e))/2,rotateX:e=>Kx(ha(Math.atan2(e[6],e[5]))),rotateY:e=>Kx(ha(Math.atan2(-e[2],e[0]))),rotateZ:c1,rotate:c1,skewX:e=>ha(Math.atan(e[4])),skewY:e=>ha(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Qx(e){return e.includes("scale")?1:0}function Xx(e,t){if(!e||e==="none")return Qx(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,s;if(n)i=gO,s=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=mO,s=c}if(!s)return Qx(t);const r=i[t],o=s[1].split(",").map(vO);return typeof r=="function"?r(o):o[r]}const xO=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Xx(n,t)};function vO(e){return parseFloat(e.trim())}const Ho=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Wo=new Set([...Ho,"pathRotation"]),h1=e=>e===Vo||e===ke,yO=new Set(["x","y","z"]),bO=Ho.filter(e=>!yO.has(e));function wO(e){const t=[];return bO.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const dr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:i})=>{const s=e.max-e.min;return i==="border-box"?s:s-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:i})=>{const s=e.max-e.min;return i==="border-box"?s:s-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})=>Xx(t,"x"),y:(e,{transform:t})=>Xx(t,"y")};dr.translateX=dr.x;dr.translateY=dr.y;const xa=new Set;let Zx=!1,Jx=!1,ev=!1;function S3(){if(Jx){const e=Array.from(xa).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const s=wO(i);s.length&&(n.set(i,s),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const s=n.get(i);s&&s.forEach(([r,o])=>{var c;(c=i.getValue(r))==null||c.set(o)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Jx=!1,Zx=!1,xa.forEach(e=>e.complete(ev)),xa.clear()}function j3(){xa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Jx=!0)})}function _O(){ev=!0,j3(),S3(),ev=!1}class c0{constructor(t,n,i,s,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=i,this.motionValue=s,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(xa.add(this),Zx||(Zx=!0,lt.read(j3),lt.resolveKeyframes(S3))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:i,motionValue:s}=this;if(t[0]===null){const r=s==null?void 0:s.get(),o=t[t.length-1];if(r!==void 0)t[0]=r;else if(i&&n){const c=i.readValue(n,o);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=o),s&&r===void 0&&s.set(t[0])}fO(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),xa.delete(this)}cancel(){this.state==="scheduled"&&(xa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const kO=e=>e.startsWith("--");function C3(e,t,n){kO(t)?e.style.setProperty(t,n):e.style[t]=n}const SO={};function N3(e,t){const n=e3(e);return()=>SO[t]??n()}const jO=N3(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),T3=N3(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),lc=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,p1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:lc([0,.65,.55,1]),circOut:lc([.55,0,1,.45]),backIn:lc([.31,.01,.66,-.59]),backOut:lc([.33,1.53,.69,.99])};function E3(e,t){if(e)return typeof e=="function"?T3()?w3(e,t):"ease-out":u3(e)?lc(e):Array.isArray(e)?e.map(n=>E3(n,t)||p1.easeOut):p1[e]}function CO(e,t,n,{delay:i=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:c="easeOut",times:u}={},h=void 0){const f={[t]:n};u&&(f.offset=u);const m=E3(c,s);Array.isArray(m)&&(f.easing=m);const x={delay:i,duration:s,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return h&&(x.pseudoElement=h),e.animate(f,x)}function A3(e){return typeof e=="function"&&"applyToOptions"in e}function NO({type:e,...t}){return A3(e)&&T3()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class P3 extends l0{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:i,keyframes:s,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:c,onComplete:u}=t;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=t,Pp(typeof t.type!="string");const h=NO(t);this.animation=CO(n,i,s,h,r),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const f=Ip(s,this.options,c,this.speed);this.updateMotionValue&&this.updateMotionValue(f),C3(n,i,f),this.animation.cancel()}u==null||u(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,i,s;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(i=this.animation).commitStyles)==null||s.call(i))}get duration(){var n,i;const t=((i=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:i.call(n).duration)||0;return Jn(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Jn(t)}get time(){return Jn(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ni(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:i,observe:s}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&jO()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),i&&(this.animation.rangeEnd=i),ti):s(this)}}const I3={anticipate:o3,backInOut:a3,circInOut:c3};function TO(e){return e in I3}function EO(e){typeof e.ease=="string"&&TO(e.ease)&&(e.ease=I3[e.ease])}const Tg=10;class AO extends P3{constructor(t){EO(t),k3(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:i,onComplete:s,element:r,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const c=new Zc({...o,autoplay:!1}),u=Math.max(Tg,wn.now()-this.startTime),h=Qi(0,Tg,u-Tg),f=c.sample(u).value,{name:m}=this.options;r&&m&&C3(r,m,f),n.setWithVelocity(c.sample(Math.max(0,u-h)).value,f,h),c.stop()}}const f1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(_i.test(e)||e==="0")&&!e.startsWith("url("));function PO(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function IO(e,t,n,i){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const r=e[e.length-1],o=f1(s,t),c=f1(r,t);return!o||!c?!1:PO(e)||(n==="spring"||A3(n))&&i}function tv(e){e.duration=0,e.type="keyframes"}const R3=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),RO=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function MO(e){for(let t=0;t<e.length;
197t++)if(typeof e[t]=="string"&&RO.test(e[t]))return!0;return!1}const OO=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),LO=e3(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function DO(e){var m;const{motionValue:t,name:n,repeatDelay:i,repeatType:s,damping:r,type:o,keyframes:c}=e,u=(m=t==null?void 0:t.owner)==null?void 0:m.current;if(!(u instanceof HTMLElement)&&!(u instanceof SVGElement))return!1;const{onUpdate:h,transformTemplate:f}=t.owner.getProps();return LO()&&n&&(R3.has(n)||OO.has(n)&&MO(c))&&(n!=="transform"||!f)&&!h&&!i&&s!=="mirror"&&r!==0&&o!=="inertia"}const FO=40;class $O extends l0{constructor({autoplay:t=!0,delay:n=0,type:i="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:o="loop",keyframes:c,name:u,motionValue:h,element:f,...m}){var b;super(),this.stop=()=>{var k,w;this._animation&&(this._animation.stop(),(k=this.stopTimeline)==null||k.call(this)),(w=this.keyframeResolver)==null||w.cancel()},this.createdAt=wn.now();const x={autoplay:t,delay:n,type:i,repeat:s,repeatDelay:r,repeatType:o,name:u,motionValue:h,element:f,...m},y=(f==null?void 0:f.KeyframeResolver)||c0;this.keyframeResolver=new y(c,(k,w,S)=>this.onKeyframesResolved(k,w,x,!S),u,h,f),(b=this.keyframeResolver)==null||b.scheduleResolve()}onKeyframesResolved(t,n,i,s){var S,j;this.keyframeResolver=void 0;const{name:r,type:o,velocity:c,delay:u,isHandoff:h,onUpdate:f}=i;this.resolvedAt=wn.now();let m=!0;IO(t,r,o,c)||(m=!1,(_r.instantAnimations||!u)&&(f==null||f(Ip(t,i,n))),t[0]=t[t.length-1],tv(i),i.repeat=0);const y={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>FO?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:t},b=m&&!h&&DO(y),k=(j=(S=y.motionValue)==null?void 0:S.owner)==null?void 0:j.current;let w;if(b)try{w=new AO({...y,element:k})}catch{w=new Zc(y)}else w=new Zc(y);w.finished.then(()=>{this.notifyFinished()}).catch(ti),this.pendingTimeline&&(this.stopTimeline=w.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=w}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),_O()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function M3(e,t,n,i=0,s=1){const r=Array.from(e).sort((h,f)=>h.sortNodePosition(f)).indexOf(t),o=e.size,c=(o-1)*i;return typeof n=="function"?n(r,o):s===1?r*i:c-r*i}const m1=30,BO=e=>!isNaN(parseFloat(e)),Ec={current:void 0};class zO{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{var r;const s=wn.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&((r=this.events.change)==null||r.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=wn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=BO(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Jv);const i=this.events[t].add(n);return t==="change"?()=>{i(),lt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Ec.current&&Ec.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=wn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>m1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,m1);return t3(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function _a(e,t){return new zO(e,t)}function O3(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...i}=e;return{...t,...i}}return e}function d0(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?O3(n,e):n}const VO={type:"spring",stiffness:500,damping:25,restSpeed:10},HO=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),WO={type:"keyframes",duration:.8},qO={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},UO=(e,{keyframes:t})=>t.length>2?WO:Wo.has(e)?e.startsWith("scale")?HO(t[1]):VO:qO,GO=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function YO(e){for(const t in e)if(!GO.has(t))return!0;return!1}const u0=(e,t,n,i={},s,r)=>o=>{const c=d0(i,e)||{},u=c.delay||i.delay||0;
vendor: 13,366 bytes, line 197
197let{elapsed:h=0}=i;h=h-ni(u);const f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-h,onUpdate:x=>{t.set(x),c.onUpdate&&c.onUpdate(x)},onComplete:()=>{o(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:r?void 0:s};YO(c)||Object.assign(f,UO(e,f)),f.duration&&(f.duration=ni(f.duration)),f.repeatDelay&&(f.repeatDelay=ni(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let m=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(tv(f),f.delay===0&&(m=!0)),(_r.instantAnimations||_r.skipAnimations||s!=null&&s.shouldSkipAnimations||c.skipAnimations)&&(m=!0,tv(f),f.delay=0),f.allowFlatten=!c.type&&!c.ease,m&&!r&&t.get()!==void 0){const x=Ip(f.keyframes,c);if(x!==void 0){lt.update(()=>{f.onUpdate(x),f.onComplete()});return}}return c.isSync?new Zc(f):new $O(f)},KO=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function QO(e){const t=KO.exec(e);if(!t)return[,];const[,n,i,s]=t;return[`--${n??i}`,s]}function L3(e,t,n=1){const[i,s]=QO(e);if(!i)return;const r=window.getComputedStyle(t).getPropertyValue(i);if(r){const o=r.trim();return XC(o)?parseFloat(o):o}return n0(s)?L3(s,t,n+1):s}function g1(e){const t=[{},{}];return e==null||e.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function h0(e,t,n,i){if(typeof t=="function"){const[s,r]=g1(i);t=t(n!==void 0?n:e.custom,s,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,r]=g1(i);t=t(n!==void 0?n:e.custom,s,r)}return t}function va(e,t,n){const i=e.getProps();return h0(i,t,n!==void 0?n:i.custom,e)}const D3=new Set(["width","height","top","left","right","bottom",...Ho]),nv=e=>Array.isArray(e);function XO(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_a(n))}function ZO(e){return nv(e)?e[e.length-1]||0:e}function JO(e,t){const n=va(e,t);let{transitionEnd:i={},transition:s={},...r}=n||{};r={...r,...i};for(const o in r){const c=ZO(r[o]);XO(e,o,c)}}const Kt=e=>!!(e&&e.getVelocity);function eL(e){return!!(Kt(e)&&e.add)}function iv(e,t){const n=e.getValue("willChange");if(eL(n))return n.add(t);if(!n&&_r.WillChange){const i=new _r.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function p0(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const tL="framerAppearId",F3="data-"+p0(tL);function $3(e){return e.props[F3]}const nL=typeof window<"u";function iL({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function B3(e,t,{delay:n=0,transitionOverride:i,type:s}={}){let{transition:r,transitionEnd:o,...c}=t;const u=e.getDefaultTransition();r=r?O3(r,u):u;const h=r==null?void 0:r.reduceMotion,f=r==null?void 0:r.skipAnimations;i&&(r=i);const m=[],x=s&&e.animationState&&e.animationState.getState()[s],y=r==null?void 0:r.path;y&&y.animateVisualElement(e,c,r,n,m);for(const b in c){const k=e.getValue(b,e.latestValues[b]??null),w=c[b];if(w===void 0||x&&iL(x,b))continue;const S={delay:n,...d0(r||{},b)};f&&(S.skipAnimations=!0);const j=k.get();if(j!==void 0&&!k.isAnimating()&&!Array.isArray(w)&&w===j&&!S.velocity){lt.update(()=>k.set(w));continue}let N=!1;if(nL&&window.MotionHandoffAnimation){const L=$3(e);if(L){const M=window.MotionHandoffAnimation(L,b,lt);M!==null&&(S.startTime=M,N=!0)}}iv(e,b);const E=h??e.shouldReduceMotion;k.start(u0(b,k,w,E&&D3.has(b)?{type:!1}:S,e,N));const T=k.animation;T&&m.push(T)}if(o){const b=()=>lt.update(()=>{o&&JO(e,o)});m.length?Promise.all(m).then(b):b()}return m}function sv(e,t,n={}){var u;const i=va(e,t,n.type==="exit"?(u=e.presenceContext)==null?void 0:u.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const r=i?()=>Promise.all(B3(e,i,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:f=0,staggerChildren:m,staggerDirection:x}=s;return sL(e,t,h,f,m,x,n)}:()=>Promise.resolve(),{when:c}=s;if(c){const[h,f]=c==="beforeChildren"?[r,o]:[o,r];return h().then(()=>f())}else return Promise.all([r(),o(n.delay)])}function sL(e,t,n=0,i=0,s=0,r=1,o){const c=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),c.push(sv(u,t,{...o,delay:n+(typeof i=="function"?0:i)+M3(e.variantChildren,u,i,s,r)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(c)}function rL(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const s=t.map(r=>sv(e,r,n));i=Promise.all(s)}else if(typeof t=="string")i=sv(e,t,n);else{const s=typeof t=="function"?va(e,t,n.custom):t;i=Promise.all(B3(e,s,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}const aL={test:e=>e==="auto",parse:e=>e},z3=e=>t=>t.test(e),V3=[Vo,ke,Yi,ms,P9,A9,aL],x1=e=>V3.find(z3(e));function oL(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||JC(e):!0}const lL=new Set(["brightness","contrast","saturate","opacity"]);function cL(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(i0)||[];if(!i)return e;const s=n.replace(i,"");let r=lL.has(t)?1:0;return i!==n&&(r*=100),t+"("+r+s+")"}const dL=/\b([a-z-]*)\(.*?\)/gu,rv={..._i,getAnimatableNone:e=>{const t=e.match(dL);return t?t.map(cL).join(" "):e}},av={..._i,getAnimatableNone:e=>{const t=_i.parse(e);return _i.createTransformer(e)(t.map(i=>typeof i=="number"?0:typeof i=="object"?{...i,alpha:1}:i))}},v1={...Vo,transform:Math.round},uL={rotate:ms,pathRotation:ms,rotateX:ms,rotateY:ms,rotateZ:ms,scale:zu,scaleX:zu,scaleY:zu,scaleZ:zu,skew:ms,skewX:ms,skewY:ms,distance:ke,translateX:ke,translateY:ke,translateZ:ke,x:ke,y:ke,z:ke,perspective:ke,transformPerspective:ke,opacity:Xc,originX:s1,originY:s1,originZ:ke},ip={borderWidth:ke,borderTopWidth:ke,borderRightWidth:ke,borderBottomWidth:ke,borderLeftWidth:ke,borderRadius:ke,borderTopLeftRadius:ke,borderTopRightRadius:ke,borderBottomRightRadius:ke,borderBottomLeftRadius:ke,width:ke,maxWidth:ke,height:ke,maxHeight:ke,top:ke,right:ke,bottom:ke,left:ke,inset:ke,insetBlock:ke,insetBlockStart:ke,insetBlockEnd:ke,insetInline:ke,insetInlineStart:ke,insetInlineEnd:ke,padding:ke,paddingTop:ke,paddingRight:ke,paddingBottom:ke,paddingLeft:ke,paddingBlock:ke,paddingBlockStart:ke,paddingBlockEnd:ke,paddingInline:ke,paddingInlineStart:ke,paddingInlineEnd:ke,margin:ke,marginTop:ke,marginRight:ke,marginBottom:ke,marginLeft:ke,marginBlock:ke,marginBlockStart:ke,marginBlockEnd:ke,marginInline:ke,marginInlineStart:ke,marginInlineEnd:ke,fontSize:ke,backgroundPositionX:ke,backgroundPositionY:ke,...uL,zIndex:v1,fillOpacity:Xc,strokeOpacity:Xc,numOctaves:v1},hL={...ip,color:Dt,backgroundColor:Dt,outlineColor:Dt,fill:Dt,stroke:Dt,borderColor:Dt,borderTopColor:Dt,borderRightColor:Dt,borderBottomColor:Dt,borderLeftColor:Dt,filter:rv,WebkitFilter:rv,mask:av,WebkitMask:av},H3=e=>hL[e],pL=new Set([rv,av]);function W3(e,t){let n=H3(e);return pL.has(n)||(n=_i),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const fL=new Set(["auto","none","0"]);function mL(e,t,n){let i=0,s;for(;i<e.length&&!s;){const r=e[i];typeof r=="string"&&!fL.has(r)&&Fo(r).values.length&&(s=e[i]),i++}if(s&&n)for(const r of t)e[r]=W3(n,s)}class gL extends c0{constructor(t,n,i,s,r){super(t,n,i,s,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let m=t[f];if(typeof m=="string"&&(m=m.trim(),n0(m))){const x=L3(m,n.current);x!==void 0&&(t[f]=x),f===t.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!D3.has(i)||t.length!==2)return;const[s,r]=t,o=x1(s),c=x1(r),u=i1(s),h=i1(r);if(u!==h&&dr[i]){this.needsMeasurement=!0;return}if(o!==c)if(h1(o)&&h1(c))for(let f=0;f<t.length;f++){const m=t[f];typeof m=="string"&&(t[f]=parseFloat(m))}else dr[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,i=[];for(let s=0;s<t.length;s++)(t[s]===null||oL(t[s]))&&i.push(s);i.length&&mL(t,i,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=dr[i](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(i,s).jump(s,!1)}measureEndState(){var c;const{element:t,name:n,unresolvedKeyframes:i}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const r=i.length-1,o=i[r];i[r]=dr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(c=this.removedTransforms)!=null&&c.length&&this.removedTransforms.forEach(([u,h])=>{t.getValue(u).set(h)}),this.resolveNoneKeyframes()}}const f0=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function m0(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const s=document.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(i=>i!=null)}const ov=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function gh(e){return ZC(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:g0}=h3(queueMicrotask,!1),yi={x:!1,y:!1};function q3(){return yi.x||yi.y}function xL(e){return e==="x"||e==="y"?yi[e]?null:(yi[e]=!0,()=>{yi[e]=!1}):yi.x||yi.y?null:(yi.x=yi.y=!0,()=>{yi.x=yi.y=!1})}function U3(e,t){const n=m0(e),i=new AbortController,s={passive:!0,...t,signal:i.signal};return[n,s,()=>i.abort()]}function vL(e){return!(e.pointerType==="touch"||q3())}function yL(e,t,n={}){const[i,s,r]=U3(e,n);return i.forEach(o=>{let c=!1,u=!1,h;const f=()=>{o.removeEventListener("pointerleave",b)},m=w=>{h&&(h(w),h=void 0),f()},x=w=>{c=!1,window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",x),u&&(u=!1,m(w))},y=()=>{c=!0,window.addEventListener("pointerup",x,s),window.addEventListener("pointercancel",x,s)},b=w=>{if(w.pointerType!=="touch"){if(c){u=!0;return}m(w)}},k=w=>{if(!vL(w))return;u=!1;const S=t(o,w);typeof S=="function"&&(h=S,o.addEventListener("pointerleave",b,s))};o.addEventListener("pointerenter",k,s),o.addEventListener("pointerdown",y,s)}),r}const G3=(e,t)=>t?e===t?!0:G3(e,t.parentElement):!1,x0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,bL=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wL(e){return bL.has(e.tagName)||e.isContentEditable===!0}const _L=new Set(["INPUT","SELECT","TEXTAREA"]);function kL(e){return _L.has(e.tagName)||e.isContentEditable===!0}const xh=new WeakSet;function y1(e){return t=>{t.key==="Enter"&&e(t)}}function Eg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const SL=(e,t)=>{const n=e.currentTarget;if(!n)return;const i=y1(()=>{if(xh.has(n))return;Eg(n,"down");const s=y1(()=>{Eg(n,"up")}),r=()=>Eg(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",r,t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)};function b1(e){return x0(e)&&!q3()}const w1=new WeakSet;function jL(e,t,n={}){const[i,s,r]=U3(e,n),o=c=>{const u=c.currentTarget;if(!b1(c)||w1.has(c))return;xh.add(u),n.stopPropagation&&w1.add(c);const h=t(u,c),f={...s,capture:!0},m=(b,k)=>{window.removeEventListener("pointerup",x,f),window.removeEventListener("pointercancel",y,f),xh.has(u)&&xh.delete(u),b1(b)&&typeof h=="function"&&h(b,{success:k})},x=b=>{m(b,u===window||u===document||n.useGlobalTarget||G3(u,b.target))},y=b=>{m(b,!1)};window.addEventListener("pointerup",x,f),window.addEventListener("pointercancel",y,f)};return i.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",o,s),gh(c)&&(c.addEventListener("focus",h=>SL(h,s)),!wL(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),r}function v0(e){return ZC(e)&&"ownerSVGElement"in e}const vh=new WeakMap;let nr;const Y3=(e,t,n)=>(i,s)=>s&&s[0]?s[0][e+"Size"]:v0(i)&&"getBBox"in i?i.getBBox()[t]:i[n],CL=Y3("inline","width","offsetWidth"),NL=Y3("block","height","offsetHeight");function TL({target:e,borderBoxSize:t}){var n;(n=vh.get(e))==null||n.forEach(i=>{i(e,{get width(){return CL(e,t)},get height(){return NL(e,t)}})})}function EL(e){e.forEach(TL)}function AL(){typeof ResizeObserver>"u"||(nr=new ResizeObserver(EL))}function PL(e,t){nr||AL();const n=m0(e);return n.forEach(i=>{let s=vh.get(i);s||(s=new Set,vh.set(i,s)),s.add(t),nr==null||nr.observe(i)}),()=>{n.forEach(i=>{const s=vh.get(i);s==null||s.delete(t),s!=null&&s.size||nr==null||nr.unobserve(i)})}}const yh=new Set;let yo;function IL(){yo=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};yh.forEach(t=>t(e))},window.addEventListener("resize",yo)}function RL(e){return yh.add(e),yo||IL(),()=>{yh.delete(e),!yh.size&&typeof yo=="function"&&(window.removeEventListener("resize",yo),yo=void 0)}}function _1(e,t){return typeof e=="function"?RL(e):PL(e,t)}function ML(e){return v0(e)&&e.tagName==="svg"}function OL(...e){const t=!Array.isArray(e[0]),n=t?0:-1,i=e[0+n],s=e[1+n],r=e[2+n],o=e[3+n],c=_3(s,r,o);return t?c(i):c}function LL(e,t,n={}){const i=e.get();let s=null,r=i,o;const c=typeof i=="string"?i.replace(/[\d.-]/g,""):void 0,u=()=>{s&&(s.stop(),s=null),e.animation=void 0},h=()=>{const m=k1(e.get()),x=k1(r);if(m===x){u();return}const y=s?s.getGeneratorVelocity():e.getVelocity();u(),s=new Zc({keyframes:[m,x],velocity:y,type:"spring",restDelta:.001,restSpeed:.01,...n,onUp
197date:o})},f=()=>{var m;h(),e.animation=s??void 0,(m=e.events.animationStart)==null||m.notify(),s==null||s.then(()=>{var x;e.animation=void 0,(x=e.events.animationComplete)==null||x.notify()})};if(e.attach((m,x)=>{r=m,o=y=>x(Ag(y,c)),lt.postRender(f)},u),Kt(t)){let m=n.skipInitialAnimation===!0;const x=t.on("change",b=>{m?(m=!1,e.jump(Ag(b,c),!1)):e.set(Ag(b,c))}),y=e.on("destroy",x);return()=>{x(),y()}}return u}function Ag(e,t){return t?e+t:e}function k1(e){return typeof e=="number"?e:parseFloat(e)}const DL=[...V3,Dt,_i],FL=e=>DL.find(z3(e)),S1=()=>({translate:0,scale:1,origin:0,originPoint:0}),bo=()=>({x:S1(),y:S1()}),j1=()=>({min:0,max:0}),qt=()=>({x:j1(),y:j1()}),$L=new WeakMap;function Rp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Jc(e){return typeof e=="string"||Array.isArray(e)}const y0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],b0=["initial",...y0];function Mp(e){return Rp(e.animate)||b0.some(t=>Jc(e[t]))}function K3(e){return!!(Mp(e)||e.variants)}function BL(e,t,n){for(const i in t){const s=t[i],r=n[i];if(Kt(s))e.addValue(i,s);else if(Kt(r))e.addValue(i,_a(s,{owner:e}));else if(r!==s)if(e.hasValue(i)){const o=e.getValue(i);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(i);e.addValue(i,_a(o!==void 0?o:s,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const sp={current:null},w0={current:!1},zL=typeof window<"u";function Q3(){if(w0.current=!0,!!zL)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sp.current=e.matches;e.addEventListener("change",t),t()}else sp.current=!1}const C1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let rp={};function X3(e){rp=e}function VL(){return rp}class HL{scrapeMotionValuesFromProps(t,n,i){return{}}constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:s,skipAnimations:r,blockInitialAnimation:o,visualState:c},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=c0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=wn.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,lt.render(this.render,!1,!0))};const{latestValues:h,renderState:f}=c;this.latestValues=h,this.baseTarget={...h},this.initialValues=n.initial?{...h}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=r,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=Mp(n),this.isVariantNode=K3(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...x}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in x){const b=x[y];h[y]!==void 0&&Kt(b)&&b.set(h[y])}}mount(t){var n,i;if(this.hasBeenMounted)for(const s in this.initialValues)(n=this.values.get(s))==null||n.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,$L.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,r)=>this.bindToMotionValue(r,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(w0.current||Q3(),this.shouldReduceMotion=sp.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(i=this.parent)==null||i.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Ns(this.notifyUpdate),Ns(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const i=this.features[n];i&&(i.unmount(),i.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&R3.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:c,times:u,ease:h,duration:f}=n.accelerate,m=new P3({element:this.current,name:t,keyframes:c,times:u,ease:h,duration:ni(f)}),x=o(m);this.valueSubscriptions.set(t,()=>{x(),m.cancel()});return}const i=Wo.has(t);i&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&lt.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),r&&r()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in rp){const n=rp[t];if(!n)continue;const{isEnabled:i,Feature:s}=n;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){const r=this.features[t];
vendor: 31,281 bytes, line 197
197r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):qt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<C1.length;i++){const s=C1[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const r="on"+s,o=t[r];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=BL(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const i=this.values.get(t);n!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&n!==void 0&&(i=_a(n===null?void 0:n,{owner:this}),this.addValue(t,i)),i}readValue(t,n){let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(XC(i)||JC(i))?i=parseFloat(i):!FL(i)&&_i.test(n)&&(i=W3(t,n)),this.setBaseTarget(t,Kt(i)?i.get():i)),Kt(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var r;const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const o=h0(this.props,n,(r=this.presenceContext)==null?void 0:r.custom);o&&(i=o[t])}if(n&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Kt(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Jv),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){g0.render(this.render)}}class Z3 extends HL{constructor(){super(...arguments),this.KeyframeResolver=gL}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const i=t.style;return i?i[n]:void 0}removeValueFromRenderState(t,{vars:n,style:i}){delete n[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Kt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Er{constructor(t){this.isMounted=!1,this.node=t}update(){}}function J3({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function WL({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function qL(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Pg(e){return e===void 0||e===1}function lv({scale:e,scaleX:t,scaleY:n}){return!Pg(e)||!Pg(t)||!Pg(n)}function ca(e){return lv(e)||eN(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function eN(e){return N1(e.x)||N1(e.y)}function N1(e){return e&&e!=="0%"}function ap(e,t,n){const i=e-n,s=t*i;return n+s}function T1(e,t,n,i,s){return s!==void 0&&(e=ap(e,s,i)),ap(e,n,i)+t}function cv(e,t=0,n=1,i,s){e.min=T1(e.min,t,n,i,s),e.max=T1(e.max,t,n,i,s)}function tN(e,{x:t,y:n}){cv(e.x,t.translate,t.scale,t.originPoint),cv(e.y,n.translate,n.scale,n.originPoint)}const E1=.999999999999,A1=1.0000000000001;function UL(e,t,n,i=!1){var c;const s=n.length;if(!s)return;t.x=t.y=1;let r,o;for(let u=0;u<s;u++){r=n[u],o=r.projectionDelta;const{visualElement:h}=r.options;h&&h.props.style&&h.props.style.display==="contents"||(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(Hi(e.x,-r.scroll.offset.x),Hi(e.y,-r.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,tN(e,o)),i&&ca(r.latestValues)&&bh(e,r.latestValues,(c=r.layout)==null?void 0:c.layoutBox))}t.x<A1&&t.x>E1&&(t.x=1),t.y<A1&&t.y>E1&&(t.y=1)}function Hi(e,t){e.min+=t,e.max+=t}function P1(e,t,n,i,s=.5){const r=ut(e.min,e.max,s);cv(e,t,n,r,i)}function I1(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function bh(e,t,n){const i=n??e;P1(e.x,I1(t.x,i.x),t.scaleX,t.scale,t.originX),P1(e.y,I1(t.y,i.y),t.scaleY,t.scale,t.originY)}function nN(e,t){return J3(qL(e.getBoundingClientRect(),t))}function GL(e,t,n){const i=nN(e,n),{scroll:s}=t;return s&&(Hi(i.x,s.offset.x),Hi(i.y,s.offset.y)),i}const YL={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},KL=Ho.length;function QL(e,t,n){let i="",s=!0;for(let o=0;o<KL;o++){const c=Ho[o],u=e[c];if(u===void 0)continue;let h=!0;if(typeof u=="number")h=u===(c.startsWith("scale")?1:0);else{const f=parseFloat(u);h=c.startsWith("scale")?f===1:f===0}if(!h||n){const f=ov(u,ip[c]);if(!h){s=!1;const m=YL[c]||c;i+=`${m}(${f}) `}n&&(t[c]=f)}}const r=e.pathRotation;return r&&(s=!1,i+=`rotate(${ov(r,ip.pathRotation)}) `),i=i.trim(),n?i=n(t,s?"":i):s&&(i="none"),i}function _0(e,t,n){const{style:i,vars:s,transformOrigin:r}=e;let o=!1,c=!1;for(const u in t){const h=t[u];if(Wo.has(u)){o=!0;continue}else if(f3(u)){s[u]=h;continue}else{const f=ov(h,ip[u]);u.startsWith("origin")?(c=!0,r[u]=f):i[u]=f}}if(t.transform||(o||n?i.transform=QL(t,e.transform,n):i.transform&&(i.transform="none")),c){const{originX:u="50%",originY:h="50%",originZ:f=0}=r;i.transformOrigin=`${u} ${h} ${f}`}}function iN(e,{style:t,vars:n},i,s){const r=e.style;let o;for(o in t)r[o]=t[o];s==null||s.applyProjectionStyles(r,i);for(o in n)r.setProperty(o,n[o])}function R1(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Yl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ke.test(e))e=parseFloat(e);else return e;const n=R1(e,t.target.x),i=R1(e,t.target.y);return`${n}% ${i}%`}},XL={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,s=_i.parse(e);if(s.length>5)return i;const r=_i.createTransformer(e),o=typeof s[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;s[0+o]/=c,s[1+o]/=u;const h=ut(c,u,.5);return typeof s[2+o]=="number"&&(s[2+o]/=h),typeof s[3+o]=="number"&&(s[3+o]/=h),r(s)}},dv={borderRadius:{...Yl,applyTo:[...f0]},borderTopLeftRadius:Yl,borderTopRightRadius:Yl,borderBottomLeftRadius:Yl,borderBottomRightRadius:Yl,boxShadow:XL};function sN(e,{layout:t,layoutId:n}){return Wo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!dv[e]||e==="opacity")}function k0(e,t,n){var o;const i=e.style,s=t==null?void 0:t.style,r={};if(!i)return r;for(const c in i)(Kt(i[c])||s&&Kt(s[c])||sN(c,e)||((o=n==null?void 0:n.getValue(c))==null?void 0:o.liveStyle)!==void 0)&&(r[c]=i[c]);return r}function ZL(e){return window.getComputedStyle(e)}class JL extends Z3{constructor(){super(...arguments),this.type="html",this.renderInstance=iN}mount(t){Pp(!!t.style),super.mount(t)}readValueFromInstance(t,n){var i;if(Wo.has(n))return(i=this.projection)!=null&&i.isProjecting?Qx(n):xO(t,n);{const s=ZL(t),r=(f3(n)?s.getPropertyValue(n):s[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return nN(t,n)}build(t,n,i){_0(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return k0(t,n,i)}}const eD={offset:"stroke-dashoffset",array:"stroke-dasharray"},tD={offset:"strokeDashoffset",array:"strokeDasharray"};function nD(e,t,n=1,i=0,s=!0){e.pathLength=1;const r=s?eD:tD;e[r.offset]=`${-i}`,e[r.array]=`${t} ${n}`}const rN=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function aN(e,{attrX:t,attrY:n,attrScale:i,pathLength:s,pathSpacing:r=1,pathOffset:o=0,...c},u,h,f){if(_0(e,c,h),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:x}=e;for(const y of rN)m[y]!==void 0&&(x[y]=m[y],delete m[y]);(x.transform||m.transformOrigin)&&(x.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),x.transform&&(x.transformBox=(f==null?void 0:f.transformBox)??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),i!==void 0&&(m.scale=i),s!==void 0&&nD(m,s,r,o,!1)}const oN=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"]),lN=e=>typeof e=="string"&&e.toLowerCase()==="svg";function iD(e,t,n,i){iN(e,t,void 0,i);for(const s in t.attrs)e.setAttribute(oN.has(s)?s:p0(s),t.attrs[s])}function cN(e,t,n){const i=k0(e,t,n);for(const s in e)if(Kt(e[s])||Kt(t[s])){const r=Ho.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[r]=e[s]}return i}class sD extends Z3{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=qt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Wo.has(n)){const i=H3(n);return i&&i.default||0}if(rN.includes(n)){const s=getComputedStyle(t)[n];if(typeof s=="string"&&s)return s.trim()}return n=oN.has(n)?n:p0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return cN(t,n,i)}build(t,n,i){aN(t,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,n,i,s){iD(t,n,i,s)}mount(t){this.isSVGTag=lN(t.tagName),super.mount(t)}}const rD=b0.length;function dN(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?dN(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<rD;n++){const i=b0[n],s=e.props[i];(Jc(s)||s===!1)&&(t[i]=s)}return t}function uN(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}const aD=[...y0].reverse(),oD=y0.length;function lD(e){return t=>Promise.all(t.map(({animation:n,options:i})=>rL(e,n,i)))}function cD(e){let t=lD(e),n=M1(),i=!0,s=!1;const r=h=>(f,m)=>{var y;const x=va(e,m,h==="exit"?(y=e.presenceContext)==null?void 0:y.custom:void 0);if(x){const{transition:b,transitionEnd:k,...w}=x;f={...f,...w,...k}}return f};function o(h){t=h(e)}function c(h){const{props:f}=e,m=dN(e.parent)||{},x=[],y=new Set;let b={},k=1/0;for(let S=0;S<oD;S++){const j=aD[S],N=n[j],E=f[j]!==void 0?f[j]:m[j],T=Jc(E),L=j===h?N.isActive:null;L===!1&&(k=S);let M=E===m[j]&&E!==f[j]&&T;if(M&&(i||s)&&e.manuallyAnimateOnMount&&(M=!1),N.protectedKeys={...b},!N.isActive&&L===null||!E&&!N.prevProp||Rp(E)||typeof E=="boolean")continue;if(j==="exit"&&N.isActive&&L!==!0){N.prevResolvedValues&&(b={...b,...N.prevResolvedValues});continue}const A=dD(N.prevProp,E);let O=A||j===h&&N.isActive&&!M&&T||S>k&&T,G=!1;const X=Array.isArray(E)?E:[E];let ee=X.reduce(r(j),{});L===!1&&(ee={});const{prevResolvedValues:le={}}=N,re={...le,...ee},ne=W=>{O=!0,y.has(W)&&(G=!0,y.delete(W)),N.needsAnimating[W]=!0;const J=e.getValue(W);J&&(J.liveStyle=!1)};for(const W in re){const J=ee[W],H=le[W];if(b.hasOwnProperty(W))continue;let F=!1;nv(J)&&nv(H)?F=!uN(J,H)||A:F=J!==H,F?J!=null?ne(W):y.add(W):J!==void 0&&y.has(W)?ne(W):N.protectedKeys[W]=!0}N.prevProp=E,N.prevResolvedValues=ee,N.isActive&&(b={...b,...ee}),(i||s)&&e.blockInitialAnimation&&(O=!1);const Z=M&&A;O&&(!Z||G)&&x.push(...X.map(W=>{const J={type:j};if(typeof W=="string"&&(i||s)&&!Z&&e.manuallyAnimateOnMount&&e.parent){const{parent:H}=e,F=va(H,W);if(H.enteringChildren&&F){const{delayChildren:Y}=F.transition||{};J.delay=M3(H.enteringChildren,e,Y)}}return{animation:W,options:J}}))}if(y.size){const S={};if(typeof f.initial!="boolean"){const j=va(e,Array.isArray(f.initial)?f.initial[0]:f.initial);j&&j.transition&&(S.transition=j.transition)}y.forEach(j=>{const N=e.getBaseTarget(j),E=e.getValue(j);E&&(E.liveStyle=!0),S[j]=N??null}),x.push({animation:S})}let w=!!x.length;return i&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(w=!1),i=!1,s=!1,w?t(x):Promise.resolve()}function u(h,f){var x;if(n[h].isActive===f)return Promise.resolve();(x=e.variantChildren)==null||x.forEach(y=>{var b;return(b=y.animationState)==null?void 0:b.setActive(h,f)}),n[h].isActive=f;const m=c(h);for(const y in n)n[y].protectedKeys={};return m}return{animateChanges:c,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=M1(),s=!0}}}function dD(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!uN(t,e):!1}function na(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function M1(){return{animate:na(!0),whileInView:na(),whileHover:na(),whileTap:na(),whileDrag:na(),whileFocus:na(),exit:na()}}function uv(e,t){e.min=t.min,e.max=t.max}function xi(e,t){uv(e.x,t.x),uv(e.y,t.y)}function O1(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const hN=1e-4,uD=1-hN,hD=1+hN,pN=.01,pD=0-pN,fD=0+pN;function _n(e){return e.max-e.min}function mD(e,t,n){return Math.abs(e-t)<=n}function L1(e,t,n,i=.5){e.origin=i,e.originPoint=ut(t.min,t.max,e.origin),e.scale=_n(n)/_n(t),e.translate=ut(n.min,n.max,e.origin)-e.originPoint,(e.scale>=uD&&e.scale<=hD||isNaN(e.scale))&&(e.scale=1),(e.translate>=pD&&e.translate<=fD||isNaN(e.translate))&&(e.translate=0)}function Ac(e,t,n,i){L1(e.x,t.x,n.x,i?i.originX:void 0),L1(e.y,t.y,n.y,i?i.originY:void 0)}function D1(e,t,n,i=0){const s=i?ut(n.min,n.max,i):n.min;e.min=s+t.min,e.max=e.min+_n(t)}function gD(e,t,n,i){D1(e.x,t.x,n.x,i==null?void 0:i.x),D1(e.y,t.y,n.y,i==null?void 0:i.y)}function F1(e,t,n,i=0){const s=i?ut(n.min,n.max,i):n.min;e.min=t.min-s,e.max=e.min+_n(t)}function op(e,t,n,i){F1(e.x,t.x,n.x,i==null?void 0:i.x),F1(e.y,t.y,n.y,i==null?void 0:i.y)}function $1(e,t,n,i,s){return e-=t,e=ap(e,1/n,i),s!==void 0&&(e=ap(e,1/s,i)),e}function xD(e,t=0,n=1,i=.5,s,r=e,o=e){if(Yi.test(t)&&(t=parseFloat(t),t=ut(o.min,o.max,t/100)-o.min),typeof t!="number")return;let c=ut(r.min,r.max,i);e===r&&(c-=t),e.min=$1(e.min,t,n,c,s),e.max=$1(e.max,t,n,c,s)}function B1(e,t,[n,i,s],r,o){xD(e,t[n],t[i],t[s],t.scale,r,o)}const vD=["x","scaleX","originX"],yD=["y","scaleY","originY"];function z1(e,t,n,i){B1(e.x,t,vD,n?n.x:void 0,i?i.x:void 0),B1(e.y,t,yD,n?n.y:void 0,i?i.y:void 0)}function V1(e){return e.translate===0&&e.scale===1}function fN(e){return V1(e.x)&&V1(e.y)}function H1(e,t){return e.min===t.min&&e.max===t.max}function bD(e,t){return H1(e.x,t.x)&&H1(e.y,t.y)}function W1(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function mN(e,t){return W1(e.x,t.x)&&W1(e.y,t.y)}function q1(e){return _n(e.x)/_n(e.y)}function U1(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Bi(e){return[e("x"),e("y")]}function wD(e,t,n){let i="";const s=e.x.translate/t.x,r=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||r||o)&&(i=`translate3d(${s}px, ${r}px, ${o}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:f,pathRotation:m,rotateX:x,rotateY:y,skewX:b,skewY:k}=n;h&&(i=`perspective(${h}px) ${i}`),f&&(i+=`rotate(${f}deg) `),m&&(i+=`rotate(${m}deg) `),x&&(i+=`rotateX(${x}deg) `),y&&(i+=`rotateY(${y}deg) `),b&&(i+=`skewX(${b}deg) `),k&&(i+=`skewY(${k}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(i+=`scale(${c}, ${u})`),i||"none"}const _D=f0.length,G1=e=>typeof e=="string"?parseFloat(e):e,Y1=e=>typeof e=="number"||ke.test(e);function kD(e,t,n,i,s,r){s?(e.opacity=ut(0,n.opacity??1,SD(i)),e.opacityExit=ut(t.opacity??1,0,jD(i))):r&&(e.opacity=ut(t.opacity??1,n.opacity??1,i));for(let o=0;o<_D;o++){const c=f0[o];let u=K1(t,c),h=K1(n,c);if(u===void 0&&h===void 0)continue;u||(u=0),h||(h=0),u===0||h===0||Y1(u)===Y1(h)?(e[c]=Math.max(ut(G1(u),G1(h),i),0),(Yi.test(h)||Yi.test(u))&&(e[c]+="%")):e[c]=h}(t.rotate||n.rotate)&&(e.rotate=ut(t.rotate||0,n.rotate||0,i))}function K1(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const SD=gN(0,.5,l3),jD=gN(.5,.95,ti);function gN(e,t,n){return i=>i<e?0:i>t?1:n(Qc(e,t,i))}function CD(e,t,n){const i=Kt(e)?e:_a(e);return i.start(u0("",i,t,n)),i.animation}function ed(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}const ND=(e,t)=>e.depth-t.depth;class TD{constructor(){this.children=[],this.isDirty=!1}add(t){Zv(this.children,t),this.isDirty=!0}remove(t){ep(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ND),this.isDirty=!1,this.children.forEach(t)}}function ED(e,t){const n=wn.now(),i=({timestamp:s})=>{const r=s-n;r>=t&&(Ns(i),e(r-t))};return lt.setup(i,!0),()=>Ns(i)}function wh(e){return Kt(e)?e.get():e}class AD{constructor(){this.members=[]}add(t){Zv(this.members,t);for(let n=this.members.length-1;n>=0;n--){const i=this.members[n];if(i===t||i===this.lead||i===this.prevLead)continue;const s=i.instance;(!s||s.isConnected===!1)&&!i.snapshot&&(ep(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(ep(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let i=this.members.indexOf(t)-1;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1&&((n=s.instance)==null?void 0:n.isConnected)!==!1)return this.promote(s),!0}return!1}promote(t,n){var s;const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();const{layoutDependency:r}=i.options,{layoutDependency:o}=t.options;(r===void 0||r!==o)&&(t.resumeFrom=i,n&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),(s=t.root)!=null&&s.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,i,s,r,o;(i=(n=t.options).onExitComplete)==null||i.call(n),(o=(s=t.resumingFrom)==null?void 0:(r=s.options).onExitComplete)==null||o.call(r)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const _h={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ig=["","X","Y","Z"],PD=1e3;let ID=0;function Rg(e,t,n,i){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),i&&(i[e]=0))}function xN(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=$3(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",lt,!(s||r))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&xN(i)}function vN({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(o={},c=t==null?void 0:t()){this.id=ID++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(OD),this.nodes.forEach(zD),this.nodes.forEach(VD),this.nodes.forEach(LD)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new TD)}addEventListener(o,c){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Jv),this.eventHandlers.get(o).add(c)}notifyListeners(o,...c){const u=this.eventHandlers.get(o);u&&u.notify(...c)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=v0(o)&&!ML(o),this.instance=o;const{layoutId:c,layout:u,visualElement:h}=this.options;if(h&&!h.current&&h.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||c)&&(this.isLayoutDirty=!0),e){let f,m=0;const x=()=>this.root.updateBlockedByResize=!1;lt.read(()=>{m=window.innerWidth}),e(o,()=>{const y=window.innerWidth;y!==m&&(m=y,this.root.updateBlockedByResize=!0,f&&f(),f=ED(x,250),_h.hasAnimatedSinceResize&&(_h.hasAnimatedSinceResize=!1,this.nodes.forEach(Z1)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&h&&(c||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:m,hasRelativeLayoutChanged:x,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||h.getDefaultTransition()||GD,{onLayoutAnimationStart:k,onLayoutAnimationComplete:w}=h.getProps(),S=!this.targetLayout||!mN(this.targetLayout,y),j=!m&&x;if(this.options.layoutRoot||this.resumeFrom||j||m&&(S||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const N={...d0(b,"layout"),onPlay:k,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&(N.delay=0,N.type=!1),this.startAnimation(N),this.setAnimationOrigin(f,j,N.path)}else m||Z1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ns(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(HD),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&xN(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const m=this.path[f];m.shouldResetTransform=!0,(typeof m.latestValues.x=="string"||typeof m.latestValues.y=="string")&&(m.isLayoutDirty=!0),m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const u=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),u&&this.nodes.forEach(FD),this.nodes.forEach(Q1);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(X1);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach($D),this.nodes.forEach(BD),this.nodes.forEach(RD),this.nodes.forEach(MD)):this.nodes.forEach(X1),this.clearAllSnapshots();const c=wn.now();an.delta=Qi(0,1e3/60,c-an.timestamp),an.timestamp=c,an.isProcessing=!0,kg.update.process(an),kg.preRender.process(an),kg.render.process(an),an.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,g0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(DD),this.sharedNodes.forEach(WD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,lt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){lt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!_n(this.snapshot.measuredBox.x)&&!_n(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 u=0;u<this.path.length;u++)this.path[u].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=qt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(c=!1),c&&this.instance){const u=i(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!fN(this.projectionDelta),u=this.getTransformTemplate(),h=u?u(this.latestValues,""):void 0,f=h!==this.prevTransformTemplateValue;o&&this.instance&&(c||ca(this.latestValues)||f)&&(s(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return o&&(u=this.removeTransform(u)),YD(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var h;const{visualElement:o}=this.options;if(!o)return qt();const c=o.measureViewportBox();if(!(((h=this.scroll)==null?void 0:h.wasRoot)||this.path.some(KD))){const{scroll:f}=this.root;f&&(Hi(c.x,f.offset.x),Hi(c.y,f.offset.y))}return c}removeElementScroll(o){var u;const c=qt();if(xi(c,o),(u=this.scroll)!=null&&u.wasRoot)return c;for(let h=0;h<this.path.length;h++){const f=this.path[h],{scroll:m,options:x}=f;f!==this.root&&m&&x.layoutScroll&&(m.wasRoot&&xi(c,o),Hi(c.x,m.offset.x),Hi(c.y,m.offset.y))}return c}applyTransform(o,c=!1,u){var f,m;const h=u||qt();xi(h,o);for(let x=0;x<this.path.length;x++){const y=this.path[x];!c&&y.options.layoutScroll&&y.scroll&&y!==y.root&&(Hi(h.x,-y.scroll.offset.x),Hi(h.y,-y.scroll.offset.y)),ca(y.latestValues)&&bh(h,y.latestValues,(f=y.layout)==null?void 0:f.layoutBox)}return ca(this.latestValues)&&bh(h,this.latestValues,(m=this.layout)==null?void 0:m.layoutBox),h}removeTransform(o){var u;const c=qt();xi(c,o);for(let h=0;h<this.path.length;h++){const f=this.path[h];if(!ca(f.latestValues))continue;let m;f.instance&&(lv(f.latestValues)&&f.updateSnapshot(),m=qt(),xi(m,f.measurePageBox())),z1(c,f.latestValues,(u=f.snapshot)==null?void 0:u.layoutBox,m)}return ca(this.latestValues)&&z1(c,this.latestValues),c}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==an.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var y;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==c;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:m}=this.options;if(!this.layout||!(f||m))return;this.resolvedRelativeTargetAt=an.timestamp;const x=this.getClosestProjectingParent();x&&this.linkedParentVersion!==x.layoutVersion&&!x.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&x&&x.layout?this.createRelativeTarget(x,this.layout.layoutBox,x.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=qt(),this.targetWithTransforms=qt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),gD(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):xi(this.target,this.layout.layoutBox),tN(this.target,this.targetDelta)):xi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?this.createRelativeTarget(x,this.target,x.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||lv(this.parent.latestValues)||eN(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,c,u){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qt(),this.relativeTargetOrigin=qt(),op(this.relativeTargetOrigin,c,u,this.options.layoutAnchor||void 0),xi(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var b;const o=this.getLead(),c=!!this.resumingFrom||this!==o;let u=!0;if((this.isProjectionDirty||(b=this.parent)!=null&&b.isProjectionDirty)&&
vendor: 5,713 bytes, line 197
197(u=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===an.timestamp&&(u=!1),u)return;const{layout:h,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||f))return;xi(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,x=this.treeScale.y;UL(this.layoutCorrected,this.treeScale,this.path,c),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=qt());const{target:y}=o;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(O1(this.prevProjectionDelta.x,this.projectionDelta.x),O1(this.prevProjectionDelta.y,this.projectionDelta.y)),Ac(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==x||!U1(this.projectionDelta.x,this.prevProjectionDelta.x)||!U1(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var c;if((c=this.options.visualElement)==null||c.scheduleRender(),o){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=bo(),this.projectionDelta=bo(),this.projectionDeltaWithTransform=bo()}setAnimationOrigin(o,c=!1,u){const h=this.snapshot,f=h?h.latestValues:{},m={...this.latestValues},x=bo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const y=qt(),b=h?h.source:void 0,k=this.layout?this.layout.source:void 0,w=b!==k,S=this.getStack(),j=!S||S.members.length<=1,N=!!(w&&!j&&this.options.crossfade===!0&&!this.path.some(UD));this.animationProgress=0;let E;const T=u==null?void 0:u.interpolateProjection(o);this.mixTargetDelta=L=>{const M=L/1e3,A=T==null?void 0:T(M);A?(x.x.translate=A.x,x.x.scale=ut(o.x.scale,1,M),x.x.origin=o.x.origin,x.x.originPoint=o.x.originPoint,x.y.translate=A.y,x.y.scale=ut(o.y.scale,1,M),x.y.origin=o.y.origin,x.y.originPoint=o.y.originPoint):(J1(x.x,o.x,M),J1(x.y,o.y,M)),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(op(y,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),qD(this.relativeTarget,this.relativeTargetOrigin,y,M),E&&bD(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=qt()),xi(E,this.relativeTarget)),w&&(this.animationValues=m,kD(m,f,this.latestValues,M,N,j)),A&&A.rotate!==void 0&&(this.animationValues||(this.animationValues=m),this.animationValues.pathRotation=A.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var c,u,h;this.notifyListeners("animationStart"),(c=this.currentAnimation)==null||c.stop(),(h=(u=this.resumingFrom)==null?void 0:u.currentAnimation)==null||h.stop(),this.pendingAnimation&&(Ns(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=lt.update(()=>{_h.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=_a(0)),this.motionValue.jump(0,!1),this.currentAnimation=CD(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:f=>{this.mixTargetDelta(f),o.onUpdate&&o.onUpdate(f)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(PD),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:c,target:u,layout:h,latestValues:f}=o;if(!(!c||!u||!h)){if(this!==o&&this.layout&&h&&yN(this.options.animationType,this.layout.layoutBox,h.layoutBox)){u=this.target||qt();const m=_n(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+m;const x=_n(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+x}xi(c,u),bh(c,f),Ac(this.projectionDeltaWithTransform,this.layoutCorrected,c,f)}}registerSharedNode(o,c){this.sharedNodes.has(o)||this.sharedNodes.set(o,new AD),this.sharedNodes.get(o).add(c);const h=c.options.initialPromotionConfig;c.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(c):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var c;const{layoutId:o}=this.options;return o?((c=this.getStack())==null?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:o}=this.options;return o?(c=this.getStack())==null?void 0:c.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:c,preserveFollowOpacity:u}={}){const h=this.getStack();h&&h.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}
vendor: 4,502 bytes, line 197
197resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let c=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const h={};u.z&&Rg("z",o,h,this.animationValues);for(let f=0;f<Ig.length;f++)Rg(`rotate${Ig[f]}`,o,h,this.animationValues),Rg(`skew${Ig[f]}`,o,h,this.animationValues);o.render();for(const f in h)o.setStaticValue(f,h[f]),this.animationValues&&(this.animationValues[f]=h[f]);o.scheduleRender()}applyProjectionStyles(o,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=wh(c==null?void 0:c.pointerEvents)||"",o.transform=u?u(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=wh(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!ca(this.latestValues)&&(o.transform=u?u({},""):"none",this.hasProjected=!1);return}o.visibility="";const f=h.animationValues||h.latestValues;this.applyTransformsToTarget();let m=wD(this.projectionDeltaWithTransform,this.treeScale,f);u&&(m=u(f,m)),o.transform=m;const{x,y}=this.projectionDelta;o.transformOrigin=`${x.origin*100}% ${y.origin*100}% 0`,h.animationValues?o.opacity=h===this?f.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:o.opacity=h===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const b in dv){if(f[b]===void 0)continue;const{correct:k,applyTo:w,isCSSVariable:S}=dv[b],j=m==="none"?f[b]:k(f[b],h);if(w){const N=w.length;for(let E=0;E<N;E++)o[w[E]]=j}else S?this.options.visualElement.renderState.vars[b]=j:o[b]=j}this.options.layoutId&&(o.pointerEvents=h===this?wh(c==null?void 0:c.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var c;return(c=o.currentAnimation)==null?void 0:c.stop()}),this.root.nodes.forEach(Q1),this.root.sharedNodes.clear()}}}function RD(e){e.updateLayout()}function MD(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=e.layout,{animationType:r}=e.options,o=t.source!==e.layout.source;if(r==="size")Bi(m=>{const x=o?t.measuredBox[m]:t.layoutBox[m],y=_n(x);x.min=i[m].min,x.max=x.min+y});else if(r==="x"||r==="y"){const m=r==="x"?"y":"x";uv(o?t.measuredBox[m]:t.layoutBox[m],i[m])}else yN(r,t.layoutBox,i)&&Bi(m=>{const x=o?t.measuredBox[m]:t.layoutBox[m],y=_n(i[m]);x.max=x.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+y)});const c=bo();Ac(c,i,t.layoutBox);const u=bo();o?Ac(u,e.applyTransform(s,!0),t.measuredBox):Ac(u,i,t.layoutBox);const h=!fN(c);let f=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:x,layout:y}=m;if(x&&y){const b=e.options.layoutAnchor||void 0,k=qt();op(k,t.layoutBox,x.layoutBox,b);const w=qt();op(w,i,y.layoutBox,b),mN(k,w)||(f=!0),m.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=k,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:u,layoutDelta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:f})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function OD(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function LD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function DD(e){e.clearSnapshot()}function Q1(e){e.clearMeasurements()}function FD(e){e.isLayoutDirty=!0,e.updateLayout()}function X1(e){e.isLayoutDirty=!1}function $D(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function BD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Z1(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function zD(e){e.resolveTargetDelta()}function VD(e){e.calcProjection()}
197function HD(e){e.resetSkewAndRotation()}function WD(e){e.removeLeadSnapshot()}function J1(e,t,n){e.translate=ut(t.translate,0,n),e.scale=ut(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function e2(e,t,n,i){e.min=ut(t.min,n.min,i),e.max=ut(t.max,n.max,i)}function qD(e,t,n,i){e2(e.x,t.x,n.x,i),e2(e.y,t.y,n.y,i)}function UD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const GD={duration:.45,ease:[.4,0,.1,1]},t2=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),n2=t2("applewebkit/")&&!t2("chrome/")?Math.round:ti;function i2(e){e.min=n2(e.min),e.max=n2(e.max)}function YD(e){i2(e.x),i2(e.y)}function yN(e,t,n){return e==="position"||e==="preserve-aspect"&&!mD(q1(t),q1(n),.2)}function KD(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const QD=vN({attachResizeListener:(e,t)=>ed(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Mg={current:void 0},bN=vN({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Mg.current){const e=new QD({});e.mount(window),e.setOptions({layoutScroll:!0}),Mg.current=e}return Mg.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),md=P.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function s2(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function XD(...e){return t=>{let n=!1;const i=e.map(s=>{const r=s2(s,t);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let s=0;s<i.length;s++){const r=i[s];typeof r=="function"?r():s2(e[s],null)}}}}function ZD(...e){return P.useCallback(XD(...e),e)}class JD extends P.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(gh(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const i=n.offsetParent,s=gh(i)&&i.offsetWidth||0,r=gh(i)&&i.offsetHeight||0,o=getComputedStyle(n),c=this.props.sizeRef.current;c.height=parseFloat(o.height),c.width=parseFloat(o.width),c.top=n.offsetTop,c.left=n.offsetLeft,c.right=s-c.width-c.left,c.bottom=r-c.height-c.top,c.direction=o.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function eF({children:e,isPresent:t,anchorX:n,anchorY:i,root:s,pop:r}){var x;const o=P.useId(),c=P.useRef(null),u=P.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:h}=P.useContext(md),f=r!==!1?((x=e.props)==null?void 0:x.ref)??(e==null?void 0:e.ref):void 0,m=ZD(c,f);return P.useInsertionEffect(()=>{const{width:y,height:b,top:k,left:w,right:S,bottom:j,direction:N}=u.current;if(t||r===!1||!c.current||!y||!b)return;const E=N==="rtl",T=n==="left"?E?`right: ${S}`:`left: ${w}`:E?`left: ${w}`:`right: ${S}`,L=i==="bottom"?`bottom: ${j}`:`top: ${k}`;c.current.dataset.motionPopId=o;const M=document.createElement("style");h&&(M.nonce=h);const A=s??document.head;return A.appendChild(M),M.sheet&&M.sheet.insertRule(`
198          [data-motion-pop-id="${o}"] {
199            position: absolute !important;
200            width: ${y}px !important;
201            height: ${b}px !important;
202            ${T}px !important;
203            ${L}px !important;
204          }
205        `),()=>{var O;(O=c.current)==null||O.removeAttribute("data-motion-pop-id"),A.contains(M)&&A.removeChild(M)}},[t]),d.jsx(JD,{isPresent:t,childRef:c,sizeRef:u,pop:r,children:r===!1?e:P.cloneElement(e,{ref:m})})}const tF=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:s,presenceAffectsLayout:r,mode:o,anchorX:c,anchorY:u,root:h})=>{const f=ud(nF),m=P.useId(),x=P.useRef(n),y=P.useRef(i);Kc(()=>{x.current=n,y.current=i});let b=!0,k=P.useMemo(()=>(b=!1,{id:m,initial:t,isPresent:n,custom:s,onExitComplete:w=>{f.set(w,!0);for(const S of f.values())if(!S)return;i&&i()},register:w=>(f.set(w,!1),()=>{var S;f.delete(w),!x.current&&!f.size&&((S=y.current)==null||S.call(y))})}),[n,f,i]);return r&&b&&(k={...k}),P.useMemo(()=>{f.forEach((w,S)=>
vendor: 6,163 bytes, line 205
205f.set(S,!1))},[n]),P.useEffect(()=>{!n&&!f.size&&i&&i()},[n]),e=d.jsx(eF,{pop:o==="popLayout",isPresent:n,anchorX:c,anchorY:u,root:h,children:e}),d.jsx(Ap.Provider,{value:k,children:e})};function nF(){return new Map}function wN(e=!0){const t=P.useContext(Ap);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:s}=t,r=P.useId();P.useEffect(()=>{if(e)return s(r)},[e]);const o=P.useCallback(()=>e&&i&&i(r),[r,i,e]);return!n&&i?[!1,o]:[!0]}const Vu=e=>e.key||"";function r2(e){const t=[];return P.Children.forEach(e,n=>{P.isValidElement(n)&&t.push(n)}),t}const S0=({children:e,custom:t,initial:n=!0,onExitComplete:i,presenceAffectsLayout:s=!0,mode:r="sync",propagate:o=!1,anchorX:c="left",anchorY:u="top",root:h})=>{const[f,m]=wN(o),x=P.useMemo(()=>r2(e),[e]),y=o&&!f?[]:x.map(Vu),b=P.useRef(!0),k=P.useRef(x),w=ud(()=>new Map),S=P.useRef(new Set),[j,N]=P.useState(x),[E,T]=P.useState(x);Kc(()=>{o&&!f&&!E.length&&(m==null||m())},[f,o,E.length,m]),Kc(()=>{b.current=!1,k.current=x;for(let A=0;A<E.length;A++){const O=Vu(E[A]);y.includes(O)?(w.delete(O),S.current.delete(O)):w.get(O)!==!0&&w.set(O,!1)}},[E,y.length,y.join("-")]);const L=[];if(x!==j){let A=[...x],O=0;for(const G of E){const X=y.indexOf(Vu(G));X===-1?(A.splice(O++,0,G),L.push(G)):O=X+L.length+1}return r==="wait"&&L.length&&(A=L),T(r2(A)),N(x),null}const{forceRender:M}=P.useContext(Xv);return d.jsx(d.Fragment,{children:E.map(A=>{const O=Vu(A),G=o&&!f?!1:x===E||y.includes(O),X=()=>{if(S.current.has(O))return;if(w.has(O))S.current.add(O),w.set(O,!0);else return;let ee=!0;w.forEach(le=>{le||(ee=!1)}),ee&&(M==null||M(),T(k.current),o&&(m==null||m()),i&&i())};return d.jsx(tF,{isPresent:G,initial:!b.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:r,root:h,onExitComplete:G?void 0:X,anchorX:c,anchorY:u,children:A},O)})})},_N=P.createContext({strict:!1}),a2={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let o2=!1;function iF(){if(o2)return;const e={};for(const t in a2)e[t]={isEnabled:n=>a2[t].some(i=>!!n[i])};X3(e),o2=!0}function kN(){return iF(),VL()}function sF(e){const t=kN();for(const n in e)t[n]={...t[n],...e[n]};X3(t)}const Op=P.createContext({});function rF(e,t){if(Mp(e)){const{initial:n,animate:i}=e;return{initial:n===!1||Jc(n)?n:void 0,animate:Jc(i)?i:void 0}}return e.inherit!==!1?t:{}}function aF(e){const{initial:t,animate:n}=rF(e,P.useContext(Op));return P.useMemo(()=>({initial:t,animate:n}),[l2(t),l2(n)])}function l2(e){return Array.isArray(e)?e.join(" "):e}const j0=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function SN(e,t,n){for(const i in t)!Kt(t[i])&&!sN(i,n)&&(e[i]=t[i])}function oF({transformTemplate:e},t){return P.useMemo(()=>{const n=j0();return _0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function lF(e,t){const n=e.style||{},i={};return SN(i,n,e),Object.assign(i,oF(e,t)),i}function cF(e,t){const n={},i=lF(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.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=i,n}const jN=()=>({...j0(),attrs:{}});function dF(e,t,n,i){const s=P.useMemo(()=>{const r=jN();return aN(r,t,lN(i),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const r={};SN(r,e.style,e),s.style={...r,...s.style}}return s}const uF=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function lp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||uF.has(e)}function hF(e,t){return e.startsWith("on")?!lp(e):(t==null?void 0:t(e))??!lp(e)}function pF(e,t,n,i){const s={};for(const r in e)r==="values"&&typeof e.values=="object"||Kt(e[r])||(hF(r,i)||n===!0&&lp(r)||!t&&!lp(r)||e.draggable&&r.startsWith("onDrag"))&&(s[r]=e[r]);return s}const fF=["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 C0(e){return typeof e!="string"||e.includes("-")?!1:!!(fF.indexOf(e)>-1||/[A-Z]/u.test(e))}function mF(e,t,n,{latestValues:i},s,r=!1,o,c){const h=(o??C0(e)?dF:cF)(t,i,s,e),f=pF(t,typeof e=="string",r,c),m=e!==P.Fragment?{...f,...h,ref:n}:{},{children:x}=t,y=P.useMemo(()=>Kt(x)?x.get():x,[x]);return P.createElement(e,{...m,children:y})}function gF({scrapeMotionValuesFromProps:e,createRenderState:t},n,i,s){return{latestValues:xF(n,i,s,e),renderState:t()}}function xF(e,t,n,i){const s={},r=i(e,{});for(const x in r)s[x]=wh(r[x]);let{initial:o,animate:c}=e;const u=Mp(e),h=K3(e);t&&h&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),c===void 0&&(c=t.animate));let f=n?n.initial===!1:!1;f=f||o===!1;const m=f?c:o;if(m&&typeof m!="boolean"&&!Rp(m)){const x=Array.isArray(m)?m:[m];for(let y=0;y<x.length;y++){const b=h0(e,x[y]);if(b){const{transitionEnd:k,transition:w,...S}=b;for(const j in S){let N=S[j];if(Array.isArray(N)){const E=f?N.length-1:0;N=N[E]}N!==null&&(s[j]=N)}for(const j in k)s[j]=k[j]}}}return s}const CN=e=>(t,n)=>{const i=P.useContext(Op),s=P.useContext(Ap),r=()=>gF(e,t,i,s);return n?r():ud(r)},vF=CN({scrapeMotionValuesFromProps:k0,createRenderState:j0}),yF=CN({scrapeMotionValuesFromProps:cN,createRenderState:jN}),bF=Symbol.for("motionComponentSymbol");
vendor: 21,700 bytes, line 205
205function wF(e,t,n){const i=P.useRef(n);P.useInsertionEffect(()=>{i.current=n});const s=P.useRef(null);return P.useCallback(r=>{var c;r&&((c=e.onMount)==null||c.call(e,r)),t&&(r?t.mount(r):t.unmount());const o=i.current;if(typeof o=="function")if(r){const u=o(r);typeof u=="function"&&(s.current=u)}else s.current?(s.current(),s.current=null):o(r);else o&&(o.current=r)},[t])}const NN=P.createContext({});function ho(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function _F(e,t,n,i,s,r){var N,E;const{visualElement:o}=P.useContext(Op),c=P.useContext(_N),u=P.useContext(Ap),h=P.useContext(md),f=h.reducedMotion,m=h.skipAnimations,x=P.useRef(null),y=P.useRef(!1);i=i||c.renderer,!x.current&&i&&(x.current=i(e,{visualState:t,parent:o,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:f,skipAnimations:m,isSVG:r}),y.current&&x.current&&(x.current.manuallyAnimateOnMount=!0));const b=x.current,k=P.useContext(NN);b&&!b.projection&&s&&(b.type==="html"||b.type==="svg")&&kF(x.current,n,s,k);const w=P.useRef(!1);P.useInsertionEffect(()=>{b&&w.current&&b.update(n,u)});const S=n[F3],j=P.useRef(!!S&&typeof window<"u"&&!((N=window.MotionHandoffIsComplete)!=null&&N.call(window,S))&&((E=window.MotionHasOptimisedAnimation)==null?void 0:E.call(window,S)));return Kc(()=>{y.current=!0,b&&(w.current=!0,window.MotionIsMounted=!0,b.updateFeatures(),b.scheduleRenderMicrotask(),j.current&&b.animationState&&b.animationState.animateChanges())}),P.useEffect(()=>{b&&(!j.current&&b.animationState&&b.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,S)}),j.current=!1),b.enteringChildren=void 0)}),b}function kF(e,t,n,i){const{layoutId:s,layout:r,drag:o,dragConstraints:c,layoutScroll:u,layoutRoot:h,layoutAnchor:f,layoutCrossfade:m}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:TN(e.parent)),e.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!o||c&&ho(c),visualElement:e,animationType:typeof r=="string"?r:"both",initialPromotionConfig:i,crossfade:m,layoutScroll:u,layoutRoot:h,layoutAnchor:f})}function TN(e){if(e)return e.options.allowProjection!==!1?e.projection:TN(e.parent)}function Og(e,{forwardMotionProps:t=!1,type:n}={},i,s){i&&sF(i);const r=n?n==="svg":C0(e),o=r?yF:vF;function c(h,f){let m;const x={...P.useContext(md),...h,layoutId:SF(h)},{isStatic:y,isValidProp:b}=x,k=aF(h),w=o(h,y);if(!y&&typeof window<"u"){jF();const S=CF(x);m=S.MeasureLayout,k.visualElement=_F(e,w,x,s,S.ProjectionNode,r)}return d.jsxs(Op.Provider,{value:k,children:[m&&k.visualElement?d.jsx(m,{visualElement:k.visualElement,...x}):null,mF(e,h,wF(w,k.visualElement,f),w,y,t,r,b)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=P.forwardRef(c);return u[bF]=e,u}function SF({layoutId:e}){const t=P.useContext(Xv).id;return t&&e!==void 0?t+"-"+e:e}function jF(e,t){P.useContext(_N).strict}function CF(e){const t=kN(),{drag:n,layout:i}=t;if(!n&&!i)return{};const s={...n,...i};return{MeasureLayout:n!=null&&n.isEnabled(e)||i!=null&&i.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function NF(e,t){if(typeof Proxy>"u")return Og;const n=new Map,i=(r,o)=>Og(r,o,e,t),s=(r,o)=>i(r,o);return new Proxy(s,{get:(r,o)=>o==="create"?i:(n.has(o)||n.set(o,Og(o,void 0,e,t)),n.get(o))})}const TF=(e,t)=>t.isSVG??C0(e)?new sD(t):new JL(t,{allowProjection:e!==P.Fragment});class EF extends Er{constructor(t){super(t),t.animationState||(t.animationState=cD(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Rp(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let AF=0;class PF extends Er{constructor(){super(...arguments),this.id=AF++,this.isExitComplete=!1}update(){var r;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&i===!1){if(this.isExitComplete){const{initial:o,custom:c}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){const u=va(this.node,o,c);if(u){const{transition:h,transitionEnd:f,...m}=u;for(const x in m)(r=this.node.getValue(x))==null||r.jump(m[x])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const IF={animation:{Feature:EF},exit:{Feature:PF}};function gd(e){return{point:{x:e.pageX,y:e.pageY}}}const RF=e=>t=>x0(t)&&e(t,gd(t));function Pc(e,t,n,i){return ed(e,t,RF(n),i)}const EN=({current:e})=>e?e.ownerDocument.defaultView:null,c2=(e,t)=>Math.abs(e-t);function MF(e,t){const n=c2(e.x,t.x),i=c2(e.y,t.y);return Math.sqrt(n**2+i**2)}const d2=new Set(["auto","scroll"]);class AN{constructor(t,n,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:r=!1,distanceThreshold:o=3,element:c}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=b=>{this.handleScroll(b.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Hu(this.lastRawMoveEventInfo,this.transformPagePoint));const b=Lg(this.lastMoveEventInfo,this.history),k=this.startEvent!==null,w=MF(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!k&&!w)return;const{point:S}=b,{timestamp:j}=an;this.history.push({...S,timestamp:j});const{onStart:N,onMove:E}=this.handlers;k||(N&&N(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,b)},this.handlePointerMove=(b,k)=>{this.lastMoveEvent=b,this.lastRawMoveEventInfo=k,this.lastMoveEventInfo=Hu(k,this.transformPagePoint),lt.update(this.updatePoint,!0)},this.handlePointerUp=(b,k)=>{this.end();const{onEnd:w,onSessionEnd:S,resumeAnimation:j}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&j&&j(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const N=Lg(b.type==="pointercancel"?this.lastMoveEventInfo:Hu(k,this.transformPagePoint),this.history);this.startEvent&&w&&w(b,N),S&&S(b,N)},!x0(t))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=o,this.contextWindow=s||window;const u=gd(t),h=Hu(u,this.transformPagePoint),{point:f}=h,{timestamp:m}=an;this.history=[{...f,timestamp:m}];const{onSessionStart:x}=n;x&&x(t,Lg(h,this.history));const y={passive:!0,capture:!0};this.removeListeners=hd(Pc(this.contextWindow,"pointermove",this.handlePointerMove,y),Pc(this.contextWindow,"pointerup",this.handlePointerUp,y),Pc(this.contextWindow,"pointercancel",this.handlePointerUp,y)),c&&this.startScrollTracking(c)}startScrollTracking(t){let n=t.parentElement;for(;n;){const i=getComputedStyle(n);(d2.has(i.overflowX)||d2.has(i.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const i=t===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:s.x-n.x,y:s.y-n.y};r.x===0&&r.y===0||(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,s),lt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ns(this.updatePoint)}}function Hu(e,t){return t?{point:t(e.point)}:e}function u2(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Lg({point:e},t){return{point:e,delta:u2(e,PN(t)),offset:u2(e,OF(t)),velocity:LF(t,.1)}}function OF(e){return e[0]}function PN(e){return e[e.length-1]}function LF(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const s=PN(e);for(;n>=0&&(i=e[n],!(s.timestamp-i.timestamp>ni(t)));)n--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&s.timestamp-i.timestamp>ni(t)*2&&(i=e[1]);const r=Jn(s.timestamp-i.timestamp);if(r===0)return{x:0,y:0};const o={x:(s.x-i.x)/r,y:(s.y-i.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function DF(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?ut(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?ut(n,e,i.max):Math.min(e,n)),e}function h2(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function FF(e,{top:t,left:n,bottom:i,right:s}){return{x:h2(e.x,n,s),y:h2(e.y,t,i)}}function p2(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function $F(e,t){return{x:p2(e.x,t.x),y:p2(e.y,t.y)}}function BF(e,t){let n=.5;const i=_n(e),s=_n(t);return s>i?n=Qc(t.min,t.max-i,e.min):i>s&&(n=Qc(e.min,e.max-s,t.min)),Qi(0,1,n)}function zF(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const hv=.35;function VF(e=hv){return e===!1?e=0:e===!0&&(e=hv),{x:f2(e,"left","right"),y:f2(e,"top","bottom")}}function f2(e,t,n){return{min:m2(e,t),max:m2(e,n)}}function m2(e,t){return typeof e=="number"?e:e[t]||0}const HF=new WeakMap;class WF{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=qt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const r=m=>{n&&this.snapToCursor(gd(m).point),this.stopAnimation()},o=(m,x)=>{const{drag:y,dragPropagation:b,onDragStart:k}=this.getProps();if(y&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=xL(y),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=x,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Bi(S=>{let j=this.getAxisMotionValue(S).get()||0;if(Yi.test(j)){const{projection:N}=this.visualElement;if(N&&N.layout){const E=N.layout.layoutBox[S];E&&(j=_n(E)*(parseFloat(j)/100))}}this.originPoint[S]=j}),k&&lt.update(()=>k(m,x),!1,!0),iv(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},c=(m,x)=>{this.latestPointerEvent=m,this.latestPanInfo=x;const{dragPropagation:y,dragDirectionLock:b,onDirectionLock:k,onDrag:w}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:S}=x;if(b&&this.currentDirection===null){this.currentDirection=UF(S),this.currentDirection!==null&&k&&k(this.currentDirection);return}this.updateAxis("x",x.point,S),this.updateAxis("y",x.point,S),this.visualElement.render(),w&&lt.update(()=>w(m,x),!1,!0)},u=(m,x)=>{this.latestPointerEvent=m,this.latestPanInfo=x,this.stop(m,x),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>{const{dragSnapToOrigin:m}=this.getProps();(m||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:f}=this.getProps();this.panSession=new AN(t,{onSessionStart:r,onStart:o,onMove:c,onSessionEnd:u,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,distanceThreshold:i,contextWindow:EN(this.visualElement),element:this.visualElement.current})}stop(t,n){const i=t||this.latestPointerEvent,s=n||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!s||!i)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:c}=this.getProps();c&&lt.postRender(()=>c(i,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,i){const{drag:s}=this.getProps();if(!i||!Wu(t,s,this.currentDirection))return;const r=this.getAxisMotionValue(t);let o=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(o=DF(o,this.constraints[t],this.elastic[t])),r.set(o)}resolveConstraints(){var r;const{dragConstraints:t,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(r=this.visualElement.projection)==null?void 0:r.layout,s=this.constraints;t&&ho(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=FF(i.layoutBox,t):this.constraints=!1,this.elastic=VF(n),s!==this.constraints&&!ho(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&Bi(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=zF(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ho(t))return!1;const i=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;s.root&&(s.root.scroll=void 0,s.root.updateScroll());const r=GL(i,s.root,this.visualElement.getTransformPagePoint());let o=$F(s.layout.layoutBox,r);if(n){const c=n(WL(o));this.hasMutatedConstraints=!!c,c&&(o=J3(c))}return o}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},h=Bi(f=>{if(!Wu(f,n,this.currentDirection))return;let m=u&&u[f]||{};(o===!0||o===f)&&(m={min:0,max:0});const x=s?200:1e6,y=s?40:1e7,b={type:"inertia",velocity:i?t[f]:0,bounceStiffness:x,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...r,...m};return this.startAxisValueAnimation(f,b)});return Promise.all(h).then(c)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return iv(this.visualElement,t),i.start(u0(t,i,0,n,this.visualElement,!1))}stopAnimation(){Bi(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps()[n];return s||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){Bi(n=>{const{drag:i}=this.getProps();if(!Wu(n,i,this.currentDirection))return;const{projection:s}=this.visualElement,r=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:c}=s.layout.layoutBox[n],u=r.get()||0;r.set(t[n]-ut(o,c,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!ho(n)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Bi(o=>{const c=this.getAxisMotionValue(o);if(c&&this.constraints!==!1){const u=c.get();s[o]=BF({min:u,max:u},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),Bi(o=>{if(!Wu(o,t,null))return;const c=this.getAxisMotionValue(o),{min:u,max:h}=this.constraints[o];c.set(ut(u,h,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;HF.set(this.visualElement,this);const t=this.visualElement.current,n=Pc(t,"pointerdown",h=>{const{drag:f,dragListener:m=!0}=this.getProps(),x=h.target,y=x!==t&&kL(x);f&&m&&!y&&this.start(h)});let i;const s=()=>{const{dragConstraints:h}=this.getProps();ho(h)&&h.current&&(this.constraints=this.resolveRefConstraints(),i||(i=qF(t,h.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,o=r.addEventListener("measure",s);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),lt.read(s);const c=ed(window,"resize",()=>this.scalePositionWithinConstraints()),u=r.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f})=>{this.isDragging&&f&&(Bi(m=>{const x=this.getAxisMotionValue(m);x&&(this.originPoint[m]+=h[m].translate,x.set(x.get()+h[m].translate))}),this.visualElement.render())});return()=>{c(),n(),o(),u&&u(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:o=hv,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:o,dragMomentum:c}}}function g2(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function qF(e,t,n){const i=_1(e,g2(n)),s=_1(t,g2(n));return()=>{i(),s()}}function Wu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function UF(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class GF extends Er{constructor(t){super(t),this.removeGroupControls=ti,this.removeListeners=ti,this.controls=new WF(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ti}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Dg=e=>(t,n)=>{e&&lt.update(()=>e(t,n),!1,!0)};class YF extends Er{constructor(){super(...arguments),this.removePointerDownListener=ti}onPointerDown(t){this.session=new AN(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:EN(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:Dg(t),onStart:Dg(n),onMove:Dg(i),onEnd:(r,o)=>{delete this.session,s&&lt.postRender(()=>s(r,o))}}}mount(){this.removePointerDownListener=Pc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Fg=!1;class KF extends P.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=t;r&&(n.group&&n.group.add(r),i&&i.register&&s&&i.register(r),Fg&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),_h.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:s,isPresent:r}=this.props,{projection:o}=i;return o&&(o.isPresent=r,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),Fg=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==r?o.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?o.promote():o.relegate()||lt.postRender(()=>{const c=o.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=n,i.root.didUpdate(),g0.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:s}=t;Fg=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function IN(e){const[t,n]=wN(),i=P.useContext(Xv);return d.jsx(KF,{...e,layoutGroup:i,switchLayoutGroup:P.useContext(NN),isPresent:t,safeToRemove:n})}const QF={pan:{Feature:YF},drag:{Feature:GF,ProjectionNode:bN,MeasureLayout:IN}};function x2(e,t,n){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,r=i[s];r&&lt.postRender(()=>r(t,gd(t)))}class XF extends Er{mount(){const{current:t}=this.node;t&&(this.unmount=yL(t,(n,i)=>(x2(this.node,i,"Start"),s=>x2(this.node,s,"End"))))}unmount(){}}class ZF extends Er{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=hd(ed(this.node.current,"focus",()=>this.onFocus()),ed(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function v2(e,t,n){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),r=i[s];r&&lt.postRender(()=>r(t,gd(t)))}class JF extends Er{mount(){const{current:t}=this.node;if(!t)return;
205const{globalTapTarget:n,propagate:i}=this.node.props;this.unmount=jL(t,(s,r)=>(v2(this.node,r,"Start"),(o,{success:c})=>v2(this.node,o,c?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(i==null?void 0:i.tap)===!1})}unmount(){}}const pv=new WeakMap,$g=new WeakMap,e7=e=>{const t=pv.get(e.target);t&&t(e)},t7=e=>{e.forEach(e7)};function n7({root:e,...t}){const n=e||document;$g.has(n)||$g.set(n,{});const i=$g.get(n),s=JSON.stringify(t);return i[s]||(i[s]=new IntersectionObserver(t7,{root:e,...t})),i[s]}function i7(e,t,n){const i=n7(t);return pv.set(e,n),i.observe(e),()=>{pv.delete(e),i.unobserve(e)}}const s7={some:0,all:1};class r7 extends Er{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var u;(u=this.stopObserver)==null||u.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:i,amount:s="some",once:r}=t,o={root:n?n.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:s7[s]},c=h=>{const{isIntersecting:f}=h;if(this.isInView===f||(this.isInView=f,r&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:m,onViewportLeave:x}=this.node.getProps(),y=f?m:x;y&&y(h)};this.stopObserver=i7(this.node.current,o,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(a7(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function a7({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const o7={inView:{Feature:r7},tap:{Feature:JF},focus:{Feature:ZF},hover:{Feature:XF}},l7={layout:{ProjectionNode:bN,MeasureLayout:IN}},c7={...IF,...o7,...QF,...l7},d7=NF(c7,TF);function ka(e){const t=ud(()=>_a(e)),{isStatic:n}=P.useContext(md);if(n){const[,i]=P.useState(e);P.useEffect(()=>t.on("change",i),[])}return t}function RN(e,t){const n=ka(t()),i=()=>n.set(t());return i(),Kc(()=>{const s=()=>lt.preRender(i,!1,!0),r=e.map(o=>o.on("change",s));return()=>{r.forEach(o=>o()),Ns(i)}}),n}function u7(e){Ec.current=[],e();const t=RN(Ec.current,e);return Ec.current=void 0,t}function h7(e,t,n,i){if(typeof e=="function")return u7(e);const r=OL(t,n,i),o=Array.isArray(e)?y2(e,r):y2([e],([u])=>r(u)),c=Array.isArray(e)?void 0:e.accelerate;return c&&!c.isTransformed&&typeof t!="function"&&Array.isArray(n)&&(i==null?void 0:i.clamp)!==!1&&(o.accelerate={...c,times:t,keyframes:n,isTransformed:!0}),o}function y2(e,t){const n=ud(()=>[]);return RN(e,()=>{n.length=0;const i=e.length;for(let s=0;s<i;s++)n[s]=e[s].get();return t(n)})}function p7(e,t={}){const{isStatic:n}=P.useContext(md),i=()=>Kt(e)?e.get():e;if(n)return h7(i);const s=ka(i());return P.useInsertionEffect(()=>LL(s,e,t),[s,JSON.stringify(t)]),s}function So(e,t={}){return p7(e,{type:"spring",...t})}function xd(){!w0.current&&Q3();const[e]=P.useState(sp.current);return e}const f7={some:0,all:1};function m7(e,t,{root:n,margin:i,amount:s="some"}={}){const r=m0(e),o=new WeakMap,c=h=>{h.forEach(f=>{const m=o.get(f.target);if(f.isIntersecting!==!!m)if(f.isIntersecting){const x=t(f.target,f);typeof x=="function"?o.set(f.target,x):u.unobserve(f.target)}else typeof m=="function"&&(m(f),o.delete(f.target))})},u=new IntersectionObserver(c,{root:n,rootMargin:i,threshold:typeof s=="number"?s:f7[s]});return r.forEach(h=>u.observe(h)),()=>u.disconnect()}function Lp(e,{root:t,margin:n,amount:i,once:s=!1,initial:r=!1}={}){const[o,c]=P.useState(r);return P.useEffect(()=>{if(!e.current||s&&o)return;const u=()=>(c(!0),s?void 0:()=>c(!1)),h={root:t&&t.current||void 0,margin:n,amount:i};return m7(e.current,u,h)},[t,e,n,s,i]),o}const it=d7;function Vn({className:e,...t}){return d.jsx("div",{className:Re("mx-auto w-full px-6 md:px-8","max-w-[var(--container-max)]",e),...t})}const Gt={casa:{name:"CASA",fullName:"Cloud Application Security Assessment",tier:"Tier 2",assessor:"TAC Security",certifiedOnLabel:"May 15, 2026",badgeLabel:"ESOF Shield Certified",badgeSrc:"/certifications/esof-shield.png",badgeAlt:"ESOF Verified and 
205Secured — assessed by TAC Security, ADA CASA Assessor",summary:"Confeti completed Google CASA Tier 2 (lab-tested, lab-verified) through TAC Security, an authorized App Defense Alliance assessor. ESOF Shield certification validates our application security for sensitive data and Google API integrations."},soc2:{label:"SOC 2 readiness",summary:"Security policies, access controls, logging, and operational practices are designed around SOC 2 Type II criteria. Formal SOC 2 attestation is planned; CASA Tier 2 verification already covers overlapping application-security requirements."}},g7=[{title:"CASA Tier 2 verified",description:Gt.casa.summary},{title:Gt.soc2.label,description:Gt.soc2.summary},{title:"Enterprise controls",description:"Encryption in transit and at rest, RBAC, SSO/SCIM, audit logging, and company-level data isolation — documented for security reviews."}],x7=["Overview of security controls on our Security page","Walkthrough of data handling, access control, and audit logging","Answers for vendor security questionnaires via [email protected]"];function fv({width:e=150,className:t}){const[n,i]=P.useState(!1),{badgeSrc:s,badgeAlt:r,badgeLabel:o}=Gt.casa,c=Math.round(e*1.22);return n?d.jsxs("div",{role:"img","aria-label":r,className:Re("flex flex-col items-center justify-center gap-2 rounded-2xl border border-brand-purple/15 bg-brand-purple/[0.04] px-6 py-5 text-center",t),style:{width:e,minHeight:c},children:[d.jsx(S8,{className:"h-10 w-10 text-brand-purple/70","aria-hidden":!0}),d.jsx("span",{className:"text-[12px] font-semibold leading-snug text-brand-purple/90",children:o})]}):d.jsx("img",{src:s,alt:r,width:e,height:c,onError:()=>i(!0),className:Re("h-auto w-auto max-w-full",t)})}function zn({children:e,className:t,delay:n=0,duration:i=.7,direction:s="up",distance:r=50,scale:o,rotate:c,blur:u=!1,once:h=!0,threshold:f=.15}){const m=P.useRef(null),x=Lp(m,{once:h,margin:`-${Math.round(f*100)}% 0px -${Math.round(f*100)}% 0px`,amount:f}),y=()=>{const k={opacity:0};switch(s){case"up":k.y=r;break;case"down":k.y=-r;break;case"left":k.x=r;break;case"right":k.x=-r;break}return o!==void 0&&(k.scale=o),c!==void 0&&(k.rotateZ=c),u&&(k.filter="blur(10px)"),k},b=()=>{const k={opacity:1};return(s==="up"||s==="down")&&(k.y=0),(s==="left"||s==="right")&&(k.x=0),o!==void 0&&(k.scale=1),c!==void 0&&(k.rotateZ=0),u&&(k.filter="blur(0px)"),k};return d.jsx(it.div,{ref:m,className:Re("will-change-[transform,opacity,filter]",t),initial:y(),animate:x?b():y(),transition:{duration:i,delay:n/1e3,ease:[.16,1,.3,1]},children:e})}function N0({children:e,className:t,glowColor:n="rgba(134, 118, 245, 0.15)",glowSize:i=250,borderRadius:s}){const r=P.useRef(null),o=ka(0),c=ka(0),[u,h]=P.useState(!1),f=So(o,{damping:25,stiffness:200}),m=So(c,{damping:25,stiffness:200}),x=y=>{const b=r.current;if(!b)return;const k=b.getBoundingClientRect();o.set(y.clientX-k.left),c.set(y.clientY-k.top)};return d.jsxs(it.div,{ref:r,className:Re("group relative overflow-hidden",t),onMouseMove:x,onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),style:{borderRadius:s},whileHover:{y:-4,transition:{duration:.3,ease:[.16,1,.3,1]}},children:[d.jsx(it.div,{className:"pointer-events-none absolute -z-10 rounded-full",style:{width:i,height:i,x:f,y:m,translateX:"-50%",translateY:"-50%",background:`radial-gradient(circle, ${n}, transparent 70%)`},animate:{opacity:u?1:0},transition:{duration:.3}}),d.jsx(it.div,{className:"pointer-events-none absolute inset-0 rounded-[inherit] z-10",style:{padding:1,background:"linear-gradient(135deg, rgba(29,58,102,0.25), rgba(201,123,58,0.15), rgba(58,107,176,0.2))",mask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",WebkitMask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",maskComposite:"exclude",WebkitMaskComposite:"xor"},animate:{opacity:u?1:0},transition:{duration:.4}}),e]})}function cp({children:e,className:t,radius:n=100,strength:i=.35,scale:s=1.05}){const r=P.useRef(null),o=ka(0),c=ka(0),u=So(o,{damping:20,stiffness:250}),h=So(c,{damping:20,stiffness:250}),f=So(1,{damping:20,stiffness:250}),m=b=>{const k=r.current;if(!k)return;const w=k.getBoundingClientRect(),S=w.left+w.width/2,j=w.top+w.height/2,N=b.clientX-S,E=b.clientY-j,T=Math.sqrt(N*N+E*E);if(T<n){const L=1-T/n;o.set(N*i*L),c.set(E*i*L)}},x=()=>{f.set(s)},y=()=>{o.set(0),c.set(0),f.set(1)};return d.jsx(it.div,{ref:r,className:Re("inline-block",t),onMouseMove:m,onMouseEnter:x,onMouseLeave:y,style:{x:u,y:h,scale:f},children:e})}const v7=[{title:"CASA Tier 2",status:"Complete",description:`Verified ${Gt.casa.certifiedOnLabel} by ${Gt.casa.assessor} under Google's Cloud Application Security Assessment (lab-tested, lab-verified).`},{title:"SOC 2 Type II",status:"Planned",description:"Controls and documentation aligned to Trust Services Criteria. Formal attestation is on our roadmap — not yet started or certified."},{title:"Continuous assurance",status:"Ongoing",description:"Annual CA
205SA revalidation, vulnerability management, and security monitoring across production environments."}],y7=()=>{const{casa:e,soc2:t}=Gt;return d.jsxs("div",{className:"min-h-full bg-[#faf8f6] font-geist text-stone-800",children:[d.jsx(si,{}),d.jsx("main",{children:d.jsxs(it.div,{className:"overflow-hidden",children:[d.jsxs("section",{className:"relative overflow-hidden pt-32 pb-16 md:pt-40 md:pb-24",children:[d.jsxs("div",{className:"pointer-events-none absolute inset-0 -z-10",children:[d.jsx(it.div,{className:"absolute inset-0 bg-bg"}),d.jsx(it.div,{className:"absolute right-[8%] top-[-6%] h-[50vh] w-[42vw] rounded-full opacity-[0.07]",style:{background:"radial-gradient(ellipse at 70% 30%, #1D3A66, transparent 65%)"},animate:{y:[0,12,0]},transition:{duration:12,repeat:1/0,ease:"easeInOut"}})]}),d.jsx(Vn,{children:d.jsxs("div",{className:"mx-auto flex max-w-5xl flex-col items-center gap-10 md:flex-row md:items-center md:justify-between md:gap-14",children:[d.jsxs("div",{className:"max-w-2xl text-center md:text-left",children:[d.jsxs(it.div,{initial:{opacity:0,y:-12},animate:{opacity:1,y:0},transition:{duration:.5,delay:.06},className:"eyebrow-pill",children:[d.jsx(j8,{className:"h-3.5 w-3.5","aria-hidden":!0}),d.jsx("span",{className:"tracking-wide uppercase",children:"Trust Center"})]}),d.jsx(it.h1,{className:"text-balance text-[clamp(2.2rem,4.5vw,3.6rem)] font-extrabold leading-[1.08] tracking-tight text-brand-purple",initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.55,delay:.12},children:"Security you can verify"}),d.jsx(it.p,{className:"mt-5 text-pretty text-[17px] leading-[1.7] text-text-secondary md:text-[18px]",initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.55,delay:.2},children:b7()}),d.jsxs(it.div,{className:"mt-6 flex flex-wrap items-center justify-center gap-2 md:justify-start",initial:{opacity:0}
205,animate:{opacity:1},transition:{delay:.28},children:[d.jsxs("span",{className:"rounded-full bg-emerald-500/[0.06] px-3 py-1 text-[12px] font-medium text-emerald-700",children:[e.name," ",e.tier," verified"]}),d.jsxs("span",{className:"rounded-full bg-black/[0.02] px-3 py-1 text-[12px] font-medium text-text-secondary",children:["Since ",e.certifiedOnLabel]}),d.jsx("span",{className:"rounded-full bg-black/[0.02] px-3 py-1 text-[12px] font-medium text-text-secondary",children:t.label})]})]}),d.jsxs(it.div,{initial:{opacity:0,scale:.96},animate:{opacity:1,scale:1},transition:{duration:.6,delay:.18},className:"flex shrink-0 flex-col items-center rounded-3xl bg-white px-8 py-8 shadow-[var(--shadow-card)]",children:[d.jsx(fv,{width:150}),d.jsxs("p",{className:"mt-4 max-w-[220px] text-center text-[12px] leading-relaxed text-text-muted",children:[e.badgeLabel,d.jsx("br",{}),e.tier," · Verified ",e.certifiedOnLabel]})]})]})})]}),d.jsx("section",{className:"pb-20 md:pb-28",children:d.jsx(Vn,{children:d.jsx(zn,{distance:36,blur:!0,children:d.jsx("div",{className:"mx-auto max-w-3xl overflow-hidden rounded-3xl shadow-[var(--shadow-md)] bg-gradient-to-br from-[#FAFAF7] via-white to-white p-8 md:p-12",children:d.jsxs(it.div,{className:"flex flex-col gap-8 md:flex-row md:items-start md:gap-12",children:[d.jsx("div",{className:"flex shrink-0 justify-center md:justify-start",children:d.jsx(fv,{width:130})}),d.jsxs("div",{children:[d.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-[0.2em] text-brand-purple/60",children:"Certification"}),d.jsxs("h2",{className:"mt-2 text-[22px] font-bold tracking-tight text-text-primary md:text-[28px]",children:[e.name," ",e.tier," · ",e.badgeLabel]}),d.jsxs("p",{className:"mt-2 text-[13px] font-medium text-emerald-700",children:["Verified ",e.certifiedOnLabel," · Assessed by ",e.assessor]}),d.jsx("p",{className:"mt-3 text-[15px] leading-[1.7] text-text-secondary",children:e.summary}),d.jsx("ul",{className:"mt-5 space-y-2.5",children:[`${e.tier}: lab-tested, lab-verified under the App Defense Alliance`,`${e.assessor} — Google-authorized ADA CASA assessor`,"Validates application security for sensitive data and API access","Revalidated annually under App Defense Alliance requirements"].map(n=>d.jsxs("li",{className:"flex items-start gap-2.5 text-[13px] text-text-secondary",children:[d.jsx(Ox,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-emerald-500"}),n]},n))})]})]})})})})}),d.jsx("section",{className:"pb-20 md:pb-28",children:d.jsxs(Vn,{children:[d.jsx(zn,{distance:40,blur:!0,children:d.jsxs(it.div,{className:"mx-auto mb-12 max-w-2xl text-center",children:[d.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-[0.2em] text-brand-teal/70",children:"Assurance"}),d.jsx("h2",{className:"mt-3 text-[26px] font-bold tracking-tight text-text-primary md:text-[34px]",children:"What we can stand behind today"})]})}),d.jsx("div",{className:"mx-auto grid max-w-5xl gap-5 md:grid-cols-3",children:g7.map((n,i)=>d.jsx(zn,{delay:i*80,distance:28,children:d.jsx(N0,{glowColor:"rgba(134, 118, 245, 0.08)",className:"h-full rounded-2xl bg-white shadow-[var(--shadow-card)]",children:d.jsxs("div",{className:"p-6 md:p-7",children:[d.jsx("h3",{className:"text-[16px] font-semibold text-text-primary",children:n.title}),d.jsx("p",{className:"mt-2 text-[13px] leading-[1.65] text-text-secondary",children:n.description})]})})},n.title))})]})}),d.jsx("section",{className:"py-20 md:py-28",children:d.jsxs(Vn,{children:[d.jsx(zn,{distance:40,blur:!0,children:d.jsxs(it.div,{className:"mx-auto mb-12 max-w-2xl text-center",children:[d.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-[0.2em] text-brand-navy/50",children:"Roadmap"}),d.jsx("h2",{className:"mt-3 text-[26px] font-bold tracking-tight text-text-primary md:text-[34px]",children:"Compliance journey"}),d.jsx("p",{className:"mx-auto mt-3 max-w-lg text-[15px] leading-relaxed text-text-secondary",children:"We distinguish verified certifications from readiness work in progress — so your security team knows exactly where we are."})]})}),d.jsx("div",{className:"mx-auto grid max-w-4xl gap-4",children:v7.map((n,i)=>d.jsx(zn,{delay:i*70,distance:22,children:d.jsxs("div",{className:"flex flex-col gap-3 rounded-2xl bg-white shadow-[var(--shadow-card)] p-6 md:flex-row md:items-center md:justify-between md:p-7",children:[d.jsxs("div",{children:[d.jsx("h3",{className:"text-[16px] font-semibold text-text-primary",children:n.title}),d.jsx("p",{className:"mt-1.5 max-w-2xl text-[13px] leading-[1.65] text-text-secondary",children:n.description})]}),d.jsx("span",{className:`inline-flex w-fit shrink-0 rounded-full px-3 py-1 text-[12px] font-semibold ${n.status==="Complete"?"bg-emerald-500/10 text-emerald-700":n.status==="Planned"?"bg-amber-500/10 text-amber-800":"bg-accent-soft text-brand-purple"}`,children:n.status})]})},n.title))})]})}),d.jsx("section",{className:"pb-20 md:pb-28",children:d.jsx(Vn,{children:d.jsx(zn,{distance:36,children:d.jsxs("div",{className:"mx-auto grid max-w-5xl gap-10 rounded-3xl bg-white shadow-[var(--shadow-card)] p-8 md:grid-cols-2 md:p-12",children:[d.jsxs("div",{children:[d.jsx(v8,{className:"h-8 w-8 text-brand-teal","aria-hidden":!0}),d.jsx("h2",{className:"mt-4 text-[22px] font-bold tracking-tight text-text-primary",children:"Security reviews"}),d.jsxs("p",{className:"mt-2 text-[14px] leading-relaxed text-text-secondary",children:["Procurement and security team
205s can reach out during vendor assessments. Technical control details live on our"," ",d.jsx("a",{href:"/security",className:"font-medium text-brand-purple underline decoration-black/15 underline-offset-4 hover:decoration-black/30",children:"Security"})," ","page."]})]}),d.jsx("ul",{className:"space-y-2.5",children:x7.map(n=>d.jsxs("li",{className:"flex items-start gap-2.5 text-[13px] text-text-secondary",children:[d.jsx(Ox,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-emerald-500"}),n]},n))})]})})})}),d.jsx("section",{className:"pb-24 md:pb-32",children:d.jsx(Vn,{children:d.jsx(zn,{distance:40,blur:!0,children:d.jsxs("div",{className:"mx-auto max-w-3xl rounded-3xl shadow-[var(--shadow-md)] bg-gradient-to-br from-[#FAFAF7] via-white to-[#F4F2EC] p-10 text-center md:p-14",children:[d.jsx("h2",{className:"text-[24px] font-bold tracking-tight text-text-primary md:text-[30px]",children:"Need trust & security details?"}),d.jsx("p",{className:"mx-auto mt-3 max-w-md text-[15px] leading-relaxed text-text-secondary",children:"We'll walk through our security overview and help with your vendor review process."}),d.jsxs("div",{className:"mt-8 flex flex-col items-center justify-center gap-3 sm:flex-row",children:[d.jsx(cp,{radius:90,strength:.3,children:d.jsx("a",{href:"/contact",children:d.jsxs(js,{variant:"glow",size:"xl",className:"group px-8",children:["Contact us",d.jsx(dd,{className:"h-4 w-4 transition-transform duration-300 group-hover:translate-x-1"})]})})}),d.jsx(cp,{radius:70,strength:.25,children:d.jsx("a",{href:"/security",children:d.jsx(js,{variant:"secondary",size:"lg",children:"View security controls"})})})]})]})})})})]})}),d.jsx(Ci,{})]})};function b7(){return d.jsxs(d.Fragment,{children:["Confeti is"," ",d.jsx("strong",{className:"font-semibold text-text-primary",children:"CASA Tier 2 verified"})," ","and ",d.jsx("strong",{className:"font-semibold text-text-primary",children:"ESOF Shield certified"}),". Our platform is built with"," ",d.jsx("strong",{className:"font-semibold text-text-primary",children:"SOC 2–aligned controls"})," ","— we are not yet SOC 2 Type II attested, but CASA validation and our security program cover the application-security bar enterprise teams expect."]})}const w7=[{title:"CASA Verified",description:Gt.casa.summary,items:[`${Gt.casa.tier} · Verified ${Gt.casa.certifiedOnLabel}`,`${Gt.casa.badgeLabel}`,`Assessed by ${Gt.casa.assessor}`,"Annual revalidation under App Defense Alliance"],glowColor:"rgba(16, 185, 129, 0.10)"},{title:Gt.soc2.label,description:Gt.soc2.summary,items:["Controls for candidate and interview data","Change management and incident response","Continuous monitoring and alerting","Company-level data isolation"],glowColor:"rgba(134, 118, 245, 0.10)"},{title:"AI Governance",description:"Our AI systems are auditable, explainable, and designed with governance artifacts aligned to recognized frameworks.",items:["NIST AI Risk Management Framework","EU AI Act preparedness","NYC AEDT compliance alignment","Bias monitoring and model auditing"],glowColor:"rgba(243, 139, 100, 0.10)"},{title:"Data Privacy",description:"Privacy is built into the product architecture — not bolted on after the fact. Candidate data is treated with the highest care.",items:["Encryption at rest and in transit","Role-based access controls (RBAC)","Data retention and deletion policies","Candidate consent flows"],glowColor:"rgba(50, 213, 199, 0.10)"}],_7=[{title:"Audit Logging",description:"Full audit trail for authentication, data access, security events, and API activity — queryable and exportable."},{title:"Rate Limiting",description:"Configurable limits across all API surfaces to protect against brute force, abuse, and automated attacks."},{title:"Session Management",description:"Session controls designed for compliance: configurable timeouts, token rotation, and real-time activity tracking."},{title:"RBAC & Isolation",description:"Role-based access control with company-level data isolation across jobs, candidates, interviews, and recordings."},{title:"SSO & SCIM",description:"Enterprise SSO integration and SCIM provisioning for automated user lifecycle management across your org."},{title:"Incident Response",description:"Documented incident response procedures with defined escalation paths, communication protocols, and post-incident review."}],k7=()=>d.jsxs("div",{className:"min-h-full bg-[#faf8f6] font-geist text-stone-800",children:[d.jsx(si,{}),d.jsx("main",{children:d.jsxs("div",{className:"overflow-hidden",children:[d.jsxs("section",{className:"relative overflow-hidden pt-32 pb-20 md:pt-40 md:pb-28",children:[d.jsxs("div",{className:"pointer-events-none absolute inset-0 -z-10",children:[d.jsx("div",{className:"absolute inset-0 bg-bg"}),d.jsx(it.div,{className:"absolute right-[6%] top-[-8%] h-[55vh] w-[45vw] rounded-full opacity-[0.06]",style:{background:"radial-gradient(ellipse at 70% 30%, #1D3A66, transparent 65%)"},animate:{y:[0,14,0]},transition:{duration:13,repeat:1/0,ease:"easeInOut"}}),d.jsx(it.div,{className:"absolute -left-[8%] top-[25%] h-[30vh] w-[30vw] rounded-full opacity-[0.05]",style:{background:"radial-gradient(ellipse at center, #3A6BB0, transparent 65%)"},animate:{y:[0,-11,0]},transition:{duration:15,repeat:1/0,ease:"easeInOut"}})]}),[{color:"#1D3A66",size:5,top:"14%",left:"9%",delay:0},{color:"#3A6BB0",size:6,top:"20%",right:"12%",delay:1},{color:"#C97B3A",size:4,top:"58%",left:"7%",delay:2},{color:"#1D3A66",size:5,top:"52%",right:"10%",delay:.7}].map((e,t)=>d.jsx(it.div,{className:"pointer-events-none absolute rounded-full",style:{width:e.size,height:e.size,background:e.color,opacity:.2,top:e.top,left
205:e.left,right:e.right},animate:{y:[0,-10,3,-7,0],opacity:[.15,.3,.15,.25,.15]},transition:{duration:9+t*2,repeat:1/0,ease:"easeInOut",delay:e.delay}},t)),d.jsx(Vn,{children:d.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[d.jsxs(it.div,{initial:{opacity:0,y:-15,scale:.9},animate:{opacity:1,y:0,scale:1},transition:{duration:.55,delay:.08,ease:[.16,1,.3,1]},className:"mb-6 inline-flex items-center gap-2 rounded-full bg-brand-teal/[0.04] px-4 py-1.5 text-[12px] font-medium text-brand-teal/80",children:[d.jsxs("span",{className:"relative flex h-2 w-2",children:[d.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-brand-teal/60 opacity-75"}),d.jsx("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-brand-teal"})]}),d.jsx("span",{className:"tracking-wide uppercase",children:"Security"})]}),d.jsxs(it.h1,{className:"text-balance text-[clamp(2.4rem,5vw,4.2rem)] font-extrabold leading-[1.05] tracking-tight",initial:{opacity:0},animate:{opacity:1},transition:{duration:.3,delay:.14},children:[d.jsx(it.span,{className:"block text-brand-purple",initial:{opacity:0,filter:"blur(12px)",y:8},animate:{opacity:1,filter:"blur(0px)",y:0},transition:{type:"spring",damping:30,stiffness:200,delay:.14},children:"Built for sensitive data"}),d.jsx(it.span,{className:"mt-1 block whitespace-nowrap pb-[0.05em] leading-[1.1] text-[clamp(1.4rem,3vw,2.6rem)] text-accent-gradient md:mt-2",initial:{opacity:0,filter:"blur(12px)",y:8},animate:{opacity:1,filter:"blur(0px)",y:0},transition:{type:"spring",damping:30,stiffness:200,delay:.22},children:"and real audits."})]}),d.jsxs(it.p,{className:"mx-auto mt-6 max-w-2xl text-pretty text-[17px] leading-[1.7] text-text-secondary md:text-[18px]",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.65,delay:.26,ease:[.16,1,.3,1]},children:["Confeti handles candidate information, interview recordings, and hiring decisions. We're"," ",d.jsx("a",{href:"/trust",className:"font-medium text-brand-purple underline decoration-black/15 underline-offset-4 hover:decoration-black/30",children:"CASA Tier 2 verified"})," ","and ESOF Shield certified, with SOC 2–aligned controls across the platform."]})]})})]}),d.jsx("section",{className:"pb-16 md:pb-20",children:d.jsx(Vn,{children:d.jsx(zn,{distance:30,children:d.jsxs("div",{className:"mx-auto flex max-w-3xl flex-col items-center gap-6 rounded-2xl bg-white shadow-[var(--shadow-card)] px-8 py-8 text-center md:flex-row md:gap-10 md:text-left",children:[d.jsx(fv,{width:120}),d.jsxs("div",{children:[d.jsx("p",{className:"text-[15px] font-semibold text-text-primary",children:Gt.casa.badgeLabel}),d.jsxs("p",{className:"mt-1.5 text-[13px] leading-relaxed text-text-secondary",children:[Gt.casa.name," ",Gt.casa.tier," ","verified ",Gt.casa.certifiedOnLabel," through"," ",Gt.casa.fullName,"."," ",d.jsx("a",{href:"/trust",className:"font-medium text-brand-purple underline decoration-black/15 underline-offset-4 hover:decoration-black/30",children:"Trust Center →"})]})]})]})})})}),d.jsx("section",{className:"pb-20 md:pb-28",children:d.jsxs(Vn,{children:[d.jsx(zn,{distance:40,blur:!0,children:d.jsxs("div",{className:"mx-auto mb-14 max-w-2xl text-center",children:[d.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-[0.2em] text-brand-purple/60",children:"Security Pillars"}),d.jsx("h2",{className:"mt-3 text-[26px] font-bold tracking-tight text-text-primary md:text-[34px]",children:"Enterprise-grade from day one"}),d.jsx("p",{className:"mx-auto mt-3 max-w-lg text-[15px] leading-relaxed text-text-secondary",children:"Four pillars that underpin every layer of the platform — verified application security, SOC 2 readiness, AI governance, and data privacy."})]})}),d.jsx("div",{className:"mx-auto grid max-w-6xl gap-5 sm:grid-cols-2 xl:grid-cols-4",children:w7.map((e,t)=>d.jsx(zn,{delay:t*80,distance:30,scale:.97,children:d.jsx(N0,{glowColor:e.glowColor,className:"h-full rounded-2xl bg-white shadow-[var(--shadow-card)]",children:d.jsxs("div",{className:"flex h-full flex-col p-6 md:p-7",children:[d.jsx("h3",{className:"text-[16px] font-semibold text-text-primary",children:e.title}),d.jsx("p",{className:"mt-2 text-[13px] leading-[1.65] text-text-secondary",children:e.description}),d.jsx("div",{className:"mt-5 flex-1 space-y-2.5",children:e.items.map(n=>d.jsxs("div",{className:"flex items-start gap-2.5 text-[13px] text-text-secondary",children:[d.jsx(Ox,{className:"mt-0.5 h-3.5 w-3.5 flex-shrink-0 text-emerald-500"}),d.jsx("span",{children:n})]},n))})]})})}
205,e.title))})]})}),d.jsx("section",{className:"py-20 md:py-28",children:d.jsxs(Vn,{children:[d.jsx(zn,{distance:40,blur:!0,children:d.jsxs("div",{className:"mx-auto mb-14 max-w-2xl text-center",children:[d.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-[0.2em] text-brand-teal/70",children:"Core Controls"}),d.jsx("h2",{className:"mt-3 text-[26px] font-bold tracking-tight text-text-primary md:text-[34px]",children:"Practical safeguards, every day"}),d.jsx("p",{className:"mx-auto mt-3 max-w-lg text-[15px] leading-relaxed text-text-secondary",children:"The technical controls that protect data across the platform — from authentication to data isolation."})]})}),d.jsx("div",{className:"mx-auto grid max-w-5xl gap-5 md:grid-cols-2 lg:grid-cols-3",children:_7.map((e,t)=>d.jsx(zn,{delay:t*70,distance:25,children:d.jsxs("div",{className:"h-full rounded-2xl bg-white p-6 shadow-[var(--shadow-card)] md:p-7",children:[d.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-accent-soft text-[14px] font-bold text-brand-purple",children:String(t+1).padStart(2,"0")}),d.jsx("h3",{className:"mt-4 text-[16px] font-semibold text-text-primary",children:e.title}),d.jsx("p",{className:"mt-2 text-[13px] leading-[1.65] text-text-secondary",children:e.description})]})},e.title))})]})}),d.jsx("section",{className:"pb-24 md:pb-32",children:d.jsx(Vn,{children:d.jsx(zn,{distance:40,blur:!0,children:d.jsx("div",{className:"mx-auto max-w-3xl overflow-hidden rounded-3xl bg-gradient-to-br from-[#FAFAF7] via-white to-[#F4F2EC] p-10 shadow-[var(--shadow-md)] md:p-14",children:d.jsxs("div",{className:"relative text-center",children:[d.jsx("h2",{className:"text-[24px] font-bold tracking-tight text-text-primary md:text-[30px]",children:"Need security details?"}),d.jsx("p",{className:"mx-auto mt-3 max-w-md text-[15px] leading-relaxed text-text-secondary",children:"We can share a detailed overview of controls, compliance artifacts, and help align to your security review process."}),d.jsxs("div",{className:"mt-8 flex flex-col items-center justify-center gap-3 sm:flex-row",children:[d.jsx(cp,{radius:90,strength:.3,children:d.jsx("a",{href:"/contact",children:d.jsxs(js,{variant:"glow",size:"xl",className:"group px-8",children:["Contact us",d.jsx(dd,{className:"h-4 w-4 transition-transform duration-300 group-hover:translate-x-1"})]})})}),d.jsx(cp,{radius:70,strength:.25,children:d.jsx("a",{href:"/ai-page",children:d.jsx(js,{variant:"secondary",size:"lg",children:"Explore product"})})})]})]})})})})})]})}),d.jsx(Ci,{})]}),T0=[{slug:"can-ai-find-better-candidates",format:"rich",eyebrow:"AI in hiring",title:"Can AI help you find better job candidates?",metaTitle:"Can AI Help You Find Better Job Candidates? (Honest Answer)",dek:"AI won't find better candidates by sourcing harder. Here's where it actually improves hiring decisions—interview validity, evidence, and the cost of a bad hire.",keywords:["can AI find better candidates","AI hiring","structured interviews","interview validity","hiring intelligence"],standfirst:"Short answer: not by searching harder. AI's real leverage in hiring isn't finding more candidates. It's helping you decide better about the ones already in front of you.",publishedAt:"2026-06-01",readingTimeMinutes:8,tags:["AI in hiring","Evidence-backed hiring"]},{slug:"ai-screening-bias",format:"rich",eyebrow:"AI, Bias & the Law",title:"AI screening does not remove bias. It can scale it.",metaTitle:"Does AI Screening Remove Bias? No, It Can Scale It",dek:"The pitch is that AI screening is objective where humans are biased. The evidence says an unguardrailed screen does not remove bias, it industrializes it.",keywords:["does AI screening remove bias","AI hiring bias","resume screening AI","algorithmic bias hiring","EEOC AI hiring"],standfirst:"The pitch is that AI screening is objective where humans are biased. The evidence says an unguardrailed screen does not remove bias, it industrializes it, applying the same flawed judgment to every resume at once.",publishedAt:"2026-06-08",readingTimeMinutes:6,tags:["Bias & compliance","AI screening"]},{slug:"time-to-hire-vanity-metric",format:"rich",eyebrow:"Recruiting Metrics",title:"Time-to-hire is a vanity metric",metaTitle:"Is Time-to-Hire a Real KPI? Speed Isn't the Goal",dek:"Yes, AI will shrink y
205our time-to-hire. That is exactly the problem. The fastest way to fill a seat is to hire the first person who walks through the door.",keywords:["time to hire vanity metric","quality of hire","time to fill vs time to hire","hiring metrics","talent density"],standfirst:"Yes, AI will shrink your time-to-hire. That is exactly the problem. The fastest way to fill a seat is to hire the first person who walks through the door, and speed alone never told you whether that was a good idea.",publishedAt:"2026-06-15",readingTimeMinutes:4,tags:["Metrics","Quality of hire"]},{slug:"faster-hiring-not-better-hiring",format:"rich",eyebrow:"AI & Recruiting",title:"Faster hiring is not better hiring",metaTitle:"Does AI Speed Up Hiring? Yes, But Faster Is Not Better",dek:"AI will speed up hiring. Whether that helps depends on which stage you accelerate—speed the wrong part and you damage brand and decisions together.",keywords:["does AI speed up hiring","faster hiring not better","candidate experience hiring","async video interview","human in the loop hiring"],standfirst:"AI will speed up your hiring. Whether that helps depends entirely on which part you speed up. Accelerate the wrong stage and you damage your brand and your decisions at the same time.",publishedAt:"2026-06-22",readingTimeMinutes:5,tags:["AI in hiring","Candidate experience"]},{slug:"hiring-work-before-the-interview",format:"rich",eyebrow:"Process & Structure",title:"The hiring work happens before the interview",metaTitle:"Why Hiring Is Slow: Work Before the Interview",dek:"AI speeds scheduling, screening, and notes. It won't fix the real bottleneck—days leak from work nobody did before anyone sat down to interview.",keywords:["why is hiring so slow","structured interview","interview scoring rubric","hiring process design","interview validity"],standfirst:"AI will speed up scheduling, screening, and notes. It will not fix your real bottleneck, because the days do not leak out of scheduling. They leak out of the work nobody did before anyone sat down to interview.",publishedAt:"2026-06-29",readingTimeMinutes:5,tags:["Process design","Structured hiring"]},{slug:"human-in-the-loop-trap",format:"rich",eyebrow:"AI Oversight",title:"The human-in-the-loop trap",metaTitle:"Does Human-in-the-Loop Fix Biased AI Hiring?",dek:"“We keep a human in the loop” is the reflexive answer to AI hiring risk. Research is blunt: people on biased models mostly absorb the bias.",keywords:["human in the loop hiring bias","AI hiring oversight","biased AI recommendations","human agency resume screening","algorithmic hiring bias"],standfirst:"“We keep a human in the loop” is the reflexive answer to every AI hiring risk. The research is blunt: drop a person on top of a biased model and they mostly absorb the bias rather than catch it.",publishedAt:"2026-07-06",readingTimeMinutes:5,tags:["AI oversight","Bias & compliance"]},{slug:"anonymized-resume-illusion",format:"rich",eyebrow:"Bias & Screening",title:"The anonymized-resume illusion",metaTitle:"Does Anonymizing Resumes Remove Hiring Bias? No — Here's Why",dek:"Blind screening feels responsible. Research shows models reconstruct race, gender, and class from what redaction leaves—bias goes underground, not away.",keywords:["anonymized resume bias","blind resume screening AI","resume anonymization hiring","sociocultural proxy resume","LLM hiring bias"],standfirst:"Blind screening feels like the responsible fix for hiring bias. The research shows models reconstruct race, gender, and class from the markers redaction leaves behind. The bias does not disappear. It goes underground.",publishedAt:"2026-07-13",readingTimeMinutes:4,tags:["Bias & screening","Resume AI"]},{slug:"ai-hiring-liability-2026",format:"rich",eyebrow:"AI, Risk & the Law",title:"AI hiring liability: what talent leaders need to know in 2026",metaTitle:"Who Is Liable When AI Hiring Discriminates? (2026)",dek:"The assumption that your screening vendor owns legal risk is collapsing. Case law and enforcement push exposure onto employers—“the software did it” is not a defense.",keywords:["AI hiring liability","Mobley v Workday","EEOC AI hiring","NYC Local Law 144","automated employment decision tools"],standfirst:"The assumption that your screening vendor owns the legal r
205isk is quietly collapsing. Recent case law and enforcement are moving the exposure onto employers, and “the software did it” is no longer a defense.",publishedAt:"2026-07-20",readingTimeMinutes:6,tags:["Compliance","AI in hiring"]}];T0.map(e=>e.slug);function S7(e){return T0.find(t=>t.slug===e)}function j7(e){return S7(e)}function MN(e){return new Date(`${e}T12:00:00`).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}function C7({article:e}){const t=`/labs/${e.slug}`,n=e.tags[0];return d.jsx(N0,{glowColor:"rgba(29, 58, 102, 0.07)",className:Re("h-full min-h-[20rem] rounded-2xl bg-surface shadow-[var(--shadow-card)]","ring-1 ring-black/[0.04] md:min-h-[21rem] lg:min-h-[22rem]"),children:d.jsxs("a",{href:t,className:"group/link flex h-full min-h-[inherit] flex-col p-6 md:p-7",children:[d.jsxs("div",{className:"flex items-center justify-between gap-3",children:[n?d.jsx("span",{className:"text-eyebrow truncate text-brand-purple/80",title:n,children:n}):d.jsx("span",{className:"text-eyebrow text-brand-purple/50",children:"Research"}),d.jsxs("span",{className:"shrink-0 text-caption text-text-muted",children:[e.readingTimeMinutes," min"]})]}),d.jsx("h3",{className:"text-h3 text-clamp-3 mt-4 text-text-primary transition-colors duration-200 group-hover/link:text-brand-purple",children:e.title}),d.jsx("p",{className:"text-body text-clamp-4 mt-3 min-h-0 flex-1 text-text-secondary",children:e.dek}),d.jsxs("div",{className:"mt-5 flex items-center justify-between gap-3 border-t border-border-subtle/80 pt-4",children:[d.jsx("time",{dateTime:e.publishedAt,className:"truncate text-caption text-text-muted",children:MN(e.publishedAt)}),d.jsx("span",{className:"shrink-0 text-[13px] font-semibold text-brand-purple transition-colors duration-200 group-hover/link:text-accent",children:"Read article →"})]})]})})}const N7=()=>{const e=[...T0].sort((t,n)=>n.publishedAt.localeCompare(t.publishedAt));return d.jsxs("div",{className:"min-h-full bg-[#faf8f6] font-geist text-stone-800",children:[d.jsx(si,{}),d.jsx("main",{children:d.jsxs(Vn,{className:"py-14 md:py-20",children:[d.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[d.jsxs("div",{className:"eyebrow-pill mx-auto mb-5 w-fit",children:[d.jsx(b8,{className:"h-3.5 w-3.5 text-accent","aria-hidden":!0}),d.jsx("span",{children:"Confeti Labs"})]}),d.jsx("h1",{className:"text-h1 text-balance",children:"Research on hiring intelligence"}),d.jsx("p",{className:"text-lead mx-auto mt-4 max-w-2xl text-pretty",children:"Short notes from our team on interview evidence, signal coverage, and decisions that compound. We're publishing selectively while we build — more is on the way."})]}),d.jsx("div",{className:"mx-auto mt-12 grid max-w-5xl auto-rows-fr gap-5 md:grid-cols-2 lg:grid-cols-3",children:e.map(t=>d.jsx("div",{className:"flex min-h-0",children:d.jsx(C7,{article:t})},t.slug))}),d.jsxs("div",{className:"mx-auto mt-12 max-w-3xl rounded-3xl border border-dashed border-border-subtle bg-surface/80 px-6 py-8 text-center shadow-[var(--shadow-xs)] md:px-10",children:[d.jsx("p",{className:"text-[15px] font-medium text-text-primary",children:"More research notes coming soon"}),d.jsx("p",{className:"text-body mx-auto mt-2 max-w-lg",children:"We'll add deeper studies on calibration, decision audits, and structured-hiring benchmarks as we run them with design partners."}),d.jsxs("div",{className:"mt-6 flex flex-col items-center justify-center gap-3 sm:flex-row",children:[d.jsx("a",{href:"/contact",children:d.jsx(js,{size:"md",className:"rounded-full",children:"Partner with us"})}),d.jsxs("a",{href:"/resources",className:"inline-flex items-center gap-2 text-[13px] font-semibold text-brand-purple hover:underline underline-offset-4",children:["Product resources ",d.jsx(dd,{className:"h-4 w-4"})]})]})]})]})}),d.jsx(Ci,{})]})};function T7({blocks:e}){return d.jsx("div",{className:"labs-prose mx-auto max-w-2xl",children:e.map((t,n)=>t.type==="h2"?d.jsx("h2",{className:"text-h3 mt-10 text-balance text-text-primary first:mt-0",children:t.text},n):t.type==="ul"?d.jsx("ul",{className:"mt-4 list-disc space-y-2 pl-5 text-[15px] leading-relaxed text-text-secondary",children:t.items.map(i=>d.jsx("li",{children:i},i))},n):d.jsx("p",{className:"mt-4 text-[15px] leading-[1.75] text-text-secondary first:mt-0",children:t.text},n))})}const cc=Do.urls.site;function E0({data:e}){return d.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(e)}})}function E7({items:e}){return d.jsx(E0,{data:{"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(t=>
vendor: 10,142 bytes, lines 205-215
205({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer}}))}})}function A7({title:e,description:t,slug:n,publishedAt:i,keywords:s}){const r=`${cc}/labs/${n}`;return d.jsx(E0,{data:{"@context":"https://schema.org","@type":"Article",headline:e,description:t,datePublished:i,dateModified:i,author:{"@type":"Organization",name:Do.name,url:cc},publisher:{"@type":"Organization",name:Do.name,url:cc,logo:{"@type":"ImageObject",url:`${cc}/favicon.png`}},mainEntityOfPage:{"@type":"WebPage","@id":r},url:r,...s!=null&&s.length?{keywords:s.join(", ")}:{},articleSection:"Confeti Labs",inLanguage:"en-US"}})}function P7({items:e}){return d.jsx(E0,{data:{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((t,n)=>({"@type":"ListItem",position:n+1,name:t.name,item:`${cc}${t.path}`}))}})}/*!
206 * @kurkle/color v0.3.4
207 * https://github.com/kurkle/color#readme
208 * (c) 2024 Jukka Kurkela
209 * Released under the MIT License
210 */function vd(e){return e+.5|0}const ur=(e,t,n)=>Math.max(Math.min(e,n),t);function dc(e){return ur(vd(e*2.55),0,255)}function xr(e){return ur(vd(e*255),0,255)}function vs(e){return ur(vd(e/2.55)/100,0,1)}function b2(e){return ur(vd(e*100),0,100)}const Zn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},mv=[..."0123456789ABCDEF"],I7=e=>mv[e&15],R7=e=>mv[(e&240)>>4]+mv[e&15],qu=e=>(e&240)>>4===(e&15),M7=e=>qu(e.r)&&qu(e.g)&&qu(e.b)&&qu(e.a);function O7(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Zn[e[1]]*17,g:255&Zn[e[2]]*17,b:255&Zn[e[3]]*17,a:t===5?Zn[e[4]]*17:255}:(t===7||t===9)&&(n={r:Zn[e[1]]<<4|Zn[e[2]],g:Zn[e[3]]<<4|Zn[e[4]],b:Zn[e[5]]<<4|Zn[e[6]],a:t===9?Zn[e[7]]<<4|Zn[e[8]]:255})),n}const L7=(e,t)=>e<255?t(e):"";function D7(e){var t=M7(e)?I7:R7;return e?"#"+t(e.r)+t(e.g)+t(e.b)+L7(e.a,t):void 0}const F7=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function ON(e,t,n){const i=t*Math.min(n,1-n),s=(r,o=(r+e/30)%12)=>n-i*Math.max(Math.min(o-3,9-o,1),-1);return[s(0),s(8),s(4)]}function $7(e,t,n){const i=(s,r=(s+e/60)%6)=>n-n*t*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function B7(e,t,n){const i=ON(e,1,.5);let s;for(t+n>1&&(s=1/(t+n),t*=s,n*=s),s=0;s<3;s++)i[s]*=1-t-n,i[s]+=t;return i}function z7(e,t,n,i,s){return e===s?(t-n)/i+(t<n?6:0):t===s?(n-e)/i+2:(e-t)/i+4}function A0(e){const n=e.r/255,i=e.g/255,s=e.b/255,r=Math.max(n,i,s),o=Math.min(n,i,s),c=(r+o)/2;let u,h,f;return r!==o&&(f=r-o,h=c>.5?f/(2-r-o):f/(r+o),u=z7(n,i,s,f,r),u=u*60+.5),[u|0,h||0,c]}function P0(e,t,n,i){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,i)).map(xr)}function I0(e,t,n){return P0(ON,e,t,n)}function V7(e,t,n){return P0(B7,e,t,n)}function H7(e,t,n){return P0($7,e,t,n)}function LN(e){return(e%360+360)%360}function W7(e){const t=F7.exec(e);let n=255,i;if(!t)return;t[5]!==i&&(n=t[6]?dc(+t[5]):xr(+t[5]));const s=LN(+t[2]),r=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?i=V7(s,r,o):t[1]==="hsv"?i=H7(s,r,o):i=I0(s,r,o),{r:i[0],g:i[1],b:i[2],a:n}}function q7(e,t){var n=A0(e);n[0]=LN(n[0]+t),n=I0(n),e.r=n[0],e.g=n[1],e.b=n[2]}function U7(e){if(!e)return;const t=A0(e),n=t[0],i=b2(t[1]),s=b2(t[2]);return e.a<255?`hsla(${n}, ${i}%, ${s}%, ${vs(e.a)})`:`hsl(${n}, ${i}%, ${s}%)`}const w2={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},_2={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function G7(){const e={},t=Object.keys(_2),n=Object.keys(w2);let i,s,r,o,c;for(i=0;i<t.length;i++){for(o=c=t[i],s=0;s<n.length;s++)r=n[s],c=c.replace(r,w2[r]);r=parseInt(_2[o],16),e[c]=[r>>16&255,r>>8&255,r&255]}return e}let Uu;function Y7(e){Uu||(Uu=G7(),Uu.transparent=[0,0,0,0]);const t=Uu[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const K7=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Q7(e){const t=K7.exec(e);let n=255,i,s,r;if(t){if(t[7]!==i){const o=+t[7];n=t[8]?dc(o):ur(o*255,0,255)}return i=+t[1],s=+t[3],r=+t[5],i=255&(t[2]?dc(i):ur(i,0,255)),s=255&(t[4]?dc(s):ur(s,0,255)),r=255&(t[6]?dc(r):ur(r,0,255)),{r:i,g:s,b:r,a:n}}}function X7(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${vs(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Bg=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,lo=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Z7(e,t,n){const i=lo(vs(e.r)),s=lo(vs(e.g)),r=lo(vs(e.b));return{r:xr(Bg(i+n*(lo(vs(t.r))-i))),g:xr(Bg(s+n*(lo(vs(t.g))-s))),b:xr(Bg(r+n*(lo(vs(t.b))-r))),a:e.a+n*(t.a-e.a)}}function Gu(e,t,n){if(e){let i=A0(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*n,t===0?360:1)),i=I0(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function DN(e,t){return e&&Object.assign(t||{},e)}function k2(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=xr(e[3]))):(t=DN(e,{r:0,g:0,b:0,a:1}),t.a=xr(t.a)),t}function J7(e){return e.charAt(0)==="r"?Q7(e):W7(e)}class td{constructor(t){if(t instanceof td)return t;const n=typeof t;let i;n==="object"?i=k2(t):n==="string"&&(i=O7(t)||Y7(t)||J7(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=DN(this._rgb);return t&&(t.a=vs(t.a)),t}set rgb(t){this._rgb=k2(t)}rgbString(){return this._valid?X7(this._rgb):void 0}hexString(){return this._valid?D7(this._rgb):void 0}hslString(){return this._valid?U7(this._rgb):void 0}mix(t,n){if(t){const i=this.rgb,s=t.rgb;let r;const o=n===r?.5:n,c=2*o-1,u=i.a-s.a,h=((c*u===-1?c:(c+u)/(1+c*u))+1)/2;r=1-h,i.r=255&h*i.r+r*s.r+.5,i.g=255&h*i.g+r*s.g+.5,i.b=255&h*i.b+r*s.b+.5,i.a=o*i.a+(1-o)*s.a,this.rgb=i}return this}interpolate(t,n){return t&&(this._rgb=Z7(this._rgb,t._rgb,n)),this}clone(){return new td(this.rgb)}alpha(t){return this._rgb.a=xr(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=vd(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Gu(this._rgb,2,t),this}darken(t){return Gu(this._rgb,2,-t),this}saturate(t){return Gu(this._rgb,1,t),this}desaturate(t){return Gu(this._rgb,1,-t),this}rotate(t){return q7(this._rgb,t),this}}/*!
211 * Chart.js v4.5.1
212 * https://www.chartjs.org
213 * (c) 2025 Chart.js Contributors
214 * Released under the MIT License
215 */function hs(){}const e$=(()=>{let e=0;return()=>e++})();function ht(e){return e==null}function nn(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function et(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function ii(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Li(e,t){return ii(e)?e:t}function Je(e,t){return typeof e>"u"?t:e}const t$=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,FN=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function vt(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function at(e,t,n,i){let s,r,o;if(nn(e))for(r=e.length,s=0;s<r;s++)t.call(n,e[s],s);else if(et(e))for(o=Object.keys(e),r=o.length,s=0;s<r;s++)t.call(n,e[o[s]],o[s])}function dp(e,t){let n,i,s,r;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(s=e[n],r=t[n],s.datasetIndex!==r.datasetIndex||s.index!==r.index)return!1;return!0}function up(e){if(nn(e))return e.map(up);if(et(e)){const t=Object.create(null),n=Object.keys(e),i=n.length;let s=0;for(;s<i;++s)t[n[s]]=up(e[n[s]]);return t}return e}function $N(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function n$(e,t,n,i){if(!$N(e))return;const s=t[e],r=n[e];et(s)&&et(r)?nd(s,r,i):t[e]=up(r)}
vendor: 51,786 bytes, lines 215-220
215function nd(e,t,n){const i=nn(t)?t:[t],s=i.length;if(!et(e))return e;n=n||{};const r=n.merger||n$;let o;for(let c=0;c<s;++c){if(o=i[c],!et(o))continue;const u=Object.keys(o);for(let h=0,f=u.length;h<f;++h)r(u[h],e,o,n)}return e}function Ic(e,t){return nd(e,t,{merger:i$})}function i$(e,t,n){if(!$N(e))return;const i=t[e],s=n[e];et(i)&&et(s)?Ic(i,s):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=up(s))}const S2={"":e=>e,x:e=>e.x,y:e=>e.y};function s$(e){const t=e.split("."),n=[];let i="";for(const s of t)i+=s,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function r$(e){const t=s$(e);return n=>{for(const i of t){if(i==="")break;n=n&&n[i]}return n}}function Sa(e,t){return(S2[t]||(S2[t]=r$(t)))(e)}function R0(e){return e.charAt(0).toUpperCase()+e.slice(1)}const id=e=>typeof e<"u",kr=e=>typeof e=="function",j2=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function a$(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const wt=Math.PI,$t=2*wt,hp=Number.POSITIVE_INFINITY,o$=wt/180,Qt=wt/2,ia=wt/4,C2=wt*2/3,BN=Math.log10,vr=Math.sign;function kh(e,t,n){return Math.abs(e-t)<n}function N2(e){const t=Math.round(e);e=kh(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(BN(e))),i=e/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function l$(e){const t=[],n=Math.sqrt(e);let i;for(i=1;i<n;i++)e%i===0&&(t.push(i),t.push(e/i));return n===(n|0)&&t.push(n),t.sort((s,r)=>s-r).pop(),t}function c$(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function pp(e){return!c$(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function d$(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function u$(e,t,n){let i,s,r;for(i=0,s=e.length;i<s;i++)r=e[i][n],isNaN(r)||(t.min=Math.min(t.min,r),t.max=Math.max(t.max,r))}function ks(e){return e*(wt/180)}function h$(e){return e*(180/wt)}function T2(e){if(!ii(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function zN(e,t){const n=t.x-e.x,i=t.y-e.y,s=Math.sqrt(n*n+i*i);let r=Math.atan2(i,n);return r<-.5*wt&&(r+=$t),{angle:r,distance:s}}function p$(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Vi(e){return(e%$t+$t)%$t}function fp(e,t,n,i){const s=Vi(e),r=Vi(t),o=Vi(n),c=Vi(r-s),u=Vi(o-s),h=Vi(s-r),f=Vi(s-o);return s===r||s===o||i&&r===o||c>u&&h<f}function Rn(e,t,n){return Math.max(t,Math.min(n,e))}function f$(e){return Rn(e,-32768,32767)}function pa(e,t,n,i=1e-6){return e>=Math.min(t,n)-i&&e<=Math.max(t,n)+i}function M0(e,t,n){n=n||(o=>e[o]<t);let i=e.length-1,s=0,r;for(;i-s>1;)r=s+i>>1,n(r)?s=r:i=r;return{lo:s,hi:i}}const gv=(e,t,n,i)=>M0(e,n,i?s=>{const r=e[s][t];return r<n||r===n&&e[s+1][t]===n}:s=>e[s][t]<n),m$=(e,t,n)=>M0(e,n,i=>e[i][t]>=n);function g$(e,t,n){let i=0,s=e.length;for(;i<s&&e[i]<t;)i++;for(;s>i&&e[s-1]>n;)s--;return i>0||s<e.length?e.slice(i,s):e}const VN=["push","pop","shift","splice","unshift"];function x$(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),VN.forEach(n=>{const i="_onData"+R0(n),s=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...r){const o=s.apply(this,r);return e._chartjs.listeners.forEach(c=>{typeof c[i]=="function"&&c[i](...r)}),o}})})}function E2(e,t){const n=e._chartjs;if(!n)return;const i=n.listeners,s=i.indexOf(t);s!==-1&&i.splice(s,1),!(i.length>0)&&(VN.forEach(r=>{delete e[r]}),delete e._chartjs)}function HN(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const WN=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function qN(e,t){let n=[],i=!1;return function(...s){n=s,i||(i=!0,WN.call(window,()=>{i=!1,e.apply(t,n)}))}}function v$(e,t){let n;return function(...i){return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}const UN=e=>e==="start"?"left":e==="end"?"right":"center",Bn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,y$=(e,t,n,i)=>e===(i?"left":"right")?n:e==="center"?(t+n)/2:t,Yu=e=>e===0||e===1,A2=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*$t/n)),P2=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*$t/n)+1,Rc={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Qt)+1,easeOutSine:e=>Math.sin(e*Qt),easeInOutSine:e=>-.5*(Math.cos(wt*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Yu(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Yu(e)?e:A2(e,.075,.3),easeOutElastic:e=>Yu(e)?e:P2(e,.075,.3),easeInOutElastic(e){return Yu(e)?e:e<.5?.5*A2(e*2,.1125,.45):.5+.5*P2(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Rc.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Rc.easeInBounce(e*2)*.5:Rc.easeOutBounce(e*2-1)*.5+.5};function GN(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function I2(e){return GN(e)?e:new td(e)}function zg(e){return GN(e)?e:new td(e).saturate(.5).darken(.1).hexString()}const b$=["x","y","borderWidth","radius","tension"],w$=["color","borderColor","backgroundColor"];function _$(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:w$},numbers:{type:"number",properties:b$}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function k$(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const R2=new Map;function S$(e,t){t=t||{};const n=e+JSON.stringify(t);let i=R2.get(n);return i||(i=new Intl.NumberFormat(e,t),R2.set(n,i)),i}function O0(e,t,n){return S$(t,n).format(e)}const j$={values(e){return nn(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const i=this.chart.options.locale;let s,r=e;if(n.length>1){const h=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(h<1e-4||h>1e15)&&(s="scientific"),r=C$(e,n)}const o=BN(Math.abs(r)),c=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),u={notation:s,minimumFractionDigits:c,maximumFractionDigits:c};return Object.assign(u,this.options.ticks.format),O0(e,i,u)}};function C$(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var YN={formatters:j$};function N$(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:YN.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const ja=Object.create(null),xv=Object.create(null);function Mc(e,t){if(!t)return e;const n=t.split(".");for(let i=0,s=n.length;i<s;++i){const r=n[i];e=e[r]||(e[r]=Object.create(null))}return e}function Vg(e,t,n){return typeof t=="string"?nd(Mc(e,t),n):nd(Mc(e,""),t)}class T${constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,s)=>zg(s.backgroundColor),this.hoverBorderColor=(i,s)=>zg(s.borderColor),this.hoverColor=(i,s)=>zg(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Vg(this,t,n)}get(t){return Mc(this,t)}describe(t,n){return Vg(xv,t,n)}override(t,n){return Vg(ja,t,n)}route(t,n,i,s){const r=Mc(this,t),o=Mc(this,i),c="_"+n;Object.defineProperties(r,{[c]:{value:r[n],writable:!0},[n]:{enumerable:!0,get(){const u=this[c],h=o[s];return et(u)?Object.assign({},h,u):Je(u,h)},set(u){this[c]=u}}})}apply(t){t.forEach(n=>n(this))}}var It=new T$({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[_$,k$,N$]);function E$(e){return!e||ht(e.size)||ht(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function M2(e,t,n,i,s){let r=t[s];return r||(r=t[s]=e.measureText(s).width,n.push(s)),r>i&&(i=r),i}function sa(e,t,n){const i=e.currentDevicePixelRatio,s=n!==0?Math.max(n/2,.5):0;return Math.round((t-s)*i)/i+s}function O2(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function L2(e,t,n,i){KN(e,t,n,i,null)}function KN(e,t,n,i,s){let r,o,c,u,h,f,m,x;const y=t.pointStyle,b=t.rotation,k=t.radius;let w=(b||0)*o$;if(y&&typeof y=="object"&&(r=y.toString(),r==="[object HTMLImageElement]"||r==="[object HTMLCanvasElement]")){e.save(),e.translate(n,i),e.rotate(w),e.drawImage(y,-y.width/2,-y.height/2,y.width,y.height),e.restore();return}if(!(isNaN(k)||k<=0)){switch(e.beginPath(),y){default:s?e.ellipse(n,i,s/2,k,0,0,$t):e.arc(n,i,k,0,$t),e.closePath();break;case"triangle":f=s?s/2:k,e.moveTo(n+Math.sin(w)*f,i-Math.cos(w)*k),w+=C2,e.lineTo(n+Math.sin(w)*f,i-Math.cos(w)*k),w+=C2,e.lineTo(n+Math.sin(w)*f,i-Math.cos(w)*k),e.closePath();break;case"rectRounded":h=k*.516,u=k-h,o=Math.cos(w+ia)*u,m=Math.cos(w+ia)*(s?s/2-h:u),c=Math.sin(w+ia)*u,x=Math.sin(w+ia)*(s?s/2-h:u),e.arc(n-m,i-c,h,w-wt,w-Qt),e.arc(n+x,i-o,h,w-Qt,w),e.arc(n+m,i+c,h,w,w+Qt),e.arc(n-x,i+o,h,w+Qt,w+wt),e.closePath();break;case"rect":if(!b){u=Math.SQRT1_2*k,f=s?s/2:u,e.rect(n-f,i-u,2*f,2*u);break}w+=ia;case"rectRot":m=Math.cos(w)*(s?s/2:k),o=Math.cos(w)*k,c=Math.sin(w)*k,x=Math.sin(w)*(s?s/2:k),e.moveTo(n-m,i-c),e.lineTo(n+x,i-o),e.lineTo(n+m,i+c),e.lineTo(n-x,i+o),e.closePath();break;case"crossRot":w+=ia;case"cross":m=Math.cos(w)*(s?s/2:k),o=Math.cos(w)*k,c=Math.sin(w)*k,x=Math.sin(w)*(s?s/2:k),e.moveTo(n-m,i-c),e.lineTo(n+m,i+c),e.moveTo(n+x,i-o),e.lineTo(n-x,i+o);break;case"star":m=Math.cos(w)*(s?s/2:k),o=Math.cos(w)*k,c=Math.sin(w)*k,x=Math.sin(w)*(s?s/2:k),e.moveTo(n-m,i-c),e.lineTo(n+m,i+c),e.moveTo(n+x,i-o),e.lineTo(n-x,i+o),w+=ia,m=Math.cos(w)*(s?s/2:k),o=Math.cos(w)*k,c=Math.sin(w)*k,x=Math.sin(w)*(s?s/2:k),e.moveTo(n-m,i-c),e.lineTo(n+m,i+c),e.moveTo(n+x,i-o),e.lineTo(n-x,i+o);break;case"line":o=s?s/2:Math.cos(w)*k,c=Math.sin(w)*k,e.moveTo(n-o,i-c),e.lineTo(n+o,i+c);break;case"dash":e.moveTo(n,i),e.lineTo(n+Math.cos(w)*(s?s/2:k),i+Math.sin(w)*k);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function QN(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function L0(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function D0(e){e.restore()}function A$(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),ht(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function P$(e,t,n,i,s){if(s.strikethrough||s.underline){const r=e.measureText(i),o=t-r.actualBoundingBoxLeft,c=t+r.actualBoundingBoxRight,u=n-r.actualBoundingBoxAscent,h=n+r.actualBoundingBoxDescent,f=s.strikethrough?(u+h)/2:h;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=s.decorationWidth||2,e.moveTo(o,f),e.lineTo(c,f),e.stroke()}}function I$(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function mp(e,t,n,i,s,r={}){const o=nn(t)?t:[t],c=r.strokeWidth>0&&r.strokeColor!=="";let u,h;for(e.save(),e.font=s.string,A$(e,r),u=0;u<o.length;++u)h=o[u],r.backdrop&&I$(e,r.backdrop),c&&(r.strokeColor&&(e.strokeStyle=r.strokeColor),ht(r.strokeWidth)||(e.lineWidth=r.strokeWidth),e.strokeText(h,n,i,r.maxWidth)),e.fillText(h,n,i,r.maxWidth),P$(e,n,i,h,r),i+=Number(s.lineHeight);e.restore()}function gp(e,t){const{x:n,y:i,w:s,h:r,radius:o}=t;e.arc(n+o.topLeft,i+o.topLeft,o.topLeft,1.5*wt,wt,!0),e.lineTo(n,i+r-o.bottomLeft),e.arc(n+o.bottomLeft,i+r-o.bottomLeft,o.bottomLeft,wt,Qt,!0),e.lineTo(n+s-o.bottomRight,i+r),e.arc(n+s-o.bottomRight,i+r-o.bottomRight,o.bottomRight,Qt,0,!0),e.lineTo(n+s,i+o.topRight),e.arc(n+s-o.topRight,i+o.topRight,o.topRight,0,-Qt,!0),e.lineTo(n+o.topLeft,i)}const R$=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,M$=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function O$(e,t){const n=(""+e).match(R$);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const L$=e=>+e||0;function F0(e,t){const n={},i=et(t),s=i?Object.keys(t):t,r=et(e)?i?o=>Je(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of s)n[o]=L$(r(o));return n}function XN(e){return F0(e,{top:"y",right:"x",bottom:"y",left:"x"})}function jo(e){return F0(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Si(e){const t=XN(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Mn(e,t){e=e||{},t=t||It.font;let n=Je(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let i=Je(e.style,t.style);i&&!(""+i).match(M$)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const s={family:Je(e.family,t.family),lineHeight:O$(Je(e.lineHeight,t.lineHeight),n),size:n,style:i,weight:Je(e.weight,t.weight),string:""};return s.string=E$(s),s}function Ku(e,t,n,i){let s,r,o;for(s=0,r=e.length;s<r;++s)if(o=e[s],o!==void 0&&o!==void 0)return o}function D$(e,t,n){const{min:i,max:s}=e,r=FN(t,(s-i)/2),o=(c,u)=>n&&c===0?0:c+u;return{min:o(i,-Math.abs(r)),max:o(s,r)}}function qo(e,t){return Object.assign(Object.create(e),t)}function $0(e,t=[""],n,i,s=()=>e[0]){const r=n||e;typeof i>"u"&&(i=t4("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:r,_fallback:i,_getTarget:s,override:c=>$0([c,...e],t,r,i)};return new Proxy(o,{deleteProperty(c,u){return delete c[u],delete c._keys,delete e[0][u],!0},get(c,u){return JN(c,u,()=>q$(u,t,e,c))},getOwnPropertyDescriptor(c,u){return Reflect.getOwnPropertyDescriptor(c._scopes[0],u)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(c,u){return F2(c).includes(u)},ownKeys(c){return F2(c)},set(c,u,h){const f=c._storage||(c._storage=s());return c[u]=f[u]=h,delete c._keys,!0}})}function $o(e,t,n,i){const s={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:ZN(e,i),setContext:r=>$o(e,r,n,i),override:r=>$o(e.override(r),t,n,i)};return new Proxy(s,{deleteProperty(r,o){return delete r[o],delete e[o],!0},get(r,o,c){return JN(r,o,()=>$$(r,o,c))},getOwnPropertyDescriptor(r,o){return r._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(r,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(r,o,c){return e[o]=c,delete r[o],!0}})}function ZN(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:i=t.indexable,_allKeys:s=t.allKeys}=e;return{allKeys:s,scriptable:n,indexable:i,isScriptable:kr(n)?n:()=>n,isIndexable:kr(i)?i:()=>i}}const F$=(e,t)=>e?e+R0(t):t,B0=(e,t)=>et(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function JN(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const i=n();return e[t]=i,i}function $$(e,t,n){const{_proxy:i,_context:s,_subProxy:r,_descriptors:o}=e;let c=i[t];return kr(c)&&o.isScriptable(t)&&(c=B$(t,c,e,n)),nn(c)&&c.length&&(c=z$(t,c,e,o.isIndexable)),B0(t,c)&&(c=$o(c,s,r&&r[t],o)),c}function B$(e,t,n,i){const{_proxy:s,_context:r,_subProxy:o,_stack:c}=n;if(c.has(e))throw new Error("Recursion detected: "+Array.from(c).join("->")+"->"+e);c.add(e);let u=t(r,o||i);return c.delete(e),B0(e,u)&&(u=z0(s._scopes,s,e,u)),u}function z$(e,t,n,i){const{_proxy:s,_context:r,_subProxy:o,_descriptors:c}=n;if(typeof r.index<"u"&&i(e))return t[r.index%t.length];if(et(t[0])){const u=t,h=s._scopes.filter(f=>f!==u);t=[];for(const f of u){const m=z0(h,s,e,f);t.push($o(m,r,o&&o[e],c))}}return t}function e4(e,t,n){return kr(e)?e(t,n):e}const V$=(e,t)=>e===!0?t:typeof e=="string"?Sa(t,e):void 0;function H$(e,t,n,i,s){for(const r of t){const o=V$(n,r);if(o){e.add(o);const c=e4(o._fallback,n,s);if(typeof c<"u"&&c!==n&&c!==i)return c}else if(o===!1&&typeof i<"u"&&n!==i)return null}return!1}function z0(e,t,n,i){const s=t._rootScopes,r=e4(t._fallback,n,i),o=[...e,...s],c=new Set;c.add(i);let u=D2(c,o,n,r||n,i);return u===null||typeof r<"u"&&r!==n&&(u=D2(c,o,r,u,i),u===null)?!1:$0(Array.from(c),[""],s,r,()=>W$(t,n,i))}function D2(e,t,n,i,s){for(;n;)n=H$(e,t,n,i,s);return n}function W$(e,t,n){const i=e._getTarget();t in i||(i[t]={});const s=i[t];return nn(s)&&et(n)?n:s||{}}function q$(e,t,n,i){let s;for(const r of t)if(s=t4(F$(r,e),n),typeof s<"u")return B0(e,s)?z0(n,i,e,s):s}function t4(e,t){for(const n of t){if(!n)continue;const i=n[e];if(typeof i<"u")return i}}function F2(e){let t=e._keys;return t||(t=e._keys=U$(e._scopes)),t}function U$(e){const t=new Set;for(const n of e)for(const i of Object.keys(n).filter(s=>!s.startsWith("_")))t.add(i);return Array.from(t)}function V0(){return typeof window<"u"&&typeof document<"u"}function H0(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function xp(e,t,n){let i;return typeof e=="string"?(i=parseInt(e,10),e.indexOf("%")!==-1&&(i=i/100*t.parentNode[n])):i=e,i}const Dp=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function G$(e,t){return Dp(e).getPropertyValue(t)}const Y$=["top","right","bottom","left"];function ya(e,t,n){const i={};n=n?"-"+n:"";for(let s=0;s<4;s++){const r=Y$[s];i[r]=parseFloat(e[t+"-"+r+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const K$=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Q$(e,t){const n=e.touches,i=n&&n.length?n[0]:e,{offsetX:s,offsetY:r}=i;let o=!1,c,u;if(K$(s,r,e.target))c=s,u=r;else{const h=t.getBoundingClientRect();c=i.clientX-h.left,u=i.clientY-h.top,o=!0}return{x:c,y:u,box:o}}function da(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:i}=t,s=Dp(n),r=s.boxSizing==="border-box",o=ya(s,"padding"),c=ya(s,"border","width"),{x:u,y:h,box:f}=Q$(e,n),m=o.left+(f&&c.left),x=o.top+(f&&c.top);let{width:y,height:b}=t;return r&&(y-=o.width+c.width,b-=o.height+c.height),{x:Math.round((u-m)/y*n.width/i),y:Math.round((h-x)/b*n.height/i)}}function X$(e,t,n){let i,s;if(t===void 0||n===void 0){const r=e&&H0(e);if(!r)t=e.clientWidth,n=e.clientHeight;else{const o=r.getBoundingClientRect(),c=Dp(r),u=ya(c,"border","width"),h=ya(c,"padding");t=o.width-h.width-u.width,n=o.height-h.height-u.height,i=xp(c.maxWidth,r,"clientWidth"),s=xp(c.maxHeight,r,"clientHeight")}}return{width:t,height:n,maxWidth:i||hp,maxHeight:s||hp}}const hr=e=>Math.round(e*10)/10;function Z$(e,t,n,i){const s=Dp(e),r=ya(s,"margin"),o=xp(s.maxWidth,e,"clientWidth")||hp,c=xp(s.maxHeight,e,"clientHeight")||hp,u=X$(e,t,n);let{width:h,height:f}=u;if(s.boxSizing==="content-box"){const x=ya(s,"border","width"),y=ya(s,"padding");h-=y.width+x.width,f-=y.height+x.height}return h=Math.max(0,h-r.width),f=Math.max(0,i?h/i:f-r.height),h=hr(Math.min(h,o,u.maxWidth)),f=hr(Math.min(f,c,u.maxHeight)),h&&!f&&(f=hr(h/2)),(t!==void 0||n!==void 0)&&i&&u.height&&f>u.height&&(f=u.height,h=hr(Math.floor(f*i))),{width:h,height:f}}function $2(e,t,n){const i=t||1,s=hr(e.height*i),r=hr(e.width*i);e.height=hr(e.height),e.width=hr(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==i||o.height!==s||o.width!==r?(e.currentDevicePixelRatio=i,o.height=s,o.width=r,e.ctx.setTransform(i,0,0,i,0,0),!0):!1}const J$=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};V0()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function B2(e,t){const n=G$(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}const eB=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},tB=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Co(e,t,n){return e?eB(t,n):tB()}function n4(e,t){let n,i;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)}function i4(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function Qu(e,t,n){return e.options.clip?e[n]:t[n]}function nB(e,t){const{xScale:n,yScale:i}=e;return n&&i?{left:Qu(n,t,"left"),right:Qu(n,t,"right"),top:Qu(i,t,"top"),bottom:Qu(i,t,"bottom")}:t}function iB(e,t){const n=t._clip;if(n.disabled)return!1;const i=nB(t,e.chartArea);return{left:n.left===!1?0:i.left-(n.left===!0?0:n.left),right:n.right===!1?e.width:i.right+(n.right===!0?0:n.right),top:n.top===!1?0:i.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?e.height:i.bottom+(n.bottom===!0?0:n.bottom)}}/*!
216 * Chart.js v4.5.1
217 * https://www.chartjs.org
218 * (c) 2025 Chart.js Contributors
219 * Released under the MIT License
220 */class sB{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,i,s){const r=n.listeners[s],o=n.duration;r.forEach(c=>c({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(i-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=WN.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;const r=i.items;let o=r.length-1,c=!1,u;for(;o>=0;--o)u=r[o],u._active?(u._total>i.duration&&(i.duration=u._total),u.tick(t),c=!0):(r[o]=r[r.length-1],r.pop());c&&(s.draw(),this._notify(s,i,t,"progress")),r.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),n+=r.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let i=n.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,i)),i}listen(t,n,i){this._getAnims(t).listeners[n].push(i)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,s)=>Math.max(i,s._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const i=n.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var gs=new sB;const z2="transparent",rB={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const i=I2(e||z2),s=i.valid&&I2(t||z2);return s&&s.valid?s.mix(i,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class aB{constructor(t,n,i,s){const r=n[i];s=Ku([t.to,s,r,t.from]);const o=Ku([t.from,r,s]);this._active=!0,this._fn=t.fn||rB[t.type||typeof o],this._easing=Rc[t.easing]||Rc.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=i,this._from=o,this._to=s,this._promises=void 0}active(){return this._active}update(t,n,i){if(this._active){this._notify(!1);const s=this._target[this._prop],r=i-this._start,o=this._duration-r;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=r,this._loop=!!t.loop,this._to=Ku([t.to,n,s,t.from]),this._from=Ku([t.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,i=this._duration,s=this._prop,r=this._from,o=this._loop,c=this._to;let u;if(this._active=r!==c&&(o||n<i),!this._active){this._target[s]=c,this._notify(!0);return}if(n<0){this._target[s]=r;return}u=n/i%2,u=o&&u>1?2-u:u,u=this._easing(Math.min(1,Math.max(0,u))),this._target[s]=this._fn(r,c,u)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,i)=>{t.push({res:n,rej:i})})}_notify(t){const n=t?"res":"rej",i=this._promises||[];for(let s=0;s<i.length;s++)i[s][n]()}}class s4{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!et(t))return;const n=Object.keys(It.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{const r=t[s];if(!et(r))return;const o={};for(const c of n)o[c]=r[c];(nn(r.properties)&&r.properties||[s]).forEach(c=>{(c===s||!i.has(c))&&i.set(c,o)})})}_animateOptions(t,n){const i=n.options,s=lB(t,i);if(!s)return[];const r=this._createAnimations(s,i);return i.$shared&&oB(t.options.$animations,i).then(()=>{t.options=i},()=>{}),r}_createAnimations(t,n){const i=this._properties,s=[],r=t.$animations||(t.$animations={}),o=Object.keys(n),c=Date.now();let u;for(u=o.length-1;u>=0;--u){const h=o[u];if(h.charAt(0)==="$")continue;if(h==="options"){s.push(...this._animateOptions(t,n));continue}const f=n[h];let m=r[h];const x=i.get(h);if(m)if(x&&m.active()){m.update(x,f,c);continue}else m.cancel();if(!x||!x.duration){t[h]=f;continue}r[h]=m=new aB(x,t,h,f),s.push(m)}return s}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const i=this._createAnimations(t,n);if(i.length)return gs.add(this._chart,i),!0}}function oB(e,t){const n=[],i=Object.keys(t);for(let s=0;s<i.length;s++){const r=e[i[s]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}function lB(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function V2(e,t){const n=e&&e.options||{},i=n.reverse,s=n.min===void 0?t:0,r=n.max===void 0?t:0;return{start:i?r:s,end:i?s:r}}function cB(e,t,n){if(n===!1)return!1;const i=V2(e,n),s=V2(t,n);return{top:s.end,right:i.end,bottom:s.start,left:i.start}}function dB(e){let t,n,i,s;return et(e)?(t=e.top,n=e.right,i=e.bottom,s=e.left):t=n=i=s=e,{top:t,right:n,bottom:i,left:s,disabled:e===!1}}function r4(e,t){const n=[],i=e._getSortedDatasetMetas(t);let s,r;for(s=0,r=i.length;s<r;++s)n.push(i[s].index);return n}function H2(e,t,n,i={}){const s=e.keys,r=i.mode==="single";let o,c,u,h;if(t===null)return;let f=!1;for(o=0,c=s.length;o<c;++o){if(u=+s[o],u===n){if(f=!0,i.all)continue;break}h=e.values[u],ii(h)&&(r||t===0||vr(t)===vr(h))&&(t+=h)}return!f&&!i.all?0:t}function uB(e,t){const{iScale:n,vScale:i}=t,s=n.axis==="x"?"x":"y",r=i.axis==="x"?"x":"y",o=Object.keys(e),c=new Array(o.length);let u,h,f;for(u=0,h=o.length;u<h;++u)f=o[u],c[u]={[s]:f,[r]:e[f]};return c}function Hg(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function hB(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function pB(e){const{min:t,max:n,minDefined:i,maxDefined:s}=e.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}function fB(e,t,n){const i=e[t]||(e[t]={});return i[n]||(i[n]={})}function W2(e,t,n,i){for(const s of t.getMatchingVisibleMetas(i).reverse()){const r=e[s.index];if(n&&r>0||!n&&r<0)return s.index}return null}function q2(e,t){const{chart:n,_cachedMeta:i}=e,s=n._stacks||(n._stacks={}),{iScale:r,vScale:o,index:c}=i,u=r.axis,h=o.axis,f=hB(r,o,i),m=t.length;let x;for(let y=0;y<m;++y){const b=t[y],{[u]:k,[h]:w}=b,S=b._stacks||(b._stacks={});x=S[h]=fB(s,f,k),x[c]=w,x._top=W2(x,o,!0,i.type),x._bottom=W2(x,o,!1,i.type);const j=x._visualValues||(x._visualValues={});j[c]=w}}function Wg(e,t){const n=e.scales;return Object.keys(n).filter(i=>n[i].axis===t).shift()}function mB(e,t){return qo(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function gB(e,t,n){return qo(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Kl(e,t){const n=e.controller.index,i=e.vScale&&e.vScale.axis;if(i){t=t||e._parsed;for(const s of t){const r=s._stacks;if(!r||r[i]===void 0||r[i][n]===void 0)return;delete r[i][n],r[i]._visualValues!==void 0&&r[i]._visualValues[n]!==void 0&&delete r[i]._visualValues[n]}}}const qg=e=>e==="reset"||e==="none",U2=(e,t)=>t?e:Object.assign({},e),xB=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:r4(n,!0),values:null};class No{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Hg(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Kl(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,i=this.getDataset(),s=(m,x,y,b)=>m==="x"?x:m==="r"?b:y,r=n.xAxisID=Je(i.xAxisID,Wg(t,"x")),o=n.yAxisID=Je(i.yAxisID,Wg(t,"y")),c=n.rAxisID=Je(i.rAxisID,Wg(t,"r")),u=n.indexAxis,h=n.iAxisID=s(u,r,o,c),f=n.vAxisID=s(u,o,r,c);n.xScale=this.getScaleForId(r),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(c),n.iScale=this.getScaleForId(h),n.vScale=this.getScaleForId(f)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&E2(this._data,this),t._stacked&&Kl(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),i=this._data;if(et(n)){const s=this._cachedMeta;this._data=uB(n,s)}else if(i!==n){if(i){E2(i,this);const s=this._cachedMeta;Kl(s),s._parsed=[]}n&&Object.isExtensible(n)&&x$(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const r=n._stacked;n._stacked=Hg(n.vScale,n),n.stack!==i.stack&&(s=!0,Kl(n),n.stack=i.stack),this._resyncElements(t),(s||r!==n._stacked)&&(q2(this,n._parsed),n._stacked=Hg(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:i,_data:s}=this,{iScale:r,_stacked:o}=i,c=r.axis;let u=t===0&&n===s.length?!0:i._sorted,h=t>0&&i._parsed[t-1],f,m,x;if(this._parsing===!1)i._parsed=s,i._sorted=!0,x=s;else{nn(s[t])?x=this.parseArrayData(i,s,t,n):et(s[t])?x=this.parseObjectData(i,s,t,n):x=this.parsePrimitiveData(i,s,t,n);const y=()=>m[c]===null||h&&m[c]<h[c];for(f=0;f<n;++f)i._parsed[f+t]=m=x[f],u&&(y()&&(u=!1),h=m);i._sorted=u}o&&q2(this,x)}parsePrimitiveData(t,n,i,s){const{iScale:r,vScale:o}=t,c=r.axis,u=o.axis,h=r.getLabels(),f=r===o,m=new Array(s);let x,y,b;for(x=0,y=s;x<y;++x)b=x+i,m[x]={[c]:f||r.parse(h[b],b),[u]:o.parse(n[b],b)};return m}parseArrayData(t,n,i,s){const{xScale:r,yScale:o}=t,c=new Array(s);let u,h,f,m;for(u=0,h=s;u<h;++u)f=u+i,m=n[f],c[u]={x:r.parse(m[0],f),y:o.parse(m[1],f)};return c}parseObjectData(t,n,i,s){const{xScale:r,yScale:o}=t,{xAxisKey:c="x",yAxisKey:u="y"}=this._parsing,h=new Array(s);let f,m,x,y;for(f=0,m=s;f<m;++f)x=f+i,y=n[x],h[f]={x:r.parse(Sa(y,c),x),y:o.parse(Sa(y,u),x)};return h}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,i){const s=this.chart,r=this._cachedMeta,o=n[t.axis],c={keys:r4(s,!0),values:n._stacks[t.axis]._visualValues};return H2(c,o,r.index,{mode:i})}updateRangeFromParsed(t,n,i,s){const r=i[n.axis];let o=r===null?NaN:r;const c=s&&i._stacks[n.axis];s&&c&&(s.values=c,o=H2(s,r,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,n){const i=this._cachedMeta,s=i._parsed,r=i._sorted&&t===i.iScale,o=s.length,c=this._getOtherScale(t),u=xB(n,i,this.chart),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:f,max:m}=pB(c);let x,y;function b(){y=s[x];const k=y[c.axis];return!ii(y[t.axis])||f>k||m<k}for(x=0;x<o&&!(!b()&&(this.updateRangeFromParsed(h,t,y,u),r));++x);if(r){for(x=o-1;x>=0;--x)if(!b()){this.updateRangeFromParsed(h,t,y,u);break}}return h}getAllParsedValues(t){const n=this._cachedMeta._parsed,i=[];let s,r,o;for(s=0,r=n.length;s<r;++s)o=n[s][t.axis],ii(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,i=n.iScale,s=n.vScale,r=this.getParsed(t);return{label:i?""+i.getLabelForValue(r[i.axis]):"",value:s?""+s.getLabelForValue(r[s.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=dB(Je(this.options.clip,cB(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,i=this._cachedMeta,s=i.data||[],r=n.chartArea,o=[],c=this._drawStart||0,u=this._drawCount||s.length-c,h=this.options.drawActiveElementsOnTop;let f;for(i.dataset&&i.dataset.draw(t,r,c,u),f=c;f<c+u;++f){const m=s[f];m.hidden||(m.active&&h?o.push(m):m.draw(t,r))}for(f=0;f<o.length;++f)o[f].draw(t,r)}getStyle(t,n){const i=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,n,i){const s=this.getDataset();let r;if(t>=0&&t<this._cachedMeta.data.length){const o=this._cachedMeta.data[t];r=o.$context||(o.$context=gB(this.getContext(),t,o)),r.parsed=this.getParsed(t),r.raw=s.data[t],r.index=r.dataIndex=t}else r=this.$context||(this.$context=mB(this.chart.getContext(),this.index)),r.dataset=s,r.index=r.datasetIndex=this.index;return r.active=!!n,r.mode=i,r}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",i){const s=n==="active",r=this._cachedDataOpts,o=t+"-"+n,c=r[o],u=this.enableOptionSharing&&id(i);if(c)return U2(c,u);const h=this.chart.config,f=h.datasetElementScopeKeys(this._type,t),m=s?[`${t}Hover`,"hover",t,""]:[t,""],x=h.getOptionScopes(this.getDataset(),f),y=Object.keys(It.elements[t]),b=()=>this.getContext(i,s,n),k=h.resolveNamedOptions(x,y,b,m);return k.$shared&&(k.$shared=u,r[o]=Object.freeze(U2(k,u))),k}_resolveAnimations(t,n,i){const s=this.chart,r=this._cachedDataOpts,o=`animation-${n}`,c=r[o];if(c)return c;let u;if(s.options.animation!==!1){const f=this.chart.config,m=f.datasetAnimationScopeKeys(this._type,n),x=f.getOptionScopes(this.getDataset(),m);u=f.createResolver(x,this.getContext(t,i,n))}const h=new s4(s,u&&u.animations);return u&&u._cacheable&&(r[o]=Object.freeze(h)),h}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||qg(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const i=this.resolveDataElementOptions(t,n),s=this._sharedOptions,r=this.getSharedOptions(i),o=this.includeOptions(n,r)||r!==s;return this.updateSharedOptions(r,n,i),{sharedOptions:r,includeOptions:o}}updateElement(t,n,i,s){qg(s)?Object.assign(t,i):this._resolveAnimations(n,s).update(t,i)}updateSharedOptions(t,n,i){t&&!qg(n)&&this._resolveAnimations(void 0,n).update(t,i)}_setStyle(t,n,i,s){t.active=s;const r=this.getStyle(n,s);this._resolveAnimations(n,i,s).update(t,{options:!s&&this.getSharedOptions(r)||r})}removeHoverStyle(t,n,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,n,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,i=this._cachedMeta.data;for(const[c,u,h]of this._syncList)this[c](u,h);this._syncList=[];const s=i.length,r=n.length,o=Math.min(r,s);o&&this.parse(0,o),r>s?this._insertElements(s,r-s,t):r<s&&this._removeElements(r,s-r)}_insertElements(t,n,i=!0){const s=this._cachedMeta,r=s.data,o=t+n;let c;const u=h=>{for(h.length+=n,c=h.length-1;c>=o;c--)h[c]=h[c-n]};for(u(r),c=t;c<o;++c)r[c]=new this.dataElementType;this._parsing&&u(s._parsed),this.parse(t,n),i&&this.updateElements(r,t,n,"reset")}updateElements(t,n,i,s){}_removeElements(t,n){const i=this._cachedMeta;if(this._parsing){const s=i._parsed.splice(t,n);i._stacked&&Kl(i,s)}i.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,i,s]=t;this[n](i,s)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}Fe(No,"defaults",{}),Fe(No,"datasetElementType",null),Fe(No,"dataElementType",null);function vB(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let i=[];for(let s=0,r=n.length;s<r;s++)i=i.concat(n[s].controller.getAllParsedValues(e));e._cache.$bar=HN(i.sort((s,r)=>s-r))}return e._cache.$bar}function yB(e){const t=e.iScale,n=vB(t,e.type);let i=t._length,s,r,o,c;const u=()=>{o===32767||o===-32768||(id(c)&&(i=Math.min(i,Math.abs(o-c)||i)),c=o)};for(s=0,r=n.length;s<r;++s)o=t.getPixelForValue(n[s]),u();for(c=void 0,s=0,r=t.ticks.length;s<r;++s)o=t.getPixelForTick(s),u();return i}function bB(e,t,n,i){const s=n.barThickness;let r,o;return ht(s)?(r=t.min*n.categoryPercentage,o=n.barPercentage):(r=s*i,o=1),{chunk:r/i,ratio:o,start:t.pixels[e]-r/2}}function wB(e,t,n,i){const s=t.pixels,r=s[e];let o=e>0?s[e-1]:null,c=e<s.length-1?s[e+1]:null;const u=n.categoryPercentage;o===null&&(o=r-(c===null?t.end-t.start:c-r)),c===null&&(c=r+r-o);const h=r-(r-Math.min(o,c))/2*u;return{chunk:Math.abs(c-o)/2*u/i,ratio:n.barPercentage,start:h}}function _B(e,t,n,i){const s=n.parse(e[0],i),r=n.parse(e[1],i),o=Math.min(s,r),c=Math.max(s,r);let u=o,h=c;Math.abs(o)>Math.abs(c)&&(u=c,h=o),t[n.axis]=h,t._custom={barStart:u,barEnd:h,start:s,end:r,min:o,max:c}}function a4(e,t,n,i){return nn(e)?_B(e,t,n,i):t[n.axis]=n.parse(e,i),t}function G2(e,t,n,i){const s=e.iScale,r=e.vScale,o=s.getLabels(),c=s===r,u=[];let h,f,m,x;for(h=n,f=n+i;h<f;++h)x=t[h],m={},m[s.axis]=c||s.parse(o[h],h),u.push(a4(x,m,r,h));return u}function Ug(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function kB(e,t,n){return e!==0?vr(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function SB(e){let t,n,i,s,r;return e.horizontal?(t=e.base>e.x,n="left",i="right"):(t=e.base<e.y,n="bottom",i="top"),t?(s="end",r="start"):(s="start",r="end"),{start:n,end:i,reverse:t,top:s,bottom:r}}function jB(e,t,n,i){let s=t.borderSkipped;const r={};if(!s){e.borderSkipped=r;return}if(s===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:o,end:c,reverse:u,top:h,bottom:f}=SB(e);s==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===i?s=h:(n._bottom||0)===i?s=f:(r[Y2(f,o,c,u)]=!0,s=h)),r[Y2(s,o,c,u)]=!0,e.borderSkipped=r}function Y2(e,t,n,i){return i?(e=CB(e,t,n),e=K2(e,n,t)):e=K2(e,t,n),e}function CB(e,t,n){return e===t?n:e===n?t:e}function K2(e,t,n){return e==="start"?t:e==="end"?n:e}function NB(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class Sh extends No{parsePrimitiveData(t,n,i,s){return G2(t,n,i,s)}parseArrayData(t,n,i,s){return G2(t,n,i,s)}parseObjectData(t,n,i,s){const{iScale:r,vScale:o}=t,{xAxisKey:c="x",yAxisKey:u="y"}=this._parsing,h=r.axis==="x"?c:u,f=o.axis==="x"?c:u,m=[];let x,y,b,k;for(x=i,y=i+s;x<y;++x)k=n[x],b={},b[r.axis]=r.parse(Sa(k,h),x),m.push(a4(Sa(k,f),b,o,x));return m}updateRangeFromParsed(t,n,i,s){super.updateRangeFromParsed(t,n,i,s);const r=i._custom;r&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:i,vScale:s}=n,r=this.getParsed(t),o=r._custom,c=Ug(o)?"["+o.start+", "+o.end+"]":""+s.getLabelForValue(r[s.axis]);return{label:""+i.getLabelForValue(r[i.axis]),value:c}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,i,s){const r=s==="reset",{index:o,_cachedMeta:{vScale:c}}=this,u=c.getBasePixel(),h=c.isHorizontal(),f=this._getRuler(),{sharedOptions:m,includeOptions:x}=this._getSharedOptions(n,s);for(let y=n;y<n+i;y++){const b=this.getParsed(y),k=r||ht(b[c.axis])?{base:u,head:u}:this._calculateBarValuePixels(y),w=this._calculateBarIndexPixels(y,f),S=(b._stacks||{})[c.axis],j={horizontal:h,base:k.base,enableBorderRadius:!S||Ug(b._custom)||o===S._top||o===S._bottom,x:h?k.head:w.center,y:h?w.center:k.head,height:h?w.size:Math.abs(k.size),width:h?Math.abs(k.size):w.size};x&&(j.options=m||this.resolveDataElementOptions(y,t[y].active?"active":s));const N=j.options||t[y].options;jB(j,N,S,o),NB(j,N,f.ratio),this.updateElement(t[y],y,j,s)}}_getStacks(t,n){const{iScale:i}=this._cachedMeta,s=i.getMatchingVisibleMetas(this._type).filter(f=>f.controller.options.grouped),r=i.options.stacked,o=[],c=this._cachedMeta.controller.getParsed(n),u=c&&c[i.axis],h=f=>{const m=f._parsed.find(y=>y[i.axis]===u),x=m&&m[f.vScale.axis];if(ht(x)||isNaN(x))return!0};for(const f of s)if(!(n!==void 0&&h(f))&&((r===!1||o.indexOf(f.stack)===-1||r===void 0&&f.stack===void 0)&&o.push(f.stack),f.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(t).filter(i=>t[i].axis===n).shift()}_getAxis(){const t={},n=this.getFirstScaleIdForIndexAxis();for(const i of this.chart.data.datasets)t[Je(this.chart.options.indexAxis==="x"?i.xAxisID:i.yAxisID,n)]=!0;return Object.keys(t)}_getStackIndex(t,n,i){const s=this._getStacks(t,i),r=n!==void 0?s.indexOf(n):-1;return r===-1?s.length-1:r}_getRuler(){const t=this.options,n=this._cachedMeta,i=n.iScale,s=[];let r,o;for(r=0,o=n.data.length;r<o;++r)s.push(i.getPixelForValue(this.getParsed(r)[i.axis],r));const c=t.barThickness;return{min:c||yB(n),pixels:s,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:c?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:i,index:s},options:{base:r,minBarLength:o}}=this,c=r||0,u=this.getParsed(t),h=u._custom,f=Ug(h);let m=u[n.axis],x=0,y=i?this.applyStack(n,u,i):m,b,k;y!==m&&(x=y-m,y=m),f&&(m=h.barStart,y=h.barEnd-h.barStart,m!==0&&vr(m)!==vr(h.barEnd)&&(x=0),x+=m);const w=!ht(r)&&!f?r:x;let S=n.getPixelForValue(w);if(this.chart.getDataVisibility(t)?b=n.getPixelForValue(x+y):b=S,k=b-S,Math.abs(k)<o){k=kB(k,n,c)*o,m===c&&(S-=k/2);const j=n.getPixelForDecimal(0),N=n.getPixelForDecimal(1),E=Math.min(j,N),T=Math.max(j,N);S=Math.max(Math.min(S,T),E),b=S+k,i&&!f&&(u._stacks[n.axis]._visualValues[s]=n.getValueForPixel(b)-n.getValueForPixel(S))}if(S===n.getPixelForValue(c)){const j=vr(k)*n.getLineWidthForValue(c)/2;S+=j,k-=j}return{size:k,base:S,head:b,center:b+k/2}}_calculateBarIndexPixels(t,n){const i=n.scale,s=this.options,r=s.skipNull,o=Je(s.maxBarThickness,1/0);let c,u;const h=this._getAxisCount();if(n.grouped){const f=r?this._getStackCount(t):n.stackCount,m=s.barThickness==="flex"?wB(t,n,s,f*h):bB(t,n,s,f*h),x=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,y=this._getAxis().indexOf(Je(x,this.getFirstScaleIdForIndexAxis())),b=this._getStackIndex(this.index,this._cachedMeta.stack,r?t:void 0)+y;c=m.start+m.chunk*b+m.chunk/2,u=Math.min(o,m.chunk*m.ratio)}else c=i.getPixelForValue(this.getParsed(t)[i.axis],t),u=Math.min(o,n.min*n.ratio);return{base:c-u/2,head:c+u/2,center:c,size:u}}draw(){const t=this._cachedMeta,n=t.vScale,i=t.data,s=i.length;let r=0;for(;r<s;++r)this.getParsed(r)[n.axis]!==null&&!i[r].hidden&&i[r].draw(this._ctx)}}Fe(Sh,"id","bar"),Fe(Sh,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),Fe(Sh,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});function TB(e,t,n){let i=1,s=1,r=0,o=0;if(t<$t){const c=e,u=c+t,h=Math.cos(c),f=Math.sin(c),m=Math.cos(u),x=Math.sin(u),y=(N,E,T)=>fp(N,c,u,!0)?1:Math.max(E,E*n,T,T*n),b=(N,E,T)=>fp(N,c,u,!0)?-1:Math.min(E,E*n,T,T*n),k=y(0,h,m),w=y(Qt,f,x),S=b(wt,h,m),j=b(wt+Qt,f,x);i=(k-S)/2,s=(w-j)/2,r=-(k+S)/2,o=-(w+j)/2}return{ratioX:i,ratioY:s,offsetX:r,offsetY:o}}class uc extends No{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const i=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=i;else{let r=u=>+i[u];if(et(i[t])){const{key:u="value"}=this._parsing;r=h=>+Sa(i[h],u)}let o,c;for(o=t,c=t+n;o<c;++o)s._parsed[o]=r(o)}}_getRotation(){return ks(this.options.rotation-90)}_getCircumference(){return ks(this.options.circumference)}_getRotationExtents(){let t=$t,n=-$t;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const s=this.chart.getDatasetMeta(i).controller,r=s._getRotation(),o=s._getCircumference();t=Math.min(t,r),n=Math.max(n,r+o)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:i}=n,s=this._cachedMeta,r=s.data,o=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,c=Math.max((Math.min(i.width,i.height)-o)/2,0),u=Math.min(t$(this.options.cutout,c),1),h=this._getRingWeight(this.index),{circumference:f,rotation:m}=this._getRotationExtents(),{ratioX:x,ratioY:y,offsetX:b,offsetY:k}=TB(m,f,u),w=(i.width-o)/x,S=(i.height-o)/y,j=Math.max(Math.min(w,S)/2,0),N=FN(this.options.radius,j),E=Math.max(N*u,0),T=(N-E)/this._getVisibleDatasetWeightTotal();this.offsetX=b*N,this.offsetY=k*N,s.total=this.calculateTotal(),this.outerRadius=N-T*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-T*h,0),this.updateElements(r,0,r.length,t)}_circumference(t,n){const i=this.options,s=this._cachedMeta,r=this._getCircumference();return n&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||s._parsed[t]===null||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*r/$t)}updateElements(t,n,i,s){const r=s==="reset",o=this.chart,c=o.chartArea,h=o.options.animation,f=(c.left+c.right)/2,m=(c.top+c.bottom)/2,x=r&&h.animateScale,y=x?0:this.innerRadius,b=x?0:this.outerRadius,{sharedOptions:k,includeOptions:w}=this._getSharedOptions(n,s);let S=this._getRotation(),j;for(j=0;j<n;++j)S+=this._circumference(j,r);for(j=n;j<n+i;++j){const N=this._circumference(j,r),E=t[j],T={x:f+this.offsetX,y:m+this.offsetY,startAngle:S,endAngle:S+N,circumference:N,outerRadius:b,innerRadius:y};w&&(T.options=k||this.resolveDataElementOptions(j,E.active?"active":s)),S+=N,this.updateElement(E,j,T,s)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let i=0,s;for(s=0;s<n.length;s++){const r=t._parsed[s];r!==null&&!isNaN(r)&&this.chart.getDataVisibility(s)&&!n[s].hidden&&(i+=Math.abs(r))}return i}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?$t*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,i=this.chart,s=i.data.labels||[],r=O0(n._parsed[t],i.options.locale);return{label:s[t]||"",value:r}}getMaxBorderWidth(t){let n=0;const i=this.chart;let s,r,o,c,u;if(!t){for(s=0,r=i.data.datasets.length;s<r;++s)if(i.isDatasetVisible(s)){o=i.getDatasetMeta(s),t=o.data,c=o.controller;break}}if(!t)return 0;for(s=0,r=t.length;s<r;++s)u=c.resolveDataElementOptions(s),u.borderAlign!=="inner"&&(n=Math.max(n,u.borderWidth||0,u.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let i=0,s=t.length;i<s;++i){const r=this.resolveDataElementOptions(i);n=Math.max(n,r.offset||0,r.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(n+=this._getRingWeight(i));return n}_getRingWeight(t){return Math.max(Je(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Fe(uc,"id","doughnut"),Fe(uc,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}}
220,cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),Fe(uc,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),Fe(uc,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data,{labels:{pointStyle:i,textAlign:s,color:r,useBorderRadius:o,borderRadius:c}}=t.legend.options;return n.labels.length&&n.datasets.length?n.labels.map((u,h)=>{const m=t.getDatasetMeta(0).controller.getStyle(h);return{text:u,fillStyle:m.backgroundColor,fontColor:r,hidden:!t.getDataVisibility(h),lineDash:m.borderDash,lineDashOffset:m.borderDashOffset,lineJoin:m.borderJoinStyle,lineWidth:m.borderWidth,strokeStyle:m.borderColor,textAlign:s,pointStyle:i,borderRadius:o&&(c||m.borderRadius),index:h}}):[]}},onClick(t,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}}});function ra(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class W0{constructor(t){Fe(this,"options");this.options=t||{}}static override(t){Object.assign(W0.prototype,t)}init(){}formats(){return ra()}parse(){return ra()}format(){return ra()}add(){return ra()}diff(){return ra()}startOf(){return ra()}endOf(){return ra()}}var EB={_date:W0};function AB(e,t,n,i){const{controller:s,data:r,_sorted:o}=e,c=s._cachedMeta.iScale,u=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(c&&t===c.axis&&t!=="r"&&o&&r.length){const h=c._reversePixels?m$:gv;if(i){if(s._sharedOptions){const f=r[0],m=typeof f.getRange=="function"&&f.getRange(t);if(m){const x=h(r,t,n-m),y=h(r,t,n+m);return{lo:x.lo,hi:y.hi}}}}else{const f=h(r,t,n);if(u){const{vScale:m}=s._cachedMeta,{_parsed:x}=e,y=x.slice(0,f.lo+1).reverse().findIndex(k=>!ht(k[m.axis]));f.lo-=Math.max(0,y);const b=x.slice(f.hi).findIndex(k=>!ht(k[m.axis]));f.hi+=Math.max(0,b)}return f}}return{lo:0,hi:r.length-1}}function Fp(e,t,n,i,s){const r=e.getSortedVisibleDatasetMetas(),o=n[t];for(let c=0,u=r.length;c<u;++c){const{index:h,data:f}=r[c],{lo:m,hi:x}=AB(r[c],t,o,s);for(let y=m;y<=x;++y){const b=f[y];b.skip||i(b,h,y)}}}function PB(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(i,s){const r=t?Math.abs(i.x-s.x):0,o=n?Math.abs(i.y-s.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))}}function Gg(e,t,n,i,s){const r=[];return!s&&!e.isPointInArea(t)||Fp(e,n,t,function(c,u,h){!s&&!QN(c,e.chartArea,0)||c.inRange(t.x,t.y,i)&&r.push({element:c,datasetIndex:u,index:h})},!0),r}function IB(e,t,n,i){let s=[];function r(o,c,u){const{startAngle:h,endAngle:f}=o.getProps(["startAngle","endAngle"],i),{angle:m}=zN(o,{x:t.x,y:t.y});fp(m,h,f)&&s.push({element:o,datasetIndex:c,index:u})}return Fp(e,n,t,r),s}function RB(e,t,n,i,s,r){let o=[];const c=PB(n);let u=Number.POSITIVE_INFINITY;function h(f,m,x){const y=f.inRange(t.x,t.y,s);if(i&&!y)return;const b=f.getCenterPoint(s);if(!(!!r||e.isPointInArea(b))&&!y)return;const w=c(t,b);w<u?(o=[{element:f,datasetIndex:m,index:x}],u=w):w===u&&o.push({element:f,datasetIndex:m,index:x})}return Fp(e,n,t,h),o}function Yg(e,t,n,i,s,r){return!r&&!e.isPointInArea(t)?[]:n==="r"&&!i?IB(e,t,n,s):RB(e,t,n,i,s,r)}function Q2(e,t,n,i,s){const r=[],o=n==="x"?"inXRange":"inYRange";let c=!1;return Fp(e,n,t,(u,h,f)=>
vendor: 8,387 bytes, line 220
220{u[o]&&u[o](t[n],s)&&(r.push({element:u,datasetIndex:h,index:f}),c=c||u.inRange(t.x,t.y,s))}),i&&!c?[]:r}var MB={modes:{index(e,t,n,i){const s=da(t,e),r=n.axis||"x",o=n.includeInvisible||!1,c=n.intersect?Gg(e,s,r,i,o):Yg(e,s,r,!1,i,o),u=[];return c.length?(e.getSortedVisibleDatasetMetas().forEach(h=>{const f=c[0].index,m=h.data[f];m&&!m.skip&&u.push({element:m,datasetIndex:h.index,index:f})}),u):[]},dataset(e,t,n,i){const s=da(t,e),r=n.axis||"xy",o=n.includeInvisible||!1;let c=n.intersect?Gg(e,s,r,i,o):Yg(e,s,r,!1,i,o);if(c.length>0){const u=c[0].datasetIndex,h=e.getDatasetMeta(u).data;c=[];for(let f=0;f<h.length;++f)c.push({element:h[f],datasetIndex:u,index:f})}return c},point(e,t,n,i){const s=da(t,e),r=n.axis||"xy",o=n.includeInvisible||!1;return Gg(e,s,r,i,o)},nearest(e,t,n,i){const s=da(t,e),r=n.axis||"xy",o=n.includeInvisible||!1;return Yg(e,s,r,n.intersect,i,o)},x(e,t,n,i){const s=da(t,e);return Q2(e,s,"x",n.intersect,i)},y(e,t,n,i){const s=da(t,e);return Q2(e,s,"y",n.intersect,i)}}};const o4=["left","top","right","bottom"];function Ql(e,t){return e.filter(n=>n.pos===t)}function X2(e,t){return e.filter(n=>o4.indexOf(n.pos)===-1&&n.box.axis===t)}function Xl(e,t){return e.sort((n,i)=>{const s=t?i:n,r=t?n:i;return s.weight===r.weight?s.index-r.index:s.weight-r.weight})}function OB(e){const t=[];let n,i,s,r,o,c;for(n=0,i=(e||[]).length;n<i;++n)s=e[n],{position:r,options:{stack:o,stackWeight:c=1}}=s,t.push({index:n,box:s,pos:r,horizontal:s.isHorizontal(),weight:s.weight,stack:o&&r+o,stackWeight:c});return t}function LB(e){const t={};for(const n of e){const{stack:i,pos:s,stackWeight:r}=n;if(!i||!o4.includes(s))continue;const o=t[i]||(t[i]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=r}return t}function DB(e,t){const n=LB(e),{vBoxMaxWidth:i,hBoxMaxHeight:s}=t;let r,o,c;for(r=0,o=e.length;r<o;++r){c=e[r];const{fullSize:u}=c.box,h=n[c.stack],f=h&&c.stackWeight/h.weight;c.horizontal?(c.width=f?f*i:u&&t.availableWidth,c.height=s):(c.width=i,c.height=f?f*s:u&&t.availableHeight)}return n}function FB(e){const t=OB(e),n=Xl(t.filter(h=>h.box.fullSize),!0),i=Xl(Ql(t,"left"),!0),s=Xl(Ql(t,"right")),r=Xl(Ql(t,"top"),!0),o=Xl(Ql(t,"bottom")),c=X2(t,"x"),u=X2(t,"y");return{fullSize:n,leftAndTop:i.concat(r),rightAndBottom:s.concat(u).concat(o).concat(c),chartArea:Ql(t,"chartArea"),vertical:i.concat(s).concat(u),horizontal:r.concat(o).concat(c)}}function Z2(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function l4(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function $B(e,t,n,i){const{pos:s,box:r}=n,o=e.maxPadding;if(!et(s)){n.size&&(e[s]-=n.size);const m=i[n.stack]||{size:0,count:1};m.size=Math.max(m.size,n.horizontal?r.height:r.width),n.size=m.size/m.count,e[s]+=n.size}r.getPadding&&l4(o,r.getPadding());const c=Math.max(0,t.outerWidth-Z2(o,e,"left","right")),u=Math.max(0,t.outerHeight-Z2(o,e,"top","bottom")),h=c!==e.w,f=u!==e.h;return e.w=c,e.h=u,n.horizontal?{same:h,other:f}:{same:f,other:h}}function BB(e){const t=e.maxPadding;function n(i){const s=Math.max(t[i]-e[i],0);return e[i]+=s,s}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function zB(e,t){const n=t.maxPadding;function i(s){const r={left:0,top:0,right:0,bottom:0};return s.forEach(o=>{r[o]=Math.max(t[o],n[o])}),r}return i(e?["left","right"]:["top","bottom"])}function hc(e,t,n,i){const s=[];let r,o,c,u,h,f;for(r=0,o=e.length,h=0;r<o;++r){c=e[r],u=c.box,u.update(c.width||t.w,c.height||t.h,zB(c.horizontal,t));const{same:m,other:x}=$B(t,n,c,i);h|=m&&s.length,f=f||x,u.fullSize||s.push(c)}return h&&hc(s,t,n,i)||f}function Xu(e,t,n,i,s){e.top=n,e.left=t,e.right=t+i,e.bottom=n+s,e.width=i,e.height=s}function J2(e,t,n,i){const s=n.padding;let{x:r,y:o}=t;for(const c of e){const u=c.box,h=i[c.stack]||{placed:0,weight:1},f=c.stackWeight/h.weight||1;if(c.horizontal){const m=t.w*f,x=h.size||u.height;id(h.start)&&(o=h.start),u.fullSize?Xu(u,s.left,o,n.outerWidth-s.right-s.left,x):Xu(u,t.left+h.placed,o,m,x),h.start=o,h.placed+=m,o=u.bottom}else{const m=t.h*f,x=h.size||u.width;id(h.start)&&(r=h.start),u.fullSize?Xu(u,r,s.top,x,n.outerHeight-s.bottom-s.top):Xu(u,r,t.top+h.placed,x,m),h.start=r,h.placed+=m,r=u.right}}t.x=r,t.y=o}var pr={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,i){if(!e)return;const s=Si(e.options.layout.padding),r=Math.max(t-s.width,0),o=Math.max(n-s.height,0),c=FB(e.boxes),u=c.vertical,h=c.horizontal;at(e.boxes,k=>{typeof k.beforeLayout=="function"&&k.beforeLayout()});const f=u.reduce((k,w)=>w.box.options&&w.box.options.display===!1?k:k+1,0)||1,m=Object.freeze({outerWidth:t,outerHeight:n,padding:s,availableWidth:r,availableHeight:o,vBoxMaxWidth:r/2/f,hBoxMaxHeight:o/2}),x=Object.assign({},s);l4(x,Si(i));const y=Object.assign({maxPadding:x,w:r,h:o,x:s.left,y:s.top},s),b=DB(u.concat(h),m);hc(c.fullSize,y,m,b),hc(u,y,m,b),hc(h,y,m,b)&&hc(u,y,m,b),BB(y),J2(c.leftAndTop,y,m,b),y.x+=y.w,y.y+=y.h,J2(c.rightAndBottom,y,m,b),e.chartArea={left:y.left,top:y.top,right:y.left+y.w,bottom:y.top+y.h,height:y.h,width:y.w},at(c.chartArea,k=>{const w=k.box;Object.assign(w,e.chartArea),w.update(y.w,y.h,{left:0,top:0,right:0,bottom:0})})}};class c4{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,i){}removeEventListener(t,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,i,s){return n=Math.max(0,n||t.width),i=i||t.height,{width:n,height:Math.max(0,s?Math.floor(n/s):i)}}isAttached(t){return!0}updateConfig(t){}}class VB extends c4{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const jh="$chartjs",HB={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},eS=e=>e===null||e==="";function WB(e,t){const n=e.style,i=e.getAttribute("height"),s=e.getAttribute("width");if(e[jh]={initial:{height:i,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",eS(s)){const r=B2(e,"width");r!==void 0&&(e.width=r)}if(eS(i))if(e.style.height==="")e.height=e.width/(t||2);else{const r=B2(e,"height");r!==void 0&&(e.height=r)}return e}const d4=J$?{passive:!0}:!1;function qB(e,t,n){e&&e.addEventListener(t,n,d4)}function UB(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,d4)}function GB(e,t){const n=HB[e.type]||e.type,{x:i,y:s}=da(e,t);return{type:n,chart:t,native:e,x:i!==void 0?i:null,y:s!==void 0?s:null}}function vp(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function YB(e,t,n){const i=e.canvas,s=new MutationObserver(r=>{let o=!1;for(const c of r)o=o||vp(c.addedNodes,i),o=o&&!vp(c.removedNodes,i);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}function KB(e,t,n){const i=e.canvas,s=new MutationObserver(r=>{let o=!1;for(const c of r)o=o||vp(c.removedNodes,i),o=o&&!vp(c.addedNodes,i);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}const sd=new Map;let tS=0;function u4(){const e=window.devicePixelRatio;e!==tS&&(tS=e,sd.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function QB(e,t){sd.size||window.addEventListener("resize",u4),sd.set(e,t)}function XB(e){sd.delete(e),sd.size||window.removeEventListener("resize",u4)}function ZB(e,t,n){const i=e.canvas,s=i&&H0(i);if(!s)return;const r=qN((c,u)=>{const h=s.clientWidth;n(c,u),h<s.clientWidth&&n()},window),o=new ResizeObserver(c=>{const u=c[0],h=u.contentRect.width,f=u.contentRect.height;h===0&&f===0||r(h,f)});return o.observe(s),QB(e,r),o}function Kg(e,t,n){n&&n.disconnect(),t==="resize"&&XB(e)}function JB(e,t,n){const i=e.canvas,s=qN(r=>{e.ctx!==null&&n(GB(r,e))},e);return qB(i,t,s),s}class ez extends c4{acquireContext(t,n){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(WB(t,n),i):null}releaseContext(t){const n=t.canvas;if(!n[jh])return!1;const i=n[jh].initial;["height","width"].forEach(r=>{const o=i[r];ht(o)?n.removeAttribute(r):n.setAttribute(r,o)});const s=i.style||{};
vendor: 5,500 bytes, line 220
220return Object.keys(s).forEach(r=>{n.style[r]=s[r]}),n.width=n.width,delete n[jh],!0}addEventListener(t,n,i){this.removeEventListener(t,n);const s=t.$proxies||(t.$proxies={}),o={attach:YB,detach:KB,resize:ZB}[n]||JB;s[n]=o(t,n,i)}removeEventListener(t,n){const i=t.$proxies||(t.$proxies={}),s=i[n];if(!s)return;({attach:Kg,detach:Kg,resize:Kg}[n]||UB)(t,n,s),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,i,s){return Z$(t,n,i,s)}isAttached(t){const n=t&&H0(t);return!!(n&&n.isConnected)}}function tz(e){return!V0()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?VB:ez}var ah;let Uo=(ah=class{constructor(){Fe(this,"x");Fe(this,"y");Fe(this,"active",!1);Fe(this,"options");Fe(this,"$animations")}tooltipPosition(t){const{x:n,y:i}=this.getProps(["x","y"],t);return{x:n,y:i}}hasValue(){return pp(this.x)&&pp(this.y)}getProps(t,n){const i=this.$animations;if(!n||!i)return this;const s={};return t.forEach(r=>{s[r]=i[r]&&i[r].active()?i[r]._to:this[r]}),s}},Fe(ah,"defaults",{}),Fe(ah,"defaultRoutes"),ah);function nz(e,t){const n=e.options.ticks,i=iz(e),s=Math.min(n.maxTicksLimit||i,i),r=n.major.enabled?rz(t):[],o=r.length,c=r[0],u=r[o-1],h=[];if(o>s)return az(t,h,r,o/s),h;const f=sz(r,t,s);if(o>0){let m,x;const y=o>1?Math.round((u-c)/(o-1)):null;for(Zu(t,h,f,ht(y)?0:c-y,c),m=0,x=o-1;m<x;m++)Zu(t,h,f,r[m],r[m+1]);return Zu(t,h,f,u,ht(y)?t.length:u+y),h}return Zu(t,h,f),h}function iz(e){const t=e.options.offset,n=e._tickSize(),i=e._length/n+(t?0:1),s=e._maxLength/n;return Math.floor(Math.min(i,s))}function sz(e,t,n){const i=oz(e),s=t.length/n;if(!i)return Math.max(s,1);const r=l$(i);for(let o=0,c=r.length-1;o<c;o++){const u=r[o];if(u>s)return u}return Math.max(s,1)}function rz(e){const t=[];let n,i;for(n=0,i=e.length;n<i;n++)e[n].major&&t.push(n);return t}function az(e,t,n,i){let s=0,r=n[0],o;for(i=Math.ceil(i),o=0;o<e.length;o++)o===r&&(t.push(e[o]),s++,r=n[s*i])}function Zu(e,t,n,i,s){const r=Je(i,0),o=Math.min(Je(s,e.length),e.length);let c=0,u,h,f;for(n=Math.ceil(n),s&&(u=s-i,n=u/Math.floor(u/n)),f=r;f<0;)c++,f=Math.round(r+c*n);for(h=Math.max(r,0);h<o;h++)h===f&&(t.push(e[h]),c++,f=Math.round(r+c*n))}function oz(e){const t=e.length;let n,i;if(t<2)return!1;for(i=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==i)return!1;return i}const lz=e=>e==="left"?"right":e==="right"?"left":e,nS=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,iS=(e,t)=>Math.min(t||e,e);function sS(e,t){const n=[],i=e.length/t,s=e.length;let r=0;for(;r<s;r+=i)n.push(e[Math.floor(r)]);return n}function cz(e,t,n){const i=e.ticks.length,s=Math.min(t,i-1),r=e._startPixel,o=e._endPixel,c=1e-6;let u=e.getPixelForTick(s),h;if(!(n&&(i===1?h=Math.max(u-r,o-u):t===0?h=(e.getPixelForTick(1)-u)/2:h=(u-e.getPixelForTick(s-1))/2,u+=s<t?h:-h,u<r-c||u>o+c)))return u}function dz(e,t){at(e,n=>{const i=n.gc,s=i.length/2;let r;if(s>t){for(r=0;r<s;++r)delete n.data[i[r]];i.splice(0,s)}})}function Zl(e){return e.drawTicks?e.tickLength:0}function rS(e,t){if(!e.display)return 0;const n=Mn(e.font,t),i=Si(e.padding);return(nn(e.text)?e.text.length:1)*n.lineHeight+i.height}function uz(e,t){return qo(e,{scale:t,type:"scale"})}function hz(e,t,n){return qo(e,{tick:n,index:t,type:"tick"})}function pz(e,t,n){let i=UN(e);return(n&&t!=="right"||!n&&t==="right")&&(i=lz(i)),i}function fz(e,t,n,i){const{top:s,left:r,bottom:o,right:c,chart:u}=e,{chartArea:h,scales:f}=u;let m=0,x,y,b;const k=o-s,w=c-r;if(e.isHorizontal()){if(y=Bn(i,r,c),et(n)){const S=Object.keys(n)[0],j=n[S];b=f[S].getPixelForValue(j)+k-t}else n==="center"?b=(h.bottom+h.top)/2+k-t:b=nS(e,n,t);x=c-r}else{if(et(n)){const S=Object.keys(n)[0],j=n[S];y=f[S].getPixelForValue(j)-w+t}else n==="center"?y=(h.left+h.right)/2-w+t:y=nS(e,n,t);b=Bn(i,o,s),m=n==="left"?-Qt:Qt}return{titleX:y,titleY:b,maxWidth:x,rotation:m}}class Go extends Uo{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:i,_suggestedMax:s}=this;return t=Li(t,Number.POSITIVE_INFINITY),n=Li(n,Number.NEGATIVE_INFINITY),i=Li(i,Number.POSITIVE_INFINITY),s=Li(s,Number.NEGATIVE_INFINITY),{min:Li(t,i),max:Li(n,s),minDefined:ii(t),maxDefined:ii(n)}}getMinMax(t){let{min:n,max:i,minDefined:s,maxDefined:r}=this.getUserBounds(),o;if(s&&r)return{min:n,max:i};const c=this.getMatchingVisibleMetas();for(let u=0,h=c.length;u<h;++u)o=c[u].controller.getMinMax(this,t),s||(n=Math.min(n,o.min)),r||(i=Math.max(i,o.max)
vendor: 38,712 bytes, line 220
220);return n=r&&n>i?i:n,i=s&&n>i?n:i,{min:Li(n,Li(i,n)),max:Li(i,Li(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){vt(this.options.beforeUpdate,[this])}update(t,n,i){const{beginAtZero:s,grace:r,ticks:o}=this.options,c=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=D$(this,r,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const u=c<this.ticks.length;this._convertTicksToLabels(u?sS(this.ticks,c):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=nz(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),u&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,i;this.isHorizontal()?(n=this.left,i=this.right):(n=this.top,i=this.bottom,t=!t),this._startPixel=n,this._endPixel=i,this._reversePixels=t,this._length=i-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){vt(this.options.afterUpdate,[this])}beforeSetDimensions(){vt(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){vt(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),vt(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){vt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let i,s,r;for(i=0,s=t.length;i<s;i++)r=t[i],r.label=vt(n.callback,[r.value,i,t],this)}afterTickToLabelConversion(){vt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){vt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,i=iS(this.ticks.length,t.ticks.maxTicksLimit),s=n.minRotation||0,r=n.maxRotation;let o=s,c,u,h;if(!this._isVisible()||!n.display||s>=r||i<=1||!this.isHorizontal()){this.labelRotation=s;return}const f=this._getLabelSizes(),m=f.widest.width,x=f.highest.height,y=Rn(this.chart.width-m,0,this.maxWidth);c=t.offset?this.maxWidth/i:y/(i-1),m+6>c&&(c=y/(i-(t.offset?.5:1)),u=this.maxHeight-Zl(t.grid)-n.padding-rS(t.title,this.chart.options.font),h=Math.sqrt(m*m+x*x),o=h$(Math.min(Math.asin(Rn((f.highest.height+6)/c,-1,1)),Math.asin(Rn(u/h,-1,1))-Math.asin(Rn(x/h,-1,1)))),o=Math.max(s,Math.min(r,o))),this.labelRotation=o}afterCalculateLabelRotation(){vt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){vt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:i,title:s,grid:r}}=this,o=this._isVisible(),c=this.isHorizontal();if(o){const u=rS(s,n.options.font);if(c?(t.width=this.maxWidth,t.height=Zl(r)+u):(t.height=this.maxHeight,t.width=Zl(r)+u),i.display&&this.ticks.length){const{first:h,last:f,widest:m,highest:x}=this._getLabelSizes(),y=i.padding*2,b=ks(this.labelRotation),k=Math.cos(b),w=Math.sin(b);if(c){const S=i.mirror?0:w*m.width+k*x.height;t.height=Math.min(this.maxHeight,t.height+S+y)}else{const S=i.mirror?0:k*m.width+w*x.height;t.width=Math.min(this.maxWidth,t.width+S+y)}this._calculatePadding(h,f,w,k)}}this._handleMargins(),c?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,i,s){const{ticks:{align:r,padding:o},position:c}=this.options,u=this.labelRotation!==0,h=c!=="top"&&this.axis==="x";if(this.isHorizontal()){const f=this.getPixelForTick(0)-this.left,m=this.right-this.getPixelForTick(this.ticks.length-1);let x=0,y=0;u?h?(x=s*t.width,y=i*n.height):(x=i*t.height,y=s*n.width):r==="start"?y=n.width:r==="end"?x=t.width:r!=="inner"&&(x=t.width/2,y=n.width/2),this.paddingLeft=Math.max((x-f+o)*this.width/(this.width-f),0),this.paddingRight=Math.max((y-m+o)*this.width/(this.width-m),0)}else{let f=n.height/2,m=t.height/2;r==="start"?(f=0,m=t.height):r==="end"&&(f=n.height,m=0),this.paddingTop=f+o,this.paddingBottom=m+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){vt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,i;for(n=0,i=t.length;n<i;n++)ht(t[n].label)&&(t.splice(n,1),i--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let i=this.ticks;n<i.length&&(i=sS(i,n)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,i){const{ctx:s,_longestTextCache:r}=this,o=[],c=[],u=Math.floor(n/iS(n,i));let h=0,f=0,m,x,y,b,k,w,S,j,N,E,T;for(m=0;m<n;m+=u){if(b=t[m].label,k=this._resolveTickFontOptions(m),s.font=w=k.string,S=r[w]=r[w]||{data:{},gc:[]},j=k.lineHeight,N=E=0,!ht(b)&&!nn(b))N=M2(s,S.data,S.gc,N,b),E=j;else if(nn(b))for(x=0,y=b.length;x<y;++x)T=b[x],!ht(T)&&!nn(T)&&(N=M2(s,S.data,S.gc,N,T),E+=j);o.push(N),c.push(E),h=Math.max(N,h),f=Math.max(E,f)}dz(r,n);const L=o.indexOf(h),M=c.indexOf(f),A=O=>({width:o[O]||0,height:c[O]||0});return{first:A(0),last:A(n-1),widest:A(L),highest:A(M),widths:o,heights:c}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return f$(this._alignToPixels?sa(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const i=n[t];return i.$context||(i.$context=hz(this.getContext(),t,i))}return this.$context||(this.$context=uz(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=ks(this.labelRotation),i=Math.abs(Math.cos(n)),s=Math.abs(Math.sin(n)),r=this._getLabelSizes(),o=t.autoSkipPadding||0,c=r?r.widest.width+o:0,u=r?r.highest.height+o:0;return this.isHorizontal()?u*i>c*s?c/i:u/s:u*s<c*i?u/i:c/s}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,i=this.chart,s=this.options,{grid:r,position:o,border:c}=s,u=r.offset,h=this.isHorizontal(),m=this.ticks.length+(u?1:0),x=Zl(r),y=[],b=c.setContext(this.getContext()),k=b.display?b.width:0,w=k/2,S=function(Z){return sa(i,Z,k)};let j,N,E,T,L,M,A,O,G,X,ee,le;if(o==="top")j=S(this.bottom),M=this.bottom-x,O=j-w,X=S(t.top)+w,le=t.bottom;else if(o==="bottom")j=S(this.top),X=t.top,le=S(t.bottom)-w,M=j+w,O=this.top+x;else if(o==="left")j=S(this.right),L=this.right-x,A=j-w,G=S(t.left)+w,ee=t.right;else if(o==="right")j=S(this.left),G=t.left,ee=S(t.right)-w,L=j+w,A=this.left+x;else if(n==="x"){if(o==="center")j=S((t.top+t.bottom)/2+.5);else if(et(o)){const Z=Object.keys(o)[0],ce=o[Z];j=S(this.chart.scales[Z].getPixelForValue(ce))}X=t.top,le=t.bottom,M=j+w,O=M+x}else if(n==="y"){if(o==="center")j=S((t.left+t.right)/2);else if(et(o)){const Z=Object.keys(o)[0],ce=o[Z];j=S(this.chart.scales[Z].getPixelForValue(ce))}L=j-w,A=L-x,G=t.left,ee=t.right}const re=Je(s.ticks.maxTicksLimit,m),ne=Math.max(1,Math.ceil(m/re));for(N=0;N<m;N+=ne){const Z=this.getContext(N),ce=r.setContext(Z),W=c.setContext(Z),J=ce.lineWidth,H=ce.color,F=W.dash||[],Y=W.dashOffset,xe=ce.tickWidth,ge=ce.tickColor,te=ce.tickBorderDash||[],he=ce.tickBorderDashOffset;E=cz(this,N,u),E!==void 0&&(T=sa(i,E,J),h?L=A=G=ee=T:M=O=X=le=T,y.push({tx1:L,ty1:M,tx2:A,ty2:O,x1:G,y1:X,x2:ee,y2:le,width:J,color:H,borderDash:F,borderDashOffset:Y,tickWidth:xe,tickColor:ge,tickBorderDash:te,tickBorderDashOffset:he}))}return this._ticksLength=m,this._borderValue=j,y}_computeLabelItems(t){const n=this.axis,i=this.options,{position:s,ticks:r}=i,o=this.isHorizontal(),c=this.ticks,{align:u,crossAlign:h,padding:f,mirror:m}=r,x=Zl(i.grid),y=x+f,b=m?-f:y,k=-ks(this.labelRotation),w=[];let S,j,N,E,T,L,M,A,O,G,X,ee,le="middle";if(s==="top")L=this.bottom-b,M=this._getXAxisLabelAlignment();else if(s==="bottom")L=this.top+b,M=this._getXAxisLabelAlignment();else if(s==="left"){const ne=this._getYAxisLabelAlignment(x);M=ne.textAlign,T=ne.x}else if(s==="right"){const ne=this._getYAxisLabelAlignment(x);M=ne.textAlign,T=ne.x}else if(n==="x"){if(s==="center")L=(t.top+t.bottom)/2+y;else if(et(s)){const ne=Object.keys(s)[0],Z=s[ne];L=this.chart.scales[ne].getPixelForValue(Z)+y}M=this._getXAxisLabelAlignment()}else if(n==="y"){if(s==="center")T=(t.left+t.right)/2-y;else if(et(s)){const ne=Object.keys(s)[0],Z=s[ne];T=this.chart.scales[ne].getPixelForValue(Z)}M=this._getYAxisLabelAlignment(x).textAlign}n==="y"&&(u==="start"?le="top":u==="end"&&(le="bottom"));const re=this._getLabelSizes();for(S=0,j=c.length;S<j;++S){N=c[S],E=N.label;const ne=r.setContext(this.getContext(S));A=this.getPixelForTick(S)+r.labelOffset,O=this._resolveTickFontOptions(S),G=O.lineHeight,X=nn(E)?E.length:1;const Z=X/2,ce=ne.color,W=ne.textStrokeColor,J=ne.textStrokeWidth;let H=M;o?(T=A,M==="inner"&&(S===j-1?H=this.options.reverse?"left":"right":S===0?H=this.options.reverse?"right":"left":H="center"),s==="top"?h==="near"||k!==0?ee=-X*G+G/2:h==="center"?ee=-re.highest.height/2-Z*G+G:ee=-re.highest.height+G/2:h==="near"||k!==0?ee=G/2:h==="center"?ee=re.highest.height/2-Z*G:ee=re.highest.height-X*G,m&&(ee*=-1),k!==0&&!ne.showLabelBackdrop&&(T+=G/2*Math.sin(k))):(L=A,ee=(1-X)*G/2);let F;if(ne.showLabelBackdrop){const Y=Si(ne.backdropPadding),xe=re.heights[S],ge=re.widths[S];let te=ee-Y.top,he=0-Y.left;switch(le){case"middle":te-=xe/2;break;case"bottom":te-=xe;break}switch(M){case"center":he-=ge/2;break;case"right":he-=ge;break;case"inner":S===j-1?he-=ge:S>0&&(he-=ge/2);break}F={left:he,top:te,width:ge+Y.width,height:xe+Y.height,color:ne.backdropColor}}w.push({label:E,font:O,textOffset:ee,options:{rotation:k,color:ce,strokeColor:W,strokeWidth:J,textAlign:H,textBaseline:le,translation:[T,L],backdrop:F}})}return w}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-ks(this.labelRotation))return t==="top"?"left":"right";let s="center";return n.align==="start"?s="left":n.align==="end"?s="right":n.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:i,mirror:s,padding:r}}=this.options,o=this._getLabelSizes(),c=t+r,u=o.widest.width;let h,f;return n==="left"?s?(f=this.right+r,i==="near"?h="left":i==="center"?(h="center",f+=u/2):(h="right",f+=u)):(f=this.right-c,i==="near"?h="right":i==="center"?(h="center",f-=u/2):(h="left",f=this.left)):n==="right"?s?(f=this.left+r,i==="near"?h="right":i==="center"?(h="center",f-=u/2):(h="left",f-=u)):(f=this.left+c,i==="near"?h="left":i==="center"?(h="center",f+=u/2):(h="right",f=this.right)):h="right",{textAlign:h,x:f}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:i,top:s,width:r,height:o}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(i,s,r,o),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const s=this.ticks.findIndex(r=>r.value===t);return s>=0?n.setContext(this.getContext(s)).lineWidth:0}drawGrid(t){const n=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let r,o;const c=(u,h,f)=>{!f.width||!f.color||(i.save(),i.lineWidth=f.width,i.strokeStyle=f.color,i.setLineDash(f.borderDash||[]),i.lineDashOffset=f.borderDashOffset,i.beginPath(),i.moveTo(u.x,u.y),i.lineTo(h.x,h.y),i.stroke(),i.restore())};if(n.display)for(r=0,o=s.length;r<o;++r){const u=s[r];n.drawOnChartArea&&c({x:u.x1,y:u.y1},{x:u.x2,y:u.y2},u),n.drawTicks&&c({x:u.tx1,y:u.ty1},{x:u.tx2,y:u.ty2},{color:u.tickColor,width:u.tickWidth,borderDash:u.tickBorderDash,borderDashOffset:u.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:i,grid:s}}=this,r=i.setContext(this.getContext()),o=i.display?r.width:0;if(!o)return;const c=s.setContext(this.getContext(0)).lineWidth,u=this._borderValue;let h,f,m,x;this.isHorizontal()?(h=sa(t,this.left,o)-o/2,f=sa(t,this.right,c)+c/2,m=x=u):(m=sa(t,this.top,o)-o/2,x=sa(t,this.bottom,c)+c/2,h=f=u),n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.beginPath(),n.moveTo(h,m),n.lineTo(f,x),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const i=this.ctx,s=this._computeLabelArea();s&&L0(i,s);const r=this.getLabelItems(t);for(const o of r){const c=o.options,u=o.font,h=o.label,f=o.textOffset;mp(i,h,0,f,u,c)}s&&D0(i)}drawTitle(){const{ctx:t,options:{position:n,title:i,reverse:s}}=this;if(!i.display)return;const r=Mn(i.font),o=Si(i.padding),c=i.align;let u=r.lineHeight/2;n==="bottom"||n==="center"||et(n)?(u+=o.bottom,nn(i.text)&&(u+=r.lineHeight*(i.text.length-1))):u+=o.top;const{titleX:h,titleY:f,maxWidth:m,rotation:x}=fz(this,u,n,c);mp(t,i.text,0,0,r,{color:i.color,maxWidth:m,rotation:x,textAlign:pz(c,n,s),textBaseline:"middle",translation:[h,f]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,i=Je(t.grid&&t.grid.z,-1),s=Je(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Go.prototype.draw?[{z:n,draw:r=>{this.draw(r)}}]:[{z:i,draw:r=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:n,draw:r=>{this.drawLabels(r)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let r,o;for(r=0,o=n.length;r<o;++r){const c=n[r];c[i]===this.id&&(!t||c.type===t)&&s.push(c)}return s}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return Mn(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Ju{constructor(t,n,i){this.type=t,this.scope=n,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let i;xz(n)&&(i=this.register(n));const s=this.items,r=t.id,o=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+t);return r in s||(s[r]=t,mz(t,o,i),this.override&&It.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const n=this.items,i=t.id,s=this.scope;i in n&&delete n[i],s&&i in It[s]&&(delete It[s][i],this.override&&delete ja[i])}}function mz(e,t,n){const i=nd(Object.create(null),[n?It.get(n):{},It.get(t),e.defaults]);It.set(t,i),e.defaultRoutes&&gz(t,e.defaultRoutes),e.descriptors&&It.describe(t,e.descriptors)}function gz(e,t){Object.keys(t).forEach(n=>{const i=n.split("."),s=i.pop(),r=[e].concat(i).join("."),o=t[n].split("."),c=o.pop(),u=o.join(".");It.route(r,s,u,c)})}function xz(e){return"id"in e&&"defaults"in e}class vz{constructor(){this.controllers=new Ju(No,"datasets",!0),this.elements=new Ju(Uo,"elements"),this.plugins=new Ju(Object,"plugins"),this.scales=new Ju(Go,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,i){[...n].forEach(s=>{const r=i||this._getRegistryForType(s);i||r.isForType(s)||r===this.plugins&&s.id?this._exec(t,r,s):at(s,o=>{const c=i||this._getRegistryForType(o);this._exec(t,c,o)})})}_exec(t,n,i){const s=R0(t);vt(i["before"+s],[],i),n[t](i),vt(i["after"+s],[],i)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const i=this._typedRegistries[n];if(i.isForType(t))return i}return this.plugins}_get(t,n,i){const s=n.get(t);if(s===void 0)throw new Error('"'+t+'" is not a registered '+i+".");return s}}var zi=new vz;class yz{constructor(){this._init=void 0}notify(t,n,i,s){if(n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install")),this._init===void 0)return;const r=s?this._descriptors(t).filter(s):this._descriptors(t),o=this._notify(r,t,n,i);return n==="afterDestroy"&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),o}_notify(t,n,i,s){s=s||{};for(const r of t){const o=r.plugin,c=o[i],u=[n,s,r.options];if(vt(c,u,o)===!1&&s.cancelable)return!1}return!0}invalidate(){ht(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const i=t&&t.config,s=Je(i.options&&i.options.plugins,{}),r=bz(i);return s===!1&&!n?[]:_z(t,r,s,n)}_notifyStateChanges(t){const n=this._oldCache||[],i=this._cache,s=(r,o)=>r.filter(c=>!o.some(u=>c.plugin.id===u.plugin.id));this._notify(s(n,i),t,"stop"),this._notify(s(i,n),t,"start")}}function bz(e){const t={},n=[],i=Object.keys(zi.plugins.items);for(let r=0;r<i.length;r++)n.push(zi.getPlugin(i[r]));const s=e.plugins||[];for(let r=0;r<s.length;r++){const o=s[r];n.indexOf(o)===-1&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}function wz(e,t){return!t&&e===!1?null:e===!0?{}:e}function _z(e,{plugins:t,localIds:n},i,s){const r=[],o=e.getContext();for(const c of t){const u=c.id,h=wz(i[u],s);h!==null&&r.push({plugin:c,options:kz(e.config,{plugin:c,local:n[u]},h,o)})}return r}function kz(e,{plugin:t,local:n},i,s){const r=e.pluginScopeKeys(t),o=e.getOptionScopes(i,r);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function vv(e,t){const n=It.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function Sz(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function jz(e,t){return e===t?"_index_":"_value_"}function aS(e){if(e==="x"||e==="y"||e==="r")return e}function Cz(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function yv(e,...t){if(aS(e))return e;for(const n of t){const i=n.axis||Cz(n.position)||e.length>1&&aS(e[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function oS(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function Nz(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(i=>i.xAxisID===e||i.yAxisID===e);if(n.length)return oS(e,"x",n[0])||oS(e,"y",n[0])}return{}}function Tz(e,t){const n=ja[e.type]||{scales:{}},i=t.scales||{},s=vv(e.type,t),r=Object.create(null);return Object.keys(i).forEach(o=>{const c=i[o];if(!et(c))return console.error(`Invalid scale configuration for scale: ${o}`);if(c._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const u=yv(o,c,Nz(o,e),It.scales[c.type]),h=jz(u,s),f=n.scales||{};r[o]=Ic(Object.create(null),[{axis:u},c,f[u],f[h]])}),e.data.datasets.forEach(o=>{const c=o.type||e.type,u=o.indexAxis||vv(c,t),f=(ja[c]||{}).scales||{};Object.keys(f).forEach(m=>{const x=Sz(m,u),y=o[x+"AxisID"]||x;r[y]=r[y]||Object.create(null),Ic(r[y],[{axis:x},i[y],f[m]])})}),Object.keys(r).forEach(o=>{const c=r[o];Ic(c,[It.scales[c.type],It.scale])}),r}function h4(e){const t=e.options||(e.options={});t.plugins=Je(t.plugins,{}),t.scales=Tz(e,t)}function p4(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function Ez(e){return e=e||{},e.data=p4(e.data),h4(e),e}const lS=new Map,f4=new Set;function eh(e,t){let n=lS.get(e);return n||(n=t(),lS.set(e,n),f4.add(n)),n}const Jl=(e,t,n)=>{const i=Sa(t,n);i!==void 0&&e.add(i)};class Az{constructor(t){this._config=Ez(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=p4(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),h4(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return eh(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return eh(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return eh(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,i=this.type;return eh(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const i=this._scopeCache;let s=i.get(t);return(!s||n)&&(s=new Map,i.set(t,s)),s}getOptionScopes(t,n,i){const{options:s,type:r}=this,o=this._cachedScopes(t,i),c=o.get(n);if(c)return c;const u=new Set;n.forEach(f=>{t&&(u.add(t),f.forEach(m=>Jl(u,t,m))),f.forEach(m=>Jl(u,s,m)),f.forEach(m=>Jl(u,ja[r]||{},m)),f.forEach(m=>Jl(u,It,m)),f.forEach(m=>Jl(u,xv,m))});const h=Array.from(u);return h.length===0&&h.push(Object.create(null)),f4.has(n)&&o.set(n,h),h}chartOptionScopes(){const{options:t,type:n}=this;return[t,ja[n]||{},It.datasets[n]||{},{type:n},It,xv]}resolveNamedOptions(t,n,i,s=[""]){const r={$shared:!0},{resolver:o,subPrefixes:c}=cS(this._resolverCache,t,s);let u=o;if(Iz(o,n)){r.$shared=!1,i=kr(i)?i():i;const h=this.createResolver(t,i,c);u=$o(o,i,h)}for(const h of n)r[h]=u[h];return r}createResolver(t,n,i=[""],s){const{resolver:r}=cS(this._resolverCache,t,i);return et(n)?$o(r,n,void 0,s):r}}function cS(e,t,n){let i=e.get(t);i||(i=new Map,e.set(t,i));const s=n.join();let r=i.get(s);return r||(r={resolver:$0(t,n),subPrefixes:n.filter(c=>!c.toLowerCase().includes("hover"))},i.set(s,r)),r}const Pz=e=>et(e)&&Object.getOwnPropertyNames(e).some(t=>kr(e[t]));function Iz(e,t){const{isScriptable:n,isIndexable:i}=ZN(e);for(const s of t){const r=n(s),o=i(s),c=(o||r)&&e[s];if(r&&(kr(c)||Pz(c))||o&&nn(c))return!0}return!1}var Rz="4.5.1";const Mz=["top","bottom","left","right","chartArea"];function dS(e,t){return e==="top"||e==="bottom"||Mz.indexOf(e)===-1&&t==="x"}function uS(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}function hS(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),vt(n&&n.onComplete,[e],t)}function Oz(e){const t=e.chart,n=t.options.animation;vt(n&&n.onProgress,[e],t)}function m4(e){return V0()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Ch={},pS=e=>{const t=m4(e);return Object.values(Ch).filter(n=>n.canvas===t).pop()};function Lz(e,t,n){const i=Object.keys(e);for(const s of i){const r=+s;if(r>=t){const o=e[s];delete e[s],(n>0||r>t)&&(e[r+n]=o)}}}function Dz(e,t,n,i){return!n||e.type==="mouseout"?null:i?t:e}var er;let ai=(er=class{static register(...t){zi.add(...t),fS()}static unregister(...t){zi.remove(...t),fS()}constructor(t,n){const i=this.config=new Az(n),s=m4(t),r=pS(s);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||tz(s)),this.platform.updateConfig(i);const c=this.platform.acquireContext(s,o.aspectRatio),u=c&&c.canvas,h=u&&u.height,f=u&&u.width;if(this.id=e$(),this.ctx=c,this.canvas=u,this.width=f,this.height=h,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new yz,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=v$(m=>this.update(m),o.resizeDelay||0),this._dataChanges=[],Ch[this.id]=this,!c||!u){console.error("Failed to create chart: can't acquire context from the given item");return}gs.listen(this,"complete",hS),gs.listen(this,"progress",Oz),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:i,height:s,_aspectRatio:r}=this;return ht(t)?n&&r?r:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return zi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():$2(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return O2(this.canvas,this.ctx),this}stop(){return gs.stop(this),this}resize(t,n){gs.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const i=this.options,s=this.canvas,r=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,t,n,r),c=i.devicePixelRatio||this.platform.getDevicePixelRatio(),u=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,$2(this,c,!0)&&(this.notifyPlugins("resize",{size:o}),vt(i.onResize,[this,o],this),this.attached&&this._doResize(u)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};at(n,(i,s)=>{i.id=s})}buildOrUpdateScales(){const t=this.options,n=t.scales,i=this.scales,s=Object.keys(i).reduce((o,c)=>(o[c]=!1,o),{});let r=[];n&&(r=r.concat(Object.keys(n).map(o=>{const c=n[o],u=yv(o,c),h=u==="r",f=u==="x";return{options:c,dposition:h?"chartArea":f?"bottom":"left",dtype:h?"radialLinear":f?"category":"linear"}}))),at(r,o=>{const c=o.options,u=c.id,h=yv(u,c),f=Je(c.type,o.dtype);(c.position===void 0||dS(c.position,h)!==dS(o.dposition))&&(c.position=o.dposition),s[u]=!0;let m=null;if(u in i&&i[u].type===f)m=i[u];else{const x=zi.getScale(f);m=new x({id:u,type:f,ctx:this.ctx,chart:this}),i[m.id]=m}m.init(c,t)}),at(s,(o,c)=>{o||delete i[c]}),at(i,o=>{pr.configure(this,o,o.options),pr.addBox(this,o)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,i=t.length;if(t.sort((s,r)=>s.index-r.index),i>n){for(let s=n;s<i;++s)this._destroyDatasetMeta(s);t.splice(n,i-n)}this._sortedMetasets=t.slice(0).sort(uS("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((i,s)=>{n.filter(r=>r===i._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=n.length;i<s;i++){const r=n[i];let o=this.getDatasetMeta(i);const c=r.type||this.config.type;if(o.type&&o.type!==c&&(this._destroyDatasetMeta(i),o=this.getDatasetMeta(i)),o.type=c,o.indexAxis=r.indexAxis||vv(c,this.options),o.order=r.order||0,o.index=i,o.label=""+r.label,o.visible=this.isDatasetVisible(i),o.controller)o.controller.updateIndex(i),o.controller.linkScales();else{const u=zi.getController(c),{datasetElementType:h,dataElementType:f}=It.datasets[c];Object.assign(u,{dataElementType:zi.getElement(f),datasetElementType:h&&zi.getElement(h)}),o.controller=new u(this,i),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){at(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let h=0,f=this.data.datasets.length;h<f;h++){const{controller:m}=this.getDatasetMeta(h),x=!s&&r.indexOf(m)===-1;m.buildOrUpdateElements(x),o=Math.max(+m.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),s||at(r,h=>{h.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(uS("z","_idx"));const{_active:c,_lastEvent:u}=this;u?this._eventHandler(u,!0):c.length&&this._updateHoverStyles(c,c,!0),this.render()}_updateScales(){at(this.scales,t=>{pr.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!j2(n,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:r}of n){const o=i==="_removeElements"?-r:r;Lz(t,s,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=r=>new Set(t.filter(o=>o[0]===r).map((o,c)=>c+","+o.splice(1).join(","))),s=i(0);for(let r=1;r<n;r++)if(!j2(s,i(r)))return;return Array.from(s).map(r=>r.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;pr.update(this,this.width,this.height,t);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],at(this.boxes,s=>{i&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,r)=>{s._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n<i;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,i=this.data.datasets.length;n<i;++n)this._updateDataset(n,kr(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const i=this.getDatasetMeta(t),s={meta:i,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(i.controller._update(n),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(gs.has(this)?this.attached&&!gs.running(this)&&gs.start(this):(this.draw(),hS({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:i,height:s}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(i,s)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,i=[];let s,r;for(s=0,r=n.length;s<r;++s){const o=n[s];(!t||o.visible)&&i.push(o)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,i={meta:t,index:t.index,cancelable:!0},s=iB(this,t);this.notifyPlugins("beforeDatasetDraw",i)!==!1&&(s&&L0(n,s),t.controller.draw(),s&&D0(n),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(t){return QN(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,i,s){const r=MB.modes[n];return typeof r=="function"?r(this,t,i,s):[]}getDatasetMeta(t){const n=this.data.datasets[t],i=this._metasets;let s=i.filter(r=>r&&r._dataset===n).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=qo(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(t,n){const i=this.getDatasetMeta(t);i.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,i){const s=i?"show":"hide",r=this.getDatasetMeta(t),o=r.controller._resolveAnimations(void 0,s);id(n)?(r.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(r,{visible:i}),this.update(c=>c.datasetIndex===t?s:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),gs.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),O2(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Ch[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,i=(r,o)=>{n.addEventListener(this,r,o),t[r]=o},s=(r,o,c)=>{r.offsetX=o,r.offsetY=c,this._eventHandler(r)};at(this.options.events,r=>i(r,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,i=(u,h)=>{n.addEventListener(this,u,h),t[u]=h},s=(u,h)=>{t[u]&&(n.removeEventListener(this,u,h),delete t[u])},r=(u,h)=>{this.canvas&&this.resize(u,h)};let o;const c=()=>{s("attach",c),this.attached=!0,this.resize(),i("resize",r),i("detach",o)};o=()=>{this.attached=!1,s("resize",r),this._stop(),this._resize(0,0),i("attach",c)},n.isAttached(this.canvas)?c():o()}unbindEvents(){at(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},at(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,i){const s=i?"set":"remove";let r,o,c,u;for(n==="dataset"&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+s+"DatasetHoverStyle"]()),c=0,u=t.length;c<u;++c){o=t[c];const h=o&&this.getDatasetMeta(o.datasetIndex).controller;h&&h[s+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],i=t.map(({datasetIndex:r,index:o})=>{const c=this.getDatasetMeta(r);if(!c)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:c.data[o],index:o}});!dp(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(t,n,i){return this._plugins.notify(this,t,n,i)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,i){const s=this.options.hover,r=(u,h)=>u.filter(f=>!h.some(m=>f.datasetIndex===m.datasetIndex&&f.index===m.index)),o=r(n,t),c=i?t:r(t,n);o.length&&this.updateHoverStyle(o,s.mode,!1),c.length&&s.mode&&this.updateHoverStyle(c,s.mode,!0)}_eventHandler(t,n){const i={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},s=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,s)===!1)return;const r=this._handleEvent(t,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(r||i.changed)&&this.render(),this}_handleEvent(t,n,i){const{_active:s=[],options:r}=this,o=n,c=this._getActiveElements(t,s,i,o),u=a$(t),h=Dz(t,this._lastEvent,i,u);i&&(this._lastEvent=null,vt(r.onHover,[t,c,this],this),u&&vt(r.onClick,[t,c,this],this));const f=!dp(c,s);return(f||n)&&(this._active=c,this._updateHoverStyles(c,s,n)),this._lastEvent=h,f}_getActiveElements(t,n,i,s){if(t.type==="mouseout")return[];if(!i)return n;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,s)}},Fe(er,"defaults",It),Fe(er,"instances",Ch),Fe(er,"overrides",ja),Fe(er,"registry",zi),Fe(er,"ver
220sion",Rz),Fe(er,"getChart",pS),er);function fS(){return at(ai.instances,e=>e._plugins.invalidate())}function Fz(e,t,n){const{startAngle:i,x:s,y:r,outerRadius:o,innerRadius:c,options:u}=t,{borderWidth:h,borderJoinStyle:f}=u,m=Math.min(h/o,Vi(i-n));if(e.beginPath(),e.arc(s,r,o-h/2,i+m/2,n-m/2),c>0){const x=Math.min(h/c,Vi(i-n));e.arc(s,r,c+h/2,n-x/2,i+x/2,!0)}else{const x=Math.min(h/2,o*Vi(i-n));if(f==="round")e.arc(s,r,x,n-wt/2,i+wt/2,!0);else if(f==="bevel"){const y=2*x*x,b=-y*Math.cos(n+wt/2)+s,k=-y*Math.sin(n+wt/2)+r,w=y*Math.cos(i+wt/2)+s,S=y*Math.sin(i+wt/2)+r;e.lineTo(b,k),e.lineTo(w,S)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}function $z(e,t,n){const{startAngle:i,pixelMargin:s,x:r,y:o,outerRadius:c,innerRadius:u}=t;let h=s/c;e.beginPath(),e.arc(r,o,c,i-h,n+h),u>s?(h=s/u,e.arc(r,o,u,n+h,i-h,!0)):e.arc(r,o,s,n+Qt,i-Qt),e.closePath(),e.clip()}function Bz(e){return F0(e,["outerStart","outerEnd","innerStart","innerEnd"])}function zz(e,t,n,i){const s=Bz(e.options.borderRadius),r=(n-t)/2,o=Math.min(r,i*t/2),c=u=>{const h=(n-Math.min(r,u))*i/2;return Rn(u,0,Math.min(r,h))};return{outerStart:c(s.outerStart),outerEnd:c(s.outerEnd),innerStart:Rn(s.innerStart,0,o),innerEnd:Rn(s.innerEnd,0,o)}}function co(e,t,n,i){return{x:n+e*Math.cos(t),y:i+e*Math.sin(t)}}function yp(e,t,n,i,s,r){const{x:o,y:c,startAngle:u,pixelMargin:h,innerRadius:f}=t,m=Math.max(t.outerRadius+i+n-h,0),x=f>0?f+i+n+h:0;let y=0;const b=s-u;if(i){const ne=f>0?f-i:0,Z=m>0?m-i:0,ce=(ne+Z)/2,W=ce!==0?b*ce/(ce+i):b;y=(b-W)/2}const k=Math.max(.001,b*m-n/wt)/m,w=(b-k)/2,S=u+w+y,j=s-w-y,{outerStart:N,outerEnd:E,innerStart:T,innerEnd:L}=zz(t,x,m,j-S),M=m-N,A=m-E,O=S+N/M,G=j-E/A,X=x+T,ee=x+L,le=S+T/X,re=j-L/ee;if(e.beginPath(),r){const ne=(O+G)/2;if(e.arc(o,c,m,O,ne),e.arc(o,c,m,ne,G),E>0){const J=co(A,G,o,c);e.arc(J.x,J.y,E,G,j+Qt)}const Z=co(ee,j,o,c);if(e.lineTo(Z.x,Z.y),L>0){const J=co(ee,re,o,c);e.arc(J.x,J.y,L,j+Qt,re+Math.PI)}const ce=(j-L/x+(S+T/x))/2;if(e.arc(o,c,x,j-L/x,ce,!0),e.arc(o,c,x,ce,S+T/x,!0),T>0){const J=co(X,le,o,c);e.arc(J.x,J.y,T,le+Math.PI,S-Qt)}const W=co(M,S,o,c);if(e.lineTo(W.x,W.y),N>0){const J=co(M,O,o,c);e.arc(J.x,J.y,N,S-Qt,O)}}else{e.moveTo(o,c);const ne=Math.cos(O)*m+o,Z=Math.sin(O)*m+c;e.lineTo(ne,Z);const ce=Math.cos(G)*m+o,W=Math.sin(G)*m+c;e.lineTo(ce,W)}e.closePath()}function Vz(e,t,n,i,s){const{fullCircles:r,startAngle:o,circumference:c}=t;let u=t.endAngle;if(r){yp(e,t,n,i,u,s);for(let h=0;h<r;++h)e.fill();isNaN(c)||(u=o+(c%$t||$t))}return yp(e,t,n,i,u,s),e.fill(),u}function Hz(e,t,n,i,s){const{fullCircles:r,startAngle:o,circumference:c,options:u}=t,{borderWidth:h,borderJoinStyle:f,borderDash:m,borderDashOffset:x,borderRadius:y}=u,b=u.borderAlign==="inner";if(!h)return;e.setLineDash(m||[]),e.lineDashOffset=x,b?(e.lineWidth=h*2,e.lineJoin=f||"round"):(e.lineWidth=h,e.lineJoin=f||"bevel");let k=t.endAngle;if(r){yp(e,t,n,i,k,s);for(let w=0;w<r;++w)e.stroke();isNaN(c)||(k=o+(c%$t||$t))}b&&$z(e,t,k),u.selfJoin&&k-o>=wt&&y===0&&f!=="miter"&&Fz(e,t,k),r||(yp(e,t,n,i,k,s),e.stroke())}class pc extends Uo{constructor(n){super();Fe(this,"circumference");Fe(this,"endAngle");Fe(this,"fullCircles");Fe(this,"innerRadius");Fe(this,"outerRadius");Fe(this,"pixelMargin");Fe(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,i,s){const r=this.getProps(["x","y"],s),{angle:o,distance:c}=zN(r,{x:n,y:i}),{startAngle:u,endAngle:h,innerRadius:f,outerRadius:m,circumference:x}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),y=(this.options.spacing+this.options.borderWidth)/2,b=Je(x,h-u),k=fp(o,u,h)&&u!==h,w=b>=$t||k,S=pa(c,f+y,m+y);return w&&S}getCenterPoint(n){const{x:i,y:s,startAngle:r,endAngle:o,innerRadius:c,outerRadius:u}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:h,spacing:f}=this.options,m=(r+o)/2,x=(c+u+f+h)/2;return{x:i+Math.cos(m)*x,y:s+Math.sin(m)*x}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:i,circumference:s}=this,r=(i.offset||0)/4,o=(i.spacing||0)/2,c=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=s>$t?Math.floor(s/$t):0,s===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const u=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(u)*r,Math.sin(u)*r);const h=1-Math.sin(Math.min(wt,s||0)),f=r*h;n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,Vz(n,this,f,o,c),Hz(n,this,f,o,c),n.restore(
vendor: 37,879 bytes, lines 220-222
220)}}Fe(pc,"id","arc"),Fe(pc,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),Fe(pc,"defaultRoutes",{backgroundColor:"backgroundColor"}),Fe(pc,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function g4(e,t){const{x:n,y:i,base:s,width:r,height:o}=e.getProps(["x","y","base","width","height"],t);let c,u,h,f,m;return e.horizontal?(m=o/2,c=Math.min(n,s),u=Math.max(n,s),h=i-m,f=i+m):(m=r/2,c=n-m,u=n+m,h=Math.min(i,s),f=Math.max(i,s)),{left:c,top:h,right:u,bottom:f}}function fr(e,t,n,i){return e?0:Rn(t,n,i)}function Wz(e,t,n){const i=e.options.borderWidth,s=e.borderSkipped,r=XN(i);return{t:fr(s.top,r.top,0,n),r:fr(s.right,r.right,0,t),b:fr(s.bottom,r.bottom,0,n),l:fr(s.left,r.left,0,t)}}function qz(e,t,n){const{enableBorderRadius:i}=e.getProps(["enableBorderRadius"]),s=e.options.borderRadius,r=jo(s),o=Math.min(t,n),c=e.borderSkipped,u=i||et(s);return{topLeft:fr(!u||c.top||c.left,r.topLeft,0,o),topRight:fr(!u||c.top||c.right,r.topRight,0,o),bottomLeft:fr(!u||c.bottom||c.left,r.bottomLeft,0,o),bottomRight:fr(!u||c.bottom||c.right,r.bottomRight,0,o)}}function Uz(e){const t=g4(e),n=t.right-t.left,i=t.bottom-t.top,s=Wz(e,n/2,i/2),r=qz(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i,radius:r},inner:{x:t.left+s.l,y:t.top+s.t,w:n-s.l-s.r,h:i-s.t-s.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,r.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(s.b,s.r))}}}}function Qg(e,t,n,i){const s=t===null,r=n===null,c=e&&!(s&&r)&&g4(e,i);return c&&(s||pa(t,c.left,c.right))&&(r||pa(n,c.top,c.bottom))}function Gz(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function Yz(e,t){e.rect(t.x,t.y,t.w,t.h)}function Xg(e,t,n={}){const i=e.x!==n.x?-t:0,s=e.y!==n.y?-t:0,r=(e.x+e.w!==n.x+n.w?t:0)-i,o=(e.y+e.h!==n.y+n.h?t:0)-s;return{x:e.x+i,y:e.y+s,w:e.w+r,h:e.h+o,radius:e.radius}}class ki extends Uo{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:i,backgroundColor:s}}=this,{inner:r,outer:o}=Uz(this),c=Gz(o.radius)?gp:Yz;t.save(),(o.w!==r.w||o.h!==r.h)&&(t.beginPath(),c(t,Xg(o,n,r)),t.clip(),c(t,Xg(r,-n,o)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),c(t,Xg(r,n)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,n,i){return Qg(this,t,n,i)}inXRange(t,n){return Qg(this,t,null,n)}inYRange(t,n){return Qg(this,null,t,n)}getCenterPoint(t){const{x:n,y:i,base:s,horizontal:r}=this.getProps(["x","y","base","horizontal"],t);return{x:r?(n+s)/2:n,y:r?i:(i+s)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}Fe(ki,"id","bar"),Fe(ki,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),Fe(ki,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const mS=(e,t)=>{let{boxHeight:n=t,boxWidth:i=t}=e;return e.usePointStyle&&(n=Math.min(n,t),i=e.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(t,n)}},Kz=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class gS extends Uo{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,i){this.maxWidth=t,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=vt(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(i=>t.filter(i,this.chart.data))),t.sort&&(n=n.sort((i,s)=>t.sort(i,s,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const i=t.labels,s=Mn(i.font),r=s.size,o=this._computeTitleHeight(),{boxWidth:c,itemHeight:u}=mS(i,r);let h,f;n.font=s.string,this.isHorizontal()?(h=this.maxWidth,f=this._fitRows(o,r,c,u)+10):(f=this.maxHeight,h=this._fitCols(o,s,c,u)+10),this.width=Math.min(h,t.maxWidth||this.maxWidth),this.height=Math.min(f,t.maxHeight||this.maxHeight)}_fitRows(t,n,i,s){const{ctx:r,maxWidth:o,options:{labels:{padding:c}}}=this,u=this.legendHitBoxes=[],h=this.lineWidths=[0],f=s+c;let m=t;r.textAlign="left",r.textBaseline="middle";let x=-1,y=-f;return this.legendItems.forEach((b,k)=>{const w=i+n/2+r.measureText(b.text).width;(k===0||h[h.length-1]+w+2*c>o)&&(m+=f,h[h.length-(k>0?0:1)]=0,y+=f,x++),u[k]={left:0,top:y,row:x,width:w,height:s},h[h.length-1]+=w+c}),m}_fitCols(t,n,i,s){const{ctx:r,maxHeight:o,options:{labels:{padding:c}}}=this,u=this.legendHitBoxes=[],h=this.columnSizes=[],f=o-t;let m=c,x=0,y=0,b=0,k=0;return this.legendItems.forEach((w,S)=>{const{itemWidth:j,itemHeight:N}=Qz(i,n,r,w,s);S>0&&y+N+2*c>f&&(m+=x+c,h.push({width:x,height:y}),b+=x+c,k++,x=y=0),u[S]={left:b,top:y,col:k,width:j,height:N},x=Math.max(x,j),y+=N+c}),m+=x,h.push({width:x,height:y}),m}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:s},rtl:r}}=this,o=Co(r,this.left,this.width);if(this.isHorizontal()){let c=0,u=Bn(i,this.left+s,this.right-this.lineWidths[c]);for(const h of n)c!==h.row&&(c=h.row,u=Bn(i,this.left+s,this.right-this.lineWidths[c])),h.top+=this.top+t+s,h.left=o.leftForLtr(o.x(u),h.width),u+=h.width+s}else{let c=0,u=Bn(i,this.top+t+s,this.bottom-this.columnSizes[c].height);for(const h of n)h.col!==c&&(c=h.col,u=Bn(i,this.top+t+s,this.bottom-this.columnSizes[c].height)),h.top=u,h.left+=this.left+s,h.left=o.leftForLtr(o.x(h.left),h.width),u+=h.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;L0(t,this),this._draw(),D0(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:i,ctx:s}=this,{align:r,labels:o}=t,c=It.color,u=Co(t.rtl,this.left,this.width),h=Mn(o.font),{padding:f}=o,m=h.size,x=m/2;let y;this.drawTitle(),s.textAlign=u.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=h.string;const{boxWidth:b,boxHeight:k,itemHeight:w}=mS(o,m),S=function(L,M,A){if(isNaN(b)||b<=0||isNaN(k)||k<0)return;s.save();const O=Je(A.lineWidth,1);if(s.fillStyle=Je(A.fillStyle,c),s.lineCap=Je(A.lineCap,"butt"),s.lineDashOffset=Je(A.lineDashOffset,0),s.lineJoin=Je(A.lineJoin,"miter"),s.lineWidth=O,s.strokeStyle=Je(A.strokeStyle,c),s.setLineDash(Je(A.lineDash,[])),o.usePointStyle){const G={radius:k*Math.SQRT2/2,pointStyle:A.pointStyle,rotation:A.rotation,borderWidth:O},X=u.xPlus(L,b/2),ee=M+x;KN(s,G,X,ee,o.pointStyleWidth&&b)}else{const G=M+Math.max((m-k)/2,0),X=u.leftForLtr(L,b),ee=jo(A.borderRadius);s.beginPath(),Object.values(ee).some(le=>le!==0)?gp(s,{x:X,y:G,w:b,h:k,radius:ee}):s.rect(X,G,b,k),s.fill(),O!==0&&s.stroke()}s.restore()},j=function(L,M,A){mp(s,A.text,L,M+w/2,h,{strikethrough:A.hidden,textAlign:u.textAlign(A.textAlign)})},N=this.isHorizontal(),E=this._computeTitleHeight();N?y={x:Bn(r,this.left+f,this.right-i[0]),y:this.top+f+E,line:0}:y={x:this.left+f,y:Bn(r,this.top+E+f,this.bottom-n[0].height),line:0},n4(this.ctx,t.textDirection);const T=w+f;this.legendItems.forEach((L,M)=>{s.strokeStyle=L.fontColor,s.fillStyle=L.fontColor;const A=s.measureText(L.text).width,O=u.textAlign(L.textAlign||(L.textAlign=o.textAlign)),G=b+x+A;let X=y.x,ee=y.y;u.setWidth(this.width),N?M>0&&X+G+f>this.right&&(ee=y.y+=T,y.line++,X=y.x=Bn(r,this.left+f,this.right-i[y.line])):M>0&&ee+T>this.bottom&&(X=y.x=X+n[y.line].width+f,y.line++,ee=y.y=Bn(r,this.top+E+f,this.bottom-n[y.line].height));const le=u.x(X);if(S(le,ee,L),X=y$(O,X+b+x,N?X+G:this.right,t.rtl),j(u.x(X),ee,L),N)y.x+=G+f;else if(typeof L.text!="string"){const re=h.lineHeight;y.y+=x4(L,re)+f}else y.y+=T}),i4(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,i=Mn(n.font),s=Si(n.padding);if(!n.display)return;const r=Co(t.rtl,this.left,this.width),o=this.ctx,c=n.position,u=i.size/2,h=s.top+u;let f,m=this.left,x=this.width;if(this.isHorizontal())x=Math.max(...this.lineWidths),f=this.top+h,m=Bn(t.align,m,this.right-x);else{const b=this.columnSizes.reduce((k,w)=>Math.max(k,w.height),0);f=h+Bn(t.align,this.top,this.bottom-b-t.labels.padding-this._computeTitleHeight())}const y=Bn(c,m,m+x);o.textAlign=r.textAlign(UN(c)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=i.string,mp(o,n.text,y,f,i)}_computeTitleHeight(){const t=this.options.title,n=Mn(t.font),i=Si(t.padding);return t.display?n.lineHeight+i.height:0}_getLegendItemAt(t,n){let i,s,r;if(pa(t,this.left,this.right)&&pa(n,this.top,this.bottom)){for(r=this.legendHitBoxes,i=0;i<r.length;++i)if(s=r[i],pa(t,s.left,s.left+s.width)&&pa(n,s.top,s.top+s.height))return this.legendItems[i]}return null}handleEvent(t){const n=this.options;if(!Jz(t.type,n))return;const i=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const s=this._hoveredItem,r=Kz(s,i);s&&!r&&vt(n.onLeave,[t,s,this],this),this._hoveredItem=i,i&&!r&&vt(n.onHover,[t,i,this],this)}else i&&vt(n.onClick,[t,i,this],this)}}function Qz(e,t,n,i,s){const r=Xz(i,e,t,n),o=Zz(s,i,t.lineHeight);return{itemWidth:r,itemHeight:o}}function Xz(e,t,n,i){let s=e.text;return s&&typeof s!="string"&&(s=s.reduce((r,o)=>r.length>o.length?r:o)),t+n.size/2+i.measureText(s).width}function Zz(e,t,n){let i=e;return typeof t.text!="string"&&(i=x4(t,n)),i}function x4(e,t){const n=e.text?e.text.length:0;return t*n}function Jz(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var eV={id:"legend",_element:gS,start(e,t,n){const i=e.legend=new gS({ctx:e.ctx,options:n,chart:e});pr.configure(e,i,n),pr.addBox(e,i)},stop(e){pr.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const i=e.legend;pr.configure(e,i,n),i.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const i=t.datasetIndex,s=n.chart;s.isDatasetVisible(i)?(s.hide(i),t.hidden=!0):(s.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:s,color:r,useBorderRadius:o,borderRadius:c}}=e.legend.options;return e._getSortedDatasetMetas().map(u=>{const h=u.controller.getStyle(n?0:void 0),f=Si(h.borderWidth);return{text:t[u.index].label,fillStyle:h.backgroundColor,fontColor:r,hidden:!u.visible,lineCap:h.borderCapStyle,lineDash:h.borderDash,lineDashOffset:h.borderDashOffset,lineJoin:h.borderJoinStyle,lineWidth:(f.width+f.height)/4,strokeStyle:h.borderColor,pointStyle:i||h.pointStyle,rotation:h.rotation,textAlign:s||h.textAlign,borderRadius:o&&(c||h.borderRadius),datasetIndex:u.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};const fc={average(e){if(!e.length)return!1;let t,n,i=new Set,s=0,r=0;for(t=0,n=e.length;t<n;++t){const c=e[t].element;if(c&&c.hasValue()){const u=c.tooltipPosition();i.add(u.x),s+=u.y,++r}}return r===0||i.size===0?!1:{x:[...i].reduce((c,u)=>c+u)/i.size,y:s/r}},nearest(e,t){if(!e.length)return!1;let n=t.x,i=t.y,s=Number.POSITIVE_INFINITY,r,o,c;for(r=0,o=e.length;r<o;++r){const u=e[r].element;if(u&&u.hasValue()){const h=u.getCenterPoint(),f=p$(t,h);f<s&&(s=f,c=u)}}if(c){const u=c.tooltipPosition();n=u.x,i=u.y}return{x:n,y:i}}};function Fi(e,t){return t&&(nn(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function xs(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
221`)>-1?e.split(`
222`):e}function tV(e,t){const{element:n,datasetIndex:i,index:s}=t,r=e.getDatasetMeta(i).controller,{label:o,value:c}=r.getLabelAndValue(s);return{chart:e,label:o,parsed:r.getParsed(s),raw:e.data.datasets[i].data[s],formattedValue:c,dataset:r.getDataset(),dataIndex:s,datasetIndex:i,element:n}}function xS(e,t){const n=e.chart.ctx,{body:i,footer:s,title:r}=e,{boxWidth:o,boxHeight:c}=t,u=Mn(t.bodyFont),h=Mn(t.titleFont),f=Mn(t.footerFont),m=r.length,x=s.length,y=i.length,b=Si(t.padding);let k=b.height,w=0,S=i.reduce((E,T)=>E+T.before.length+T.lines.length+T.after.length,0);if(S+=e.beforeBody.length+e.afterBody.length,m&&(k+=m*h.lineHeight+(m-1)*t.titleSpacing+t.titleMarginBottom),S){const E=t.displayColors?Math.max(c,u.lineHeight):u.lineHeight;k+=y*E+(S-y)*u.lineHeight+(S-1)*t.bodySpacing}x&&(k+=t.footerMarginTop+x*f.lineHeight+(x-1)*t.footerSpacing);let j=0;const N=function(E){w=Math.max(w,n.measureText(E).width+j)};return n.save(),n.font=h.string,at(e.title,N),n.font=u.string,at(e.beforeBody.concat(e.afterBody),N),j=t.displayColors?o+2+t.boxPadding:0,at(i,E=>{at(E.before,N),at(E.lines,N),at(E.after,N)}),j=0,n.font=f.string,at(e.footer,N),n.restore(),w+=b.width,{width:w,height:k}}function nV(e,t){const{y:n,height:i}=t;return n<i/2?"top":n>e.height-i/2?"bottom":"center"}function iV(e,t,n,i){const{x:s,width:r}=i,o=n.caretSize+n.caretPadding;if(e==="left"&&s+r+o>t.width||e==="right"&&s-r-o<0)return!0}function sV(e,t,n,i){const{x:s,width:r}=n,{width:o,chartArea:{left:c,right:u}}=e;let h="center";return i==="center"?h=s<=(c+u)/2?"left":"right":s<=r/2?h="left":s>=o-r/2&&(h="right"),iV(h,e,t,n)&&(h="center"),h}function vS(e,t,n){const i=n.yAlign||t.yAlign||nV(e,n);return{xAlign:n.xAlign||t.xAlign||sV(e,t,n,i),yAlign:i}}function rV(e,t){let{x:n,width:i}=e;return t==="right"?n-=i:t==="center"&&(n-=i/2),n}function aV(e,t,n){let{y:i,height:s}=e;return t==="top"?i+=n:t==="bottom"?i-=s+n:i-=s/2,i}function yS(e,t,n,i){const{caretSize:s,caretPadding:r,cornerRadius:o}=e,{xAlign:c,yAlign:u}=n,h=s+r,{topLeft:f,topRight:m,bottomLeft:x,bottomRight:y}=jo(o);let b=rV(t,c);const k=aV(t,u,h);return u==="center"?c==="left"?b+=h:c==="right"&&(b-=h):c==="left"?b-=Math.max(f,x)+s:c==="right"&&(b+=Math.max(m,y)+s),{x:Rn(b,0,i.width-t.width),y:Rn(k,0,i.height-t.height)}}function th(e,t,n){const i=Si(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-i.right:e.x+i.left}function bS(e){return Fi([],xs(e))}function oV(e,t,n){return qo(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function wS(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const v4={beforeTitle:hs,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return n[t.dataIndex]}return""},afterTitle:hs,beforeBody:hs,beforeLabel:hs,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return ht(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:hs,afterBody:hs,beforeFooter:hs,footer:hs,afterFooter:hs};function En(e,t,n,i){const s=e[t].call(n,i);return typeof s>"u"?v4[t].call(n,i):s}class bv extends Uo{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&n.options.animation&&i.animations,r=new s4(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=oV(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:i}=n,s=En(i,"beforeTitle",this,t),r=En(i,"title",this,t),o=En(i,"afterTitle",this,t);let c=[];return c=Fi(c,xs(s)),c=Fi(c,xs(r)),c=Fi(c,xs(o)),c}getBeforeBody(t,n){return bS(En(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:i}=n,s=[];return at(t,r=>{const o={before:[],lines:[],after:[]},c=wS(i,r);Fi(o.before,xs(En(c,"beforeLabel",this,r))),Fi(o.lines,En(c,"label",this,r)),Fi(o.after,xs(En(c,"afterLabel",this,r))),s.push(o)}),s}getAfterBody(t,n){return bS(En(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:i}=n,s=En(i,"beforeFooter",this,t),r=En(i,"footer",this,t),o=En(i,"afterFooter",this,t);let c=[];return c=Fi(c,xs(s)),c=Fi(c,xs(r)),c=Fi(c,xs(o)),c}_createItems(t){const n=this._active,i=this.chart.data,s=[],r=[],o=[];let c=[],u,h;for(u=0,h=n.length;u<h;++u)c.push(tV(this.chart,n[u]));return t.filter&&(c=c.filter((f,m,x)=>t.filter(f,m,x,i))),t.itemSort&&(c=c.sort((f,m)=>t.itemSort(f,m,i))),at(c,f=>{const m=wS(t.callbacks,f);s.push(En(m,"labelColor",this,f)),r.push(En(m,"labelPointStyle",this,f)),o.push(En(m,"labelTextColor",this,f))}),this.labelColors=s,this.labelPointStyles=r,this.labelTextColors=o,this.dataPoints=c,c}update(t,n){const i=this.options.setContext(this.getContext()),s=this._active;let r,o=[];if(!s.length)this.opacity!==0&&(r={opacity:0});else{const c=fc[i.position].call(this,s,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const u=this._size=xS(this,i),h=Object.assign({},c,u),f=vS(this.chart,i,h),m=yS(i,h,f,this.chart);this.xAlign=f.xAlign,this.yAlign=f.yAlign,r={opacity:1,x:m.x,y:m.y,width:u.width,height:u.height,caretX:c.x,caretY:c.y}}this._tooltipItems=o,this.$context=void 0,r&&this._resolveAnimations().update(this,r),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,i,s){const r=this.getCaretPosition(t,i,s);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)}getCaretPosition(t,n,i){const{xAlign:s,yAlign:r}=this,{caretSize:o,cornerRadius:c}=i,{topLeft:u,topRight:h,bottomLeft:f,bottomRight:m}=jo(c),{x,y}=t,{width:b,height:k}=n;let w,S,j,N,E,T;return r==="center"?(E=y+k/2,s==="left"?(w=x,S=w-o,N=E+o,T=E-o):(w=x+b,S=w+o,N=E-o,T=E+o),j=w):(s==="left"?S=x+Math.max(u,f)+o:s==="right"?S=x+b-Math.max(h,m)-o:S=this.caretX,r==="top"?(N=y,E=N-o,w=S-o,j=S+o):(N=y+k,E=N+o,w=S+o,j=S-o),T=N),{x1:w,x2:S,x3:j,y1:N,y2:E,y3:T}}drawTitle(t,n,i){const s=this.title,r=s.length;let o,c,u;if(r){const h=Co(i.rtl,this.x,this.width);for(t.x=th(this,i.titleAlign,i),n.textAlign=h.textAlign(i.titleAlign),n.textBaseline="middle",o=Mn(i.titleFont),c=i.titleSpacing,n.fillStyle=i.titleColor,n.font=o.string,u=0;u<r;++u)n.fillText(s[u],h.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+c,u+1===r&&(t.y+=i.titleMarginBottom-c)}}_drawColorBox(t,n,i,s,r){const o=this.labelColors[i],c=this.labelPointStyles[i],{boxHeight:u,boxWidth:h}=r,f=Mn(r.bodyFont),m=th(this,"left",r),x=s.x(m),y=u<f.lineHeight?(f.lineHeight-u)/2:0,b=n.y+y;if(r.usePointStyle){const k={radius:Math.min(h,u)/2,pointStyle:c.pointStyle,rotation:c.rotation,borderWidth:1},w=s.leftForLtr(x,h)+h/2,S=b+u/2;t.strokeStyle=r.multiKeyBackground,t.fillStyle=r.multiKeyBackground,L2(t,k,w,S),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,L2(t,k,w,S)}else{t.lineWidth=et(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const k=s.leftForLtr(x,h),w=s.leftForLtr(s.xPlus(x,1),h-2),S=jo(o.borderRadius);Object.values(S).some(j=>j!==0)?(t.beginPath(),t.fillStyle=r.multiKeyBackground,gp(t,{x:k,y:b,w:h,h:u,radius:S}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),gp(t,{x:w,y:b+1,w:h-2,h:u-2,radius:S}),t.fill()):(t.fillStyle=r.multiKeyBackground,t.fillRect(k,b,h,u),t.strokeRect(k,b,h,u),t.fillStyle=o.backgroundColor,t.fillRect(w,b+1,h-2,u-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,n,i){const{body:s}=this,{bodySpacing:r,bodyAlign:o,displayColors:c,boxHeight:u,boxWidth:h,boxPadding:f}=i,m=Mn(i.bodyFont);let x=m.lineHeight,y=0;const b=Co(i.rtl,this.x,this.width),k=function(A){n.fillText(A,b.x(t.x+y),t.y+x/2),t.y+=x+r},w=b.textAlign(o);let S,j,N,E,T,L,M;for(n.textAlign=o,n.textBaseline="middle",n.font=m.string,t.x=th(this,w,i),n.fillStyle=i.bodyColor,at(this.beforeBody,k),y=c&&w!=="right"?o==="center"?h/2+f:h+2+f:0,E=0,L=s.length;E<L;++E){for(S=s[E],j=this.labelTextColors[E],n.fillStyle=j,at(S.before,k),N=S.lines,c&&N.length&&(this._drawColorBox(n,t,E,b,i),x=Math.max(m.lineHeight,u)),T=0,M=N.length;T<M;++T)k(N[T]),x=m.lineHeight;at(S.after,k)}y=0,x=m.lineHeight,at(this.afterBody,k),t.y-=r}drawFooter(t,n,i){const s=this.footer,r=s.length;let o,c;if(r){const u=Co(i.rtl,this.x,this.width);for(t.x=th(this,i.footerAlign,i),t.y+=i.footerMarginTop,n.textAlign=u.textAlign(i.footerAlign),n.textBaseline="middle",o=Mn(i.footerFont),n.fillStyle=i.footerColor,n.font=o.string,c=0;c<r;++c)n.fillText(s[c],u.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+i.footerSpacing}}drawBackground(t,n,i,s){const{xAlign:r,yAlign:o}=this,{x:c,y:u}=t,{width:h,height:f}=i,{topLeft:m,topRight:x,bottomLeft:y,bottomRight:b}=jo(s.cornerRadius);n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.beginPath(),n.moveTo(c+m,u),o==="top"&&this.drawCaret(t,n,i,s),n.lineTo(c+h-x,u),n.quadraticCurveTo(c+h,u,c+h,u+x),o==="center"&&r==="right"&&this.drawCaret(t,n,i,s),n.lineTo(c+h,u+f-b),n.quadraticCurveTo(c+h,u+f,c+h-b,u+f),o==="bottom"&&this.drawCaret(t,n,i,s),n.lineTo(c+y,u+f),n.quadraticCurveTo(c,u+f,c,u+f-y),o==="center"&&r==="left"&&this.drawCaret(t,n,i,s),n.lineTo(c,u+m),n.quadraticCurveTo(c,u,c+m,u),n.closePath(),n.fill(),s.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,i=this.$animations,s=i&&i.x,r=i&&i.y;if(s||r){const o=fc[t.position].call(this,this._active,this._eventPosition);if(!o)return;const c=this._size=xS(this,t),u=Object.assign({},o,this._size),h=vS(n,t,u),f=yS(t,u,h,n);(s._to!==f.x||r._to!==f.y)&&(this.xAlign=h.xAlign,this.yAlign=h.yAlign,this.width=c.width,this.height=c.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,f))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},r={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=Si(n.padding),c=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&c&&(t.save(),t.globalAlpha=i,this.drawBackground(r,t,s,n),n4(t,n.textDirection),r.y+=o.top,this.drawTitle(r,t,n),this.drawBody(r,t,n),this.drawFooter(r,t,n),i4(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const i=this._active,s=t.map(({datasetIndex:c,index:u})=>{const h=this.chart.getDatasetMeta(c);if(!h)throw new Error("Cannot find a dataset at index "+c);return{datasetIndex:c,element:h.data[u],index:u}}),r=!dp(i,s),o=this._positionChanged(s,n);(r||o)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,r=this._active||[],o=this._getActiveElements(t,r,n,i),c=this._positionChanged(o,t),u=n||!dp(o,r)||c;return u&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),u}_getActiveElements(t,n,i,s){const r=this.options;if(t.type==="mouseout")return[];if(!s)return n.filter(c=>this.chart.data.datasets[c.datasetIndex]&&this.chart.getDatasetMeta(c.datasetIndex).controller.getParsed(c.index)!==void 0);const o=this.chart.getElementsAtEventForMode(t,r.mode,r,i);return r.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:i,caretY:s,options:r}=this,o=fc[r.position].call(this,t,n);return o!==!1&&(i!==o.x||s!==o.y)}}Fe(bv,"positioners",fc);var Es={id:"tooltip",_element:bv,positioners:fc,afterInit(e,t,n){n&&(e.tooltip=new bv({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:v4},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const lV=(e,t,n,i)=>(typeof t=="string"?(n=e.push(t)-1,i.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function cV(e,t,n,i){const s=e.indexOf(t);if(s===-1)return lV(e,t,n,i);const r=e.lastIndexOf(t);return s!==r?n:s}const dV=(e,t)=>e===null?null:Rn(Math.round(e),0,t);function _S(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Xi extends Go{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const i=this.getLabels();for(const{index:s,label:r}of n)i[s]===r&&i.splice(s,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(ht(t))return null;const i=this.getLabels();return n=isFinite(n)&&i[n]===t?n:cV(i,t,Je(n,t),this._addedLabels),dV(n,i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(i=0),n||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const t=this.min,n=this.max,i=this.options.offset,s=[];let r=this.getLabels();r=t===0&&n===r.length-1?r:r.slice(t,n+1),this._valueRange=Math.max(r.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let o=t;o<=n;o++)s.push({value:o});return s}getLabelForValue(t){return _S.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Fe(Xi,"id","category"),Fe(Xi,"defaults",{ticks:{callback:_S}});function uV(e,t){const n=[],{bounds:s,step:r,min:o,max:c,precision:u,count:h,maxTicks:f,maxDigits:m,includeBounds:x}=e,y=r||1,b=f-1,{min:k,max:w}=t,S=!ht(o),j=!ht(c),N=!ht(h),E=(w-k)/(m+1);let T=N2((w-k)/b/y)*y,L,M,A,O;if(T<1e-14&&!S&&!j)return[{value:k},{value:w}];O=Math.ceil(w/T)-Math.floor(k/T),O>b&&(T=N2(O*T/b/y)*y),ht(u)||(L=Math.pow(10,u),T=Math.ceil(T*L)/L),s==="ticks"?(M=Math.floor(k/T)*T,A=Math.ceil(w/T)*T):(M=k,A=w),S&&j&&r&&d$((c-o)/r,T/1e3)?(O=Math.round(Math.min((c-o)/T,f)),T=(c-o)/O,M=o,A=c):N?(M=S?o:M,A=j?c:A,O=h-1,T=(A-M)/O):(O=(A-M)/T,kh(O,Math.round(O),T/1e3)?O=Math.round(O):O=Math.ceil(O));const G=Math.max(T2(T),T2(M));L=Math.pow(10,ht(u)?G:u),M=Math.round(M*L)/L,A=Math.round(A*L)/L;let X=0;for(S&&(x&&M!==o?(n.push({value:o}),M<o&&X++,kh(Math.round((M+X*T)*L)/L,o,kS(o,E,e))&&X++):M<o&&X++);X<O;++X){const ee=Math.round((M+X*T)*L)/L;if(j&&ee>c)break;n.push({value:ee})}return j&&x&&A!==c?n.length&&kh(n[n.length-1].value,c,kS(c,E,e))?n[n.length-1].value=c:n.push({value:c}):(!j||A===c)&&n.push({value:A}),n}function kS(e,t,{horizontal:n,minRotation:i}){const s=ks(i),r=(n?Math.sin(s):Math.cos(s))||.001,o=.75*t*(""+e).length;return Math.min(t/r,o)}class hV extends Go{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return ht(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:s,max:r}=this;const o=u=>s=n?s:u,c=u=>r=i?r:u;if(t){const u=vr(s),h=vr(r);u<0&&h<0?c(0):u>0&&h>0&&o(0)}if(s===r){let u=r===0?1:Math.abs(r*.05);c(r+u),t||o(s-u)}this.min=s,this.max=r}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=t,s;return i?(s=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),n=n||11),n&&(s=Math.min(n,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},r=this._range||this,o=uV(s,r);return t.bounds==="ticks"&&u$(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const s=(i-n)/Math.max(t.length-1,1)/2;n-=s,i+=s}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(t){return O0(t,this.chart.options.locale,this.options.ticks.format)}}class Zi extends hV{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=ii(t)?t:0,this.max=ii(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,i=ks(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,r.lineHeight/s))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Fe(Zi,"id","linear"),Fe(Zi,"defaults",{ticks:{callback:YN.formatters.numeric}});const $p={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Pn=Object.keys($p);function SS(e,t){return e-t}function jS(e,t){if(ht(t))return null;const n=e._adapter,{parser:i,round:s,isoWeekday:r}=e._parseOpts;let o=t;return typeof i=="function"&&(o=i(o)),ii(o)||(o=typeof i=="string"?n.parse(o,i):n.parse(o)),o===null?null:(s&&(o=s==="week"&&(pp(r)||r===!0)?n.startOf(o,"isoWeek",r):n.startOf(o,s)),+o)}function CS(e,t,n,i){const s=Pn.length;for(let r=Pn.indexOf(e);r<s-1;++r){const o=$p[Pn[r]],c=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(c*o.size))<=i)return Pn[r]}return Pn[s-1]}function pV(e,t,n,i,s){for(let r=Pn.length-1;r>=Pn.indexOf(n);r--){const o=Pn[r];if($p[o].common&&e._adapter.diff(s,i,o)>=t-1)return o}return Pn[n?Pn.indexOf(n):0]}function fV(e){for(let t=Pn.indexOf(e)+1,n=Pn.length;t<n;++t)if($p[Pn[t]].common)return Pn[t]}function NS(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:i,hi:s}=M0(n,t),r=n[i]>=t?n[i]:n[s];e[r]=!0}}function mV(e,t,n,i){const s=e._adapter,r=+s.startOf(t[0].value,i),o=t[t.length-1].value;let c,u;for(c=r;c<=o;c=+s.add(c,1,i))u=n[c],u>=0&&(t[u].major=!0);return t}function TS(e,t,n){const i=[],s={},r=t.length;let o,c;for(o=0;o<r;++o)c=t[o],s[c]=o,i.push({value:c,major:!1});return r===0||!n?i:mV(e,i,s,n)}class bp extends Go{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const i=t.time||(t.time={}),s=this._adapter=new EB._date(t.adapters.date);s.init(n),Ic(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:jS(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,i=t.time.unit||"day";let{min:s,max:r,minDefined:o,maxDefined:c}=this.getUserBounds();function u(h){!o&&!isNaN(h.min)&&(s=Math.min(s,h.min)),!c&&!isNaN(h.max)&&(r=Math.max(r,h.max))}(!o||!c)&&(u(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&u(this.getMinMax(!1))),s=ii(s)&&!isNaN(s)?s:+n.startOf(Date.now(),i),r=ii(r)&&!isNaN(r)?r:+n.endOf(Date.now(),i)+1,this.min=Math.min(s,r-1),this.max=Math.max(s+1,r)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],i=t[t.length-1]),{min:n,max:i}}buildTicks(){const t=this.options,n=t.time,i=t.ticks,s=i.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const r=this.min,o=this.max,c=g$(s,r,o);return this._unit=n.unit||(i.autoSkip?CS(n.minUnit,this.min,this.max,this._getLabelCapacity(r)):pV(this,c.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:fV(this._unit),this.initOffsets(s),t.reverse&&c.reverse(),TS(this,c,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,i=0,s,r;this.options.offset&&t.length&&(s=this.getDecimalForValue(t[0]),t.length===1?n=1-s:n=(this.getDecimalForValue(t[1])-s)/2,r=this.getDecimalForValue(t[t.length-1]),t.length===1?i=r:i=(r-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=Rn(n,0,o),i=Rn(i,0,o),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const t=this._adapter,n=this.min,i=this.max,s=this.options,r=s.time,o=r.unit||CS(r.minUnit,n,i,this._getLabelCapacity(n)),c=Je(s.ticks.stepSize,1),u=o==="week"?r.isoWeekday:!1,h=pp(u)||u===!0,f={};let m=n,x,y;if(h&&(m=+t.startOf(m,"isoWeek",u)),m=+t.startOf(m,h?"day":o),t.diff(i,n,o)>1e5*c)throw new Error(n+" and "+i+" are too far apart with stepSize of "+c+" "+o);const b=s.ticks.source==="data"&&this.getDataTimestamps();for(x=m,y=0;x<i;x=+t.add(x,c,o),y++)NS(f,x,b);return(x===i||s.bounds==="ticks"||y===1)&&NS(f,x,b),Object.keys(f).sort(SS).map(k=>+k)}getLabelForValue(t){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(t,i.tooltipFormat):n.format(t,i.displayFormats.datetime)}format(t,n){const s=this.options.time.displayFormats,r=this._unit,o=n||s[r];return this._adapter.format(t,o)}_tickFormatFunction(t,n,i,s){const r=this.options,o=r.ticks.callback;if(o)return vt(o,[t,n,i],this);const c=r.time.displayFormats,u=this._unit,h=this._majorUnit,f=u&&c[u],m=h&&c[h],x=i[n],y=h&&m&&x&&x.major;return this._adapter.format(t,s||(y?m:f))}generateTickLabels(t){let n,i,s;for(n=0,i=t.length;n<i;++n)s=t[n],s.label=this._tickFormatFunction(s.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+i)*n.factor)}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,i=this.ctx.measureText(t).width,s=ks(this.isHorizontal()?n.maxRotation:n.minRotation),r=Math.cos(s),o=Math.sin(s),c=this._resolveTickFontOptions(0).size;return{w:i*r+c*o,h:i*o+c*r}}_getLabelCapacity(t){const n=this.options.time,i=n.displayFormats,s=i[n.unit]||i.millisecond,r=this._tick
222FormatFunction(t,0,TS(this,[t],this._majorUnit),s),o=this._getLabelSize(r),c=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return c>0?c:1}getDataTimestamps(){let t=this._cache.data||[],n,i;if(t.length)return t;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,i=s.length;n<i;++n)t=t.concat(s[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,i;if(t.length)return t;const s=this.getLabels();for(n=0,i=s.length;n<i;++n)t.push(jS(this,s[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return HN(t.sort(SS))}}Fe(bp,"id","time"),Fe(bp,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function nh(e,t,n){let i=0,s=e.length-1,r,o,c,u;n?(t>=e[i].pos&&t<=e[s].pos&&({lo:i,hi:s}=gv(e,"pos",t)),{pos:r,time:c}=e[i],{pos:o,time:u}=e[s]):(t>=e[i].time&&t<=e[s].time&&({lo:i,hi:s}=gv(e,"time",t)),{time:r,pos:c}=e[i],{time:o,pos:u}=e[s]);const h=o-r;return h?c+(u-c)*(t-r)/h:c}class ES extends bp{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=nh(n,this.min),this._tableRange=nh(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:i}=this,s=[],r=[];let o,c,u,h,f;for(o=0,c=t.length;o<c;++o)h=t[o],h>=n&&h<=i&&s.push(h);if(s.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(o=0,c=s.length;o<c;++o)f=s[o+1],u=s[o-1],h=s[o],Math.round((f+u)/2)!==h&&r.push({time:h,pos:o/(c-1)});return r}_generate(){const t=this.min,n=this.max;let i=super.getDataTimestamps();return(!i.includes(t)||!i.length)&&i.splice(0,0,t),(!i.includes(n)||i.length===1)&&i.push(n),i.sort((s,r)=>s-r)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?t=this.normalize(n.concat(i)):t=n.length?n:i,t=this._cache.all=t,t}getDecimalForValue(t){return(nh(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return nh(this._table,i*this._tableRange+this._minPos,!0)}}Fe(ES,"id","timeseries"),Fe(ES,"defaults",bp.defaults);const y4="label";function AS(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function gV(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function b4(e,t){e.labels=t}function w4(e,t,n=y4){const i=[];e.datasets=t.map(s=>{const r=e.datasets.find(o=>o[n]===s[n]);return!r||!s.data||i.includes(r)?{...s}:(i.push(r),Object.assign(r,s),r)})}function xV(e,t=y4){const n={labels:[],datasets:[]};return b4(n,e.labels),w4(n,e.datasets,t),n}function vV(e,t){const{height:n=150,width:i=300,redraw:s=!1,datasetIdKey:r,type:o,data:c,options:u,plugins:h=[],fallbackContent:f,updateMode:m,...x}=e,y=P.useRef(null),b=P.useRef(null),k=()=>{y.current&&(b.current=new ai(y.current,{type:o,data:xV(c,r),options:u&&{...u},plugins:h}),AS(t,b.current))},w=()=>{AS(t,null),b.current&&(b.current.destroy(),b.current=null)};return P.useEffect(()=>{!s&&b.current&&u&&gV(b.current,u)},[s,u]),P.useEffect(()=>{!s&&b.current&&b4(b.current.config.data,c.labels)},[s,c.labels]),P.useEffect(()=>{!s&&b.current&&c.datasets&&w4(b.current.config.data,c.datasets,r)},[s,c.datasets]),P.useEffect(()=>{b.current&&(s?(w(),setTimeout(k)):b.current.update(m))},[s,u,c.labels,c.datasets,m]),P.useEffect(()=>{b.current&&(w(),setTimeout(k))},[o]),P.useEffect(()=>(k(),()=>w()),[]),d.jsx("canvas",{ref:y,role:"img",height:n,width:i,...x,children:f})}const yV=P.forwardRef(vV);function _4(e,t){return ai.register(t),P.forwardRef((n,i)=>d.jsx(yV,{...n,ref:i,type:e}))}const Ar=_4("bar",Sh),bV=_4("doughnut",uc),Ie={navy:"#1D3A66",accent:"#C97B3A",muted:"#A6ABB5",success:"#0F6E56",danger:"#B83A3A",grid:"rgba(0,0,0,0.06)",tick:"#5A6373",baseline:"#1A1F2E"},k4={id:"baselineAtOne",afterDraw(e){const t=e.scales.x;if(!t)return;const n=t.getPixelForValue(1),{top:i,bottom:s}=e.chartArea,r=e.ctx;r.save(),r.setLineDash([5,4]),r.lineWidth=1.5,r.strokeStyle=Ie.baseline,r.beginPath(),r.moveTo(n,i),r.lineTo(n,s),r.stroke(),r.restore(
222)}},ln={family:"var(--font-geist-sans), system-ui, sans-serif",size:13};ai.register(Xi,Zi,ki,Es);const wV=["White-associated names","Female-associated names","Black-male names over white-male"];function S4(){return d.jsx("div",{className:"h-[230px] w-full",role:"img","aria-label":"Bar chart showing AI models preferred White-associated names in 85 percent of comparisons, female-associated names in 11 percent, and never preferred Black-male names over white-male names.",children:d.jsx(Ar,{data:{labels:wV,datasets:[{data:[85.1,11.1,0],backgroundColor:[Ie.navy,Ie.muted,Ie.danger],borderRadius:4,barThickness:30}]},options:{indexAxis:"y",responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{callbacks:{label:e=>`Preferred in ${e.raw}% of comparisons`}}},scales:{x:{min:0,max:100,grid:{color:Ie.grid},ticks:{stepSize:25,callback:e=>`${e}%`,color:Ie.tick,font:ln}},y:{grid:{display:!1},ticks:{color:Ie.tick,font:ln}}}}})})}ai.register(Xi,Zi,ki,Es);function j4(){return d.jsx("div",{className:"h-[200px] w-full",role:"img","aria-label":"Bar chart showing that with a neutral AI people selected candidate groups roughly equally, but with a biased AI they selected the favored group up to 90 percent of the time.",children:d.jsx(Ar,{data:{labels:["With a neutral AI","With a biased AI"],datasets:[{data:[50,90],backgroundColor:[Ie.muted,Ie.danger],borderRadius:4,barThickness:46}]},options:{indexAxis:"y",responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{callbacks:{label:e=>`Favored group selected up to ${e.raw}% of the time`}}},scales:{x:{min:0,max:100,grid:{color:Ie.grid},ticks:{stepSize:25,callback:e=>`${e}%`,color:Ie.tick,font:ln}},y:{grid:{display:!1},ticks:{color:Ie.tick,font:ln}}}}})})}function Pr({children:e}){return d.jsx("p",{className:"border-l-[3px] border-accent py-6 pl-6 text-[clamp(1.125rem,2.2vw,1.4375rem)] font-medium leading-snug text-text-primary",children:e})}function Q({children:e,className:t}){return d.jsx("p",{className:Re("text-[18px] leading-[1.65] text-text-secondary md:text-[20px]",t),children:e})}const _V={no:"bg-[#FCEBEB] text-[#A32D2D]",maybe:"bg-accent-subtle text-[#8B5320]",yes:"bg-[#E1F5EE] text-[#0F6E56]"};function De({children:e,verdict:t,verdictLabel:n}){return d.jsxs("h2",{className:"mt-14 text-[clamp(1.625rem,3vw,2rem)] font-bold leading-[1.15] tracking-[-0.015em] text-brand-purple first:mt-0",children:[e,t&&n?d.jsx("span",{className:Re("ml-3 inline-block align-middle rounded-md px-2.5 py-1 text-[11px] font-semibold uppercase tracking-[0.04em]",_V[t]),children:n}):null]})}function ji({title:e,subtitle:t,caption:n,children:i}){return d.jsxs("figure",{className:"my-11 rounded-2xl border border-border-subtle bg-surface p-6 md:p-8",children:[d.jsx("div",{className:"text-[17px] font-semibold leading-snug text-brand-purple",children:e}),d.jsx("div",{className:"mt-1 text-[14px] leading-snug text-text-secondary",children:t}),d.jsx("div",{className:"mt-5",children:i}),d.jsx("figcaption",{className:"mt-4 text-[12.5px] leading-snug text-text-muted",children:n})]})}function PS({source:e}){return d.jsxs(d.Fragment,{children:[d.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[d.jsx("span",{className:"inline-block w-[18px] border-t-[1.5px] border-dashed border-text-primary","aria-hidden":!0}),"The dashed line is the unstructured interview baseline (1×)."]})," ",e]})}function q0({stats:e}){return d.jsx("div",{className:"my-8 grid grid-cols-1 gap-3.5 sm:grid-cols-2",children:e.map(t=>d.jsxs("div",{className:"rounded-xl bg-surface-muted p-5",children:[d.jsx("div",{className:"text-[13px] text-text-secondary",children:t.label}),d.jsx("div",{className:"mt-2 text-[clamp(1.75rem,4vw,2.125rem)] font-bold leading-none text-brand-purple",children:t.value}),d.jsx("div",{className:"mt-2 text-[13px] text-text-secondary",children:t.source})]},t.label))})}function IS({items:e}){return d.jsx("ul",{className:"my-7 list-none",children:e.map(t=>d.jsxs("li",{className:"relative border-t border-border-subtle py-4 pl-5 last:border-b",children:[d.jsx("span",{className:"absolute left-0 top-6 h-1.5 w-1.5 rounded-full bg-accent","aria-hidden":!0}),d.jsx("strong",{className:"block text-[17px] font-semibold text-brand-purple",children:t.title}),d.jsx("span",{className:"mt-1 block text-[18px] leading-relaxed text-text-secondary",children:t.body})]},t.title))})}function Ts({title:e,body:t}){return d.jsxs("div",{className:"mb-4 rounded-xl bg-primary-subtle px-6 py-5",children:[d.jsx("strong",{className:"block text-[17px] font-semibold text-brand-purple",children:e}),d.jsx("span",{className:"mt-1.5 block text-[18px] leading-relaxed text-text-secondary",children:t})]})}function Ir({items:e}){return d.jsx("div",{className:"mt-4 divide-y divide-border-subtle border-t border-border-subtle",children:e.map((t,n)=>d.jsxs("details",{className:"group",open:n===0,children:[d.jsxs("summary",{className:"cursor-pointer list-none py-4 pr-8 text-[17px] font-semibold text-brand-purple [&::-webkit-details-marker]:hidden",children:[t.question,d.jsx("span",{className:"float-right text-2xl font-normal text-accent group-open:hidden",children:"+"}),d.jsx("span",{className:"float-right hidden text-2xl font-normal text-accent group-open:inline",children:"–"})]}),d.jsx("p",{className:"pb-5 text-[18px] leading-relaxed text-text-secondary",children:t.answer})]},t.question))})}function Rr({items:e}){return d.jsxs("div",{className:"mt-12 border-t border-border pt-10",children:[d.jsx("h2",{className:"mb-5 text-2xl font-bold text-brand-purple",children:"References"}),d.jsx("ol",{className:"list-decimal space-y-3.5 pl-5 text-[14px] leading-relaxed text-text-secondary",children:e.map(t=>d.jsx("li",{children:t.content},t.id))})]})}
222function Mr({eyebrow:e="Built for this",children:t="Confeti turns interviews into evidence-backed scorecards and decision packets, so hiring teams decide from evidence instead of vibes.",buttonLabel:n="See how it works"}){return d.jsxs("div",{className:"my-16 rounded-2xl bg-brand-purple px-8 py-10 text-center text-white md:px-10",children:[d.jsx("div",{className:"text-[13px] font-semibold uppercase tracking-[0.1em] text-accent",children:e}),d.jsx("p",{className:"mx-auto mt-3 max-w-lg text-[clamp(1.25rem,2.5vw,1.5625rem)] leading-snug",children:t}),d.jsx("a",{href:"/contact",className:"mt-7 inline-block rounded-[10px] bg-accent px-8 py-3.5 text-[16px] font-semibold text-white transition-colors hover:bg-[#b56c30]",children:n})]})}const C4=[{question:"Does AI eliminate bias in hiring?",answer:"No. A 2024 University of Washington audit found production models preferred White-associated names in 85.1% of comparisons, female-associated names in 11.1%, and never preferred Black-male names over white-male ones."},{question:"Does anonymizing resumes fix AI bias?",answer:"No. A 2025 study found models still infer race, gender, and class from sociocultural markers, languages, activities, volunteering, that survive removing names and identifiers."},{question:"Does a human reviewer fix biased AI screening?",answer:"Only if they push back. In one study about 60% of reviewers failed to notice deliberately biased recommendations; in another, people followed a biased AI up to 90% of the time. A rubber-stamp is not oversight."},{question:"Is biased AI screening a legal risk?",answer:"Yes. The EEOC reached its first AI-hiring settlement ($365,000, iTutorGroup), Mobley v. Workday is proceeding against the vendor, NYC Local Law 144 mandates bias audits, and the EU AI Act classifies hiring AI as high-risk."},{question:"Should I stop using AI screening?",answer:"Not necessarily. Use it for transparent triage with a human accountable for decisions, audit it for adverse impact under the four-fifths rule, and keep a person who can explain and overturn any call."}];function kV(){return d.jsxs("div",{className:"labs-article-body mx-auto max-w-[720px]",children:[d.jsx(Pr,{children:"The pitch is that AI screening is objective where humans are biased. The evidence says an unguardrailed screen does not remove bias, it industrializes it, applying the same flawed judgment to every resume at once."}),d.jsxs("div",{className:"mt-8 space-y-5",children:[d.jsx(Q,{children:"Candidates now apply en masse with AI. The flood forced companies to stop reading resumes by hand, and AI screening rushed in. Used well, a reasonable trade. Used badly, a liability you cannot see."}),d.jsx(Q,{children:"A biased human recruiter biases one pile of resumes. A biased model biases every pile, identically, at scale, with the false authority of a machine."})]}),d.jsx(De,{verdict:"no",verdictLabel:"Measured bias",children:"Where the data gets loud"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"This is not hypothetical. In 2024, University of Washington researchers ran the largest audit of its kind, feeding three production language models more than 500 real resumes across nine occupations, then changing only the name. Over three million comparisons."}),d.jsx(Q,{children:"The models preferred White-associated names in 85.1% of cases and female-associated names in just 11.1%. Names associated with Black men were never preferred over white-male names. Same resume, same qualifications, different name, different outcome (Wilson & 
222Caliskan, 2024)."})]}),d.jsx(ji,{title:"Which resumes the AI preferred",subtitle:"Three production LLMs ranking 550+ real resumes across 3M+ comparisons (Wilson & Caliskan, 2024)",caption:"Identical resumes, only the name changed. The red bar is zero: across the study, names linked to Black men were never preferred over white-male names.",children:d.jsx(S4,{})}),d.jsx(Q,{children:"And you cannot anonymize your way out. A 2025 study found that even after stripping names and obvious identifiers, models still inferred race, gender, and class from subtle sociocultural markers, the languages listed, the activities, the volunteering, that survive redaction. The bias just goes underground."}),d.jsx(De,{children:"“Human in the loop” is not the safeguard you think"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"The instinct is to add a human reviewer on top. The research says that only works if the human actually pushes back, and most do not."}),d.jsx(Q,{children:"The largest human-subjects experiment on this to date put 528 people through 1,526 resume-screening scenarios. Given a neutral AI, people selected candidate groups roughly equally. Given a biased one, they followed it, selecting the AI-favored group up to 90% of the time. The bias propagated straight from the model into the human's decision (No Thoughts Just AI, 2025)."})]}),d.jsx(ji,{title:"The bias doesn't stop at the model",subtitle:"528 people, 1,526 screening scenarios: how often reviewers picked the AI-favored candidate (No Thoughts Just AI, 2025)",caption:"Given a neutral AI, people chose across groups roughly evenly. Given a biased one, they followed it, selecting the favored group up to 90% of the time.",children:d.jsx(j4,{})}),d.jsx(Q,{children:"A separate experiment found the bias is nearly invisible to the people meant to catch it: when reviewers were handed deliberately biased recommendations, around 60% did not notice even when asked directly (Kaibel et al.). And a 2,784-person study found the pattern that should worry you most, that reviewers favorable toward automation overrelied on the AI and adopted its errors, while only the skeptics caught them. A reviewer who rubber-stamps the score is not oversight. They are a second signature on the same biased decision."}),d.jsx(De,{children:"The legal exposure most teams miss"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"This is not only an ethics problem. It is a Title VII problem, and it has already cost money."}),d.jsx(Q,{children:"The EEOC assesses AI selection tools for adverse impact under the four-fifths rule, an impact ratio below 0.80 against any protected group signals trouble. It has already reached its first AI-discrimination settlement, $365,000, in EEOC v. iTutorGroup, over software that auto-rejected older applicants. In Mobley v. Workday, a federal court let claims proceed treating the vendor as an “agent” of employers, and in 2025 conditionally certified a nationwide age-discrimination collective potentially covering millions. New York City's Local Law 144 now requires annual independent bias audits with published impact ratios, a model Illinois, Colorado, and New Jersey are building on, and the EU AI Act classifies hiring AI as high-risk."})]}),d.jsx(q0,{stats:[{label:"of comparisons where AI preferred White-associated names",value:"85%",source:"Wilson & Caliskan, UW 2024"},{label:"of reviewers failed to notice deliberate algorithmic bias",value:"~60%",source:"Kaibel et al."},{label:"the EEOC's first AI-hiring discrimination settlement",value:"$365k",source:"EEOC v. iTutorGroup"}]}),d.jsx(Q,{children:"The “the software did it” defense is closing. If your screen produces adverse impact, that is your exposure, whether you built the model or bought it."}),d.jsx(De,{children:"What the best teams do differently"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"They use AI screening for what it is good at and guardrail it hard. The job is triage, not judgment: sort obvious-no from possible-yes so humans spend time where it counts. Transparent categories. No silent rejections dressed up as objectivity."}
222),d.jsx(Q,{children:"Then they put the real weight on a human-conducted evaluation, captured and turned into evidence, with a person accountable for the call, not just present for it, and rewarded for catching the model rather than deferring to it."})]}),d.jsx(Ts,{title:"The honest caveat.",body:"Transparency helps, but not infinitely, and a human reviewer is not a magic fix. The research is blunt: biased AI propagates into human choices, most reviewers miss it, and automation-trusting reviewers make it worse. The only defensible setup is a screen you can inspect, audited for adverse impact, with a human who can explain and overturn any single decision."}),d.jsx(De,{children:"So, does AI remove bias from hiring?"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"No. It can reduce some human inconsistency, and it can scale human bias to every candidate at once. Which one you get depends on how transparent and guardrailed the system is, and on whether the human reviewing it actually pushes back."}),d.jsx(Q,{children:"The fix is not a more objective-sounding screen. It is moving your decision onto evidence you can inspect."})]}),d.jsx(Mr,{eyebrow:"Evidence you can inspect",children:"Confeti binds every AI claim to a specific moment in the interview, with speaker, timestamp, and quote, human-editable and traceable. AI organizes the evidence. Humans decide."}),d.jsx(De,{children:"Common questions"}),d.jsx(Ir,{items:[...C4]}),d.jsx(Rr,{items:[{id:1,content:d.jsxs(d.Fragment,{children:["Wilson, K., & Caliskan, A. (2024). Gender, Race, and Intersectional Bias in Resume Screening via Language Model Retrieval."," ",d.jsx("em",{children:"Proceedings of the AAAI/ACM Conference on AI, Ethics, and Society"}),", 7(1), 1578–1590."," ",d.jsx("a",{href:"https://ojs.aaai.org/index.php/AIES/article/view/31748",className:"text-link underline decoration-link/30 underline-offset-2 hover:
222decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})},{id:2,content:d.jsxs(d.Fragment,{children:["No Thoughts Just AI: Biased LLM Recommendations Limit Human Agency in Resume Screening (2025). 528 participants, 1,526 scenarios. ",d.jsx("em",{children:"arXiv"}),"."," ",d.jsx("a",{href:"https://arxiv.org/abs/2509.04404",className:"text-link underline decoration-link/30 underline-offset-2 hover:decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})},{id:3,content:d.jsxs(d.Fragment,{children:["Kaibel et al., Michael is better than Mehmet: selective adherence to biased algorithmic advice in hiring (n=260). ",d.jsx("em",{children:"NCBI/PMC"}),"."," ",d.jsx("a",{href:"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC11420529/",className:"text-link underline decoration-link/30 underline-offset-2 hover:decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})},{id:4,content:d.jsxs(d.Fragment,{children:["Bias in the Loop: How Humans Evaluate AI-Generated Suggestions (2025), n=2,784."," ",d.jsx("em",{children:"arXiv"}),"."," ",d.jsx("a",{href:"https://arxiv.org/abs/2509.08514",className:"text-link underline decoration-link/30 underline-offset-2 hover:
222decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})},{id:5,content:d.jsxs(d.Fragment,{children:["Small Changes, Big Impact: Demographic Bias in LLM-Based Hiring Through Subtle Sociocultural Markers in Anonymised Resumes (2025). ",d.jsx("em",{children:"arXiv"}),"."," ",d.jsx("a",{href:"https://arxiv.org/abs/2603.05189",className:"text-link underline decoration-link/30 underline-offset-2 hover:decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})},{id:6,content:d.jsxs(d.Fragment,{children:["U.S. EEOC, technical guidance on AI under Title VII; EEOC v. iTutorGroup; Mobley v. Workday; NYC Local Law 144; EU AI Act."," ",d.jsx("a",{href:"https://www.eeoc.gov/",className:"text-link underline decoration-link/30 underline-offset-2 hover:decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})}]})]})}ai.register(Xi,Zi,ki,Es);function SV(){return d.jsx("div",{className:"h-[200px] w-full",role:"img","aria-label":"Bar chart showing a structured interview run sloppily falls slightly below the unstructured baseline at about 0.9x, while run well it reaches about 3.5x the baseline.",children:d.jsx(Ar,{data:{labels:["Run sloppily","Run well & captured"],datasets:[{data:[.9,3.5],backgroundColor:[Ie.muted,Ie.accent],borderRadius:4,barThickness:42}]},options:{indexAxis:"y",responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{callbacks:{label:e=>`${e.raw}x the gut-feel baseline`}}},scales:{x:{min:0,max:4,grid:{color:Ie.grid},ticks:{stepSize:1,callback:e=>`${e}x`,color:Ie.tick,font:ln}},y:{grid:{display:!1},ticks:{color:Ie.tick,font:ln}}}},plugins:[k4]})})}ai.register(Xi,Zi,ki,Es);const jV=["Structured interview","Job-knowledge test","Cognitive ability test","Years of experience","Resume screen"];function CV(){return d.jsx("div",{className:"h-[300px] w-full",role:"img","aria-label":"Bar chart of hiring methods as a multiple of the unstructured interview baseline. Structured interview about 2.2x, job-knowledge test about 2.1x, cognitive ability test about 1.6x, years of experience about 0.6x, resume screen about 0.4x.",children:d.jsx(Ar,{data:{labels:jV,datasets:[{data:[2.2,2.1,1.6,.6,.4],backgroundColor:[Ie.accent,Ie.navy,Ie.navy,Ie.muted,Ie.muted],borderRadius:4,barThickness:26}]},options:{indexAxis:"y",responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{callbacks:{label:e=>`${e.raw}x the gut-feel baseline`}}},scales:{x:{min:0,max:2.5,grid:{color:Ie.grid},ticks:{stepSize:.5,callback:e=>`${e}x`,color:Ie.tick,font:ln}},y:{grid:{display:!1},ticks:{color:Ie.tick,font:ln}}}},plugins:[k4]})})}const N4=[{question:"Can AI find better job candidates than a recruiter?",answer:"Not at the sourcing stage, where AI mostly surfaces the same profiles everyone else sees. Its real advantage is in evaluation, capturing and structuring interview evidence recruiters would otherwise lose to memory."},{question:"Is AI good at screening resumes?",answer:"It can be, if it reasons over signal you trust rather than pattern-matching a stale resume corpus. Treat it as a filter you audit, not a final verdict, because bad screening rejects strong candidates quietly."},{question:"Does AI make hiring biased?",answer:"It can go either way. The safeguard is keeping humans in the loop and requiring every AI claim to trace back to specific evidence, so decisions stay reviewable instead of a black box."},{question:"What's the most predictive part of the hiring process?",answer:"Structured interviews. Pooling decades of data, researchers found them the single strongest predictor of job performance, beating IQ tests and résumé screens, and roughly twice as predictive as an unstructured chat."},{question:"Should AI score candidates automatically?",answer:"No. AI should organize evidence and surface what's missing, then let a human decide. Automated scoring without a visible evidence trail creates trust, fairness, and liability problems."}];function NV(){return d.jsxs("div",{className:"labs-article-body mx-auto max-w-[720px]",children:[d.jsx(Pr,{children:"Short answer: not by searching harder. AI's real leverage in hiring isn't finding more candidates. It's helping you decide better about the ones already in front of you."}),d.jsxs("div",{className:"mt-8 space-y-6",children:[d.jsx(Q,{children:"Most teams point AI at the top of the funnel: sourcing, screening, more profiles, faster. That's the most commoditized, lowest-leverage part of hiring. The decision itself, the part that determines who you actually hire, still runs on scattered notes and memory."}),d.jsx(Q,{children:"Here's where AI helps and where it doesn't, stage by stage."})]}),d.jsx(De,{verdict:"no",verdictLabel:"mostly no",children:"AI sourcing"}),d.jsxs("div",{className:"mt-5 space-y-6",children:[d.jsx(Q,{children:"Most AI sourcing tools are a search engine wearing a trench coat: a third-party database, a semantic search box, and a setting to tell the model what you liked last time."}),d.jsx(Q,{children:"If everyone queries the same database the same way, you all get the same shortlist. AI doesn't find you a better candidate here. It finds you the consensus candidate faster, the one your competitor is already calling."})]}),d.jsx(De,{verdict:"maybe",verdictLabel:"sometimes",children:"AI screening"}),d.jsx(Q,{className:"mt-5",children:"Good screening finds the needle in the haystack, the strong candidate who doesn't match the obvious keyword profile. Bad screening rejects people quietly and calls it efficiency. The difference is whether it reasons over signal you trust or pattern-matches a stale resume corpus. Most do the second thing. Treat it as a filter you audit, not a verdict you accept."}),d.jsx(De,{verdict:"yes",verdictLabel:"yes",children:"AI interview evaluation"}),d.jsxs("div",{className:"mt-5 space-y-6",children:[d.jsx(Q,{children:"This is where AI earns its place."}),d.jsx(Q,{children:"When researchers pooled decades of hiring data to see what actually predicts who succeeds on the job, structured interviews came out on top, beating IQ tests, years of experience, and résumé screens. A structured interview predicts performance about twice as well as the loose, gut-feel chat most teams run. The how-you-interview gap is bigger than the who-you-interview gap."})]}
222),d.jsx(ji,{title:"How much better than a gut-feel chat?",subtitle:`Each method shown as its lift over the unstructured "let's just chat" interview most teams run (the 1× baseline, dashed line).`,caption:d.jsx(PS,{source:"Methods below it predict job success worse than a basic conversation. Source: Sackett et al., 2022."}),children:d.jsx(CV,{})}),d.jsxs("div",{className:"space-y-6",children:[d.jsx(Q,{children:"The catch: a structured interview only counts if the questions, competencies, and scoring are consistent and captured. Most teams capture none of it. Your team sits through hours of interviews per candidate, the richest role-specific data your company will ever generate, then deletes it the moment the call ends. All that survives is a one-line rating typed from memory."}),d.jsx(Q,{children:"That's the real miss. And it's expensive."})]}),d.jsx(q0,{stats:[{label:"A single bad hire costs",value:"~30%",source:d.jsxs(d.Fragment,{children:["of first-year salary ",d.jsx("span",{className:"text-text-muted",children:"(US Dept. of Labor)"})]})},{label:"Full replacement runs",value:"50–200%",source:d.jsxs(d.Fragment,{children:["of salary ",d.jsx("span",{className:"text-text-muted",children:"(SHRM)"})]})}]}),d.jsx(Q,{className:"mt-8",children:"Which is why hiring speed is a trap. AI that only makes you hire faster makes you hire wrong faster."}),d.jsx(De,{children:"What the best hiring teams do differently"}),d.jsxs("div",{className:"mt-5 space-y-6",children:[d.jsx(Q,{children:"At its core, one shift: they treat the interview as data, not a conversation that disappears. They record it, transcribe it, and pull out the competencies the candidate actually demonstrated, each tied to the moment they said it."}),d.jsx(Q,{children:"That single move, from impression to evidence, fixes three things at once:"})]}),d.jsx(IS,{items:[{title:"No more redundant rounds.",body:"Today four interviewers probe the same two strengths while a deal-breaker goes untouched, and you find out after the offer. When the loop knows what's covered, every round adds new signal instead of re-confirming the obvious."},{title:"The debrief stops being a popularity contest.",body:"Right now the loudest voice and the most recent interview win. When everyone reads what the candidate actually said, the decision tracks the evidence, not the room."},{title:"Split decisions stop stalling.",body:"A two-week deadlock is usually two people arguing from two different memories of the same interview. Put the real exchange in front of them and it resolves in minutes, or surfaces a specific risk worth chasing."}]}),d.jsx(Q,{children:"A quick example. Two finalists for a senior role. On gut, the team leaned toward the confident one. Pull the transcripts apart and that candidate had been asked about systems thinking under ambiguity exactly zero times across four rounds. Everyone assumed someone else had covered it. One targeted conversation later, the call flipped. The better candidate wasn't found by sourcing. They were already in the room, nearly lost to a memory gap."}),d.jsx(De,{children:"And then it compounds"}),d.jsxs("div",{className:"mt-5 space-y-6",children:[d.jsx(Q,{children:"This is the part most people miss. Capturing one interview helps that one decision. Capturing every interview turns your hiring into a system that gets smarter with each one."}),d.jsx(Q,{children:"Take the same structured interview and look at how its predictive power swings, depending entirely on how consistently it's run and captured:"})]}),d.jsx(ji,{title:"The lift is all in the execution",subtitle:"The same structured interview swings from below the baseline to well above it, depending on how it's run.",caption:d.jsx(PS,{source:"Run sloppily, a structured interview is no better than a casual chat. Source: Sackett et al., 2023."}),children:d.jsx(SV,{})}),d.jsx(Q,{className:"mt-6",children:"Once the evidence is structured, three things compound:"}),d.jsx(IS,{items:[{title:"Your process calibrates itself.",body:"You stop guessing whether interviewers are too soft, too harsh, or asking questions that reveal nothing, because now you can see it."},{title:"You extract richer signal over time.",body:"The questions and competencies that actually separate strong candidates rise to the top, and the filler falls away."},{title:"You learn which signals predict outcomes.",body:'Tie evidence to who got hired, who got rejected, and who worked out, and patterns emerge: which early signals correlate with great hires, and which "red flags" never mattered.'}]}),d.jsx(Q,{children:"Sourcing can't compound like this. The same research that crowns structured interviews as the best predictor also found they're the most inconsistent one, and the gap comes down almost entirely to execution, not the method. Capturing and structuring the interview is how you land on the winning side of that gap, and stay there."}),d.jsx(De,{children:"Two rules that keep AI hiring honest"}),d.jsxs("div",{className:"mt-5",children:[d.jsx(Ts,{title:"The AI doesn't decide. It organizes evidence so a human can.",body:`Every claim should trace to a transcript moment with a speaker attached. If the signal isn't there, the answer is "insufficient evidence," not an invented score. One confident hallucination in front of a hiring manager kills trust in the whole system.`}),d.jsx(Ts,{title:"Gut feeling isn't the enemy. Unaccountable gut feeling is.",body:'The goal was never to remove human judgment, but to make it traceable, so a "no" you can defend and a "yes" you can stand behind.'})]}),d.jsx(De,{children:"So, can AI help you find better candidates?"}),d.jsx(Q,{className:"mt-5",children:"Not by searching harder. By making sure you stop losing the good ones you already met, and that the people deciding can show their work. The leverage was never in finding more people. It was in deciding better about the ones in the room."}),d.jsx(Mr,{}),d.jsx(De,{children:"Frequently asked questions"}),d.jsx(Ir,{items:[...N4]}),d.jsx(Rr,{items:[{id:1,content:d.jsxs(d.Fragment,{children:["Sackett, P. R., Zhang, C., Berry, C. M., & Lievens, F. (2022)."," ",d.jsx("em",{children:"Revisiting Meta-Analytic Estimates of Validity in Personnel Selection."})," ","Journal of Applied Psychology. Found structured interviews to be the strongest predictor of job performance, roughly twice as predictive as unstructured interviews."," ",d.jsx("a",{href:"https://www.siop.org/tip-article/is-cognitive-ability-the-best-predictor-of-job-performance-new-research-says-its-time-to-think-again/",className:"text-link underline decoration-link/30 underline-offset-2 hover:
222decoration-link",target:"_blank",rel:"noopener noreferrer",children:"siop.org"})]})},{id:2,content:d.jsxs(d.Fragment,{children:["Sackett, P. R., et al. (2023)."," ",d.jsx("em",{children:"Structured interviews: moving beyond mean validity."})," Industrial and Organizational Psychology. On why structured interviews are also the most inconsistent predictor, driven largely by execution."," ",d.jsx("a",{href:"https://www.cambridge.org/core/journals/industrial-and-organizational-psychology/article/structured-interviews-moving-beyond-mean-validity/7CB1F7C86CB0D15328B3F07AD5F964E2",className:"text-link underline decoration-link/30 underline-offset-2 hover:decoration-link",target:"_blank",rel:"noopener noreferrer",children:"cambridge.org"})]})},{id:3,content:d.jsxs(d.Fragment,{children:["Schmidt, F. L., & Hunter, J. E. (1998)."," ",d.jsx("em",{children:"The Validity and Utility of Selection Methods in Personnel Psychology."})," ","Foundational meta-analysis (structured .51 vs unstructured .38)."]})},{id:4,content:d.jsxs(d.Fragment,{children:["Apollo Technical (2025). ",d.jsx("em",{children:"The Cost Of A Bad Hire And Red Flags to Avoid."})," U.S. Department of Labor 30%-of-salary figure; SHRM benchmarks."," ",d.jsx("a",{href:"https://www.apollotechnical.com/cost-of-a-bad-hire/",className:"text-link underline decoration-link/30 underline-offset-2 hover:
222decoration-link",target:"_blank",rel:"noopener noreferrer",children:"apollotechnical.com"})]})},{id:5,content:d.jsxs(d.Fragment,{children:["INOP (2026). ",d.jsx("em",{children:"The True Cost of a Bad Hire in 2026."})," SHRM 50%-200% replacement cost estimate."," ",d.jsx("a",{href:"https://inop.ai/the-true-cost-of-a-bad-hire-in-2026/",className:"text-link underline decoration-link/30 underline-offset-2 hover:decoration-link",target:"_blank",rel:"noopener noreferrer",children:"inop.ai"})]})}]})]})}ai.register(Xi,Zi,ki,Es);const TV=["Declined an offer after a negative interview interaction","Rejected an offer over poor communication / unclear expectations"];function EV(){return d.jsx("div",{className:"h-[200px] w-full",role:"img","aria-label":"Bar chart showing 36 percent of candidates declined an offer after a negative interview interaction and 26 percent rejected an offer over poor communication or unclear expectations.",children:d.jsx(Ar,{data:{labels:TV,datasets:[{data:[36,26],backgroundColor:[Ie.danger,Ie.accent],borderRadius:4,barThickness:34}]},options:{indexAxis:"y",responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{callbacks:{label:e=>`${e.raw}% of candidates`}}},scales:{x:{min:0,max:50,grid:{color:Ie.grid},ticks:{stepSize:10,callback:e=>`${e}%`,color:Ie.tick,font:ln}},y:{grid:{display:!1},ticks:{color:Ie.tick,font:ln}}}}})})}const T4=[{question:"Does AI actually make hiring faster?",answer:"Yes, mostly in scheduling, screening, note-taking, and communication. It removes coordination delay. It does not by itself make the hiring decision better."},{question:"Is faster hiring always better?",answer:"No. Faster candidate communication is almost always better. Faster decisions are only better if decision quality holds. Speed that comes from skipping human judgment costs you later."},{question:"Can a slow or cold process really cost offers?",answer:"Yes. In CareerPlug's 2024 report, 26% of candidates rejected offers over poor communication and 36% declined after a negative interview interaction, people who already wanted the job."},{question:"Are one-way video interviews a good idea?",answer:"Research (Falls et al., 2025) shows candidates rate asynchronous video interviews as less fair than live ones, and an automated score lowers perceived fairness further. AI-only formats even reduce intention to apply."},{question:"Should AI make the hiring decision?",answer:"No. Candidates consistently perceive human-in-the-loop decisions as fairer than AI-only ones. Automate the waiting; keep the human on the judgment."}];function AV(){return d.jsxs("div",{className:"labs-article-body mx-auto max-w-[720px]",children:[d.jsx(Pr,{children:"AI will speed up your hiring. Whether that helps depends entirely on which part you speed up. Accelerate the wrong stage and you damage your brand and your decisions at the same time."}),d.jsxs("div",{className:"mt-8 space-y-5",children:[d.jsx(Q,{children:"The pitch is everywhere: AI shrinks your timeline. True. It is also the least interesting thing AI does, because speed is neutral. It makes a good process faster and a bad process faster."}),d.jsx(Q,{children:"The industry sells velocity as the win. It is not. The win is being right more often, faster. Different goals."}),d.jsx(Q,{children:"So the real question is not “will it be faster.” It is “faster at what.”"})]}),d.jsx(De,{verdict:"yes",verdictLabel:"Do this",children:"Speed in the right place"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"One thing is almost always worth accelerating: how quickly you respond to the human waiting on you. And it is not a soft metric. It moves offers."}),d.jsx(Q,{children:"In CareerPlug's 2024 Candidate Experience Report, 26% of job seekers said they rejected an offer because of poor communication or unclear expectations during a drawn-out process. Another 36% declined an offer after a negative interaction during the interview itself. These are not marginal applicants. They are people who already wanted the job and walked because of how the process felt."})]}),d.jsx(ji,{title:"The candidates a cold process loses you",subtitle:"Share of candidates who walk, by cause (CareerPlug 2024 Candidate Experience Report)",caption:"These are people who already wanted the job. Process, not pay, is what pushed them out.",children:d.jsx(EV,{})}),d.jsx(Q,{children:"Treat every candidate as if you wanted to expedite them. Quick replies, tight scheduling, no dead air. That is speed worth every dollar of automation, because the alternative is losing the people you already convinced."}),d.jsx(De,{verdict:"no",verdictLabel:"Avoid this",children:"Speed in the wrong place"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"Now the inverse. The most common speed mistake is the async one-way video interview, where candidates record answers to a 
222screen and a human reviews them later, if at all."}),d.jsx(Q,{children:"It feels efficient. The research on how candidates react is consistent and unkind. Applicants rate asynchronous video interviews as less fair than live ones, and bolting an automated score on top lowers their sense of procedural justice and fair treatment further, which in turn erodes how attractive they find the company and whether they would recommend it (Falls et al., 2025)."}),d.jsx(Q,{children:"It gets worse when the machine decides. A 2025 study in the Nature-portfolio journal Humanities and Social Sciences Communications found that an AI-enabled interview format reduces candidates' intention to apply at all, precisely because it lowers perceived procedural justice and organizational attractiveness. And work on emotion-AI interview tools, presented at the 2025 ACM FAccT conference, found job seekers experience them as inaccurate, identity-biased, and opaque, a trifecta of perceived injustice."}),d.jsx(Q,{children:"So the efficient-looking shortcut taxes your brand at the candidate's very first touch. The people with options feel it and walk. You did not save time. You filtered out your best candidates and kept the ones with nowhere better to go."})]}),d.jsx(De,{children:"Keep a human on the decision"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"There is a consistent thread across this research: people judge a process as fairer when a human stays in the loop than when an AI decides alone. A two-study experiment on AI interviews found human-in-the-loop decisions were perceived as fairer than AI-only ones, and, tellingly, that piling on AI interactivity or over-explaining the algorithm can actually backfire and lower perceived fairness (Shaping the fairness journey, 2025)."}),d.jsx(Q,{children:"The lesson is not “more automation, more transparency, more speed.” It is: automate the waiting, keep the human on the judgment."})]}),d.jsx(Ts,{title:"The honest caveat.",body:"Faster decisions are good only when decision quality holds. The failure mode is using speed to skip the human judgment and the structure, then calling the saved time a win. You did not save time. You moved the cost downstream, to the bad hire, the damaged brand, and the candidates who told their friends."}),d.jsx(De,{children:"So, does AI speed up hiring?"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"Yes. Point it at the candidate experience and it makes you faster and more human. Point it at the decision and it should support a human, not replace one."}),d.jsx(Q,{children:"The teams that win do not ask AI to hire faster. They ask it to respond faster and decide better."})]}),d.jsx(Mr,{eyebrow:"Fast where it counts, right where it matters",children:"Run the candidate clock fast and the decision clock right. Confeti captures every interview, turns it into structured evidence, and gives the team a decision packet a human can act on."}),d.jsx(De,{children:"Common questions"}),d.jsx(Ir,{items:[...T4]}),d.jsx(Rr,{items:[{id:1,content:d.jsxs(d.Fragment,{children:["CareerPlug, 2024 Candidate Experience Report."," ",d.jsx("a",{href:"https://www.careerplug.com/",className:"text-link underline decoration-link/30 underline-offset-2 hover:
222decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})},{id:2,content:d.jsxs(d.Fragment,{children:["Falls et al. (2025). The Impact of Explanations on Applicant Reactions to Automated Asynchronous Video Interviews."," ",d.jsx("em",{children:"International Journal of Selection and Assessment"}),"."," ",d.jsx("a",{href:"https://onlinelibrary.wiley.com/doi/10.1111/ijsa.70009",className:"text-link underline decoration-link/30 underline-offset-2 hover:decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})},{id:3,content:d.jsxs(d.Fragment,{children:["Why might AI-enabled interviews reduce candidates' job application intention? (2025). ",d.jsx("em",{children:"Humanities and Social Sciences Communications"})," (Nature portfolio)."," ",d.jsx("a",{href:"https://www.nature.com/articles/s41599-025-05607-z",className:"text-link underline decoration-link/30 underline-offset-2 hover:decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})},{id:4,content:d.jsxs(d.Fragment,{children:["Shaping the fairness journey: AI literacy, explanation, and interpersonal interaction in AI interviews (2025). ",d.jsx("em",{children:"ScienceDirect"}),"."," ",d.jsx("a",{href:"https://www.sciencedirect.com/science/article/abs/pii/S1071581925001867",className:"text-link underline decoration-link/30 underline-offset-2 hover:
222decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})},{id:5,content:d.jsxs(d.Fragment,{children:["Emotion AI in Job Interviews: Injustice, Emotional Labor, Identity, and Privacy (2025). ",d.jsx("em",{children:"Proceedings of the ACM FAccT Conference"}),"."," ",d.jsx("a",{href:"https://dl.acm.org/doi/10.1145/3715275.3732002",className:"text-link underline decoration-link/30 underline-offset-2 hover:decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})}]})]})}ai.register(Xi,Zi,ki,Es);function PV(){return d.jsx("div",{className:"h-[200px] w-full",role:"img","aria-label":"Bar chart showing that moving from an unscored general preference to a structured criterion-based scoring procedure raises predictive validity by more than 50 percent.",children:d.jsx(Ar,{data:{labels:["Unscored general preference","Structured, criterion-based scoring"],datasets:[{data:[100,150],backgroundColor:[Ie.muted,Ie.accent],borderRadius:4,barThickness:46}]},options:{indexAxis:"y",responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{callbacks:{label:e=>`Relative predictive validity: ${e.raw}`}}},scales:{x:{min:0,max:170,grid:{color:Ie.grid},ticks:{stepSize:50,color:Ie.tick,font:ln}},y:{grid:{display:!1},ticks:{color:Ie.tick,font:ln}}}}})})}const E4=[{question:"Why is my hiring process so slow?",answer:"Often the visible delay is scheduling, but the real loss is upstream: an undefined role and misaligned interviewers running a loop with no shared plan, which produces rework and stalled decisions."},{question:"Do interviews even predict performance?",answer:"Only when designed well. In classic experiments, interviewers given random nonsense answers formed impressions as confidently as those given real ones, and unplanned interviews made predictions worse."},{question:"How much does scoring matter?",answer:"A lot. A meta-analysis found that moving from an unscored preference to a structured criterion-based rubric raises the predictive validity of evaluations by more than 50%."},{question:"What is a structured interview?",answer:"One where competencies are defined in advance, questions are designed to assess them, and scoring is consistent across candidates. It is the strongest known predictor of job performance."},{question:"Should AI conduct the interview?",answer:"No. The interview should stay a human, two-way conversation. AI is best used to capture it, structure the signal, and surface what is still missing for the human to decide."}];function IV(){return d.jsxs("div",{className:"labs-article-body mx-auto max-w-[720px]",children:[d.jsx(Pr,{children:"AI will speed up scheduling, screening, and notes. It will not fix your real bottleneck, because the days do not leak out of scheduling. They leak out of the work nobody did before anyone sat down to interview."}),d.jsxs("div",{className:"mt-8 space-y-5",children:[d.jsx(Q,{children:"Ask a team why hiring is slow and you will hear about calendars. Scheduling is genuinely painful. But it is the visible problem standing in front of the expensive one."}),d.jsx(Q,{children:"The expensive one is upstream. Nobody defined the role concretely. The recruiter and the hiring manager never agreed on which signals matter. So the loop runs without a shared map, and that is where the time, and the quality, actually disappears."})]}),d.jsx(De,{verdict:"no",verdictLabel:"No map",children:"The uncomfortable evidence about interviews"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsxs(Q,{children:["Start with how little an unplanned interview actually tells you. In a now-classic set of three experiments, researchers had people predict students' performance. Some interviewers got real answers. Others got answers generated ",d.jsx("em",{children:"at random"}),", the interviewee replying yes or no on a coin flip."]}),d.jsx(Q,{children:"The interviewers who heard nonsense formed impressions just as confidently as those who heard real answers. And the interviews actively made predictions worse, diluting the good data the predictors already had. In a final twist, people so trusted the ritual that they would rather have a random interview than no interview at all (Dana, Dawes & Peterson)."}
222),d.jsx(Q,{children:"That is what an interview without a defined target produces: a confident story built from unstructured signal."})]}),d.jsx(De,{verdict:"yes",verdictLabel:"Front-loaded",children:"Structure is the whole ballgame"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"The fix is not charisma or more interviews. It is design, decided before anyone sits down."}),d.jsx(Q,{children:"The first construct-specific meta-analysis of interview validity, drawing on 245 coefficients across 86,311 individuals, found that an interview predicts a given competency well only when it is deliberately built to assess that competency. And the single biggest lever is scoring: moving from an unscored “who did you like best” to a structured rubric with defined criteria raises the predictive validity of rater evaluations by more than 50% (Wingate et al., 2025, citing Kuncel et al.)."})]}),d.jsx(ji,{title:"What a scoring rubric is worth",subtitle:"Predictive validity, indexed to an unscored preference = 100 (Kuncel et al., via Wingate et al. 2025)",caption:'Moving from "who did you like best" to a defined scoring rubric lifts the predictive validity of rater evaluations by more than 50%. The work that earns that lift happens before the interview.',children:d.jsx(PV,{})}),d.jsx(Q,{children:"Question design matters too. In the same body of work, past-behavior questions, asking what a candidate actually did, outpredicted loosely-targeted situational questions for managerial roles. Same candidate, different question, completely different signal. None of that is improvised in the room. It is decided in advance."}),d.jsx(De,{children:"The work that actually matters"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"So the leverage sits before the first interview, in two hard tasks."}),d.jsx(Q,{children:"First, define the role concretely: not a job-description template, an actual picture of what this person must be able to do. Second, align the recruiter and the hiring manager on the competencies you will test, write the questions to hit them, fix the scoring, and split them across the loop so each interview has a distinct job."}),d.jsx(Q,{children:"Get that right and the interviews become productive. Each one extracts specific signal. None of them waste a candidate's time, or yours, re-covering ground."})]}),d.jsx(De,{children:"What the best teams do differently"}),d.jsx(Q,{className:"mt-5",children:"They treat the loop as one connected evaluation, not five separate conversations. Before each round, the next interviewer knows exactly what has been covered and what signal is still missing. “Behavioral has been tested three times. Nobody has any evidence on how this person handles ambiguity. Here are the questions that would close that gap.”"}),d.jsx(Q,{children:"That is the upstream work paying off in real time. No wasted rounds, no surprise gaps at the debrief, no decision built on whoever was loudest."}),d.jsx(Ts,{title:"The honest caveat.",body:"The interview itself stays human. AI should not conduct it, and it should not decide. An interview is a two-way conversation, not an interrogation, and the relationship is the point. What AI should do is capture it, structure it, and surface what is still missing, so the humans spend their judgment where it matters."}),d.jsx(De,{children:"So, will AI speed up your hiring?"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"It will speed up the visible parts: scheduling, screening, notes. If those were your real bottleneck, you will feel it."}),d.jsx(Q,{children:"But if your loop runs without alignment, faster tooling just gets you to a shaky decision faster. The leverage is upstream, in defining the role, the questions, and the scoring before anyone interviews. Fix that, and speed takes care of itself."})]}),d.jsx(Mr,{eyebrow:"Signal that compounds across the loop",children:"Confeti tracks, per candidate across the whole loop, which competencies are covered and which signal is still missing, then assembles the evidence into a decision packet. The upstream work stops living in someone's head and starts compounding with every interview."}),d.jsx(De,{children:"Common questions"}),d.jsx(Ir,{items:[...E4]}),d.jsx(Rr,{items:[{id:1,content:d.jsxs(d.Fragment,{children:["Dana, J., Dawes, R., & Peterson, N. (2013). Belief in the unstructured interview: The persistence of an illusion. ",d.jsx("em",{children:"Judgment and Decision Making"}),", 8(5), 512–520."," ",d.jsx("a",{href:"https://www.cambridge.org/core/journals/judgment-and-decision-making/article/belief-in-the-unstructured-interview-the-persistence-of-an-illusion/5BBA77932EF22EBEAA
2221E8020126A1925",className:"text-link underline decoration-link/30 underline-offset-2 hover:decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})},{id:2,content:d.jsxs(d.Fragment,{children:["Wingate, T. G., et al. (2025). Evaluating interview criterion-related validity for distinct constructs: A meta-analysis (245 coefficients, 86,311 individuals)."," ",d.jsx("em",{children:"International Journal of Selection and Assessment"}),"."," ",d.jsx("a",{href:"https://onlinelibrary.wiley.com/doi/10.1111/ijsa.12494",className:"text-link underline decoration-link/30 underline-offset-2 hover:decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})},{id:3,content:d.jsxs(d.Fragment,{children:["Insights From an Updated Personnel Selection Meta-Analytic Matrix (2024). American Psychological Association / University of Minnesota."," ",d.jsx("a",{href:"https://experts.umn.edu/en/publications/insights-from-an-updated-personnel-selection-meta-analytic-matrix/",className:"text-link underline decoration-link/30 underline-offset-2 hover:
222decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})}]})]})}ai.register(Xi,Zi,ki,Es);const RV=["EEOC AI guidance (four-fifths rule)","NYC Local Law 144 in effect","EEOC v. iTutorGroup settlement","Mobley v. Workday proceeds vs. vendor","ADEA collective certified","EU AI Act: hiring = high-risk","IL / CO / NJ laws building on LL144"];function MV(){return d.jsx("div",{className:"h-[300px] w-full",role:"img","aria-label":"Horizontal timeline of AI hiring regulation milestones from 2023 through 2026.",children:d.jsx(Ar,{data:{labels:RV,datasets:[{data:[2023,2023,2023,2024,2025,2024,2026],backgroundColor:[Ie.navy,Ie.navy,Ie.danger,Ie.danger,Ie.danger,Ie.navy,Ie.accent],borderRadius:4,barThickness:18}]},options:{indexAxis:"y",responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{callbacks:{label:e=>String(e.raw)}}},scales:{x:{min:2022,max:2027,grid:{color:Ie.grid},ticks:{stepSize:1,callback:e=>String(e),color:Ie.tick,font:ln}},y:{grid:{display:!1},ticks:{color:Ie.tick,font:{...ln,size:11}}}}}})})}const A4=[{question:"Who is liable when an AI hiring tool discriminates?",answer:"Increasingly the employer, and potentially the vendor too. In Mobley v. Workday a court treated the vendor as an 'agent' of employers, meaning the tool's output is treated as the employer's hiring decision."},{question:"Has anyone actually been penalized for biased AI hiring?",answer:"Yes. In EEOC v. iTutorGroup the EEOC reached its first AI-hiring discrimination settlement, $365,000, over software that automatically rejected older applicants."},{question:"What is the four-fifths rule?",answer:"An EEOC adverse-impact test: if a protected group's selection rate is below 80% of the highest group's rate, it flags potential discrimination. It can be calculated from your own hiring data."},{question:"What does NYC Local Law 144 require?",answer:"Annual independent bias audits of automated employment decision tools, with impact ratios published. Illinois, Colorado, and New Jersey are building on the model, and the EU AI Act classifies hiring AI as high-risk."},{question:"How do we reduce AI hiring legal exposure?",answer:"Be able to explain any individual decision: what evidence it rested on, that a human reviewed it, and what your adverse-impact ratios are. 'We trusted the vendor' is not a defense."}];function OV(){return d.jsxs("div",{className:"labs-article-body mx-auto max-w-[720px]",children:[d.jsx(Pr,{children:"The assumption that your screening vendor owns the legal risk is quietly collapsing. Recent case law and enforcement are moving the exposure onto employers, and “the software did it” is no longer a defense."}),d.jsxs("div",{className:"mt-8 space-y-5",children:[d.jsx(Q,{children:"Most Heads of Talent carry an assumption that has quietly stopped being true: if you bought your screening tool from a vendor, the vendor owns the legal risk. You licensed software. They built it. Their problem."}),d.jsx(Q,{children:"Three years of enforcement and case law have dismantled that. The exposure is landing on employers, and increasingly on the people who run hiring."})]}),d.jsx(De,{verdict:"no",verdictLabel:"Your risk now",children:"The vendor defense is collapsing"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"Start with the case everyone in talent should know by name. In Mobley v. Workday, a federal court allowed discrimination claims to proceed by treating the software vendor as an “agent” of the employers using it, not a neutral tool provider, but a party performing a hiring function. In 2025 the court conditionally certified a nationwide age-discrimination collective potentially covering millions of applicants."}),d.jsx(Q,{children:"The significance is not that a vendor got sued. It is the theory: the algorithm was performing the employer's hiring, so its output is the employer's decision. “The software did it” stops being a defense the moment the software is treated as you."})]}),d.jsx(De,{children:"Enforcement is no longer hypothetical"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"The EEOC has already put a number on it. In EEOC v. iTutorGroup, the agency reached its first AI-hiring discrimination settlement, $365,000, over softw
222are configured to automatically reject applicants above a certain age. No trial needed for the lesson to land: an automated rule that produces a discriminatory pattern is a Title VII problem with a price tag."}),d.jsx(Q,{children:"And the measurement is something a plaintiff can run on your own data. The EEOC assesses AI selection tools under the four-fifths rule: if any protected group's selection rate falls below 80% of the top group's, that is a flag for adverse impact. You do not get to argue intent. The ratio speaks."})]}),d.jsx(De,{children:"The map keeps adding jurisdictions"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"This is not one rule in one place. It is a widening patchwork."}),d.jsx(Q,{children:"New York City's Local Law 144 requires annual independent bias audits of automated employment decision tools, with the impact ratios published. Illinois, Colorado, and New Jersey are building on that model. And the EU AI Act classifies hiring and selection AI as “high-risk,” pulling in transparency, human-oversight, and documentation obligations for anyone operating there."})]}),d.jsx(ji,{title:"AI hiring went from unregulated to high-risk in three years",subtitle:"Selected enforcement and regulatory milestones (red = liability landed on an organization)",caption:"The trajectory is one-directional. Each year adds a new way for an AI screen's output to become your legal exposure.",children:d.jsx(MV,{})}),d.jsx(Q,{children:"The trajectory only points one way. Each year adds a jurisdiction, a precedent, or an enforcement action, and every one of them converts your screening tool's output into your exposure."}),d.jsx(De,{children:"What this means for how you run hiring"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"The through-line across all of it is a single capability: you have to be able to explain, and if necessary defend, any individual hiring decision. Not the vendor's model in the abstract, the specific call on the specific candidate."}),d.jsx(Q,{children:"That means knowing what evidence a rejection rested on, being able to show a human reviewed it, and being able to audit your outcomes for adverse impact before a regulator or a plaintiff does it for you. “We trusted the vendor” is not an answer to any of those. “Here is the evidence, here is who reviewed it, here is our impact ratio” is."})]}),d.jsx(Ts,{title:"The honest caveat.",body:"This is not legal advice, and the landscape is moving fast enough that specifics will shift. The durable point is structural, not statutory: liability is migrating from 'did you intend to discriminate' to 'can you account for your decisions.' Tools that cannot produce an inspectable record are becoming a liability regardless of which law applies in your jurisdiction."}),d.jsx(De,{children:"So, who is liable when AI screening discriminates?"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"Increasingly, you are, and possibly your vendor alongside you, but that does not get you off the hook. The agent theory, the first settlement, the four-fifths math, the audit mandates, and the high-risk classification all converge on the same expectation: account for your hiring decisions."}),d.jsx(Q,{children:"The teams that will be fine are not the ones with the most cautious vendor contract. They are the ones who can open any decision and show what it was based on."})]}),d.jsx(Mr,{eyebrow:"Account for every decision",children:"When a decision is questioned, you need to open it and show what it rested on. Confeti binds every claim to a specific moment in the interview, with speaker, timestamp, and quote, so each hiring decision has an inspectable evidence trail and a human accountable for it."}),d.jsx(De,{children:"Common questions"}),d.jsx(Ir,{items:[...A4]}),d.jsx(Rr,{items:[{id:1,content:d.jsxs(d.Fragment,{children:["Mobley v. Workday, N.D. Cal. — agent-liability ruling (2024) and ADEA collective certification (2025), via Reuters and Jones Walker LLP."," ",d.jsx("a",{href:"https://www.joneswalker.com/en/insights/blogs/ai-law-blog/",className:"text-link underline decoration-link/30 underline-offset-2 hover:
222decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})},{id:2,content:d.jsxs(d.Fragment,{children:["EEOC v. iTutorGroup — first EEOC AI-hiring discrimination settlement ($365,000); EEOC technical guidance on AI under Title VII."," ",d.jsx("a",{href:"https://www.eeoc.gov/",className:"text-link underline decoration-link/30 underline-offset-2 hover:decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})},{id:3,content:d.jsxs(d.Fragment,{children:["NYC Local Law 144 — Automated Employment Decision Tools, NYC Department of Consumer and Worker Protection."," ",d.jsx("a",{href:"https://www.nyc.gov/site/dca/about/automated-employment-decision-tools.page",className:"text-link underline decoration-link/30 underline-offset-2 hover:decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})},{id:4,content:d.jsxs(d.Fragment,{children:["EU AI Act — high-risk classification of AI hiring systems (2024)."," ",d.jsx("a",{href:"https://artificialintelligenceact.eu/",className:"text-link underline decoration-link/30 underline-offset-2 hover:
222decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})}]})]})}const P4=[{question:"Does anonymizing resumes remove hiring bias?",answer:"No. A 2025 study found models still infer race, gender, and class from sociocultural markers, languages, activities, volunteering, that survive removing names and identifiers."},{question:"What is a sociocultural proxy on a resume?",answer:"A neutral-looking detail that correlates with a protected trait, such as listed languages, sports and activities, volunteering, or the name of a school or organization. Models use these to infer identity."},{question:"Isn't blind screening still better than nothing?",answer:"Reducing obvious identifiers is a reasonable thin layer and removing a name won't make bias worse. The error is believing anonymization makes bias go away, when capable models see through it."},{question:"Why does the underlying model already matter?",answer:"Because the base model is skewed before anonymization. In the largest audit, models preferred White-associated names in 85.1% of cases and never preferred Black-male names over white-male ones."},{question:"What actually reduces bias if anonymization doesn't?",answer:"Shifting the decision weight onto evidence of demonstrated competence from a structured human evaluation, rather than traits inferred from a resume document."}];function LV(){return d.jsxs("div",{className:"labs-article-body mx-auto max-w-[720px]",children:[d.jsx(Pr,{children:"Blind screening feels like the responsible fix for hiring bias. The research shows models reconstruct race, gender, and class from the markers redaction leaves behind. The bias does not disappear. It goes underground."}),d.jsxs("div",{className:"mt-8 space-y-5",children:[d.jsx(Q,{children:"There is a fix for hiring bias that sounds airtight. Strip the names. Hide the photos. Redact the dates and the addresses. Let the qualifications speak for themselves. Blind screening."}),d.jsx(Q,{children:"It feels like the responsible move, and plenty of teams have adopted it believing the problem is handled. It is not. The model reconstructs almost everything you tried to hide."})]}),d.jsx(De,{verdict:"no",verdictLabel:"Proxies remain",children:"What survives the redaction"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"A 2025 study set out to test exactly this: take resumes, remove the names and obvious identifiers, and see whether a language model still treats candidates differently. It does."}),d.jsx(Q,{children:"The models inferred race, gender, and socioeconomic class from the residue that anonymization leaves behind, the subtle sociocultural markers that no redaction tool flags: the languages a candidate lists, the activities and sports, the volunteering, the signal in a school or organization name. None of that is a protected characteristic on its face. All of it lets a model guess one (Small Changes, Big Impact, 2025)."}),d.jsx(Q,{children:"So blind screening does not remove the bias. It hides the mechanism, which is worse, because now the discrimination runs through signals you are not even monitoring."})]}),d.jsx(De,{children:"Why subtraction cannot get you to fairness"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"The instinct behind anonymization is that bias attaches to a few identifiable fields, and if you delete those fields, you delete the bias. But a resume is dense with correlated information. Almost any detail that tells you something useful about a candidate also leaks something about who they are."}),d.jsx(Q,{children:"You cannot redact your way around that without redacting the resume into uselessness. The proxies are not a bug in your anonymization, they are the document."})]}),d.jsx(De,{verdict:"no",verdictLabel:"Baseline bias",children:"And the underlying model is already skewed"}),d.jsx("div",{className:"mt-5 space-y-5",children:d.jsx(Q,{children:"Remember what these models do before you even hand them an anonymized resume. In the largest audit of its kind, three production language models ranking real resumes preferred White-associated names in 85.1% of cases and female-associated names in only 11.1%. Names associated with Black men were never preferred over white-male names (Wilson & 
222Caliskan, 2024)."})}),d.jsx(ji,{title:"Which resumes the AI preferred",subtitle:"Three production LLMs ranking 550+ real resumes across 3M+ comparisons (Wilson & Caliskan, 2024)",caption:"Identical resumes, only the name changed. The red bar is zero: across the study, names linked to Black men were never preferred over white-male names.",children:d.jsx(S4,{})}),d.jsx(Q,{children:"Anonymization was supposed to neutralize that. Instead the model simply switches from the name it can no longer see to the proxies it still can. Same bias, quieter route."}),d.jsx(De,{children:"What actually moves the needle"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"If you cannot subtract identity out of a resume, the answer is to stop betting the decision on the resume. A document is a record of claims and credentials, thick with the very markers that leak bias. It is not a record of what the person can do."}),d.jsx(Q,{children:"The durable move is to shift the weight of the decision onto evidence of demonstrated competence, what a candidate actually showed in a structured, human evaluation, rather than what a model inferred from a PDF. You are not trying to hide who someone is. You are trying to measure what they did."})]}),d.jsx(Ts,{title:"The honest caveat.",body:"Reducing obvious identifiers is not pointless, and removing a name will not make bias worse. The error is believing it makes bias go away. Anonymization is a thin first layer that a capable model sees straight through. Treating it as the solution is how teams end up confidently discriminating through channels they stopped watching."}),d.jsx(De,{children:"So, does anonymizing resumes remove bias?"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"No. Models infer the traits you redacted from the sociocultural markers you cannot, so the bias goes underground rather than away, on top of a baseline that already favored some names over others."}),d.jsx(Q,{children:"You cannot subtract your way to fairness. You can only move the decision onto evidence of what the candidate demonstrated."})]}),d.jsx(Mr,{eyebrow:"Measure what they did, not who they are",children:"You cannot subtract identity out of a resume. Confeti moves the decision onto evidence of demonstrated competence from the interview, structured, comparable, and traceable, rather than signals inferred from a document."}),d.jsx(De,{children:"Common questions"}),d.jsx(Ir,{items:[...P4]}),d.jsx(Rr,{items:[{id:1,content:d.jsxs(d.Fragment,{children:["Small Changes, Big Impact: Demographic Bias in LLM-Based Hiring Through Subtle Sociocultural Markers in Anonymised Resumes (2025). ",d.jsx("em",{children:"arXiv"}),"."," ",d.jsx("a",{href:"https://arxiv.org/abs/2603.05189",className:"text-link underline decoration-link/30 underline-offset-2 hover:
222decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})},{id:2,content:d.jsxs(d.Fragment,{children:["Wilson, K., & Caliskan, A. (2024). Gender, Race, and Intersectional Bias in Resume Screening via Language Model Retrieval."," ",d.jsx("em",{children:"Proceedings of the AAAI/ACM Conference on AI, Ethics, and Society"}),", 7(1), 1578–1590."," ",d.jsx("a",{href:"https://ojs.aaai.org/index.php/AIES/article/view/31748",className:"text-link underline decoration-link/30 underline-offset-2 hover:decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})}]})]})}ai.register(pc,Es,eV);function DV(){return d.jsx("div",{className:"h-[260px] w-full",role:"img","aria-label":"Doughnut chart showing about 60 percent of human reviewers failed to notice deliberately biased algorithmic recommendations and only 40 percent noticed.",children:d.jsx(bV,{data:{labels:["Missed the deliberate bias","Noticed it"],datasets:[{data:[60,40],backgroundColor:[Ie.danger,Ie.success],borderWidth:0}]},options:{responsive:!0,maintainAspectRatio:!1,cutout:"62%",plugins:{legend:{position:"bottom",labels:{color:Ie.tick,padding:16,font:ln}},tooltip:{callbacks:{label:e=>`${e.label}: ${e.raw}% of reviewers`}}}}})})}const I4=[{question:"Does keeping a human in the loop remove AI hiring bias?",answer:"Not on its own. In the largest study to date, people followed a biased AI's recommendations up to 90% of the time. The human absorbed the bias rather than correcting it."},{question:"Why don't reviewers catch biased AI recommendations?",answer:"Because the bias is invisible on screen. In one study about 60% of reviewers failed to notice deliberately biased recommendations even when asked about them directly."},{question:"Who makes the best human reviewer for AI decisions?",answer:"Skeptics. A 2,784-person study found reviewers most favorable toward automation overrelied on the AI and adopted its errors, while only skeptical reviewers reliably caught them."},{question:"What makes human oversight actually work?",answer:"Three conditions: the reviewer can see the underlying evidence, is accountable for the decision, and is rewarded for catching the model rather than agreeing quickly."},{question:"Should we remove the human from AI hiring decisions?",answer:"No. A human who can inspect and overturn the decision is the only safeguard there is. The point is that the phrase 'human in the loop' is not a safeguard by itself."}];function FV(){return d.jsxs("div",{className:"labs-article-body mx-auto max-w-[720px]",children:[d.jsx(Pr,{children:"“We keep a human in the loop” is the reflexive answer to every AI hiring risk. The research is blunt: drop a person on top of a biased model and they mostly absorb the bias rather than catch it."}),d.jsxs("div",{className:"mt-8 space-y-5",children:[d.jsx(Q,{children:"There is a phrase that ends every nervous conversation about AI in hiring: “we keep a human in the loop.” Regulators recommend it. Vendors advertise it. Legal teams sign off on it. It has become the comfort blanket of automated hiring."}),d.jsx(Q,{children:"The research on whether it actually works points the other way. When you put a real person in front of a biased AI recommendation, they mostly do not correct it. They absorb it."})]}),d.jsx(De,{verdict:"no",verdictLabel:"They follow it",children:"What people do with a biased recommendation"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"The largest human-subjects experiment on this to date put 528 people through 1,526 resume-screening scenarios. The design was simple: give reviewers AI recommendations and watch what they pick."}),d.jsx(Q,{children:"Given a neutral AI, people selected candidate groups roughly evenly, the way you would hope. Given a biased one, they followed it, choosing the AI-favored group up to 90% of the time. The bias did not stay in the model. It traveled straight through the human and out the other side as a decision (No Thoughts Just AI, 2025)."})]}),d.jsx(ji,{title:"The bias doesn't stop at the model",subtitle:"528 people, 1,526 screening scenarios: how often reviewers picked the AI-favored candidate (No Thoughts Just AI, 2025)",caption:"Given a neutral AI, people chose across groups roughly evenly. Given a biased one, they followed it, selecting the favored group up to 90% of the time.",children:d.jsx(j4,{})}),d.jsx(Q,{children:"Read that again, because it inverts the entire premise. The human was not a filter on the AI's bias. The human was a delivery mechanism for it."}),d.jsx(De,{children:"And the bias is nearly invisible to the person watching for it"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"Maybe, you think, reviewers would catch obvious bias if they were paying attention. They were paying attention. They still missed it."}),d.jsx(Q,{children:"In a controlled study, reviewers were handed algorithmic recommendations that had been deliberately skewed, then asked about them directly. Aroun
222d 60% did not notice the bias at all (Kaibel et al.). Not “noticed but deferred.” Did not register that anything was wrong."})]}),d.jsx(ji,{title:"The reviewer who was supposed to catch it",subtitle:"Share of human reviewers who failed to notice deliberately biased AI recommendations, even when asked (Kaibel et al., n=260)",caption:"Roughly three in five reviewers did not register the bias they were placed there to catch.",children:d.jsx(DV,{})}),d.jsx(Q,{children:"This is the quiet problem with oversight as a checkbox. You cannot catch what you cannot see, and a recommendation arrives looking clean, confident, and quantified. There is nothing on the screen that says “this number is skewed.”"}),d.jsx(De,{children:"The reviewers who trust AI most are the worst check"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"Here is the finding that should reshape how you staff oversight. A study of 2,784 reviewers found that the people most favorable toward automation overrelied on the AI and adopted its errors, while only the skeptics reliably caught them. Financial incentives to get it right did not close the gap."}),d.jsx(Q,{children:"So the instinct to put your most enthusiastic AI adopter in charge of the AI is exactly backwards. Enthusiasm is the disqualifier. The useful reviewer is the one who assumes the model is wrong until the evidence says otherwise."})]}),d.jsx(De,{children:"What “human in the loop” has to actually mean"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"The phrase is not wrong. It is just empty until you specify the conditions under which a human is a real check rather than a rubber stamp. Three of them, drawn straight from what the research says fails:"}),d.jsx(Q,{children:"The human must be able to see the underlying evidence, not just the score, because invisible bias cannot be overruled. The human must be accountable for the decision, owning it rather than ratifying it. And the human must be rewarded for catching the model, not for moving fast in agreement with it, because deference is the default and you have to design against it."})]}),d.jsx(Ts,{title:"The honest caveat.",body:"None of this means remove the human. A human who can inspect, overturn, and is expected to is the only safeguard there is. It means stop treating the phrase as the safeguard. 'There was a person in the loop' describes seating, not oversight. The two are not the same, and the research is blunt about the difference."}),d.jsx(De,{children:"So, does a human in the loop fix biased AI?"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"Only under conditions most teams have not built. Drop a person on top of a biased model and you usually get the model's decision with a human's name on it: bias followed up to 90% of the time, missed by 60% of reviewers, and worst among the reviewers who trust the tool most."}),d.jsx(Q,{children:"Oversight is not a checkbox. It is a design problem, and the design starts with whether the human can actually see what they are signing."})]}),d.jsx(Mr,{eyebrow:"Oversight you can actually exercise",children:"A human is only a check when they can see the evidence and overturn the call. Confeti binds every AI claim to a specific moment in the interview, with speaker, timestamp, and quote, human-editable and traceable. The reviewer sees what they are signing."}),d.jsx(De,{children:"Common questions"}),d.jsx(Ir,{items:[...I4]}),d.jsx(Rr,{items:[{id:1,content:d.jsxs(d.Fragment,{children:["No Thoughts Just AI: Biased LLM Recommendations Limit Human Agency in Resume Screening (2025). 528 participants, 1,526 scenarios. ",d.jsx("em",{children:"arXiv"}),"."," ",d.jsx("a",{href:"https://arxiv.org/abs/2509.04404",className:"text-link underline decoration-link/30 underline-offset-2 hover:
222decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})},{id:2,content:d.jsxs(d.Fragment,{children:["Kaibel et al., Michael is better than Mehmet: selective adherence to biased algorithmic advice in hiring (n=260). ",d.jsx("em",{children:"NCBI/PMC"}),"."," ",d.jsx("a",{href:"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC11420529/",className:"text-link underline decoration-link/30 underline-offset-2 hover:decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})},{id:3,content:d.jsxs(d.Fragment,{children:["Bias in the Loop: How Humans Evaluate AI-Generated Suggestions (2025), n=2,784."," ",d.jsx("em",{children:"arXiv"}),"."," ",d.jsx("a",{href:"https://arxiv.org/abs/2509.08514",className:"text-link underline decoration-link/30 underline-offset-2 hover:decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})},{id:4,content:d.jsxs(d.Fragment,{children:["Shaping the fairness journey: human-in-the-loop perceived fairer than AI-only (2025)."," ",d.jsx("em",{children:"ScienceDirect"}),"."," ",d.jsx("a",{href:"https://www.sciencedirect.com/science/article/abs/pii/S1071581925001867",className:"text-link underline decoration-link/30 underline-offset-2 hover:
222decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})}]})]})}ai.register(Xi,Zi,ki,Es);function $V(){return d.jsx("div",{className:"h-[210px] w-full",role:"img","aria-label":"Bar chart showing 21 percent of the global workforce engaged, 62 percent not engaged, and 15 percent actively disengaged in 2024.",children:d.jsx(Ar,{data:{labels:["Engaged","Not engaged","Actively disengaged"],datasets:[{data:[21,62,15],backgroundColor:[Ie.success,Ie.muted,Ie.danger],borderRadius:4,barThickness:34}]},options:{indexAxis:"y",responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{callbacks:{label:e=>`${e.raw}% of the global workforce`}}},scales:{x:{min:0,max:70,grid:{color:Ie.grid},ticks:{stepSize:20,callback:e=>`${e}%`,color:Ie.tick,font:ln}},y:{grid:{display:!1},ticks:{color:Ie.tick,font:ln}}}}})})}const R4=[{question:"Is time-to-hire the same as time-to-fill?",answer:"No. Time-to-fill runs from opening the req to offer acceptance. Time-to-hire runs from when a candidate enters the pipeline to acceptance. Both measure speed, neither measures quality."},{question:"Why is time-to-hire called a vanity metric?",answer:"Because it trends down when you lower standards. You can always hire faster by being less selective, so the metric can improve while your hiring gets worse. SHRM finds only about 20% of organizations track quality of hire at all."},{question:"What does poor hiring actually cost?",answer:"It shows up as disengagement. Gallup estimates disengaged and not-engaged employees cost the global economy about $8.9 trillion a year, roughly 9% of global GDP."},{question:"What should I measure instead?",answer:"Quality of hire: performance, 12-month retention, time to productivity, and hiring-manager satisfaction. Well-matched, connected hires show up to 45% lower two-year turnover."},{question:"Does fast hiring ever matter?",answer:"Yes, in candidate responsiveness. Slow replies between stages lose strong candidates. That is speed in communication, not speed in lowering the bar."}];function BV(){return d.jsxs("div",{className:"labs-article-body mx-auto max-w-[720px]",children:[d.jsx(Pr,{children:"Yes, AI will shrink your time-to-hire. That is exactly the problem. The fastest way to fill a seat is to hire the first person who walks through the door, and speed alone never told you whether that was a good idea."}),d.jsxs("div",{className:"mt-8 space-y-5",children:[d.jsx(Q,{children:"Every recruiting dashboard tracks days-to-hire. It is clean, it trends down when you push, and it makes a great slide. It is also the easiest number in hiring to game and the least connected to whether the hire was any good."}),d.jsxs(Q,{children:["The empty seat is real. But optimizing ",d.jsx("em",{children:"for"})," speed collapses into one behavior: lower the bar until someone clears it."]}),d.jsx(Q,{children:"The question was never how fast you can fill the role. It is whether the person you filled it with raises the team or drags it."})]}),d.jsx(De,{verdict:"no",verdictLabel:"Blind spot",children:"Almost nobody measures the thing that matters"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"Here is the tell. In SHRM's 2025 benchmarking research, only about one in five organizations tracks quality of hire at all. Everyone tracks time-to-fill and cost-per-hire, because they are easy. Almost no one tracks whether the hire was good."}),d.jsx(Q,{children:"So the dashboard measures the process and stays silent on the outcome. That is the definition of a vanity metric: a number that moves, looks like progress, and tells you nothing about whether you won."})]}),d.jsx(De,{children:"What lowering the bar actually costs"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"Run the logic of speed to its end and the single fastest hire is the first warm body who says yes. The cost of that does not show up on the recruiting dashboard. It shows up in the workforce."}),d.jsx(Q,{children:"Gallup's 2024 State of the Global Workplace puts numbers on it. Just 21% of employees worldwide are engaged. 62% are not engaged, and another 15% are actively disengaged. The lost productivity from that disengagement runs to roughly $8.9 trillion, about 9% of global GDP."})]}),d.jsx(ji,{title:"What the global workforce actually looks like",subtitle:"Global employee engagement, 2024 (Gallup, State of the Global Workplace)",caption:"Only about one in five employees is engaged. Gallup estimates the lost productivity from the rest at roughly $8.9 trillion, about 9% of global GDP.",children:d.jsx($V,{})}),d.jsx(Q,{children:"Hiring is where that distribution is set. Fill seats carelessly and you are manufacturing the grey and red bars above. Speed gets you there faster."}),d.jsx(De,{verdict:"yes",verdictLabel:"Density",children:"What the winning teams optimize instead"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"Not speed. Fit and retention, which compound."}),d.jsx(Q,{children:"A Gallup and Workhuman study followed roughly 3,500 employees from 2022 to 2024. Those who felt genuinely recognized and connected to their culture were 45% less likely to have left after two years. Belonging is not a perk you bolt on after the hire. It starts with hiring someone who actually fits, which is the first thing a rushed process trades away."}),d.jsx(Q,{children:"That is talent density: people who do not want to leave, who grow with the company and make it grow back. You do not reach it by clearing reqs fast. You reach it by being right more often."})]}),d.jsx(q0,{stats:[{label:"of organizations track quality of hire at all",value:"~20%",source:"SHRM, 2025"},{label:"lost to disengagement a year, about 9% of global GDP",value:"$8.9T",source:"Gallup, 2024"},{label:"lower two-year turnover among connected, well-matched hires",value:"45%",source:"Gallup & Workhuman"}]}),d.jsx(De,{children:"So what do you do with the metric?"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsxs(Q,{children:["Stop managing to it. Use it as a diagnostic. A rising time-to-hire tells you where your process stalls. That is useful. Managing ",d.jsx("em",{children:"to"})," the number is not, because the surest way to win on it is to make a worse hire."]}),d.jsx(Q,{children:"If quality is the target, you need a method that predicts it, and you need to measure the outcome. Track performance, twelve-month retention, and whether the hiring manager would make the call again, then tie those back to what you saw before the offer. The number worth chasing is not how fast you filled the seat. It is how often you were right."})]}),d.jsx(Ts,{title:"The honest caveat.",body:"There is one place speed genuinely matters: how fast you respond to the human waiting on you. A candidate who hears nothing for a week assumes they lost. Optimize that clock all you want. What is not worth optimizing is the headline number that rewards you for lowering the bar."}),d.jsx(De,{children:"So, is time-to-hire a real KPI?"}),d.jsxs("div",{className:"mt-5 space-y-5",children:[d.jsx(Q,{children:"It is a diagnostic, not a goal. Watch it. Never chase it."}),d.jsx(Q,{children:"Measure the thing you actually want: did this person raise the bar, and can you prove why."})]}),d.jsx(Mr,{eyebrow:"Decide from evidence, not optics",children:"When every interview produces structured, comparable signal, the number that improves is the quality of the hire, not the optics of the calendar. Confeti turns interviews into evidence-backed scorecards and decision packets."}),d.jsx(De,{children:"Common questions"}),d.jsx(Ir,{items:[...R4]}),d.jsx(Rr,{items:[{id:1,content:d.jsxs(d.Fragment,{children:["SHRM, 2025 Recruiting / Talent Acquisition Benchmarking Report (2025)."," ",d.jsx("a",{href:"https://www.shrm.org/topics-tools/research/2025-recruiting-benchmarking",className:"text-link underline decoration-link/30 underline-offset-2 hover:
222decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})},{id:2,content:d.jsxs(d.Fragment,{children:["Gallup, State of the Global Workplace: 2024 Report."," ",d.jsx("a",{href:"https://www.gallup.com/workplace/349484/state-of-the-global-workplace.aspx",className:"text-link underline decoration-link/30 underline-offset-2 hover:decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})},{id:3,content:d.jsxs(d.Fragment,{children:["Gallup & Workhuman, longitudinal recognition-and-retention study, ~3,500 employees 2022–2024 (2025)."," ",d.jsx("a",{href:"https://www.gallup.com/workplace/650174/employee-retention-depends-getting-recognition-right.aspx",className:"text-link underline decoration-link/30 underline-offset-2 hover:decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})},{id:4,content:d.jsxs(d.Fragment,{children:["U.S. Bureau of Labor Statistics, Job Openings and Labor Turnover Survey (JOLTS)."," ",d.jsx("a",{href:"https://www.bls.gov/jlt/",className:"text-link underline decoration-link/30 underline-offset-2 hover:
222decoration-link",target:"_blank",rel:"noopener noreferrer",children:"link"})]})}]})]})}const zV={"can-ai-find-better-candidates":{Component:NV,faqs:N4},"ai-screening-bias":{Component:kV,faqs:C4},"time-to-hire-vanity-metric":{Component:BV,faqs:R4},"faster-hiring-not-better-hiring":{Component:AV,faqs:T4},"hiring-work-before-the-interview":{Component:IV,faqs:E4},"human-in-the-loop-trap":{Component:FV,faqs:I4},"anonymized-resume-illusion":{Component:LV,faqs:P4},"ai-hiring-liability-2026":{Component:OV,faqs:A4}};function VV(e){return zV[e]}const HV=()=>{const{slug:e=""}=EA(),t=j7(e);if(!t)return d.jsx(lj,{to:"/labs",replace:!0});const n=VV(e),i=n==null?void 0:n.Component;return d.jsxs("div",{className:"min-h-full bg-[#faf8f6] font-geist text-stone-800",children:[d.jsx(si,{}),d.jsx("main",{children:d.jsxs("article",{children:[d.jsx(P7,{items:[{name:"Home",path:"/"},{name:"Confeti Labs",path:"/labs"},{name:t.title,path:`/labs/${e}`}]}),d.jsx(A7,{title:t.title,description:t.dek,slug:e,publishedAt:t.publishedAt,keywords:t.keywords}),n!=null&&n.faqs?d.jsx(E7,{items:[...n.faqs]}):null,d.jsxs(Vn,{className:"py-14 md:py-20",children:[d.jsxs("a",{href:"/labs",className:"inline-flex items-center gap-2 text-[13px] font-semibold text-brand-purple transition-colors hover:text-brand-purple/80",children:[d.jsx(p8,{className:"h-4 w-4","aria-hidden":!0}),"Confeti Labs"]}),d.jsxs("header",{className:"mx-auto mt-8 max-w-[720px]",children:[t.eyebrow?d.jsx("div",{className:"text-[13px] font-semibold uppercase tracking-[0.12em] text-accent",children:t.eyebrow}):d.jsx("div",{className:"flex flex-wrap gap-2",children:t.tags.map(s=>d.jsx("span",{className:"rounded-full bg-accent-subtle px-2.5 py-0.5 text-[10px] font-semibold uppercase tracking-[0.12em] text-accent",children:s},s))}),d.jsx("h1",{className:"text-h1 mt-4 text-balance text-brand-purple",children:t.title}),t.format!=="rich"?d.jsx("p",{className:"text-lead mt-4 text-pretty text-text-secondary",children:t.dek}):null,d.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-x-4 gap-y-1 text-[13px] text-text-muted",children:[d.jsx("span",{children:Do.name}),d.jsx("span",{className:"hidden text-border-strong sm:inline","aria-hidden":!0,children:"·"}),d.jsx("time",{dateTime:t.publishedAt,children:MN(t.publishedAt)}),d.jsx("span",{className:"hidden text-border-strong sm:inline","aria-hidden":!0,children:"·"}),d.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[d.jsx(g8,{className:"h-3.5 w-3.5","aria-hidden":!0}),t.readingTimeMinutes," min read"]}),t.format==="rich"?d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"hidden text-border-strong sm:inline","aria-hidden":!0,children:"·"}),d.jsx("span",{children:t.tags[t.tags.length-1]})]}):null]})]}),d.jsx("div",{className:t.format==="rich"?"mt-10 border-t border-border-subtle pt-10":"mx-auto mt-12 max-w-2xl border-t border-border-subtle pt-12",children:i?d.jsx(i,{}):t.format==="blocks"?d.jsx(T7,{blocks:t.blocks}):null}),t.format==="rich"?null:d.jsxs("div",{className:"mx-auto mt-16 max-w-2xl rounded-3xl bg-surface-muted/80 px-6 py-8 text-center shadow-[var(--shadow-card)] md:px-10",children:[d.jsx("p",{className:"text-[15px] font-semibold text-text-primary",children:"See how this shows up in the product"}),d.jsx("p",{className:"text-body mt-2",children:"Confeti turns interviews into evidence-backed scorecards and decision packets your team can defend."}),d.jsxs("div",{className:"mt-6 flex flex-col items-center justify-center gap-3 sm:flex-row",children:[d.jsx("a",{href:"/contact",children:d.jsxs(js,{size:"md",className:"group rounded-full",children:["Request a demo",d.jsx(dd,{className:"h-4 w-4 transition-transform group-hover:translate-x-0.5"})]})}),d.jsx("a",{href:"/labs",className:"text-[13px] font-medium text-text-secondary hover:text-text-primary",children:"More from Labs"})]})]})]})]})}),d.jsx(Ci,{})]})};function WV({to:e,className:t,duration:n=1.4}){const i=P.useRef(null),s=xd(),r=Lp(i,{once:!0,amount:.6}),o=ka(0),c=So(o,{stiffness:60,damping:20,duration:n*1e3}),[u,h]=P.useState(0);return P.useEffect(()=>{if(r){if(s){h(e);return}o.set(e)}},[r,e,s,o]),P.useEffect(()=>c.on("change",m=>h(Math.round(m))),[c]),d.jsx("span",{ref:i,className:t,children:u})}const ec=[{id:"role-stuck",pillar:"Role",theme:"Role health",question:"Why is this backend role stuck?",steps:["Reading funnel c
222onversion","Checking HM conversations","Analyzing candidate themes","Reviewing ATS delays"],outcomeLabel:"Three things changed",findings:["HM-stage conversion fell from 46% → 21%.","The hiring manager has increasingly prioritized distributed-systems experience, although it wasn’t in the original profile.","5 recent candidates also raised compensation concerns."],recommendedAction:"Recalibrate the profile with the HM and review the compensation range before increasing sourcing volume."},{id:"requirement-drift",pillar:"Role",theme:"Role calibration",question:"How has what we're looking for changed since the intake?",steps:["Extracting original requirements from the intake","Analyzing subsequent HM calibration conversations","Comparing what actually drives progression and rejection","Identifying criteria gaining or losing importance"],outcomeLabel:"The profile has drifted",findings:["Startup experience has become significantly more important.","Kubernetes was originally a must-have but hasn’t influenced decisions.","System-design depth has emerged as the strongest differentiator."],recommendedAction:"Update the role model and interview plan with the HM so sourcing and evaluation match what actually advances candidates."},{id:"process-broken",pillar:"Process",theme:"Interview process",question:"Which part of our interview process isn't working?",steps:["Analyzing conversion by interview stage","Mapping competencies and questions each stage covers","Detecting repeated questions and coverage gaps","Comparing stage evidence with downstream decisions"],outcomeLabel:"One stage isn’t earning its place",findings:["The second technical interview adds almost no new evidence.","38% of its questions duplicate stage one.","Collaboration is never meaningfully evaluated anywhere in the loop."],recommendedAction:"Re-scope or remove the second technical stage, and add a dedicated collaboration probe earlier in the loop."},{id:"calibration",pillar:"Team",theme:"Calibration",question:"Which interviewers are uncalibrated?",steps:["Comparing pass/reject behavior by interviewer","Contrasting competency ratings on shared candidates","Analyzing evidence behind each evaluation","Checking alignment with downstream outcomes"],outcomeLabel:"Two calibration issues stand out",findings:["Daniel advances 72% of candidates vs. a team average of 39%, often with high ownership scores and little supporting evidence.","Maya consistently scores communication significantly lower than the rest of the panel."],recommendedAction:"Run a short calibration session with Daniel and Maya using shared examples, and tighten evidence requirements on ownership."},{id:"candidate-gaps",pillar:"Candidate",theme:"Candidate intelligence",question:"What do we still need to learn about this candidate?",steps:["Reading required competencies and signals for the role","Gathering evidence from every previous interview","Identifying weak, conflicting, or missing evidence","Generating the highest-value questions for the next interviewer"],outcomeLabel:"One critical gap remains",findings:["Strong evidence exists for technical depth and ownership.","Leadership under ambiguity remains untested."],recommendedAction:"Brief the next interviewer to validate how the candidate handles conflicting stakeholder priorities — and nothing already covered."},{id:"candidate-themes",pillar:"Company",theme:"Talent market",question:"What are candidates consistently telling us?",steps:["Scanning recent candidate conversations","Extracting concerns, motivations, compensation, and competitors","Clustering themes by role and stage","Comparing themes with withdrawals and offer declines"],outcomeLabel:"Two market signals are clear",findings:["8 of the last 14 senior engineers questioned the hybrid policy.","Remote flexibility appears in 4 of the last 6 withdrawals.","Compensation is primarily an issue among Staff-level candidates."],recommendedAction:"Address hybrid expectations earlier in screens, and review Staff compensation bands before the next late-stage loop."},{id:"dropouts",pillar:"Process",theme:"Candidate experience",question:"Why are candidates dropping out?",steps:["Identifying withdrawals and stalled candidates in the ATS","Reading conversations just before withdrawal","Clustering explicit concerns and friction points","Comparing dropout patterns by stage, recruiter, and role"],outcomeLabel:"Dropouts cluster after the HM interview",findings:["Candidates repeatedly mention slow process, unclear scope, and competing offers moving faster.","Median feedback delay before withdrawal is 4.2 days."],recommendedAction:"Tighten HM feedback SLAs and send a clearer role-scope follow-up within 24 hours of the HM interview."},{id:"debrief-packet",pillar:"Candidate",theme:"Decisions",question:"Give me the complete picture on this candidate before the debrief.",steps:["Combining resume, ATS history, and every interview","Mapping evidence against role competencies","Surfacing interviewer disagreements and contradictions","Identifying unresolved questions for a decision-ready packet"],outcomeLabel:"Decision-ready packet",findings:["Strong hire on product judgment and ownership.","Mixed evidence on people leadership.","Two interviewers disagree on strategic depth.","Compensation expectations are within range.","One unresolved 
222issue remains before decision."],recommendedAction:"Open the debrief on people leadership and strategic depth only — resolve the open question before voting."},{id:"question-effectiveness",pillar:"Process",theme:"Interview design",question:"Which interview questions are actually useful?",steps:["Extracting questions asked across interviews","Measuring what evidence each question produces","Comparing answers with progression and hiring outcomes","Flagging low-signal questions and stronger alternatives"],outcomeLabel:"Signal is uneven across the question bank",findings:["“Tell me about yourself” produces little usable evidence.","A specific trade-off question strongly differentiates candidates who later pass the architecture stage.","Five commonly used questions generate almost no decision-relevant signal."],recommendedAction:"Replace the five low-signal questions with trade-off and evidence-rich prompts tied to the role model."},{id:"attention-today",pillar:"Company",theme:"Daily priorities",question:"What should I pay attention to today?",steps:["Scanning all active roles and candidate funnels","Detecting unusual conversion, aging stages, and missing feedback","Adding conversation context for the likely cause","Ranking issues by urgency with next actions"],outcomeLabel:"3 things need attention",findings:["Backend role conversion deteriorated after the HM stage.","Your strongest PM finalist has another offer Friday.","The Data role has waited 3 days for interviewer feedback."],recommendedAction:"Close the PM offer path today, unblock Data feedback this morning, then recalibrate Backend with the HM."}],qV=22,UV=180,GV=520,YV=280,KV=5e3,QV=100;function XV({className:e}){const t=xd(),n=P.useRef(null),i=Lp(n,{amount:.35,once:!1}),[s,r]=P.useState(0),[o,c]=P.useState(""),[u,h]=P.useState("typing"),[f,m]=P.useState(0),[x,y]=P.useState(!1),b=ec[s],k=i&&!x&&!t,w=P.useCallback(S=>{r((S+ec.length)%ec.length),c(""),m(0),h("typing")},[]);return P.useEffect(()=>{if(t){c(b.question),m(b.steps.length),h("answer");return}c(""),m(0),h("typing")},[b,t]),P.useEffect(()=>{if(!k||u!=="typing")return;if(o.length>=b.question.length){h("working");return}const S=o.length===0?QV:qV,j=window.setTimeout(()=>{c(b.question.slice(0,o.length+1))},S);return()=>window.clearTimeout(j)},[k,u,o,b.question]),P.useEffect(()=>{if(!k||u!=="working")return;if(f<b.steps.length){const j=window.setTimeout(()=>{m(N=>N+1)},f===0?UV:GV);return()=>window.clearTimeout(j)}const S=window.setTimeout(()=>h("answer"),YV);return()=>window.clearTimeout(S)},[k,u,f,b.steps.length]),P.useEffect(()=>{if(!k||u!=="answer")return;const S=window.setTimeout(()=>w(s+1),KV);return()=>window.clearTimeout(S)},[k,u,s,w]),d.jsxs("section",{"aria-label":"Example hiring intelligence questions",className:Re("w-full px-5 pb-10 md:px-10 md:pb-16",e),children:[d.jsxs("div",{className:"relative mx-auto max-w-[1080px]",children:[d.jsx("div",{className:"pointer-events-none absolute inset-x-4 -bottom-2 top-4 roun
222ded-[28px] bg-[#C97B3A]/15 md:inset-x-6 md:rounded-[32px]","aria-hidden":!0}),d.jsx("div",{className:"pointer-events-none absolute -right-1 top-8 h-24 w-24 rounded-full bg-[#C97B3A]/20 blur-2xl md:h-32 md:w-32","aria-hidden":!0}),d.jsxs("div",{ref:n,className:"relative overflow-hidden rounded-[26px] bg-[#1d3a66] text-[#fafaf7] shadow-[0_24px_60px_rgba(29,58,102,0.28),0_4px_14px_rgba(15,23,42,0.08)] md:rounded-[30px]",onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),onFocusCapture:()=>y(!0),onBlurCapture:S=>{S.currentTarget.contains(S.relatedTarget)||y(!1)},children:[d.jsx("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(ellipse_at_top_right,rgba(201,123,58,0.18),transparent_42%),linear-gradient(180deg,rgba(255,255,255,0.07)_0%,transparent_28%)]","aria-hidden":!0}),d.jsxs("div",{className:"relative px-6 py-10 md:px-12 md:py-14",children:[d.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-2",children:[d.jsx("span",{className:"rounded-full bg-white/10 px-2.5 py-0.5 text-[11px] font-semibold uppercase tracking-[0.16em] text-[#C97B3A]",children:b.pillar}),d.jsx("span",{className:"text-white/25","aria-hidden":!0,children:"·"}),d.jsx("span",{className:"text-[11px] font-medium uppercase tracking-[0.14em] text-white/45",children:b.theme})]}),d.jsxs("p",{className:"mx-auto mt-6 min-h-[3.4em] max-w-[820px] text-center text-[26px] font-medium leading-[1.12] tracking-[-0.8px] text-white md:min-h-[2.5em] md:text-[40px] md:tracking-[-1.4px]","aria-live":"polite",children:[d.jsx("span",{className:"text-white/35",children:"“"}),o,!t&&u==="typing"?d.jsx("span",{className:"ml-0.5 inline-block h-[0.9em] w-[2px] translate-y-[0.12em] bg-[#C97B3A] align-baseline",style:{animation:"hi-caret 1s steps(1) infinite"},"aria-hidden":!0}):null,d.jsx("span",{className:"text-white/35",children:"”"})]}),d.jsxs("div",{className:"mx-auto mt-9 max-w-[560px] md:mt-11",children:[d.jsx("ul",{className:"space-y-0","aria-live":"polite",children:b.steps.map((S,j)=>{const N=j<f,E=u==="working"&&j===f-1&&f>0,T=N&&(u==="answer"||j<f-1);return d.jsx(it.li,{initial:!1,animate:{opacity:N?1:0,y:N?0:8,height:N?"auto":0},transition:{duration:.28,ease:[.16,1,.3,1]},className:"overflow-hidden",children:d.jsxs("div",{className:Re("flex items-start gap-3 border-l py-2.5 pl-4 text-[15px] leading-6 transition-colors duration-500 md:text-base md:leading-7",E?"border-[#C97B3A] text-white":T?"border-white/20 text-white/55":"border-transparent text-white/40"),children:[d.jsx("span",{className:Re("mt-2 h-1.5 w-1.5 shrink-0 rounded-full transition-colors duration-500",E?"bg-[#C97B3A]":T?"bg-white/35":"bg-transparent"),"aria-hidden":!0}),d.jsx("span",{children:S})]})},`${b.id}-${S}`)})}),d.jsx(S0,{mode:"wait",children:u==="answer"?d.jsxs(it.div,{initial:t?!1:{opacity:0,y:10},animate:{opacity:1,y:0},exit:t?void 0:{opacity:0,y:-6},transition:{duration:.35,ease:[.16,1,.3,1]},className:"mt-7 rounded-2xl border border-white/10 bg-white/[0.06] px-5 py-5 backdrop-blur-[2px]",children:[d.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-[#C97B3A]",children:b.outcomeLabel}),d.jsx("ul",{className:"mt-3 space-y-2.5",children:b.findings.map(S=>d.jsxs("li",{className:"flex items-start gap-2.5 text-[15px] leading-7 text-white/92 md:text-base md:leading-8",children:[d.jsx("span",{className:"mt-[0.7em] h-1 w-1 shrink-0 rounded-full bg-[#C97B3A]","aria-hidden":!0}),d.jsx("span",{children:S})]},S))}),d.jsxs("div",{className:"mt-5 border-t border-white/10 pt-4",children:[d.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-white/45",children:"Recommended action"}),d.jsx("p",{className:"mt-2 text-[15px] font-medium leading-7 text-white md:text-base md:leading-8",children:b.recommendedAction})]})]},`${b.id}-answer`):d.jsx(it.div,{initial:!1,animate:{opacity:u==="typing"?0:.5},className:"mt-7 h-[1px]","aria-hidden":!0},`${b.id}-waiting`)})]}),d.jsxs("div",{className:"mt-9 flex flex-wrap items-center justify-center gap-3 md:mt-11",children:[d.jsx("button",{type:"button",onClick:()=>w(s-1),className:"rounded-full px-3 py-1.5 text-sm font-medium text-white/50 transition-colors hover:bg-white/10 hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C97B3A]","aria-label":"Previous question",children:"←"}),d.jsx("div",{className:"flex items-center gap-1.5",role:"tablist","aria-label":"Example questions",children:ec.map((S,j)=>d.jsx("button",{type:"button",role:"tab","aria-selected":j===s,"aria-label":S.question,onClick:()=>w(j),className:Re("h-1.5 rounded-full transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C97B3A]",j===s?"w-6 bg-[#C97B3A]":"w-1.5 bg-white/25 hover:bg-white/45")},S.id))}),d.jsx("button",{type:"button",onClick:()=>w(s+1),className:"rounded-full px-3 py-1.5 text-sm font-medium text-white/50 transition-colors hover:bg-white/10 hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C97B3A]","aria-label":"Next question",children:"→"})]}),d.jsx(JV,{active:b.pillar,onSelect:S=>{const j=ec.findIndex(N=>N.pillar===S);j>=0&&w(j)}})]})]})]}),d.jsx("style",{children:`
223        @keyframes hi-caret {
224          0%, 49% { opacity: 1; }
225          50%, 100% { opacity: 0; }
226        }
227        @media (prefers-reduced-motion: reduce) {
228          @keyframes hi-caret {
229            0%, 100% { opacity: 1; }
230          }
231        }
232      `})]})}const ZV=["Role","Candidate","Process","Team","Company","Outcomes"];function JV({active:e,onSelect:t}){return d.jsxs("div",{className:"mt-7 flex flex-wrap items-center justify-center gap-x-1 gap-y-2 border-t border-white/10 pt-6",children:[d.jsx("span",{className:"mr-2 text-[11px] font-semibold uppercase tracking-[0.14em] text-white/35",children:"Across"}),ZV.map(n=>d.jsx("button",{type:"button",onClick:()=>t(n),className:Re("rounded-full px-3 py-1 text-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C97B3A]",e===n?"bg-white text-[#1d3a66]":"text-white/45 hover:bg-white/10 hover:text-white"),children:n},n))]})}function U0(e){return e>=5?"Category defining":e>=4?"High value":"Useful"}function M4(e){switch(e){case"Every conversation":case"Every interview":case"Every screen":case"Continuous":return"Every conversation";case"Daily":case"Anytime":return"Daily";case"Weekly":return"Weekly";case"Monthly":return"Monthly";case"Quarterly":return"Quarterly";case"Per role":case"Per debrief":return"Per role";case"Per candidate":case"Per finalist":case"Per decline":case"Every offer":case"Every decision":case"Every rejection":case"Every final decision":return"Per candidate";case"Event-driven":return"Event-driven";default:return"Weekly"}}function eH(e){const t=M4(e);return{Quarterly:.08,"Event-driven":.18,Monthly:.3,"Per role":.42,"Per candidate":.55,Weekly:.68,Daily:.82,"Every conversation":.94}[t]}function tH(e){const t=new Set(e.dataSources);return t.has("Post-hire data")?"Post-hire data":t.has("Historical outcomes")?"Historical outcomes":t.has("Conversation only")&&!t.has("ATS")?"Conversation only":t.has("ATS")&&!t.has("Interviews")&&!t.has("Intake")?"ATS only":"ATS + conversations"}const O4=[{id:"role-definition",name:"Role Definition & Calibration",shortName:"Roles",shortDe
232scription:"Turn intake conversations into clear requirements, competencies, and a healthy search.",icon:"role-definition"},{id:"candidate-intelligence",name:"Candidate Intelligence",shortName:"Candidates",shortDescription:"One living view of each candidate across resume, conversations, and evidence.",icon:"candidate-intelligence"},{id:"interview-intelligence",name:"Interview Intelligence",shortName:"Interviews",shortDescription:"Capture interviews, map evidence, and make every stage build on the last.",icon:"interview-intelligence"},{id:"decisions-debriefs",name:"Decisions & Debriefs",shortName:"Decisions",shortDescription:"Walk into debriefs with evidence, disagreements, and unresolved questions ready.",icon:"decisions-debriefs"},{id:"funnel-process",name:"Funnel & Process Intelligence",shortName:"Funnel",shortDescription:"Explain conversion, bottlenecks, and leakage with conversation context—not just charts.",icon:"funnel-process"},{id:"calibration",name:"Hiring Manager & Interviewer Calibration",shortName:"Calibration",shortDescription:"See where evaluators diverge from evidence, process, and stated requirements.",icon:"calibration"},{id:"candidate-experience",name:"Candidate Experience & Talent Market",shortName:"Market",shortDescription:"Aggregate objections, declines, brand feedback, and market signals from conversations.",icon:"candidate-experience"},{id:"recruiter-productivity",name:"Recruiter Productivity",shortName:"Productivity",shortDescription:"Draft scorecards, updates, and next actions so recruiters stay in the work that matters.",icon:"recruiter-productivity"},{id:"head-of-talent",name:"Head of Talent Intelligence",shortName:"Leadership",shortDescription:"Portfolio risk, attention, and weekly briefs that explain why—not only what moved.",icon:"head-of-talent"},{id:"organizational-memory",name:"Organizational Memory & Learning",shortName:"Learning",shortDescription:"Carry lessons across roles, hires, and teams so every cycle makes the next smarter.",icon:"organizational-memory"}],G0=Object.fromEntries(O4.map(e=>[e.id,e])),RS=["Why is our backend role stuck?","Which interviewers are uncalibrated?","What are candidates saying about compensation?","Which competencies aren't being evaluated?","What changed since the intake?"],nH=["Category defining","High value","Useful"],iH=["Every conversation","Daily","Weekly","Monthly","Per role","Per candidate","Event-driven","Quarterly"],sH=["Recruiter","Head of Talent","Hiring Manager","Interviewer","Recruiting Operations"],rH=["Conversation only","ATS only","ATS + conversations","Historical outcomes","Post-hire data"],wp=[{id:1,title:"Intake → Job Description",category:"role-definition",persona:["Recruiter","Hiring Manager"],why:"The intake usually contains the actual job while the existing template does not.",how:"Convert the hiring-manager intake into structured responsibilities, requirements and a polished JD.",when:"New role kickoff.",value:"Faster and more accurate role creation.",whyBuild:"Immediate workflow wedge and first source of structured role context.",valueScore:4,frequency:"Per role",dataSources:["Intake","Interviews"],exampleQuestion:"Draft a job description from yesterday’s intake with Sarah."},{id:2,title:"Automatic Competency Definition",category:"role-definition",persona:["Recruiter","Hiring Manager","Head of Talent"],why:"Teams frequently define competencies inconsistently.",how:"Infer the core competencies from intake, JD, company context and role ontology.",when:"Role creation.",value:"Better evaluation criteria.",whyBuild:"Creates structured intelligence from day one.",valueScore:4,frequency:"Per role",dataSources:["Intake","Candidate profile"],exampleQuestion:"What competencies should we evaluate for this backend role?"},{id:3,title:"Must-Have vs Nice-to-Have Extraction",category:"role-definition",persona:["Recruiter","Hiring Manager"],why:"Requirements are frequently mixed together.",how:"Classify statements from intake and role discussions.",when:"Intake and role updates.",value:"Better sourcing and screening decisions.",whyBuild:"Reduces recruiter ambiguity.",valueScore:4,frequency:"Per role",dataSources:["Intake","Interviews"],exampleQuestion:"Which requirements are true must-haves versus preferences?"},{id:4,title:"Ideal Candidate Profile",category:"role-definition",persona:["Recruiter","Hiring Manager"],why:"Recruiters need a usable c
232andidate picture rather than a list of 30 requirements.",how:"Synthesize role requirements into a candidate archetype.",when:"Role kickoff and subsequent recalibration.",value:"Better sourcing and screening.",whyBuild:"Creates a central mental model of the role.",valueScore:4,frequency:"Per role",dataSources:["Intake","Interviews","Historical outcomes"],exampleQuestion:"Describe the ideal candidate for this search in one paragraph."},{id:5,title:"Evidence / Signal Definition",category:"role-definition",persona:["Recruiter","Hiring Manager","Interviewer"],why:"Abstract competencies such as ownership are meaningless without observable signals.",how:"Convert competencies into behaviors and evidence interviewers should look for.",when:"Role kickoff.",value:"Better interviews and more objective evaluations.",whyBuild:"Makes role criteria operational.",valueScore:5,frequency:"Per role",dataSources:["Intake","Interviews","Scorecards"],exampleQuestion:"What evidence should interviewers look for for ownership?",featured:!0},{id:6,title:"Hiring-Manager Ambiguity Detection",category:"role-definition",persona:["Recruiter","Hiring Manager"],why:"Bad hiring processes frequently begin with unclear requirements.",how:"Detect contradictions, unclear definitions and unresolved questions in intake.",when:"Immediately after intake.",value:"Fix problems before sourcing begins.",whyBuild:"Prevents wasted funnel activity.",valueScore:5,frequency:"Per role",dataSources:["Intake","Interviews"],exampleQuestion:"Where is the intake still ambiguous or contradictory?"},{id:7,title:"Role Requirement Drift",category:"role-definition",persona:["Recruiter","Hiring Manager","Head of Talent"],why:"Hiring managers frequently change what they want without explicitly updating the role.",how:"Compare original intake against later conversations, evaluations and progression patterns.",when:"During an active search.",value:"Makes evolving requirements explicit.",whyBuild:"Highly differentiated conversation + ATS intelligence.",valueScore:5,frequency:"Weekly",dataSources:["Intake","Interviews","ATS","Scorecards"],exampleQuestion:"How has what we're looking for changed since the original intake?",featured:!0},{id:8,title:"Recalibration Recommendation",category:"role-definition",persona:["Recruiter","Head of Talent","Hiring Manager"],why:"Teams can interview many candidates before realizing the profile is wrong.",how:"Analyze candidate evidence, rejection reasons, conversion and HM conversations.",when:"After sufficient funnel activity.",value:"Recover broken searches faster.",whyBuild:"Moves the product from analytics to recommended action.",valueScore:5,frequency:"Weekly",dataSources:["ATS","Interviews","Scorecards","Intake"],exampleQuestion:"Should we recalibrate this role, and what should change?"},{id:9,title:"Interview Plan Generation",category:"role-definition",persona:["Recruiter","Hiring Manager"],why:"Interview stages often overlap or leave important competencies uncovered.",how:"Map competencies to stages, interviewers and suggested questions.",when:"Role kickoff.",value:"Better interview design.",whyBuild:"Turns role intelligence into an executable process.",valueScore:4,frequency:"Per role",dataSources:["Intake","Interviews"],exampleQuestion:"Generate an interview plan that covers every must-have competency."},{id:10,title:"Role Health Diagnosis",category:"role-definition",persona:["Head of Talent","Recruiter"],why:"Heads of Talent need to know why a requisition is unhealthy.",how:"Combine conversion, candidate conversations, HM discussions, feedback latency, timing and objections.",when:"Throughout the search.",value:"Root-cause diagnosis.",whyBuild:"High-value leadership intelligence.",valueScore:5,frequency:"Daily",dataSources:["ATS","Interviews","Scorecards","Intake"],exampleQuestion:"Why is this role stuck?",featured:!0},{id:11,title:"Living Candidate Packet",category:"candidate-intelligence",persona:["Recruiter","Hiring Manager","Interviewer"],why:"Candidate truth is fragmented across CVs, ATS records and conversations.",how:"Combine resume, ATS, screens, interviews, scorecards and evidence.",when:"Throughout the process.",value:"One complete candidate view.",whyBuild:"Core everyday recruiter utility.",valueScore:5,frequency:"Per candidate",dataSources:["ATS","Interviews","Scorecards","Candidate profile"],exampleQuestion:"Give me the full packet for Maya Chen.",featured:!0},{id:12,title:"Screening Preparation",category:"candidate-intelligence",persona:["Recruiter"],why:"Recruiters manually reread profiles and job descriptions before calls.",how:"Generate candidate-specific areas to validate against role requirements.",when:"Before screen.",value:"Better screening with less preparation.",whyBuild:"High-frequency workflow wedge.",valueScore:4,frequency:"Every screen",dataSources:["Candidate profile","Intake","ATS"],exampleQuestion:"Prep me for my screen with Jordan this afternoon."},{id:13,title:"Must-Have Check",category:"candidate-intelligence",persona:["Recruiter"],why:"Recruiters waste calls on candidates missing explicit requirements.",how:"Compare available candidate evidence against must-haves.",when:"Before or after screening.",value:"Faster qualification.",whyBuild:"Straightforward productivity.",valueScore:4,frequency:"Per candidate",dataSources:["Candidate profile","Intake","Interviews"],exampleQuestion:"Does this candidate clear our must-haves?"},{id:14,title:"Missing-Evidence Detection",category:"candidate-intelligence",persona:["Recruiter","Interviewer","Hiring Manager"],why:"Absence of evidence should not be mistaken for negative evidence.",how:"Track which competencies remain untested.",when:"After every candidate interaction.",value:"Better next-stage interviews.",whyBuild:"Creates cumulative interviews rather than 
232independent interviews.",valueScore:5,frequency:"Every interview",dataSources:["Interviews","Scorecards","Intake"],exampleQuestion:"What do we still need to learn about this candidate?",featured:!0},{id:15,title:"Candidate Strength Map",category:"candidate-intelligence",persona:["Recruiter","Hiring Manager"],why:"A single score hides important nuance.",how:"Map available evidence against individual competencies and requirements.",when:"Throughout process.",value:"Clearer understanding of candidate fit.",whyBuild:"More useful than generic scorecards.",valueScore:4,frequency:"Per candidate",dataSources:["Interviews","Scorecards","Intake"],exampleQuestion:"Where is this candidate strong versus thin on evidence?"},{id:16,title:"Candidate Comparison",category:"candidate-intelligence",persona:["Recruiter","Hiring Manager","Head of Talent"],why:"Humans struggle to compare several complex candidate histories simultaneously.",how:"Normalize and compare evidence across finalists.",when:"Shortlist or debrief.",value:"Better selection.",whyBuild:"Strong decision-support workflow.",valueScore:4,frequency:"Per role",dataSources:["Interviews","Scorecards","ATS","Candidate profile"],exampleQuestion:"Compare these three finalists on the competencies that matter."},{id:17,title:"Contradiction Detection",category:"candidate-intelligence",persona:["Recruiter","Hiring Manager"],why:"Different stages can surface conflicting claims or evidence.",how:"Compare statements, evidence and interviewer observations across interactions.",when:"After multiple interviews.",value:"Surface unresolved risks.",whyBuild:"Difficult to do manually.",valueScore:4,frequency:"Per candidate",dataSources:["Interviews","Scorecards"],exampleQuestion:"Are there contradictions across this candidate’s interviews?"},{id:18,title:"Motivation Profile",category:"candidate-intelligence",persona:["Recruiter","Hiring Manager"],why:"Candidate motivation is frequently buried in recruiter notes.",how:"Extract motivations, preferences, push factors and pull factors.",when:"Screens and interviews.",value:"Better matching and closing.",whyBuild:"Valuable candidate memory.",valueScore:4,frequency:"Per candidate",dataSources:["Interviews","Conversation only"],exampleQuestion:"What is motivating this candidate to consider us?"},{id:19,title:"Compensation Intelligence",category:"candidate-intelligence",persona:["Recruiter","Head of Talent"],why:"Compensation expectations and flexibility are often lost between conversations.",how:"Extract expectations, ranges, flexibility and competing offers.",when:"Relevant candidate conversations.",value:"Better closing and compensation planning.",whyBuild:"Useful individually and highly valuable in aggregate.",valueScore:4,frequency:"Per candidate",dataSources:["Interviews","ATS"],exampleQuestion:"What compensation expectations has this candidate shared?"},{id:20,title:"Overqualification / Role Mismatch",category:"candidate-intelligence",persona:["Recruiter","Hiring Manager"],why:"Impressive candidates can still be wrong for the actual role.",how:"Compare candidate background, motivations and trajectory against role reality.",when:"Screening.",value:"Avoid poor-fit hires.",whyBuild:"Adds context beyond keywords.",valueScore:3,frequency:"Per candidate",dataSources:["Candidate profile","Intake","Interviews"],exampleQuestion:"Is this candidate overqualified or mismatched for the role?"},{id:21,title:"Automatic Interview Capture",category:"interview-intelligence",persona:["Recruiter","Interviewer","Recruiting Operations"],why:"Humans cannot be fully present while documenting everything.",how:"Calendar-aware local/no-bot capture.",when:"Every interview.",value:"Complete source of truth.",whyBuild:"Foundation of the intelligence layer.",valueScore:5,frequency:"Every interview",dataSources:["Interviews","Conversation only"],exampleQuestion:"Did we capture today’s interview with Alex?"},{id:22,title:"Custom Interview Summary",category:"interview-intelligence",persona:["Recruiter","Interviewer"],why:"Recruiters need recruiting-specific outputs rather than generic meeting summaries.",how:"Generate summaries using role and candidate context.",when:"Immediately after conversation.",value:"Saves administrative work.",whyBuild:"Expected baseline utility.",valueScore:3,frequency:"Every interview",dataSources:["Interviews","Intake","Candidate profile"],exampleQuestion:"Summarize today’s interview for the hiring team."},{id:23,title:"Evidence-Backed Scorecard",category:"interview-intelligence",persona:["Recruiter","Interviewer","Hiring Manager"],why:"Scorecards are often late, vague or subjective.",how:"Map transcript evidence against agreed competencies.",when:"Post-interview.",value:"Faster, stronger evaluations.",whyBuild:"High-frequency user value.",valueScore:5,frequency:"Every interview",dataSources:["Interviews","Scorecards","Intake"],exampleQuestion:"Draft my scorecard from today’s interview evidence.",featured:!0},{id:24,title:"Next-Interviewer Brief",category:"interview-intelligence",persona:["Recruiter","Interviewer","Hiring Manager"],why:"Every interview frequently starts from zero.",how:"Summarize known evidence, remaining uncertainties and recommended focus.",when:"Before the next stage.",value:"Every interview builds on the previous interview.",whyBuild:"Strong differentiator.",valueScore:5,frequency:"Every interview",dataSources:["Interviews","Scorecards","Intake"],exampleQuestion:"Prep me for my next candidate interview.",featured:!0},{id:25,title:"Repeated-Question Detection",category:"interview-intelligence",persona:["Recruiter","Head of Talent","Recruiting Operations"],why:"Candidates frequently answer the same questions repeatedly.",how:"Compare questions and topics across interview stages.",when:"During the process.",value:"Better candidate experience and more useful interview time.",whyBuild:"Makes interview loops measurable.",valueScore:4,frequency:"Per candidate",dataSources:["Interviews"],exampleQuestion:"Which questions have we already asked this candidate?"},{id:26,title:"Competency Coverage Gaps",category:"interview-intelligence",persona:["Recruiter","Hiring Manager","Head of Talent"],why:"Important dimensions can remain completely untested.",how:"Map transcript evidence to the scorecard and role model.",when:"After interviews.",value:"Better decision quality.",whyBuild:"Core process intelligence.",valueScore:5,frequency:"Per candidate",dataSources:["Interviews","Scorecards","Intake"],exampleQuestion:"Which competencies aren't being evaluated for this candidate?"},{id:27,title:"Interviewer Missed-Signal Detection",category:"interview-intelligence",persona:["Recruiter","Head of Talent","Interviewer"],why:"Relevant evidence can appear in a conversation but never reach the written evaluation.",how:"Compare conversation evidence with submitted feedback.",when:"Post-interview.",value:"Better evaluations and calibration.",whyBuild:"Unique advantage of capturing conversations.",valueScore:4,frequency:"Every interview",dataSources:["Interviews","Scorecards"],exampleQuestion:"Did the interviewer miss any important signals in the conversation?"},{id:28,title:"Question Effectiveness",category:"interview-intelligence",persona:["Head of Talent","Recruiting Operations"],why:"Organizations rarely know which interview questions produce useful signal.",how:"Relate questions to evidence, decisions and downstream outcomes.",when:"Once sufficient historical data exists.",value:"Improve interview design.",whyBuild:"Potential proprietary data moat.",valueScore:5,frequency:"Monthly",dataSources:["Interviews","Scorecards","Historical outcomes","ATS"],exampleQuestion:"Which interview questions actually produce useful signal?"},{id:29,title:"Interview Quality Assessment",category:"interview-intelligence",persona:["Head of Talent","Interviewer","Recruiting Operations"],why:"Most interviewer coaching is anecdotal.",how:"Analyze structure, coverage, evidence generation, repetition and conversation dynamics.",when:"After interviews.",value:"Better interviewers.",whyBuild:"Creates an interviewer coaching surface.",valueScore:4,frequency:"Every interview",dataSources:["Interviews","Scorecards"],exampleQuestion:"How strong was the interview quality in this loop?"},{id:30,title:"Candidate Claim Consistency",category:"interview-intelligence",persona:["Recruiter","Hiring Manager"],why:"Candidate stories can shift between stages.",how:"Cross-reference claims across multiple conversations.",when:"After several interactions.",value:"Surface possible inconsistencies.",whyBuild:"Impossible for an ATS alone.",valueScore:3,frequency:"Per candidate",dataSources:["Interviews"],exampleQuestion:"Have this candidate’s claims stayed consistent across stages?"},{id:31,title:"Automatic Debrief Packet",category:"decisions-debriefs",persona:["Recruiter","Hiring Manager","Head of Talent"],why:"Teams waste debrief time rebuilding candidate context.",how:"Assemble evidence, evaluations, disagreements and unknowns.",when:"Before debrief.",value:"Faster, better decisions.",whyBuild:"Obvious workflow improvement.",valueScore:5,frequency:"Per finalist",dataSources:["Interviews","Scorecards","ATS","Candidate profile"],exampleQuestion:"Build the debrief packet for tomorrow’s finalist review.",featured:!0},{id:32,title:"Evidence Conflict Map",category:"decisions-debriefs",persona:["Recruiter","Hiring Manager"],why:"Interviewer disagreement matters more than averaged ratings.",how:"Compare evidence and reasoning across evaluators.",when:"Before debrief.",value:"More productive disagreement.",whyBuild:"Better than score averaging.",valueScore:5,frequency:"Per finalist",dataSources:["Interviews","Scorecards"],exampleQuestion:"Where do interviewers disagree, and on what evidence?"},{id:33,title:"Unresolved Question Detection",category:"decisions-debriefs",persona:["Recruiter","Hiring Manager"],why:"Hiring teams frequently make decisions with major unknowns.",how:"Identify role requirements without sufficient candidate evidence.",when:"Before decision.",value:"Reduce premature decisions.",whyBuild:"Strong decision-quality feature.",valueScore:5,frequency:"Per candidate",dataSources:["Interviews","Scorecards","Intake"],exampleQuestion:"What evidence are we missing before we decide?"},{id:34,title:"Debrief Agenda Generation",category:"decisions-debriefs",persona:["Recruiter","Hiring Manager"],why:"Debriefs spend too much time repeating agreed facts.",how:"Focus discussion on disagreements, unknowns and risks.",when:"Pre-debrief.",value:"Shorter and better meetings.",whyBuild:"Immediate productivity.",valueScore:4,frequency:"Per debrief",dataSources:["Interviews","Scorecards"],exampleQuestion:"What should we discuss in this debrief?"},{id:35,title:"Finalist Comparison",category:"decisions-debriefs",persona:["Recruiter","Hiring Manager","Head of Talent"],why:"Scorecard totals oversimplify complex candidates.",how:"Compare evidence side by side.",when:"Final stage.",value:"Better selection.",whyBuild:"Strong candidate-intelligence utility.",valueScore:4,frequency:"Per role",dataSources:["Interviews","Scorecards","Candidate profile"],exampleQuestion:"Compare these finalists side by side."},{id:36,title:"Decision Rationale Generation",category:"decisions-debriefs",persona:["Recruiter","Hiring Manager","Head of Talent"],why:"Organizations rarely preserve why a hiring decision was made.",how:"Synthesize supporting and contradictory evidence behind the decision.",when:"Hire/reject decision.",value:"Auditability and future learning.",whyBuild:"Creates data required for feedback loops.",valueScore:5,frequency:"Every final decision",dataSources:["Interviews","Scorecards","ATS"],exampleQuestion:"Why did we decide to hire this candidate?"},{id:37,title:"Halo-Effect Warning",category:"decisions-debriefs",persona:["Hiring Manager","Head of Talent","Recruiter"],why:"Brand-name employers or credentials can dominate judgment without evidence.",how:"Compare evaluation strength against evidence actually generated.",when:"Candidate evaluation.",value:"More disciplined judgment.",whyBuild:"Improves decision quality.",valueScore:3,frequency:"Per finalist",dataSources:["Interviews","Scorecards","Candidate profile"],exampleQuestion:"Are we overweighting brand or credentials without evidence?"},{id:38,title:"Consensus vs Evidence",category:"decisions-debriefs",persona:["Hiring Manager","Head of Talent"],why:"Consensus can still be poorly grounded.",how:"Measure evaluator agreement separately from evidence density.",when:"Debrief.",value:"Better-informed decisions.",whyBuild:"More intelligent evaluation.",valueScore:4,frequency:"Per finalist",dataSources:["Interviews","Scorecards"],exampleQuestion:"Do we have consensus, or do we have strong evidence?"},{id:39,title:"Rejection Rationale Synthesis",category:"decisions-debriefs",persona:["Recruiter","Head of Talent","Recruiting Operations"],why:"ATS rejection reasons tend to be extremely crude.",how:"Structure actual rejection reasoning from interviews and scorecards.",when:"Rejection.",value:"Better analytics and institutional learning.",whyBuild:"Powers downstream intelligence.",valueScore:5,frequency:"Every rejection",dataSources:["Interviews","Scorecards","ATS"],exampleQuestion:"What was the real reason we rejected this candidate?"},{id:40,title:"Decision Trace",category:"decisions-debriefs",persona:["Head of Talent","Recruiting Operations","Recruiter"],why:"Months later nobody remembers the evidence behind a decision.",how:"Preserve evidence → evaluation → decision → outcome.",when:"Every significant decision.",value:"Institutional memory and auditability.",whyBuild:"Core learning infrastru
232cture.",valueScore:5,frequency:"Every decision",dataSources:["Interviews","Scorecards","ATS","Historical outcomes"],exampleQuestion:"Show me the decision trace for last quarter’s PM hire."},{id:41,title:"Conversion Rate + Why",category:"funnel-process",persona:["Head of Talent","Recruiter","Recruiting Operations"],why:"ATS dashboards show conversion but rarely explain it.",how:"Join funnel events with interview evidence and rejection reasoning.",when:"Ongoing.",value:"Root-cause funnel analytics.",whyBuild:"Signature ATS + conversation-intelligence capability.",valueScore:5,frequency:"Daily",dataSources:["ATS","Interviews","Scorecards"],exampleQuestion:"What is hurting conversion on this role, and why?",featured:!0},{id:42,title:"Stage Bottleneck Diagnosis",category:"funnel-process",persona:["Head of Talent","Recruiter","Recruiting Operations"],why:"A slow stage can have many different causes.",how:"Combine timestamps, scheduling, interview activity and feedback behavior.",when:"Ongoing.",value:"Reduce time-to-hire.",whyBuild:"Strong operational value.",valueScore:5,frequency:"Daily",dataSources:["ATS","Interviews"],exampleQuestion:"Where is the bottleneck in this funnel, and what is causing it?"},{id:43,title:"Funnel Leakage Themes",category:"funnel-process",persona:["Head of Talent","Recruiter"],why:"Knowing that conversion is low is not actionable.",how:"Cluster the actual reasons candidates fail.",when:"Once enough candidates enter a role.",value:"Improve sourcing and role definition.",whyBuild:"Makes funnel analytics actionable.",valueScore:5,frequency:"Weekly",dataSources:["ATS","Interviews","Scorecards"],exampleQuestion:"Why are candidates leaking from this funnel?"},{id:44,title:"Source Quality by Eventual Signal",category:"funnel-process",persona:["Head of Talent","Recruiting Operations","Recruiter"],why:"Applicant volume is a poor measure of sourcing quality.",how:"Connect source to interview evidence, progression and final outcomes.",when:"Over time.",value:"Better sourcing investment.",whyBuild:"Better ATS analytics.",valueScore:5,frequency:"Monthly",dataSources:["ATS","Interviews","Historical outcomes"],exampleQuestion:"Which sources produce candidates with strong interview signal?"},{id:45,title:"Source Quality by Competency",category:"funnel-process",persona:["Head of Talent","Recruiter"],why:"Different sources may produce different candidate profiles.",how:"Associate sources with competency evidence.",when:"Over time.",value:"More targeted sourcing.",whyBuild:"Advanced talent intelligence.",valueScore:4,frequency:"Monthly",dataSources:["ATS","Interviews","Scorecards"],exampleQuestion:"Which sources produce strong system-design evidence?"},{id:46,title:"Time-to-Fill Root Cause",category:"funnel-process",persona:["Head of Talent","Recruiting Operations"],why:"Time-to-fill by itself does not explain what needs fixing.",how:"Decompose delays into sourcing, recruiter, HM, interviewer and candidate causes.",when:"During active roles.",value:"Actionable time-to-fill optimization.",whyBuild:"High Head-of-Talent value.",valueScore:5,frequency:"Weekly",dataSources:["ATS","Interviews"],exampleQuestion:"Why is time-to-fill high on this role?"},{id:47,title:"Process Stage Redundancy",category:"funnel-process",persona:["Head of Talent","Recruiting Operations"],why:"Some interview stages add almost no new information.",how:"Measure incremental evidence or information gained from each stage.",when:"After sufficient volume.",value:"Shorter interview processes.",whyBuild:"Strong strategic intelligence.",valueScore:5,frequency:"Quarterly",dataSources:["Interviews","Scorecards","ATS","Historical outcomes"],exampleQuestion:"Which interview stages add almost no new information?"},{id:48,title:"Interviewer Bottleneck",category:"funnel-process",persona:["Recruiter","Head of Talent","Recruiting Operations"],why:"One interviewer can slow down many candidates.",how:"Analyze stage timing and interviewer participation.",when:"Active funnel.",value:"Faster process.",whyBuild:"Easy operational improvement.",valueScore:4,frequency:"Daily",dataSources:["ATS"],exampleQuestion:"Which interviewers are bottlenecking the funnel?"},{id:49,title:"Feedback Bottleneck",category:"funnel-process",persona:["Recruiter","Head of Talent"],why:"Hiring decisions often stall while waiting for feedback.",how:"Track interview completion and feedback latency.",when:"Post-interview.",value:"Faster candidate movement.",whyBuild:"High-frequency operational utility.",valueScore:4,frequency:"Daily",dataSources:["ATS","Scorecards"],exampleQuestion:"Whose feedback is blocking candidate movement?"},{id:50,title:"Role-vs-Benchmark Anomaly",category:"funnel-process",persona:["Head of Talent","Recruiting Operations"],why:"Some roles behave unusually compared with similar searches.",how:"Compare conversion, timing and failure reasons against comparable roles.",when:"Ongoing.",value:"Early warning.",whyBuild:"Portfolio-level intelligence.",valueScore:4,frequency:"Weekly",dataSources:["ATS","Interviews","Historical outcomes"],exampleQuestion:"Which open roles look anomalous versus similar searches?"},{id:51,title:"Hiring-Manager Profile Drift",category:"calibration",persona:["Recruiter","Head of Talent","Hiring Manager"],why:"Hiring managers can progressively hire against criteria different from the original intake.",how:"Compare stated requirements to actual advancement and rejection patterns.",when:"During role.",value:"Surface changing preferences.",whyBuild:"Core role intelligence.",valueScore:5,frequency:"Weekly",dataSources:["Intake","ATS","Interviews","Scorecards"],exampleQuestion:"How has my definition of the role changed in practice?"},{id:52,title:"Interviewer Severity / Leniency",category:"calibration",persona:["Head of Talent","Recruiting Operations"],why:"Different interviewers use rating scales differently.",how:"Normalize ratings using evidence and downstream outcomes.",when:"After enough interviews.",value:"Better calibration.",whyBuild:"Useful at organizational scale.",valueScore:4,frequency:"Monthly",dataSources:["Scorecards","Interviews","Historical outcomes"],exampleQuestion:"Which interviewers are systematically severe or lenient?"},{id:53,title:"Pass-Through Anomaly",category:"calibration",persona:["Head of Talent","Recruiting Operations"],why:"Specific interviewers may systematically advance or reject far more candidates.",how:"Connect interviewer participation with ATS progression.",when:"Over time.",value:"Find calibration issues.",whyBuild:"Strong Head-of-TA signal.",valueScore:4,frequency:"Monthly",dataSources:["ATS","Scorecards"],exampleQuestion:"Which interviewers are uncalibrated on pass-through?"},{id:54,title:"Competency Disagreement",category:"calibration",persona:["Head of Talent","Hiring Manager","Recruiter"],why:"Different interviewers interpret the same competency differently.",how:"Compare ratings and supporting evidence on common candidates.",when:"Ongoing.",value:"Sharper competency definitions.",whyBuild:"Improves the evaluation system itself.",valueScore:5,frequency:"Weekly",dataSources:["Scorecards","Interviews"],exampleQuestion:"Where do interviewers disagree on the same competency?"},{id:55,title:"Evaluation vs Evidence Mismatch",category:"calibration",persona:["Head of Talent","Recruiter","Interviewer"],why:"Strong ratings sometimes have little supporting evidence.",how:"Compare scorecards against actual interview transcript evidence.",when:"Post-interview.",value:"More reliable feedback.",whyBuild:"Highly differentiated conversation intelligence.",valueScore:5,frequency:"Every interview",dataSources:["Interviews","Scorecards"],exampleQuestion:"Which evaluations lack supporting evidence from the conversation?",featured:!0},{id:56,title:"Interviewer Coaching",category:"calibration",persona:["Head of Talent","Interviewer"],why:"Most employees receive little help becoming better interviewers.",how:"Surface specific behaviors, missed opportunities and stronger alternatives.",when:"Post-interview.",value:"Better interviewers.",whyBuild:"Additional high-value product surface.",valueScore:4,frequency:"Weekly",dataSources:["Interviews","Scorecards"],exampleQuestion:"What c
232oaching would help this interviewer improve?"},{id:57,title:"Hiring-Manager Responsiveness",category:"calibration",persona:["Head of Talent","Recruiter"],why:"Talent teams frequently lose days waiting for managers.",how:"Measure feedback and decision latency.",when:"Ongoing.",value:"Accountability and faster hiring.",whyBuild:"Practical operational value.",valueScore:3,frequency:"Weekly",dataSources:["ATS"],exampleQuestion:"Which hiring managers are slowing decisions?"},{id:58,title:"Feedback Quality Scoring",category:"calibration",persona:["Head of Talent","Recruiter","Recruiting Operations"],why:"“Good candidate” is not useful feedback.",how:"Evaluate specificity, evidence and competency coverage.",when:"Feedback submission.",value:"Stronger evaluations.",whyBuild:"Improves data quality.",valueScore:4,frequency:"Every interview",dataSources:["Scorecards","Interviews"],exampleQuestion:"Which feedback submissions lack usable evidence?"},{id:59,title:"Panel Calibration Report",category:"calibration",persona:["Head of Talent","Hiring Manager","Recruiter"],why:"Teams need a shared understanding of how they evaluate.",how:"Aggregate disagreement, competency gaps and advancement behavior.",when:"During active roles.",value:"Better hiring teams.",whyBuild:"Strong role-level intelligence.",valueScore:5,frequency:"Weekly",dataSources:["Scorecards","Interviews","ATS"],exampleQuestion:"How calibrated is this hiring panel?"},{id:60,title:"Process Adherence",category:"calibration",persona:["Head of Talent","Recruiting Operations"],why:"Teams can ignore the interview structure they originally designed.",how:"Compare actual conversations with the planned evaluation process.",when:"Ongoing.",value:"More consistent hiring.",whyBuild:"Useful for scaling organizations.",valueScore:4,frequency:"Weekly",dataSources:["Interviews","Intake","Scorecards"],exampleQuestion:"Are interviewers following the planned evaluation process?"},{id:61,title:"Candidate Objection Themes",category:"candidate-experience",persona:["Head of Talent","Recruiter"],why:"Recruiters hear objections individually but rarely aggregate them.",how:"Extract and cluster candidate concerns across conversations.",when:"Ongoing.",value:"Improve role positioning and candidate experience.",whyBuild:"Turns conversations into market intelligence.",valueScore:5,frequency:"Weekly",dataSources:["Interviews"],exampleQuestion:"What are candidates consistently telling us?"},{id:62,title:"Offer Decline Intelligence",category:"candidate-experience",persona:["Head of Talent","Recruiter"],why:"“Offer declined” tells leaders almost nothing.",how:"Analyze conversations, offer data and structured decline reasons.",when:"Offer loss.",value:"Improve future closing.",whyBuild:"Direct business value.",valueScore:5,frequency:"Per decline",dataSources:["ATS","Interviews"],exampleQuestion:"Why did we lose this offer, really?"},{id:63,title:"Candidate Dropout Reasons",category:"candidate-experience",persona:["Head of Talent","Recruiter","Recruiting Operations"],why:"ATS systems often know that a candidate withdrew but not the real reason.",how:"Combine withdrawal event with preceding conversations and process events.",when:"Candidate withdrawal.",value:"Fix candidate-experience problems.",whyBuild:"Strong funnel intelligence.",valueScore:5,frequency:"Weekly",dataSources:["ATS","Interviews"],exampleQuestion:"Why are candidates withdrawing from our process?"}
232,{id:64,title:"Candidate Sentiment / Concern Signals",category:"candidate-experience",persona:["Recruiter"],why:"Candidates can reveal concern before formally withdrawing.",how:"Detect recurring explicit concern themes without relying on unsupported psychological inference.",when:"Throughout process.",value:"Earlier intervention.",whyBuild:"Useful when evidence-based.",valueScore:3,frequency:"Per candidate",dataSources:["Interviews"],exampleQuestion:"Is this candidate showing concern signals we should address?"},{id:65,title:"Compensation Market Intelligence",category:"candidate-experience",persona:["Head of Talent","Recruiter"],why:"Candidate compensation expectations are valuable real-time market information.",how:"Aggregate expectations by role, seniority and geography.",when:"Ongoing.",value:"Better compensation strategy.",whyBuild:"Potential proprietary talent dataset.",valueScore:5,frequency:"Weekly",dataSources:["Interviews","Historical outcomes"],exampleQuestion:"What are candidates saying about compensation for this role family?"},{id:66,title:"Competitor Intelligence",category:"candidate-experience",persona:["Head of Talent"],why:"Candidates frequently mention competing employers and offers.",how:"Extract and aggregate competitor mentions.",when:"Candidate conversations.",value:"Understand the talent market.",whyBuild:"Novel market intelligence.",valueScore:4,frequency:"Monthly",dataSources:["Interviews"],exampleQuestion:"Which competitors keep appearing in candidate conversations?"},{id:67,title:"Employer-Brand Feedback",category:"candidate-experience",persona:["Head of Talent","Recruiter"],why:"Candidates openly explain what attracts or concerns them.",how:"Aggregate relevant candidate questions and reactions.",when:"Ongoing.",value:"Improve recruiting narrative.",whyBuild:"Bridges recruiting and employer brand.",valueScore:4,frequency:"Monthly",dataSources:["Interviews"],exampleQuestion:"What employer-brand themes are candidates raising?"},{id:68,title:"Process-Friction Themes",category:"candidate-experience",persona:["Head of Talent","Recruiting Operations","Recruiter"],why:"Candidates often encounter recurring frustrations.",how:"Aggregate complaints about scheduling, stages, communication and process.",when:"Ongoing.",value:"Better candidate experience.",whyBuild:"Actionable feedback loop.",valueScore:4,frequency:"Monthly",dataSources:["Interviews","ATS"],exampleQuestion:"Where is our process creating friction for candidates?"},{id:69,title:"Candidate Fatigue Detection",category:"candidate-experience",persona:["Recruiter","Head of Talent"],why:"Long and repetitive loops can damage conversion.",how:"Combine stage count, elapsed time, question repetition and candidate concerns.",when:"During process.",value:"Identify unnecessarily burdensome loops.",whyBuild:"Links process design to experience.",valueScore:4,frequency:"Per candidate",dataSources:["ATS","Interviews"],exampleQuestion:"Is this candidate hitting process fatigue?"},{id:70,title:"Closing Brief",category:"candidate-experience",persona:["Recruiter","Hiring Manager"],why:"Recruiters need to remember exactly what matters to a candidate when closing.",how:"Synthesize motivations, concerns, competing offers and compensation.",when:"Before offer or closing call.",value:"Better offer conversion.",whyBuild:"Immediate recruiter utility.",valueScore:5,frequency:"Every offer",dataSources:["Interviews","ATS","Candidate profile"],exampleQuestion:"Give me a closing brief for this candidate.",featured:!0},{id:71,title:"Automatic ATS Updates",category:"recruiter-productivity",persona:["Recruiter","Recruiting Operations"],why:"Recruiters spend substantial time copying conversation data into systems.",how:"Convert captured conversations into structured ATS fields.",when:"Post-conversation.",value:"Time saved and better ATS data.",whyBuild:"Essential ATS integration value.",valueScore:5,frequency:"Every conversation",dataSources:["Interviews","ATS"],exampleQuestion:"Update the ATS from today’s screen notes."},{id:72,title:"Scorecard Drafting",category:"recruiter-productivity",persona:["Recruiter","Interviewer"],why:"Feedback administration causes delays.",how:"Draft scorecards from interview evidence.",when:"Post-interview.",value:"Save minutes after every interview.",whyBuild:"High-frequency wedge.",valueScore:5,frequency:"Every interview",dataSources:["Interviews","Scorecards","Intake"],exampleQuestion:"Draft my scorecard from this interview."},{id:73,title:"Hiring-Manager Update",category:"recruiter-productivity",persona:["Recruiter"],why:"Recruiters repeatedly summarize candidate and role state.",how:"Generate concise role and pipeline updates from current context.",when:"Weekly or requested.",value:"Less coordination work.",whyBuild:"Practical daily workflow.",valueScore:4,frequency:"Weekly",dataSources:["ATS","Interviews","Scorecards"],exampleQuestion:"Draft a hiring-manager update for this role."},{id:74,title:"Candidate Follow-Up Draft",category:"recruiter-productivity",persona:["Recruiter"],why:"Personal follow-ups require remembering conversation details.",how:"Draft communications from candidate context.",when:"Post-call.",value:"Faster personalized communication.",whyBuild:"Useful utility.",valueScore:3,frequency:"Daily",dataSources:["Interviews","Candidate profile"],exampleQuestion:"Draft a follow-up to this candidate from today’s call."},{id:75,title:"Daily Recruiter Priorities",category:"recruiter-productivity",persona:["Recruiter"],why:"Recruiters manage many candidates and roles simultaneously.",how:"Combine ATS status, stale processes, outstanding actions and risk.",when:"Start of day.",value:"Focus and reduced cognitive load.",whyBuild:"Creates an operating surface.",valueScore:5,frequency:"Daily",dataSources:["ATS","Interviews"],exampleQuestion:"What should I do today?",featured:!0},{id:76,title:"Next Best Action",category:"recruiter-productivity",persona:["Recruiter"],why:"Recruiters must constantly decide what deserves attention.",how:"Analyze stage, age, candidate context, blockers and urgency.",when:"Continuously.",value:"Fewer dropped tasks.",whyBuild:"Strong operating-system behavior.",valueScore:5,frequency:"Daily",dataSources:["ATS","Interviews"],exampleQuestion:"What is the next best action on this candidate?"},{id:77,title:"Role Summary on Demand",category:"recruiter-productivity",persona:["Recruiter","Hiring Manager","Head of Talent"],why:"Recruiters currently carry role state in their own heads.",how:"Synthesize all relevant current activity and changes.",when:"Anytime.",value:"Reduced cognitive burden.",whyBuild:"Core memory proposition.",valueScore:5,frequency:"Daily",dataSources:["ATS","Interviews","Intake","Scorecards"],exampleQuestion:"Summarize the current state of this role."},{id:78,title:"Automatic Interview Prep",category:"recruiter-productivity",persona:["Recruiter","Interviewer","Hiring Manager"],why:"Candidate and role preparation consumes time.",how:"Combine CV, role requirements and previous conversations.",when:"Before interview.",value:"Better preparation with less effort.",whyBuild:"Frequent utility.",valueScore:4,frequency:"Every interview",dataSources:["Candidate profile","Intake","Interviews"],exampleQuestion:"Prep me for my next interview."},{id:79,title:"Intake Follow-Up Generator",category:"recruiter-productivity",persona:["Recruiter"],why:"Recruiters may not know what the hiring manager failed to define.",how:"Detect unresolved questions from the intake.",when:"Immediately after intake.",value:"Stronger role kickoff.",whyBuild:"Improves recruiter performance.",valueScore:4,frequency:"Per role",dataSources:["Intake","Interviews"],exampleQuestion:"What follow-up questions should I ask after this intake?"},{id:80,title:"Recruiting Admin Elimination",category:"recruiter-productivity",persona:["Recruiter","Recruiting Operations","Head of Talent"],why:"Recruiting involves continuous repetitive copy/paste and status work.",how:"Convert conversations and process events into updates, actions and structured data.",when:"Continuous.",value:"Greater recruiter capacity.",whyBuild:"Clear ROI.",valueScore:5,frequency:"Daily",dataSources:["Interviews","ATS","Scorecards"],exampleQuestion:"What admin work can Confeti take off my plate today?"},{id:81,title:"Portfolio Role Health",category:"head-of-talent",persona:["Head of Talent"],why:"A Head of Talent cannot inspect every open requisition manually.",how:"Rank roles by risk and explain the causes.",when:"Ongoing.",value:"Management leverage.",whyBuild:"Core buyer surface.",valueScore:5,frequency:"Daily",dataSources:["ATS","Interviews","Scorecards"],exampleQuestion:"Which roles need my attention?",featured:!0},{id:82,title:"“What Needs My Attention?”",category:"head-of-talent",persona:["Head of Talent"],why:"Dashboards still require leaders to interpret everything themselves.",how:"Surface meaningful exceptions, causes and suggested actions.",when:"Daily.",value:"Executive focus.",whyBuild:"Turns analytics into an agent.",valueScore:5,frequency:"Daily",dataSources:["ATS","Interviews","Scorecards"],exampleQuestion:"What needs my attention today?",featured:!0},{id:83,title:"Hiring Plan Risk",category:"head-of-talent",persona:["Head of Talent"],why:"Recruiting delays can affect company plans.",how:"Combine hiring plan, role trajectories, process health and capacity.",when:"Ongoing.",value:"Forecast execution risk.",whyBuild:"Elevates TA intelligence to company-level planning.",valueScore:5,frequency:"Weekly",dataSources:["ATS","Historical outcomes","Interviews"],exampleQuestion:"Where is the hiring plan at risk this quarter?"},{id:84,title:"Time-to-Fill Forecast",category:"head-of-talent",persona:["Head of Talent","Recruiting Operations"],why:"Historical averages poorly represent an individual active role.",how:"Model the current funnel, velocity and historical comparable roles.",when:"Active role.",value:"Better planning.",whyBuild:"Useful predictive intelligence.",valueScore:4,frequency:"Weekly",dataSources:["ATS","Historical outcomes"],exampleQuestion:"When is this role likely to fill?"},{id:85,title:"Recruiter Capacity Intelligence",category:"head-of-talent",persona:["Head of Talent","Recruiting Operations"],why:"Number of open requisitions alone is a poor workload metric.",how:"Include candidate volume, interview activity, role difficulty and process load.",when:"Ongoing.",value:"Better team allocation.",whyBuild:"Strong Head-of-TA utility.",valueScore:5,frequency:"Weekly",dataSources:["ATS","Interviews"],exampleQuestion:"How loaded is each recruiter right now?"},{id:86,title:"TA Productivity Drivers",category:"head-of-talent",persona:["Head of Talent"],why:"Output metrics rarely explain why some workflows perform better.",how:"Correlate recruiter behavior and process design with outcomes.",when:"Over time.",value:"Improve team productivity.",whyBuild:"Management intelligence.",valueScore:4,frequency:"Monthly",dataSources:["ATS","Interviews","Historical outcomes"],exampleQuestion:"What is actually driving TA productivity differences?"},{id:87,title:"Hiring-Quality Leading Indicators",category:"head-of-talent",persona:["Head of Talent"],why:"Quality-of-hire normally appears long after the recruiting process ends.",how:"Analyze evidence quality, calibration and decision-process strength.",when:"Hiring decisions.",value:"Earlier risk visibility.",whyBuild:"Strategic intelligence.",valueScore:4,frequency:"Monthly",dataSources:["Interviews","Scorecards","Historical outcomes"],exampleQuestion:"Which recent hires show leading indicators of quality risk?"},{id:88,title:"Organization-Wide Interview Quality",category:"head-of-talent",persona:["Head of Talent"],why:"Hundreds of interviews happen without centralized visibility.",how:"Aggregate evidence coverage, repetition, calibration and feedback quality.",when:"Ongoing.",value:"Improve hiring quality organization-wide.",whyBuild:"Executive intelligence.",valueScore:5,frequency:"Monthly",dataSources:["Interviews","Scorecards"],exampleQuestion:"How is interview quality across the organization?"},{id:89,title:"Talent-Market Change Detection",category:"head-of-talent",persona:["Head of Talent"],why:"Market conditions can change faster than compensation surveys.",how:"Aggregate themes from candidate conversations over time.",when:"Continuously.",value:"Real-time market awareness.",whyBuild:"Potential data moat.",valueScore:5,frequency:"Weekly",dataSources:["Interviews","Historical outcomes"],exampleQuestion:"What changed in the talent market this month?"},{id:90,title:"Weekly Head-of-Talent Brief",category:"head-of-talent",persona:["Head of Talent"],why:"Leaders should not need to interrogate several dashboards.",how:"Summarize material changes, risks, anomalies and recommendations.",when:"Weekly.",value:"Compress management work.",whyBuild:"Creates a habitual executive product.",valueScore:5,frequency:"Weekly",dataSources:["ATS","Interviews","Scorecards","Historical outcomes"],exampleQuestion:"Give me this week’s Head of Talent brief."},{id:91,title:"Reopen an Old Role Intelligently",category:"organizational-memory",persona:["Recruiter","Head of Talent","Hiring Manager"],why:"Companies repeatedly relearn the same hiring lessons.",how:"Retrieve previous role definition, candidates, rejection patterns and lessons.",when:"A similar role opens again.",value:"Faster, smarter kickoff.",whyBuild:"Demonstrates compounding value.",valueScore:5,frequency:"Per role",dataSources:["Intake","ATS","Interviews","Historical outcomes"],exampleQuestion:"What did we learn the last time we hired this role?"},{id:92,title:"Learn From Successful Hires",category:"organizational-memory",persona:["Head of Talent","Hiring Manager"],why:"Recruiting normally stops learning once someone is hired.",how:"Connect post-hire success data with original candidate evidence.",when:"Months after hire.",value:"Improve future selection.",whyBuild:"Potential long-term moat.",valueScore:5,frequency:"Quarterly",dataSources:["Post-hire data","Interviews","Scorecards","Historical outcomes"],exampleQuestion:"What evidence predicted our strongest recent hires?"},{id:93,title:"Success Profile Evolution",category:"organizational-memory",persona:["Head of Talent","Hiring Manager"],why:"What predicts success may differ from what the company originally believed.",how:"Compare hiring signals with subsequent employee outcomes.",when:"Sufficient post-hire history.",value:"Better future hiring criteria.",whyBuild:"Ultimate closed feedback loop.",valueScore:5,frequency:"Quarterly",dataSources:["Post-hire data","Interviews","Scorecards","Intake"],exampleQuestion:"How should our success profile evolve based on outcomes?"},{id:94,title:"Cross-Role Failure Patterns",category:"organizational-memory",persona:["Head of Talent"],why:"Companies can repeatedly make the same evaluation mistake across different searches.",how:"Aggregate rejection, progression and evidence patterns across roles.",when:"Over time.",value:"Organizational learning.",whyBuild:"Difficult to discover manually.",valueScore:5,frequency:"Monthly",dataSources:["ATS","Interviews","Scorecards","Historical outcomes"],exampleQuestion:"What failure patterns keep repeating across roles?"},{id:95,title:"Interviewer Learning Over Time",category:"organizational-memory",persona:["Head of Talent","Interviewer"],why:"Interviewing experience should make employees better interviewers.",how:"Track behaviors, evidence generation and outcomes longitudinally.",when:"Months.",value:"Better interviewer development.",whyBuild:"Compounding coaching layer.",valueScore:4,frequency:"Monthly",dataSources:["Interviews","Scorecards","Historical outcomes"],exampleQuestion:"How have our interviewers improved over the last six months?"},{id:96,title:"Institutional Memory When Recruiters Leave",category:"organizational-memory",persona:["Head of Talent","Recruiting Operations"],why:"Recruiting knowledge often walks out the door with individual employees.",how:"Preserve role, candidate and decision context independent of individuals.",when:"Team changes.",value:"Business continuity.",whyBuild:"Strong enterprise value.",valueScore:5,frequency:"Event-driven",dataSources:["ATS","Interviews","Intake","Scorecards"],exampleQuestion:"What hiring context do we keep if this recruiter leaves?"},{id:97,title:"Evidenc
232e / Audit Trail",category:"organizational-memory",persona:["Head of Talent","Recruiting Operations"],why:"Hiring intelligence and AI recommendations must be traceable.",how:"Link every important assertion back to transcript, ATS event or source record.",when:"Every insight and decision.",value:"Trust, reviewability and defensibility.",whyBuild:"Foundational product requirement.",valueScore:5,frequency:"Continuous",dataSources:["Interviews","ATS","Scorecards"],exampleQuestion:"Show the evidence behind this recommendation."},{id:98,title:"ATS Data Quality Detection",category:"organizational-memory",persona:["Recruiting Operations","Head of Talent"],why:"ATS information is frequently incomplete or incorrect.",how:"Compare recorded hiring activity against ATS records.",when:"Continuous.",value:"Better system-of-record accuracy.",whyBuild:"Makes the intelligence layer improve underlying data.",valueScore:4,frequency:"Daily",dataSources:["ATS","Interviews"],exampleQuestion:"Where does our ATS disagree with what actually happened?"},{id:99,title:"Hiring Process Experiment Evaluation",category:"organizational-memory",persona:["Head of Talent","Recruiting Operations"],why:"Talent teams change processes without knowing whether they improved anything.",how:"Compare before/after conversion, timing, evidence quality and outcomes.",when:"After process changes.",value:"Evidence-based optimization.",whyBuild:"Mature hiring-intelligence capability.",valueScore:4,frequency:"Monthly",dataSources:["ATS","Interviews","Historical outcomes"],exampleQuestion:"Did our process change actually improve outcomes?"},{id:100,title:"Company Hiring Brain",category:"organizational-memory",persona:["Head of Talent","Hiring Manager","Recruiter"],why:"Every hiring process generates knowledge that normally disappears.",how:"Connect roles, candidates, interviews, decisions, outcomes and organizational learning.",when:"Continuously.",value:"Hiring gets progressively smarter.",whyBuild:"This is the long-term Confeti product thesis.",valueScore:5,frequency:"Continuous",dataSources:["ATS","Interviews","Intake","Scorecards","Historical outcomes","Post-hire data"],exampleQuestion:"What has our company learned about hiring that we should reuse?",featured:!0}];Object.fromEntries(wp.map(e=>[e.id,e]));wp.filter(e=>e.featured).map(e=>e.id);function aH({active:e,onSelect:t}){return d.jsxs("div",{role:"tablist","aria-label":"Use case categories",className:"flex gap-x-1 gap-y-1 overflow-x-auto [-ms-overflow-style:none] [scrollbar-width:none] md:flex-wrap [&::-webkit-scrollbar]:hidden",children:[d.jsx(MS,{selected:e==="all",onClick:()=>t("all"),label:"All"}),O4.map(n=>d.jsx(MS,{selected:e===n.id,onClick:()=>
232t(n.id),label:n.shortName,description:n.name},n.id))]})}function MS({selected:e,onClick:t,label:n,description:i}){return d.jsx("button",{type:"button",role:"tab","aria-selected":e,"aria-label":i??n,onClick:t,className:Re("shrink-0 rounded-full px-3 py-1.5 text-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-stone-400",e?"bg-stone-900 text-white":"text-stone-500 hover:bg-stone-200/70 hover:text-stone-800"),children:n})}function oH({value:e,onChange:t}){const[n,i]=P.useState(0),[s,r]=P.useState(!1);return P.useEffect(()=>{const o=window.matchMedia("(prefers-reduced-motion: reduce)");r(o.matches);const c=()=>r(o.matches);return o.addEventListener("change",c),()=>o.removeEventListener("change",c)},[]),P.useEffect(()=>{if(s||e)return;const o=window.setInterval(()=>{i(c=>(c+1)%RS.length)},3200);return()=>window.clearInterval(o)},[s,e]),d.jsxs("div",{children:[d.jsx("label",{htmlFor:"hiring-intel-search",className:"sr-only",children:"Search hiring intelligence questions"}),d.jsxs("div",{className:"flex items-center gap-3 border-b border-stone-300 pb-3 focus-within:border-stone-800",children:[d.jsx("span",{className:"text-stone-400","aria-hidden":!0,children:d.jsx("svg",{viewBox:"0 0 24 24",className:"h-5 w-5",fill:"none",children:d.jsx("path",{d:"M11 5.5a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11ZM19.5 19.5 16 16",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),d.jsx("input",{id:"hiring-intel-search",type:"search",value:e,onChange:o=>t(o.target.value),placeholder:RS[n],className:"w-full bg-transparent text-lg text-stone-800 placeholder:text-stone-400 focus:outline-none md:text-[20px] md:tracking-[-0.35px]",autoComplete:"off"}),e?d.jsx("button",{type:"button",onClick:()=>t(""),className:"shrink-0 text-xs font-medium text-stone-500 hover:text-stone-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-stone-400",children:"Clear"}):null]})]})}const L4={valueTiers:[],frequencies:[],personas:[],dataRequired:[]};function lH({filters:e,onChange:t}){const[n,i]=P.useState(!1),s=e.valueTiers.length+e.frequencies.length+e.personas.length+e.dataRequired.length,r=(c,u)=>{const h=e[c],f=h.includes(u)?h.filter(m=>m!==u):[...h,u];t({...e,[c]:f})},o=()=>t(L4);return d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center justify-between gap-3",children:[d.jsxs("button",{type:"button",onClick:()=>i(c=>!c),"aria-expanded":n,className:"inline-flex items-center gap-2 text-sm font-medium text-stone-600 hover:text-stone-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-stone-400",children:["Filters",s>0?d.jsx("span",{className:"tabular-nums text-[#C97B3A]",children:s}):null,d.jsx("span",{className:"text-stone-400","aria-hidden":!0,children:n?"−":"+"})]}),s>0?d.jsx("button",{type:"button",onClick:o,className:"text-xs font-medium text-stone-400 hover:text-stone-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-stone-400",children:"Clear"}):null]}),n?d.jsxs("div",{className:"mt-5 grid gap-6 border-t border-stone-200/80 pt-5 md:grid-cols-2 lg:grid-cols-4",children:[d.jsx(ih,{label:"Value",children:nH.map(c=>d.jsx(sh,{label:c,selected:e.valueTiers.includes(c),onClick:()=>r("valueTiers",c)},c))}),d.jsx(ih,{label:"Frequency",children:iH.map(c=>d.jsx(sh,{label:c,selected:e.frequencies.includes(c),onClick:()=>r("frequencies",c)},c))}),d.jsx(ih,{label:"Persona",children:sH.map(c=>d.jsx(sh,{label:c,selected:e.personas.includes(c),onClick:()=>r("personas",c)},c))}),d.jsx(ih,{label:"Data required",children:rH.map(c=>d.jsx(sh,{label:c,selected:e.dataRequired.includes(c),onClick:()=>r("dataRequired",c)},c))})]}):null]})}function ih({label:e,children:t}){return d.jsxs("fieldset",{children:[d.jsx("legend",{className:"text-[11px] font-semibold uppercase tracking-[0.12em] text-stone-400",children:e}),d.jsx("div",{className:"mt-2 flex flex-wrap gap-x-3 gap-y-1.5",children:t})]})}function sh({label:e,selected:t,onClick:n}){return d.jsx("button",{type:"button","aria-pressed":t,onClick:n,className:Re("text-xs transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-stone-400",t?"font-medium text-[#C97B3A] underline underline-offset-2":"text-stone-500 hover:text-stone-800"),children:e})}function cH(e,t){return t.length?t.includes(M4(e)):!0}function dH({useCase:e,onOpen:t,highlighted:n}){const i=G0[e.category],s=U0(e.valueScore);return d.jsx("article",{className:Re("group border-b border-stone-200/70",n?"bg-[#fffaf4]/70":null),children:d.jsxs("button",{type:"button",onClick:()=>t(e),className:"flex w-full items-baseline justify-between gap-4 py-4 text-left transition-colors hover:bg-white/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#1d3a66] focu
232s-visible:ring-offset-2 md:gap-8 md:py-[18px]",children:[d.jsxs("div",{className:"min-w-0 flex-1",children:[d.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-2 gap-y-0.5",children:[d.jsx("h3",{className:"text-[16px] font-medium tracking-[-0.25px] text-stone-900 md:text-[17px]",children:e.title}),e.featured?d.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.12em] text-[#C97B3A]",children:"Featured"}):null]}),d.jsx("p",{className:"mt-1 line-clamp-1 text-sm leading-6 text-stone-500",children:e.value})]}),d.jsxs("div",{className:"hidden shrink-0 items-baseline gap-3 text-xs text-stone-400 sm:flex",children:[d.jsx("span",{className:"max-w-[140px] truncate",children:i.shortName}),d.jsxs("span",{className:"tabular-nums","aria-label":`Value ${e.valueScore} of 5`,children:[e.valueScore,"/5"]}),d.jsx("span",{className:"w-20 truncate text-right",children:e.frequency})]}),d.jsx("span",{className:"shrink-0 text-stone-300 transition-colors group-hover:text-[#1d3a66]","aria-hidden":!0,children:"→"}),d.jsxs("span",{className:"sr-only",children:[s,". ",i.name,". ",e.frequency,"."]})]})})}const Rt={fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"};function Ji({className:e,title:t,children:n}){return d.jsxs("svg",{viewBox:"0 0 24 24",className:Re("h-5 w-5 shrink-0",e),"aria-hidden":t?void 0:!0,role:t?"img":void 0,children:[t?d.jsx("title",{children:t}):null,n]})}function uH(e){return d.jsxs(Ji,{...e,children:[d.jsx("path",{...Rt,d:"M6 4.5h9.5A2.5 2.5 0 0 1 18 7v13.5H8.5A2.5 2.5 0 0 1 6 18V4.5Z"}),d.jsx("path",{...Rt,d:"M9 9h6M9 12.5h4.5"}),d.jsx("path",{...Rt,d:"M14.5 16.5c.8-1.8 2-2.7 3.5-2.7"})]})}function hH(e){return d.jsxs(Ji,{...e,children:[d.jsx("path",{...Rt,d:"M7 7.5h10v12H7z"}),d.jsx("path",{...Rt,d:"M9 5.5h8v2H9z"}),d.jsx("path",{...Rt,d:"M5 9.5h10v12H5z"}),d.jsx("path",{...Rt,d:"M7.5 13h5M7.5 16h3.5"})]})}function pH(e){return d.jsxs(Ji,{...e,children:[d.jsx("path",{...Rt,d:"M4.5 7.5h9a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H9l-3 2.5V15.5h-1.5a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2Z"}),d.jsx("path",{...Rt,d:"M11.5 6h6a2 2 0 0 1 2 2v3.5a2 2 0 0 1-2 2H17v2l-2.2-2"})]})}function fH(e){return d.jsxs(Ji,{...e,children:[d.jsx("path",{...Rt,d:"M12 4.5v12.5M8 19.5h8"}),d.jsx("path",{...Rt,d:"M5.5 10.5 8 7.5l2.5 3H5.5ZM13.5 10.5 16 7.5l2.5 3h-5Z"})]})}function mH(e){return d.jsx(Ji,{...e,children:d.jsx("path",{...Rt,d:"M5 5.5h14l-4.5 6.5v5l-5 2.5v-7.5L5 5.5Z"})})}function gH(e){return d.jsxs(Ji,{...e,children:[d.jsx("path",{...Rt,d:"M4.5 16.5 9 8.5l3.5 5 3-7.5 4 10.5"}),d.jsx("path",{...Rt,d:"M4 19.5h16"})]})}function xH(e){return d.jsxs(Ji,{...e,children:[d.jsx("path",{...Rt,d:"M12 19.5v-3"}),d.jsx("path",{...Rt,d:"M8 14.5a5.5 5.5 0 0 1 8 0"}),d.jsx("path",{...Rt,d:"M5.5 11.5a9 9 0 0 1 13 0"}),d.jsx("circle",{cx:"12",cy:"17.5",r:"1",fill:"currentColor",stroke:"none"})]})}function vH(e){return d.jsx(Ji,{...e,children:d.jsx("path",{...Rt,d:"M5 12h4l2-5 3 10 2-5h3"})})}function yH(e){return d.jsx(Ji,{...e,children:d.jsx("path",{...Rt,d:"M12 4.5 14.5 10H20l-4.5 3.5L17 19.5 12 16l-5 3.5 1.5-6L4 10h5.5L12 4.5Z"})})}function bH(e){return d.jsxs(Ji,{...e,children:[d.jsx("path",{...Rt,d:"M6 6.5h12v3H6zM6 11.5h12v3H6zM6 16.5h12v3H6z"}),d.jsx("path",{...Rt,d:"M9 8h.01M9 13h.01M9 18h.01"})]})}const wH={"role-definition":uH,"candidate-intelligence":hH,"interview-intelligence":pH,"decisions-debriefs":fH,"funnel-process":mH,calibration:gH,"candidate-experience":xH,"recruiter-productivity":vH,"head-of-talent":yH,"organizational-memory":bH};function _H({category:e,className:t}){const n=wH[e];return d.jsx(n,{className:t})}function kH({score:e,className:t}){return d.jsxs("span",{className:Re("inline-flex items-center gap-0.5",t),"aria-label":`Value rating ${e} out of 5`,children:[Array.from({length:5},(n,i)=>d.jsx("span",{className:Re("h-1.5 w-1.5 rounded-full",i<e?"bg-[#C97B3A]":"bg-stone-300"),"aria-hidden":!0},i)),d.jsxs("span",{className:"sr-only",children:[e,"/5"]}),d.jsxs("span",{className:"ml-1.5 text-xs font-medium text-stone-500","aria-hidden":!0,children:[e,"/5"]})]})}function SH({useCase:e,onClose:t}){const n=xd(),i=P.useRef(null);return P.useEffect(()=>{var o;if(!e)return;const s=document.body.style.overflow;document.body.style.overflow="hidden",(o=i.current)==null||o.focus();const r=c=>{c.key==="Escape"&&t()};return window.addEventListener("keydown",r),()=>{document.body.style.overflow=s,window.removeEventListener("keydown",r)}},[e,t]),d.jsx(S0,{children:e?d.jsxs(it.div,{className:"fixed inset-0 z-[100000] flex items-end justify-center md:items-stretch md:justify-end",role:"dialog","aria-modal":"true","aria-labelledby":`use-case-title-${e.id}`,initial:n?!1:{opacity:0}
232,animate:{opacity:1},exit:n?void 0:{opacity:0},children:[d.jsx("button",{type:"button","aria-label":"Close detail",className:"absolute inset-0 bg-stone-900/35",onClick:t}),d.jsxs(it.div,{initial:n?!1:{x:40,opacity:0},animate:{x:0,opacity:1},exit:n?void 0:{x:48,opacity:0},transition:{duration:.28,ease:[.16,1,.3,1]},className:"relative z-10 flex max-h-[92vh] w-full max-w-xl flex-col overflow-hidden rounded-t-2xl bg-[#faf8f6] shadow-[0_24px_64px_rgba(15,23,42,0.18)] md:h-full md:max-h-none md:rounded-none",children:[d.jsxs("div",{className:"flex items-start justify-between gap-4 border-b border-stone-200 px-5 py-4 md:px-7 md:py-5",children:[d.jsxs("div",{className:"flex items-start gap-3",children:[d.jsx(_H,{category:e.category,className:"mt-1 h-5 w-5 text-[#1d3a66]"}),d.jsxs("div",{children:[d.jsx("p",{className:"text-xs text-stone-400",children:G0[e.category].name}),d.jsx("h2",{id:`use-case-title-${e.id}`,className:"mt-0.5 text-xl font-medium tracking-[-0.4px] text-stone-900 md:text-2xl",children:e.title})]})]}),d.jsx("button",{ref:i,type:"button",onClick:t,className:"text-sm font-medium text-stone-500 hover:text-stone-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-stone-400",children:"Close"})]}),d.jsxs("div",{className:"overflow-y-auto px-5 py-5 md:px-7 md:py-6",children:[d.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[d.jsx(kH,{score:e.valueScore}),d.jsx("span",{className:"text-xs text-stone-400",children:e.frequency}),d.jsx("span",{className:"text-xs text-[#C97B3A]",children:U0(e.valueScore)})]}),d.jsxs("p",{className:"mt-5 text-[15px] leading-7 text-stone-800",children:[d.jsx("span",{className:"text-stone-400",children:"“"}),e.exampleQuestion,d.jsx("span",{className:"text-stone-400",children:"”"})]}),d.jsxs("dl",{className:"mt-8 space-y-6",children:[d.jsx(tc,{title:"Why",body:e.why}),d.jsx(tc,{title:"How",body:e.how}),d.jsx(tc,{title:"When",body:e.when}),d.jsx(tc,{title:"Value",body:e.value}),d.jsx(tc,{title:"Why Confeti",body:e.whyBuild})]}),d.jsxs("div",{className:"mt-8 border-t border-stone-200 pt-6",children:[d.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.12em] text-stone-400",children:"Data used"}),d.jsx("p",{className:"mt-2 text-sm leading-6 text-stone-600",children:e.dataSources.join(" · ")})]}),d.jsxs("div",{className:"mt-5",children:[d.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.12em] text-stone-400",children:"Personas"}),d.jsx("p",{className:"mt-2 text-sm leading-6 text-stone-600",children:e.persona.join(" · ")})]}),d.jsx("p",{className:"mt-8 text-xs leading-5 text-stone-400",children:"Part of Confeti’s hiring-intelligence vision — what becomes possible when conversations, ATS outcomes, and role context stay connected."})]})]})]}):null})}function tc({title:e,body:t}){return d.jsxs("div",{children:[d.jsx("dt",{className:"text-[11px] font-semibold uppercase tracking-[0.12em] text-[#C97B3A]",children:e}),d.jsx("dd",{className:"mt-1.5 text-[15px] leading-7 text-stone-700",children:t})]})}function jH({useCases:e,onSelect:t}){const[n,i]=P.useState(null),s=e.find(r=>r.id===n)??null;return d.jsxs("div",{children:[d.jsxs("div",{className:"flex flex-col gap-2 md:flex-row md:items-end md:justify-between",children:[d.jsxs("div",{children:[d.jsx("h3",{className:"text-xl font-medium tracking-[-0.4px] text-stone-900 md:text-2xl",children:"Value × frequency"}),d.jsx("p",{className:"mt-1 max-w-xl text-sm leading-6 text-stone-500",children:"High-frequency recruiter tools create the data needed for high-value strategic intelligence."})]}),d.jsxs("p",{className:"text-xs font-medium uppercase tracking-[0.12em] text-stone-400",children:[e.length," questions"]})]}),d.jsxs("div",{className:"relative mt-8 h-[320px] border-y border-stone-200 md:h-[400px]",children:[d.jsx("span",{className:"absolute left-0 top-3 text-[10px] font-semibold uppercase tracking-[0.12em] text-stone-400",children:"Higher value"}),d.jsx("span",{className:"absolute bottom-3 left-0 text-[10px] font-semibold uppercase tracking-[0.12em] text-stone-400",children:"Rarer"}),d.jsx("span",{className:"absolute bottom-3 right-0 text-[10px] font-semibold uppercase tracking-[0.12em] text-stone-400",children:"More frequent →"}),d.jsx("div",{className:"pointer-events-none absolute inset-x-[10%] top-[16%] h-[55%] rounded-[50%] border border-dashed border-[#C97B3A]/20","aria-hidden":!0}),d.jsx("ul",{className:"absolute inset-6 md:inset-8",children:e.map(r=>{const o=eH(r.frequency)*100,c=(5-r.valueScore)/4*100,u=!!r.featured;return d.jsx("li",{className:"absolute",style:{left:`${o}%`,top:`${c}%`,transform:"translate(-50%, -50%)"},children:d.jsx("button",{type:"button","aria-label":`${r.title}, value ${r.valueScore} of 5, ${r.frequency}`,onMouseEnter:()=>i(r.id),onFocus:()=>i(r.id),onClick:()=>t(r),className:Re("rounded-full transition-transform duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#1d3a66]",u?"h-3 w-3 bg-[#C97B3A] hover:scale-150":"h-2 w-2 bg-[#1d3a66]/50 hover:scale-150 hover:bg-[#1d3a66]",n===r.id?"scale-150":null)})},r.id)})}),s?d.jsxs("div",{className:"pointer-events-none absolute bottom-10 left-1/2 z-10 w-[min(100%-1rem,300px)] -translate-x-1/2 bg-[#faf8f6]/95 px-3 py-2 md:bottom-auto md:left-auto md:right-0 md:top-4 md:translate-x-0",children:[d.jsx("p",{className:"text-xs text-stone-400",children:G0[s.category].name}),d.jsx("p",{className:"text-sm font-medium text-stone-900",children:s.title}),d.jsxs("p",{className:"text-xs text-stone-500",children:[s.valueScore,"/5 · ",s.frequency]})]}):null]}),d.jsx("p",{className:"mt-5 text-sm leading-6 text-stone-500",children:"Daily utility → creates data → strategic intelligence → improves the next hiring cycle"})]})}function CH(){const[e,t]=P.useState("all"),[n,i]=P.useState(""),[s,r]=P.useState(L4),[o,c]=P.useState("catalog"),[u,h]=P.useState(null),[f,m]=P.useState(null),x=xd(),y=P.useMemo(()=>{const S=n.trim().toLowerCase();return wp.filter(j=>e!=="all"&&j.category!==e||s.valueTiers.length&&!s.valueTiers.includes(U0(j.valueScore))||!cH(j.frequency,s.frequencies)||s.personas.length&&!j.persona.some(E=>s.personas.includes(E))||s.dataRequired.length&&!s.dataRequired.includes(tH(j))?!1:S?[j.title,j.value,j.why,j.exampleQuestion,j.how,...j.persona,...j.dataSources].join(" ").toLowerCase().includes(S):!0).sort((j,N)=>!!N.featured!=!!j.featured?+!!N.featured-+!!j.featured:N.valueScore-j.valueScore||j.id-N.id)},[e,n,s]),b=P.useCallback(S=>{h(S),qi("use_case_opened",{id:S.id,title:S.title}),me==null||me.capture("use_case_opened",{use_case_id:S.id,category:S.category})},[]),k=P.useCallback(S=>{i(S),qi("use_case_search",{query:S.slice(0,80)})},[]),w=P.useCallback(S=>{t(S),qi("category_selected",{category:S}),me==null||me.capture("category_selected",{category:S})},[]);return P.useEffect(()=>{if(f==null)return;const S=window.setTimeout(()=>m(null),2200);return()=>window.clearTimeout(S)},[f]),d.jsxs("div",{children:[d.jsxs("div",{className:"space-y-5",children:[d.jsx(oH,{value:n,onChange:k}),d.jsx(aH,{active:e,onSelect:w}),d.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-2",children:[d.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-2",children:[d.jsx("div",{role:"tablist","aria-label":"Catalog view",className:"flex gap-3",children:[["catalog","List"],["map","Map"]].map(([S,j])=>d.jsx("button",{type:"button",role:"tab","aria-selected":o===S,onClick:()=>{c(S),S==="map"&&(qi("value_map_opened"),me==null||me.capture("value_map_opened"))},className:Re("text-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-stone-400",o===S?"font-medium text-stone-900":"text-stone-400 hover:text-stone-700"),children:j},S))}),d.jsx(lH,{filters:s,onChange:S=>{r(S);const j={value:S.valueTiers.length,frequency:S.frequencies.length,persona:S.personas.length,data:S.dataRequired.length};qi("filter_changed",j),me==null||me.capture("filter_changed",j)}})]}),d.jsx("p",{className:"text-sm tabular-nums text-stone-400","aria-live":"polite",children:y.length})]})]}),o==="map"?d.jsx("div",{className:"mt-8",children:d.jsx(jH,{useCases:y,onSelect:b})}):d.jsxs(d.Fragment,{children:[d.jsx(S0,{mode:"wait",children:d.jsx(it.div,{initial:x?!1:{opacity:0}
232,animate:{opacity:1},exit:x?void 0:{opacity:0},transition:{duration:.18},className:"mt-2 border-t border-stone-200",children:y.map(S=>d.jsx(dH,{useCase:S,onOpen:b,highlighted:f===S.id},S.id))},`${e}-${n}-${JSON.stringify(s)}`)}),y.length===0?d.jsx("p",{className:"mt-10 text-center text-sm text-stone-500",children:"No matches. Try another search or clear filters."}):null]}),d.jsx(SH,{useCase:u,onClose:()=>h(null)}),d.jsxs("section",{className:"sr-only","aria-label":"Full catalog of hiring intelligence questions",children:[d.jsx("h2",{children:"100 hiring intelligence questions"}),d.jsx("ol",{children:wp.map(S=>d.jsxs("li",{children:[d.jsx("h3",{children:S.title}),d.jsx("p",{children:S.value}),d.jsx("p",{children:S.why}),d.jsxs("p",{children:["Example: ",S.exampleQuestion]})]},S.id))})]})]})}const OS=["Intake","Role model","Candidates","Interviews","Decisions","Outcomes","Learning"];function NH(){const e=P.useRef(null),t=Lp(e,{once:!0,amount:.3}),n=xd();return d.jsx("section",{className:"w-full border-t border-stone-200/70 py-14 md:py-20","aria-labelledby":"compounding-heading",children:d.jsxs("div",{className:"mx-auto max-w-[1326px] px-5 md:px-10",children:[d.jsxs("div",{className:"mx-auto max-w-[760px] text-center",children:[d.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-stone-400",children:"Perfect context"}),d.jsx("h2",{id:"compounding-heading",className:"mt-3 text-[32px] font-medium leading-[1.08] tracking-[-1px] text-stone-900 md:text-[48px] md:tracking-[-1.6px]",children:"Every hiring cycle should make the next one smarter."}),d.jsx("p",{className:"mx-auto mt-5 max-w-[640px] text-base leading-7 text-stone-600 md:text-[17px] md:leading-8",children:"Confeti does not treat conversations as isolated meetings. It creates memory around role, candidate, process, team, and company — so context compounds."})]}),d.jsxs("div",{ref:e,className:"mx-auto mt-10 max-w-[900px] md:mt-12",children:[d.jsx("ol",{className:"flex flex-wrap items-center justify-center gap-x-2 gap-y-3 md:gap-x-3",children:OS.map((i,s)=>d.jsxs("li",{className:"flex items-center gap-2 md:gap-3",children:[d.jsx(it.span,{initial:n?!1:{opacity:0,y:6},animate:t?{opacity:1,y:0}:void 0,transition:{delay:s*.06,duration:.35},className:Re("text-sm font-medium md:text-base",i==="Learning"?"text-[#C97B3A]":"text-stone-800"),children:i}),s<OS.length-1?d.jsx("span",{className:"text-stone-300","aria-hidden":!0,children:"→"}):d.jsx(it.span,{initial:n?!1:{opacity:0},animate:t?{opacity:1}:void 0,transition:{delay:.5},className:"text-[#C97B3A]","aria-label":"loops back",children:"↺"})]},i))}),d.jsx("div",{className:"mt-10 flex flex-wrap justify-center gap-x-6 gap-y-2 border-t border-stone-200/80 pt-8 text-sm text-stone-500",children:["Role","Candidate","Process","Team","Company"].map(i=>d.jsxs("span",{children:[d.jsx("span",{className:"font-medium text-stone-800",children:i})," memory"]},i))})]})]})})}function TH(){return d.jsx("section",{className:"w-full pb-16 pt-6 md:pb-24 md:pt-8",children:d.jsx("div",{className:"mx-auto max-w-[1326px] px-5 md:px-10",children:d.jsxs("div",{className:"rounded-2xl bg-stone-900 p-8 text-white md:p-12",children:[d.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.14em] text-[#C97B3A]",children:"Start asking"}),d.jsx("h2",{className:"mt-3 max-w-[820px] text-[34px] leading-[1.08] tracking-[-1px] md:text-[52px] md:tracking-[-1.6px]",children:"You already have the data. Start asking better questions."}),d.jsx("p",{className:"mt-5 max-w-[720px] text-base leading-8 text-stone-300 md:text-lg",children:"Start with Confeti as a recorder. Connect your hiring context over time. Turn every conversation and outcome into intelligence your team can reuse."}),d.jsxs("div",{className:"mt-7 flex flex-wrap gap-3",children:[d.jsx("a",{href:"https://app.confeti.co/",onClick:()=>{const e={location:"hiring_intelligence"};qi("final_cta_clicked",e),me==null||me.capture("final_cta_clicked",e)},className:"inline-flex items-center justify-center rounded-xl bg-white px-5 py-3 text-sm font-medium text-stone-900 transition-colors hover:bg-stone-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-offset-2 focus-visible:ring-offset-stone-900",children:"Get a demo"}),d.jsx("a",{href:"/contact",onClick:()=>{const e={location:"hiring_intelligence_contact"};qi("final_cta_clicked",e),me==null||me.capture("final_cta_clicked",e)},className:"inline-flex items-center justify-center rounded-xl border border-white/25 px-5 py-3 text-sm font-medium text-white transition-colors hover:bg-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white",children:"Talk to us"})]})]})})})}function EH(){const e=()=>{const t=document.getElementById("hi-catalog");if(!t)return;const n=window.matchMedia("(prefers-reduced-motion: reduce)").matches;t.scrollIntoView({behavior:n?"auto":"smooth",block:"start"})};return d.jsxs("div",{className:"relative min-h-full overflow-x-clip bg-[#faf8f6] font-geist text-stone-800 tracking-[-0.32px] md:tracking-[-0.34596px]",children:[d.jsx(si,{}),d.jsxs("main",{className:"relative z-10 w-full",children:[d.jsxs("section",{"aria-labelledby":"hi-hero-heading",className:"relative w-full overflow-hidden pt-10 md:pt-[72px]",children:[d.jsx("div",{className:"mx-auto flex w-full max-w-[1326px] flex-col px-5 md:px-10",children:d.jsxs("div",{className:"mx-auto flex max-w-[960px] flex-col items-center text-center",children:[d.jsxs("div",{className:"mb-4 flex items-center gap-[5px] md:mb-5",children:[d.jsx("img",{src:"/images/6a30685b9b6760648ab528fb_Icon.svg",alt:"",className:"h-5 w-5"}),d.jsx("span",{className:"text-lg font-medium leading-none tracking-[-0.36px] md:text-[17.3px]",children:"confeti"})]}),d.jsxs("p",{className:"text-sm font-medium text-stone-500 md:text-[15.4px]",children:[d.jsx(WV,{to:100,className:"tabular-nums text-stone-800"})," ","questions your hiring data should answer"]}),d.jsxs("h1",{id:"hi-hero-heading",className:"mt-5 text-[40px] font-medium leading-[1.02] tracking-[-1.4px] md:mt-6 md:text-[72px] md:tracking-[-3.2px] lg:text-[80px] lg:tracking-[-3.6px]",children:["Your ATS knows ",d.jsx("span",{className:"text-[#C97B3A]",children:"what"})," happened.",d.jsx("br",{}),"With ",d.jsx("span",{className:"text-[#C97B3A]",children:"Confeti"}),", understand"," ",d.jsx("span",{className:"text-[#C97B3A]",children:"why"}),"."]}),d.jsx("p",{className:"mx-auto mt-6 max-w-[670px] text-base leading-7 text-stone-600 md:mt-7 md:text-[15.4px] md:leading-[23px]",children:"Conversations, candidate evidence, role context, and ATS outcomes — connected so you can ask what is happening in hiring, why, and what to do next."}),d.jsx("div",{className:"mt-8 w-full md:mt-11 md:w-auto",children:d.jsx("button",{type:"button",onClick:e,className:"inline-flex w-full items-center justify-center rounded-[9px] border border-zinc-800 bg-zinc-800 bg-[linear-gradient(rgba(204,204,204,0),rgba(255,255,255,0.1))] px-5 py-2 text-base font-medium text-white transition-all duration-300 hover:-translate-y-0.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-zinc-800 focus-visible:ring-offset-2 md:w-auto md:rounded-[8.649px] md:px-[23px] md:py-[11.5px] md:text-[15.4px]",children:"Explore"})})]})}),d.jsx("div",{className:"mt-12 md:mt-16",children:d.jsx(XV,{})})]}),d.jsx("section",{id:"hi-catalog",className:"w-full scroll-mt-24 py-14 md:py-20","aria-labelledby":"
232catalog-heading",children:d.jsxs("div",{className:"mx-auto max-w-[980px] px-5 md:px-10",children:[d.jsxs("div",{className:"mb-8 md:mb-10",children:[d.jsx("h2",{id:"catalog-heading",className:"text-[28px] font-medium leading-[1.1] tracking-[-0.8px] text-stone-900 md:text-[36px] md:tracking-[-1.1px]",children:"100 questions worth asking"}),d.jsx("p",{className:"mt-2 max-w-xl text-sm leading-6 text-stone-500 md:text-[15px] md:leading-7",children:"Browse what becomes possible when conversations and ATS outcomes stay connected."})]}),d.jsx(CH,{})]})}),d.jsx(NH,{}),d.jsx(TH,{})]}),d.jsx(Ci,{})]})}const AH=`Business Development Representative
233Toronto (remote) · Junior · Business Development
234
235Our Business Development team is the engine behind our growth: finding the companies that should be using us, and opening real conversations with them.
236
237On any given day you will:
238- Research and identify high-potential leads, and reach out to them directly
239- Qualify opportunities by digging into each prospect's situation and needs
240- Write outreach that people actually answer, and run cold calls that go somewhere
241- Set up meaningful conversations for the sales team
242- Work with the team on sharper outbound strategies, and bring your own ideas
243
244This role suits a motivated self-starter who thrives in a fast-paced, goal-oriented environment. Previous outbound or customer-facing experience is welcome but not required — evidence that you can start conversations from nothing matters more.`,As=.5,D4=.8,Sr=e=>e+1,jr=e=>e.scores.filter(t=>t.evidence>=As).length,Cr=e=>e.scores.reduce((t,n)=>t+Sr(n.score),0)/e.scores.length,PH={clear:"Clear evidence",some:"Some evidence",none:"Nothing to go on"},IH=(e,t=PH)=>e>=D4?t.clear:e>=As?t.some:t.none,F4=(e,t)=>t.filter((n,i)=>e.scores[i].evidence<As),RH=(e,t)=>{const n=jr(e)/t.length,i=Cr(e);return n>=.8&&i>=3.4?"interview":n<=.4||i<2.5?"nomatch":"look"},MH=(e,t)=>{const n=[...e].sort((s,r)=>Cr(r)-Cr(s)),i=s=>n.filter(r=>RH(r,t)===s);return{interview:i("interview"),look:i("look"),nomatch:i("nomatch")}},OH=(e,t,n=2)=>t.map((i,s)=>({criterion:i,...e.scores[s]})).filter(i=>i.evidence>=As).sort((i,s)=>s.score-i.score).slice(0,n),Y0=(e,t=5)=>!Number.isFinite(e)||t<1?0:Math.min(t-1,Math.max(0,Math.round(e))),$4=(e,t,n)=>n<As?"":e.levels[Y0(t,e.levels.length)]??"",LH=(e,t)=>{const n=t.trim().toLowerCase();return n?`${e.name??""} ${e.role} ${e.id}`.toLowerCase().includes(n):!0},DH=(e,t,n)=>{const i=jr(e);return n==="complete"?i===t.length:n==="gaps"?i<t.length:!0},LS=(e,t,n)=>{var s;if(n==="average")return Cr(e);if(n==="coverage")return jr(e)+Cr(e)/10;const i=t.findIndex(r=>r.key===n);return Sr(((s=e.scores[i>=0?i:0])==null?void 0:s.score)??0)},DS=(e,t,n,i,s)=>(LS(e,n,i)-LS(t,n,i))*(s?-1:1),FH=(e,t,n,i)=>{const s=["candidate","name","current_title","role_scored_against","criterion","score_1_5","evidence","verdict","rubric"],r=e.flatMap(o=>t.map((c,u)=>{const{score:h,evidence:f}=o.scores[u];return[o.id,o.name??"",o.role,n,c.name,Sr(h).toFixed(2),f.toFixed(2),IH(f,i),$4(c,h,f)]}));return[s,...r].map(o=>o.map(c=>`"${String(c).replace(/"/g,'""')}"`).join(",")).join(`
245`)},$H={language:"Language",productName:"Signal Check",taglineBefore:"What each resume evidences against",taglineRole:"one specific role",taglineAfter:"— and what it can't answer.",freeLine:e=>`Free · up to ${e} resumes · nothing stored`,scoringAgainst:"Scoring against",pasteToBegin:"Paste a job description to begin",thisRole:"this role",jobDescription:"Job description",pastePlaceholder:"Paste the job description here…",useExample:"or use an example posting",reread:"Re-read the posting",extract:"Extract the criteria",dropResumes:"Drop resumes here",dropHint:e=>`PDF or Word, up to ${e} at a time. Each one is scored against the criteria in the panel — nothing else.`,dropNeedCriteria:"First paste the job description and extract its criteria.",chooseFiles:"Choose files",scoreResumes:"Score resumes",scoreCount:e=>`Score ${e} resume${e===1?"":"s"}`,filesReady:e=>`${e} file${e===1?"":"s"} ready`,clear:"clear",progress:(e,t,n)=>`${e} of ${t} · ${n}`,criteriaError:"Couldn't read that job description.",scoreError:"That run stopped early.",noneRead:"None of those files could be read. PDF or Word, under 4MB each.",privacy:"Resumes are parsed in memory to produce your report, then discarded. Nothing is stored and nothing is used to train anything.",criteriaChanged:"Criteria changed. These results still use the previous set.",rescore:e=>`Re-score ${e}`,skipped:(e,t)=>e===1?`1 file couldn't be read and was left out: ${t}`:`${e} files couldn't be read and were left out: ${t}`,largerThan4:"larger than 4MB",couldntRead:"couldn't be read",criteriaHeading:e=>`Scoring criteria · ${e}`,editedHint:"edited — re-score to apply",criteriaHint:"Hover a criterion to read it, or click to keep the full description and rubric open.",addCriterion:"Add a criterion",editCriterion:e=>`Edit ${e}`,removeCriterion:e=>`Remove ${e}`,namePlaceholder:"What are you judging? e.g. Outbound prospecting",descriptionPlaceholder:"The full definition — what this criterion means",rubricEditHeading:"Rubric — the wording each score maps to",weakest:"Weakest",strongest:"Strongest",levelPlaceholder:e=>`Level ${e}`,save:"Save",cancel:"Cancel",resumesScored:"resumes scored",evidenceOnAll:e=>`with evidence on all ${e}`,unansweredEach:"unanswered criteria each",averaging:"averaging 4.0 or better",criteriaFromPosting:"criteria from this posting",searchPlaceholder:"Search by name or title…",searchLabel:"Search by name or title",sort:"Sort",sortAverage:"Average score",sortCoverage:"Evidence coverage",filterComplete:e=>`Evidence on all ${e}`,filterGaps:"Has gaps",shownOf:(e,t)=>`${e} of ${t}`,tabAll:"All resumes",tabInterview:"Interview first",tabLook:"Worth a look",tabNomatch:"Doesn't match this role",startOver:"Start over",newRole:"New role",newRoleConfirm:"Start with a different job description? The current results will be cleared.",trySamples:"No resumes to hand? Try 8 sample resumes",samplesNote:"Fictional candidates, written for a sales development role.",loadingSamples:"Loading samples…",samplesError:"Couldn't load the sample resumes. Try again, or upload your own.",ctaGaps:(e,t)=>`${e} of ${t} candidates have criteria their resume can't answer.`,ctaBody:"Confeti asks those questions in the interview and keeps the answers as evidence.",ctaPrimary:"Start free",ctaSecondary:"Talk to us",fullReport:"Full report",interviewBlurb:e=>`The ${e} resumes that evidence most of what this role asks for. Open one for what it shows, the score it landed on, and the rubric behind that score.`,lookBlurb:"Partial evidence: enough to be worth your judgment, not enough to be obvious. These are where a five-minute read pays off.",nomatchBefore:e=>`These resumes don't speak to what ${e} asks for.`,nomatchEmphasis:"That usually means the resume is silent on these criteria, not that the person can't do the job",nomatchAfter:"— someone changing career or writing a thin resume lands here too. Worth a skim before you pass.",noFilterMatch:"No resumes match this search or filter.",emptyGroup:"No resumes landed in this group.",footnote:e=>`All scored against ${e}. A candidate's own job titles are only context. Hatched cells mean the resume gave nothing to judge, not a low score. Hover a score or a criterion to read the rubric; click a criterion header to keep it open.`,close:"Close",downloadDialog:"Download the full report",col
245Num:"#",colCandidate:"Candidate",colTitle:"Current title",colEvidence:"Evidence",colAvg:"Avg",colAsk:"Ask",nameHidden:"Name hidden in this sample",nameHiddenSample:"Names are hidden in this sample because these are real applications. Your own run shows the name from each resume.",askInterview:"Ask about this in the interview",nothingMissing:"Nothing missing",nothingMissingBody:"Every criterion has something concrete behind it — the interview can go deeper instead of starting from scratch.",evidences:"Evidences",andWord:"and",askAbout:"ask about",evidenceOnOf:(e,t)=>`Evidence on ${e} of ${t} criteria`,silentOn:"silent on",ofFive:"of 5",askInInterview:"Ask in the interview",everythingCovered:e=>`Everything ${e} asks for has something behind it — go deeper rather than start from scratch.`,noDescription:"No description yet.",rubric:"Rubric",scoredAt:e=>`scored at ${e}`,levelLabel:e=>`Level ${e}.`,nothingToJudge:"Nothing in the resume to judge this. The scale below is what a score would have meant.",nothingMaps:"Nothing in the resume maps onto this scale.",scoreLine:(e,t)=>`${e} of 5 · ${t}`,reportDownloaded:"Report downloaded.",reportBody:"The spreadsheet downloaded to this computer. It has every candidate, every criterion, the evidence flag, and the rubric sentence each score landed on.",recordedFollowUp:e=>`We have ${e} and will follow up there.`,notRecorded:e=>`We could not record ${e} just now — if you want a follow-up, write to [email protected].`,downloadAgain:"Download again",reportTitle:e=>`The full report, all ${e} resumes`,reportIntro:e=>`Every candidate scored on all ${e} criteria, with what each resume evidences and what it leaves open — as a spreadsheet you can sort and share.`,yourName:"Your name",workEmail:"Work email",company:"Company",phoneOptional:"Phone (optional)",downloadReport:"Download the full report",reportFoot:e=>`Scored against ${e}. The report downloads here. We may follow up once at this email — no list, no sequence.`,evidenceClear:"Clear evidence",evidenceSome:"Some evidence",evidenceNone:"Nothing to go on"},BH={language:"Idioma",productName:"Signal Check",taglineBefore:"Qué evidencia cada currículum frente a",taglineRole:"un rol concreto",taglineAfter:"— y qué no puede responder.",freeLine:e=>`Gratis · hasta ${e} currículums · no se guarda nada`,scoringAgainst:"Puntuación respecto a",pasteToBegin:"Pega una descripción del puesto para empezar",thisRole:"este rol",jobDescription:"Descripción del puesto",pastePlaceholder:"Pega aquí la descripción del puesto…",useExample:"o usa un ejemplo",reread:"Volver a leer el puesto",extract:"Extraer los criterios",dropResumes:"Suelta los currículums aquí",dropHint:e=>`PDF o Word, hasta ${e} a la vez. Cada uno se puntúa solo contra los criterios del panel.`,dropNeedCriteria:"Primero pega la descripción del puesto y extrae sus criterios.",chooseFiles:"Elegir archivos",scoreResumes:"Puntuar currículums",scoreCount:e=>e===1?"Puntuar 1 currículum":`Puntuar ${e} currículums`,filesReady:e=>e===1?"1 archivo listo":`${e} archivos listos`,clear:"borrar",progress:(e,t,n)=>`${e} de ${t} · ${n}`,criteriaError:"No se pudo leer esa descripción del puesto.",scoreError:"La ejecución se detuvo antes de tiempo.",noneRead:"No se pudo leer ningún archivo. PDF o Word, de menos de 4 MB cada uno.",privacy:"Los currículums se leen en memoria para armar el informe y después se descartan. No se guarda nada y no se usa para entrenar nada.",criteriaChanged:"Los criterios cambiaron. Estos resultados siguen usando el conjunto anterior.",rescore:e=>`Volver a puntuar ${e}`,skipped:(e,t)=>e===1?`1 archivo no se pudo leer y quedó fuera: ${t}`:`${e} archivos no se pudieron leer y quedaron fuera: ${t}`,largerThan4:"supera los 4 MB",couldntRead:"no se pudo leer",criteriaHeading:e=>`Criterios de puntuación · ${e}`,editedHint:"editado — vuelve a puntuar para aplicarlo",criteriaHint:"Pasa el cursor para leer un criterio, o haz clic para dejar abiertos la descripción y el baremo.",addCriterion:"Añadir un criterio",editCriterion:e=>`Editar ${e}`,removeCriterion:e=>`Quitar ${e}`,namePlaceholder:"¿Qué estás juzgando? p. ej. Prospección outbound",descriptionPlaceholder:"La definición completa — qué significa este criterio",rubricEditHeading:"Baremo — el texto al que corresponde cada puntuación",weakest:"Más débil",strongest:"Más fuerte",levelPlaceholder:e=>`Nivel ${e}`,save:"Guardar",cancel:"Cancelar",resumesScored:"currículums puntuados",evidenceOnAll:e=>`con evidencia en los ${e}`,unansweredEach:"criterios sin respuesta cada uno",averaging:"con media de 4.0 o más",criteriaFromPosting:"criterios de este puesto",searchPlaceholder:"Buscar por nombre o cargo…",searchLabel:"Buscar por nombre o cargo",sort:"Ordenar",sortAverage:"Puntuación media",sortCoverage:"Cobertura de evidencia",filterComplete:e=>`Evidencia en los ${e}`,filterGaps:"Tiene huecos",shownOf:(e,t)=>`${e} de ${t}`,tabAll:"Todos los currículums",tabInterview:"Entrevistar primero",tabLook:"Vale la pena mirar",tabNomatch:"No encaja con este rol",startOver:"Empezar de nuevo",newRole:"Nuevo puesto",newRoleConfirm:"¿Empezar c
245on otra descripción de puesto? Se borrarán los resultados actuales.",trySamples:"¿No tienes CVs a mano? Prueba con 8 de ejemplo",samplesNote:"Candidatos ficticios, escritos para un puesto de desarrollo de ventas.",loadingSamples:"Cargando ejemplos…",samplesError:"No se pudieron cargar los CVs de ejemplo. Inténtalo de nuevo o sube los tuyos.",ctaGaps:(e,t)=>`${e} de ${t} candidatos tienen criterios que su CV no responde.`,ctaBody:"Confeti hace esas preguntas en la entrevista y guarda las respuestas como evidencia.",ctaPrimary:"Empezar gratis",ctaSecondary:"Hablemos",fullReport:"Informe completo",interviewBlurb:e=>`Los ${e} currículums que evidencian más de lo que pide este rol. Abre uno para ver qué muestra, la puntuación y el baremo detrás.`,lookBlurb:"Evidencia parcial: suficiente para que juzgues tú, no tanto como para que sea obvio. Aquí es donde cinco minutos de lectura valen la pena.",nomatchBefore:e=>`Estos currículums no hablan de lo que pide ${e}.`,nomatchEmphasis:"Eso suele significar que el currículum calla sobre estos criterios, no que la persona no pueda hacer el trabajo",nomatchAfter:"— alguien que cambia de carrera o escribe un currículum corto también cae aquí. Vale un vistazo antes de descartar.",noFilterMatch:"Ningún currículum coincide con esta búsqueda o filtro.",emptyGroup:"Ningún currículum cayó en este grupo.",footnote:e=>`Todo puntuado respecto a ${e}. Los cargos del candidato son solo contexto. Las celdas ralladas significan que el currículum no dio nada que juzgar, no una nota baja. Pasa el cursor sobre una puntuación o un criterio para leer el baremo; haz clic en el encabezado de un criterio para dejarlo abierto.`,close:"Cerrar",downloadDialog:"Descargar el informe completo",colNum:"#",colCandidate:"Candidato",colTitle:"Cargo actual",colEvidence:"Evidencia",colAvg:"Media",colAsk:"Preguntar",nameHidden:"Nombre oculto en esta muestra",nameHiddenSample:"Los nombres están ocultos en esta muestra porque son candidaturas reales. En tu ejecución se muestra el nombre de cada currículum.",askInterview:"Pregunta esto en la entrevista",nothingMissing:"No falta nada",nothingMissingBody:"Cada criterio tiene algo concreto detrás — la entrevista puede profundizar en vez de empezar de cero.",evidences:"Evidencia",andWord:"y",askAbout:"pregunta por",evidenceOnOf:(e,t)=>`Evidencia en ${e} de ${t} criterios`,silentOn:"en silencio sobre",ofFive:"de 5",askInInterview:"Preguntar en la entrevista",everythingCovered:e=>`Todo lo que pide ${e} tiene algo detrás — profundiza en vez de empezar de cero.`,noDescription:"Todavía no hay descripción.",rubric:"Baremo",scoredAt:e=>`puntuado en ${e}`,levelLabel:e=>`Nivel ${e}.`,nothingToJudge:"No hay nada en el currículum para juzgar esto. La escala de abajo es lo que habría significado una puntuación.",nothingMaps:"Nada del currículum encaja en esta escala.",scoreLine:(e,t)=>`${e} de 5 · ${t}`,reportDownloaded:"Informe descargado.",reportBody:"La hoja de cálculo se descargó en este ordenador. Trae cada candidato, cada criterio, la marca de evidencia y la frase del baremo en la que cayó cada puntuación.",recordedFollowUp:e=>`Tenemos ${e} y haremos seguimiento ahí.`,notRecorded:e=>`No pudimos registrar ${e} ahora — si quieres que te escribamos, escribe a [email protected].`,downloadAgain:"Descargar otra vez",reportTitle:e=>`El informe completo, los ${e} currículums`,reportIntro:e=>`Cada candidato puntuado en los ${e} criterios, con lo que cada currículum evidencia y lo que deja abierto — en una hoja que puedes ordenar y compartir.`,yourName:"Tu nombre",workEmail:"Email de trabajo",company:"Empresa",phoneOptional:"Teléfono (opcional)",downloadReport:"Descargar el informe completo",reportFoot:e=>`Puntuado respecto a ${e}. El informe se descarga aquí. Puede que te escribamos una vez a este email — sin lista ni secuencia.`,evidenceClear:"Evidencia clara",evidenceSome:"Algo de evidencia",evidenceNone:"Nada en qué basarse"},zH={language:"שפה",productName:"Signal Check",taglineBefore:"מה כל קורות חיים מוכיחים מול",taglineRole:"תפקיד אחד מסוים",taglineAfter:"— ומה הם לא יכולים לענות.",freeLine:e=>`חינם · עד ${e} קורות חיים · לא נשמר דבר`,scoringAgainst:"ניקוד מול",pasteToBegin:"הדביקו תיאור משרה כדי להתחיל",thisRole:"התפקיד הזה",jobDescription:"תיאור המשרה",pastePlaceholder:"הדביקו כאן את תיאור המשרה…",useExample:"או השתמשו במשרה לדוגמה",reread:"לקרוא את המשרה מחדש",extract:"לחלץ את הקריטריונים",dropResumes:"גררו לכא×
245Ÿ קורות חיים",dropHint:e=>`PDF או Word, עד ${e} בכל פעם. כל אחד מדורג רק מול הקריטריונים שבלוח.`,dropNeedCriteria:"קודם הדביקו את תיאור המשרה וחלצו את הקריטריונים.",chooseFiles:"בחירת קבצים",scoreResumes:"דירוג קורות חיים",scoreCount:e=>e===1?"לדרג קורות חיים אחד":`לדרג ${e} קורות חיים`,filesReady:e=>e===1?"קובץ אחד מוכן":`${e} קבצים מוכנים`,clear:"ניקוי",progress:(e,t,n)=>`${e} מתוך ${t} · ${n}`,criteriaError:"לא הצלחנו לקרוא את תיאור המשרה.",scoreError:"ההרצה נעצרה לפני הסיום.",noneRead:"אף קובץ לא נקרא. PDF או Word, עד 4MB כל אחד.",privacy:"קורות החיים נקראים בזיכרון כדי להפיק את הדוח, ואז נמחקים. שום דבר לא נשמר ושום דבר לא משמש לאימון.",criteriaChanged:"הקריטריונים השתנו. התוצאות האלה עדיין משתמשות בסט הקודם.",rescore:e=>`לדרג מחדש ${e}`,skipped:(e,t)=>e===1?`קובץ אחד לא נקרא ונשאר בחוץ: ${t}`:`${e} קבצים לא נקראו ונשארו בחוץ: ${t}`,largerThan4:"גדול מ-4MB",couldntRead:"לא ניתן לקריאה",criteriaHeading:e=>`קריטריוני ניקוד · ${e}`,editedHint:"נערך — דרגו מחדש כדי להחיל",criteriaHint:"רחפו מעל קריטריון כדי לקרוא אותו, או לחצו כדי להשאיר את התיאור והמחוון פתוחים.",addCriterion:"הוספת קריטריון",editCriterion:e=>`עריכת ${e}`,removeCriterion:e=>`הסרת ${e}`,namePlaceholder:"מה בודקים? למשל איתור לקוחות",descriptionPlaceholder:"ההגדרה המלאה — מה הקריטריון הזה אומר",rubricEditHeading:"מחוון — הניסוח שכל ציון ממופה אליו",weakest:"החלש ביותר",strongest:"החזק ביותר",levelPlaceholder:e=>`רמה ${e}`,save:"שמירה",cancel:"ביטול",resumesScored:"קורות חיים שדורגו",evidenceOnAll:e=>`עם ראיות בכל ${e}`,unansweredEach:"קריטריונים בלי מענה לכל אחד",averaging:"עם ממוצע 4.0 ומעלה",criteriaFromPosting:"קריטריונים מהמשרה הזו",searchPlaceholder:"חיפוש לפי שם או תפקיד…",searchLabel:"חיפוש לפי שם או תפקיד",sort:"מיון",sortAverage:"ציון ממוצע",sortCoverage:"כיסוי הראיות",filterComplete:e=>`ראיות בכל ${e}`,filterGaps:"יש פערים",shownOf:(e,t)=>`${e} מתוך ${t}`,tabAll:"כל קורות החיים",tabInterview:"לראיון קודם",tabLook:"שווה מבט",tabNomatch:"לא תואם לתפקיד",startOver:"התחלה מחדש",newRole:"משרה חדשה",newRoleConfirm:"להתחיל עם תיאור משרה אחר? התוצאות הנוכחיות יימחקו.",trySamples:"אין קורות חיים בהישג יד? נסו 8 לדוגמה",samplesNote:"מועמדים בדיוניים, שנכתבו לתפקיד פיתוח מכירות.",loadingSamples:"טוען דוגמאות…",samplesError:"לא הצלחנו לטעון את קורות החיים לדוגמה. נסו שוב או העלו משלכם.",ctaGaps:(e,t)=>`ל-${e} מתוך ${t} מועמדים יש קריטריונים שקורות החיים לא עונים עליהם.`,ctaBody:"Confeti שואלת את השאלות האלה בראיון ושומרת את התשובות כראיות.",ctaPrimary:"התחילו בחינם",ctaSecondary:"דברו איתנו",fullReport:"הדוח המלא",interviewBlurb:e=>`${e} קורות החיים שמוכיחים הכי הרבה ממה שהתפקיד מבקש. פתחו אחד כדי לראות מה הוא מראה, הציון, והמחוון שמאחוריו.`,lookBlurb:"ראיות חלקיות: מספיק כדי שתשפטו בעצמכם, לא מספיק כדי שזה יהיה מובן מאליו. כאן חמש דקות קריאה משתלמות.",nomatchBefore:e=>`קורות החיים האלה לא מדברים על מה ש-${e} מבקש.`,nomatchEmphasis:"בדרך כלל זה אומר שקורות החיים שותקים על הקריטריונים האלה, לא שהאדם לא יכול לעשות את העבודה",nomatchAfter:"— גם מי שמחליף קריירה או כותב קורות חיים דלים מגיע לכא×
245Ÿ. שווה מבט לפני שמוותרים.",noFilterMatch:"אין קורות חיים שתואמים לחיפוש או לסינון.",emptyGroup:"אף קורות חיים לא נפלו לקבוצה הזו.",footnote:e=>`הכול דורג מול ${e}. התפקידים של המועמד הם רק הקשר. תא משורטט אומר שקורות החיים לא נתנו על מה לשפוט, לא ציון נמוך. רחפו מעל ציון או קריטריון כדי לקרוא את המחוון; לחצו על כותרת קריטריון כדי להשאיר אותו פתוח.`,close:"סגירה",downloadDialog:"הורדת הדוח המלא",colNum:"#",colCandidate:"מועמד",colTitle:"תפקיד נוכחי",colEvidence:"ראיות",colAvg:"ממוצע",colAsk:"לשאול",nameHidden:"השם מוסתר בדוגמה הזו",nameHiddenSample:"השמות מוסתרים בדוגמה כי אלה מועמדויות אמיתיות. בהרצה שלכם מופיע השם מכל קורות חיים.",askInterview:"לשאול על זה בראיון",nothingMissing:"לא חסר כלום",nothingMissingBody:"לכל קריטריון יש משהו קונקרטי — הראיון יכול להעמיק במקום להתחיל מאפס.",evidences:"מוכיח",andWord:"ו",askAbout:"לשאול על",evidenceOnOf:(e,t)=>`ראיות ב-${e} מתוך ${t} קריטריונים`,silentOn:"שותק לגבי",ofFive:"מתוך 5",askInInterview:"לשאול בראיון",everythingCovered:e=>`לכל מה ש-${e} מבקש יש גיבוי — להעמיק במקום להתחיל מאפס.`,noDescription:"עדיין אין תיאור.",rubric:"מחוון",scoredAt:e=>`נוקד ב-${e}`,levelLabel:e=>`רמה ${e}.`,nothingToJudge:"אין בקורות החיים על מה לשפוט את זה. הסולם למטה הוא מה שציון היה אומר.",nothingMaps:"שום דבר בקורות החיים לא ממופה לסולם הזה.",scoreLine:(e,t)=>`${e} מתוך 5 · ${t}`,reportDownloaded:"הדוח ירד.",reportBody:"הגיליון ירד למחשב הזה. יש בו כל מועמד, כל קריטריון, סימון הראיות, ומשפט המחוון שאליו נפל כל ציון.",recordedFollowUp:e=>`יש לנו את ${e} ונחזור לשם.`,notRecorded:e=>`לא הצלחנו לשמור את ${e} עכשיו — אם תרצו שנחזור, כתבו ל[email protected].`,downloadAgain:"הורדה שוב",reportTitle:e=>`הדוח המלא, כל ${e} קורות החיים`,reportIntro:e=>`כל מועמד דורג על כל ${e} הקריטריונים, עם מה שקורות החיים מוכיחים ומה שנשאר פתוח — כגיליון שאפשר למיין ולשתף.`,yourName:"השם שלך",workEmail:"אימייל עבודה",company:"חברה",phoneOptional:"טלפון (לא חובה)",downloadReport:"הורדת הדוח המלא",reportFoot:e=>`דורג מול ${e}. הדוח יורד לכאן. אולי נחזור פעם אחת לאימייל הזה — בלי רשימת תפוצה ובלי רצף.`,evidenceClear:"ראיות ברורות",evidenceSome:"קצת ראיות",evidenceNone:"אין על מה להסתמך"},VH={en:$H,es:BH,he:zH},FS="signal-check-locale";function HH(e){return e==="en"||e==="es"||e==="he"}function WH(e,t){if(HH(t))return t;for(const n of e){const i=n.toLowerCase();if(i==="he"||i.startsWith("he-"))return"he";if(i==="es"||i.startsWith("es-"))return"es"}return"en"}function qH(e){return{clear:e.evidenceClear,some:e.evidenceSome,none:e.evidenceNone}}function B4(e,t){return t>=D4?e.evidenceClear:t>=As?e.evidenceSome:e.evidenceNone}function UH(e,t){return t==="Larger than 4MB"?e.largerThan4:t==="Couldn't be read"?e.couldntRead:t}const z4=P.createContext(null);function GH({children:e}){const[t,n]=P.useState("en");P.useEffect(()=>{const r=window.localStorage.getItem(FS);n(WH(navigator.languages??[navigator.language],r))},[]);const i=r=>{n(r),window.localStorage.setItem(FS,r)},s=P.useMemo(()=>({locale:t,setLocale:i,t:VH[t],dir:t==="he"?"rtl":"ltr"}),[t]);return d.jsx(z4.Provider,{value:s,children:e})}function On(){const e=P.useContext(z4);if(!e)throw new Error("useSignalLocale must be used inside SignalLocaleProvider");return e}const YH=[{id:"en",label:"English"},{id:"es",label:"Español"},{id:"he",label:"עברית"}];function KH(){const{locale:e,setLocale:t,t:n}=On();return d.jsx("div",{role:"group","aria-label":n.language,className:"inline-flex rounded-full bg-stone-100 p-0.5",children:YH.map(i=>d.jsx("button",{type:"button","aria-pressed":e===i.id,onClick:()=>t(i.id),className:e===i.id?"rounded-full bg-white px-2.5 py-1 text-[12px] font-medium text-stone-800 shadow-sm":"rounded-full px-2.5 py-1 text-[12px] text-stone-500 hover:text-stone-800",children:i.label},i.id))})}function V4({criterion:e,activeIndex:t}){return d.jsx("ol",{className:"space-y-1.5",children:e.levels.map((n,i)=>{const s=t===i;return d.jsxs("li",{className:Re("flex gap-2 text-[12.5px] leading-5",s?"font-medium text-stone-800":"text-stone-500"),
245children:[d.jsx("span",{className:Re("mt-px h-[18px] shrink-0 rounded border px-1.5 text-[11px] tabular-nums",s?"border-[#C97B3A]/40 bg-[#fdf6ee] text-[#B56C30]":"border-stone-200 text-stone-400"),children:i+1}),d.jsx("span",{className:"min-w-0 whitespace-pre-wrap",children:n||"—"})]},`${e.key}-${i}`)})})}function H4({criterion:e,activeIndex:t=null,showTitle:n=!0}){const{t:i}=On();return d.jsxs("div",{className:"space-y-2.5",children:[n&&d.jsx("p",{className:"text-[13.5px] font-medium leading-5 tracking-[-0.2px] text-stone-900",children:e.name}),d.jsx("p",{className:"whitespace-pre-wrap text-[12.5px] leading-5 text-stone-600",children:e.description||i.noDescription}),d.jsxs("div",{children:[d.jsxs("p",{className:"text-[11px] font-semibold uppercase tracking-[0.08em] text-stone-400",children:[i.rubric,t!=null&&d.jsxs("span",{className:"ms-1.5 font-medium normal-case tracking-normal text-[#B56C30]",children:["· ",i.scoredAt(t+1)]})]}),d.jsx("div",{className:"mt-1.5",children:d.jsx(V4,{criterion:e,activeIndex:t})})]})]})}function QH(e,t){const n=e.getBoundingClientRect(),i=8,s=getComputedStyle(e).direction==="rtl",r=s?n.left-t-i:n.right+i,o=s?n.right+i:n.left-t-i;let c=r;(c<8||c+t>window.innerWidth-8)&&(c=o),c=Math.max(8,Math.min(c,window.innerWidth-t-8));const u=Math.min(520,window.innerHeight-16);let h=n.bottom+i;if(h+200>window.innerHeight-8){const f=n.top-i-u;h=f>=8?f:8}return h+u>window.innerHeight-8&&(h=Math.max(8,window.innerHeight-u-8)),{top:h,left:c,width:t,maxHeight:u}}function wv({criterion:e,activeIndex:t=null,preface:n,children:i,className:s,pinOnClick:r=!1}){const o=P.useRef(null),c=P.useRef(null),[u,h]=P.useState(!1),[f,m]=P.useState(!1),x=P.useRef(void 0),{dir:y}=On(),b=u||f,k=()=>window.clearTimeout(x.current),w=()=>{k(),x.current=window.setTimeout(()=>h(!1),140)};P.useEffect(()=>()=>k(),[]),P.useEffect(()=>{if(!b)return;const j=T=>{var M;const L=T.target;L instanceof Node&&((M=c.current)!=null&&M.contains(L))||(h(!1),m(!1))},N=T=>{T.key==="Escape"&&(h(!1),m(!1))},E=T=>{var M,A;const L=T.target;L instanceof Node&&((M=c.current)!=null&&M.contains(L)||(A=o.current)!=null&&A.contains(L)||m(!1))};return window.addEventListener("scroll",j,!0),document.addEventListener("keydown",N),document.addEventListener("mousedown",E),()=>{window.removeEventListener("scroll",j,!0),document.removeEventListener("keydown",N),document.removeEventListener("mousedown",E)}},[b]);const S=b&&o.current?QH(o.current,380):null;return d.jsxs("span",{ref:o,className:s,onMouseEnter:()=>{k(),h(!0)},onMouseLeave:w,onFocus:()=>h(!0),onBlur:w,onClick:r?j=>{j.stopPropagation(),m(N=>!N)}:void 0,children:[i,S&&eA.createPortal(d.jsxs("div",{ref:c,dir:y,role:"dialog","aria-label":e.name,style:{top:S.top,left
245:S.left,width:S.width,maxHeight:S.maxHeight},className:"fixed z-50 overflow-y-auto rounded-xl bg-white p-3.5 text-start shadow-[0_18px_50px_-24px_rgba(41,37,36,0.55)] ring-1 ring-black/[0.08]",onMouseEnter:()=>{k(),h(!0)},onMouseLeave:w,children:[n,d.jsx(H4,{criterion:e,activeIndex:t})]}),document.body)]})}function W4({criterion:e,score:t,evidence:n}){const{t:i}=On(),s=n<As,r=s?null:Y0(t,e.levels.length),o=$4(e,t,n);return d.jsxs("div",{className:"border-t border-stone-200/70 py-3 first:border-t-0",children:[d.jsxs("div",{className:"flex items-start justify-between gap-3",children:[d.jsxs("div",{className:"min-w-0",children:[d.jsx("p",{className:"text-[13px] font-medium text-stone-800",children:e.name}),d.jsx("p",{className:"mt-0.5 whitespace-pre-wrap text-[12.5px] leading-5 text-stone-500",children:e.description})]}),d.jsxs("div",{className:"shrink-0 text-end",children:[d.jsx("p",{className:"text-[15px] font-medium tabular-nums text-stone-900",children:Sr(t).toFixed(1)}),d.jsx("p",{className:Re("text-[11px]",s?"text-[#B56C30]":"text-stone-400"),children:B4(i,n)})]})]}),d.jsx("div",{className:"mt-2 h-1.5 overflow-hidden rounded-full bg-stone-200",children:d.jsx("span",{className:Re("block h-full rounded-full",s?"bg-[repeating-linear-gradient(135deg,#d6d3d1_0_3px,transparent_3px_6px)]":"bg-[#C97B3A]"),style:{width:`${Math.max((Sr(t)-1)/4*100,4)}%`}})}),s?d.jsx("p",{className:"mt-2 text-[12.5px] leading-5 text-stone-500",children:i.nothingToJudge}):d.jsxs("p",{className:"mt-2 whitespace-pre-wrap text-[12.5px] leading-5 text-stone-700",children:[d.jsxs("span",{className:"font-medium text-[#B56C30]",children:[i.levelLabel((r??0)+1)," "]}),o]}),d.jsx("div",{className:"mt-2",children:d.jsx(V4,{criterion:e,activeIndex:r})})]})}const XH=()=>({key:`custom_${Date.now()}`,short:"New",name:"",description:"",levels:["","","","",""]});function ZH({criteria:e,onChange:t,dirty:n}){const{t:i}=On(),[s,r]=P.useState(null),[o,c]=P.useState(null),[u,h]=P.useState(null),f=k=>{c(null),r(k.key),h({...k,levels:[...k.levels]})},m=()=>{if(!u)return;const k=u.name.trim();if(!k)return;const w=e.some(S=>S.key===u.key)?e.map(S=>S.key===u.key?{...u,name:k}:S):[...e,{...u,name:k}];t(w),r(null),h(null)},x=k=>{t(e.filter(w=>w.key!==k)),s===k&&(r(null),h(null)),o===k&&c(null)},y=()=>{const k=XH();h(k),r(k.key)},b=u&&!e.some(k=>k.key===u.key);return d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[d.jsx("h3",{className:"text-[11px] font-semibold uppercase tracking-[0.08em] text-stone-400",children:i.criteriaHeading(e.length)}),n&&d.jsx("span",{className:"text-[11px] font-medium text-[#B56C30]",children:i.editedHint})]}),d.jsx("p",{className:"mt-1 text-[12px] leading-5 text-stone-400",children:i.criteriaHint}),d.jsx("ul",{className:"mt-2 space-y-px",children:e.map(k=>{const w=o===k.key;return d.jsx("li",{children:s===k.key&&u?d.jsx(zS,{draft:u,setDraft:h,onCancel:()=>r(null),onSave:m}):d.jsxs("div",{className:"rounded-lg hover:bg-stone-50",children:[d.jsxs("div",{className:"group flex items-start gap-1 px-1 py-1",children:[w?d.jsx("div",{className:"min-w-0 flex-1",children:d.jsx($S,{criterion:k,expanded:!0,onClick:()=>c(null)})}):d.jsx(wv,{criterion:k,className:"min-w-0 flex-1",children:d.jsx($S,{criterion:k,expanded:!1,onClick:()=>c(k.key)})}),d.jsxs("div",{className:"flex shrink-0 gap-0.5 opacity-0 transition-opacity focus-within:opacity-100 group-hover:opacity-100",children:[d.jsx(BS,{label:i.editCriterion(k.name),onClick:()=>f(k),children:d.jsx(w8,{className:"h-3.5 w-3.5","aria-hidden":!0})}),d.jsx(BS,{label:i.removeCriterion(k.name),onClick:()=>x(k.key),children:d.jsx(C8,{className:"h-3.5 w-3.5","aria-hidden":!0})})]})]}),w&&d.jsx("div",{className:"px-2 pb-2.5 ps-7",children:d.jsx(H4,{criterion:k,showTitle:!1})})]})},k.key)})}),b&&u?d.jsx("div",{className:"mt-1",children:d.jsx(zS,{draft:u,setDraft:h,onCancel:()=>{r(null),h(null)},onSave:m})}):d.jsxs("button",{type:"button",onClick:y,className:"mt-2 inline-flex items-center gap-1.5 rounded-lg px-2 py-1.5 text-[13px] text-stone-500 transition-colors hover:bg-stone-50 hover:text-stone-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C97B3A]/40",children:[d.jsx(_8,{className:"h-3.5 w-3.5","aria-hidden":!0}),i.addCriterion]})]})}function $S({criterion:e,expanded:t,onClick:n}){return d.jsxs("button",{type:"button","aria-expanded":t,onClick:n,className:"flex w-full items-start gap-1.5 rounded-md px-1 py-0.5 text-start focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C97B3A]/40",children:[d.jsx(Kv,{className:Re("mt-0.5 h-3.5 w-3.5 shrink-0 text-stone-400 transition-transform",t&&"rotate-180 text-[#C97B3A]"),"aria-hidden":!0}),d.jsxs("span",{className:"min-w-0",children:[d.jsx("span",{className:"block text-[13px] font-medium text-stone-800",children:e.name}),!t&&d.jsx("span",{className:"mt-0.5 block line-clamp-2 text-[12px] leading-5 text-stone-500",children:e.description})]})]})}function BS({children:e,label:t,onClick:n}){return d.jsx("button",{type:"button","aria-label":t,onClick:n,className:"rounded-md p-1 text-stone-400 transition-colors hover:bg-white hover:text-stone-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C97B3A]/40",children:e})}function zS({draft:e,setDraft:t,onCancel:n,onSave:i}){const{t:s}=On(),r="w-full rounded-md border border-stone-200 bg-white px-2 py-1 text-[13px] text-stone-800 placeholder:text-stone-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C97B3A]/40";return d.jsxs("div",{className:"rounded-lg bg-[#fdf6ee] p-2.5 ring-1 ring-[#C97B3A]/20",children:[d.jsx("input",{className:r,value:e.name,autoF
245ocus:!0,placeholder:s.namePlaceholder,onChange:o=>t({...e,name:o.target.value,short:o.target.value.split(" ")[0]||"New"})}),d.jsx("textarea",{className:Re(r,"mt-1.5 min-h-[88px] resize-y leading-5"),rows:4,value:e.description,placeholder:s.descriptionPlaceholder,onChange:o=>t({...e,description:o.target.value})}),d.jsx("p",{className:"mt-2 text-[11px] font-semibold uppercase tracking-[0.08em] text-stone-400",children:s.rubricEditHeading}),d.jsx("div",{className:"mt-1.5 space-y-1",children:e.levels.map((o,c)=>d.jsxs("div",{className:"flex items-start gap-1.5",children:[d.jsx("span",{className:"mt-1.5 w-4 shrink-0 text-center text-[11px] tabular-nums text-stone-400",children:c+1}),d.jsx("textarea",{className:Re(r,"min-h-[52px] resize-y leading-5"),rows:2,value:o,placeholder:c===0?s.weakest:c===4?s.strongest:s.levelPlaceholder(c+1),onChange:u=>{const h=[...e.levels];h[c]=u.target.value,t({...e,levels:h})}})]},c))}),d.jsxs("div",{className:"mt-2 flex gap-1.5",children:[d.jsxs("button",{type:"button",onClick:i,disabled:!e.name.trim(),className:"inline-flex items-center gap-1 rounded-md bg-zinc-800 px-2.5 py-1 text-[12.5px] font-medium text-white disabled:opacity-40",children:[d.jsx(f8,{className:"h-3.5 w-3.5","aria-hidden":!0}),s.save]}),d.jsxs("button",{type:"button",onClick:n,className:"inline-flex items-center gap-1 rounded-md border border-stone-200 bg-white px-2.5 py-1 text-[12.5px] text-stone-600",children:[d.jsx(qC,{className:"h-3.5 w-3.5","aria-hidden":!0}),s.cancel]})]})]})}const rh="h-9 w-full rounded-lg border border-stone-200 bg-white px-3 text-[13.5px] text-stone-800 placeholder:text-stone-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C97B3A]/40";function JH({role:e,candidateCount:t,criterionCount:n,onDownload:i,onSubmitLead:s}){const{t:r}=On(),[o,c]=P.useState({name:"",email:"",company:"",phone:""}),[u,h]=P.useState("idle"),[f,m]=P.useState(!1),x=o.name.trim()&&o.email.includes("@")&&o.company.trim(),y=async b=>{if(b.preventDefault(),!x)return;h("sending");let k=!1;try{const w=await s(o);k=!!(w&&(w.email||w.webhook))}catch{}m(k),i(),h("done")};return u==="done"?d.jsxs("div",{className:"rounded-xl bg-white p-5",children:[d.jsx("p",{className:"text-[13.5px] font-medium text-[#1d3a66]",children:r.reportDownloaded}),d.jsxs("p",{className:"mt-1 text-[12.5px] leading-5 text-stone-600",children:[r.reportBody," ",f?r.recordedFollowUp(o.email):r.notRecorded(o.email)]}),d.jsxs("button",{type:"button",onClick:i,className:"mt-2 inline-flex items-center gap-1.5 text-[13px] font-medium text-[#1d3a66] underline underline-offset-2",children:[d.jsx(Lx,{className:"h-3.5 w-3.5","aria-hidden":!0}),r.downloadAgain]})]}):d.jsxs("form",{onSubmit:y,className:"rounded-xl bg-white p-5",children:[d.jsx("p",{className:"pe-8 text-[16px] font-medium tracking-[-0.3px] text-stone-900",children:r.reportTitle(t)}),d.jsx("p",{className:"mt-1 max-w-[62ch] text-[12.5px] leading-5 text-stone-500",children:r.reportIntro(n)}),d.jsxs("div",{className:"mt-3 grid gap-2 sm:grid-cols-2",children:[d.jsxs("div",{children:[d.jsx("label",{htmlFor:"sc-name",className:"sr-only",children:r.yourName}),d.jsx("input",{id:"sc-name",className:rh,placeholder:r.yourName,value:o.name,onChange:b=>c({...o,name:b.target.value}),autoComplete:"name",required:!0})]}),d.jsxs("div",{children:[d.jsx("label",{htmlFor:"sc-email",className:"sr-only",children:r.workEmail}),d.jsx("input",{id:"sc-email",type:"email",className:rh,placeholder:r.workEmail,value:o.email,onChange:b=>c({...o,email:b.target.value}),autoComplete:"email",required:!0})]}),d.jsxs("div",{children:[d.jsx("label",{htmlFor:"sc-company",className:"sr-only",children:r.company}),d.jsx("input",{id:"sc-company",className:rh,placeholder:r.company,value:o.company,onChange:b=>c({...o,company:b.target.value}),autoComplete:"organization",required:!0})]}),d.jsxs("div",{children:[d.jsx("label",{htmlFor:"sc-phone",className:"sr-only",children:r.phoneOptional}),d.jsx("input",{id:"sc-phone",type:"tel",className:rh,placeholder:r.phoneOptional,value:o.phone,onChange:b=>c({...o,phone:b.target.value}),autoComplete:"tel"})]})]}),d.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-3",children:[d.jsxs("button",{type:"submit",disabled:!x||u==="sending",className:"inline-flex items-center gap-2 rounded-lg border border-zinc-800 bg-zinc-800 bg-[linear-gradient(rgba(204,204,204,0),rgba(255,255,255,0.1))] px-4 py-2 text-[14px] font-medium text-white transition-transform duration-300 hover:-translate-y-0.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C97B3A]/40 focu
245s-visible:ring-offset-2 disabled:translate-y-0 disabled:opacity-45 motion-reduce:transition-none motion-reduce:hover:translate-y-0",children:[u==="sending"?d.jsx(xo,{className:"h-4 w-4 animate-spin","aria-hidden":!0}):d.jsx(Lx,{className:"h-4 w-4","aria-hidden":!0}),r.downloadReport]}),d.jsx("p",{className:"text-[12px] leading-4 text-stone-400",children:r.reportFoot(e)})]})]})}function nc({value:e,label:t,accent:n}){return d.jsxs("div",{className:"bg-white px-3.5 py-2.5",children:[d.jsx("div",{className:Re("text-[21px] font-medium leading-tight tracking-[-0.8px] tabular-nums",n?"text-[#C97B3A]":"text-stone-900"),children:e}),d.jsx("div",{className:"mt-0.5 text-[12.5px] leading-5 text-stone-500",children:t})]})}function eW({candidates:e,criteria:t}){const{t:n}=On(),i=e.filter(r=>jr(r)===t.length).length,s=e.reduce((r,o)=>r+(t.length-jr(o)),0)/(e.length||1);return d.jsxs("div",{className:"grid grid-cols-2 gap-px overflow-hidden rounded-xl bg-stone-200/70 ring-1 ring-black/[0.04] lg:grid-cols-5 [&>*:last-child]:col-span-2 lg:[&>*:last-child]:col-span-1",children:[d.jsx(nc,{value:String(e.length),label:n.resumesScored}),d.jsx(nc,{value:String(i),label:n.evidenceOnAll(t.length)}),d.jsx(nc,{value:s.toFixed(1),label:n.unansweredEach,accent:!0}),d.jsx(nc,{value:String(e.filter(r=>Cr(r)>=4).length),label:n.averaging}),d.jsx(nc,{value:String(t.length),label:n.criteriaFromPosting})]})}function tW({criteria:e,query:t,onQuery:n,sort:i,onSort:s,filter:r,onFilter:o,shown:c,total:u}){const{t:h}=On();return d.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[d.jsx("input",{type:"search",value:t,onChange:f=>n(f.target.value),placeholder:h.searchPlaceholder,"aria-label":h.searchLabel,className:"h-9 min-w-[150px] flex-1 rounded-lg border border-stone-200 bg-white px-3 text-sm text-stone-800 placeholder:text-stone-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C97B3A]/40"}),d.jsx("label",{htmlFor:"sc-sort",className:"text-[13px] text-stone-400",children:h.sort}),d.jsxs("select",{id:"sc-sort",value:i,onChange:f=>s(f.target.value),className:"h-9 rounded-lg border border-stone-200 bg-white px-2.5 text-[13.5px] text-stone-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C97B3A]/40",children:[d.jsx("option",{value:"average",children:h.sortAverage}),d.jsx("option",{value:"coverage",children:h.sortCoverage}),e.map(f=>d.jsx("option",{value:f.key,children:f.name},f.key))]}),[["complete",h.filterComplete(e.length)],["gaps",h.filterGaps]].map(([f,m])=>d.jsx("button",{type:"button","aria-pressed":r===f,onClick:()=>o(r===f?"all":f),className:Re("h-9 rounded-full border px-3.5 text-[13px] transition-colors",r===f?"border-[#C97B3A] bg-[#fdf6ee] font-medium text-[#B56C30]":"border-stone-200 bg-white text-stone-600 hover:bg-stone-50"),children:m},f)),d.jsx("span",{className:"ms-auto text-[12.5px] tabular-nums text-stone-400",children:h.shownOf(c,u)})]})}function nW(e,t){if(t<As)return;const n=(Sr(e)-1)/4;return{backgroundColor:`color-mix(in oklab, #C97B3A ${Math.round(10+n*74)}%, #ffffff)`,color:n>.5?"#ffffff":"#292524"}}const VS="sticky start-11 z-20 min-w-[148px] max-w-[200px] shadow-[4px_0_6px_-4px_rgba(41,37,36,0.25)] rtl:shadow-[-4px_0_6px_-4px_rgba(41,37,36,0.25)]",HS="sticky start-0 z-20 w-11 min-w-11";function iW({criteria:e,candidates:t,sort:n,onSort:i}){const{t:s}=On(),[r,o]=P.useState(null),c=(u,h,f)=>{const m=d.jsx("span",{className:Re("block",n===u&&"text-[#C97B3A]"),children:h});return d.jsx("th",{scope:"col",onClick:f?void 0:()=>i(u),className:Re("sticky top-0 z-30 whitespace-nowrap border-b border-stone-200/70 bg-stone-50 p-0 text-start","text-[11px] font-medium uppercase tracking-[0.08em] text-stone-400",!f&&"cursor-pointer",n===u&&"text-[#C97B3A]"),children:f?d.jsx(wv,{criterion:f,pinOnClick:!0,className:"block cursor-pointer px-2.5 py-2",children:m}):d.jsx("span",{className:"block px-2.5 py-2",children:m})},u)};return d.jsxs("table",{className:"w-max min-w-full border-separate border-spacing-0 text-[13.5px]",children:[d.jsx("thead",{children:d.jsxs("tr",{children:[d.jsx("th",{scope:"col",className:Re(HS,"sticky top-0 z-40 border-b border-stone-200/70 bg-stone-50 px-3 py-2 text-start text-[11px] font-medium uppercase tracking-[0.08em] text-stone-400"),children:s.colNum}),d.jsx("th",{scope:"col",className:Re(VS,"sticky top-0 z-40 border-b border-stone-200/70 bg-stone-50 px-2.5 py-2 text-start text-[11px] font-medium uppercase tracking-[0.08em] text-stone-400"),children:s.colCandidate}),d.jsx("th",{scope:"col",className:"sticky top-0 z-30 border-b border-stone-200/70 bg-stone-50 px-2.5 py-2 text-start text-[11px] font-medium uppercase tracking-[0.08em] text-stone-400",children:s.colTitle}),e.map(u=>
245c(u.key,u.short,u)),c("coverage",s.colEvidence),c("average",s.colAvg),d.jsx("th",{scope:"col",className:"sticky top-0 z-30 border-b border-stone-200/70 bg-stone-50 px-2.5 py-2 text-start text-[11px] font-medium uppercase tracking-[0.08em] text-stone-400",children:s.colAsk})]})}),d.jsx("tbody",{children:t.map((u,h)=>{const f=jr(u),m=e.length-f,x=r===u.id,y=x?"bg-[#fdf6ee]":"bg-white group-hover:bg-stone-50";return d.jsxs(P.Fragment,{children:[d.jsxs("tr",{onClick:()=>o(x?null:u.id),className:Re("group cursor-pointer",x?"bg-[#fdf6ee]":"hover:bg-stone-50"),children:[d.jsx("td",{className:Re(HS,y,"border-t border-stone-200/70 px-3 py-1.5 text-[12.5px] tabular-nums text-stone-400"),children:h+1}),d.jsx("td",{className:Re(VS,y,"border-t border-stone-200/70 px-2.5 py-1.5 font-medium text-stone-800"),title:u.name?void 0:s.nameHidden,children:u.name??d.jsxs("span",{className:"text-stone-400",children:["— ",u.id]})}),d.jsx("td",{className:"max-w-[215px] truncate border-t border-stone-200/70 px-2.5 py-1.5 text-[12.5px] text-stone-500",title:u.role,children:u.role}),u.scores.map((b,k)=>{const w=e[k],S=b.evidence<As,j=S?null:Y0(b.score,w.levels.length);return d.jsx("td",{className:"border-t border-stone-200/70 px-2.5 py-1.5",children:d.jsx(wv,{criterion:w,activeIndex:j,className:"inline-block",preface:d.jsxs("p",{className:"mb-2 text-[12px] leading-5 text-stone-500",children:[s.scoreLine(Sr(b.score).toFixed(1),B4(s,b.evidence)),S?`. ${s.nothingMaps}`:` · ${s.levelLabel((j??0)+1)}`]}),children:d.jsx("span",{style:nW(b.score,b.evidence),className:Re("inline-block min-w-[36px] rounded px-1.5 py-0.5 text-center text-[12.5px] tabular-nums",S&&"bg-[repeating-linear-gradient(135deg,#e7e5e4_0_3px,transparent_3px_6px)] text-stone-400"),children:Sr(b.score).toFixed(1)})})},w.key)}),d.jsx("td",{className:"border-t border-stone-200/70 px-2.5 py-1.5",children:d.jsxs("span",{className:"flex items-center gap-2 tabular-nums text-stone-600",children:[d.jsx("span",{className:"h-1.5 w-11 overflow-hidden rounded-full bg-stone-200",children:d.jsx("span",{className:"block h-full bg-stone-500",style:{width:`${f/e.length*100}%`}})}),f,"/",e.length]})}),d.jsx("td",{className:"border-t border-stone-200/70 px-2.5 py-1.5 tabular-nums text-stone-700",children:Cr(u).toFixed(1)}),d.jsx("td",{className:"border-t border-stone-200/70 px-2.5 py-1.5",children:m?d.jsx("span",{className:"font-medium tabular-nums text-[#B56C30]",children:m}):d.jsx("span",{className:"text-stone-300",children:"—"})})]}),x&&d.jsx("tr",{children:d.jsx("td",{colSpan:e.length+6,className:"bg-white px-3.5 pb-5 pt-1",children:d.jsx(sW,{candidate:u,criteria:e})})})]},u.id)})})]})}function sW({candidate:e,criteria:t}){const{t:n}=On(),i=F4(e,t);return d.jsxs("div",{className:"grid gap-5 lg:grid-cols-[minmax(0,1fr)_minmax(220px,0.7fr)]",children:[d.jsx("div",{children:t.map((s,r)=>d.jsx(W4,{criterion:s,score:e.scores[r].score,evidence:e.scores[r].evidence},s.key))}),d.jsxs("div",{className:Re("self-start rounded-xl p-4",i.length?"bg-[#fdf6ee]":"bg-[#eef2f8]"),children:[d.jsx("p",{className:Re("text-[11.5px] font-semibold uppercase tracking-[0.08em]",i.length?"text-[#B56C30]":"text-[#1d3a66]"),children:i.length?n.askInterview:n.nothingMissing}),d.jsx("ul",{className:"mt-2 list-disc space-y-1 ps-4 text-[13px] leading-5 text-stone-600",children:i.length?i.map(s=>d.jsxs("li",{children:[d.jsxs("span",{className:"font-medium text-stone-800",children:[s.name,". "]}),s.description]},s.key)):d.jsx("li",{children:n.nothingMissingBody})})]})]})}function Zg({candidates:e,criteria:t,role:n,tone:i,limit:s}){const{t:r}=On(),[o,c]=P.useState(null),u=s?e.slice(0,s):e;return u.length===0?d.jsx("p",{className:"py-10 text-center text-[13.5px] text-stone-400",children:r.emptyGroup}):d.jsx("ol",{className:"divide-y divide-stone-200/70",children:u.map((h,f)=>{const m=F4(h,t),x=OH(h,t),y=o===h.id;return d.jsxs("li",{children:[d.jsxs("button",{type:"button",onClick:()=>c(y?null:h.id),className:"flex w-full items-start gap-3 py-3 text-start transition-colors hover:bg-stone-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C97B3A]/40",children:[d.jsx("span",{className:"w-5 shrink-0 pt-0.5 text-[13px] tabular-nums text-stone-300",children:f+1}),d.jsxs("span",{className:"min-w-0 flex-1",children:[d.jsxs("span",{className:"flex flex-wrap items-baseline gap-x-2",children:[d.jsx("span",{className:"text-[14.5px] font-medium text-stone-900",children:h.name??h.role}),h.name?d.jsx("span",{className:"truncate text-[13px] text-stone-500",children:h.role}):d.jsxs("span",{className:"rounded-full bg-stone-100 px-2 py-0.5 text-[11px] text-stone-400",title:r.nameHiddenSample,children:[r.nameHidden," · ",h.id]})]}),i==="interview"?d.jsxs("span",{className:"mt-1 block text-[13px] leading-5 text-stone-600",children:[r.evidence
245s," ",x.map((b,k)=>d.jsxs("span",{children:[k>0&&` ${r.andWord} `,d.jsx("span",{className:"font-medium text-stone-800",children:b.criterion.name})]},b.criterion.key)),m.length>0&&d.jsxs(d.Fragment,{children:[" · ",d.jsxs("span",{className:"text-[#B56C30]",children:[r.askAbout," ",m.map(b=>b.name).join(", ")]})]})]}):d.jsxs("span",{className:"mt-1 block text-[13px] leading-5 text-stone-600",children:[r.evidenceOnOf(jr(h),t.length)," ·"," ",d.jsxs("span",{className:"text-[#B56C30]",children:[r.silentOn," ",m.map(b=>b.name).join(", ")]})]})]}),d.jsxs("span",{className:"flex shrink-0 items-center gap-3 pt-0.5",children:[d.jsxs("span",{className:"text-right",children:[d.jsx("span",{className:"block text-[15px] font-medium tabular-nums text-stone-900",children:Cr(h).toFixed(1)}),d.jsx("span",{className:"block text-[11px] text-stone-400",children:r.ofFive})]}),d.jsx(Kv,{className:Re("h-4 w-4 text-stone-300 transition-transform",y&&"rotate-180"),"aria-hidden":!0})]})]}),y&&d.jsxs("div",{className:"grid gap-4 pb-4 ps-8 lg:grid-cols-[minmax(0,1fr)_minmax(220px,0.7fr)]",children:[d.jsx("div",{children:t.map((b,k)=>d.jsx(W4,{criterion:b,score:h.scores[k].score,evidence:h.scores[k].evidence},b.key))}),d.jsxs("div",{className:"self-start rounded-xl bg-[#fdf6ee] p-3.5",children:[d.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.08em] text-[#B56C30]",children:r.askInInterview}),d.jsx("ul",{className:"mt-1.5 list-disc space-y-1 ps-4 text-[12.5px] leading-5 text-stone-600",children:m.length?m.map(b=>d.jsx("li",{children:b.description},b.key)):d.jsx("li",{children:r.everythingCovered(n)})})]})]})]},h.id)})})}const Nh=25,rW=4*1024*1024,aW=4;class Ca extends Error{}class K0 extends Ca{}async function _p(e,t){const n=await fetch(`/api/signal-check/${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),i=await n.json().catch(()=>({}));if(!n.ok){const s=i.error??"That didn't work.";throw n.status===429?new K0(s):new Ca(s)}return i}const oW=e=>_p("criteria",{jobDescription:e}),lW=e=>_p("lead",e),cW=e=>new Promise((t,n)=>{const i=new FileReader;i.onerror=()=>n(new Ca(`Couldn't read ${e.name}`)),i.onload=()=>t(String(i.result).split(",")[1]??""),i.readAsDataURL(e)});async function dW(e,t,n,i){try{if(e.size>rW)return{status:"failed",fileName:e.name,reason:"Larger than 4MB"};const s=await _p("parse",{fileName:e.name,contentType:e.type,fileBase64:await cW(e)}),{scores:r}=await _p("score",{resumeText:s.text,role:n,criteria:i}),o=new Map(r.map(c=>[c.key,c]));return{status:"done",candidate:{id:`R${String(t+1).padStart(3,"0")}`,name:s.name,role:s.title??e.name.replace(/\.[^.]+$/,""),roles:0,scores:i.map(c=>{const u=o.get(c.key);return{score:(u==null?void 0:u.score)??0,evidence:(u==null?void 0:u.evidence)??0}})}}}catch(s){if(s instanceof K0)throw s;return{status:"failed",fileName:e.name,reason:s instanceof Ca?s.message:"Couldn't be read"}}}async function uW(e,t,n,i){const s=e.slice(0,Nh),r=new Array(s.length);let o=0,c=0,u=null;const h=async()=>{for(;o<s.length&&!u;){const f=o++,m=s[f];i(c,s.length,m.name);try{r[f]=await dW(m,f,t,n)}catch(x){if(x instanceof K0){u=x;break}throw x}c+=1,i(c,s.length,m.name)}};if(await Promise.all(Array.from({length:Math.min(aW,s.length)},h)),u)throw u;return r.filter(Boolean)}const hW=["maya-okafor","daniel-reyes","lena-fischer","tom-brennan","carlos-mendoza","priya-nair","sam-adeyemi","hannah-kim"];async function pW(){return Promise.all(hW.map(async e=>{const t=await fetch(`/signal-check/samples/${e}.pdf`);if(!t.ok)throw new Ca(`Sample ${e} is unavailable`);return new File([await t.blob()],`${e}.pdf`,{type:"application/pdf"})}))}const Jg=10;function fW({criteria:e,candidates:t,role:n,tab:i,onTab:s,onStartOver:r,startOverDisabled:o}){const{t:c}=On(),[u,h]=P.useState(!1),[f,m]=P.useState("average"),[x,y]=P.useState(!0),[b,k]=P.useState(""),[w,S]=P.useState("all"),j=P.useMemo(()=>t.filter(O=>LH(O,b)&&DH(O,e,w)).sort((O,G)=>DS(O,G,e,f,x)),[t,e,b,w,f,x]),N=P.useMemo(()=>{const O=MH(j,e),G=X=>[...X].sort((ee,le)=>DS(ee,le,e,f,x));return{interview:G(O.interview),look:G(O.look),nomatch:G(O.nomatch)}},[j,e,f,x]),E=t.filter(O=>jr(O)<e.length).length,T=O=>me==null?void 0:me.capture("signal_check_cta_clicked",{target:O,candidate_count:t.length,with_gaps:E}),L=O=>{f===O?y(G=>!G):(m(O),y(!0))};P.useEffect(()=>{if(!u)return;const O=G=>{G.key==="Escape"&&h(!1)};return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},[u]);const M=()=>{me==null||me.capture("signal_check_report_downloaded",{candidate_count:t.length,criterion_count:e.length});const O=FH(t,e,n,qH(c)),G=URL.createObjectURL(new Blob([O],{type:"text/csv;charset=utf-8"})),X=document.createElement("a");X.href=G,X.download=`signal-check-${n.toLowerCase().replace(/\s+/g,"-")}.csv`,document.body.appendChild(X),X.click(),X.remove(),URL.revokeObjectURL(G)},A=[{id:"all",label:c.tabAll,count:j.length},{id:"interview",label:c.tabInterview,count:Math.min(N.interview.length,Jg)},{id:"look",label:c.tabLook,count:N.look.length},{id:"nomatch",label:c.tabNomatch,count:N.nomatch.length}];return d.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[d.jsxs("div",{className:"shrink-0 bg-white pb-2.5",children:[d.jsx(eW,{candidates:t,criteria:e}),E>0&&d.jsxs("div",{className:"mt-2.5 flex flex-wrap items-center gap-x-4 gap-y-2 rounded-xl bg-[#fdf6ee] px-3.5 py-2.5 ring-1 ring-[#C97B3A]/15",children:[d.jsxs("p",{className:"min-w-0 flex-1 text-[13px] leading-5 text-stone-700",children:[d.jsx("span",{className:"font-medium text-stone-900",children:c.ctaGaps(E,t.length)})," ",c.ctaBody]}),d.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[d.jsxs("a",{href:"https://app.confeti.co/?utm_source=signal-check&utm_medium=lead-magnet&utm_campaign=results-cta",onClick:()=>T("start"),className:"inline-flex items-center gap-1.5 rounded-lg border border-zinc-800 bg-zinc-800 bg-[linear-gradient(rgba(204,204,204,0),rgba(255,255,255,0.1))] px-3.5 py-1.5 text-[13px] font-medium text-white transition-transform duration-300 hover:-translate-y-0.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C97B3A]/40 motion-reduce:transition-none motion-reduce:hover:translate-y-0",children:[c.ctaPrimary,d.jsx(dd,{className:"h-3.5 w-3.5 rtl:rotate-180","aria-hidden":!0})]}),d.jsx("a",{href:"/contact?source=signal-check",onClick:()=>T("talk"),className:"rounded-lg px-2.5 py-1.5 text-[13px] text-stone-600 transition-colors hover:bg-white hover:text-stone-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C97B3A]/40",children:c.ctaSecondary})]})]}),d.jsx(tW,{criteria:e,query:b,onQuery:k,sort:f,onSort:O=>{m(O),y(!0)},filter:w,onFilter:S,shown:j.length,total:t.length}),d.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-1.5 border-b border-stone-200/70 pb-2.5",children:[A.map(O=>d.jsxs("button",{type:"button",onClick:()=>s(O.id),"aria-current":i===O.id,className:Re("rounded-full px-3 py-1.5 text-[13px] transition-colors",i===O.id?"bg-stone-800 font-medium text-white":"text-stone-600 hover:bg-stone-100"),children:[O.label,d.jsx("span",{className:Re("ms-1.5 tabular-nums",i===O.id?"text-white/60":"text-stone-400"),children:O.count})]},O.id)),d.jsxs("button",{type:"button",onClick:r,disabled:o,className:"ms-auto inline-flex items-center gap-1.5 rounded-full border border-stone-200 px-3 py-1.5 text-[13px] text-stone-600 transition-colors hover:bg-stone-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C97B3A]/40 disabled:opacity-45",children:[d.jsx(k8,{className:"h-3.5 w-3.5","aria-hidden":!0}),c.startOver]}),d.jsxs("button",{type:"button",onClick:()=>{h(!0),me==null||me.capture("signal_check_report_gate_opened",{candidate_count:t.length,criterion_count:e.length})},className:"inline-flex items-center gap-1.5 rounded-full border border-stone-200 px-3 py-1.5 text-[13px] text-stone-600 transition-colors hover:bg-stone-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C97B3A]/40",children:[d.jsx(Lx,{className:"h-3.5 w-3.5","aria-hidden":!0}),c.fullReport]})]})]}),d.jsx("div",{className:"h-[46vh] flex-none overflow-auto lg:h-auto lg:min-h-0 lg:flex-1",children:j.length===0?d.jsx("p",{className:"py-10 text-center text-[13.5px] text-stone-400",children:c.noFilterMatch}):d.jsxs(d.Fragment,{children:[i==="all"&&d.jsx(iW,{criteria:e,candidates:j,sort:f,onSort:L}),i==="interview"&&d.jsxs(d.Fragment,{children:[d.jsx("p",{className:"py-2 text-[13px] leading-5 text-stone-500",children:c.interviewBlurb(Math.min(N.interview.length,Jg))}),d.jsx(Zg,{candidates:N.interview,criteria:e,role:n,tone:"interview",limit:Jg})]}),i==="look"&&d.jsxs(d.Fragment,{children:[d.jsx("p",{className:"py-2 text-[13px] leading-5 text-stone-500",children:c.lookBlurb}),d.jsx(Zg,{candidates:N.look,criteria:e,role:n,tone:"look"})]}),i==="nomatch"&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"my-2 rounded-lg bg-stone-50 px-3 py-2.5 text-[12.5px] leading-5 text-stone-500",children:[c.nomatchBefore(n)," ",d.jsx("span",{className:"text-stone-700",children:c.nomatchEmphasis})," ",c.nomatchAfter]}),d.jsx(Zg,{candidates:N.nomatch,criteria:e,role:n,tone:"look"})]})]})}),d.jsx("p",{className:"shrink-0 border-t border-stone-200/70 pt-2 text-[12.5px] leading-5 text-stone-400",children:c.footnote(n)}),u&&d.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-stone-900/30 p-4 backdrop-blur-[2px]",role:"dialog","aria-modal":"true","aria-label":c.downloadDialog,onClick:O=>{O.target===O.currentTarget&&h(!1)},children:d.jsxs("div",{className:"relative w-full max-w-lg rounded-2xl bg-white p-1 shadow-[0_24px_60px_-2
2450px_rgba(41,37,36,0.45)]",children:[d.jsx("button",{type:"button",onClick:()=>h(!1),"aria-label":c.close,className:"absolute end-3 top-3 z-10 rounded-md p-1 text-stone-400 transition-colors hover:bg-stone-100 hover:text-stone-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C97B3A]/40",children:d.jsx(qC,{className:"h-4 w-4","aria-hidden":!0})}),d.jsx(JH,{onSubmitLead:O=>lW({...O,role:n,resumeCount:t.length}),role:n,candidateCount:t.length,criterionCount:e.length,onDownload:M})]})})]})}const ex="inline-flex items-center justify-center gap-2 rounded-lg border border-zinc-800 bg-zinc-800 bg-[linear-gradient(rgba(204,204,204,0),rgba(255,255,255,0.1))] px-4 py-2 text-[14px] font-medium text-white transition-transform duration-300 hover:-translate-y-0.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C97B3A]/40 focus-visible:ring-offset-2 disabled:translate-y-0 disabled:opacity-45 motion-reduce:transition-none motion-reduce:hover:translate-y-0",mW=()=>{const{t:e,dir:t,locale:n}=On(),i=P.useRef(null),[s,r]=P.useState(""),[o,c]=P.useState(!0),[u,h]=P.useState(null),[f,m]=P.useState([]),[x,y]=P.useState(null),[b,k]=P.useState([]),[w,S]=P.useState([]),[j,N]=P.useState(null),[E,T]=P.useState({done:0,total:0,current:""}),[L,M]=P.useState([]),[A,O]=P.useState(!1),[G,X]=P.useState(!1),[ee,le]=P.useState(null),[re,ne]=P.useState("all"),Z=f.length>0,ce=b.length>0,W=ce&&JSON.stringify(x)!==JSON.stringify(f),J=async()=>{N("criteria"),le(null);try{const te=await oW(s);h(te.role),m(te.criteria),c(!1),me==null||me.capture("signal_check_criteria_extracted",{criterion_count:te.criteria.length})}catch(te){le(te instanceof Ca?te.message:e.criteriaError)}finally{N(null)}},H=te=>{const he=te?Array.from(te):[];he.length!==0&&(S(He=>[...He,...he].slice(0,Nh)),le(null),me==null||me.capture("signal_check_resumes_added",{added_count:he.length}))},F=async()=>{X(!0),le(null);try{S(await pW()),me==null||me.capture("signal_check_samples_loaded")}catch{le(e.samplesError)}finally{X(!1)}},Y=async()=>{if(!w.length)return;N("scoring"),le(null),M([]);let te=[];try{te=await uW(w,(u==null?void 0:u.title)??"this role",f,(Ee,Pe,pt)=>T({done:Ee,total:Pe,current:pt}))}catch(Ee){le(Ee instanceof Ca?Ee.message:e.scoreError),N(null);return}const he=te.flatMap(Ee=>Ee.status==="done"?[Ee.candidate]:[]),He=te.flatMap(Ee=>Ee.status==="failed"?[Ee]:[]);M(He),he.length?(k(he),y(f),ne("all"),me==null||me.capture("signal_check_scoring_completed",{candidate_count:he.length,criterion_count:f.length,failed_count:He.length})):le(e.noneRead),N(null)},xe=()=>{k([]),S([]),M([]),le(null),T({done:0,total:0,current:""}),y(null),ne("all")},ge=()=>{ce&&!window.confirm(e.newRoleConfirm)||(xe(),r(""),c(!0),h(null),m([]),me==null||me.capture("signal_check_new_role"))};return d.jsxs("div",{className:"flex min-h-dvh flex-col bg-[#faf8f6] font-geist text-stone-800 lg:h-dvh lg:min-h-0",children:[d.jsx(si,{}),d.jsxs("div",{dir:t,lang:n,className:"mx-auto flex w-full max-w-[1400px] flex-1 flex-col px-4 pb-4 md:px-6 lg:min-h-0",children:[d.jsxs("header",{className:"flex flex-wrap items-baseline gap-x-3 gap-y-1 py-3",children:[d.jsx("h1",{className:"text-[20px] font-medium tracking-[-0.6px] text-stone-900",children:e.productName}),d.jsxs("p",{className:"text-[13.5px] text-stone-500",children:[e.taglineBefore," ",d.jsx("span",{className:"font-medium text-stone-800",children:e.taglineRole})," ",e.taglineAfter]}),d.jsxs("div",{className:"ms-auto flex flex-wrap items-center gap-3",children:[d.jsx(KH,{}),d.jsx("span",{className:"text-[12px] text-stone-400",children:e.freeLine(Nh)})]})]}),d.jsxs("div",{className:"grid gap-3 lg:min-h-0 lg:flex-1 lg:grid-cols-[336px_minmax(0,1fr)] lg:grid-rows-[minmax(0,1fr)]",children:[d.jsxs("aside",{className:"flex flex-col gap-3 overflow-y-auto rounded-2xl bg-white p-4 ring-1 ring-black/[0.04] lg:min-h-0",children:[d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center justify-between gap-2",children:[d.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.08em] text-stone-400",children:e.scoringAgainst}),Z&&d.jsxs("button",{type:"button",onClick:ge,disabled:j!==null,className:"inline-flex items-center gap-1 rounded-md px-1.5 py-0.5 text-[12px] text-stone-500 transition-colors hover:bg-stone-100 hover:text-stone-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C97B3A]/40 disabled:opacity-45",children:[d.jsx(y8,{className:"h-3.5 w-3.5","aria-hidden":!0}),e.newRole]})]}),d.jsx("p",{className:"mt-1 text-[15px] font-medium leading-6 tracking-[-0.3px] text-stone-900",children:(u==null?void 0:u.title)??e.pasteToBegin}),(u==null?void 0:u.context)&&d.jsx("p",{className:"text-[12.5px] text-stone-500",children:u.context})]}),d.jsxs("div",{className:"border-t border-stone-200/70 pt-3",children:[d.jsxs("button",{type:"button",onClick:()=>c(te=>!te),className:"flex w-full items-center justify-between gap-2 text-[11px] font-semibold uppercase tracking-[0.08em] text-stone-400 transition-colors hover:text-stone-600 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C97B3A]/40","aria-expanded":o,children:[e.jobDescription,o?d.jsx(m8,{className:"h-3.5 w-3.5","aria-hidden":!0}):d.jsx(Kv,{className:"h-3.5 w-3.5","aria-hidden":!0})]}),o?d.jsxs(d.Fragment,{children:[d.jsx("label",{htmlFor:"sc-jd",className:"sr-only",children:e.jobDescription}
245),d.jsx("textarea",{id:"sc-jd",spellCheck:!1,value:s,onChange:te=>r(te.target.value),placeholder:e.pastePlaceholder,className:"mt-2 h-[150px] w-full resize-y rounded-lg border border-stone-200 bg-stone-50/70 p-2.5 text-[12.5px] leading-5 text-stone-700 placeholder:text-stone-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C97B3A]/40"}),!s.trim()&&d.jsx("button",{type:"button",onClick:()=>r(AH),className:"mt-1.5 text-[12px] text-stone-400 underline underline-offset-2 transition-colors hover:text-stone-600",children:e.useExample}),d.jsxs("button",{type:"button",className:Re(ex,"mt-2 w-full"),disabled:j!==null||!s.trim(),onClick:J,children:[j==="criteria"&&d.jsx(xo,{className:"h-4 w-4 animate-spin","aria-hidden":!0}),Z?e.reread:e.extract]})]}):d.jsxs("p",{className:"mt-1.5 line-clamp-2 text-[12.5px] leading-5 text-stone-400",children:[s.slice(0,160),"…"]})]}),Z&&d.jsx("div",{className:"border-t border-stone-200/70 pt-3",children:d.jsx(ZH,{criteria:f,onChange:m,dirty:W})})]}),d.jsx("section",{className:"flex min-h-0 flex-col overflow-hidden rounded-2xl bg-white p-4 ring-1 ring-black/[0.04] lg:flex-1",children:ce?d.jsxs(d.Fragment,{children:[W&&d.jsxs("div",{className:"mb-3 flex shrink-0 flex-wrap items-center gap-3 rounded-lg bg-[#fdf6ee] px-3 py-2 text-[13px] text-[#B56C30]",children:[d.jsx("span",{children:e.criteriaChanged}),d.jsxs("button",{type:"button",onClick:Y,disabled:j!==null,className:"ms-auto inline-flex items-center gap-1.5 rounded-md bg-[#C97B3A] px-2.5 py-1 text-[12.5px] font-medium text-white disabled:opacity-50",children:[j==="scoring"&&d.jsx(xo,{className:"h-3.5 w-3.5 animate-spin","aria-hidden":!0}),e.rescore(w.length||b.length)]})]}),L.length>0&&d.jsx("p",{className:"mb-2 shrink-0 rounded-lg bg-stone-50 px-3 py-2 text-[12.5px] leading-5 text-stone-500",children:e.skipped(L.length,L.map(te=>`${te.fileName} (${UH(e,te.reason)})`).join(", "))}),d.jsx(fW,{criteria:x??f,candidates:b,role:(u==null?void 0:u.title)??e.thisRole,tab:re,onTab:ne,onStartOver:xe,startOverDisabled:j!==null})]}):d.jsxs("div",{className:"flex min-h-0 flex-1 flex-col items-center justify-center gap-4 overflow-y-auto text-center",children:[d.jsxs("div",{onDragOver:te=>{te.preventDefault(),Z&&O(!0)},onDragLeave:()=>O(!1),onDrop:te=>{te.preventDefault(),O(!1),Z&&H(te.dataTransfer.files)},className:Re("w-full max-w-md rounded-xl border border-dashed px-6 py-9 transition-colors",A?"border-[#C97B3A] bg-[#fdf6ee]":"border-stone-300 bg-stone-50/70",!Z&&"opacity-50"),children:[d.jsx(x8,{className:"mx-auto h-6 w-6 text-stone-400","aria-hidden":!0}),d.jsx("p",{className:"mt-2 font-medium text-stone-800",children:e.dropResumes}),d.jsx("p",{className:"mx-auto mt-1 max-w-[44ch] text-[13px] leading-5 text-stone-500",children:Z?e.dropHint(Nh):e.dropNeedCriteria}),d.jsx("input",{ref:i,type:"file",multiple:!0,accept:".pdf,.doc,.docx,application/pdf",className:"sr-only",onChange:te=>{H(te.target.files),te.target.value=""}}),Z&&d.jsxs("div",{className:"mt-4 flex flex-wrap items-center justify-center gap-2",children:[d.jsx("button",{type:"button",className:Re(ex,"bg-white bg-none text-stone-800 border-stone-200"),disabled:j!==null,onClick:()=>{var te;return(te=i.current)==null?void 0:te.click()},children:e.chooseFiles}),d.jsxs("button",{type:"button",className:ex,disabled:j!==null||w.length===0,onClick:Y,children:[j==="scoring"&&d.jsx(xo,{className:"h-4 w-4 animate-spin","aria-hidden":!0}),w.length?e.scoreCount(w.length):e.scoreResumes]})]}),Z&&w.length===0&&j===null&&d.jsxs("div",{className:"mt-4",children:[d.jsxs("button",{type:"button",onClick:F,disabled:G,className:"inline-flex items-center gap-1.5 text-[13px] font-medium text-[#B56C30] underline underline-offset-2 transition-colors hover:text-[#8b5320] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C97B3A]/40 disabled:opacity-50",children:[G&&d.jsx(xo,{className:"h-3.5 w-3.5 animate-spin","aria-hidden":!0}),G?e.loadingSamples:e.trySamples]}),d.jsx("p",{className:"mt-0.5 text-[12px] text-stone-400",children:e.samplesNote})]}),w.length>0&&j===null&&d.jsxs("div",{className:"mt-3 text-start",children:[d.jsxs("p",{className:"text-[12px] text-stone-500",children:[e.filesReady(w.length)," ·"," ",d.jsx("button",{type:"button",onClick:()=>S([]),className:"underline underline-offset-2 hover:text-stone-700",children:e.clear})]}),d.jsx("ul",{className:"mt-1 max-h-24 overflow-y-auto text-[12px] text-stone-400",children:w.map((te,he)=>d.jsx("li",{className:"truncate",children:te.name},`${te.name}-${he}`))})]}),j==="scoring"&&E.total>0&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"mx-auto mt-3 h-[3px] w-48 overflow-hidden rounded-full bg-stone-200",children:d.jsx("div",{className:"h-full bg-[#C97B3A] transition-[width] duration-200",style:{width:`${E.done/E.total*100}%`}})}),d.jsx("p",{className:"mt-1.5 text-[12px] tabular-nums text-stone-400",children:e.progress(E.done,E.total,E.current)})]})]}),ee&&d.jsx("p",{className:"max-w-[52ch] rounded-lg bg-[#fceded] px-3 py-2 text-[12.5px] leading-5 text-[#a32d2d]",children:ee}),d.jsx("p",{className:"max-w-[52ch] text-[12.5px] leading-5 text-stone-400",children:e.privacy})]})})]})]})]})},gW=()=>d.jsx(GH,{children:d.jsx(mW,{})}),xW=()=>d.jsxs(qA,{children:[d.jsx(en,{path:"/",element:d.jsx(oM,{})}),d.jsx(en,{path:"/ai-page",element:d.jsx(cM,{})}),d.jsx(en,{path:"/hiring-intelligence",element:d.jsx(EH,{})}),d.jsx(en,{path:"/product/roles-intakes",element:d.jsx(ql,{productKey:"roles-intakes"})}),d.jsx(en,{path:"/product/interviews",element:d.jsx(ql,{productKey:"interviews"})}),d.jsx(en,{path:"/product/candidates-evaluations",element:d.jsx(ql,{productKey:"candidates-evaluations"})}),d.jsx(en,{path:"/product/hiring-process",element:d.jsx(ql,{productKey:"hiring-process"})}),d.jsx(en,{path:"/product/hiring-analytics",element:d.jsx(ql,{productKey:"hiring-analytics"})}),d.jsx(en,{path:"/pricing",element:d.jsx(c8,{})}),d.jsx(en,{path:"/contact",element:d.jsx(d9,{})}),d.jsx(en,{path:"/download",element:d.jsx(u9,{})}),d.jsx(en,{path:"/trust",element:d.jsx(y7,{})}),d.jsx(en,{path:"/security",element:d.jsx(k7,{})}),d.jsx(en,{path:"/signal-check",element:d.jsx(gW,{})}),d.jsx(en,{path:"/labs",element:d.jsx(N7,{})}),d.jsx(en,{path:"/labs/:slug",element:d.jsx(HV,{})}),d.jsx(en,{path:"*",element:d.jsx(lj,{to:"/",replace:!0})})]}),vW="696d4ae8d6b81b000d693c47";function yW(){if(typeof window>"u"||window.gtag)return;const e=document.createElement("script");
245e.async=!0,e.src=`https://www.googletagmanager.com/gtag/js?id=${Hx}`,document.head.appendChild(e),window.dataLayer=window.dataLayer||[],window.gtag=function(...n){window.dataLayer.push(n)},window.gtag("js",new Date),window.gtag("config",Hx,{send_page_view:!1})}function bW(){if(typeof window>"u"||document.getElementById("apollo-website-tracker"))return;const e=document.createElement("script");e.id="apollo-website-tracker",e.async=!0,e.defer=!0,e.text=`function initApollo(){var n=Math.random().toString(36).substring(7),o=document.createElement("script");
246o.src="https://assets.apollo.io/micro/website-tracker/tracker.iife.js?nocache="+n,o.async=!0,o.defer=!0,
247o.onload=function(){window.trackingFunctions.onLoad({appId:"${vW}"})},
248document.head.appendChild(o)}initApollo();`,document.head.appendChild(e)}function wW(){const e=Sp();return P.useEffect(()=>{yW(),bW()},[]),P.useEffect(()=>{const t=`${e.pathname}${e.search}`;o9(t),me==null||me.capture("$pageview",{$current_url:`${window.location.origin}${t}`})},[e.pathname,e.search]),null}function _W(e){return e instanceof Element?e.closest("a"):null}function kW(){return P.useEffect(()=>{const e=t=>{var r;const n=_W(t.target);if(!n)return;const i=n.getAttribute("href")||"",s=n.getAttribute("aria-label")||((r=n.textContent)==null?void 0:r.trim().slice(0,80))||i;if(i.startsWith("http")&&!i.includes("confeti.co")){qi("outbound_click",{label:s,href:i});return}(i.includes("app.confeti.co")||/start for free|download|demo|contact|pricing/i.test(s))&&qi("cta_click",{label:s,href:i})};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[]),null}TR(_R);const _v=document.getElementById("app"),q4=_v.firstElementChild?"hydrate":"render";qv.siteBootstrapped(q4);const WS=d.jsx(US.StrictMode,{children:d.jsxs(YA,{children:[d.jsx(wW,{}),d.jsx(kW,{}),d.jsx(xW,{})]})});q4==="hydrate"?Yw.hydrateRoot(_v,WS):Yw.createRoot(_v).render(WS);

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.