vendor: 6,401 bytes, lines 1-9
1var sL=Object.defineProperty;var tP=e=>{throw TypeError(e)};var lL=(e,t,n)=>t in e?sL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Kn=(e,t,n)=>lL(e,typeof t!="symbol"?t+"":t,n),dx=(e,t,n)=>t.has(e)||tP("Cannot "+n);var J=(e,t,n)=>(dx(e,t,"read from private field"),n?n.call(e):t.get(e)),Je=(e,t,n)=>t.has(e)?tP("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ze=(e,t,n,r)=>(dx(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),vn=(e,t,n)=>(dx(e,t,"access private method"),n);var Kp=(e,t,n,r)=>({set _(a){ze(e,t,a,n)},get _(){return J(e,t,r)}});function cL(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(r,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>r[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var yo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var W5={exports:{}},bv={},V5={exports:{}},Ve={};/** 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 bp=Symbol.for("react.element"),uL=Symbol.for("react.portal"),dL=Symbol.for("react.fragment"),mL=Symbol.for("react.strict_mode"),pL=Symbol.for("react.profiler"),fL=Symbol.for("react.provider"),hL=Symbol.for("react.context"),gL=Symbol.for("react.forward_ref"),vL=Symbol.for("react.suspense"),yL=Symbol.for("react.memo"),xL=Symbol.for("react.lazy"),nP=Symbol.iterator;function bL(e){return e===null||typeof e!="object"?null:(e=nP&&e[nP]||e["@@iterator"],typeof e=="function"?e:null)}var H5={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},K5=Object.assign,G5={};function Qc(e,t,n){this.props=e,this.context=t,this.refs=G5,this.updater=n||H5}Qc.prototype.isReactComponent={};Qc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Qc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Q5(){}Q5.prototype=Qc.prototype;function E2(e,t,n){this.props=e,this.context=t,this.refs=G5,this.updater=n||H5}var T2=E2.prototype=new Q5;T2.constructor=E2;K5(T2,Qc.prototype);T2.isPureReactComponent=!0;var rP=Array.isArray,Y5=Object.prototype.hasOwnProperty,O2={current:null},Z5={key:!0,ref:!0,__self:!0,__source:!0};function X5(e,t,n){var r,a={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Y5.call(t,r)&&!Z5.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(l===1)a.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)a[r]===void 0&&(a[r]=l[r]);return{$$typeof:bp,type:e,key:i,ref:o,props:a,_owner:O2.current}}function wL(e,t){return{$$typeof:bp,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function I2(e){return typeof e=="object"&&e!==null&&e.$$typeof===bp}function kL(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var aP=/\/+/g;function mx(e,t){return typeof e=="object"&&e!==null&&e.key!=null?kL(""+e.key):t.toString(36)}function Gf(e,t,n,r,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case bp:case uL:o=!0}}if(o)return o=e,a=a(o),e=r===""?"."+mx(o,0):r,rP(a)?(n="",e!=null&&(n=e.replace(aP,"$&/")+"/"),Gf(a,t,n,"",function(u){return u})):a!=null&&(I2(a)&&(a=wL(a,n+(!a.key||o&&o.key===a.key?"":(""+a.key).replace(aP,"$&/")+"/")+e)),t.push(a)),1;if(o=0,r=r===""?".":r+":",rP(e))for(var l=0;l<e.length;l++){i=e[l];var c=r+mx(i,l);o+=Gf(i,t,n,c,a)}else if(c=bL(e),typeof c=="function")for(e=c.call(e),l=0;!(i=e.next()).done;)i=i.value,c=r+mx(i,l++),o+=Gf(i,t,n,c,a);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Gp(e,t,n){if(e==null)return e;var r=[],a=0;return Gf(e,r,"","",function(i){return t.call(n,i,a++)}),r}function SL(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Vn={current:null},Qf={transition:null},jL={ReactCurrentDispatcher:Vn,ReactCurrentBatchConfig:Qf,ReactCurrentOwner:O2};function J5(){throw Error("act(...) is not supported in production builds of React.")}Ve.Children={map:Gp,forEach:function(e,t,n){Gp(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Gp(e,function(){t++}),t},toArray:function(e){return Gp(e,function(t){return t})||[]},only:function(e){if(!I2(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ve.Component=Qc;Ve.Fragment=dL;Ve.Profiler=pL;Ve.PureComponent=E2;Ve.StrictMode=mL;Ve.Suspense=vL;
vendor: 5,413 bytes, lines 9-25
9Ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jL;Ve.act=J5;Ve.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=K5({},e.props),a=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=O2.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)Y5.call(t,c)&&!Z5.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:bp,type:e.type,key:a,ref:i,props:r,_owner:o}};Ve.createContext=function(e){return e={$$typeof:hL,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:fL,_context:e},e.Consumer=e};Ve.createElement=X5;Ve.createFactory=function(e){var t=X5.bind(null,e);return t.type=e,t};Ve.createRef=function(){return{current:null}};Ve.forwardRef=function(e){return{$$typeof:gL,render:e}};Ve.isValidElement=I2;Ve.lazy=function(e){return{$$typeof:xL,_payload:{_status:-1,_result:e},_init:SL}};Ve.memo=function(e,t){return{$$typeof:yL,type:e,compare:t===void 0?null:t}};Ve.startTransition=function(e){var t=Qf.transition;Qf.transition={};try{e()}finally{Qf.transition=t}};Ve.unstable_act=J5;Ve.useCallback=function(e,t){return Vn.current.useCallback(e,t)};Ve.useContext=function(e){return Vn.current.useContext(e)};Ve.useDebugValue=function(){};Ve.useDeferredValue=function(e){return Vn.current.useDeferredValue(e)};Ve.useEffect=function(e,t){return Vn.current.useEffect(e,t)};Ve.useId=function(){return Vn.current.useId()};Ve.useImperativeHandle=function(e,t,n){return Vn.current.useImperativeHandle(e,t,n)};Ve.useInsertionEffect=function(e,t){return Vn.current.useInsertionEffect(e,t)};Ve.useLayoutEffect=function(e,t){return Vn.current.useLayoutEffect(e,t)};Ve.useMemo=function(e,t){return Vn.current.useMemo(e,t)};Ve.useReducer=function(e,t,n){return Vn.current.useReducer(e,t,n)};Ve.useRef=function(e){return Vn.current.useRef(e)};Ve.useState=function(e){return Vn.current.useState(e)};Ve.useSyncExternalStore=function(e,t,n){return Vn.current.useSyncExternalStore(e,t,n)};Ve.useTransition=function(){return Vn.current.useTransition()};Ve.version="18.3.1";V5.exports=Ve;var S=V5.exports;const M=Qe(S),eT=cL({__proto__:null,default:M},[S]);/** 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 PL=S,AL=Symbol.for("react.element"),_L=Symbol.for("react.fragment"),NL=Object.prototype.hasOwnProperty,CL=PL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,EL={key:!0,ref:!0,__self:!0,__source:!0};function tT(e,t,n){var r,a={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)NL.call(t,r)&&!EL.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)a[r]===void 0&&(a[r]=t[r]);return{$$typeof:AL,type:e,key:i,ref:o,props:a,_owner:CL.current}}bv.Fragment=_L;bv.jsx=tT;bv.jsxs=tT;W5.exports=bv;var s=W5.exports,nT={exports:{}},Ar={},rT={exports:{}},aT={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(R,B){var I=R.length;R.push(B);e:for(;0<I;){var H=I-1>>>1,q=R[H];if(0<a(q,B))R[H]=B,R[I]=q,I=H;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var B=R[0],I=R.pop();if(I!==B){R[0]=I;e:for(var H=0,q=R.length,$=q>>>1;H<$;){var X=2*(H+1)-1,pe=R[X],te=X+1,de=R[te];if(0>a(pe,I))te<q&&0>a(de,pe)?(R[H]=de,R[te]=I,H=te):(R[H]=pe,R[X]=I,H=X);else if(te<q&&0>a(de,I))R[H]=de,R[te]=I,H=te;else break e}}return B}function a(R,B){var I=R.sortIndex-B.sortIndex;return I!==0?I:R.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,m=null,p=3,f=!1,g=!1,h=!1,v=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(R){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=R)r(u),B.sortIndex=B.expirationTime,t(c,B);else break;B=n(u)}}function w(R){if(h=!1,b(R),!g)if(n(c)!==null)g=!0,D(k);else{var B=n(u);B!==null&&z(w,B.startTime-R)}}function k(R,B){g=!1,h&&(h=!1,y(P),P=-1),f=!0;var I=p;try{for(b(B),m=n(c);m!==null&&(!(m.expirationTime>B)||R&&!C());){var H=m.callback;if(typeof H=="function"){m.callback=null,p=m.priorityLevel;var q=H(m.expirationTime<=B);B=e.unstable_now(),typeof q=="function"?m.callback=q:m===n(c)&&r(c),b(B)}else r(c);m=n(c)}if(m!==null)var $=!0;else{var X=n(u);X!==null&&z(w,X.startTime-B),$=!1}return $}finally{m=null,p=I,f=!1}}var j=!1,A=null,P=-1,_=5,N=-1;function C(){return!(e.unstable_now()-N<_)}
vendor: 8,797 bytes, lines 25-34
25function E(){if(A!==null){var R=e.unstable_now();N=R;var B=!0;try{B=A(!0,R)}finally{B?T():(j=!1,A=null)}}else j=!1}var T;if(typeof x=="function")T=function(){x(E)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,F=O.port2;O.port1.onmessage=E,T=function(){F.postMessage(null)}}else T=function(){v(E,0)};function D(R){A=R,j||(j=!0,T())}function z(R,B){P=v(function(){R(e.unstable_now())},B)}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(R){R.callback=null},e.unstable_continueExecution=function(){g||f||(g=!0,D(k))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(R){switch(p){case 1:case 2:case 3:var B=3;break;default:B=p}var I=p;p=B;try{return R()}finally{p=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,B){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var I=p;p=R;try{return B()}finally{p=I}},e.unstable_scheduleCallback=function(R,B,I){var H=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?H+I:H):I=H,R){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=I+q,R={id:d++,callback:B,priorityLevel:R,startTime:I,expirationTime:q,sortIndex:-1},I>H?(R.sortIndex=I,t(u,R),n(c)===null&&R===n(u)&&(h?(y(P),P=-1):h=!0,z(w,I-H))):(R.sortIndex=q,t(c,R),g||f||(g=!0,D(k))),R},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(R){var B=p;return function(){var I=p;p=B;try{return R.apply(this,arguments)}finally{p=I}}}})(aT);rT.exports=aT;var TL=rT.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 OL=S,jr=TL;function ne(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var iT=new Set,Wd={};function tl(e,t){cc(e,t),cc(e+"Capture",t)}function cc(e,t){for(Wd[e]=t,e=0;e<t.length;e++)iT.add(t[e])}var Oi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m0=Object.prototype.hasOwnProperty,IL=/^[: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]*$/,iP={},oP={};function ML(e){return m0.call(oP,e)?!0:m0.call(iP,e)?!1:IL.test(e)?oP[e]=!0:(iP[e]=!0,!1)}function $L(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function FL(e,t,n,r){if(t===null||typeof t>"u"||$L(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Hn(e,t,n,r,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var pn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pn[e]=new Hn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pn[t]=new Hn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pn[e]=new Hn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pn[e]=new Hn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){pn[e]=new Hn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pn[e]=new Hn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pn[e]=new Hn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pn[e]=new Hn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pn[e]=new Hn(e,5,!1,e.toLowerCase(),null,!1,!1)});var M2=/[\-:]([a-z])/g;function $2(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(M2,$2);pn[t]=new Hn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(M2,$2);pn[t]=new Hn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(M2,$2);pn[t]=new Hn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pn[e]=new Hn(e,1,!1,e.toLowerCase(),null,!1,!1)});pn.xlinkHref=new Hn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pn[e]=new Hn(e,1,!1,e.toLowerCase(),null,!0,!0)});function F2(e,t,n,r){var a=pn.hasOwnProperty(t)?pn[t]:null;(a!==null?a.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(FL(t,n,a,r)&&(n=null),r||a===null?ML(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=n===null?a.type===3?!1:"":n:(t=a.attributeName,r=a.attributeNamespace,n===null?e.removeAttribute(t):(a=a.type,n=a===3||a===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Ui=OL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Qp=Symbol.for("react.element"),jl=Symbol.for("react.portal"),Pl=Symbol.for("react.fragment"),R2=Symbol.for("react.strict_mode"),p0=Symbol.for("react.profiler"),oT=Symbol.for("react.provider"),sT=Symbol.for("react.context"),D2=Symbol.for("react.forward_ref"),f0=Symbol.for("react.suspense"),h0=Symbol.for("react.suspense_list"),L2=Symbol.for("react.memo"),ro=Symbol.for("react.lazy"),lT=Symbol.for("react.offscreen"),sP=Symbol.iterator;function Cu(e){return e===null||typeof e!="object"?null:(e=sP&&e[sP]||e["@@iterator"],typeof e=="function"?e:null)}var Nt=Object.assign,px;function ld(e){if(px===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);px=t&&t[1]||""}return` 34`+px+e}var fx=!1;function hx(e,t){if(!e||fx)return"";fx=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 14,106 bytes, lines 34-37
34catch(u){if(u&&r&&typeof u.stack=="string"){for(var a=u.stack.split(` 35`),i=r.stack.split(` 36`),o=a.length-1,l=i.length-1;1<=o&&0<=l&&a[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(a[o]!==i[l]){if(o!==1||l!==1)do if(o--,l--,0>l||a[o]!==i[l]){var c=` 37`+a[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=l);break}}}finally{fx=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ld(e):""}function RL(e){switch(e.tag){case 5:return ld(e.type);case 16:return ld("Lazy");case 13:return ld("Suspense");case 19:return ld("SuspenseList");case 0:case 2:case 15:return e=hx(e.type,!1),e;case 11:return e=hx(e.type.render,!1),e;case 1:return e=hx(e.type,!0),e;default:return""}}function g0(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Pl:return"Fragment";case jl:return"Portal";case p0:return"Profiler";case R2:return"StrictMode";case f0:return"Suspense";case h0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case sT:return(e.displayName||"Context")+".Consumer";case oT:return(e._context.displayName||"Context")+".Provider";case D2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case L2:return t=e.displayName||null,t!==null?t:g0(e.type)||"Memo";case ro:t=e._payload,e=e._init;try{return g0(e(t))}catch{}}return null}function DL(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return g0(t);case 8:return t===R2?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function $o(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function cT(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function LL(e){var t=cT(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Yp(e){e._valueTracker||(e._valueTracker=LL(e))}function uT(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=cT(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function kh(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function v0(e,t){var n=t.checked;return Nt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function lP(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=$o(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function dT(e,t){t=t.checked,t!=null&&F2(e,"checked",t,!1)}function y0(e,t){dT(e,t);var n=$o(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?x0(e,t.type,n):t.hasOwnProperty("defaultValue")&&x0(e,t.type,$o(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function cP(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function x0(e,t,n){(t!=="number"||kh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var cd=Array.isArray;function zl(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$o(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,r&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function b0(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ne(91));return Nt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function uP(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(ne(92));if(cd(n)){if(1<n.length)throw Error(ne(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:$o(n)}}function mT(e,t){var n=$o(t.value),r=$o(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function dP(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function pT(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function w0(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?pT(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Zp,fT=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,a)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Zp=Zp||document.createElement("div"),Zp.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Zp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vd(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var vd={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},zL=["Webkit","ms","Moz","O"];Object.keys(vd).forEach(function(e){zL.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vd[t]=vd[e]})});function hT(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||vd.hasOwnProperty(e)&&vd[e]?(""+t).trim():t+"px"}function gT(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=hT(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var BL=Nt({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 k0(e,t){if(t){if(BL[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ne(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ne(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ne(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ne(62))}}function S0(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var j0=null;function z2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var P0=null,Bl=null,ql=null;function mP(e){if(e=Sp(e)){if(typeof P0!="function")throw Error(ne(280));var t=e.stateNode;t&&(t=Pv(t),P0(e.stateNode,e.type,t))}}function vT(e){Bl?ql?ql.push(e):ql=[e]:Bl=e}function yT(){if(Bl){var e=Bl,t=ql;if(ql=Bl=null,mP(e),t)for(e=0;e<t.length;e++)mP(t[e])}}function xT(e,t){return e(t)}function bT(){}var gx=!1;function wT(e,t,n){if(gx)return e(t,n);gx=!0;try{return xT(e,t,n)}finally{gx=!1,(Bl!==null||ql!==null)&&(bT(),yT())}}function Hd(e,t){var n=e.stateNode;if(n===null)return null;var r=Pv(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(ne(231,t,typeof n));return n}var A0=!1;if(Oi)try{var Eu={};Object.defineProperty(Eu,"passive",{get:function(){A0=!0}}),window.addEventListener("test",Eu,Eu),window.removeEventListener("test",Eu,Eu)}catch{A0=!1}function qL(e,t,n,r,a,i,o,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var yd=!1,Sh=null,jh=!1,_0=null,UL={onError:function(e){yd=!0,Sh=e}};function WL(e,t,n,r,a,i,o,l,c){yd=!1,Sh=null,qL.apply(UL,arguments)}function VL(e,t,n,r,a,i,o,l,c){if(WL.apply(this,arguments),yd){if(yd){var u=Sh;yd=!1,Sh=null}else throw Error(ne(198));jh||(jh=!0,_0=u)}}function nl(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function kT(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function pP(e){if(nl(e)!==e)throw Error(ne(188))}function HL(e){var t=e.alternate;if(!t){if(t=nl(e),t===null)throw Error(ne(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var i=a.alternate;if(i===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return pP(a),e;if(i===r)return pP(a),t;i=i.sibling}throw Error(ne(188))}if(n.return!==r.return)n=a,r=i;else{for(var o=!1,l=a.child;l;){if(l===n){o=!0,n=a,r=i;break}if(l===r){o=!0,r=a,n=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===n){o=!0,n=i,r=a;break}if(l===r){o=!0,r=i,n=a;break}l=l.sibling}if(!o)throw Error(ne(189))}}if(n.alternate!==r)throw Error(ne(190))}if(n.tag!==3)throw Error(ne(188));return n.stateNode.current===n?e:t}function ST(e){return e=HL(e),e!==null?jT(e):null}function jT(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=jT(e);if(t!==null)return t;e=e.sibling}return null}var PT=jr.unstable_scheduleCallback,fP=jr.unstable_cancelCallback,KL=jr.unstable_shouldYield,GL=jr.unstable_requestPaint,$t=jr.unstable_now,QL=jr.unstable_getCurrentPriorityLevel,B2=jr.unstable_ImmediatePriority,AT=jr.unstable_UserBlockingPriority,Ph=jr.unstable_NormalPriority,YL=jr.unstable_LowPriority,_T=jr.unstable_IdlePriority,wv=null,Wa=null;function ZL(e){if(Wa&&typeof Wa.onCommitFiberRoot=="function")try{Wa.onCommitFiberRoot(wv,e,void 0,(e.current.flags&128)===128)}catch{}}var fa=Math.clz32?Math.clz32:ez,XL=Math.log,JL=Math.LN2;function ez(e){return e>>>=0,e===0?32:31-(XL(e)/JL|0)|0}var Xp=64,Jp=4194304;function ud(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ah(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~a;l!==0?r=ud(l):(i&=o,i!==0&&(r=ud(i)))}else o=n&~a,o!==0?r=ud(o):i!==0&&(r=ud(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-fa(t),a=1<<n,r|=e[n],t&=~a;return r}function tz(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function nz(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-fa(i),l=1<<o,c=a[o];c===-1?(!(l&n)||l&r)&&(a[o]=tz(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}function N0(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function NT(){var e=Xp;return Xp<<=1,!(Xp&4194240)&&(Xp=64),e}function vx(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}
vendor: 4,087 bytes, line 37
37function wp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-fa(t),e[t]=n}function rz(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-fa(n),i=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~i}}function q2(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-fa(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var tt=0;function CT(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ET,U2,TT,OT,IT,C0=!1,ef=[],Po=null,Ao=null,_o=null,Kd=new Map,Gd=new Map,so=[],az="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 hP(e,t){switch(e){case"focusin":case"focusout":Po=null;break;case"dragenter":case"dragleave":Ao=null;break;case"mouseover":case"mouseout":_o=null;break;case"pointerover":case"pointerout":Kd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gd.delete(t.pointerId)}}function Tu(e,t,n,r,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[a]},t!==null&&(t=Sp(t),t!==null&&U2(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function iz(e,t,n,r,a){switch(t){case"focusin":return Po=Tu(Po,e,t,n,r,a),!0;case"dragenter":return Ao=Tu(Ao,e,t,n,r,a),!0;case"mouseover":return _o=Tu(_o,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return Kd.set(i,Tu(Kd.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,Gd.set(i,Tu(Gd.get(i)||null,e,t,n,r,a)),!0}return!1}function MT(e){var t=ys(e.target);if(t!==null){var n=nl(t);if(n!==null){if(t=n.tag,t===13){if(t=kT(n),t!==null){e.blockedOn=t,IT(e.priority,function(){TT(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Yf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=E0(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);j0=r,n.target.dispatchEvent(r),j0=null}else return t=Sp(n),t!==null&&U2(t),e.blockedOn=n,!1;t.shift()}return!0}function gP(e,t,n){Yf(e)&&n.delete(t)}function oz(){C0=!1,Po!==null&&Yf(Po)&&(Po=null),Ao!==null&&Yf(Ao)&&(Ao=null),_o!==null&&Yf(_o)&&(_o=null),Kd.forEach(gP),Gd.forEach(gP)}function Ou(e,t){e.blockedOn===t&&(e.blockedOn=null,C0||(C0=!0,jr.unstable_scheduleCallback(jr.unstable_NormalPriority,oz)))}function Qd(e){function t(a){return Ou(a,e)}if(0<ef.length){Ou(ef[0],e);for(var n=1;n<ef.length;n++){var r=ef[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Po!==null&&Ou(Po,e),Ao!==null&&Ou(Ao,e),_o!==null&&Ou(_o,e),Kd.forEach(t),Gd.forEach(t),n=0;n<so.length;n++)r=so[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<so.length&&(n=so[0],n.blockedOn===null);)MT(n),n.blockedOn===null&&so.shift()}var Ul=Ui.ReactCurrentBatchConfig,_h=!0;function sz(e,t,n,r){var a=tt,i=Ul.transition;Ul.transition=null;try{tt=1,W2(e,t,n,r)}finally{tt=a,Ul.transition=i}}function lz(e,t,n,r){var a=tt,i=Ul.transition;Ul.transition=null;try{tt=4,W2(e,t,n,r)}finally{tt=a,Ul.transition=i}}function W2(e,t,n,r){if(_h){var a=E0(e,t,n,r);if(a===null)_x(e,t,r,Nh,n),hP(e,r);else if(iz(a,e,t,n,r))r.stopPropagation();else if(hP(e,r),t&4&&-1<az.indexOf(e)){for(;a!==null;){var i=Sp(a);if(i!==null&&ET(i),i=E0(e,t,n,r),i===null&&_x(e,t,r,Nh,n),i===a)break;a=i}a!==null&&r.stopPropagation()}else _x(e,t,r,null,n)}}var Nh=null;function E0(e,t,n,r){if(Nh=null,e=z2(r),e=ys(e),e!==null)if(t=nl(e),t===null)e=null;else if(n=t.tag,n===13){if(e=kT(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Nh=e,null}
vendor: 9,127 bytes, line 37
37function $T(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(QL()){case B2:return 1;case AT:return 4;case Ph:case YL:return 16;case _T:return 536870912;default:return 16}default:return 16}}var xo=null,V2=null,Zf=null;function FT(){if(Zf)return Zf;var e,t=V2,n=t.length,r,a="value"in xo?xo.value:xo.textContent,i=a.length;for(e=0;e<n&&t[e]===a[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===a[i-r];r++);return Zf=a.slice(e,1<r?1-r:void 0)}function Xf(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function tf(){return!0}function vP(){return!1}function _r(e){function t(n,r,a,i,o){this._reactName=n,this._targetInst=a,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?tf:vP,this.isPropagationStopped=vP,this}return Nt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=tf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=tf)},persist:function(){},isPersistent:tf}),t}var Yc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},H2=_r(Yc),kp=Nt({},Yc,{view:0,detail:0}),cz=_r(kp),yx,xx,Iu,kv=Nt({},kp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:K2,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Iu&&(Iu&&e.type==="mousemove"?(yx=e.screenX-Iu.screenX,xx=e.screenY-Iu.screenY):xx=yx=0,Iu=e),yx)},movementY:function(e){return"movementY"in e?e.movementY:xx}}),yP=_r(kv),uz=Nt({},kv,{dataTransfer:0}),dz=_r(uz),mz=Nt({},kp,{relatedTarget:0}),bx=_r(mz),pz=Nt({},Yc,{animationName:0,elapsedTime:0,pseudoElement:0}),fz=_r(pz),hz=Nt({},Yc,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gz=_r(hz),vz=Nt({},Yc,{data:0}),xP=_r(vz),yz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xz={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"},bz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wz(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=bz[e])?!!t[e]:!1}function K2(){return wz}var kz=Nt({},kp,{key:function(e){if(e.key){var t=yz[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?xz[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:K2,charCode:function(e){return e.type==="keypress"?Xf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Sz=_r(kz),jz=Nt({},kv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bP=_r(jz),Pz=Nt({},kp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:K2}),Az=_r(Pz),_z=Nt({},Yc,{propertyName:0,elapsedTime:0,pseudoElement:0}),Nz=_r(_z),Cz=Nt({},kv,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ez=_r(Cz),Tz=[9,13,27,32],G2=Oi&&"CompositionEvent"in window,xd=null;Oi&&"documentMode"in document&&(xd=document.documentMode);var Oz=Oi&&"TextEvent"in window&&!xd,RT=Oi&&(!G2||xd&&8<xd&&11>=xd),wP=" ",kP=!1;function DT(e,t){switch(e){case"keyup":return Tz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function LT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Al=!1;function Iz(e,t){switch(e){case"compositionend":return LT(t);case"keypress":return t.which!==32?null:(kP=!0,wP);case"textInput":return e=t.data,e===wP&&kP?null:e;default:return null}}function Mz(e,t){if(Al)return e==="compositionend"||!G2&&DT(e,t)?(e=FT(),Zf=V2=xo=null,Al=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return RT&&t.locale!=="ko"?null:t.data;default:return null}}var $z={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 SP(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$z[e.type]:t==="textarea"}function zT(e,t,n,r){vT(r),t=Ch(t,"onChange"),0<t.length&&(n=new H2("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var bd=null,Yd=null;function Fz(e){ZT(e,0)}function Sv(e){var t=Cl(e);if(uT(t))return e}function Rz(e,t){if(e==="change")return t}var BT=!1;if(Oi){var wx;if(Oi){var kx="oninput"in document;if(!kx){var jP=document.createElement("div");jP.setAttribute("oninput","return;"),kx=typeof jP.oninput=="function"}wx=kx}else wx=!1;BT=wx&&(!document.documentMode||9<document.documentMode)}function PP(){bd&&(bd.detachEvent("onpropertychange",qT),Yd=bd=null)}function qT(e){if(e.propertyName==="value"&&Sv(Yd)){var t=[];zT(t,Yd,e,z2(e)),wT(Fz,t)}}function Dz(e,t,n){e==="focusin"?(PP(),bd=t,Yd=n,bd.attachEvent("onpropertychange",qT)):e==="focusout"&&PP()}function Lz(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Sv(Yd)}function zz(e,t){if(e==="click")return Sv(t)}function Bz(e,t){if(e==="input"||e==="change")return Sv(t)}function qz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ba=typeof Object.is=="function"?Object.is:qz;function Zd(e,t){if(ba(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!m0.call(t,a)||!ba(e[a],t[a]))return!1}return!0}function AP(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _P(e,t){var n=AP(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=AP(n)}}function UT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?UT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function WT(){for(var e=window,t=kh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=kh(e.document)}return t}function Q2(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Uz(e){var t=WT(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&UT(n.ownerDocument.documentElement,n)){if(r!==null&&Q2(n)){if
vendor: 5,775 bytes, line 37
37(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=_P(n,i);var o=_P(n,r);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Wz=Oi&&"documentMode"in document&&11>=document.documentMode,_l=null,T0=null,wd=null,O0=!1;function NP(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;O0||_l==null||_l!==kh(r)||(r=_l,"selectionStart"in r&&Q2(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),wd&&Zd(wd,r)||(wd=r,r=Ch(T0,"onSelect"),0<r.length&&(t=new H2("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=_l)))}function nf(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Nl={animationend:nf("Animation","AnimationEnd"),animationiteration:nf("Animation","AnimationIteration"),animationstart:nf("Animation","AnimationStart"),transitionend:nf("Transition","TransitionEnd")},Sx={},VT={};Oi&&(VT=document.createElement("div").style,"AnimationEvent"in window||(delete Nl.animationend.animation,delete Nl.animationiteration.animation,delete Nl.animationstart.animation),"TransitionEvent"in window||delete Nl.transitionend.transition);function jv(e){if(Sx[e])return Sx[e];if(!Nl[e])return e;var t=Nl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in VT)return Sx[e]=t[n];return e}var HT=jv("animationend"),KT=jv("animationiteration"),GT=jv("animationstart"),QT=jv("transitionend"),YT=new Map,CP="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 Ho(e,t){YT.set(e,t),tl(t,[e])}for(var jx=0;jx<CP.length;jx++){var Px=CP[jx],Vz=Px.toLowerCase(),Hz=Px[0].toUpperCase()+Px.slice(1);Ho(Vz,"on"+Hz)}Ho(HT,"onAnimationEnd");Ho(KT,"onAnimationIteration");Ho(GT,"onAnimationStart");Ho("dblclick","onDoubleClick");Ho("focusin","onFocus");Ho("focusout","onBlur");Ho(QT,"onTransitionEnd");cc("onMouseEnter",["mouseout","mouseover"]);cc("onMouseLeave",["mouseout","mouseover"]);cc("onPointerEnter",["pointerout","pointerover"]);cc("onPointerLeave",["pointerout","pointerover"]);tl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));tl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));tl("onBeforeInput",["compositionend","keypress","textInput","paste"]);tl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));tl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));tl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var dd="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(" "),Kz=new Set("cancel close invalid load scroll toggle".split(" ").concat(dd));function EP(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,VL(r,t,void 0,e),e.currentTarget=null}function ZT(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==i&&a.isPropagationStopped())break e;EP(a,l,u),i=c}else for(o=0;o<r.length;o++){if(l=r[o],c=l.instance,u=l.currentTarget,l=l.listener,c!==i&&a.isPropagationStopped())break e;EP(a,l,u),i=c}}}if(jh)throw e=_0,jh=!1,_0=null,e}function vt(e,t){var n=t[R0];n===void 0&&(n=t[R0]=new Set);var r=e+"__bubble";n.has(r)||(XT(t,e,2,!1),n.add(r))}function Ax(e,t,n){var r=0;t&&(r|=4),XT(n,e,r,t)}var rf="_reactListening"+Math.random().toString(36).slice(2);function Xd(e){if(!e[rf]){e[rf]=!0,iT.forEach(function(n){n!=="selectionchange"&&(Kz.has(n)||Ax(n,!1,e),Ax(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[rf]||(t[rf]=!0,Ax("selectionchange",!1,t))}}function XT(e,t,n,r){switch($T(t)){case 1:var a=sz;break;case 4:a=lz;break;default:a=W2}n=a.bind(null,t,n,e),a=void 0,!A0||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),r?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function _x(e,t,n,r,a){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;
vendor: 4,435 bytes, line 37
37if(l===a||l.nodeType===8&&l.parentNode===a)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===a||c.nodeType===8&&c.parentNode===a))return;o=o.return}for(;l!==null;){if(o=ys(l),o===null)return;if(c=o.tag,c===5||c===6){r=i=o;continue e}l=l.parentNode}}r=r.return}wT(function(){var u=i,d=z2(n),m=[];e:{var p=YT.get(e);if(p!==void 0){var f=H2,g=e;switch(e){case"keypress":if(Xf(n)===0)break e;case"keydown":case"keyup":f=Sz;break;case"focusin":g="focus",f=bx;break;case"focusout":g="blur",f=bx;break;case"beforeblur":case"afterblur":f=bx;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=yP;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=dz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=Az;break;case HT:case KT:case GT:f=fz;break;case QT:f=Nz;break;case"scroll":f=cz;break;case"wheel":f=Ez;break;case"copy":case"cut":case"paste":f=gz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=bP}var h=(t&4)!==0,v=!h&&e==="scroll",y=h?p!==null?p+"Capture":null:p;h=[];for(var x=u,b;x!==null;){b=x;var w=b.stateNode;if(b.tag===5&&w!==null&&(b=w,y!==null&&(w=Hd(x,y),w!=null&&h.push(Jd(x,w,b)))),v)break;x=x.return}0<h.length&&(p=new f(p,g,null,n,d),m.push({event:p,listeners:h}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",p&&n!==j0&&(g=n.relatedTarget||n.fromElement)&&(ys(g)||g[Ii]))break e;if((f||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,f?(g=n.relatedTarget||n.toElement,f=u,g=g?ys(g):null,g!==null&&(v=nl(g),g!==v||g.tag!==5&&g.tag!==6)&&(g=null)):(f=null,g=u),f!==g)){if(h=yP,w="onMouseLeave",y="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(h=bP,w="onPointerLeave",y="onPointerEnter",x="pointer"),v=f==null?p:Cl(f),b=g==null?p:Cl(g),p=new h(w,x+"leave",f,n,d),p.target=v,p.relatedTarget=b,w=null,ys(d)===u&&(h=new h(y,x+"enter",g,n,d),h.target=b,h.relatedTarget=v,w=h),v=w,f&&g)t:{for(h=f,y=g,x=0,b=h;b;b=ml(b))x++;for(b=0,w=y;w;w=ml(w))b++;for(;0<x-b;)h=ml(h),x--;for(;0<b-x;)y=ml(y),b--;for(;x--;){if(h===y||y!==null&&h===y.alternate)break t;h=ml(h),y=ml(y)}h=null}else h=null;f!==null&&TP(m,p,f,h,!1),g!==null&&v!==null&&TP(m,v,g,h,!0)}}e:{if(p=u?Cl(u):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var k=Rz;else if(SP(p))if(BT)k=Bz;else{k=Lz;var j=Dz}else(f=p.nodeName)&&f.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(k=zz);if(k&&(k=k(e,u))){zT(m,k,n,d);break e}j&&j(e,p,u),e==="focusout"&&(j=p._wrapperState)&&j.controlled&&p.type==="number"&&x0(p,"number",p.value)}switch(j=u?Cl(u):window,e){case"focusin":(SP(j)||j.contentEditable==="true")&&(_l=j,T0=u,wd=null);break;case"focusout":wd=T0=_l=null;break;case"mousedown":O0=!0;break;case"contextmenu":case"mouseup":case"dragend":O0=!1,NP(m,n,d);break;case"selectionchange":if(Wz)break;case"keydown":case"keyup":NP(m,n,d)}var A;if(G2)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Al?DT(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(RT&&n.locale!=="ko"&&(Al||P!=="onCompositionStart"?P==="onCompositionEnd"&&Al&&(A=FT()):(xo=d,V2="value"in xo?xo.value:xo.textContent,Al=!0)),j=Ch(u,P),0<j.length&&(P=new xP(P,e,null,n,d),m.push({event:P,listeners:j}),A?P.data=A:(A=LT(n),A!==null&&(P.data=A)))),(A=Oz?Iz(e,n):Mz(e,n))&&(u=Ch(u,"onBeforeInput"),0<u.length&&(d=new xP("onBeforeInput","beforeinput",null,n,d),m.push({event:d,listeners:u}),d.data=A))}ZT(m,t)})}function Jd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ch(e,t){for(var n=t+"Capture",r=[];e!==null;){var a=e,i=a.stateNode;a.tag===5&&i!==null&&(a=i,i=Hd(e,n),i!=null&&r.unshift(Jd(e,i,a)),i=Hd(e,t),i!=null&&r.push(Jd(e,i,a))),e=e.return}return r}function ml(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function TP(e,t,n,r,a){for(var i=t._reactName,o=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===r)break;
vendor: 4,469 bytes, lines 37-38
37l.tag===5&&u!==null&&(l=u,a?(c=Hd(n,i),c!=null&&o.unshift(Jd(n,c,l))):a||(c=Hd(n,i),c!=null&&o.push(Jd(n,c,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Gz=/\r\n?/g,Qz=/\u0000|\uFFFD/g;function OP(e){return(typeof e=="string"?e:""+e).replace(Gz,` 38`).replace(Qz,"")}function af(e,t,n){if(t=OP(t),OP(e)!==t&&n)throw Error(ne(425))}function Eh(){}var I0=null,M0=null;function $0(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var F0=typeof setTimeout=="function"?setTimeout:void 0,Yz=typeof clearTimeout=="function"?clearTimeout:void 0,IP=typeof Promise=="function"?Promise:void 0,Zz=typeof queueMicrotask=="function"?queueMicrotask:typeof IP<"u"?function(e){return IP.resolve(null).then(e).catch(Xz)}:F0;function Xz(e){setTimeout(function(){throw e})}function Nx(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(r===0){e.removeChild(a),Qd(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=a}while(n);Qd(t)}function No(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function MP(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Zc=Math.random().toString(36).slice(2),La="__reactFiber$"+Zc,em="__reactProps$"+Zc,Ii="__reactContainer$"+Zc,R0="__reactEvents$"+Zc,Jz="__reactListeners$"+Zc,e9="__reactHandles$"+Zc;function ys(e){var t=e[La];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ii]||n[La]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=MP(e);e!==null;){if(n=e[La])return n;e=MP(e)}return t}e=n,n=e.parentNode}return null}function Sp(e){return e=e[La]||e[Ii],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Cl(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ne(33))}function Pv(e){return e[em]||null}var D0=[],El=-1;function Ko(e){return{current:e}}function bt(e){0>El||(e.current=D0[El],D0[El]=null,El--)}function ft(e,t){El++,D0[El]=e.current,e.current=t}var Fo={},Nn=Ko(Fo),Jn=Ko(!1),Ls=Fo;function uc(e,t){var n=e.type.contextTypes;if(!n)return Fo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in n)a[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function er(e){return e=e.childContextTypes,e!=null}function Th(){bt(Jn),bt(Nn)}function $P(e,t,n){if(Nn.current!==Fo)throw Error(ne(168));ft(Nn,t),ft(Jn,n)}function JT(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(ne(108,DL(e)||"Unknown",a));return Nt({},n,r)}function Oh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Fo,Ls=Nn.current,ft(Nn,e),ft(Jn,Jn.current),!0}function FP(e,t,n){var r=e.stateNode;if(!r)throw Error(ne(169));n?(e=JT(e,t,Ls),r.__reactInternalMemoizedMergedChildContext=e,bt(Jn),bt(Nn),ft(Nn,e)):bt(Jn),ft(Jn,n)}var wi=null,Av=!1,Cx=!1;function eO(e){wi===null?wi=[e]:wi.push(e)}function t9(e){Av=!0,eO(e)}function Go(){if(!Cx&&wi!==null){Cx=!0;var e=0,t=tt;try{var n=wi;for(tt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}wi=null,Av=!1}catch(a){throw wi!==null&&(wi=wi.slice(e+1)),PT(B2,Go),a}finally{tt=t,Cx=!1}}return null}var Tl=[],Ol=0,Ih=null,Mh=0,$r=[],Fr=0,zs=null,ki=1,Si="";function us(e,t){Tl[Ol++]=Mh,Tl[Ol++]=Ih,Ih=e,Mh=t}function tO(e,t,n){$r[Fr++]=ki,$r[Fr++]=Si,$r[Fr++]=zs,zs=e;var r=ki;e=Si;var a=32-fa(r)-1;r&=~(1<<a),n+=1;var i=32-fa(t)+a;if(30<i){var o=a-a%5;i=(r&(1<<o)-1).toString(32),r>>=o,a-=o,ki=1<<32-fa(t)+a|n<<a|r,Si=i+e}else ki=1<<i|n<<a|r,Si=e}function Y2(e){e.return!==null&&(us(e,1),tO(e,1,0))}function Z2(e){for(;e===Ih;)Ih=Tl[--Ol],Tl[Ol]=null,Mh=Tl[--Ol],Tl[Ol]=null;for(;e===zs;)zs=$r[--Fr],$r[Fr]=null,Si=$r[--Fr],$r[Fr]=null,ki=$r[--Fr],$r[Fr]=null}var br=null,xr=null,kt=!1,ia=null;function nO(e,t){var n=Lr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function RP(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 23,853 bytes, lines 38-40
38return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,br=e,xr=No(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,br=e,xr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=zs!==null?{id:ki,overflow:Si}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Lr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,br=e,xr=null,!0):!1;default:return!1}}function L0(e){return(e.mode&1)!==0&&(e.flags&128)===0}function z0(e){if(kt){var t=xr;if(t){var n=t;if(!RP(e,t)){if(L0(e))throw Error(ne(418));t=No(n.nextSibling);var r=br;t&&RP(e,t)?nO(r,n):(e.flags=e.flags&-4097|2,kt=!1,br=e)}}else{if(L0(e))throw Error(ne(418));e.flags=e.flags&-4097|2,kt=!1,br=e}}}function DP(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;br=e}function of(e){if(e!==br)return!1;if(!kt)return DP(e),kt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!$0(e.type,e.memoizedProps)),t&&(t=xr)){if(L0(e))throw rO(),Error(ne(418));for(;t;)nO(e,t),t=No(t.nextSibling)}if(DP(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ne(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){xr=No(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}xr=null}}else xr=br?No(e.stateNode.nextSibling):null;return!0}function rO(){for(var e=xr;e;)e=No(e.nextSibling)}function dc(){xr=br=null,kt=!1}function X2(e){ia===null?ia=[e]:ia.push(e)}var n9=Ui.ReactCurrentBatchConfig;function Mu(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(ne(309));var r=n.stateNode}if(!r)throw Error(ne(147,e));var a=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var l=a.refs;o===null?delete l[i]:l[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(ne(284));if(!n._owner)throw Error(ne(290,e))}return e}function sf(e,t){throw e=Object.prototype.toString.call(t),Error(ne(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function LP(e){var t=e._init;return t(e._payload)}function aO(e){function t(y,x){if(e){var b=y.deletions;b===null?(y.deletions=[x],y.flags|=16):b.push(x)}}function n(y,x){if(!e)return null;for(;x!==null;)t(y,x),x=x.sibling;return null}function r(y,x){for(y=new Map;x!==null;)x.key!==null?y.set(x.key,x):y.set(x.index,x),x=x.sibling;return y}function a(y,x){return y=Oo(y,x),y.index=0,y.sibling=null,y}function i(y,x,b){return y.index=b,e?(b=y.alternate,b!==null?(b=b.index,b<x?(y.flags|=2,x):b):(y.flags|=2,x)):(y.flags|=1048576,x)}function o(y){return e&&y.alternate===null&&(y.flags|=2),y}function l(y,x,b,w){return x===null||x.tag!==6?(x=Fx(b,y.mode,w),x.return=y,x):(x=a(x,b),x.return=y,x)}function c(y,x,b,w){var k=b.type;return k===Pl?d(y,x,b.props.children,w,b.key):x!==null&&(x.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===ro&&LP(k)===x.type)?(w=a(x,b.props),w.ref=Mu(y,x,b),w.return=y,w):(w=ih(b.type,b.key,b.props,null,y.mode,w),w.ref=Mu(y,x,b),w.return=y,w)}function u(y,x,b,w){return x===null||x.tag!==4||x.stateNode.containerInfo!==b.containerInfo||x.stateNode.implementation!==b.implementation?(x=Rx(b,y.mode,w),x.return=y,x):(x=a(x,b.children||[]),x.return=y,x)}function d(y,x,b,w,k){return x===null||x.tag!==7?(x=Is(b,y.mode,w,k),x.return=y,x):(x=a(x,b),x.return=y,x)}function m(y,x,b){if(typeof x=="string"&&x!==""||typeof x=="number")return x=Fx(""+x,y.mode,b),x.return=y,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Qp:return b=ih(x.type,x.key,x.props,null,y.mode,b),b.ref=Mu(y,null,x),b.return=y,b;case jl:return x=Rx(x,y.mode,b),x.return=y,x;case ro:var w=x._init;return m(y,w(x._payload),b)}if(cd(x)||Cu(x))return x=Is(x,y.mode,b,null),x.return=y,x;sf(y,x)}return null}function p(y,x,b,w){var k=x!==null?x.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return k!==null?null:l(y,x,""+b,w);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Qp:return b.key===k?c(y,x,b,w):null;case jl:return b.key===k?u(y,x,b,w):null;case ro:return k=b._init,p(y,x,k(b._payload),w)}if(cd(b)||Cu(b))return k!==null?null:d(y,x,b,w,null);sf(y,b)}return null}function f(y,x,b,w,k){if(typeof w=="string"&&w!==""||typeof w=="number")return y=y.get(b)||null,l(x,y,""+w,k);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Qp:return y=y.get(w.key===null?b:w.key)||null,c(x,y,w,k);case jl:return y=y.get(w.key===null?b:w.key)||null,u(x,y,w,k);case ro:var j=w._init;return f(y,x,b,j(w._payload),k)}if(cd(w)||Cu(w))return y=y.get(b)||null,d(x,y,w,k,null);sf(x,w)}return null}function g(y,x,b,w){for(var k=null,j=null,A=x,P=x=0,_=null;A!==null&&P<b.length;P++){A.index>P?(_=A,A=null):_=A.sibling;var N=p(y,A,b[P],w);if(N===null){A===null&&(A=_);break}e&&A&&N.alternate===null&&t(y,A),x=i(N,x,P),j===null?k=N:j.sibling=N,j=N,A=_}if(P===b.length)return n(y,A),kt&&us(y,P),k;if(A===null){for(;P<b.length;P++)A=m(y,b[P],w),A!==null&&(x=i(A,x,P),j===null?k=A:j.sibling=A,j=A);return kt&&us(y,P),k}for(A=r(y,A);P<b.length;P++)_=f(A,y,P,b[P],w),_!==null&&(e&&_.alternate!==null&&A.delete(_.key===null?P:_.key),x=i(_,x,P),j===null?k=_:j.sibling=_,j=_);return e&&A.forEach(function(C){return t(y,C)}),kt&&us(y,P),k}function h(y,x,b,w){var k=Cu(b);if(typeof k!="function")throw Error(ne(150));if(b=k.call(b),b==null)throw Error(ne(151));for(var j=k=null,A=x,P=x=0,_=null,N=b.next();A!==null&&!N.done;P++,N=b.next()){A.index>P?(_=A,A=null):_=A.sibling;var C=p(y,A,N.value,w);if(C===null){A===null&&(A=_);break}e&&A&&C.alternate===null&&t(y,A),x=i(C,x,P),j===null?k=C:j.sibling=C,j=C,A=_}if(N.done)return n(y,A),kt&&us(y,P),k;if(A===null){for(;!N.done;P++,N=b.next())N=m(y,N.value,w),N!==null&&(x=i(N,x,P),j===null?k=N:j.sibling=N,j=N);return kt&&us(y,P),k}for(A=r(y,A);!N.done;P++,N=b.next())N=f(A,y,P,N.value,w),N!==null&&(e&&N.alternate!==null&&A.delete(N.key===null?P:N.key),x=i(N,x,P),j===null?k=N:j.sibling=N,j=N);return e&&A.forEach(function(E){return t(y,E)}),kt&&us(y,P),k}function v(y,x,b,w){if(typeof b=="object"&&b!==null&&b.type===Pl&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Qp:e:{for(var k=b.key,j=x;j!==null;){if(j.key===k){if(k=b.type,k===Pl){if(j.tag===7){n(y,j.sibling),x=a(j,b.props.children),x.return=y,y=x;break e}}else if(j.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===ro&&LP(k)===j.type){n(y,j.sibling),x=a(j,b.props),x.ref=Mu(y,j,b),x.return=y,y=x;break e}n(y,j);break}else t(y,j);j=j.sibling}b.type===Pl?(x=Is(b.props.children,y.mode,w,b.key),x.return=y,y=x):(w=ih(b.type,b.key,b.props,null,y.mode,w),w.ref=Mu(y,x,b),w.return=y,y=w)}return o(y);case jl:e:{for(j=b.key;x!==null;){if(x.key===j)if(x.tag===4&&x.stateNode.containerInfo===b.containerInfo&&x.stateNode.implementation===b.implementation){n(y,x.sibling),x=a(x,b.children||[]),x.return=y,y=x;break e}else{n(y,x);break}else t(y,x);x=x.sibling}x=Rx(b,y.mode,w),x.return=y,y=x}return o(y);case ro:return j=b._init,v(y,x,j(b._payload),w)}if(cd(b))return g(y,x,b,w);if(Cu(b))return h(y,x,b,w);sf(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,x!==null&&x.tag===6?(n(y,x.sibling),x=a(x,b),x.return=y,y=x):(n(y,x),x=Fx(b,y.mode,w),x.return=y,y=x),o(y)):n(y,x)}return v}var mc=aO(!0),iO=aO(!1),$h=Ko(null),Fh=null,Il=null,J2=null;function ek(){J2=Il=Fh=null}function tk(e){var t=$h.current;bt($h),e._currentValue=t}function B0(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Wl(e,t){Fh=e,J2=Il=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Zn=!0),e.firstContext=null)}function Wr(e){var t=e._currentValue;if(J2!==e)if(e={context:e,memoizedValue:t,next:null},Il===null){if(Fh===null)throw Error(ne(308));Il=e,Fh.dependencies={lanes:0,firstContext:e}}else Il=Il.next=e;return t}var xs=null;function nk(e){xs===null?xs=[e]:xs.push(e)}function oO(e,t,n,r){var a=t.interleaved;return a===null?(n.next=n,nk(t)):(n.next=a.next,a.next=n),t.interleaved=n,Mi(e,r)}function Mi(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ao=!1;function rk(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function sO(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function _i(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Co(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ge&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Mi(e,n)}return a=r.interleaved,a===null?(t.next=t,nk(r)):(t.next=a.next,a.next=t),r.interleaved=t,Mi(e,n)}function Jf(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,q2(e,n)}}function zP(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?a=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?a=i=t:i=i.next=t}else a=i=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Rh(e,t,n,r){var a=e.updateQueue;ao=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var c=l,u=c.next;c.next=null,o===null?i=u:o.next=u,o=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==o&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(i!==null){var m=a.baseState;o=0,d=u=c=null,l=i;do{var p=l.lane,f=l.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,h=l;switch(p=t,f=n,h.tag){case 1:if(g=h.payload,typeof g=="function"){m=g.call(f,m,p);break e}m=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=h.payload,p=typeof g=="function"?g.call(f,m,p):g,p==null)break e;m=Nt({},m,p);break e;case 2:ao=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=a.effects,p===null?a.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=f,c=m):d=d.next=f,o|=p;if(l=l.next,l===null){if(l=a.shared.pending,l===null)break;p=l,l=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(!0);if(d===null&&(c=m),a.baseState=c,a.firstBaseUpdate=u,a.lastBaseUpdate=d,t=a.shared.interleaved,t!==null){a=t;do o|=a.lane,a=a.next;while(a!==t)}else i===null&&(a.shared.lanes=0);qs|=o,e.lanes=o,e.memoizedState=m}}function BP(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(a!==null){if(r.callback=null,r=n,typeof a!="function")throw Error(ne(191,a));a.call(r)}}}var jp={},Va=Ko(jp),tm=Ko(jp),nm=Ko(jp);function bs(e){if(e===jp)throw Error(ne(174));return e}function ak(e,t){switch(ft(nm,t),ft(tm,e),ft(Va,jp),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:w0(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=w0(t,e)}bt(Va),ft(Va,t)}function pc(){bt(Va),bt(tm),bt(nm)}function lO(e){bs(nm.current);var t=bs(Va.current),n=w0(t,e.type);t!==n&&(ft(tm,e),ft(Va,n))}function ik(e){tm.current===e&&(bt(Va),bt(tm))}var Pt=Ko(0);function Dh(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ex=[];function ok(){for(var e=0;e<Ex.length;e++)Ex[e]._workInProgressVersionPrimary=null;Ex.length=0}var eh=Ui.ReactCurrentDispatcher,Tx=Ui.ReactCurrentBatchConfig,Bs=0,_t=null,Qt=null,nn=null,Lh=!1,kd=!1,rm=0,r9=0;function yn(){throw Error(ne(321))}function sk(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ba(e[n],t[n]))return!1;return!0}function lk(e,t,n,r,a,i){if(Bs=i,_t=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,eh.current=e===null||e.memoizedState===null?s9:l9,e=n(r,a),kd){i=0;do{if(kd=!1,rm=0,25<=i)throw Error(ne(301));i+=1,nn=Qt=null,t.updateQueue=null,eh.current=c9,e=n(r,a)}while(kd)}if(eh.current=zh,t=Qt!==null&&Qt.next!==null,Bs=0,nn=Qt=_t=null,Lh=!1,t)throw Error(ne(300));return e}function ck(){var e=rm!==0;return rm=0,e}function Oa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nn===null?_t.memoizedState=nn=e:nn=nn.next=e,nn}function Vr(){if(Qt===null){var e=_t.alternate;e=e!==null?e.memoizedState:null}else e=Qt.next;var t=nn===null?_t.memoizedState:nn.next;if(t!==null)nn=t,Qt=e;else{if(e===null)throw Error(ne(310));Qt=e,e={memoizedState:Qt.memoizedState,baseState:Qt.baseState,baseQueue:Qt.baseQueue,queue:Qt.queue,next:null},nn===null?_t.memoizedState=nn=e:nn=nn.next=e}return nn}function am(e,t){return typeof t=="function"?t(e):t}function Ox(e){var t=Vr(),n=t.queue;if(n===null)throw Error(ne(311));n.lastRenderedReducer=e;var r=Qt,a=r.baseQueue,i=n.pending;if(i!==null){if(a!==null){var o=a.next;a.next=i.next,i.next=o}r.baseQueue=a=i,n.pending=null}if(a!==null){i=a.next,r=r.baseState;var l=o=null,c=null,u=i;do{var d=u.lane;if((Bs&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var m={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=m,o=r):c=c.next=m,_t.lanes|=d,qs|=d}u=u.next}while(u!==null&&u!==i);c===null?o=r:c.next=l,ba(r,t.memoizedState)||(Zn=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){a=e;do i=a.lane,_t.lanes|=i,qs|=i,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ix(e){var t=Vr(),n=t.queue;if(n===null)throw Error(ne(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(a!==null){n.pending=null;var o=a=a.next;do i=e(i,o.action),o=o.next;while(o!==a);ba(i,t.memoizedState)||(Zn=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function cO(){}function uO(e,t){var n=_t,r=Vr(),a=t(),i=!ba(r.memoizedState,a);if(i&&(r.memoizedState=a,Zn=!0),r=r.queue,uk(pO.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||nn!==null&&nn.memoizedState.tag&1){if(n.flags|=2048,im(9,mO.bind(null,n,r,a,t),void 0,null),an===null)throw Error(ne(349));Bs&30||dO(n,t,a)}return a}function dO(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=_t.updateQueue,t===null?(t={lastEffect:null,stores:null},_t.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function mO(e,t,n,r){t.value=n,t.getSnapshot=r,fO(t)&&hO(e)}function pO(e,t,n){return n(function(){fO(t)&&hO(e)})}function fO(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ba(e,n)}catch{return!0}}function hO(e){var t=Mi(e,1);t!==null&&ha(t,e,1,-1)}function qP(e){var t=Oa();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:am,lastRenderedState:e},t.queue=e,e=e.dispatch=o9.bind(null,_t,e),[t.memoizedState,e]}function im(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=_t.updateQueue,t===null?(t={lastEffect:null,stores:null},_t.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function gO(){return Vr().memoizedState}function th(e,t,n,r){var a=Oa();_t.flags|=e,a.memoizedState=im(1|t,n,void 0,r===void 0?null:r)}function _v(e,t,n,r){var a=Vr();r=r===void 0?null:r;var i=void 0;if(Qt!==null){var o=Qt.memoizedState;if(i=o.destroy,r!==null&&sk(r,o.deps)){a.memoizedState=im(t,n,i,r);return}}_t.flags|=e,a.memoizedState=im(1|t,n,i,r)}function UP(e,t){return th(8390656,8,e,t)}function uk(e,t){return _v(2048,8,e,t)}function vO(e,t){return _v(4,2,e,t)}function yO(e,t){return _v(4,4,e,t)}function xO(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function bO(e,t,n){return n=n!=null?n.concat([e]):null,_v(4,4,xO.bind(null,t,e),n)}function dk(){}function wO(e,t){var n=Vr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&sk(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function kO(e,t){var n=Vr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&sk(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function SO(e,t,n){return Bs&21?(ba(n,t)||(n=NT(),_t.lanes|=n,qs|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Zn=!0),e.memoizedState=n)}function a9(e,t){var n=tt;tt=n!==0&&4>n?n:4,e(!0);var r=Tx.transition;Tx.transition={};try{e(!1),t()}finally{tt=n,Tx.transition=r}}function jO(){return Vr().memoizedState}function i9(e,t,n){var r=To(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},PO(e))AO(t,n);else if(n=oO(e,t,n,r),n!==null){var a=qn();ha(n,e,r,a),_O(n,t,r)}}function o9(e,t,n){var r=To(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(PO(e))AO(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(a.hasEagerState=!0,a.eagerState=l,ba(l,o)){var c=t.interleaved;c===null?(a.next=a,nk(t)):(a.next=c.next,c.next=a),t.interleaved=a;return}}catch{}finally{}n=oO(e,t,a,r),n!==null&&(a=qn(),ha(n,e,r,a),_O(n,t,r))}}function PO(e){var t=e.alternate;return e===_t||t!==null&&t===_t}function AO(e,t){kd=Lh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _O(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,q2(e,n)}}var zh={readContext:Wr,useCallback:yn,useContext:yn,useEffect:yn,useImperativeHandle:yn,useInsertionEffect:yn,useLayoutEffect:yn,useMemo:yn,useReducer:yn,useRef:yn,useState:yn,useDebugValue:yn,useDeferredValue:yn,useTransition:yn,useMutableSource:yn,useSyncExternalStore:yn,useId:yn,unstable_isNewReconciler:!1},s9={readContext:Wr,useCallback:function(e,t){return Oa().memoizedState=[e,t===void 0?null:t],e},useContext:Wr,useEffect:UP,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,th(4194308,4,xO.bind(null,t,e),n)},useLayoutEffect:function(e,t){return th(4194308,4,e,t)},useInsertionEffect:function(e,t){return th(4,2,e,t)},useMemo:function(e,t){var n=Oa();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Oa();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=i9.bind(null,_t,e),[r.memoizedState,e]},useRef:function(e){var t=Oa();return e={current:e},t.memoizedState=e},useState:qP,useDebugValue:dk,useDeferredValue:function(e){return Oa().memoizedState=e},useTransition:function(){var e=qP(!1),t=e[0];return e=a9.bind(null,e[1]),Oa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=_t,a=Oa();if(kt){if(n===void 0)throw Error(ne(407));n=n()}else{if(n=t(),an===null)throw Error(ne(349));Bs&30||dO(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,UP(pO.bind(null,r,i,e),[e]),r.flags|=2048,im(9,mO.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Oa(),t=an.identifierPrefix;if(kt){var n=Si,r=ki;n=(r&~(1<<32-fa(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=rm++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=r9++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},l9={readContext:Wr,useCallback:wO,useContext:Wr,useEffect:uk,useImperativeHandle:bO,useInsertionEffect:vO,useLayoutEffect:yO,useMemo:kO,useReducer:Ox,useRef:gO,useState:function(){return Ox(am)},useDebugValue:dk,useDeferredValue:function(e){var t=Vr();return SO(t,Qt.memoizedState,e)},useTransition:function(){var e=Ox(am)[0],t=Vr().memoizedState;return[e,t]},useMutableSource:cO,useSyncExternalStore:uO,useId:jO,unstable_isNewReconciler:!1},c9={readContext:Wr,useCallback:wO,useContext:Wr,useEffect:uk,useImperativeHandle:bO,useInsertionEffect:vO,useLayoutEffect:yO,useMemo:kO,useReducer:Ix,useRef:gO,useState:function(){return Ix(am)},useDebugValue:dk,useDeferredValue:function(e){var t=Vr();return Qt===null?t.memoizedState=e:SO(t,Qt.memoizedState,e)},useTransition:function(){var e=Ix(am)[0],t=Vr().memoizedState;return[e,t]},useMutableSource:cO,useSyncExternalStore:uO,useId:jO,unstable_isNewReconciler:!1};function Jr(e,t){if(e&&e.defaultProps){t=Nt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function q0(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Nt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Nv={isMounted:function(e){return(e=e._reactInternals)?nl(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=qn(),a=To(e),i=_i(r,a);i.payload=t,n!=null&&(i.callback=n),t=Co(e,i,a),t!==null&&(ha(t,e,a,r),Jf(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=qn(),a=To(e),i=_i(r,a);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Co(e,i,a),t!==null&&(ha(t,e,a,r),Jf(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=qn(),r=To(e),a=_i(n,r);a.tag=2,t!=null&&(a.callback=t),t=Co(e,a,r),t!==null&&(ha(t,e,r,n),Jf(t,e,r))}};function WP(e,t,n,r,a,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!Zd(n,r)||!Zd(a,i):!0}function NO(e,t,n){var r=!1,a=Fo,i=t.contextType;return typeof i=="object"&&i!==null?i=Wr(i):(a=er(t)?Ls:Nn.current,r=t.contextTypes,i=(r=r!=null)?uc(e,a):Fo),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Nv,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function VP(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Nv.enqueueReplaceState(t,t.state,null)}function U0(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},rk(e);var i=t.contextType;typeof i=="object"&&i!==null?a.context=Wr(i):(i=er(t)?Ls:Nn.current,a.context=uc(e,i)),a.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(q0(e,t,i,n),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&Nv.enqueueReplaceState(a,a.state,null),Rh(e,n,a,r),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function fc(e,t){try{var n="",r=t;do n+=RL(r),r=r.return;while(r);var a=n}catch(i){a=` 39Error generating stack: `+i.message+` 40`+i.stack}return{value:e,source:t,stack:a,digest:null}}
vendor: 11,790 bytes, line 40
40function Mx(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function W0(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var u9=typeof WeakMap=="function"?WeakMap:Map;function CO(e,t,n){n=_i(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qh||(qh=!0,ew=r),W0(e,t)},n}function EO(e,t,n){n=_i(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){W0(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){W0(e,t),typeof r!="function"&&(Eo===null?Eo=new Set([this]):Eo.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function HP(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new u9;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=j9.bind(null,e,t,n),t.then(e,e))}function KP(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function GP(e,t,n,r,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=_i(-1,1),t.tag=2,Co(n,t,1))),n.lanes|=1),e)}var d9=Ui.ReactCurrentOwner,Zn=!1;function Mn(e,t,n,r){t.child=e===null?iO(t,null,n,r):mc(t,e.child,n,r)}function QP(e,t,n,r,a){n=n.render;var i=t.ref;return Wl(t,a),r=lk(e,t,n,r,i,a),n=ck(),e!==null&&!Zn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,$i(e,t,a)):(kt&&n&&Y2(t),t.flags|=1,Mn(e,t,r,a),t.child)}function YP(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!xk(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,TO(e,t,i,r,a)):(e=ih(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&a)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Zd,n(o,r)&&e.ref===t.ref)return $i(e,t,a)}return t.flags|=1,e=Oo(i,r),e.ref=t.ref,e.return=t,t.child=e}function TO(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(Zd(i,r)&&e.ref===t.ref)if(Zn=!1,t.pendingProps=r=i,(e.lanes&a)!==0)e.flags&131072&&(Zn=!0);else return t.lanes=e.lanes,$i(e,t,a)}return V0(e,t,n,r,a)}function OO(e,t,n){var r=t.pendingProps,a=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ft($l,fr),fr|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ft($l,fr),fr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ft($l,fr),fr|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ft($l,fr),fr|=r;return Mn(e,t,a,n),t.child}function IO(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function V0(e,t,n,r,a){var i=er(n)?Ls:Nn.current;return i=uc(t,i),Wl(t,a),n=lk(e,t,n,r,i,a),r=ck(),e!==null&&!Zn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,$i(e,t,a)):(kt&&r&&Y2(t),t.flags|=1,Mn(e,t,n,a),t.child)}function ZP(e,t,n,r,a){if(er(n)){var i=!0;Oh(t)}else i=!1;if(Wl(t,a),t.stateNode===null)nh(e,t),NO(t,n,r),U0(t,n,r,a),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var c=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Wr(u):(u=er(n)?Ls:Nn.current,u=uc(t,u));var d=n.getDerivedStateFromProps,m=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";m||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||c!==u)&&VP(t,o,r,u),ao=!1;var p=t.memoizedState;o.state=p,Rh(t,r,o,a),c=t.memoizedState,l!==r||p!==c||Jn.current||ao?(typeof d=="function"&&(q0(t,n,d,r),c=t.memoizedState),(l=ao||WP(t,n,l,r,p,c,u))?(m||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,sO(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Jr(t.type,l),o.props=u,m=t.pendingProps,p=o.context,c=n.contextType,typeof c=="object"&&c!==null?c=Wr(c):(c=er(n)?Ls:Nn.current,c=uc(t,c));var f=n.getDerivedStateFromProps;(d=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==m||p!==c)&&VP(t,o,r,c),ao=!1,p=t.memoizedState,o.state=p,Rh(t,r,o,a);var g=t.memoizedState;l!==m||p!==g||Jn.current||ao?(typeof f=="function"&&(q0(t,n,f,r),g=t.memoizedState),(u=ao||WP(t,n,u,r,p,g,c)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,g,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,g,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),o.props=r,o.state=g,o.context=c,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return H0(e,t,n,r,i,a)}function H0(e,t,n,r,a,i){IO(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return a&&FP(t,n,!1),$i(e,t,i);r=t.stateNode,d9.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=mc(t,e.child,null,i),t.child=mc(t,null,l,i)):Mn(e,t,l,i),t.memoizedState=r.state,a&&FP(t,n,!0),t.child}function MO(e){var t=e.stateNode;t.pendingContext?$P(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$P(e,t.context,!1),ak(e,t.containerInfo)}function XP(e,t,n,r,a){return dc(),X2(a),t.flags|=256,Mn(e,t,n,r),t.child}var K0={dehydrated:null,treeContext:null,retryLane:0};function G0(e){return{baseLanes:e,cachePool:null,transitions:null}}function $O(e,t,n){var r=t.pendingProps,a=Pt.current,i=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(a&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),ft(Pt,a&1),e===null)return z0(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Tv(o,r,0,null),e=Is(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=G0(n),t.memoizedState=K0,e):mk(t,o));if(a=e.memoizedState,a!==null&&(l=a.dehydrated,l!==null))return m9(e,t,o,r,l,a,n);if(i){i=r.fallback,o=t.mode,a=e.child,l=a.sibling;var c={mode:"hidden",children:r.children};return!(o&1)&&t.child!==a?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Oo(a,c),r.subtreeFlags=a.subtreeFlags&14680064),l!==null?i=Oo(l,i):(i=Is(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?G0(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=K0,r}return i=e.child,e=i.sibling,r=Oo(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function mk(e,t){return t=Tv({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function lf(e,t,n,r){return r!==null&&X2(r),mc(t,e.child,null,n),e=mk(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function m9(e,t,n,r,a,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Mx(Error(ne(422))),lf(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,a=t.mode,r=Tv({mode:"visible",children:r.children},a,0,null),i=Is(i,a,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&mc(t,e.child,null,o),t.child.memoizedState=G0(o),t.memoizedState=K0,i);if(!(t.mode&1))return lf(e,t,o,null);if(a.data==="$!"){if(r=a.nextSibling&&a.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(ne(419)),r=Mx(i,r,void 0),lf(e,t,o,r)}if(l=(o&e.childLanes)!==0,Zn||l){if(r=an,r!==null){switch(o&-o){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(r.suspendedLanes|o)?0:a,a!==0&&a!==i.retryLane&&(i.retryLane=a,Mi(e,a),ha(r,e,a,-1))}return yk(),r=Mx(Error(ne(421))),lf(e,t,o,r)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=P9.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,xr=No(a.nextSibling),br=t,kt=!0,ia=null,e!==null&&($r[Fr++]=ki,$r[Fr++]=Si,$r[Fr++]=zs,ki=e.id,Si=e.overflow,zs=t),t=mk(t,r.children),t.flags|=4096,t)}function JP(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),B0(e.return,t,n)}function $x(e,t,n,r,a){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a)}function FO(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(Mn(e,t,r.children,n),r=Pt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&JP(e,n,t);else if(e.tag===19)JP(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ft(Pt,r),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&Dh(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),$x(t,!1,a,n,i);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Dh(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}$x(t,!0,n,null,i);break;case"together":$x(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function nh(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $i(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),qs|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ne(153));if(t.child!==null){for(e=t.child,n=Oo(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Oo(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function p9(e,t,n){switch(t.tag){case 3:MO(t),dc();break;case 5:lO(t);break;case 1:er(t.type)&&Oh(t);break;case 4:ak(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;ft($h,r._currentValue),r._currentValue=a;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ft(Pt,Pt.current&1),t.flags|=128,null):n&t.child.childLanes?$O(e,t,n):(ft(Pt,Pt.current&1),e=$i(e,t,n
vendor: 4,851 bytes, line 40
40),e!==null?e.sibling:null);ft(Pt,Pt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return FO(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),ft(Pt,Pt.current),r)break;return null;case 22:case 23:return t.lanes=0,OO(e,t,n)}return $i(e,t,n)}var RO,Q0,DO,LO;RO=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Q0=function(){};DO=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,bs(Va.current);var i=null;switch(n){case"input":a=v0(e,a),r=v0(e,r),i=[];break;case"select":a=Nt({},a,{value:void 0}),r=Nt({},r,{value:void 0}),i=[];break;case"textarea":a=b0(e,a),r=b0(e,r),i=[];break;default:typeof a.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Eh)}k0(n,r);var o;n=null;for(u in a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&a[u]!=null)if(u==="style"){var l=a[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Wd.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(l=a!=null?a[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(i||(i=[]),i.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Wd.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&vt("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};LO=function(e,t,n,r){n!==r&&(t.flags|=4)};function $u(e,t){if(!kt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function xn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&14680064,r|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function f9(e,t,n){var r=t.pendingProps;switch(Z2(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xn(t),null;case 1:return er(t.type)&&Th(),xn(t),null;case 3:return r=t.stateNode,pc(),bt(Jn),bt(Nn),ok(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(of(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ia!==null&&(rw(ia),ia=null))),Q0(e,t),xn(t),null;case 5:ik(t);var a=bs(nm.current);if(n=t.type,e!==null&&t.stateNode!=null)DO(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ne(166));return xn(t),null}if(e=bs(Va.current),of(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[La]=t,r[em]=i,e=(t.mode&1)!==0,n){case"dialog":vt("cancel",r),vt("close",r);break;case"iframe":case"object":case"embed":vt("load",r);break;case"video":case"audio":for(a=0;a<dd.length;a++)vt(dd[a],r);break;case"source":vt("error",r);break;case"img":case"image":case"link":vt("error",r),vt("load",r);break;case"details":vt("toggle",r);break;case"input":lP(r,i),vt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},vt("invalid",r);break;case"textarea":uP(r,i),vt("invalid",r)}k0(n,i),a=null;for(var o in i)if(i.hasOwnProperty(o)){var l=i[o];o==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&af(r.textContent,l,e),a=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&af(r.textContent,l,e),a=["children",""+l]):Wd.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&vt("scroll",r)}switch(n){case"input":Yp(r),cP(r,i,!0);break;case"textarea":Yp(r),dP(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Eh)}r=a,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=pT(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>
40",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[La]=t,e[em]=r,RO(e,t,!1,!1),t.stateNode=e;e:{switch(o=S0(n,r),n){case"dialog":vt("cancel",e),vt("close",e),a=r;break;case"iframe":case"object":case"embed":vt("load",e),a=r;break;case"video":case"audio":for(a=0;a<dd.length;a++)vt(dd[a],e);a=r;break;case"source":vt("error",e),a=r;break;case"img":case"image":case"link":vt("error",e),vt("load",e),a=r;break;case"details":vt("toggle",e),a=r;break;case"input":lP(e,r),a=v0(e,r),vt("invalid",e);break;case"option":a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=Nt({},r,{value:void 0}),vt("invalid",e);break;case"textarea":uP(e,r),a=b0(e,r),vt("invalid",e);break;default:a=r}k0(n,a),l=a;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];i==="style"?gT(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&fT(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Vd(e,c):typeof c=="number"&&Vd(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Wd.hasOwnProperty(i)?c!=null&&i==="onScroll"&&vt("scroll",e):c!=null&&F2(e,i,c,o))}switch(n){case"input":Yp(e),cP(e,r,!1);break;case"textarea":Yp(e),dP(e);break;case"option":r.value!=null&&e.setAttribute("value",""+$o(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?zl(e,!!r.multiple,i,!1):r.defaultValue!=null&&zl(e,!!r.multiple,r.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=Eh)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return xn(t),null;case 6:if(e&&t.stateNode!=null)LO(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(ne(166));if(n=bs(nm.current),bs(Va.current),of(t)){if(r=t.stateNode,n=t.memoizedProps,r[La]=t,(i=r.nodeValue!==n)&&(e=br,e!==null))switch(e.tag){case 3:af(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&af(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[La]=t,t.stateNode=r}return xn(t),null;case 13:if(bt(Pt),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(kt&&xr!==null&&t.mode&1&&!(t.flags&128))rO(),dc(),t.flags|=98560,i=!1;else if(i=of(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(ne(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(ne(317));i[La]=t}else dc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xn(t),i=!1}else ia!==null&&(rw(ia),ia=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Pt.current&1?Yt===0&&(Yt=3):yk())),t.updateQueue!==null&&(t.flags|=4),xn(t),null);case 4:return pc(),Q0(e,t),e===null&&Xd(t.stateNode.containerInfo),xn(t),null;case 10:return tk(t.type._context),xn(t),null;case 17:return er(t.type)&&Th(),xn(t),null;case 19:if(bt(Pt),i=t.memoizedState,i===null)return xn(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)$u(i,!1);else{if(Yt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Dh(e),o!==null){for(t.flags|=128,$u(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ft(Pt,Pt.current&1|2),t.child}e=e.sibling}i.tail!==null&&$t()>hc&&(t.flags|=128,r=!0,$u(i,!1),t.lanes=4194304)}else{if(!r)if(e=Dh(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$u(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!kt)return xn(t),null}else 2*$t()-i.renderingStartTime>hc&&n!==1073741824&&(t.flags|=128,r=!0,$u(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=$t(),t.sibling=null,n=Pt.current,ft(Pt,r?n&1|2:n&1),t):(xn(t),null);case 22:case 23:return vk(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?fr&1073741824&&(xn(t),t.subtreeFlags&6&&(t.flags|=8192)):xn(t),null;case 24:return null;case 25:return null}throw Error(ne(156,t.tag))}function h9(e,t){switch(Z2(t),t.tag){case 1:return er(t.type)&&Th(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;
vendor: 23,232 bytes, line 40
40case 3:return pc(),bt(Jn),bt(Nn),ok(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ik(t),null;case 13:if(bt(Pt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ne(340));dc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return bt(Pt),null;case 4:return pc(),null;case 10:return tk(t.type._context),null;case 22:case 23:return vk(),null;case 24:return null;default:return null}}var cf=!1,Sn=!1,g9=typeof WeakSet=="function"?WeakSet:Set,he=null;function Ml(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Tt(e,t,r)}else n.current=null}function Y0(e,t,n){try{n()}catch(r){Tt(e,t,r)}}var e4=!1;function v9(e,t){if(I0=_h,e=WT(),Q2(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,c=-1,u=0,d=0,m=e,p=null;t:for(;;){for(var f;m!==n||a!==0&&m.nodeType!==3||(l=o+a),m!==i||r!==0&&m.nodeType!==3||(c=o+r),m.nodeType===3&&(o+=m.nodeValue.length),(f=m.firstChild)!==null;)p=m,m=f;for(;;){if(m===e)break t;if(p===n&&++u===a&&(l=o),p===i&&++d===r&&(c=o),(f=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=f}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(M0={focusedElem:e,selectionRange:n},_h=!1,he=t;he!==null;)if(t=he,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,he=e;else for(;he!==null;){t=he;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var h=g.memoizedProps,v=g.memoizedState,y=t.stateNode,x=y.getSnapshotBeforeUpdate(t.elementType===t.type?h:Jr(t.type,h),v);y.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ne(163))}}catch(w){Tt(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,he=e;break}he=t.return}return g=e4,e4=!1,g}function Sd(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&Y0(t,n,i)}a=a.next}while(a!==r)}}function Cv(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Z0(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function zO(e){var t=e.alternate;t!==null&&(e.alternate=null,zO(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[La],delete t[em],delete t[R0],delete t[Jz],delete t[e9])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function BO(e){return e.tag===5||e.tag===3||e.tag===4}function t4(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||BO(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function X0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Eh));else if(r!==4&&(e=e.child,e!==null))for(X0(e,t,n),e=e.sibling;e!==null;)X0(e,t,n),e=e.sibling}function J0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(J0(e,t,n),e=e.sibling;e!==null;)J0(e,t,n),e=e.sibling}var un=null,na=!1;function Qi(e,t,n){for(n=n.child;n!==null;)qO(e,t,n),n=n.sibling}function qO(e,t,n){if(Wa&&typeof Wa.onCommitFiberUnmount=="function")try{Wa.onCommitFiberUnmount(wv,n)}catch{}switch(n.tag){case 5:Sn||Ml(n,t);case 6:var r=un,a=na;un=null,Qi(e,t,n),un=r,na=a,un!==null&&(na?(e=un,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):un.removeChild(n.stateNode));break;case 18:un!==null&&(na?(e=un,n=n.stateNode,e.nodeType===8?Nx(e.parentNode,n):e.nodeType===1&&Nx(e,n),Qd(e)):Nx(un,n.stateNode));break;case 4:r=un,a=na,un=n.stateNode.containerInfo,na=!0,Qi(e,t,n),un=r,na=a;break;case 0:case 11:case 14:case 15:if(!Sn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Y0(n,t,o),a=a.next}while(a!==r)}Qi(e,t,n);break;case 1:if(!Sn&&(Ml(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Tt(n,t,l)}Qi(e,t,n);break;case 21:Qi(e,t,n);break;case 22:n.mode&1?(Sn=(r=Sn)||n.memoizedState!==null,Qi(e,t,n),Sn=r):Qi(e,t,n);break;default:Qi(e,t,n)}}function n4(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new g9),t.forEach(function(r){var a=A9.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function Zr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r];try{var i=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:un=l.stateNode,na=!1;break e;case 3:un=l.stateNode.containerInfo,na=!0;break e;case 4:un=l.stateNode.containerInfo,na=!0;break e}l=l.return}if(un===null)throw Error(ne(160));qO(i,o,a),un=null,na=!1;var c=a.alternate;c!==null&&(c.return=null),a.return=null}catch(u){Tt(a,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)UO(t,e),t=t.sibling}function UO(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Zr(t,e),Ta(e),r&4){try{Sd(3,e,e.return),Cv(3,e)}catch(h){Tt(e,e.return,h)}try{Sd(5,e,e.return)}catch(h){Tt(e,e.return,h)}}break;case 1:Zr(t,e),Ta(e),r&512&&n!==null&&Ml(n,n.return);break;case 5:if(Zr(t,e),Ta(e),r&512&&n!==null&&Ml(n,n.return),e.flags&32){var a=e.stateNode;try{Vd(a,"")}catch(h){Tt(e,e.return,h)}}if(r&4&&(a=e.stateNode,a!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&dT(a,i),S0(l,o);var u=S0(l,i);for(o=0;o<c.length;o+=2){var d=c[o],m=c[o+1];d==="style"?gT(a,m):d==="dangerouslySetInnerHTML"?fT(a,m):d==="children"?Vd(a,m):F2(a,d,m,u)}switch(l){case"input":y0(a,i);break;case"textarea":mT(a,i);break;case"select":var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var f=i.value;f!=null?zl(a,!!i.multiple,f,!1):p!==!!i.multiple&&(i.defaultValue!=null?zl(a,!!i.multiple,i.defaultValue,!0):zl(a,!!i.multiple,i.multiple?[]:"",!1))}a[em]=i}catch(h){Tt(e,e.return,h)}}break;case 6:if(Zr(t,e),Ta(e),r&4){if(e.stateNode===null)throw Error(ne(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(h){Tt(e,e.return,h)}}break;case 3:if(Zr(t,e),Ta(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Qd(t.containerInfo)}catch(h){Tt(e,e.return,h)}break;case 4:Zr(t,e),Ta(e);break;case 13:Zr(t,e),Ta(e),a=e.child,a.flags&8192&&(i=a.memoizedState!==null,a.stateNode.isHidden=i,!i||a.alternate!==null&&a.alternate.memoizedState!==null||(hk=$t())),r&4&&n4(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Sn=(u=Sn)||d,Zr(t,e),Sn=u):Zr(t,e),Ta(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(he=e,d=e.child;d!==null;){for(m=he=d;he!==null;){switch(p=he,f=p.child,p.tag){case 0:case 11:case 14:case 15:Sd(4,p,p.return);break;case 1:Ml(p,p.return);var g=p.stateNode;if(typeof g.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(h){Tt(r,n,h)}}break;case 5:Ml(p,p.return);break;case 22:if(p.memoizedState!==null){a4(m);continue}}f!==null?(f.return=p,he=f):a4(m)}d=d.sibling}e:for(d=null,m=e;;){if(m.tag===5){if(d===null){d=m;try{a=m.stateNode,u?(i=a.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=m.stateNode,c=m.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=hT("display",o))}catch(h){Tt(e,e.return,h)}}}else if(m.tag===6){if(d===null)try{m.stateNode.nodeValue=u?"":m.memoizedProps}catch(h){Tt(e,e.return,h)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;d===m&&(d=null),m=m.return}d===m&&(d=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:Zr(t,e),Ta(e),r&4&&n4(e);break;case 21:break;default:Zr(t,e),Ta(e)}}function Ta(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(BO(n)){var r=n;break e}n=n.return}throw Error(ne(160))}switch(r.tag){case 5:var a=r.stateNode;r.flags&32&&(Vd(a,""),r.flags&=-33);var i=t4(e);J0(e,i,a);break;case 3:case 4:var o=r.stateNode.containerInfo,l=t4(e);X0(e,l,o);break;default:throw Error(ne(161))}}catch(c){Tt(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function y9(e,t,n){he=e,WO(e)}function WO(e,t,n){for(var r=(e.mode&1)!==0;he!==null;){var a=he,i=a.child;if(a.tag===22&&r){var o=a.memoizedState!==null||cf;if(!o){var l=a.alternate,c=l!==null&&l.memoizedState!==null||Sn;l=cf;var u=Sn;if(cf=o,(Sn=c)&&!u)for(he=a;he!==null;)o=he,c=o.child,o.tag===22&&o.memoizedState!==null?i4(a):c!==null?(c.return=o,he=c):i4(a);for(;i!==null;)he=i,WO(i),i=i.sibling;he=a,cf=l,Sn=u}r4(e)}else a.subtreeFlags&8772&&i!==null?(i.return=a,he=i):r4(e)}}function r4(e){for(;he!==null;){var t=he;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Sn||Cv(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Sn)if(n===null)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:Jr(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&BP(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}BP(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var m=d.dehydrated;m!==null&&Qd(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ne(163))}Sn||t.flags&512&&Z0(t)}catch(p){Tt(t,t.return,p)}}if(t===e){he=null;break}if(n=t.sibling,n!==null){n.return=t.return,he=n;break}he=t.return}}function a4(e){for(;he!==null;){var t=he;if(t===e){he=null;break}var n=t.sibling;if(n!==null){n.return=t.return,he=n;break}he=t.return}}function i4(e){for(;he!==null;){var t=he;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Cv(4,t)}catch(c){Tt(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var a=t.return;try{r.componentDidMount()}catch(c){Tt(t,a,c)}}var i=t.return;try{Z0(t)}catch(c){Tt(t,i,c)}break;case 5:var o=t.return;try{Z0(t)}catch(c){Tt(t,o,c)}}}catch(c){Tt(t,t.return,c)}if(t===e){he=null;break}var l=t.sibling;if(l!==null){l.return=t.return,he=l;break}he=t.return}}var x9=Math.ceil,Bh=Ui.ReactCurrentDispatcher,pk=Ui.ReactCurrentOwner,Br=Ui.ReactCurrentBatchConfig,Ge=0,an=null,Wt=null,mn=0,fr=0,$l=Ko(0),Yt=0,om=null,qs=0,Ev=0,fk=0,jd=null,Yn=null,hk=0,hc=1/0,bi=null,qh=!1,ew=null,Eo=null,uf=!1,bo=null,Uh=0,Pd=0,tw=null,rh=-1,ah=0;function qn(){return Ge&6?$t():rh!==-1?rh:rh=$t()}function To(e){return e.mode&1?Ge&2&&mn!==0?mn&-mn:n9.transition!==null?(ah===0&&(ah=NT()),ah):(e=tt,e!==0||(e=window.event,e=e===void 0?16:$T(e.type)),e):1}function ha(e,t,n,r){if(50<Pd)throw Pd=0,tw=null,Error(ne(185));wp(e,n,r),(!(Ge&2)||e!==an)&&(e===an&&(!(Ge&2)&&(Ev|=n),Yt===4&&lo(e,mn)),tr(e,r),n===1&&Ge===0&&!(t.mode&1)&&(hc=$t()+500,Av&&Go()))}function tr(e,t){var n=e.callbackNode;nz(e,t);var r=Ah(e,e===an?mn:0);if(r===0)n!==null&&fP(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&fP(n),t===1)e.tag===0?t9(o4.bind(null,e)):eO(o4.bind(null,e)),Zz(function(){!(Ge&6)&&Go()}),n=null;else{switch(CT(r)){case 1:n=B2;break;case 4:n=AT;break;case 16:n=Ph;break;case 536870912:n=_T;break;default:n=Ph}n=XO(n,VO.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function VO(e,t){if(rh=-1,ah=0,Ge&6)throw Error(ne(327));var n=e.callbackNode;if(Vl()&&e.callbackNode!==n)return null;var r=Ah(e,e===an?mn:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Wh(e,r);else{t=r;var a=Ge;Ge|=2;var i=KO();(an!==e||mn!==t)&&(bi=null,hc=$t()+500,Os(e,t));do try{k9();break}catch(l){HO(e,l)}while(!0);ek(),Bh.current=i,Ge=a,Wt!==null?t=0:(an=null,mn=0,t=Yt)}if(t!==0){if(t===2&&(a=N0(e),a!==0&&(r=a,t=nw(e,a))),t===1)throw n=om,Os(e,0),lo(e,r),tr(e,$t()),n;if(t===6)lo(e,r);else{if(a=e.current.alternate,!(r&30)&&!b9(a)&&(t=Wh(e,r),t===2&&(i=N0(e),i!==0&&(r=i,t=nw(e,i))),t===1))throw n=om,Os(e,0),lo(e,r),tr(e,$t()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(ne(345));case 2:ds(e,Yn,bi);break;case 3:if(lo(e,r),(r&130023424)===r&&(t=hk+500-$t(),10<t)){if(Ah(e,0)!==0)break;if(a=e.suspendedLanes,(a&r)!==r){qn(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=F0(ds.bind(null,e,Yn,bi),t);break}ds(e,Yn,bi);break;case 4:if(lo(e,r),(r&4194240)===r)break;for(t=e.eventTimes,a=-1;0<r;){var o=31-fa(r);i=1<<o,o=t[o],o>a&&(a=o),r&=~i}if(r=a,r=$t()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*x9(r/1960))-r,10<r){e.timeoutHandle=F0(ds.bind(null,e,Yn,bi),r);break}ds(e,Yn,bi);break;case 5:ds(e,Yn,bi);break;default:throw Error(ne(329))}}}return tr(e,$t()),e.callbackNode===n?VO.bind(null,e):null}function nw(e,t){var n=jd;return e.current.memoizedState.isDehydrated&&(Os(e,t).flags|=256),e=Wh(e,t),e!==2&&(t=Yn,Yn=n,t!==null&&rw(t)),e}function rw(e){Yn===null?Yn=e:Yn.push.apply(Yn,e)}function b9(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var a=n[r],i=a.getSnapshot;a=a.value;try{if(!ba(i(),a))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function lo(e,t){for(t&=~fk,t&=~Ev,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-fa(t),r=1<<n;e[n]=-1,t&=~r}}function o4(e){if(Ge&6)throw Error(ne(327));Vl();var t=Ah(e,0);if(!(t&1))return tr(e,$t()),null;var n=Wh(e,t);if(e.tag!==0&&n===2){var r=N0(e);r!==0&&(t=r,n=nw(e,r))}if(n===1)throw n=om,Os(e,0),lo(e,t),tr(e,$t()),n;if(n===6)throw Error(ne(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ds(e,Yn,bi),tr(e,$t()),null}function gk(e,t){var n=Ge;Ge|=1;try{return e(t)}finally{Ge=n,Ge===0&&(hc=$t()+500,Av&&Go())}}function Us(e){bo!==null&&bo.tag===0&&!(Ge&6)&&Vl();var t=Ge;Ge|=1;var n=Br.transition,r=tt;try{if(Br.transition=null,tt=1,e)return e()}finally{tt=r,Br.transition=n,Ge=t,!(Ge&6)&&Go()}}function vk(){fr=$l.current,bt($l)}function Os(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Yz(n)),Wt!==null)for(n=Wt.return;n!==null;){var r=n;switch(Z2(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Th();break;case 3:pc(),bt(Jn),bt(Nn),ok();break;case 5:ik(r);break;case 4:pc();break;case 13:bt(Pt);break;case 19:bt(Pt);break;case 10:tk(r.type._context);break;case 22:case 23:vk()}n=n.return}if(an=e,Wt=e=Oo(e.current,null),mn=fr=t,Yt=0,om=null,fk=Ev=qs=0,Yn=jd=null,xs!==null){for(t=0;t<xs.length;t++)if(n=xs[t],r=n.interleaved,r!==null){n.interleaved=null;var a=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=a,r.next=o}n.pending=r}xs=null}return e}function HO(e,t){do{var n=Wt;try{if(ek(),eh.current=zh,Lh){for(var r=_t.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Lh=!1}if(Bs=0,nn=Qt=_t=null,kd=!1,rm=0,pk.current=null,n===null||n.return===null){Yt=1,om=t,Wt=null;break}e:{var i=e,o=n.return,l=n,c=t;if(t=mn,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=l,m=d.tag;if(!(d.mode&1)&&(m===0||m===11||m===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=KP(o);if(f!==null){f.flags&=-257,GP(f,o,l,i,t),f.mode&1&&HP(i,u,t),t=f,c=u;var g=t.updateQueue;if(g===null){var h=new Set;h.add(c),t.updateQueue=h}else g.add(c);break e}else{if(!(t&1)){HP(i,u,t),yk();break e}c=Error(ne(426))}}else if(kt&&l.mode&1){var v=KP(o);if(v!==null){!(v.flags&65536)&&(v.flags|=256),GP(v,o,l,i,t),X2(fc(c,l));break e}}i=c=fc(c,l),Yt!==4&&(Yt=2),jd===null?jd=[i]:jd.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var y=CO(i,c,t);zP(i,y);break e;case 1:l=c;var x=i.type,b=i.stateNode;if(!(i.flags&128)&&(typeof x.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Eo===null||!Eo.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t;var w=EO(i,l,t);zP(i,w);break e}}i=i.return}while(i!==null)}QO(n)}catch(k){t=k,Wt===n&&n!==null&&(Wt=n=n.return);continue}break}while(!0)}function KO(){var e=Bh.current;return Bh.current=zh,e===null?zh:e}function yk(){(Yt===0||Yt===3||Yt===2)&&(Yt=4),an===null||!(qs&268435455)&&!(Ev&268435455)||lo(an,mn)}function Wh(e,t){var n=Ge;Ge|=2;var r=KO();(an!==e||mn!==t)&&(bi=null,Os(e,t));do try{w9();break}catch(a){HO(e,a)}while(!0);if(ek(),Ge=n,Bh.current=r,Wt!==null)throw Error(ne(261));return an=null,mn=0,Yt}function w9(){for(;Wt!==null;)GO(Wt)}function k9(){for(;Wt!==null&&!KL();)GO(Wt)}function GO(e){var t=ZO(e.alternate,e,fr);e.memoizedProps=e.pendingProps,t===null?QO(e):Wt=t,pk.current=null}function QO(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=h9(n,t),n!==null){n.flags&=32767,Wt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Yt=6,Wt=null;return}}else if(n=f9(n,t,fr),n!==null){Wt=n;return}if(t=t.sibling,t!==null){Wt=t;return}Wt=t=e}while(t!==null);Yt===0&&(Yt=5)}function ds(e,t,n){var r=tt,a=Br.transition;try{Br.transition=null,tt=1,S9(e,t,n,r)}finally{Br.transition=a,tt=r}return null}function S9(e,t,n,r){do Vl();while(bo!==null);if(Ge&6)throw Error(ne(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(ne(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(rz(e,i),e===an&&(Wt=an=null,mn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||uf||(uf=!0,XO(Ph,function(){return Vl(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Br.transition,Br.transition=null;var o=tt;tt=1;var l=Ge;Ge|=4,pk.current=null,v9(e,n),UO(n,e),Uz(M0),_h=!!I0,M0=I0=null,e.current=n,y9(n),GL(),Ge=l,tt=o,Br.transition=i}else e.current=n;if(uf&&(uf=!1,bo=e,Uh=a),i=e.pendingLanes,i===0&&(Eo=null),ZL(n.stateNode),tr(e,$t()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],r(a.value,{componentStack:a.stack,digest:a.digest});if(qh)throw qh=!1,e=ew,ew=null,e;return Uh&1&&e.tag!==0&&Vl(),i=e.pendingLanes,i&1?e===tw?Pd++:(Pd=0,tw=e):Pd=0,Go(),null}function Vl(){if(bo!==null){var e=CT(Uh),t=Br.transition,n=tt;try{if(Br.transition=null,tt=16>e?16:e,bo===null)var r=!1;else{if(e=bo,bo=null,Uh=0,Ge&6)throw Error(ne(331));var a=Ge;for(Ge|=4,he=e.current;he!==null;){var i=he,o=i.child;if(he.flags&16){var l=i.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(he=u;he!==null;){var d=he;switch(d.tag){case 0:case 11:case 15:Sd(8,d,i)}var m=d.child;if(m!==null)m.return=d,he=m;else for(;he!==null;){d=he;var p=d.sibling,f=d.return;if(zO(d),d===u){he=null;break}if(p!==null){p.return=f,he=p;break}he=f}}}var g=i.alternate;if(g!==null){var h=g.child;if(h!==null){g.child=null;do{var v=h.sibling;h.sibling=null,h=v}while(h!==null)}}he=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,he=o;else e:for(;he!==null;){if(i=he,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Sd(9,i,i.return)}var y=i.sibling;if(y!==null){y.return=i.return,he=y;break e}he=i.return}}var x=e.current;for(he=x;he!==null;){o=he;var b=o.child;if(o.subtreeFlags&2064&&b!==null)b.return=o,he=b;else e:for(o=x;he!==null;){if(l=he,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Cv(9,l)}}catch(k){Tt(l,l.return,k)}if(l===o){he=null;break e}var w=l.sibling;if(w!==null){w.return=l.return,he=w;break e}he=l.return}}if(Ge=a,Go(),Wa&&typeof Wa.onPostCommitFiberRoot=="function")try{Wa.onPostCommitFiberRoot(wv,e)}catch{}r=!0}return r}finally{tt=n,Br.transition=t}}return!1}function s4(e,t,n){t=fc(n,t),t=CO(e,t,1),e=Co(e,t,1),t=qn(),e!==null&&(wp(e,1,t),tr(e,t))}function Tt(e,t,n){if(e.tag===3)s4(e,e,n);else for(;t!==null;){if(t.tag===3){s4(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Eo===null||!Eo.has(r))){e=fc(n,e),e=EO(t,e,1),t=Co(t,e,1),e=qn(),t!==null&&(wp(t,1,e),tr(t,e));break}}t=t.return}}function j9(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=qn(),e.pingedLanes|=e.suspendedLanes&n,an===e&&(mn&n)===n&&(Yt===4||Yt===3&&(mn&130023424)===mn&&500>$t()-hk?Os(e,0):fk|=n),tr(e,t)}function YO(e,t){t===0&&(e.mode&1?(t=Jp,Jp<<=1,!(Jp&130023424)&&(Jp=4194304)):t=1);var n=qn();e=Mi(e,t),e!==null&&(wp(e,t,n),tr(e,n))}function P9(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),YO(e,n)}function A9(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ne(314))}r!==null&&r.delete(t),YO(e,n)}var ZO;ZO=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Jn.current)Zn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Zn=!1,p9(e,t,n);Zn=!!(e.flags&131072)}else Zn=!1,kt&&t.flags&1048576&&tO(t,Mh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;nh(e,t),e=t.pendingProps;var a=uc(t,Nn.current);Wl(t,n),a=lk(null,t,r,e,a,n);var i=ck();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,er(r)?(i=!0,Oh(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,rk(t),a.updater=Nv,t.stateNode=a,a._reactInternals=t,U0(t,r,e,n),t=H0(null,t,r,!0,i,n)):(t.tag=0,kt&&i&&Y2(t),Mn(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(nh(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=N9(r),e=Jr(r,e),a){case 0:t=V0(null,t,r,e,n);break e;case 1:t=ZP(null,t,r,e,n);break e;case 11:t=QP(null,t,r,e,n);break e;case 14:t=YP(null,t,r,Jr(r.type,e),n);break e}throw Error(ne(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Jr(r,a),V0(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Jr(r,a),ZP(e,t,r,a,n);case 3:e:{if(MO(t),e===null)throw Error(ne(387));
vendor: 1,423 bytes, line 40
40r=t.pendingProps,i=t.memoizedState,a=i.element,sO(e,t),Rh(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=fc(Error(ne(423)),t),t=XP(e,t,r,n,a);break e}else if(r!==a){a=fc(Error(ne(424)),t),t=XP(e,t,r,n,a);break e}else for(xr=No(t.stateNode.containerInfo.firstChild),br=t,kt=!0,ia=null,n=iO(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(dc(),r===a){t=$i(e,t,n);break e}Mn(e,t,r,n)}t=t.child}return t;case 5:return lO(t),e===null&&z0(t),r=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,$0(r,a)?o=null:i!==null&&$0(r,i)&&(t.flags|=32),IO(e,t),Mn(e,t,o,n),t.child;case 6:return e===null&&z0(t),null;case 13:return $O(e,t,n);case 4:return ak(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=mc(t,null,r,n):Mn(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Jr(r,a),QP(e,t,r,a,n);case 7:return Mn(e,t,t.pendingProps,n),t.child;case 8:return Mn(e,t,t.pendingProps.children,n),t.child;case 12:return Mn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,ft($h,r._currentValue),r._currentValue=o,i!==null)if(ba(i.value,o)){if(i.children===a.children&&!Jn.current){t=$i(e,t,n
vendor: 6,673 bytes, line 40
40);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=_i(-1,n&-n),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),B0(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ne(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),B0(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Mn(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Wl(t,n),a=Wr(a),r=r(a),t.flags|=1,Mn(e,t,r,n),t.child;case 14:return r=t.type,a=Jr(r,t.pendingProps),a=Jr(r.type,a),YP(e,t,r,a,n);case 15:return TO(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Jr(r,a),nh(e,t),t.tag=1,er(r)?(e=!0,Oh(t)):e=!1,Wl(t,n),NO(t,r,a),U0(t,r,a,n),H0(null,t,r,!0,e,n);case 19:return FO(e,t,n);case 22:return OO(e,t,n)}throw Error(ne(156,t.tag))};function XO(e,t){return PT(e,t)}function _9(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lr(e,t,n,r){return new _9(e,t,n,r)}function xk(e){return e=e.prototype,!(!e||!e.isReactComponent)}function N9(e){if(typeof e=="function")return xk(e)?1:0;if(e!=null){if(e=e.$$typeof,e===D2)return 11;if(e===L2)return 14}return 2}function Oo(e,t){var n=e.alternate;return n===null?(n=Lr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ih(e,t,n,r,a,i){var o=2;if(r=e,typeof e=="function")xk(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Pl:return Is(n.children,a,i,t);case R2:o=8,a|=8;break;case p0:return e=Lr(12,n,t,a|2),e.elementType=p0,e.lanes=i,e;case f0:return e=Lr(13,n,t,a),e.elementType=f0,e.lanes=i,e;case h0:return e=Lr(19,n,t,a),e.elementType=h0,e.lanes=i,e;case lT:return Tv(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case oT:o=10;break e;case sT:o=9;break e;case D2:o=11;break e;case L2:o=14;break e;case ro:o=16,r=null;break e}throw Error(ne(130,e==null?e:typeof e,""))}return t=Lr(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function Is(e,t,n,r){return e=Lr(7,e,r,t),e.lanes=n,e}function Tv(e,t,n,r){return e=Lr(22,e,r,t),e.elementType=lT,e.lanes=n,e.stateNode={isHidden:!1},e}function Fx(e,t,n){return e=Lr(6,e,null,t),e.lanes=n,e}function Rx(e,t,n){return t=Lr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function C9(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vx(0),this.expirationTimes=vx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vx(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function bk(e,t,n,r,a,i,o,l,c){return e=new C9(e,t,n,l,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Lr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rk(i),e}function E9(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:jl,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function JO(e){if(!e)return Fo;e=e._reactInternals;e:{if(nl(e)!==e||e.tag!==1)throw Error(ne(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(er(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ne(171))}if(e.tag===1){var n=e.type;if(er(n))return JT(e,n,t)}return t}function eI(e,t,n,r,a,i,o,l,c){return e=bk(n,r,!0,e,a,i,o,l,c),e.context=JO(null),n=e.current,r=qn(),a=To(n),i=_i(r,a),i.callback=t??null,Co(n,i,a),e.current.lanes=a,wp(e,a,r),tr(e,r),e}function Ov(e,t,n,r){var a=t.current,i=qn(),o=To(a);return n=JO(n),t.context===null?t.context=n:t.pendingContext=n,t=_i(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Co(a,t,o),e!==null&&(ha(e,a,o,i),Jf(e,a,o)),o}function Vh(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function l4(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function wk(e,t){l4(e,t),(e=e.alternate)&&l4(e,t)}function T9(){return null}var tI=typeof reportError=="function"?reportError:function(e){console.error(e)};function kk(e){this._internalRoot=e}Iv.prototype.render=kk.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ne(409));Ov(e,t,null,null)};Iv.prototype.unmount=kk.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Us(function(){Ov(null,e,null,null)}),t[Ii]=null}};function Iv(e){this._internalRoot=e}Iv.prototype.unstable_scheduleHydration=function(e){if(e){var t=OT();e={blockedOn:null,target:e,priority:t};for(var n=0;n<so.length&&t!==0&&t<so[n].priority;n++);so.splice(n,0,e),n===0&&MT(e)}};function Sk(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Mv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function c4(){}function O9(e,t,n,r,a){if(a){if(typeof r=="function"){var i=r;r=function(){var u=Vh(o);i.call(u)}}var o=eI(t,r,e,0,null,!1,!1,"",c4);return e._reactRootContainer=o,e[Ii]=o.current,Xd(e.nodeType===8?e.parentNode:e),Us(),o}for(;
vendor: 5,160 bytes, line 40
40a=e.lastChild;)e.removeChild(a);if(typeof r=="function"){var l=r;r=function(){var u=Vh(c);l.call(u)}}var c=bk(e,0,!1,null,null,!1,!1,"",c4);return e._reactRootContainer=c,e[Ii]=c.current,Xd(e.nodeType===8?e.parentNode:e),Us(function(){Ov(t,c,n,r)}),c}function $v(e,t,n,r,a){var i=n._reactRootContainer;if(i){var o=i;if(typeof a=="function"){var l=a;a=function(){var c=Vh(o);l.call(c)}}Ov(t,o,e,a)}else o=O9(n,t,e,a,r);return Vh(o)}ET=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ud(t.pendingLanes);n!==0&&(q2(t,n|1),tr(t,$t()),!(Ge&6)&&(hc=$t()+500,Go()))}break;case 13:Us(function(){var r=Mi(e,1);if(r!==null){var a=qn();ha(r,e,1,a)}}),wk(e,1)}};U2=function(e){if(e.tag===13){var t=Mi(e,134217728);if(t!==null){var n=qn();ha(t,e,134217728,n)}wk(e,134217728)}};TT=function(e){if(e.tag===13){var t=To(e),n=Mi(e,t);if(n!==null){var r=qn();ha(n,e,t,r)}wk(e,t)}};OT=function(){return tt};IT=function(e,t){var n=tt;try{return tt=e,t()}finally{tt=n}};P0=function(e,t,n){switch(t){case"input":if(y0(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=Pv(r);if(!a)throw Error(ne(90));uT(r),y0(r,a)}}}break;case"textarea":mT(e,n);break;case"select":t=n.value,t!=null&&zl(e,!!n.multiple,t,!1)}};xT=gk;bT=Us;var I9={usingClientEntryPoint:!1,Events:[Sp,Cl,Pv,vT,yT,gk]},Fu={findFiberByHostInstance:ys,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},M9={bundleType:Fu.bundleType,version:Fu.version,rendererPackageName:Fu.rendererPackageName,rendererConfig:Fu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ui.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ST(e),e===null?null:e.stateNode},findFiberByHostInstance:Fu.findFiberByHostInstance||T9,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 df=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!df.isDisabled&&df.supportsFiber)try{wv=df.inject(M9),Wa=df}catch{}}Ar.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I9;Ar.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Sk(t))throw Error(ne(200));return E9(e,t,null,n)};Ar.createRoot=function(e,t){if(!Sk(e))throw Error(ne(299));var n=!1,r="",a=tI;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=bk(e,1,!1,null,null,n,!1,r,a),e[Ii]=t.current,Xd(e.nodeType===8?e.parentNode:e),new kk(t)};Ar.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(ne(188)):(e=Object.keys(e).join(","),Error(ne(268,e)));return e=ST(t),e=e===null?null:e.stateNode,e};Ar.flushSync=function(e){return Us(e)};Ar.hydrate=function(e,t,n){if(!Mv(t))throw Error(ne(200));return $v(null,e,t,!0,n)};Ar.hydrateRoot=function(e,t,n){if(!Sk(e))throw Error(ne(405));var r=n!=null&&n.hydratedSources||null,a=!1,i="",o=tI;if(n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=eI(t,null,e,1,n??null,a,!1,i,o),e[Ii]=t.current,Xd(e),r)for(e=0;e<r.length;e++)n=r[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Iv(t)};Ar.render=function(e,t,n){if(!Mv(t))throw Error(ne(200));return $v(null,e,t,!1,n)};Ar.unmountComponentAtNode=function(e){if(!Mv(e))throw Error(ne(40));return e._reactRootContainer?(Us(function(){$v(null,null,e,!1,function(){e._reactRootContainer=null,e[Ii]=null})}),!0):!1};Ar.unstable_batchedUpdates=gk;Ar.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Mv(n))throw Error(ne(200));if(e==null||e._reactInternals===void 0)throw Error(ne(38));return $v(e,t,n,!1,r)};Ar.version="18.3.1-next-f1338f8080-20240426";function nI(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(nI)}catch(e){console.error(e)}}nI(),nT.exports=Ar;var Pp=nT.exports;const rI=Qe(Pp);var aI,u4=Pp;aI=u4.createRoot,u4.hydrateRoot;const $9=1,F9=1e6;let Dx=0;function R9(){return Dx=(Dx+1)%Number.MAX_SAFE_INTEGER,Dx.toString()}const Lx=new Map,d4=e=>{if(Lx.has(e))return;const t=setTimeout(()=>{Lx.delete(e),Ad({type:"REMOVE_TOAST",toastId:e})},F9);Lx.set(e,t)},D9=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,$9)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;
40return n?d4(n):e.toasts.forEach(r=>{d4(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},oh=[];let sh={toasts:[]};function Ad(e){sh=D9(sh,e),oh.forEach(t=>{t(sh)})}function L9({...e}){const t=R9(),n=a=>Ad({type:"UPDATE_TOAST",toast:{...a,id:t}}),r=()=>Ad({type:"DISMISS_TOAST",toastId:t});return Ad({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||r()}}}),{id:t,dismiss:r,update:n}}function Fv(){const[e,t]=S.useState(sh);return S.useEffect(()=>(oh.push(t),()=>{const n=oh.indexOf(t);n>-1&&oh.splice(n,1)}),[e]),{...e,toast:L9,dismiss:n=>Ad({type:"DISMISS_TOAST",toastId:n})}}function Ft(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function z9(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function iI(...e){return t=>e.forEach(n=>z9(n,t))}function Pr(...e){return S.useCallback(iI(...e),e)}function B9(e,t=[]){let n=[];function r(i,o){const l=S.createContext(o),c=n.length;n=[...n,o];function u(m){const{scope:p,children:f,...g}=m,h=(p==null?void 0:p[e][c])||l,v=S.useMemo(()=>g,Object.values(g));return s.jsx(h.Provider,{value:v,children:f})}function d(m,p){const f=(p==null?void 0:p[e][c])||l,g=S.useContext(f);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${m}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const a=()=>{const i=n.map(o=>S.createContext(o));return function(l){const c=(l==null?void 0:l[e])||i;return S.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return a.scopeName=e,[r,q9(a,...t)]}function q9(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=r.reduce((l,{useScope:c,scopeName:u})=>{const m=c(i)[`__scope${u}`];return{...l,...m}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var sm=S.forwardRef((e,t)=>{const{children:n,...r}=e,a=S.Children.toArray(n),i=a.find(U9);if(i){const o=i.props.children,l=a.map(c=>c===i?S.Children.count(o)>1?S.Children.only(null):S.isValidElement(o)?o.props.children:null:c);return s.jsx(aw,{...r,ref:t,children:S.isValidElement(o)?S.cloneElement(o,void 0,l):null})}return s.jsx(aw,{...r,ref:t,children:n})});sm.displayName="Slot";var aw=S.forwardRef((e,t)=>{const{children:n,...r}=e;if(S.isValidElement(n)){const a=V9(n);return S.cloneElement(n,{...W9(r,n.props),ref:t?iI(t,a):a})}return S.Children.count(n)>1?S.Children.only(null):null});aw.displayName="SlotClone";var oI=({children:e})=>s.jsx(s.Fragment,{children:e});function U9(e){return S.isValidElement(e)&&e.type===oI}function W9(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...l)=>{i(...l),a(...l)}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function V9(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function H9(e){const t=e+"CollectionProvider",[n,r]=B9(t),[a,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=f=>{const{scope:g,children:h}=f,v=M.useRef(null),y=M.useRef(new Map).current;return s.jsx(a,{scope:g,itemMap:y,collectionRef:v,children:h})};o.displayName=t;const l=e+"CollectionSlot",c=M.forwardRef((f,g)=>{const{scope:h,children:v}=f,y=i(l,h),x=Pr(g,y.collectionRef);return s.jsx(sm,{ref:x,children:v})});c.displayName=l;const u=e+"CollectionItemSlot",d="data-radix-collection-item",m=M.forwardRef((f,g)=>{const{scope:h,children:v,...y}=f,x=M.useRef(null),b=Pr(g,x),w=i(u,h);return M.useEffect(()=>(w.itemMap.set(x,{ref:x,...y}),()=>void w.itemMap.delete(x))),s.jsx(sm,{[d]:"",ref:b,children:v})});m.displayName=u;function p(f){const g=i(e+"CollectionConsumer",f);return M.useCallback(()=>{const v=g.collectionRef.current;if(!v)return[];const y=Array.from(v.querySelectorAll(`[${d}]`));return Array.from(g.itemMap.values()).sort((w,k)=>y.indexOf(w.ref.current)-y.indexOf(k.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:o,Slot:c,ItemSlot:m},p,r]}function Rv(e,t=[]){let n=[];function r(i,o){const l=S.createContext(o),c=n.length;n=[...n,o];const u=m=>{var y;const{scope:p,children:f,...g}=m,h=((y=p==null?void 0:p[e])==null?void 0:y[c])||l,v=S.useMemo(()=>g,Object.values(g));return s.jsx(h.Provider,{value:v,children:f})};u.displayName=i+"Provider";function d(m,p){var h;const f=((h=p==null?void 0:p[e])==null?void 0:h[c])||l,g=S.useContext(f);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${m}\` must be used within \`${i}\``)}return[u,d]}const a=()=>{const i=n.map(o=>S.createContext(o));return function(l){const c=(l==null?void 0:l[e])||i;return S.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return a.scopeName=e,[r,K9(a,...t)]}function K9(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));
vendor: 5,675 bytes, line 40
40return function(i){const o=r.reduce((l,{useScope:c,scopeName:u})=>{const m=c(i)[`__scope${u}`];return{...l,...m}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var G9=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Kt=G9.reduce((e,t)=>{const n=S.forwardRef((r,a)=>{const{asChild:i,...o}=r,l=i?sm:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(l,{...o,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function sI(e,t){e&&Pp.flushSync(()=>e.dispatchEvent(t))}function Ya(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Q9(e,t=globalThis==null?void 0:globalThis.document){const n=Ya(e);S.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Y9="DismissableLayer",iw="dismissableLayer.update",Z9="dismissableLayer.pointerDownOutside",X9="dismissableLayer.focusOutside",m4,lI=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jk=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:o,onDismiss:l,...c}=e,u=S.useContext(lI),[d,m]=S.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=S.useState({}),g=Pr(t,A=>m(A)),h=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(v),x=d?h.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,w=x>=y,k=eB(A=>{const P=A.target,_=[...u.branches].some(N=>N.contains(P));!w||_||(a==null||a(A),o==null||o(A),A.defaultPrevented||l==null||l())},p),j=tB(A=>{const P=A.target;[...u.branches].some(N=>N.contains(P))||(i==null||i(A),o==null||o(A),A.defaultPrevented||l==null||l())},p);return Q9(A=>{x===u.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&l&&(A.preventDefault(),l()))},p),S.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(m4=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),p4(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=m4)}},[d,p,n,u]),S.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),p4())},[d,u]),S.useEffect(()=>{const A=()=>f({});return document.addEventListener(iw,A),()=>document.removeEventListener(iw,A)},[]),s.jsx(Kt.div,{...c,ref:g,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:Ft(e.onFocusCapture,j.onFocusCapture),onBlurCapture:Ft(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:Ft(e.onPointerDownCapture,k.onPointerDownCapture)})});jk.displayName=Y9;var J9="DismissableLayerBranch",cI=S.forwardRef((e,t)=>{const n=S.useContext(lI),r=S.useRef(null),a=Pr(t,r);return S.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),s.jsx(Kt.div,{...e,ref:a})});cI.displayName=J9;function eB(e,t=globalThis==null?void 0:globalThis.document){const n=Ya(e),r=S.useRef(!1),a=S.useRef(()=>{});return S.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let c=function(){uI(Z9,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=c,t.addEventListener("click",a.current,{once:!0})):c()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function tB(e,t=globalThis==null?void 0:globalThis.document){const n=Ya(e),r=S.useRef(!1);return S.useEffect(()=>{const a=i=>{i.target&&!r.current&&uI(X9,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function p4(){const e=new CustomEvent(iw);document.dispatchEvent(e)}function uI(e,t,n,{discrete:r}){const a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?sI(a,i):a.dispatchEvent(i)}var nB=jk,rB=cI,Fi=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},aB="Portal",dI=S.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[a,i]=S.useState(!1);Fi(()=>i(!0),[]);const o=n||a&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?rI.createPortal(s.jsx(Kt.div,{...r,ref:t}),o):null});dI.displayName=aB;function iB(e,t){return S.useReducer((n,r)=>t[n][r]??n,e)}var Dv=e=>{const{present:t,children:n}=e,r=oB(t),a=typeof n=="function"?n({present:r.isPresent}):S.Children.only(n),i=Pr(r.ref,sB(a));return typeof n=="function"||r.isPresent?S.cloneElement(a,{ref:i}):null};Dv.displayName="Presence";function oB(e){const[t,n]=S.useState(),r=S.useRef({}),a=S.useRef(e),i=S.useRef("none"),o=e?"mounted":"unmounted",[l,c]=iB(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const u=mf(r.current);i.current=l==="mounted"?u:"none"},[l]),Fi(()=>{const u=r.current,d=a.current;if(d!==e){const p=i.current,f=mf(u);e?c("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&p!==f?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,c]),Fi(()=>
40{if(t){let u;const d=t.ownerDocument.defaultView??window,m=f=>{const h=mf(r.current).includes(f.animationName);if(f.target===t&&h&&(c("ANIMATION_END"),!a.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=f=>{f.target===t&&(i.current=mf(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:S.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function mf(e){return(e==null?void 0:e.animationName)||"none"}function sB(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Lv({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=lB({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:r,l=Ya(n),c=S.useCallback(u=>{if(i){const m=typeof u=="function"?u(e):u;m!==e&&l(m)}else a(u)},[i,e,a,l]);return[o,c]}function lB({defaultProp:e,onChange:t}){const n=S.useState(e),[r]=n,a=S.useRef(r),i=Ya(t);return S.useEffect(()=>{a.current!==r&&(i(r),a.current=r)},[r,a,i]),n}var cB="VisuallyHidden",zv=S.forwardRef((e,t)=>s.jsx(Kt.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));zv.displayName=cB;var uB=zv,Pk="ToastProvider",[Ak,dB,mB]=H9("Toast"),[mI,Q8e]=Rv("Toast",[mB]),[pB,Bv]=mI(Pk),pI=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:a="right",swipeThreshold:i=50,children:o}=e,[l,c]=S.useState(null),[u,d]=S.useState(0),m=S.useRef(!1),p=S.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Pk}\`. Expected non-empty \`string\`.`),s.jsx(Ak.Provider,{scope:t,children:s.jsx(pB,{scope:t,label:n,duration:r,swipeDirection:a,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:S.useCallback(()=>d(f=>f+1),[]),onToastRemove:S.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:p,children:o})})};pI.displayName=Pk;var fI="ToastViewport",fB=["F8"],ow="toast.viewportPause",sw="toast.viewportResume",hI=S.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=fB,label:a="Notifications ({hotkey})",...i}=e,o=Bv(fI,n),l=dB(n),c=S.useRef(null),u=S.useRef(null),d=S.useRef(null),m=S.useRef(null),p=Pr(t,m,o.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=o.toastCount>0;S.useEffect(()=>{const v=y=>{var b;r.length!==0&&r.every(w=>y[w]||y.code===w)&&((b=m.current)==null||b.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),S.useEffect(()=>{const v=c.current,y=m.current;if(g&&v&&y){const x=()=>{if(!o.isClosePausedRef.current){const j=new CustomEvent(ow);y.dispatchEvent(j),o.isClosePausedRef.current=!0}},b=()=>{if(o.isClosePausedRef.current){const j=new CustomEvent(sw);y.dispatchEvent(j),o.isClosePausedRef.current=!1}},w=j=>{!v.contains(j.relatedTarget)&&b()},k=()=>{v.contains(document.activeElement)||b()};return v.addEventListener("focusin",x),v.addEventListener("focusout",w),v.addEventListener("pointermove",x),v.addEventListener("pointerleave",k),window.addEventListener("blur",x),window.addEventListener("focus",b),()=>{v.removeEventListener("focusin",x),v.removeEventListener("focusout",w),v.removeEventListener("pointermove",x),v.removeEventListener("pointerleave",k),window.removeEventListener("blur",x),window.removeEventListener("focus",b)}}},[g,o.isClosePausedRef]);const h=S.useCallback(({tabbingDirection:v})=>{const x=l().map(b=>{const w=b.ref.current,k=[w,..._B(w)];return v==="forwards"?k:k.reverse()});return(v==="forwards"?x.reverse():x).flat()},[l]);return S.useEffect(()=>{const v=m.current;if(v){const y=x=>{var k,j,A;const b=x.altKey||x.ctrlKey||x.metaKey;
40if(x.key==="Tab"&&!b){const P=document.activeElement,_=x.shiftKey;if(x.target===v&&_){(k=u.current)==null||k.focus();return}const E=h({tabbingDirection:_?"backwards":"forwards"}),T=E.findIndex(O=>O===P);zx(E.slice(T+1))?x.preventDefault():_?(j=u.current)==null||j.focus():(A=d.current)==null||A.focus()}};return v.addEventListener("keydown",y),()=>v.removeEventListener("keydown",y)}},[l,h]),s.jsxs(rB,{ref:c,role:"region","aria-label":a.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&s.jsx(lw,{ref:u,onFocusFromOutsideViewport:()=>{const v=h({tabbingDirection:"forwards"});zx(v)}}),s.jsx(Ak.Slot,{scope:n,children:s.jsx(Kt.ol,{tabIndex:-1,...i,ref:p})}),g&&s.jsx(lw,{ref:d,onFocusFromOutsideViewport:()=>{const v=h({tabbingDirection:"backwards"});zx(v)}})]})});hI.displayName=fI;var gI="ToastFocusProxy",lw=S.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...a}=e,i=Bv(gI,n);return s.jsx(zv,{"aria-hidden":!0,tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const l=o.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&r()}})});lw.displayName=gI;var qv="Toast",hB="toast.swipeStart",gB="toast.swipeMove",vB="toast.swipeCancel",yB="toast.swipeEnd",vI=S.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:a,onOpenChange:i,...o}=e,[l=!0,c]=Lv({prop:r,defaultProp:a,onChange:i});return s.jsx(Dv,{present:n||l,children:s.jsx(wB,{open:l,...o,ref:t,onClose:()=>c(!1),onPause:Ya(e.onPause),onResume:Ya(e.onResume),onSwipeStart:Ft(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ft(e.onSwipeMove,u=>{const{x:d,y:m}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${m}px`)}),onSwipeCancel:Ft(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ft(e.onSwipeEnd,u=>{const{x:d,y:m}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${m}px`),c(!1)})})})});vI.displayName=qv;var[xB,bB]=mI(qv,{onClose(){}}),wB=S.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:a,open:i,onClose:o,onEscapeKeyDown:l,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:m,onSwipeCancel:p,onSwipeEnd:f,...g}=e,h=Bv(qv,n),[v,y]=S.useState(null),x=Pr(t,O=>y(O)),b=S.useRef(null),w=S.useRef(null),k=a||h.duration,j=S.useRef(0),A=S.useRef(k),P=S.useRef(0),{onToastAdd:_,onToastRemove:N}=h,C=Ya(()=>{var F;(v==null?void 0:v.contains(document.activeElement))&&((F=h.viewport)==null||F.focus()),o()}),E=S.useCallback(O=>{!O||O===1/0||(window.clearTimeout(P.current),j.current=new Date().getTime(),P.current=window.setTimeout(C,O))},[C]);S.useEffect(()=>{const O=h.viewport;if(O){const F=()=>{E(A.current),u==null||u()},D=()=>{const z=new Date().getTime()-j.current;A.current=A.current-z,window.clearTimeout(P.current),c==null||c()};return O.addEventListener(ow,D),O.addEventListener(sw,F),()=>{O.removeEventListener(ow,D),O.removeEventListener(sw,F)}}},[h.viewport,k,c,u,E]),S.useEffect(()=>{i&&!h.isClosePausedRef.current&&E(k)},[i,k,h.isClosePausedRef,E]),S.useEffect(()=>(_(),()=>N()),[_,N]);const T=S.useMemo(()=>v?jI(v):null,[v]);return h.viewport?s.jsxs(s.Fragment,{children:[T&&s.jsx(kB,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:T}),s.jsx(xB,{scope:n,onClose:C,children:Pp.createPortal(s.jsx(Ak.ItemSlot,{scope:n,children:s.jsx(nB,{asChild:!0,onEscapeKeyDown:Ft(l,()=>{h.isFocusedToastEscapeKeyDownRef.current||C(),h.isFocusedToastEscapeKeyDownRef.current=!1}),children:s.jsx(Kt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":h.swipeDirection,...g,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ft(e.onKeyDown,O=>{O.key==="Escape"&&(l==null||l(O.nativeEvent),O.nativeEvent.defaultPrevented||(h.isFocusedToastEscapeKeyDownRef.current=!0,C()))}),onPointerDown:Ft(e.onPointerDown,O=>{O.button===0&&(b.current={x:O.clientX,y:O.clientY})}),onPointerMove:Ft(e.onPointerMove,O=>{if(!b.current)return;const F=O.clientX-b.current.x,D=O.clientY-b.current.y,z=!!w.current,R=["left","right"].includes(h.swipeDirection),B=["left","up"].includes(h.swipeDirection)?Math.min:Math.max,I=R?B(0,F):0,H=R?0:B(0,D),q=O.pointerType==="touch"?10:2,$={x:I,y:H},X={originalEvent:O,delta:$};z?(w.current=$,pf(gB,m,X,{discrete:!1})):f4($,h.swipeDirection,q)?(w.current=$,pf(hB,d,X,{discrete:!1}),O.target.setPointerCapture(O.pointerId)):(Math.abs(F)>q||Math.abs(D)>q)&&(b.current=null)}),onPointerUp:Ft(e.onPointerUp,O=>{const F=w.current,D=O.target;if(D.hasPointerCapture(O.pointerId)&&D.releasePointerCapture(O.pointerId),w.current=null,b.current=null,F){const z=O.currentTarget,R={originalEvent:O,delta:F};f4(F,h.swipeDirection,h.swipeThreshold)?pf(yB,f,R,{discrete:!0}):pf(vB,p,R,{discrete:!0}),z.addEventListener("click",B=>B.preventDefault(),{once:!0})}})})})}),h.viewport)})]}):null}),kB=e=>{const{__scopeToast:t,children:n,...r}=e,a=Bv(qv,t),[i,o]=S.useState(!1),[l,c]=S.useState(!1);return PB(()=>o(!0)),S.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:s.jsx(dI,{asChild:!0,children:s.jsx(zv,{...r,children:i&&s.jsxs(s.Fragment,{children:[a.label," ",n]})})})},SB="ToastTitle",yI=S.forwardRef((e,t)=>
vendor: 8,974 bytes, lines 40-105
40{const{__scopeToast:n,...r}=e;return s.jsx(Kt.div,{...r,ref:t})});yI.displayName=SB;var jB="ToastDescription",xI=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return s.jsx(Kt.div,{...r,ref:t})});xI.displayName=jB;var bI="ToastAction",wI=S.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?s.jsx(SI,{altText:n,asChild:!0,children:s.jsx(_k,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${bI}\`. Expected non-empty \`string\`.`),null)});wI.displayName=bI;var kI="ToastClose",_k=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,a=bB(kI,n);return s.jsx(SI,{asChild:!0,children:s.jsx(Kt.button,{type:"button",...r,ref:t,onClick:Ft(e.onClick,a.onClose)})})});_k.displayName=kI;var SI=S.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...a}=e;return s.jsx(Kt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...a,ref:t})});function jI(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),AB(r)){const a=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!a)if(i){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...jI(r))}}),t}function pf(e,t,n,{discrete:r}){const a=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?sI(a,i):a.dispatchEvent(i)}var f4=(e,t,n=0)=>{const r=Math.abs(e.x),a=Math.abs(e.y),i=r>a;return t==="left"||t==="right"?i&&r>n:!i&&a>n};function PB(e=()=>{}){const t=Ya(e);Fi(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function AB(e){return e.nodeType===e.ELEMENT_NODE}function _B(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function zx(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var NB=pI,PI=hI,AI=vI,_I=yI,NI=xI,CI=wI,EI=_k;function TI(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=TI(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function We(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=TI(e))&&(r&&(r+=" "),r+=t);return r}const h4=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,g4=We,Nk=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return g4(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:i}=t,o=Object.keys(a).map(u=>{const d=n==null?void 0:n[u],m=i==null?void 0:i[u];if(d===null)return null;const p=h4(d)||h4(m);return a[u][p]}),l=n&&Object.entries(n).reduce((u,d)=>{let[m,p]=d;return p===void 0||(u[m]=p),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:m,className:p,...f}=d;return Object.entries(f).every(g=>{let[h,v]=g;return Array.isArray(v)?v.includes({...i,...l}[h]):{...i,...l}[h]===v})?[...u,m,p]:u},[]);return g4(e,o,c,n==null?void 0:n.class,n==null?void 0:n.className)};/** 41 * @license lucide-react v0.462.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const CB=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),OI=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 46 * @license lucide-react v0.462.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var EB={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 51 * @license lucide-react v0.462.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const TB=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:o,...l},c)=>S.createElement("svg",{ref:c,...EB,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:OI("lucide",a),...l},[...o.map(([u,d])=>S.createElement(u,d)),...Array.isArray(i)?i:[i]]));/** 56 * @license lucide-react v0.462.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const xe=(e,t)=>{const n=S.forwardRef(({className:r,...a},i)=>S.createElement(TB,{ref:i,iconNode:t,className:OI(`lucide-${CB(e)}`,r),...a}));return n.displayName=`${e}`,n};/** 61 * @license lucide-react v0.462.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const Uv=xe("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/** 66 * @license lucide-react v0.462.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const Ws=xe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 71 * @license lucide-react v0.462.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const _a=xe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 76 * @license lucide-react v0.462.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const cw=xe("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/** 81 * @license lucide-react v0.462.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const Ck=xe("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/** 86 * @license lucide-react v0.462.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const OB=xe("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** 91 * @license lucide-react v0.462.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const IB=xe("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/** 96 * @license lucide-react v0.462.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const uw=xe("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/** 101 * @license lucide-react v0.462.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */const MB=xe("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
105],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 106 * @license lucide-react v0.462.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const v4=xe("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]);/** 111 * @license lucide-react v0.462.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const dw=xe("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** 116 * @license lucide-react v0.462.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const $B=xe("ChartLine",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);/** 121 * @license lucide-react v0.462.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const ti=xe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 126 * @license lucide-react v0.462.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const Wv=xe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 131 * @license lucide-react v0.462.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const FB=xe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 136 * @license lucide-react v0.462.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const RB=xe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 141 * @license lucide-react v0.462.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const Vv=xe("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 146 * @license lucide-react v0.462.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const DB=xe("Cog",[["path",{d:"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",key:"sobvz5"}],["path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",key:"11i496"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}]]);/** 151 * @license lucide-react v0.462.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const LB=xe("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 156 * @license lucide-react v0.462.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const II=xe("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/** 161 * @license lucide-react v0.462.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const MI=xe("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/** 166 * @license lucide-react v0.462.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const $I=xe("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/** 171 * @license lucide-react v0.462.0 - ISC 172 * 173 * This source code is licensed under the ISC license. 174 * See the LICENSE file in the root directory of this source tree. 175 */const zB=xe("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 176 * @license lucide-react v0.462.0 - ISC 177 * 178 * This source code is licensed under the ISC license. 179 * See the LICENSE file in the root directory of this source tree. 180 */const BB=xe("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/** 181 * @license lucide-react v0.462.0 - ISC 182 * 183 * This source code is licensed under the ISC license. 184 * See the LICENSE file in the root directory of this source tree. 185 */const qB=xe("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/** 186 * @license lucide-react v0.462.0 - ISC 187 * 188 * This source code is licensed under the ISC license. 189 * See the LICENSE file in the root directory of this source tree. 190 */const UB=xe("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** 191 * @license lucide-react v0.462.0 - ISC 192 * 193 * This source code is licensed under the ISC license. 194 * See the LICENSE file in the root directory of this source tree. 195 */const WB=xe("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/** 196 * @license lucide-react v0.462.0 - ISC 197 * 198 * This source code is licensed under the ISC license. 199 * See the LICENSE file in the root directory of this source tree. 200 */const VB=xe("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/** 201 * @license lucide-react v0.462.0 - ISC 202 * 203 * This source code is licensed under the ISC license. 204 * See the LICENSE file in the root directory of this source tree. 205 */const Ek=xe("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** 206 * @license lucide-react v0.462.0 - ISC 207 * 208 * This source code is licensed under the ISC license. 209 * See the LICENSE file in the root directory of this source tree. 210 */const FI=xe("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/** 211 * @license lucide-react v0.462.0 - ISC 212 * 213 * This source code is licensed under the ISC license. 214 * See the LICENSE file in the root directory of this source tree. 215 */const RI=xe("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** 216 * @license lucide-react v0.462.0 - ISC 217 * 218 * This source code is licensed under the ISC license. 219 * See the LICENSE file in the root directory of this source tree. 220 */const Tk=xe("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** 221 * @license lucide-react v0.462.0 - ISC 222 * 223 * This source code is licensed under the ISC license. 224 * See the LICENSE file in the root directory of this source tree. 225 */const Ok=xe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 226 * @license lucide-react v0.462.0 - ISC 227 * 228 * This source code is licensed under the ISC license. 229 * See the LICENSE file in the root directory of this source tree.
230 */const DI=xe("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** 231 * @license lucide-react v0.462.0 - ISC 232 * 233 * This source code is licensed under the ISC license. 234 * See the LICENSE file in the root directory of this source tree. 235 */const LI=xe("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 236 * @license lucide-react v0.462.0 - ISC 237 * 238 * This source code is licensed under the ISC license. 239 * See the LICENSE file in the root directory of this source tree. 240 */const HB=xe("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 241 * @license lucide-react v0.462.0 - ISC 242 * 243 * This source code is licensed under the ISC license. 244 * See the LICENSE file in the root directory of this source tree. 245 */const KB=xe("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/** 246 * @license lucide-react v0.462.0 - ISC 247 * 248 * This source code is licensed under the ISC license. 249 * See the LICENSE file in the root directory of this source tree. 250 */const GB=xe("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/** 251 * @license lucide-react v0.462.0 - ISC 252 * 253 * This source code is licensed under the ISC license. 254 * See the LICENSE file in the root directory of this source tree. 255 */const QB=xe("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 256 * @license lucide-react v0.462.0 - ISC 257 * 258 * This source code is licensed under the ISC license. 259 * See the LICENSE file in the root directory of this source tree. 260 */const YB=xe("MessageSquareText",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M13 8H7",key:"14i4kc"}],["path",{d:"M17 12H7",key:"16if0g"}]]);/** 261 * @license lucide-react v0.462.0 - ISC 262 * 263 * This source code is licensed under the ISC license. 264 * See the LICENSE file in the root directory of this source tree. 265 */const zI=xe("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** 266 * @license lucide-react v0.462.0 - ISC 267 * 268 * This source code is licensed under the ISC license. 269 * See the LICENSE file in the root directory of this source tree. 270 */const BI=xe("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/** 271 * @license lucide-react v0.462.0 - ISC 272 * 273 * This source code is licensed under the ISC license. 274 * See the LICENSE file in the root directory of this source tree. 275 */const ZB=xe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 276 * @license lucide-react v0.462.0 - ISC 277 * 278 * This source code is licensed under the ISC license. 279 * See the LICENSE file in the root directory of this source tree. 280 */const Fl=xe("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/** 281 * @license lucide-react v0.462.0 - ISC 282 * 283 * This source code is licensed under the ISC license. 284 * See the LICENSE file in the root directory of this source tree. 285 */const XB=xe("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** 286 * @license lucide-react v0.462.0 - ISC 287 * 288 * This source code is licensed under the ISC license. 289 * See the LICENSE file in the root directory of this source tree. 290 */const qI=xe("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);/** 291 * @license lucide-react v0.462.0 - ISC 292 * 293 * This source code is licensed under the ISC license. 294 * See the LICENSE file in the root directory of this source tree. 295 */const UI=xe("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"}]]);/** 296 * @license lucide-react v0.462.0 - ISC 297 * 298 * This source code is licensed under the ISC license. 299 * See the LICENSE file in the root directory of this source tree. 300 */const JB=xe("Scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}
300],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]);/** 301 * @license lucide-react v0.462.0 - ISC 302 * 303 * This source code is licensed under the ISC license. 304 * See the LICENSE file in the root directory of this source tree. 305 */const y4=xe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 306 * @license lucide-react v0.462.0 - ISC 307 * 308 * This source code is licensed under the ISC license. 309 * See the LICENSE file in the root directory of this source tree. 310 */const Ap=xe("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** 311 * @license lucide-react v0.462.0 - ISC 312 * 313 * This source code is licensed under the ISC license. 314 * See the LICENSE file in the root directory of this source tree. 315 */const e7=xe("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 316 * @license lucide-react v0.462.0 - ISC 317 * 318 * This source code is licensed under the ISC license. 319 * See the LICENSE file in the root directory of this source tree. 320 */const t7=xe("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"}]]);/** 321 * @license lucide-react v0.462.0 - ISC 322 * 323 * This source code is licensed under the ISC license. 324 * See the LICENSE file in the root directory of this source tree. 325 */const WI=xe("Shuffle",[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]]);/** 326 * @license lucide-react v0.462.0 - ISC 327 * 328 * This source code is licensed under the ISC license. 329 * See the LICENSE file in the root directory of this source tree. 330 */const Un=xe("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 331 * @license lucide-react v0.462.0 - ISC 332 * 333 * This source code is licensed under the ISC license. 334 * See the LICENSE file in the root directory of this source tree. 335 */const lm=xe("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 336 * @license lucide-react v0.462.0 - ISC 337 * 338 * This source code is licensed under the ISC license. 339 * See the LICENSE file in the root directory of this source tree. 340 */const _p=xe("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 341 * @license lucide-react v0.462.0 - ISC 342 * 343 * This source code is licensed under the ISC license. 344 * See the LICENSE file in the root directory of this source tree. 345 */const n7=xe("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 346 * @license lucide-react v0.462.0 - ISC 347 * 348 * This source code is licensed under the ISC license. 349 * See the LICENSE file in the root directory of this source tree. 350 */const r7=xe("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** 351 * @license lucide-react v0.462.0 - ISC 352 * 353 * This source code is licensed under the ISC license. 354 * See the LICENSE file in the root directory of this source tree. 355 */const a7=xe("UserRoundSearch",[["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}
vendor: 7,841 bytes, lines 355-380
355],["path",{d:"M2 21a8 8 0 0 1 10.434-7.62",key:"1yezr2"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["path",{d:"m22 22-1.9-1.9",key:"1e5ubv"}]]);/** 356 * @license lucide-react v0.462.0 - ISC 357 * 358 * This source code is licensed under the ISC license. 359 * See the LICENSE file in the root directory of this source tree. 360 */const i7=xe("UserX",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"17",x2:"22",y1:"8",y2:"13",key:"3nzzx3"}],["line",{x1:"22",x2:"17",y1:"8",y2:"13",key:"1swrse"}]]);/** 361 * @license lucide-react v0.462.0 - ISC 362 * 363 * This source code is licensed under the ISC license. 364 * See the LICENSE file in the root directory of this source tree. 365 */const o7=xe("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** 366 * @license lucide-react v0.462.0 - ISC 367 * 368 * This source code is licensed under the ISC license. 369 * See the LICENSE file in the root directory of this source tree. 370 */const Xc=xe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 371 * @license lucide-react v0.462.0 - ISC 372 * 373 * This source code is licensed under the ISC license. 374 * See the LICENSE file in the root directory of this source tree. 375 */const s7=xe("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]);/** 376 * @license lucide-react v0.462.0 - ISC 377 * 378 * This source code is licensed under the ISC license. 379 * See the LICENSE file in the root directory of this source tree. 380 */const l7=xe("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Ik="-",c7=e=>{const t=d7(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const l=o.split(Ik);return l[0]===""&&l.length!==1&&l.shift(),VI(l,t)||u7(o)},getConflictingClassGroupIds:(o,l)=>{const c=n[o]||[];return l&&r[o]?[...c,...r[o]]:c}}},VI=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?VI(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(Ik);return(o=t.validators.find(({validator:l})=>l(i)))==null?void 0:o.classGroupId},x4=/^\[(.+)\]$/,u7=e=>{if(x4.test(e)){const t=x4.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},d7=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return p7(Object.entries(e.classGroups),n).forEach(([i,o])=>{mw(o,r,i,t)}),r},mw=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:b4(t,a);i.classGroupId=n;return}if(typeof a=="function"){if(m7(a)){mw(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([i,o])=>{mw(o,b4(t,i),n,r)})})},b4=(e,t)=>{let n=e;return t.split(Ik).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},m7=e=>e.isThemeGetter,p7=(e,t)=>t?e.map(([n,r])=>{const a=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,l])=>[t+o,l])):i);return[n,a]}):e,f7=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return a(i,o),o},set(i,o){n.has(i)?n.set(i,o):a(i,o)}}},HI="!",h7=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,a=t[0],i=t.length,o=l=>{const c=[];let u=0,d=0,m;for(let v=0;v<l.length;v++){let y=l[v];if(u===0){if(y===a&&(r||l.slice(v,v+i)===t)){c.push(l.slice(d,v)),d=v+i;continue}if(y==="/"){m=v;continue}}y==="["?u++:y==="]"&&u--}const p=c.length===0?l:l.substring(d),f=p.startsWith(HI),g=f?p.substring(1):p,h=m&&m>d?m-d:void 0;return{modifiers:c,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:h}};return n?l=>n({className:l,parseClassName:o}):o},g7=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},v7=e=>({cache:f7(e.cacheSize),parseClassName:h7(e),...c7(e)}),y7=/\s+/,x7=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=t,i=[],o=e.trim().split(y7);let l="";for(let c=o.length-1;c>=0;c-=1){const u=o[c],{modifiers:d,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:f}=n(u);let g=!!f,h=r(g?p.substring(0,f):p);if(!h){if(!g){l=u+(l.length>0?" "+l:l);continue}if(h=r(p),!h){l=u+(l.length>0?" "+l:l);continue}g=!1}const v=g7(d).join(":"),y=m?v+HI:v,x=y+h;if(i.includes(x))continue;i.push(x);const b=a(h,g);for(let w=0;w<b.length;++w){const k=b[w];i.push(y+k)}l=u+(l.length>0?" "+l:l)}return l};function b7(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=KI(t))&&(r&&(r+=" "),r+=n);return r}const KI=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=KI(e[r]))&&(n&&(n+=" "),n+=t);return n};function w7(e,...t){let n,r,a,i=o;function o(c){const u=t.reduce((d,m)=>m(d),e());return n=v7(u),r=n.cache.get,a=n.cache.set,i=l,l(c)}function l(c){const u=r(c);if(u)return u;const d=x7(c,n);return a(c,d),d}return function(){return i(b7.apply(null,arguments))}}const gt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},GI=/^\[(?:([a-z-]+):)?(.+)\]$/i,k7=/^\d+\/\d+$/,S7=new Set(["px","full","screen"]),j7=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,P7=/\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$/,A7=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,_7=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,N7=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oi=e=>Hl(e)||S7.has(e)||k7.test(e),Yi=e=>Jc(e,"length",F7),Hl=e=>!!e&&!Number.isNaN(Number(e)),Bx=e=>Jc(e,"number",Hl),Ru=e=>!!e&&Number.isInteger(Number(e)),C7=e=>e.endsWith("%")&&Hl(e.slice(0,-1)),Re=e=>GI.test(e),Zi=e=>j7.test(e),E7=new Set(["length","size","percentage"]),T7=e=>Jc(e,E7,QI),O7=e=>Jc(e,"position",QI),I7=new Set(["image","url"]),M7=e=>Jc(e,I7,D7),$7=e=>Jc(e,"",R7),Du=()=>!0,Jc=(e,t,n)=>{const r=GI.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},F7=e=>P7.test(e)&&!A7.test(e),QI=()=>!1,R7=e=>_7.test(e),D7=e=>N7.test(e),L7=()=>{const e=gt("colors"),t=gt("spacing"),n=gt("blur"),r=gt("brightness"),a=gt("borderColor"),i=gt("borderRadius"),o=gt("borderSpacing"),l=gt("borderWidth"),c=gt("contrast"),u=gt("grayscale"),d=gt("hueRotate"),m=gt("invert"),p=gt("gap"),f=gt("gradientColorStops"),g=gt("gradientColorStopPositions"),h=gt("inset"),v=gt("margin"),y=gt("opacity"),x=gt("padding"),b=gt("saturate"),w=gt("scale"),k=gt("sepia"),j=gt("skew"),A=gt("space"),P=gt("translate"),_=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",Re,t],E=()=>[Re,t],T=()=>["",oi,Yi],O=()=>["auto",Hl,Re],F=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",Re],I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[Hl,Re];return{cacheSize:500,separator:":",theme:{colors:[Du],spacing:[oi,Yi],blur:["none","",Zi,Re],brightness:H(),borderColor:[e],borderRadius:["n
vendor: 3,184 bytes, line 380
380one","","full",Zi,Re],borderSpacing:E(),borderWidth:T(),contrast:H(),grayscale:B(),hueRotate:H(),invert:B(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[C7,Yi],inset:C(),margin:C(),opacity:H(),padding:E(),saturate:H(),scale:H(),sepia:B(),skew:H(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",Re]}],container:["container"],columns:[{columns:[Zi]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...F(),Re]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ru,Re]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Re]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",Ru,Re]}],"grid-cols":[{"grid-cols":[Du]}],"col-start-end":[{col:["auto",{span:["full",Ru,Re]},Re]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[Du]}],"row-start-end":[{row:["auto",{span:[Ru,Re]},Re]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Re]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Re]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}
vendor: 8,338 bytes, line 380
380],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Re,t]}],"min-w":[{"min-w":[Re,t,"min","max","fit"]}],"max-w":[{"max-w":[Re,t,"none","full","min","max","fit","prose",{screen:[Zi]},Zi]}],h:[{h:[Re,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Re,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Re,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Re,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Zi,Yi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Bx]}],"font-family":[{font:[Du]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Re]}],"line-clamp":[{"line-clamp":["none",Hl,Bx]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",oi,Re]}],"list-image":[{"list-image":["none",Re]}],"list-style-type":[{list:["none","disc","decimal",Re]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",oi,Yi]}],"underline-offset":[{"underline-offset":["auto",oi,Re]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...F(),O7]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",T7]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},M7]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:D()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...D()]}],"outline-offset":[{"outline-offset":[oi,Re]}],"outline-w":[{outline:[oi,Yi]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[oi,Yi]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Zi,$7]}],"shadow-color":[{shadow:[Du]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":z()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Zi,Re]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[m]}],saturate:[{saturate:[b]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Re]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",Re]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",Re]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Ru,Re]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[j]}],"skew-y":[{"skew-y":[j]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Re]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Re]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,647 bytes, line 380
380],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",Re]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[oi,Yi,Bx]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},z7=w7(L7);function ct(...e){return z7(We(e))}const B7=NB,YI=S.forwardRef(({className:e,...t},n)=>s.jsx(PI,{ref:n,className:ct("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));YI.displayName=PI.displayName;const q7=Nk("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),ZI=S.forwardRef(({className:e,variant:t,...n},r)=>s.jsx(AI,{ref:r,className:ct(q7({variant:t}),e),...n}));ZI.displayName=AI.displayName;const U7=S.forwardRef(({className:e,...t},n)=>s.jsx(CI,{ref:n,className:ct("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));U7.displayName=CI.displayName;const XI=S.forwardRef(({className:e,...t},n)=>s.jsx(EI,{ref:n,className:ct("absolute right-2 top-2 rounded-md p-1 text-foreground
380/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:s.jsx(Xc,{className:"h-4 w-4"})}));XI.displayName=EI.displayName;const JI=S.forwardRef(({className:e,...t},n)=>s.jsx(_I,{ref:n,className:ct("text-sm font-semibold",e),...t}));JI.displayName=_I.displayName;const eM=S.forwardRef(({className:e,...t},n)=>s.jsx(NI,{ref:n,className:ct("text-sm opacity-90",e),...t}));eM.displayName=NI.displayName;function W7(){const{toasts:e}=Fv();return s.jsxs(B7,{children:[e.map(function({id:t,title:n,description:r,action:a,...i}){return s.jsxs(ZI,{...i,children:[s.jsxs("div",{className:"grid gap-1",children:[n&&s.jsx(JI,{children:n}),r&&s.jsx(eM,{children:r})]}),a,s.jsx(XI,{})]},t)}),s.jsx(YI,{})]})}var w4=["light","dark"],V7="(prefers-color-scheme: dark)",H7=S.createContext(void 0),K7={setTheme:e=>{},themes:[]},G7=()=>{var e;return(e=S.useContext(H7))!=null?e:K7};S.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:a,defaultTheme:i,value:o,attrs:l,nonce:c})=>{let u=i==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(g=>`'${g}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,m=a?w4.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(g,h=!1,v=!0)=>{let y=o?o[g]:g,x=h?g+"|| ''":`'${y}'`,b="";return a&&v&&!h&&w4.includes(g)&&(b+=`d.style.colorScheme = '${g}';`),n==="class"?h||y?b+=`c.add(${x})`:b+="null":y&&(b+=`d[s](n,${x})`),b},f=e?`!function(){${d}${p(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${V7}',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${p(o?"x[e]":"e",!0)}}${u?"":"else{"+p(i,!1,!1)+"}"}${m}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${p(o?"x[e]":"e",!0)}}else{${p(i,!1,!1)};}${m}}catch(t){}}();`;return S.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:f}})});var Q7=e=>{switch(e){case"success":return X7;case"info":return eq;case"warning":return J7;case"error":return tq;default:return null}},Y7=Array(12).fill(0),Z7=({visible:e})=>M.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},M.createElement("div",{className:"sonner-spinner"},Y7.map((t,n)=>M.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),X7=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),J7=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),eq=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),tq=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),nq=()=>
380{let[e,t]=M.useState(document.hidden);return M.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},pw=1,rq=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,a=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:pw++,i=this.toasts.find(l=>l.id===a),o=e.dismissible===void 0?!0:e.dismissible;return i?this.toasts=this.toasts.map(l=>l.id===a?(this.publish({...l,...e,id:a,title:n}),{...l,...e,id:a,dismissible:o,title:n}):l):this.addToast({title:n,...r,dismissible:o,id:a}),a},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
380this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),a=n!==void 0;return r.then(async i=>{if(iq(i)&&!i.ok){a=!1;let o=typeof t.error=="function"?await t.error(`HTTP error! status: ${i.status}`):t.error,l=typeof t.description=="function"?await t.description(`HTTP error! status: ${i.status}`):t.description;this.create({id:n,type:"error",message:o,description:l})}else if(t.success!==void 0){a=!1;let o=typeof t.success=="function"?await t.success(i):t.success,l=typeof t.description=="function"?await t.description(i):t.description;this.create({id:n,type:"success",message:o,description:l})}}).catch(async i=>{if(t.error!==void 0){a=!1;let o=typeof t.error=="function"?await t.error(i):t.error,l=typeof t.description=="function"?await t.description(i):t.description;this.create({id:n,type:"error",message:o,description:l})}}).finally(()=>{var i;a&&(this.dismiss(n),n=void 0),(i=t.finally)==null||i.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||pw++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},pr=new rq,aq=(e,t)=>{let n=(t==null?void 0:t.id)||pw++;return pr.addToast({title:e,...t,id:n}),n},iq=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",oq=aq,sq=()=>pr.toasts;Object.assign(oq,{success:pr.success,info:pr.info,warning:pr.warning,error:pr.error,custom:pr.custom,message:pr.message,promise:pr.promise,dismiss:pr.dismiss,loading:pr.loading},{getHistory:sq});function lq(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}lq(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
380left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
380:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 381`);function ff(e){return e.label!==void 0}var cq=3,uq="32px",dq=4e3,mq=356,pq=14,fq=20,hq=200;function gq(...e){return e.filter(Boolean).join(" ")}var vq=e=>{var t,n,r,a,i,o,l,c,u,d;let{invert:m,toast:p,unstyled:f,interacting:g,setHeights:h,visibleToasts:v,heights:y,index:x,toasts:b,expanded:w,removeToast:k,defaultRichColors:j,closeButton:A,style:P,cancelButtonStyle:_,actionButtonStyle:N,className:C="",descriptionClassName:E="",duration:T,position:O,gap:F,loadingIcon:D,expandByDefault:z,classNames:R,icons:B,closeButtonAriaLabel:I="Close toast",pauseWhenPageIsHidden:H,cn:q}=e,[$,X]=M.useState(!1),[pe,te]=M.useState(!1),[de,Q]=M.useState(!1),[K,ee]=M.useState(!1),[ce,W]=M.use
381State(0),[we,ve]=M.useState(0),Ce=M.useRef(null),Te=M.useRef(null),Ye=x===0,ht=x+1<=v,qe=p.type,L=p.dismissible!==!1,V=p.className||"",G=p.descriptionClassName||"",le=M.useMemo(()=>y.findIndex(Se=>Se.toastId===p.id)||0,[y,p.id]),oe=M.useMemo(()=>{var Se;return(Se=p.closeButton)!=null?Se:A},[p.closeButton,A]),ie=M.useMemo(()=>p.duration||T||dq,[p.duration,T]),U=M.useRef(0),Z=M.useRef(0),ue=M.useRef(0),ke=M.useRef(null),[Ie,dt]=O.split("-"),gn=M.useMemo(()=>y.reduce((Se,it,et)=>et>=le?Se:Se+it.height,0),[y,le]),It=nq(),Tn=p.invert||m,or=qe==="loading";Z.current=M.useMemo(()=>le*F+gn,[le,gn]),M.useEffect(()=>{X(!0)},[]),M.useLayoutEffect(()=>{if(!$)return;let Se=Te.current,it=Se.style.height;Se.style.height="auto";let et=Se.getBoundingClientRect().height;Se.style.height=it,ve(et),h(sr=>sr.find(lr=>lr.toastId===p.id)?sr.map(lr=>lr.toastId===p.id?{...lr,height:et}:lr):[{toastId:p.id,height:et,position:p.position},...sr])},[$,p.title,p.description,h,p.id]);let at=M.useCallback(()=>{te(!0),W(Z.current),h(Se=>Se.filter(it=>it.toastId!==p.id)),setTimeout(()=>{k(p)},hq)},[p,k,h,Z]);M.useEffect(()=>{if(p.promise&&qe==="loading"||p.duration===1/0||p.type==="loading")return;let Se,it=ie;return w||g||H&&It?(()=>{if(ue.current<U.current){let et=new Date().getTime()-U.current;it=it-et}ue.current=new Date().getTime()})():it!==1/0&&(U.current=new Date().getTime(),Se=setTimeout(()=>{var et;(et=p.onAutoClose)==null||et.call(p,p),at()},it)),()=>clearTimeout(Se)},[w,g,z,p,ie,at,p.promise,qe,H,It]),M.useEffect(()=>{let Se=Te.current;if(Se){let it=Se.getBoundingClientRect().height;return ve(it),h(et=>[{toastId:p.id,height:it,position:p.position},...et]),()=>h(et=>et.filter(sr=>sr.toastId!==p.id))}},[h,p.id]),M.useEffect(()=>{p.delete&&at()},[at,p.delete]);function Nr(){return B!=null&&B.loading?M.createElement("div",{className:"sonner-loader","data-visible":qe==="loading"},B.loading):D?M.createElement("div",{className:"sonner-loader","data-visible":qe==="loading"},D):M.createElement(Z7,{visible:qe==="loading"})}return M.createElement("li",{"aria-live":p.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:Te,className:q(C,V,R==null?void 0:R.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[qe],(n=p==null?void 0:p.classNames)==null?void 0:n[qe]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:j,"data-styled":!(p.jsx||p.unstyled||f),"data-mounted":$,"data-promise":!!p.promise,"data-removed":pe,"data-visible":ht,"data-y-position":Ie,"data-x-position":dt,"data-index":x,"data-front":Ye,"data-swiping":de,"data-dismissible":L,"data-type":qe,"data-invert":Tn,"data-swipe-out":K,"data-expanded":!!(w||z&&$),style:{"--index":x,"--toasts-before":x,"--z-index":b.length-x,"--offset":`${pe?ce:Z.current}px`,"--initial-height":z?"auto":`${we}px`,...P,...p.style},onPointerDown:Se=>{or||!L||(Ce.current=new Date,W(Z.current),Se.target.setPointerCapture(Se.pointerId),Se.target.tagName!=="BUTTON"&&(Q(!0),ke.current={x:Se.clientX,y:Se.clientY}))},onPointerUp:()=>{var Se,it,et,sr;if(K||!L)return;ke.current=null;let lr=Number(((Se=Te.current)==null?void 0:Se.style.getPropertyValue("--swipe-amount").replace("px",""))||0),dl=new Date().getTime()-((it=Ce.current)==null?void 0:it.getTime()),Hp=Math.abs(lr)/dl;if(Math.abs(lr)>=fq||Hp>.11){W(Z.current),(et=p.onDismiss)==null||et.call(p,p),at(),ee(!0);return}(sr=Te.current)==null||sr.style.setProperty("--swipe-amount","0px"),Q(!1)},onPointerMove:Se=>{var it;if(!ke.current||!L)return;let et=Se.clientY-ke.current.y,sr=Se.clientX-ke.current.x,lr=(Ie==="top"?Math.min:Math.max)(0,et),dl=Se.pointerType==="touch"?10:2;Math.abs(lr)>dl?(it=Te.current)==null||it.style.setProperty("--swipe-amount",`${et}px`):Math.abs(sr)>dl&&(ke.current=null)}},oe&&!p.jsx?M.createElement("button",{"aria-label":I,"data-disabled":or,"data-close-button":!0,onClick:or||!L?()=>{}:()=>{var Se;at(),(Se=p.onDismiss)==null||Se.call(p,p)},className:q(R==null?void 0:R.closeButton,(a=p==null?void 0:p.classNames)==null?void 0:a.closeButton)},M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},M.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),M.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,p.jsx||M.isValidElement(p.title)?p.jsx||p.title:M.createElement(M.Fragment,null,qe||p.icon||p.promise?M.createElement("div",{"data-icon":"",className:q(R==null?void 0:R.icon,(i=p==null?void 0:p.classNames)==null?void 0:i.icon)}
381,p.promise||p.type==="loading"&&!p.icon?p.icon||Nr():null,p.type!=="loading"?p.icon||(B==null?void 0:B[qe])||Q7(qe):null):null,M.createElement("div",{"data-content":"",className:q(R==null?void 0:R.content,(o=p==null?void 0:p.classNames)==null?void 0:o.content)},M.createElement("div",{"data-title":"",className:q(R==null?void 0:R.title,(l=p==null?void 0:p.classNames)==null?void 0:l.title)},p.title),p.description?M.createElement("div",{"data-description":"",className:q(E,G,R==null?void 0:R.description,(c=p==null?void 0:p.classNames)==null?void 0:c.description)},p.description):null),M.isValidElement(p.cancel)?p.cancel:p.cancel&&ff(p.cancel)?M.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||_,onClick:Se=>{var it,et;ff(p.cancel)&&L&&((et=(it=p.cancel).onClick)==null||et.call(it,Se),at())},className:q(R==null?void 0:R.cancelButton,(u=p==null?void 0:p.classNames)==null?void 0:u.cancelButton)},p.cancel.label):null,M.isValidElement(p.action)?p.action:p.action&&ff(p.action)?M.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||N,onClick:Se=>{var it,et;ff(p.action)&&(Se.defaultPrevented||((et=(it=p.action).onClick)==null||et.call(it,Se),at()))},className:q(R==null?void 0:R.actionButton,(d=p==null?void 0:p.classNames)==null?void 0:d.actionButton)},p.action.label):null))};function k4(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var yq=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:a,closeButton:i,className:o,offset:l,theme:c="light",richColors:u,duration:d,style:m,visibleToasts:p=cq,toastOptions:f,dir:g=k4(),gap:h=pq,loadingIcon:v,icons:y,containerAriaLabel:x="Notifications",pauseWhenPageIsHidden:b,cn:w=gq}=e,[k,j]=M.useState([]),A=M.useMemo(()=>Array.from(new Set([n].concat(k.filter(H=>H.position).map(H=>H.position)))),[k,n]),[P,_]=M.useState([]),[N,C]=M.useState(!1),[E,T]=M.useState(!1),[O,F]=M.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),D=M.useRef(null),z=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=M.useRef(null),B=M.useRef(!1),I=M.useCallback(H=>{var q;(q=k.find($=>$.id===H.id))!=null&&q.delete||pr.dismiss(H.id),j($=>$.filter(({id:X})=>X!==H.id))},[k]);return M.useEffect(()=>pr.subscribe(H=>{if(H.dismiss){j(q=>q.map($=>$.id===H.id?{...$,delete:!0}:$));return}setTimeout(()=>{rI.flushSync(()=>{j(q=>{let $=q.findIndex(X=>X.id===H.id);return $!==-1?[...q.slice(0,$),{...q[$],...H},...q.slice($+1)]:[H,...q]})})})}),[]),M.useEffect(()=>{if(c!=="system"){F(c);return}c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:H})=>
381{F(H?"dark":"light")})},[c]),M.useEffect(()=>{k.length<=1&&C(!1)},[k]),M.useEffect(()=>{let H=q=>{var $,X;r.every(pe=>q[pe]||q.code===pe)&&(C(!0),($=D.current)==null||$.focus()),q.code==="Escape"&&(document.activeElement===D.current||(X=D.current)!=null&&X.contains(document.activeElement))&&C(!1)};return document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)},[r]),M.useEffect(()=>{if(D.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,B.current=!1)}},[D.current]),k.length?M.createElement("section",{"aria-label":`${x} ${z}`,tabIndex:-1},A.map((H,q)=>{var $;let[X,pe]=H.split("-");return M.createElement("ol",{key:H,dir:g==="auto"?k4():g,tabIndex:-1,ref:D,className:o,"data-sonner-toaster":!0,"data-theme":O,"data-y-position":X,"data-x-position":pe,style:{"--front-toast-height":`${(($=P[0])==null?void 0:$.height)||0}px`,"--offset":typeof l=="number"?`${l}px`:l||uq,"--width":`${mq}px`,"--gap":`${h}px`,...m},onBlur:te=>{B.current&&!te.currentTarget.contains(te.relatedTarget)&&(B.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:te=>{te.target instanceof HTMLElement&&te.target.dataset.dismissible==="false"||B.current||(B.current=!0,R.current=te.relatedTarget)},onMouseEnter:()=>C(!0),onMouseMove:()=>C(!0),onMouseLeave:()=>{E||C(!1)},onPointerDown:te=>{te.target instanceof HTMLElement&&te.target.dataset.dismissible==="false"||T(!0)},onPointerUp:()=>T(!1)},k.filter(te=>!te.position&&q===0||te.position===H).map((te,de)=>{var Q,K;return M.createElement(vq,{key:te.id,icons:y,index:de,toast:te,defaultRichColors:u,duration:(Q=f==null?void 0:f.duration)!=null?Q:d,className:f==null?void 0:f.className,descriptionClassName:f==null?void 0:f.descriptionClassName,invert:t,visibleToasts:p,closeButton:(K=f==null?void 0:f.closeButton)!=null?K:i,interacting:E,position:H,style:f==null?void 0:f.style,unstyled:f==null?void 0:f.unstyled,classNames:f==null?void 0:f.classNames,cancelButtonStyle:f==null?void 0:f.cancelButtonStyle,actionButtonStyle:f==null?void 0:f.actionButtonStyle,removeToast:I,toasts:k.filter(ee=>ee.position==te.position),heights:P.filter(ee=>ee.position==te.position),setHeights:_,expandByDefault:a,gap:h,loadingIcon:v,expanded:N,pauseWhenPageIsHidden:b,cn:w})}))})):null};const xq=({...e})=>{const{theme:t="system"}=G7();return s.jsx(yq,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var bq=eT.useId||(()=>{}),wq=0;function tM(e){const[t,n]=S.useState(bq());return Fi(()=>{n(r=>r??String(wq++))},[e]),t?`radix-${t}`:""}const kq=["top","right","bottom","left"],Ro=Math.min,vr=Math.max,Hh=Math.round,hf=Math.floor,Do=e=>({x:e,y:e}),Sq={left:"right",right:"left",bottom:"top",top:"bottom"},jq={start:"end",end:"start"};function fw(e,t,n){return vr(e,Ro(t,n))}function Ri(e,t){return typeof e=="function"?e(t):e}function Di(e){return e.split("-")[0]}function eu(e){return e.split("-")[1]}function Mk(e){return e==="x"?"y":"x"}function $k(e){return e==="y"?"height":"width"}function Lo(e){return["top","bottom"].includes(Di(e))?"y":"x"}function Fk(e){return Mk(Lo(e))}function Pq(e,t,n){n===void 0&&(n=!1);const r=eu(e),a=Fk(e),i=$k(a);let o=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Kh(o)),[o,Kh(o)]}function Aq(e){const t=Kh(e);return[hw(e),t,hw(t)]}function hw(e){return e.replace(/start|end/g,t=>jq[t])}function _q(e,t,n){const r=["left","right"],a=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?i:o;default:return[]}}function Nq(e,t,n,r){const a=eu(e);let i=_q(Di(e),n==="start",r);return a&&(i=i.map(o=>o+"-"+a),t&&(i=i.concat(i.map(hw)))),i}function Kh(e){return e.replace(/left|right|bottom|top/g,t=>Sq[t])}function Cq(e){return{top:0,right:0,bottom:0,left:0,...e}}function nM(e){return typeof e!="number"?Cq(e):{top:e,right:e,bottom:e,left:e}}function Gh(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function S4(e,t,n){let{reference:r,floating:a}=e;const i=Lo(t),o=Fk(t),l=$k(o),c=Di(t),u=i==="y",d=r.x+r.width/2-a.width/2,m=r.y+r.height/2-a.height/2,p=r[l]/2-a[l]/2;let f;switch(c){case"top":f={x:d,y:r.y-a.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:m};break;case"left":f={x:r.x-a.width,y:m};break;default:f={x:r.x,y:r.y}}switch(eu(t)){case"start":f[o]-=p*(n&&u?-1:1);break;case"end":f[o]+=p*(n&&u?-1:1);break}return f}const Eq=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:o}
vendor: 9,691 bytes, line 381
381=n,l=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:m}=S4(u,r,c),p=r,f={},g=0;for(let h=0;h<l.length;h++){const{name:v,fn:y}=l[h],{x,y:b,data:w,reset:k}=await y({x:d,y:m,initialPlacement:r,placement:p,strategy:a,middlewareData:f,rects:u,platform:o,elements:{reference:e,floating:t}});d=x??d,m=b??m,f={...f,[v]:{...f[v],...w}},k&&g<=50&&(g++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(u=k.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):k.rects),{x:d,y:m}=S4(u,p,c)),h=-1)}return{x:d,y:m,placement:p,strategy:a,middlewareData:f}};async function cm(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:i,rects:o,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:m="floating",altBoundary:p=!1,padding:f=0}=Ri(t,e),g=nM(f),v=l[p?m==="floating"?"reference":"floating":m],y=Gh(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),x=m==="floating"?{x:r,y:a,width:o.floating.width,height:o.floating.height}:o.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),w=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},k=Gh(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:b,strategy:c}):x);return{top:(y.top-k.top+g.top)/w.y,bottom:(k.bottom-y.bottom+g.bottom)/w.y,left:(y.left-k.left+g.left)/w.x,right:(k.right-y.right+g.right)/w.x}}const Tq=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:i,platform:o,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=Ri(e,t)||{};if(u==null)return{};const m=nM(d),p={x:n,y:r},f=Fk(a),g=$k(f),h=await o.getDimensions(u),v=f==="y",y=v?"top":"left",x=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=i.reference[g]+i.reference[f]-p[f]-i.floating[g],k=p[f]-i.reference[f],j=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let A=j?j[b]:0;(!A||!await(o.isElement==null?void 0:o.isElement(j)))&&(A=l.floating[b]||i.floating[g]);const P=w/2-k/2,_=A/2-h[g]/2-1,N=Ro(m[y],_),C=Ro(m[x],_),E=N,T=A-h[g]-C,O=A/2-h[g]/2+P,F=fw(E,O,T),D=!c.arrow&&eu(a)!=null&&O!==F&&i.reference[g]/2-(O<E?N:C)-h[g]/2<0,z=D?O<E?O-E:O-T:0;return{[f]:p[f]+z,data:{[f]:F,centerOffset:O-F-z,...D&&{alignmentOffset:z}},reset:D}}}),Oq=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:i,rects:o,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...v}=Ri(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=Di(a),x=Lo(l),b=Di(l)===l,w=await(c.isRTL==null?void 0:c.isRTL(u.floating)),k=p||(b||!h?[Kh(l)]:Aq(l)),j=g!=="none";!p&&j&&k.push(...Nq(l,h,g,w));const A=[l,...k],P=await cm(t,v),_=[];let N=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&_.push(P[y]),m){const O=Pq(a,o,w);_.push(P[O[0]],P[O[1]])}if(N=[...N,{placement:a,overflows:_}],!_.every(O=>O<=0)){var C,E;const O=(((C=i.flip)==null?void 0:C.index)||0)+1,F=A[O];if(F)return{data:{index:O,overflows:N},reset:{placement:F}};let D=(E=N.filter(z=>z.overflows[0]<=0).sort((z,R)=>z.overflows[1]-R.overflows[1])[0])==null?void 0:E.placement;if(!D)switch(f){case"bestFit":{var T;const z=(T=N.filter(R=>{if(j){const B=Lo(R.placement);return B===x||B==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(B=>B>0).reduce((B,I)=>B+I,0)]).sort((R,B)=>R[1]-B[1])[0])==null?void 0:T[0];z&&(D=z);break}case"initialPlacement":D=l;break}if(a!==D)return{reset:{placement:D}}}return{}}}};function j4(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function P4(e){return kq.some(t=>e[t]>=0)}const Iq=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=Ri(e,t);switch(r){case"referenceHidden":{const i=await cm(t,{...a,elementContext:"reference"}),o=j4(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:P4(o)}}}case"escaped":{const i=await cm(t,{...a,altBoundary:!0}),o=j4(i,n.floating);return{data:{escapedOffsets:o,escaped:P4(o)}}}default:return{}}}}};async function Mq(e,t){const{placement:n,platform:r,elements:a}=e,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),o=Di(n),l=eu(n),c=Lo(n)==="y",u=["left","top"].includes(o)?-1:1,d=i&&c?-1:1,m=Ri(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:g}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof g=="number"&&(f=l==="end"?g*-1:g),c?{x:f*d,y:p*u}:{x:p*u,y:f*d}}const $q=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:i,placement:o,middlewareData:l}=t,c=await Mq(t,e);return o===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:a+c.x,y:i+c.y,data:{...c,placement:o}}}}},Fq=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:v=>{let{x:y,y:x}=v;return{x:y,y:x}}},...c}=Ri(e,t),u={x:n,y:r},d=await cm(t,c),m=Lo(Di(a)),p=Mk(m);let f=u[p],g=u[m];if(i){const v=p==="y"?"top":"left",y=p==="y"?"bottom":"right",x=f+d[v],b=f-d[y];f=fw(x,f,b)}if(o){const v=m==="y"?"top":"left",y=m==="y"?"bottom":"right",x=g+d[v],b=g-d[y];g=fw(x,g,b)}const h=l.fn({...t,[p]:f,[m]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[p]:i,[m]:o}}}}}},Rq=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:i,middlewareData:o}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=Ri(e,t),d={x:n,y:r},m=Lo(a),p=Mk(m);let f=d[p],g=d[m];const h=Ri(l,t),v=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const b=p==="y"?"height":"width",w=i.reference[p]-i.floating[b]+v.mainAxis,k=i.reference[p]+i.reference[b]-v.mainAxis;f<w?f=w:f>k&&(f=k)}if(u){var y,x;const b=p==="y"?"width":"height",w=["top","left"].includes(Di(a)),k=i.reference[m]-i.floating[b]+(w&&((y=o.offset)==null?void 0:y[m])||0)+(w?0:v.crossAxis),j=i.reference[m]+i.reference[b]+(w?0:((x=o.offset)==null?void 0:x[m])||0)-(w?v.crossAxis:0);g<k?g=k:g>j&&(g=j)}return{[p]:f,[m]:g}}}},Dq=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:i,platform:o,elements:l}=t,{apply:c=()=>{},...u}=Ri(e,t),d=await cm(t,u),m=Di(a),p=eu(a),f=Lo(a)==="y",{width:g,height:h}=i.floating;let v,y;m==="top"||m==="bottom"?(v=m,y=p===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(y=m,v=p==="end"?"top":"bottom");const x=h-d.top-d.bottom,b=g-d.left-d.right,w=Ro(h-d[v],x),k=Ro(g-d[y],b),j=!t.middlewareData.shift;let A=w,P=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=x),j&&!p){const N=vr(d.left,0),C=vr(d.right,0),E=vr(d.top,0),T=vr(d.bottom,0);f?P=g-2*(N!==0||C!==0?N+C:vr(d.left,d.right)):A=h-2*(E!==0||T!==0?E+T:vr(d.top,d.bottom))}await c({...t,availableWidth:P,availableHeight:A});const _=await o.getDimensions(l.floating);return g!==_.width||h!==_.height?{reset:{rects:!0}}:{}}}};function Hv(){return typeof window<"u"}function tu(e){return rM(e)?(e.nodeName||"").toLowerCase():"#document"}function wr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ni(e){var t;return(t=(rM(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function rM(e){return Hv()?e instanceof Node||e instanceof wr(e).Node:!1}function wa(e){return Hv()?e instanceof Element||e instanceof wr(e).Element:!1}function Za(e){return Hv()?e instanceof HTMLElement||e instanceof wr(e).HTMLElement:!1}function A4(e){return!Hv()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof wr(e).ShadowRoot}function Np(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=ka(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function Lq(e){return["table","td","th"].includes(tu(e))}function Kv(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Rk(e){const t=Dk(),n=wa(e)?ka(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function zq(e){let t=zo(e);for(;Za(t)&&!gc(t);){if(Rk(t))return t;if(Kv(t))return null;t=zo(t)}return null}function Dk(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function gc(e){return["html","body","#document"].includes(tu(e))}function ka(e){return wr(e).getComputedStyle(e)}function Gv(e){return wa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zo(e){if(tu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||A4(e)&&e.host||ni(e);return A4(t)?t.host:t}function aM(e){const t=zo(e);return gc(t)?e.ownerDocument?e.ownerDocument.body:e.body:Za(t)&&Np(t)?t:aM(t)}function um(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=aM(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),o=wr(a);if(i){const l=gw(o);
vendor: 4,016 bytes, line 381
381return t.concat(o,o.visualViewport||[],Np(a)?a:[],l&&n?um(l):[])}return t.concat(a,um(a,[],n))}function gw(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function iM(e){const t=ka(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Za(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,l=Hh(n)!==i||Hh(r)!==o;return l&&(n=i,r=o),{width:n,height:r,$:l}}function Lk(e){return wa(e)?e:e.contextElement}function Kl(e){const t=Lk(e);if(!Za(t))return Do(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=iM(t);let o=(i?Hh(n.width):n.width)/r,l=(i?Hh(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const Bq=Do(0);function oM(e){const t=wr(e);return!Dk()||!t.visualViewport?Bq:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qq(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==wr(e)?!1:t}function Vs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=Lk(e);let o=Do(1);t&&(r?wa(r)&&(o=Kl(r)):o=Kl(e));const l=qq(i,n,r)?oM(i):Do(0);let c=(a.left+l.x)/o.x,u=(a.top+l.y)/o.y,d=a.width/o.x,m=a.height/o.y;if(i){const p=wr(i),f=r&&wa(r)?wr(r):r;let g=p,h=gw(g);for(;h&&r&&f!==g;){const v=Kl(h),y=h.getBoundingClientRect(),x=ka(h),b=y.left+(h.clientLeft+parseFloat(x.paddingLeft))*v.x,w=y.top+(h.clientTop+parseFloat(x.paddingTop))*v.y;c*=v.x,u*=v.y,d*=v.x,m*=v.y,c+=b,u+=w,g=wr(h),h=gw(g)}}return Gh({width:d,height:m,x:c,y:u})}function Uq(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const i=a==="fixed",o=ni(r),l=t?Kv(t.floating):!1;if(r===o||l&&i)return n;let c={scrollLeft:0,scrollTop:0},u=Do(1);const d=Do(0),m=Za(r);if((m||!m&&!i)&&((tu(r)!=="body"||Np(o))&&(c=Gv(r)),Za(r))){const p=Vs(r);u=Kl(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x,y:n.y*u.y-c.scrollTop*u.y+d.y}}function Wq(e){return Array.from(e.getClientRects())}function vw(e,t){const n=Gv(e).scrollLeft;return t?t.left+n:Vs(ni(e)).left+n}function Vq(e){const t=ni(e),n=Gv(e),r=e.ownerDocument.body,a=vr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=vr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+vw(e);const l=-n.scrollTop;return ka(r).direction==="rtl"&&(o+=vr(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:o,y:l}}function Hq(e,t){const n=wr(e),r=ni(e),a=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,l=0,c=0;if(a){i=a.width,o=a.height;const u=Dk();(!u||u&&t==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:i,height:o,x:l,y:c}}function Kq(e,t){const n=Vs(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,i=Za(e)?Kl(e):Do(1),o=e.clientWidth*i.x,l=e.clientHeight*i.y,c=a*i.x,u=r*i.y;return{width:o,height:l,x:c,y:u}}function _4(e,t,n){let r;if(t==="viewport")r=Hq(e,n);else if(t==="document")r=Vq(ni(e));else if(wa(t))r=Kq(t,n);else{const a=oM(e);r={...t,x:t.x-a.x,y:t.y-a.y}}return Gh(r)}function sM(e,t){const n=zo(e);return n===t||!wa(n)||gc(n)?!1:ka(n).position==="fixed"||sM(n,t)}function Gq(e,t){const n=t.get(e);if(n)return n;let r=um(e,[],!1).filter(l=>wa(l)&&tu(l)!=="body"),a=null;const i=ka(e).position==="fixed";let o=i?zo(e):e;for(;wa(o)&&!gc(o);){const l=ka(o),c=Rk(o);!c&&l.position==="fixed"&&(a=null),(i?!c&&!a:!c&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Np(o)&&!c&&sM(e,o))?r=r.filter(d=>d!==o):a=l,o=zo(o)}return t.set(e,r),r}function Qq(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[...n==="clippingAncestors"?Kv(t)?[]:Gq(t,this._c):[].concat(n),r],l=o[0],c=o.reduce((u,d)=>{const m=_4(t,d,a);return u.top=vr(m.top,u.top),u.right=Ro(m.right,u.right),u.bottom=Ro(m.bottom,u.bottom),u.left=vr(m.left,u.left),u},_4(t,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Yq(e){const{width:t,height:n}=iM(e);return{width:t,height:n}}function Zq(e,t,n){const r=Za(t),a=ni(t),i=n==="fixed",o=Vs(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=Do(0);
vendor: 10,612 bytes, line 381
381if(r||!r&&!i)if((tu(t)!=="body"||Np(a))&&(l=Gv(t)),r){const f=Vs(t,!0,i,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else a&&(c.x=vw(a));let u=0,d=0;if(a&&!r&&!i){const f=a.getBoundingClientRect();d=f.top+l.scrollTop,u=f.left+l.scrollLeft-vw(a,f)}const m=o.left+l.scrollLeft-c.x-u,p=o.top+l.scrollTop-c.y-d;return{x:m,y:p,width:o.width,height:o.height}}function qx(e){return ka(e).position==="static"}function N4(e,t){if(!Za(e)||ka(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ni(e)===n&&(n=n.ownerDocument.body),n}function lM(e,t){const n=wr(e);if(Kv(e))return n;if(!Za(e)){let a=zo(e);for(;a&&!gc(a);){if(wa(a)&&!qx(a))return a;a=zo(a)}return n}let r=N4(e,t);for(;r&&Lq(r)&&qx(r);)r=N4(r,t);return r&&gc(r)&&qx(r)&&!Rk(r)?n:r||zq(e)||n}const Xq=async function(e){const t=this.getOffsetParent||lM,n=this.getDimensions,r=await n(e.floating);return{reference:Zq(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Jq(e){return ka(e).direction==="rtl"}const eU={convertOffsetParentRelativeRectToViewportRelativeRect:Uq,getDocumentElement:ni,getClippingRect:Qq,getOffsetParent:lM,getElementRects:Xq,getClientRects:Wq,getDimensions:Yq,getScale:Kl,isElement:wa,isRTL:Jq};function tU(e,t){let n=null,r;const a=ni(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:u,top:d,width:m,height:p}=e.getBoundingClientRect();if(l||t(),!m||!p)return;const f=hf(d),g=hf(a.clientWidth-(u+m)),h=hf(a.clientHeight-(d+p)),v=hf(u),x={rootMargin:-f+"px "+-g+"px "+-h+"px "+-v+"px",threshold:vr(0,Ro(1,c))||1};let b=!0;function w(k){const j=k[0].intersectionRatio;if(j!==c){if(!b)return o();j?o(!1,j):r=setTimeout(()=>{o(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(w,{...x,root:a.ownerDocument})}catch{n=new IntersectionObserver(w,x)}n.observe(e)}return o(!0),i}function nU(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Lk(e),d=a||i?[...u?um(u):[],...um(t)]:[];d.forEach(y=>{a&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const m=u&&l?tU(u,n):null;let p=-1,f=null;o&&(f=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var b;(b=f)==null||b.observe(t)})),n()}),u&&!c&&f.observe(u),f.observe(t));let g,h=c?Vs(e):null;c&&v();function v(){const y=Vs(e);h&&(y.x!==h.x||y.y!==h.y||y.width!==h.width||y.height!==h.height)&&n(),h=y,g=requestAnimationFrame(v)}return n(),()=>{var y;d.forEach(x=>{a&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),m==null||m(),(y=f)==null||y.disconnect(),f=null,c&&cancelAnimationFrame(g)}}const rU=$q,aU=Fq,iU=Oq,oU=Dq,sU=Iq,C4=Tq,lU=Rq,cU=(e,t,n)=>{const r=new Map,a={platform:eU,...n},i={...a.platform,_c:r};return Eq(e,t,{...a,platform:i})};var lh=typeof document<"u"?S.useLayoutEffect:S.useEffect;function Qh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Qh(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const i=a[r];if(!(i==="_owner"&&e.$$typeof)&&!Qh(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function cM(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function E4(e,t){const n=cM(e);return Math.round(t*n)/n}function Ux(e){const t=S.useRef(e);return lh(()=>{t.current=e}),t}function uU(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:i,floating:o}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,m]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=S.useState(r);Qh(p,r)||f(r);const[g,h]=S.useState(null),[v,y]=S.useState(null),x=S.useCallback(R=>{R!==j.current&&(j.current=R,h(R))},[]),b=S.useCallback(R=>{R!==A.current&&(A.current=R,y(R))},[]),w=i||g,k=o||v,j=S.useRef(null),A=S.useRef(null),P=S.useRef(d),_=c!=null,N=Ux(c),C=Ux(a),E=Ux(u),T=S.useCallback(()=>{if(!j.current||!A.current)return;const R={placement:t,strategy:n,middleware:p};C.current&&(R.platform=C.current),cU(j.current,A.current,R).then(B=>{const I={...B,isPositioned:E.current!==!1};O.current&&!Qh(P.current,I)&&(P.current=I,Pp.flushSync(()=>{m(I)}))})},[p,t,n,C,E]);lh(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,m(R=>({...R,isPositioned:!1})))},[u]);const O=S.useRef(!1);lh(()=>(O.current=!0,()=>{O.current=!1}),[]),lh(()=>{if(w&&(j.current=w),k&&(A.current=k),w&&k){if(N.current)return N.current(w,k,T);T()}},[w,k,T,N,_]);const F=S.useMemo(()=>({reference:j,floating:A,setReference:x,setFloating:b}),[x,b]),D=S.useMemo(()=>({reference:w,floating:k}),[w,k]),z=S.useMemo(()=>{const R={position:n,left:0,top:0};if(!D.floating)return R;const B=E4(D.floating,d.x),I=E4(D.floating,d.y);return l?{...R,transform:"translate("+B+"px, "+I+"px)",...cM(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:I}},[n,l,D.floating,d.x,d.y]);return S.useMemo(()=>({...d,update:T,refs:F,elements:D,floatingStyles:z}),[d,T,F,D,z])}const dU=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?C4({element:r.current,padding:a}).fn(n):{}:r?C4({element:r,padding:a}).fn(n):{}}}},mU=(e,t)=>({...rU(e),options:[e,t]}),pU=(e,t)=>({...aU(e),options:[e,t]}),fU=(e,t)=>({...lU(e),options:[e,t]}),hU=(e,t)=>({...iU(e),options:[e,t]}),gU=(e,t)=>({...oU(e),options:[e,t]}),vU=(e,t)=>({...sU(e),options:[e,t]}),yU=(e,t)=>({...dU(e),options:[e,t]});var xU="Arrow",uM=S.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...i}=e;return s.jsx(Kt.svg,{...i,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});uM.displayName=xU;var bU=uM;function wU(e,t=[]){let n=[];function r(i,o){const l=S.createContext(o),c=n.length;n=[...n,o];function u(m){const{scope:p,children:f,...g}=m,h=(p==null?void 0:p[e][c])||l,v=S.useMemo(()=>g,Object.values(g));return s.jsx(h.Provider,{value:v,children:f})}function d(m,p){const f=(p==null?void 0:p[e][c])||l,g=S.useContext(f);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${m}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const a=()=>{const i=n.map(o=>S.createContext(o));return function(l){const c=(l==null?void 0:l[e])||i;return S.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return a.scopeName=e,[r,kU(a,...t)]}function kU(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=r.reduce((l,{useScope:c,scopeName:u})=>{const m=c(i)[`__scope${u}`];return{...l,...m}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function dM(e){const[t,n]=S.useState(void 0);return Fi(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let o,l;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;o=u.inlineSize,l=u.blockSize}else o=e.offsetWidth,l=e.offsetHeight;n({width:o,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var zk="Popper",[mM,pM]=wU(zk),[SU,fM]=mM(zk),hM=e=>{const{__scopePopper:t,children:n}=e,[r,a]=S.useState(null);return s.jsx(SU,{scope:t,anchor:r,onAnchorChange:a,children:n})};hM.displayName=zk;var gM="PopperAnchor",vM=S.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,i=fM(gM,n),o=S.useRef(null),l=Pr(t,o);return S.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:s.jsx(Kt.div,{...a,ref:l})});vM.displayName=gM;var Bk="PopperContent",[jU,PU]=mM(Bk),yM=S.forwardRef((e,t)=>{var de,Q,K,ee,ce,W;const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:i="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:m="partial",hideWhenDetached:p=!1,updatePositionStrategy:f="optimized",onPlaced:g,...h}=e,v=fM(Bk,n),[y,x]=S.useState(null),b=Pr(t,we=>x(we)),[w,k]=S.useState(null),j=dM(w),A=(j==null?void 0:j.width)??0,P=(j==null?void 0:j.height)??0,_=r+(i!=="center"?"-"+i:""),N=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},C=Array.isArray(u)?u:[u],E=C.length>0,T={padding:N,boundary:C.filter(_U),altBoundary:E},{refs:O,floatingStyles:F,placement:D,isPositioned:z,middlewareData:R}=uU({strategy:"fixed",placement:_,whileElementsMounted:(...we)=>nU(...we,{animationFrame:f==="always"}),elements:{reference:v.anchor},middleware:[mU({mainAxis:a+P,alignmentAxis:o}),c&&pU({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?fU():void 0,...T}),c&&hU({...T}),gU({...T,apply:({elements:we,rects:ve,availableWidth:Ce,availableHeight:Te})=>{const{width:Ye,height:ht}=ve.reference,qe=we.floating.style;qe.setProperty("--radix-popper-available-width",`${Ce}px`),qe.setProperty("--radix-popper-available-height",`${Te}px`),qe.setProperty("--radix-popper-anchor-width",`${Ye}px`),qe.setProperty("--radix-popper-anchor-height",`${ht}px`)}}),w&&yU({element:w,padding:l}),NU({arrowWidth:A,arrowHeight:P}),p&&vU({strategy:"referenceHidden",...T})]}),[B,I]=wM(D),H=Ya(g);Fi(()=>{z&&(H==null||H())},[z,H]);const q=(de=R.arrow)==null?void 0:de.x,$=(Q=R.arrow)==null?void 0:Q.y,X=((K=R.arrow)==null?void 0:K.centerOffset)!==0,[pe,te]=S.useState();return Fi(()=>{y&&te(window.getComputedStyle(y).zIndex)},[y]),s.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:z?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[(ee=R.transformOrigin)==null?void 0:ee.x,(ce=R.transformOrigin)==null?void 0:ce.y].join(" "),...((W=R.hide)==null?void 0:W.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx(jU,{scope:n,placedSide:B,onArrowChange:k,arrowX:q,arrowY:$,shouldHideArrow:X,children:s.jsx(Kt.div,{"data-side":B,"data-align":I,...h,ref:b,style:{...h.style,animation:z?void 0:"none"}})})})});yM.displayName=Bk;var xM="PopperArrow",AU={top:"bottom",right:"left",bottom:"top",left:"r
381ight"},bM=S.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,i=PU(xM,r),o=AU[i.placedSide];return s.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:s.jsx(bU,{...a,ref:n,style:{...a.style,display:"block"}})})});bM.displayName=xM;function _U(e){return e!==null}var NU=e=>({name:"transformOrigin",options:e,fn(t){var v,y,x;const{placement:n,rects:r,middlewareData:a}=t,o=((v=a.arrow)==null?void 0:v.centerOffset)!==0,l=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[u,d]=wM(n),m={start:"0%",center:"50%",end:"100%"}[d],p=(((y=a.arrow)==null?void 0:y.x)??0)+l/2,f=(((x=a.arrow)==null?void 0:x.y)??0)+c/2;let g="",h="";return u==="bottom"?(g=o?m:`${p}px`,h=`${-c}px`):u==="top"?(g=o?m:`${p}px`,h=`${r.floating.height+c}px`):u==="right"?(g=`${-c}px`,h=o?m:`${f}px`):u==="left"&&(g=`${r.floating.width+c}px`,h=o?m:`${f}px`),{data:{x:g,y:h}}}});function wM(e){const[t,n="center"]=e.split("-");return[t,n]}var CU=hM,EU=vM,TU=yM,OU=bM,[Qv,Y8e]=Rv("Tooltip",[pM]),Yv=pM(),kM="TooltipProvider",IU=700,yw="tooltip.open",[MU,qk]=Qv(kM),SM=e=>{const{__scopeTooltip:t,delayDuration:n=IU,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:i}=e,[o,l]=S.useState(!0),c=S.useRef(!1),u=S.useRef(0);return S.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),s.jsx(MU,{scope:t,isOpenDelayed:o,delayDuration:n,onOpen:S.useCallback(()=>{window.clearTimeout(u.current),l(!1)},[]),onClose:S.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>l(!0),r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:S.useCallback(d=>{c.current=d},[]),disableHoverableContent:a,children:i})};SM.displayName=kM;var Zv="Tooltip",[$U,Xv]=Qv(Zv),jM=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:a=!1,onOpenChange:i,disableHoverableContent:o,delayDuration:l}=e,c=qk(Zv,e.__scopeTooltip),u=Yv(t),[d,m]=S.useState(null),p=tM(),f=S.useRef(0),g=o??c.disableHoverableContent,h=l??c.delayDuration,v=S.useRef(!1),[y=!1,x]=Lv({prop:r,defaultProp:a,onChange:A=>{A?(c.onOpen(),document.dispatchEvent(new CustomEvent(yw))):c.onClose(),i==null||i(A)}}),b=S.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),w=S.useCallback(()=>{window.clearTimeout(f.current),f.current=0,v.current=!1,x(!0)},[x]),k=S.useCallback(()=>{window.clearTimeout(f.current),f.current=0,x(!1)},[x]),j=S.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{v.current=!0,x(!0),f.current=0},h)},[h,x]);return S.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),s.jsx(CU,{...u,children:s.jsx($U,{scope:t,contentId:p,open:y,stateAttribute:b,trigger:d,onTriggerChange:m,onTriggerEnter:S.useCallback(()=>{c.isOpenDelayed?j():w()},[c.isOpenDelayed,j,w]),onTriggerLeave:S.useCallback(()=>{g?k():(window.clearTimeout(f.current),f.current=0)},[k,g]),onOpen:w,onClose:k,disableHoverableContent:g,children:n})})};jM.displayName=Zv;var xw="TooltipTrigger",PM=S.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=Xv(xw,n),i=qk(xw,n),o=Yv(n),l=S.useRef(null),c=Pr(t,l,a.onTriggerChange),u=S.useRef(!1),d=S.useRef(!1),m=S.useCallback(()=>u.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),s.jsx(EU,{asChild:!0,...o,children:s.jsx(Kt.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:c,onPointerMove:Ft(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),d.current=!0)}),onPointerLeave:Ft(e.onPointerLeave,()=>{a.onTriggerLeave(),d.current=!1}),onPointerDown:Ft(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:Ft(e.onFocus,()=>{u.current||a.onOpen()}),onBlur:Ft(e.onBlur,a.onClose),onClick:Ft(e.onClick,a.onClose)})})});PM.displayName=xw;var FU="TooltipPortal",[Z8e,RU]=Qv(FU,{forceMount:void 0}),vc="TooltipContent",AM=S.forwardRef((e,t)=>
vendor: 4,630 bytes, line 381
381{const n=RU(vc,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...i}=e,o=Xv(vc,e.__scopeTooltip);return s.jsx(Dv,{present:r||o.open,children:o.disableHoverableContent?s.jsx(_M,{side:a,...i,ref:t}):s.jsx(DU,{side:a,...i,ref:t})})}),DU=S.forwardRef((e,t)=>{const n=Xv(vc,e.__scopeTooltip),r=qk(vc,e.__scopeTooltip),a=S.useRef(null),i=Pr(t,a),[o,l]=S.useState(null),{trigger:c,onClose:u}=n,d=a.current,{onPointerInTransitChange:m}=r,p=S.useCallback(()=>{l(null),m(!1)},[m]),f=S.useCallback((g,h)=>{const v=g.currentTarget,y={x:g.clientX,y:g.clientY},x=qU(y,v.getBoundingClientRect()),b=UU(y,x),w=WU(h.getBoundingClientRect()),k=HU([...b,...w]);l(k),m(!0)},[m]);return S.useEffect(()=>()=>p(),[p]),S.useEffect(()=>{if(c&&d){const g=v=>f(v,d),h=v=>f(v,c);return c.addEventListener("pointerleave",g),d.addEventListener("pointerleave",h),()=>{c.removeEventListener("pointerleave",g),d.removeEventListener("pointerleave",h)}}},[c,d,f,p]),S.useEffect(()=>{if(o){const g=h=>{const v=h.target,y={x:h.clientX,y:h.clientY},x=(c==null?void 0:c.contains(v))||(d==null?void 0:d.contains(v)),b=!VU(y,o);x?p():b&&(p(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[c,d,o,u,p]),s.jsx(_M,{...e,ref:i})}),[LU,zU]=Qv(Zv,{isInside:!1}),_M=S.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:o,...l}=e,c=Xv(vc,n),u=Yv(n),{onClose:d}=c;return S.useEffect(()=>(document.addEventListener(yw,d),()=>document.removeEventListener(yw,d)),[d]),S.useEffect(()=>{if(c.trigger){const m=p=>{const f=p.target;f!=null&&f.contains(c.trigger)&&d()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[c.trigger,d]),s.jsx(jk,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:m=>m.preventDefault(),onDismiss:d,children:s.jsxs(TU,{"data-state":c.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[s.jsx(oI,{children:r}),s.jsx(LU,{scope:n,isInside:!0,children:s.jsx(uB,{id:c.contentId,role:"tooltip",children:a||r})})]})})});AM.displayName=vc;var NM="TooltipArrow",BU=S.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=Yv(n);return zU(NM,n).isInside?null:s.jsx(OU,{...a,...r,ref:t})});BU.displayName=NM;function qU(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,a,i)){case i:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function UU(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function WU(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}function VU(e,t){const{x:n,y:r}=e;let a=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const l=t[i].x,c=t[i].y,u=t[o].x,d=t[o].y;c>r!=d>r&&n<(u-l)*(r-c)/(d-c)+l&&(a=!a)}return a}function HU(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),KU(t)}function KU(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const a=e[r];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const a=e[r];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var GU=SM,QU=jM,YU=PM,CM=AM;const EM=GU,ZU=QU,XU=YU,TM=S.forwardRef(({className:e,sideOffset:t=4,...n},r)=>s.jsx(CM,{ref:r,sideOffset:t,className:ct("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
381de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));TM.displayName=CM.displayName;var Jv=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ey=typeof window>"u"||"Deno"in globalThis;function ea(){}function JU(e,t){return typeof e=="function"?e(t):e}function eW(e){return typeof e=="number"&&e>=0&&e!==1/0}function tW(e,t){return Math.max(e+(t||0)-Date.now(),0)}function T4(e,t){return typeof e=="function"?e(t):e}function nW(e,t){return typeof e=="function"?e(t):e}function O4(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==Uk(o,t.options))return!1}else if(!mm(t.queryKey,o))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||a&&a!==t.state.fetchStatus||i&&!i(t))}function I4(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(dm(t.options.mutationKey)!==dm(i))return!1}else if(!mm(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function Uk(e,t){return((t==null?void 0:t.queryKeyHashFn)||dm)(e)}function dm(e){return JSON.stringify(e,(t,n)=>bw(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function mm(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!mm(e[n],t[n])):!1}function OM(e,t){if(e===t)return e;const n=M4(e)&&M4(t);if(n||bw(e)&&bw(t)){const r=n?e:Object.keys(e),a=r.length,i=n?t:Object.keys(t),o=i.length,l=n?[]:{};let c=0;for(let u=0;u<o;u++){const d=n?u:i[u];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(l[d]=void 0,c++):(l[d]=OM(e[d],t[d]),l[d]===e[d]&&e[d]!==void 0&&c++)}return a===o&&c===a?e:l}return t}function M4(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function bw(e){if(!$4(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!$4(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function $4(e){return Object.prototype.toString.call(e)==="[object Object]"}function rW(e){return new Promise(t=>{setTimeout(t,e)})}function aW(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?OM(e,t):t}function iW(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function oW(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Wk=Symbol();function IM(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Wk?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var _s,po,ec,F5,sW=(F5=class extends Jv{constructor(){super();Je(this,_s);Je(this,po);Je(this,ec);ze(this,ec,t=>{if(!ey&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){J(this,po)||this.setEventListener(J(this,ec))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,po))==null||t.call(this),ze(this,po,void 0))}setEventListener(t){var n;ze(this,ec,t),(n=J(this,po))==null||n.call(this),ze(this,po,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){J(this,_s)!==t&&(ze(this,_s,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof J(this,_s)=="boolean"?J(this,_s):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},_s=new WeakMap,po=new WeakMap,ec=new WeakMap,F5),MM=new sW,tc,fo,nc,R5,lW=(R5=class extends Jv{constructor(){super();Je(this,tc,!0);Je(this,fo);Je(this,nc);ze(this,nc,t=>{if(!ey&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){J(this,fo)||this.setEventListener(J(this,nc))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,fo))==null||t.call(this),ze(this,fo,void 0))}setEventListener(t){var n;ze(this,nc,t),(n=J(this,fo))==null||n.call(this),ze(this,fo,t(this.setOnline.bind(this)))}setOnline(t){J(this,tc)!==t&&(ze(this,tc,t),this.listeners.forEac
vendor: 18,803 bytes, line 381
381h(r=>{r(t)}))}isOnline(){return J(this,tc)}},tc=new WeakMap,fo=new WeakMap,nc=new WeakMap,R5),Yh=new lW;function cW(){let e,t;const n=new Promise((a,i)=>{e=a,t=i});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}function uW(e){return Math.min(1e3*2**e,3e4)}function $M(e){return(e??"online")==="online"?Yh.isOnline():!0}var FM=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Wx(e){return e instanceof FM}function RM(e){let t=!1,n=0,r=!1,a;const i=cW(),o=h=>{var v;r||(p(new FM(h)),(v=e.abort)==null||v.call(e))},l=()=>{t=!0},c=()=>{t=!1},u=()=>MM.isFocused()&&(e.networkMode==="always"||Yh.isOnline())&&e.canRun(),d=()=>$M(e.networkMode)&&e.canRun(),m=h=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,h),a==null||a(),i.resolve(h))},p=h=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,h),a==null||a(),i.reject(h))},f=()=>new Promise(h=>{var v;a=y=>{(r||u())&&h(y)},(v=e.onPause)==null||v.call(e)}).then(()=>{var h;a=void 0,r||(h=e.onContinue)==null||h.call(e)}),g=()=>{if(r)return;let h;const v=n===0?e.initialPromise:void 0;try{h=v??e.fn()}catch(y){h=Promise.reject(y)}Promise.resolve(h).then(m).catch(y=>{var j;if(r)return;const x=e.retry??(ey?0:3),b=e.retryDelay??uW,w=typeof b=="function"?b(n,y):b,k=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,y);if(t||!k){p(y);return}n++,(j=e.onFail)==null||j.call(e,n,y),rW(w).then(()=>u()?void 0:f()).then(()=>{t?p(y):g()})})};return{promise:i,cancel:o,continue:()=>(a==null||a(),i),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?g():f().then(g),i)}}function dW(){let e=[],t=0,n=l=>{l()},r=l=>{l()},a=l=>setTimeout(l,0);const i=l=>{t?e.push(l):a(()=>{n(l)})},o=()=>{const l=e;e=[],l.length&&a(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||o()}return c},batchCalls:l=>(...c)=>{i(()=>{l(...c)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{a=l}}}var Fn=dW(),Ns,D5,DM=(D5=class{constructor(){Je(this,Ns)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),eW(this.gcTime)&&ze(this,Ns,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ey?1/0:5*60*1e3))}clearGcTimeout(){J(this,Ns)&&(clearTimeout(J(this,Ns)),ze(this,Ns,void 0))}},Ns=new WeakMap,D5),rc,ac,Mr,wn,yp,Cs,ta,yi,L5,mW=(L5=class extends DM{constructor(t){super();Je(this,ta);Je(this,rc);Je(this,ac);Je(this,Mr);Je(this,wn);Je(this,yp);Je(this,Cs);ze(this,Cs,!1),ze(this,yp,t.defaultOptions),this.setOptions(t.options),this.observers=[],ze(this,Mr,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ze(this,rc,fW(this.options)),this.state=t.state??J(this,rc),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=J(this,wn))==null?void 0:t.promise}setOptions(t){this.options={...J(this,yp),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&J(this,Mr).remove(this)}setData(t,n){const r=aW(this.state.data,t,this.options);return vn(this,ta,yi).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){vn(this,ta,yi).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,a;const n=(r=J(this,wn))==null?void 0:r.promise;return(a=J(this,wn))==null||a.cancel(t),n?n.then(ea).catch(ea):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(J(this,rc))}isActive(){return this.observers.some(t=>nW(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Wk||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!tW(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=J(this,wn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=J(this,wn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),J(this,Mr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(J(this,wn)&&(J(this,Cs)?J(this,wn).cancel({revert:!0}):J(this,wn).cancelRetry()),this.scheduleGc()),J(this,Mr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||vn(this,ta,yi).call(this,{type:"invalidate"})}fetch(t,n){var c,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(J(this,wn))return J(this,wn).continueRetry(),J(this,wn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(p=>p.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,a=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(ze(this,Cs,!0),r.signal)})},i=()=>{const m=IM(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return a(p),ze(this,Cs,!1),this.options.persister?this.options.persister(m,p,this):m(p)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};a(o),(c=this.options.behavior)==null||c.onFetch(o,this),ze(this,ac,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=o.fetchOptions)==null?void 0:u.meta))&&vn(this,ta,yi).call(this,{type:"fetch",meta:(d=o.fetchOptions)==null?void 0:d.meta});const l=m=>{var p,f,g,h;Wx(m)&&m.silent||vn(this,ta,yi).call(this,{type:"error",error:m}),Wx(m)||((f=(p=J(this,Mr).config).onError)==null||f.call(p,m,this),(h=(g=J(this,Mr).config).onSettled)==null||h.call(g,this.state.data,m,this)),this.scheduleGc()};return ze(this,wn,RM({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:m=>{var p,f,g,h;if(m===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(v){l(v);return}(f=(p=J(this,Mr).config).onSuccess)==null||f.call(p,m,this),(h=(g=J(this,Mr).config).onSettled)==null||h.call(g,m,this.state.error,this),this.scheduleGc()},onError:l,onFail:(m,p)=>{vn(this,ta,yi).call(this,{type:"failed",failureCount:m,error:p})},onPause:()=>{vn(this,ta,yi).call(this,{type:"pause"})},onContinue:()=>{vn(this,ta,yi).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),J(this,wn).start()}},rc=new WeakMap,ac=new WeakMap,Mr=new WeakMap,wn=new WeakMap,yp=new WeakMap,Cs=new WeakMap,ta=new WeakSet,yi=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...pW(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return Wx(a)&&a.revert&&J(this,ac)?{...J(this,ac),fetchStatus:"idle"}:{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Fn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),J(this,Mr).notify({query:this,type:"updated",action:t})})},L5);function pW(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:$M(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function fW(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var $a,z5,hW=(z5=class extends Jv{constructor(t={}){super();Je(this,$a);this.config=t,ze(this,$a,new Map)}build(t,n,r){const a=n.queryKey,i=n.queryHash??Uk(a,n);let o=this.get(i);return o||(o=new mW({cache:this,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(o)),o}add(t){J(this,$a).has(t.queryHash)||(J(this,$a).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=J(this,$a).get(t.queryHash);n&&(t.destroy(),n===t&&J(this,$a).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Fn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return J(this,$a).get(t)}getAll(){return[...J(this,$a).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>O4(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>O4(t,r)):n}notify(t){Fn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Fn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Fn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},$a=new WeakMap,z5),Fa,In,Es,Ra,to,B5,gW=(B5=class extends DM{constructor(t){super();Je(this,Ra);Je(this,Fa);Je(this,In);Je(this,Es);this.mutationId=t.mutationId,ze(this,In,t.mutationCache),ze(this,Fa,[]),this.state=t.state||vW(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){J(this,Fa).includes(t)||(J(this,Fa).push(t),this.clearGcTimeout(),J(this,In).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ze(this,Fa,J(this,Fa).filter(n=>n!==t)),this.scheduleGc(),J(this,In).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){J(this,Fa).length||(this.state.status==="pending"?this.scheduleGc():J(this,In).remove(this))}continue(){var t;return((t=J(this,Es))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,i,o,l,c,u,d,m,p,f,g,h,v,y,x,b,w,k,j,A;ze(this,Es,RM({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,_)=>{vn(this,Ra,to).call(this,{type:"failed",failureCount:P,error:_})},onPause:()=>{vn(this,Ra,to).call(this,{type:"pause"})},onContinue:()=>{vn(this,Ra,to).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>J(this,In).canRun(this)}));const n=this.state.status==="pending",r=!J(this,Es).canStart();try{if(!n){vn(this,Ra,to).call(this,{type:"pending",variables:t,isPaused:r}),await((i=(a=J(this,In).config).onMutate)==null?void 0:i.call(a,t,this));const _=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t));_!==this.state.context&&vn(this,Ra,to).call(this,{type:"pending",context:_,variables:t,isPaused:r})}const P=await J(this,Es).start();return await((u=(c=J(this,In).config).onSuccess)==null?void 0:u.call(c,P,t,this.state.context,this)),await((m=(d=this.options).onSuccess)==null?void 0:m.call(d,P,t,this.state.context)),await((f=(p=J(this,In).config).onSettled)==null?void 0:f.call(p,P,null,this.state.variables,this.state.context,this)),await((h=(g=this.options).onSettled)==null?void 0:h.call(g,P,null,t,this.state.context)),vn(this,Ra,to).call(this,{type:"success",data:P}),P}catch(P){try{throw await((y=(v=J(this,In).config).onError)==null?void 0:y.call(v,P,t,this.state.context,this)),await((b=(x=this.options).onError)==null?void 0:b.call(x,P,t,this.state.context)),await((k=(w=J(this,In).config).onSettled)==null?void 0:k.call(w,void 0,P,this.state.variables,this.state.context,this)),await((A=(j=this.options).onSettled)==null?void 0:A.call(j,void 0,P,t,this.state.context)),P}finally{vn(this,Ra,to).call(this,{type:"error",error:P})}}finally{J(this,In).runNext(this)}}},Fa=new WeakMap,In=new WeakMap,Es=new WeakMap,Ra=new WeakSet,to=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Fn.batch(()=>{J(this,Fa).forEach(r=>{r.onMutationUpdate(t)}),J(this,In).notify({mutation:this,type:"updated",action:t})})},B5);function vW(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var mr,xp,q5,yW=(q5=class extends Jv{constructor(t={}){super();Je(this,mr);Je(this,xp);this.config=t,ze(this,mr,new Map),ze(this,xp,Date.now())}build(t,n,r){const a=new gW({mutationCache:this,mutationId:++Kp(this,xp)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){const n=gf(t),r=J(this,mr).get(n)??[];r.push(t),J(this,mr).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=gf(t);if(J(this,mr).has(n)){const a=(r=J(this,mr).get(n))==null?void 0:r.filter(i=>i!==t);a&&(a.length===0?J(this,mr).delete(n):J(this,mr).set(n,a))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=J(this,mr).get(gf(t)))==null?void 0:r.find(a=>a.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=J(this,mr).get(gf(t)))==null?void 0:r.find(a=>a!==t&&a.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Fn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...J(this,mr).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>I4(n,r))}findAll(t={}){return this.getAll().filter(n=>I4(t,n))}notify(t){Fn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Fn.batch(()=>Promise.all(t.map(n=>n.continue().catch(ea))))}},mr=new WeakMap,xp=new WeakMap,q5);function gf(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function F4(e){return{onFetch:(t,n)=>{var d,m,p,f,g;const r=t.options,a=(p=(m=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:m.fetchMore)==null?void 0:p.direction,i=((f=t.state.data)==null?void 0:f.pages)||[],o=((g=t.state.data)==null?void 0:g.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let h=!1;const v=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?h=!0:t.signal.addEventListener("abort",()=>{h=!0}),t.signal)})},y=IM(t.options,t.fetchOptions),x=async(b,w,k)=>{if(h)return Promise.reject();if(w==null&&b.pages.length)return Promise.resolve(b);const j={queryKey:t.queryKey,pageParam:w,direction:k?"backward":"forward",meta:t.options.meta};v(j);const A=await y(j),{maxPages:P}=t.options,_=k?oW:iW;return{pages:_(b.pages,A,P),pageParams:_(b.pageParams,w,P)}};if(a&&i.length){const b=a==="backward",w=b?xW:R4,k={pages:i,pageParams:o},j=w(r,k);l=await x(k,j,b)}else{const b=e??i.length;do{const w=c===0?o[0]??r.initialPageParam:R4(r,l);if(c>0&&w==null)break;l=await x(l,w),c++}while(c<b)}return l};t.options.persister?t.fetchFn=()=>{var h,v;return(v=(h=t.options).persister)==null?void 0:v.call(h,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function R4(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function xW(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ct,ho,go,ic,oc,vo,sc,lc,U5,bW=(U5=class{constructor(e={}){Je(this,Ct);Je(this,ho);Je(this,go);Je(this,ic);Je(this,oc);Je(this,vo);Je(this,sc);Je(this,lc);ze(this,Ct,e.queryCache||new hW),ze(this,ho,e.mutationCache||new yW),ze(this,go,e.defaultOptions||{}),ze(this,ic,new Map),ze(this,oc,new Map),ze(this,vo,0)}mount(){Kp(this,vo)._++,J(this,vo)===1&&(ze(this,sc,MM.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,Ct).onFocus())})),ze(this,lc,Yh.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,Ct).onOnline())})))}unmount(){var e,t;Kp(this,vo)._--,J(this,vo)===0&&((e=J(this,sc))==null||e.call(this),ze(this,sc,void 0),(t=J(this,lc))==null||t.call(this),ze(this,lc,void 0))}isFetching(e){return J(this,Ct).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return J(this,ho).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=J(this,Ct).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=J(this,Ct).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(T4(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return J(this,Ct).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=J(this,Ct).get(r.queryHash),i=a==null?void 0:a.state.data,o=JU(t,i);if(o!==void 0)return J(this,Ct).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Fn.batch(()=>J(this,Ct).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=J(this,Ct).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=J(this,Ct);Fn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=J(this,Ct),r={type:"active",...e};return Fn.batch(()=>(n.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Fn.batch(()=>J(this,Ct).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(ea).catch(ea)}invalidateQueries(e={},t={}){return Fn.batch(()=>
381{if(J(this,Ct).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Fn.batch(()=>J(this,Ct).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(ea)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(ea)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=J(this,Ct).build(this,t);return n.isStaleByTime(T4(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ea).catch(ea)}fetchInfiniteQuery(e){return e.behavior=F4(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ea).catch(ea)}ensureInfiniteQueryData(e){return e.behavior=F4(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Yh.isOnline()?J(this,ho).resumePausedMutations():Promise.resolve()}getQueryCache(){return J(this,Ct)}getMutationCache(){return J(this,ho)}getDefaultOptions(){return J(this,go)}setDefaultOptions(e){ze(this,go,e)}setQueryDefaults(e,t){J(this,ic).set(dm(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...J(this,ic).values()];let n={};return t.forEach(r=>{mm(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){J(this,oc).set(dm(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...J(this,oc).values()];let n={};return t.forEach(r=>{mm(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...J(this,go).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Uk(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Wk&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...J(this,go).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){J(this,Ct).clear(),J(this,ho).clear()}},Ct=new WeakMap,ho=new WeakMap,go=new WeakMap,ic=new WeakMap,oc=new WeakMap,vo=new WeakMap,sc=new WeakMap,lc=new WeakMap,U5),wW=S.createContext(void 0),kW=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),s.jsx(wW.Provider,{value:e,children:t}));/** 382 * @remix-run/router v1.20.0 383 * 384 * Copyright (c) Remix Software Inc. 385 * 386 * This source code is licensed under the MIT license found in the 387 * LICENSE.md file in the root directory of this source tree. 388 * 389 * @license MIT 390 */function pm(){return pm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pm.apply(this,arguments)}var wo;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(wo||(wo={}));const D4="popstate";function SW(e){e===void 0&&(e={});function t(r,a){let{pathname:i,search:o,hash:l}=r.location;return ww("",{pathname:i,search:o,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:Zh(a)}return PW(t,n,null,e)}function Dt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function LM(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function jW(){return Math.random().toString(36).substr(2,8)}function L4(e,t){return{usr:e.state,key:e.key,idx:t}}function ww(e,t,n,r){return n===void 0&&(n=null),pm({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?nu(t):t,{state:n,key:t&&t.key||r||jW()})}function Zh(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function nu(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function PW(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,l=wo.Pop,c=null,u=d();u==null&&(u=0,o.replaceState(pm({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function m(){l=wo.Pop;let v=d(),y=v==null?null:v-u;u=v,c&&c({action:l,location:h.location,delta:y})}function p(v,y){l=wo.Push;let x=ww(h.location,v,y);u=d()+1;let b=L4(x,u),w=h.createHref(x);try{o.pushState(b,"",w)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;a.location.assign(w)}i&&c&&c({action:l,location:h.location,delta:1})}function f(v,y){l=wo.Replace;let x=ww(h.location,v,y);u=d();let b=L4(x,u),w=h.createHref(x);o.replaceState(b,"",w),i&&c&&c({action:l,location:h.location,delta:0})}function g(v){let y=a.location.origin!=="null"?a.location.origin:a.location.href,x=typeof v=="string"?v:Zh(v);return x=x.replace(/ $/,"%20"),Dt(y,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,y)}let h={get action(){return l},get location(){return e(a,o)},listen(v){if(c)throw new Error("A history only accepts one active listener");
vendor: 2,650 bytes, line 390
390return a.addEventListener(D4,m),c=v,()=>{a.removeEventListener(D4,m),c=null}},createHref(v){return t(a,v)},createURL:g,encodeLocation(v){let y=g(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:f,go(v){return o.go(v)}};return h}var z4;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(z4||(z4={}));function AW(e,t,n){return n===void 0&&(n="/"),_W(e,t,n,!1)}function _W(e,t,n,r){let a=typeof t=="string"?nu(t):t,i=Vk(a.pathname||"/",n);if(i==null)return null;let o=zM(e);NW(o);let l=null;for(let c=0;l==null&&c<o.length;++c){let u=LW(i);l=RW(o[c],u,r)}return l}function zM(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let a=(i,o,l)=>{let c={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};c.relativePath.startsWith("/")&&(Dt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=Io([r,c.relativePath]),d=n.concat(c);i.children&&i.children.length>0&&(Dt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),zM(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:$W(u,i.index),routesMeta:d})};return e.forEach((i,o)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))a(i,o);else for(let c of BM(i.path))a(i,o,c)}),t}function BM(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=BM(r.join("/")),l=[];return l.push(...o.map(c=>c===""?i:[i,c].join("/"))),a&&l.push(...o),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function NW(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:FW(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const CW=/^:[\w-]+$/,EW=3,TW=2,OW=1,IW=10,MW=-2,B4=e=>e==="*";function $W(e,t){let n=e.split("/"),r=n.length;return n.some(B4)&&(r+=MW),t&&(r+=TW),n.filter(a=>!B4(a)).reduce((a,i)=>a+(CW.test(i)?EW:i===""?OW:IW),r)}function FW(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function RW(e,t,n){let{routesMeta:r}=e,a={},i="/",o=[];for(let l=0;l<r.length;++l){let c=r[l],u=l===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",m=q4({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),p=c.route;if(!m&&u&&n&&!r[r.length-1].route.index&&(m=q4({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!m)return null;
vendor: 9,881 bytes, lines 390-399
390Object.assign(a,m.params),o.push({params:a,pathname:Io([i,m.pathname]),pathnameBase:UW(Io([i,m.pathnameBase])),route:p}),m.pathnameBase!=="/"&&(i=Io([i,m.pathnameBase]))}return o}function q4(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=DW(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce((u,d,m)=>{let{paramName:p,isOptional:f}=d;if(p==="*"){let h=l[m]||"";o=i.slice(0,i.length-h.length).replace(/(.)\/+$/,"$1")}const g=l[m];return f&&!g?u[p]=void 0:u[p]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function DW(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),LM(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function LW(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return LM(!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 Vk(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function zW(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?nu(e):e;return{pathname:n?n.startsWith("/")?n:BW(n,t):t,search:WW(r),hash:VW(a)}}function BW(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Vx(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function qW(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Hk(e,t){let n=qW(e);return t?n.map((r,a)=>a===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Kk(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=nu(e):(a=pm({},e),Dt(!a.pathname||!a.pathname.includes("?"),Vx("?","pathname","search",a)),Dt(!a.pathname||!a.pathname.includes("#"),Vx("#","pathname","hash",a)),Dt(!a.search||!a.search.includes("#"),Vx("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,l;if(o==null)l=n;else{let m=t.length-1;if(!r&&o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),m-=1;a.pathname=p.join("/")}l=m>=0?t[m]:"/"}let c=zW(a,l),u=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const Io=e=>e.join("/").replace(/\/\/+/g,"/"),UW=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),WW=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,VW=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function HW(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const qM=["post","put","patch","delete"];new Set(qM);const KW=["get",...qM];new Set(KW);/** 391 * React Router v6.27.0 392 * 393 * Copyright (c) Remix Software Inc. 394 * 395 * This source code is licensed under the MIT license found in the 396 * LICENSE.md file in the root directory of this source tree. 397 * 398 * @license MIT 399 */function fm(){return fm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fm.apply(this,arguments)}const Gk=S.createContext(null),GW=S.createContext(null),Qo=S.createContext(null),ty=S.createContext(null),ri=S.createContext({outlet:null,matches:[],isDataRoute:!1}),UM=S.createContext(null);function QW(e,t){let{relative:n}=t===void 0?{}:t;ru()||Dt(!1);let{basename:r,navigator:a}=S.useContext(Qo),{hash:i,pathname:o,search:l}=VM(e,{relative:n}),c=o;return r!=="/"&&(c=o==="/"?r:Io([r,o])),a.createHref({pathname:c,search:l,hash:i})}function ru(){return S.useContext(ty)!=null}function hn(){return ru()||Dt(!1),S.useContext(ty).location}function WM(e){S.useContext(Qo).static||S.useLayoutEffect(e)}function au(){let{isDataRoute:e}=S.useContext(ri);return e?uV():YW()}function YW(){ru()||Dt(!1);let e=S.useContext(Gk),{basename:t,future:n,navigator:r}=S.useContext(Qo),{matches:a}=S.useContext(ri),{pathname:i}=hn(),o=JSON.stringify(Hk(a,n.v7_relativeSplatPath)),l=S.useRef(!1);return WM(()=>{l.current=!0}),S.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let m=Kk(u,JSON.parse(o),i,d.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Io([t,m.pathname])),(d.replace?r.replace:r.push)(m,d.state,d)},[t,r,o,i,e])}const ZW=S.createContext(null);function XW(e){let t=S.useContext(ri).outlet;return t&&S.createElement(ZW.Provider,{value:e},t)}function Wi(){let{matches:e}=S.useContext(ri),t=e[e.length-1];return t?t.params:{}}function VM(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=S.useContext(Qo),{matches:a}=S.useContext(ri),{pathname:i}=hn(),o=JSON.stringify(Hk(a,r.v7_relativeSplatPath));return S.useMemo(()=>Kk(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function JW(e,t){return eV(e,t)}function eV(e,t,n,r){ru()||Dt(!1);let{navigator:a}=S.useContext(Qo),{matches:i}=S.useContext(ri),o=i[i.length-1],l=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let u=hn(),d;if(t){var m;let v=typeof t=="string"?nu(t):t;c==="/"||(m=v.pathname)!=null&&m.startsWith(c)||Dt(!1),d=v}else d=u;let p=d.pathname||"/",f=p;if(c!=="/"){let v=c.replace(/^\//,"").split("/");f="/"+p.replace(/^\//,"").split("/").slice(v.length).join("/")}let g=AW(e,{pathname:f}),h=iV(g&&g.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:Io([c,a.encodeLocation?a.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?c:Io([c,a.encodeLocation?a.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n,r);return t&&h?S.createElement(ty.Provider,{value:{location:fm({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:wo.Pop}},h):h}function tV(){let e=cV(),t=HW(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:a},n):null,null)}const nV=S.createElement(tV,null);class rV extends S.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?S.createElement(ri.Provider,{value:this.props.routeContext},S.createElement(UM.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function aV(e){let{routeContext:t,match:n,children:r}=e,a=S.useContext(Gk);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(ri.Provider,{value:t},r)}function iV(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,l=(a=n)==null?void 0:a.errors;if(l!=null){let d=o.findIndex(m=>m.route.id&&(l==null?void 0:l[m.route.id])!==void 0);d>=0||Dt(!1),o=o.slice(0,Math.min(o.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let m=o[d];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(u=d),m.route.id){let{loaderData:p,errors:f}=n,g=m.route.loader&&p[m.route.id]===void 0&&(!f||f[m.route.id]===void 0);if(m.route.lazy||g){c=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,m,p)=>{let f,g=!1,h=null,v=null;n&&(f=l&&m.route.id?l[m.route.id]:void 0,h=m.route.errorElement||nV,c&&(u<0&&p===0?(g=!0,v=null):u===p&&(g=!0,v=m.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,p+1)),x=()=>{let b;return f?b=h:g?b=v:m.route.Component?b=S.createElement(m.route.Component,null):m.route.element?b=m.route.element:b=d,S.createElement(aV,{match:m,routeContext:{outlet:d,matches:y,isDataRoute:n!=null},children:b})};return n&&(m.route.ErrorBoundary||m.route.errorElement||p===0)?S.createElement(rV,{location:n.location,revalidation:n.revalidation,component:h,error:f,children:x(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):x()},null)}var HM=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(HM||{}),Xh=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useL
399oaderData",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}(Xh||{});function oV(e){let t=S.useContext(Gk);return t||Dt(!1),t}function sV(e){let t=S.useContext(GW);return t||Dt(!1),t}function lV(e){let t=S.useContext(ri);return t||Dt(!1),t}function KM(e){let t=lV(),n=t.matches[t.matches.length-1];return n.route.id||Dt(!1),n.route.id}function cV(){var e;let t=S.useContext(UM),n=sV(Xh.UseRouteError),r=KM(Xh.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function uV(){let{router:e}=oV(HM.UseNavigateStable),t=KM(Xh.UseNavigateStable),n=S.useRef(!1);return WM(()=>{n.current=!0}),S.useCallback(function(a,i){i===void 0&&(i={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,fm({fromRouteId:t},i)))},[e,t])}function Rn(e){let{to:t,replace:n,state:r,relative:a}=e;ru()||Dt(!1);let{future:i,static:o}=S.useContext(Qo),{matches:l}=S.useContext(ri),{pathname:c}=hn(),u=au(),d=Kk(t,Hk(l,i.v7_relativeSplatPath),c,a==="path"),m=JSON.stringify(d);return S.useEffect(()=>u(JSON.parse(m),{replace:n,state:r,relative:a}),[u,m,a,n,r]),null}function dV(e){return XW(e.context)}function mt(e){Dt(!1)}function mV(e){let{basename:t="/",children:n=null,location:r,navigationType:a=wo.Pop,navigator:i,static:o=!1,future:l}=e;ru()&&Dt(!1);let c=t.replace(/^\/*/,"/"),u=S.useMemo(()=>({basename:c,navigator:i,static:o,future:fm({v7_relativeSplatPath:!1},l)}),[c,l,i,o]);typeof r=="string"&&(r=nu(r));let{pathname:d="/",search:m="",hash:p="",state:f=null,key:g="default"}=r,h=S.useMemo(()=>{let v=Vk(d,c);return v==null?null:{location:{pathname:v,search:m,hash:p,state:f,key:g},navigationType:a}},[c,d,m,p,f,g,a]);return h==null?null:S.createElement(Qo.Provider,{value:u},S.createElement(ty.Provider,{children:n,value:h}))}function GM(e){let{children:t,location:n}=e;return JW(kw(t),n)}new Promise(()=>{});function kw(e,t){t===void 0&&(t=[]);let n=[];return S.Children.forEach(e,(r,a)=>{if(!S.isValidElement(r))return;let i=[...t,a];if(r.type===S.Fragment){n.push.apply(n,kw(r.props.children,i));return}r.type!==mt&&Dt(!1),!r.props.index||!r.props.children||Dt(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=kw(r.props.children,i)),n.push(o)}),n}/** 400 * React Router DOM v6.27.0 401 * 402 * Copyright (c) Remix Software Inc. 403 * 404 * This source code is licensed under the MIT license found in the 405 * LICENSE.md file in the root directory of this source tree. 406 * 407 * @license MIT 408 */function Sw(){return Sw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sw.apply(this,arguments)}function pV(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function fV(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hV(e,t){return e.button===0&&(!t||t==="_self")&&!fV(e)}function jw(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}function gV(e,t){let n=jw(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(i=>{n.append(a,i)})}),n}const vV=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],yV="6";try{window.__reactRouterVersion=yV}catch{}const xV="startTransition",U4=eT[xV];function bV(e){let{basename:t,children:n,future:r,window:a}=e,i=S.useRef();i.current==null&&(i.current=SW({window:a,v5Compat:!0}));let o=i.current,[l,c]=S.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},d=S.useCallback(m=>{u&&U4?U4(()=>c(m)):c(m)},[c,u]);return S.useLayoutEffect(()=>o.listen(d),[o,d]),S.createElement(mV,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o,future:r})}const wV=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kV=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ee=S.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:l,target:c,to:u,preventScrollReset:d,viewTransition:m}=t,p=pV(t,vV),{basename:f}=S.useContext(Qo),g,h=!1;if(typeof u=="string"&&kV.test(u)&&(g=u,wV))try{let b=new URL(window.location.href),w=u.startsWith("//")?new URL(b.protocol+u):new URL(u),k=Vk(w.pathname,f);w.origin===b.origin&&k!=null?u=k+w.search+w.hash:h=!0}catch{}let v=QW(u,{relative:a}),y=SV(u,{replace:o,state:l,target:c,preventScrollReset:d,relative:a,viewTransition:m});function x(b){r&&r(b),b.defaultPrevented||y(b)}return S.createElement("a",Sw({},p,{href:g||v,onClick:h||i?r:x,ref:n,target:c}))});var W4;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(W4||(W4={}));var V4;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(V4||(V4={}));function SV(e,t){let{target:n,replace:r,state:a,preventScrollReset:i,relative:o,viewTransition:l}=t===void 0?{}:t,c=au(),u=hn(),d=VM(e,{relative:o});return S.useCallback(m=>
408{if(hV(m,n)){m.preventDefault();let p=r!==void 0?r:Zh(u)===Zh(d);c(e,{replace:p,state:a,preventScrollReset:i,relative:o,viewTransition:l})}},[u,c,d,r,a,n,e,i,o,l])}function jV(e){let t=S.useRef(jw(e)),n=S.useRef(!1),r=hn(),a=S.useMemo(()=>gV(r.search,n.current?null:t.current),[r.search]),i=au(),o=S.useCallback((l,c)=>{const u=jw(typeof l=="function"?l(a):l);n.current=!0,i("?"+u,c)},[i,a]);return[a,o]}var PV=typeof Element<"u",AV=typeof Map=="function",_V=typeof Set=="function",NV=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ch(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,a;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ch(e[r],t[r]))return!1;return!0}var i;if(AV&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!ch(r.value[1],t.get(r.value[0])))return!1;return!0}if(_V&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(NV&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[r]))return!1;if(PV&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((a[r]==="_owner"||a[r]==="__v"||a[r]==="__o")&&e.$$typeof)&&!ch(e[a[r]],t[a[r]]))return!1;return!0}return e!==e&&t!==t}var CV=function(t,n){try{return ch(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const EV=Qe(CV);var TV=function(e,t,n,r,a,i,o,l){if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,a,i,o,l],d=0;c=new Error(t.replace(/%s/g,function(){return u[d++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},OV=TV;const H4=Qe(OV);var IV=function(t,n,r,a){var i=r?r.call(a,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var o=Object.keys(t),l=Object.keys(n);if(o.length!==l.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(n),u=0;u<o.length;u++){var d=o[u];if(!c(d))return!1;var m=t[d],p=n[d];if(i=r?r.call(a,m,p,d):void 0,i===!1||i===void 0&&m!==p)return!1}return!0};const MV=Qe(IV);var QM=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(QM||{}),Hx={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},K4=Object.values(QM),Qk={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},$V=Object.entries(Qk).reduce((e,[t,n])=>(e[n]=t,e),{}),da="data-rh",Gl={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Ql=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},FV=e=>{let t=Ql(e,"title");const n=Ql(e,Gl.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Ql(e,Gl.DEFAULT_TITLE);return t||r||void 0},RV=e=>Ql(e,Gl.ON_CHANGE_CLIENT_STATE)||(()=>{}),Kx=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),DV=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const a=Object.keys(r);for(let i=0;i<a.length;i+=1){const l=a[i].toLowerCase();if(e.indexOf(l)!==-1&&r[l])return n.concat(r)}}return n},[]),LV=e=>console&&typeof console.warn=="function"&&console.warn(e),Lu=(e,t,n)=>{const r={};return n.filter(a=>Array.isArray(a[e])?!0:(typeof a[e]<"u"&&LV(`Helmet: ${e} should be of type "Array". Instead found type "${typeof a[e]}"`),!1)).map(a=>a[e]).reverse().reduce((a,i)=>{const o={};i.filter(c=>{let u;const d=Object.keys(c);for(let p=0;p<d.length;p+=1){const f=d[p],g=f.toLowerCase();t.indexOf(g)!==-1&&!(u==="rel"&&c[u].toLowerCase()==="canonical")&&!(g==="rel"&&c[g].toLowerCase()==="stylesheet")&&(u=g),t.indexOf(f)!==-1&&(f==="innerHTML"||f==="cssText"||f==="itemprop")&&(u=f)}if(!u||!c[u])return!1;const m=c[u].toLowerCase();return r[u]||(r[u]={}),o[u]||(o[u]={}),r[u][m]?!1:(o[u][m]=!0,!0)}
408).reverse().forEach(c=>a.push(c));const l=Object.keys(o);for(let c=0;c<l.length;c+=1){const u=l[c],d={...r[u],...o[u]};r[u]=d}return a},[]).reverse()},zV=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},BV=e=>({baseTag:DV(["href"],e),bodyAttributes:Kx("bodyAttributes",e),defer:Ql(e,Gl.DEFER),encode:Ql(e,Gl.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Kx("htmlAttributes",e),linkTags:Lu("link",["rel","href"],e),metaTags:Lu("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Lu("noscript",["innerHTML"],e),onChangeClientState:RV(e),scriptTags:Lu("script",["src","innerHTML"],e),styleTags:Lu("style",["cssText"],e),title:FV(e),titleAttributes:Kx("titleAttributes",e),prioritizeSeoTags:zV(e,Gl.PRIORITIZE_SEO_TAGS)}),YM=e=>Array.isArray(e)?e.join(""):e,qV=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},Gx=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(qV(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},G4=(e,t)=>({...e,[t]:void 0}),UV=["noscript","script","style"],Pw=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),ZM=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),WV=(e,t,n,r)=>{const a=ZM(n),i=YM(t);return a?`<${e} ${da}="true" ${a}>${Pw(i,r)}</${e}>`:`<${e} ${da}="true">${Pw(i,r)}</${e}>`},VV=(e,t,n=!0)=>t.reduce((r,a)=>{const i=a,o=Object.keys(i).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,d)=>{const m=typeof i[d]>"u"?d:`${d}="${Pw(i[d],n)}"`;return u?`${u} ${m}`:m},""),l=i.innerHTML||i.cssText||"",c=UV.indexOf(e)===-1;return`${r}<${e} ${da}="true" ${o}${c?"/>":`>${l}</${e}>`}`},""),XM=(e,t={})=>Object.keys(e).reduce((n,r)=>{const a=Qk[r];return n[a||r]=e[r],n},t),HV=(e,t,n)=>{const r={key:t,[da]:!0},a=XM(n,r);return[M.createElement("title",a,t)]},uh=(e,t)=>t.map((n,r)=>{const a={key:r,[da]:!0};return Object.keys(n).forEach(i=>{const l=Qk[i]||i;if(l==="innerHTML"||l==="cssText"){const c=n.innerHTML||n.cssText;a.dangerouslySetInnerHTML={__html:c}}else a[l]=n[i]}),M.createElement(e,a)}),Or=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>HV(e,t.title,t.titleAttributes),toString:()=>WV(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>XM(t),toString:()=>ZM(t)};default:return{toComponent:()=>uh(e,t),toString:()=>VV(e,t,n)}}},KV=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const a=Gx(e,Hx.meta),i=Gx(t,Hx.link),o=Gx(n,Hx.script);return{priorityMethods:{toComponent:()=>[...uh("meta",a.priority),...uh("link",i.priority),...uh("script",o.priority)],toString:()=>`${Or("meta",a.priority,r)} ${Or("link",i.priority,r)} ${Or("script",o.priority,r)}`},metaTags:a.default,linkTags:i.default,scriptTags:o.default}},GV=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:a,noscriptTags:i,styleTags:o,title:l="",titleAttributes:c,prioritizeSeoTags:u}=e;let{linkTags:d,metaTags:m,scriptTags:p}=e,f={toComponent:()=>{},toString:()=>""};return u&&({priorityMethods:f,linkTags:d,metaTags:m,scriptTags:p}=KV(e)),{priority:f,base:Or("base",t,r),bodyAttributes:Or("bodyAttributes",n,r),htmlAttributes:Or("htmlAttributes",a,r),link:Or("link",d,r),meta:Or("meta",m,r),noscript:Or("noscript",i,r),script:Or("script",p,r),style:Or("style",o,r),title:Or("title",{title:l,titleAttributes:c},r)}},Aw=GV,vf=[],JM=!!(typeof window<"u"&&window.document&&window.document.createElement),_w=class{constructor(e,t){Kn(this,"instances",[]);Kn(this,"canUseDOM",JM);Kn(this,"context");Kn(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?vf:this.instances,add:e=>{(this.canUseDOM?vf:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?vf:this.instances).indexOf(e);(this.canUseDOM?vf:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Aw({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},QV={},e8=M.createContext(QV),Ts,t8=(Ts=class extends S.Component{constructor(n){super(n);Kn(this,"helmetData");this.helmetData=new _w(this.props.context||{},Ts.canUseDOM)}render(){return M.createElement(e8.Provider,{value:this.helmetData.value},this.props.children)}},Kn(Ts,"canUseDOM",JM),Ts),pl=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${da}]`),a=[].slice.call(r),i=[];let o;return t&&t.length&&t.forEach(l=>{const c=document.createElement(e);for(const u in l)if(Object.prototype.hasOwnProperty.call(l,u))if(u==="innerHTML")c.innerHTML=l.innerHTML;else if(u==="cssText")c.styleSheet?c.styleSheet.cssText=l.cssText:c.appendChild(document.createTextNode(l.cssText));else{const d=u,m=typeof l[d]>"u"?"":l[d];c.setAttribute(u,m)}c.setAttribute(da,"true"),a.some((u,d)=>(o=d,c.isEqualNode(u)))?a.splice(o,1):i.push(c)}),a.forEach(l=>{var c;return(c=l.parentNode)==null?void 0:c.removeChild(l)}
408),i.forEach(l=>n.appendChild(l)),{oldTags:a,newTags:i}},Nw=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(da),a=r?r.split(","):[],i=[...a],o=Object.keys(t);for(const l of o){const c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),a.indexOf(l)===-1&&a.push(l);const u=i.indexOf(l);u!==-1&&i.splice(u,1)}for(let l=i.length-1;l>=0;l-=1)n.removeAttribute(i[l]);a.length===i.length?n.removeAttribute(da):n.getAttribute(da)!==o.join(",")&&n.setAttribute(da,o.join(","))},YV=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=YM(e)),Nw("title",t)},Q4=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:a,linkTags:i,metaTags:o,noscriptTags:l,onChangeClientState:c,scriptTags:u,styleTags:d,title:m,titleAttributes:p}=e;Nw("body",r),Nw("html",a),YV(m,p);const f={baseTag:pl("base",n),linkTags:pl("link",i),metaTags:pl("meta",o),noscriptTags:pl("noscript",l),scriptTags:pl("script",u),styleTags:pl("style",d)},g={},h={};Object.keys(f).forEach(v=>{const{newTags:y,oldTags:x}=f[v];y.length&&(g[v]=y),x.length&&(h[v]=f[v].oldTags)}),t&&t(),c(e,g,h)},zu=null,ZV=e=>{zu&&cancelAnimationFrame(zu),e.defer?zu=requestAnimationFrame(()=>{Q4(e,()=>{zu=null})}):(Q4(e),zu=null)},XV=ZV,Y4=class extends S.Component{constructor(){super(...arguments);Kn(this,"rendered",!1)}shouldComponentUpdate(t){return!MV(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const a=BV(t.get().map(i=>{const o={...i.props};return delete o.context,o}));t8.canUseDOM?XV(a):Aw&&(r=Aw(a)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},d0,Na=(d0=class extends S.Component{shouldComponentUpdate(e){return!EV(G4(this.props,"helmetData"),G4(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return H4(K4.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${K4.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),H4(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return M.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:a,...i}=r.props,o=Object.keys(i).reduce((c,u)=>(c[$V[u]||u]=i[u],c),{});let{type:l}=r;
408switch(typeof l=="symbol"?l=l.toString():this.warnOnInvalidChildren(r,a),l){case"Symbol(react.fragment)":t=this.mapChildrenToProps(a,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,o,a);break;default:t=this.mapObjectTypeChildren(r,t,o,a);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof _w)){const a=r;r=new _w(a.context,!0),delete n.helmetData}return r?M.createElement(Y4,{...n,context:r.value}):M.createElement(e8.Consumer,null,a=>M.createElement(Y4,{...n,context:a}))}},Kn(d0,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),d0);const JV={"header.home":"Home","header.solutions":"Solutions","header.solutions.aiSolutions":"AI Solutions","header.solutions.proprietaryAi":"Proprietary AI","header.solutions.demandSupply":"Demand & Supply","header.solutions.dataMonetization":"Data Monetization","header.solutions.predictiveOps":"Predictive Operations","header.solutions.behaviorConversion":"Behavior & Conversion","header.successStories":"Success Stories","header.community":"Community","header.insights":"Insights","header.intelligence":"Applied Intelligence","header.proprietaryAi":"Proprietary AI","header.research":"Applied Intelligence","header.research.hub":"i6 Executive Research","header.research.media":"i6 in the Media","header.research.blog":"i6 Blog","header.research.comingSoon":"Coming soon","header.contact":"Contact Us","header.getStarted":"Get Started","blog.pageTitle":"i6 Blog","blog.pageSubtitle":"Reflections, analyses and ideas from the infinity6 team on applied business AI.","blog.badge":"i6 BLOG","blog.readArticle":"Read article","blog.recentTitle":"Recent insights","blog.filterTheme":"Theme","blog.filterTags":"Tags","blog.filterAll":"All","blog.empty":"New articles coming soon","blog.minRead":"min read","blog.themeFallback":"Uncategorized","hero.infinite":"Endless","hero.possibilities":"Possibilities","hero.poweredByAI":"Powered by AI","hero.description":"Rethink what's possible. Build smarter. Move faster. Grow beyond limits with adaptive AI.","hero.rethinkLine1":"Rethink what's possible. Build smarter. Move faster.","hero.rethinkLine2":"Grow beyond limits with adaptive AI.","hero.startJourney":"Start Your Journey","hero.watchDemo":"See the Future","results.mainTitle":"Real AI Impact","results.mainSubtitle":"Scaling Business Growth","results.title":"Real AI Impact That Drives Business Growth","results.subtitle1":"No more surface-level intelligence. No more delays. No more complexity.","results.subtitle2":"We enable business results that matter: more sales, better margins, faster operations and smarter strategies - with applied intelligence.","results.error.loading":"Unable to load content. Please try again later.","results.conversionRate.title":"Conversion Rate Optimization","results.conversionRate.description":"Advanced AI algorithms boost conversion rates through intelligent customer behavior analysis and personalized recommendations","results.crmCost.title":"CRM Cost Reduction","results.crmCost.description":"Streamlined operations and automated processes significantly reduce operational expenses while maintaining service quality","results.avgTicket.title":"Average Ticket Enhancement","results.avgTicket.description":"Substantial increase in average ticket value through AI-guided cross-selling with diversity balancing","results.bounceRate.title":"Bounce Rate Optimization","results.bounceRate.description":"Significant reduction of bounce rate in digital funnels through AI-driven user experience optimization","results.proposalEngagement.title":"Enhanced Proposal Engagement","results.proposalEngagement.description":"Data-driven insights and AI-powered personalization dramatically improve proposal success rates","results.realTimeRec.title":"Real-Time Recommendations","results.realTimeRec.description":"Predictive behavior recommendations with equal precision for logged users (with history) and anonymous users (without history)","results.productDiscovery.title":"Relevant Product Discovery","results.productDiscovery.description":"AI-powered product complementarity discovery based on navigation behavior patterns and user preferences","results.dynamicPricing.title":"Dynamic Pricing Intelligence","results.dynamicPricing.description":"Self
408-reinforcing pricing model adjusting prices based on demand, where adjustments increase either demand or margin, feeding back into the system","results.marketDemand.title":"Market Demand Forecasting","results.marketDemand.description":"AI-powered forecast precision directing production plans and commercial goals, optimizing stock breaks and turnover","results.rapidImplementation.title":"Rapid Implementation","results.rapidImplementation.description":"100% API-first and cloud-native AI solutions deliver measurable outcomes in weeks, not months","stats.companiesTransformed":"Companies Transformed","stats.accuracyRate":"Accuracy Rate","stats.expertSupport":"Expert Support","stats.topEngine":"Top engine accuracy","stats.securityIssue":"Security issues","stats.leadtime":"Value capture lead time","stats.explainability":"AI engine explainability","compactSolutions.title":"Applied AI, Built for Results","compactSolutions.subtitle":"Unlock Competitive Advantage","compactSolutions.description":"Go beyond the hype. Turn intelligence into business performance with ready-to-deploy AI solutions.","compactSolutions.buttonText":"Explore Solutions","compactSolutions.learnMore":"Explore this solution","partners.our":"OUR","partners.title":"PARTNERS","partners.description":"Transforming businesses through strategic partnerships and innovative solutions.","stats.stat1Value":"97%","stats.stat2Value":"0%","stats.stat3Value":"1,5 (month)","stats.stat4Value":"100%","cta.title":"Ready to Transform Your Business?","cta.description":"Join companies that have already unlocked their infinite potential.","cta.button":"Get Started Today","video.title":"AI Solutions Demo","video.close":"Close","solutions.hero.title":"AI Solutions That","solutions.hero.subtitle":"Drive Results","solutions.hero.mainTitle":"Business AI Solutions.","solutions.hero.mainSubtitle":"Built to Perform.","solutions.hero.description":"Discover how our AI solutions can transform your business operations and drive growth.","solutions.viewAllSolutions":"View All Solutions","solutions.businessOutcomes":"Expected Results","solutions.learnMore":"Learn More","solutions.smartDiscovery.title":"Smart Discovery for Anonymous Visitors","solutions.smartDiscovery.focus":"Focus: B2B, B2C","solutions.smartDiscovery.description":"Turn anonymous traffic into engaged buyers. Our engine uses real-time signals and context to drive high-value recommendations without needing prior user history.","solutions.smartDiscovery.feature1":"Contextual Affinity Modeling","solutions.smartDiscovery.feature2":"Cold-Start Personalization","solutions.smartDiscovery.feature3":"Anonymous Visitor Intelligence","solutions.smartDiscovery.feature4":"Real-time Recommendations","solutions.smartDiscovery.outcome":"Unlocks product discovery and boosts engagement with zero historical data.","solutions.predictivePersonalization.title":"Predictive Personalization for Identified Users","solutions.predictivePersonalization.focus":"Focus: B2B, B2C, B2B2C, D2C","solutions.predictivePersonalization.description":"Deliver truly personalized experiences by predicting customer needs based on individual behavior and preferences. Increase retention and drive higher purchase frequency.","solutions.predictivePersonalization.feature1":"Behavioral Data Analysis","solutions.predictivePersonalization.feature2":"Omnichannel Personalization","solutions.predictivePersonalization.feature3":"Cross-sell and Up-sell Intelligence","solutions.predictivePersonalization.feature4":"Profile Enrichment and Scoring","solutions.predictivePersonalization.outcome":"Increases customer lifetime value with intelligent, behavior-based personalization.","solutions.industrialRecommendation.title":"Industrial Recommendation Intelligence","solutions.industrialRecommendation.focus":"Focus: B2B, B2B2C","solutions.industrialRecommendation.description":"Align commercial targets with intelligent recommendations that optimize assortment, pricing and POS behavior, all in real time.","solutions.industrialRecommendation.feature1":"Assortment Optimization","solutions.industrialRecommendation.feature2":"Dynamic Pricing Integration","solutions.industrialRecommendation.feature3":"C
408ommercial Target Alignment","solutions.industrialRecommendation.feature4":"POS Behavioral Forecasting","solutions.industrialRecommendation.outcome":"Drives product relevance and sell-out, aligned with revenue and margin goals.","solutions.predictiveCampaign.title":"Predictive Campaign Targeting","solutions.predictiveCampaign.focus":"Focus: B2C","solutions.predictiveCampaign.description":"Identify and activate only the users most likely to convert before your campaign even begins. Reduce CAC and increase effectiveness with precision targeting.","solutions.predictiveCampaign.feature1":"Propensity Modeling","solutions.predictiveCampaign.feature2":"Conversion Likelihood Scoring","solutions.predictiveCampaign.feature3":"Campaign Audience Refinement","solutions.predictiveCampaign.feature4":"Lead Activation Strategy","solutions.predictiveCampaign.outcome":"Maximizes ROI by targeting the right customer at the right time.","solutions.smartPricing.title":"Smart Price Optimization","solutions.smartPricing.focus":"Focus: B2B, B2C, B2B2C, D2C","solutions.smartPricing.description":"A dynamic pricing solution that adapts in real time to demand, behavior and product lifecycle. Maximize profitability without losing competitiveness.","solutions.smartPricing.feature1":"Behavior-Based Pricing","solutions.smartPricing.feature2":"Lifecycle-Aware Strategy","solutions.smartPricing.feature3":"Price Sensitivity Calibration","solutions.smartPricing.feature4":"Margin Optimization Engine","solutions.smartPricing.outcome":"Improves margin, sales velocity, and competitiveness through intelligent pricing.","solutions.demandForecasting.title":"Adaptive Demand Forecasting","solutions.demandForecasting.focus":"Focus: B2B, B2C","solutions.demandForecasting.description":"Forecast demand with precision and adaptability. Our self-adjusting models project future sales based on trends, seasonality and behaviors, empowering supply chain and commercial planning.","solutions.demandForecasting.feature1":"Self-Reinforcing Forecast Model","solutions.demandForecasting.feature2":"Extended Projection (N+M)","solutions.demandForecasting.feature3":"Seasonality and Trend Detection","solutions.demandForecasting.feature4":"Inventory and Supply Chain Alignment","solutions.demandForecasting.outcome":"Enhances demand planning accuracy and agility in fast-changing markets.","solutions.process.title":"AI Implementation Journey","solutions.process.subtitle":"Risk-free testing. Concrete potential in 30 days.","solutions.process.discovery.title":"Discovery & Business Angle Definition","solutions.process.discovery.subtitle":"Business Requirement Analysis","solutions.process.discovery.description":"Understanding your business needs and defining the optimal approach","solutions.process.data.title":"Data Sample & Anonymization","solutions.process.data.subtitle":"Secure Data Processing","solutions.process.data.description":"Collecting and preparing your data with full privacy protection","solutions.process.training.title":"Model Training & Fine-tuning","solutions.process.training.subtitle":"Business-Oriented Training","solutions.process.training.description":"Building custom AI models tailored to your specific business context","solutions.process.testing.title":"Performance Evaluation","solutions.process.testing.subtitle":"Precision & Backtest Analysis","solutions.process.testing.description":"Comprehensive testing to ensure optimal performance and accuracy","solutions.process.integration.title":"Integration & Recommendations","solutions.process.integration.subtitle":"Active Digital Channel Integration","solutions.process.integration.description":"Seamless integration across your digital ecosystem","solutions.sandbox.title":"Risk-Free Sandbox Environment & Expert Support Included","solutions.sandbox.description":"Complete testing environment with expert guidance throughout your journey","solutions.sandbox.feature1":"Risk-Free Testing Environment","solutions.sandbox.feature2":"Expert Consulting & Support","solutions.sandbox.feature3":"30-Day Concrete Results","solutions.cta.title":"Transform Your Business Today","solutions.
408cta.description":"Ready to revolutionize your business with AI? Let's discuss how we can help you achieve your goals.","solutions.cta.button":"Get Started Now","solutions.card.overview":"Overview","solutions.card.keyFeatures":"Key Features","solutions.card.businessOutcome":"Business Outcomes","solutions.card.additionalFeatures":"additional features","successStories.hero.title":"Real results from predictive AI","successStories.hero.subtitle":"in retail, industry and pharma","successStories.hero.description":"How leading companies reduced stockouts, protected margin and increased conversion with infinity6's proprietary engines.","successStories.metrics.avgROI":"Average ROI","successStories.metrics.companiesServed":"Companies Served","successStories.metrics.costSavings":"Cost Savings Generated","successStories.testimonials.title":"In their words: those already deciding first.","successStories.testimonials.subtitle":"Leaders share how anticipated decisions are driving real business impact.","successStories.testimonials.quote1":"The AI implementation exceeded our expectations. ROI was achieved within 6 months.","successStories.testimonials.author1":"David Kim, CTO at DataTech","successStories.testimonials.quote2":"Incredible support team and cutting-edge technology. Highly recommended.","successStories.testimonials.author2":"Emma Watson, CEO at InnovateCorp","successStories.testimonials.quote3":"Game-changing AI solutions that transformed our entire operation.","successStories.testimonials.author3":"Robert Taylor, VP at FutureTech","successStories.cta.title":"Ready to Write Your Success Story?","successStories.cta.description":"Join the ranks of successful companies that have transformed their operations with our AI solutions.","successStories.cta.button":"Start Your Transformation","successStories.stories.techcorp.company":"TechCorp Industries","successStories.stories.techcorp.industry":"Manufacturing","successStories.stories.techcorp.challenge":"Reducing production downtime and optimizing efficiency","successStories.stories.techcorp.solution":"AI-powered predictive maintenance and quality control","successStories.stories.techcorp.quote":"Infinity6's AI solutions transformed our manufacturing process. We've seen unprecedented efficiency gains and cost reductions.","successStories.stories.techcorp.author":"Sarah Johnson, CTO","successStories.stories.financeflow.company":"FinanceFlow","successStories.stories.financeflow.industry":"Financial Services","successStories.stories.financeflow.challenge":"Fraud detection and risk assessment automation","successStories.stories.financeflow.solution":"Machine learning algorithms for real-time transaction analysis","successStories.stories.financeflow.quote":"The AI-driven fraud detection system has revolutionized our security operations while improving customer experience.","successStories.stories.financeflow.author":"Michael Chen, VP of Operations","successStories.stories.retailmax.company":"RetailMax","successStories.stories.retailmax.industry":"E-commerce","successStories.stories.retailmax.challenge":"Personalizing customer experience and inventory management","successStories.stories.retailmax.solution":"AI recommendation engine and demand forecasting","successStories.stories.retailmax.quote":"Our customers love the personalized experience, and our inventory management has never been more efficient.","successStories.stories.retailmax.author":"Lisa Rodriguez, CEO","successStories.common.challenge":"Challenge","successStories.common.solution":"Solution","successStories.common.downtimeReduction":"Downtime Reduction","successStories.common.costSavings":"Cost Savings","successStories.common.efficiencyIncrease":"Efficiency Increase","successStories.common.fraudDetection":"Fraud Detection","successStories.common.falsePositives":"False Positives","successStories.common.processingSpeed":"Processing Speed","successStories.common.revenueGrowth":"Revenue Growth","successStories.common.customerRetention":"Customer Retention","successStories.common.inventoryTurnover":"Inventory Turnover","home.featuredStories.title":"Visionary Brands","home.featuredStories.subtitle":"Driving Scalable Results","home.featuredStories.description":"Learn how organizations turn AI
408into revenue, agility and a competitive edge.","home.featuredStories.learnMore":"Read this success story","home.featuredStories.viewAll":"View All Success Stories","home.featuredStories.techcorp.description":"AI-powered predictive maintenance reduced downtime by 75%","home.featuredStories.financeflow.description":"Machine learning fraud detection with 99.2% accuracy rate","home.featuredStories.retailmax.description":"AI recommendation engine boosted revenue by 45%","home.featuredStories.detectionRate":"Detection Rate","home.featuredStories.retention":"Retention","contact.hero.title":"Put your data","contact.hero.subtitle":"in motion","contact.hero.description":"Talk to our team about demand forecasting, margin protection, recommendation and propensity.","contact.info.emailUs":"Email Us","contact.info.emailDescription":"Send us an email anytime","contact.info.callUs":"Call Us","contact.info.callDescription":"Mon-Fri from 8am to 6pm","contact.info.visitUs":"Visit Us","contact.info.visitDescription":"Come say hello at our headquarters","contact.faq.title":"Frequently Asked Questions","contact.faq.subtitle":"Common questions about our AI solutions and services.","contact.faq.searchTitle":"Search FAQs","contact.faq.searchPlaceholder":"Type to search frequently asked questions...","contact.faq.noResults":"No FAQs found matching your search. Try different keywords.","contact.faq.q1":"How long does AI implementation take?","contact.faq.a1":"Implementation time varies depen
408ding on the project's complexity. Most of our clients see full deployment within 1 to 3 months, with measurable results starting in just a few weeks.","contact.faq.q2":"What industries do you serve?","contact.faq.a2":"We serve a wide range of industries, including retail, manufacturing, finance, healthcare, pharma, education and technology, always with a business-first approach.","contact.faq.q3":"Do you provide ongoing support?","contact.faq.a3":"Yes. We offer 24/7 support, proactive monitoring, maintenance and continuous optimization for all our AI solutions.","contact.faq.q4":"What's the typical ROI for your AI solutions?","contact.faq.a4":"Our clients commonly see up to 20x ROI within the first year, driven by increased efficiency, smarter decisions and revenue growth.","contact.faq.q5":"What kind of data do I need to get started?","contact.faq.a5":"We work with the data you already have, including behavioral, transactional, CRM or supply data. All data is 100% anonymized and handled securely. Our models are robust to gaps and can deliver value even with unstructured datasets. The first model training is conducted using a sample of your data, without requiring full integration.","contact.faq.q6":"Can your AI models integrate with our existing systems?","contact.faq.a6":"Yes. Our platform is API-first and cloud-based. The i6RecSys, i6Previsio and i6ElasticPrice engines expose REST APIs that connect to ERPs, CRMs, e-commerce platforms and internal data sources, with i6Signal as the conversational layer on top of them.","contact.faq.q7":"Do I need a data science team to use your solutions?","contact.faq.a7":"No. Our solutions are designed to be used by business teams. We take care of the AI complexity so your team can focus on action and results.","contact.faq.q8":"Is your AI explainable and compliant with data privacy regulations?","contact.faq.a8":"Absolutely. All our models include explainability layers to ensure transparency and trust. We are compliant with GDPR, LGPD and other global data privacy standards.","contact.faq.q9":"What makes Infinity6 different from other AI companies?","contact.faq.a9":"We combine predictive intelligence with real-time action, enabling smart decisions across the entire journey - with fast integration, measurable results and no heavy tech lift. We also offer a free test phase, proving the concrete potential of results before any cost is incurred.","contact.faq.q10":"Can you help define our AI strategy and use cases?","contact.faq.a10":"Yes. Our experts support you in shaping the business angle behind each AI initiative. We handle the entire feature engineering process â transforming raw data into high-impact predictive signals tailored to your goals.","contact.form.title":"Send Us a Message","contact.form.subtitle":"Fill out the form below and we'll get back to you within 24 hours.","contact.form.growthMessageLine1":"Growth starts with one message.","contact.form.growthMessageLine2":"Send yours.","contact.form.fullName":"Full Name","contact.form.namePlaceholder":"Your full name","contact.form.emailAddress":"Email Address","contact.form.emailPlaceholder":"[email protected]","contact.form.company":"Company","contact.form.companyPlaceholder":"Your company name","contact.form.phoneNumber":"Phone Number","contact.form.phonePlaceholder":"+1 (555) 123-4567","contact.form.subject":"Subject","contact.form.subjectPlaceholder":"Select a subject","contact.form.subjectGeneral":"General Inquiry","contact.form.subjectDemo":"Request Demo","contact.form.subjectPartnership":"Partnership","contact.form.subjectSupport":"Technical Support","contact.form.message":"Message","contact.form.messagePlaceholder":"Tell us about your project and how we can help...","contact.form.sendMessage":"Send Message","contact.form.messageSent":"Message Sent!","contact.form.thankYou":"Thank you for reaching out. We'll get back to you soon.","contact.map.title":"Our Global Presence","contact.map.description":"Click on each location to see detailed contact information.","contact.map.headquarters":"Headquarters","contact.map.branchOffice":"Branch Office","contact.map.brazil":"Brazil","contact.map.usa":"United States","contact.map.italy":"Italy","contact.map.hoverTip":"Hover over the cards to see contact details","contact.calendly.title":"Sometimes a quick chat is all it takes.","contact.calendly.description":"Let's cut to the chase: schedule a session with our experts now!","footer.description":"Transforming businesses with cutting-edge AI solutions. Unlock infinite possibilities with our innovative technology.","footer.quickLinks":"Quick Links","footer.contact":"Contact","footer.copyright":"© 2024 Infinity6.ai. All rights reserved.","footer.privacy":"Privacy Policy","footer.ethics":"Ethics Policy","privacy.title":"Privacy Policy","privacy.subtitle":"Your privacy is our priority. Learn how we protect and handle your data.","privacy.lastUpdated":"Last updated: December 2024","ethics.title":"Ethics Policy","ethics.subtitle":"Our commitment to ethical AI and responsible business practices.","ethics.lastUpdated":"Last updated: December 2024","notFound.title":"404","notFound.subtitle":"Oops! Page not found","notFound.backHome":"Return to Home","cookies.banner.title":"Cookie Settings","cookies.banner.description":"We use cookies to improve your experience and analyze site usage. You can customize your preferences at any time.","cookies.banner.acceptAll":"Accept All","cookies.banner.rejectAll":"Reject All","cookies.banner.customize":"Customize","cookies.banner.compliance":"In compliance with GDPR and LGPD","cookies.modal.title":"Cookie Settings","cookies.modal.description":"Manage your cookie preferences. You can change these settings at any time.","cookies.modal.required":"Required","cookies.modal.cookiesUsed":"Cookies used","cookies.modal.privacyTitle":"Privacy Information","cookies.modal.privacyDescription":"We respect your privacy and are compliant with GDPR (Europe) and LGPD (Brazil) laws. Your data is processed securely and transparently. You can change your preferences or withdraw consent at any time.","cookies.modal.rejectAll":"Reject All","cookies.modal.savePreferences":"Save Preferences","cookies.modal.acceptAll":"Accept All","cookies.categories.essential.name":"Essential","cookies.categories.essential.description":"Cookies necessary for the basic functioning of the site. Cannot be disabled.","cookies.categories.analytics.name":"Analytics","cookies.categories.analytics.description":"Cookies that help us understand how visitors interact with the site.","cookies.categories.marketing.name":"Marketing","cookies.categories.marketing.description":"Cookies used to deliver relevant ads and marketing campaigns.","cookies.categories.preferences.name":"Preferences","cookies.categories.preferences.description":"Cookies that remember your choices and personalize your experience."},eH={"header.home":"InÃcio","header.solutions":"Soluções","header.solutions.aiSolutions":"AI Solutions","header.solutions.proprietaryAi":"Proprietary AI","header.solutions.demandSupply":"Demanda & Supply","header.solutions.dataMonetization":"Monetização de Dados","header.solutions.predictiveOps":"Operações Preditivas","header.solutions.behaviorConversion":"Comportamento & Conversão","header.successStories":"Cases de Sucesso","header.community":"Comunidade","header.insights":"Insights","header.intelligence":"Inteligência Aplicada","header.proprietaryAi":"IA Proprietária","header.research":"Inteligência Aplicada","header.research.hub":"i6 Executive Research","header.research.media":"i6 na MÃdia","header.research.blog":"i6 Blog","header.research.comingSoon":"Em breve","header.contact":"Contato","header.getStarted":"Começar","blog.pageTitle":"i6 Blog","blog.pageSubtitle":"Reflexões, análises e ideias do time infinity6 sobre IA aplicada a negócios.","blog.badge":"i6 BLOG","blog.readArticle":"Ler artigo","blog.recentTitle":"Insights recentes","blog.filterTheme":"Tema","blog.filterTags":"Tags","blog.filterAll":"Todos","blog.empty":"Em breve, novos artigos","blog.minRead":"min de leitura","blog.themeFallback":"Sem tema","hero.infinite":"Infinitas","hero.possibilities":"Possibilidades","hero.poweredByAI":"Impulsionadas pela IA","hero.description":"Repense o que é possÃvel. Construa com inteligência. Avance mais rápido. Cresça sem limites com IA adaptativa.","hero.rethinkLine1":"Repense o que é possÃvel. Construa com inteligência. Avance mais rápido.","hero.rethinkLine2":"Cresça sem limites com IA adaptativa.","hero.startJourney":"Comece sua Jornada","hero.watchDemo":"Veja o Futuro","results.mainTitle":"Impacto Real da IA","results.mainSubtitle":"Escalando o Crescimento dos Negócios","results.title":"Impacto Real de IA que Impulsiona o Crescimento dos Negócios","results.subtitle1":"Chega de inteligência superficial. Chega de atrasos. Chega de complexidade.","results.subtitle2":"Nós entregamos resultados que realmente importam: mais vendas, melhores margens, operações mais ágeis e estratég
408ias mais eficientes - tudo com inteligência aplicada.","results.error.loading":"Não foi possÃvel carregar o conteúdo. Tente novamente mais tarde.","results.conversionRate.title":"Otimização da Taxa de Conversão","results.conversionRate.description":"Algoritmos avançados de IA aumentam as taxas de conversão através de análise inteligente do comportamento do cliente e recomendações personalizadas","results.crmCost.title":"Redução de Custos de CRM","results.crmCost.description":"Operações simplificadas e processos automatizados reduzem significativamente as despesas operacionais mantendo a qualidade do serviço","results.avgTicket.title":"Aumento do Ticket Médio","results.avgTicket.description":"Aumento substancial no valor do ticket médio através de cross-selling guiado por IA com balanceamento de diversidade","results.bounceRate.title":"Otimização da Taxa de Rejeição","results.bounceRate.description":"Redução significativa da taxa de rejeição em funis digitais através de otimização da experiência do usuário orientada por IA","results.proposalEngagement.title":"Engajamento Aprimorado de Propostas","results.proposalEngagement.description":"Insights orientados por dados e personalização alimentada por IA melhoram dramaticamente as taxas de sucesso das propostas","results.realTimeRec.title":"Recomendações em Tempo Real","results.realTimeRec.description":"Recomendações preditivas de comportamento com precisão igual para usuários logados (com histórico) e usuários anônimos (sem histórico)","results.productDiscovery.title":"Descoberta Relevante de Produtos","results.productDiscovery.description":"Descoberta de complementaridade de produtos alimentada por IA baseada em padrões de comportamento de navegação e preferências do usuário","results.dynamicPricing.title":"Inteligência de Precificação Dinâmica","results.dynamicPricing.description":"Modelo de precificação auto-reforçante ajustando preços com base na demanda, onde os ajustes aumentam demanda ou margem, realimentando o sistema","results.marketDemand.title":"Previsão de Demanda de Mercado","results.marketDemand.description":"Precisão de previsão alimentada por IA direcionando planos de produção e metas comerciais, otimizando quebras de estoque e rotatividade","results.rapidImplementation.title":"Implementação Rápida","results.rapidImplementation.description":"Soluções de IA 100% API-first e cloud-native entregam resultados mensuráveis em semanas, não meses","stats.companiesTransformed":"Empresas Transformadas","stats.accuracyRate":"Taxa de Precisão","stats.expertSupport":"Suporte Especializado","stats.topEngine":"Acurácia média dos modelos","stats.securityIssue":"Problemas de segurança","stats.leadtime":"Lead time de captura de valor","stats.explainability":"Recomendações com explicabilidade","compactSolutions.title":"IA Aplicada, Modelada para Resultados","compactSolutions.subtitle":"Destrave sua Vantagem Competitiva","compactSolutions.description":"Vá além do hype. Transforme inteligência em performance de negócio com soluções de IA ready-to-deploy.","compactSolutions.buttonText":"Explorar Soluções","compactSolutions.learnMore":"Explorar esta solução","partners.our":"NOSSOS","partners.title":"PARCEIROS","partners.description":"Transformando negócios através de parcerias estratégicas e soluções inovadoras.","stats.stat1Value":"97%","stats.stat2Value":"0%","stats.stat3Value":"1,5 (mês)","stats.stat4Value":"100%","cta.title":"Pronto para Transformar Seu Negócio?","cta.description":"Junte-se a empresas que já desbloquearam seu potencial infinito.","cta.button":"Comece Hoje","video.title":"Demo de Soluções de IA","video.close":"Fechar","solutions.hero.title":"Soluções de IA que","solutions.hero.subtitle":"Geram Resultados","solutions.hero.mainTitle":"Soluções de IA para Negócios.","solutions.hero.mainSubtitle":"Feitas para Performar.","solutions.hero.description":"Descubra como nossas soluções de IA podem transformar suas operações de negócio e impulsionar o crescimento.","solutions.viewAllSolutions":"Ver Todas as Soluções","solutions.businessOutcomes":"Resultados Esperados","solutions.learnMore":"Saiba Mais","solutions.smartDiscovery.title":"Descoberta Inteligente para Visitantes Anônimos","solutions.smartDiscovery.focus":"Foco: B2B, B2C","solutions.smartDiscovery.description":"Transforme tráfego anônimo em compradores engajados. Nosso motor usa sinais e contextos em tempo real para gerar recomendações de alto valor sem precisar de histórico prévio do usuário.","solutions.smartDiscovery.feature1":"Modelagem de Afinidade Contextual","solutions.smartDiscovery.feature2":"Personalização Cold-Start","solutions.smartDiscovery.feature3":"Inteligência de Visitante Anônimo","solutions.smartDiscovery.feature4":"Recomendações em Tempo Real","solutions.smartDiscovery.outcome":"Desbloqueia descoberta de produtos e aumenta engajamento com zero de dados históricos.","solutions.predictivePersonalization.title":"Personalização Preditiva para Usuários Identificados","solutions.predictivePersonalization.focus":"Foco: B2B, B2C, B2B2C, D2C","solutions.predictivePersonalization.description":"Entregue experiências verdadeiramente personalizadas prevendo necessidades do cliente baseado em comportamento individual e preferências. Aumente retenção e impulsione frequência de compra mais alta.","solutions.predictivePersonalization.feature1":"Análise de Dados Comportamentais","solutions.predictivePersonalization.feature2":"Personalização Omnichannel","solutions.predictivePersonalization.feature3":"Inteligência de Cross-sell e Up-sell","solutions.predictivePersonalization.feature4":"Enriquecimento e Pontuação de Perfil","solutions.predictivePersonalization.outcome":"Aumenta valor de vida do cliente com personalização inteligente baseada em comportamento.","solutions.industrialRecommendation.title":"Inteligência de Recomendação Industrial","solutions.industrialRecommendation.focus":"Foco: B2B, B2B2C","solutions.industrialRecommendation.description":"Alinhe metas comerciais com recomendações inteligentes que otimizam sortimento, preços e c
408omportamento de PDV, tudo em tempo real.","solutions.industrialRecommendation.feature1":"Otimização de Sortimento","solutions.industrialRecommendation.feature2":"Integração de Preços Dinâmicos","solutions.industrialRecommendation.feature3":"Alinhamento de Meta Comercial","solutions.industrialRecommendation.feature4":"Previsão Comportamental de PDV","solutions.industrialRecommendation.outcome":"Impulsiona relevância de produtos e sell-out, alinhado com metas de receita e margem.","solutions.predictiveCampaign.title":"Segmentação Preditiva de Campanha","solutions.predictiveCampaign.focus":"Foco: B2C","solutions.predictiveCampaign.description":"Identifique e ative apenas os usuários com maior probabilidade de conversão antes mesmo de sua campanha começar. Reduza CAC e aumente efetividade com segmentação de precisão.","solutions.predictiveCampaign.feature1":"Modelagem de Propensão","solutions.predictiveCampaign.feature2":"Pontuação de Probabilidade de Conversão","solutions.predictiveCampaign.feature3":"Refinamento de Audiência de Campanha","solutions.predictiveCampaign.feature4":"Estratégia de Ativação de Lead","solutions.predictiveCampaign.outcome":"Maximiza ROI segmentando o cliente certo no momento certo.","solutions.smartPricing.title":"Otimização Inteligente de Preços","solutions.smartPricing.focus":"Foco: B2B, B2C, B2B2C, D2C","solutions.smartPricing.description":"Uma solução de preços dinâmicos que se adapta em tempo real à demanda, comportamento e ciclo de vida do produto. Maximize lucratividade sem perder competitividade.","solutions.smartPricing.feature1":"Preços Baseados em Comportamento","solutions.smartPricing.feature2":"Estratégia Consciente do Ciclo de Vida","solutions.smartPricing.feature3":"Calibração de Sensibilidade de Preço","solutions.smartPricing.feature4":"Motor de Otimização de Margem","solutions.smartPricing.outcome":"Melhora margem, velocidade de vendas e competitividade através de preços inteligentes.","solutions.demandForecasting.title":"Previsão Adaptativa de Demanda","solutions.demandForecasting.focus":"Foco: B2B, B2C","solutions.demandForecasting.description":"Preveja demanda com precisão e adaptabilidade. Nossos modelos auto-ajustáveis projetam vendas futuras baseado em tendências, sazonalidade e comportamentos, capacitando planejamento de cadeia de suprimentos e comercial.","solutions.demandForecasting.feature1":"Modelo de Previsão Auto-Reforçado","solutions.demandForecasting.feature2":"Projeção Estendida (N+M)","solutions.demandForecasting.feature3":"Detecção de Sazonalidade e Tendência","solutions.demandForecasting.feature4":"Alinhamento de Inventário e Cadeia de Suprimentos","solutions.demandForecasting.outcome":"Melhora precisão de planejamento de demanda e agilidade em mercados de mudança rápida.","solutions.process.title":"Jornada de Implementação de IA","solutions.process.subtitle":"Testes sem risco. Potencial concreto em 30 dias.","solutions.process.discovery.title":"Descoberta e Definição do Ãngulo de Negócio","solutions.process.discovery.subtitle":"Análise de Requisitos de Negócio","solutions.process.discovery.description":"Entendendo suas necessidades de negócio e definindo a abordagem ideal","solutions.process.data.title":"Amostra de Dados e Anonimização","solutions.process.data.subtitle":"Processamento Seguro de Dados","solutions.process.data.description":"Coletando e preparando seus dados com proteção total de privacidade","solutions.process.training.title":"Treinamento e Ajuste Fino do Modelo","solutions.process.training.subtitle":"Treinamento Orientado ao Negócio","solutions.process.training.description":"Construindo modelos de IA customizados adaptados ao seu contexto especÃfico de negócio","solutions.process.testing.title":"Avaliação de Performance","solutions.process.testing.subtitle":"Análise de Precisão e Backtest","solutions.process.testing.description":"Testes abrangentes para garantir performance e precisão ideais","solutions.process.integration.title":"Integração e Recomendações","solutions.process.integration.subtitle":"Integração Ativa de Canal Digital","solutions.process.integration.description":"Integração perfeita através do seu ecossistema digital","solutions.sandbox.title":"Ambiente Sandbox Sem Risco e Suporte Especializado IncluÃdo","solutions.sandbox.description":"Ambiente de testes completo com orientação especializada durante toda sua jornada","solutions.sandbox.feature1":"Ambiente de Testes Sem Risco","solutions.sandbox.feature2":"Consultoria e Suporte Especializado","solutions.sandbox.feature3":"Resultados Concretos em 30 Dias","solutions.
408cta.title":"Transforme Seu Negócio Hoje","solutions.cta.description":"Pronto para revolucionar seu negócio com IA? Vamos conversar sobre como podemos ajudá-lo a alcançar seus objetivos.","solutions.cta.button":"Comece Agora","solutions.card.overview":"Visão Geral","solutions.card.keyFeatures":"Principais Funcionalidades","solutions.card.businessOutcome":"Resultado de Negócio","solutions.card.additionalFeatures":"funcionalidades adicionais","successStories.hero.title":"Resultados reais de IA preditiva","successStories.hero.subtitle":"em varejo, indústria e farma","successStories.hero.description":"Como empresas lÃderes reduziram ruptura, protegeram margem e aumentaram conversão com os engines proprietários da infinity6.","successStories.metrics.avgROI":"ROI Médio","successStories.metrics.companiesServed":"Empresas Atendidas","successStories.metrics.costSavings":"Economia de Custos Gerada","successStories.testimonials.title":"Com a palavra: quem já está decidindo antes.","successStories.testimonials.subtitle":"LÃderes compartilham como decisões antecipadas estão gerando impacto real nos negócios.","successStories.testimonials.quote1":"A implementação de IA superou nossas expectativas. O ROI foi alcançado em 6 meses.","successStories.testimonials.author1":"David Kim, CTO na DataTech","successStories.testimonials.quote2":"Equipe de suporte incrÃvel e tecnologia de ponta. Altamente recomendado.","successStories.testimonials.author2":"Emma Watson, CEO na InnovateCorp","successStories.testimonials.quote3":"Soluções de IA revolucionárias que transformaram toda nossa operação.","successStories.testimonials.author3":"Robert Taylor, VP na FutureTech","successStories.cta.title":"Pronto para Escrever Sua História de Sucesso?","successStories.cta.description":"Junte-se à s fileiras de empresas bem-sucedidas que transformaram suas operações com nossas soluções de IA.","successStories.cta.button":"Inicie Sua Transformação","successStories.stories.techcorp.company":"TechCorp Industries","successStories.stories.techcorp.industry":"Manufatura","successStories.stories.techcorp.challenge":"Reduzir tempo de inatividade da produção e otimizar eficiência","successStories.stories.techcorp.solution":"Manutenção preditiva e controle de qualidade baseados em IA","successStories.stories.techcorp.quote":"As soluções de IA da Infinity6 transformaram nosso processo de manufatura. Vimos ganhos de eficiência e reduções de custos sem precedentes.","successStories.stories.techcorp.author":"Sarah Johnson, CTO","successStories.stories.financeflow.company":"FinanceFlow","successStories.stories.financeflow.industry":"Serviços Financeiros","successStories.stories.financeflow.challenge":"Detecção de fraudes e automação de avaliação de riscos","successStories.stories.financeflow.solution":"Algoritmos de machine learning para análise de transações em tempo real","successStories.stories.financeflow.quote":"O sistema de detecção de fraudes baseado em IA revolucionou nossas operações de segurança enquanto melhora a experiência do cliente.","successStories.stories.financeflow.author":"Michael Chen, VP de Operações","successStories.stories.retailmax.company":"RetailMax","successStories.stories.retailmax.industry":"E-commerce","successStories.stories.retailmax.challenge":"Personalizar experiência do cliente e gestão de inventário","successStories.stories.retailmax.solution":"Motor de recomendação de IA e previsão de demanda","successStories.stories.retailmax.quote":"Nossos clientes adoram a experiência personalizada, e nossa gestão de inventário nunca foi mais eficiente.","successStories.stories.retailmax.author":"Lisa Rodriguez, CEO","successStories.common.challenge":"Desafio","successStories.common.solution":"Solução","successStories.common.downtimeReduction":"Redução de Tempo de Inatividade","successStories.common.costSavings":"Economia de Custos","successStories.common.efficiencyIncrease":"Aumento de Eficiência","successStories.common.fraudDetection":"Detecção de Fraudes","successStories.common.falsePositives":"Falsos Positivos","successStories.common.processingSpeed":"Velocidade de Processamento","successStories.common.revenueGrowth":"Crescimento da Receita","
408successStories.common.customerRetention":"Retenção de Clientes","successStories.common.inventoryTurnover":"Giro de Inventário","home.featuredStories.title":"Marcas Visionárias","home.featuredStories.subtitle":"Gerando Resultados Escaláveis","home.featuredStories.description":"Aprenda como organizações transformam IA em receita, agilidade e vantagem competitiva.","home.featuredStories.learnMore":"Ler este case","home.featuredStories.viewAll":"Ver Todos os Cases de Sucesso","home.featuredStories.techcorp.description":"Manutenção preditiva baseada em IA reduziu tempo de inatividade em 75%","home.featuredStories.financeflow.description":"Detecção de fraudes com machine learning com taxa de precisão de 99,2%","home.featuredStories.retailmax.description":"Motor de recomendação de IA impulsionou receita em 45%","home.featuredStories.detectionRate":"Taxa de Detecção","home.featuredStories.retention":"Retenção","contact.hero.title":"Coloque seus dados","contact.hero.subtitle":"em movimento","contact.hero.description":"Fale com nosso time sobre previsão de demanda, proteção de margem, recomendação e propensão.","contact.info.emailUs":"Envie um Email","contact.info.emailDescription":"Nos envie um email a qualquer momento","contact.info.callUs":"Ligue para Nós","contact.info.callDescription":"Seg-Sex das 8h à s 18h","contact.info.visitUs":"Nos Visite","contact.info.visitDescription":"Venha nos visitar em nossa sede","contact.faq.title":"Perguntas Frequentes","contact.faq.subtitle":"Perguntas comuns sobre nossas soluções e serviços de IA.","contact.faq.searchTitle":"Buscar FAQs","contact.faq.searchPlaceholder":"Digite para buscar perguntas frequentes...","contact.faq.noResults":"Nenhuma FAQ encontrada para sua busca. Tente palavras-chave diferentes.","contact.faq.q1":"Quanto tempo leva a implementação de IA?","contact.faq.a1":"O tempo de implementação varia dependendo da complexidade do projeto. A maioria dos nossos clientes vê implantação completa dentro de 1 a 3 meses, com resultados mensuráveis começando em apenas algumas semanas.","contact.faq.q2":"Quais indústrias vocês atendem?","contact.faq.a2":"Atendemos uma ampla gama de indústrias, incluindo varejo, manufatura, finanças, saúde, farmácia, educação e tecnologia, sempre com abordagem business-first.","contact.faq.q3":"Vocês fornecem suporte contÃnuo?","contact.faq.a3":"Sim. Oferecemos suporte 24/7, monitoramento proativo, manutenção e otimização contÃnua para todas as nossas soluções de IA.","contact.faq.q4":"Qual é o ROI tÃpico das suas soluções de IA?","contact.faq.a4":"Nossos clientes comumente veem até 20x ROI no primeiro ano, impulsionado por maior eficiência, decisões mais inteligentes e crescimento de receita.","contact.faq.q5":"Que tipo de dados preciso para começar?","contact.faq.a5":"Trabalhamos com os dados que você já tem, incluindo dados comportamentais, transacionais, CRM ou de suprimentos. Todos os dados são 100% anonimizados e tratados com segurança. Nossos modelos são robustos a lacunas e podem entregar valor mesmo com datasets não estruturados. O primeiro treinamento do modelo é conduzido usando uma amostra dos seus dados, sem necessidade de integração completa.","contact.faq.q6":"Seus modelos de IA podem se integrar com nossos sistemas existentes?","contact.faq.a6":"Sim. Nossa plataforma é API-first e baseada em nuvem. Os motores i6RecSys, i6Previsio e i6ElasticPrice expõem APIs REST que conectam a ERPs, CRMs, plataformas de e-commerce e fontes de dados internas, com o i6Signal como camada conversacional sobre eles.","contact.faq.q7":"Preciso de uma equipe de data science para usar suas soluções?","contact.faq.a7":"Não. Nossas soluções são projetadas para serem usadas por equipes de negócios. Cuidamos da complexidade da IA para que sua equipe possa focar em ação e resultados.","contact.faq.q8":"Sua IA é explicável e compatÃvel com regulamentações de privacidade de dados?","contact.faq.a8":"Absolutamente. Todos os nossos modelos incluem camadas de explicabilidade para garantir transparência e confiança. Somos compatÃveis com GDPR, LGPD e outros padrões globais de privacidade de dados.","contact.faq.q9":"O que torna a Infinity6 diferente de outras empresas de IA?","contact.faq.a9":"Combinamos inteligência preditiva com ação em tempo real, permitindo decisões inteligentes ao longo de toda a jornada - com integração rápida, resultados mensuráveis e sem peso técnico pesado. Também oferecemos uma fase de teste gratuita, provando o potencial concreto de resultados antes de qualquer custo ser incorrido.","contact.faq.q10":"Vocês podem ajudar a definir nossa estratég
408ia de IA e casos de uso?","contact.faq.a10":"Sim. Nossos especialistas apoiam você em moldar o ângulo de negócio por trás de cada iniciativa de IA. Cuidamos de todo o processo de feature engineering â transformando dados brutos em sinais preditivos de alto impacto adaptados aos seus objetivos.","contact.form.title":"Envie uma Mensagem","contact.form.subtitle":"Preencha o formulário abaixo e retornaremos em até 24 horas.","contact.form.growthMessageLine1":"O crescimento começa com uma mensagem.","contact.form.growthMessageLine2":"Envie a sua.","contact.form.fullName":"Nome Completo","contact.form.namePlaceholder":"Seu nome completo","contact.form.emailAddress":"Endereço de Email","contact.form.emailPlaceholder":"[email protected]","contact.form.company":"Empresa","contact.form.companyPlaceholder":"Nome da sua empresa","contact.form.phoneNumber":"Número de Telefone","contact.form.phonePlaceholder":"+55 (11) 99999-9999","contact.form.subject":"Assunto","contact.form.subjectPlaceholder":"Selecione um assunto","contact.form.subjectGeneral":"Consulta Geral","contact.form.subjectDemo":"Solicitar Demo","contact.form.subjectPartnership":"Parceria","contact.form.subjectSupport":"Suporte Técnico","contact.form.message":"Mensagem","contact.form.messagePlaceholder":"Conte-nos sobre seu projeto e como podemos ajudar...","contact.form.sendMessage":"Enviar Mensagem","contact.form.messageSent":"Mensagem Enviada!","contact.form.thankYou":"Obrigado por entrar em contato. Retornaremos em breve.","contact.map.title":"Nossa Presença Global","contact.map.description":"Nos encontre em três continentes. Clique em cada localização para ver informações detalhadas de contato.","contact.map.headquarters":"Sede","contact.map.branchOffice":"Filial","contact.map.brazil":"Brasil","contact.map.usa":"Estados Unidos","contact.map.italy":"Itália","contact.map.hoverTip":"Passe o mouse sobre os cartões para ver detalhes de contato","contact.calendly.title":"Ãs vezes uma conversa rápida é tudo que precisamos.","contact.calendly.description":"Vamos direto ao ponto: agende uma sessão com nossos especialistas agora!","footer.description":"Transformando negócios com soluções de IA de ponta. Desbloqueie possibilidades infinitas com nossa tecnologia inovadora.","footer.quickLinks":"Links Rápidos","footer.contact":"Contato","footer.copyright":"© 2024 Infinity6.ai. Todos os direitos reservados.","footer.privacy":"PolÃtica de Privacidade","footer.ethics":"PolÃtica de Ãtica","privacy.title":"PolÃtica de Privacidade","privacy.subtitle":"Sua privacidade é nossa prioridade. Saiba como protegemos e tratamos seus dados.","privacy.lastUpdated":"Ãltima atualização: Dezembro 2024","ethics.title":"PolÃtica de Ãtica","ethics.subtitle":"Nosso compromisso com IA ética e práticas comerciais responsáveis.","ethics.lastUpdated":"Ãltima atualização: Dezembro 2024","notFound.title":"404","notFound.subtitle":"Ops! Página não encontrada","notFound.backHome":"Voltar ao InÃcio","cookies.banner.title":"Configurações de Cookies","cookies.banner.description":"Usamos cookies para melhorar sua experiência e analisar o uso do site. Você pode personalizar suas preferências a qualquer momento.","cookies.banner.acceptAll":"Aceitar Todos","cookies.banner.rejectAll":"Rejeitar Todos","cookies.banner.customize":"Personalizar","cookies.banner.compliance":"Em conformidade com LGPD e GDPR","cookies.modal.title":"Configurações de Cookies","cookies.modal.description":"Gerencie suas preferências de cookies. Você pode alterar essas configurações a qualquer momento.","cookies.modal.required":"Obrigatório","cookies.modal.cookiesUsed":"Cookies utilizados","cookies.modal.privacyTitle":"Informações sobre Privacidade","cookies.modal.privacyDescription":"Respeitamos sua privacidade e estamos em conformidade com as leis LGPD (Brasil) e GDPR (Europa). Seus dados são processados de forma segura e transparente. Você pode alterar suas preferências ou retirar seu consentimento a qualquer momento.","cookies.modal.rejectAll":"Rejeitar Todos","cookies.modal.savePreferences":"Salvar Preferências","cookies.modal.acceptAll":"Aceitar Todos","cookies.categories.essential.name":"Essenciais","cookies.categories.essential.description":"Cookies necessários para o funcionamento básico do site. Não podem ser desabilitados.","cookies.categories.analytics.name":"Análise","cookies.categories.analytics.description":"Cookies que nos ajudam a entender como os visitantes interagem com o site.","cookies.categories.marketing.name":"Marketing","cookies.categories.marketing.description":"Cookies usados para entregar anúncios relevantes e campanhas de marketing.","cookies.categories.preferences.name":"Preferências","cookies.categories.preferences.description":"Cookies que lembram suas escolhas e personalizam sua experiência."},tH={en:JV,pt:eH},nH=["pt","pt-br","pt-pt","pt-ao","pt-mz"],Yk=e=>e==="en"||e==="pt",n8=e=>{const t=e.split("/")[1];return Yk(t)?t:"en"},r8=e=>e.replace(/^\/(en|pt)(?=\/|$)/,"")||"/",rH=(e,t)=>{if(!e.startsWith("/"))return e;const n=r8(e);return n==="/"?`/${t}`:`/${t}${n}`},a8=()=>{try{const e=localStorage.getItem("language");if(Yk(e))return e;const t=[navigator.language,...navigator.languages||[]];for(const n of t)if(nH.some(r=>n.toLowerCase().startsWith(r)))return"pt"}catch{}return"en"},wt=()=>{const e=hn(),t=n8(e.pathname);return n=>rH(n,t)},i8=S.createContext(void 0),aH=({children:e})=>{const t=hn(),n=au(),r=n8(t.pathname);S.useEffect(()=>{document.documentElement.lang=r==="pt"?"pt-BR":"en";try{localStorage.setItem("language",r)}catch{}},[r]);const a=S.useCallback(l=>{if(l===r)return;const c=r8(t.pathname),u=`/${l}${c==="/"?"":c}${t.search}${t.hash}`;n(u)},[r,t.pathname,t.search,t.hash,n]),i=S.useMemo(()=>l=>tH[r][l]||l,[r]),o=S.useMemo(()=>({language:r,setLanguage:a,t:i}),[r,a,i]);return s.jsx(i8.Provider,{value:o,children:e})},be=()=>{const e=S.useContext(i8);if(e===void 0)throw new Error("useLanguage must be used within a LanguageProvider");return e},iH=()=>{const e=hn();S.useEffect(()=>{if(e.hash){const t=e.hash.slice(1),n=(r=0)=>{const a=document.getElementById(t);a?a.scrollIntoView({behavior:"smooth",block:"start"}):r<20&&setTimeout(()=>n(r+1),50)};n();return}window.scrollTo(0,0)},[e.pathname,e.hash])},oH="/assets/logo-header-2sx9vefR.png",sH=()=>{const{language:e,setLanguage:t,t:n}=be(),r=wt(),a=hn(),[i,o]=S.useState(!1),[l,c]=S.useState(!1),[u,d]=S.useState(!1),m=S.useRef(null);S.useEffect(()=>{const h=()=>o(window.scrollY>40);return window.addEventListener("scroll",h,{passive:!0}),()=>window.removeEventListener("scroll",h)},[]),S.useEffect(()=>{const h=v=>{m.current&&!m.current.contains(v.target)&&d(!1)};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[]),S.useEffect(()=>{d(!1),c(!1)},[a.pathname]),S.useEffect(()=>{if(l){const h=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=h}}},[l]);const p=[{to:r("/i6-intelligence"),label:n("header.research.hub")},{to:r("/insights"),label:n("header.research.media")},{to:r("/i6-blog"),label:n("header.research.blog")},{to:r("/solutions/demand-supply-efficiency"),label:n("header.solutions.demandSupply")},{to:r("/solutions/data-monetization"),label:n("header.solutions.dataMonetization")},{to:r("/solutions/predictive-operations"),label:n("header.solutions.predictiveOps")},{to:r("/solutions/behavior-conversion"),label:n("header.solutions.behaviorConversion")}],f=[{to:r("/"),label:n("header.home")},{to:r("/solutions"),label:n("header.solutions")},{to:r("/our-ai"),label:n("header.proprietaryAi")},{to:r("/success-stories"),label:n("header.successStories")}],g={to:r("/contact"),label:n("header.contact")};return s.jsxs(s.Fragment,{children:[s.jsx("header",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${i?"bg-[#0B1224]/90 backdrop-blur-md shadow-lg":"bg-transparent"}`,children:s.jsxs("nav",{className:"container mx-auto flex items-center justify-between px-6 py-4",children:[s.jsx(Ee,{to:r("/"),className:"shrink-0",children:s.jsx("img",{src:oH,alt:"infinity6 logo",className:"h-12 w-auto brightness-0 invert"})}),s.jsxs("ul",{className:"hidden md:flex items-center gap-8",children:[f.map(h=>s.jsx("li",{children:s.jsx(Ee,{to:h.to,className:"text-sm font-medium text-white/80 hover:text-[#F4845F] transition-colors",children:h.label})},h.to)),s.jsxs("li",{ref:m,className:"relative",children:[s.jsxs("button",{onClick:()=>d(h=>!h),className:"inline-flex items-center gap-1 text-sm font-medium text-white/80 hover:text-[#F4845F] transition-colors","aria-expanded":u,"aria-haspopup":"true",children:[n("header.research"),s.jsx(Wv,{size:14,className:`transition-transform ${u?"rotate-180":""}`})]}),u&&s.jsx("ul",{className:"absolute left-0 top-full mt-2 w-max rounded-lg border border-white/10 bg-[#0B1224]/95 backdrop-blur-md shadow-xl py-2",children:p.map((h,v)=>s.jsx("li",{children:h.comingSoon||!h.to?s.jsxs("span",{className:"flex items-center gap-2 px-4 py-2 text-sm text-white/40 whitespace-nowrap cursor-not-allowed",children:[h.label,s.jsx("span",{className:"text-[10px] uppercase tracking-wider bg-white/10 text-white/60 px-1.5 py-0.5 rounded",children:n("header.research.comingSoon")})]}):s.jsx(Ee,{to:h.to,className:"block px-4 py-2 text-sm text-white/80 hover:text-[#F4845F] hover:bg-white/5 transition-colors whitespace-nowrap",children:h.label})},h.to??`coming-${v}`))})]}),s.jsx("li",{children:s.jsx(Ee,{to:g.to,className:"text-sm font-medium text-white/80 hover:text-[#F4845F] transition-colors",children:g.label})})]}),s.jsx("div",{className:"hidden md:flex items-center gap-1 rounded-full border border-[#F4845F]/30 px-1 py-0.5",children:["pt","en"].map(h=>s.jsx("button",{onClick:()=>t(h),className:`px-3 py-1 rounded-full text-xs font-semibold transition-all ${e===h?"bg-[#F4845F] text-white":"text-white/60 hover:text-white"}`,children:h.toUpperCase()},h))}),s.jsx("button",{className:"md:hidden text-white",onClick:()=>c(!l),"aria-label":"Menu",children:l?s.jsx(Xc,{size:24}):s.jsx(QB,{size:24})})]})}),l&&s.jsxs("div",{className:"md:hidden fixed inset-x-0 top-[80px] bottom-0 z-[55] bg-[#0B1224] border-t border-white/10 px-6 pb-8 pt-4 overflow-y-auto overscroll-contain",children:[s.jsxs("ul",{className:"flex flex-col gap-4",children:[f.map(h=>s.jsx("li",{children:s.jsx(Ee,{to:h.to,onClick:()=>c(!1),className:"text-white/80 hover:text-[#F4845F] transition-colors text-sm font-medium",children:h.label})},h.to)),s.jsxs("li",{children:[s.jsx("div",{className:"text-white/50 uppercase tracking-wider text-xs mb-2",children:n("header.research")}),s.jsx("ul",{className:"flex flex-col gap-3 pl-3 border-l border-white/10",children:p.map((h,v)=>s.jsx("li",{children:h.comingSoon||!h.to?s.jsxs("span",{className:"flex items-center gap-2 text-white/40 text-sm font-medium cursor-not-allowed",children:[h.label,s.jsx("span",{className:"text-[10px] uppercase tracking-wider bg-white/10 text-white/60 px-1.5 py-0.5 rounded",children:n("header.research.comingSoon")})]}):s.jsx(Ee,{to:h.to,onClick:()=>c(!1),className:"text-white/80 hover:text-[#F4845F] transition-colors text-sm font-medium",children:h.label})},h.to??`coming-m-${v}`))})]}),s.jsx("li",{children:s.jsx(Ee,{to:g.to,onClick:()=>c(!1),className:"text-white/80 hover:text-[#F4845F] transition-colors text-sm font-medium",children:g.label})})]}),s.jsx("div",{className:"flex gap-2 mt-4",children:["pt","en"].map(h=>s.jsx("button",{onClick:()=>{t(h),c(!1)},className:`px-4 py-1.5 rounded-full text-xs font-semibold transition-all ${e===h?"bg-[#F4845F] text-white":"text-white/60 border border-white/20"}`,children:h.toUpperCase()},h))})]})]})},Qx=768;function Zk(){const[e,t]=S.useState(void 0);return S.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Qx-1}px)`),r=()=>{t(window.innerWidth<Qx)};return n.addEventListener("change",r),t(window.innerWidth<Qx),()=>n.removeEventListener("change",r)},[]),!!e}const lH="/assets/logo-footer-DtMs7p9i.png",cH=()=>{const{t:e,language:t}=be(),n=au(),r=wt(),a=Zk(),i=S.useCallback(d=>{n(d),window.scrollTo(0,0)},[n]),o=t==="pt"?s.jsxs(s.Fragment,{children:["Decida ",s.jsx("span",{className:"font-bold text-white",children:"antes"})," do mercado.",s.jsx("br",{}),"Transformamos comportamento vivo em crescimento previsÃvel."]}):s.jsxs(s.Fragment,{children:["Decide ",s.jsx("span",{className:"font-bold text-white",children:"before"})," the market.",s.jsx("br",{}),"We turn live behavior into predictable growth."]}),l=t==="pt"?"© 2025 Infinity6.ai. Todos os direitos reservados.":"© 2025 Infinity6.ai. All rights reserved.",c=[{to:r("/"),label:e("header.home")},{to:r("/solutions"),label:e("header.solutions")},{to:r("/our-ai"),label:e("header.solutions.proprietaryAi")},{to:r("/success-stories"),label:e("header.successStories")},{to:"https://huggingface.co/infinity6",label:e("header.community"),external:!0},{to:r("/contact"),label:e("header.contact")}],u=[{to:r("/solutions/demand-supply-efficiency"),label:e("header.solutions.demandSupply")},{to:r("/solutions/data-monetization"),label:e("header.solutions.dataMonetization")},{to:r("/solutions/predictive-operations"),label:e("header.solutions.predictiveOps")},{to:r("/solutions/behavior-conversion"),label:e("header.solutions.behaviorConversion")}];return s.jsx("footer",{className:"bg-[#0B1224] text-white",children:s.jsx("div",{className:"container mx-auto px-6 py-10",children:s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-5 ga
408p-10",children:[s.jsxs("div",{className:"col-span-1 md:col-span-2",children:[s.jsx("img",{src:lH,alt:"Infinity6",className:"h-8 w-auto mb-4",loading:"lazy"}),s.jsx("p",{className:`text-white/40 max-w-md whitespace-pre-line mb-6 ${a?"text-[11px] leading-tight tracking-tight":"text-sm"}`,children:o}),s.jsxs("div",{className:"flex gap-4 mb-6",children:[s.jsx("a",{href:"https://www.linkedin.com/company/infinity6",target:"_blank",rel:"noopener noreferrer",className:"text-white/40 hover:text-[#F4845F] transition-colors",children:s.jsx(Tk,{size:22})}),s.jsx("a",{href:"https://www.youtube.com/@infinity6ai",target:"_blank",rel:"noopener noreferrer",className:"text-white/40 hover:text-[#F4845F] transition-colors",children:s.jsx(s7,{size:22})}),s.jsx("a",{href:"https://huggingface.co/infinity6",target:"_blank",rel:"noopener noreferrer","aria-label":"infinity6 on Hugging Face",className:"text-white/40 hover:text-[#F4845F] transition-colors",children:s.jsx("svg",{viewBox:"0 0 95 88",fill:"currentColor",width:"22",height:"22",children:s.jsx("path",{d:"M47.5 0C21.3 0 0 19.7 0 44c0 13.8 6.7 26.2 17.2 34.5 1.5 1.2 3.4 1.8 5.3 1.8h50c1.9 0 3.8-.6 5.3-1.8C88.3 70.2 95 57.8 95 44 95 19.7 73.7 0 47.5 0zM25 52c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8zm45 0c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8zM35 65c0-3.3 5.6-6 12.5-6s12.5 2.7 12.5 6-5.6 6-12.5 6S35 68.3 35 65z"})})})]}),s.jsxs("div",{className:"flex gap-4 text-xs",children:[s.jsx(Ee,{to:r("/privacy-policy"),onClick:()=>i(r("/privacy-policy")),className:"text-white/30 hover:text-[#F4845F] transition-colors",children:e("footer.privacy")}),s.jsx(Ee,{to:r("/ethics-policy"),onClick:()=>i(r("/ethics-policy")),className:"text-white/30 hover:text-[#F4845F] transition-colors",children:e("footer.ethics")})]}),s.jsx("p",{className:"text-white/30 text-xs mt-3",children:l})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-sm font-semibold mb-4 text-white/60 uppercase tracking-wider",children:e("footer.quickLinks")}),s.jsx("ul",{className:"space-y-2",children:c.map(d=>s.jsx("li",{children:d.external?s.jsx("a",{href:d.to,target:"_blank",rel:"noopener noreferrer",className:"text-white/40 hover:text-[#F4845F] transition-colors text-sm",children:d.label}):s.jsx(Ee,{to:d.to,onClick:()=>i(d.to),className:"text-white/40 hover:text-[#F4845F] transition-colors text-sm",children:d.label})},d.to))})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-sm font-semibold mb-4 text-white/60 uppercase tracking-wider",children:t==="pt"?"Aplicabilidade":"Applicability"}),s.jsx("ul",{className:"space-y-2",children:u.map(d=>s.jsx("li",{children:s.jsx(Ee,{to:d.to,onClick:()=>i(d.to),className:"text-white/40 hover:text-[#F4845F] transition-colors text-sm",children:d.label})},d.to))})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-sm font-semibold mb-4 text-white/60 uppercase tracking-wider",children:e("footer.contact")}),s.jsx("a",{href:"mailto:[email protected]",className:"text-white/40 hover:text-[#F4845F] transition-colors text-sm hover:underline",children:"[email protected]"})]})]})})})},Z4={essential:!0,analytics:!0,marketing:!1,preferences:!1},Yx="cookie_consent",X4="2.0",o8=()=>{const[e,t]=S.useState(Z4),[n,r]=S.useState(!1),[a,i]=S.useState(!1);S.useEffect(()=>{const g=localStorage.getItem(Yx);if(g)try{const h=JSON.parse(g);h.version===X4?(t(h.consent),r(!1)):r(!0)}catch{r(!0)}else r(!0);try{new URLSearchParams(window.location.search).get("cookies")==="open"&&(r(!0),i(!0))}catch{}},[]);const o=S.useCallback(g=>{const h={consent:g,version:X4,timestamp:new Date().toISOString()};try{localStorage.setItem(Yx,JSON.stringify(h)),t(g),r(!1),i(!1)}catch(v){console.error("Error saving consent:",v)}},[]),l=S.useCallback(()=>{o({essential:!0,analytics:!0,marketing:!0,preferences:!0})},[o]),c=S.useCallback(()=>{o({essential:!0,analytics:!0,marketing:!0,preferences:!0})},[o]),u=S.useCallback(()=>{o({essential:!0,analytics:!0,marketing:!1,preferences:!1})},[o]),d=S.useCallback(()=>{o({essential:!0,analytics:!1,marketing:!1,preferences:!1})},[o]),m=S.useCallback((g,h)=>{g!=="essential"&&t(v=>({...v,[g]:h}
408))},[]),p=S.useCallback(()=>{try{localStorage.removeItem(Yx),t(Z4),r(!0)}catch(g){console.error("Error resetting consent:",g)}},[]),f=S.useCallback(()=>{r(!0),i(!0)},[]);return{consent:e,showBanner:n,bannerExpanded:a,saveConsent:o,acceptAll:l,acceptAdditional:c,continueEssential:u,rejectAll:d,updateConsent:m,resetConsent:p,setShowBanner:r,setBannerExpanded:i,openPreferences:f}},uH=e=>{const t=hn();S.useEffect(()=>{window.gtag&&window.gtag("consent","update",{analytics_storage:e?"granted":"denied"})},[e]),S.useEffect(()=>{!e||!window.gtag||window.gtag("event","page_view",{page_path:t.pathname+t.search,page_title:document.title})},[t.pathname,t.search,e])},rn={aid:"i6_aid",firstTouch:"i6_first_touch",lastTouch:"i6_last_touch",pages:"i6_pages",events:"i6_events",session:"i6_session"},J4=20,eA=30,dH=30*60*1e3,s8=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"];let Xk=!1,l8=null,Cw=0;const Ca=()=>typeof window<"u",c8=()=>typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2,10)}`,Da=e=>{if(!Ca())return null;try{const t=localStorage.getItem(e);return t?JSON.parse(t):null}catch{return null}},hm=(e,t)=>{if(Ca())try{localStorage.setItem(e,JSON.stringify(t))}catch{}},mH=(e,t)=>{if(Ca())try{localStorage.setItem(e,t)}catch{}},pH=e=>{const t=new URLSearchParams(e),n={};for(const r of s8){const a=t.get(r);a&&(n[r]=a.slice(0,200))}return n},fH=e=>{Ca()&&(Xk=e,u8(),Jk(),hH())},u8=()=>{if(!Ca())return null;let e=localStorage.getItem(rn.aid);return e||(e=c8(),mH(rn.aid,e)),e},d8=()=>Ca()?localStorage.getItem(rn.aid):null,Jk=()=>{if(!Ca())return null;const e=Date.now();let t=Da(rn.session);return!t||e-t.last_activity>dH?t={id:c8(),started_at:e,last_activity:e}:t.last_activity=e,hm(rn.session,t),l8=t.id,Cw=t.started_at,t.id},hH=()=>{if(!Ca())return;const e=pH(window.location.search),t=Object.keys(e).length>0,n=document.referrer||void 0;if(!Da(rn.firstTouch)){const a={...e,referrer:n,landing_page:window.location.pathname+window.location.search,ts:new Date().toISOString()};hm(rn.firstTouch,a)}if(t){const a={...e,referrer:n,ts:new Date().toISOString()};hm(rn.lastTouch,a)}},gH=(e,t)=>{if(!Ca())return;u8(),Jk();const n=Da(rn.pages)??[];n.push({path:e,title:t,ts:new Date().toISOString()}),n.length>J4&&n.splice(0,n.length-J4),hm(rn.pages,n)},oa=(e,t)=>{if(!Ca())return;Jk();const n=Da(rn.events)??[];if(n.push({name:e,props:t,ts:new Date().toISOString()}),n.length>eA&&n.splice(0,n.length-eA),hm(rn.events,n),Xk){const r=window.gtag;if(typeof r=="function")try{r("event",e,{...t??{},anonymous_id:d8()??void 0})}catch{}}},iu=()=>{var e;return{anonymous_id:d8(),session_id:l8,first_touch:Da(rn.firstTouch),last_touch:Da(rn.lastTouch),landing_page:((e=Da(rn.firstTouch))==null?void 0:e.landing_page)??null,pages:Da(rn.pages)??[],pages_viewed_count:(Da(rn.pages)??[]).length,events:Da(rn.events)??[],session_duration_ms:Cw?Date.now()-Cw:null,consent_granted:Xk}},ny=e=>{const t=a=>{if(!a)return"-";const i=[];for(const o of s8)a[o]&&i.push(`${o}=${a[o]}`);return a.referrer&&i.push(`referrer=${a.referrer}`),i.length?i.join(", "):"(direct)"},n=a=>{if(!a||a<0)return"-";const i=Math.round(a/1e3);return`${Math.floor(i/60)}m${i%60}s`},r=e.pages.slice(-10).map(a=>a.path).join(" > ")||"-";return["--- Contexto do visitante ---",`anonymous_id: ${e.anonymous_id??"
408-"}`,`session_id: ${e.session_id??"-"}`,`session_duration: ${n(e.session_duration_ms)}`,`first_touch: ${t(e.first_touch)}`,`last_touch: ${t(e.last_touch)}`,`landing_page: ${e.landing_page??"-"}`,`pages_viewed: ${e.pages_viewed_count}`,`journey: ${r}`,`ga4_consent: ${e.consent_granted?"granted":"denied"}`].join(` 409`)},ry=()=>{if(!Ca())return{};const e=iu(),t=e.first_touch??{},n=e.last_touch??{},r=e.pages.slice(-10).map(i=>i.path).join(" > "),a=i=>{if(!i||i<0)return"";const o=Math.round(i/1e3);return`${Math.floor(o/60)}m${o%60}s`};return{anonymous_id:e.anonymous_id??"",session_id:e.session_id??"",first_touch_source:t.utm_source??"",first_touch_medium:t.utm_medium??"",first_touch_campaign:t.utm_campaign??"",first_touch_referrer:t.referrer??"",first_touch_landing_page:e.landing_page??"",last_touch_source:n.utm_source??"",last_touch_medium:n.utm_medium??"",last_touch_campaign:n.utm_campaign??"",pages_viewed_count:String(e.pages_viewed_count),journey:r,session_duration:a(e.session_duration_ms),language:document.documentElement.lang||"",user_agent:navigator.userAgent.
409slice(0,500)}},vH=e=>{const t=hn();return S.useEffect(()=>{fH(e)},[e]),S.useEffect(()=>{gH(t.pathname+t.search,document.title)},[t.pathname,t.search]),{trackEvent:oa,getLeadContext:iu}},yH=Nk("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Dn=S.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...a},i)=>{const o=r?sm:"button";return s.jsx(o,{className:ct(yH({variant:t,size:n,className:e})),ref:i,...a})});Dn.displayName="Button";function xH(e){const t=S.useRef({value:e,previous:e});return S.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var eS="Switch",[bH,X8e]=Rv(eS),[wH,kH]=bH(eS),m8=S.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:a,defaultChecked:i,required:o,disabled:l,value:c="on",onCheckedChange:u,form:d,...m}=e,[p,f]=S.useState(null),g=Pr(t,b=>f(b)),h=S.useRef(!1),v=p?d||!!p.closest("form"):!0,[y=!1,x]=Lv({prop:a,defaultProp:i,onChange:u});return s.jsxs(wH,{scope:n,checked:y,disabled:l,children:[s.jsx(Kt.button,{type:"button",role:"switch","aria-checked":y,"aria-required":o,"data-state":h8(y),"data-disabled":l?"":void 0,disabled:l,value:c,...m,ref:g,onClick:Ft(e.onClick,b=>{x(w=>!w),v&&(h.current=b.isPropagationStopped(),h.current||b.stopPropagation())})}),v&&s.jsx(SH,{control:p,bubbles:!h.current,name:r,value:c,checked:y,required:o,disabled:l,form:d,style:{transform:"translateX(-100%)"}})]})});m8.displayName=eS;var p8="SwitchThumb",f8=S.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,a=kH(p8,n);return s.jsx(Kt.span,{"data-state":h8(a.checked),"data-disabled":a.disabled?"":void 0,...r,ref:t})});f8.displayName=p8;var SH=e=>{const{control:t,checked:n,bubbles:r=!0,...a}=e,i=S.useRef(null),o=xH(n),l=dM(t);return S.useEffect(()=>{const c=i.current,u=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(u,"checked").set;if(o!==n&&m){const p=new Event("click",{bubbles:r});m.call(c,n),c.dispatchEvent(p)}},[o,n,r]),s.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:i,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function h8(e){return e?"checked":"unchecked"}var g8=m8,jH=f8;const v8=S.forwardRef(({className:e,...t},n)=>s.jsx(g8,{className:ct("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:s.jsx(jH,{className:ct("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));v8.displayName=g8.displayName;const PH=()=>{const{showBanner:e,bannerExpanded:t,setBannerExpanded:n,acceptAdditional:r,continueEssential:a,acceptAll:i,rejectAll:o,saveConsent:l,consent:c}=o8(),{language:u}=be(),d=wt(),[m,p]=S.useState(c);if(S.useEffect(()=>p(c),[c]),!e)return null;const f=u==="pt"?{title:"Cookies",body:"Usamos cookies essenciais e de análise anônimos para que o site funcione e medir desempenho. Aceita também cookies adicionais de marketing e preferências?",privacy:"PolÃtica de Privacidade",preferences:"Preferências",continueEssential:"Rejeitar adicionais",acceptAdditional:"Aceitar adicionais",prefsTitle:"Preferências de Cookies",prefsSubtitle:"Escolha quais categorias você permite.",essential:"Essenciais",essentialDesc:"Funcionamento do site e métricas anônimas de primeira parte (legÃtimo interesse). Sempre ativos.",analytics:"Análise (GA4)",analyticsDesc:"Envio anônimo para Google Analytics 4 (terceira parte).",marketing:"Marketing",marketingDesc:"Mensurar campanhas e personalizar conteúdo.",prefs:"Preferências",prefsDesc:"Lembrar idioma, layout e ajustes de interface.",save:"Salvar preferências",acceptAll:"Aceitar tudo",onlyEssential:"Apenas essenciais",back:"Voltar"}:{title:"Cookies",body:"We use essential and anonymous analytics cookies so the site works and we can measure performance. Do you also accept additional marketing and preferences cookies?",privacy:"Privacy Policy",preferences:"Preferences",continueEssential:"Reject additional",acceptAdditional:"Accept additional",prefsTitle:"Cookie Preferences",prefsSubtitle:"Cho
409ose which categories you allow.",essential:"Essential",essentialDesc:"Site functionality and anonymous first-party metrics (legitimate interest). Always on.",analytics:"Analytics (GA4)",analyticsDesc:"Anonymous data sent to Google Analytics 4 (third party).",marketing:"Marketing",marketingDesc:"Measure campaigns and personalize content.",prefs:"Preferences",prefsDesc:"Remember language, layout and UI tweaks.",save:"Save preferences",acceptAll:"Accept all",onlyEssential:"Essential only",back:"Back"},g=[{key:"essential",label:f.essential,desc:f.essentialDesc,locked:!0},{key:"analytics",label:f.analytics,desc:f.analyticsDesc},{key:"marketing",label:f.marketing,desc:f.marketingDesc},{key:"preferences",label:f.prefs,desc:f.prefsDesc}];return s.jsx("div",{role:"dialog","aria-label":f.title,className:`fixed bottom-4 left-4 right-4 md:left-auto md:right-6 md:bottom-6 z-50 animate-fade-in ${t?"md:max-w-lg":"max-w-md"}`,children:s.jsx("div",{className:"rounded-2xl border border-white/10 bg-[#0B1224]/95 backdrop-blur-md shadow-2xl p-5 max-h-[85vh] overflow-y-auto",children:t?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-start justify-between mb-3",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-white text-sm font-semibold",children:f.prefsTitle}),s.jsx("p",{className:"text-white/60 text-xs mt-1",children:f.prefsSubtitle})]}),s.jsxs("button",{type:"button",onClick:()=>n(!1),className:"text-white/50 hover:text-white text-xs ml-3",children:["â ",f.back]})]}),s.jsx("div",{className:"space-y-2 mb-4",children:g.map(h=>s.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-lg border border-white/10 bg-white/[0.03] p-3",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"text-white text-xs font-semibold mb-0.5",children:h.label}),s.jsx("div",{className:"text-white/60 text-[11px] leading-relaxed",children:h.desc})]}),s.jsx(v8,{checked:m[h.key],disabled:h.locked,onCheckedChange:v=>!h.locked&&p(y=>({...y,[h.key]:v}))})]},h.key))}),s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx(Dn,{onClick:()=>l(m),size:"sm",className:"w-full bg-[#F4845F] hover:bg-[#F4845F]/90 text-white font-semibold border border-[#F4845F]/50 shadow-[0_0_20px_rgba(244,132,95,0.3)]",children:f.save}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx(Dn,{onClick:i,variant:"outline",size:"sm",className:"flex-1 border-white/15 bg-transparent text-white/80 hover:bg-white/5 hover:text-white",children:f.acceptAll}),s.jsx(Dn,{onClick:o,variant:"outline",size:"sm",className:"flex-1 border-white/15 bg-transparent text-white/80 hover:bg-white/5 hover:text-white",children:f.onlyEssential})]}),s.jsx(Ee,{to:d("/privacy-policy"),className:"text-[#F4845F] hover:underline text-[11px] text-center mt-1",children:f.privacy})]})]}):s.jsxs(s.Fragment,{children:[s.jsx("h3",{className:"text-white text-sm font-semibold mb-2",children:f.title}),s.jsx("p",{className:"text-white/70 text-xs leading-relaxed mb-3",children:f.body}),s.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 mb-4 text-xs",children:[s.jsx(Ee,{to:d("/privacy-policy"),className:"text-[#F4845F] hover:underline",children:f.privacy}),s.jsx("button",{type:"button",onClick:()=>n(!0),className:"text-white/60 hover:text-white/90 hover:underline",children:f.preferences})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row gap-2",children:[s.jsx(Dn,{onClick:a,variant:"outline",size:"sm",className:"flex-1 border-white/15 bg-transparent text-white/80 hover:bg-white/5 hover:text-white",children:f.continueEssential}),s.jsx(Dn,{onClick:r,size:"sm",className:"flex-1 bg-[#F4845F] hover:bg-[#F4845F]/90 text-white font-semibold border border-[#F4845F]/50 shadow-[0_0_20px_rgba(244,132,95,0.3)]",children:f.acceptAdditional})]})]})})})},AH=()=>{const{consent:e}=o8();return uH(e.analytics),vH(e.analytics),s.jsx(s.Fragment,{children:s.jsx(PH,{})})},_H=()=>s.jsx("div",{className:"min-h-screen bg-[#0B1224] relative overflow-x-hidden",children:s.jsxs("div",{className:"relative",children:[s.jsx("div",{className:"relative z-[60]",children:s.jsx(sH,{})}),s.jsx("main",{className:"relative z-[10]",children:s.jsx(dV,{})}),s.jsx("div",{className:"relative z-[20]",children:s.jsx(cH,{})}),s.jsx(AH,{})]})}),NH={hero:{eyebrow:"Soluções",titleBefore:"IA aplicada para ",titleHighlight:"capturar crescimento",titleMiddle:" ",titleHighlight2:"e margem",titleAfter:" com precisão.",subtitle:"Transformamos dados de clientes, produtos, canais, PDVs, estoque e preço em decisões preditivas para aumentar receita, proteger margem e reduzir desperdÃcio operacional.",ctaLabel:"Ver cases de sucesso",ctaHref:"/success-stories"},territoriesBlock:{eyebrow:"Onde a predição vira resultado",title:"Alavancas Preditivas de Valor",intro:"Organizamos nossas soluções em frentes de impacto, orientadas exatamente para onde as operações precisam capturar resultado.",ctaLabel:"Ver as soluções desta alavanca"},labels:{resolve:"Resolve",entrega:"Entrega",impacto:"Impacto"},territories:[{id:"growth",eyebrow:"Alavanca Preditiva de Valor",title:"Crescimento & Inteligência de Consumidor",tagline:"Venda mais para clientes, visitantes e canais com maior propensão de conversão.",description:"Quando todo cliente recebe a mesma oferta, a empresa desperdiça mÃdia, CRM, força comercial e oportunidade de receita. Nós antecipamos intenção, a próxima melhor oferta e quais produtos têm maior potencial de conversão.",chips:["Personalização Preditiva","Descoberta Preditiva","Campanhas por Propensão"]},{id:"planning",eyebrow:"Alavanca Preditiva de Valor",title:"Demanda, Distribuição e Planejamento Comercial",tagline:"Planeje melhor, venda melhor e reduza desperdÃcio operacional.",description:"Empresas perdem receita quando planejam demanda, metas, sortimento e pedidos com base apenas em histórico, média ou pressão comercial. Transformamos sinais de mercado, comportamento, estoque, sell-out e canal em decisões preditivas para orientar a operação com extrema eficiência.",chips:["Forecast Preditivo de Demanda","Metas Comerciais Preditivas","Mix, Sortimento e Pedido Ideal"]},{id:"pricing",eyebrow:"Alavanca Preditiva de Valor",title:"Precificação e Inteligência de Margem",tagline:"Ajuste preço ao movimento real de mercado, cliente, estoque e margem.",description:"Preço não é tabela. à uma alavanca direta de margem, giro e conversão. Nós transformamos elasticidade, forecast, concorrência, estoque, demanda e comportamento em recomendações de preço dinâmicas, mensuráveis e governadas.",chips:["Preço Orientado à Margem","Preço Orientado ao Giro","Preço Orientado à Conversão"]}],solutions:[{id:"predictive-personalization",territory:"growth",title:"Personalização Preditiva",tagline:"Antecipe a próxima melhor oferta para cada cliente.",resolve:"CRM genérico, baixa conversão e desperdÃcio de acionamento.",entrega:"NBA, NBO, cross-sell, up-sell e reativação.",impacto:"Maior LTV, mais frequência de compra e melhor eficiência comercial."},{id:"smart-discovery",territory:"growth",title:"Descoberta Preditiva",tagline:"Transforme tráfego anônimo em receita incremental.",resolve:"Visitantes anônimos tratados como ruÃdo.",entrega:"Recomendação contextual em tempo real, mesmo antes da identificação.",impacto:"Mais conversão sem aumentar investimento em aquisição."},{id:"predictive-campaign-targeting",territory:"growth",title:"Campanhas por Propensão",tagline:"Ative os clientes certos, com mais precisão, mais resultado e menos custo.",resolve:"Campanhas amplas, caras e pouco eficientes.",entrega:"Score de propensão, audiência priorizada e régua de ativação.",impacto:"Maior conversão, menor CAC e ROI de marketing mais mensurável."},{id:"demand-forecasting",territory:"planning",title:"Forecast Preditivo de Demanda",tagline:"Antecipe demanda antes da ruptura, do excesso ou da perda de venda.",resolve:"Forecast médio demais para uma operação granular.",entrega:"Previsão de demanda por SKU, loja, PDV, canal, região ou cliente.",impacto:"Maior acurácia, menos ruptura, menos excesso e melhor planejamento de supply."},{id:"predictive-commercial-targets",territory:"planning",title:"Metas Comerciais Preditivas",tagline:"Defina metas com base em potencial real de demanda, não apenas histórico ou pressão comercial.",resolve:"Metas top-down desconectadas do potencial real do mercado.",entrega:"Metas sugeridas por território, carteira, canal, SKU ou PDV.",impacto:"Melhor alocação de esforço comercial, menos distorção de incentivo e maior previsibilidade de receita."},{id:"mix-assortment-order",territory:"planning",title:"Mix, Sortimento e Pedido Ideal",tagline:"Recomende o mix certo e o pedido ideal por loja, PDV, região, cluster ou cliente.",resolve:"Sortimento padronizado e pedidos baseados em média, feeling ou repetição histórica.",entrega:"Mix ideal, inclusão ou substituição de SKUs, volume sugerido, pedido incremental e próxima ação comercial.",impacto:"Maior ticket, mais positivação de produtos, melhor giro, menos ruptura e menos estoque parado."},{id:"price-to-margin",territory:"pricing",title:"Preço Orientado à Margem",tagline:"Capture margem por SKU sem romper governança comercial.",resolve:"SKUs com elasticidade, estoque e pressão competitiva diferentes tratados da mesma forma.",entrega:"Preço ótimo, intervalo de confiança e cenários alternativos.",impacto:"Mais margem capturada, maior controle comercial e melhor resultado por SKU."},{id:"price-to-turnover",territory:"pricing",title:"Preço Orientado ao Giro",tagline:"Acelere giro sem destruir margem.",resolve:"Estoque parado, markdown tardio e margem corroÃda.",entrega:"Preço recomendado e markdown progressivo por loja, região ou cluster.",impacto:"Mais giro com rentabilidade, menos estoque envelhecido e capital mais eficiente."},{id:"price-to-conversion",territory:"pricing",title:"Preço Orientado à Conversão",tagline:"Maximize conversão e receita por sessão com governança de margem.",resolve:"Sessões com intenções diferentes recebendo o mesmo preço.",entrega:"Preço contextual por sessão, respeitando margem mÃnima e polÃtica comercial.",impacto:"Mais conversão, mais receita por sessão e melhor captura de margem."}],signal:{eyebrow:"Camada transversal",title:"i6 Signal",tagline:"A camada conversacional que transforma predição em decisão.",description:"O i6 Signal conecta os sinais preditivos dos modelos aos times de negócio, permitindo entender rapidamente onde agir, por que agir e qual impacto esperado.",examplesTitle:"Exemplos de sinais",examples:["SKU com alto risco de ruptura.","Cliente com alta propensão de recompra.","PDV com oportunidade de pedido adicional.","Produto com margem abaixo do potencial.","Cliente com alta propensão de cross-sell.","Cluster com necessidade de markdown.","Meta comercial desalinhada ao potencial real.","SKU com demanda prevista fora do mix atual.","Campanha com audiência prioritária."]},howWeImplement:{eyebrow:"Como implementamos",title:`Validação antes da escala. 410Resultado antes do discurso.`,costNote:"Custo zero até o Backtest. Você só avança com validação do potencial de resultado.",steps:[{n:"01",title:"Ingestão dos dados",description:"Integramos dados comerciais, transacionais, comportamentais, operacionais e externos, com anonimização na origem e sem necessidade de dados sensÃveis."},{n:"02",title:"Modelagem IA",description:"Ajustamos os motores proprietários ao contexto do cliente, segmento, canal, produto e objetivo de negócio."},{n:"03",title:"Backtest",description:"Comparamos recomendações preditivas com resultados reais antes da ativação, validando impacto potencial, aderência operacional e clareza para escala."},{n:"04",title:"Piloto / Ativação",description:"Entregamos outputs por API, lake-to-lake, arquivos operacionais, plugins para ERP/CRM ou widgets, com i6Signal para consulta, explicação e ativação dos sinais."},{n:"05",title:"Aprendizado contÃnuo",description:"Recalibramos os modelos conforme demanda, estoque, preço, comportamento e resposta comercial evoluem, mantendo os
410sinais atualizados e acionáveis."}]},summary:{eyebrow:"Em resumo",title:"A infinity6 ajuda empresas a:",bullets:["Prever demanda com mais precisão.","Definir metas comerciais mais inteligentes.","Recomendar mix e pedido ideal por cliente ou PDV.","Priorizar campanhas por propensão real.","Personalizar ofertas em tempo real.","Otimizar preço por margem, giro e conversão.","Reduzir ruptura, excesso, CAC, desperdÃcio comercial e margem deixada na mesa."]}},CH={hero:{eyebrow:"Solutions",titleBefore:"AI applied to ",titleHighlight:"capture growth",titleMiddle:" ",titleHighlight2:"and margin",titleAfter:" with precision.",subtitle:"We turn customer, product, channel, POS, inventory and price data into predictive decisions that increase revenue, protect margin and reduce operational waste.",ctaLabel:"See success stories",ctaHref:"/success-stories"},territoriesBlock:{eyebrow:"Where prediction becomes result",title:"Predictive Value Levers",intro:"We organize our solutions into impact fronts, oriented exactly where operations need to capture results.",ctaLabel:"See this lever's solutions"},labels:{resolve:"Resolve",entrega:"Deliver",impacto:"Impact"},territories:[{id:"growth",eyebrow:"Predictive Value Lever",title:"Growth & Customer Intelligence",tagline:"Sell more to customers, visitors and channels with the highest propensity to convert.",description:"When every customer receives the same offer, the company wastes media, CRM, sales effort and revenue opportunity. We anticipate intent, the next best offer and which products have the highest conversion potential.",chips:["Predictive Personalization","Smart Discovery","Predictive Campaign Targeting"]},{id:"planning",eyebrow:"Predictive Value Lever",title:"Demand, Supply & Commercial Planning",tagline:"Plan better, sell better and reduce operational waste.",description:"Companies lose revenue when they plan demand, targets, assortment and orders based only on history, averages or commercial pressure. We turn market, behavior, inventory, sell-out and channel signals into predictive decisions to orient operations with extreme efficiency.",chips:["Predictive Forecasting","Predictive Commercial Goals","Predictive Assortment & Order Recommendation"]},{id:"pricing",eyebrow:"Predictive Value Lever",title:"Pricing & Margin Intelligence",tagline:"Adjust price to the real movement of market, customer, inventory and margin.",description:"Price is not a table. It is a direct lever of margin, turnover and conversion. We turn elasticity, forecast, competition, inventory, demand and behavior into dynamic, measurable and governed price recommendations.",chips:["Price-to-Margin","Price-to-Turnover","Price-to-Conversion"]}],solutions:[{id:"predictive-personalization",territory:"growth",title:"Predictive Personalization",tagline:"Anticipate the next best offer for each customer.",resolve:"Generic CRM, low conversion and wasted outreach.",entrega:"NBA, NBO, cross-sell, up-sell and reactivation.",impacto:"Higher LTV, more purchase frequency and better commercial efficiency."},{id:"smart-discovery",territory:"growth",title:"Smart Discovery",tagline:"Turn anonymous traffic into incremental revenue.",resolve:"Anonymous visitors treated as noise.",entrega:"Contextual real-time recommendation, even before identification.",impacto:"More conversion without increasing acquisition spend."},{id:"predictive-campaign-targeting",territory:"growth",title:"Predictive Campaign Targeting",tagline:"Activate the right customers with more precision, more results and less cost.",resolve:"Broad, expensive and inefficient campaigns.",entrega:"Propensity score, prioritized audience and activation cadence.",impacto:"Higher conversion, lower CAC and more measurable marketing ROI."},{id:"demand-forecasting",territory:"planning",title:"Predictive Forecasting",tagline:"Anticipate demand before stockout, excess or lost sales.",resolve:"Forecast too coarse for a granular operation.",entrega:"Demand forecast by SKU, store, POS, channel, region or customer.",impacto:"Higher accuracy, less stockout, less excess and better supply planning."},{id:"predictive-commercial-targets",territory:"planning",title:"Predictive
410Commercial Goals",tagline:"Set targets based on real demand potential, not just history or commercial pressure.",resolve:"Top-down targets disconnected from real market potential.",entrega:"Suggested targets by territory, portfolio, channel, SKU or POS.",impacto:"Better allocation of commercial effort, less incentive distortion and greater revenue predictability."},{id:"mix-assortment-order",territory:"planning",title:"Predictive Assortment & Order Recommendation",tagline:"Recommend the right mix and ideal order by store, POS, region, cluster or customer.",resolve:"Standardized assortment and orders based on averages, gut feel or historical repetition.",entrega:"Ideal mix, SKU inclusion or substitution, suggested volume, incremental order and next commercial action.",impacto:"Higher ticket, more product positivation, better turnover, less stockout and less idle inventory."},{id:"price-to-margin",territory:"pricing",title:"Price-to-Margin",tagline:"Capture margin per SKU without breaking commercial governance.",resolve:"SKUs with different elasticity, inventory and competitive pressure treated the same way.",entrega:"Optimal price, confidence interval and alternative scenarios.",impacto:"More margin captured, greater commercial control and better result per SKU."},{id:"price-to-turnover",territory:"pricing",title:"Price-to-Turnover",tagline:"Accelerate turnover without destroying margin.",resolve:"Idle inventory, late markdown and eroded margin.",entrega:"Recommended price and progressive markdown by store, region or cluster.",impacto:"More turnover with profitability, less aged inventory and more efficient capital."},{id:"price-to-conversion",territory:"pricing",title:"Price-to-Conversion",tagline:"Maximize conversion and revenue per session with margin governance.",resolve:"Sessions with different intents receiving the same price.",entrega:"Contextual price per session, respecting minimum margin and commercial policy.",impacto:"More conversion, more revenue per session and better margin capture."}],signal:{eyebrow:"Cross-cutting layer",title:"i6 Signal",tagline:"The conversational layer that turns prediction into decision.",description:"i6 Signal connects the predictive signals from the models to business teams, making it easy to understand where to act, why to act and what impact to expect.",examplesTitle:"Signal examples",examples:["SKU with high stockout risk.","Customer with high repurchase propensity.","POS with additional order opportunity.","Product with margin below potential.","Customer with high cross-sell propensity.","Cluster needing markdown.","Commercial target misaligned with real potential.","SKU with forecasted demand outside current mix.","Campaign with priority audience."]},howWeImplement:{eyebrow:"How we implement",title:`Validation before scale. 411Results before rhetoric.`,costNote:"Zero cost through Backtest. You only move forward with validated potential.",steps:[{n:"01",title:"Data ingestion",description:"We integrate commercial, transactional, behavioral, operational and external data, with anonymization at the source and no need for sensitive data."},{n:"02",title:"AI modeling",description:"We tune the proprietary engines to the customer, segment, channel, product and business objective context."},{n:"03",title:"Backtest",description:"We compare predictive recommendations against real results before activation, validating potential impact, operational adherence and clarity to scale."},{n:"04",title:"Pilot / Activation",description:"We deliver outputs via API, lake-to-lake, operational files, ERP/CRM plugins or widgets, with i6Signal for querying, explanation and activation of signals."},{n:"05",title:"Continuous learning",description:"We recalibrate the models as demand, inventory, price, behavior and commercial response evolve, keeping the signals updated and actionable."}]},summary:{eyebrow:"In short",title:"infinity6 helps companies to:",bullets:["Forecast demand with more precision.","Set smarter commercial targets.","Recommend ideal mix and order by customer or POS.","Prioritize campaigns by real propensity.","Personalize offers in real time.","Optimize price by margin, turnover and conversion.","Reduce stockout, excess, CAC, commercial waste and margin left on the table."]}},Yo={pt:NH,en:CH},y8=S.memo(()=>{const e=wt(),{language:t}=be(),{hero:n}=Yo[t];return s.jsx("section",{className:"w-full flex items-center justify-center pt-28 pb-8 relative bg-[#0B1224]",children:s.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:s.jsxs("div",{className:"max-w-4xl mx-auto text-center text-white",children:[s.jsx("p",{className:"text-[11px] font-semibold tracking-[0.3em] uppercase text-[#F4845F] mb-4",children:n.eyebrow}),s.jsxs("h1",{className:"text-3xl sm:text-4xl md:text-5xl font-bold mb-5 leading-tight text-white",children:[n.titleBefore,s.jsx("span",{className:"text-[#F4845F]",style:{textShadow:"0 0 30px rgba(244,132,95,0.3), 0 0 60px rgba(244,132,95,0.15)"},children:n.titleHighlight}),n.titleMiddle,n.titleHighlight2&&s.jsx("span",{className:"text-[#F4845F]",style:{textShadow:"0 0 30px rgba(244,132,95,0.3), 0 0 60px rgba(244,132,95,0.15)"},children:n.titleHighlight2}),n.titleAfter]}),s.jsx("p",{className:"text-base sm:text-lg text-white/65 leading-relaxed max-w-3xl mx-auto mb-8",children:n.subtitle}),s.jsxs(Ee,{to:e(n.ctaHref),className:"group inline-flex items-center gap-2 px-6 py-3 bg-transparent text-white font-semibold rounded-xl border border-white/40 transition-all duration-500 ease-out hover:bg-white hover:text-[#0B1224] hover:border-white hover:shadow-[0_0_30px_rgba(255,255,255,0.35)]",children:[n.ctaLabel,s.jsx(_a,{size:18,className:"transition-transform duration-300 group-hover:translate-x-1"})]})]})})})});y8.displayName="SolutionsV2Hero";const x8=S.memo(()=>{const{language:e}=be(),{territories:t,territoriesBlock:n}=Yo[e],r=a=>i=>{i.preventDefault();const o=document.getElementById(`territory-${a}`);o&&o.scrollIntoView({behavior:"smooth",block:"start"})};return s.jsx("section",{className:"py-16 md:py-20 bg-[#0B1224] border-t border-white/5",children:s.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl",children:[s.jsxs("div",{className:"text-center mb-10",children:[s.jsx("p",{className:"text-[11px] font-semibold tracking-[0.3em] uppercase text-[#F4845F] mb-3",children:n.eyebrow}),s.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-white",children:n.title}),s.jsx("p",{className:"mt-4 max-w-5xl mx-auto text-sm md:text-base text-white/70 leading-relaxed md:whitespace-nowrap",children:n.intro})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5",children:t.map(a=>s.jsxs("a",{href:`#territory-${a.id}`,onClick:r(a.id),className:"group relative flex flex-col rounded-2xl bg-white/5 border border-white/10 hover:border-[#F4845F]/50 backdrop-blur-sm transition-all duration-500 hover:scale-[1.02] p-6",children:[s.jsx("div",{className:"absolute top-0 left-0 w-0 h-1 bg-[#F4845F] group-hover:w-full transition-all duration-700 ease-out rounded-t-2xl"}),s.jsx("h3",{className:"text-lg font-bold text-white mb-2 group-hover:text-[#F4845F] transition-colors line-clamp-2 min-h-[2lh]",children:a.title}),s.jsx("p",{className:"text-sm text-white/70 leading-snug mb-4 line-clamp-3 min-h-[3lh]",children:a.tagline}),s.jsx("ul",{className:"flex flex-col gap-1.5 mb-4",children:a.chips.map(i=>s.jsx("li",{className:"text-[11px] text-white/60 border border-white/10 rounded-full px-2 py-0.5 w-fit",children:i},i))}),s.jsxs("div",{className:"mt-auto flex items-center gap-1.5 text-xs font-medium text-[#F4845F]",children:[n.ctaLabel,s.jsx(Uv,{className:"w-3.5 h-3.5"})]})]},a.id))})]})})});x8.displayName="TerritoriesBlock";const Zx=({label:e,value:t})=>s.jsxs("div",{className:"flex flex-col gap-0.5 py-2 border-t border-white/5 first:border-t-0",children:[s.jsx("span",{className:"text-[10px] font-semibold tracking-[0.2em] uppercase text-[#F4845F]/80",children:e}),s.jsx("span",{className:"text-sm text-white/75 leading-snug",children:t})]}),b8=S.memo(({solution:e,labels:t})=>s.jsxs("article",{id:e.id,className:"group relative flex flex-col h-full rounded-2xl bg-white/5 border border-white/10 hover:border-[#F4845F]/50 backdrop-blur-sm transition-all duration-500 p-5",children:[s.jsx("h4",{className:"text-base font-bold text-white mb-1.5 group-hover:text-[#F4845F] transition-colors min-h-[2lh] leading-tight",children:e.title}),s.jsx("p",{className:"text-sm text-white/70 leading-snug mb-2 line-clamp-2 min-h-[2lh]",children:e.tagline}),e.description&&s.jsx("p",{className:"text-sm text-white/60 leading-snug mb-4 line-clamp-2 min-h-[2lh]",children:e.description}),s.jsxs("div",{className:"flex-grow rounded-lg bg-white/5 border border-white/10 px-3",children:[s.jsx(Zx,{label:t.resolve,value:e.resolve}),s.jsx(Zx,{label:t.entrega,value:e.entrega}),s.jsx(Zx,{label:t.impacto,value:e.impacto})]})]}));b8.displayName="LeanSolutionCard";const dh=S.memo(({territoryId:e})=>{const{language:t}=be(),n=Yo[t],r=n.territories.find(i=>i.id===e),a=n.solutions.filter(i=>i.territory===e);return r?s.jsx("section",{id:`territory-${r.id}`,className:"py-16 md:py-20 bg-[#0B1224] border-t border-white/5 scroll-mt-24",children:s.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl",children:[s.jsxs("div",{className:"max-w-4xl mb-10",children:[s.jsx("p",{className:"text-[11px] font-semibold tracking-[0.3em] uppercase text-[#F4845F] mb-3",children:r.eyebrow}),s.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-white mb-3",children:r.title}),s.jsx("p",{className:"text-base text-white/80 leading-snug mb-3",children:r.tagline}),s.jsx("p",{className:"text-sm text-white/60 leading-relaxed",children:r.description})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:a.map(i=>s.jsx(b8,{solution:i,labels:n.labels},i.id))})]})}):null});dh.displayName="TerritorySection";const tS="/assets/avatar-ricardo-DJ-wHoyd.jpg",w8=30,k8=600,S8={pt:{sectionTitle:"",sectionSubtitle:"Clique em um tema abaixo e veja como sinais preditivos viram decisões que movem crescimento, margem e eficiência.",placeholder:"Digite sua pergunta...",sidebar:["Home","Ingestion Tokens","Recsys Tokens","Data Ingestion","i6 Signal","Widgets"],executiveAnalysis:"Análise Executiva",re
411commendedActions:"Ações Recomendadas",suggestedQuestions:"Perguntas Sugeridas",emptyState:"Qual insight preditivo vamos descobrir hoje?",scenarios:{supply:{label:"Ruptura",question:"Quais SKUs estão em risco de ruptura nos próximos 3 meses?",title:"Análise de Risco de Ruptura â Próximo Trimestre",analysis:"A projeção de demanda vs capacidade de reposição para os próximos 90 dias indica 5 SKUs com probabilidade elevada de ruptura. O SKU 44210 (Fone Bluetooth Over-ear) lidera o risco (94%) devido à sazonalidade de fim de ano (Black Friday + Natal) e lead time de importação de 22 dias do fornecedor principal. O impacto acumulado estimado é de R$ 510.000 em receita no trimestre caso nenhuma ação preventiva seja tomada.",table:{headers:["SKU","Produto","Prob. Ruptura","Estoque (dias)"],rows:[["44210","Fone Bluetooth Over-ear","94%","18"],["31087","Air Fryer 5L Digital","87%","24"],["28901","Smartwatch Fitness GPS","72%","38"],["55432","Cafeteira Espresso Automática","61%","45"],["19876","Câmera de Segurança Wi-Fi","48%","62"]]},actions:[{bold:"Renegociar contratos",text:"com fornecedor do SKU 44210 (Fone Bluetooth) â garantir lead time máximo de 15 dias e lote mÃnimo flexÃvel para o trimestre."},{bold:"Ajustar forecast",text:"dos SKUs 31087 (Air Fryer) e 28901 (Smartwatch) â incorporar curva sazonal de Black Friday + Natal ao modelo de reposição."},{bold:"Revisar estoque de segurança",text:"â elevar cobertura mÃnima para 30 dias nos 5 SKUs crÃticos durante o próximo trimestre."}],questions:["Qual o impacto financeiro acumulado das rupturas dos últimos 30 dias?","Quais fornecedores apresentam maior variabilidade no lead time?","Como redistribuir estoque entre CDs para cobrir a demanda regional?"]},forecast:{label:"Sazonalidade",question:"Qual a sazonalidade e tendência do produto mais vendido para o último quarter?",title:"Análise Mensal do Item Mais Vendido (SKU: 28822)",analysis:'O produto SKU 28822 (Smart TV 55" 4K) apresenta forte componente sazonal com pico em dezembro (+34% vs média), impulsionado por Black Friday e Natal. A tendência de longo prazo é de crescimento de 8,2% ao trimestre, sustentada pela expansão em marketplaces e pela categoria de eletrônicos de consumo. O modelo apresentou alta acurácia preditiva neste item, o que representa uma predição de alta confiabilidade para o planejamento comercial.',chartData:[{month:"Out",seasonality:12400,trend:11800,projected:12900},{month:"Nov",seasonality:14200,trend:12600,projected:15100},{month:"Dez",seasonality:18900,trend:13400,projected:19800}],chartNote:"O padrão sazonal indica aumento de 52% entre outubro e dezembro, consistente com os últimos 3 anos. A linha de vendas projetadas incorpora sazonalidade, tendência e efeito de campanhas, servindo como referência para reposição e mÃdia.",actions:[{bold:"Aumentar estoque de segurança",text:"em 25% para novembro e 40% para dezembro, alinhado à curva sazonal."},{bold:"Planejar campanhas promocionais",text:"para outubro, aproveitando o inÃcio da curva ascendente rumo à Black Friday."},{bold:"Reforçar canais marketplace",text:"e mÃdia paga em categorias correlatas (soundbar, streaming, suporte de parede) no Q4."}],questions:["Como a sazonalidade varia por região (Sul vs Nordeste)?","Qual o efeito de promoções na aceleração da curva sazonal?","Existe canibalização com outros SKUs da mesma categoria?"]},pricing:{label:"Preço Ãtimo",question:"Qual o preço ótimo para o Ibuprofeno 400mg nesta região?",title:"Otimização de Preço â Ibuprofeno 400mg (Região Sudeste)",analysis:"A análise de elasticidade-preço para o Ibuprofeno 400mg na Região Sudeste indica que o preço atual de R$ 18,90 está 7% acima do ponto ótimo. A redução para R$ 17,50 maximizaria a margem de contribuição total, com aumento estimado de 12% no volume e ganho lÃquido de R$ 43.000/mês na região.",table:{headers:["Indicador","Valor","Observação"],rows:[["Preço Atual","R$ 18,90","Acima do ótimo"],["Preço Ãtimo","R$ 17,50","Maximiza margem total"],["Elasticidade","-1.34","Demanda elástica"],["Ganho Estimado","+R$ 43k/mês","+12% volume"]]},actions:[{bold:"Implementar preço sugerido",text:"de R$ 17,50 em fase piloto em 50 PDVs da Grande SP."},{bold:"Monitorar elasticidade cruzada",text:"â avaliar impacto em genéricos concorrentes."},{bold:"Teste A/B regional",text:"â comparar performance do novo preço vs atual durante 4 semanas."}],questions:["Como a elasticidade varia entre canais (farma vs varejo
411)?","Qual o preço ótimo para a Região Sul considerando a concorrência local?","Existe oportunidade de bundling com outros produtos da linha?"]},comercial:{label:"Foco Comercial",question:"Onde devo focar o esforço comercial este mês?",title:"Priorização Comercial â Fevereiro 2026",analysis:"A análise de potencial vs performance identificou 8 territórios com gap significativo de receita. Os 3 territórios prioritários concentram 62% do gap total (R$ 890k), com alta probabilidade de conversão baseada no histórico de resposta a ações comerciais similares.",comercialChart:[{territory:"Grande BH",gap:234,potential:1200,score:94},{territory:"Campinas",gap:198,potential:890,score:89},{territory:"Curitiba",gap:167,potential:760,score:85},{territory:"P. Alegre",gap:145,potential:680,score:78}],actions:[{bold:"Alocar representantes adicionais",text:"para Grande BH, focando nos PDVs com maior gap individual."},{bold:"Campanha de incentivo",text:"para Campinas com bonificação escalonada por faixa de crescimento."},{bold:"Visita executiva",text:"aos maiores clientes de Curitiba para renegociar mix e share of shelf."}],questions:["Qual o ROI histórico de ações comerciais em cada território?","Quais produtos apresentam maior oportunidade de cross-sell?","Como está a performance dos representantes vs quota individual?"]},mix:{label:"Mix / Sortimento",question:"Qual mix ideal para a região Sul?",title:"Otimização de Mix â Região Sul",analysis:"A análise do mix atual vs recomendado para a Região Sul revela desalinhamento em 3 categorias principais. O mix atual sobre-indexa analgésicos (38% vs recomendado 29%) e sub-indexa anti-hipertensivos (12% vs recomendado 19%). O ajuste projetado impactaria em +R$ 312k/mês na margem de contribuição regional.",comparison:[{category:"Analgésicos",current:"38%",recommended:"29%",direction:"down"},{category:"Anti-inflamatórios",current:"22%",recommended:"24%",direction:"up"},{category:"Anti-hipertensivos",current:"12%",recommended:"19%",direction:"up"},{category:"Antibióticos",current:"15%",recommended:"16%",direction:"stable"},{category:"Outros",current:"13%",recommended:"12%",direction:"stable"}],actions:[{bold:"Reduzir exposição de analgésicos",text:"em 9pp, redistribuindo espaço para anti-hipertensivos."},{bold:"Aumentar push comercial",text:"de anti-hipertensivos com campanha médica direcionada."},{bold:"Revisar sortimento",text:"de 120 PDVs da região para alinhar ao mix recomendado em 60 dias."}],questions:["Qual o impacto do mix recomendado na rentabilidade por PDV?","Como o mix ideal varia entre capital e interior?","Quais SKUs especÃficos devem ser priorizados em anti-hipertensivos?"]},pdv:{label:"Compra / Recompra",question:"Qual o comportamento de compra e recompra da Losartana Potássica 50mg na região de São Paulo?",title:"Comportamento de Compra e Recompra â Losartana Potássica 50mg (São Paulo)",analysis:"A análise de comportamento de PDV na região de São Paulo revela que a Losartana Potássica 50mg apresenta taxa de recompra crescente nos últimos 6 meses, passando de 62% em setembro para 78% em fevereiro. O ciclo médio de recompra é de 28 dias, alinhado à posologia padrão. Farmácias com programa de fidelidade apresentam taxa de recompra 15pp superior à média regional, indicando forte correlação entre ações de retenção e recorrência.",barChartData:[{month:"Set",compra:4200,recompra:2600},{month:"Out",compra:4500,recompra:2950},{month:"Nov",compra:4800,recompra:3400},{month:"Dez",compra:5100,recompra:3750},{month:"Jan",compra:5400,recompra:4100},{month:"Fev",compra:5700,recompra:4450}],barChartNote:"A taxa de recompra cresceu 18pp no perÃodo, sugerindo aumento da adesão ao tratamento e eficácia das ações de fidelização nos PDVs da região.",actions:[{bold:"Expandir programa de fidelidade",text:"para os 40 PDVs com menor taxa de recompra na região, replicando o modelo dos top performers."},{bold:"Criar alertas de reposição",text:"automáticos para pacientes com ciclo de recompra > 35 dias, reduzindo abandono de tratamento."},{bold:"Campanha de adesão",text:"junto a prescritores da região, reforçando a importância da continuidade terapêutica."}],questions:["Qual a taxa de recompra por bandeira de farmácia na região?","Como o preço impacta o ciclo de recompra da Losartana?","Quais PDVs apresentam maior risco de perda de pacientes para genéricos concorrentes?"]},propensity:{label:"Propensão por Produto",question:"Nesse momento, quais produtos teriam mais propensão de venda?",title:"Produtos com Maior Propensão de Venda â Janela Atual",anal
411ysis:"O modelo cruzou sinais de intenção (navegação, carrinho, recorrência), momento do ciclo de vida e contexto externo (clima, calendário promocional) para identificar 6 produtos com janela de conversão aberta agora. As barras representam o volume de clientes propensos e a linha representa a propensão média por produto. O topo do ranking concentra 58% do potencial de conversão da janela, com destaque para Tênis de Corrida e Fone Bluetooth TWS, que combinam alto volume propenso com propensão média acima de 60%.",productChart:[{product:"Tênis de Corrida",customers:6420,propensity:71},{product:"Fone Bluetooth TWS",customers:5180,propensity:64},{product:"Cafeteira Espresso",customers:3940,propensity:58},{product:"Camiseta Dry-Fit",customers:3210,propensity:49},{product:"Ar-Cond. Portátil",customers:2470,propensity:42},{product:"Streaming Premium",customers:1830,propensity:34}],productChartNote:"Barras = clientes propensos na janela atual (7 dias). Linha = propensão média (%). O corte de propensão >55% concentra 71% do potencial de receita da janela.",actions:[{bold:"Ativar campanha agora",text:"para os 3 produtos do topo â a janela de conversão fecha em 5â7 dias segundo o modelo."},{bold:"Reservar estoque preditivo",text:"nos CDs regionais para Tênis de Corrida e Fone Bluetooth, evitando ruptura no pico de conversão."},{bold:"Cross-sell orquestrado",text:"combinando Tênis + Camiseta Dry-Fit e Cafeteira + Streaming Premium com desconto progressivo."}],questions:["Qual o ticket médio esperado por produto na janela atual?","Como varia a propensão entre novos clientes e recorrentes?","Quais produtos têm maior risco de canibalização na cesta?"]},clusters:{label:"Clusters de Comportamento",question:"Defina o melhor cluster de comportamento de compra.",title:"Clusters Comportamentais â Base Ativa para Régua de Campanha",analysis:"A base ativa foi segmentada em 4 clusters comportamentais a partir de sinais preditivos de recência, frequência, ticket, sensibilidade a preço e resposta a canais. Cada cluster tem uma régua de campanha própria â ritmo, canal e oferta â para maximizar engajamento e conversão sem sobreposição de contato.",clustersTable:{headers:["Cluster","% Base","Ticket Médio","Frequência","Canal Preferido","Propensão"],rows:[["Alto Valor Recorrente","12%","R$ 480","Alta (2x/mês)","WhatsApp","84%"],["Explorador Sazonal","28%","R$ 210","Média (1x/mês)","E-mail","58%"],["SensÃvel a Preço","34%","R$ 95","Média (1x/mês)","Push","43%"],["Dormente c/ Potencial","26%","R$ 170","Baixa (>90 dias)","E-mail + SMS","27%"]]},clustersDetail:[{name:"Alto Valor Recorrente",description:"Clientes fiéis, ticket alto e frequência elevada. Já compraram nos últimos 30 dias e respondem bem a exclusividade.",approach:"Régua premium: novidades em pré-venda, benefÃcios de assinatura e curadoria personalizada via WhatsApp 1:1. Evitar descontos genéricos â proteger margem."},{name:"Explorador Sazonal",description:"Compra concentrada em momentos-chave (datas, coleções, lançamentos). Alta abertura de e-mail e engajamento em conteúdo editorial.",approach:"Régua temática: campanhas por evento/coleção com storytelling, bundles temáticos e recomendação preditiva de próximo produto por afinidade."},{name:"SensÃvel a Preço",description:"Reage fortemente a descontos e frete grátis. Ticket menor, mas alta reação a push em janelas curtas de oferta.",approach:"Régua de conversão rápida: push com contador de urgência, cupom escalonado por valor de cesta e frete grátis a partir de threshold otimizado."},{name:"Dormente com Potencial",description:"Histórico relevante de compra, mas sem atividade recente. Modelo identifica sinal de retorno (busca, e-mail aberto, visita reincidente).",approach:"Régua de reativação: e-mail com prova social + SMS com oferta de retorno personalizada. Cadência escalonada (D+0, D+3, D+7) antes de rebaixar para nutrição."}],actions:[{bold:"Priorizar Alto Valor Recorrente",text:"com régua premium â protege margem e sustenta LTV da base."},{bold:"Escalar Explorador Sazonal",text:"no próximo evento comercial â maior ganho marginal de receita por contato."},{bold:"Reativar Dormentes agora",text:"â janela de retorno detectada; postergar reduz taxa de reativação em ~40%."}],questions:["Qual o LTV projetado por cluster nos próximos 12 meses?","Como evitar sobreposição de contato entre réguas?","Qual cluster tem maior migração positiva (upgrade de valor)?"]},targetsPotential:{label:"Potencial de Metas",question:"Onde está o maior potencial de crescimento de volume por região?",title:"Potencial preditivo de crescimento e distribuição de metas",analysis:`O modelo identificou potencial incremental de 186 mil unidades para o próximo trimestre. Desse volume, 64% está concentrado em três combinações de região, cliente e SKU que atualmente recebem metas abaixo de sua capacidade prevista. O Interior de São Paulo a
411presenta a maior oportunidade, impulsionada pelos SKUs A e C e por clientes com expansão de demanda ainda não refletida nas metas atuais. 412 413A meta do Cliente A foi elevada porque o modelo prevê aumento de demanda para o SKU A, maior capacidade de absorção e expansão da categoria na região. Já a meta do Cliente D foi reduzida porque o volume atual está acima do potencial previsto e exigiria esforço comercial desproporcional para ser atingido.`,potentialTable:{headers:["Região","Vendedor","Cliente","SKU","Meta atual","Meta sugerida","Potencial"],rows:[["Interior de SP","Carlos","Cliente A","SKU A","12.000","15.400","16.100"],["Interior de SP","Carlos","Cliente B","SKU C","8.500","10.200","10.700"],["Minas Gerais","Marina","Cliente D","SKU B","9.800","8.900","9.200"],["Sul","Rafael","Cliente F","SKU A","7.200","8.600","9.000"]]},actions:[{bold:"Adicionar 3.400 unidades à meta do Cliente A",text:"para o SKU A, preservando uma faixa de segurança abaixo do potencial máximo."},{bold:"Reduzir a meta do Cliente D em 900 unidades",text:"evitando pressão comercial sem demanda correspondente."},{bold:"Redistribuir metas",text:"dos vendedores com territórios saturados para carteiras com maior potencial incremental."}],questions:["Quais vendedores estão com carteiras saturadas em relação ao potencial?","Como o potencial se distribui entre SKUs A, B e C nas próximas 12 semanas?","Qual o impacto financeiro de recalibrar as 3 combinações prioritárias?"]},targetsRisk:{label:"Risco de Meta",question:"Quais são os desalinhamentos de metas para o próximo trimestre?",title:"Risco preditivo de atingimento e recalibração de metas",analysis:`O modelo identificou 27 combinações de vendedor, cliente e SKU com metas desalinhadas para o próximo trimestre. Onze apresentam risco elevado de não atingimento, principalmente por desaceleração da demanda, queda de frequência de compra e redução da capacidade de absorção dos clientes. Outras 16 estão abaixo do potencial previsto e podem limitar o crescimento comercial mesmo com comportamento favorável de demanda. 414 415A meta do Cliente A está abaixo do potencial porque o modelo prevê maior frequência de compra, crescimento do volume médio e expansão da demanda do
415SKU A. Mantê-la no nÃvel atual pode limitar a captura de um comportamento de crescimento já identificado. Já a meta do Cliente D está acima do potencial previsto: o cliente apresenta desaceleração de compras, redução do volume por pedido e menor probabilidade de recompra do SKU B â manter a meta gera pressão sobre o vendedor sem demanda para sustentá-la.`,scatter:[{probability:94,delta:3100,size:15100,label:"Carlos ⢠Cliente A ⢠SKU A",quadrant:"below"},{probability:38,delta:-2200,size:7600,label:"Marina ⢠Cliente D ⢠SKU B",quadrant:"above"},{probability:82,delta:300,size:8700,label:"Rafael ⢠Cliente F ⢠SKU C",quadrant:"match"},{probability:89,delta:1400,size:7900,label:"Paula ⢠Cliente H ⢠SKU D",quadrant:"below"},{probability:71,delta:900,size:6200,label:"André ⢠Cliente J ⢠SKU A",quadrant:"below"},{probability:44,delta:-1600,size:5400,label:"LÃvia ⢠Cliente K ⢠SKU C",quadrant:"above"},{probability:55,delta:-400,size:4800,label:"Bruno ⢠Cliente L ⢠SKU B",quadrant:"uncertain"},{probability:63,delta:200,size:5600,label:"Sofia ⢠Cliente M ⢠SKU D",quadrant:"match"}],riskTable:{headers:["Vendedor","Cliente","SKU","Meta atual","Volume projetado","Prob. atingimento","Diagnóstico"],rows:[["Carlos","Cliente A","SKU A","12.000","15.100","94%","Meta abaixo do potencial"],["Marina","Cliente D","SKU B","9.800","7.600","38%","Meta acima do potencial"],["Rafael","Cliente F","SKU C","8.400","8.700","82%","Meta compatÃvel"],["Paula","Cliente H","SKU D","6.500","7.900","89%","Oportunidade de expansão"]]},signalsTable:{headers:["Sinal comportamental","Cliente A","Cliente D"],rows:[["Frequência prevista de compra","+18%","â12%"],["Volume médio por pedido","+9%","â7%"],["Potencial de expansão de mix","Alto","Baixo"],["Demanda prevista do SKU","+21%","â14%"],["Probabilidade de recompra","86%","43%"]]},actions:[{bold:"Elevar metas com probabilidade > 85%",text:"e potencial ainda não capturado, priorizando SKU A em clientes com sinais positivos."},{bold:"Recalibrar metas com probabilidade < 50%",text:"redistribuindo o volume para clientes e SKUs com comportamento mais favorável."},{bold:"Revisar mensalmente metas de alta incerteza",text:"incorporando mudanças de frequência, mix, demanda e recompra."}],questions:["Quais vendedores concentram o maior número de metas em risco?","Como priorizar recalibragens dentro do trimestre em curso?","Qual o ganho esperado ao redistribuir o volume das metas em risco?"]},mixBehavior:{label:"Mix por PDV",question:"Quais os comportamentos e desvios relevantes dos PDVs da região?",title:"Comportamento dos PDVs em relação ao mix ideal",analysis:"O modelo identificou três comportamentos predominantes entre os PDVs da região. A maior parte opera próxima ao mix esperado para seu perfil, mas 18% apresentam desvios relevantes. Alguns possuem variedade abaixo do potencial previsto, enquanto outros concentram produtos redundantes ou de baixo giro. O PDV 184 é o principal outlier positivo â mesmo com um mix 22% menor que a média regional, apresenta alta produtividade por SKU e potencial para absorver novas categorias. Já o PDV 327 possui um mix amplo, mas pouco aderente ao comportamento previsto de sua demanda, elevando o risco de estoque parado.",scatter:[{adherence:68,productivity:92,size:116,label:"PDV 184 ⢠Alta produtividade",quadrant:"positive"},{adherence:54,productivity:41,size:89,label:"PDV 327 ⢠Mix redundante",quadrant:"negative"},{adherence:91,productivity:74,size:102,label:"PDV 512 ⢠Padrão regional",quadrant:"aligned"},{adherence:63,productivity:81,size:113,label:"PDV 690 ⢠Demanda emergente",quadrant:"emerging"},{adherence:84,productivity:68,size:95,label:"PDV 231 ⢠Aderente",quadrant:"aligned"},{adherence:78,productivity:63,size:87,label:"PDV 402 ⢠Aderente",quadrant:"aligned"},{adherence:47,productivity:34,size:74,label:"PDV 118 ⢠Baixa eficiência",quadrant:"negative"},{adherence:72,productivity:88,size:108,label:"PDV 559 ⢠Emergente",quadrant:"emerging"}],pdvTable:{headers:["PDV","Perfil comportamental","Aderência ao mix ideal","Principal desvio","Potencial previsto"],rows:[["PDV 184","Alta produtivida
415de, mix restrito","68%","Categorias relevantes ausentes","+16% ticket"],["PDV 327","Mix amplo, baixa eficiência","54%","Excesso de SKUs semelhantes","â11% estoque improdutivo"],["PDV 512","Padrão regional equilibrado","91%","Sem desvio relevante","+3% ticket"],["PDV 690","Demanda emergente","63%","Mix ainda baseado no comportamento anterior","+13% ticket"]]},behaviorReading:["O PDV 184 não deve ser tratado como um ponto de baixa demanda. Seu comportamento indica alta recorrência, boa produtividade por SKU e concentração excessiva em poucas categorias. A inclusão seletiva de produtos complementares tende a ampliar o ticket sem comprometer o giro.","No PDV 327, o problema não é falta de variedade. O mix atual possui produtos com funções semelhantes e baixa diferenciação comportamental. A recomendação é reduzir sobreposição antes de adicionar novos itens."],actions:[{bold:"Expandir seletivamente o mix",text:"dos PDVs com alta produtividade e baixa aderência, priorizando categorias complementares."},{bold:"Revisar outliers com mix amplo e baixo giro",text:"substituindo SKUs redundantes por produtos mais aderentes."},{bold:"Criar estratégias distintas por cluster de PDVs",text:"evitando aplicar o mesmo sortimento para toda a região."}],questions:["Como o comportamento se distribui entre clusters de PDVs urbanos e periféricos?","Quais categorias complementares elevariam o ticket do PDV 184?","Qual o impacto de eliminar SKUs redundantes no PDV 327?"]},mixGaps:{label:"Gaps de Mix",question:"Mostre os gaps do mix ideal e potencial de aumento de ticket médio.",title:"Gaps de mix com maior potencial de ticket por região",analysis:`O modelo identificou 14 produtos sub-representados no mix atual, mas apenas cinco concentram a maior oportunidade de crescimento de ticket. No Interior de São Paulo, os SKUs A e C apresentam o maior potencial porque possuem alta aderência ao comportamento previsto dos PDVs, recorrência em estabelecimentos semelhantes e forte complementaridade com produtos já vendidos. A inclusão desses produtos nos PDVs elegÃveis pode elevar o ticket médio regional em até 12%, sem ampliar significativamente o risco de estoque parado. 416 417O SKU A apresenta o maior gap no Interior de São Paulo porque está ausente em 38% dos PDVs que demonstram comportamento compatÃvel com sua categoria. Esses estabelecimentos já vendem produtos complementares, possuem frequência de compra crescente e apresentam ticket inferior ao de PDVs semelhantes com o SKU presente. A oportunidade não está em distribuir o produto para toda a região â o modelo recomenda sua inclusão apenas nos 126 PDVs com maior aderência prevista.`,heatmap:{regions:["Interior de SP","Minas Gerais","Sul","Nordeste","Norte"],skus:["SKU A","SKU B","SKU C","SKU D","SKU E"],matrix:[[92,34,88,41,22],[48,71,39,33,28],[55,42,47,84,31],[36,45,43,51,78],[29,38,34,42,46]]},gapsTable:{headers:["Região","Produto","Presença atual","Presença ideal","Gap","Potencial de ticket"],rows:[["Interior de SP","SKU A","34%","72%","38 p.p.","+R$ 18,40"],["Interior de SP","SKU C","21%","51%","30 p.p.","+R$ 14,70"],["Minas Gerais","SKU B","48%","67%","19 p.p.","+R$ 9,80"],["Sul","SKU D","29%","55%","26 p.p.","+R$ 11,20"],["Nordeste","SKU E","18%","43%","25 p.p.","+R$ 8,60"]]},behaviorDetail:["Quais PDVs possuem maior aderência ao produto e à categoria.","Quais produtos são normalmente comprados em conjunto no mix atual.","Qual volume inicial é recomendado por PDV elegÃvel.","Qual ticket incremental é projetado após a inclusão.","Quais PDVs semelhantes já apresentam comportamento compatÃvel.","Qual o risco de baixo giro previsto para cada inclusão."],actions:[{bold:"Priorizar o SKU A nos 126 PDVs de maior aderência",text:"no Interior de SP, usando volume inicial compatÃvel com a demanda prevista."},{bold:"Associar a inclusão do SKU C aos complementares",text:"já presentes no mix, aumentando a probabilidade de crescimento do ticket."},{bold:"Evitar distribuição regional indiscriminada",text:"restringindo cada inclusão aos PDVs com potencial de giro e ticket comprovado pelo modelo."}],questions:["Quais PDVs entram na priorização inicial do SKU A no Interior de SP?","Como o ticket incremental se distribui entre os 5 SKUs prioritários?","Qual o risco de estoque parado projetado por cluster de PDV?"]},marginOpportunities:{label:"Oportunidades de Margem",question:"Quais as oportunidades de captura de margem sem impactar volume?",title:"Oportunidades preditivas de margem por SKU",analysis:"O modelo identificou 16 SKUs com espaço para reposicionamento de preço nos próximos 90 dias. Os cinco principais concentram 71% da margem incremental potencial. O SKU A apresenta a melhor oportunidade â sua demanda prevista permanece estável dentro de uma faixa de aumento de até 5,4%, enquanto o preço atual está abaixo da banda competitiva e do ponto de maior geração de margem. Já o SKU D demonstra alta sensibilidade e não deve receber aumento neste momento.",scatter:[{sensitivity:22,incrementalMargin:420,size:180,label:"SKU A ⢠Prioridade",quadrant:"priority"},{sensitivity:31,incrementalMargin:210,size:140,label:"SKU B ⢠Prioridade",quadrant:"priority"},{sensitivity:44,incrementalMargin:174,size:165,label:"SKU C ⢠Ajuste controlado",quadrant:"controlled"},{sensitivity:78,incrementalMargin:0,size:120,label:"SKU D ⢠Manter",quadrant:"hold"},{sensitivity:58,incrementalMargin:118,size:155,label:"SKU E ⢠Reduzir p/ volume",quadrant:"volume"},{sensitivity:36,incrementalMargin:92,size:105,label:"SKU F ⢠Prioridade",quadrant:"priority"},{sensitivity:68,incrementalMargin:-40,size:90,label:"SKU G ⢠Risco",quadrant:"risk"},{sensitivity:49,incrementalMargin:74,size:110,label:"SKU H ⢠Ajuste controlado",quadrant:"controlled"}],skuTable:{headers:["SKU","Preço atual","Preço recomendado","Reação prevista do volume","Margem incremental","Confiança"],rows:[["SKU A","R$ 89,90","R$ 94,80","â1,8%","+R$ 420 mil","92%"],["SKU B","R$ 64,90","R$ 67,40","â0,9%","+R$ 210 mil","89%"],["SKU C","R$ 129,90","R$ 133,20","â2,7%","+R$ 174 mil","86%"],["SKU D","R$ 49,90","R$ 49,90","â8,4%","Sem oportunidade","91%"],["SKU E","R$ 74,90","R$ 72,80","+6,9%","+R$ 118 mil","84%"]]},behaviorReading:["O comportamento previsto do SKU A indica baixa sensibilidade dentro da faixa recomendada. O produto possui demanda consistente, estoque equilibrado e posicionamento de preço inferior ao de alternativas comparáveis.","No SKU D, pequenos aumentos devem produzir redução desproporcional de volume. Nesse caso, manter o pre
417ço preserva melhor o resultado total da categoria."],actions:[{bold:"Reposicionar os SKUs A, B e C",text:"dentro das faixas recomendadas, priorizando os itens com maior confiança e menor impacto previsto no volume."},{bold:"Manter o preço do SKU D",text:"pois o ganho unitário não compensaria a perda projetada de demanda."},{bold:"Testar a redução do SKU E",text:"cuja resposta prevista de volume pode gerar mais margem total, mesmo com menor margem unitária."}],questions:["Como o ganho de margem se distribui entre categorias e canais?","Qual o impacto financeiro se o SKU D fosse ajustado mesmo assim?","Como validar as faixas recomendadas com um piloto controlado?"]},marginSignals:{label:"Sinais de Margem",question:"Quais sinais estão abrindo ou reduzindo espaço para captura de margem em cada SKU?",title:"Sinais preditivos que movimentam a margem",analysis:`O modelo identificou que o espaço para captura de margem está concentrado em SKUs com demanda prevista estável, menor sensibilidade a preço e posicionamento abaixo da banda competitiva. O SKU A apresenta a combinação mais favorável. Já o SKU D possui alta sensibilidade e desaceleração prevista de demanda, o que limita qualquer aumento de preço neste momento. 418 419O SKU A possui espaço para captura de margem porque sua demanda deve permanecer estável, mesmo com um ajuste moderado de preço. Além disso, o produto está posicionado abaixo de alternativas comparáveis e possui estoque compatÃvel com o ritmo previsto de venda. Já o SKU D não apresenta oportunidade de aumento neste momento â o modelo prevê maior sensibilidade ao preço e desaceleração da demanda, indicando que o ganho unitário seria insuficiente para compensar a perda de volume.`,signalsChart:[{sku:"SKU A",demand:22,sensitivity:18,competition:24,stock:10,currentMargin:8,category:12},{sku:"SKU B",demand:14,sensitivity:12,competition:22,stock:-6,currentMargin:6,category:8},{sku:"SKU C",demand:10,sensitivity:4,competition:6,stock:2,currentMargin:4,category:14},{sku:"SKU D",demand:-8,sensitivity:-28,competition:-4,stock:2,currentMargin:16,category:-6},{sku:"SKU E",demand:6,sensitivity:-10,competition:-8,stock:-22,currentMargin:-4,category:6}],signalsTable:{headers:["SKU","Espaço para margem","Principal sinal positivo","Principal restrição","Direção recomendada"],rows:[["SKU A","Alto","Demanda estável e baixa sensibilidade","Limite da categoria","Aumentar"],["SKU B","Alto","Preço abaixo da banda competitiva","Estoque moderado","Aumentar"],["SKU C","Médio","Crescimento previsto da categoria","Maior incerteza","Ajuste controlado"],["SKU D","Baixo","Margem unitária elevada","Alta sensibilidade","Manter"],["SKU E","Negativo","Potencial de ganho de volume","Estoque elevado","Reduzir"]]},actions:[{bold:"Priorizar os SKUs com demanda estável",text:"baixa sensibilidade e preço abaixo da banda competitiva."},{bold:"Manter os preços dos produtos",text:"cujo comportamento previsto indique risco relevante de perda de volume."},{bold:"Reavaliar os SKUs limitados",text:"quando houver mudanças de demanda, estoque ou posicionamento competitivo."}],questions:["Como os sinais evoluem semana a semana em cada SKU?","Quais SKUs estão prestes a mudar de faixa de espaço para margem?","Como priorizar decisões quando dois sinais se contradizem?"]},turnoverRisk:{label:"Risco de Envelhecimento",question:"Quais regiões, lojas e produtos apresentam maior risco de estoque envelhecido?",title:"Risco preditivo de envelhecimento por região e cluster",analysis:`O modelo identificou risco elevado de envelhecimento para o SKU A em 38 lojas, concentradas principalmente nos clusters Interior de Minas e Sul Metropolitano. Nessas localidades, a velocidade prevista de venda está abaixo da necessária para consumir o estoque antes do fim do ciclo comercial. Em São Paulo Premium, o mesmo produto mantém demanda consistente e não apresenta necessidade de desconto. 420 421O risco no Interior de Minas é sustentado pela combinação de baixa velocidade prevista de venda, maior sensibilidade ao preço e estoque acima da demanda esperada. Mantido o preço atual, parte relevante das unidades deve permanecer em estoque após o encerramento do ciclo comercial. Em São Paulo Premium, o comportamento é diferente. A demanda permanece consistente, o estoque está equilibrado e um desconto antecipado reduziria margem sem produzir ganho relevante de giro.`,regionTable:{headers:["Região ou cluster","Estoque atual","Cobertura projetada","Sell-through previsto","Risco"],rows:[["São Paulo Premium","8.400 un.","32 dias","78%","Baixo"],["Interior de São Paulo","6.200 un.","49 dias","61%","Médio"],["Interior de Minas","7.100 un.","83 dias","39%","Alto"],["Sul Metropolitano","5.800 un.","76 dias","44%","Alto"]]},signalsTable:{headers:["Sinal preditivo","Interior de Minas","São Paulo Premium"],rows:[["Velocidade prevista de venda","â24%","+8%"],["Sensibilidade ao preço","Alta","Baixa"],["Demanda sazonal futura","Baixa","Estável"],["Idade média do estoque","71 dias","29 dias"],["Pressão competitiva","Alta","Moderada"]]},actions:[{bold:"Priorizar ações de giro nas 38 lojas",text:"com cobertura projetada acima do limite saudável."},{bold:"Preservar o preço nos clusters com demanda consistente",text:"evitando markdown desnecessário."},{bold:"Redistribuir estoque entre regiões",text:"sempre que a transferência for mais rentável do que a redução de preço."}],questions:["Quais lojas dentro do Interior de Minas concentram o maior risco?","Qual o impacto financeiro previsto se nenhuma ação for tomada?","Como redistribuir estoque entre cluster
421s preservando margem?"]},turnoverMarkdown:{label:"Régua de Markdown",question:"Quais SKUs devem manter preço ou entrar em markdown nesse momento?",title:"Markdown preditivo por SKU, região e ciclo de vida",analysis:`O modelo recomenda iniciar markdown imediato para sete SKUs e manter o preço de outros onze produtos. O SKU A exige ação antecipada no Interior de Minas, onde um desconto inicial de 12% apresenta maior probabilidade de recuperar o giro e evitar uma liquidação mais profunda no fim do ciclo. Para o mesmo produto em São Paulo Premium, a recomendação é manter o preço atual por pelo menos 21 dias. 422 423O markdown de 12% para o SKU A foi recomendado porque aumenta o sell-through projetado de 39% para 68% no Interior de Minas. A ação antecipada preserva mais margem do que aguardar o envelhecimento do estoque e aplicar um desconto superior a 25% no encerramento do ciclo. A régua não é replicada nacionalmente. Cada cluster recebe uma recomendação diferente de acordo com velocidade de giro, sensibilidade ao preço, estoque, sazonalidade e comportamento local da demanda.`,markdownRuler:{headers:["Cluster","Hoje","Em 7 dias","Em 14 dias","Em 21 dias"],rows:[["São Paulo Premium","Manter","Manter","Manter","Reavaliar"],["Interior de SP","â5%","â8%","Reavaliar","â12%"],["Interior de Minas","â12%","Manter","â18%","â24%"],["Sul Metropolitano","â8%","â12%","â18%","Reavaliar"]]},skuTable:{headers:["SKU","Cluster prioritário","Preço atual","Preço recomendado","Sell-through projetado","Margem preservada"],rows:[["SKU A","Interior de Minas","R$ 129,90","R$ 114,30","68%","R$ 84 mil"],["SKU B","Sul Metropolitano","R$ 89,90","R$ 82,70","73%","R$ 51 mil"],["SKU C","Interior de SP","R$ 159,90","R$ 151,90","64%","R$ 42 mil"],["SKU D","São Paulo Premium","R$ 119,90","Manter","81%","Sem desconto"]]},actions:[{bold:"Aplicar o markdown inicial nos clusters de maior risco",text:"sem alterar o preço nacionalmente."},{bold:"Interromper novas reduções",text:"quando o sell-through atingir a trajetória esperada."},{bold:"Recalcular semanalmente a régua",text:"incorporando vendas, estoque restante, concorrência e resposta ao desconto."}],questions:["Como o markdown recomendado evolui semana a semana?","Qual o ganho de margem vs. aguardar liquidação no fim do ciclo?","Quais SKUs sairão do markdown mais cedo, com base na resposta?"]},personalizationBehavior:{label:"Recomendação por comportamento",question:"Quais produtos devem ser priorizados para cada perfil de navegação?",title:"Recomendações preditivas por comportamento de navegação",analysis:`O modelo identificou quatro comportamentos predominantes na jornada atual. Usuários orientados a performance apresentam maior aderência a produtos técnicos e complementares, enquanto usuários exploratórios respondem melhor a novidades e combinações que ampliam a descoberta. Para o perfil selecionado, a maior oportunidade está no cross-sell de produtos complementares ao item visualizado. A recomendação combina intenção atual, histórico individual, afinidade entre produtos e comportamento previsto de usuários semelhantes. 424 425Estes produtos foram recomendados porque complementam o item visualizado, apresentam alta recorrência em jornadas semelhantes e estão alinhados ao padrão de interesse previsto para este usuário. 426 427No varejo fashion, o look é recomendado porque combina estilo, categoria, cor, ocasião de uso e preferências comportamentais, evitando combinações incoerentes ou pouco aderentes.`,behaviorMatrix:{headers:["Perfil comportamental","Intenção prevista","Produto ou look recomendado","Aderência","Objetivo"],rows:[["Performance recorrente","Completar solução","Tênis + meia técnica + relógio","91%","Cross-sell"],["Explorador de novidades","Descobrir alternativas","Nova coleção da categoria","84%","Discovery"],["SensÃvel a estilo","Compor combinação","Look completo coordenado","88%","Look recommendation"],["Compra objetiva","Finalizar rapidamente","Produto principal + acessório essencial","79%","Conversão"]]},signalsTable:{headers:["Sinal preditivo","Efeito"],rows:[["Afinidade com a categoria","Alto"],["Complementaridade entre produtos","Alto"],["Padrão de navegação recente","Alto"],["Histórico de compras","Médio"],["Preferência de preço","Médio"],["Tendência comportamental do cluster","Alto"]]},actions:[{bold:"Priorizar produtos complementares com alta aderência",text:"evitando recomendações baseadas apenas em popularidade."},{bold:"Adaptar a composição da vitrine ao comportamento da sessão",text:"alternando conversão, cross-sell e descoberta."},{bold:"Destacar o argumento de recomendação",text:"explicando por que cada produto ou look faz sentido para aquele contexto."}],questions:["Como a aderência evolui entre categorias e cluster
427s comportamentais?","Quais produtos ganham espaço quando o objetivo é discovery?","Como validar o impacto das recomendações em ticket médio e conversão?"]},personalizationRepurchase:{label:"Janela de Recompra",question:"Quais clientes estão em janela de recompra nos próximos 30 dias?",title:"Comportamento preditivo de recompra",analysis:`O modelo identificou 18.420 clientes com probabilidade relevante de nova compra nos próximos 30 dias. Desses, 46% tendem a recomprar o mesmo produto, 34% devem migrar para uma variação ou produto substituto e 20% apresentam maior propensão a complementar a compra anterior. A principal oportunidade está nos clientes cuja janela prevista de recompra começa nos próximos sete dias. Uma ativação antecipada demais tende a gerar baixa resposta. Uma abordagem tardia aumenta o risco de perda da recompra para outro canal ou concorrente. 428 429Este cliente está entrando em sua janela de recompra porque o intervalo desde a última compra se aproxima do seu ciclo previsto de consumo. O comportamento anterior indica alta recorrência no mesmo SKU, baixa propensão à troca e maior resposta quando ativado entre o 24º e o 28º dia após a compra. 430 431Para um cliente com tendência de migração, a próxima compra não deve repetir exatamente o item anterior. O modelo identificou aumento de interesse por uma versão superior, comportamento semelhante ao de clientes que migraram de produto e maior aderência à nova opção dentro da janela prevista de recompra.`,curveData:[{day:0,probability:2},{day:5,probability:6},{day:10,probability:12},{day:14,probability:21},{day:18,probability:34},{day:22,probability:56},{day:24,probability:70},{day:26,probability:78},{day:28,probability:72},{day:32,probability:54},{day:36,probability:38},{day:42,probability:22},{day:50,probability:11}],curveWindow:{start:22,end:32},curvePeak:{day:26,probability:78},curveLegend:["Eixo X: dias desde a última compra","Eixo Y: probabilidade prevista de recompra","Faixa destacada: inÃcio da janela de oportunidade","Ponto marcado: maior propensão prevista","Curva descendente: queda prevista após o pico"],behaviorTable:{headers:["Comportamento previsto","Clientes","Janela de recompra","Propensão","Próxima melhor recomendação"],rows:[["Recompra do mesmo produto","8.473","5 a 12 dias","84%","Mesmo SKU"],["Recompra com variação","3.942","8 a 18 dias","73%","Tamanho, versão ou embalagem diferente"],["Migração para produto substituto","2.321","10 a 21 dias","68%","Alternativa de maior aderência"],["Compra complementar","3.684","3 a 14 dias","76%","Produto relacionado à compra anterior"]]},correlationsTable:{headers:["Sinal preditivo","Efeito sobre a recompra"],rows:[["Frequência entre compras anteriores","Define o timing provável"],["Consumo estimado do produto","Indica proximidade de reposição"],["Recompra recorrente do mesmo SKU","Aumenta a probabilidade de repetição"],["Mudança recente de preferência","Aumenta a chance de migração"],["Compra conjunta em jornadas semelhantes","Indica oportunidade de complemento"],["Sensibilidade a preço e promoção","Influencia oferta e momento de ativação"],["Disponibilidade e substituição de produto","Altera o item mais provável da próxima compra"]]},actions:[{bold:"Ativar primeiro os clientes na janela de maior propensão",text:"evitando contatos prematuros ou tardios."},{bold:"Diferenciar recompra, migração e compra complementar",text:"apresentando o produto mais aderente a cada comportamento previsto."},{bold:"Atualizar a recomendação conforme novas interações surgirem",text:"recalculando produto, timing e probabilidade de recompra."}],questions:["Quais clusters concentram a maior propensão nos próximos 7 dias?","Como diferenciar cliente de recompra vs. migração no mesmo cluster?","Qual o impacto financeiro previsto se a ativação ocorrer fora da janela?"]},priceConversionFriction:{label:"Fricção de Preço",question:"Onde o preço atual está reduzindo a probabilidade de conversão?",title:"Fricções preditivas de preço na jornada de compra",analysis:`O modelo identificou que o preço está limitando a conversão em 14% das sessões com alta intenção de compra. A maior oportunidade está nos usuários que retornaram ao produto, c
431ompararam alternativas e chegaram ao carrinho, mas encontraram um preço acima da faixa de maior resposta prevista para aquele contexto. 432 433A fricção não ocorre de forma uniforme. O Produto A apresenta maior sensibilidade em sessões originadas por mÃdia paga, onde os usuários demonstram alta comparação, maior sensibilidade e menor vÃnculo prévio com a marca. Já o Produto B mantém boa conversão entre clientes recorrentes mesmo sem incentivo, pois a intenção já é elevada e a probabilidade de conversão permanece dentro da faixa esperada.`,frictionHeatmap:{contexts:["MÃdia paga","Cliente recorrente","Busca orgânica","Carrinho recorrente","Primeira visita"],products:["Produto A","Produto B","Produto C","Produto D"],matrix:[[82,24,58,71,28],[46,18,62,55,22],[64,32,44,68,34],[38,20,41,47,18]]},contextTable:{headers:["Produto e contexto","Intenção prevista","Fricção de preço","Conversão prevista","Direção recomendada"],rows:[["Produto A · mÃdia paga","Alta","Alta","4,8%","Incentivo contextual"],["Produto A · cliente recorrente","Alta","Baixa","9,7%","Manter preço"],["Produto B · busca orgânica","Média","Média","5,9%","Ajuste moderado"],["Produto C · carrinho recorrente","Muito alta","Alta","7,2%","Ação imediata"],["Produto D · primeira visita","Baixa","Baixa","1,8%","Não incentivar"]]},signalsTable:{headers:["Sinal preditivo","Leitura do modelo"],rows:[["Retorno ao mesmo produto","Intenção crescente"],["Comparação frequente de alternativas","Sensibilidade a preço"],["Entrada e saÃda do carrinho","Fricção na decisão"],["Busca por cupom ou promoção","Expectativa de incentivo"],["Histórico de compra sem desconto","Baixa necessidade de incentivo"],["Sessão curta e pouco engajada","Baixa intenção, independentemente do preço"]]},actions:[{bold:"Aplicar ações de preço apenas nas sessões com alta intenção",text:"e fricção comprovada de preço."},{bold:"Preservar o preço para clientes com elevada probabilidade",text:"de conversão espontânea."},{bold:"Evitar incentivos em sessões de baixa intenção",text:"nas quais o preço não é o principal obstáculo."}],questions:["Como a fricção evolui entre canais de aquisição e perfis de sessão?","Quais contextos apresentam maior ganho previsto ao remover fricção?","Como validar as recomendações de preço em piloto controlado?"]},priceConversionIncentiveNeed:{label:"Necessidade de Incentivo",question:"Quais sessões precisam de incentivos para converter?",title:"Necessidade preditiva de incentivo por comportamento",analysis:`O modelo estima que 57% das sessões com alta intenção devem converter sem qualquer incentivo. Outros 28% apresentam sensibilidade suficiente para responder a uma ação moderada de preço. Nos 15% restantes, o desconto não deve produzir conversão incremental relevante. 434 435Aplicar o mesmo incentivo para toda a audiência destruiria margem em clientes que já comprariam e consumiria verba em sessões com baixa probabilidade de resposta. O modelo diferencia, por exemplo, um usuário com alta intenção e histórico de compra na categoria â que não deve receber desconto â de uma sessão com comparação recorrente de preço, busca por promoção e abandono após visualizar o valor final â que responde a um incentivo moderado dentro da margem permitida.`,distribution:[{group:"Conversão espontânea",percentage:57},{group:"Conversão dependente de incentivo",percentage:28},{group:"Baixa resposta mesmo com incentivo",percentage:15}],incentiveTable:{headers:["Comportamento previsto","Sessões","Probabilidade atual","Ação recomendada","Motivo"],rows:[["Compraria sem incentivo","18.420","82%","Manter preço","Intenção já consolidada"],["Responde a incentivo moderado","9.060","54%","Incentivo controlado","Alta sensibilidade"],["Aguarda uma condição especÃfica","3.480","47%","BenefÃcio direcionado","Busca por conveniência ou frete"],["Baixa intenção atual","4.910","16%","Não oferecer desconto","Baixo ganho incremental"]]},detail:["Quais sinais indicam intenção.","Sensibilidade prevista ao preço.","Probabilidade de conversão espontânea.","Incentivo mÃnimo suficiente.","Margem disponÃvel.","Canal e momento mais adequados.","Risco de conceder desconto sem gerar venda incremental."],actions:[{bold:"Suprimir descontos para usuários com alta probabilidade",text:"de conversão espontânea."},{bold:"Oferecer o menor incentivo capaz de alterar a decisão",text:"nas sessões sensÃveis a preço."},{bold:"Não utilizar preço para recuperar sessões de baixa intenção",text:"priorizando outras ações de jornada ou recomendação."}],questions:["Como o incentivo mÃnimo varia por categoria e ticket?","Qual o impacto de margem previsto ao restringir o desconto ao grupo sensÃvel?","Como acompanhar o comportamento do grupo dependente de incentivo ao longo do tempo?"]}}},en:{sectionTitle:"",sectionSubtitle:"Click a topic below and see how predictive signals become decisions that drive growth, margin and efficie
435ncy.",placeholder:"Type your question...",sidebar:["Home","Ingestion Tokens","Recsys Tokens","Data Ingestion","i6 Signal","Widgets"],executiveAnalysis:"Executive Analysis",recommendedActions:"Recommended Actions",suggestedQuestions:"Suggested Questions",emptyState:"What predictive insight shall we discover today?",scenarios:{supply:{label:"Stockout",question:"Which SKUs are at risk of stockout in the next 3 months?",title:"Stockout Risk Analysis â Next Quarter",analysis:"Demand projection vs replenishment capacity for the next 90 days indicates 5 SKUs with elevated stockout probability. SKU 44210 (Over-ear Bluetooth Headphones) leads the risk (94%) due to year-end seasonality (Black Friday + Christmas) and 22-day import lead time from the primary supplier. The estimated cumulative impact is $102,000 in quarterly revenue if no preventive action is taken.",table:{headers:["SKU","Product","Stockout Prob.","Stock (days)"],rows:[["44210","Over-ear Bluetooth Headphones","94%","18"],["31087","5L Digital Air Fryer","87%","24"],["28901","Fitness GPS Smartwatch","72%","38"],["55432","Automatic Espresso Machine","61%","45"],["19876","Wi-Fi Security Camera","48%","62"]]},actions:[{bold:"Renegotiate contracts",text:"with SKU 44210 supplier (Bluetooth Headphones) â secure max 15-day lead time and flexible minimum lot for the quarter."},{bold:"Adjust forecast",text:"for SKUs 31087 (Air Fryer) and 28901 (Smartwatch) â incorporate the Black Friday + Christmas seasonal curve into the replenishment model."},{bold:"Review safety stock",text:"â raise minimum coverage to 30 days for the 5 critical SKUs during the next quarter."}],questions:["What is the accumulated financial impact of stockouts in the last 30 days?","Which suppliers show the highest lead time variability?","How to redistribute inventory across DCs to cover regional demand?"]},forecast:{label:"Seasonality",question:"What is the seasonality and trend of the best-selling product for the last quarter?",title:"Monthly Analysis of Best-Selling Item (SKU: 28822)",analysis:'Product SKU 28822 (55" 4K Smart TV) shows a strong seasonal component with a peak in December (+34% vs average), driven by Black Friday and holiday shopping. The long-term trend shows 8.2% growth per quarter, sustained by marketplace expansion and the consumer electronics category. The model showed high predictive accuracy for this item, representing a highly reliable prediction for commercial planning.',chartData:[{month:"Oct",seasonality:12400,trend:11800,projected:12900},{month:"Nov",seasonality:14200,trend:12600,projected:15100},{month:"Dec",seasonality:18900,trend:13400,projected:19800}],chartNote:"The seasonal pattern indicates a 52% increase between October and December, consistent with the last 3 years. The projected sales line blends seasonality, trend and campaign effects, serving as the reference for replenishment and media planning.",actions:[{bold:"Increase safety stock",text:"by 25% for November and 40% for December, aligned with the seasonal curve."},{bold:"Plan promotional campaigns",text:"for October, leveraging the start of the ascending curve toward Black Friday."},{bold:"Reinforce marketplace channels",text:"and paid media in adjacent categories (soundbars, streaming devices, wall mounts) throughout Q4."}],questions:["How does seasonality vary by region (East Coast vs West Coast)?","What is the effect of promotions on seasonal curve acceleration?","Is there cannibalization with other SKUs in the same category?"]},pricing:{label:"Optimal Price",question:"What is the optimal price for Ibuprofen 400mg in this region?",title:"Price Optimization â Ibuprofen 400mg (Northeast Region)",analysis:"Price elasticity analysis for Ibuprofen 400mg in the Northeast Region indicates the current price of $3.80 is 7% above the optimal point. Reducing to $3.50 would maximize total contribution margin, with an estimated 12% volume increase and net gain of $8,600/month in the region.",table:{headers:["Indicator","Value","Note"],rows:[["Current Price","$3.80","Above optimal"],["Optimal Price","$3.50","Maximizes total margin"],["Elasticity","-1.34","Elastic demand"],["Est. Gain","+$8.6k/mo","+12% volume"]]},actions:[{bold:"Implement suggested price",text:"of $3.50 in a pilot phase across 50 POS in the metro area."},{bold:"Monitor cross-elasticity",text:"â assess impact on competing generics."},{bold:"Regional A/B test",text:"â compare new price vs current performance over 4 weeks."}],questions:["How does elasticity vary across channels (pharma vs retail)?","What is the optimal price for the West Coast considering local competition?","Is there a bundling opportunity with other products in the line?"]},comercial:{label:"Commercial Focus",question:"Where should I focus commercial efforts this month?",title:"Commercial Prioritization â February 2026",analysis:"Potential vs performance analysis identified 8 territories with significant revenue gaps. The top 3 priority territories concentrate 62% of the total gap ($178k), with high conversion probability based on historical response to similar commercial actions.",comercialChart:[{territory:"New York",gap:47,potential:240,score:94},{territory:"Chicago",gap:40,potential:178,score:89},{territory:"Los Angeles",gap:33,potential:152,score:85},{territory:"Miami",gap:29,potential:136,score:78}],actions:[{bold:"Allocate additional reps",text:"to New York, focusing on the POS with the largest individual gap."},{bold:"Incentive campaign",text:"for Chicago with scaled bonus by growth tier."},{bold:"Executive visit",text:"to the top clients in Los Angeles to renegotiate mix and share of shelf."}],questions:["What is the historical ROI of commercial actions in each territory?","Which products present the best cross-sell opportunity?","How is rep performance vs individual quota?"]},mix:{label:"Mix / Assortment",question:"What is the ideal mix for the West Coast?",title:"Mix Optimization â West Coast",analysis:"Analysis of current vs recommended mix for the West Coast reveals misalignment in 3 key categories. The current mix over-indexes analgesics (38% vs recommended 29%) and under-indexes antihypertensives (12% vs recommended 19%). The projected adjustment would impact +$62k/month in regional contribution margin.",comparison:[{category:"Analgesics",current:"38%",recommended:"29%",direction:"down"},{category:"Anti-inflammatories",current:"22%",recommended:"24%",direction:"up"},{category:"Antihypertensives",current:"12%",recommended:"19%",direction:"up"},{category:"Antibiotics",current:"15%",recommended:"16%",direction:"stable"},{category:"Others",current:"13%",recommended:"12%",direction:"stable"}],actions:[{bold:"Reduce analgesic exposure",text:"by 9pp, redistributing shelf space to antihypertensives."},{bold:"Increase commercial push",text:"for antihypertensives with a targeted medical campaign."},{bold:"Review assortment",text:"across 120 POS in the region to align with the recommended mix within 60 days."}],questions:["What is the recommended mix impact on per-POS profitability?","How does the ideal mix vary between metro and rural areas?","Which specific SKUs should be prioritized
435in antihypertensives?"]},pdv:{label:"Purchase / Repurchase",question:"What is the purchase and repurchase behavior of Losartan Potassium 50mg in the Greater New York area?",title:"Purchase & Repurchase Behavior â Losartan Potassium 50mg (Greater New York)",analysis:"POS behavior analysis in the Greater New York area reveals that Losartan Potassium 50mg shows an increasing repurchase rate over the past 6 months, rising from 62% in September to 78% in February. The average repurchase cycle is 28 days, aligned with standard dosing. Pharmacies with loyalty programs show a repurchase rate 15pp above the regional average, indicating a strong correlation between retention actions and recurrence.",barChartData:[{month:"Sep",compra:4200,recompra:2600},{month:"Oct",compra:4500,recompra:2950},{month:"Nov",compra:4800,recompra:3400},{month:"Dec",compra:5100,recompra:3750},{month:"Jan",compra:5400,recompra:4100},{month:"Feb",compra:5700,recompra:4450}],barChartNote:"The repurchase rate grew 18pp over the period, suggesting increased treatment adherence and effectiveness of loyalty actions at regional POS.",actions:[{bold:"Expand loyalty program",text:"to the 40 POS with the lowest repurchase rate in the region, replicating the top performers model."},{bold:"Create automatic replenishment alerts",text:"for patients with repurchase cycles > 35 days, reducing treatment abandonment."},{bold:"Adherence campaign",text:"with regional prescribers, reinforcing the importance of treatment continuity."}],questions:["What is the repurchase rate by pharmacy chain in the region?","How does pricing impact the Losartan repurchase cycle?","Which POS show the highest risk of losing patients to competing generics?"]},propensity:{label:"Product Propensity",question:"Right now, which products have the highest sales propensity?",title:"Products with Highest Sales Propensity â Current Window",analysis:"The model combined intent signals (browsing, cart, recurrence), lifecycle stage and external context (weather, promo calendar) to identify 6 products with an open conversion window right now. Bars represent the volume of propense customers; the line represents the average propensity per product. The top of the ranking concentrates 58% of the window's conversion potential, led by Running Shoes and Wireless Earbuds, combining high propense volume with average propensity above 60%.",productChart:[{product:"Running Shoes",customers:6420,propensity:71},{product:"Wireless Earbuds",customers:5180,propensity:64},{product:"Espresso Machine",customers:3940,propensity:58},{product:"Dry-Fit T-Shirt",customers:3210,propensity:49},{product:"Portable AC Unit",customers:2470,propensity:42},{product:"Premium Streaming",customers:1830,propensity:34}],productChartNote:"Bars = propense customers in the current 7-day window. Line = average propensity (%). Cut-off >55% concentrates 71% of the window revenue potential.",actions:[{bold:"Activate campaign now",text:"for the top 3 products â the conversion window closes in 5â7 days per the model."},{bold:"Reserve predictive stock",text:"in regional DCs for Running Shoes and Wireless Earbuds, avoiding stockout at the conversion peak."},{bold:"Orchestrated cross-sell",text:"pairing Shoes + Dry-Fit T-Shirt and Espresso Machine + Premium Streaming with progressive discount."}],questions:["What is the expected average ticket per product in the current window?","How does propensity vary between new and returning customers?","Which products carry the highest basket cannibalization risk?"]},clusters:{label:"Behavior Clusters",question:"Define the best purchase-behavior cluster.",title:"Behavioral Clusters â Active Base for Campaign Cadence",analysis:"The active base was segmented into 4 behavioral clusters using predictive signals: recency, frequency, ticket, price sensitivity and channel response. Each cluster has its own campaign cadence â rhythm, channel and offer â to maximize engagement and conversion without contact overlap.",clustersTable:{headers:["Cluster","% Base","Avg. Ticket","Frequency","Preferred Channel","Propensity"],rows:[["High-Value Recurring","12%","$96","High (2x/mo)","WhatsApp","84%"],["Seasonal Explorer","28%","$42","Medium (1x/mo)","Email","58%"],["Price Sensitive","34%","$19","Medium (1x/mo)","Push","43%"],["Dormant w/ Potential","26%","$34","Low (>90 days)","Email + SMS","27%"]]}
435,clustersDetail:[{name:"High-Value Recurring",description:"Loyal, high-ticket, high-frequency customers. Purchased in the last 30 days and respond well to exclusivity.",approach:"Premium cadence: pre-sale drops, subscription perks and 1:1 curated recommendations via WhatsApp. Avoid generic discounts â protect margin."},{name:"Seasonal Explorer",description:"Purchases concentrate on key moments (holidays, collections, launches). High email open rate and editorial engagement.",approach:"Thematic cadence: event/collection campaigns with storytelling, themed bundles and predictive next-product recommendation by affinity."},{name:"Price Sensitive",description:"Reacts strongly to discounts and free shipping. Smaller ticket, but high reactivity to push in short offer windows.",approach:"Fast-conversion cadence: push with urgency countdown, tiered coupon by basket value and free shipping above optimized threshold."},{name:"Dormant with Potential",description:"Relevant purchase history but no recent activity. Model detects return signal (search, email open, repeat visit).",approach:"Reactivation cadence: email with social proof + SMS with personalized comeback offer. Staggered cadence (D+0, D+3, D+7) before demoting to nurture."}],actions:[{bold:"Prioritize High-Value Recurring",text:"with premium cadence â protects margin and sustains base LTV."},{bold:"Scale Seasonal Explorer",text:"in the next commercial event â highest marginal revenue gain per contact."},{bold:"Reactivate Dormants now",text:"â return window detected; delaying drops reactivation rate ~40%."}],questions:["What is the projected LTV per cluster over the next 12 months?","How to avoid contact overlap across cadences?","Which cluster shows the highest positive migration (value upgrade)?"]},targetsPotential:{label:"Target Potential",question:"Where is the largest volume growth potential by region?",title:"Predictive growth potential and target distribution",analysis:`The model identified 186k units of incremental potential for the next quarter. 64% of that volume is concentrated in three combinations of region, client and SKU that currently receive targets below their predicted capacity. São Paulo Countryside shows the largest opportunity, driven by SKUs A and C and by clients whose demand expansion is not yet reflected in current targets. 436 437Client Aâs target was raised because the model predicts higher demand for SKU A, stronger absorption capacity and category expansion in the region. Client Dâs target was lowered because current volume already sits above the predicted potential and would require disproportionate commercial effort to be reached.`,potentialTable:{headers:["Region","Rep","Client","SKU","Current target","Suggested target","Potential"],rows:[["São Paulo Countryside","Carlos","Client A","SKU A","12,000","15,400","16,100"],["São Paulo Countryside","Carlos","Client B","SKU C","8,500","10,200","10,700"],["Minas Gerais","Marina","Client D","SKU B","9,800","8,900","9,200"],["South","Rafael","Client F","SKU A","7,200","8,600","9,000"]]},actions:[{bold:"Add 3,400 units to Client Aâs target",text:"for SKU A, keeping a safety band below the maximum potential."},{bold:"Reduce Client Dâs target by 900 units",text:"avoiding commercial pressure without matching demand."},{bold:"Redistribute targets",text:"from reps with saturated territories to portfolios with higher incremental potential."}],questions:["Which reps carry saturated portfolios relative to potential?","How does potential split across SKUs A, B and C over the next 12 weeks?","What is the financial impact of recalibrating the 3 priority combinations?"]},targetsRisk:{label:"Target Risk",question:"Which targets show the highest risk of miss or sit below predicted potential?",title:"Predictive attainment risk and target recalibration",analysis:`The model identified 27 rep-client-SKU combinations with misaligned targets for the next quarter. Eleven show high risk of miss, mainly due to demand deceleration, lower purchase frequency and reduced client absorption capacity. Another 16 sit below predicted potential and may cap commercial growth even with favorable demand behavior. 438 439Client Aâs target sits below potential because the model predicts higher purchase frequency, growing average volume and expanding demand for SKU A. Keeping it at the current level may cap the capture of a growth behavior already identified. Client Dâs target sits above the predicted potential: the client shows purchase deceleration, lower volume per order and reduced repurchase probability of SKU B â keeping the target creates pressure on the rep without demand to sustain it.`,scatter:[{probability:94,delta:3100,size:15100,label:"Carlos ⢠Client A ⢠SKU A",quadrant:"below"},{probability:38,delta:-2200,size:7600,label:"Marina ⢠Client D ⢠SKU B",quadrant:"above"},{probability:82,delta:300,size:8700,label:"Rafael ⢠Client F ⢠SKU C",quadrant:"match"},{probability:89,delta:1400,size:7900,label:"Paula ⢠Client H ⢠SKU D",quadrant:"below"},{probability:71,delta:900,size:6200,label:"André ⢠Client J ⢠SKU A",quadrant:"below"},{probability:44,delta:-1600,size:5400,label:"LÃvia ⢠Client K ⢠SKU C",quadrant:"above"},{probability:55,delta:-400,size:4800,label:"Bruno ⢠Client L ⢠SKU B",quadrant:"uncertain"},{probability:63,delta:200,size:5600,label:"Sofia ⢠Client M ⢠SKU D",quadrant:"match"}],riskTable:{headers:["Rep","Client","SKU","Current target","Projected volume","Attain. prob.","Diagnosis"],rows:[["Carlos","Client A","SKU A","12,000","15,100","94%","Target below potential"],["Marina","Client D","SKU B","9,800","7,600","38%","Target above potential"],["Rafael","Client F","SKU C","8,400","8,700","82%","Target aligned"],["Paula","Client H","SKU D","6,500","7,900","89%","Expansion opportunity"]]},signalsTable:{headers:["Behavioral signal","Client A","Client D"],rows:[["Predicted purchase frequency","+18%","â12%"],["Avg. volume per order","+9%","â7%"],["Mix expansion potential","High","Low"],["Predicted SKU demand","+21%","â14%"],["Repurchase probability","86%","43%"]]},actions:[{bold:"Raise targets with attainment probability > 85%",text:"and potential not yet captured, prioritizing SKU A in clients with positive signals."},{bold:"Recalibrate targets with probability < 50%",text:"redistributing volume to clients and SKUs with more favorable behavior."},{bold:"Review high-uncertainty targets monthly",text:"incorporating changes in frequency, mix, demand and repurchase."}],questions:["Which reps concentrate the largest number of at-risk targets?","How to prioritize recalibrations within the ongoing quarter?","What is the expected gain from redistributing at-risk target volume?"]},mixBehavior:{label:"Mix by Store",question:"How do stores in the region behave relative to the ideal assortment and show meaningful deviations?",title:"Store behavior versus ideal assortment",analysis:"The model identified three predominant behaviors among the regionâs stores. Most operate close to the assortment expected for their profile, but 18% show meaningful deviations. Some carry variety below predicted potential, while others concentrate redundant or low-turn products. Store 184 is the leading positive outlier â with an assortment 22% smaller than the regional average, it still shows high productivity per SKU and headroom to absorb new categories. Store 327, in turn, carries a broad assortment that poorly matches its predicted demand behavior, raising the risk of idle inventory.",scatter:[{adherence:68,productivity:92,size:116,label:"Store 184 ⢠High productivity",quadrant:"positive"},{adherence:54,productivity:41,size:89,label:"Store 327 ⢠Redundant assortment",quadrant:"negative"},{adherence:91,productivity:74,size:102,label:"Store 512 ⢠Regional baseline",quadrant:"aligned"},{adherence:63,productivity:81,size:113,label:"Store 690 ⢠Emerging demand",quadrant:"emerging"},{adherence:84,productivity:68,size:95,label:"Store 231 ⢠Aligned",quadrant:"aligned"},{adherence:78,productivity:63,size:87,label:"Store 402 ⢠Aligned",quadrant:"aligned"},{adherence:47,productivity:34,size:74,label:"Store 118 ⢠Low efficie
439ncy",quadrant:"negative"},{adherence:72,productivity:88,size:108,label:"Store 559 ⢠Emerging",quadrant:"emerging"}],pdvTable:{headers:["Store","Behavioral profile","Ideal-mix adherence","Main deviation","Predicted potential"],rows:[["Store 184","High productivity, narrow mix","68%","Relevant categories missing","+16% basket"],["Store 327","Broad mix, low efficiency","54%","Redundant similar SKUs","â11% idle inventory"],["Store 512","Balanced regional pattern","91%","No material deviation","+3% basket"],["Store 690","Emerging demand","63%","Mix still reflects prior behavior","+13% basket"]]},behaviorReading:["Store 184 should not be treated as a low-demand outlet. Its behavior indicates high recurrence, solid productivity per SKU and excessive concentration in a few categories. Selectively adding complementary products should lift basket without hurting turn.","In Store 327 the problem is not lack of variety. The current assortment carries products with overlapping roles and low behavioral differentiation. The recommendation is to reduce overlap before adding new items."],actions:[{bold:"Selectively expand assortment",text:"in stores with high productivity and low adherence, prioritizing complementary categories."},{bold:"Review outliers with broad mix and low turn",text:"replacing redundant SKUs with more adherent products."},{bold:"Design distinct strategies per store cluster",text:"avoiding one-size-fits-all assortments across the region."}],questions:["How does behavior split between urban and outskirt store clusters?","Which complementary categories would lift Store 184âs basket?","What is the impact of removing redundant SKUs from Store 327?"]},mixGaps:{label:"Assortment Gaps",question:"Show which products have the largest gap in the ideal assortment with the highest potential to lift average basket.",title:"Assortment gaps with highest basket potential by region",analysis:`The model identified 14 under-represented products in the current assortment, but only five concentrate the largest basket-growth opportunity. In São Paulo Countryside, SKUs A and C hold the highest potential due to strong adherence to store behavior, recurrence in similar outlets and complementarity with products already sold. Adding these products to eligible stores can lift regional average basket by up to 12% without materially increasing idle-inventory risk. 440 441SKU A shows the largest gap in São Paulo Countryside because it is missing in 38% of stores that behave in line with its category. These outlets already sell complementary products, show rising purchase frequency and post a lower basket than similar stores that already carry the SKU. The opportunity is not to distribute it across the whole region â the model recommends including it only in the 126 stores with the highest predicted adherence.`,heatmap:{regions:["São Paulo Countryside","Minas Gerais","South","Northeast","North"],skus:["SKU A","SKU B","SKU C","SKU D","SKU E"],matrix:[[92,34,88,41,22],[48,71,39,33,28],[55,42,47,84,31],[36,45,43,51,78],[29,38,34,42,46]]},gapsTable:{headers:["Region","Product","Current presence","Ideal presence","Gap","Basket potential"],rows:[["São Paulo Countryside","SKU A","34%","72%","38 pp","+$ 18.40"],["São Paulo Countryside","SKU C","21%","51%","30 pp","+$ 14.70"],["Minas Gerais","SKU B","48%","67%","19 pp","+$ 9.80"],["South","SKU D","29%","55%","26 pp","+$ 11.20"],["Northeast","SKU E","18%","43%","25 pp","+$ 8.60"]]},behaviorDetail:["Which stores show the highest adherence to the product and its category.","Which products are typically bought together in the current assortment.","What initial volume is recommended per eligible store.","What incremental basket is projected after inclusion.","Which similar stores already show compatible behavior.","What low-turn risk is predicted for each inclusion."],actions:[{bold:"Prioritize SKU A across the 126 highest-adherence stores",text:"in São Paulo Countryside, using an initial volume aligned with predicted demand."},{bold:"Pair SKU C inclusion with existing complementary products",text:"already in the mix to raise the probability of basket growth."},{bold:"Avoid indiscriminate regional rollout",text:"restricting each inclusion to stores with model-proven turn and basket potential."}],questions:["Which stores enter the initial SKU A prioritization in São Paulo Countryside?","How does incremental basket split across the 5 priority SKUs?","What idle-inventory risk is projected per store cluster?"]},marginOpportunities:{label:"Margin Opportunities",question:"Which SKUs show the largest opportunity to capture margin without materially losing volume?",title:"Predictive margin opportunities by SKU",analysis:"The model identified 16 SKUs with room for price repositioning over the next 90 days. The top five concentrate 71% of the potential incremental margin. SKU A shows the best opportunity â predicted demand remains stable within an increase band of up to 5.4%, while the current price sits below the competitive band and the peak margin point. SKU D shows high sensitivity and should not receive an increase at this time.",scatter:[{sensitivity:22,incrementalMargin:420,size:180,label:"SKU A ⢠Priority",quadrant:"priority"},{sensitivity:31,incrementalMargin:210,size:140,label:"SKU B ⢠Priority",quadrant:"priority"},{sensitivity:44,incrementalMargin:174,size:165,label:"SKU C ⢠Controlled adjust",quadrant:"controlled"},{sensitivity:78,incrementalMargin:0,size:120,label:"SKU D ⢠Hold",quadrant:"hold"},{sensitivity:58,incrementalMargin:118,size:155,label:"SKU E ⢠Reduce for volume",quadrant:"volume"},{sensitivity:36,incrementalMargin:92,size:105,label:"SKU F ⢠Priority",quadrant:"priority"},{sensitivity:68,incrementalMargin:-40,size:90,label:"SKU G ⢠Risk",quadrant:"risk"},{sensitivity:49,incrementalMargin:74,size:110,label:"SKU H ⢠Controlled adjust",quadrant:"controlled"}],skuTable:{headers:["SKU","Current price","Recommended price","Predicted volume reaction","Incremental margin","Confidence"],rows:[["SKU A","$ 89.90","$ 94.80","â1.8%","+$ 420k","92%"],["SKU B","$ 64.90","$ 67.40","â0.9%","+$ 210k","89%"],["SKU C","$ 129.90","$ 133.20","â2.7%","+$ 174k","86%"],["SKU D","$ 49.90","$ 49.90","â8.4%","No opportunity","91%"],["SKU E","$ 74.90","$ 72.80","+6.9%","+$ 118k","84%"]]},behaviorReading:["Predicted behavior for SKU A indicates low sensitivity within the recommended band. The product shows consistent demand, balanced stock and a price positioned below comparable alternatives.","For SKU D, small increases should produce a disproportionate volume drop. Holding the current price preserves the best overall category outcome."],actions:[{bold:"Reposition SKUs A, B and C",text:"within the recommended bands, prioritizing items with higher confidence and lower predicted volume impact."},{bold:"Hold SKU D price",text:"as the unit gain would not offset the projected loss in demand."},{bold:"Pilot a reduction for SKU E",text:"whose predicted volume response can generate more total margin, even with a smaller unit margin."}],questions:["How is the margin gain distributed across categories and channels?","What would the financial impact be if SKU D were adjusted anyway?","How to validate the recommended bands with a controlled pilot?"]},marginSignals:{label:"Margin Signals",question:"Which signals are opening or reducing room for margin capture on each SKU?",title:"Predictive signals that move margin",analysis:`The model identified that room for margin capture is concentrated in SKUs with stable predicted demand, lower price sensitivity and positioning below the competitive band. SKU A shows the most favorable combination. SKU D, on the other hand, shows high sensitivity and predicted demand deceleration, limiting any price increase at this time. 442 443SKU A has room for margin capture because its demand is expected to remain stable, even with a moderate price adjustment. The product is positioned below comparable alternatives and its stock is aligned with the predicted sales pace. SKU D shows no opportunity for an increase at this time â the model predicts higher price sensitivity and slowing demand, indicating the unit gain would not offset the volume loss.`,signalsChart:[{sku:"SKU A",demand:22,sensitivity:18,competition:24,stock:10,currentMargin:8,category:12},{sku:"SKU B",demand:14,sensitivity:12,competition:22,stock:-6,currentMargin:6,category:8},{sku:"SKU C",demand:10,sensitivity:4,competition:6,stock:2,currentMargin:4,category:14},{sku:"SKU D",demand:-8,sensitivity:-28,competition:-4,stock:2,currentMargin:16,category:-6},{sku:"SKU E",demand:6,sensitivity:-10,competition:-8,stock:-22,currentMargin:-4,category:6}],signalsTable:{headers:["SKU","Room for margin","Top positive signal","Main constraint","Recommended direction"],rows:[["SKU A","High","Stable demand and low sensitivity","Category ceiling","Increase"],["SKU B","High","Price below competitive band","Moderate stock","Increase"],["SKU C","Medium","Predicted category growth","Higher uncertainty","Controlled adjust"],["SKU D","Low","Elevated unit margin","High sensitivity","Hold"],["SKU E","Negative","Volume-gain potential","Elevated stock","Reduce"]]},actions:[{bold:"Prioritize SKUs with stable demand",text:"low sensitivity and a price below the competitive band."},{bold:"Hold prices on products",text:"whose predicted behavior indicates material risk of volume loss."},{bold:"Re-evaluate constrained SKUs",text:"when demand, stock or competitive positioning change."}],questions:["How do signals evolve week by week for each SKU?","Which SKUs are about to shift their room-for-margin band?","How to prioritize decisions when two signals contradict each other?"]},turnoverRisk:{label:"Aging Risk",question:"In which regions, stores or cluster
443s do products show the highest aging inventory risk?",title:"Predictive aging risk by region and cluster",analysis:`The model identified elevated aging risk for SKU A across 38 stores, concentrated mostly in the Minas Countryside and Southern Metropolitan clusters. In these locations, predicted sales velocity is below what is needed to consume the stock before the end of the commercial cycle. In São Paulo Premium, the same product keeps consistent demand and does not require a markdown. 444 445Risk in Minas Countryside is sustained by a combination of low predicted sales velocity, higher price sensitivity and stock above expected demand. At the current price, a relevant share of units is likely to remain in stock after the cycle closes. In São Paulo Premium, behavior is different. Demand remains consistent, stock is balanced and an early markdown would reduce margin without producing a relevant turn gain.`,regionTable:{headers:["Region or cluster","Current stock","Projected coverage","Predicted sell-through","Risk"],rows:[["São Paulo Premium","8,400 units","32 days","78%","Low"],["São Paulo Countryside","6,200 units","49 days","61%","Medium"],["Minas Countryside","7,100 units","83 days","39%","High"],["Southern Metropolitan","5,800 units","76 days","44%","High"]]},signalsTable:{headers:["Predictive signal","Minas Countryside","São Paulo Premium"],rows:[["Predicted sales velocity","â24%","+8%"],["Price sensitivity","High","Low"],["Future seasonal demand","Low","Stable"],["Average stock age","71 days","29 days"],["Competitive pressure","High","Moderate"]]},actions:[{bold:"Prioritize turn actions in the 38 stores",text:"with projected coverage above the healthy threshold."},{bold:"Hold the price in clusters with consistent demand",text:"to avoid unnecessary markdowns."},{bold:"Redistribute stock across regions",text:"whenever the transfer is more profitable than a price reduction."}],questions:["Which stores in Minas Countryside concentrate the highest risk?","What is the predicted financial impact if no action is taken?","How to redistribute stock across clusters while preserving margin?"]},turnoverMarkdown:{label:"Markdown Ladder",question:"Which SKUs should enter markdown now and what price-reduction ladder is recommended for each cluster?",title:"Predictive markdown by SKU, region and life cycle",analysis:`The model recommends starting an immediate markdown on seven SKUs and holding the price on eleven others. SKU A requires early action in Minas Countryside, where an initial 12% discount has the highest probability of recovering turn and avoiding a deeper clearance at the end of the cycle. For the same product in São Paulo Premium, the recommendation is to hold the current price for at least 21 days. 446 447The 12% markdown on SKU A was recommended because it lifts projected sell-through from 39% to 68% in Minas Countryside. Early action preserves more margin than waiting for stock to age and then applying a discount above 25% at cycle close. The ladder is not replicated nationally. Each cluster receives a different recommendation based on turn velocity, price sensitivity, stock, seasonality and local demand behavior.`,markdownRuler:{headers:["Cluster","Today","In 7 days","In 14 days","In 21 days"],rows:[["São Paulo Premium","Hold","Hold","Hold","Reassess"],["São Paulo Countryside","â5%","â8%","Reassess","â12%"],["Minas Countryside","â12%","Hold","â18%","â24%"],["Southern Metropolitan","â8%","â12%","â18%","Reassess"]]},skuTable:{headers:["SKU","Priority cluster","Current price","Recommended price","Projected sell-through","Preserved margin"],rows:[["SKU A","Minas Countryside","$ 129.90","$ 114.30","68%","$ 84k"],["SKU B","Southern Metropolitan","$ 89.90","$ 82.70","73%","$ 51k"],["SKU C","São Paulo Countryside","$ 159.90","$ 151.90","64%","$ 42k"],["SKU D","São Paulo Premium","$ 119.90","Hold","81%","No discount"]]},actions:[{bold:"Apply the initial markdown in higher-risk clusters",text:"without changing the price nationally."},{bold:"Stop further reductions",text:"as soon as sell-through reaches the expected trajectory."},{bold:"Recompute the ladder weekly",text:"incorporating sales, remaining stock, competition and response to the discount."}],questions:["How does the recommended markdown evolve week by week?","What is the margin gain vs. waiting for end-of-cycle clearance?","Which SKUs will exit markdown earliest, based on response?"]},personalizationBehavior:{label:"Behavior-based recommendation",question:"Which products should be prioritized for each browsing profile?",title:"Predictive recommendations by browsing behavior",analysis:`The model identified four dominant behaviors in the current journey. Performance-oriented users show higher adherence to technical and complementary products, while exploratory users respond better to new arrivals and combinations that expand discovery. For the selected profile, the largest opportunity is cross-selling products complementary to the item viewed. The recommendation combines current intent, individual history, product affinity and predicted behavior of similar users. 448 449These products were recommended because they complement the item viewed, show high recurrence in similar journeys and align with the predicted interest pattern for this user. 450
451In fashion retail, the look is recommended because it combines style, category, color, use occasion and behavioral preferences, avoiding incoherent or low-fit combinations.`,behaviorMatrix:{headers:["Behavioral profile","Predicted intent","Recommended product or look","Adherence","Objective"],rows:[["Recurring performance","Complete the solution","Sneakers + technical socks + watch","91%","Cross-sell"],["Newness explorer","Discover alternatives","New collection in the category","84%","Discovery"],["Style-sensitive","Build a combination","Coordinated full look","88%","Look recommendation"],["Goal-driven buyer","Finish quickly","Main product + essential accessory","79%","Conversion"]]},signalsTable:{headers:["Predictive signal","Effect"],rows:[["Category affinity","High"],["Product complementarity","High"],["Recent browsing pattern","High"],["Purchase history","Medium"],["Price preference","Medium"],["Cluster behavioral trend","High"]]},actions:[{bold:"Prioritize complementary products with high adherence",text:"avoiding recommendations based on popularity alone."},{bold:"Adapt the storefront composition to session behavior",text:"alternating conversion, cross-sell and discovery."},{bold:"Highlight the recommendation rationale",text:"explaining why each product or look fits that context."}],questions:["How does adherence evolve across categories and behavioral clusters?","Which products gain space when the objective is discovery?","How to validate recommendation impact on basket and conversion?"]},personalizationRepurchase:{label:"Repurchase Window",question:"Which customers are in a repurchase window in the next 30 days?",title:"Predictive repurchase behavior",analysis:`The model identified 18,420 customers with a relevant probability of a new purchase in the next 30 days. Of those, 46% are likely to repurchase the same product, 34% should migrate to a variation or substitute, and 20% show higher propensity to complement the previous purchase. The main opportunity is customers whose predicted repurchase window starts in the next seven days. Activating too early tends to yield low response. A late approach raises the risk of losing the repurchase to another channel or competitor. 452 453This customer is entering their repurchase window because the interval since the last purchase approaches their predicted consumption cycle. Prior behavior indicates high recurrence on the same SKU, low propensity to switch and stronger response when activated between day 24 and day 28 after the purchase. 454 455For a customer with a migration tendency, the next purchase should not repeat the previous item exactly. The model identified rising interest in a higher-tier version, behavior similar to customers who migrated products and higher adherence to the new option within the predicted repurchase window.`,curveData:[{day:0,probability:2},{day:5,probability:6},{day:10,probability:12},{day:14,probability:21},{day:18,probability:34},{day:22,probability:56},{day:24,probability:70},{day:26,probability:78},{day:28,probability:72},{day:32,probability:54},{day:36,probability:38},{day:42,probability:22},{day:50,probability:11}],curveWindow:{start:22,end:32},curvePeak:{day:26,probability:78},curveLegend:["X axis: days since the last purchase","Y axis: predicted repurchase probability","Highlighted band: start of the opportunity window","Marked point: highest predicted propensity","Descending curve: predicted drop after the peak"],behaviorTable:{headers:["Predicted behavior","Customers","Repurchase window","Propensity","Next best recommendation"],rows:[["Repurchase of the same product","8,473","5 to 12 days","84%","Same SKU"],["Repurchase with variation","3,942","8 to 18 days","73%","Different size, version or pack"],["Migration to a substitute product","2,321","10 to 21 days","68%","Higher-fit alternative"],["Complementary purchase","3,684","3 to 14 days","76%","Product related to the previous purchase"]]},correlationsTable:{headers:["Predictive signal","Effect on repurchase"],rows:[["Frequency between prior purchases","Defines the likely timing"],["Estimated product consumption","Signals replenishment proximity"],["Recurring repurchase of the same SKU","Raises the probability of repetition"],["Recent preference shift","Raises the chance of migration"],["Joint purchases in similar journeys","Signals a complement opportunity"],["Price and promo sensitivity","Influences offer and activation timing"],["Product availability and substitution","Alters the most likely next item"]]},actions:[{bold:"Activate customers in the highest-propensity window first",text:"avoiding premature or late contacts."},{bold:"Differentiate repurchase, migration and complementary purchase",text:"presenting the product that best fits each predicted behavior."},{bold:"Update the recommendation as new interactions arrive",text:"recalculating product, timing and repurchase probability."}],questions:["Which clusters concentrate the highest propensity in the next 7 days?","How to distinguish repurchase vs. migration customers in the same cluster?","What is the predicted financial impact if activation happens outside the window?"]},priceConversionFriction:{label:"Price Friction",question:"Where is the current price reducing conversion probability?",title:"Predictive price friction along the purchase journey",analysis:`The model identified that price is capping conversion in 14% of sessions with high purchase intent. The largest opportunity lies with users who returned to the product, compared alternatives and reached the cart, but found a price above the predicted highest-response band for that context. 456 457Friction does not occur uniformly. Product A shows the highest sensitivity in sessions from paid media, where users show heavier comparison, higher sensitivity and weaker brand affinity. Product B, on the other hand, keeps solid conversion among returning customers even without incentive, since intent is already high and predicted probability stays within the expected band.`,frictionHeatmap:{contexts:["Paid media","Returning customer","Organic search","Returning c
457art","First visit"],products:["Product A","Product B","Product C","Product D"],matrix:[[82,24,58,71,28],[46,18,62,55,22],[64,32,44,68,34],[38,20,41,47,18]]},contextTable:{headers:["Product and context","Predicted intent","Price friction","Predicted conversion","Recommended direction"],rows:[["Product A · paid media","High","High","4.8%","Contextual incentive"],["Product A · returning customer","High","Low","9.7%","Hold price"],["Product B · organic search","Medium","Medium","5.9%","Moderate adjust"],["Product C · returning cart","Very high","High","7.2%","Immediate action"],["Product D · first visit","Low","Low","1.8%","Do not incentivize"]]},signalsTable:{headers:["Predictive signal","Model reading"],rows:[["Return to the same product","Rising intent"],["Frequent comparison of alternatives","Price sensitivity"],["Cart entry and exit","Decision friction"],["Coupon or promo search","Incentive expectation"],["Full-price purchase history","Low incentive need"],["Short, low-engagement session","Low intent regardless of price"]]},actions:[{bold:"Apply price actions only in sessions with high intent",text:"and proven price friction."},{bold:"Preserve price for customers with high probability",text:"of spontaneous conversion."},{bold:"Avoid incentives in low-intent sessions",text:"where price is not the main obstacle."}],questions:["How does friction evolve across acquisition channels and session profiles?","Which contexts show the largest predicted lift when friction is removed?","How to validate the price recommendations with a controlled pilot?"]},priceConversionIncentiveNeed:{label:"Incentive Need",question:"Which sessions need incentives to convert?",title:"Predictive incentive need by behavior",analysis:`The model estimates 57% of high-intent sessions should convert without any incentive. Another 28% show enough sensitivity to respond to a moderate price action. In the remaining 15%, discount should not produce relevant incremental conversion. 458 459Applying the same incentive across the whole audience would destroy margin on customers who would already buy and burn budget on sessions with low response probability. The model distinguishes, for example, a user with high intent and a purchase history in the category â who should not receive a discount â from a session with recurring price comparison, coupon search and abandonment after seeing the final value â which responds to a moderate incentive within the allowed margin.`,distribution:[{group:"Spontaneous conversion",percentage:57},{group:"Incentive-dependent conversion",percentage:28},{group:"Low response even with incentive",percentage:15}],incentiveTable:{headers:["Predicted behavior","Sessions","Current probability","Recommended action","Reason"],rows:[["Would buy without incentive","18,420","82%","Hold price","Intent already consolidated"],["Responds to moderate incentive","9,060","54%","Controlled incentive","High sensitivity"],["Waits for a specific condition","3,480","47%","Targeted benefit","Looks for shipping or convenience"],["Currently low intent","4,910","16%","Do not discount","Low incremental gain"]]},detail:["Which signals indicate intent.","Predicted price sensitivity.","Spontaneous conversion probability.","Minimum sufficient incentive.","Available margin.","Best channel and timing.","Risk of granting a discount without generating incremental sale."],actions:[{bold:"Suppress discounts for users with high probability",text:"of spontaneous conversion."},{bold:"Offer the smallest incentive capable of changing the decision",text:"in price-sensitive sessions."},{bold:"Do not use price to recover low-intent sessions",text:"prioritizing other journey or recommendation actions."}],questions:["How does the minimum incentive vary across category and basket?","What is the predicted margin impact of restricting discounts to the sensitive group?","How to monitor the incentive-dependent group over time?"]}}}};var EH=Array.isArray,ar=EH,TH=typeof yo=="object"&&yo&&yo.Object===Object&&yo,j8=TH,OH=j8,IH=typeof self=="object"&&self&&self.Object===Object&&self,MH=OH||IH||Function("return this")(),ai=MH,$H=ai,FH=$H.Symbol,Cp=FH,tA=Cp,P8=Object.prototype,RH=P8.hasOwnProperty,DH=P8.toString,Bu=tA?tA.toStringTag:void 0;function LH(e){var t=RH.call(e,Bu),n=e[Bu];try{e[Bu]=void 0;var r=!0}catch{}var a=DH.call(e);return r&&(t?e[Bu]=n:delete e[Bu]),a}var zH=LH,BH=Object.prototype,qH=BH.toString;function UH(e){return qH.call(e)}
vendor: 5,115 bytes, line 459
459var WH=UH,nA=Cp,VH=zH,HH=WH,KH="[object Null]",GH="[object Undefined]",rA=nA?nA.toStringTag:void 0;function QH(e){return e==null?e===void 0?GH:KH:rA&&rA in Object(e)?VH(e):HH(e)}var Vi=QH;function YH(e){return e!=null&&typeof e=="object"}var Hi=YH,ZH=Vi,XH=Hi,JH="[object Symbol]";function eK(e){return typeof e=="symbol"||XH(e)&&ZH(e)==JH}var ou=eK,tK=ar,nK=ou,rK=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aK=/^\w*$/;function iK(e,t){if(tK(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||nK(e)?!0:aK.test(e)||!rK.test(e)||t!=null&&e in Object(t)}var nS=iK;function oK(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Zo=oK;const su=Qe(Zo);var sK=Vi,lK=Zo,cK="[object AsyncFunction]",uK="[object Function]",dK="[object GeneratorFunction]",mK="[object Proxy]";function pK(e){if(!lK(e))return!1;var t=sK(e);return t==uK||t==dK||t==cK||t==mK}var rS=pK;const Le=Qe(rS);var fK=ai,hK=fK["__core-js_shared__"],gK=hK,Xx=gK,aA=function(){var e=/[^.]+$/.exec(Xx&&Xx.keys&&Xx.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function vK(e){return!!aA&&aA in e}var yK=vK,xK=Function.prototype,bK=xK.toString;function wK(e){if(e!=null){try{return bK.call(e)}catch{}try{return e+""}catch{}}return""}var A8=wK,kK=rS,SK=yK,jK=Zo,PK=A8,AK=/[\\^$.*+?()[\]{}|]/g,_K=/^\[object .+?Constructor\]$/,NK=Function.prototype,CK=Object.prototype,EK=NK.toString,TK=CK.hasOwnProperty,OK=RegExp("^"+EK.call(TK).replace(AK,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function IK(e){if(!jK(e)||SK(e))return!1;var t=kK(e)?OK:_K;return t.test(PK(e))}var MK=IK;function $K(e,t){return e==null?void 0:e[t]}var FK=$K,RK=MK,DK=FK;function LK(e,t){var n=DK(e,t);return RK(n)?n:void 0}var rl=LK,zK=rl,BK=zK(Object,"create"),ay=BK,iA=ay;function qK(){this.__data__=iA?iA(null):{},this.size=0}var UK=qK;function WK(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var VK=WK,HK=ay,KK="__lodash_hash_undefined__",GK=Object.prototype,QK=GK.hasOwnProperty;function YK(e){var t=this.__data__;if(HK){var n=t[e];return n===KK?void 0:n}return QK.call(t,e)?t[e]:void 0}var ZK=YK,XK=ay,JK=Object.prototype,eG=JK.hasOwnProperty;function tG(e){var t=this.__data__;return XK?t[e]!==void 0:eG.call(t,e)}var nG=tG,rG=ay,aG="__lodash_hash_undefined__";function iG(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=rG&&t===void 0?aG:t,this}var oG=iG,sG=UK,lG=VK,cG=ZK,uG=nG,dG=oG;function lu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}lu.prototype.clear=sG;lu.prototype.delete=lG;lu.prototype.get=cG;lu.prototype.has=uG;lu.prototype.set=dG;var mG=lu;function pG(){this.__data__=[],this.size=0}var fG=pG;function hG(e,t){return e===t||e!==e&&t!==t}var aS=hG,gG=aS;function vG(e,t){for(var n=e.length;n--;)if(gG(e[n][0],t))return n;return-1}var iy=vG,yG=iy,xG=Array.prototype,bG=xG.splice;function wG(e){var t=this.__data__,n=yG(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():bG.call(t,n,1),--this.size,!0}var kG=wG,SG=iy;function jG(e){var t=this.__data__,n=SG(t,e);return n<0?void 0:t[n][1]}var PG=jG,AG=iy;function _G(e){return AG(this.__data__,e)>-1}var NG=_G,CG=iy;function EG(e,t){var n=this.__data__,r=CG(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var TG=EG,OG=fG,IG=kG,MG=PG,$G=NG,FG=TG;function cu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}cu.prototype.clear=OG;cu.prototype.delete=IG;cu.prototype.get=MG;cu.prototype.has=$G;cu.prototype.set=FG;var oy=cu,RG=rl,DG=ai,LG=RG(DG,"Map"),iS=LG,oA=mG,zG=oy,BG=iS;function qG(){this.size=0,this.__data__={hash:new oA,map:new(BG||zG),string:new oA}}var UG=qG;function WG(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var VG=WG,HG=VG;function KG(e,t){var n=e.__data__;return HG(t)?n[typeof t=="string"?"string":"hash"]:n.map}var sy=KG,GG=sy;function QG(e){var t=GG(this,e).delete(e);return this.size-=t?1:0,t}var YG=QG,ZG=sy;function XG(e){return ZG(this,e).get(e)}var JG=XG,eQ=sy;function tQ(e){return eQ(this,e).has(e)}var nQ=tQ,rQ=sy;function aQ(e,t){var n=rQ(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var iQ=aQ,oQ=UG,sQ=YG,lQ=JG,cQ=nQ,uQ=iQ;function uu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}uu.prototype.clear=oQ;uu.prototype.delete=sQ;uu.prototype.get=lQ;uu.prototype.has=cQ;uu.prototype.set=uQ;var oS=uu,_8=oS,dQ="Expected a function";function sS(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(dQ);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(sS.Cache||_8),n}sS.Cache=_8;var N8=sS;const mQ=Qe(N8);var pQ=N8,fQ=500;function hQ(e){var t=pQ(e,function(r){return n.size===fQ&&n.clear(),r}),n=t.cache;return t}var gQ=hQ,vQ=gQ,yQ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xQ=/\\(\\)?/g,bQ=vQ(function(e){var t=[];
459return e.charCodeAt(0)===46&&t.push(""),e.replace(yQ,function(n,r,a,i){t.push(a?i.replace(xQ,"$1"):r||n)}),t}),wQ=bQ;function kQ(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var lS=kQ,sA=Cp,SQ=lS,jQ=ar,PQ=ou,AQ=1/0,lA=sA?sA.prototype:void 0,cA=lA?lA.toString:void 0;function C8(e){if(typeof e=="string")return e;if(jQ(e))return SQ(e,C8)+"";if(PQ(e))return cA?cA.call(e):"";var t=e+"";return t=="0"&&1/e==-AQ?"-0":t}var _Q=C8,NQ=_Q;function CQ(e){return e==null?"":NQ(e)}var E8=CQ,EQ=ar,TQ=nS,OQ=wQ,IQ=E8;function MQ(e,t){return EQ(e)?e:TQ(e,t)?[e]:OQ(IQ(e))}var T8=MQ,$Q=ou,FQ=1/0;function RQ(e){if(typeof e=="string"||$Q(e))return e;var t=e+"";return t=="0"&&1/e==-FQ?"-0":t}var ly=RQ,DQ=T8,LQ=ly;function zQ(e,t){t=DQ(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[LQ(t[n++])];return n&&n==r?e:void 0}var cS=zQ,BQ=cS;function qQ(e,t,n){var r=e==null?void 0:BQ(e,t);return r===void 0?n:r}var O8=qQ;const qr=Qe(O8);function UQ(e){return e==null}var WQ=UQ;const $e=Qe(WQ);var VQ=Vi,HQ=ar,KQ=Hi,GQ="[object String]";function QQ(e){return typeof e=="string"||!HQ(e)&&KQ(e)&&VQ(e)==GQ}var YQ=QQ;const Ep=Qe(YQ);var I8={exports:{}},nt={};/** 460 * @license React 461 * react-is.production.min.js 462 * 463 * Copyright (c) Facebook, Inc. and its affiliates. 464 * 465 * This source code is licensed under the MIT license found in the 466 * LICENSE file in the root directory of this source tree. 467 */var uS=Symbol.for("react.element"),dS=Symbol.for("react.portal"),cy=Symbol.for("react.fragment"),uy=Symbol.for("react.strict_mode"),dy=Symbol.for("react.profiler"),my=Symbol.for("react.provider"),py=Symbol.for("react.context"),ZQ=Symbol.for("react.server_context"),fy=Symbol.for("react.forward_ref"),hy=Symbol.for("react.suspense"),gy=Symbol.for("react.suspense_list"),vy=Symbol.for("react.memo"),yy=Symbol.for("react.lazy"),XQ=Symbol.for("react.offscreen"),M8;M8=Symbol.for("react.module.reference");function Kr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case uS:switch(e=e.type,e){case cy:case dy:case uy:case hy:case gy:return e;default:switch(e=e&&e.$$typeof,e){case ZQ:case py:case fy:case yy:case vy:case my:return e;default:return t}}case dS:return t}}}nt.ContextConsumer=py;nt.ContextProvider=my;nt.Element=uS;nt.ForwardRef=fy;nt.Fragment=cy;nt.Lazy=yy;nt.Memo=vy;nt.Portal=dS;nt.Profiler=dy;nt.StrictMode=uy;nt.Suspense=hy;nt.SuspenseList=gy;nt.isAsyncMode=function(){return!1};nt.isConcurrentMode=function(){return!1};nt.isContextConsumer=function(e){return Kr(e)===py};nt.isContextProvider=function(e){return Kr(e)===my};nt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===uS};nt.isForwardRef=function(e){return Kr(e)===fy};nt.isFragment=function(e){return Kr(e)===cy};nt.isLazy=function(e){return Kr(e)===yy};nt.isMemo=function(e){return Kr(e)===vy};nt.isPortal=function(e){return Kr(e)===dS};nt.isProfiler=function(e){return Kr(e)===dy};nt.isStrictMode=function(e){return Kr(e)===uy};nt.isSuspense=function(e){return Kr(e)===hy};nt.isSuspenseList=function(e){return Kr(e)===gy};nt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===cy||e===dy||e===uy||e===hy||e===gy||e===XQ||typeof e=="object"&&e!==null&&(e.$$typeof===yy||e.$$typeof===vy||e.$$typeof===my||e.$$typeof===py||e.$$typeof===fy||e.$$typeof===M8||e.getModuleId!==void 0)};nt.typeOf=Kr;I8.exports=nt;var $8=I8.exports,JQ=Vi,eY=Hi,tY="[object Number]";function nY(e){return typeof e=="number"||eY(e)&&JQ(e)==tY}var F8=nY;const rY=Qe(F8);var aY=F8;function iY(e){return aY(e)&&e!=+e}var oY=iY;const du=Qe(oY);var ma=function(t){return t===0?0:t>0?1:-1},ws=function(t){return Ep(t)&&t.indexOf("%")===t.length-1},se=function(t){return rY(t)&&!du(t)},Zt=function(t){return se(t)||Ep(t)},sY=0,al=function(t){var n=++sY;return"".concat(t||"").concat(n)},Hs=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!se(t)&&!Ep(t))return r;var i;if(ws(t)){var o=t.indexOf("%");i=n*parseFloat(t.slice(0,o))/100}else i=+t;return du(i)&&(i=r),a&&i>n&&(i=n),i},co=function(t){if(!t)return null;var n=Object.keys(t);
vendor: 5,299 bytes, line 467
467return n&&n.length?t[n[0]]:null},lY=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},a=0;a<n;a++)if(!r[t[a]])r[t[a]]=!0;else return!0;return!1},Rt=function(t,n){return se(t)&&se(n)?function(r){return t+r*(n-t)}:function(){return n}};function Jh(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):qr(r,t))===n})}var cY=function(t){if(!t||!t.length)return null;for(var n=t.length,r=0,a=0,i=0,o=0,l=1/0,c=-1/0,u=0,d=0,m=0;m<n;m++)u=t[m].cx||0,d=t[m].cy||0,r+=u,a+=d,i+=u*d,o+=u*u,l=Math.min(l,u),c=Math.max(c,u);var p=n*o!==r*r?(n*i-r*a)/(n*o-r*r):0;return{xmin:l,xmax:c,a:p,b:(a-p*r)/n}};function Yl(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function Ew(e){"@babel/helpers - typeof";return Ew=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},Ew(e)}var uY=["viewBox","children"],dY=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],uA=["points","pathLength"],Jx={svg:uY,polygon:uA,polyline:uA},mS=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onF
467ocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],eg=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(S.isValidElement(t)&&(r=t.props),!su(r))return null;var a={};return Object.keys(r).forEach(function(i){mS.includes(i)&&(a[i]=n||function(o){return r[i](r,o)})}),a},mY=function(t,n,r){return function(a){return t(n,r,a),null}},gm=function(t,n,r){if(!su(t)||Ew(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var o=t[i];mS.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=mY(o,n,r))}),a},pY=["children"],fY=["children"];function dA(e,t){if(e==null)return{};var n=hY(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hY(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Tw(e){"@babel/helpers - typeof";return Tw=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},Tw(e)}var mA={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Ni=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},pA=null,eb=null,pS=function e(t){if(t===pA&&Array.isArray(eb))return eb;var n=[];
vendor: 4,199 bytes, line 467
467return S.Children.forEach(t,function(r){$e(r)||($8.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),eb=n,pA=t,n};function nr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return Ni(a)}):r=[Ni(t)],pS(e).forEach(function(a){var i=qr(a,"type.displayName")||qr(a,"type.name");r.indexOf(i)!==-1&&n.push(a)}),n}function hr(e,t){var n=nr(e,t);return n&&n[0]}var fA=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!se(r)||r<=0||!se(a)||a<=0)},gY=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],vY=function(t){return t&&t.type&&Ep(t.type)&&gY.indexOf(t.type)>=0},R8=function(t){return t&&Tw(t)==="object"&&"clipDot"in t},yY=function(t,n,r,a){var i,o=(i=Jx==null?void 0:Jx[a])!==null&&i!==void 0?i:[];return!Le(t)&&(a&&o.includes(n)||dY.includes(n))||r&&mS.includes(n)},Me=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(S.isValidElement(t)&&(a=t.props),!su(a))return null;var i={};return Object.keys(a).forEach(function(o){var l;yY((l=a)===null||l===void 0?void 0:l[o],o,n,r)&&(i[o]=a[o])}),i},Ow=function e(t,n){if(t===n)return!0;var r=S.Children.count(t);if(r!==S.Children.count(n))return!1;if(r===0)return!0;if(r===1)return hA(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a<r;a++){var i=t[a],o=n[a];if(Array.isArray(i)||Array.isArray(o)){if(!e(i,o))return!1}else if(!hA(i,o))return!1}return!0},hA=function(t,n){if($e(t)&&$e(n))return!0;if(!$e(t)&&!$e(n)){var r=t.props||{},a=r.children,i=dA(r,pY),o=n.props||{},l=o.children,c=dA(o,fY);return a&&l?Yl(i,c)&&Ow(a,l):!a&&!l?Yl(i,c):!1}return!1},gA=function(t,n){var r=[],a={};return pS(t).forEach(function(i,o){if(vY(i))r.push(i);else if(i){var l=Ni(i.type),c=n[l]||{},u=c.handler,d=c.once;if(u&&(!d||!a[l])){var m=u(i,l,o);r.push(m),a[l]=!0}}}),r},xY=function(t){var n=t&&t.type;return n&&mA[n]?mA[n]:null},bY=function(t,n){return pS(n).indexOf(t)},wY=["children","width","height","viewBox","className","style","title","desc"];function Iw(){return Iw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iw.apply(this,arguments)}function kY(e,t){if(e==null)return{};var n=SY(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SY(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Mw(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,i=e.className,o=e.style,l=e.title,c=e.desc,u=kY(e,wY),d=a||{width:n,height:r,x:0,y:0},m=We("recharts-surface",i);return M.createElement("svg",Iw({},Me(u,!0,"svg"),{className:m,width:n,height:r,style:o,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),M.createElement("title",null,l),M.createElement("desc",null,c),t)}var jY=["children","className"];function $w(){return $w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$w.apply(this,arguments)}function PY(e,t){if(e==null)return{};var n=AY(e,t),r,a;
467if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function AY(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Xe=M.forwardRef(function(e,t){var n=e.children,r=e.className,a=PY(e,jY),i=We("recharts-layer",r);return M.createElement("g",$w({className:i},Me(a,!0),{ref:t}),n)}),Ci=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;i<r;i++)a[i-2]=arguments[i]};function _Y(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r<a;)i[r]=e[r+t];return i}var NY=_Y,CY=NY;function EY(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:CY(e,t,n)}var TY=EY,OY="\\ud800-\\udfff",IY="\\u0300-\\u036f",MY="\\ufe20-\\ufe2f",$Y="\\u20d0-\\u20ff",FY=IY+MY+$Y,RY="\\ufe0e\\ufe0f",DY="\\u200d",LY=RegExp("["+DY+OY+FY+RY+"]");function zY(e){return LY.test(e)}var D8=zY;function BY(e){return e.split("")}var qY=BY,L8="\\ud800-\\udfff",UY="\\u0300-\\u036f",WY="\\ufe20-\\ufe2f",VY="\\u20d0-\\u20ff",HY=UY+WY+VY,KY="\\ufe0e\\ufe0f",GY="["+L8+"]",Fw="["+HY+"]",Rw="\\ud83c[\\udffb-\\udfff]",QY="(?:"+Fw+"|"+Rw+")",z8="[^"+L8+"]",B8="(?:\\ud83c[\\udde6-\\uddff]){2}",q8="[\\ud800-\\udbff][\\udc00-\\udfff]",YY="\\u200d",U8=QY+"?",W8="["+KY+"]?",ZY="(?:"+YY+"(?:"+[z8,B8,q8].join("|")+")"+W8+U8+")*",XY=W8+U8+ZY,JY="(?:"+[z8+Fw+"?",Fw,B8,q8,GY].join("|")+")",eZ=RegExp(Rw+"(?="+Rw+")|"+JY+XY,"g");function tZ(e){return e.match(eZ)||[]}var nZ=tZ,rZ=qY,aZ=D8,iZ=nZ;function oZ(e){return aZ(e)?iZ(e):rZ(e)}var sZ=oZ,lZ=TY,cZ=D8,uZ=sZ,dZ=E8;function mZ(e){return function(t){t=dZ(t);var n=cZ(t)?uZ(t):void 0,r=n?n[0]:t.charAt(0),a=n?lZ(n,1).join(""):t.slice(1);return r[e]()+a}}var pZ=mZ,fZ=pZ,hZ=fZ("toUpperCase"),gZ=hZ;const xy=Qe(gZ);function pt(e){return function(){return e}}const V8=Math.cos,tg=Math.sin,Ea=Math.sqrt,ng=Math.PI,by=2*ng,Dw=Math.PI,Lw=2*Dw,ms=1e-6,vZ=Lw-ms;function H8(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function yZ(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return H8;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;a<i;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class xZ{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?H8:yZ(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,i,o){this._append`C${+t},${+n},${+r},${+a},${this._x1=+i},${this._y1=+o}`}arcTo(t,n,r,a,i){if(t=+t,n=+n,r=+r,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,l=this._y1,c=r-t,u=a-n,d=o-t,m=l-n,p=d*d+m*m;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(p>ms)if(!(Math.abs(m*c-u*d)>ms)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let f=r-o,g=a-l,h=c*c+u*u,v=f*f+g*g,y=Math.sqrt(h),x=Math.sqrt(p),b=i*Math.tan((Dw-Math.acos((h+p-v)/(2*y*x)))/2),w=b/x,k=b/y;Math.abs(w-1)>ms&&this._append`L${t+w*d},${n+w*m}`,this._append`A${i},${i},0,0,${+(m*f>d*g)},${this._x1=t+k*c},${this._y1=n+k*u}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(a),c=r*Math.sin(a),u=t+l,d=n+c,m=1^o,p=o?a-i:i-a;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>ms||Math.abs(this._y1-d)>ms)&&this._append`L${u},${d}`,r&&(p<0&&(p=p%Lw+Lw),p>vZ?this._append`A${r},${r},0,1,${m},${t-l},${n-c}A${r},${r},0,1,${m},${this._x1=u},${this._y1=d}`:p>ms&&this._append`A${r},${r},0,${+(p>=Dw)},${m},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function fS(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new xZ(t)}function hS(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function K8(e){this._context=e}K8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function wy(e){return new K8(e)}function G8(e){return e[0]}function Q8(e){return e[1]}function Y8(e,t){var n=pt(!0),r=null,a=wy,i=null,o=fS(l);e=typeof e=="function"?e:e===void 0?G8:pt(e),t=typeof t=="function"?t:t===void 0?Q8:pt(t);function l(c){var u,d=(c=hS(c)).length,m,p=!1,f;for(r==null&&(i=a(f=o())),u=0;u<=d;++u)!(u<d&&n(m=c[u],u,c))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+e(m,u,c),+t(m,u,c));if(f)return i=null,f+""||null}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:pt(+c),l):e},l.y=function(c){return arguments.length?(t=typeof c=="function"?c:pt(+c),l):t},l.defined=function(c){return arguments.length?(n=typeof c=="function"?c:pt(!!c),l):n},l.curve=function(c){return arguments.length?(a=c,r!=null&&(i=a(r)),l):a},l.context=function(c){return arguments.length?(c==null?r=i=null:i=a(r=c),l):r},l}function yf(e,t,n){var r=null,a=pt(!0),i=null,o=wy,l=null,c=fS(u);e=typeof e=="function"?e:e===void 0?G8:pt(+e),t=typeof t=="function"?t:pt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Q8:pt(+n);function u(m){var p,f,g,h=(m=hS(m)).length,v,y=!1,x,b=new Array(h),w=new Array(h);for(i==null&&(l=o(x=c())),p=0;p<=h;++p){if(!(p<h&&a(v=m[p],p,m))===y)if(y=!y)f=p,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),g=p-1;g>=f;--g)l.point(b[g],w[g]);l.lineEnd(),l.areaEnd()}y&&(b[p]=+e(v,p,m),w[p]=+t(v,p,m),l.point(r?+r(v,p,m):b[p],n?+n(v,p,m):w[p]))}if(x)return l=null,x+""||null}function d(){return Y8().defined(a).curve(o).context(i)}return u.x=function(m){return arguments.length?(e=typeof m=="function"?m:pt(+m),r=null,u):e},u.x0=function(m){return arguments.length?(e=typeof m=="function"?m:pt(+m),u):e},u.x1=function(m){return arguments.length?(r=m==null?null:typeof m=="function"?m:pt(+m),u):r},u.y=function(m){return arguments.length?(t=typeof m=="function"?m:pt(+m),n=null,u):t},u.y0=function(m){return arguments.length?(t=typeof m=="function"?m:pt(+m),u):t},u.y1=function(m){return arguments.length?(n=m==null?null:typeof m=="function"?m:pt(+m),u):n},u.lineX0=u.lineY0=function(){return d().x(e).y(t)},u.lineY1=function(){return d().x(e).y(n)},u.lineX1=function(){return d().x(r).y(t)},u.defined=function(m){return arguments.length?(a=typeof m=="function"?m:pt(!!m),u):a},u.curve=function(m){return arguments.length?(o=m,i!=null&&(l=o(i)),u):o},u.context=function(m){return arguments.length?(m==null?i=l=null:l=o(i=m),u):i},u}class Z8{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}
vendor: 8,417 bytes, line 467
467point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function bZ(e){return new Z8(e,!0)}function wZ(e){return new Z8(e,!1)}const gS={draw(e,t){const n=Ea(t/ng);e.moveTo(n,0),e.arc(0,0,n,0,by)}},kZ={draw(e,t){const n=Ea(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},X8=Ea(1/3),SZ=X8*2,jZ={draw(e,t){const n=Ea(t/SZ),r=n*X8;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},PZ={draw(e,t){const n=Ea(t),r=-n/2;e.rect(r,r,n,n)}},AZ=.8908130915292852,J8=tg(ng/10)/tg(7*ng/10),_Z=tg(by/10)*J8,NZ=-V8(by/10)*J8,CZ={draw(e,t){const n=Ea(t*AZ),r=_Z*n,a=NZ*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const o=by*i/5,l=V8(o),c=tg(o);e.lineTo(c*n,-l*n),e.lineTo(l*r-c*a,c*r+l*a)}e.closePath()}},tb=Ea(3),EZ={draw(e,t){const n=-Ea(t/(tb*3));e.moveTo(0,n*2),e.lineTo(-tb*n,-n),e.lineTo(tb*n,-n),e.closePath()}},Cr=-.5,Er=Ea(3)/2,zw=1/Ea(12),TZ=(zw/2+1)*3,OZ={draw(e,t){const n=Ea(t/TZ),r=n/2,a=n*zw,i=r,o=n*zw+n,l=-i,c=o;e.moveTo(r,a),e.lineTo(i,o),e.lineTo(l,c),e.lineTo(Cr*r-Er*a,Er*r+Cr*a),e.lineTo(Cr*i-Er*o,Er*i+Cr*o),e.lineTo(Cr*l-Er*c,Er*l+Cr*c),e.lineTo(Cr*r+Er*a,Cr*a-Er*r),e.lineTo(Cr*i+Er*o,Cr*o-Er*i),e.lineTo(Cr*l+Er*c,Cr*c-Er*l),e.closePath()}};function IZ(e,t){let n=null,r=fS(a);e=typeof e=="function"?e:pt(e||gS),t=typeof t=="function"?t:pt(t===void 0?64:+t);function a(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:pt(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:pt(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function rg(){}function ag(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function e3(e){this._context=e}e3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ag(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ag(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function MZ(e){return new e3(e)}function t3(e){this._context=e}t3.prototype={areaStart:rg,areaEnd:rg,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ag(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $Z(e){return new t3(e)}function n3(e){this._context=e}n3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ag(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function FZ(e){return new n3(e)}function r3(e){this._context=e}r3.prototype={areaStart:rg,areaEnd:rg,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function RZ(e){return new r3(e)}function vA(e){return e<0?-1:1}function yA(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),l=(i*a+o*r)/(r+a);return(vA(i)+vA(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function xA(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function nb(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,a+l*t,i-l,o-l*n,i,o)}function ig(e){this._context=e}ig.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:nb(this,this._t0,xA(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,nb(this,xA(this,n=yA(this,e,t)),n);break;default:nb(this,this._t0,n=yA(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function a3(e){this._context=new i3(e)}(a3.prototype=Object.create(ig.prototype)).point=function(e,t){ig.prototype.point.call(this,t,e)};function i3(e){this._context=e}i3.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function DZ(e){return new ig(e)}function LZ(e){return new a3(e)}function o3(e){this._context=e}o3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=bA(e),a=bA(t),i=0,o=1;o<n;++i,++o)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function bA(e){var t,n=e.length-1,r,a=new Array(n),i=new Array(n),o=new Array(n);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,i[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/i[t-1],i[t]-=r,o[t]-=r*o[t-1];for(a[n-1]=o[n-1]/i[n-1],t=n-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function zZ(e){return new o3(e)}function ky(e,t){this._context=e,this._t=t}ky.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
vendor: 9,131 bytes, lines 467-470
467default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function BZ(e){return new ky(e,.5)}function qZ(e){return new ky(e,0)}function UZ(e){return new ky(e,1)}function yc(e,t){if((o=e.length)>1)for(var n=1,r,a,i=e[t[0]],o,l=i.length;n<o;++n)for(a=i,i=e[t[n]],r=0;r<l;++r)i[r][1]+=i[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function Bw(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function WZ(e,t){return e[t]}function VZ(e){const t=[];return t.key=e,t}function HZ(){var e=pt([]),t=Bw,n=yc,r=WZ;function a(i){var o=Array.from(e.apply(this,arguments),VZ),l,c=o.length,u=-1,d;for(const m of i)for(l=0,++u;l<c;++l)(o[l][u]=[0,+r(m,o[l].key,u,i)]).data=m;for(l=0,d=hS(t(o));l<c;++l)o[d[l]].index=l;return n(o,d),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:pt(Array.from(i)),a):e},a.value=function(i){return arguments.length?(r=typeof i=="function"?i:pt(+i),a):r},a.order=function(i){return arguments.length?(t=i==null?Bw:typeof i=="function"?i:pt(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??yc,a):n},a}function KZ(e,t){if((r=e.length)>0){for(var n,r,a=0,i=e[0].length,o;a<i;++a){for(o=n=0;n<r;++n)o+=e[n][a][1]||0;if(o)for(n=0;n<r;++n)e[n][a][1]/=o}yc(e,t)}}function GZ(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,i=r.length;n<i;++n){for(var o=0,l=0;o<a;++o)l+=e[o][n][1]||0;r[n][1]+=r[n][0]=-l/2}yc(e,t)}}function QZ(e,t){if(!(!((o=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,i,o;r<i;++r){for(var l=0,c=0,u=0;l<o;++l){for(var d=e[t[l]],m=d[r][1]||0,p=d[r-1][1]||0,f=(m-p)/2,g=0;g<l;++g){var h=e[t[g]],v=h[r][1]||0,y=h[r-1][1]||0;f+=v-y}c+=m,u+=f*m}a[r-1][1]+=a[r-1][0]=n,c&&(n-=u/c)}a[r-1][1]+=a[r-1][0]=n,yc(e,t)}}function vm(e){"@babel/helpers - typeof";return vm=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},vm(e)}var YZ=["type","size","sizeType"];function qw(){return qw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qw.apply(this,arguments)}function wA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function kA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wA(Object(n),!0).forEach(function(r){ZZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZZ(e,t,n){return t=XZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XZ(e){var t=JZ(e,"string");return vm(t)=="symbol"?t:t+""}function JZ(e,t){if(vm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(vm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eX(e,t){if(e==null)return{};var n=tX(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tX(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var s3={symbolCircle:gS,symbolCross:kZ,symbolDiamond:jZ,symbolSquare:PZ,symbolStar:CZ,symbolTriangle:EZ,symbolWye:OZ},nX=Math.PI/180,rX=function(t){var n="symbol".concat(xy(t));return s3[n]||gS},aX=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*nX;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},iX=function(t,n){s3["symbol".concat(xy(t))]=n},Sy=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,i=a===void 0?64:a,o=t.sizeType,l=o===void 0?"area":o,c=eX(t,YZ),u=kA(kA({},c),{},{type:r,size:i,sizeType:l}),d=function(){var v=rX(r),y=IZ().type(v).size(aX(i,l,r));return y()},m=u.className,p=u.cx,f=u.cy,g=Me(u,!0);return p===+p&&f===+f&&i===+i?M.createElement("path",qw({},g,{className:We("recharts-symbols",m),transform:"translate(".concat(p,", ").concat(f,")"),d:d()})):null};Sy.registerSymbol=iX;function xc(e){"@babel/helpers - typeof";return xc=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},xc(e)}function Uw(){return Uw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uw.apply(this,arguments)}function SA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function oX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SA(Object(n),!0).forEach(function(r){ym(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c3(r.key),r)}}function cX(e,t,n){return t&&lX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uX(e,t,n){return t=og(t),dX(e,l3()?Reflect.construct(t,n||[],og(e).constructor):t.apply(e,n))}function dX(e,t){if(t&&(xc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mX(e)}function mX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l3=function(){return!!e})()}function og(e){return og=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},og(e)}function pX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ww(e,t)}function Ww(e,t){return Ww=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Ww(e,t)}function ym(e,t,n){return t=c3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c3(e){var t=fX(e,"string");return xc(t)=="symbol"?t:t+""}function fX(e,t){if(xc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(xc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tr=32,vS=function(e){function t(){return sX(this,t),uX(this,t,arguments)}return pX(t,e),cX(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,i=Tr/2,o=Tr/6,l=Tr/3,c=r.inactive?a:r.color;if(r.type==="plainline")return M.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:i,x2:Tr,y2:i,className:"recharts-legend-icon"});if(r.type==="line")return M.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(i,"h").concat(l,` 468 A`).concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(i,` 469 H`).concat(Tr,"M").concat(2*l,",").concat(i,` 470 A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(i),className:"recharts-legend-icon"});if(r.type==="rect")return M.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Tr/8,"h").concat(Tr,"v").concat(Tr*3/4,"h").concat(-Tr,"z"),className:"recharts-legend-icon"});if(M.isValidElement(r.legendIcon)){var u=oX({},r);return delete u.legendIcon,M.cloneElement(r.legendIcon,u)}return M.createElement(Sy,{fill:c,cx:i,cy:i,size:Tr,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,a=this.props,i=a.payload,o=a.iconSize,l=a.layout,c=a.formatter,u=a.inactiveColor,d={x:0,y:0,width:Tr,height:Tr}
470,m={display:l==="horizontal"?"inline-block":"block",marginRight:10},p={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(f,g){var h=f.formatter||c,v=We(ym(ym({"recharts-legend-item":!0},"legend-item-".concat(g),!0),"inactive",f.inactive));if(f.type==="none")return null;var y=Le(f.value)?null:f.value;Ci(!Le(f.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=f.inactive?u:f.color;return M.createElement("li",Uw({className:v,style:m,key:"legend-item-".concat(g)},gm(r.props,f,g)),M.createElement(Mw,{width:o,height:o,viewBox:d,style:p},r.renderIcon(f)),M.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},h?h(y,f,g):y))})}},{key:"render",value:function(){var r=this.props,a=r.payload,i=r.layout,o=r.align;if(!a||!a.length)return null;var l={padding:0,margin:0,textAlign:i==="horizontal"?o:"left"};return M.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(S.PureComponent);ym(vS,"displayName","Legend");ym(vS,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var hX=oy;function gX(){this.__data__=new hX,this.size=0}var vX=gX;function yX(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var xX=yX;function bX(e){return this.__data__.get(e)}var wX=bX;function kX(e){return this.__data__.has(e)}var SX=kX,jX=oy,PX=iS,AX=oS,_X=200;function NX(e,t){var n=this.__data__;if(n instanceof jX){var r=n.__data__;if(!PX||r.length<_X-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new AX(r)}return n.set(e,t),this.size=n.size,this}var CX=NX,EX=oy,TX=vX,OX=xX,IX=wX,MX=SX,$X=CX;function mu(e){var t=this.__data__=new EX(e);this.size=t.size}mu.prototype.clear=TX;mu.prototype.delete=OX;mu.prototype.get=IX;mu.prototype.has=MX;mu.prototype.set=$X;var u3=mu,FX="__lodash_hash_undefined__";function RX(e){return this.__data__.set(e,FX),this}var DX=RX;function LX(e){return this.__data__.has(e)}var zX=LX,BX=oS,qX=DX,UX=zX;function sg(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new BX;++t<n;)this.add(e[t])}sg.prototype.add=sg.prototype.push=qX;sg.prototype.has=UX;var d3=sg;function WX(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var m3=WX;function VX(e,t){return e.has(t)}var p3=VX,HX=d3,KX=m3,GX=p3,QX=1,YX=2;function ZX(e,t,n,r,a,i){var o=n&QX,l=e.length,c=t.length;if(l!=c&&!(o&&c>l))return!1;var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var m=-1,p=!0,f=n&YX?new HX:void 0;for(i.set(e,t),i.set(t,e);++m<l;){var g=e[m],h=t[m];if(r)var v=o?r(h,g,m,t,e,i):r(g,h,m,e,t,i);if(v!==void 0){if(v)continue;p=!1;break}if(f){if(!KX(t,function(y,x){if(!GX(f,x)&&(g===y||a(g,y,n,r,i)))return f.push(x)})){p=!1;break}}else if(!(g===h||a(g,h,n,r,i))){p=!1;break}}return i.delete(e),i.delete(t),p}var f3=ZX,XX=ai,JX=XX.Uint8Array,eJ=JX;function tJ(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var nJ=tJ;function rJ(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var yS=rJ,jA=Cp,PA=eJ,aJ=aS,iJ=f3,oJ=nJ,sJ=yS,lJ=1,cJ=2,uJ="[object Boolean]",dJ="[object Date]",mJ="[object Error]",pJ="[object Map]",fJ="[object Number]",hJ="[object RegExp]",gJ="[object Set]",vJ="[object String]",yJ="[object Symbol]",xJ="[object ArrayBuffer]",bJ="[object DataView]",AA=jA?jA.prototype:void 0,rb=AA?AA.valueOf:void 0;function wJ(e,t,n,r,a,i,o){switch(n){case bJ:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case xJ:return!(e.byteLength!=t.byteLength||!i(new PA(e),new PA(t)));case uJ:case dJ:case fJ:return aJ(+e,+t);case mJ:return e.name==t.name&&e.message==t.message;case hJ:case vJ:return e==t+"";case pJ:var l=oJ;case gJ:var c=r&lJ;if(l||(l=sJ),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;r|=cJ,o.set(e,t);var d=iJ(l(e),l(t),r,a,i,o);return o.delete(e),d;case yJ:if(rb)return rb.call(e)==rb.call(t)}return!1}var kJ=wJ;function SJ(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var h3=SJ,jJ=h3,PJ=ar;function AJ(e,t,n){var r=t(e);return PJ(e)?r:jJ(r,n(e))}var _J=AJ;function NJ(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}var CJ=NJ;function EJ(){return[]}var TJ=EJ,OJ=CJ,IJ=TJ,MJ=Object.prototype,$J=MJ.propertyIsEnumerable,_A=Object.getOwnPropertySymbols,FJ=_A?function(e){return e==null?[]:(e=Object(e),OJ(_A(e),function(t){return $J.call(e,t)}))}:IJ,RJ=FJ;function DJ(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var LJ=DJ,zJ=Vi,BJ=Hi,qJ="[object Arguments]";function UJ(e){return BJ(e)&&zJ(e)==qJ}var WJ=UJ,NA=WJ,VJ=Hi,g3=Object.prototype,HJ=g3.hasOwnProperty,KJ=g3.propertyIsEnumerable,GJ=NA(function(){return arguments}())?NA:function(e){return VJ(e)&&HJ.call(e,"callee")&&!KJ.call(e,"callee")},xS=GJ,lg={exports:{}};function QJ(){return!1}var YJ=QJ;lg.exports;(function(e,t){var n=ai,r=YJ,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,l=o?n.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||r;e.exports=u})(lg,lg.exports);var v3=lg.exports,ZJ=9007199254740991,XJ=/^(?:0|[1-9]\d*)$/;function JJ(e,t){var n=typeof e;return t=t??ZJ,!!t&&(n=="number"||n!="symbol"&&XJ.test(e))&&e>-1&&e%1==0&&e<t}var bS=JJ,eee=9007199254740991;function tee(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=eee}var wS=tee,nee=Vi,ree=wS,aee=Hi,iee="[object Arguments]",oee="[object Array]",see="[object Boolean]",lee="[object Date]",cee="[object Error]",uee="[object Function]",dee="[object Map]",mee="[object Number]",pee="[object Object]",fee="[object RegExp]",hee="[object Set]",gee="[object String]",vee="[object WeakMap]",yee="[object ArrayBuffer]",xee="[object DataView]",bee="[object Float32Array]",wee="[object Float64Array
470]",kee="[object Int8Array]",See="[object Int16Array]",jee="[object Int32Array]",Pee="[object Uint8Array]",Aee="[object Uint8ClampedArray]",_ee="[object Uint16Array]",Nee="[object Uint32Array]",yt={};yt[bee]=yt[wee]=yt[kee]=yt[See]=yt[jee]=yt[Pee]=yt[Aee]=yt[_ee]=yt[Nee]=!0;yt[iee]=yt[oee]=yt[yee]=yt[see]=yt[xee]=yt[lee]=yt[cee]=yt[uee]=yt[dee]=yt[mee]=yt[pee]=yt[fee]=yt[hee]=yt[gee]=yt[vee]=!1;function Cee(e){return aee(e)&&ree(e.length)&&!!yt[nee(e)]}var Eee=Cee;function Tee(e){return function(t){return e(t)}}var y3=Tee,cg={exports:{}};cg.exports;(function(e,t){var n=j8,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,l=function(){try{var c=a&&a.require&&a.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(cg,cg.exports);var Oee=cg.exports,Iee=Eee,Mee=y3,CA=Oee,EA=CA&&CA.isTypedArray,$ee=EA?Mee(EA):Iee,x3=$ee,Fee=LJ,Ree=xS,Dee=ar,Lee=v3,zee=bS,Bee=x3,qee=Object.prototype,Uee=qee.hasOwnProperty;function Wee(e,t){var n=Dee(e),r=!n&&Ree(e),a=!n&&!r&&Lee(e),i=!n&&!r&&!a&&Bee(e),o=n||r||a||i,l=o?Fee(e.length,String):[],c=l.length;for(var u in e)(t||Uee.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||zee(u,c)))&&l.push(u);return l}var Vee=Wee,Hee=Object.prototype;function Kee(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Hee;return e===n}var Gee=Kee;function Qee(e,t){return function(n){return e(t(n))}}var b3=Qee,Yee=b3,Zee=Yee(Object.keys,Object),Xee=Zee,Jee=Gee,ete=Xee,tte=Object.prototype,nte=tte.hasOwnProperty;function rte(e){if(!Jee(e))return ete(e);var t=[];for(var n in Object(e))nte.call(e,n)&&n!="constructor"&&t.push(n);return t}var ate=rte,ite=rS,ote=wS;function ste(e){return e!=null&&ote(e.length)&&!ite(e)}var Tp=ste,lte=Vee,cte=ate,ute=Tp;function dte(e){return ute(e)?lte(e):cte(e)}var jy=dte,mte=_J,pte=RJ,fte=jy;function hte(e){return mte(e,fte,pte)}var gte=hte,TA=gte,vte=1,yte=Object.prototype,xte=yte.hasOwnProperty;function bte(e,t,n,r,a,i){var o=n&vte,l=TA(e),c=l.length,u=TA(t),d=u.length;if(c!=d&&!o)return!1;for(var m=c;m--;){var p=l[m];if(!(o?p in t:xte.call(t,p)))return!1}var f=i.get(e),g=i.get(t);if(f&&g)return f==t&&g==e;var h=!0;i.set(e,t),i.set(t,e);for(var v=o;++m<c;){p=l[m];var y=e[p],x=t[p];if(r)var b=o?r(x,y,p,t,e,i):r(y,x,p,e,t,i);if(!(b===void 0?y===x||a(y,x,n,r,i):b)){h=!1;break}v||(v=p=="constructor")}if(h&&!v){var w=e.constructor,k=t.constructor;w!=k&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof k=="function"&&k instanceof k)&&(h=!1)}return i.delete(e),i.delete(t),h}var wte=bte,kte=rl,Ste=ai,jte=kte(Ste,"DataView"),Pte=jte,Ate=rl,_te=ai,Nte=Ate(_te,"Promise"),Cte=Nte,Ete=rl,Tte=ai,Ote=Ete(Tte,"Set"),w3=Ote,Ite=rl,Mte=ai,$te=Ite(Mte,"WeakMap"),Fte=$te,Vw=Pte,Hw=iS,Kw=Cte,Gw=w3,Qw=Fte,k3=Vi,pu=A8,OA="[object Map]",Rte="[object Object]",IA="[object Promise]",MA="[object Set]",$A="[object WeakMap]",FA="[object DataView]",Dte=pu(Vw),Lte=pu(Hw),zte=pu(Kw),Bte=pu(Gw),qte=pu(Qw),ps=k3;(Vw&&ps(new Vw(new ArrayBuffer(1)))!=FA||Hw&&ps(new Hw)!=OA||Kw&&ps(Kw.resolve())!=IA||Gw&&ps(new Gw)!=MA||Qw&&ps(new Qw)!=$A)&&(ps=function(e){var t=k3(e),n=t==Rte?e.constructor:void 0,r=n?pu(n):"";if(r)switch(r){case Dte:return FA;case Lte:return OA;case zte:return IA;case Bte:return MA;case qte:return $A}return t});var Ute=ps,ab=u3,Wte=f3,Vte=kJ,Hte=wte,RA=Ute,DA=ar,LA=v3,Kte=x3,Gte=1,zA="[object Arguments]",BA="[object Array]",xf="[object Object]",Qte=Object.prototype,qA=Qte.hasOwnProperty;function Yte(e,t,n,r,a,i){var o=DA(e),l=DA(t),c=o?BA:RA(e),u=l?BA:RA(t);c=c==zA?xf:c,u=u==zA?xf:u;var d=c==xf,m=u==xf,p=c==u;if(p&&LA(e)){if(!LA(t))return!1;o=!0,d=!1}if(p&&!d)return i||(i=new ab),o||Kte(e)?Wte(e,t,n,r,a,i):Vte(e,t,c,n,r,a,i);if(!(n&Gte)){var f=d&&qA.call(e,"__wrapped__"),g=m&&qA.call(t,"__wrapped__");
vendor: 4,112 bytes, line 470
470if(f||g){var h=f?e.value():e,v=g?t.value():t;return i||(i=new ab),a(h,v,n,r,i)}}return p?(i||(i=new ab),Hte(e,t,n,r,a,i)):!1}var Zte=Yte,Xte=Zte,UA=Hi;function S3(e,t,n,r,a){return e===t?!0:e==null||t==null||!UA(e)&&!UA(t)?e!==e&&t!==t:Xte(e,t,n,r,S3,a)}var kS=S3,Jte=u3,ene=kS,tne=1,nne=2;function rne(e,t,n,r){var a=n.length,i=a,o=!r;if(e==null)return!i;for(e=Object(e);a--;){var l=n[a];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<i;){l=n[a];var c=l[0],u=e[c],d=l[1];if(o&&l[2]){if(u===void 0&&!(c in e))return!1}else{var m=new Jte;if(r)var p=r(u,d,c,e,t,m);if(!(p===void 0?ene(d,u,tne|nne,r,m):p))return!1}}return!0}var ane=rne,ine=Zo;function one(e){return e===e&&!ine(e)}var j3=one,sne=j3,lne=jy;function cne(e){for(var t=lne(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,sne(a)]}return t}var une=cne;function dne(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var P3=dne,mne=ane,pne=une,fne=P3;function hne(e){var t=pne(e);return t.length==1&&t[0][2]?fne(t[0][0],t[0][1]):function(n){return n===e||mne(n,e,t)}}var gne=hne;function vne(e,t){return e!=null&&t in Object(e)}var yne=vne,xne=T8,bne=xS,wne=ar,kne=bS,Sne=wS,jne=ly;function Pne(e,t,n){t=xne(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=jne(t[r]);if(!(i=e!=null&&n(e,o)))break;e=e[o]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&Sne(a)&&kne(o,a)&&(wne(e)||bne(e)))}var Ane=Pne,_ne=yne,Nne=Ane;function Cne(e,t){return e!=null&&Nne(e,t,_ne)}var Ene=Cne,Tne=kS,One=O8,Ine=Ene,Mne=nS,$ne=j3,Fne=P3,Rne=ly,Dne=1,Lne=2;function zne(e,t){return Mne(e)&&$ne(t)?Fne(Rne(e),t):function(n){var r=One(n,e);return r===void 0&&r===t?Ine(n,e):Tne(t,r,Dne|Lne)}}var Bne=zne;function qne(e){return e}var fu=qne;function Une(e){return function(t){return t==null?void 0:t[e]}}var Wne=Une,Vne=cS;function Hne(e){return function(t){return Vne(t,e)}}var Kne=Hne,Gne=Wne,Qne=Kne,Yne=nS,Zne=ly;function Xne(e){return Yne(e)?Gne(Zne(e)):Qne(e)}var Jne=Xne,ere=gne,tre=Bne,nre=fu,rre=ar,are=Jne;function ire(e){return typeof e=="function"?e:e==null?nre:typeof e=="object"?rre(e)?tre(e[0],e[1]):ere(e):are(e)}var Xo=ire;function ore(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var A3=ore;function sre(e){return e!==e}var lre=sre;function cre(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var ure=cre,dre=A3,mre=lre,pre=ure;function fre(e,t,n){return t===t?pre(e,t,n):dre(e,mre,n)}var hre=fre,gre=hre;function vre(e,t){var n=e==null?0:e.length;return!!n&&gre(e,t,0)>-1}var yre=vre;function xre(e,t,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}var bre=xre;function wre(){}var kre=wre,ib=w3,Sre=kre,jre=yS,Pre=1/0,Are=ib&&1/jre(new ib([,-0]))[1]==Pre?function(e){return new ib(e)}:Sre,_re=Are,Nre=d3,Cre=yre,Ere=bre,Tre=p3,Ore=_re,Ire=yS,Mre=200;function $re(e,t,n){var r=-1,a=Cre,i=e.length,o=!0,l=[],c=l;if(n)o=!1,a=Ere;else if(i>=Mre){var u=t?null:Ore(e);if(u)return Ire(u);o=!1,a=Tre,c=new Nre}else c=t?[]:l;e:for(;++r<i;){var d=e[r],m=t?t(d):d;if(d=n||d!==0?d:0,o&&m===m){for(var p=c.length;p--;)if(c[p]===m)continue e;t&&c.push(m),l.push(d)}else a(c,m,n)||(c!==l&&c.push(m),l.push(d))}return l}var Fre=$re,Rre=Xo,Dre=Fre;function Lre(e,t){return e&&e.length?Dre(e,Rre(t)):[]}var zre=Lre;const WA=Qe(zre);function _3(e,t,n){return t===!0?WA(e,n):Le(t)?WA(e,t):e}function bc(e){"@babel/helpers - typeof";return bc=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},bc(e)}var Bre=["ref"];function VA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function si(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VA(Object(n),!0).forEach(function(r){Py(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VA(Object(n)).forEac
vendor: 4,282 bytes, line 470
470h(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,C3(r.key),r)}}function Ure(e,t,n){return t&&HA(e.prototype,t),n&&HA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wre(e,t,n){return t=ug(t),Vre(e,N3()?Reflect.construct(t,n||[],ug(e).constructor):t.apply(e,n))}function Vre(e,t){if(t&&(bc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hre(e)}function Hre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(N3=function(){return!!e})()}function ug(e){return ug=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ug(e)}function Kre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yw(e,t)}function Yw(e,t){return Yw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Yw(e,t)}function Py(e,t,n){return t=C3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C3(e){var t=Gre(e,"string");return bc(t)=="symbol"?t:t+""}function Gre(e,t){if(bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qre(e,t){if(e==null)return{};var n=Yre(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Yre(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Zre(e){return e.value}function Xre(e,t){if(M.isValidElement(e))return M.cloneElement(e,t);if(typeof e=="function")return M.createElement(e,t);t.ref;var n=Qre(t,Bre);return M.createElement(vS,n)}var KA=1,rr=function(e){function t(){var n;qre(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Wre(this,t,[].concat(a)),Py(n,"lastBoundingBox",{width:-1,height:-1}),n}return Kre(t,e),Ure(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>KA||Math.abs(a.height-this.lastBoundingBox.height)>KA)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,r&&r(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?si({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var a=this.props,i=a.layout,o=a.align,l=a.verticalAlign,c=a.margin,u=a.chartWidth,d=a.chartHeight,m,p;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(o==="center"&&i==="vertical"){var f=this.getBBoxSnapshot();m={left:((u||0)-f.width)/2}}else m=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(l==="middle"){var g=this.getBBoxSnapsh
470ot();p={top:((d||0)-g.height)/2}}else p=l==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return si(si({},m),p)}},{key:"render",value:function(){var r=this,a=this.props,i=a.content,o=a.width,l=a.height,c=a.wrapperStyle,u=a.payloadUniqBy,d=a.payload,m=si(si({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(c)),c);return M.createElement("div",{className:"recharts-legend-wrapper",style:m,ref:function(f){r.wrapperNode=f}},Xre(i,si(si({},this.props),{},{payload:_3(d,u,Zre)})))}}],[{key:"getWithHeight",value:function(r,a){var i=si(si({},this.defaultProps),r.props),o=i.layout;return o==="vertical"&&se(r.props.height)?{height:r.props.height}:o==="horizontal"?{width:r.props.width||a}:null}}])}(S.PureComponent);Py(rr,"displayName","Legend");Py(rr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var GA=Cp,Jre=xS,eae=ar,QA=GA?GA.isConcatSpreadable:void 0;function tae(e){return eae(e)||Jre(e)||!!(QA&&e&&e[QA])}var nae=tae,rae=h3,aae=nae;function E3(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=aae),a||(a=[]);++i<o;){var l=e[i];t>0&&n(l)?t>1?E3(l,t-1,n,r,a):rae(a,l):r||(a[a.length]=l)}return a}var T3=E3;function iae(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),l=o.length;l--;){var c=o[e?l:++a];if(n(i[c],c,i)===!1)break}return t}}var oae=iae,sae=oae,lae=sae(),cae=lae,uae=cae,dae=jy;function mae(e,t){return e&&uae(e,t,dae)}var O3=mae,pae=Tp;function fae(e,t){return function(n,r){if(n==null)return n;if(!pae(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=Object(n);(t?i--:++i<a)&&r(o[i],i,o)!==!1;);return n}}var hae=fae,gae=O3,vae=hae,yae=vae(gae),SS=yae,xae=SS,bae=Tp;function wae(e,t){var n=-1,r=bae(e)?Array(e.length):[];return xae(e,function(a,i,o){r[++n]=t(a,i,o)}),r}var I3=wae;function kae(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var Sae=kae,YA=ou;function jae(e,t){if(e!==t){var n=e!==void 0,r=e===null,a=e===e,i=YA(e),o=t!==void 0,l=t===null,c=t===t,u=YA(t);if(!l&&!u&&!i&&e>t||i&&o&&c&&!l&&!u||r&&o&&c||!n&&c||!a)return 1;if(!r&&!i&&!u&&e<t||u&&n&&a&&!r&&!i||l&&n&&a||!o&&a||!c)return-1}return 0}var Pae=jae,Aae=Pae;function _ae(e,t,n){for(var r=-1,a=e.criteria,i=t.criteria,o=a.length,l=n.length;++r<o;){var c=Aae(a[r],i[r]);if(c){if(r>=l)return c;var u=n[r];return c*(u=="desc"?-1:1)}}return e.index-t.index}var Nae=_ae,ob=lS,Cae=cS,Eae=Xo,Tae=I3,Oae=Sae,Iae=y3,Mae=Nae,$ae=fu,Fae=ar;function Rae(e,t,n){t.length?t=ob(t,function(i){return Fae(i)?function(o){return Cae(o,i.length===1?i[0]:i)}:i}):t=[$ae];var r=-1;t=ob(t,Iae(Eae));var a=Tae(e,function(i,o,l){var c=ob(t,function(u){return u(i)});return{criteria:c,index:++r,value:i}});return Oae(a,function(i,o){return Mae(i,o,n)})}var Dae=Rae;function Lae(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var zae=Lae,Bae=zae,ZA=Math.max;function qae(e,t,n){return t=ZA(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=ZA(r.length-t,0),o=Array(i);++a<i;)o[a]=r[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=r[a];return l[t]=n(o),Bae(e,this,l)}}var Uae=qae;function Wae(e){return function(){return e}}var Vae=Wae,Hae=rl,Kae=function(){try{var e=Hae(Object,"defineProperty");return e({},"",{}),e}catch{}}(),M3=Kae,Gae=Vae,XA=M3,Qae=fu,Yae=XA?function(e,t){return XA(e,"toString",{configurable:!0,enumerable:!1,value:Gae(t),writable:!0})}:Qae,Zae=Yae,Xae=800,Jae=16,eie=Date.now;function tie(e){var t=0,n=0;return function(){var r=eie(),a=Jae-(r-n);if(n=r,a>0){if(++t>=Xae)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var nie=tie,rie=Zae,aie=nie,iie=aie(rie),oie=iie,sie=fu,lie=Uae,cie=oie;function uie(e,t){return cie(lie(e,t,sie),e+"")}var die=uie,mie=aS,pie=Tp,fie=bS,hie=Zo;function gie(e,t,n){if(!hie(n))return!1;var r=typeof t;return(r=="number"?pie(n)&&fie(t,n.length):r=="string"&&t in n)?mie(n[t],e):!1}var Ay=gie,vie=T3,yie=Dae,xie=die,JA=Ay,bie=xie(function(e,t){if(e==null)return[];var n=t.length;return n>1&&JA(e,t[0],t[1])?t=[]:n>2&&JA(t[0],t[1],t[2])&&(t=[t[0]]),yie(e,vie(t,1),[])}),wie=bie;const jS=Qe(wie);function xm(e){"@babel/helpers - typeof";return xm=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},xm(e)}function Zw(){return Zw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zw.apply(this,arguments)}function kie(e,t){return Aie(e)||Pie(e,t)||jie(e,t)||Sie()}
vendor: 29,144 bytes, lines 470-477
470function Sie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 471In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jie(e,t){if(e){if(typeof e=="string")return e_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e_(e,t)}}function e_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Aie(e){if(Array.isArray(e))return e}function t_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function sb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t_(Object(n),!0).forEach(function(r){_ie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _ie(e,t,n){return t=Nie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nie(e){var t=Cie(e,"string");return xm(t)=="symbol"?t:t+""}function Cie(e,t){if(xm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(xm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Eie(e){return Array.isArray(e)&&Zt(e[0])&&Zt(e[1])?e.join(" ~ "):e}var Tie=function(t){var n=t.separator,r=n===void 0?" : ":n,a=t.contentStyle,i=a===void 0?{}:a,o=t.itemStyle,l=o===void 0?{}:o,c=t.labelStyle,u=c===void 0?{}:c,d=t.payload,m=t.formatter,p=t.itemSorter,f=t.wrapperClassName,g=t.labelClassName,h=t.label,v=t.labelFormatter,y=t.accessibilityLayer,x=y===void 0?!1:y,b=function(){if(d&&d.length){var E={padding:0,margin:0},T=(p?jS(d,p):d).map(function(O,F){if(O.type==="none")return null;var D=sb({display:"block",paddingTop:4,paddingBottom:4,color:O.color||"#000"},l),z=O.formatter||m||Eie,R=O.value,B=O.name,I=R,H=B;if(z&&I!=null&&H!=null){var q=z(R,B,O,F,d);if(Array.isArray(q)){var $=kie(q,2);I=$[0],H=$[1]}else I=q}return M.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(F),style:D},Zt(H)?M.createElement("span",{className:"recharts-tooltip-item-name"},H):null,Zt(H)?M.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,M.createElement("span",{className:"recharts-tooltip-item-value"},I),M.createElement("span",{className:"recharts-tooltip-item-unit"},O.unit||""))});return M.createElement("ul",{className:"recharts-tooltip-item-list",style:E},T)}return null},w=sb({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),k=sb({margin:0},u),j=!$e(h),A=j?h:"",P=We("recharts-default-tooltip",f),_=We("recharts-tooltip-label",g);j&&v&&d!==void 0&&d!==null&&(A=v(h,d));var N=x?{role:"status","aria-live":"assertive"}:{};return M.createElement("div",Zw({className:P,style:w},N),M.createElement("p",{className:_,style:k},M.isValidElement(A)?A:"".concat(A)),b())};function bm(e){"@babel/helpers - typeof";return bm=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},bm(e)}function bf(e,t,n){return t=Oie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oie(e){var t=Iie(e,"string");return bm(t)=="symbol"?t:t+""}function Iie(e,t){if(bm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qu="recharts-tooltip-wrapper",Mie={visibility:"hidden"};function $ie(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return We(qu,bf(bf(bf(bf({},"".concat(qu,"-right"),se(n)&&t&&se(t.x)&&n>=t.x),"".concat(qu,"-left"),se(n)&&t&&se(t.x)&&n<t.x),"".concat(qu,"-bottom"),se(r)&&t&&se(t.y)&&r>=t.y),"".concat(qu,"-top"),se(r)&&t&&se(t.y)&&r<t.y))}function n_(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,a=e.offsetTopLeft,i=e.position,o=e.reverseDirection,l=e.tooltipDimension,c=e.viewBox,u=e.viewBoxDimension;if(i&&se(i[r]))return i[r];var d=n[r]-l-a,m=n[r]+a;if(t[r])return o[r]?d:m;if(o[r]){var p=d,f=c[r];return p<f?Math.max(m,c[r]):Math.max(d,c[r])}var g=m+l,h=c[r]+u;return g>h?Math.max(d,c[r]):Math.max(m,c[r])}function Fie(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function Rie(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,i=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,c=e.viewBox,u,d,m;return o.height>0&&o.width>0&&n?(d=n_({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),m=n_({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),u=Fie({translateX:d,translateY:m,useTranslate3d:l})):u=Mie,{cssProperties:u,cssClasses:$ie({translateX:d,translateY:m,coordinate:n})}}function wc(e){"@babel/helpers - typeof";return wc=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},wc(e)}function r_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function a_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r_(Object(n),!0).forEach(function(r){Jw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Die(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,F3(r.key),r)}}function zie(e,t,n){return t&&Lie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bie(e,t,n){return t=dg(t),qie(e,$3()?Reflect.construct(t,n||[],dg(e).constructor):t.apply(e,n))}function qie(e,t){if(t&&(wc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Uie(e)}function Uie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($3=function(){return!!e})()}function dg(e){return dg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dg(e)}function Wie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xw(e,t)}function Xw(e,t){return Xw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Xw(e,t)}function Jw(e,t,n){return t=F3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F3(e){var t=Vie(e,"string");return wc(t)=="symbol"?t:t+""}function Vie(e,t){if(wc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(wc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i_=1,Hie=function(e){function t(){var n;Die(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Bie(this,t,[].concat(a)),Jw(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Jw(n,"handleKeyDown",function(o){if(o.key==="Escape"){var l,c,u,d;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(c=n.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&l!==void 0?l:0,y:(u=(d=n.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&u!==void 0?u:0}})}}),n}return Wie(t,e),zie(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>i_||Math.abs(r.height-this.state.lastBoundingBox.height)>i_)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,l=a.animationDuration,c=a.animationEasing,u=a.children,d=a.coordinate,m=a.hasPayload,p=a.isAnimationActive,f=a.offset,g=a.position,h=a.reverseDirection,v=a.useTranslate3d,y=a.viewBox,x=a.wrapperStyle,b=Rie({allowEscapeViewBox:o,coordinate:d,offsetTopLeft:f,position:g,reverseDirection:h,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:y}),w=b.cssClasses,k=b.cssProperties,j=a_(a_({transition:p&&i?"transform ".concat(l,"ms ").concat(c):void 0},k),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&m?"visible":"hidden",position:"absolute",top:0,left:0},x);return M.createElement("div",{tabIndex:-1,className:w,style:j,ref:function(P){r.wrapperNode=P}},u)}}])}(S.PureComponent),Kie=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ga={isSsr:Kie(),get:function(t){return ga[t]},set:function(t,n){if(typeof t=="string")ga[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(a){ga[a]=t[a]})}}};function kc(e){"@babel/helpers - typeof";return kc=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},kc(e)}function o_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function s_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o_(Object(n),!0).forEach(function(r){PS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,D3(r.key),r)}}function Yie(e,t,n){return t&&Qie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zie(e,t,n){return t=mg(t),Xie(e,R3()?Reflect.construct(t,n||[],mg(e).constructor):t.apply(e,n))}function Xie(e,t){if(t&&(kc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jie(e)}function Jie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R3=function(){return!!e})()}function mg(e){return mg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},mg(e)}function eoe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&e1(e,t)}function e1(e,t){return e1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},e1(e,t)}function PS(e,t,n){return t=D3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D3(e){var t=toe(e,"string");return kc(t)=="symbol"?t:t+""}function toe(e,t){if(kc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(kc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function noe(e){return e.dataKey}function roe(e,t){return M.isValidElement(e)?M.cloneElement(e,t):typeof e=="function"?M.createElement(e,t):M.createElement(Tie,t)}var Mt=function(e){function t(){return Gie(this,t),Zie(this,t,arguments)}return eoe(t,e),Yie(t,[{key:"render",value:function(){var r=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,l=a.animationDuration,c=a.animationEasing,u=a.content,d=a.coordinate,m=a.filterNull,p=a.isAnimationActive,f=a.offset,g=a.payload,h=a.payloadUniqBy,v=a.position,y=a.reverseDirection,x=a.useTranslate3d,b=a.viewBox,w=a.wrapperStyle,k=g??[];m&&k.length&&(k=_3(g.filter(function(A){return A.value!=null&&(A.hide!==!0||r.props.includeHidden)}),h,noe));var j=k.length>0;return M.createElement(Hie,{allowEscapeViewBox:o,animationDuration:l,animationEasing:c,isAnimationActive:p,active:i,coordinate:d,hasPayload:j,offset:f,position:v,reverseDirection:y,useTranslate3d:x,viewBox:b,wrapperStyle:w},roe(u,s_(s_({},this.props),{},{payload:k})))}}])}(S.PureComponent);PS(Mt,"displayName","Tooltip");PS(Mt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ga.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var aoe=ai,ioe=function(){return aoe.Date.now()},ooe=ioe,soe=/\s/;function loe(e){for(var t=e.length;t--&&soe.test(e.charAt(t)););return t}var coe=loe,uoe=coe,doe=/^\s+/;function moe(e){return e&&e.slice(0,uoe(e)+1).replace(doe,"")}var poe=moe,foe=poe,l_=Zo,hoe=ou,c_=NaN,goe=/^[-+]0x[0-9a-f]+$/i,voe=/^0b[01]+$/i,yoe=/^0o[0-7]+$/i,xoe=parseInt;function boe(e){if(typeof e=="number")return e;if(hoe(e))return c_;if(l_(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=l_(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=foe(e);var n=voe.test(e);return n||yoe.test(e)?xoe(e.slice(2),n?2:8):goe.test(e)?c_:+e}var L3=boe,woe=Zo,lb=ooe,u_=L3,koe="Expected a function",Soe=Math.max,joe=Math.min;function Poe(e,t,n){var r,a,i,o,l,c,u=0,d=!1,m=!1,p=!0;if(typeof e!="function")throw new TypeError(koe);t=u_(t)||0,woe(n)&&(d=!!n.leading,m="maxWait"in n,i=m?Soe(u_(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p);function f(j){var A=r,P=a;return r=a=void 0,u=j,o=e.apply(P,A),o}function g(j){return u=j,l=setTimeout(y,t),d?f(j):o}function h(j){var A=j-c,P=j-u,_=t-A;return m?joe(_,i-P):_}function v(j){var A=j-c,P=j-u;return c===void 0||A>=t||A<0||m&&P>=i}function y(){var j=lb();if(v(j))return x(j);l=setTimeout(y,h(j))}function x(j){return l=void 0,p&&r?f(j):(r=a=void 0,o)}function b(){l!==void 0&&clearTimeout(l),u=0,r=c=a=l=void 0}function w(){return l===void 0?o:x(lb())}function k(){var j=lb(),A=v(j);if(r=arguments,a=this,c=j,A){if(l===void 0)return g(c);if(m)return clearTimeout(l),l=setTimeout(y,t),f(c)}return l===void 0&&(l=setTimeout(y,t)),o}return k.cancel=b,k.flush=w,k}var Aoe=Poe,_oe=Aoe,Noe=Zo,Coe="Expected a function";function Eoe(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(Coe);return Noe(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),_oe(e,t,{leading:r,maxWait:t,trailing:a})}var Toe=Eoe;const z3=Qe(Toe);function wm(e){"@babel/helpers - typeof";return wm=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},wm(e)}function d_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function wf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d_(Object(n),!0).forEach(function(r){Ooe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ooe(e,t,n){return t=Ioe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ioe(e){var t=Moe(e,"string");return wm(t)=="symbol"?t:t+""}function Moe(e,t){if(wm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(wm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $oe(e,t){return Loe(e)||Doe(e,t)||Roe(e,t)||Foe()}function Foe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 472In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Roe(e,t){if(e){if(typeof e=="string")return m_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m_(e,t)}}function m_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Doe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Loe(e){if(Array.isArray(e))return e}var Gr=S.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,a=r===void 0?{width:-1,height:-1}:r,i=e.width,o=i===void 0?"100%":i,l=e.height,c=l===void 0?"100%":l,u=e.minWidth,d=u===void 0?0:u,m=e.minHeight,p=e.maxHeight,f=e.children,g=e.debounce,h=g===void 0?0:g,v=e.id,y=e.className,x=e.onResize,b=e.style,w=b===void 0?{}:b,k=S.useRef(null),j=S.useRef();j.current=x,S.useImperativeHandle(t,function(){return Object.defineProperty(k.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),k.current},configurable:!0})});var A=S.useState({containerWidth:a.width,containerHeight:a.height}),P=$oe(A,2),_=P[0],N=P[1],C=S.useCallback(function(T,O){N(function(F){var D=Math.round(T),z=Math.round(O);return F.containerWidth===D&&F.containerHeight===z?F:{containerWidth:D,containerHeight:z}})},[]);S.useEffect(function(){var T=function(B){var I,H=B[0].contentRect,q=H.width,$=H.height;C(q,$),(I=j.current)===null||I===void 0||I.call(j,q,$)};h>0&&(T=z3(T,h,{trailing:!0,leading:!1}));var O=new ResizeObserver(T),F=k.current.getBoundingClientRect(),D=F.width,z=F.height;return C(D,z),O.observe(k.current),function(){O.disconnect()}},[C,h]);var E=S.useMemo(function(){var T=_.containerWidth,O=_.containerHeight;if(T<0||O<0)return null;Ci(ws(o)||ws(c),`The width(%s) and height(%s) are both fixed numbers, 473 maybe you don't need to use a ResponsiveContainer.`,o,c),Ci(!n||n>0,"The aspect(%s) must be greater than zero.",n);var F=ws(o)?T:o,D=ws(c)?O:c;n&&n>0&&(F?D=F/n:D&&(F=D*n),p&&D>p&&(D=p)),Ci(F>0||D>0,`The width(%s) and height(%s) of chart should be greater than 0, 474 please check the style of container, or the props width(%s) and height(%s), 475 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 476 height and width.`,F,D,o,c,d,m,n);var z=!Array.isArray(f)&&Ni(f.type).endsWith("Chart");return M.Children.map(f,function(R){return $8.isElement(R)?S.cloneElement(R,wf({width:F,height:D},z?{style:wf({height:"100%",width:"100%",maxHeight:D,maxWidth:F},R.props.style)}:{})):R})},[n,f,c,p,m,d,_,o]);return M.createElement("div",{id:v?"".concat(v):void 0,className:We("recharts-responsive-container",y),style:wf(wf({},w),{},{width:o,height:c,minWidth:d,minHeight:m,maxHeight:p}),ref:k},E)}),hu=function(t){return null};hu.displayName="Cell";function km(e){"@babel/helpers - typeof";return km=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},km(e)}function p_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function t1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?p_(Object(n),!0).forEach(function(r){zoe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zoe(e,t,n){return t=Boe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Boe(e){var t=qoe(e,"string");return km(t)=="symbol"?t:t+""}function qoe(e,t){if(km(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(km(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fl={widthCache:{},cacheCount:0},Uoe=2e3,Woe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},f_="recharts_measurement_span";function Voe(e){var t=t1({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var _d=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ga.isSsr)return{width:0,height:0};var r=Voe(n),a=JSON.stringify({text:t,copyStyle:r});if(fl.widthCache[a])return fl.widthCache[a];try{var i=document.getElementById(f_);i||(i=document.createElement("span"),i.setAttribute("id",f_),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=t1(t1({},Woe),r);Object.assign(i.style,o),i.textContent="".concat(t);var l=i.getBoundingClientRect(),c={width:l.width,height:l.height};return fl.widthCache[a]=c,++fl.cacheCount>Uoe&&(fl.cacheCount=0,fl.widthCache={}),c}catch{return{width:0,height:0}}},Hoe=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Sm(e){"@babel/helpers - typeof";return Sm=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},Sm(e)}function pg(e,t){return Yoe(e)||Qoe(e,t)||Goe(e,t)||Koe()}function Koe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 477In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Goe(e,t){if(e){if(typeof e=="string")return h_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h_(e,t)}}function h_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qoe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Yoe(e){if(Array.isArray(e))return e}function Zoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Joe(r.key),r)}}function Xoe(e,t,n){return t&&g_(e.prototype,t),n&&g_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Joe(e){var t=ese(e,"string");return Sm(t)=="symbol"?t:t+""}function ese(e,t){if(Sm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var v_=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,y_=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,tse=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,nse=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,B3={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},rse=Object.keys(B3),Rl="NaN";function ase(e,t){return e*B3[t]}var kf=function(){function e(t,n){Zoe(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!tse.test(n)&&(this.num=NaN,this.unit=""),rse.includes(n)&&(this.num=ase(t,n),this.unit="px")}return Xoe(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,a=(r=nse.exec(n))!==null&&r!==void 0?r:[],i=pg(a,3),o=i[1],l=i[2];return new e(parseFloat(o),l??"")}}])}();function q3(e){if(e.includes(Rl))return Rl;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=v_.exec(t))!==null&&n!==void 0?n:[],a=pg(r,4),i=a[1],o=a[2],l=a[3],c=kf.parse(i??""),u=kf.parse(l??""),d=o==="*"?c.multiply(u):c.divide(u);if(d.isNaN())return Rl;t=t.replace(v_,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var m,p=(m=y_.exec(t))!==null&&m!==void 0?m:[],f=pg(p,4),g=f[1],h=f[2],v=f[3],y=kf.parse(g??""),x=kf.parse(v??""),b=h==="+"?y.add(x):y.subtract(x);if(b.isNaN())return Rl;t=t.replace(y_,b.toString())}return t}var x_=/\(([^()]*)\)/;function ise(e){for(var t=e;t.includes("(");){var n=x_.exec(t),r=pg(n,2),a=r[1];t=t.replace(x_,q3(a))}return t}function ose(e){var t=e.replace(/\s+/g,"");return t=ise(t),t=q3(t),t}function sse(e){try{return ose(e)}catch{return Rl}}function cb(e){var t=sse(e.slice(5,-1));return t===Rl?"":t}var lse=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],cse=["dx","dy","angle","className","breakAll"];function n1(){return n1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n1.apply(this,arguments)}function b_(e,t){if(e==null)return{};var n=use(e,t),r,a;
477if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function use(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function w_(e,t){return fse(e)||pse(e,t)||mse(e,t)||dse()}function dse(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 478In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mse(e,t){if(e){if(typeof e=="string")return k_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k_(e,t)}}function k_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pse(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function fse(e){if(Array.isArray(e))return e}var U3=/[ \f\n\r\t\v\u2028\u2029]+/,W3=function(t){var n=t.children,r=t.breakAll,a=t.style;try{var i=[];$e(n)||(r?i=n.toString().split(""):i=n.toString().split(U3));var o=i.map(function(c){return{word:c,width:_d(c,a).width}}),l=r?0:_d(" ",a).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},hse=function(t,n,r,a,i){var o=t.maxLines,l=t.children,c=t.style,u=t.breakAll,d=se(o),m=l,p=function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return F.reduce(function(D,z){var R=z.word,B=z.width,I=D[D.length-1];if(I&&(a==null||i||I.width+B+r<Number(a)))I.words.push(R),I.width+=B+r;else{var H={words:[R],width:B};D.push(H)}return D},[])},f=p(n),g=function(F){return F.reduce(function(D,z){return D.width>z.width?D:z})};if(!d)return f;for(var h="â¦",v=function(F){var D=m.slice(0,F),z=W3({breakAll:u,style:c,children:D+h}).wordsWithComputedWidth,R=p(z),B=R.length>o||g(R).width>Number(a);return[B,R]},y=0,x=m.length-1,b=0,w;y<=x&&b<=m.length-1;){var k=Math.floor((y+x)/2),j=k-1,A=v(j),P=w_(A,2),_=P[0],N=P[1],C=v(k),E=w_(C,1),T=E[0];if(!_&&!T&&(y=k+1),_&&T&&(x=k-1),!_&&T){w=N;break}b++}return w||f},S_=function(t){var n=$e(t)?[]:t.toString().split(U3);return[{words:n}]},gse=function(t){var n=t.width,r=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,l=t.maxLines;if((n||r)&&!ga.isSsr){var c,u,d=W3({breakAll:o,children:a,style:i});if(d){var m=d.wordsWithComputedWidth,p=d.spaceWidth;c=m,u=p}else return S_(a);return hse({breakAll:o,children:a,maxLines:l,style:i},c,u,n,r)}return S_(a)},j_="#808080",fg=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,o=t.lineHeight,l=o===void 0?"1em":o,c=t.capHeight,u=c===void 0?"0.71em":c,d=t.scaleToFit,m=d===void 0?!1:d,p=t.textAnchor,f=p===void 0?"start":p,g=t.verticalAnchor,h=g===void 0?"end":g,v=t.fill,y=v===void 0?j_:v,x=b_(t,lse),b=S.useMemo(function(){return gse({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:m,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,m,x.style,x.width]),w=x.dx,k=x.dy,j=x.angle,A=x.className,P=x.breakAll,_=b_(x,cse);if(!Zt(r)||!Zt(i))return null;var N=r+(se(w)?w:0),C=i+(se(k)?k:0),E;switch(h){case"start":E=cb("calc(".concat(u,")"));break;case"middle":E=cb("calc(".concat((b.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:E=cb("calc(".concat(b.length-1," * -").concat(l,")"));break}var T=[];if(m){var O=b[0].width,F=x.width;T.push("scale(".concat((se(F)?F/O:1)/O,")"))}return j&&T.push("rotate(".concat(j,", ").concat(N,", ").concat(C,")")),T.length&&(_.transform=T.join(" ")),M.createElement("text",n1({},Me(_,!0),{x:N,y:C,className:We("recharts-text",A),textAnchor:f,fill:y.includes("url")?j_:y}),b.map(function(D,z){var R=D.words.join(P?"":" ");return M.createElement("tspan",{x:N,dy:z===0?E:l,key:"".concat(R,"-").concat(z)},R)}))};function Mo(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function vse(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function AS(e){let t,n,r;e.length!==2?(t=Mo,n=(l,c)=>Mo(e(l),c),r=(l,c)=>e(l)-c):(t=e===Mo||e===vse?e:yse,n=e,r=e);function a(l,c,u=0,d=l.length){if(u<d){if(t(c,c)!==0)return d;do{const m=u+d>>>1;n(l[m],c)<0?u=m+1:d=m}while(u<d)}return u}function i(l,c,u=0,d=l.length){if(u<d){if(t(c,c)!==0)return d;do{const m=u+d>>>1;n(l[m],c)<=0?u=m+1:d=m}while(u<d)}return u}function o(l,c,u=0,d=l.length){const m=a(l,c,u,d-1);return m>u&&r(l[m-1],c)>-r(l[m],c)?m-1:m}return{left:a,center:o,right:i}}function yse(){return 0}function V3(e){return e===null?NaN:+e}function*xse(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const bse=AS(Mo),Op=bse.right;AS(V3).center;class P_ extends Map{constructor(t,n=Sse){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(A_(this,t))}has(t){return super.has(A_(this,t))}set(t,n){return super.set(wse(this,t),n)}delete(t){return super.delete(kse(this,t))}}function A_({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function wse({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function kse({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Sse(e){return e!==null&&typeof e=="object"?e.valueOf():e}function jse(e=Mo){if(e===Mo)return H3;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function H3(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Pse=Math.sqrt(50),Ase=Math.sqrt(10),_se=Math.sqrt(2);function hg(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=Pse?10:i>=Ase?5:i>=_se?2:1;let l,c,u;return a<0?(u=Math.pow(10,-a)/o,l=Math.round(e*u),c=Math.round(t*u),l/u<e&&++l,c/u>t&&--c,u=-u):(u=Math.pow(10,a)*o,l=Math.round(e/u),c=Math.round(t/u),l*u<e&&++l,c*u>t&&--c),c<l&&.5<=n&&n<2?hg(e,t,n*2):[l,c,u]}
478function r1(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,o]=r?hg(t,e,n):hg(e,t,n);if(!(i>=a))return[];const l=i-a+1,c=new Array(l);if(r)if(o<0)for(let u=0;u<l;++u)c[u]=(i-u)/-o;else for(let u=0;u<l;++u)c[u]=(i-u)*o;else if(o<0)for(let u=0;u<l;++u)c[u]=(a+u)/-o;else for(let u=0;u<l;++u)c[u]=(a+u)*o;return c}function a1(e,t,n){return t=+t,e=+e,n=+n,hg(e,t,n)[2]}function i1(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?a1(t,e,n):a1(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function __(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function N_(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function K3(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?H3:jse(a);r>n;){if(r-n>600){const c=r-n+1,u=t-n+1,d=Math.log(c),m=.5*Math.exp(2*d/3),p=.5*Math.sqrt(d*m*(c-m)/c)*(u-c/2<0?-1:1),f=Math.max(n,Math.floor(t-u*m/c+p)),g=Math.min(r,Math.floor(t+(c-u)*m/c+p));K3(e,t,f,g,a)}const i=e[t];let o=n,l=r;for(Uu(e,n,t),a(e[r],i)>0&&Uu(e,n,r);o<l;){for(Uu(e,o,l),++o,--l;a(e[o],i)<0;)++o;for(;a(e[l],i)>0;)--l}a(e[n],i)===0?Uu(e,n,l):(++l,Uu(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function Uu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Nse(e,t,n){if(e=Float64Array.from(xse(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return N_(e);if(t>=1)return __(e);var r,a=(r-1)*t,i=Math.floor(a),o=__(K3(e,i).subarray(0,i+1)),l=N_(e.subarray(i+1));return o+(l-o)*(a-i)}}function Cse(e,t,n=V3){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),o=+n(e[i],i,e),l=+n(e[i+1],i+1,e);return o+(l-o)*(a-i)}}function Ese(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r<a;)i[r]=e+r*n;return i}function Qr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Ki(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const o1=Symbol("implicit");function _S(){var e=new P_,t=[],n=[],r=o1;function a(i){let o=e.get(i);if(o===void 0){if(r!==o1)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new P_;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return _S(t,n).unknown(r)},Qr.apply(a,arguments),a}function jm(){var e=_S().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,o,l=!1,c=0,u=0,d=.5;delete e.unknown;function m(){var p=t().length,f=a<r,g=f?a:r,h=f?r:a;i=(h-g)/Math.max(1,p-c+u*2),l&&(i=Math.floor(i)),g+=(h-g-i*(p-c))*d,o=i*(1-c),l&&(g=Math.round(g),o=Math.round(o));var v=Ese(p).map(function(y){return g+i*y});return n(f?v.reverse():v)}return e.domain=function(p){return arguments.length?(t(p),m()):t()},e.range=function(p){return arguments.length?([r,a]=p,r=+r,a=+a,m()):[r,a]},e.rangeRound=function(p){return[r,a]=p,r=+r,a=+a,l=!0,m()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(p){return arguments.length?(l=!!p,m()):l},e.padding=function(p){return arguments.length?(c=Math.min(1,u=+p),m()):c},e.paddingInner=function(p){return arguments.length?(c=Math.min(1,p),m()):c},e.paddingOuter=function(p){return arguments.length?(u=+p,m()):u},e.align=function(p){return arguments.length?(d=Math.max(0,Math.min(1,p)),m()):d},e.copy=function(){return jm(t(),[r,a]).round(l).paddingInner(c).paddingOuter(u).align(d)},Qr.apply(m(),arguments)}function G3(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return G3(t())},e}function Nd(){return G3(jm.apply(null,arguments).paddingInner(1))}function NS(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Q3(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ip(){}var Pm=.7,gg=1/Pm,Zl="\\s*([+-]?\\d+)\\s*",Am="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ha="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Tse=/^#([0-9a-f]{3,8})$/,Ose=new RegExp(`^rgb\\(${Zl},${Zl},${Zl}\\)$`),Ise=new RegExp(`^rgb\\(${Ha},${Ha},${Ha}\\)$`),Mse=new RegExp(`^rgba\\(${Zl},${Zl},${Zl},${Am}\\)$`),$se=new RegExp(`^rgba\\(${Ha},${Ha},${Ha},${Am}\\)$`),Fse=new RegExp(`^hsl\\(${Am},${Ha},${Ha}\\)$`),Rse=new RegExp(`^hsla\\(${Am},${Ha},${Ha},${Am}\\)$`),C_={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};NS(Ip,_m,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:E_,formatHex:E_,formatHex8:Dse,formatHsl:Lse,formatRgb:T_,toString:T_});function E_(){return this.rgb().formatHex()}function Dse(){return this.rgb().formatHex8()}function Lse(){return Y3(this).formatHsl()}
vendor: 4,544 bytes, line 478
478function T_(){return this.rgb().formatRgb()}function _m(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Tse.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?O_(t):n===3?new Xn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Sf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Sf(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Ose.exec(e))?new Xn(t[1],t[2],t[3],1):(t=Ise.exec(e))?new Xn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Mse.exec(e))?Sf(t[1],t[2],t[3],t[4]):(t=$se.exec(e))?Sf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Fse.exec(e))?$_(t[1],t[2]/100,t[3]/100,1):(t=Rse.exec(e))?$_(t[1],t[2]/100,t[3]/100,t[4]):C_.hasOwnProperty(e)?O_(C_[e]):e==="transparent"?new Xn(NaN,NaN,NaN,0):null}function O_(e){return new Xn(e>>16&255,e>>8&255,e&255,1)}function Sf(e,t,n,r){return r<=0&&(e=t=n=NaN),new Xn(e,t,n,r)}function zse(e){return e instanceof Ip||(e=_m(e)),e?(e=e.rgb(),new Xn(e.r,e.g,e.b,e.opacity)):new Xn}function s1(e,t,n,r){return arguments.length===1?zse(e):new Xn(e,t,n,r??1)}function Xn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}NS(Xn,s1,Q3(Ip,{brighter(e){return e=e==null?gg:Math.pow(gg,e),new Xn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Pm:Math.pow(Pm,e),new Xn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xn(Ms(this.r),Ms(this.g),Ms(this.b),vg(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:I_,formatHex:I_,formatHex8:Bse,formatRgb:M_,toString:M_}));function I_(){return`#${ks(this.r)}${ks(this.g)}${ks(this.b)}`}function Bse(){return`#${ks(this.r)}${ks(this.g)}${ks(this.b)}${ks((isNaN(this.opacity)?1:this.opacity)*255)}`}function M_(){const e=vg(this.opacity);return`${e===1?"rgb(":"rgba("}${Ms(this.r)}, ${Ms(this.g)}, ${Ms(this.b)}${e===1?")":`, ${e})`}`}function vg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ms(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ks(e){return e=Ms(e),(e<16?"0":"")+e.toString(16)}function $_(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new sa(e,t,n,r)}function Y3(e){if(e instanceof sa)return new sa(e.h,e.s,e.l,e.opacity);if(e instanceof Ip||(e=_m(e)),!e)return new sa;if(e instanceof sa)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,l=i-a,c=(i+a)/2;return l?(t===i?o=(n-r)/l+(n<r)*6:n===i?o=(r-t)/l+2:o=(t-n)/l+4,l/=c<.5?i+a:2-i-a,o*=60):l=c>0&&c<1?0:o,new sa(o,l,c,e.opacity)}function qse(e,t,n,r){return arguments.length===1?Y3(e):new sa(e,t,n,r??1)}function sa(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}NS(sa,qse,Q3(Ip,{brighter(e){return e=e==null?gg:Math.pow(gg,e),new sa(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Pm:Math.pow(Pm,e),new sa(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new Xn(ub(e>=240?e-240:e+120,a,r),ub(e,a,r),ub(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new sa(F_(this.h),jf(this.s),jf(this.l),vg(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=vg(this.opacity);return`${e===1?"hsl(":"hsla("}${F_(this.h)}, ${jf(this.s)*100}%, ${jf(this.l)*100}%${e===1?")":`, ${e})`}`}}));function F_(e){return e=(e||0)%360,e<0?e+360:e}function jf(e){return Math.max(0,Math.min(1,e||0))}function ub(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const CS=e=>()=>e;function Use(e,t){return function(n){return e+n*t}}function Wse(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Vse(e){return(e=+e)==1?Z3:function(t,n){return n-t?Wse(t,n,e):CS(isNaN(t)?n:t)}}function Z3(e,t){var n=t-e;return n?Use(e,n):CS(isNaN(e)?t:e)}const R_=function e(t){var n=Vse(t);function r(a,i){var o=n((a=s1(a)).r,(i=s1(i)).r),l=n(a.g,i.g),c=n(a.b,i.b),u=Z3(a.opacity,i.opacity);return function(d){return a.r=o(d),a.g=l(d),a.b=c(d),a.opacity=u(d),a+""}}return r.gamma=e,r}(1);function Hse(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=e[a]*(1-i)+t[a]*i;return r}}function Kse(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Gse(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),o;for(o=0;o<r;++o)a[o]=gu(e[o],t[o]);for(;o<n;
vendor: 5,514 bytes, line 478
478++o)i[o]=t[o];return function(l){for(o=0;o<r;++o)i[o]=a[o](l);return i}}function Qse(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function yg(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Yse(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=gu(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var l1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,db=new RegExp(l1.source,"g");function Zse(e){return function(){return e}}function Xse(e){return function(t){return e(t)+""}}function Jse(e,t){var n=l1.lastIndex=db.lastIndex=0,r,a,i,o=-1,l=[],c=[];for(e=e+"",t=t+"";(r=l1.exec(e))&&(a=db.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),l[o]?l[o]+=i:l[++o]=i),(r=r[0])===(a=a[0])?l[o]?l[o]+=a:l[++o]=a:(l[++o]=null,c.push({i:o,x:yg(r,a)})),n=db.lastIndex;return n<t.length&&(i=t.slice(n),l[o]?l[o]+=i:l[++o]=i),l.length<2?c[0]?Xse(c[0].x):Zse(t):(t=c.length,function(u){for(var d=0,m;d<t;++d)l[(m=c[d]).i]=m.x(u);return l.join("")})}function gu(e,t){var n=typeof t,r;return t==null||n==="boolean"?CS(t):(n==="number"?yg:n==="string"?(r=_m(t))?(t=r,R_):Jse:t instanceof _m?R_:t instanceof Date?Qse:Kse(t)?Hse:Array.isArray(t)?Gse:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Yse:yg)(e,t)}function ES(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function ele(e,t){t===void 0&&(t=e,e=gu);for(var n=0,r=t.length-1,a=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(a,a=t[++n]);return function(o){var l=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return i[l](o-l)}}function tle(e){return function(){return e}}function xg(e){return+e}var D_=[0,1];function Bn(e){return e}function c1(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:tle(isNaN(t)?NaN:.5)}function nle(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function rle(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=c1(a,r),i=n(o,i)):(r=c1(r,a),i=n(i,o)),function(l){return i(r(l))}}function ale(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)a[o]=c1(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(l){var c=Op(e,l,1,r)-1;return i[c](a[c](l))}}function Mp(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function _y(){var e=D_,t=D_,n=gu,r,a,i,o=Bn,l,c,u;function d(){var p=Math.min(e.length,t.length);return o!==Bn&&(o=nle(e[0],e[p-1])),l=p>2?ale:rle,c=u=null,m}function m(p){return p==null||isNaN(p=+p)?i:(c||(c=l(e.map(r),t,n)))(r(o(p)))}return m.invert=function(p){return o(a((u||(u=l(t,e.map(r),yg)))(p)))},m.domain=function(p){return arguments.length?(e=Array.from(p,xg),d()):e.slice()},m.range=function(p){return arguments.length?(t=Array.from(p),d()):t.slice()},m.rangeRound=function(p){return t=Array.from(p),n=ES,d()},m.clamp=function(p){return arguments.length?(o=p?!0:Bn,d()):o!==Bn},m.interpolate=function(p){return arguments.length?(n=p,d()):n},m.unknown=function(p){return arguments.length?(i=p,m):i},function(p,f){return r=p,a=f,d()}}function TS(){return _y()(Bn,Bn)}function ile(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function bg(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Sc(e){return e=bg(Math.abs(e)),e?e[1]:NaN}function ole(e,t){return function(n,r){for(var a=n.length,i=[],o=0,l=e[0],c=0;a>0&&l>0&&(c+l+1>r&&(l=Math.max(1,r-c)),i.push(n.substring(a-=l,a+l)),!((c+=l+1)>r));)l=e[o=(o+1)%e.length];return i.reverse().join(t)}}function sle(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var lle=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Nm(e){if(!(t=lle.exec(e)))throw new Error("invalid format: "+e);var t;return new OS({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Nm.prototype=OS.prototype;function OS(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}OS.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function cle(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var X3;function ule(e,t){var n=bg(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(X3=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+bg(e,Math.max(0,t+i-1))[0]}function L_(e,t){var n=bg(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const z_={"%":(e,t)=>
vendor: 5,608 bytes, line 478
478(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:ile,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>L_(e*100,t),r:L_,s:ule,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function B_(e){return e}var q_=Array.prototype.map,U_=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function dle(e){var t=e.grouping===void 0||e.thousands===void 0?B_:ole(q_.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?B_:sle(q_.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"â":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(m){m=Nm(m);var p=m.fill,f=m.align,g=m.sign,h=m.symbol,v=m.zero,y=m.width,x=m.comma,b=m.precision,w=m.trim,k=m.type;k==="n"?(x=!0,k="g"):z_[k]||(b===void 0&&(b=12),w=!0,k="g"),(v||p==="0"&&f==="=")&&(v=!0,p="0",f="=");var j=h==="$"?n:h==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",A=h==="$"?r:/[%p]/.test(k)?o:"",P=z_[k],_=/[defgprs%]/.test(k);b=b===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function N(C){var E=j,T=A,O,F,D;if(k==="c")T=P(C)+T,C="";else{C=+C;var z=C<0||1/C<0;if(C=isNaN(C)?c:P(Math.abs(C),b),w&&(C=cle(C)),z&&+C==0&&g!=="+"&&(z=!1),E=(z?g==="("?g:l:g==="-"||g==="("?"":g)+E,T=(k==="s"?U_[8+X3/3]:"")+T+(z&&g==="("?")":""),_){for(O=-1,F=C.length;++O<F;)if(D=C.charCodeAt(O),48>D||D>57){T=(D===46?a+C.slice(O+1):C.slice(O))+T,C=C.slice(0,O);break}}}x&&!v&&(C=t(C,1/0));var R=E.length+C.length+T.length,B=R<y?new Array(y-R+1).join(p):"";switch(x&&v&&(C=t(B+C,B.length?y-T.length:1/0),B=""),f){case"<":C=E+C+T+B;break;case"=":C=E+B+C+T;break;case"^":C=B.slice(0,R=B.length>>1)+E+C+T+B.slice(R);break;default:C=B+E+C+T;break}return i(C)}return N.toString=function(){return m+""},N}function d(m,p){var f=u((m=Nm(m),m.type="f",m)),g=Math.max(-8,Math.min(8,Math.floor(Sc(p)/3)))*3,h=Math.pow(10,-g),v=U_[8+g/3];return function(y){return f(h*y)+v}}return{format:u,formatPrefix:d}}var Pf,IS,J3;mle({thousands:",",grouping:[3],currency:["$",""]});function mle(e){return Pf=dle(e),IS=Pf.format,J3=Pf.formatPrefix,Pf}function ple(e){return Math.max(0,-Sc(Math.abs(e)))}function fle(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Sc(t)/3)))*3-Sc(Math.abs(e)))}function hle(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Sc(t)-Sc(e))+1}function e6(e,t,n,r){var a=i1(e,t,n),i;switch(r=Nm(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=fle(a,o))&&(r.precision=i),J3(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=hle(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=ple(a))&&(r.precision=i-(r.type==="%")*2);break}}return IS(r)}function Jo(e){var t=e.domain;return e.ticks=function(n){var r=t();return r1(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return e6(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],l=r[i],c,u,d=10;for(l<o&&(u=o,o=l,l=u,u=a,a=i,i=u);d-- >0;){if(u=a1(o,l,n),u===c)return r[a]=o,r[i]=l,t(r);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;c=u}return e},e}function wg(){var e=TS();return e.copy=function(){return Mp(e,wg())},Qr.apply(e,arguments),Jo(e)}function t6(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,xg),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return t6(e).unknown(t)},e=arguments.length?Array.from(e,xg):[0,1],Jo(n)}function n6(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return i<a&&(o=n,n=r,r=o,o=a,a=i,i=o),e[n]=t.floor(a),e[r]=t.ceil(i),e}function W_(e){return Math.log(e)}function V_(e){return Math.exp(e)}function gle(e){return-Math.log(-e)}function vle(e){return-Math.exp(-e)}function yle(e){return isFinite(e)?+("1e"+e):e<0?0:e}function xle(e){return e===10?yle:e===Math.E?Math.exp:t=>Math.pow(e,t)}function ble(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function H_(e){return(t,n)=>-e(-t,n)}function MS(e){const t=e(W_,V_),n=t.domain;let r=10,a,i;function o(){return a=ble(r),i=xle(r),n()[0]<0?(a=H_(a),i=H_(i),e(gle,vle)):e(W_,V_),t}return t.base=function(l){return arguments.length?(r=+l,o()):r},t.domain=function(l){return arguments.length?(n(l),o()):n()},t.ticks=l=>{const c=n();let u=c[0],d=c[c.length-1];const m=d<u;m&&([u,d]=[d,u]);let p=a(u),f=a(d),g,h;const v=l==null?10:+l;let y=[];if(!(r%1)&&f-p<v){if(p=Math.floor(p),f=Math.ceil(f),u>0){for(;p<=f;++p)for(g=1;g<r;++g)if(h=p<0?g/i(-p):g*i(p),!(h<u)){if(h>d)break;y.push(h)}}else for(;p<=f;++p)for(g=r-1;g>=1;--g)if(h=p>0?g/i(-p):g*i(p),!(h<u)){if(h>d)break;y.push(h)}y.length*2<v&&(y=r1(u,d,v))}else y=r1(p,f,Math.min(f-p,v)).map(i);return m?y.reverse():y},t.tickFormat=(l,c)=>{if(l==null&&(l=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=Nm(c)).precision==null&&(c.trim=!0),c=IS(c)),l===1/0)return c;const u=Math.max(1,r*l/t.ticks().length);return d=>{let m=d/i(Math.round(a(d)));return m*r<r-.5&&(m*=r),m<=u?c(d):""}},t.nice=()=>n(n6(n(),{floor:l=>i(Math.floor(a(l))),ceil:l=>i(Math.ceil(a(l)))})),t}function r6(){const e=MS(_y()).domain([1,10]);return e.copy=()=>Mp(e,r6()).base(e.base()),Qr.apply(e,arguments),e}
478function K_(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function G_(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function $S(e){var t=1,n=e(K_(t),G_(t));return n.constant=function(r){return arguments.length?e(K_(t=+r),G_(t)):t},Jo(n)}function a6(){var e=$S(_y());return e.copy=function(){return Mp(e,a6()).constant(e.constant())},Qr.apply(e,arguments)}function Q_(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function wle(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function kle(e){return e<0?-e*e:e*e}function FS(e){var t=e(Bn,Bn),n=1;function r(){return n===1?e(Bn,Bn):n===.5?e(wle,kle):e(Q_(n),Q_(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},Jo(t)}function RS(){var e=FS(_y());return e.copy=function(){return Mp(e,RS()).exponent(e.exponent())},Qr.apply(e,arguments),e}function Sle(){return RS.apply(null,arguments).exponent(.5)}function Y_(e){return Math.sign(e)*e*e}function jle(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function i6(){var e=TS(),t=[0,1],n=!1,r;function a(i){var o=jle(e(i));return isNaN(o)?r:n?Math.round(o):o}return a.invert=function(i){return e.invert(Y_(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,xg)).map(Y_)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(n=!!i,a):n},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return i6(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Qr.apply(a,arguments),Jo(a)}function o6(){var e=[],t=[],n=[],r;function a(){var o=0,l=Math.max(1,t.length);for(n=new Array(l-1);++o<l;)n[o-1]=Cse(e,o/l);return i}function i(o){return o==null||isNaN(o=+o)?r:t[Op(n,o)]}return i.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},i.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(Mo),a()},i.range=function(o){return arguments.length?(t=Array.from(o),a()):t.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.quantiles=function(){return n.slice()},i.copy=function(){return o6().domain(e).range(t).unknown(r)},Qr.apply(i,arguments)}function s6(){var e=0,t=1,n=1,r=[.5],a=[0,1],i;function o(c){return c!=null&&c<=c?a[Op(r,c,0,n)]:i}function l(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*t-(c-n)*e)/(n+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,l()):[e,t]},o.range=function(c){return arguments.length?(n=(a=Array.from(c)).length-1,l()):a.slice()},o.invertExtent=function(c){var u=a.indexOf(c);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(c){return arguments.length&&(i=c),o},o.thresholds=function(){return r.slice()},o.copy=function(){return s6().domain([e,t]).range(a).unknown(i)},Qr.apply(Jo(o),arguments)}function l6(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[Op(e,i,0,r)]:n}return a.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return l6().domain(e).range(t).unknown(n)},Qr.apply(a,arguments)}const mb=new Date,pb=new Date;function Jt(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),l=a.ceil(i);return i-o<l-i?o:l},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,l)=>{const c=[];if(i=a.ceil(i),l=l==null?1:Math.floor(l),!(i<o)||!(l>0))return c;let u;do c.push(u=new Date(+i)),t(i,l),e(i);while(u<i&&i<o);return c},a.filter=i=>Jt(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!i(o););else for(;--l>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(mb.setTime(+i),pb.setTime(+o),e(mb),e(pb),Math.floor(n(mb,pb))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const kg=Jt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);kg.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Jt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):kg);kg.range;const ji=1e3,zr=ji*60,Pi=zr*60,Li=Pi*24,DS=Li*7,Z_=Li*30,fb=Li*365,Ss=Jt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ji)},(e,t)=>(t-e)/ji,e=>e.getUTCSeconds());Ss.range;const LS=Jt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ji)},(e,t)=>{e.setTime(+e+t*zr)},(e,t)=>(t-e)/zr,e=>e.getMinutes());LS.range;const zS=Jt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*zr)},(e,t)=>(t-e)/zr,e=>e.getUTCMinutes());zS.range;const BS=Jt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ji-e.getMinutes()*zr)},(e,t)=>{e.setTime(+e+t*Pi)},(e,t)=>(t-e)/Pi,e=>e.getHours());BS.range;const qS=Jt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Pi)},(e,t)=>(t-e)/Pi,e=>e.getUTCHours());qS.range;const $p=Jt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*zr)/Li,e=>e.getDate()-1);$p.range;const Ny=Jt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Li,e=>e.getUTCDate()-1);Ny.range;const c6=Jt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Li,e=>Math.floor(e/Li));c6.range;function il(e){return Jt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*zr)/DS)}const Cy=il(0),Sg=il(1),Ple=il(2),Ale=il(3),jc=il(4),_le=il(5),Nle=il(6);Cy.range;Sg.range;Ple.range;Ale.range;jc.range;_le.range;Nle.range;function ol(e){return Jt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/DS)}const Ey=ol(0),jg=ol(1),Cle=ol(2),Ele=ol(3),Pc=ol(4),Tle=ol(5),Ole=ol(6);Ey.range;jg.range;Cle.range;Ele.range;Pc.range;Tle.range;Ole.range;const US=Jt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());US.range;const WS=Jt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());WS.range;const zi=Jt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());zi.every=e=>
vendor: 4,346 bytes, line 478
478!isFinite(e=Math.floor(e))||!(e>0)?null:Jt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});zi.range;const Bi=Jt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Bi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Jt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Bi.range;function u6(e,t,n,r,a,i){const o=[[Ss,1,ji],[Ss,5,5*ji],[Ss,15,15*ji],[Ss,30,30*ji],[i,1,zr],[i,5,5*zr],[i,15,15*zr],[i,30,30*zr],[a,1,Pi],[a,3,3*Pi],[a,6,6*Pi],[a,12,12*Pi],[r,1,Li],[r,2,2*Li],[n,1,DS],[t,1,Z_],[t,3,3*Z_],[e,1,fb]];function l(u,d,m){const p=d<u;p&&([u,d]=[d,u]);const f=m&&typeof m.range=="function"?m:c(u,d,m),g=f?f.range(u,+d+1):[];return p?g.reverse():g}function c(u,d,m){const p=Math.abs(d-u)/m,f=AS(([,,v])=>v).right(o,p);if(f===o.length)return e.every(i1(u/fb,d/fb,m));if(f===0)return kg.every(Math.max(i1(u,d,m),1));const[g,h]=o[p/o[f-1][2]<o[f][2]/p?f-1:f];return g.every(h)}return[l,c]}const[Ile,Mle]=u6(Bi,WS,Ey,c6,qS,zS),[$le,Fle]=u6(zi,US,Cy,$p,BS,LS);function hb(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function gb(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Wu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Rle(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,l=e.months,c=e.shortMonths,u=Vu(a),d=Hu(a),m=Vu(i),p=Hu(i),f=Vu(o),g=Hu(o),h=Vu(l),v=Hu(l),y=Vu(c),x=Hu(c),b={a:z,A:R,b:B,B:I,c:null,d:rN,e:rN,f:oce,g:gce,G:yce,H:rce,I:ace,j:ice,L:d6,m:sce,M:lce,p:H,q,Q:oN,s:sN,S:cce,u:uce,U:dce,V:mce,w:pce,W:fce,x:null,X:null,y:hce,Y:vce,Z:xce,"%":iN},w={a:$,A:X,b:pe,B:te,c:null,d:aN,e:aN,f:Sce,g:Ice,G:$ce,H:bce,I:wce,j:kce,L:p6,m:jce,M:Pce,p:de,q:Q,Q:oN,s:sN,S:Ace,u:_ce,U:Nce,V:Cce,w:Ece,W:Tce,x:null,X:null,y:Oce,Y:Mce,Z:Fce,"%":iN},k={a:N,A:C,b:E,B:T,c:O,d:tN,e:tN,f:Jle,g:eN,G:J_,H:nN,I:nN,j:Qle,L:Xle,m:Gle,M:Yle,p:_,q:Kle,Q:tce,s:nce,S:Zle,u:qle,U:Ule,V:Wle,w:Ble,W:Vle,x:F,X:D,y:eN,Y:J_,Z:Hle,"%":ece};b.x=j(n,b),b.X=j(r,b),b.c=j(t,b),w.x=j(n,w),w.X=j(r,w),w.c=j(t,w);function j(K,ee){return function(ce){var W=[],we=-1,ve=0,Ce=K.length,Te,Ye,ht;for(ce instanceof Date||(ce=new Date(+ce));++we<Ce;)K.charCodeAt(we)===37&&(W.push(K.slice(ve,we)),(Ye=X_[Te=K.charAt(++we)])!=null?Te=K.charAt(++we):Ye=Te==="e"?" ":"0",(ht=ee[Te])&&(Te=ht(ce,Ye)),W.push(Te),ve=we+1);return W.push(K.slice(ve,we)),W.join("")}}function A(K,ee){return function(ce){var W=Wu(1900,void 0,1),we=P(W,K,ce+="",0),ve,Ce;if(we!=ce.length)return null;if("Q"in W)return new Date(W.Q);if("s"in W)return new Date(W.s*1e3+("L"in W?W.L:0));if(ee&&!("Z"in W)&&(W.Z=0),"p"in W&&(W.H=W.H%12+W.p*12),W.m===void 0&&(W.m="q"in W?W.q:0),"V"in W){if(W.V<1||W.V>53)return null;"w"in W||(W.w=1),"Z"in W?(ve=gb(Wu(W.y,0,1)),Ce=ve.getUTCDay(),ve=Ce>4||Ce===0?jg.ceil(ve):jg(ve),ve=Ny.offset(ve,(W.V-1)*7),W.y=ve.getUTCFullYear(),W.m=ve.getUTCMonth(),W.d=ve.getUTCDate()+(W.w+6)%7):(ve=hb(Wu(W.y,0,1)),Ce=ve.getDay(),ve=Ce>4||Ce===0?Sg.ceil(ve):Sg(ve),ve=$p.offset(ve,(W.V-1)*7),W.y=ve.getFullYear(),W.m=ve.getMonth(),W.d=ve.getDate()+(W.w+6)%7)}else("W"in W||"U"in W)&&("w"in W||(W.w="u"in W?W.u%7:"W"in W?1:0),Ce="Z"in W?gb(Wu(W.y,0,1)).getUTCDay():hb(Wu(W.y,0,1)).getDay(),W.m=0,W.d="W"in W?(W.w+6)%7+W.W*7-(Ce+5)%7:W.w+W.U*7-(Ce+6)%7);return"Z"in W?(W.H+=W.Z/100|0,W.M+=W.Z%100,gb(W)):hb(W)}}function P(K,ee,ce,W){for(var we=0,ve=ee.length,Ce=ce.length,Te,Ye;we<ve;){if(W>=Ce)return-1;if(Te=ee.charCodeAt(we++),Te===37){if(Te=ee.charAt(we++),Ye=k[Te in X_?ee.charAt(we++):Te],!Ye||(W=Ye(K,ce,W))<0)return-1}else if(Te!=ce.charCodeAt(W++))return-1}return W}function _(K,ee,ce){var W=u.exec(ee.slice(ce));return W?(K.p=d.get(W[0].toLowerCase()),ce+W[0].length):-1}function N(K,ee,ce){var W=f.exec(ee.slice(ce));return W?(K.w=g.get(W[0].toLowerCase()),ce+W[0].length):-1}function C(K,ee,ce){var W=m.exec(ee.slice(ce));return W?(K.w=p.get(W[0].toLowerCase()),ce+W[0].length):-1}function E(K,ee,ce){var W=y.exec(ee.slice(ce));
vendor: 5,797 bytes, line 478
478return W?(K.m=x.get(W[0].toLowerCase()),ce+W[0].length):-1}function T(K,ee,ce){var W=h.exec(ee.slice(ce));return W?(K.m=v.get(W[0].toLowerCase()),ce+W[0].length):-1}function O(K,ee,ce){return P(K,t,ee,ce)}function F(K,ee,ce){return P(K,n,ee,ce)}function D(K,ee,ce){return P(K,r,ee,ce)}function z(K){return o[K.getDay()]}function R(K){return i[K.getDay()]}function B(K){return c[K.getMonth()]}function I(K){return l[K.getMonth()]}function H(K){return a[+(K.getHours()>=12)]}function q(K){return 1+~~(K.getMonth()/3)}function $(K){return o[K.getUTCDay()]}function X(K){return i[K.getUTCDay()]}function pe(K){return c[K.getUTCMonth()]}function te(K){return l[K.getUTCMonth()]}function de(K){return a[+(K.getUTCHours()>=12)]}function Q(K){return 1+~~(K.getUTCMonth()/3)}return{format:function(K){var ee=j(K+="",b);return ee.toString=function(){return K},ee},parse:function(K){var ee=A(K+="",!1);return ee.toString=function(){return K},ee},utcFormat:function(K){var ee=j(K+="",w);return ee.toString=function(){return K},ee},utcParse:function(K){var ee=A(K+="",!0);return ee.toString=function(){return K},ee}}}var X_={"-":"",_:" ",0:"0"},on=/^\s*\d+/,Dle=/^%/,Lle=/[\\^$*+?|[\]().{}]/g;function Ze(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function zle(e){return e.replace(Lle,"\\$&")}function Vu(e){return new RegExp("^(?:"+e.map(zle).join("|")+")","i")}function Hu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Ble(e,t,n){var r=on.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function qle(e,t,n){var r=on.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Ule(e,t,n){var r=on.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Wle(e,t,n){var r=on.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Vle(e,t,n){var r=on.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function J_(e,t,n){var r=on.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function eN(e,t,n){var r=on.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Hle(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Kle(e,t,n){var r=on.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Gle(e,t,n){var r=on.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function tN(e,t,n){var r=on.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Qle(e,t,n){var r=on.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function nN(e,t,n){var r=on.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Yle(e,t,n){var r=on.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Zle(e,t,n){var r=on.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Xle(e,t,n){var r=on.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Jle(e,t,n){var r=on.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ece(e,t,n){var r=Dle.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function tce(e,t,n){var r=on.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function nce(e,t,n){var r=on.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function rN(e,t){return Ze(e.getDate(),t,2)}function rce(e,t){return Ze(e.getHours(),t,2)}function ace(e,t){return Ze(e.getHours()%12||12,t,2)}function ice(e,t){return Ze(1+$p.count(zi(e),e),t,3)}function d6(e,t){return Ze(e.getMilliseconds(),t,3)}function oce(e,t){return d6(e,t)+"000"}function sce(e,t){return Ze(e.getMonth()+1,t,2)}function lce(e,t){return Ze(e.getMinutes(),t,2)}function cce(e,t){return Ze(e.getSeconds(),t,2)}function uce(e){var t=e.getDay();return t===0?7:t}function dce(e,t){return Ze(Cy.count(zi(e)-1,e),t,2)}function m6(e){var t=e.getDay();return t>=4||t===0?jc(e):jc.ceil(e)}function mce(e,t){return e=m6(e),Ze(jc.count(zi(e),e)+(zi(e).getDay()===4),t,2)}function pce(e){return e.getDay()}function fce(e,t){return Ze(Sg.count(zi(e)-1,e),t,2)}function hce(e,t){return Ze(e.getFullYear()%100,t,2)}function gce(e,t){return e=m6(e),Ze(e.getFullYear()%100,t,2)}function vce(e,t){return Ze(e.getFullYear()%1e4,t,4)}function yce(e,t){var n=e.getDay();return e=n>=4||n===0?jc(e):jc.ceil(e),Ze(e.getFullYear()%1e4,t,4)}function xce(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ze(t/60|0,"0",2)+Ze(t%60,"0",2)}function aN(e,t){return Ze(e.getUTCDate(),t,2)}function bce(e,t){return Ze(e.getUTCHours(),t,2)}function wce(e,t){return Ze(e.getUTCHours()%12||12,t,2)}function kce(e,t){return Ze(1+Ny.count(Bi(e),e),t,3)}function p6(e,t){return Ze(e.getUTCMilliseconds(),t,3)}function Sce(e,t){return p6(e,t)+"000"}function jce(e,t){return Ze(e.getUTCMonth()+1,t,2)}function Pce(e,t){return Ze(e.getUTCMinutes(),t,2)}function Ace(e,t){return Ze(e.getUTCSeconds(),t,2)}function _ce(e){var t=e.getUTCDay();return t===0?7:t}function Nce(e,t){return Ze(Ey.count(Bi(e)-1,e),t,2)}function f6(e){var t=e.getUTCDay();return t>=4||t===0?Pc(e):Pc.ceil(e)}function Cce(e,t){return e=f6(e),Ze(Pc.count(Bi(e),e)+(Bi(e).getUTCDay()===4),t,2)}function Ece(e){return e.getUTCDay()}function Tce(e,t){return Ze(jg.count(Bi(e)-1,e),t,2)}function Oce(e,t){return Ze(e.getUTCFullYear()%100,t,2)}function Ice(e,t){return e=f6(e),Ze(e.getUTCFullYear()%100,t,2)}function Mce(e,t){return Ze(e.getUTCFullYear()%1e4,t,4)}function $ce(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Pc(e):Pc.ceil(e),Ze(e.getUTCFullYear()%1e4,t,4)}function Fce(){return"+0000"}function iN(){return"%"}function oN(e){return+e}function sN(e){return Math.floor(+e/1e3)}var hl,h6,g6;Rce({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
478ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Rce(e){return hl=Rle(e),h6=hl.format,hl.parse,g6=hl.utcFormat,hl.utcParse,hl}function Dce(e){return new Date(e)}function Lce(e){return e instanceof Date?+e:+new Date(+e)}function VS(e,t,n,r,a,i,o,l,c,u){var d=TS(),m=d.invert,p=d.domain,f=u(".%L"),g=u(":%S"),h=u("%I:%M"),v=u("%I %p"),y=u("%a %d"),x=u("%b %d"),b=u("%B"),w=u("%Y");function k(j){return(c(j)<j?f:l(j)<j?g:o(j)<j?h:i(j)<j?v:r(j)<j?a(j)<j?y:x:n(j)<j?b:w)(j)}return d.invert=function(j){return new Date(m(j))},d.domain=function(j){return arguments.length?p(Array.from(j,Lce)):p().map(Dce)},d.ticks=function(j){var A=p();return e(A[0],A[A.length-1],j??10)},d.tickFormat=function(j,A){return A==null?k:u(A)},d.nice=function(j){var A=p();return(!j||typeof j.range!="function")&&(j=t(A[0],A[A.length-1],j??10)),j?p(n6(A,j)):d},d.copy=function(){return Mp(d,VS(e,t,n,r,a,i,o,l,c,u))},d}function zce(){return Qr.apply(VS($le,Fle,zi,US,Cy,$p,BS,LS,Ss,h6).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Bce(){return Qr.apply(VS(Ile,Mle,Bi,WS,Ey,Ny,qS,zS,Ss,g6).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ty(){var e=0,t=1,n,r,a,i,o=Bn,l=!1,c;function u(m){return m==null||isNaN(m=+m)?c:o(a===0?.5:(m=(i(m)-n)*a,l?Math.max(0,Math.min(1,m)):m))}u.domain=function(m){return arguments.length?([e,t]=m,n=i(e=+e),r=i(t=+t),a=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(m){return arguments.length?(l=!!m,u):l},u.interpolator=function(m){return arguments.length?(o=m,u):o};function d(m){return function(p){var f,g;return arguments.length?([f,g]=p,o=m(f,g),u):[o(0),o(1)]}}return u.range=d(gu),u.rangeRound=d(ES),u.unknown=function(m){return arguments.length?(c=m,u):c},function(m){return i=m,n=m(e),r=m(t),a=n===r?0:1/(r-n),u}}function es(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function v6(){var e=Jo(Ty()(Bn));return e.copy=function(){return es(e,v6())},Ki.apply(e,arguments)}function y6(){var e=MS(Ty()).domain([1,10]);return e.copy=function(){return es(e,y6()).base(e.base())},Ki.apply(e,arguments)}function x6(){var e=$S(Ty());return e.copy=function(){return es(e,x6()).constant(e.constant())},Ki.apply(e,arguments)}function HS(){var e=FS(Ty());return e.copy=function(){return es(e,HS()).exponent(e.exponent())},Ki.apply(e,arguments)}function qce(){return HS.apply(null,arguments).exponent(.5)}function b6(){var e=[],t=Bn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Op(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let a of r)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(Mo),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,a)=>t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,i)=>Nse(e,i/r))},n.copy=function(){return b6(t).domain(e)},Ki.apply(n,arguments)}function Oy(){var e=0,t=.5,n=1,r=1,a,i,o,l,c,u=Bn,d,m=!1,p;function f(h){return isNaN(h=+h)?p:(h=.5+((h=+d(h))-i)*(r*h<r*i?l:c),u(m?Math.max(0,Math.min(1,h)):h))}f.domain=function(h){return arguments.length?([e,t,n]=h,a=d(e=+e),i=d(t=+t),o=d(n=+n),l=a===i?0:.5/(i-a),c=i===o?0:.5/(o-i),r=i<a?-1:1,f):[e,t,n]},f.clamp=function(h){return arguments.length?(m=!!h,f):m},f.interpolator=function(h){return arguments.length?(u=h,f):u};function g(h){return function(v){var y,x,b;return arguments.length?([y,x,b]=v,u=ele(h,[y,x,b]),f):[u(0),u(.5),u(1)]}}return f.range=g(gu),f.rangeRound=g(ES),f.unknown=function(h){return arguments.length?(p=h,f):p},function(h){return d=h,a=h(e),i=h(t),o=h(n),l=a===i?0:.5/(i-a),c=i===o?0:.5/(o-i),r=i<a?-1:1,f}}function w6(){var e=Jo(Oy()(Bn));return e.copy=function(){return es(e,w6())},Ki.apply(e,arguments)}function k6(){var e=MS(Oy()).domain([.1,1,10]);return e.copy=function(){return es(e,k6()).base(e.base())},Ki.apply(e,arguments)}function S6(){var e=$S(Oy());return e.copy=function(){return es(e,S6()).constant(e.constant())},Ki.apply(e,arguments)}function KS(){var e=FS(Oy());return e.copy=function(){return es(e,KS()).exponent(e.exponent())},Ki.apply(e,arguments)}function Uce(){return KS.apply(null,arguments).exponent(.5)}const lN=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:jm,scaleDiverging:w6,scaleDivergingLog:k6,scaleDivergingPow:KS,scaleDivergingSqrt:Uce,scaleDivergingSymlog:S6,scaleIdentity:t6,scaleImplicit:o1,scaleLinear:wg,scaleLog:r6,scaleOrdinal:_S,scalePoint:Nd,scalePow:RS,scaleQuantile:o6,scaleQuantize:s6,scaleRadial:i6,scaleSequential:v6,scaleSequentialLog:y6,scaleSequentialPow:HS,scaleSequentialQuantile:b6,scaleSequentialSqrt:qce,scaleSequentialSymlog:x6,scaleSqrt:Sle,scaleSymlog:a6,scaleThreshold:l6,scaleTime:zce,scaleUtc:Bce,tickFormat:e6},Symbol.toStringTag,{value:"Module"}));var Wce=ou;function Vce(e,t,n){for(var r=-1,a=e.length;++r<a;){var i=e[r],o=t(i);if(o!=null&&(l===void 0?o===o&&!Wce(o):n(o,l)))var l=o,c=i}return c}var j6=Vce;function Hce(e,t){return e>t}var Kce=Hce,Gce=j6,Qce=Kce,Yce=fu;function Zce(e){return e&&e.length?Gce(e,Yce,Qce):void 0}var Xce=Zce;const ko=Qe(Xce);
vendor: 61,135 bytes, lines 478-504
478function Jce(e,t){return e<t}var eue=Jce,tue=j6,nue=eue,rue=fu;function aue(e){return e&&e.length?tue(e,rue,nue):void 0}var iue=aue;const Iy=Qe(iue);var oue=lS,sue=Xo,lue=I3,cue=ar;function uue(e,t){var n=cue(e)?oue:lue;return n(e,sue(t))}var due=uue,mue=T3,pue=due;function fue(e,t){return mue(pue(e,t),1)}var hue=fue;const gue=Qe(hue);var vue=kS;function yue(e,t){return vue(e,t)}var xue=yue;const Ks=Qe(xue);var vu=1e9,bue={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},QS,St=!0,Hr="[DecimalError] ",$s=Hr+"Invalid argument: ",GS=Hr+"Exponent out of range: ",yu=Math.floor,fs=Math.pow,wue=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,yr,tn=1e7,xt=7,P6=9007199254740991,Pg=yu(P6/xt),ge={};ge.absoluteValue=ge.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ge.comparedTo=ge.cmp=function(e){var t,n,r,a,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(r=i.d.length,a=e.d.length,t=0,n=r<a?r:a;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===a?0:r>a^i.s<0?1:-1};ge.decimalPlaces=ge.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*xt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};ge.dividedBy=ge.div=function(e){return Ei(this,new this.constructor(e))};ge.dividedToIntegerBy=ge.idiv=function(e){var t=this,n=t.constructor;return lt(Ei(t,new n(e),0,1),n.precision)};ge.equals=ge.eq=function(e){return!this.cmp(e)};ge.exponent=function(){return Vt(this)};ge.greaterThan=ge.gt=function(e){return this.cmp(e)>0};ge.greaterThanOrEqualTo=ge.gte=function(e){return this.cmp(e)>=0};ge.isInteger=ge.isint=function(){return this.e>this.d.length-2};ge.isNegative=ge.isneg=function(){return this.s<0};ge.isPositive=ge.ispos=function(){return this.s>0};ge.isZero=function(){return this.s===0};ge.lessThan=ge.lt=function(e){return this.cmp(e)<0};ge.lessThanOrEqualTo=ge.lte=function(e){return this.cmp(e)<1};ge.logarithm=ge.log=function(e){var t,n=this,r=n.constructor,a=r.precision,i=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(yr))throw Error(Hr+"NaN");if(n.s<1)throw Error(Hr+(n.s?"NaN":"-Infinity"));return n.eq(yr)?new r(0):(St=!1,t=Ei(Cm(n,i),Cm(e,i),i),St=!0,lt(t,a))};ge.minus=ge.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?N6(t,e):A6(t,(e.s=-e.s,e))};ge.modulo=ge.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(Hr+"NaN");return n.s?(St=!1,t=Ei(n,e,0,1).times(e),St=!0,n.minus(t)):lt(new r(n),a)};ge.naturalExponential=ge.exp=function(){return _6(this)};ge.naturalLogarithm=ge.ln=function(){return Cm(this)};ge.negated=ge.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ge.plus=ge.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?A6(t,e):N6(t,(e.s=-e.s,e))};ge.precision=ge.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error($s+e);if(t=Vt(a)+1,r=a.d.length-1,n=r*xt+1,r=a.d[r],r){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};ge.squareRoot=ge.sqrt=function(){var e,t,n,r,a,i,o,l=this,c=l.constructor;if(l.s<1){if(!l.s)return new c(0);throw Error(Hr+"NaN")}for(e=Vt(l),St=!1,a=Math.sqrt(+l),a==0||a==1/0?(t=Ba(l.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=yu((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new c(t)):r=new c(a.toString()),n=c.precision,a=o=n+3;;)if(i=r,r=i.plus(Ei(l,i,o+2)).times(.5),Ba(i.d).slice(0,o)===(t=Ba(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(lt(i,n+1,0),i.times(i).eq(l)){r=i;break}}else if(t!="9999")break;o+=4}return St=!0,lt(r,n)};ge.times=ge.mul=function(e){var t,n,r,a,i,o,l,c,u,d=this,m=d.constructor,p=d.d,f=(e=new m(e)).d;if(!d.s||!e.s)return new m(0);for(e.s*=d.s,n=d.e+e.e,c=p.length,u=f.length,c<u&&(i=p,p=f,f=i,o=c,c=u,u=o),i=[],o=c+u,r=o;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,a=c+r;a>r;)l=i[a]+f[r]*p[a-r-1]+t,i[a--]=l%tn|0,t=l/tn|0;i[a]=(i[a]+t)%tn|0}for(;!i[--o];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,St?lt(e,m.precision):e};ge.toDecimalPlaces=ge.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Xa(e,0,vu),t===void 0?t=r.rounding:Xa(t,0,8),lt(n,e+Vt(n)+1,t))};ge.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=Gs(r,!0):(Xa(e,0,vu),t===void 0?t=a.rounding:Xa(t,0,8),r=lt(new a(r),e+1,t),n=Gs(r,!0,e+1)),n};ge.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?Gs(a):(Xa(e,0,vu),t===void 0?t=i.rounding:Xa(t,0,8),r=lt(new i(a),e+Vt(a)+1,t),n=Gs(r.abs(),!1,e+Vt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};ge.toInteger=ge.toint=function(){var e=this,t=e.constructor;return lt(new t(e),Vt(e)+1,t.rounding)};ge.toNumber=function(){return+this};ge.toPower=ge.pow=function(e){var t,n,r,a,i,o,l=this,c=l.constructor,u=12,d=+(e=new c(e));if(!e.s)return new c(yr);if(l=new c(l),!l.s){if(e.s<1)throw Error(Hr+"Infinity");return l}if(l.eq(yr))return l;if(r=c.precision,e.eq(yr))return lt(l,r);if(t=e.e,n=e.d.length-1,o=t>=n,i=l.s,o){if((n=d<0?-d:d)<=P6){for(a=new c(yr),t=Math.ceil(r/xt+4),St=!1;n%2&&(a=a.times(l),uN(a.d,t)),n=yu(n/2),n!==0;)l=l.times(l),uN(l.d,t);return St=!0,e.s<0?new c(yr).div(a):lt(a,r)}}else if(i<0)throw Error(Hr+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,St=!1,a=e.times(Cm(l,r+u)),St=!0,a=_6(a),a.s=i,a};ge.toPrecision=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?(n=Vt(a),r=Gs(a,n<=i.toExpNeg||n>=i.toExpPos)):(Xa(e,1,vu),t===void 0?t=i.rounding:Xa(t,0,8),a=lt(new i(a),e,t),n=Vt(a),r=Gs(a,e<=n||n<=i.toExpNeg,e)),r};ge.toSignificantDigits=ge.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Xa(e,1,vu),t===void 0?t=r.rounding:Xa(t,0,8)),lt(new r(n),e,t)};ge.toString=ge.valueOf=ge.val=ge.toJSON=ge[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Vt(e),n=e.constructor;return Gs(e,t<=n.toExpNeg||t>=n.toExpPos)};function A6(e,t){var n,r,a,i,o,l,c,u,d=e.constructor,m=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),St?lt(t,m):t;if(c=e.d,u=t.d,o=e.e,a=t.e,c=c.slice(),i=o-a,i){for(i<0?(r=c,i=-i,l=u.length):(r=u,a=o,l=c.length),o=Math.ceil(m/xt),l=o>l?o+1:l+1,i>l&&(i=l,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(l=c.length,i=u.length,l-i<0&&(i=l,r=u,u=c,c=r),n=0;i;)n=(c[--i]=c[i]+u[i]+n)/tn|0,c[i]%=tn;for(n&&(c.unshift(n),++a),l=c.length;c[--l]==0;)c.pop();return t.d=c,t.e=a,St?lt(t,m):t}function Xa(e,t,n){if(e!==~~e||e<t||e>n)throw Error($s+e)}function Ba(e){var t,n,r,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;t<a;t++)r=e[t]+"",n=xt-r.length,n&&(i+=io(n)),i+=r;o=e[t],r=o+"",n=xt-r.length,n&&(i+=io(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return i+o}var Ei=function(){function e(r,a){var i,o=0,l=r.length;for(r=r.slice();l--;)i=r[l]*a+o,r[l]=i%tn|0,o=i/tn|0;return o&&r.unshift(o),r}function t(r,a,i,o){var l,c;if(i!=o)c=i>o?1:-1;else for(l=c=0;l<i;l++)if(r[l]!=a[l]){c=r[l]>a[l]?1:-1;break}return c}function n(r,a,i){for(var o=0;i--;)r[i]-=o,o=r[i]<a[i]?1:0,r[i]=o*tn+r[i]-a[i];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,i,o){var l,c,u,d,m,p,f,g,h,v,y,x,b,w,k,j,A,P,_=r.constructor,N=r.s==a.s?1:-1,C=r.d,E=a.d;if(!r.s)return new _(r);if(!a.s)throw Error(Hr+"Division by zero");for(c=r.e-a.e,A=E.length,k=C.length,f=new _(N),g=f.d=[],u=0;E[u]==(C[u]||0);)++u;if(E[u]>(C[u]||0)&&--c,i==null?x=i=_.precision:o?x=i+(Vt(r)-Vt(a))+1:x=i,x<0)return new _(0);if(x=x/xt+2|0,u=0,A==1)for(d=0,E=E[0],x++;(u<k||d)&&x--;u++)b=d*tn+(C[u]||0),g[u]=b/E|0,d=b%E|0;else{for(d=tn/(E[0]+1)|0,d>1&&(E=e(E,d),C=e(C,d),A=E.length,k=C.length),w=A,h=C.slice(0,A),v=h.length;v<A;)h[v++]=0;P=E.slice(),P.unshift(0),j=E[0],E[1]>=tn/2&&++j;do d=0,l=t(E,h,A,v),l<0?(y=h[0],A!=v&&(y=y*tn+(h[1]||0)),d=y/j|0,d>1?(d>=tn&&(d=tn-1),m=e(E,d),p=m.length,v=h.length,l=t(m,h,p,v),l==1&&(d--,n(m,A<p?P:E,p))):(d==0&&(l=d=1),m=E.slice()),p=m.length,p<v&&m.unshift(0),n(h,m,v),l==-1&&(v=h.length,l=t(E,h,A,v),l<1&&(d++,n(h,A<v?P:E,v))),v=h.length):l===0&&(d++,h=[0]),g[u++]=d,l&&h[0]?h[v++]=C[w]||0:(h=[C[w]],v=1);while((w++<k||h[0]!==void 0)&&x--)}return g[0]||g.shift(),f.e=c,lt(f,o?i+Vt(f)+1:i)}}();function _6(e,t){var n,r,a,i,o,l,c=0,u=0,d=e.constructor,m=d.precision;if(Vt(e)>16)throw Error(GS+Vt(e));if(!e.s)return new d(yr);for(t==null?(St=!1,l=m):l=t,o=new d(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(r=Math.log(fs(2,u))/Math.LN10*2+5|0,l+=r,n=a=i=new d(yr),d.precision=l;;){if(a=lt(a.times(e),l),n=n.times(++c),o=i.plus(Ei(a,n,l)),Ba(o.d).slice(0,l)===Ba(i.d).slice(0,l)){for(;u--;)i=lt(i.times(i),l);return d.precision=m,t==null?(St=!0,lt(i,m)):i}i=o}}function Vt(e){for(var t=e.e*xt,n=e.d[0];n>=10;n/=10)t++;return t}function vb(e,t,n){if(t>e.LN10.sd())throw St=!0,n&&(e.precision=n),Error(Hr+"LN10 precision limit exceeded");return lt(new e(e.LN10),t)}function io(e){for(var t="";e--;)t+="0";return t}function Cm(e,t){var n,r,a,i,o,l,c,u,d,m=1,p=10,f=e,g=f.d,h=f.constructor,v=h.precision;if(f.s<1)throw Error(Hr+(f.s?"NaN":"-Infinity"));if(f.eq(yr))return new h(0);if(t==null?(St=!1,u=v):u=t,f.eq(10))return t==null&&(St=!0),vb(h,u);if(u+=p,h.precision=u,n=Ba(g),r=n.charAt(0),i=Vt(f),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)f=f.times(e),n=Ba(f.d),r=n.charAt(0),m++;i=Vt(f),r>1?(f=new h("0."+n),i++):f=new h(r+"."+n.slice(1))}else return c=vb(h,u+2,v).times(i+""),f=Cm(new h(r+"."+n.slice(1)),u-p).plus(c),h.precision=v,t==null?(St=!0,lt(f,v)):f;for(l=o=f=Ei(f.minus(yr),f.plus(yr),u),d=lt(f.times(f),u),a=3;;){if(o=lt(o.times(d),u),c=l.plus(Ei(o,new h(a),u)),Ba(c.d).slice(0,u)===Ba(l.d).slice(0,u))return l=l.times(2),i!==0&&(l=l.plus(vb(h,u+2,v).times(i+""))),l=Ei(l,new h(m),u),h.precision=v,t==null?(St=!0,lt(l,v)):l;l=c,a+=2}}function cN(e,t){var n,r,a;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=yu(n/xt),e.d=[],r=(n+1)%xt,n<0&&(r+=xt),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=xt;r<a;)e.d.push(+t.slice(r,r+=xt));t=t.slice(r),r=xt-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),St&&(e.e>Pg||e.e<-Pg))throw Error(GS+n)}else e.s=0,e.e=0,e.d=[0];return e}function lt(e,t,n){var r,a,i,o,l,c,u,d,m=e.d;for(o=1,i=m[0];i>=10;i/=10)o++;if(r=t-o,r<0)r+=xt,a=t,u=m[d=0];else{if(d=Math.ceil((r+1)/xt),i=m.length,d>=i)return e;for(u=i=m[d],o=1;i>=10;i/=10)o++;r%=xt,a=r-xt+o}if(n!==void 0&&(i=fs(10,o-a-1),l=u/i%10|0,c=t<0||m[d+1]!==void 0||u%i,c=n<4?(l||c)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||c||n==6&&(r>0?a>0?u/fs(10,o-a):0:m[d-1])%10&1||n==(e.s<0?8:7))),t<1||!m[0])return c?(i=Vt(e),m.length=1,t=t-i-1,m[0]=fs(10,(xt-t%xt)%xt),e.e=yu(-t/xt)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(r==0?(m.length=d,i=1,d--):(m.length=d+1,i=fs(10,xt-r),m[d]=a>0?(u/fs(10,o-a)%fs(10,a)|0)*i:0),c)for(;;)if(d==0){(m[0]+=i)==tn&&(m[0]=1,++e.e);break}else{if(m[d]+=i,m[d]!=tn)break;m[d--]=0,i=1}for(r=m.length;m[--r]===0;)m.pop();if(St&&(e.e>Pg||e.e<-Pg))throw Error(GS+Vt(e));return e}function N6(e,t){var n,r,a,i,o,l,c,u,d,m,p=e.constructor,f=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),St?lt(t,f):t;if(c=e.d,m=t.d,r=t.e,u=e.e,c=c.slice(),o=u-r,o){for(d=o<0,d?(n=c,o=-o,l=m.length):(n=m,r=u,l=c.length),a=Math.max(Math.ceil(f/xt),l)+2,o>a&&(o=a,n.length=1),n.reverse(),a=o;a--;)n.push(0);n.reverse()}else{for(a=c.length,l=m.length,d=a<l,d&&(l=a),a=0;a<l;a++)if(c[a]!=m[a]){d=c[a]<m[a];break}o=0}for(d&&(n=c,c=m,m=n,t.s=-t.s),l=c.length,a=m.length-l;a>0;--a)c[l++]=0;for(a=m.length;a>o;){if(c[--a]<m[a]){for(i=a;i&&c[--i]===0;)c[i]=tn-1;--c[i],c[a]+=tn}c[a]-=m[a]}for(;c[--l]===0;)c.pop();for(;c[0]===0;c.shift())--r;return c[0]?(t.d=c,t.e=r,St?lt(t,f):t):new p(0)}function Gs(e,t,n){var r,a=Vt(e),i=Ba(e.d),o=i.length;return t?(n&&(r=n-o)>0?i=i.charAt(0)+"."+i.slice(1)+io(r):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+io(-a-1)+i,n&&(r=n-o)>0&&(i+=io(r))):a>=o?(i+=io(a+1-o),n&&(r=n-a-1)>0&&(i=i+"."+io(r))):((r=a+1)<o&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-o)>0&&(a+1===o&&(i+="."),i+=io(r))),e.s<0?"-"+i:i}function uN(e,t){if(e.length>t)return e.length=t,!0}function C6(e){var t,n,r;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error($s+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return cN(o,i.toString())}else if(typeof i!="string")throw Error($s+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,wue.test(i))cN(o,i);else throw Error($s+i)}if(a.prototype=ge,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=C6,a.config=a.set=kue,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return a.config(e),a}function kue(e){if(!e||typeof e!="object")throw Error(Hr+"Object expected");var t,n,r,a=["precision",1,vu,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((r=e[n=a[t]])!==void 0)if(yu(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error($s+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error($s+n+": "+r);return this}var QS=C6(bue);yr=new QS(1);const rt=QS;function Sue(e){return _ue(e)||Aue(e)||Pue(e)||jue()}function jue(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 479In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pue(e,t){if(e){if(typeof e=="string")return u1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u1(e,t)}}function Aue(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function _ue(e){if(Array.isArray(e))return u1(e)}function u1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Nue=function(t){return t},E6={"@@functional/placeholder":!0},T6=function(t){return t===E6},dN=function(t){return function n(){return arguments.length===0||arguments.length===1&&T6(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},Cue=function e(t,n){return t===1?n:dN(function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var o=a.filter(function(l){return l!==E6}).length;return o>=t?n.apply(void 0,a):e(t-o,dN(function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=a.map(function(m){return T6(m)?c.shift():m});return n.apply(void 0,Sue(d).concat(c))}))})},My=function(t){return Cue(t.length,t)},d1=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},Eue=My(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),Tue=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Nue;var a=n.reverse(),i=a[0],o=a.slice(1);return function(){return o.reduce(function(l,c){return c(l)},i.apply(void 0,arguments))}},m1=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},O6=function(t){var n=null,r=null;return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n&&i.every(function(l,c){return l===n[c]})||(n=i,r=t.apply(void 0,i)),r}};function Oue(e){var t;return e===0?t=1:t=Math.floor(new rt(e).abs().log(10).toNumber())+1,t}function Iue(e,t,n){for(var r=new rt(e),a=0,i=[];r.lt(t)&&a<1e5;)i.push(r.toNumber()),r=r.add(n),a++;return i}var Mue=My(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),$ue=My(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),Fue=My(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const $y={rangeStep:Iue,getDigitCount:Oue,interpolateNumber:Mue,uninterpolateNumber:$ue,uninterpolateTruncation:Fue};function p1(e){return Lue(e)||Due(e)||I6(e)||Rue()}function Rue(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 480In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Due(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Lue(e){if(Array.isArray(e))return f1(e)}function Em(e,t){return que(e)||Bue(e,t)||I6(e,t)||zue()}function zue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 481In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I6(e,t){if(e){if(typeof e=="string")return f1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f1(e,t)}}function f1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bue(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,i=void 0;try{for(var o=e[Symbol.iterator](),l;!(r=(l=o.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(c){a=!0,i=c}finally{try{!r&&o.return!=null&&o.return()}finally{if(a)throw i}}return n}}function que(e){if(Array.isArray(e))return e}function M6(e){var t=Em(e,2),n=t[0],r=t[1],a=n,i=r;return n>r&&(a=r,i=n),[a,i]}function $6(e,t,n){if(e.lte(0))return new rt(0);var r=$y.getDigitCount(e.toNumber()),a=new rt(10).pow(r),i=e.div(a),o=r!==1?.05:.1,l=new rt(Math.ceil(i.div(o).toNumber())).add(n).mul(o),c=l.mul(a);return t?c:new rt(Math.ceil(c))}function Uue(e,t,n){var r=1,a=new rt(e);if(!a.isint()&&n){var i=Math.abs(e);i<1?(r=new rt(10).pow($y.getDigitCount(e)-1),a=new rt(Math.floor(a.div(r).toNumber())).mul(r)):i>1&&(a=new rt(Math.floor(e)))}else e===0?a=new rt(Math.floor((t-1)/2)):n||(a=new rt(Math.floor(e)));var o=Math.floor((t-1)/2),l=Tue(Eue(function(c){return a.add(new rt(c-o).mul(r)).toNumber()}),d1);return l(0,t)}function F6(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new rt(0),tickMin:new rt(0),tickMax:new rt(0)};var i=$6(new rt(t).sub(e).div(n-1),r,a),o;e<=0&&t>=0?o=new rt(0):(o=new rt(e).add(t).div(2),o=o.sub(new rt(o).mod(i)));var l=Math.ceil(o.sub(e).div(i).toNumber()),c=Math.ceil(new rt(t).sub(o).div(i).toNumber()),u=l+c+1;return u>n?F6(e,t,n,r,a+1):(u<n&&(c=t>0?c+(n-u):c,l=t>0?l:l+(n-u)),{step:i,tickMin:o.sub(new rt(l).mul(i)),tickMax:o.add(new rt(c).mul(i))})}function Wue(e){var t=Em(e,2),n=t[0],r=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(a,2),l=M6([n,r]),c=Em(l,2),u=c[0],d=c[1];if(u===-1/0||d===1/0){var m=d===1/0?[u].concat(p1(d1(0,a-1).map(function(){return 1/0}))):[].concat(p1(d1(0,a-1).map(function(){return-1/0})),[d]);return n>r?m1(m):m}if(u===d)return Uue(u,a,i);var p=F6(u,d,o,i),f=p.step,g=p.tickMin,h=p.tickMax,v=$y.rangeStep(g,h.add(new rt(.1).mul(f)),f);return n>r?m1(v):v}function Vue(e,t){var n=Em(e,2),r=n[0],a=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=M6([r,a]),l=Em(o,2),c=l[0],u=l[1];if(c===-1/0||u===1/0)return[r,a];if(c===u)return[c];var d=Math.max(t,2),m=$6(new rt(u).sub(c).div(d-1),i,0),p=[].concat(p1($y.rangeStep(new rt(c),new rt(u).sub(new rt(.99).mul(m)),m)),[u]);return r>a?m1(p):p}var Hue=O6(Wue),Kue=O6(Vue),Gue="Invariant failed";function Qs(e,t){throw new Error(Gue)}var Que=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Ac(e){"@babel/helpers - typeof";return Ac=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},Ac(e)}function Ag(){return Ag=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ag.apply(this,arguments)}function Yue(e,t){return ede(e)||Jue(e,t)||Xue(e,t)||Zue()}function Zue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 482In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xue(e,t){if(e){if(typeof e=="string")return mN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mN(e,t)}}function mN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function ede(e){if(Array.isArray(e))return e}function tde(e,t){if(e==null)return{};var n=nde(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nde(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function rde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ade(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,L6(r.key),r)}}function ide(e,t,n){return t&&ade(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ode(e,t,n){return t=_g(t),sde(e,R6()?Reflect.construct(t,n||[],_g(e).constructor):t.apply(e,n))}function sde(e,t){if(t&&(Ac(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lde(e)}function lde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R6=function(){return!!e})()}function _g(e){return _g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_g(e)}function cde(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h1(e,t)}function h1(e,t){return h1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},h1(e,t)}function D6(e,t,n){return t=L6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L6(e){var t=ude(e,"string");return Ac(t)=="symbol"?t:t+""}function ude(e,t){if(Ac(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xu=function(e){function t(){return rde(this,t),ode(this,t,arguments)}return cde(t,e),ide(t,[{key:"render",value:function(){var r=this.props,a=r.offset,i=r.layout,o=r.width,l=r.dataKey,c=r.data,u=r.dataPointFormatter,d=r.xAxis,m=r.yAxis,p=tde(r,Que),f=Me(p,!1);this.props.direction==="x"&&d.type!=="number"&&Qs();var g=c.map(function(h){var v=u(h,l),y=v.x,x=v.y,b=v.value,w=v.errorVal;if(!w)return null;var k=[],j,A;if(Array.isArray(w)){var P=Yue(w,2);j=P[0],A=P[1]}else j=A=w;if(i==="vertical"){var _=d.scale,N=x+a,C=N+o,E=N-o,T=_(b-j),O=_(b+A);k.push({x1:O,y1:C,x2:O,y2:E}),k.push({x1:T,y1:N,x2:O,y2:N}),k.push({x1:T,y1:C,x2:T,y2:E})}else if(i==="horizontal"){var F=m.scale,D=y+a,z=D-o,R=D+o,B=F(b-j),I=F(b+A);k.push({x1:z,y1:I,x2:R,y2:I}),k.push({x1:D,y1:B,x2:D,y2:I}),k.push({x1:z,y1:B,x2:R,y2:B})}return M.createElement(Xe,Ag({className:"recharts-errorBar",key:"bar-".concat(k.map(function(H){return"".concat(H.x1,"-").concat(H.x2,"-").concat(H.y1,"-").concat(H.y2)}))},f),k.map(function(H){return M.createElement("line",Ag({},H,{key:"line-".concat(H.x1,"-").concat(H.x2,"-").concat(H.y1,"-").concat(H.y2)}))}))});return M.createElement(Xe,{className:"recharts-errorBars"},g)}}])}(M.Component);D6(xu,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});D6(xu,"displayName","ErrorBar");function Tm(e){"@babel/helpers - typeof";return Tm=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},Tm(e)}function pN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function as(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pN(Object(n),!0).forEach(function(r){dde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dde(e,t,n){return t=mde(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mde(e){var t=pde(e,"string");return Tm(t)=="symbol"?t:t+""}function pde(e,t){if(Tm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Tm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var z6=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,o=hr(n,rr);if(!o)return null;var l=rr.defaultProps,c=l!==void 0?as(as({},l),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:i==="children"?u=(r||[]).reduce(function(d,m){var p=m.item,f=m.props,g=f.sectors||f.data||[];return d.concat(g.map(function(h){return{type:o.props.iconType||p.props.legendType,value:h.name,color:h.fill,payload:h}}))},[]):u=(r||[]).map(function(d){var m=d.item,p=m.type.defaultProps,f=p!==void 0?as(as({},p),m.props):{},g=f.dataKey,h=f.name,v=f.legendType,y=f.hide;return{inactive:y,dataKey:g,type:c.iconType||v||"square",color:YS(m),value:h||g,payload:f}}),as(as(as({},c),rr.getWithHeight(o,a)),{},{payload:u,item:o})};function Om(e){"@babel/helpers - typeof";return Om=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},Om(e)}function fN(e){return vde(e)||gde(e)||hde(e)||fde()}function fde(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 483In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hde(e,t){if(e){if(typeof e=="string")return g1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g1(e,t)}}function gde(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vde(e){if(Array.isArray(e))return g1(e)}function g1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ot(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hN(Object(n),!0).forEach(function(r){Xl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xl(e,t,n){return t=yde(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yde(e){var t=xde(e,"string");return Om(t)=="symbol"?t:t+""}function xde(e,t){if(Om(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Om(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xt(e,t,n){return $e(e)||$e(t)?n:Zt(t)?qr(e,t,n):Le(t)?t(e):n}function Cd(e,t,n,r){var a=gue(e,function(l){return Xt(l,t)});if(n==="number"){var i=a.filter(function(l){return se(l)||parseFloat(l)});return i.length?[Iy(i),ko(i)]:[1/0,-1/0]}var o=r?a.filter(function(l){return!$e(l)}):a;return o.map(function(l){return Zt(l)||l instanceof Date?l:""})}var bde=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,l=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(l<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,u=0;u<l;u++){var d=u>0?a[u-1].coordinate:a[l-1].coordinate,m=a[u].coordinate,p=u>=l-1?a[0].coordinate:a[u+1].coordinate,f=void 0;if(ma(m-d)!==ma(p-m)){var g=[];if(ma(p-m)===ma(c[1]-c[0])){f=p;var h=m+c[1]-c[0];g[0]=Math.min(h,(h+d)/2),g[1]=Math.max(h,(h+d)/2)}else{f=d;var v=p+c[1]-c[0];g[0]=Math.min(m,(v+m)/2),g[1]=Math.max(m,(v+m)/2)}var y=[Math.min(m,(f+m)/2),Math.max(m,(f+m)/2)];if(t>y[0]&&t<=y[1]||t>=g[0]&&t<=g[1]){o=a[u].index;break}}else{var x=Math.min(d,p),b=Math.max(d,p);if(t>(x+m)/2&&t<=(b+m)/2){o=a[u].index;break}}}else for(var w=0;w<l;w++)if(w===0&&t<=(r[w].coordinate+r[w+1].coordinate)/2||w>0&&w<l-1&&t>(r[w].coordinate+r[w-1].coordinate)/2&&t<=(r[w].coordinate+r[w+1].coordinate)/2||w===l-1&&t>(r[w].coordinate+r[w-1].coordinate)/2){o=r[w].index;break}return o},YS=function(t){var n,r=t,a=r.type.displayName,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ot(Ot({},t.type.defaultProps),t.props):t.props,o=i.stroke,l=i.fill,c;switch(a){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:l;break;default:c=l;break}return c},wde=function(t){var n=t.barSize,r=t.totalSize,a=t.stackGroups,i=a===void 0?{}:a;if(!i)return{};for(var o={},l=Object.keys(i),c=0,u=l.length;c<u;c++)for(var d=i[l[c]].stackGroups,m=Object.keys(d),p=0,f=m.length;p<f;p++){var g=d[m[p]],h=g.items,v=g.cateAxisId,y=h.filter(function(A){return Ni(A.type).indexOf("Bar")>=0});if(y&&y.length){var x=y[0].type.defaultProps,b=x!==void 0?Ot(Ot({},x),y[0].props):y[0].props,w=b.barSize,k=b[v];o[k]||(o[k]=[]);var j=$e(w)?n:w;o[k].push({item:y[0],stackList:y.slice(1),barSize:$e(j)?void 0:Hs(j,r,0)})}}return o},kde=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,i=t.sizeList,o=i===void 0?[]:i,l=t.maxBarSize,c=o.length;if(c<1)return null;var u=Hs(n,a,0,!0),d,m=[];if(o[0].barSize===+o[0].barSize){var p=!1,f=a/c,g=o.reduce(function(w,k){return w+k.barSize||0},0);g+=(c-1)*u,g>=a&&(g-=(c-1)*u,u=0),g>=a&&f>0&&(p=!0,f*=.9,g=c*f);var h=(a-g)/2>>0,v={offset:h-u,size:0};d=o.reduce(function(w,k){var j={item:k.item,position:{offset:v.offset+v.size+u,size:p?f:k.barSize}},A=[].concat(fN(w),[j]);return v=A[A.length-1].position,k.stackList&&k.stackList.length&&k.stackList.forEach(function(P){A.push({item:P,position:v})}),A},m)}else{var y=Hs(r,a,0,!0);a-2*y-(c-1)*u<=0&&(u=0);var x=(a-2*y-(c-1)*u)/c;x>1&&(x>>=0);var b=l===+l?Math.min(x,l):x;d=o.reduce(function(w,k,j){var A=[].concat(fN(w),[{item:k.item,position:{offset:y+(x+u)*j+(x-b)/2,size:b}}]);return k.stackList&&k.stackList.length&&k.stackList.forEach(function(P){A.push({item:P,position:A[A.length-1].position})}),A},m)}return d},Sde=function(t,n,r,a){var i=r.children,o=r.width,l=r.margin,c=o-(l.left||0)-(l.right||0),u=z6({children:i,legendWidth:c});if(u){var d=a||{},m=d.width,p=d.height,f=u.align,g=u.verticalAlign,h=u.layout;if((h==="vertical"||h==="horizontal"&&g==="middle")&&f!=="center"&&se(t[f]))return Ot(Ot({},t),{},Xl({},f,t[f]+(m||0)));if((h==="horizontal"||h==="vertical"&&f==="center")&&g!=="middle"&&se(t[g]))return Ot(Ot({},t),{},Xl({},g,t[g]+(p||0)))}return t},jde=function(t,n,r){return $e(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},B6=function(t,n,r,a,i){var o=n.props.children,l=nr(o,xu).filter(function(u){return jde(a,i,u.props.direction)});if(l&&l.length){var c=l.map(function(u){return u.props.dataKey});return t.reduce(function(u,d){var m=Xt(d,r);if($e(m))return u;var p=Array.isArray(m)?[Iy(m),ko(m)]:[m,m],f=c.reduce(function(g,h){var v=Xt(d,h,0),y=p[0]-Math.abs(Array.isArray(v)?v[0]:v),x=p[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(y,g[0]),Math.max(x,g[1])]},[1/0,-1/0]);return[Math.min(f[0],u[0]),Math.max(f[1],u[1])]},[1/0,-1/0])}return null},Pde=function(t,n,r,a,i){var o=n.map(function(l){return B6(t,l,r,i,a)}).filter(function(l){return!$e(l)});return o&&o.length?o.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]):null},q6=function(t,n,r,a,i){var o=n.map(function(c){var u=c.props.dataKey;return r==="number"&&u&&B6(t,c,u,a)||Cd(t,u,r,i)});if(r==="number")return o.reduce(function(c,u){return[Math.min(c[0],u[0]),Math.max(c[1],u[1])]},[1/0,-1/0]);var l={};return o.reduce(function(c,u){for(var d=0,m=u.length;d<m;d++)l[u[d]]||(l[u[d]]=!0,c.push(u[d]));return c},[])},U6=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},W6=function(t,n,r,a){if(a)return t.map(function(c){return c.coordinate});var i,o,l=t.map(function(c){return c.coordinate===n&&(i=!0),c.coordinate===r&&(o=!0),c.coordinate});return i||l.push(n),o||l.push(r),l},Ai=function(t,n,r){if(!t)return null;var a=t.scale,i=t.duplicateDomain,o=t.type,l=t.range,c=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,u=(n||r)&&o==="category"&&a.bandwidth?a.bandwidth()/c:0;if(u=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?ma(l[0]-l[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var d=(t.ticks||t.niceTicks).map(function(m){var p=i?i.indexOf(m):m;return{coordinate:a(p)+u,value:m,offset:u}});return d.filter(function(m){return!du(m.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(m,p){return{coordinate:a(m)+u,value:m,index:p,offset:u}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(m){return{coordinate:a(m)+u,value:m,offset:u}}):a.domain().map(function(m,p){return{coordinate:a(m)+u,value:i?i[m]:m,index:p,offset:u}})},yb=new WeakMap,Af=function(t,n){if(typeof n!="function")return t;yb.has(t)||yb.set(t,new WeakMap);var r=yb.get(t);if(r.has(n))return r.get(n);var a=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,a),a},Ade=function(t,n,r){var a=t.scale,i=t.type,o=t.layout,l=t.axisType;if(a==="auto")return o==="radial"&&l==="radiusAxis"?{scale:jm(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:wg(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Nd(),realScaleType:"point"}:i==="category"?{scale:jm(),realScaleType:"band"}:{scale:wg(),realScaleType:"linear"};if(Ep(a)){var c="scale".concat(xy(a));return{scale:(lN[c]||Nd)(),realScaleType:lN[c]?c:"point"}}return Le(a)?{scale:a}:{scale:Nd(),realScaleType:"point"}},gN=1e-4,_de=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,a=t.range(),i=Math.min(a[0],a[1])-gN,o=Math.max(a[0],a[1])+gN,l=t(n[0]),c=t(n[r-1]);(l<i||l>o||c<i||c>o)&&t.domain([n[0],n[r-1]])}},Nde=function(t,n){if(!t)return null;for(var r=0,a=t.length;r<a;r++)if(t[r].item===n)return t[r].position;return null},Cde=function(t,n){if(!n||n.length!==2||!se(n[0])||!se(n[1]))return t;var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]),i=[t[0],t[1]];return(!se(t[0])||t[0]<r)&&(i[0]=r),(!se(t[1])||t[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<r&&(i[1]=r),i},Ede=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var i=0,o=0,l=0;l<n;++l){var c=du(t[l][r][1])?t[l][r][0]:t[l][r][1];c>=0?(t[l][r][0]=i,t[l][r][1]=i+c,i=t[l][r][1]):(t[l][r][0]=o,t[l][r][1]=o+c,o=t[l][r][1])}},Tde=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var i=0,o=0;o<n;++o){var l=du(t[o][r][1])?t[o][r][0]:t[o][r][1];l>=0?(t[o][r][0]=i,t[o][r][1]=i+l,i=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}},Ode={sign:Ede,expand:KZ,none:yc,silhouette:GZ,wiggle:QZ,positive:Tde},Ide=function(t,n,r){var a=n.map(function(l){return l.props.dataKey}),i=Ode[r],o=HZ().keys(a).value(function(l,c){return+Xt(l,c,0)}).order(Bw).offset(i);return o(t)},Mde=function(t,n,r,a,i,o){if(!t)return null;var l=o?n.reverse():n,c={},u=l.reduce(function(m,p){var f,g=(f=p.type)!==null&&f!==void 0&&f.defaultProps?Ot(Ot({},p.type.defaultProps),p.props):p.props,h=g.stackId,v=g.hide;if(v)return m;var y=g[r],x=m[y]||{hasStack:!1,stackGroups:{}};if(Zt(h)){var b=x.stackGroups[h]||{numericAxisId:r,cateAxisId:a,items:[]};b.items.push(p),x.hasStack=!0,x.stackGroups[h]=b}else x.stackGroups[al("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[p]};return Ot(Ot({},m),{},Xl({},y,x))},c),d={};return Object.keys(u).reduce(function(m,p){var f=u[p];if(f.hasStack){var g={};f.stackGroups=Object.keys(f.stackGroups).reduce(function(h,v){var y=f.stackGroups[v];return Ot(Ot({},h),{},Xl({},v,{numericAxisId:r,cateAxisId:a,items:y.items,stackedData:Ide(t,y.items,i)}))},g)}return Ot(Ot({},m),{},Xl({},p,f))},d)},$de=function(t,n){var r=n.realScaleType,a=n.type,i=n.tickCount,o=n.originalDomain,l=n.allowDecimals,c=r||n.scale;if(c!=="auto"&&c!=="linear")return null;if(i&&a==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var d=Hue(u,i,l);return t.domain([Iy(d),ko(d)]),{niceTicks:d}}if(i&&a==="number"){var m=t.domain(),p=Kue(m,i,l);return{niceTicks:p}}return null};function _c(e){var t=e.axis,n=e.ticks,r=e.bandSize,a=e.entry,i=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!$e(a[t.dataKey])){var l=Jh(n,"value",a[t.dataKey]);if(l)return l.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var c=Xt(a,$e(o)?t.dataKey:o);return $e(c)?null:t.scale(c)}var vN=function(t){var n=t.axis,r=t.ticks,a=t.offset,i=t.bandSize,o=t.entry,l=t.index;if(n.type==="category")return r[l]?r[l].coordinate+a:null;var c=Xt(o,n.dataKey,n.domain[l]);return $e(c)?null:n.scale(c)-i/2+a},Fde=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var a=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return a<=0&&i>=0?0:i<0?i:a}return r[0]},Rde=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ot(Ot({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(Zt(i)){var o=n[i];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},Dde=function(t){return t.reduce(function(n,r){return[Iy(r.concat([n[0]]).filter(se)),ko(r.concat([n[1]]).filter(se))]},[1/0,-1/0])},V6=function(t,n,r){return Object.keys(t).reduce(function(a,i){var o=t[i],l=o.stackedData,c=l.reduce(function(u,d){var m=Dde(d.slice(n,r+1));return[Math.min(u[0],m[0]),Math.max(u[1],m[1])]},[1/0,-1/0]);return[Math.min(c[0],a[0]),Math.max(c[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},yN=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,xN=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,v1=function(t,n,r){if(Le(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(se(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(yN.test(t[0])){var i=+yN.exec(t[0])[1];a[0]=n[0]-i}else Le(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(se(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(xN.test(t[1])){var o=+xN.exec(t[1])[1];a[1]=n[1]+o}else Le(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},Ng=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!r||a>0)return a}if(t&&n&&n.length>=2){for(var i=jS(n,function(m){return m.coordinate}),o=1/0,l=1,c=i.length;l<c;l++){var u=i[l],d=i[l-1];o=Math.min((u.coordinate||0)-(d.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},bN=function(t,n,r){return!t||!t.length||Ks(t,qr(r,"type.defaultProps.domain"))?n:t},H6=function(t,n){var r=t.type.defaultProps?Ot(Ot({},t.type.defaultProps),t.props):t.props,a=r.dataKey,i=r.name,o=r.unit,l=r.formatter,c=r.tooltipType,u=r.chartType,d=r.hide;return Ot(Ot({},Me(t,!1)),{},{dataKey:a,unit:o,formatter:l,name:i||a,color:YS(t),value:Xt(n,a),type:c,payload:n,chartType:u,hide:d})};function Im(e){"@babel/helpers - typeof";return Im=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},Im(e)}function wN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function kN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wN(Object(n),!0).forEach(function(r){Lde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lde(e,t,n){return t=zde(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zde(e){var t=Bde(e,"string");return Im(t)=="symbol"?t:t+""}function Bde(e,t){if(Im(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Im(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cg=Math.PI/180,qde=function(t){return t*180/Math.PI},dn=function(t,n,r,a){return{x:t+Math.cos(-Cg*a)*r,y:n+Math.sin(-Cg*a)*r}},Ude=function(t,n){var r=t.x,a=t.y,i=n.x,o=n.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(a-o,2))},Wde=function(t,n){var r=t.x,a=t.y,i=n.cx,o=n.cy,l=Ude({x:r,y:a},{x:i,y:o});if(l<=0)return{radius:l};var c=(r-i)/l,u=Math.acos(c);return a>o&&(u=2*Math.PI-u),{radius:l,angle:qde(u),angleInRadian:u}},Vde=function(t){var n=t.startAngle,r=t.endAngle,a=Math.floor(n/360),i=Math.floor(r/360),o=Math.min(a,i);return{startAngle:n-o*360,endAngle:r-o*360}},Hde=function(t,n){var r=n.startAngle,a=n.endAngle,i=Math.floor(r/360),o=Math.floor(a/360),l=Math.min(i,o);return t+l*360},SN=function(t,n){var r=t.x,a=t.y,i=Wde({x:r,y:a},n),o=i.radius,l=i.angle,c=n.innerRadius,u=n.outerRadius;if(o<c||o>u)return!1;if(o===0)return!0;var d=Vde(n),m=d.startAngle,p=d.endAngle,f=l,g;if(m<=p){for(;f>p;)f-=360;for(;f<m;)f+=360;g=f>=m&&f<=p}else{for(;f>m;)f-=360;for(;f<p;)f+=360;g=f>=p&&f<=m}return g?kN(kN({},n),{},{radius:o,angle:Hde(f,n)}):null};function Mm(e){"@babel/helpers - typeof";return Mm=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},Mm(e)}var Kde=["offset"];function Gde(e){return Xde(e)||Zde(e)||Yde(e)||Qde()}function Qde(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 484In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yde(e,t){if(e){if(typeof e=="string")return y1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y1(e,t)}}function Zde(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Xde(e){if(Array.isArray(e))return y1(e)}function y1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jde(e,t){if(e==null)return{};var n=eme(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eme(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function jN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jN(Object(n),!0).forEach(function(r){tme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tme(e,t,n){return t=nme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nme(e){var t=rme(e,"string");return Mm(t)=="symbol"?t:t+""}function rme(e,t){if(Mm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Mm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $m(){return $m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$m.apply(this,arguments)}var ame=function(t){var n=t.value,r=t.formatter,a=$e(t.children)?n:t.children;return Le(r)?r(a):a},ime=function(t,n){var r=ma(n-t),a=Math.min(Math.abs(n-t),360);return r*a},ome=function(t,n,r){var a=t.position,i=t.viewBox,o=t.offset,l=t.className,c=i,u=c.cx,d=c.cy,m=c.innerRadius,p=c.outerRadius,f=c.startAngle,g=c.endAngle,h=c.clockWise,v=(m+p)/2,y=ime(f,g),x=y>=0?1:-1,b,w;a==="insideStart"?(b=f+x*o,w=h):a==="insideEnd"?(b=g-x*o,w=!h):a==="end"&&(b=g+x*o,w=h),w=y<=0?w:!w;var k=dn(u,d,v,b),j=dn(u,d,v,b+(w?1:-1)*359),A="M".concat(k.x,",").concat(k.y,` 485 A`).concat(v,",").concat(v,",0,1,").concat(w?0:1,`, 486 `).concat(j.x,",").concat(j.y),P=$e(t.id)?al("recharts-radial-line-"):t.id;return M.createElement("text",$m({},r,{dominantBaseline:"central",className:We("recharts-radial-bar-label",l)}),M.createElement("defs",null,M.createElement("path",{id:P,d:A})),M.createElement("textPath",{xlinkHref:"#".concat(P)},n))},sme=function(t){var n=t.viewBox,r=t.offset,a=t.position,i=n,o=i.cx,l=i.cy,c=i.innerRadius,u=i.outerRadius,d=i.startAngle,m=i.endAngle,p=(d+m)/2;if(a==="outside"){var f=dn(o,l,u+r,p),g=f.x,h=f.y;return{x:g,y:h,textAnchor:g>=o?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var v=(c+u)/2,y=dn(o,l,v,p),x=y.x,b=y.y;return{x,y:b,textAnchor:"middle",verticalAnchor:"middle"}},lme=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,i=t.position,o=n,l=o.x,c=o.y,u=o.width,d=o.height,m=d>=0?1:-1,p=m*a,f=m>0?"end":"start",g=m>0?"start":"end",h=u>=0?1:-1,v=h*a,y=h>0?"end":"start",x=h>0?"start":"end";if(i==="top"){var b={x:l+u/2,y:c-m*a,textAnchor:"middle",verticalAnchor:f};return Gt(Gt({},b),r?{height:Math.max(c-r.y,0),width:u}:{})}if(i==="bottom"){var w={x:l+u/2,y:c+d+p,textAnchor:"middle",verticalAnchor:g};return Gt(Gt({},w),r?{height:Math.max(r.y+r.height-(c+d),0),width:u}:{})}if(i==="left"){var k={x:l-v,y:c+d/2,textAnchor:y,verticalAnchor:"middle"};return Gt(Gt({},k),r?{width:Math.max(k.x-r.x,0),height:d}:{})}if(i==="right"){var j={x:l+u+v,y:c+d/2,textAnchor:x,verticalAnchor:"middle"};return Gt(Gt({},j),r?{width:Math.max(r.x+r.width-j.x,0),height:d}:{})}var A=r?{width:u,height:d}:{};return i==="insideLeft"?Gt({x:l+v,y:c+d/2,textAnchor:x,verticalAnchor:"middle"},A):i==="insideRight"?Gt({x:l+u-v,y:c+d/2,textAnchor:y,verticalAnchor:"middle"},A):i==="insideTop"?Gt({x:l+u/2,y:c+p,textAnchor:"middle",verticalAnchor:g},A):i==="insideBottom"?Gt({x:l+u/2,y:c+d-p,textAnchor:"middle",verticalAnchor:f},A):i==="insideTopLeft"?Gt({x:l+v,y:c+p,textAnchor:x,verticalAnchor:g},A):i==="insideTopRight"?Gt({x:l+u-v,y:c+p,textAnchor:y,verticalAnchor:g},A):i==="insideBottomLeft"?Gt({x:l+v,y:c+d-p,textAnchor:x,verticalAnchor:f},A):i==="insideBottomRight"?Gt({x:l+u-v,y:c+d-p,textAnchor:y,verticalAnchor:f},A):su(i)&&(se(i.x)||ws(i.x))&&(se(i.y)||ws(i.y))?Gt({x:l+Hs(i.x,u),y:c+Hs(i.y,d),textAnchor:"end",verticalAnchor:"end"},A):Gt({x:l+u/2,y:c+d/2,textAnchor:"middle",verticalAnchor:"middle"},A)},cme=function(t){return"cx"in t&&se(t.cx)};function jn(e){var t=e.offset,n=t===void 0?5:t,r=Jde(e,Kde),a=Gt({offset:n},r),i=a.viewBox,o=a.position,l=a.value,c=a.children,u=a.content,d=a.className,m=d===void 0?"":d,p=a.textBreakAll;if(!i||$e(l)&&$e(c)&&!S.isValidElement(u)&&!Le(u))return null;if(S.isValidElement(u))return S.cloneElement(u,a);var f;if(Le(u)){if(f=S.createElement(u,a),S.isValidElement(f))return f}else f=ame(a);var g=cme(i),h=Me(a,!0);if(g&&(o==="insideStart"||o==="insideEnd"||o==="end"))return ome(a,f,h);var v=g?sme(a):lme(a);return M.createElement(fg,$m({className:We("recharts-label",m)},h,v,{breakAll:p}),f)}jn.displayName="Label";var K6=function(t){var n=t.cx,r=t.cy,a=t.angle,i=t.startAngle,o=t.endAngle,l=t.r,c=t.radius,u=t.innerRadius,d=t.outerRadius,m=t.x,p=t.y,f=t.top,g=t.left,h=t.width,v=t.height,y=t.clockWise,x=t.labelViewBox;if(x)return x;if(se(h)&&se(v)){if(se(m)&&se(p))return{x:m,y:p,width:h,height:v};if(se(f)&&se(g))return{x:f,y:g,width:h,height:v}}return se(m)&&se(p)?{x:m,y:p,width:0,height:0}:se(n)&&se(r)?{cx:n,cy:r,startAngle:i||a||0,endAngle:o||a||0,innerRadius:u||0,outerRadius:d||c||l||0,clockWise:y}:t.viewBox?t.viewBox:{}},ume=function(t,n){return t?t===!0?M.createElement(jn,{key:"label-implicit",viewBox:n}):Zt(t)?M.createElement(jn,{key:"label-implicit",viewBox:n,value:t}):S.isValidElement(t)?t.type===jn?S.cloneElement(t,{key:"label-implicit",viewBox:n}):M.createElement(jn,{key:"label-implicit",content:t,viewBox:n}):Le(t)?M.createElement(jn,{key:"label-implicit",content:t,viewBox:n}):su(t)?M.createElement(jn,$m({viewBox:n},t,{key:"label-implicit"})):null:null},dme=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var a=t.children,i=K6(t),o=nr(a,jn).map(function(c,u){return S.cloneElement(c,{viewBox:n||i,key:"label-".concat(u)})});if(!r)return o;var l=ume(t.label,n||i);return[l].concat(Gde(o))};jn.parseViewBox=K6;jn.renderCallByParent=dme;function mme(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var pme=mme;const fme=Qe(pme);function Fm(e){"@babel/helpers - typeof";return Fm=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},Fm(e)}var hme=["valueAccessor"],gme=["data","dataKey","clockWise","id","textBreakAll"];function vme(e){return wme(e)||bme(e)||xme(e)||yme()}function yme(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 487In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xme(e,t){if(e){if(typeof e=="string")return x1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x1(e,t)}}function bme(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wme(e){if(Array.isArray(e))return x1(e)}function x1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Eg(){return Eg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eg.apply(this,arguments)}function PN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function AN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PN(Object(n),!0).forEach(function(r){kme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kme(e,t,n){return t=Sme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sme(e){var t=jme(e,"string");return Fm(t)=="symbol"?t:t+""}function jme(e,t){if(Fm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Fm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _N(e,t){if(e==null)return{};var n=Pme(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pme(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Ame=function(t){return Array.isArray(t.value)?fme(t.value):t.value};function Ka(e){var t=e.valueAccessor,n=t===void 0?Ame:t,r=_N(e,hme),a=r.data,i=r.dataKey,o=r.clockWise,l=r.id,c=r.textBreakAll,u=_N(r,gme);return!a||!a.length?null:M.createElement(Xe,{className:"recharts-label-list"},a.map(function(d,m){var p=$e(i)?n(d,m):Xt(d&&d.payload,i),f=$e(l)?{}:{id:"".concat(l,"-").concat(m)};return M.createElement(jn,Eg({},Me(d,!0),u,f,{parentViewBox:d.parentViewBox,value:p,textBreakAll:c,viewBox:jn.parseViewBox($e(o)?d:AN(AN({},d),{},{clockWise:o})),key:"label-".concat(m),index:m}))}))}Ka.displayName="LabelList";function _me(e,t){return e?e===!0?M.createElement(Ka,{key:"labelList-implicit",data:t}):M.isValidElement(e)||Le(e)?M.createElement(Ka,{key:"labelList-implicit",data:t,content:e}):su(e)?M.createElement(Ka,Eg({data:t},e,{key:"labelList-implicit"})):null:null}function Nme(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,a=nr(r,Ka).map(function(o,l){return S.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!n)return a;var i=_me(e.label,t);return[i].concat(vme(a))}Ka.renderCallByParent=Nme;function Rm(e){"@babel/helpers - typeof";return Rm=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},Rm(e)}function b1(){return b1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b1.apply(this,arguments)}function NN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function CN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NN(Object(n),!0).forEach(function(r){Cme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cme(e,t,n){return t=Eme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eme(e){var t=Tme(e,"string");return Rm(t)=="symbol"?t:t+""}function Tme(e,t){if(Rm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Rm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ome=function(t,n){var r=ma(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},_f=function(t){var n=t.cx,r=t.cy,a=t.radius,i=t.angle,o=t.sign,l=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,d=c*(l?1:-1)+a,m=Math.asin(c/d)/Cg,p=u?i:i+o*m,f=dn(n,r,d,p),g=dn(n,r,a,p),h=u?i-o*m:i,v=dn(n,r,d*Math.cos(m*Cg),h);return{center:f,circleTangency:g,lineTangency:v,theta:m}},G6=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.startAngle,l=t.endAngle,c=Ome(o,l),u=o+c,d=dn(n,r,i,o),m=dn(n,r,i,u),p="M ".concat(d.x,",").concat(d.y,` 488 A `).concat(i,",").concat(i,`,0, 489 `).concat(+(Math.abs(c)>180),",").concat(+(o>u),`, 490 `).concat(m.x,",").concat(m.y,` 491 `);if(a>0){var f=dn(n,r,a,o),g=dn(n,r,a,u);p+="L ".concat(g.x,",").concat(g.y,` 492 A `).concat(a,",").concat(a,`,0, 493 `).concat(+(Math.abs(c)>180),",").concat(+(o<=u),`, 494 `).concat(f.x,",").concat(f.y," Z")}else p+="L ".concat(n,",").concat(r," Z");return p},Ime=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,d=t.endAngle,m=ma(d-u),p=_f({cx:n,cy:r,radius:i,angle:u,sign:m,cornerRadius:o,cornerIsExternal:c}),f=p.circleTangency,g=p.lineTangency,h=p.theta,v=_f({cx:n,cy:r,radius:i,angle:d,sign:-m,cornerRadius:o,cornerIsExternal:c}),y=v.circleTangency,x=v.lineTangency,b=v.theta,w=c?Math.abs(u-d):Math.abs(u-d)-h-b;if(w<0)return l?"M ".concat(g.x,",").concat(g.y,` 495 a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 496 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 497 `):G6({cx:n,cy:r,innerRadius:a,outerRadius:i,startAngle:u,endAngle:d});var k="M ".concat(g.x,",").concat(g.y,` 498 A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(f.x,",").concat(f.y,` 499 A`).concat(i,",").concat(i,",0,").concat(+(w>180),",").concat(+(m<0),",").concat(y.x,",").concat(y.y,` 500 A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(x.x,",").concat(x.y,` 501 `);if(a>0){var j=_f({cx:n,cy:r,radius:a,angle:u,sign:m,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),A=j.circleTangency,P=j.lineTangency,_=j.theta,N=_f({cx:n,cy:r,radius:a,angle:d,sign:-m,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),C=N.circleTangency,E=N.lineTangency,T=N.theta,O=c?Math.abs(u-d):Math.abs(u-d)-_-T;if(O<0&&o===0)return"".concat(k,"L").concat(n,",").concat(r,"Z");k+="L".concat(E.x,",").concat(E.y,` 502 A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(C.x,",").concat(C.y,` 503 A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(m>0),",").concat(A.x,",").concat(A.y,` 504 A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(P.x,",").concat(P.y,"Z")}else k+="L".concat(n,",").concat(r,"Z");return k},Mme={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Q6=function(t){var n=CN(CN({},Mme),t),r=n.cx,a=n.cy,i=n.innerRadius,o=n.outerRadius,l=n.cornerRadius,c=n.forceCornerRadius,u=n.cornerIsExternal,d=n.startAngle,m=n.endAngle,p=n.className;if(o<i||d===m)return null;var f=We("recharts-sector",p),g=o-i,h=Hs(l,g,0,!0),v;return h>0&&Math.abs(d-m)<360?v=Ime({cx:r,cy:a,innerRadius:i,outerRadius:o,cornerRadius:Math.min(h,g/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:d,endAngle:m}):v=G6({cx:r,cy:a,innerRadius:i,outerRadius:o,startAngle:d,endAngle:m}),M.createElement("path",b1({},Me(n,!0),{className:f,d:v,role:"img"}))};function Dm(e){"@babel/helpers - typeof";return Dm=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},Dm(e)}function w1(){return w1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w1.apply(this,arguments)}function EN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function TN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
504t%2?EN(Object(n),!0).forEach(function(r){$me(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $me(e,t,n){return t=Fme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fme(e){var t=Rme(e,"string");return Dm(t)=="symbol"?t:t+""}function Rme(e,t){if(Dm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Dm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ON={curveBasisClosed:$Z,curveBasisOpen:FZ,curveBasis:MZ,curveBumpX:bZ,curveBumpY:wZ,curveLinearClosed:RZ,curveLinear:wy,curveMonotoneX:DZ,curveMonotoneY:LZ,curveNatural:zZ,curveStep:BZ,curveStepAfter:UZ,curveStepBefore:qZ},Nf=function(t){return t.x===+t.x&&t.y===+t.y},Ku=function(t){return t.x},Gu=function(t){return t.y},Dme=function(t,n){if(Le(t))return t;var r="curve".concat(xy(t));return(r==="curveMonotone"||r==="curveBump")&&n?ON["".concat(r).concat(n==="vertical"?"Y":"X")]:ON[r]||wy},Lme=function(t){var n=t.type,r=n===void 0?"linear":n,a=t.points,i=a===void 0?[]:a,o=t.baseLine,l=t.layout,c=t.connectNulls,u=c===void 0?!1:c,d=Dme(r,l),m=u?i.filter(function(h){return Nf(h)}):i,p;if(Array.isArray(o)){var f=u?o.filter(function(h){return Nf(h)}):o,g=m.map(function(h,v){return TN(TN({},h),{},{base:f[v]})});return l==="vertical"?p=yf().y(Gu).x1(Ku).x0(function(h){return h.base.x}):p=yf().x(Ku).y1(Gu).y0(function(h){return h.base.y}),p.defined(Nf).curve(d),p(g)}return l==="vertical"&&se(o)?p=yf().y(Gu).x1(Ku).x0(o):se(o)?p=yf().x(Ku).y1(Gu).y0(o):p=Y8().x(Ku).y(Gu),p.defined(Nf).curve(d),p(m)},Fs=function(t){var n=t.className,r=t.points,a=t.path,i=t.pathRef;if((!r||!r.length)&&!a)return null;var o=r&&r.length?Lme(t):a;return M.createElement("path",w1({},Me(t,!1),eg(t),{className:We("recharts-curve",n),d:o,ref:i}))},Y6={exports:{}},zme="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Bme=zme,qme=Bme;function Z6(){}function X6(){}X6.resetWarningCache=Z6;var Ume=function(){function e(r,a,i,o,l,c){if(c!==qme){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:X6,resetWarningCache:Z6};return n.PropTypes=n,n};Y6.exports=Ume();var Wme=Y6.exports;const De=Qe(Wme);var Vme=Object.getOwnPropertyNames,Hme=Object.getOwnPropertySymbols,Kme=Object.prototype.hasOwnProperty;function IN(e,t){return function(r,a,i){return e(r,a,i)&&t(r,a,i)}}function Cf(e){return function(n,r,a){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,a);var i=a.cache,o=i.get(n),l=i.get(r);if(o&&l)return o===r&&l===n;i.set(n,r),i.set(r,n);var c=e(n,r,a);return i.delete(n),i.delete(r),c}}function MN(e){return Vme(e).concat(Hme(e))}var J6=Object.hasOwn||function(e,t){return Kme.call(e,t)};function bu(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var e$="_owner",$N=Object.getOwnPropertyDescriptor,FN=Object.keys;function Gme(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Qme(e,t){return bu(e.getTime(),t.getTime())}function RN(e,t,n){if(e.size!==t.size)return!1;for(var r={},a=e.entries(),i=0,o,l;(o=a.next())&&!o.done;){for(var c=t.entries(),u=!1,d=0;(l=c.next())&&!l.done;){var m=o.value,p=m[0],f=m[1],g=l.value,h=g[0],v=g[1];!u&&!r[d]&&(u=n.equals(p,h,i,d,e,t,n)&&n.equals(f,v,p,h,e,t,n))&&(r[d]=!0),d++}if(!u)return!1;i++}return!0}function Yme(e,t,n){var r=FN(e),a=r.length;if(FN(t).length!==a)return!1;for(var i;a-- >0;)if(i=r[a],i===e$&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!J6(t,i)||!n.equals(e[i],t[i],i,i,e,t,n))return!1;return!0}function Qu(e,t,n){var r=MN(e),a=r.length;if(MN(t).length!==a)return!1;for(var i,o,l;a-- >0;)if(i=r[a],i===e$&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!J6(t,i)||!n.equals(e[i],t[i],i,i,e,t,n)||(o=$N(e,i),l=$N(t,i),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function Zme(e,t){return bu(e.valueOf(),t.valueOf())}function Xme(e,t){return e.source===t.source&&e.flags===t.flags}function DN(e,t,n){if(e.size!==t.size)return!1;for(var r={},a=e.values(),i,o;(i=a.next())&&!i.done;){for(var l=t.values(),c=!1,u=0;(o=l.next())&&!o.done;)!c&&!r[u]&&(c=n.equals(i.value,o.value,i.value,o.value,e,t,n))&&
504(r[u]=!0),u++;if(!c)return!1}return!0}function Jme(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var epe="[object Arguments]",tpe="[object Boolean]",npe="[object Date]",rpe="[object Map]",ape="[object Number]",ipe="[object Object]",ope="[object RegExp]",spe="[object Set]",lpe="[object String]",cpe=Array.isArray,LN=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,zN=Object.assign,upe=Object.prototype.toString.call.bind(Object.prototype.toString);function dpe(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,a=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,l=e.areSetsEqual,c=e.areTypedArraysEqual;return function(d,m,p){if(d===m)return!0;if(d==null||m==null||typeof d!="object"||typeof m!="object")return d!==d&&m!==m;var f=d.constructor;if(f!==m.constructor)return!1;if(f===Object)return a(d,m,p);if(cpe(d))return t(d,m,p);if(LN!=null&&LN(d))return c(d,m,p);if(f===Date)return n(d,m,p);if(f===RegExp)return o(d,m,p);if(f===Map)return r(d,m,p);if(f===Set)return l(d,m,p);var g=upe(d);return g===npe?n(d,m,p):g===ope?o(d,m,p):g===rpe?r(d,m,p):g===spe?l(d,m,p):g===ipe?typeof d.then!="function"&&typeof m.then!="function"&&a(d,m,p):g===epe?a(d,m,p):g===tpe||g===ape||g===lpe?i(d,m,p):!1}}function mpe(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,a={areArraysEqual:r?Qu:Gme,areDatesEqual:Qme,areMapsEqual:r?IN(RN,Qu):RN,areObjectsEqual:r?Qu:Yme,arePrimitiveWrappersEqual:Zme,areRegExpsEqual:Xme,areSetsEqual:r?IN(DN,Qu):DN,areTypedArraysEqual:r?Qu:Jme};if(n&&(a=zN({},a,n(a))),t){var i=Cf(a.areArraysEqual),o=Cf(a.areMapsEqual),l=Cf(a.areObjectsEqual),c=Cf(a.areSetsEqual);a=zN({},a,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:l,areSetsEqual:c})}return a}function ppe(e){return function(t,n,r,a,i,o,l){return e(t,n,l)}}function fpe(e){var t=e.circular,n=e.comparator,r=e.createState,a=e.equals,i=e.strict;if(r)return function(c,u){var d=r(),m=d.cache,p=m===void 0?t?new WeakMap:void 0:m,f=d.meta;return n(c,u,{cache:p,equals:a,meta:f,strict:i})};if(t)return function(c,u){return n(c,u,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};var o={cache:void 0,equals:a,meta:void 0,strict:i};return function(c,u){return n(c,u,o)}}var hpe=ts();ts({strict:!0});ts({circular:!0});ts({circular:!0,strict:!0});ts({createInternalComparator:function(){return bu}});ts({strict:!0,createInternalComparator:function(){return bu}});ts({circular:!0,createInternalComparator:function(){return bu}});ts({circular:!0,createInternalComparator:function(){return bu},strict:!0});function ts(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,a=e.createState,i=e.strict,o=i===void 0?!1:i,l=mpe(e),c=dpe(l),u=r?r(c):ppe(c);return fpe({circular:n,comparator:c,createState:a,equals:u,strict:o})}function gpe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function BN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function a(i){n<0&&(n=i),i-n>t?(e(i),n=-1):gpe(a)};requestAnimationFrame(r)}function k1(e){"@babel/helpers - typeof";return k1=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},k1(e)}function vpe(e){return wpe(e)||bpe(e)||xpe(e)||ype()}function ype(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 505In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xpe(e,t){if(e){if(typeof e=="string")return qN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qN(e,t)}}function qN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bpe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wpe(e){if(Array.isArray(e))return e}function kpe(){var e={},t=function(){return null}
vendor: 183,734 bytes, lines 505-527
505,n=!1,r=function a(i){if(!n){if(Array.isArray(i)){if(!i.length)return;var o=i,l=vpe(o),c=l[0],u=l.slice(1);if(typeof c=="number"){BN(a.bind(null,u),c);return}a(c),BN(a.bind(null,u));return}k1(i)==="object"&&(e=i,t(e)),typeof i=="function"&&i()}};return{stop:function(){n=!0},start:function(i){n=!1,r(i)},subscribe:function(i){return t=i,function(){t=function(){return null}}}}}function Lm(e){"@babel/helpers - typeof";return Lm=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},Lm(e)}function UN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function WN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UN(Object(n),!0).forEach(function(r){t$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function t$(e,t,n){return t=Spe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Spe(e){var t=jpe(e,"string");return Lm(t)==="symbol"?t:String(t)}function jpe(e,t){if(Lm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Lm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ppe=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(i){return a.includes(i)})})},Ape=function(t){return t},_pe=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Ed=function(t,n){return Object.keys(n).reduce(function(r,a){return WN(WN({},r),{},t$({},a,t(a,n[a])))},{})},VN=function(t,n,r){return t.map(function(a){return"".concat(_pe(a)," ").concat(n,"ms ").concat(r)}).join(",")};function Npe(e,t){return Tpe(e)||Epe(e,t)||n$(e,t)||Cpe()}function Cpe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 506In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Epe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Tpe(e){if(Array.isArray(e))return e}function Ope(e){return $pe(e)||Mpe(e)||n$(e)||Ipe()}function Ipe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 507In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n$(e,t){if(e){if(typeof e=="string")return S1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S1(e,t)}}function Mpe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $pe(e){if(Array.isArray(e))return S1(e)}function S1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Tg=1e-4,r$=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},a$=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},HN=function(t,n){return function(r){var a=r$(t,n);return a$(a,r)}},Fpe=function(t,n){return function(r){var a=r$(t,n),i=[].concat(Ope(a.map(function(o,l){return o*l}).slice(1)),[0]);return a$(i,r)}},KN=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0],i=n[1],o=n[2],l=n[3];if(n.length===1)switch(n[0]){case"linear":a=0,i=0,o=1,l=1;break;case"ease":a=.25,i=.1,o=.25,l=1;break;case"ease-in":a=.42,i=0,o=1,l=1;break;case"ease-out":a=.42,i=0,o=.58,l=1;break;case"ease-in-out":a=0,i=0,o=.58,l=1;break;default:{var c=n[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var u=c[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),d=Npe(u,4);a=d[0],i=d[1],o=d[2],l=d[3]}}}var m=HN(a,o),p=HN(i,l),f=Fpe(a,o),g=function(y){return y>1?1:y<0?0:y},h=function(y){for(var x=y>1?1:y,b=x,w=0;w<8;++w){var k=m(b)-x,j=f(b);if(Math.abs(k-x)<Tg||j<Tg)return p(b);b=g(b-k/j)}return p(b)};return h.isStepper=!1,h},Rpe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,a=t.damping,i=a===void 0?8:a,o=t.dt,l=o===void 0?17:o,c=function(d,m,p){var f=-(d-m)*r,g=p*i,h=p+(f-g)*l/1e3,v=p*l/1e3+d;return Math.abs(v-m)<Tg&&Math.abs(h)<Tg?[m,0]:[v,h]};return c.isStepper=!0,c.dt=l,c},Dpe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0];if(typeof a=="string")switch(a){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return KN(a);case"spring":return Rpe();default:if(a.split("(")[0]==="cubic-bezier")return KN(a)}return typeof a=="function"?a:null};function zm(e){"@babel/helpers - typeof";return zm=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},zm(e)}function GN(e){return Bpe(e)||zpe(e)||i$(e)||Lpe()}function Lpe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 508In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zpe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bpe(e){if(Array.isArray(e))return P1(e)}function QN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QN(Object(n),!0).forEach(function(r){j1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function j1(e,t,n){return t=qpe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qpe(e){var t=Upe(e,"string");return zm(t)==="symbol"?t:String(t)}function Upe(e,t){if(zm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(zm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wpe(e,t){return Kpe(e)||Hpe(e,t)||i$(e,t)||Vpe()}function Vpe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 509In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i$(e,t){if(e){if(typeof e=="string")return P1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P1(e,t)}}function P1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hpe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Kpe(e){if(Array.isArray(e))return e}var Og=function(t,n,r){return t+(n-t)*r},A1=function(t){var n=t.from,r=t.to;return n!==r},Gpe=function e(t,n,r){var a=Ed(function(i,o){if(A1(o)){var l=t(o.from,o.to,o.velocity),c=Wpe(l,2),u=c[0],d=c[1];return cn(cn({},o),{},{from:u,velocity:d})}return o},n);return r<1?Ed(function(i,o){return A1(o)?cn(cn({},o),{},{velocity:Og(o.velocity,a[i].velocity,r),from:Og(o.from,a[i].from,r)}):o},n):e(t,a,r-1)};const Qpe=function(e,t,n,r,a){var i=Ppe(e,t),o=i.reduce(function(v,y){return cn(cn({},v),{},j1({},y,[e[y],t[y]]))},{}),l=i.reduce(function(v,y){return cn(cn({},v),{},j1({},y,{from:e[y],velocity:0,to:t[y]}))},{}),c=-1,u,d,m=function(){return null},p=function(){return Ed(function(y,x){return x.from},l)},f=function(){return!Object.values(l).filter(A1).length},g=function(y){u||(u=y);var x=y-u,b=x/n.dt;l=Gpe(n,l,b),a(cn(cn(cn({},e),t),p())),u=y,f()||(c=requestAnimationFrame(m))},h=function(y){d||(d=y);var x=(y-d)/r,b=Ed(function(k,j){return Og.apply(void 0,GN(j).concat([n(x)]))},o);if(a(cn(cn(cn({},e),t),b)),x<1)c=requestAnimationFrame(m);else{var w=Ed(function(k,j){return Og.apply(void 0,GN(j).concat([n(1)]))},o);a(cn(cn(cn({},e),t),w))}};return m=n.isStepper?g:h,function(){return requestAnimationFrame(m),function(){cancelAnimationFrame(c)}}};function Nc(e){"@babel/helpers - typeof";return Nc=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},Nc(e)}var Ype=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Zpe(e,t){if(e==null)return{};var n=Xpe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xpe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function xb(e){return nfe(e)||tfe(e)||efe(e)||Jpe()}function Jpe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 510In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function efe(e,t){if(e){if(typeof e=="string")return _1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _1(e,t)}}function tfe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nfe(e){if(Array.isArray(e))return _1(e)}function _1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function YN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Xr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YN(Object(n),!0).forEach(function(r){md(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function md(e,t,n){return t=o$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function afe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o$(r.key),r)}}function ife(e,t,n){return t&&afe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function o$(e){var t=ofe(e,"string");return Nc(t)==="symbol"?t:String(t)}function ofe(e,t){if(Nc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Nc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sfe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&N1(e,t)}function N1(e,t){return N1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},N1(e,t)}function lfe(e){var t=cfe();return function(){var r=Ig(e),a;if(t){var i=Ig(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return C1(this,a)}}function C1(e,t){if(t&&(Nc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return E1(e)}function E1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cfe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ig(e){return Ig=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ig(e)}var Sa=function(e){sfe(n,e);var t=lfe(n);function n(r,a){var i;rfe(this,n),i=t.call(this,r,a);var o=i.props,l=o.isActive,c=o.attributeName,u=o.from,d=o.to,m=o.steps,p=o.children,f=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(E1(i)),i.changeStyle=i.changeStyle.bind(E1(i)),!l||f<=0)return i.state={style:{}},typeof p=="function"&&(i.state={style:d}),C1(i);if(m&&m.length)i.state={style:m[0].style};else if(u){if(typeof p=="function")return i.state={style:u},C1(i);i.state={style:c?md({},c,u):u}}else i.state={style:{}};return i}return ife(n,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,o=a.canBegin;this.mounted=!0,!(!i||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,o=i.isActive,l=i.canBegin,c=i.attributeName,u=i.shouldReAnimate,d=i.to,m=i.from,p=this.state.style;if(l){if(!o){var f={style:c?md({},c,d):d};this.state&&p&&(c&&p[c]!==d||!c&&p!==d)&&this.setState(f);return}if(!(hpe(a.to,d)&&a.canBegin&&a.isActive)){var g=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var h=g||u?m:a.to;if(this.state&&p){var v={style:c?md({},c,h):h};(c&&p[c]!==h||!c&&p!==h)&&this.setState(v)}this.runAnimation(Xr(Xr({},this.props),{},{from:h,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,o=a.from,l=a.to,c=a.duration,u=a.easing,d=a.begin,m=a.onAnimationEnd,p=a.onAnimationStart,f=Qpe(o,l,Dpe(u),c,this.changeStyle),g=function(){i.stopJSAnimation=f()};this.manager.start([p,d,g,c,m])}},{key:"runStepAnimation",value:function(a){var i=this,o=a.steps,l=a.begin,c=a.onAnimationStart,u=o[0],d=u.style,m=u.duration,p=m===void 0?0:m,f=function(h,v,y){if(y===0)return h;var x=v.duration,b=v.easing,w=b===void 0?"ease":b,k=v.style,j=v.properties,A=v.onAnimationEnd,P=y>0?o[y-1]:v,_=j||Object.keys(k);if(typeof w=="function"||w==="spring")return[].concat(xb(h),[i.runJSAnimation.bind(i,{from:P.style,to:k,duration:x,easing:w}),x]);var N=VN(_,x,w),C=Xr(Xr(Xr({},P.style),k),{},{transition:N});return[].concat(xb(h),[C,x,A]).filter(Ape)};return this.manager.start([c].concat(xb(o.reduce(f,[d,Math.max(p,l)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=kpe());var i=a.begin,o=a.duration,l=a.attributeName,c=a.to,u=a.easing,d=a.onAnimationStart,m=a.onAnimationEnd,p=a.steps,f=a.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof u=="function"||typeof f=="function"||u==="spring"){this.runJSAnimation(a);return}if(p.length>1){this.runStepAnimation(a);return}var h=l?md({},l,c):c,v=VN(Object.keys(h),o,u);g.start([d,i,Xr(Xr({},h),{},{transition:v}),o,m])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var o=a.duration;a.attributeName,a.easing;var l=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var c=Zpe(a,Ype),u=S.Children.count(i),d=this.state.style;if(typeof i=="function")return i(d);if(!l||u===0||o<=0)return i;var m=function(f){var g=f.props,h=g.style,v=h===void 0?{}:h,y=g.className,x=S.cloneElement(f,Xr(Xr({},c),{},{style:Xr(Xr({},v),d),className:y}));return x};return u===1?m(S.Children.only(i)):M.createElement("div",null,S.Children.map(i,function(p){return m(p)}))}}]),n}(S.PureComponent);Sa.displayName="Animate";Sa.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Sa.propTypes={from:De.oneOfType([De.object,De.string]),to:De.oneOfType([De.object,De.string]),attributeName:De.string,duration:De.number,begin:De.number,easing:De.oneOfType([De.string,De.func]),steps:De.arrayOf(De.shape({duration:De.number.isRequired,style:De.object.isRequired,easing:De.oneOfType([De.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),De.func]),properties:De.arrayOf("string"),onAnimationEnd:De.func})),children:De.oneOfType([De.node,De.func]),isActive:De.bool,canBegin:De.bool,onAnimationEnd:De.func,shouldReAnimate:De.bool,onAnimationStart:De.func,onAnimationReStart:De.func};De.object,De.object,De.object,De.element;De.object,De.object,De.object,De.oneOfType([De.array,De.element]),De.any;function Bm(e){"@babel/helpers - typeof";return Bm=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},Bm(e)}function Mg(){return Mg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mg.apply(this,arguments)}function ufe(e,t){return ffe(e)||pfe(e,t)||mfe(e,t)||dfe()}function dfe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 511In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mfe(e,t){if(e){if(typeof e=="string")return ZN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZN(e,t)}}function ZN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pfe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function ffe(e){if(Array.isArray(e))return e}function XN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function JN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XN(Object(n),!0).forEach(function(r){hfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hfe(e,t,n){return t=gfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gfe(e){var t=vfe(e,"string");return Bm(t)=="symbol"?t:t+""}function vfe(e,t){if(Bm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Bm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eC=function(t,n,r,a,i){var o=Math.min(Math.abs(r)/2,Math.abs(a)/2),l=a>=0?1:-1,c=r>=0?1:-1,u=a>=0&&r>=0||a<0&&r<0?1:0,d;if(o>0&&i instanceof Array){for(var m=[0,0,0,0],p=0,f=4;p<f;p++)m[p]=i[p]>o?o:i[p];d="M".concat(t,",").concat(n+l*m[0]),m[0]>0&&(d+="A ".concat(m[0],",").concat(m[0],",0,0,").concat(u,",").concat(t+c*m[0],",").concat(n)),d+="L ".concat(t+r-c*m[1],",").concat(n),m[1]>0&&(d+="A ".concat(m[1],",").concat(m[1],",0,0,").concat(u,`, 512 `).concat(t+r,",").concat(n+l*m[1])),d+="L ".concat(t+r,",").concat(n+a-l*m[2]),m[2]>0&&(d+="A ".concat(m[2],",").concat(m[2],",0,0,").concat(u,`, 513 `).concat(t+r-c*m[2],",").concat(n+a)),d+="L ".concat(t+c*m[3],",").concat(n+a),m[3]>0&&(d+="A ".concat(m[3],",").concat(m[3],",0,0,").concat(u,`, 514 `).concat(t,",").concat(n+a-l*m[3])),d+="Z"}else if(o>0&&i===+i&&i>0){var g=Math.min(o,i);d="M ".concat(t,",").concat(n+l*g,` 515 A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+c*g,",").concat(n,` 516 L `).concat(t+r-c*g,",").concat(n,` 517 A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+r,",").concat(n+l*g,` 518 L `).concat(t+r,",").concat(n+a-l*g,` 519 A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+r-c*g,",").concat(n+a,` 520 L `).concat(t+c*g,",").concat(n+a,` 521 A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t,",").concat(n+a-l*g," Z")}else d="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return d},yfe=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,i=n.x,o=n.y,l=n.width,c=n.height;if(Math.abs(l)>0&&Math.abs(c)>0){var u=Math.min(i,i+l),d=Math.max(i,i+l),m=Math.min(o,o+c),p=Math.max(o,o+c);return r>=u&&r<=d&&a>=m&&a<=p}return!1},xfe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ZS=function(t){var n=JN(JN({},xfe),t),r=S.useRef(),a=S.useState(-1),i=ufe(a,2),o=i[0],l=i[1];S.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var w=r.current.getTotalLength();w&&l(w)}catch{}},[]);var c=n.x,u=n.y,d=n.width,m=n.height,p=n.radius,f=n.className,g=n.animationEasing,h=n.animationDuration,v=n.animationBegin,y=n.isAnimationActive,x=n.isUpdateAnimationActive;if(c!==+c||u!==+u||d!==+d||m!==+m||d===0||m===0)return null;var b=We("recharts-rectangle",f);return x?M.createElement(Sa,{canBegin:o>0,from:{width:d,height:m,x:c,y:u},to:{width:d,height:m,x:c,y:u},duration:h,animationEasing:g,isActive:x},function(w){var k=w.width,j=w.height,A=w.x,P=w.y;return M.createElement(Sa,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:h,isActive:y,easing:g},M.createElement("path",Mg({},Me(n,!0),{className:b,d:eC(A,P,k,j,p),ref:r})))}):M.createElement("path",Mg({},Me(n,!0),{className:b,d:eC(c,u,d,m,p)}))};function T1(){return T1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T1.apply(this,arguments)}var Fy=function(t){var n=t.cx,r=t.cy,a=t.r,i=t.className,o=We("recharts-dot",i);return n===+n&&r===+r&&a===+a?M.createElement("circle",T1({},Me(t,!1),eg(t),{className:o,cx:n,cy:r,r:a})):null};function qm(e){"@babel/helpers - typeof";return qm=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},qm(e)}var bfe=["x","y","top","left","width","height","className"];function O1(){return O1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O1.apply(this,arguments)}function tC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function wfe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tC(Object(n),!0).forEach(function(r){kfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kfe(e,t,n){return t=Sfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sfe(e){var t=jfe(e,"string");return qm(t)=="symbol"?t:t+""}function jfe(e,t){if(qm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(qm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pfe(e,t){if(e==null)return{};var n=Afe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Afe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var _fe=function(t,n,r,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(n,"h").concat(r)},Nfe=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,o=t.top,l=o===void 0?0:o,c=t.left,u=c===void 0?0:c,d=t.width,m=d===void 0?0:d,p=t.height,f=p===void 0?0:p,g=t.className,h=Pfe(t,bfe),v=wfe({x:r,y:i,top:l,left:u,width:m,height:f},h);return!se(r)||!se(i)||!se(m)||!se(f)||!se(l)||!se(u)?null:M.createElement("path",O1({},Me(v,!0),{className:We("recharts-cross",g),d:_fe(r,i,m,f,l,u)}))},Cfe=b3,Efe=Cfe(Object.getPrototypeOf,Object),Tfe=Efe,Ofe=Vi,Ife=Tfe,Mfe=Hi,$fe="[object Object]",Ffe=Function.prototype,Rfe=Object.prototype,s$=Ffe.toString,Dfe=Rfe.hasOwnProperty,Lfe=s$.call(Object);function zfe(e){if(!Mfe(e)||Ofe(e)!=$fe)return!1;var t=Ife(e);if(t===null)return!0;var n=Dfe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&s$.call(n)==Lfe}var Bfe=zfe;const qfe=Qe(Bfe);var Ufe=Vi,Wfe=Hi,Vfe="[object Boolean]";function Hfe(e){return e===!0||e===!1||Wfe(e)&&Ufe(e)==Vfe}var Kfe=Hfe;const Gfe=Qe(Kfe);function Um(e){"@babel/helpers - typeof";return Um=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},Um(e)}function $g(){return $g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$g.apply(this,arguments)}function Qfe(e,t){return Jfe(e)||Xfe(e,t)||Zfe(e,t)||Yfe()}function Yfe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 522In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zfe(e,t){if(e){if(typeof e=="string")return nC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nC(e,t)}}function nC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xfe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Jfe(e){if(Array.isArray(e))return e}function rC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function aC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rC(Object(n),!0).forEach(function(r){ehe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ehe(e,t,n){return t=the(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function the(e){var t=nhe(e,"string");return Um(t)=="symbol"?t:t+""}function nhe(e,t){if(Um(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Um(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iC=function(t,n,r,a,i){var o=r-a,l;return l="M ".concat(t,",").concat(n),l+="L ".concat(t+r,",").concat(n),l+="L ".concat(t+r-o/2,",").concat(n+i),l+="L ".concat(t+r-o/2-a,",").concat(n+i),l+="L ".concat(t,",").concat(n," Z"),l},rhe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ahe=function(t){var n=aC(aC({},rhe),t),r=S.useRef(),a=S.useState(-1),i=Qfe(a,2),o=i[0],l=i[1];S.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var b=r.current.getTotalLength();b&&l(b)}catch{}},[]);var c=n.x,u=n.y,d=n.upperWidth,m=n.lowerWidth,p=n.height,f=n.className,g=n.animationEasing,h=n.animationDuration,v=n.animationBegin,y=n.isUpdateAnimationActive;if(c!==+c||u!==+u||d!==+d||m!==+m||p!==+p||d===0&&m===0||p===0)return null;var x=We("recharts-trapezoid",f);return y?M.createElement(Sa,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:p,x:c,y:u},to:{upperWidth:d,lowerWidth:m,height:p,x:c,y:u},duration:h,animationEasing:g,isActive:y},function(b){var w=b.upperWidth,k=b.lowerWidth,j=b.height,A=b.x,P=b.y;return M.createElement(Sa,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:h,easing:g},M.createElement("path",$g({},Me(n,!0),{className:x,d:iC(A,P,w,k,j),ref:r})))}):M.createElement("g",null,M.createElement("path",$g({},Me(n,!0),{className:x,d:iC(c,u,d,m,p)})))},ihe=["option","shapeType","propTransformer","activeClassName","isActive"];function Wm(e){"@babel/helpers - typeof";return Wm=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},Wm(e)}function ohe(e,t){if(e==null)return{};var n=she(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function she(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function oC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Fg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oC(Object(n),!0).forEach(function(r){lhe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lhe(e,t,n){return t=che(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function che(e){var t=uhe(e,"string");return Wm(t)=="symbol"?t:t+""}function uhe(e,t){if(Wm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Wm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dhe(e,t){return Fg(Fg({},t),e)}function mhe(e,t){return e==="symbols"}function sC(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return M.createElement(ZS,n);case"trapezoid":return M.createElement(ahe,n);case"sector":return M.createElement(Q6,n);case"symbols":if(mhe(t))return M.createElement(Sy,n);break;default:return null}}function phe(e){return S.isValidElement(e)?e.props:e}function I1(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?dhe:r,i=e.activeClassName,o=i===void 0?"recharts-active-shape":i,l=e.isActive,c=ohe(e,ihe),u;if(S.isValidElement(t))u=S.cloneElement(t,Fg(Fg({},c),phe(t)));else if(Le(t))u=t(c);else if(qfe(t)&&!Gfe(t)){var d=a(t,c);u=M.createElement(sC,{shapeType:n,elementProps:d})}else{var m=c;u=M.createElement(sC,{shapeType:n,elementProps:m})}return l?M.createElement(Xe,{className:o},u):u}function Ry(e,t){return t!=null&&"trapezoids"in e.props}function Dy(e,t){return t!=null&&"sectors"in e.props}function Vm(e,t){return t!=null&&"points"in e.props}function fhe(e,t){var n,r,a=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,i=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return a&&i}function hhe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function ghe(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function vhe(e,t){var n;return Ry(e,t)?n=fhe:Dy(e,t)?n=hhe:Vm(e,t)&&(n=ghe),n}function yhe(e,t){var n;return Ry(e,t)?n="trapezoids":Dy(e,t)?n="sectors":Vm(e,t)&&(n="points"),n}function xhe(e,t){if(Ry(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(Dy(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return Vm(e,t)?t.payload:{}}function bhe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=yhe(n,t),i=xhe(n,t),o=r.filter(function(c,u){var d=Ks(i,c),m=n.props[a].filter(function(g){var h=vhe(n,t);return h(g,t)}),p=n.props[a].indexOf(m[m.length-1]),f=u===p;return d&&f}),l=r.indexOf(o[o.length-1]);return l}var whe=Math.ceil,khe=Math.max;function She(e,t,n,r){for(var a=-1,i=khe(whe((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++a]=e,e+=n;return o}var jhe=She,Phe=L3,lC=1/0,Ahe=17976931348623157e292;function _he(e){if(!e)return e===0?e:0;if(e=Phe(e),e===lC||e===-lC){var t=e<0?-1:1;return t*Ahe}return e===e?e:0}var l$=_he,Nhe=jhe,Che=Ay,bb=l$;function Ehe(e){return function(t,n,r){return r&&typeof r!="number"&&Che(t,n,r)&&(n=r=void 0),t=bb(t),n===void 0?(n=t,t=0):n=bb(n),r=r===void 0?t<n?1:-1:bb(r),Nhe(t,n,r,e)}}var The=Ehe,Ohe=The,Ihe=Ohe(),Mhe=Ihe;const Rg=Qe(Mhe);function Hm(e){"@babel/helpers - typeof";return Hm=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},Hm(e)}function cC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function uC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cC(Object(n),!0).forEach(function(r){c$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c$(e,t,n){return t=$he(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $he(e){var t=Fhe(e,"string");return Hm(t)=="symbol"?t:t+""}function Fhe(e,t){if(Hm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Hm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rhe=["Webkit","Moz","O","ms"],Dhe=function(t,n){var r=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=Rhe.reduce(function(i,o){return uC(uC({},i),{},c$({},o+r,n))},{});return a[t]=n,a};function Cc(e){"@babel/helpers - typeof";return Cc=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},Cc(e)}function Dg(){return Dg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dg.apply(this,arguments)}function dC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function wb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dC(Object(n),!0).forEach(function(r){dr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d$(r.key),r)}}function zhe(e,t,n){return t&&mC(e.prototype,t),n&&mC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bhe(e,t,n){return t=Lg(t),qhe(e,u$()?Reflect.construct(t,n||[],Lg(e).constructor):t.apply(e,n))}function qhe(e,t){if(t&&(Cc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Uhe(e)}function Uhe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u$=function(){return!!e})()}function Lg(e){return Lg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Lg(e)}function Whe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M1(e,t)}function M1(e,t){return M1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},M1(e,t)}function dr(e,t,n){return t=d$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d$(e){var t=Vhe(e,"string");return Cc(t)=="symbol"?t:t+""}function Vhe(e,t){if(Cc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Cc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hhe=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,i=t.x,o=t.width,l=t.travellerWidth;if(!n||!n.length)return{};var c=n.length,u=Nd().domain(Rg(0,c)).range([i,i+o-l]),d=u.domain().map(function(m){return u(m)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(a),scale:u,scaleValues:d}},pC=function(t){return t.changedTouches&&!!t.changedTouches.length},Ec=function(e){function t(n){var r;return Lhe(this,t),r=Bhe(this,t,[n]),dr(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),dr(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),dr(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=r.props,i=a.endIndex,o=a.onDragEnd,l=a.startIndex;o==null||o({endIndex:i,startIndex:l})}),r.detachDragEndListener()}),dr(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),dr(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),dr(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),dr(r,"handleSlideDragStart",function(a){var i=pC(a)?a.changedTouches[0]:a;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return Whe(t,e),zhe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var a=r.startX,i=r.endX,o=this.state.scaleValues,l=this.props,c=l.gap,u=l.data,d=u.length-1,m=Math.min(a,i),p=Math.max(a,i),f=t.getIndexInRange(o,m),g=t.getIndexInRange(o,p);return{startIndex:f-f%c,endIndex:g===d?d:g-g%c}}},{key:"getTextOfTick",value:function(r){var a=this.props,i=a.data,o=a.tickFormatter,l=a.dataKey,c=Xt(i[r],l,r);return Le(o)?o(c,r):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var a=this.state,i=a.slideMoveStartX,o=a.startX,l=a.endX,c=this.props,u=c.x,d=c.width,m=c.travellerWidth,p=c.startIndex,f=c.endIndex,g=c.onChange,h=r.pageX-i;h>0?h=Math.min(h,u+d-m-l,u+d-m-o):h<0&&(h=Math.max(h,u-o,u-l));var v=this.getIndex({startX:o+h,endX:l+h});(v.startIndex!==p||v.endIndex!==f)&&g&&g(v),this.setState({startX:o+h,endX:l+h,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var i=pC(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var a=this.state,i=a.brushMoveStartX,o=a.movingTravellerId,l=a.endX,c=a.startX,u=this.state[o],d=this.props,m=d.x,p=d.width,f=d.travellerWidth,g=d.onChange,h=d.gap,v=d.data,y={startX:this.state.startX,endX:this.state.endX},x=r.pageX-i;x>0?x=Math.min(x,m+p-f-u):x<0&&(x=Math.max(x,m-u)),y[o]=u+x;var b=this.getIndex(y),w=b.startIndex,k=b.endIndex,j=function(){var P=v.length-1;return o==="startX"&&(l>c?w%h===0:k%h===0)||l<c&&k===P||o==="endX"&&(l>c?k%h===0:w%h===0)||l>c&&k===P};this.setState(dr(dr({},o,u+x),"brushMoveStartX",r.pageX),function(){g&&j()&&g(b)})}},{key:"handleTravellerMoveKeyboard",value:function(r,a){var i=this,o=this.state,l=o.scaleValues,c=o.startX,u=o.endX,d=this.state[a],m=l.indexOf(d);if(m!==-1){var p=m+r;if(!(p===-1||p>=l.length)){var f=l[p];a==="startX"&&f>=u||a==="endX"&&f<=c||this.setState(dr({},a,f),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,a=r.x,i=r.y,o=r.width,l=r.height,c=r.fill,u=r.stroke;return M.createElement("rect",{stroke:u,fill:c,x:a,y:i,width:o,height:l})}},{key:"renderPanorama",value:function(){var r=this.props,a=r.x,i=r.y,o=r.width,l=r.height,c=r.data,u=r.children,d=r.padding,m=S.Children.only(u);return m?M.cloneElement(m,{x:a,y:i,width:o,height:l,margin:d,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(r,a){var i,o,l=this,c=this.props,u=c.y,d=c.travellerWidth,m=c.height,p=c.traveller,f=c.ariaLabel,g=c.data,h=c.startIndex,v=c.endIndex,y=Math.max(r,this.props.x),x=wb(wb({},Me(this.props,!1)),{},{x:y,y:u,width:d,height:m}),b=f||"Min value: ".concat((i=g[h])===null||i===void 0?void 0:i.name,", Max value: ").concat((o=g[v])===null||o===void 0?void 0:o.name);return M.createElement(Xe,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(k){["ArrowLeft","ArrowRight"].includes(k.key)&&(k.preventDefault(),k.stopPropagation(),l.handleTravellerMoveKeyboard(k.key==="ArrowRight"?1:-1,a))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(p,x))}},{key:"renderSlide",value:function(r,a){var i=this.props,o=i.y,l=i.height,c=i.stroke,u=i.travellerWidth,d=Math.min(r,a)+u,m=Math.max(Math.abs(a-r)-u,0);return M.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:d,y:o,width:m,height:l})}},{key:"renderText",value:function(){var r=this.props,a=r.startIndex,i=r.endIndex,o=r.y,l=r.height,c=r.travellerWidth,u=r.stroke,d=this.state,m=d.startX,p=d.endX,f=5,g={pointerEvents:"none",fill:u};return M.createElement(Xe,{className:"recharts-brush-texts"},M.createElement(fg,Dg({textAnchor:"end",verticalAnchor:"middle",x:Math.min(m,p)-f,y:o+l/2},g),this.getTextOfTick(a)),M.createElement(fg,Dg({textAnchor:"start",verticalAnchor:"middle",x:Math.max(m,p)+c+f,y:o+l/2},g),this.getTextOfTick(i)))}},{key:"render",value:function(){var r=this.props,a=r.data,i=r.className,o=r.children,l=r.x,c=r.y,u=r.width,d=r.height,m=r.alwaysShowText,p=this.state,f=p.startX,g=p.endX,h=p.isTextActive,v=p.isSlideMoving,y=p.isTravellerMoving,x=p.isTravellerFocused;if(!a||!a.length||!se(l)||!se(c)||!se(u)||!se(d)||u<=0||d<=0)return null;var b=We("recharts-brush",i),w=M.Children.count(o)===1,k=Dhe("userSelect","none");return M.createElement(Xe,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:k},this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(f,g),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(g,"endX"),(h||v||y||x||m)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var a=r.x,i=r.y,o=r.width,l=r.height,c=r.stroke,u=Math.floor(i+l/2)-1;return M.createElement(M.Fragment,null,M.createElement("rect",{x:a,y:i,width:o,height:l,fill:c,stroke:"none"}),M.createElement("line",{x1:a+1,y1:u,x2:a+o-1,y2:u,fill:"none",stroke:"#fff"}),M.createElement("line",{x1:a+1,y1:u+2,x2:a+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,a){var i;return M.isValidElement(r)?i=M.cloneElement(r,a):Le(r)?i=r(a):i=t.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(r,a){var i=r.data,o=r.width,l=r.x,c=r.travellerWidth,u=r.updateId,d=r.startIndex,m=r.endIndex;if(i!==a.prevData||u!==a.prevUpdateId)return wb({prevData:i,prevTravellerWidth:c,prevUpdateId:u,prevX:l,prevWidth:o},i&&i.length?Hhe({data:i,width:o,x:l,travellerWidth:c,startIndex:d,endIndex:m}):{scale:null,scaleValues:null});if(a.scale&&(o!==a.prevWidth||l!==a.prevX||c!==a.prevTravellerWidth)){a.scale.range([l,l+o-c]);var p=a.scale.domain().map(function(f){return a.scale(f)});return{prevData:i,prevTravellerWidth:c,prevUpdateId:u,prevX:l,prevWidth:o,startX:a.scale(r.startIndex),endX:a.scale(r.endIndex),scaleValues:p}}return null}},{key:"getIndexInRange",value:function(r,a){for(var i=r.length,o=0,l=i-1;l-o>1;){var c=Math.floor((o+l)/2);r[c]>a?l=c:o=c}return a>=r[l]?l:o}}])}(S.PureComponent);dr(Ec,"displayName","Brush");dr(Ec,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Khe=SS;function Ghe(e,t){var n;return Khe(e,function(r,a,i){return n=t(r,a,i),!n}),!!n}var Qhe=Ghe,Yhe=m3,Zhe=Xo,Xhe=Qhe,Jhe=ar,ege=Ay;function tge(e,t,n){var r=Jhe(e)?Yhe:Xhe;return n&&ege(e,t,n)&&(t=void 0),r(e,Zhe(t))}var nge=tge;const rge=Qe(nge);var Ga=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},fC=M3;function age(e,t,n){t=="__proto__"&&fC?fC(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var ige=age,oge=ige,sge=O3,lge=Xo;function cge(e,t){var n={};return t=lge(t),sge(e,function(r,a,i){oge(n,a,t(r,a,i))}),n}var uge=cge;const dge=Qe(uge);function mge(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var pge=mge,fge=SS;function hge(e,t){var n=!0;return fge(e,function(r,a,i){return n=!!t(r,a,i),n}),n}var gge=hge,vge=pge,yge=gge,xge=Xo,bge=ar,wge=Ay;function kge(e,t,n){var r=bge(e)?vge:yge;return n&&wge(e,t,n)&&(t=void 0),r(e,xge(t))}var Sge=kge;const m$=Qe(Sge);var jge=["x","y"];function Km(e){"@babel/helpers - typeof";return Km=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},Km(e)}function $1(){return $1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$1.apply(this,arguments)}function hC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Yu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hC(Object(n),!0).forEach(function(r){Pge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pge(e,t,n){return t=Age(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Age(e){var t=_ge(e,"string");return Km(t)=="symbol"?t:t+""}function _ge(e,t){if(Km(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Km(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nge(e,t){if(e==null)return{};var n=Cge(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cge(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ege(e,t){var n=e.x,r=e.y,a=Nge(e,jge),i="".concat(n),o=parseInt(i,10),l="".concat(r),c=parseInt(l,10),u="".concat(t.height||a.height),d=parseInt(u,10),m="".concat(t.width||a.width),p=parseInt(m,10);return Yu(Yu(Yu(Yu(Yu({},t),a),o?{x:o}:{}),c?{y:c}:{}),{},{height:d,width:p,name:t.name,radius:t.radius})}function gC(e){return M.createElement(I1,$1({shapeType:"rectangle",propTransformer:Ege,activeClassName:"recharts-active-bar"},e))}var Tge=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,a){if(typeof t=="number")return t;var i=typeof r=="number";return i?t(r,a):(i||Qs(),n)}},Oge=["value","background"],p$;function Tc(e){"@babel/helpers - typeof";return Tc=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},Tc(e)}function Ige(e,t){if(e==null)return{};var n=Mge(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mge(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function zg(){return zg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zg.apply(this,arguments)}function vC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vC(Object(n),!0).forEach(function(r){So(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h$(r.key),r)}}function Fge(e,t,n){return t&&yC(e.prototype,t),n&&yC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rge(e,t,n){return t=Bg(t),Dge(e,f$()?Reflect.construct(t,n||[],Bg(e).constructor):t.apply(e,n))}function Dge(e,t){if(t&&(Tc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lge(e)}function Lge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f$=function(){return!!e})()}function Bg(e){return Bg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bg(e)}function zge(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F1(e,t)}function F1(e,t){return F1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},F1(e,t)}function So(e,t,n){return t=h$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h$(e){var t=Bge(e,"string");return Tc(t)=="symbol"?t:t+""}function Bge(e,t){if(Tc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Tc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fn=function(e){function t(){var n;$ge(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Rge(this,t,[].concat(a)),So(n,"state",{isAnimationFinished:!1}),So(n,"id",al("recharts-bar-")),So(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),o&&o()}),So(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),o&&o()}),n}return zge(t,e),Fge(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,i=this.props,o=i.shape,l=i.dataKey,c=i.activeIndex,u=i.activeBar,d=Me(this.props,!1);return r&&r.map(function(m,p){var f=p===c,g=f?u:o,h=Bt(Bt(Bt({},d),m),{},{isActive:f,option:g,index:p,dataKey:l,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return M.createElement(Xe,zg({className:"recharts-bar-rectangle"},gm(a.props,m,p),{key:"rectangle-".concat(m==null?void 0:m.x,"-").concat(m==null?void 0:m.y,"-").concat(m==null?void 0:m.value)}),M.createElement(gC,h))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,a=this.props,i=a.data,o=a.layout,l=a.isAnimationActive,c=a.animationBegin,u=a.animationDuration,d=a.animationEasing,m=a.animationId,p=this.state.prevData;return M.createElement(Sa,{begin:c,duration:u,isActive:l,easing:d,from:{t:0},to:{t:1},key:"bar-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(f){var g=f.t,h=i.map(function(v,y){var x=p&&p[y];if(x){var b=Rt(x.x,v.x),w=Rt(x.y,v.y),k=Rt(x.width,v.width),j=Rt(x.height,v.height);return Bt(Bt({},v),{},{x:b(g),y:w(g),width:k(g),height:j(g)})}if(o==="horizontal"){var A=Rt(0,v.height),P=A(g);return Bt(Bt({},v),{},{y:v.y+v.height-P,height:P})}var _=Rt(0,v.width),N=_(g);return Bt(Bt({},v),{},{width:N})});return M.createElement(Xe,null,r.renderRectanglesStatically(h))})}},{key:"renderRectangles",value:function(){var r=this.props,a=r.data,i=r.isAnimationActive,o=this.state.prevData;return i&&a&&a.length&&(!o||!Ks(o,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var r=this,a=this.props,i=a.data,o=a.dataKey,l=a.activeIndex,c=Me(this.props.background,!1);return i.map(function(u,d){u.value;var m=u.background,p=Ige(u,Oge);if(!m)return null;var f=Bt(Bt(Bt(Bt(Bt({},p),{},{fill:"#eee"},m),c),gm(r.props,u,d)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:o,index:d,className:"recharts-bar-background-rectangle"});return M.createElement(gC,zg({key:"background-bar-".concat(d),option:r.props.background,isActive:d===l},f))})}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.data,l=i.xAxis,c=i.yAxis,u=i.layout,d=i.children,m=nr(d,xu);if(!m)return null;var p=u==="vertical"?o[0].height/2:o[0].width/2,f=function(v,y){var x=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:x,errorVal:Xt(v,y)}},g={clipPath:r?"url(#clipPath-".concat(a,")"):null};return M.createElement(Xe,g,m.map(function(h){return M.cloneElement(h,{key:"error-bar-".concat(a,"-").concat(h.props.dataKey),data:o,xAxis:l,yAxis:c,layout:u,offset:p,dataPointFormatter:f})}))}},{key:"render",value:function(){var r=this.props,a=r.hide,i=r.data,o=r.className,l=r.xAxis,c=r.yAxis,u=r.left,d=r.top,m=r.width,p=r.height,f=r.isAnimationActive,g=r.background,h=r.id;if(a||!i||!i.length)return null;var v=this.state.isAnimationFinished,y=We("recharts-bar",o),x=l&&l.allowDataOverflow,b=c&&c.allowDataOverflow,w=x||b,k=$e(h)?this.id:h;return M.createElement(Xe,{className:y},x||b?M.createElement("defs",null,M.createElement("clipPath",{id:"clipPath-".concat(k)},M.createElement("rect",{x:x?u:u-m/2,y:b?d:d-p/2,width:x?m:m*2,height:b?p:p*2}))):null,M.createElement(Xe,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(k,")"):null},g?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,k),(!f||v)&&Ka.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:a.curData}:r.data!==a.curData?{curData:r.data}:null}}])}(S.PureComponent);p$=fn;So(fn,"displayName","Bar");So(fn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ga.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});So(fn,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,a=e.bandSize,i=e.xAxis,o=e.yAxis,l=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,d=e.dataStartIndex,m=e.displayedData,p=e.offset,f=Nde(r,n);if(!f)return null;var g=t.layout,h=n.type.defaultProps,v=h!==void 0?Bt(Bt({},h),n.props):n.props,y=v.dataKey,x=v.children,b=v.minPointSize,w=g==="horizontal"?o:i,k=u?w.scale.domain():null,j=Fde({numericAxis:w}),A=nr(x,hu),P=m.map(function(_,N){var C,E,T,O,F,D;u?C=Cde(u[d+N],k):(C=Xt(_,y),Array.isArray(C)||(C=[j,C]));var z=Tge(b,p$.defaultProps.minPointSize)(C[1],N);if(g==="horizontal"){var R,B=[o.scale(C[0]),o.scale(C[1])],I=B[0],H=B[1];E=vN({axis:i,ticks:l,bandSize:a,offset:f.offset,entry:_,index:N}),T=(R=H??I)!==null&&R!==void 0?R:void 0,O=f.size;var q=I-H;if(F=Number.isNaN(q)?0:q,D={x:E,y:o.y,width:O,height:o.height},Math.abs(z)>0&&Math.abs(F)<Math.abs(z)){var $=ma(F||z)*(Math.abs(z)-Math.abs(F));T-=$,F+=$}}else{var X=[i.scale(C[0]),i.scale(C[1])],pe=X[0],te=X[1];if(E=pe,T=vN({axis:o,ticks:c,bandSize:a,offset:f.offset,entry:_,index:N}),O=te-pe,F=f.size,D={x:i.x,y:T,width:i.width,height:F},Math.abs(z)>0&&Math.abs(O)<Math.abs(z)){var de=ma(O||z)*(Math.abs(z)-Math.abs(O));O+=de}}return Bt(Bt(Bt({},_),{},{x:E,y:T,width:O,height:F,value:u?C:C[1],payload:_,background:D},A&&A[N]&&A[N].props),{},{tooltipPayload:[H6(n,_)],tooltipPosition:{x:E+O/2,y:T+F/2}})});return Bt({data:P,layout:g},p)});function Gm(e){"@babel/helpers - typeof";return Gm=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},Gm(e)}function qge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,g$(r.key),r)}}function Uge(e,t,n){return t&&xC(e.prototype,t),n&&xC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function bC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ra(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bC(Object(n),!0).forEach(function(r){Ly(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ly(e,t,n){return t=g$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g$(e){var t=Wge(e,"string");return Gm(t)=="symbol"?t:t+""}function Wge(e,t){if(Gm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Gm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zy=function(t,n,r,a,i){var o=t.width,l=t.height,c=t.layout,u=t.children,d=Object.keys(n),m={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:l-r.bottom,bottomMirror:l-r.bottom},p=!!hr(u,fn);return d.reduce(function(f,g){var h=n[g],v=h.orientation,y=h.domain,x=h.padding,b=x===void 0?{}:x,w=h.mirror,k=h.reversed,j="".concat(v).concat(w?"Mirror":""),A,P,_,N,C;if(h.type==="number"&&(h.padding==="gap"||h.padding==="no-gap")){var E=y[1]-y[0],T=1/0,O=h.categoricalDomain.sort();if(O.forEach(function(X,pe){pe>0&&(T=Math.min((X||0)-(O[pe-1]||0),T))}),Number.isFinite(T)){var F=T/E,D=h.layout==="vertical"?r.height:r.width;if(h.padding==="gap"&&(A=F*D/2),h.padding==="no-gap"){var z=Hs(t.barCategoryGap,F*D),R=F*D/2;A=R-z-(R-z)/D*z}}}a==="xAxis"?P=[r.left+(b.left||0)+(A||0),r.left+r.width-(b.right||0)-(A||0)]:a==="yAxis"?P=c==="horizontal"?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(A||0),r.top+r.height-(b.bottom||0)-(A||0)]:P=h.range,k&&(P=[P[1],P[0]]);var B=Ade(h,i,p),I=B.scale,H=B.realScaleType;I.domain(y).range(P),_de(I);var q=$de(I,ra(ra({},h),{},{realScaleType:H}));a==="xAxis"?(C=v==="top"&&!w||v==="bottom"&&w,_=r.left,N=m[j]-C*h.height):a==="yAxis"&&(C=v==="left"&&!w||v==="right"&&w,_=m[j]-C*h.width,N=r.top);var $=ra(ra(ra({},h),q),{},{realScaleType:H,x:_,y:N,scale:I,width:a==="xAxis"?r.width:h.width,height:a==="yAxis"?r.height:h.height});return $.bandSize=Ng($,q),!h.hide&&a==="xAxis"?m[j]+=(C?-1:1)*$.height:h.hide||(m[j]+=(C?-1:1)*$.width),ra(ra({},f),{},Ly({},g,$))},{})},v$=function(t,n){var r=t.x,a=t.y,i=n.x,o=n.y;return{x:Math.min(r,i),y:Math.min(a,o),width:Math.abs(i-r),height:Math.abs(o-a)}},Vge=function(t){var n=t.x1,r=t.y1,a=t.x2,i=t.y2;return v$({x:n,y:r},{x:a,y:i})},y$=function(){function e(t){qge(this,e),this.scale=t}return Uge(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.bandAware,i=r.position;if(n!==void 0){if(i)switch(i){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(n)+l}default:return this.scale(n)}if(a){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+c}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),a=r[0],i=r[r.length-1];return a<=i?n>=a&&n<=i:n>=i&&n<=a}}],[{key:"create",value:function(n){return new e(n)}}])}();Ly(y$,"EPS",1e-4);var XS=function(t){var n=Object.keys(t).reduce(function(r,a){return ra(ra({},r),{},Ly({},a,y$.create(t[a])))},{});return ra(ra({},n),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,l=i.position;return dge(a,function(c,u){return n[u].apply(c,{bandAware:o,position:l})})},isInRange:function(a){return m$(a,function(i,o){return n[o].isInRange(i)})}})};function Hge(e){return(e%180+180)%180}var Kge=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=Hge(a),o=i*Math.PI/180,l=Math.atan(r/n),c=o>l&&o<Math.PI-l?r/Math.sin(o):n/Math.cos(o);return Math.abs(c)},Gge=Xo,Qge=Tp,Yge=jy;function Zge(e){return function(t,n,r){var a=Object(t);if(!Qge(t)){var i=Gge(n);t=Yge(t),n=function(l){return i(a[l],l,a)}}var o=e(t,n,r);return o>-1?a[i?t[o]:o]:void 0}}var Xge=Zge,Jge=l$;function eve(e){var t=Jge(e),n=t%1;return t===t?n?t-n:t:0}var tve=eve,nve=A3,rve=Xo,ave=tve,ive=Math.max;function ove(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=n==null?0:ave(n);return a<0&&(a=ive(r+a,0)),nve(e,rve(t),a)}var sve=ove,lve=Xge,cve=sve,uve=lve(cve),dve=uve;const mve=Qe(dve);var pve=mQ(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),JS=S.createContext(void 0),ej=S.createContext(void 0),x$=S.createContext(void 0),b$=S.createContext({}),w$=S.createContext(void 0),k$=S.createContext(0),S$=S.createContext(0),wC=function(t){var n=t.state,r=n.xAxisMap,a=n.yAxisMap,i=n.offset,o=t.clipPathId,l=t.children,c=t.width,u=t.height,d=pve(i);return M.createElement(JS.Provider,{value:r},M.createElement(ej.Provider,{value:a},M.createElement(b$.Provider,{value:i},M.createElement(x$.Provider,{value:d},M.createElement(w$.Provider,{value:o},M.createElement(k$.Provider,{value:u},M.createElement(S$.Provider,{value:c},l)))))))},fve=function(){return S.useContext(w$)},j$=function(t){var n=S.useContext(JS);n==null&&Qs();var r=n[t];return r==null&&Qs(),r},hve=function(){var t=S.useContext(JS);return co(t)},gve=function(){var t=S.useContext(ej),n=mve(t,function(r){return m$(r.domain,Number.isFinite)});return n||co(t)},P$=function(t){var n=S.useContext(ej);n==null&&Qs();var r=n[t];return r==null&&Qs(),r},vve=function(){var t=S.useContext(x$);return t},yve=function(){return S.useContext(b$)},tj=function(){return S.useContext(S$)},nj=function(){return S.useContext(k$)};function Oc(e){"@babel/helpers - typeof";return Oc=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},Oc(e)}function xve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_$(r.key),r)}}function wve(e,t,n){return t&&bve(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kve(e,t,n){return t=qg(t),Sve(e,A$()?Reflect.construct(t,n||[],qg(e).constructor):t.apply(e,n))}function Sve(e,t){if(t&&(Oc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jve(e)}function jve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(A$=function(){return!!e})()}function qg(e){return qg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qg(e)}function Pve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R1(e,t)}function R1(e,t){return R1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},R1(e,t)}function kC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function SC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kC(Object(n),!0).forEach(function(r){rj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rj(e,t,n){return t=_$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _$(e){var t=Ave(e,"string");return Oc(t)=="symbol"?t:t+""}function Ave(e,t){if(Oc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Oc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _ve(e,t){return Tve(e)||Eve(e,t)||Cve(e,t)||Nve()}function Nve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 523In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cve(e,t){if(e){if(typeof e=="string")return jC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jC(e,t)}}function jC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Eve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Tve(e){if(Array.isArray(e))return e}function D1(){return D1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D1.apply(this,arguments)}var Ove=function(t,n){var r;return M.isValidElement(t)?r=M.cloneElement(t,n):Le(t)?r=t(n):r=M.createElement("line",D1({},n,{className:"recharts-reference-line-line"})),r},Ive=function(t,n,r,a,i,o,l,c,u){var d=i.x,m=i.y,p=i.width,f=i.height;if(r){var g=u.y,h=t.y.apply(g,{position:o});if(Ga(u,"discard")&&!t.y.isInRange(h))return null;var v=[{x:d+p,y:h},{x:d,y:h}];return c==="left"?v.reverse():v}if(n){var y=u.x,x=t.x.apply(y,{position:o});if(Ga(u,"discard")&&!t.x.isInRange(x))return null;var b=[{x,y:m+f},{x,y:m}];return l==="top"?b.reverse():b}if(a){var w=u.segment,k=w.map(function(j){return t.apply(j,{position:o})});return Ga(u,"discard")&&rge(k,function(j){return!t.isInRange(j)})?null:k}return null};function Mve(e){var t=e.x,n=e.y,r=e.segment,a=e.xAxisId,i=e.yAxisId,o=e.shape,l=e.className,c=e.alwaysShow,u=fve(),d=j$(a),m=P$(i),p=vve();if(!u||!p)return null;Ci(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=XS({x:d.scale,y:m.scale}),g=Zt(t),h=Zt(n),v=r&&r.length===2,y=Ive(f,g,h,v,p,e.position,d.orientation,m.orientation,e);if(!y)return null;var x=_ve(y,2),b=x[0],w=b.x,k=b.y,j=x[1],A=j.x,P=j.y,_=Ga(e,"hidden")?"url(#".concat(u,")"):void 0,N=SC(SC({clipPath:_},Me(e,!0)),{},{x1:w,y1:k,x2:A,y2:P});return M.createElement(Xe,{className:We("recharts-reference-line",l)},Ove(o,N),jn.renderCallByParent(e,Vge({x1:w,y1:k,x2:A,y2:P})))}var Bo=function(e){function t(){return xve(this,t),kve(this,t,arguments)}return Pve(t,e),wve(t,[{key:"render",value:function(){return M.createElement(Mve,this.props)}}])}(M.Component);rj(Bo,"displayName","ReferenceLine");rj(Bo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function L1(){return L1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L1.apply(this,arguments)}function Ic(e){"@babel/helpers - typeof";return Ic=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},Ic(e)}function PC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function AC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PC(Object(n),!0).forEach(function(r){By(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,C$(r.key),r)}}function Rve(e,t,n){return t&&Fve(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dve(e,t,n){return t=Ug(t),Lve(e,N$()?Reflect.construct(t,n||[],Ug(e).constructor):t.apply(e,n))}function Lve(e,t){if(t&&(Ic(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zve(e)}function zve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(N$=function(){return!!e})()}function Ug(e){return Ug=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ug(e)}function Bve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&z1(e,t)}function z1(e,t){return z1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},z1(e,t)}function By(e,t,n){return t=C$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C$(e){var t=qve(e,"string");return Ic(t)=="symbol"?t:t+""}function qve(e,t){if(Ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Uve=function(t){var n=t.x,r=t.y,a=t.xAxis,i=t.yAxis,o=XS({x:a.scale,y:i.scale}),l=o.apply({x:n,y:r},{bandAware:!0});return Ga(t,"discard")&&!o.isInRange(l)?null:l},Fp=function(e){function t(){return $ve(this,t),Dve(this,t,arguments)}return Bve(t,e),Rve(t,[{key:"render",value:function(){var r=this.props,a=r.x,i=r.y,o=r.r,l=r.alwaysShow,c=r.clipPathId,u=Zt(a),d=Zt(i);if(Ci(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!d)return null;var m=Uve(this.props);if(!m)return null;var p=m.x,f=m.y,g=this.props,h=g.shape,v=g.className,y=Ga(this.props,"hidden")?"url(#".concat(c,")"):void 0,x=AC(AC({clipPath:y},Me(this.props,!0)),{},{cx:p,cy:f});return M.createElement(Xe,{className:We("recharts-reference-dot",v)},t.renderDot(h,x),jn.renderCallByParent(this.props,{x:p-o,y:f-o,width:2*o,height:2*o}))}}])}(M.Component);By(Fp,"displayName","ReferenceDot");By(Fp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});By(Fp,"renderDot",function(e,t){var n;return M.isValidElement(e)?n=M.cloneElement(e,t):Le(e)?n=e(t):n=M.createElement(Fy,L1({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function B1(){return B1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B1.apply(this,arguments)}function Mc(e){"@babel/helpers - typeof";return Mc=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},Mc(e)}function _C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function NC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_C(Object(n),!0).forEach(function(r){qy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_C(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,T$(r.key),r)}}function Hve(e,t,n){return t&&Vve(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kve(e,t,n){return t=Wg(t),Gve(e,E$()?Reflect.construct(t,n||[],Wg(e).constructor):t.apply(e,n))}function Gve(e,t){if(t&&(Mc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qve(e)}function Qve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(E$=function(){return!!e})()}function Wg(e){return Wg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wg(e)}function Yve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q1(e,t)}function q1(e,t){return q1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},q1(e,t)}function qy(e,t,n){return t=T$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T$(e){var t=Zve(e,"string");return Mc(t)=="symbol"?t:t+""}function Zve(e,t){if(Mc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Mc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xve=function(t,n,r,a,i){var o=i.x1,l=i.x2,c=i.y1,u=i.y2,d=i.xAxis,m=i.yAxis;if(!d||!m)return null;var p=XS({x:d.scale,y:m.scale}),f={x:t?p.x.apply(o,{position:"start"}):p.x.rangeMin,y:r?p.y.apply(c,{position:"start"}):p.y.rangeMin},g={x:n?p.x.apply(l,{position:"end"}):p.x.rangeMax,y:a?p.y.apply(u,{position:"end"}):p.y.rangeMax};return Ga(i,"discard")&&(!p.isInRange(f)||!p.isInRange(g))?null:v$(f,g)},Rp=function(e){function t(){return Wve(this,t),Kve(this,t,arguments)}return Yve(t,e),Hve(t,[{key:"render",value:function(){var r=this.props,a=r.x1,i=r.x2,o=r.y1,l=r.y2,c=r.className,u=r.alwaysShow,d=r.clipPathId;Ci(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var m=Zt(a),p=Zt(i),f=Zt(o),g=Zt(l),h=this.props.shape;if(!m&&!p&&!f&&!g&&!h)return null;var v=Xve(m,p,f,g,this.props);if(!v&&!h)return null;var y=Ga(this.props,"hidden")?"url(#".concat(d,")"):void 0;return M.createElement(Xe,{className:We("recharts-reference-area",c)},t.renderRect(h,NC(NC({clipPath:y},Me(this.props,!0)),v)),jn.renderCallByParent(this.props,v))}}])}(M.Component);qy(Rp,"displayName","ReferenceArea");qy(Rp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});qy(Rp,"renderRect",function(e,t){var n;return M.isValidElement(e)?n=M.cloneElement(e,t):Le(e)?n=e(t):n=M.createElement(ZS,B1({},t,{className:"recharts-reference-area-rect"})),n});function O$(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],a=0;a<e.length;a+=t)r.push(e[a]);return r}function Jve(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Kge(r,n)}function eye(e,t,n){var r=n==="width",a=e.x,i=e.y,o=e.width,l=e.height;return t===1?{start:r?a:i,end:r?a+o:i+l}:{start:r?a+o:i+l,end:r?a:i}}function Vg(e,t,n,r,a){if(e*t<e*r||e*t>e*a)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-a)<=0}function tye(e,t){return O$(e,t+1)}function nye(e,t,n,r,a){for(var i=(r||[]).slice(),o=t.start,l=t.end,c=0,u=1,d=o,m=function(){var g=r==null?void 0:r[c];if(g===void 0)return{v:O$(r,u)};var h=c,v,y=function(){return v===void 0&&(v=n(g,h)),v},x=g.coordinate,b=c===0||Vg(e,x,y,d,l);b||(c=0,d=o,u+=1),b&&(d=x+e*(y()/2+a),c+=u)},p;u<=i.length;)if(p=m(),p)return p.v;return[]}function Qm(e){"@babel/helpers - typeof";return Qm=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},Qm(e)}function CC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CC(Object(n),!0).forEach(function(r){rye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rye(e,t,n){return t=aye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aye(e){var t=iye(e,"string");return Qm(t)=="symbol"?t:t+""}function iye(e,t){if(Qm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oye(e,t,n,r,a){for(var i=(r||[]).slice(),o=i.length,l=t.start,c=t.end,u=function(p){var f=i[p],g,h=function(){return g===void 0&&(g=n(f,p)),g};if(p===o-1){var v=e*(f.coordinate+e*h()/2-c);i[p]=f=kn(kn({},f),{},{tickCoord:v>0?f.coordinate-v*e:f.coordinate})}else i[p]=f=kn(kn({},f),{},{tickCoord:f.coordinate});var y=Vg(e,f.tickCoord,h,l,c);y&&(c=f.tickCoord-e*(h()/2+a),i[p]=kn(kn({},f),{},{isShow:!0}))},d=o-1;d>=0;d--)u(d);return i}function sye(e,t,n,r,a,i){var o=(r||[]).slice(),l=o.length,c=t.start,u=t.end;if(i){var d=r[l-1],m=n(d,l-1),p=e*(d.coordinate+e*m/2-u);o[l-1]=d=kn(kn({},d),{},{tickCoord:p>0?d.coordinate-p*e:d.coordinate});var f=Vg(e,d.tickCoord,function(){return m},c,u);f&&(u=d.tickCoord-e*(m/2+a),o[l-1]=kn(kn({},d),{},{isShow:!0}))}for(var g=i?l-1:l,h=function(x){var b=o[x],w,k=function(){return w===void 0&&(w=n(b,x)),w};if(x===0){var j=e*(b.coordinate-e*k()/2-c);o[x]=b=kn(kn({},b),{},{tickCoord:j<0?b.coordinate-j*e:b.coordinate})}else o[x]=b=kn(kn({},b),{},{tickCoord:b.coordinate});var A=Vg(e,b.tickCoord,k,c,u);A&&(c=b.tickCoord+e*(k()/2+a),o[x]=kn(kn({},b),{},{isShow:!0}))},v=0;v<g;v++)h(v);return o}function aj(e,t,n){var r=e.tick,a=e.ticks,i=e.viewBox,o=e.minTickGap,l=e.orientation,c=e.interval,u=e.tickFormatter,d=e.unit,m=e.angle;if(!a||!a.length||!r)return[];if(se(c)||ga.isSsr)return tye(a,typeof c=="number"&&se(c)?c:0);var p=[],f=l==="top"||l==="bottom"?"width":"height",g=d&&f==="width"?_d(d,{fontSize:t,letterSpacing:n}):{width:0,height:0},h=function(b,w){var k=Le(u)?u(b.value,w):b.value;return f==="width"?Jve(_d(k,{fontSize:t,letterSpacing:n}),g,m):_d(k,{fontSize:t,letterSpacing:n})[f]},v=a.length>=2?ma(a[1].coordinate-a[0].coordinate):1,y=eye(i,v,f);return c==="equidistantPreserveStart"?nye(v,y,h,a,o):(c==="preserveStart"||c==="preserveStartEnd"?p=sye(v,y,h,a,o,c==="preserveStartEnd"):p=oye(v,y,h,a,o),p.filter(function(x){return x.isShow}))}var lye=["viewBox"],cye=["viewBox"],uye=["ticks"];function $c(e){"@babel/helpers - typeof";return $c=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},$c(e)}function Dl(){return Dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dl.apply(this,arguments)}function EC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function On(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EC(Object(n),!0).forEach(function(r){ij(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kb(e,t){if(e==null)return{};var n=dye(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dye(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function mye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,M$(r.key),r)}}function pye(e,t,n){return t&&TC(e.prototype,t),n&&TC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function fye(e,t,n){return t=Hg(t),hye(e,I$()?Reflect.construct(t,n||[],Hg(e).constructor):t.apply(e,n))}function hye(e,t){if(t&&($c(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gye(e)}function gye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(I$=function(){return!!e})()}function Hg(e){return Hg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hg(e)}function vye(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U1(e,t)}function U1(e,t){return U1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},U1(e,t)}function ij(e,t,n){return t=M$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M$(e){var t=yye(e,"string");return $c(t)=="symbol"?t:t+""}function yye(e,t){if($c(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wu=function(e){function t(n){var r;return mye(this,t),r=fye(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return vye(t,e),pye(t,[{key:"shouldComponentUpdate",value:function(r,a){var i=r.viewBox,o=kb(r,lye),l=this.props,c=l.viewBox,u=kb(l,cye);return!Yl(i,c)||!Yl(o,u)||!Yl(a,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var a=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var a=this.props,i=a.x,o=a.y,l=a.width,c=a.height,u=a.orientation,d=a.tickSize,m=a.mirror,p=a.tickMargin,f,g,h,v,y,x,b=m?-1:1,w=r.tickSize||d,k=se(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":f=g=r.coordinate,v=o+ +!m*c,h=v-b*w,x=h-b*p,y=k;break;case"left":h=v=r.coordinate,g=i+ +!m*l,f=g-b*w,y=f-b*p,x=k;break;case"right":h=v=r.coordinate,g=i+ +m*l,f=g+b*w,y=f+b*p,x=k;break;default:f=g=r.coordinate,v=o+ +m*c,h=v+b*w,x=h+b*p,y=k;break}return{line:{x1:f,y1:h,x2:g,y2:v},tick:{x:y,y:x}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,a=r.orientation,i=r.mirror,o;switch(a){case"left":o=i?"start":"end";break;case"right":o=i?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,a=r.orientation,i=r.mirror,o="end";switch(a){case"left":case"right":o="middle";break;case"top":o=i?"start":"end";break;default:o=i?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.x,i=r.y,o=r.width,l=r.height,c=r.orientation,u=r.mirror,d=r.axisLine,m=On(On(On({},Me(this.props,!1)),Me(d,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var p=+(c==="top"&&!u||c==="bottom"&&u);m=On(On({},m),{},{x1:a,y1:i+p*l,x2:a+o,y2:i+p*l})}else{var f=+(c==="left"&&!u||c==="right"&&u);m=On(On({},m),{},{x1:a+f*o,y1:i,x2:a+f*o,y2:i+l})}return M.createElement("line",Dl({},m,{className:We("recharts-cartesian-axis-line",qr(d,"className"))}))}},{key:"renderTicks",value:function(r,a,i){var o=this,l=this.props,c=l.tickLine,u=l.stroke,d=l.tick,m=l.tickFormatter,p=l.unit,f=aj(On(On({},this.props),{},{ticks:r}),a,i),g=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),v=Me(this.props,!1),y=Me(d,!1),x=On(On({},v),{},{fill:"none"},Me(c,!1)),b=f.map(function(w,k){var j=o.getTickLineCoord(w),A=j.line,P=j.tick,_=On(On(On(On({textAnchor:g,verticalAnchor:h},v),{},{stroke:"none",fill:u},y),P),{},{index:k,payload:w,visibleTicksCount:f.length,tickFormatter:m});return M.createElement(Xe,Dl({className:"recharts-cartesian-axis-tick",key:"tick-".concat(w.value,"-").concat(w.coordinate,"-").concat(w.tickCoord)},gm(o.props,w,k)),c&&M.createElement("line",Dl({},x,A,{className:We("recharts-cartesian-axis-tick-line",qr(c,"className"))})),d&&t.renderTickItem(d,_,"".concat(Le(m)?m(w.value,k):w.value).concat(p||"")))});return M.createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var r=this,a=this.props,i=a.axisLine,o=a.width,l=a.height,c=a.ticksGenerator,u=a.className,d=a.hide;if(d)return null;var m=this.props,p=m.ticks,f=kb(m,uye),g=p;return Le(c)&&(g=p&&p.length>0?c(this.props):c(f)),o<=0||l<=0||!g||!g.length?null:M.createElement(Xe,{className:We("recharts-cartesian-axis",u),ref:function(v){r.layerReference=v}},i&&this.renderAxisLine(),this.renderTicks(g,this.state.fontSize,this.state.letterSpacing),jn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,i){var o;return M.isValidElement(r)?o=M.cloneElement(r,a):Le(r)?o=r(a):o=M.createElement(fg,Dl({},a,{className:"recharts-cartesian-axis-tick-value"}),i),o}}])}(S.Component);ij(wu,"displayName","CartesianAxis");ij(wu,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var xye=["x1","y1","x2","y2","key"],bye=["offset"];function Ys(e){"@babel/helpers - typeof";return Ys=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},Ys(e)}function OC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OC(Object(n),!0).forEach(function(r){wye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wye(e,t,n){return t=kye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kye(e){var t=Sye(e,"string");return Ys(t)=="symbol"?t:t+""}function Sye(e,t){if(Ys(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ys(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function js(){return js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},js.apply(this,arguments)}function IC(e,t){if(e==null)return{};var n=jye(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jye(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Pye=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,a=t.x,i=t.y,o=t.width,l=t.height,c=t.ry;return M.createElement("rect",{x:a,y:i,ry:c,width:o,height:l,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function $$(e,t){var n;if(M.isValidElement(e))n=M.cloneElement(e,t);else if(Le(e))n=e(t);else{var r=t.x1,a=t.y1,i=t.x2,o=t.y2,l=t.key,c=IC(t,xye),u=Me(c,!1);u.offset;var d=IC(u,bye);n=M.createElement("line",js({},d,{x1:r,y1:a,x2:i,y2:o,fill:"none",key:l}))}return n}function Aye(e){var t=e.x,n=e.width,r=e.horizontal,a=r===void 0?!0:r,i=e.horizontalPoints;if(!a||!i||!i.length)return null;var o=i.map(function(l,c){var u=Pn(Pn({},e),{},{x1:t,y1:l,x2:t+n,y2:l,key:"line-".concat(c),index:c});return $$(a,u)});return M.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function _ye(e){var t=e.y,n=e.height,r=e.vertical,a=r===void 0?!0:r,i=e.verticalPoints;if(!a||!i||!i.length)return null;var o=i.map(function(l,c){var u=Pn(Pn({},e),{},{x1:l,y1:t,x2:l,y2:t+n,key:"line-".concat(c),index:c});return $$(a,u)});return M.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function Nye(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,a=e.y,i=e.width,o=e.height,l=e.horizontalPoints,c=e.horizontal,u=c===void 0?!0:c;if(!u||!t||!t.length)return null;var d=l.map(function(p){return Math.round(p+a-a)}).sort(function(p,f){return p-f});a!==d[0]&&d.unshift(0);var m=d.map(function(p,f){var g=!d[f+1],h=g?a+o-p:d[f+1]-p;if(h<=0)return null;var v=f%t.length;return M.createElement("rect",{key:"react-".concat(f),y:p,x:r,height:h,width:i,stroke:"none",fill:t[v],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return M.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}function Cye(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,a=e.fillOpacity,i=e.x,o=e.y,l=e.width,c=e.height,u=e.verticalPoints;if(!n||!r||!r.length)return null;var d=u.map(function(p){return Math.round(p+i-i)}).sort(function(p,f){return p-f});i!==d[0]&&d.unshift(0);var m=d.map(function(p,f){var g=!d[f+1],h=g?i+l-p:d[f+1]-p;if(h<=0)return null;var v=f%r.length;return M.createElement("rect",{key:"react-".concat(f),x:p,y:o,width:h,height:c,stroke:"none",fill:r[v],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return M.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}var Eye=function(t,n){var r=t.xAxis,a=t.width,i=t.height,o=t.offset;return W6(aj(Pn(Pn(Pn({},wu.defaultProps),r),{},{ticks:Ai(r,!0),viewBox:{x:0,y:0,width:a,height:i}})),o.left,o.left+o.width,n)},Tye=function(t,n){var r=t.yAxis,a=t.width,i=t.height,o=t.offset;return W6(aj(Pn(Pn(Pn({},wu.defaultProps),r),{},{ticks:Ai(r,!0),viewBox:{x:0,y:0,width:a,height:i}})),o.top,o.top+o.height,n)},gl={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Yr(e){var t,n,r,a,i,o,l=tj(),c=nj(),u=yve(),d=Pn(Pn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:gl.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:gl.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:gl.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:gl.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:gl.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:gl.verticalFill,x:se(e.x)?e.x:u.left,y:se(e.y)?e.y:u.top,width:se(e.width)?e.width:u.width,height:se(e.height)?e.height:u.height}),m=d.x,p=d.y,f=d.width,g=d.height,h=d.syncWithTicks,v=d.horizontalValues,y=d.verticalValues,x=hve(),b=gve();if(!se(f)||f<=0||!se(g)||g<=0||!se(m)||m!==+m||!se(p)||p!==+p)return null;var w=d.verticalCoordinatesGenerator||Eye,k=d.horizontalCoordinatesGenerator||Tye,j=d.horizontalPoints,A=d.verticalPoints;if((!j||!j.length)&&Le(k)){var P=v&&v.length,_=k({yAxis:b?Pn(Pn({},b),{},{ticks:P?v:b.ticks}):void 0,width:l,height:c,offset:u},P?!0:h);Ci(Array.isArray(_),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Ys(_),"]")),Array.isArray(_)&&(j=_)}if((!A||!A.length)&&Le(w)){var N=y&&y.length,C=w({xAxis:x?Pn(Pn({},x),{},{ticks:N?y:x.ticks}):void 0,width:l,height:c,offset:u},N?!0:h);Ci(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Ys(C),"]")),Array.isArray(C)&&(A=C)}return M.createElement("g",{className:"recharts-cartesian-grid"},M.createElement(Pye,{fill:d.fill,fillOpacity:d.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height,ry:d.ry}),M.createElement(Aye,js({},d,{offset:u,horizontalPoints:j,xAxis:x,yAxis:b})),M.createElement(_ye,js({},d,{offset:u,verticalPoints:A,xAxis:x,yAxis:b})),M.createElement(Nye,js({},d,{horizontalPoints:j})),M.createElement(Cye,js({},d,{verticalPoints:A})))}Yr.displayName="CartesianGrid";var Oye=["type","layout","connectNulls","ref"],Iye=["key"];function Fc(e){"@babel/helpers - typeof";return Fc=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},Fc(e)}function MC(e,t){if(e==null)return{};var n=Mye(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mye(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Td(){return Td=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Td.apply(this,arguments)}function $C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function cr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$C(Object(n),!0).forEach(function(r){aa(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$C(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vl(e){return Dye(e)||Rye(e)||Fye(e)||$ye()}function $ye(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 524In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fye(e,t){if(e){if(typeof e=="string")return W1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W1(e,t)}}function Rye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dye(e){if(Array.isArray(e))return W1(e)}function W1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Lye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,R$(r.key),r)}}function zye(e,t,n){return t&&FC(e.prototype,t),n&&FC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bye(e,t,n){return t=Kg(t),qye(e,F$()?Reflect.construct(t,n||[],Kg(e).constructor):t.apply(e,n))}function qye(e,t){if(t&&(Fc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Uye(e)}function Uye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F$=function(){return!!e})()}function Kg(e){return Kg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kg(e)}function Wye(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V1(e,t)}function V1(e,t){return V1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},V1(e,t)}function aa(e,t,n){return t=R$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R$(e){var t=Vye(e,"string");return Fc(t)=="symbol"?t:t+""}function Vye(e,t){if(Fc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Fc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ur=function(e){function t(){var n;Lye(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Bye(this,t,[].concat(a)),aa(n,"state",{isAnimationFinished:!0,totalLength:0}),aa(n,"generateSimpleStrokeDasharray",function(o,l){return"".concat(l,"px ").concat(o-l,"px")}),aa(n,"getStrokeDasharray",function(o,l,c){var u=c.reduce(function(y,x){return y+x});if(!u)return n.generateSimpleStrokeDasharray(l,o);for(var d=Math.floor(o/u),m=o%u,p=l-o,f=[],g=0,h=0;g<c.length;h+=c[g],++g)if(h+c[g]>m){f=[].concat(vl(c.slice(0,g)),[m-h]);break}var v=f.length%2===0?[0,p]:[p];return[].concat(vl(t.repeat(c,d)),vl(f),v).map(function(y){return"".concat(y,"px")}).join(", ")}),aa(n,"id",al("recharts-line-")),aa(n,"pathRef",function(o){n.mainCurve=o}),aa(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),aa(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return Wye(t,e),zye(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.points,l=i.xAxis,c=i.yAxis,u=i.layout,d=i.children,m=nr(d,xu);if(!m)return null;var p=function(h,v){return{x:h.x,y:h.y,value:h.value,errorVal:Xt(h.payload,v)}},f={clipPath:r?"url(#clipPath-".concat(a,")"):null};return M.createElement(Xe,f,m.map(function(g){return M.cloneElement(g,{key:"bar-".concat(g.props.dataKey),data:o,xAxis:l,yAxis:c,layout:u,dataPointFormatter:p})}))}},{key:"renderDots",value:function(r,a,i){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var l=this.props,c=l.dot,u=l.points,d=l.dataKey,m=Me(this.props,!1),p=Me(c,!0),f=u.map(function(h,v){var y=cr(cr(cr({key:"dot-".concat(v),r:3},m),p),{},{value:h.value,dataKey:d,cx:h.x,cy:h.y,index:v,payload:h.payload});return t.renderDotItem(c,y)}),g={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return M.createElement(Xe,Td({className:"recharts-line-dots",key:"dots"},g),f)}},{key:"renderCurveStatically",value:function(r,a,i,o){var l=this.props,c=l.type,u=l.layout,d=l.connectNulls;l.ref;var m=MC(l,Oye),p=cr(cr(cr({},Me(m,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:a?"url(#clipPath-".concat(i,")"):null,points:r},o),{},{type:c,layout:u,connectNulls:d});return M.createElement(Fs,Td({},p,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,a){var i=this,o=this.props,l=o.points,c=o.strokeDasharray,u=o.isAnimationActive,d=o.animationBegin,m=o.animationDuration,p=o.animationEasing,f=o.animationId,g=o.animateNewValues,h=o.width,v=o.height,y=this.state,x=y.prevPoints,b=y.totalLength;return M.createElement(Sa,{begin:d,duration:m,isActive:u,easing:p,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(w){var k=w.t;if(x){var j=x.length/l.length,A=l.map(function(E,T){var O=Math.floor(T*j);if(x[O]){var F=x[O],D=Rt(F.x,E.x),z=Rt(F.y,E.y);return cr(cr({},E),{},{x:D(k),y:z(k)})}if(g){var R=Rt(h*2,E.x),B=Rt(v/2,E.y);return cr(cr({},E),{},{x:R(k),y:B(k)})}return cr(cr({},E),{},{x:E.x,y:E.y})});return i.renderCurveStatically(A,r,a)}var P=Rt(0,b),_=P(k),N;if(c){var C="".concat(c).split(/[,\s]+/gim).map(function(E){return parseFloat(E)});N=i.getStrokeDasharray(_,b,C)}else N=i.generateSimpleStrokeDasharray(b,_);return i.renderCurveStatically(l,r,a,{strokeDasharray:N})})}},{key:"renderCurve",value:function(r,a){var i=this.props,o=i.points,l=i.isAnimationActive,c=this.state,u=c.prevPoints,d=c.totalLength;return l&&o&&o.length&&(!u&&d>0||!Ks(u,o))?this.renderCurveWithAnimation(r,a):this.renderCurveStatically(o,r,a)}},{key:"render",value:function(){var r,a=this.props,i=a.hide,o=a.dot,l=a.points,c=a.className,u=a.xAxis,d=a.yAxis,m=a.top,p=a.left,f=a.width,g=a.height,h=a.isAnimationActive,v=a.id;if(i||!l||!l.length)return null;var y=this.state.isAnimationFinished,x=l.length===1,b=We("recharts-line",c),w=u&&u.allowDataOverflow,k=d&&d.allowDataOverflow,j=w||k,A=$e(v)?this.id:v,P=(r=Me(o,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},_=P.r,N=_===void 0?3:_,C=P.strokeWidth,E=C===void 0?2:C,T=R8(o)?o:{},O=T.clipDot,F=O===void 0?!0:O,D=N*2+E;return M.createElement(Xe,{className:b},w||k?M.createElement("defs",null,M.createElement("clipPath",{id:"clipPath-".concat(A)},M.createElement("rect",{x:w?p:p-f/2,y:k?m:m-g/2,width:w?f:f*2,height:k?g:g*2})),!F&&M.createElement("clipPath",{id:"clipPath-dots-".concat(A)},M.createElement("rect",{x:p-D/2,y:m-D/2,width:f+D,height:g+D}))):null,!x&&this.renderCurve(j,A),this.renderErrorBar(j,A),(x||o)&&this.renderDots(j,F,A),(!h||y)&&Ka.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:a.curPoints}:r.points!==a.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,a){for(var i=r.length%2!==0?[].concat(vl(r),[0]):r,o=[],l=0;l<a;++l)o=[].concat(vl(o),vl(i));return o}},{key:"renderDotItem",value:function(r,a){var i;if(M.isValidElement(r))i=M.cloneElement(r,a);else if(Le(r))i=r(a);else{var o=a.key,l=MC(a,Iye),c=We("recharts-line-dot",typeof r!="boolean"?r.className:"");i=M.createElement(Fy,Td({key:o},l,{className:c}))}return i}}])}(S.PureComponent);aa(Ur,"displayName","Line");aa(Ur,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ga.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});aa(Ur,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,a=e.xAxisTicks,i=e.yAxisTicks,o=e.dataKey,l=e.bandSize,c=e.displayedData,u=e.offset,d=t.layout,m=c.map(function(p,f){var g=Xt(p,o);return d==="horizontal"?{x:_c({axis:n,ticks:a,bandSize:l,entry:p,index:f}),y:$e(g)?null:r.scale(g),value:g,payload:p}:{x:$e(g)?null:n.scale(g),y:_c({axis:r,ticks:i,bandSize:l,entry:p,index:f}),value:g,payload:p}});return cr({points:m,layout:d},u)});var Hye=["layout","type","stroke","connectNulls","isRange","ref"],Kye=["key"],D$;function Rc(e){"@babel/helpers - typeof";return Rc=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},Rc(e)}function L$(e,t){if(e==null)return{};var n=Gye(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gye(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ps(){return Ps=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ps.apply(this,arguments)}function RC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function no(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RC(Object(n),!0).forEach(function(r){qa(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,B$(r.key),r)}}function Yye(e,t,n){return t&&DC(e.prototype,t),n&&DC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zye(e,t,n){return t=Gg(t),Xye(e,z$()?Reflect.construct(t,n||[],Gg(e).constructor):t.apply(e,n))}function Xye(e,t){if(t&&(Rc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jye(e)}function Jye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(z$=function(){return!!e})()}function Gg(e){return Gg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gg(e)}function exe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&H1(e,t)}function H1(e,t){return H1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},H1(e,t)}function qa(e,t,n){return t=B$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B$(e){var t=txe(e,"string");return Rc(t)=="symbol"?t:t+""}function txe(e,t){if(Rc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Rc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sl=function(e){function t(){var n;Qye(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Zye(this,t,[].concat(a)),qa(n,"state",{isAnimationFinished:!0}),qa(n,"id",al("recharts-area-")),qa(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Le(o)&&o()}),qa(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Le(o)&&o()}),n}return exe(t,e),Yye(t,[{key:"renderDots",value:function(r,a,i){var o=this.props.isAnimationActive,l=this.state.isAnimationFinished;if(o&&!l)return null;var c=this.props,u=c.dot,d=c.points,m=c.dataKey,p=Me(this.props,!1),f=Me(u,!0),g=d.map(function(v,y){var x=no(no(no({key:"dot-".concat(y),r:3},p),f),{},{index:y,cx:v.x,cy:v.y,dataKey:m,value:v.value,payload:v.payload,points:d});return t.renderDotItem(u,x)}),h={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return M.createElement(Xe,Ps({className:"recharts-area-dots"},h),g)}},{key:"renderHorizontalRect",value:function(r){var a=this.props,i=a.baseLine,o=a.points,l=a.strokeWidth,c=o[0].x,u=o[o.length-1].x,d=r*Math.abs(c-u),m=ko(o.map(function(p){return p.y||0}));return se(i)&&typeof i=="number"?m=Math.max(i,m):i&&Array.isArray(i)&&i.length&&(m=Math.max(ko(i.map(function(p){return p.y||0})),m)),se(m)?M.createElement("rect",{x:c<u?c:c-d,y:0,width:d,height:Math.floor(m+(l?parseInt("".concat(l),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var a=this.props,i=a.baseLine,o=a.points,l=a.strokeWidth,c=o[0].y,u=o[o.length-1].y,d=r*Math.abs(c-u),m=ko(o.map(function(p){return p.x||0}));return se(i)&&typeof i=="number"?m=Math.max(i,m):i&&Array.isArray(i)&&i.length&&(m=Math.max(ko(i.map(function(p){return p.x||0})),m)),se(m)?M.createElement("rect",{x:0,y:c<u?c:c-d,width:m+(l?parseInt("".concat(l),10):1),height:Math.floor(d)}):null}},{key:"renderClipRect",value:function(r){var a=this.props.layout;return a==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,a,i,o){var l=this.props,c=l.layout,u=l.type,d=l.stroke,m=l.connectNulls,p=l.isRange;l.ref;var f=L$(l,Hye);return M.createElement(Xe,{clipPath:i?"url(#clipPath-".concat(o,")"):null},M.createElement(Fs,Ps({},Me(f,!0),{points:r,connectNulls:m,type:u,baseLine:a,layout:c,stroke:"none",className:"recharts-area-area"})),d!=="none"&&M.createElement(Fs,Ps({},Me(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:m,fill:"none",points:r})),d!=="none"&&p&&M.createElement(Fs,Ps({},Me(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:m,fill:"none",points:a})))}},{key:"renderAreaWithAnimation",value:function(r,a){var i=this,o=this.props,l=o.points,c=o.baseLine,u=o.isAnimationActive,d=o.animationBegin,m=o.animationDuration,p=o.animationEasing,f=o.animationId,g=this.state,h=g.prevPoints,v=g.prevBaseLine;return M.createElement(Sa,{begin:d,duration:m,isActive:u,easing:p,from:{t:0},to:{t:1},key:"area-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(y){var x=y.t;if(h){var b=h.length/l.length,w=l.map(function(P,_){var N=Math.floor(_*b);if(h[N]){var C=h[N],E=Rt(C.x,P.x),T=Rt(C.y,P.y);return no(no({},P),{},{x:E(x),y:T(x)})}return P}),k;if(se(c)&&typeof c=="number"){var j=Rt(v,c);k=j(x)}else if($e(c)||du(c)){var A=Rt(v,0);k=A(x)}else k=c.map(function(P,_){var N=Math.floor(_*b);if(v[N]){var C=v[N],E=Rt(C.x,P.x),T=Rt(C.y,P.y);return no(no({},P),{},{x:E(x),y:T(x)})}return P});return i.renderAreaStatically(w,k,r,a)}return M.createElement(Xe,null,M.createElement("defs",null,M.createElement("clipPath",{id:"animationClipPath-".concat(a)},i.renderClipRect(x))),M.createElement(Xe,{clipPath:"url(#animationClipPath-".concat(a,")")},i.renderAreaStatically(l,c,r,a)))})}},{key:"renderArea",value:function(r,a){var i=this.props,o=i.points,l=i.baseLine,c=i.isAnimationActive,u=this.state,d=u.prevPoints,m=u.prevBaseLine,p=u.totalLength;return c&&o&&o.length&&(!d&&p>0||!Ks(d,o)||!Ks(m,l))?this.renderAreaWithAnimation(r,a):this.renderAreaStatically(o,l,r,a)}},{key:"render",value:function(){var r,a=this.props,i=a.hide,o=a.dot,l=a.points,c=a.className,u=a.top,d=a.left,m=a.xAxis,p=a.yAxis,f=a.width,g=a.height,h=a.isAnimationActive,v=a.id;if(i||!l||!l.length)return null;var y=this.state.isAnimationFinished,x=l.length===1,b=We("recharts-area",c),w=m&&m.allowDataOverflow,k=p&&p.allowDataOverflow,j=w||k,A=$e(v)?this.id:v,P=(r=Me(o,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},_=P.r,N=_===void 0?3:_,C=P.strokeWidth,E=C===void 0?2:C,T=R8(o)?o:{},O=T.clipDot,F=O===void 0?!0:O,D=N*2+E;return M.createElement(Xe,{className:b},w||k?M.createElement("defs",null,M.createElement("clipPath",{id:"clipPath-".concat(A)},M.createElement("rect",{x:w?d:d-f/2,y:k?u:u-g/2,width:w?f:f*2,height:k?g:g*2})),!F&&M.createElement("clipPath",{id:"clipPath-dots-".concat(A)},M.createElement("rect",{x:d-D/2,y:u-D/2,width:f+D,height:g+D}))):null,x?null:this.renderArea(j,A),(o||x)&&this.renderDots(j,F,A),(!h||y)&&Ka.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:a.curPoints,prevBaseLine:a.curBaseLine}:r.points!==a.curPoints||r.baseLine!==a.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])}(S.PureComponent);D$=sl;qa(sl,"displayName","Area");qa(sl,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!ga.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});qa(sl,"getBaseValue",function(e,t,n,r){var a=e.layout,i=e.baseValue,o=t.props.baseValue,l=o??i;if(se(l)&&typeof l=="number")return l;var c=a==="horizontal"?r:n,u=c.scale.domain();if(c.type==="number"){var d=Math.max(u[0],u[1]),m=Math.min(u[0],u[1]);return l==="dataMin"?m:l==="dataMax"||d<0?d:Math.max(Math.min(u[0],u[1]),0)}return l==="dataMin"?u[0]:l==="dataMax"?u[1]:u[0]});qa(sl,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,a=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,l=e.bandSize,c=e.dataKey,u=e.stackedData,d=e.dataStartIndex,m=e.displayedData,p=e.offset,f=t.layout,g=u&&u.length,h=D$.getBaseValue(t,n,r,a),v=f==="horizontal",y=!1,x=m.map(function(w,k){var j;g?j=u[d+k]:(j=Xt(w,c),Array.isArray(j)?y=!0:j=[h,j]);var A=j[1]==null||g&&Xt(w,c)==null;return v?{x:_c({axis:r,ticks:i,bandSize:l,entry:w,index:k}),y:A?null:a.scale(j[1]),value:j,payload:w}:{x:A?null:r.scale(j[1]),y:_c({axis:a,ticks:o,bandSize:l,entry:w,index:k}),value:j,payload:w}}),b;return g||y?b=x.map(function(w){var k=Array.isArray(w.value)?w.value[0]:null;return v?{x:w.x,y:k!=null&&w.y!=null?a.scale(k):null}:{x:k!=null?r.scale(k):null,y:w.y}}):b=v?a.scale(h):r.scale(h),no({points:x,baseLine:b,layout:f,isRange:y},p)});qa(sl,"renderDotItem",function(e,t){var n;if(M.isValidElement(e))n=M.cloneElement(e,t);else if(Le(e))n=e(t);else{var r=We("recharts-area-dot",typeof e!="boolean"?e.className:""),a=t.key,i=L$(t,Kye);n=M.createElement(Fy,Ps({},i,{key:a,className:r}))}return n});function Dc(e){"@babel/helpers - typeof";return Dc=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},Dc(e)}function nxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rxe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,W$(r.key),r)}}function axe(e,t,n){return t&&rxe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ixe(e,t,n){return t=Qg(t),oxe(e,q$()?Reflect.construct(t,n||[],Qg(e).constructor):t.apply(e,n))}function oxe(e,t){if(t&&(Dc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sxe(e)}function sxe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q$=function(){return!!e})()}function Qg(e){return Qg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qg(e)}function lxe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K1(e,t)}function K1(e,t){return K1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},K1(e,t)}function U$(e,t,n){return t=W$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W$(e){var t=cxe(e,"string");return Dc(t)=="symbol"?t:t+""}function cxe(e,t){if(Dc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Dc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ll=function(e){function t(){return nxe(this,t),ixe(this,t,arguments)}return lxe(t,e),axe(t,[{key:"render",value:function(){return null}}])}(M.Component);U$(ll,"displayName","ZAxis");U$(ll,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var uxe=["option","isActive"];function Od(){return Od=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Od.apply(this,arguments)}function dxe(e,t){if(e==null)return{};var n=mxe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mxe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function pxe(e){var t=e.option,n=e.isActive,r=dxe(e,uxe);return typeof t=="string"?M.createElement(I1,Od({option:M.createElement(Sy,Od({type:t},r)),isActive:n,shapeType:"symbols"},r)):M.createElement(I1,Od({option:t,isActive:n,shapeType:"symbols"},r))}function Lc(e){"@babel/helpers - typeof";return Lc=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},Lc(e)}function Id(){return Id=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Id.apply(this,arguments)}function LC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ir(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LC(Object(n),!0).forEach(function(r){jo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,H$(r.key),r)}}function hxe(e,t,n){return t&&zC(e.prototype,t),n&&zC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gxe(e,t,n){return t=Yg(t),vxe(e,V$()?Reflect.construct(t,n||[],Yg(e).constructor):t.apply(e,n))}function vxe(e,t){if(t&&(Lc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yxe(e)}function yxe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V$=function(){return!!e})()}function Yg(e){return Yg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yg(e)}function xxe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&G1(e,t)}function G1(e,t){return G1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},G1(e,t)}function jo(e,t,n){return t=H$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H$(e){var t=bxe(e,"string");return Lc(t)=="symbol"?t:t+""}function bxe(e,t){if(Lc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Lc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cl=function(e){function t(){var n;fxe(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=gxe(this,t,[].concat(a)),jo(n,"state",{isAnimationFinished:!1}),jo(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0})}),jo(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1})}),jo(n,"id",al("recharts-scatter-")),n}return xxe(t,e),hxe(t,[{key:"renderSymbolsStatically",value:function(r){var a=this,i=this.props,o=i.shape,l=i.activeShape,c=i.activeIndex,u=Me(this.props,!1);return r.map(function(d,m){var p=c===m,f=p?l:o,g=Ir(Ir({},u),d);return M.createElement(Xe,Id({className:"recharts-scatter-symbol",key:"symbol-".concat(d==null?void 0:d.cx,"-").concat(d==null?void 0:d.cy,"-").concat(d==null?void 0:d.size,"-").concat(m)},gm(a.props,d,m),{role:"img"}),M.createElement(pxe,Id({option:f,isActive:p,key:"symbol-".concat(m)},g)))})}},{key:"renderSymbolsWithAnimation",value:function(){var r=this,a=this.props,i=a.points,o=a.isAnimationActive,l=a.animationBegin,c=a.animationDuration,u=a.animationEasing,d=a.animationId,m=this.state.prevPoints;return M.createElement(Sa,{begin:l,duration:c,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var f=p.t,g=i.map(function(h,v){var y=m&&m[v];if(y){var x=Rt(y.cx,h.cx),b=Rt(y.cy,h.cy),w=Rt(y.size,h.size);return Ir(Ir({},h),{},{cx:x(f),cy:b(f),size:w(f)})}var k=Rt(0,h.size);return Ir(Ir({},h),{},{size:k(f)})});return M.createElement(Xe,null,r.renderSymbolsStatically(g))})}},{key:"renderSymbols",value:function(){var r=this.props,a=r.points,i=r.isAnimationActive,o=this.state.prevPoints;return i&&a&&a.length&&(!o||!Ks(o,a))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(a)}},{key:"renderErrorBar",value:function(){var r=this.props.isAnimationActive;if(r&&!this.state.isAnimationFinished)return null;var a=this.props,i=a.points,o=a.xAxis,l=a.yAxis,c=a.children,u=nr(c,xu);return u?u.map(function(d,m){var p=d.props,f=p.direction,g=p.dataKey;return M.cloneElement(d,{key:"".concat(f,"-").concat(g,"-").concat(i[m]),data:i,xAxis:o,yAxis:l,layout:f==="x"?"vertical":"horizontal",dataPointFormatter:function(v,y){return{x:v.cx,y:v.cy,value:f==="x"?+v.node.x:+v.node.y,errorVal:Xt(v,y)}}})}):null}},{key:"renderLine",value:function(){var r=this.props,a=r.points,i=r.line,o=r.lineType,l=r.lineJointType,c=Me(this.props,!1),u=Me(i,!1),d,m;if(o==="joint")d=a.map(function(b){return{x:b.cx,y:b.cy}});else if(o==="fitting"){var p=cY(a),f=p.xmin,g=p.xmax,h=p.a,v=p.b,y=function(w){return h*w+v};d=[{x:f,y:y(f)},{x:g,y:y(g)}]}var x=Ir(Ir(Ir({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:d});return M.isValidElement(i)?m=M.cloneElement(i,x):Le(i)?m=i(x):m=M.createElement(Fs,Id({},x,{type:l})),M.createElement(Xe,{className:"recharts-scatter-line",key:"recharts-scatter-line"},m)}},{key:"render",value:function(){var r=this.props,a=r.hide,i=r.points,o=r.line,l=r.className,c=r.xAxis,u=r.yAxis,d=r.left,m=r.top,p=r.width,f=r.height,g=r.id,h=r.isAnimationActive;if(a||!i||!i.length)return null;var v=this.state.isAnimationFinished,y=We("recharts-scatter",l),x=c&&c.allowDataOverflow,b=u&&u.allowDataOverflow,w=x||b,k=$e(g)?this.id:g;return M.createElement(Xe,{className:y,clipPath:w?"url(#clipPath-".concat(k,")"):null},x||b?M.createElement("defs",null,M.createElement("clipPath",{id:"clipPath-".concat(k)},M.createElement("rect",{x:x?d:d-p/2,y:b?m:m-f/2,width:x?p:p*2,height:b?f:f*2}))):null,o&&this.renderLine(),this.renderErrorBar(),M.createElement(Xe,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!h||v)&&Ka.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:a.curPoints}:r.points!==a.curPoints?{curPoints:r.points}:null}}])}(S.PureComponent);jo(cl,"displayName","Scatter");jo(cl,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!ga.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});jo(cl,"getComposedData",function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,a=e.item,i=e.displayedData,o=e.xAxisTicks,l=e.yAxisTicks,c=e.offset,u=a.props.tooltipType,d=nr(a.props.children,hu),m=$e(t.dataKey)?a.props.dataKey:t.dataKey,p=$e(n.dataKey)?a.props.dataKey:n.dataKey,f=r&&r.dataKey,g=r?r.range:ll.defaultProps.range,h=g&&g[0],v=t.scale.bandwidth?t.scale.bandwidth():0,y=n.scale.bandwidth?n.scale.bandwidth():0,x=i.map(function(b,w){var k=Xt(b,m),j=Xt(b,p),A=!$e(f)&&Xt(b,f)||"-",P=[{name:$e(t.dataKey)?a.props.name:t.name||t.dataKey,unit:t.unit||"",value:k,payload:b,dataKey:m,type:u},{name:$e(n.dataKey)?a.props.name:n.name||n.dataKey,unit:n.unit||"",value:j,payload:b,dataKey:p,type:u}];A!=="-"&&P.push({name:r.name||r.dataKey,unit:r.unit||"",value:A,payload:b,dataKey:f,type:u});var _=_c({axis:t,ticks:o,bandSize:v,entry:b,index:w,dataKey:m}),N=_c({axis:n,ticks:l,bandSize:y,entry:b,index:w,dataKey:p}),C=A!=="-"?r.scale(A):h,E=Math.sqrt(Math.max(C,0)/Math.PI);return Ir(Ir({},b),{},{cx:_,cy:N,x:_-E,y:N-E,xAxis:t,yAxis:n,zAxis:r,width:2*E,height:2*E,size:C,node:{x:k,y:j,z:A},tooltipPayload:P,tooltipPosition:{x:_,y:N},payload:b},d&&d[w]&&d[w].props)});return Ir({points:x},c)});function zc(e){"@babel/helpers - typeof";return zc=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},zc(e)}function wxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kxe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Q$(r.key),r)}}function Sxe(e,t,n){return t&&kxe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jxe(e,t,n){return t=Zg(t),Pxe(e,K$()?Reflect.construct(t,n||[],Zg(e).constructor):t.apply(e,n))}function Pxe(e,t){if(t&&(zc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Axe(e)}function Axe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(K$=function(){return!!e})()}function Zg(e){return Zg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zg(e)}function _xe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q1(e,t)}function Q1(e,t){return Q1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Q1(e,t)}function G$(e,t,n){return t=Q$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q$(e){var t=Nxe(e,"string");return zc(t)=="symbol"?t:t+""}function Nxe(e,t){if(zc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(zc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Y1(){return Y1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y1.apply(this,arguments)}function Cxe(e){var t=e.xAxisId,n=tj(),r=nj(),a=j$(t);return a==null?null:M.createElement(wu,Y1({},a,{className:We("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(o){return Ai(o,!0)}}))}var sn=function(e){function t(){return wxe(this,t),jxe(this,t,arguments)}return _xe(t,e),Sxe(t,[{key:"render",value:function(){return M.createElement(Cxe,this.props)}}])}(M.Component);G$(sn,"displayName","XAxis");G$(sn,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Bc(e){"@babel/helpers - typeof";return Bc=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},Bc(e)}function Exe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Txe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,X$(r.key),r)}}function Oxe(e,t,n){return t&&Txe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ixe(e,t,n){return t=Xg(t),Mxe(e,Y$()?Reflect.construct(t,n||[],Xg(e).constructor):t.apply(e,n))}function Mxe(e,t){if(t&&(Bc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $xe(e)}function $xe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Y$=function(){return!!e})()}function Xg(e){return Xg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xg(e)}function Fxe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Z1(e,t)}function Z1(e,t){return Z1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Z1(e,t)}function Z$(e,t,n){return t=X$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X$(e){var t=Rxe(e,"string");return Bc(t)=="symbol"?t:t+""}function Rxe(e,t){if(Bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function X1(){return X1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X1.apply(this,arguments)}var Dxe=function(t){var n=t.yAxisId,r=tj(),a=nj(),i=P$(n);return i==null?null:M.createElement(wu,X1({},i,{className:We("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(l){return Ai(l,!0)}}))},Ht=function(e){function t(){return Exe(this,t),Ixe(this,t,arguments)}return Fxe(t,e),Oxe(t,[{key:"render",value:function(){return M.createElement(Dxe,this.props)}}])}(M.Component);Z$(Ht,"displayName","YAxis");Z$(Ht,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function BC(e){return qxe(e)||Bxe(e)||zxe(e)||Lxe()}function Lxe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 525In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zxe(e,t){if(e){if(typeof e=="string")return J1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J1(e,t)}}function Bxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qxe(e){if(Array.isArray(e))return J1(e)}function J1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var e2=function(t,n,r,a,i){var o=nr(t,Bo),l=nr(t,Fp),c=[].concat(BC(o),BC(l)),u=nr(t,Rp),d="".concat(a,"Id"),m=a[0],p=n;if(c.length&&(p=c.reduce(function(h,v){if(v.props[d]===r&&Ga(v.props,"extendDomain")&&se(v.props[m])){var y=v.props[m];return[Math.min(h[0],y),Math.max(h[1],y)]}return h},p)),u.length){var f="".concat(m,"1"),g="".concat(m,"2");p=u.reduce(function(h,v){if(v.props[d]===r&&Ga(v.props,"extendDomain")&&se(v.props[f])&&se(v.props[g])){var y=v.props[f],x=v.props[g];return[Math.min(h[0],y,x),Math.max(h[1],y,x)]}return h},p)}return i&&i.length&&(p=i.reduce(function(h,v){return se(v)?[Math.min(h[0],v),Math.max(h[1],v)]:h},p)),p},J$={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function a(c,u,d){this.fn=c,this.context=u,this.once=d||!1}function i(c,u,d,m,p){if(typeof d!="function")throw new TypeError("The listener must be a function");var f=new a(d,m||c,p),g=n?n+u:u;return c._events[g]?c._events[g].fn?c._events[g]=[c._events[g],f]:c._events[g].push(f):(c._events[g]=f,c._eventsCount++),c}function o(c,u){--c._eventsCount===0?c._events=new r:delete c._events[u]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],d,m;if(this._eventsCount===0)return u;for(m in d=this._events)t.call(d,m)&&u.push(n?m.slice(1):m);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},l.prototype.listeners=function(u){var d=n?n+u:u,m=this._events[d];if(!m)return[];if(m.fn)return[m.fn];for(var p=0,f=m.length,g=new Array(f);p<f;p++)g[p]=m[p].fn;return g},l.prototype.listenerCount=function(u){var d=n?n+u:u,m=this._events[d];return m?m.fn?1:m.length:0},l.prototype.emit=function(u,d,m,p,f,g){var h=n?n+u:u;if(!this._events[h])return!1;var v=this._events[h],y=arguments.length,x,b;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),y){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,d),!0;case 3:return v.fn.call(v.context,d,m),!0;case 4:return v.fn.call(v.context,d,m,p),!0;case 5:return v.fn.call(v.context,d,m,p,f),!0;case 6:return v.fn.call(v.context,d,m,p,f,g),!0}for(b=1,x=new Array(y-1);b<y;b++)x[b-1]=arguments[b];v.fn.apply(v.context,x)}else{var w=v.length,k;for(b=0;b<w;b++)switch(v[b].once&&this.removeListener(u,v[b].fn,void 0,!0),y){case 1:v[b].fn.call(v[b].context);break;case 2:v[b].fn.call(v[b].context,d);break;case 3:v[b].fn.call(v[b].context,d,m);break;case 4:v[b].fn.call(v[b].context,d,m,p);break;default:if(!x)for(k=1,x=new Array(y-1);k<y;k++)x[k-1]=arguments[k];v[b].fn.apply(v[b].context,x)}}return!0},l.prototype.on=function(u,d,m){return i(this,u,d,m,!1)},l.prototype.once=function(u,d,m){return i(this,u,d,m,!0)},l.prototype.removeListener=function(u,d,m,p){var f=n?n+u:u;if(!this._events[f])return this;if(!d)return o(this,f),this;var g=this._events[f];if(g.fn)g.fn===d&&(!p||g.once)&&(!m||g.context===m)&&o(this,f);else{for(var h=0,v=[],y=g.length;h<y;h++)(g[h].fn!==d||p&&!g[h].once||m&&g[h].context!==m)&&v.push(g[h]);v.length?this._events[f]=v.length===1?v[0]:v:o(this,f)}return this},l.prototype.removeAllListeners=function(u){var d;return u?(d=n?n+u:u,this._events[d]&&o(this,d)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})(J$);var Uxe=J$.exports;const Wxe=Qe(Uxe);var Sb=new Wxe,jb="recharts.syncMouseEvents";function Ym(e){"@babel/helpers - typeof";return Ym=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},Ym(e)}function Vxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hxe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eF(r.key),r)}}function Kxe(e,t,n){return t&&Hxe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pb(e,t,n){return t=eF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eF(e){var t=Gxe(e,"string");return Ym(t)=="symbol"?t:t+""}function Gxe(e,t){if(Ym(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ym(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Qxe=function(){function e(){Vxe(this,e),Pb(this,"activeIndex",0),Pb(this,"coordinateList",[]),Pb(this,"layout","horizontal")}return Kxe(e,[{key:"setDetails",value:function(n){var r,a=n.coordinateList,i=a===void 0?null:a,o=n.container,l=o===void 0?null:o,c=n.layout,u=c===void 0?null:c,d=n.offset,m=d===void 0?null:d,p=n.mouseHandlerCallback,f=p===void 0?null:p;this.coordinateList=(r=i??this.coordinateList)!==null&&r!==void 0?r:[],this.container=l??this.container,this.layout=u??this.layout,this.offset=m??this.offset,this.mouseHandlerCallback=f??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var a=this.container.getBoundingClientRect(),i=a.x,o=a.y,l=a.height,c=this.coordinateList[this.activeIndex].coordinate,u=((n=window)===null||n===void 0?void 0:n.scrollX)||0,d=((r=window)===null||r===void 0?void 0:r.scrollY)||0,m=i+c+u,p=o+this.offset.top+l/2+d;this.mouseHandlerCallback({pageX:m,pageY:p})}}}])}();function Yxe(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],a=e==null?void 0:e[1];if(r&&a&&se(r)&&se(a))return!0}return!1}function Zxe(e,t,n,r){var a=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-a,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function tF(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle,o=dn(t,n,r,a),l=dn(t,n,r,i);return{points:[o,l],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function Xxe(e,t,n){var r,a,i,o;if(e==="horizontal")r=t.x,i=r,a=n.top,o=n.top+n.height;else if(e==="vertical")a=t.y,o=a,r=n.left,i=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,c=t.cy,u=t.innerRadius,d=t.outerRadius,m=t.angle,p=dn(l,c,u,m),f=dn(l,c,d,m);r=p.x,a=p.y,i=f.x,o=f.y}else return tF(t);return[{x:r,y:a},{x:i,y:o}]}function Zm(e){"@babel/helpers - typeof";return Zm=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},Zm(e)}function qC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ef(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qC(Object(n),!0).forEach(function(r){Jxe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jxe(e,t,n){return t=ebe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ebe(e){var t=tbe(e,"string");return Zm(t)=="symbol"?t:t+""}function tbe(e,t){if(Zm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Zm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nbe(e){var t,n,r=e.element,a=e.tooltipEventType,i=e.isActive,o=e.activeCoordinate,l=e.activePayload,c=e.offset,u=e.activeTooltipIndex,d=e.tooltipAxisBandSize,m=e.layout,p=e.chartName,f=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!f||!i||!o||p!=="ScatterChart"&&a!=="axis")return null;var g,h=Fs;if(p==="ScatterChart")g=o,h=Nfe;else if(p==="BarChart")g=Zxe(m,o,c,d),h=ZS;else if(m==="radial"){var v=tF(o),y=v.cx,x=v.cy,b=v.radius,w=v.startAngle,k=v.endAngle;g={cx:y,cy:x,startAngle:w,endAngle:k,innerRadius:b,outerRadius:b},h=Q6}else g={points:Xxe(m,o,c)},h=Fs;var j=Ef(Ef(Ef(Ef({stroke:"#ccc",pointerEvents:"none"},c),g),Me(f,!1)),{},{payload:l,payloadIndex:u,className:We("recharts-tooltip-cursor",f.className)});return S.isValidElement(f)?S.cloneElement(f,j):S.createElement(h,j)}var rbe=["item"],abe=["children","className","width","height","style","compact","title","desc"];function qc(e){"@babel/helpers - typeof";return qc=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},qc(e)}function Md(){return Md=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Md.apply(this,arguments)}function UC(e,t){return sbe(e)||obe(e,t)||rF(e,t)||ibe()}function ibe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 526In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function obe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function sbe(e){if(Array.isArray(e))return e}function WC(e,t){if(e==null)return{};var n=lbe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lbe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function cbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ube(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,aF(r.key),r)}}function dbe(e,t,n){return t&&ube(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mbe(e,t,n){return t=Jg(t),pbe(e,nF()?Reflect.construct(t,n||[],Jg(e).constructor):t.apply(e,n))}function pbe(e,t){if(t&&(qc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fbe(e)}function fbe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nF=function(){return!!e})()}function Jg(e){return Jg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jg(e)}function hbe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&t2(e,t)}function t2(e,t){return t2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},t2(e,t)}function Uc(e){return ybe(e)||vbe(e)||rF(e)||gbe()}function gbe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 527In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rF(e,t){if(e){if(typeof e=="string")return n2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return n2(e,t)}}function vbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ybe(e){if(Array.isArray(e))return n2(e)}function n2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function VC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VC(Object(n),!0).forEach(function(r){_e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _e(e,t,n){return t=aF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aF(e){var t=xbe(e,"string");return qc(t)=="symbol"?t:t+""}function xbe(e,t){if(qc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(qc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bbe={xAxis:["bottom","top"],yAxis:["left","right"]},wbe={width:"100%",height:"100%"},iF={x:0,y:0};function Tf(e){return e}var kbe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Sbe=function(t,n,r,a){var i=n.find(function(d){return d&&d.index===r});if(i){if(t==="horizontal")return{x:i.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:i.coordinate};if(t==="centric"){var o=i.coordinate,l=a.radius;return Y(Y(Y({},a),dn(a.cx,a.cy,l,o)),{},{angle:o,radius:l})}var c=i.coordinate,u=a.angle;return Y(Y(Y({},a),dn(a.cx,a.cy,c,u)),{},{angle:u,radius:c})}return iF},Uy=function(t,n){var r=n.graphicalItems,a=n.dataStartIndex,i=n.dataEndIndex,o=(r??[]).reduce(function(l,c){var u=c.props.data;return u&&u.length?[].concat(Uc(l),Uc(u)):l},[]);return o.length>0?o:t&&t.length&&se(a)&&se(i)?t.slice(a,i+1):[]};function oF(e){return e==="number"?[0,"auto"]:void 0}var r2=function(t,n,r,a){var i=t.graphicalItems,o=t.tooltipAxis,l=Uy(n,t);return r<0||!i||!i.length||r>=l.length?null:i.reduce(function(c,u){var d,m=(d=u.props.data)!==null&&d!==void 0?d:n;m&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(m=m.slice(t.dataStartIndex,t.dataEndIndex+1));var p;if(o.dataKey&&!o.allowDuplicatedCategory){var f=m===void 0?l:m;p=Jh(f,o.dataKey,a)}else p=m&&m[r]||l[r];return p?[].concat(Uc(c),[H6(u,p)]):c},[])},HC=function(t,n,r,a){var i=a||{x:t.chartX,y:t.chartY},o=kbe(i,r),l=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,d=bde(o,l,u,c);if(d>=0&&u){var m=u[d]&&u[d].value,p=r2(t,n,d,m),f=Sbe(r,l,d,i);return{activeTooltipIndex:d,activeLabel:m,activePayload:p,activeCoordinate:f}}return null},jbe=function(t,n){var r=n.axes,a=n.graphicalItems,i=n.axisType,o=n.axisIdKey,l=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,d=t.layout,m=t.children,p=t.stackOffset,f=U6(d,i);return r.reduce(function(g,h){var v,y=h.type.defaultProps!==void 0?Y(Y({},h.type.defaultProps),h.props):h.props,x=y.type,b=y.dataKey,w=y.allowDataOverflow,k=y.allowDuplicatedCategory,j=y.scale,A=y.ticks,P=y.includeHidden,_=y[o];if(g[_])return g;var N=Uy(t.data,{graphicalItems:a.filter(function(q){var $,X=o in q.props?q.props[o]:($=q.type.defaultProps)===null||$===void 0?void 0:$[o];return X===_}),dataStartIndex:c,dataEndIndex:u}),C=N.length,E,T,O;Yxe(y.domain,w,x)&&(E=v1(y.domain,null,w),f&&(x==="number"||j!=="auto")&&(O=Cd(N,b,"category")));var F=oF(x);if(!E||E.length===0){var D,z=(D=y.domain)!==null&&D!==void 0?D:F;if(b){if(E=Cd(N,b,x),x==="category"&&f){var R=lY(E);k&&R?(T=E,E=Rg(0,C)):k||(E=bN(z,E,h).reduce(function(q,$){return q.indexOf($)>=0?q:[].concat(Uc(q),[$])},[]))}else if(x==="category")k?E=E.filter(function(q){return q!==""&&!$e(q)}):E=bN(z,E,h).reduce(function(q,$){return q.indexOf($)>=0||$===""||$e($)?q:[].concat(Uc(q),[$])},[]);else if(x==="number"){var B=Pde(N,a.filter(function(q){var $,X,pe=o in q.props?q.props[o]:($=q.type.defaultProps)===null||$===void 0?void 0:$[o],te="hide"in q.props?q.props.hide:(X=q.type.defaultProps)===null||X===void 0?void 0:X.hide;return pe===_&&(P||!te)}),b,i,d);B&&(E=B)}f&&(x==="number"||j!=="auto")&&(O=Cd(N,b,"category"))}else f?E=Rg(0,C):l&&l[_]&&l[_].hasStack&&x==="number"?E=p==="expand"?[0,1]:V6(l[_].stackGroups,c,u):E=q6(N,a.filter(function(q){var $=o in q.props?q.props[o]:q.type.defaultProps[o],X="hide"in q.props?q.props.hide:q.type.defaultProps.hide;return $===_&&(P||!X)}),x,d,!0);if(x==="number")E=e2(m,E,_,i,A),z&&(E=v1(z,E,w));else if(x==="category"&&z){var I=z,H=E.every(function(q){return I.indexOf(q)>=0});H&&(E=I)}}return Y(Y({},g),{},_e({},_,Y(Y({},y),{},{axisType:i,domain:E,categoricalDomain:O,duplicateDomain:T,originalDomain:(v=y.domain)!==null&&v!==void 0?v:F,isCategorical:f,layout:d})))},{})},Pbe=function(t,n){var r=n.graphicalItems,a=n.Axis,i=n.axisType,o=n.axisIdKey,l=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,d=t.layout,m=t.children,p=Uy(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),f=p.length,g=U6(d,i),h=-1;return r.reduce(function(v,y){var x=y.type.defaultProps!==void 0?Y(Y({},y.type.defaultProps),y.props):y.props,b=x[o],w=oF("number");if(!v[b]){h++;var k;return g?k=Rg(0,f):l&&l[b]&&l[b].hasStack?(k=V6(l[b].stackGroups,c,u),k=e2(m,k,b,i)):(k=v1(w,q6(p,r.filter(function(j){var A,P,_=o in j.props?j.props[o]:(A=j.type.defaultProps)===null||A===void 0?void 0:A[o],N="hide"in j.props?j.props.hide:(P=j.type.defaultProps)===null||P===void 0?void 0:P.hide;return _===b&&!N}),"number",d),a.defaultProps.allowDataOverflow),k=e2(m,k,b,i)),Y(Y({},v),{},_e({},b,Y(Y({axisType:i},a.defaultProps),{},{hide:!0,orientation:qr(bbe,"".concat(i,".").concat(h%2),null),domain:k,originalDomain:w,isCategorical:g,layout:d})))}return v},{})},Abe=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,i=n.AxisComp,o=n.graphicalItems,l=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,d=t.children,m="".concat(a,"Id"),p=nr(d,i),f={};return p&&p.length?f=jbe(t,{axes:p,graphicalItems:o,axisType:a,axisIdKey:m,stackGroups:l,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(f=Pbe(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:m,stackGroups:l,dataStartIndex:c,dataEndIndex:u})),f},_be=function(t){var n=co(t),r=Ai(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:jS(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Ng(n,r)}},KC=function(t){var n=t.children,r=t.defaultShowTooltip,a=hr(n,Ec),i=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(o=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},Nbe=function(t){return!t||!t.length?!1:t.some(function(n){var r=Ni(n&&n.type);return r&&r.indexOf("Bar")>=0})},GC=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Cbe=function(t,n){var r=t.props,a=t.graphicalItems,i=t.xAxisMap,o=i===void 0?{}:i,l=t.yAxisMap,c=l===void 0?{}:l,u=r.width,d=r.height,m=r.children,p=r.margin||{},f=hr(m,Ec),g=hr(m,rr),h=Object.keys(c).reduce(function(k,j){var A=c[j],P=A.orientation;return!A.mirror&&!A.hide?Y(Y({},k),{},_e({},P,k[P]+A.width)):k},{left:p.left||0,right:p.right||0}),v=Object.keys(o).reduce(function(k,j){var A=o[j],P=A.orientation;return!A.mirror&&!A.hide?Y(Y({},k),{},_e({},P,qr(k,"".concat(P))+A.height)):k},{top:p.top||0,bottom:p.bottom||0}),y=Y(Y({},v),h),x=y.bottom;f&&(y.bottom+=f.props.height||Ec.defaultProps.height),g&&n&&(y=Sde(y,a,r,n));var b=u-y.left-y.right,w=d-y.top-y.bottom;return Y(Y({brushBottom:x},y),{},{width:Math.max(b,0),height:Math.max(w,0)})},Ebe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},Wy=function(t){var n=t.chartName,r=t.GraphicalChild,a=t.defaultTooltipEventType,i=a===void 0?"axis":a,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,c=t.axisComponents,u=t.legendContent,d=t.formatAxisMap,m=t.defaultProps,p=function(v,y){var x=y.graphicalItems,b=y.stackGroups,w=y.offset,k=y.updateId,j=y.dataStartIndex,A=y.dataEndIndex,P=v.barSize,_=v.layout,N=v.barGap,C=v.barCategoryGap,E=v.maxBarSize,T=GC(_),O=T.numericAxisName,F=T.cateAxisName,D=Nbe(x),z=[];return x.forEach(function(R,B){var I=Uy(v.data,{graphicalItems:[R],dataStartIndex:j,dataEndIndex:A}),H=R.type.defaultProps!==void 0?Y(Y({},R.type.defaultProps),R.props):R.props,q=H.dataKey,$=H.maxBarSize,X=H["".concat(O,"Id")],pe=H["".concat(F,"Id")],te={},de=c.reduce(function(L,V){var G=y["".concat(V.axisType,"Map")],le=H["".concat(V.axisType,"Id")];G&&G[le]||V.axisType==="zAxis"||Qs();var oe=G[le];return Y(Y({},L),{},_e(_e({},V.axisType,oe),"".concat(V.axisType,"Ticks"),Ai(oe)))},te),Q=de[F],K=de["".concat(F,"Ticks")],ee=b&&b[X]&&b[X].hasStack&&Rde(R,b[X].stackGroups),ce=Ni(R.type).indexOf("Bar")>=0,W=Ng(Q,K),we=[],ve=D&&wde({barSize:P,stackGroups:b,totalSize:Ebe(de,F)});if(ce){var Ce,Te,Ye=$e($)?E:$,ht=(Ce=(Te=Ng(Q,K,!0))!==null&&Te!==void 0?Te:Ye)!==null&&Ce!==void 0?Ce:0;we=kde({barGap:N,barCategoryGap:C,bandSize:ht!==W?ht:W,sizeList:ve[pe],maxBarSize:Ye}),ht!==W&&(we=we.map(function(L){return Y(Y({},L),{},{position:Y(Y({},L.position),{},{offset:L.position.offset-ht/2})})}))}var qe=R&&R.type&&R.type.getComposedData;qe&&z.push({props:Y(Y({},qe(Y(Y({},de),{},{displayedData:I,props:v,dataKey:q,item:R,bandSize:W,barPosition:we,offset:w,stackedData:ee,layout:_,dataStartIndex:j,dataEndIndex:A}))),{},_e(_e(_e({key:R.key||"item-".concat(B)},O,de[O]),F,de[F]),"animationId",k)),childIndex:bY(R,v.children),item:R})}),z},f=function(v,y){var x=v.props,b=v.dataStartIndex,w=v.dataEndIndex,k=v.updateId;if(!fA({props:x}))return null;var j=x.children,A=x.layout,P=x.stackOffset,_=x.data,N=x.reverseStackOrder,C=GC(A),E=C.numericAxisName,T=C.cateAxisName,O=nr(j,r),F=Mde(_,O,"".concat(E,"Id"),"".concat(T,"Id"),P,N),D=c.reduce(function(H,q){var $="".concat(q.axisType,"Map");return Y(Y({},H),{},_e({},$,Abe(x,Y(Y({},q),{},{graphicalItems:O,stackGroups:q.axisType===E&&F,dataStartIndex:b,dataEndIndex:w}))))},{}),z=Cbe(Y(Y({},D),{},{props:x,graphicalItems:O}),y==null?void 0:y.legendBBox);Object.keys(D).forEach(function(H){D[H]=d(x,D[H],z,H.replace("Map",""),n)});var R=D["".concat(T,"Map")],B=_be(R),I=p(x,Y(Y({},D),{},{dataStartIndex:b,dataEndIndex:w,updateId:k,graphicalItems:O,stackGroups:F,offset:z}));return Y(Y({formattedGraphicalItems:I,graphicalItems:O,offset:z,stackGroups:F},B),D)},g=function(h){function v(y){var x,b,w;return cbe(this,v),w=mbe(this,v,[y]),_e(w,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),_e(w,"accessibilityManager",new Qxe),_e(w,"handleLegendBBoxUpdate",function(k){if(k){var j=w.state,A=j.dataStartIndex,P=j.dataEndIndex,_=j.updateId;w.setState(Y({legendBBox:k},f({props:w.props,dataStartIndex:A,dataEndIndex:P,updateId:_},Y(Y({},w.state),{},{legendBBox:k}))))}}),_e(w,"handleReceiveSyncEvent",function(k,j,A){if(w.props.syncId===k){if(A===w.eventEmitterSymbol&&typeof w.props.syncMethod!="function")return;w.applySyncEvent(j)}}),_e(w,"handleBrushChange",function(k){var j=k.startIndex,A=k.endIndex;if(j!==w.state.dataStartIndex||A!==w.state.dataEndIndex){var P=w.state.updateId;w.setState(function(){return Y({dataStartIndex:j,dataEndIndex:A},f({props:w.props,dataStartIndex:j,dataEndIndex:A,updateId:P},w.state))}),w.triggerSyncEvent({dataStartIndex:j,dataEndIndex:A})}}),_e(w,"handleMouseEnter",function(k){var j=w.getMouseInfo(k);if(j){var A=Y(Y({},j),{},{isTooltipActive:!0});w.setState(A),w.triggerSyncEvent(A);var P=w.props.onMouseEnter;Le(P)&&P(A,k)}}),_e(w,"triggeredAfterMouseMove",function(k){var j=w.getMouseInfo(k),A=j?Y(Y({},j),{},{isTooltipActive:!0}):{isTooltipActive:!1};w.setState(A),w.triggerSyncEvent(A);var P=w.props.onMouseMove;Le(P)&&P(A,k)}),_e(w,"handleItemMouseEnter",function(k){w.setState(function(){return{isTooltipActive:!0,activeItem:k,activePayload:k.tooltipPayload,activeCoordinate:k.tooltipPosition||{x:k.cx,y:k.cy}}})}),_e(w,"handleItemMouseLeave",function(){w.setState(function(){return{isTooltipActive:!1}})}),_e(w,"handleMouseMove",function(k){k.persist(),w.throttleTriggeredAfterMouseMove(k)}),_e(w,"handleMouseLeave",function(k){w.throttleTriggeredAfterMouseMove.cancel();var j={isTooltipActive:!1};w.setState(j),w.triggerSyncEvent(j);var A=w.props.onMouseLeave;Le(A)&&A(j,k)}),_e(w,"handleOuterEvent",function(k){var j=xY(k),A=qr(w.props,"".concat(j));if(j&&Le(A)){var P,_;/.*touch.*/i.test(j)?_=w.getMouseInfo(k.changedTouches[0]):_=w.getMouseInfo(k),A((P=_)!==null&&P!==void 0?P:{},k)}}),_e(w,"handleClick",function(k){var j=w.getMouseInfo(k);if(j){var A=Y(Y({},j),{},{isTooltipActive:!0});w.setState(A),w.triggerSyncEvent(A);var P=w.props.onClick;Le(P)&&P(A,k)}}),_e(w,"handleMouseDown",function(k){var j=w.props.onMouseDown;if(Le(j)){var A=w.getMouseInfo(k);j(A,k)}}),_e(w,"handleMouseUp",function(k){var j=w.props.onMouseUp;if(Le(j)){var A=w.getMouseInfo(k);j(A,k)}}),_e(w,"handleTouchMove",function(k){k.changedTouches!=null&&k.changedTouches.length>0&&w.throttleTriggeredAfterMouseMove(k.changedTouches[0])}),_e(w,"handleTouchStart",function(k){k.changedTouches!=null&&k.changedTouches.length>0&&w.handleMouseDown(k.changedTouches[0])}),_e(w,"handleTouchEnd",function(k){k.changedTouches!=null&&k.changedTouches.length>0&&w.handleMouseUp(k.changedTouches[0])}),_e(w,"triggerSyncEvent",function(k){w.props.syncId!==void 0&&Sb.emit(jb,w.props.syncId,k,w.eventEmitterSymbol)}),_e(w,"applySyncEvent",function(k){var j=w.props,A=j.layout,P=j.syncMethod,_=w.state.updateId,N=k.dataStartIndex,C=k.dataEndIndex;if(k.dataStartIndex!==void 0||k.dataEndIndex!==void 0)w.setState(Y({dataStartIndex:N,dataEndIndex:C},f({props:w.props,dataStartIndex:N,dataEndIndex:C,updateId:_},w.state)));else if(k.activeTooltipIndex!==void 0){var E=k.chartX,T=k.chartY,O=k.activeTooltipIndex,F=w.state,D=F.offset,z=F.tooltipTicks;if(!D)return;if(typeof P=="function")O=P(z,k);else if(P==="value"){O=-1;for(var R=0;R<z.length;R++)if(z[R].value===k.activeLabel){O=R;break}}var B=Y(Y({},D),{},{x:D.left,y:D.top}),I=Math.min(E,B.x+B.width),H=Math.min(T,B.y+B.height),q=z[O]&&z[O].value,$=r2(w.state,w.props.data,O),X=z[O]?{x:A==="horizontal"?z[O].coordinate:I,y:A==="horizontal"?H:z[O].coordinate}:iF;w.setState(Y(Y({},k),{},{activeLabel:q,activeCoordinate:X,activePayload:$,activeTooltipIndex:O}))}else w.setState(k)}),_e(w,"renderCursor",function(k){var j,A=w.state,P=A.isTooltipActive,_=A.activeCoordinate,N=A.activePayload,C=A.offset,E=A.activeTooltipIndex,T=A.tooltipAxisBandSize,O=w.getTooltipEventType(),F=(j=k.props.active)!==null&&j!==void 0?j:P,D=w.props.layout,z=k.key||"_recharts-cursor";return M.createElement(nbe,{key:z,activeCoordinate:_,activePayload:N,activeTooltipIndex:E,chartName:n,element:k,isActive:F,layout:D,offset:C,tooltipAxisBandSize:T,tooltipEventType:O})}),_e(w,"renderPolarAxis",function(k,j,A){var P=qr(k,"type.axisType"),_=qr(w.state,"".concat(P,"Map")),N=k.type.defaultProps,C=N!==void 0?Y(Y({},N),k.props):k.props,E=_&&_[C["".concat(P,"Id")]];return S.cloneElement(k,Y(Y({},E),{},{className:We(P,E.className),key:k.key||"".concat(j,"-").concat(A),ticks:Ai(E,!0)}))}),_e(w,"renderPolarGrid",function(k){var j=k.props,A=j.radialLines,P=j.polarAngles,_=j.polarRadius,N=w.state,C=N.radiusAxisMap,E=N.angleAxisMap,T=co(C),O=co(E),F=O.cx,D=O.cy,z=O.innerRadius,R=O.outerRadius;return S.cloneElement(k,{polarAngles:Array.isArray(P)?P:Ai(O,!0).map(function(B){return B.coordinate}),polarRadius:Array.isArray(_)?_:Ai(T,!0).map(function(B){return B.coordinate}),cx:F,cy:D,innerRadius:z,outerRadius:R,key:k.key||"polar-grid",radialLines:A})}),_e(w,"renderLegend",function(){var k=w.state.formattedGraphicalItems,j=w.props,A=j.children,P=j.width,_=j.height,N=w.props.margin||{},C=P-(N.left||0)-(N.right||0),E=z6({children:A,formattedGraphicalItems:k,legendWidth:C,legendContent:u});if(!E)return null;var T=E.item,O=WC(E,rbe);return S.cloneElement(T,Y(Y({},O),{},{chartWidth:P,chartHeight:_,margin:N,onBBoxUpdate:w.handleLegendBBoxUpdate}))}),_e(w,"renderTooltip",function(){var k,j=w.props,A=j.children,P=j.accessibilityLayer,_=hr(A,Mt);if(!_)return null;var N=w.state,C=N.isTooltipActive,E=N.activeCoordinate,T=N.activePayload,O=N.activeLabel,F=N.offset,D=(k=_.props.active)!==null&&k!==void 0?k:C;return S.cloneElement(_,{viewBox:Y(Y({},F),{},{x:F.left,y:F.top}),active:D,label:O,payload:D?T:[],coordinate:E,accessibilityLayer:P})}),_e(w,"renderBrush",function(k){var j=w.props,A=j.margin,P=j.data,_=w.state,N=_.offset,C=_.dataStartIndex,E=_.dataEndIndex,T=_.updateId;return S.cloneElement(k,{key:k.key||"_recharts-brush",onChange:Af(w.handleBrushChange,k.props.onChange),data:P,x:se(k.props.x)?k.props.x:N.left,y:se(k.props.y)?k.props.y:N.top+N.height+N.brushBottom-(A.bottom||0),width:se(k.props.width)?k.props.width:N.width,startIndex:C,endIndex:E,updateId:"brush-".concat(T)})}),_e(w,"renderReferenceElement",function(k,j,A){if(!k)return null;var P=w,_=P.clipPathId,N=w.state,C=N.xAxisMap,E=N.yAxisMap,T=N.offset,O=k.type.defaultProps||{},F=k.props,D=F.xAxisId,z=D===void 0?O.xAxisId:D,R=F.yAxisId,B=R===void 0?O.yAxisId:R;return S.cloneElement(k,{key:k.key||"".concat(j,"-").concat(A),xAxis:C[z],yAxis:E[B],viewBox:{x:T.left,y:T.top,width:T.width,height:T.height},clipPathId:_})}),_e(w,"renderActivePoints",function(k){var j=k.item,A=k.activePoint,P=k.basePoint,_=k.childIndex,N=k.isRange,C=[],E=j.props.key,T=j.item.type.defaultProps!==void 0?Y(Y({},j.item.type.defaultProps),j.item.props):j.item.props,O=T.activeDot,F=T.dataKey,D=Y(Y({index:_,dataKey:F,cx:A.x,cy:A.y,r:4,fill:YS(j.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},Me(O,!1)),eg(O));return C.push(v.renderActiveDot(O,D,"".concat(E,"-activePoint-").concat(_))),P?C.push(v.renderActiveDot(O,Y(Y({},D),{},{cx:P.x,cy:P.y}),"".concat(E,"-basePoint-").concat(_))):N&&C.push(null),C}),_e(w,"renderGraphicChild",function(k,j,A){var P=w.filterFormatItem(k,j,A);if(!P)return null;var _=w.getTooltipEventType(),N=w.state,C=N.isTooltipActive,E=N.tooltipAxis,T=N.activeTooltipIndex,O=N.activeLabel,F=w.props.children,D=hr(F,Mt),z=P.props,R=z.points,B=z.isRange,I=z.baseLine,H=P.item.type.defaultProps!==void 0?Y(Y({},P.item.type.defaultProps),P.item.props):P.item.props,q=H.activeDot,$=H.hide,X=H.activeBar,pe=H.activeShape,te=!!(!$&&C&&D&&(q||X||pe)),de={};_!=="axis"&&D&&D.props.trigger==="click"?de={onClick:Af(w.handleItemMouseEnter,k.props.onClick)}:_!=="axis"&&(de={onMouseLeave:Af(w.handleItemMouseLeave,k.props.onMouseLeave),onMouseEnter:Af(w.handleItemMouseEnter,k.props.onMouseEnter)});var Q=S.cloneElement(k,Y(Y({},P.props),de));function K(V){return typeof E.dataKey=="function"?E.dataKey(V.payload):null}if(te)if(T>=0){var ee,ce;if(E.dataKey&&!E.allowDuplicatedCategory){var W=typeof E.dataKey=="function"?K:"payload.".concat(E.dataKey.toString());ee=Jh(R,W,O),ce=B&&I&&Jh(I,W,O)}else ee=R==null?void 0:R[T],ce=B&&I&&I[T];if(pe||X){var we=k.props.activeIndex!==void 0?k.props.activeIndex:T;return[S.cloneElement(k,Y(Y(Y({},P.props),de),{},{activeIndex:we})),null,null]}if(!$e(ee))return[Q].concat(Uc(w.renderActivePoints({item:P,activePoint:ee,basePoint:ce,childIndex:T,isRange:B})))}else{var ve,Ce=(ve=w.getItemByXY(w.state.activeCoordinate))!==null&&ve!==void 0?ve:{graphicalItem:Q},Te=Ce.graphicalItem,Ye=Te.item,ht=Ye===void 0?k:Ye,qe=Te.childIndex,L=Y(Y(Y({},P.props),de),{},{activeIndex:qe});return[S.cloneElement(ht,L),null,null]}return B?[Q,null,null]:[Q,null]}),_e(w,"renderCustomized",function(k,j,A){return S.cloneElement(k,Y(Y({key:"recharts-customized-".concat(A)},w.props),w.state))}),_e(w,"renderMap",{CartesianGrid:{handler:Tf,once:!0},ReferenceArea:{handler:w.renderReferenceElement},ReferenceLine:{handler:Tf},ReferenceDot:{handler:w.renderReferenceElement},XAxis:{handler:Tf},YAxis:{handler:Tf},Brush:{handler:w.renderBrush,once:!0},Bar:{handler:w.renderGraphicChild},Line:{handler:w.renderGraphicChild},Area:{handler:w.renderGraphicChild},Radar:{handler:w.renderGraphicChild},RadialBar:{handler:w.renderGraphicChild},Scatter:{handler:w.renderGraphicChild},Pie:{handler:w.renderGraphicChild},Funnel:{handler:w.renderGraphicChild},Tooltip:{handler:w.renderCursor,once:!0},PolarGrid:{handler:w.renderPolarGrid,once:!0},PolarAngleAxis:{handler:w.renderPolarAxis},PolarRadiusAxis:{handler:w.renderPolarAxis},Customized:{handler:w.renderCustomized}}),w.clipPathId="".concat((x=y.id)!==null&&x!==void 0?x:al("recharts"),"-clip"),w.throttleTriggeredAfterMouseMove=z3(w.triggeredAfterMouseMove,(b=y.throttleDelay)!==null&&b!==void 0?b:1e3/60),w.state={},w}return hbe(v,h),dbe(v,[{key:"componentDidMount",value:function(){var x,b;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(b=this.props.margin.top)!==null&&b!==void 0?b:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,b=x.children,w=x.data,k=x.height,j=x.layout,A=hr(b,Mt);if(A){var P=A.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var _=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,N=r2(this.state,w,P,_),C=this.state.tooltipTicks[P].coordinate,E=(this.state.offset.top+k)/2,T=j==="horizontal",O=T?{x:C,y:E}:{y:C,x:E},F=this.state.formattedGraphicalItems.find(function(z){var R=z.item;return R.type.name==="Scatter"});F&&(O=Y(Y({},O),F.props.points[P].tooltipPosition),N=F.props.points[P].tooltipPayload);var D={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:_,activePayload:N,activeCoordinate:O};this.setState(D),this.renderCursor(A),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,b){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==b.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var w,k;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(k=this.props.margin.top)!==null&&k!==void 0?k:0}})}return null}},{key:"componentDidUpdate",value:function(x){Ow([hr(x.children,Mt)],[hr(this.props.children,Mt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=hr(this.props.children,Mt);if(x&&typeof x.props.shared=="boolean"){var b=x.props.shared?"axis":"item";return l.indexOf(b)>=0?b:i}return i}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var b=this.container,w=b.getBoundingClientRect(),k=Hoe(w),j={chartX:Math.round(x.pageX-k.left),chartY:Math.round(x.pageY-k.top)},A=w.width/b.offsetWidth||1,P=this.inRange(j.chartX,j.chartY,A);if(!P)return null;var _=this.state,N=_.xAxisMap,C=_.yAxisMap,E=this.getTooltipEventType();if(E!=="axis"&&N&&C){var T=co(N).scale,O=co(C).scale,F=T&&T.invert?T.invert(j.chartX):null,D=O&&O.invert?O.invert(j.chartY):null;return Y(Y({},j),{},{xValue:F,yValue:D})}var z=HC(this.state,this.props.data,this.props.layout,P);return z?Y(Y({},j),z):null}},{key:"inRange",value:function(x,b){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,k=this.props.layout,j=x/w,A=b/w;if(k==="horizontal"||k==="vertical"){var P=this.state.offset,_=j>=P.left&&j<=P.left+P.width&&A>=P.top&&A<=P.top+P.height;return _?{x:j,y:A}:null}var N=this.state,C=N.angleAxisMap,E=N.radiusAxisMap;if(C&&E){var T=co(C);return SN({x:j,y:A},T)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,b=this.getTooltipEventType(),w=hr(x,Mt),k={};w&&b==="axis"&&(w.props.trigger==="click"?k={onClick:this.handleClick}:k={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var j=eg(this.props,this.handleOuterEvent);return Y(Y({},j),k)}},{key:"addListener",value:function(){Sb.on(jb,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Sb.removeListener(jb,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,b,w){for(var k=this.state.formattedGraphicalItems,j=0,A=k.length;j<A;j++){var P=k[j];if(P.item===x||P.props.key===x.key||b===Ni(P.item.type)&&w===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,b=this.state.offset,w=b.left,k=b.top,j=b.height,A=b.width;return M.createElement("defs",null,M.createElement("clipPath",{id:x},M.createElement("rect",{x:w,y:k,height:j,width:A})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(b,w){var k=UC(w,2),j=k[0],A=k[1];return Y(Y({},b),{},_e({},j,A.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(b,w){var k=UC(w,2),j=k[0],A=k[1];return Y(Y({},b),{},_e({},j,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var b;return(b=this.state.xAxisMap)===null||b===void 0||(b=b[x])===null||b===void 0?void 0:b.scale}},{key:"getYScaleByAxisId",value:function(x){var b;return(b=this.state.yAxisMap)===null||b===void 0||(b=b[x])===null||b===void 0?void 0:b.scale}},{key:"getItemByXY",value:function(x){var b=this.state,w=b.formattedGraphicalItems,k=b.activeItem;if(w&&w.length)for(var j=0,A=w.length;j<A;j++){var P=w[j],_=P.props,N=P.item,C=N.type.defaultProps!==void 0?Y(Y({},N.type.defaultProps),N.props):N.props,E=Ni(N.type);if(E==="Bar"){var T=(_.data||[]).find(function(z){return yfe(x,z)});if(T)return{graphicalItem:P,payload:T}}else if(E==="RadialBar"){var O=(_.data||[]).find(function(z){return SN(x,z)});if(O)return{graphicalItem:P,payload:O}}else if(Ry(P,k)||Dy(P,k)||Vm(P,k)){var F=bhe({graphicalItem:P,activeTooltipItem:k,itemData:C.data}),D=C.activeIndex===void 0?F:C.activeIndex;return{graphicalItem:Y(Y({},P),{},{childIndex:D}),payload:Vm(P,k)?C.data[F]:P.props.data[F]}}}return null}},{key:"render",value:function(){var x=this;if(!fA(this))return null;var b=this.props,w=b.children,k=b.className,j=b.width,A=b.height,P=b.style,_=b.compact,N=b.title,C=b.desc,E=WC(b,abe),T=Me(E,!1);if(_)return M.createElement(wC,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},M.createElement(Mw,Md({},T,{width:j,height:A,title:N,desc:C}),this.renderClipPath(),gA(w,this.renderMap)));if(this.props.accessibilityLayer){var O,F;T.tabIndex=(O=this.props.tabIndex)!==null&&O!==void 0?O:0,T.role=(F=this.props.role)!==null&&F!==void 0?F:"application",T.onKeyDown=function(z){x.accessibilityManager.keyboardEvent(z)},T.onFocus=function(){x.accessibilityManager.focus()}}var D=this.parseEventsOfWrapper();return M.createElement(wC,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},M.createElement("div",Md({className:We("recharts-wrapper",k),style:Y({position:"relative",cursor:"default",width:j,height:A},P)},D,{ref:function(R){x.container=R}}),M.createElement(Mw,Md({},T,{width:j,height:A,title:N,desc:C,style:wbe}),this.renderClipPath(),gA(w,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(S.Component);return _e(g,"displayName",n),_e(g,"defaultProps",Y({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},m)),_e(g,"getDerivedStateFromProps",function(h,v){var y=h.dataKey,x=h.data,b=h.children,w=h.width,k=h.height,j=h.layout,A=h.stackOffset,P=h.margin,_=v.dataStartIndex,N=v.dataEndIndex;if(v.updateId===void 0){var C=KC(h);return Y(Y(Y({},C),{},{updateId:0},f(Y(Y({props:h},C),{},{updateId:0}),v)),{},{prevDataKey:y,prevData:x,prevWidth:w,prevHeight:k,prevLayout:j,prevStackOffset:A,prevMargin:P,prevChildren:b})}if(y!==v.prevDataKey||x!==v.prevData||w!==v.prevWidth||k!==v.prevHeight||j!==v.prevLayout||A!==v.prevStackOffset||!Yl(P,v.prevMargin)){var E=KC(h),T={chartX:v.chartX,chartY:v.chartY,isTooltipActive:v.isTooltipActive},O=Y(Y({},HC(v,x,j)),{},{updateId:v.updateId+1}),F=Y(Y(Y({},E),T),O);return Y(Y(Y({},F),f(Y({props:h},F),v)),{},{prevDataKey:y,prevData:x,prevWidth:w,prevHeight:k,prevLayout:j,prevStackOffset:A,prevMargin:P,prevChildren:b})}if(!Ow(b,v.prevChildren)){var D,z,R,B,I=hr(b,Ec),H=I&&(D=(z=I.props)===null||z===void 0?void 0:z.startIndex)!==null&&D!==void 0?D:_,q=I&&(R=(B=I.props)===null||B===void 0?void 0:B.endIndex)!==null&&R!==void 0?R:N,$=H!==_||q!==N,X=!$e(x),pe=X&&!$?v.updateId:v.updateId+1;return Y(Y({updateId:pe},f(Y(Y({props:h},v),{},{updateId:pe,dataStartIndex:H,dataEndIndex:q}),v)),{},{prevChildren:b,dataStartIndex:H,dataEndIndex:q})}return null}),_e(g,"renderActiveDot",function(h,v,y){var x;
527return S.isValidElement(h)?x=S.cloneElement(h,v):Le(h)?x=h(v):x=M.createElement(Fy,v),M.createElement(Xe,{className:"recharts-active-dot",key:y},x)}),function(v){return M.createElement(g,v)}},oj=Wy({chartName:"LineChart",GraphicalChild:Ur,axisComponents:[{axisType:"xAxis",AxisComp:sn},{axisType:"yAxis",AxisComp:Ht}],formatAxisMap:zy}),Dp=Wy({chartName:"BarChart",GraphicalChild:fn,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:sn},{axisType:"yAxis",AxisComp:Ht}],formatAxisMap:zy}),sF=Wy({chartName:"ScatterChart",GraphicalChild:cl,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:sn},{axisType:"yAxis",AxisComp:Ht},{axisType:"zAxis",AxisComp:ll}],formatAxisMap:zy}),lF=Wy({chartName:"ComposedChart",GraphicalChild:[Ur,sl,fn,cl],axisComponents:[{axisType:"xAxis",AxisComp:sn},{axisType:"yAxis",AxisComp:Ht},{axisType:"zAxis",AxisComp:ll}],formatAxisMap:zy});const ev=({data:e})=>s.jsx("div",{className:"overflow-x-auto my-4 w-full min-w-0",children:s.jsxs("table",{className:"w-full text-sm border-collapse table-fixed",children:[s.jsx("thead",{children:s.jsx("tr",{className:"border-b border-gray-200",children:e.headers.map((t,n)=>s.jsx("th",{className:"text-left py-2 px-2 text-gray-700 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight",children:t},n))})}),s.jsx("tbody",{children:e.rows.map((t,n)=>s.jsx("tr",{className:"border-b border-gray-100 hover:bg-gray-50 transition-colors",children:t.map((r,a)=>s.jsx("td",{className:`py-2.5 px-2 ${a===0?"text-gray-600 font-mono text-xs":a===2?"text-gray-800 font-bold":"text-gray-800"}`,children:r},a))},n))})]})}),cF=({data:e,note:t,lang:n})=>s.jsxs("div",{className:"my-4",children:[s.jsx("div",{className:"h-[220px] w-full",children:s.jsx(Gr,{width:"100%",height:"100%",children:s.jsxs(oj,{data:e,margin:{top:5,right:20,left:10,bottom:5},children:[s.jsx(Yr,{strokeDasharray:"3 3",stroke:"rgba(0,0,0,0.06)"}),s.jsx(sn,{dataKey:"month",stroke:"rgba(0,0,0,0.4)",tick:{fontSize:12,fill:"#6b7280"}}),s.jsx(Ht,{stroke:"rgba(0,0,0,0.4)",tick:{fontSize:12,fill:"#6b7280"},tickFormatter:r=>`${(r/1e3).toFixed(0)}k`}),s.jsx(Mt,{contentStyle:{backgroundColor:"#fff",border:"1px solid #e5e7eb",borderRadius:"8px",color:"#1f2937",boxShadow:"0 4px 6px -1px rgba(0,0,0,0.1)"},labelStyle:{color:"#6b7280"}}),s.jsx(rr,{wrapperStyle:{color:"#6b7280",fontSize:"12px"}}),s.jsx(Ur,{type:"monotone",dataKey:"seasonality",name:n==="pt"?"Sazonalidade":"Seasonality",stroke:"#f97316",strokeWidth:2.5,dot:{r:4,fill:"#f97316"}}),s.jsx(Ur,{type:"monotone",dataKey:"trend",name:n==="pt"?"Tendência":"Trend",stroke:"#3b82f6",strokeWidth:2.5,dot:{r:4,fill:"#3b82f6"}}),s.jsx(Ur,{type:"monotone",dataKey:"projected",name:n==="pt"?"Vendas projetadas":"Projected sales",stroke:"#10b981",strokeWidth:2.5,strokeDasharray:"5 5",dot:{r:4,fill:"#10b981"}})]})})}),s.jsx("p",{className:"text-gray-400 text-xs mt-3 leading-relaxed",children:t})]}),uF=({data:e,lang:t})=>s.jsx("div",{className:"my-4",children:s.jsx("div",{className:"h-[220px] w-full",children:s.jsx(Gr,{width:"100%",height:"100%",children:s.jsxs(lF,{data:e,margin:{top:5,right:20,left:10,bottom:5},children:[s.jsx(Yr,{strokeDasharray:"3 3",stroke:"rgba(0,0,0,0.06)"}),s.jsx(sn,{dataKey:"territory",stroke:"rgba(0,0,0,0.4)",tick:{fontSize:11,fill:"#6b7280"}}),s.jsx(Ht,{yAxisId:"left",stroke:"rgba(0,0,0,0.4)",tick:{fontSize:12,fill:"#6b7280"},tickFormatter:n=>`${n}k`}),s.jsx(Ht,{yAxisId:"right",orientation:"right",domain:[0,100],stroke:"rgba(0,0,0,0.2)",tick:{fontSize:12,fill:"#6b7280"}}),s.jsx(Mt,{contentStyle:{backgroundColor:"#fff",border:"1px solid #e5e7eb",borderRadius:"8px",color:"#1f2937",boxShadow:"0 4px 6px -1px rgba(0,0,0,0.1)"},labelStyle:{color:"#6b7280"},formatter:(n,r)=>r==="Score"?[n,r]:[`${n}k`,r]}),s.jsx(rr,{wrapperStyle:{color:"#6b7280",fontSize:"12px"}}),s.jsx(fn,{yAxisId:"left",dataKey:"gap",name:"Gap",fill:"#f97316",radius:[4,4,0,0],barSize:28}),s.jsx(fn,{yAxisId:"left",dataKey:"potential",name:t==="pt"?"Potencial":"Potential",fill:"#3b82f6",radius:[4,4,0,0],barSize:28}),s.jsx(Ur,{yAxisId:"right",type:"monotone",dataKey:"score",name:"Score",stroke:"#10b981",strokeWidth:2.5,dot:{r:4,fill:"#10b981"}})]})})})}),dF=({comparison:e})=>s.jsx("div",{className:"overflow-x-auto my-4 w-full min-w-0",children:s.jsxs("table",{className:"w-full text-sm border-collapse table-fixed",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"border-b border-gray-200",children:[s.jsx("th",{className:"text-left py-2 px-2 text-gray-900 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight",children:"Categoria"}),s.jsx("th",{className:"text-center py-2 px-2 text-gray-900 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight",children:"Atual"}),s.jsx("th",{className:"text-center py-2 px-2 text-gray-900 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight",children:"Recomendado"}),s.jsx("th",{className:"text-center py-2 px-2 text-gray-900 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight",children:"Tendência"})]})}),s.jsx("tbody",{children:e.map((t,n)=>s.jsxs("tr",{className:"border-b border-gray-100",children:[s.jsx("td",{className:"py-2.5 px-2 text-gray-900",children:t.category}),s.jsx("td",{className:"py-2.5 px-2 text-center text-gray-900",children:t.current}),s.jsx("td",{className:"py-2.5 px-2 text-center text-gray-900 font-medium",children:t.recommended}),s.jsxs("td",{className:"py-2.5 px-2 text-center text-gray-900 font-bold",children:[t.direction==="up"&&"+",t.direction==="down"&&"â",t.direction==="stable"&&"="]})]},n))})]})}),mF=({data:e,note:t,lang:n})=>s.jsxs("div",{className:"my-4",children:[s.jsx("div",{className:"h-[220px] w-full",children:s.jsx(Gr,{width:"100%",height:"100%",children:s.jsxs(Dp,{data:e,margin:{top:5,right:20,left
527:10,bottom:5},children:[s.jsx(Yr,{strokeDasharray:"3 3",stroke:"rgba(0,0,0,0.06)"}),s.jsx(sn,{dataKey:"month",stroke:"rgba(0,0,0,0.4)",tick:{fontSize:12,fill:"#6b7280"}}),s.jsx(Ht,{stroke:"rgba(0,0,0,0.4)",tick:{fontSize:12,fill:"#6b7280"},tickFormatter:r=>`${(r/1e3).toFixed(1)}k`}),s.jsx(Mt,{contentStyle:{backgroundColor:"#fff",border:"1px solid #e5e7eb",borderRadius:"8px",color:"#1f2937",boxShadow:"0 4px 6px -1px rgba(0,0,0,0.1)"},labelStyle:{color:"#6b7280"}}),s.jsx(rr,{wrapperStyle:{color:"#6b7280",fontSize:"12px"}}),s.jsx(fn,{dataKey:"compra",name:n==="pt"?"Compra":"Purchase",fill:"#f97316",radius:[4,4,0,0]}),s.jsx(fn,{dataKey:"recompra",name:n==="pt"?"Recompra":"Repurchase",fill:"#3b82f6",radius:[4,4,0,0]})]})})}),s.jsx("p",{className:"text-gray-400 text-xs mt-3 leading-relaxed",children:t})]}),pF=({data:e,note:t,lang:n})=>s.jsxs("div",{className:"my-4",children:[s.jsx("div",{className:"h-[260px] w-full",children:s.jsx(Gr,{width:"100%",height:"100%",children:s.jsxs(lF,{data:e,margin:{top:5,right:20,left:10,bottom:20},children:[s.jsx(Yr,{strokeDasharray:"3 3",stroke:"rgba(0,0,0,0.06)"}),s.jsx(sn,{dataKey:"product",stroke:"rgba(0,0,0,0.4)",tick:{fontSize:11,fill:"#6b7280"},interval:0,angle:-15,textAnchor:"end",height:50}),s.jsx(Ht,{yAxisId:"left",stroke:"rgba(0,0,0,0.4)",tick:{fontSize:12,fill:"#6b7280"},tickFormatter:r=>`${(r/1e3).toFixed(1)}k`}),s.jsx(Ht,{yAxisId:"right",orientation:"right",domain:[0,100],stroke:"rgba(0,0,0,0.2)",tick:{fontSize:12,fill:"#6b7280"},tickFormatter:r=>`${r}%`}),s.jsx(Mt,{contentStyle:{backgroundColor:"#fff",border:"1px solid #e5e7eb",borderRadius:"8px",color:"#1f2937",boxShadow:"0 4px 6px -1px rgba(0,0,0,0.1)"},labelStyle:{color:"#6b7280"},formatter:(r,a)=>a===(n==="pt"?"Propensão média":"Avg. propensity")?[`${r}%`,a]:[r.toLocaleString(n==="pt"?"pt-BR":"en-US"),a]}),s.jsx(rr,{wrapperStyle:{color:"#6b7280",fontSize:"12px"}}),s.jsx(fn,{yAxisId:"left",dataKey:"customers",name:n==="pt"?"Clientes propensos":"Propense customers",fill:"#f97316",radius:[4,4,0,0],barSize:28}),s.jsx(Ur,{yAxisId:"right",type:"monotone",dataKey:"propensity",name:n==="pt"?"Propensão média":"Avg. propensity",stroke:"#3b82f6",strokeWidth:2.5,dot:{r:4,fill:"#3b82f6"}})]})})}),s.jsx("p",{className:"text-gray-400 text-xs mt-3 leading-relaxed",children:t})]}),fF=({table:e,detail:t,lang:n})=>s.jsxs("div",{className:"my-4",children:[s.jsx("div",{className:"overflow-hidden w-full min-w-0",children:s.jsxs("table",{className:"w-full text-sm border-collapse table-fixed",children:[s.jsx("thead",{children:s.jsx("tr",{className:"border-b border-gray-200",children:e.headers.map((r,a)=>s.jsx("th",{className:`py-2 px-2 text-gray-700 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight ${a===0?"text-left":"text-center"}`,children:r},a))})}),s.jsx("tbody",{children:e.rows.map((r,a)=>s.jsx("tr",{className:"border-b border-gray-100",children:r.map((i,o)=>s.jsx("td",{className:`py-2.5 px-2 ${o===0?"text-gray-900 font-semibold text-left":"text-gray-800 text-center"} ${o===r.length-1?"font-bold text-orange-600":""}`,children:i},o))},a))})]})}),s.jsxs("div",{className:"mt-5 overflow-hidden w-full min-w-0",children:[s.jsx("p",{className:"text-orange-500 font-semibold text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight mb-2",children:n==="pt"?"Comportamento e abordagem por cluster":"Behavior and approach per cluster"}),s.jsxs("table",{className:"w-full text-sm border-collapse table-fixed",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"border-b border-gray-200",children:[s.jsx("th",{className:"py-2 px-2 text-left text-gray-700 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight",children:"Cluster"}),s.jsx("th",{className:"py-2 px-2 text-left text-gray-700 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight",children:n==="pt"?"Comportamento":"Behavior"}),s.jsx("th",{className:"py-2 px-2 text-left text-gray-700 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight",children:n==="pt"?"Como abordar":"How to approach"})]})}),s.jsx("tbody",{children:t.map((r,a)=>s.jsxs("tr",{className:"border-b border-gray-100 align-top",children:[s.jsx("td",{className:"py-2.5 px-2 text-orange-600 font-semibold break-words",children:r.name}),s.jsx("td",{className:"py-2.5 px-2 text-gray-700 leading-relaxed",children:r.description}),s.jsx("td",{className:"py-2.5 px-2 text-gray-700 leading-relaxed",children:r.approach})]},a))})]})]})]}),Tbe=e=>{const t=e.toLowerCase();return t.includes("abaixo")||t.includes("below")||t.includes("expansão")||t.includes("expansion")||t.includes("opportunity")||t.includes("oportunidade")?"text-emerald-700 font-semibold":t.includes("acima")||t.includes("above")?"text-red-600 font-semibold":t.includes("compatÃvel")||t.includes("aligned")?"text-blue-700 font-semibold":"text-gray-700 font-semibold"},Obe=({data:e,lang:t})=>{const n=e.rows;return s.jsxs("div",{className:"overflow-x-auto my-4 w-full min-w-0",children:[s.jsxs("table",{className:"w-full text-sm border-collapse table-fixed",children:[s.jsx("thead",{children:s.jsx("tr",{className:"border-b border-gray-200 bg-gray-50/60",children:e.headers.map((r,a)=>s.jsx("th",{className:`py-2 px-2 text-gray-700 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight ${a>=4?"text-right":"text-left"}`,children:r},a))})}),s.jsx("tbody",{children:n.map((r,a)=>{const i=a>0&&n[a-1][0]===r[0];return s.jsx("tr",{className:`border-b border-gray-100 ${i?"":"border-t-2 border-t-gray-200"}`,children:r.map((o,l)=>{const c=l===0,u=l===5,d=l===6;return s.jsx("td",{className:`py-2.5 px-2 ${l>=4?"text-right tabular-nums":"text-left"} ${c?i?"text-transparent":"text-gray-900 font-semibold":u?"text-orange-600 font-semibold":d?"text-emerald-700 font-bold":"text-gray-800"}`,children:o},l)})},a)})})]}),s.jsx("p",{className:"text-gray-400 text-xs mt-3 leading-relaxed",children:t==="pt"?"Heatmap hierárquico de potencial por região, vendedor, cliente e SKU. A coluna Potencial representa o volume máximo previsto; a Meta sugerida preserva uma faixa de segurança.":"Hierarchical potential heatmap by region, rep, client and SKU. The Potential column represents predicted maximum volume;
527 Suggested target keeps a safety band."})]})},Ab={above:"#ef4444",match:"#3b82f6",below:"#10b981",uncertain:"#f59e0b"},Ibe={above:{pt:"Meta acima do potencial",en:"Target above potential"},match:{pt:"Meta compatÃvel",en:"Target aligned"},below:{pt:"Meta abaixo do potencial",en:"Target below potential"},uncertain:{pt:"Alta incerteza",en:"High uncertainty"}},Mbe=({data:e,lang:t})=>{const n=["above","match","below","uncertain"];return s.jsxs("div",{className:"my-4",children:[s.jsx("div",{className:"h-[280px] w-full",children:s.jsx(Gr,{width:"100%",height:"100%",children:s.jsxs(sF,{margin:{top:10,right:20,left:10,bottom:10},children:[s.jsx(Yr,{strokeDasharray:"3 3",stroke:"rgba(0,0,0,0.06)"}),s.jsx(sn,{type:"number",dataKey:"probability",domain:[0,100],tick:{fontSize:12,fill:"#6b7280"},tickFormatter:r=>`${r}%`,label:{value:t==="pt"?"Probabilidade de atingimento":"Attainment probability",position:"insideBottom",offset:-4,fill:"#6b7280",fontSize:11}}),s.jsx(Ht,{type:"number",dataKey:"delta",tick:{fontSize:12,fill:"#6b7280"},tickFormatter:r=>`${(r/1e3).toFixed(1)}k`,label:{value:t==="pt"?"Î Meta â Projeção":"Î Target â Projected",angle:-90,position:"insideLeft",fill:"#6b7280",fontSize:11}}),s.jsx(ll,{type:"number",dataKey:"size",range:[120,900]}),s.jsx(Bo,{x:60,stroke:"#9ca3af",strokeDasharray:"4 4"}),s.jsx(Bo,{y:0,stroke:"#9ca3af",strokeDasharray:"4 4"}),s.jsx(Mt,{cursor:{strokeDasharray:"3 3"},contentStyle:{backgroundColor:"#fff",border:"1px solid #e5e7eb",borderRadius:"8px",color:"#1f2937",boxShadow:"0 4px 6px -1px rgba(0,0,0,0.1)"},formatter:(r,a,i)=>a==="probability"?[`${r}%`,t==="pt"?"Probabilidade":"Probability"]:a==="delta"?[`${r>0?"+":""}${r.toLocaleString(t==="pt"?"pt-BR":"en-US")}`,t==="pt"?"Î MetaâProjeção":"Î TargetâProjected"]:a==="size"?[r.toLocaleString(t==="pt"?"pt-BR":"en-US"),t==="pt"?"Volume potencial":"Potential volume"]:[r,a],labelFormatter:(r,a)=>{var i,o;return((o=(i=a==null?void 0:a[0])==null?void 0:i.payload)==null?void 0:o.label)??""}}),n.map(r=>s.jsx(cl,{name:Ibe[r][t==="pt"?"pt":"en"],data:e.filter(a=>a.quadrant===r),fill:Ab[r],children:e.filter(a=>a.quadrant===r).map((a,i)=>s.jsx(hu,{fill:Ab[r],fillOpacity:.75,stroke:Ab[r]},i))},r)),s.jsx(rr,{wrapperStyle:{color:"#6b7280",fontSize:"11px",paddingTop:"8px"}})]})})}),s.jsx("p",{className:"text-gray-400 text-xs mt-3 leading-relaxed",children:t==="pt"?"Eixo X: probabilidade de atingimento. Eixo Y: diferença entre meta e volume projetado. Tamanho da bolha: volume potencial do cliente.":"X axis: attainment probability. Y axis: gap between target and projected volume. Bubble size: client potential volume."})]})},$be=({data:e})=>s.jsx("div",{className:"overflow-x-auto my-4 w-full min-w-0",children:s.jsxs("table",{className:"w-full text-sm border-collapse table-fixed",children:[s.jsx("thead",{children:s.jsx("tr",{className:"border-b border-gray-200 bg-gray-50/60",children:e.headers.map((t,n)=>s.jsx("th",{className:`py-2 px-2 text-gray-700 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight ${n>=3&&n<=5?"text-right":"text-left"}`,children:t},n))})}),s.jsx("tbody",{children:e.rows.map((t,n)=>s.jsx("tr",{className:"border-b border-gray-100",children:t.map((r,a)=>{const i=a===t.length-1;return s.jsx("td",{className:`py-2.5 px-2 ${a>=3&&a<=5?"text-right tabular-nums":"text-left"} ${i?Tbe(r):"text-gray-800"}`,children:r},a)})},n))})]})}),Fbe=({data:e,lang:t})=>{const n=[...e].map(r=>({pdv:r.label.split("â¢")[0].trim(),adherent:r.adherence,gap:Math.max(0,100-r.adherence)})).sort((r,a)=>a.adherent-r.adherent);return s.jsxs("div",{className:"my-4",children:[s.jsx("p",{className:"text-orange-500 font-semibold text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight mb-2",children:t==="pt"?"Aderência ao mix ideal por PDV":"Ideal-mix adherence per store"}),s.jsx("div",{className:"h-[380px] w-full",children:s.jsx(Gr,{width:"100%",height:"100%",children:s.jsxs(Dp,{data:n,layout:"vertical",margin:{top:10,right:24,left:24,bottom:10},barCategoryGap:6,children:[s.jsx(Yr,{strokeDasharray:"3 3",stroke:"rgba(0,0,0,0.06)"}),s.jsx(sn,{type:"number",domain:[0,100],ticks:[0,25,50,75,100],tick:{fontSize:12,fill:"#6b7280"},tickFormatter:r=>`${r}%`}),s.jsx(Ht,{type:"category",dataKey:"pdv",tick:{fontSize:12,fill:"#374151"},width:95}),s.jsx(Mt,{contentStyle:{backgroundColor:"#fff",border:"1px solid #e5e7eb",borderRadius:"8px",color:"#1f2937",boxShadow:"0 4px 6px -1px rgba(0,0,0,0.1)"},formatter:(r,a)=>[`${r}%`,a]}),s.jsx(rr,{wrapperStyle:{color:"#6b7280",fontSize:"11px",paddingTop:"8px"}}),s.jsx(fn,{dataKey:"adherent",name:t==="pt"?"Aderente":"Adherent",stackId:"mix",fill:"#10b981",radius:[4,0,0,4],barSize:22}),s.jsx(fn,{dataKey:"gap",name:"Gap",stackId:"mix",fill:"#F4845F",radius:[0,4,4,0],barSize:22})]})})}),s.jsx("p",{className:"text-gray-400 text-xs mt-3 leading-relaxed",children:t==="pt"?"Cada barra representa um PDV, dividida entre aderência ao mix ideal e gap.":"Each bar represents a store, split between adherence to the ideal mix and gap."})]})},Rbe=e=>{const t=parseInt(e);return isNaN(t)?"text-gray-700 font-semibold":t>=85?"text-emerald-700 font-semibold":t>=65?"text-blue-700 font-semibold":t>=50?"text-amber-700 font-semibold":"text-red-600 font-semibold"},Dbe=e=>e.startsWith("+")?"text-emerald-700 font-semibold":e.startsWith("â")||e.startsWith("-")?"text-red-600 font-semibold":"text-gray-800",Lbe=({data:e})=>s.jsx("div",{className:"overflow-x-auto my-4 w-full min-w-0",children:s.jsxs("table",{className:"w-full text-sm border-collapse table-fixed",children:[s.jsx("thead",{children:s.jsx("tr",{className:"border-b border-gray-200 bg-gray-50/60",children:e.headers.map((t,n)=>s.jsx("th",{className:`py-2 px-2 text-gray-700 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight ${n===2||n===4?"text-right":"text-left"}`,children:t},n))})}),s.jsx("tbody",{children:e.rows.map((t,n)=>s.jsx("tr",{className:"border-b border-gray-100",children:t.map((r,a)=>a===0?s.jsx("td",{className:"py-2.5 px-2 text-left font-semibold text-gray-900",children:r},a):a===2?s.jsx("td",{className:`py-2.5 px-2 text-right tabular-nums ${Rbe(r)}`,children:r},a):a===4?s.jsx("td",{className:`py-2.5 px-2 text-right tabular-nums ${Dbe(r)}`,children:r},a):s.jsx("td",{className:"py-2.5 px-2 text-left text-gray-800",children:r},a))}
527,n))})]})}),zbe=({data:e,lang:t})=>{const n=Math.max(...e.matrix.flat(),1);return s.jsxs("div",{className:"my-4 overflow-x-auto w-full min-w-0",children:[s.jsx("p",{className:"text-orange-500 font-semibold text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight mb-2",children:t==="pt"?"Oportunidade por região à SKU":"Opportunity by region à SKU"}),s.jsxs("table",{className:"w-full text-sm border-collapse table-fixed",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-2 px-2 text-left text-gray-700 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight",children:t==="pt"?"Região":"Region"}),e.skus.map((r,a)=>s.jsx("th",{className:"py-2 px-2 text-center text-gray-700 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight",children:r},a))]})}),s.jsx("tbody",{children:e.regions.map((r,a)=>s.jsxs("tr",{className:"border-b border-gray-100",children:[s.jsx("td",{className:"py-2 px-2 text-left font-medium text-gray-900 break-words",children:r}),e.matrix[a].map((i,o)=>{const l=i/n,c=.08+l*.85,u=l>.6;return s.jsx("td",{className:"py-2 px-2 text-center align-middle",title:`${r} ⢠${e.skus[o]} â ${t==="pt"?"oportunidade":"opportunity"} ${i}`,children:s.jsx("div",{className:"mx-auto flex items-center justify-center rounded-md tabular-nums",style:{backgroundColor:`rgba(244, 132, 95, ${c.toFixed(2)})`,color:u?"#7c2d12":"#78350f",width:"100%",minWidth:"48px",height:"36px",fontWeight:u?700:500,fontSize:"13px"},children:i})},o)})]},a))})]}),s.jsx("p",{className:"text-gray-400 text-xs mt-3 leading-relaxed",children:t==="pt"?"Intensidade coral indica maior oportunidade de aumento de ticket via inclusão do SKU na região.":"Coral intensity indicates larger basket-lift opportunity when adding the SKU to the region."})]})},Bbe=({data:e})=>s.jsx("div",{className:"overflow-x-auto my-4 w-full min-w-0",children:s.jsxs("table",{className:"w-full text-sm border-collapse table-fixed",children:[s.jsx("thead",{children:s.jsx("tr",{className:"border-b border-gray-200 bg-gray-50/60",children:e.headers.map((t,n)=>s.jsx("th",{className:`py-2 px-2 text-gray-700 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight ${n>=2?"text-right":"text-left"}`,children:t},n))})}),s.jsx("tbody",{children:e.rows.map((t,n)=>s.jsx("tr",{className:"border-b border-gray-100",children:t.map((r,a)=>{const i=a===4,o=a===5;return s.jsx("td",{className:`py-2.5 px-2 ${a>=2?"text-right tabular-nums":"text-left"} ${a===0?"text-gray-900 font-semibold":a===1?"text-gray-800 font-medium":i?"text-orange-600 font-bold":o?"text-emerald-700 font-bold":"text-gray-800"}`,children:r},a)})},n))})]})}),_b={priority:"#10b981",controlled:"#3b82f6",hold:"#6b7280",volume:"#f59e0b",risk:"#ef4444"},qbe={priority:{pt:"Prioridade de margem",en:"Margin priority"},controlled:{pt:"Ajuste controlado",en:"Controlled adjust"},hold:{pt:"Manter preço",en:"Hold price"},volume:{pt:"Reduzir p/ volume",en:"Reduce for volume"},risk:{pt:"Risco",en:"Risk"}},Ube=({data:e,lang:t})=>{const n=["priority","controlled","hold","volume","risk"];return s.jsxs("div",{className:"my-4",children:[s.jsx("div",{className:"h-[280px] w-full",children:s.jsx(Gr,{width:"100%",height:"100%",children:s.jsxs(sF,{margin:{top:10,right:20,left:10,bottom:10},children:[s.jsx(Yr,{strokeDasharray:"3 3",stroke:"rgba(0,0,0,0.06)"}),s.jsx(sn,{type:"number",dataKey:"sensitivity",domain:[0,100],tick:{fontSize:12,fill:"#6b7280"},tickFormatter:r=>`${r}`,label:{value:t==="pt"?"Sensibilidade prevista ao preço":"Predicted price sensitivity",position:"insideBottom",offset:-4,fill:"#6b7280",fontSize:11}}),s.jsx(Ht,{type:"number",dataKey:"incrementalMargin",tick:{fontSize:12,fill:"#6b7280"},tickFormatter:r=>`${r}k`,label:{value:t==="pt"?"Margem incremental (R$ mil)":"Incremental margin ($ k)",angle:-90,position:"insideLeft",fill:"#6b7280",fontSize:11}}),s.jsx(ll,{type:"number",dataKey:"size",range:[120,900]}),s.jsx(Bo,{x:50,stroke:"#9ca3af",strokeDasharray:"4 4"}),s.jsx(Bo,{y:0,stroke:"#9ca3af",strokeDasharray:"4 4"}),s.jsx(Mt,{cursor:{strokeDasharray:"3 3"},contentStyle:{backgroundColor:"#fff",border:"1px solid #e5e7eb",borderRadius:"8px",color:"#1f2937",boxShadow:"0 4px 6px -1px rgba(0,0,0,0.1)"},formatter:(r,a)=>a==="sensitivity"?[`${r}`,t==="pt"?"Sensibilidade":"Sensitivity"]:a==="incrementalMargin"?[`${r>=0?"+":""}${r}k`,t==="pt"?"Margem incremental":"Incremental margin"]:a==="size"?[r.toLocaleStr
527ing(t==="pt"?"pt-BR":"en-US"),t==="pt"?"Receita relativa":"Relative revenue"]:[r,a],labelFormatter:(r,a)=>{var i,o;return((o=(i=a==null?void 0:a[0])==null?void 0:i.payload)==null?void 0:o.label)??""}}),n.map(r=>s.jsx(cl,{name:qbe[r][t==="pt"?"pt":"en"],data:e.filter(a=>a.quadrant===r),fill:_b[r],children:e.filter(a=>a.quadrant===r).map((a,i)=>s.jsx(hu,{fill:_b[r],fillOpacity:.75,stroke:_b[r]},i))},r)),s.jsx(rr,{wrapperStyle:{color:"#6b7280",fontSize:"11px",paddingTop:"8px"}})]})})}),s.jsx("p",{className:"text-gray-400 text-xs mt-3 leading-relaxed",children:t==="pt"?"Eixo X: sensibilidade prevista ao preço. Eixo Y: margem incremental potencial. Tamanho da bolha: receita relativa do SKU.":"X axis: predicted price sensitivity. Y axis: potential incremental margin. Bubble size: SKU relative revenue."})]})},Wbe=e=>{if(e.startsWith("+"))return"text-amber-600 font-semibold";if(e.startsWith("â")||e.startsWith("-")){const t=Math.abs(parseFloat(e.replace(/[^\d.,-]/g,"").replace(",",".")));return!isNaN(t)&&t>=5?"text-red-600 font-semibold":"text-emerald-700 font-semibold"}return"text-gray-800"},Vbe=e=>e.toLowerCase().includes("sem")||e.toLowerCase().includes("no ")?"text-gray-500 italic":e.startsWith("+")?"text-emerald-700 font-bold":"text-gray-800",Hbe=({data:e})=>s.jsx("div",{className:"overflow-x-auto my-4 w-full min-w-0",children:s.jsxs("table",{className:"w-full text-sm border-collapse table-fixed",children:[s.jsx("thead",{children:s.jsx("tr",{className:"border-b border-gray-200 bg-gray-50/60",children:e.headers.map((t,n)=>s.jsx("th",{className:`py-2 px-2 text-gray-700 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight ${n===0?"text-left":"text-right"}`,children:t},n))})}),s.jsx("tbody",{children:e.rows.map((t,n)=>s.jsx("tr",{className:"border-b border-gray-100",children:t.map((r,a)=>a===0?s.jsx("td",{className:"py-2.5 px-2 text-left font-semibold text-gray-900",children:r},a):a===3?s.jsx("td",{className:`py-2.5 px-2 text-right tabular-nums ${Wbe(r)}`,children:r},a):a===4?s.jsx("td",{className:`py-2.5 px-2 text-right tabular-nums ${Vbe(r)}`,children:r},a):a===5?s.jsx("td",{className:"py-2.5 px-2 text-right tabular-nums text-orange-600 font-semibold",children:r},a):s.jsx("td",{className:"py-2.5 px-2 text-right tabular-nums text-gray-800",children:r},a))},n))})]})}),Kbe=[{key:"demand",pt:"Demanda prevista",en:"Predicted demand",color:"#F4845F"},{key:"sensitivity",pt:"Sensibilidade ao preço",en:"Price sensitivity",color:"#3b82f6"},{key:"competition",pt:"Posição competitiva",en:"Competitive position",color:"#10b981"},{key:"stock",pt:"Estoque disponÃvel",en:"Available stock",color:"#f59e0b"},{key:"currentMargin",pt:"Margem atual",en:"Current margin",color:"#8b5cf6"},{key:"category",pt:"Comportamento da categoria",en:"Category behavior",color:"#06b6d4"}],Gbe=({data:e,lang:t})=>s.jsxs("div",{className:"my-4",children:[s.jsx("p",{className:"text-orange-500 font-semibold text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight mb-2",children:t==="pt"?"Contribuição dos sinais por SKU":"Signal contribution by SKU"}),s.jsx("div",{className:"h-[300px] w-full",children:s.jsx(Gr,{width:"100%",height:"100%",children:s.jsxs(Dp,{data:e,margin:{top:5,right:20,left:10,bottom:5},stackOffset:"sign",children:[s.jsx(Yr,{strokeDasharray:"3 3",stroke:"rgba(0,0,0,0.06)"}),s.jsx(sn,{dataKey:"sku",stroke:"rgba(0,0,0,0.4)",tick:{fontSize:12,fill:"#6b7280"}}),s.jsx(Ht,{stroke:"rgba(0,0,0,0.4)",tick:{fontSize:12,fill:"#6b7280"}}),s.jsx(Mt,{contentStyle:{backgroundColor:"#fff",border:"1px solid #e5e7eb",borderRadius:"8px",color:"#1f2937",boxShadow:"0 4px 6px -1px rgba(0,0,0,0.1)"},labelStyle:{color:"#6b7280"},formatter:(n,r)=>[`${n>0?"+":""}${n}`,r]}),s.jsx(rr,{wrapperStyle:{color:"#6b7280",fontSize:"11px"}}),s.jsx(Bo,{y:0,stroke:"#9ca3af"}),Kbe.map(n=>s.jsx(fn,{dataKey:n.key,name:t==="pt"?n.pt:n.en,stackId:"signals",fill:n.color,radius:[2,2,0,0]},n.key))]})})}),s.jsx("p",{className:"text-gray-400 text-xs mt-3 leading-relaxed",children:t==="pt"?"Barras positivas indicam sinais que abrem espaço para captura de margem. Barras
527negativas indicam restrições que limitam o aumento de preço.":"Positive bars indicate signals that open room for margin capture. Negative bars indicate constraints that limit price increases."})]}),Qbe=e=>{const t=e.toLowerCase();return t.startsWith("alto")||t.startsWith("high")?"text-emerald-700 font-semibold":t.startsWith("médio")||t.startsWith("medio")||t.startsWith("medium")?"text-blue-700 font-semibold":t.startsWith("baixo")||t.startsWith("low")?"text-amber-700 font-semibold":t.startsWith("negativo")||t.startsWith("negative")?"text-red-600 font-semibold":"text-gray-700 font-semibold"},Ybe=e=>{const t=e.toLowerCase();return t.startsWith("aumentar")||t.startsWith("increase")?"text-emerald-700 font-semibold":t.startsWith("ajuste")||t.startsWith("controlled")?"text-blue-700 font-semibold":t.startsWith("manter")||t.startsWith("hold")?"text-gray-700 font-semibold":t.startsWith("reduzir")||t.startsWith("reduce")?"text-amber-700 font-semibold":"text-gray-800"},Zbe=({data:e})=>s.jsx("div",{className:"overflow-x-auto my-4 w-full min-w-0",children:s.jsxs("table",{className:"w-full text-sm border-collapse table-fixed",children:[s.jsx("thead",{children:s.jsx("tr",{className:"border-b border-gray-200 bg-gray-50/60",children:e.headers.map((t,n)=>s.jsx("th",{className:"py-2 px-2 text-left text-gray-700 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight",children:t},n))})}),s.jsx("tbody",{children:e.rows.map((t,n)=>s.jsx("tr",{className:"border-b border-gray-100",children:t.map((r,a)=>a===0?s.jsx("td",{className:"py-2.5 px-2 text-left font-semibold text-gray-900",children:r},a):a===1?s.jsx("td",{className:`py-2.5 px-2 text-left ${Qbe(r)}`,children:r},a):a===4?s.jsx("td",{className:`py-2.5 px-2 text-left ${Ybe(r)}`,children:r},a):s.jsx("td",{className:"py-2.5 px-2 text-left text-gray-800",children:r},a))},n))})]})}),Xbe=e=>{const t=e.toLowerCase();return t.startsWith("alto")||t.startsWith("high")?"text-red-600 font-semibold":t.startsWith("médio")||t.startsWith("medio")||t.startsWith("medium")?"text-amber-700 font-semibold":t.startsWith("baixo")||t.startsWith("low")?"text-emerald-700 font-semibold":"text-gray-700 font-semibold"},hF=e=>{const t=e.match(/(\d+)/);if(!t)return"text-gray-800";const n=parseInt(t[1],10);return n>=70?"text-emerald-700 font-semibold":n>=55?"text-blue-700 font-semibold":"text-amber-700 font-semibold"},Jbe=({data:e,lang:t})=>s.jsxs("div",{className:"my-4",children:[s.jsx("p",{className:"text-orange-500 font-semibold text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight mb-2",children:t==="pt"?"Risco de envelhecimento por região":"Aging risk by region"}),s.jsx("div",{className:"overflow-hidden w-full min-w-0",children:s.jsxs("table",{className:"w-full text-sm border-collapse table-fixed",children:[s.jsx("thead",{children:s.jsx("tr",{className:"border-b border-gray-200 bg-gray-50/60",children:e.headers.map((n,r)=>s.jsx("th",{className:`py-2 px-2 text-gray-700 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight ${r===0?"text-left":"text-right"}`,children:n},r))})}),s.jsx("tbody",{children:e.rows.map((n,r)=>s.jsx("tr",{className:"border-b border-gray-100",children:n.map((a,i)=>i===0?s.jsx("td",{className:"py-2.5 px-2 text-left font-semibold text-gray-900",children:a},i):i===3?s.jsx("td",{className:`py-2.5 px-2 text-right tabular-nums ${hF(a)}`,children:a},i):i===n.length-1?s.jsx("td",{className:`py-2.5 px-2 text-right ${Xbe(a)}`,children:a},i):s.jsx("td",{className:"py-2.5 px-2 text-right tabular-nums text-gray-800",children:a},i))},r))})]})})]}),e0e=e=>{const t=e.toLowerCase().trim();return t.startsWith("+")?"text-emerald-700 font-semibold":t.startsWith("â")||t.startsWith("-")||t.startsWith("alta")||t.startsWith("high")?"text-red-700 font-semibold":t.startsWith("baixa")||t.startsWith("low")?"text-emerald-700 font-semibold":t.startsWith("moderada")||t.startsWith("moderate")||t.startsWith("média")||t.startsWith("media")||t.startsWith("medium")?"text-amber-700 font-semibold":t.startsWith("estável")||t.startsWith("estavel")||t.startsWith("stable")?"text-blue-700 font-semibold":"text-gray-800"},t0e=({data:e,lang:t})=>s.jsxs("div",{className:"my-4",children:[s.jsx("p",{className:"text-orange-500 font-semibold text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight mb-2",children:t==="pt"?"Sinais comportamentais comparados":"Behavioral signals compared"}),s.jsx("div",{className:"overflow-hidden w-full min-w-0",children:s.jsxs("table",{className:"w-full text-sm border-collapse table-fixed",children:[s.jsx("thead",{children:s.jsx("tr",{className:"border-b border-gray-200 bg-gray-50/60",children:e.headers.map((n,r)=>s.jsx("th",{className:`py-2 px-2 text-gray-700 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight ${r===0?"text-left":"text-center"}`,children:n},r))})}),s.jsx("tbody",{children:e.rows.map((n,r)=>s.jsx("tr",{className:"border-b border-gray-100",children:n.map((a,i)=>i===0?s.jsx("td",{className:"py-2.5 px-2 text-left font-medium text-gray-900",children:a},i):s.jsx("td",{className:`py-2.5 px-2 text-center ${e0e(a)}`,children:a},i))},r))})]})})]}),n0e=e=>{const t=e.toLowerCase().trim();if(t.startsWith("manter")||t.startsWith("hold"))return"text-gray-500";if(t.startsWith("reavaliar")||t.startsWith("reassess"))return"text-amber-700 font-semibold";const n=t.match(/(\d+)/);if(n){const r=parseInt(n[1],10);return r>=18?"text-red-600 font-semibold":r>=10?"text-orange-600 font-semibold":"text-orange-500 font-semibold"}return"text-gray-700"},r0e=({data:e,lang:t})=>s.jsxs("div",{className:"my-4",children:[s.jsx("p",{className:"text-orange-500 font-semibold text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight mb-2",children:t==="pt"?"Régua temporal de markdown":"Markdown timing ladder"}),s.jsx("div",{className:"overflow-hidden w-full min-w-0",children:s.jsxs("table",{className:"w-full text-sm border-collapse table-fixed",children:[s.jsx("thead",{children:s.jsx("tr",{className:"border-b border-gray-200 bg-gray-50/60",children:e.headers.map((n,r)=>s.jsx("th",{className:`py-2 px-2 text-gray-700 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight ${r===0?"text-left":"text-center"}`,children:n},r))})}),s.jsx("tbody",{children:e.rows.map((n,r)=>s.jsx("tr",{className:"border-b border-gray-100",children:n.map((a,i)=>i===0?s.jsx("td",{className:"py-2.5 px-2 text-left font-semibold text-gray-900",children:a},i):s.jsx("td",{className:`py-2.5 px-2 text-center tabular-nums ${n0e(a)}`,children:a},i))},r))})]})}),s.jsx("p",{className:"text-gray-400 text-xs mt-3 leading-relaxed",children:t==="pt"?"Cada célula representa a recomendação preditiva para o SKU A naquele cluster e janela temporal.":"Each cell represents the predictive recommendation for SKU A in that cluster and time window."})]}),a0e=({data:e,lang:t})=>s.jsxs("div",{className:"my-4",children:[s.jsx("p",{className:"text-orange-500 font-semibold text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight mb-2",children:t==="pt"?"Detalhamento por SKU":"Detail by SKU"}),s.jsx("div",{className:"overflow-hidden w-full min-w-0",children:s.jsxs("table",{className:"w-full text-sm border-collapse table-fixed",children:[s.jsx("thead",{children:s.jsx("tr",{className:"border-b border-gray-200 bg-gray-50/60",children:e.headers.map((n,r)=>s.jsx("th",{className:`py-2 px-2 text-gray-700 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight ${r<=1?"text-left":"text-right"}`,children:n},r))})}),s.jsx("tbody",{children:e.rows.map((n,r)=>s.jsx("tr",{className:"border-b border-gray-100",children:n.map((a,i)=>{if(i===0)return s.jsx("td",{className:"py-2.5 px-2 text-left font-semibold text-gray-900",children:a},i);if(i===1)return s.jsx("td",{className:"py-2.5 px-2 text-left text-gray-700",children:a},i);if(i===3){const o=/manter|hold/i.test(a);return s.jsx("td",{className:`py-2.5 px-2 text-right tabular-nums ${o?"text-gray-500":"text-orange-600 font-semibold"}`,children:a},i)}if(i===4)return s.jsx("td",{className:`py-2.5 px-2 text-right tabular-nums ${hF(a)}`,children:a},i);if(i===5){const o=/sem desconto|no discount/i.test(a);return s.jsx("td",{className:`py-2.5 px-2 text-right tabular-nums ${o?"text-gray-500":"text-emerald-700 font-semibold"}`,children:a},i)}return s.jsx("td",{className:"py-2.5 px-2 text-right tabular-nums text-gray-800",children:a},i)})},r))})]})})]}),i0e={"cross-sell":"text-orange-600 font-semibold",discovery:"text-blue-700 font-semibold","look recommendation":"text-purple-700 font-semibold",conversão:"text-emerald-700 font-semibold",conversion:"text-emerald-700 font-semibold"},o0e=e=>{const t=parseInt(e.replace("%",""),10);return isNaN(t)?"text-gray-700 font-semibold":t>=88?"text-emerald-700 font-semibold":t>=80?"text-orange-600 font-semibold":"text-amber-700 font-semibold"},s0e=({data:e,lang:t})=>s.jsxs("div",{className:"my-4",children:[s.jsx("p",{className:"text-orange-500 font-semibold text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight mb-2",children:t==="pt"?"Matriz de comportamento por recomendação":"Behavior-to-recommendation matrix"}),s.jsx("div",{className:"overflow-hidden w-full min-w-0",children:s.jsxs("table",{className:"w-full text-sm border-collapse table-fixed",children:[s.jsx("thead",{children:s.jsx("tr",{className:"border-b border-gray-200 bg-gray-50/60",children:e.headers.map((n,r)=>s.jsx("th",{className:`py-2 px-2 text-gray-700 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight ${r>=3?"text-center":"text-left"}`,children:n},r))})}),s.jsx("tbody",{children:e.rows.map((n,r)=>s.jsx("tr",{className:"border-b border-gray-100",children:n.map((a,i)=>i===0?s.jsx("td",{className:"py-2.5 px-2 text-left font-semibold text-gray-900",children:a},i):i===1||i===2?s.jsx("td",{className:"py-2.5 px-2 text-left text-gray-700",children:a},i):i===3?s.jsx("td",{className:`py-2.5 px-2 text-center tabular-nums ${o0e(a)}`,children:a},i):i===4?s.jsx("td",{className:`py-2.5 px-2 text-center ${i0e[a.toLowerCase()]??"text-gray-700 font-semibold"}`,children:a},i):s.jsx("td",{className:"py-2.5 px-2 text-gray-800",children:a},i))},r))})]})})]}),l0e=({data:e,window:t,peak:n,legend:r,lang:a})=>s.jsxs("div",{className:"my-4",children:[s.jsx("p",{className:"text-orange-500 font-semibold text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight mb-2",children:a==="pt"?"Curva temporal de recompra":"Repurchase time curve"}),s.jsx("div",{className:"h-[260px] w-full",children:s.jsx(Gr,{width:"100%",height:"100%",children:s.jsxs(oj,{data:e,margin:{top:28,right:24,left:10,bottom:20},children:[s.jsx(Yr,{strokeDasharray:"3 3",stroke:"rgba(0,0,0,0.06)"}),s.jsx(sn,{type:"number",dataKey:"day",domain:[0,50],tick:{fontSize:12,fill:"#6b7280"},tickFormatter:i=>`${i}`,label:{value:a==="pt"?"Dias desde a última compra":"Days since last purchase",position:"insideBottom",offset:-6,fill:"#6b7280",fontSize:11}}),s.jsx(Ht,{domain:[0,100],tick:{fontSize:12,fill:"#6b7280"},tickFormatter:i=>`${i}%`,label:{value:a==="pt"?"Probabilidade prevista":"Predicted probability",angle:-90,position:"insideLeft",fill:"#6b7280",fontSize:11}}),s.jsx(Mt,{contentStyle:{backgroundColor:"#fff",border:"1px solid #e5e7eb",borderRadius:"8px",color:"#1f2937",boxShadow:"0 4px 6px -1px rgba(0,0,0,0.1)"},formatter:i=>[`${i}%`,a==="pt"?"Propensão":"Propensity"],labelFormatter:i=>`${a==="pt"?"Dia":"Day"} ${i}`}),s.jsx(Rp,{x1:t.start,x2:t.end,y1:0,y2:100,fill:"#F4845F",fillOpacity:.12,stroke:"#F4845F",strokeOpacity:.35,strokeDasharray:"4 4"}),s.jsx(Ur,{type:"monotone",dataKey:"probability",stroke:"#F4845F",strokeWidth:2.5,dot:{r:3,fill:"#F4845F"}}),s.jsx(Fp,{x:n.day,y:n.probability,r:6,fill:"#10b981",stroke:"#065f46",strokeWidth:2,label:{value:a==="pt"?"Pico":"Peak",position:"top",offset:10,fill:"#065f46",fontSize:11,fontWeight:600}})]})})}),s.jsx("ul",{className:"mt-3 grid grid-cols-1 md:grid-cols-2 gap-x-4 gap-y-1",children:r.map((i,o)=>s.jsxs("li",{className:"text-gray-500 text-xs leading-relaxed flex gap-2",children:[s.jsx("span",{className:"text-orange-500 mt-0.5 flex-shrink-0",children:"â¢"}),s.jsx("span",{children:i})]},o))})]}),c0e=e=>{const t=parseInt(e.replace("%",""),10);return isNaN(t)?"text-gray-700 font-semibold":t>=80?"text-emerald-700 font-semibold":t>=70?"text-orange-600 font-semibold":"text-amber-700 font-semibold"},u0e=({data:e,lang:t})=>s.jsxs("div",{className:"my-4",children:[s.jsx("p",{className:"text-orange-500 font-semibold text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight mb-2",children:t==="pt"?"Comportamentos previstos de recompra":"Predicted repurchase behaviors"}),s.jsx("div",{className:"overflow-hidden w-full min-w-0",children:s.jsxs("table",{className:"w-full text-sm border-collapse table-fixed",children:[s.jsx("thead",{children:s.jsx("tr",{className:"border-b border-gray-200 bg-gray-50/60",children:e.headers.map((n,r)=>s.jsx("th",{className:`py-2 px-2 text-gray-700 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight ${r===1||r===3?"text-center":"text-left"}`,children:n},r))})}),s.jsx("tbody",{children:e.rows.map((n,r)=>s.jsx("tr",{className:"border-b border-gray-100",children:n.map((a,i)=>i===0?s.jsx("td",{className:"py-2.5 px-2 text-left font-semibold text-gray-900",children:a},i):i===1?s.jsx("td",{className:"py-2.5 px-2 text-center tabular-nums text-gray-800 font-medium",children:a},i):i===2?s.jsx("td",{className:"py-2.5 px-2 text-left text-gray-700",children:a},i):i===3?s.jsx("td",{className:`py-2.5 px-2 text-center tabular-nums ${c0e(a)}`,children:a},i):s.jsx("td",{className:"py-2.5 px-2 text-left text-gray-700",children:a},i))},r))})]})})]}),d0e=({data:e,lang:t})=>{const n=r=>r>
527=70?"text-red-600 font-bold":r>=55?"text-orange-600 font-semibold":r>=40?"text-amber-700 font-semibold":r>=25?"text-emerald-700 font-semibold":"text-emerald-600 font-semibold";return s.jsxs("div",{className:"my-4",children:[s.jsx("p",{className:"text-orange-500 font-semibold text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight mb-2",children:t==="pt"?"Fricção prevista de preço por produto e contexto":"Predicted price friction by product and context"}),s.jsx("div",{className:"overflow-hidden w-full min-w-0",children:s.jsxs("table",{className:"w-full text-xs border-collapse",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"border-b border-gray-200",children:[s.jsx("th",{className:"py-2 px-2 text-left text-gray-700 font-medium text-[11px] uppercase tracking-wider",children:t==="pt"?"Produto":"Product"}),e.contexts.map((r,a)=>s.jsx("th",{className:"py-2 px-2 text-center text-gray-700 font-medium text-[11px] uppercase tracking-wider",children:r},a))]})}),s.jsx("tbody",{children:e.products.map((r,a)=>s.jsxs("tr",{className:"border-b border-gray-100",children:[s.jsx("td",{className:"py-2 px-2 text-gray-900 font-semibold text-left break-words",children:r}),e.matrix[a].map((i,o)=>s.jsx("td",{className:`py-2 px-2 text-center tabular-nums ${n(i)}`,children:i},o))]},a))})]})}),s.jsx("p",{className:"text-gray-400 text-[11px] mt-2 leading-relaxed",children:t==="pt"?"Escala 0â100 · verde = baixa fricção · laranja/vermelho = fricção alta de preço.":"Scale 0â100 · green = low friction · orange/red = high price friction."})]})},m0e=({data:e})=>{const t=r=>{const a=r.toLowerCase();return a.startsWith("alto")||a.startsWith("high")?"text-red-600 font-semibold":a.startsWith("médio")||a.startsWith("medio")||a.startsWith("medium")?"text-amber-700 font-semibold":a.startsWith("baixo")||a.startsWith("low")?"text-emerald-700 font-semibold":"text-gray-700 font-semibold"},n=r=>{const a=r.toLowerCase();return a.includes("imediata")||a.includes("immediate")?"text-red-600 font-semibold":a.includes("manter")||a.includes("hold")||a.includes("não incent")||a.includes("do not")?"text-gray-500 font-semibold":a.includes("contextual")||a.includes("moderad")?"text-orange-600 font-semibold":"text-gray-700 font-semibold"};return s.jsx("div",{className:"my-4 overflow-x-auto w-full min-w-0",children:s.jsxs("table",{className:"w-full text-sm border-collapse table-fixed",children:[s.jsx("thead",{children:s.jsx("tr",{className:"border-b border-gray-200",children:e.headers.map((r,a)=>s.jsx("th",{className:`py-2 px-2 text-gray-700 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight ${a===0?"text-left":"text-center"}`,children:r},a))})}),s.jsx("tbody",{children:e.rows.map((r,a)=>s.jsx("tr",{className:"border-b border-gray-100",children:r.map((i,o)=>o===0?s.jsx("td",{className:"py-2.5 px-2 text-left font-medium text-gray-900",children:i},o):o===2?s.jsx("td",{className:`py-2.5 px-2 text-center ${t(i)}`,children:i},o):o===3?s.jsx("td",{className:"py-2.5 px-2 text-center text-orange-600 font-semibold tabular-nums",children:i},o):o===r.length-1?s.jsx("td",{className:`py-2.5 px-2 text-center ${n(i)}`,children:i},o):s.jsx("td",{className:"py-2.5 px-2 text-center text-gray-800",children:i},o))},a))})]})})},p0e=({data:e,lang:t})=>{const n=["#10b981","#F4845F","#94a3b8"];return s.jsxs("div",{className:"my-4",children:[s.jsx("p",{className:"text-orange-500 font-semibold text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight mb-2",children:t==="pt"?"Distribuição preditiva da audiência":"Predictive audience distribution"}),s.jsx("div",{className:"flex w-full h-8 rounded-md overflow-hidden",children:e.map((r,a)=>s.jsxs("div",{style:{width:`${r.percentage}%`,backgroundColor:n[a%n.length]},className:"flex items-center justify-center text-white text-xs font-semibold",title:`${r.group} · ${r.percentage}%`,children:[r.percentage,"%"]},a))}),s.jsx("div",{className:"mt-2 flex flex-wrap gap-x-4 gap-y-1 text-xs",children:e.map((r,a)=>s.jsxs("div",{className:"flex items-center gap-2 text-gray-700",children:[s.jsx("span",{className:"w-3 h-3 rounded-sm",style:{backgroundColor:n[a%n.length]}}),s.jsx("span",{children:r.group})]},a))})]})},f0e=({data:e})=>{const t=n=>{const r=n.toLowerCase();return r.includes("manter")||r.includes("hold")||r.includes("não")||r.includes("do not")?"text-gray-500 font-semibold":r.includes("controlado")||r.includes("controlled")||r.includes("moderado")?"text-orange-600 font-semibold":r.includes("direcionado")||r.includes("targeted")?"text-amber-700 font-semibold":"text-gray-700 font-semibold"};return s.jsx("div",{className:"my-4 overflow-x-auto w-full min-w-0",children:s.jsxs("table",{className:"w-full text-sm border-collapse table-fixed",children:[s.jsx("thead",{children:s.jsx("tr",{className:"border-b border-gray-200",children:e.headers.map((n,r)=>s.jsx("th",{className:`py-2 px-2 text-gray-700 font-medium text-[10px] uppercase tracking-normal whitespace-normal break-words leading-tight ${r===0||r===e.headers.length-1?"text-left":"text-center"}`,children:n},r))})}),s.jsx("tbody",{children:e.rows.map((n,r)=>s.jsx("tr",{className:"border-b border-gray-100",children:n.map((a,i)=>i===0?s.jsx("td",{className:"py-2.5 px-2 text-left font-medium text-gray-900 text-xs leading-tight",children:a},i):i===1?s.jsx("td",{className:"py-2.5 px-2 text-center tabular-nums text-gray-800",children:a},i):i===2?s.jsx("td",{className:"py-2.5 px-2 text-center tabular-nums text-orange-600 font-semibold",children:a},i):i===3?s.jsx("td",{className:`py-2.5 px-2 text-center ${t(a)}`,children:a},i):s.jsx("td",{className:"py-2.5 px-2 text-left text-gray-700",children:a},i))},r))})]})})},h0e=[{icon:WB,labelIndex:0,active:!1},{icon:r7,labelIndex:1,active:!1},{icon:lm,labelIndex:2,active:!1},{icon:II,labelIndex:3,active:!1}
527,{icon:uw,labelIndex:4,active:!0},{icon:FI,labelIndex:5,active:!1}],g0e=[Un,_p,WI,qI,Ek,l7,lm],gF=S.memo(()=>{const{language:e}=be(),t=e,n=S8[t],[r,a]=S.useState("supply"),[i,o]=S.useState("idle"),[l,c]=S.useState(""),[u,d]=S.useState(!1),[m,p]=S.useState(""),[f,g]=S.useState(!1),[h,v]=S.useState(""),[y,x]=S.useState(null),[b,w]=S.useState(!1),[k,j]=S.useState(!1),A=S.useRef(null),P=n.scenarios[r],_=S.useCallback(C=>{a(C),o("typing"),c(n.scenarios[C].question),d(!1),p("")},[n.scenarios]);S.useEffect(()=>{if(i!=="typing")return;const C=setTimeout(()=>{o("responding"),d(!0)},k8);return()=>clearTimeout(C)},[i]),S.useEffect(()=>{u&&A.current?setTimeout(()=>{var C;(C=A.current)==null||C.scrollTo({top:A.current.scrollHeight,behavior:"smooth"}),setTimeout(()=>{A.current&&A.current.scrollTop>50&&j(!0)},500)},100):j(!1)},[u]),S.useEffect(()=>{const C=A.current;if(!C)return;const E=()=>{C.scrollHeight-C.scrollTop-C.clientHeight<30||j(!1)};return C.addEventListener("scroll",E),()=>C.removeEventListener("scroll",E)},[]),S.useEffect(()=>{if(!(!f||!h))if(m.length<h.length){const C=setTimeout(()=>{p(h.slice(0,m.length+1))},w8);return()=>clearTimeout(C)}else{const C=setTimeout(()=>{w(!0),setTimeout(()=>{w(!1),g(!1),v(""),y&&(_(y),x(null))},400)},300);return()=>clearTimeout(C)}},[f,m,h,y,_]),S.useEffect(()=>{const C=setTimeout(()=>_("supply"),800);return()=>clearTimeout(C)},[_]);const N=C=>{C===r&&i==="responding"||(a(C),o("idle"),d(!1),c(""),p(""),v(n.scenarios[C].question),x(C),g(!0))};return s.jsx("section",{className:"py-6 md:py-10 px-4 relative z-[10]",children:s.jsxs("div",{className:"max-w-6xl mx-auto",children:[s.jsxs("div",{className:"text-center mb-2",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-4",children:n.sectionTitle}),s.jsx("p",{className:"text-white/60 text-base md:text-lg leading-relaxed",children:n.sectionSubtitle})]}),s.jsx("div",{className:"flex justify-center mb-6",children:s.jsx("div",{className:"flex flex-wrap justify-center gap-1 rounded-2xl md:rounded-full md:inline-flex md:flex-nowrap p-1 backdrop-blur-md bg-white/5 border border-white/10",children:Object.keys(n.scenarios).map(C=>s.jsx("button",{onClick:()=>N(C),className:`px-4 py-1.5 rounded-full text-sm font-medium transition-all whitespace-nowrap ${r===C?"bg-orange-500/80 backdrop-blur-sm text-white shadow-lg shadow-orange-500/30":"text-white/60 hover:text-white/90"}`,children:n.scenarios[C].label},C))})}),s.jsxs("div",{className:"rounded-xl overflow-hidden shadow-2xl border border-white/10",children:[s.jsxs("div",{className:"flex items-center justify-between px-4 md:px-6 py-3",style:{background:"linear-gradient(135deg, #0F1F36, #1E4A94, #0F1F36)"},children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-orange-400 font-bold text-xl",children:"i6"}),s.jsx("span",{className:"text-white font-bold text-lg tracking-tight",children:"Intelliboard"})]}),s.jsxs("div",{className:"hidden sm:flex items-center gap-3",children:[s.jsxs("div",{className:"text-right",children:[s.jsx("p",{className:"text-orange-400 text-[10px] font-semibold uppercase tracking-wide",children:"VIVARIS COMÃRCIO E VAREJO"}),s.jsx("p",{className:"text-white text-xs font-medium",children:"Leonardo Chaves"}),s.jsx("p",{className:"text-white/50 text-[10px]",children:"[email protected]"})]}),s.jsx("img",{src:tS,alt:"Leonardo Chaves",className:"h-9 w-9 rounded-full ring-2 ring-white/40 object-cover"})]})]}),s.jsxs("div",{className:"flex h-[520px] md:h-[620px]",children:[s.jsxs("div",{className:"hidden md:flex flex-col w-52 bg-white border-r border-gray-200 flex-shrink-0",children:[s.jsx("div",{className:"px-3 py-3 border-b border-gray-100",children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2 rounded-lg bg-orange-50/60 border-l-2 border-orange-500",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-gray-800 text-xs font-semibold uppercase tracking-wide",children:"ÃNGULO"}),s.jsx("p",{className:"text-gray-500 text-[10px]",children:"Forecast"})]}),s.jsx(Wv,{className:"w-3.5 h-3.5 text-gray-400"})]})}),s.jsx("nav",{className:"flex-1 py-2 px-2 space-y-0.5 overflow-y-auto",children:h0e.map(C=>{const E=n.sidebar[C.labelIndex];return s.jsxs("div",{className:`flex items-center gap-2.5 px-3 py-2 rounded-lg text-xs transition-colors cursor-default ${C.active?"bg-gradient-to-r from-orange-50 to-blue-50 text-orange-600 font-semibold border-l-2 border-orange-500":"text-gray-600 hover:bg-gray-50"}`,children:[s.jsx(C.icon,{className:"w-4 h-4 flex-shrink-0"}),s.jsx("span",{className:"truncate",children:E})]},E)})}),s.jsxs("div",{className:"border-t border-gray-100 px-2 py-2 space-y-0.5",children:[s.jsxs("div",{className:"flex items-center gap-2.5 px-3 py-2 rounded-lg text-xs text-gray-500 hover:bg-gray-50 cursor-default",children:[s.jsx(dw,{className:"w-4 h-4"}),s.jsx("span",{className:"truncate",children:"Billing Analytics"})]}),s.jsxs("div",{className:"flex items-center gap-2.5 px-3 py-2 rounded-lg text-xs text-gray-500 hover:bg-gray-50 cursor-default",children:[s.jsx(dw,{className:"w-4 h-4"}),s.jsx("span",{children:"Analytics"})]}),s.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[s.jsx(e7,{className:"w-4 h-4 text-gray-400"}),s.jsx("button",{className:"text-gray-400 hover:text-gray-600 transition-colors",children:s.jsx(FB,{className:"w-4 h-4 rotate-180"})})]})]})]}),s.jsxs("div",{className:"hidden md:flex flex-col w-10 bg-white/95 backdrop-blur-sm border-r border-gray-200/50 flex-shrink-0 items-center py-3 gap-1.5",children:[g0e.map((C,E)=>s.jsx("button",{className:"h-7 w-7 rounded-full flex items-center justify-center text-gray-400 hover:bg-orange-50 hover:text-orange-500 transition-colors",children:s.jsx(C,{className:"h-3.5 w-3.5"})},E)),s.jsx("div",{className:"w-5 h-px bg-gradient-to-r from-transparent via-gray-300 to-transparent my-1"}),[0,1,2,3,4].map(C=>s.jsx("button",{className:"h-6 w-6 rounded-full flex items-center justify-center text-orange-300 hover:text-orange-500 transition-colors",children:s.jsx(UB,{className:"h-3.5 w-3.5 fill-current"})},`heart-${C}`))]}),s.jsxs("div",{className:"flex-1 flex flex-col min-w-0 bg-white relative",children:[k&&s.jsx("div",{className:"absolute top-3 right-4 z-20 cursor-pointer animate-scroll-hint-pulse",onClick:()=>{var C;return(C=A.current)==null?void 0:C.scrollTo({top:0,behavior:"smooth"})},children:s.jsxs("div",{className:"flex items-center gap-2 bg-gradient-to-r from-orange-50 to-amber-50 border-2 border-orange-400 rounded-xl px-4 py-2.5 shadow-lg shadow-orange-200/50",children:[s.jsx(RB,{className:"w-5 h-5 text-orange-500 animate-bounce",style:{animationDuration:"0.8s"}}),s.jsx("span",{className:"text-orange-600 text-sm font-bold tracking-wide",children:t==="pt"?"Navegue pelo conteúdo":"Scroll through content"})]})}),s.jsx("div",{ref:A,className:"flex-1 overflow-y-auto px-4 md:px-8 lg:px-16 pt-6 pb-6",children:s.jsxs("div",{className:"max-w-4xl mx-auto
527space-y-4",children:[i==="idle"&&s.jsx("div",{className:"flex items-center justify-center pt-20 pb-10",children:s.jsx("p",{className:"text-xl text-gray-300 font-light tracking-wide",children:n.emptyState})}),(i==="typing"||i==="responding")&&s.jsx("div",{className:"flex justify-end animate-fade-in",children:s.jsx("div",{className:"bg-gradient-to-br from-orange-50/80 to-blue-50/60 border border-gray-200/50 rounded-2xl px-4 py-2.5 max-w-[85%] shadow-sm",children:s.jsx("p",{className:"text-gray-800 text-sm",children:l})})}),i==="typing"&&l===n.scenarios[r].question&&s.jsxs("div",{className:"flex gap-1.5 px-2 py-3",children:[s.jsx("div",{className:"w-2 h-2 bg-orange-400 rounded-full animate-bounce",style:{animationDelay:"0ms"}}),s.jsx("div",{className:"w-2 h-2 bg-orange-400 rounded-full animate-bounce",style:{animationDelay:"150ms"}}),s.jsx("div",{className:"w-2 h-2 bg-orange-400 rounded-full animate-bounce",style:{animationDelay:"300ms"}})]}),u&&s.jsx("div",{className:"animate-fade-in",children:s.jsxs("div",{className:"max-w-full",children:[s.jsx("h3",{className:"text-gray-900 font-bold text-base md:text-lg mb-3",children:P.title}),s.jsx("h4",{className:"text-orange-500 font-semibold text-sm mb-1.5",children:n.executiveAnalysis}),s.jsx("p",{className:"text-gray-600 text-sm leading-relaxed mb-3",children:P.analysis}),r==="supply"&&"table"in P&&s.jsx(ev,{data:P.table}),r==="forecast"&&"chartData"in P&&s.jsx(cF,{data:P.chartData,note:P.chartNote,lang:t}),r==="pricing"&&"table"in P&&s.jsx(ev,{data:P.table}),r==="comercial"&&"comercialChart"in P&&s.jsx(uF,{data:P.comercialChart,lang:t}),r==="mix"&&"comparison"in P&&s.jsx(dF,{comparison:P.comparison}),r==="pdv"&&"barChartData"in P&&s.jsx(mF,{data:P.barChartData,note:P.barChartNote,lang:t}),r==="propensity"&&"productChart"in P&&s.jsx(pF,{data:P.productChart,note:P.productChartNote,lang:t}),r==="clusters"&&"clustersTable"in P&&s.jsx(fF,{table:P.clustersTable,detail:P.clustersDetail,lang:t}),s.jsx("h4",{className:"text-orange-500 font-semibold text-sm mt-4 mb-2",children:n.recommendedActions}),s.jsx("ol",{className:"space-y-1.5 text-sm",children:P.actions.map((C,E)=>s.jsxs("li",{className:"text-gray-600 flex gap-2",children:[s.jsxs("span",{className:"text-orange-500 font-bold flex-shrink-0",children:[E+1,"."]}),s.jsxs("span",{children:[s.jsx("strong",{className:"text-gray-800",children:C.bold})," ",C.text]})]},E))}),s.jsxs("div",{className:"mt-4 p-3 rounded-xl bg-gradient-to-br from-orange-50/80 to-amber-50/80 border border-orange-200/30",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[s.jsx(RI,{className:"w-3.5 h-3.5 text-orange-500"}),s.jsx("span",{className:"text-xs font-medium text-orange-800",children:n.suggestedQuestions})]}),s.jsx("div",{className:"flex flex-wrap gap-1.5",children:P.questions.slice(0,3).map((C,E)=>s.jsx("span",{className:"text-[11px] text-gray-500 px-2.5 py-1 rounded-lg text-left",children:C},E))})]})]})})]})}),s.jsx("div",{className:"border-t border-gray-200/50 bg-white/95 backdrop-blur-sm p-3 md:p-4 md:pl-14",children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("button",{className:"h-10 w-10 rounded-full flex items-center justify-center text-gray-400 hover:bg-gray-100 transition-colors flex-shrink-0",children:s.jsx(OB,{className:"w-4 h-4"})}),s.jsx("button",{className:"h-10 w-10 rounded-full flex items-center justify-center text-gray-400 hover:bg-gray-100 transition-colors flex-shrink-0",children:s.jsx(UI,{className:"w-4 h-4"})}),s.jsx("input",{type:"text",readOnly:!0,value:m,placeholder:n.placeholder,className:"flex-1 h-12 rounded-full border border-gray-200 bg-white px-5 text-sm text-gray-700 placeholder:text-gray-300 outline-none focus:ring-2 focus:ring-orange-400 focus:border-orange-400 transition-all"}),s.jsx("button",{className:`h-12 w-12 rounded-full bg-gradient-to-br from-orange-500 to-orange-600 text-white shadow-md hover:shadow-lg hover:from-orange-600 hover:to-orange-700 transition-all duration-200 flex items-center justify-center flex-shrink-0 ${b?"scale-125 ring-4 ring-orange-400/40 shadow-orange-500/50 shadow-xl":""}`,children:s.jsx(Ap,{className:"w-4 h-4"})})]})})]})]})]})]})})});gF.displayName="I6SignalDemo";const vF=S.memo(()=>{const{language:e}=be(),{signal:t}=Yo[e];return s.jsxs("section",{className:"py-16 md:py-20 bg-[#0B1224] border-t border-white/5",children:[s.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl",children:s.jsxs("div",{className:"max-w-4xl mb-4",children:[s.jsx("p",{className:"text-[11px] font-semibold tracking-[0.3em] uppercase text-[#F4845F] mb-3",children:t.eyebrow}),s.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-4",children:t.title}),s.jsx("p",{className:"text-lg text-white/80 leading-snug mb-4",children:t.tagline}),s.jsx("p",{className:"text-base text-white/60 leading-relaxed",children:t.description})]})}),s.jsx(gF,{}),s.jsx("div",{className:"max-w-6xl mx-auto px-4 mt-16",children:s.jsxs("div",{className:"rounded-2xl bg-white/5 border border-white/10 p-8",children:[s.jsx("p",{className:"text-sm font-semibold tracking-[0.2em] uppercase text-[#F4845F]/80 mb-6 text-center",children:t.examplesTitle}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-x-12 gap-y-4",children:t.examples.map(n=>s.jsxs("div",{className:"flex items-start gap-3 text-sm text-white/75 leading-snug",children:[s.jsx(Un,{className:"w-4 h-4 text-[#F4845F] mt-0.5 flex-shrink-0"}),s.jsx("span",{children:n})]},n))})]})})]})});vF.displayName="SignalLayerBlock";const sj=S.memo(({hideHeader:e=!1,compact:t=!1})=>{const{language:n}=be(),{howWeImplement:r}=Yo[n],a=s.jsxs("div",{className:"flex items-center justify-center gap-2 rounded-full border border-[#F4845F]/40 bg-[#0B1224] px-3 py-1.5 shadow-lg shadow-black/20 w-full",children:[s.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-[#F4845F] shrink-0"}),s.jsx("span",{className:`font-semibold text-[#F4845F] ${t?"text-[11px]":"text-sm"}`,children:r.costNote})]});return s.jsx("section",{className:`bg-[#0B1224] ${t?"pt-2 pb-10":"py-16 md:py-20 border-t border-white/5"}`,children:s.jsxs("div",{className:`container mx-auto px-4 sm:px-6 lg:px-8 ${t?"max-w-5xl":"max-w-6xl"}`,children:[!e&&s.jsxs("div",{className:"text-center mb-10 max-w-3xl mx-auto",children:[s.jsx("p",{className:"text-[11px] font-semibold tracking-[0.3em] uppercase text-[#F4845F] mb-3",children:r.eyebrow}),s.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-white whitespace-pre-line",children:r.title})]}),s.jsxs("div",{className:"relative",children:[s.jsx("ol",{className:`grid grid-cols-1 md:grid-cols-5 ${t?"gap-3":"gap-4"}`,children:r.steps.map((i,o)=>s.jsxs(S.Fragment,{children:[s.jsxs("li",{className:`relative rounded-xl bg-white/5 border border-white/10 hover:border-[#F4845F]/50 transition-all duration-500 ${t?"p-3":"p-5"}`,children:[s.jsx("span",{className:`font-bold text-[#F4845F]/80 leading-none block ${t?"text-2xl mb-1.5":"text-3xl mb-3"}`,children:i.n}),s.jsx("h3",{className:`font-bold text-white mb-1 ${t?"text-xs":"text-sm"}`,children:i.title}),s.jsx("p",{className:`text-white/60 ${t?"text-[11px] leading-relaxed":"text-xs leading-relaxed"}`,children:i.description})]}),o===2&&s.jsx("li",{className:"md:hidden list-none",children:a})]},i.n))}),s.jsx("div",{className:"hidden md:block absolute left-0 bottom-0 w-[calc(60%-0.4rem)] translate-y-1/2 z-10",children:a})]})]})})});sj.displayName="HowWeImplement";const a2=[{slug:"savings-pharma",value:"R$ 100M",label:{pt:"em savings ao antecipar ruptura, overstocking e incineração",en:"in savings by anticipating stockouts, overstocking and incineration"},source:{pt:"Varejo farma",en:"Pharma retail"},numericValue:100,unitText:"BRL million"},{slug:"ticket-retail",value:"+23%",label:{pt:"ticket médio por PDV",en:"average ticket per POS"},source:{pt:"Varejo",en:"Retail"},numericValue:23,unitText:"percent"},{slug:"activation-retail",value:"+36%",label:{pt:"positivação de produtos",en:"product activation"},source:{pt:"Varejo",en:"Retail"},numericValue:36,unitText:"percent"},{slug:"crm-finance",value:"â57%",label:{pt:"custo de CRM",en:"
527CRM cost"},source:{pt:"Financeiro",en:"Financial services"},numericValue:-57,unitText:"percent"},{slug:"conversion-finance",value:"12x",label:{pt:"mais conversão em campanhas",en:"more conversion in campaigns"},source:{pt:"Financeiro",en:"Financial services"},numericValue:12,unitText:"multiplier"},{slug:"sales-fashion",value:"+2,6%",label:{pt:"mais vendas que a curadoria humana de looks",en:"more sales than human look curation"},source:{pt:"Fashion",en:"Fashion"},numericValue:2.6,unitText:"percent"}],Vy=S.memo(({title:e,compact:t,slugs:n})=>{const{language:r}=be(),a=n?n.map(l=>a2.find(c=>c.slug===l)).filter(Boolean):a2,i=e??(r==="pt"?"Resultados reais em produção":"Real results in production"),o=r==="pt"?"Dados anonimizados de clientes infinity6. Métricas medidas em produção após o deploy dos motores proprietários.":"Anonymized data from infinity6 clients. Metrics measured in production after deploying the proprietary engines.";return s.jsx("section",{className:`relative ${t?"py-12 md:py-16":"py-16 md:py-20"} bg-[#0B1224] border-t border-white/5`,children:s.jsxs("div",{className:"container mx-auto px-6 max-w-6xl",children:[s.jsxs("div",{className:"flex flex-col md:flex-row md:items-end md:justify-between gap-3 mb-8",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-[11px] font-semibold tracking-[0.3em] uppercase text-[#F4845F] mb-2",children:r==="pt"?"Antecipação em números":"Anticipation in numbers"}),s.jsx("h2",{className:`${t?"text-xl md:text-2xl":"text-2xl md:text-3xl"} font-bold text-white`,children:i})]}),s.jsx("p",{className:"text-xs text-white/45 max-w-sm leading-relaxed",children:o})]}),s.jsx("ul",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-px bg-white/5 border border-white/5 rounded-lg overflow-hidden",children:a.map(l=>s.jsxs("li",{className:"bg-[#0B1224] p-4 md:p-5 flex flex-col items-start",children:[s.jsx("span",{className:`${t?"text-xl md:text-2xl":"text-2xl md:text-3xl"} font-bold text-[#F4845F] leading-none mb-2`,children:l.value}),s.jsx("span",{className:"text-[11px] md:text-xs text-white/70 leading-snug",children:l.label[r]}),s.jsx("span",{className:"text-[10px] text-white/35 mt-2 uppercase tracking-wider",children:l.source[r]})]},l.slug))})]})})});Vy.displayName="RealResultsStrip";const ku=()=>{const{language:e}=be(),t=wt(),n=Zk(),r={pt:{line1:"O mercado não espera.",line2Start:"Sua próxima decisão também ",lineHighlight:"não deveria.",cta:n?`Antecipe sua 528próxima decisão`:"Antecipe sua próxima decisão"},en:{line1:"The market doesn't wait.",line2Start:"Your next decision ",lineHighlight:"shouldn't either.",cta:n?`Anticipate your 529next decision`:"Anticipate your next decision"}}[e];return s.jsx("section",{className:"relative py-14 md:py-20 bg-gradient-to-br from-[#F4845F] via-[#E8764A] to-[#0B1224] overflow-hidden",children:s.jsxs("div",{className:"relative z-10 text-center px-6 max-w-5xl mx-auto",children:[s.jsxs("p",{className:"text-2xl sm:text-3xl md:text-4xl font-bold text-white leading-snug",children:[r.line1,s.jsx("br",{}),s.jsxs("span",{className:"md:whitespace-nowrap",children:[r.line2Start,s.jsx("span",{className:"text-[#0B1224] bg-white/90 px-2 py-0.5 rounded",children:r.lineHighlight})]})]}),s.jsxs(Ee,{to:t("/contact"),className:`group inline-flex items-center gap-2 mt-10 px-8 py-4 bg-transparent text-white font-semibold rounded-xl border border-white/50 animate-glow-white transition-all duration-500 ease-out hover:bg-white hover:text-[#0B1224] hover:border-white hover:shadow-[0_0_30px_rgba(255,255,255,0.4),0_0_60px_rgba(255,255,255,0.15)] ${n?"whitespace-pre-line text-center":""}`,children:[r.cta,s.jsx(_a,{size:18,className:"opacity-0 -translate-x-2 transition-all duration-300 group-hover:opacity-100 group-hover:translate-x-1"})]})]})})},v0e={home:{pt:{title:"infinity6 â The Platform for Decision Advantage",description:"Decida antes do mercado. Plataforma de IA aplicada que transforma decisões antecipadas em crescimento de receita, proteção de margem e aceleração de resultados.",keywords:["plataforma de decisão","decision advantage","IA aplicada a negócios","inteligência preditiva","crescimento previsÃvel","growth intelligence","IA para precificação","machine learning para varejo"]},en:{title:"infinity6 â The Platform for Decision Advantage",description:"Decide before the market. Applied-AI platform that turns anticipated decisions into revenue growth, margin protection and faster results.",keywords:["decision advantage platform","applied AI","decision intelligence","predictive intelligence","predictable growth","growth intelligence","AI for pricing","machine learning for retail"]}},solutions:{pt:{title:"Soluções de IA Preditiva | infinity6",description:"Recomendação em tempo real, preço dinâmico, forecasting adaptativo. Soluções de IA que aumentam ticket médio, reduzem churn e otimizam margem.",keywords:["motor de recomendação B2B","dynamic pricing varejo","forecast preditivo","precificação inteligente","otimização de sortimento","elasticidade de preço","IA para supply chain","propensão de compra por cliente"]},en:{title:"Predictive AI Solutions | infinity6",description:"Real-time recommendations, dynamic pricing, adaptive forecasting. AI solutions that increase average ticket, reduce churn and optimize margins.",ke
529ywords:["B2B recommendation engine","retail dynamic pricing","predictive forecasting","intelligent pricing","assortment optimization","price elasticity","AI for supply chain","customer purchase propensity"]}},successStories:{pt:{title:"Cases de Sucesso com IA | infinity6",description:"Veja como empresas aumentaram receita, protegeram margem e reduziram rupturas com inteligência preditiva da infinity6.",keywords:["como aumentar ticket médio","como reduzir churn","como prever demanda","como melhorar margem de lucro","ROI de campanhas","personalização preditiva","como reduzir ruptura de estoque","como definir preço dinâmico"]},en:{title:"AI Success Stories | infinity6",description:"See how companies grew revenue, protected margins and reduced stockouts with infinity6 predictive intelligence.",keywords:["increase average ticket","reduce churn","demand forecasting","improve profit margins","campaign ROI","predictive personalization","reduce stockouts","dynamic pricing strategy"]}},contact:{pt:{title:"Fale Conosco | infinity6",description:"Agende uma conversa estratégica. Colocamos IA preditiva em produção em 4-12 semanas com impacto financeiro mensurável.",keywords:["IA para indústria","inteligência comercial B2B","recomendação para PDV","IA para previsão de demanda"]},en:{title:"Contact Us | infinity6",description:"Schedule a strategic conversation. We deploy predictive AI into production in 4-12 weeks with measurable financial impact.",keywords:["AI for industry","B2B commercial intelligence","point of sale recommendation","AI demand forecasting"]}},privacyPolicy:{pt:{title:"PolÃtica de Privacidade | infinity6",description:"Saiba como a infinity6 protege e gerencia seus dados pessoais com transparência e segurança.",keywords:["polÃtica de privacidade","LGPD","proteção de dados"]},en:{title:"Privacy Policy | infinity6",description:"Learn how infinity6 protects and manages your personal data with transparency and security.",keywords:["privacy policy","GDPR","data protection"]}},ethicsPolicy:{pt:{title:"PolÃtica de Ãtica em IA | infinity6",description:"Nosso compromisso com IA ética, transparente e responsável em todas as soluções.",keywords:["ética em IA","IA responsável","transparência"]},en:{title:"AI Ethics Policy | infinity6",description:"Our commitment to ethical, transparent and responsible AI across all solutions.",keywords:["AI ethics","responsible AI","transparency"]}},insights:{pt:{title:"Insights de IA Preditiva | infinity6",description:"Artigos e análises sobre previsão de demanda, forecast de vendas, pricing dinâmico e crescimento de receita com IA.",keywords:["previsão de demanda","forecast de vendas","gestão de demanda","IA para empresas","precificação dinâmica","inteligência preditiva"]},en:{title:"Predictive AI Insights | infinity6",description:"Articles and analysis on demand forecasting, dynamic pricing, recommendation engines and revenue growth with AI.",keywords:["demand forecasting","sales forecasting","predictive AI","dynamic pricing","recommendation engine"]}},"our-ai":{pt:{title:"Proprietary AI â Motores de IA da infinity6",description:"Conheça os motores proprietários da infinity6: i6 RecSys, i6 Previsio, i6 ElasticPrice e i6 Signal. IA aplicada que aprende comportamento, antecipa decisão e prescreve ação.",keywords:["IA proprietária brasileira","motor de recomendação","previsão de demanda com IA","precificação dinâmica","i6-RecSys-Base.g1","MAML","Active Learning","IA explicável","predição comportamental"]},en:{title:"Proprietary AI â infinity6 AI Engines",description:"Meet infinity6 proprietary engines: i6 RecSys, i6 Previsio, i6 ElasticPrice and i6 Signal. Applied AI that learns behavior, anticipates decisions and prescribes action.",keywords:["proprietary AI engines","recommendation engine","predictive demand forecasting","dynamic pricing AI","i6-RecSys-Base.g1","MAML foundation model","Active Learning","explainable AI","behavioral prediction"]}}},mh="https://infinity6.ai",QC=`${mh}/lovable-uploads/0fce52e4-a161-4d37-b3e4-f23f093b9b75.png`,y0e=e=>e==="home"?"":e==="insights"?"/insights":`/${e.replace(/([A-Z])/g,"-$1").toLowerCase()}`,ns=({page:e,jsonLd:t})=>{var m;const{language:n}=be(),r=(m=v0e[e])==null?void 0:m[n];if(!r)return null;const{title:a,description:i,keywords:o}=r,l=y0e(e),c=`${mh}/${n}${l}`,u=`${mh}/en${l}`,d=`${mh}/pt${l}`;return s.jsxs(Na,{children:[s.jsx("html",{lang:n==="pt"?"pt-BR":"en"}),s.jsx("title",{children:a}),s.jsx("meta",{name:"description",content:i}),s.jsx("meta",{name:"keywords",content:o.join(", ")}),s.jsx("link",{rel:"canonical",href:c}),s.jsx("link",{rel:"alternate",hrefLang:"en",href:u}),s.jsx("link",{rel:"alternate",hrefLang:"pt-BR",href:d}),s.jsx("link",{rel:"alternate",hrefLang:"x-default",href:u}),s.jsx("meta",{property:"og:title",content:a}),s.jsx("meta",{property:"og:description",content:i}),s.jsx("meta",{property:"og:url",content:c}),s.jsx("meta",{property:"og:image",content:QC}),s.jsx("meta",{property:"og:type",content:"website"}),s.jsx("meta",{property:"og:site_name",content:"infinity6"}),s.jsx("meta",{property:"og:locale",content:n==="pt"?"pt_BR":"en_US"}),s.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),s.jsx("meta",{name:"twitter:title",content:a}),s.jsx("meta",{name:"twitter:description",content:i}),s.jsx("meta",{name:"twitter:image",content:QC}),t&&s.jsx("script",{type:"application/ld+json",children:JSON.stringify(t)})]})},yF=S.memo(()=>s.jsxs(s.Fragment,{children:[s.jsx(ns,{page:"solutions"}),s.jsx(y8,{}),s.jsx(x8,{}),s.jsx(dh,{territoryId:"growth"}),s.jsx(dh,{territoryId:"planning"}),s.jsx(dh,{territoryId:"pricing"}),s.jsx(vF,{}),s.jsx(sj,{}),s.jsx(Vy,{}),s.jsx(ku,{})]}));yF.displayName="Solutions";const tv={en:{hero:{title:"Anticipated decisions.",subtitle:"Proven results.",description:"See how companies turn anticipation into competitive advantage."},testimonials:{title:"In their words: those already deciding first.",subtitle:"Leaders share how anticipated decisions are driving real business impact."}},pt:{hero:{title:"Decisões antecipadas.",subtitle:"Resultados comprovados.",description:"Veja como empresas transformam antecipação em vantagem competitiva."},testimonials:{title:"Com a palavra: quem já está decidindo antes.",subt
529itle:"LÃderes compartilham como decisões antecipadas estão gerando impacto real nos negócios."}}},xF=S.memo(({children:e})=>{var r;const{language:t}=be(),n=((r=tv[t])==null?void 0:r.hero)||tv.en.hero;return s.jsx("section",{className:"w-full pt-32 pb-16 relative overflow-hidden",children:s.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:s.jsxs("div",{className:"text-center max-w-4xl mx-auto",children:[s.jsxs("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold mb-6 leading-tight text-white",children:[n.title,s.jsx("br",{}),s.jsx("span",{style:{color:"#F4845F",textShadow:"0 0 40px rgba(244,132,95,0.4)"},children:n.subtitle})]}),s.jsx("p",{className:"text-base sm:text-lg text-white/60 max-w-3xl mx-auto leading-relaxed mb-8",children:n.description}),e]})})})});xF.displayName="SuccessStoriesHero";const x0e=`# Success Stories â schema de conteúdo 530 531Alimenta a página **Success Stories** em \`/{lang}/success-stories\` e os destaques 532na home. Cada case é um arquivo Markdown com **frontmatter YAML**, mesmo padrão 533de \`src/content/intelligence/\` e \`src/content/landings/\`. 534 535## Convenção de arquivo 536 537Par obrigatório PT + EN: 538 539\`\`\` 540src/content/stories/ 541 <slug>-pt.md 542 <slug>-en.md 543\`\`\` 544 545O \`<slug>\` é o mesmo nas duas versões e gera a rota 546\`/{lang}/success-stories/<slug>\`. 547 548## Frontmatter 549 550\`\`\`yaml 551--- 552slug: marketplace-excellence-pharmacy 553language: pt # pt | en 554title: "Excelência em Marketplace..." # antigo H2 555segment: "Indústria" # Varejo | Indústria | Finanças | ... 556client: "EMS Farma" 557client_anon: false # true = ocultar nome real do cliente 558description: "Resumo curto da empresa." 559challenge: "Texto da dor real (1â3 frases)." # exibido como "A DOR REAL" 560what_to_anticipate: "O que precisava ser antecipado." # opcional 561prediction: "A predição gerada pela i6." # opcional 562solution: "Texto da solução aplicada." # exibido como "A SOLUÃÃO" 563metric1: "+23% de ticket médio por PDV" # string única (valor + label) 564metric2: "+36% de conversão de novos SKUs" 565metric3: "" # vazio = não exibe 566solutions: ["Precificação Dinâmica|pricing"] 567quote: "Antecipação Comercial Aplicada..." 568customer_name: "Paulo Lima" # "" se anônimo 569customer_title: "New Channel Manager" # "" se anônimo 570cover_image: "/content/success-stories/case-ems-farmacia.jpg" 571logo: "/content/logos/EMS-COR.png" 572show_home: true # destaca na home 573published: true # false = não aparece 574sort_order: 1 # ordem na grid 575--- 576\`\`\` 577 578Corpo do MD: opcional. Hoje toda a exibição vem do frontmatter. 579 580## Campo \`solutions\` â link para alavanca em \`/solutions\` 581 582Cada item de \`solutions\` (renderizado como chip em "ALAVANCAS DE VALOR") pode ser: 583 584- **Texto puro** (chip não clicável): \`"Nome da Alavanca"\` 585- **Texto + slug da alavanca** separado por \`|\`: \`"Nome da Alavanca|pricing"\` 586 587> **Separador de itens do array: \`;\` (ponto-e-vÃrgula)**, não vÃrgula. 588> Isso permite usar vÃrgulas dentro do rótulo (ex.: \`"Descoberta, Recomendação e Personalização|growth"\`). 589 590Quando o slug é válido, o chip vira um link que aterrissa na seção detalhada 591da alavanca dentro de \`/{lang}/solutions\` (âncora \`#territory-<slug>\`), e não em 592uma landing separada. 593 594Slugs válidos (IDs das 3 Alavancas Preditivas de Valor em \`/solutions\`): 595 596| Slug | Alavanca | 597| ---------- | ------------------------------------------------- | 598| \`growth\` | Crescimento & Inteligência de Consumidor | 599| \`planning\` | Demanda, Distribuição e Planejamento Comercial | 600| \`pricing\` | Precificação e Inteligência de Margem | 601 602Exemplos: 603 604\`\`\`yaml 605solutions: ["Descoberta e Personalização|growth"] 606solutions: ["Previsão de Demanda|planning"; "Precificação Dinâmica|pricing"] 607solutions: ["Crescimento, Personalização e Recomendação|growth"; "Precificação Dinâmica|pricing"] 608\`\`\` 609 610Se o slug for inválido ou ausente, o chip cai automaticamente para texto puro
611(sem link). O rótulo exibido é sempre exatamente o texto antes do \`|\`. 612 613 614 615## Loaders 616 617- \`src/hooks/useSuccessStoriesMarkdown.ts\` â varre \`import.meta.glob\`, filtra 618 por \`language\` e ordena por \`sort_order\`. 619- \`src/hooks/useHomeSuccessStories.ts\` â reusa o anterior e filtra \`show_home\`. 620 621## i6Hub (CMS â em construção) 622 623Estes arquivos serão gerados automaticamente pelo i6Hub, mirror do fluxo de 624Insights. Ver \`docs/I6HUB_CMS_ROADMAP.md\`. Enquanto o feed 625\`public-stories-feed\` não existir, esses arquivos são editados manualmente. 626`,b0e=`--- 627slug: assortment-precision-sales-growth 628language: en 629title: "Assortment Precision: Sales Growth Through Optimized Forecasts" 630segment: "Industry" 631client: "The world's second largest producer of prepared foods" 632client_anon: true 633description: "One of the largest food conglomerates on the planet, present in over 150 countries and a leader in several categories across Latin America." 634challenge: "Assortment definition per point of sale was based on aggregated analysis and standardized commercial decisions. This created misalignment between local turnover potential and the offered mix, limiting growth and execution efficiency." 635what_to_anticipate: "" 636prediction: "" 637solution: "We applied predictive decisions per POS, considering seasonality, local history, regional behavior and margin potential. The commercial team began operating with granular intelligence, expanding mix with the highest sell-out probability and direct impact on sales." 638metric1: "+7.2% direct sales increase (up-sell)" 639metric2: "+55% of POS converted new product suggestions" 640metric3: "" 641solutions: ["Predictive Personalization|relevance"] 642quote: "Assortment Decisions Driven by Sell-out Potential" 643customer_name: "" 644customer_title: "" 645cover_image: "/content/success-stories/case-foods-1.jpg" 646logo: "/content/logos/infinity6_CMYK_color_symbol_72dpi.png" 647show_home: true 648published: true 649sort_order: 3 650---`,w0e=`--- 651slug: assortment-precision-sales-growth 652language: pt 653title: "Precisão no Sortimento: Aumento de Vendas com Previsões Otimizadas" 654segment: "Indústria" 655client: "O segundo maior produtor de alimentos preparados do mundo" 656client_anon: true 657description: "Um dos maiores conglomerados de alimentos do planeta, presente em mais de 150 paÃses e lÃder em várias categorias na América Latina." 658challenge: "A definição de sortimento por ponto de venda era baseada em análises agregadas e decisões comerciais padronizadas. Isso gerava desalinhamento entre potencial local de giro e mix ofertado, limitando crescimento e eficiência de execução." 659what_to_anticipate: "" 660prediction: "" 661solution: "Aplicamos decisões preditivas por PDV, considerando sazonalidade, histórico local, comportamento regional e potencial de margem. O time comercial passou a operar com inteligência granular, expandindo mix com maior probabilidade de sell-out e impacto direto em vendas." 662metric1: "+7,2% aumento direto nas vendas (up-sell)" 663metric2: "+55% dos PDVs converteram sugestões de novos produtos" 664metric3: "" 665solutions: ["Personalização Preditiva|relevance"] 666quote: "Decisão de Sortimento Orientada por Potencial de Sell-out" 667customer_name: "" 668customer_title: "" 669cover_image: "/content/success-stories/case-foods-1.jpg" 670logo: "/content/logos/infinity6_CMYK_color_symbol_72dpi.png" 671show_home: true 672published: true 673sort_order: 3 674---`,k0e=`--- 675slug: cross-sell-propensity-intelligence 676language: en 677title: "Maximizing Cross-Sell with Intelligent Purchase Propensity" 678segment: "Finance" 679client: "Top 3 in innovation in Brazil and leader in payroll-deductible credit" 680client_anon: true 681description: "One of the most relevant financial institutions in the country, with strong presence in both domestic and international markets." 682challenge: "The bank had a broad customer base and a diversified portfolio, but generic campaigns and low segmentation precision limited cross-sell efficiency and raised commercial costs." 683what_to_anticipate: "" 684prediction: "" 685solution: "We applied propensity modeling per customer, product and channel, consolidating behavioral history and transactional signals. Activation began happening at the moment and channel with the highest conversion probability, increasing ROI and reducing campaign waste." 686metric1: "+12x increase in campaign conversion" 687metric2: "57% reduction in messaging (CRM) costs" 688metric3: ""
689solutions: ["Predictive Campaign Targeting|targeting"; "Predictive Personalization|relevance"] 690quote: "Predictive Propensity Applied to Multichannel Activation" 691customer_name: "" 692customer_title: "" 693cover_image: "/content/success-stories/case-finance-1.jpg" 694logo: "/content/logos/infinity6_CMYK_color_symbol_72dpi.png" 695show_home: true 696published: true 697sort_order: 5 698---`,S0e=`--- 699slug: cross-sell-propensity-intelligence 700language: pt 701title: "Maximizando Cross-Sell com Propensão de Compra Inteligente" 702segment: "Finanças" 703client: "Top 3 em inovação no Brasil e lÃder em crédito consignado" 704client_anon: true 705description: "Uma das instituições financeiras mais relevantes do paÃs, com forte presença no mercado nacional e internacional." 706challenge: "O banco possuÃa ampla base de clientes e portfólio diversificado, mas campanhas genéricas e baixa precisão de segmentação limitavam eficiência de cross-sell e elevavam custo comercial." 707what_to_anticipate: "" 708prediction: "" 709solution: "Aplicamos modelagem de propensão por cliente, produto e canal, consolidando histórico comportamental e sinais transacionais. A ativação passou a ocorrer no momento e canal de maior probabilidade de conversão, elevando ROI e reduzindo desperdÃcio de campanha." 710metric1: "+12x de aumento de conversão nas campanhas" 711metric2: "57% de redução nos custos de mensageria (CRM)" 712metric3: "" 713solutions: ["Campanhas por Propensão|targeting"; "Personalização Preditiva|relevance"] 714quote: "Propensão Preditiva Aplicada à Ativação Multicanal" 715customer_name: "" 716customer_title: "" 717cover_image: "/content/success-stories/case-finance-1.jpg" 718logo: "/content/logos/infinity6_CMYK_color_symbol_72dpi.png" 719show_home: true 720published: true 721sort_order: 5 722---`,j0e=`--- 723slug: curadoria-moda-receita-incremental-ia 724language: en 725title: "Boosting Customer Engagement: Accelerating Online Sales" 726segment: "Retail" 727client: "The most traditional fashion brand in Latin America" 728client_anon: true 729description: "With over 140 years of history, the company has established itself as one of the largest fashion retailers in the region." 730challenge: "A large share of digital traffic was anonymous, limiting relevant personalization and impacting conversion and average ticket. In addition, the main cross-sell opportunity was outfit composition, manually performed by fashion specialists, with no scale for the catalog's 11,000+ SKUs and no margin-oriented optimization." 731what_to_anticipate: "" 732prediction: "" 733solution: "We turned browsing and interaction signals into predictive intent from the first click. The model learned outfit composition patterns and incorporated a new strategic variable: smart prioritization of long-tail and higher-margin products. Real-time activation began recommending contextual combinations for both logged-in and anonymous users, scaling curation with commercial intelligence." 734metric1: "+2.6% sales versus the traditional look (with only 5% of traffic)" 735metric2: "40% of all incremental revenue came from the models" 736metric3: "" 737solutions: ["Smart Discovery|relevance"; "Predictive Personalization|relevance"] 738quote: "Scalable Curation Driven by Intent and Margin" 739customer_name: "" 740customer_title: "" 741cover_image: "/content/success-stories/curadoria-moda-receita-incremental-ia.png" 742logo: null 743show_home: true 744published: true 745sort_order: 2 746---`,P0e=`--- 747slug: curadoria-moda-receita-incremental-ia 748language: pt 749title: "Receita incremental de 40% com curadoria preditiva no varejo fashion" 750segment: "Varejo" 751client: "A mais tradicional marca de moda da América Latina" 752client_anon: true 753description: "Com mais de 140 anos de história, um dos maiores varejistas de moda da região aplicou modelos preditivos que aprenderam a combinar peças com coerência de moda, personalizar visitantes desde os primeiros cliques e orientar os looks para conversão, margem e giro de catálogo." 754challenge: "### Curadoria de qualidade não significava personalização em escala.\\\\\\nCom mais de 11 mil SKUs, a quantidade de combinações possÃveis tornava inviável criar manualmente looks relevantes para cada visitante.\\nOs especialistas de moda conseguiam montar boas composições, mas a mesma curadoria era apresentada para milhares de pessoas com estilos, interesses e momentos de compra diferentes.\\nO desafio se tornava ainda maior porque uma parcela relevante do tráfego era anônima. Sem histórico de compra ou perfil conhecido, as re
754comendações começavam genéricas justamente no momento em que o interesse precisava ser capturado.\\\\\\n\\nAo mesmo tempo, a operação precisava equilibrar três objetivos:\\n- criar looks visualmente coerentes;\\n- personalizar a experiência de cada visitante;\\n- direcionar demanda para produtos de maior margem e itens com menor exposição no catálogo." 755what_to_anticipate: "### A combinação com maior chance de gerar interesse antes que o visitante abandonasse a jornada.\\n\\nA operação precisava identificar, em tempo real:\\n- quais peças combinavam entre si segundo critérios de moda;\\n- qual look teria maior afinidade com cada visitante;\\n- como aprender rapidamente mesmo sem um usuário identificado;\\n- quais produtos poderiam aumentar margem ou ganhar exposição sem reduzir a relevância;\\n- qual combinação deveria aparecer a partir dos primeiros sinais de navegação.\\n\\n> A recomendação precisava entender simultaneamente moda, comportamento e estratégia comercial." 756prediction: "### Um modelo capaz de aprender estilo, intenção e contexto.\\n\\nA infinity6 desenvolveu modelos que aprenderam padrões de composição a partir das relações entre produtos, caracterÃsticas das peças e comportamento dos consumidores.\\n\\nO motor passou a avaliar:\\n- coerência entre cores, estilos, categorias e peças;\\n- afinidade do look com o comportamento de cada visitante;\\n- sinais capturados durante a sessão;\\n- probabilidade de interação e conversão;\\n- contribuição de cada produto para margem, giro e estratégia de catálogo.\\n\\nAssim, o modelo não recomendava apenas itens semelhantes. **Ele aprendia a formar looks completos e comercialmente relevantes**." 757solution: "### Looks relevantes para o consumidor e estratégicos para o negócio.\\n\\nO modelo aprendeu a compor looks completos e coerentes a partir de relações entre cores, estilos, categorias, ocasiões e comportamento de compra.\\n\\nMesmo para **visitantes anônimos**, a solução interpretava os primeiros sinais de navegação e, com apenas uma ou duas interações, alcançava um nÃvel de relevância próximo ao entregue para usuários identificados.\\n\\n> A cada novo clique, as combinações eram ajustadas à intenção daquele visitante, permitindo personalização de alta precisão desde o inÃcio da jornada.\\n\\nOs looks também incorporavam objetivos comerciais, **priorizando produtos de maior margem e itens de fundo de catálogo**, sem comprometer a coerência da composição nem a afinidade com o consumidor." 758metric1: "+2,6% vendas que o look tradicional (com apenas 5% do tráfego)" 759metric2: "40% de toda a receita adicional gerada vieram dos modelos" 760metric3: "" 761solutions: ["Personalização Preditiva|relevance"; "Descoberta Preditiva|relevance"] 762quote: "Looks preditivos, personalização de visitantes anônimos e decisões orientadas a margem em um catálogo com mais de 11 mil SKUs." 763customer_name: "" 764customer_title: "" 765cover_image: "/content/success-stories/curadoria-moda-receita-incremental-ia.png" 766logo: null 767show_home: false 768published: true 769sort_order: 2 770---`,A0e=`--- 771slug: demand-forecast-accuracy 772language: en 773title: "Demand Forecast Accuracy: Elevating Production and Sales Planning" 774segment: "Retail" 775client: "One of the largest cosmetics brands in Brazil" 776client_anon: true 777description: "One of the country's leading beauty players, recognized for its large-scale direct sales model and frequent product launches via catalogs." 778challenge: "The business model required advance production planning per catalog, but low demand predictability generated overstocking or stock-outs, impacting margin and working capital." 779what_to_anticipate: "" 780prediction: "" 781solution: "We implemented adaptive forecasting aligned with the catalog cycle, classifying SKUs by criticality and behavior. Operations began anticipating volumes with greater precision, reducing risk and increasing operational efficiency." 782metric1: "+70% catalog sales forecast accuracy" 783metric2: "" 784metric3: "" 785solutions: ["Predictive Forecasting|forecasting"] 786quote: "Catalog Planning Sustained by Adaptive Forecasting" 787customer_name: "" 788customer_title: "" 789cover_image: "/content/success-stories/demand-forecast-accuracy.jpg" 790logo: "/content/logos/infinity6_CMYK_color_symbol_72dpi.png" 791show_home: false 792published: true 793sort_order: 6 794---`,_0e=`--- 795slug: demand-forecast-accuracy 796language: pt 797title: "Acurácia de Previsão de Demanda: Elevando Produção e Planejamento de Vendas" 798segment: "Varejo" 799client: "Uma das maiores marcas de cosméticos do Brasil" 800client_anon: true 801description: "Um dos principais players de beleza do paÃs, reconhecido por seu modelo de vendas diretas em larga escala e lançamentos frequentes de produtos via catálogos." 802challenge: "O modelo de negócio exigia planejamento antecipado de produção por catálogo, mas a baixa previsibilidade de demanda gerava excesso de estoque ou ruptura, impactando margem e capital de giro." 803what_to_anticipate: "" 804prediction: "" 805solution: "Implementamos previsão adaptativa alinhada ao ciclo de catálogo, classificando SKUs por criticidade e comportamento. A operação passou a antecipar volumes com maior precisão, reduzindo risco e aumentando eficiência operacional." 806metric1: "+70% de acurácia de previsão de vendas do catálogo" 807metric2: "" 808metric3: "" 809solutions: ["Forecast Preditivo de Demanda|forecasting"] 810quote: "Planejamento de Catálogo Sustentado por Previsão Adaptativa" 811customer_name: "" 812customer_title: "" 813cover_image: "/content/success-stories/demand-forecast-accuracy.jpg" 814logo: "/content/logos/infinity6_CMYK_color_symbol_72dpi.png" 815show_home: false 816published: true 817sort_order: 6 818---`,N0e=`--- 819slug: marketplace-farmacia-mix-sortimento-ia 820language: en 821title: "Marketplace Excellence: Driving Results for Pharmacies" 822segment: "Industry" 823client: "EMS Farma" 824client_anon: false 825description: "One of the largest pharmaceutical companies in Brazil and a strategic player in the global market." 826challenge: "The marketplace connected manufacturers, distributors and pharmacies, but operated on reactive orders with little anticipatory intelligence per point of sale. The absence of granular predictability limited sell-out potential, pressured margins and reduced efficie
826ncy in inventory and commercial capital allocation." 827what_to_anticipate: "" 828prediction: "" 829solution: "We consolidated purchase signals, transactional history, inventory and per-pharmacy behavior into an anticipatory decision engine. Operations now indicate what to sell, when to activate and which combinations would expand margin and turnover. The marketplace shifted from responding to demand to actively orienting it." 830metric1: "+23% average ticket per POS" 831metric2: "+36% conversion on new SKUs (listing)" 832metric3: "" 833solutions: ["Predictive Assortment & Order Recommendation|assortment"] 834quote: "Commercial Anticipation Applied to the Pharmacy Ecosystem" 835customer_name: "Paulo Lima" 836customer_title: "New Channel Manager" 837cover_image: "/content/success-stories/marketplace-farmacia-mix-sortimento-ia.png" 838logo: null 839show_home: true 840published: true 841sort_order: 1 842---`,C0e=`--- 843slug: marketplace-farmacia-mix-sortimento-ia 844language: pt 845title: "A EMS encontrou o pedido ideal para cada um de seus 95 mil PDVs" 846segment: "Indústria" 847client: "EMS Farma" 848client_anon: false 849description: "A EMS transformou seu marketplace de um canal reativo a pedidos em uma camada de decisão antecipada para orientar cada interação comercial." 850challenge: "### O portfólio crescia. O tempo de cada interação, não.\\\\\\n\\nCom 1.400 SKUs distribuÃdos por 95 mil PDVs, o desafio não era simplesmente oferecer mais produtos. Era saber, antes de cada contato, quais produtos faziam sentido para cada farmácia e em qual volume.\\\\\\nO marketplace conectava indústria, distribuidores e PDVs, mas ainda reagia ao pedido já formado. Sem uma leitura antecipada do potencial de cada cliente, novos produtos deixavam de ser positivados, o mix permanecia incompleto e parte do ticket ficava na mesa." 851what_to_anticipate: "### O potencial de compra antes da abordagem comercial.\\\\\\nAntes de cada contato, a operação precisava responder:\\nQual produto tem maior aderência a este PDV?\\nQual volume é compatÃvel com sua demanda?\\nQuais novos SKUs têm maior chance de entrada?\\nQual recomendação combina potencial de compra e prioridade do negócio?\\\\\\n> A decisão precisava acontecer antes da ligação, não durante a tentativa de venda." 852prediction: "### Um pedido diferente para cada ponto de venda.\\\\\\nA Infinity6 estruturou um modelo de recomendação para antecipar o pedido ideal e o volume recomendado por PDV.\\nO motor combinou histórico transacional, sinais de demanda, estoque e perfil de compra para estimar a propensão de cada produto e identificar as oportunidades com maior potencial comercial.\\\\\\nEm vez de apresentar o mesmo portfólio para todos, **a operação passou a iniciar cada contato com uma recomendação priorizada**." 853solution: "### A predição entrou diretamente na rotina do vendedor.\\n\\nPara cada interação, o vendedor passou a receber:\\nprodutos priorizados para aquele PDV;\\nvolume recomendado por item;\\nnovos SKUs com maior chance de positivação;\\ncombinações alinhadas aos objetivos comerciais;\\nargumentos que explicavam cada recomendação.\\n\\n> A inteligência não substituiu o vendedor. Deu ao vendedor uma decisão melhor antes da abordagem." 854metric1: "+23% de ticket médio por PDV" 855metric2: "+36% de conversão de novos SKUs (positivação)" 856metric3: "" 857solutions: ["Personalização Preditiva|relevance"; "Preço Orientado ao Giro|pricing"; "Preço Orientado à Conversão|pricing"; "Mix, Sortimento e Pedido Ideal|assortment"] 858quote: "Antes, o marketplace respondia ao que a farmácia já havia decidido comprar.\\\\\\n\\n> Com a infinity6, passou a antecipar o que cada PDV tinha potencial para comprar e a orientar a formação do pedido.\\\\\\n\\n\\nO resultado foi uma abordagem mais relevante para a farmácia e mais valiosa para a operação." 859customer_name: "" 860customer_title: "" 861cover_image: "/content/success-stories/marketplace-farmacia-mix-sortimento-ia.png" 862logo: "/content/logos/marketplace-farmacia-mix-sortimento-ia-logo.png" 863show_home: true 864published: true 865sort_order: 1 866---`,E0e=`--- 867slug: sales-forecast-precision 868language: en 869title: "Accurate Sales Forecasting: Optimizing Results and Operations" 870segment: "Industry" 871client: "EMS Farma" 872client_anon: false 873description: "One of the largest pharmaceutical companies in Brazil and a global reference." 874challenge: "Low sell-out forecast accuracy compromised production planning, commercial targets and investment allocation. Disconnected data sources generated inconsistency and low confidence in projections." 875what_to_anticipate: "" 876prediction: "" 877solution: "We unified multiple market, behavior, inventory and historical signals into an adaptive forecasting engine per SKU and POS. The company began anticipating demand with granularity and reliability, enabling coordinated decisions from production to commercial." 878metric1: "82% sell-out forecast accuracy" 879metric2: "+100M in savings from incineration, stock-outs and overstocking" 880metric3: "" 881solutions: ["Predictive Forecasting|forecasting"] 882quote: "Operational Predictability with SKU and POS Granularity" 883customer_name: "" 884customer_title: "" 885cover_image: "/content/success-stories/case-forecast-1.jpg" 886logo: "/content/logos/EMS-COR.png" 887show_home: true 888published: true 889sort_order: 4 890---`,T0e=`--- 891slug: sales-forecast-precision 892language: pt 893title: "Previsão de Vendas Precisa: Otimizando Resultados e Operações" 894segment: "Indústria" 895client: "EMS Farma" 896client_anon: false 897description: "Uma das maiores farmacêuticas do Brasil e referência global." 898challenge: "A baixa acurácia do forecast de sell-out comprometia planejamento de produção, metas comerciais e alocação de investimentos. Fontes de dados desconectadas geravam inconsistência e baixa confiança nas projeções." 899what_to_anticipate: "" 900prediction: "" 901solution: "Unificamos múltiplos sinais de mercado, comportamento, estoque e histórico em um motor adaptativo de previsão por SKU e PDV. A empresa passou a antecipar demanda com granularidade e confiabilidade, permitindo decisões coordenadas da produção ao comercial." 902metric1: "82% de acurácia na previsão de sell-out" 903metric2: "+100M em savings de incineração, ruptura e overstocking" 904metric3: "" 905solutions: ["Forecast Preditivo de Demanda|forecasting"] 906quote: "Previsibilidade Operacional com Granularidade por SKU e PDV" 907customer_name: "" 908customer_title: "" 909cover_image: "/content/success-stories/case-forecast-1.jpg" 910logo: "/content/logos/EMS-COR.png" 911show_home: true 912published: true 913sort_order: 4 914---`,O0e="/",ja=e=>{const t=e.startsWith("/")?e.slice(1):e;return`${O0e}${t}`},I0e=new Set(["growth","planning","pricing"]),M0e=e=>I0e.has(e);function $0e(e){const t=e.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/);if(!t)return{data:{},content:e};const[,n,r]=t,a={};for(const i of n.split(/\r?\n/)){if(!i.trim()||i.trim().startsWith("#"))continue;const o=i.indexOf(":");if(o===-1)continue;const l=i.slice(0,o).trim();let c=i.slice(o+1).trim();if(c.startsWith("[")&&c.endsWith("]")){const u=c.slice(1,-1).trim();if(!u){a[l]=[];continue}const d=u.match(/("([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[^;]+)/g)||[];a[l]=d.map(m=>{let p=m.trim();return(p.startsWith('"')&&p.endsWith('"')||p.startsWith("'")&&p.endsWith("'"))&&(p=p.slice(1,-1).replace(/\\"/g,'"')),p}
914).filter(Boolean);continue}(c.startsWith('"')&&c.endsWith('"')||c.startsWith("'")&&c.endsWith("'"))&&(c=c.slice(1,-1).replace(/\\"/g,'"')),c===""||c==="null"||c==="~"?a[l]="":c==="true"?a[l]=!0:c==="false"?a[l]=!1:/^-?\d+(\.\d+)?$/.test(c)?a[l]=Number(c):a[l]=c}return{data:a,content:r.trim()}}const F0e=Object.assign({"/src/content/stories/README.md":x0e,"/src/content/stories/assortment-precision-sales-growth-en.md":b0e,"/src/content/stories/assortment-precision-sales-growth-pt.md":w0e,"/src/content/stories/cross-sell-propensity-intelligence-en.md":k0e,"/src/content/stories/cross-sell-propensity-intelligence-pt.md":S0e,"/src/content/stories/curadoria-moda-receita-incremental-ia-en.md":j0e,"/src/content/stories/curadoria-moda-receita-incremental-ia-pt.md":P0e,"/src/content/stories/demand-forecast-accuracy-en.md":A0e,"/src/content/stories/demand-forecast-accuracy-pt.md":_0e,"/src/content/stories/marketplace-farmacia-mix-sortimento-ia-en.md":N0e,"/src/content/stories/marketplace-farmacia-mix-sortimento-ia-pt.md":C0e,"/src/content/stories/sales-forecast-precision-en.md":E0e,"/src/content/stories/sales-forecast-precision-pt.md":T0e}),bn=e=>e==null?"":String(e),bF=Object.entries(F0e).map(([,e])=>{const{data:t}=$0e(e),n=t;if(!n.slug||!n.language)return null;const r=String(n.slug);return{id:r,slug:r,title:bn(n.title),image:bn(n.cover_image),logo:bn(n.logo),segment:bn(n.segment),client:bn(n.client),description:bn(n.description),challenge:bn(n.challenge),whatToAnticipate:bn(n.what_to_anticipate),prediction:bn(n.prediction),solution:bn(n.solution),metric1:bn(n.metric1),metric2:bn(n.metric2),metric3:bn(n.metric3),solutions:Array.isArray(n.solutions)?n.solutions.map(a=>{const[i,o]=String(a).split("|"),l=(i??"").trim(),c=(o??"").trim();return c&&M0e(c)?{label:l,slug:c}:{label:l}}).filter(a=>a.label):[],quote:bn(n.quote),customerName:bn(n.customer_name),customerTitle:bn(n.customer_title),showHome:n.show_home===!0,published:n.published!==!1,sortOrder:typeof n.sort_order=="number"?n.sort_order:999,language:n.language==="en"?"en":"pt",clientAnon:n.client_anon===!0}}).filter(e=>e!==null).filter(e=>e.published),R0e=(e,t)=>{const n=bF.find(r=>r.slug===e&&r.language===t);return n?{...n,image:ja(n.image),logo:ja(n.logo)}:null},lj=()=>{const[e,t]=S.useState([]),[n,r]=S.useState(!0),[a,i]=S.useState(null),{language:o}=be();return S.useEffect(()=>{try{r(!0),i(null);const l=bF.filter(c=>c.language===o).sort((c,u)=>c.sortOrder-u.sortOrder).map(c=>({...c,image:ja(c.image),logo:ja(c.logo)}));t(l)}catch(l){i(l instanceof Error?l.message:"Unknown error")}finally{r(!1)}},[o]),{stories:e,loading:n,error:a}},wF=S.memo(({onSegmentChange:e,selectedSegment:t})=>{const{language:n}=be(),[r,a]=S.useState([]),{stories:i,loading:o}=lj();S.useEffect(()=>{if(i.length>0){const c=[...new Set(i.map(u=>u.segment))].sort();a(c)}},[i]);const l=c=>{e(t===c?null:c)};return r.length===0?null:s.jsxs("div",{className:"flex flex-wrap justify-center gap-3",children:[s.jsx("button",{onClick:()=>e(null),className:`px-4 py-2 rounded-full text-sm font-medium transition-all duration-300 border ${t===null?"bg-[#F4845F] border-[#F4845F] text-white":"bg-white/5 border-white/20 text-white/70 hover:bg-white/10 hover:text-white"}`,children:n==="en"?"All Industries":"Todos os Segmentos"}),r.map(c=>s.jsx("button",{onClick:()=>l(c),className:`px-4 py-2 rounded-full text-sm font-medium transition-all duration-300 border ${t===c?"bg-[#F4845F] border-[#F4845F] text-white":"bg-white/5 border-white/20 text-white/70 hover:bg-white/10 hover:text-white"}`,children:c},c))]})});wF.displayName="SegmentFilter";const kF=S.memo(({selectedSegment:e,language:t})=>s.jsx("section",{className:"py-8",children:s.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:s.jsxs("div",{className:"text-center py-8",children:[s.jsx("h2",{className:"text-xl md:text-2xl font-bold text-white mb-4",children:e?t==="en"?`No success stories found for "${e}"`:`Nenhum case de sucesso encontrado para "${e}"`:t==="en"?"No success stories available":"Nenhum case de sucesso disponÃvel"}),s.jsx("p",{className:"text-white/60 text-sm md:text-base",children:e?t==="en"?"Try selecting a different segment or view all stories.":"Tente selecionar um segmento diferente ou veja todos os cases.":t==="en"?"Success stories will be displayed here when available.":"Os cases de sucesso serão exibid
914os aqui quando estiverem disponÃveis."})]})})}));kF.displayName="EmptyState";const D0e="modulepreload",L0e=function(e){return"/"+e},YC={},z0e=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));a=Promise.allSettled(n.map(c=>{if(c=L0e(c),c in YC)return;YC[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const m=document.createElement("link");if(m.rel=u?"stylesheet":D0e,u||(m.as="script"),m.crossOrigin="",m.href=c,l&&m.setAttribute("nonce",l),document.head.appendChild(m),u)return new Promise((p,f)=>{m.addEventListener("load",p),m.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return a.then(o=>{for(const l of o||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},Lp=S.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:ct("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Lp.displayName="Card";const B0e=S.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:ct("flex flex-col space-y-1.5 p-6",e),...t}));B0e.displayName="CardHeader";const q0e=S.forwardRef(({className:e,...t},n)=>s.jsx("h3",{ref:n,className:ct("text-2xl font-semibold leading-none tracking-tight",e),...t}));q0e.displayName="CardTitle";const U0e=S.forwardRef(({className:e,...t},n)=>s.jsx("p",{ref:n,className:ct("text-sm text-muted-foreground",e),...t}));U0e.displayName="CardDescription";const Hy=S.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:ct("p-6 pt-0",e),...t}));Hy.displayName="CardContent";const W0e=S.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:ct("flex items-center p-6 pt-0",e),...t}));W0e.displayName="CardFooter";const V0e=S.memo(()=>s.jsxs(Lp,{className:"border border-gray-200 shadow-sm bg-white",children:[s.jsx("div",{className:"h-0 bg-gray-200"}),s.jsxs(Hy,{className:"p-6 relative",children:[s.jsx("div",{className:"w-full h-32 bg-gray-200 rounded-lg mb-4 animate-pulse"}),s.jsxs("div",{className:"flex items-center mb-3",children:[s.jsx("div",{className:"w-3 h-3 bg-gray-200 rounded mr-2 animate-pulse"}),s.jsx("div",{className:"h-3 bg-gray-200 rounded w-20 animate-pulse"})]}),s.jsx("div",{className:"h-6 bg-gray-200 rounded mb-3 w-3/4 animate-pulse"}),s.jsxs("div",{className:"space-y-2 mb-4",children:[s.jsx("div",{className:"h-4 bg-gray-200 rounded animate-pulse"}),s.jsx("div",{className:"h-4 bg-gray-200 rounded w-2/3 animate-pulse"})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3 mb-5",children:[s.jsxs("div",{className:"p-3 bg-gray-50 rounded-lg border border-gray-100",children:[s.jsx("div",{className:"h-6 bg-gray-200 rounded mb-1 animate-pulse"}),s.jsx("div",{className:"h-3 bg-gray-200 rounded w-3/4 animate-pulse"})]}),s.jsxs("div",{className:"p-3 bg-gray-50 rounded-lg border border-gray-100",children:[s.jsx("div",{className:"h-6 bg-gray-200 rounded mb-1 animate-pulse"}),s.jsx("div",{className:"h-3 bg-gray-200 rounded w-3/4 animate-pulse"})]})]}),s.jsxs("div",{className:"flex items-center justify-end",children:[s.jsx("div",{className:"h-4 bg-gray-200 rounded w-20 mr-3 animate-pulse"}),s.jsx("div",{className:"w-12 h-8 bg-gray-200 rounded-lg animate-pulse"})]})]})]}));S.memo(()=>s.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-60 z-50 flex items-center justify-center p-4 backdrop-blur-sm",children:s.jsxs("div",{className:"bg-white rounded-xl max-w-3xl w-full max-h-[85vh] relative shadow-xl overflow-hidden",children:[s.jsx("div",{className:"h-1 bg-gray-200"}),s.jsx("div",{className:"absolute top-4 right-4 w-8 h-8 bg-gray-200 rounded-full animate-pulse"}),s.jsx("div",{className:"p-6 pb-4 border-b border-gray-100",children:s.jsxs("div",{className:"flex items-start justify-between mb-3",children:[s.jsxs("div",{className:"flex-1 pr-4",children:[s.jsxs("div",{className:"flex items-center mb-3",children:[s.jsx("div",{className:"w-4 h-4 bg-gray-200 rounded mr-2 animate-pulse"}),s.jsx("div",{className:"h-3 bg-gray-200 rounded w-24 animate-pulse"})]}),s.jsx("div",{className:"h-8 bg-gray-200 rounded mb-3 w-2/3 animate-pulse"}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"h-4 bg-gray-200 rounded animate-pulse"}),s.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4 animate-pulse"})]})]}),s.jsx("div",{className:"w-10 h-10 bg-gray-200 rounded-lg animate-pulse"})]})}),s.jsxs("div",{className:"p-6",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-6",children:[s.jsxs("div",{children:[s.jsx("div",{className:"h-4 bg-gray-200 rounded mb-2 w-16 animate-pulse"}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"h-4 bg-gray-200 rounded animate-pulse"}),s.jsx("div",{className:"h-4 bg-gray-200 rounded animate-pulse"}),s.jsx("div",{className:"h-4 bg-gray-200 rounded w-2/3 animate-pulse"})]})]}),s.jsxs("div",{children:[s.jsx("div",{className:"h-4 bg-gray-200 rounded mb-2 w-16 animate-pulse"}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"h-4 bg-gray-200 rounded animate-pulse"}),s.jsx("div",{className:"h-4 bg-gray-200 rounded animate-pulse"}),s.jsx("div",{className:"h-4 bg-gray-200 rounded w-2/3 animate-pulse"})]})]})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3 mb-6",children:[1,2,3].map(e=>s.jsxs("div",{className:"p-3 bg-gray-50 rounded-lg border border-gray-100",children:[s.jsx("div",{className:"h-6 bg-gray-200 rounded mb-1 animate-pulse"}),s.jsx("div",{className:"h-3 bg-gray-200 rounded w-3/4 animate-pulse"})]},e))}),s.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg border border-gray-100",children:[s.jsx("div",{className:"h-4 bg-gray-200 rounded mb-3 w-32 animate-pulse"}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:[1,2,3,4,5,6].map(e=>s.jsx("div",{className:"h-10 bg-gray-200 rounded-lg animate-pulse"},e))})]})]})]})}));function SF(e,t=1){return e().catch(n=>{const r=String((n==null?void 0:n.message)||n),a=/ChunkLoadError|Loading chunk|Failed to fetch dynamically imported module|Importing a module script failed/i.test(r);if(a&&t>0)return SF(e,t-1);if(a&&typeof window<"u"){const i="__sscReloadedOnce";sessionStorage.getItem(i)||(sessionStorage.setItem(i,"1"),window.location.reload())}throw n})}const H0e=M.lazy(()=>SF(()=>z0e(()=>import("./StoryCard-BDYcNB5J.js"),[]))),jF=S.memo(e=>s.jsx(S.Suspense,{fallback:s.jsx(V0e,{}),children:s.jsx(H0e,{...e})}));jF.displayName="LazyStoryCard";const ph=S.memo(({children:e,className:t="",threshold:n=.1,rootMargin:r="50px",onInView:a})=>{const[i,o]=S.useState(!1),l=S.useRef(null);return S.useEffect(()=>{const c=new IntersectionObserver(([u])=>{u.isIntersecting&&!i&&(o(!0),a==null||a())},{threshold:n,rootMargin:r});return l.current&&c.observe(l.current),()=>c.disconnect()},[n,r,i,a]),s.jsx("section",{ref:l,className:t,children:i?e:s.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[1,2,3,4,5,6].map(c=>s.jsx("div",{className:"bg-white border border-gray-200 rounded-lg shadow-sm h-96 animate-pulse",children:s.jsxs("div",{className:"p-6",children:[s.jsx("div",{className:"w-full h-32 bg-gray-200 rounded-lg mb-4"}),s.jsx("div",{className:"h-4 bg-gray-200 rounded mb-2 w-20"}),s.jsx("div",{className:"h-6 bg-gray-200 rounded mb-3 w-3/4"}),s.jsx("div",{className:"h-4 bg-gray-200 rounded mb-2"}),s.jsx("div",{className:"h-4 bg-gray-200 rounded mb-4 w-2/3"}),s.jsxs("div",{className:"grid grid-cols-2 gap-3 mb-5",children:[s.jsx("div",{className:"h-16 bg-gray-200 rounded-lg"}),s.jsx("div",{className:"h-16 bg-gray-200 rounded-lg"})]}),s.jsx("div",{className:"h-8 bg-gray-200 rounded w-32 ml-auto"})]})},c))})})})});ph.displayName="InViewSection";const K0e=(e={})=>{const{maxAge:t=24*60*60*1e3,maxSize:n=50}=e;return S.useEffect(()=>
914{if(!("serviceWorker"in navigator))return;const a=async l=>{const u=await caches.open("success-stories-images"),d=l.map(async m=>{try{if(await u.match(m))return;const f=await fetch(m);f.ok&&await u.put(m,f.clone())}catch(p){console.warn("Failed to cache image:",m,p)}});await Promise.allSettled(d)},i=async()=>{const c=await caches.open("success-stories-images"),u=await c.keys(),d=Date.now(),m=u.map(async p=>{const f=await c.match(p);if(f){const g=f.headers.get("cached-time");g&&d-parseInt(g)>t&&await c.delete(p)}});await Promise.allSettled(m)};return a(["https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?w=400&h=200&fit=crop&auto=format"]),i(),()=>{}},[t,n]),{preloadImage:async a=>{try{const o=await caches.open("success-stories-images");if(!await o.match(a)){const c=await fetch(a);c.ok&&await o.put(a,c.clone())}}catch(i){console.warn("Failed to preload image:",a,i)}}}},PF=S.memo(({selectedSegment:e})=>{const{language:t}=be(),{preloadImage:n}=K0e({maxAge:24*60*60*1e3,maxSize:100}),{stories:r,loading:a,error:i}=lj(),o=e?r.filter(l=>l.segment===e):r;return S.useEffect(()=>{o.forEach(l=>n(l.image))},[o,n]),a?s.jsx(ph,{className:"py-8",children:s.jsx("div",{className:"container mx-auto px-4",children:s.jsx("div",{className:"flex justify-center items-center py-16",children:s.jsx("div",{className:"animate-spin rounded-full h-16 w-16 border-b-2 border-[#F4845F]"})})})}):i?s.jsx(ph,{className:"py-8",children:s.jsx("div",{className:"container mx-auto px-4",children:s.jsx("div",{className:"text-center py-16",children:s.jsxs("p",{className:"text-white/60",children:["Error loading success stories: ",i]})})})}):o.length===0?s.jsx(kF,{selectedSegment:e,language:t}):s.jsx(ph,{className:"py-8",children:s.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:o.map(l=>s.jsx(jF,{story:{id:l.id,slug:l.slug,industry:l.segment,company_name:l.client,description:l.description,challenge:l.challenge,solution:l.solution,metric1_value:l.metric1.split(" ")[0],metric1_label:l.metric1.split(" ").slice(1).join(" "),metric2_value:l.metric2.split(" ")[0],metric2_label:l.metric2.split(" ").slice(1).join(" "),metric3_value:l.metric3.split(" ")[0],metric3_label:l.metric3.split(" ").slice(1).join(" "),customer_quote:l.title,customer_name:l.customerName,customer_title:l.customerTitle,image_url:l.image,solutions:l.solutions,logo:l.logo},language:t},l.id))})})})});PF.displayName="ModernStoriesGrid";const AF=()=>{const[e,t]=S.useState([]),[n,r]=S.useState(!0),[a,i]=S.useState(null),{language:o}=be();return S.useEffect(()=>{(async()=>{try{r(!0),i(null);const c=`testimonials-${o}.md`,u=await fetch(`/content/${c}`);if(!u.ok)throw new Error(`Failed to fetch testimonials: ${u.statusText}`);const d=await u.text(),m=G0e(d);t(m)}catch(c){i(c instanceof Error?c.message:"Failed to load testimonials"),t([])}finally{r(!1)}})()},[o]),{testimonials:e,loading:n,error:a}},G0e=e=>e.split("---").filter(n=>n.trim().length>0).map((n,r)=>{const a=n.trim().split(` 915`),i={id:`testimonial-${r+1}`,rating:5};return a.forEach(o=>{const l=o.trim();if(l.startsWith("**Quote:**"))i.quote=l.replace("**Quote:**","").trim();else if(l.startsWith("**Author:**"))i.author_name=l.replace("**Author:**","").trim();else if(l.startsWith("**Title:**"))i.author_title=l.replace("**Title:**","").trim();else if(l.startsWith("**Company:**"))i.company_name=l.replace("**Company:**","").trim();else if(l.startsWith("**LinkedIn:**"))i.linkedin_url=l.replace("**LinkedIn:**","").trim();else if(l.startsWith("**Rating:**")){const c=parseInt(l.replace("**Rating:**","").trim());isNaN(c)||(i.rating=c)}}),i}).filter(n=>n.quote&&n.author_name);function Q0e(e){return Object.prototype.toString.call(e)==="[object Object]"}function ZC(e){return Q0e(e)||Array.isArray(e)}function Y0e(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function cj(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const a=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return a!==i?!1:n.every(o=>{const l=e[o],c=t[o];return typeof l=="function"?`${l}`==`${c}`:!ZC(l)||!ZC(c)?l===c:cj(l,c)})}function XC(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function Z0e(e,t){if(e.length!==t.length)return!1;const n=XC(e),r=XC(t);return n.every((a,i)=>{const o=r[i];return cj(a,o)})}function uj(e){return typeof e=="number"}function i2(e){return typeof e=="string"}function Ky(e){return typeof e=="boolean"}function JC(e){return Object.prototype.toString.call(e)==="[object Object]"}function At(e){return Math.abs(e)}function dj(e){return Math.sign(e)}function $d(e,t){return At(e-t)}function X0e(e,t){if(e===0||t===0||At(e)<=At(t))return 0;const n=$d(At(e),At(t));return At(n/e)}function Xm(e){return Jm(e).map(Number)}function va(e){return e[zp(e)]}function zp(e){return Math.max(0,e.length-1)}function mj(e,t){return t===zp(e)}function eE(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function Jm(e){return Object.keys(e)}function _F(e,t){return[e,t].reduce((n,r)=>(Jm(r).forEach(a=>{const i=n[a],o=r[a],l=JC(i)&&JC(o);n[a]=l?_F(i,o):o}),n),{})}function o2(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function J0e(e,t){const n={start:r,center:a,end:i};function r(){return 0}function a(c){return i(c)/2}function i(c){return t-c}function o(c,u){return i2(e)?n[e](c):e(t,c,u)}return{measure:o}}function ep(){let e=[];function t(a,i,o,l={passive:!0}){let c;if("addEventListener"in a)a.addEventListener(i,o,l),c=()=>a.removeEventListener(i,o,l);else{const u=a;u.addListener(o),c=()=>u.removeListener(o)}return e.push(c),r}function n(){e=e.filter(a=>a())}const r={add:t,clear:n};return r}function ewe(e,t,n,r){const a=ep(),i=1e3/60;let o=null,l=0,c=0;function u(){a.add(e,"visibilitychange",()=>{e.hidden&&g()})}function d(){f(),a.clear()}function m(v){if(!c)return;o||(o=v);const y=v-o;for(o=v,l+=y;l>=i;)n(i),l-=i;const x=l/i;r(x),c&&t.requestAnimationFrame(m)}function p(){c||(c=t.requestAnimationFrame(m))}function f(){t.cancelAnimationFrame(c),o=null,l=0,c=0}function g(){o=null,l=0}return{init:u,destroy:d,start:p,stop:f,update:()=>n(i),render:r}}function twe(e,t){const n=t==="rtl",r=e==="y",a=r?"y":"x",i=r?"x":"y",o=!r&&n?-1:1,l=d(),c=m();function u(g){const{height:h,width:v}=g;return r?h:v}function d(){return r?"top":n?"right":"left"}function m(){return r?"bottom":n?"left":"right"}function p(g){return g*o}return{scroll:a,cross:i,startEdge:l,endEdge:c,measureSize:u,direction:p}}function Zs(e=0,t=0){const n=At(e-t);function r(u){return u<e}function a(u){return u>t}function i(u){return r(u)||a(u)}function o(u){return i(u)?r(u)?e:t:u}function l(u){return n?u-n*Math.ceil((u-t)/n):u}return{length:n,max:t,min:e,constrain:o,reachedAny:i,reachedMax:a,reachedMin:r,removeOffset:l}}
vendor: 16,087 bytes, line 915
915function NF(e,t,n){const{constrain:r}=Zs(0,e),a=e+1;let i=o(t);function o(p){return n?At((a+p)%a):r(p)}function l(){return i}function c(p){return i=o(p),m}function u(p){return d().set(l()+p)}function d(){return NF(e,l(),n)}const m={get:l,set:c,add:u,clone:d};return m}function nwe(e,t,n,r,a,i,o,l,c,u,d,m,p,f,g,h,v,y,x){const{cross:b,direction:w}=e,k=["INPUT","SELECT","TEXTAREA"],j={passive:!1},A=ep(),P=ep(),_=Zs(50,225).constrain(f.measure(20)),N={mouse:300,touch:400},C={mouse:500,touch:600},E=g?43:25;let T=!1,O=0,F=0,D=!1,z=!1,R=!1,B=!1;function I(W){if(!x)return;function we(Ce){(Ky(x)||x(W,Ce))&&te(Ce)}const ve=t;A.add(ve,"dragstart",Ce=>Ce.preventDefault(),j).add(ve,"touchmove",()=>{},j).add(ve,"touchend",()=>{}).add(ve,"touchstart",we).add(ve,"mousedown",we).add(ve,"touchcancel",Q).add(ve,"contextmenu",Q).add(ve,"click",K,!0)}function H(){A.clear(),P.clear()}function q(){const W=B?n:t;P.add(W,"touchmove",de,j).add(W,"touchend",Q).add(W,"mousemove",de,j).add(W,"mouseup",Q)}function $(W){const we=W.nodeName||"";return k.includes(we)}function X(){return(g?C:N)[B?"mouse":"touch"]}function pe(W,we){const ve=m.add(dj(W)*-1),Ce=d.byDistance(W,!g).distance;return g||At(W)<_?Ce:v&&we?Ce*.5:d.byIndex(ve.get(),0).distance}function te(W){const we=o2(W,r);B=we,R=g&&we&&!W.buttons&&T,T=$d(a.get(),o.get())>=2,!(we&&W.button!==0)&&($(W.target)||(D=!0,i.pointerDown(W),u.useFriction(0).useDuration(0),a.set(o),q(),O=i.readPoint(W),F=i.readPoint(W,b),p.emit("pointerDown")))}function de(W){if(!o2(W,r)&&W.touches.length>=2)return Q(W);const ve=i.readPoint(W),Ce=i.readPoint(W,b),Te=$d(ve,O),Ye=$d(Ce,F);if(!z&&!B&&(!W.cancelable||(z=Te>Ye,!z)))return Q(W);const ht=i.pointerMove(W);Te>h&&(R=!0),u.useFriction(.3).useDuration(.75),l.start(),a.add(w(ht)),W.preventDefault()}function Q(W){const ve=d.byDistance(0,!1).index!==m.get(),Ce=i.pointerUp(W)*X(),Te=pe(w(Ce),ve),Ye=X0e(Ce,Te),ht=E-10*Ye,qe=y+Ye/50;z=!1,D=!1,P.clear(),u.useDuration(ht).useFriction(qe),c.distance(Te,!g),B=!1,p.emit("pointerUp")}function K(W){R&&(W.stopPropagation(),W.preventDefault(),R=!1)}function ee(){return D}return{init:I,destroy:H,pointerDown:ee}}function rwe(e,t){let r,a;function i(m){return m.timeStamp}function o(m,p){const g=`client${(p||e.scroll)==="x"?"X":"Y"}`;return(o2(m,t)?m:m.touches[0])[g]}function l(m){return r=m,a=m,o(m)}function c(m){const p=o(m)-o(a),f=i(m)-i(r)>170;return a=m,f&&(r=m),p}function u(m){if(!r||!a)return 0;const p=o(a)-o(r),f=i(m)-i(r),g=i(m)-i(a)>170,h=p/f;return f&&!g&&At(h)>.1?h:0}return{pointerDown:l,pointerMove:c,pointerUp:u,readPoint:o}}function awe(){function e(n){const{offsetTop:r,offsetLeft:a,offsetWidth:i,offsetHeight:o}=n;return{top:r,right:a+i,bottom:r+o,left:a,width:i,height:o}}return{measure:e}}function iwe(e){function t(r){return e*(r/100)}return{measure:t}}function owe(e,t,n,r,a,i,o){const l=[e].concat(r);let c,u,d=[],m=!1;function p(v){return a.measureSize(o.measure(v))}function f(v){if(!i)return;u=p(e),d=r.map(p);function y(x){for(const b of x){if(m)return;const w=b.target===e,k=r.indexOf(b.target),j=w?u:d[k],A=p(w?e:r[k]);if(At(A-j)>=.5){v.reInit(),t.emit("resize");break}}}c=new ResizeObserver(x=>{(Ky(i)||i(v,x))&&y(x)}),n.requestAnimationFrame(()=>{l.forEach(x=>c.observe(x))})}function g(){m=!0,c&&c.disconnect()}return{init:f,destroy:g}}function swe(e,t,n,r,a,i){let o=0,l=0,c=a,u=i,d=e.get(),m=0;function p(j){const A=j/1e3,P=c*A,_=r.get()-e.get(),N=!c;let C=0;return N?(o=0,n.set(r),e.set(r),C=_):(n.set(e),o+=_/P,o*=u,d+=o,e.add(o*A),C=d-m),l=dj(C),m=d,k}function f(){const j=r.get()-t.get();return At(j)<.001}function g(){return c}function h(){return l}function v(){return o}function y(){return b(a)}function x(){return w(i)}function b(j){return c=j,k}function w(j){return u=j,k}const k={direction:h,duration:g,velocity:v,seek:p,settled:f,useBaseFriction:x,useBaseDuration:y,useFriction:w,useDuration:b};return k}function lwe(e,t,n,r,a){const i=a.measure(10),o=a.measure(50),l=Zs(.1,.99);let c=!1;function u(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function d(f){if(!u())return;const g=e.reachedMin(t.get())?"min":"max",h=At(e[g]-t.get()),v=n.get()-t.get(),y=l.constrain(h/o);n.subtract(v*y),!f&&At(v)<i&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function m(f){c=!f}return{shouldConstrain:u,constrain:d,toggleActive:m}}function cwe(e,t,n,r,a){const i=Zs(-t+e,0),o=m(),l=d(),c=p();function u(g,h){return $d(g,h)<1}function d(){const g=o[0],h=va(o),v=o.lastIndexOf(g),y=o.indexOf(h)+1;return Zs(v,y)}function m(){return n.map((g,h)=>{const{min:v,max:y}=i,x=i.constrain(g),b=!h,w=mj(n,h);return b?y:w||u(v,x)?v:u(y,x)?y:x}).map(g=>parseFloat(g.toFixed(3)))}function p(){if(t<=e+a)return[i.max];if(r==="keepSnaps")return o;const{min:g,max:h}=l;return o.slice(g,h)}return{snapsContained:c,scrollContainLimit:l}}function uwe(e,t,n){const r=t[0],a=n?r-e:va(t);return{limit:Zs(a,r)}}function dwe(e,t,n,r){const i=t.min+.1,o=t.max+.1,{reachedMin:l,reachedMax:c}=Zs(i,o);function u(p){return p===1?c(n.get()):p===-1?l(n.get()):!1}function d(p){if(!u(p))return;const f=e*(p*-1);r.forEach(g=>g.add(f))}return{loop:d}}function mwe(e){const{max:t,length:n}=e;function r(i){const o=i-t;return n?o/-n:0}return{get:r}}function pwe(e,t,n,r,a){const{startEdge:i,endEdge:o}=e,{groupSlides:l}=a,c=m().map(t.measure),u=p(),d=f();function m(){return l(r).map(h=>va(h)[o]-h[0][i]).map(At)}function p(){return r.map(h=>n[i]-h[i]).map(h=>-At(h))}function f(){return l(u).map(h=>h[0]).map((h,v)=>h+c[v])}return{snaps:u,snapsAligned:d}}function fwe(e,t,n,r,a,i){const{groupSlides:o}=a,{min:l,max:c}=r,u=d();function d(){const p=o(i),f=!e||t==="keepSnaps";return n.length===1?[i]:f?p:p.slice(l,c).map((g,h,v)=>{const y=!h,x=mj(v,h);if(y){const b=va(v[0])+1;return eE(b)}if(x){const b=zp(i)-va(v)[0]+1;return eE(b,va(v)[0])}return g})}return{slideRegistry:u}}function hwe(e,t,n,r,a){const{reachedAny:i,removeOffset:o,constrain:l}=r;function c(g){return g.concat().sort((h,v)=>At(h)-At(v))[0]}function u(g){const h=e?o(g):l(g),v=t.map((x,b)=>({diff:d(x-h,0),index:b})).sort((x,b)=>At(x.diff)-At(b.diff)),{index:y}=v[0];return{index:y,distance:h}}function d(g,h){const v=[g,g+n,g-n];if(!e)return g;if(!h)return c(v);const y=v.filter(x=>dj(x)===h);return y.length?c(y):va(v)-n}function m(g,h){const v=t[g]-a.get(),y=d(v,h);return{index:g,distance:y}}function p(g,h){const v=a.get()+g,{index:y,distance:x}=u(v),b=!e&&i(v);if(!h||b)return{index:y,distance:g};const w=t[y]-x,k=g+d(w,0);return{index:y,distance:k}}return{byDistance:p,byIndex:m,shortcut:d}}function gwe(e,t,n,r,a,i,o){function l(m){const p=m.distance,f=m.index!==t.get();i.add(p),p&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),f&&(n.set(t.get()),t.set(m.index),o.emit("select"))}function c(m,p){const f=a.byDistance(m,p);l(f)}function u(m,p){const f=t.clone().set(m),g=a.byIndex(f.get(),p);l(g)}return{distance:c,index:u}}function vwe(e,t,n,r,a,i,o,l){const c={passive:!0,capture:!0};let u=0;function d(f){if(!l)return;function g(h){if(new Date().getTime()-u>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const x=n.findIndex(b=>b.includes(h));uj(x)&&(a.useDuration(0),r.index(x,0),o.emit("slideFocus"))}i.add(document,"keydown",m,!1),t.forEach((h,v)=>{i.add(h,"focus",y=>{(Ky(l)||l(f,y))&&g(v)},c)})}function m(f){f.code==="Tab"&&(u=new Date().getTime())}return{init:d}}function pd(e){let t=e;function n(){return t}function r(c){t=o(c)}function a(c){t+=o(c)}function i(c){t-=o(c)}function o(c){return uj(c)?c:c.get()}return{get:n,set:r,add:a,subtract:i}}function CF(e,t){const n=e.scroll==="x"?i:o,r=t.style;let a=!1;function i(m){return`translate3d(${m}px,0px,0px)`}function o(m){return`translate3d(0px,${m}px,0px)`}function l(m){a||(r.transform=n(e.direction(m)))}function c(m){a=!m}function u(){a||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:l,toggleActive:c}}function ywe(e,t,n,r,a,i,o,l,c){const d=Xm(a),m=Xm(a).reverse(),p=y().concat(x());function f(A,P){return A.reduce((_,N)=>_-a[N],P)}function g(A,P){return A.reduce((_,N)=>f(_,P)>0?_.concat([N]):_,[])}function h(A){return i.map((P,_)=>({start:P-r[_]+.5+A,end:P+t-.5+A}))}function v(A,P,_){const N=h(P);return A.map(C=>{const E=_?0:-n,T=_?n:0,O=_?"end":"start",F=N[C][O];return{index:C,loopPoint:F,slideLocation:pd(-1),translate:CF(e,c[C]),target:()=>l.get()>F?E:T}})}function y(){const A=o[0],P=g(m,A);return v(P,n,!1)}function x(){const A=t-o[0]-1,P=g(d,A);return v(P,-n,!0)}function b(){return p.every(({index:A})=>{const P=d.filter(_=>_!==A);return f(P,t)<=.1})}function w(){p.forEach(A=>{const{target:P,translate:_,slideLocation:N}=A,C=P();C!==N.get()&&(_.to(C),N.set(C))})}function k(){p.forEach(A=>A.translate.clear())}return{canLoop:b,clear:k,loop:w,loopPoints:p}}function xwe(e,t,n){let r,a=!1;function i(c){if(!n)return;function u(d){for(const m of d)if(m.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(d=>{a||(Ky(n)||n(c,d))&&u(d)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),a=!0}return{init:i,destroy:o}}function bwe(e,t,n,r){const a={};let i=null,o=null,l,c=!1;function u(){l=new IntersectionObserver(g=>{c||(g.forEach(h=>{const v=t.indexOf(h.target);a[v]=h}),i=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(g=>l.observe(g))}function d(){l&&l.disconnect(),c=!0}function m(g){return Jm(a).reduce((h,v)=>{const y=parseInt(v),{isIntersecting:x}=a[y];return(g&&x||!g&&!x)&&h.push(y),h},[])}function p(g=!0){if(g&&i)return i;if(!g&&o)return o;const h=m(g);return g&&(i=h),g||(o=h),h}return{init:u,destroy:d,get:p}}function wwe(e,t,n,r,a,i){const{measureSize:o,startEdge:l,endEdge:c}=e,u=n[0]&&a,d=g(),m=h(),p=n.map(o),f=v();function g(){if(!u)return 0;const x=n[0];return At(t[l]-x[l])}function h(){if(!u)return 0;const x=i.getComputedStyle(va(r));return parseFloat(x.getPropertyValue(`margin-${c}`))}function v(){return n.map((x,b,w)=>{const k=!b,j=mj(w,b);return k?p[b]+d:j?p[b]+m:w[b+1][l]-x[l]}).map(At)}return{slideSizes:p,slideSizesWithGaps:f,startGap:d,endGap:m}}function kwe(e,t,n,r,a,i,o,l,c){const{startEdge:u,endEdge:d,direction:m}=e,p=uj(n);function f(y,x){return Xm(y).filter(b=>b%x===0).map(b=>y.slice(b,b+x))}function g(y){return y.length?Xm(y).reduce((x,b,w)=>{const k=va(x)||0,j=k===0,A=b===zp(y),P=a[u]-i[k][u],_=a[u]-i[b][d],N=!r&&j?m(o):0,C=!r&&A?m(l):0,E=At(_-C-(P+N));return w&&E>t+c&&x.push(b),A&&x.push(y.length),x},[]).map((x,b,w)=>{const k=Math.max(w[b-1]||0);return y.slice(k,x)}):[]}function h(y){return p?f(y,n):g(y)}return{groupSlides:h}}function Swe(e,t,n,r,a,i,o){const{align:l,axis:c,direction:u,startIndex:d,loop:m,duration:p,dragFree:f,dragThreshold:g,inViewThreshold:h,slidesToScroll:v,skipSnaps:y,containScroll:x,watchResize:b,watchSlides:w,watchDrag:k,watchFocus:j}=i,A=2,P=awe(),_=P.measure(t),N=n.map(P.measure),C=twe(c,u),E=C.measureSize(_),T=iwe(E),O=J0e(l,E),F=!m&&!!x,D=m||!!x,{slideSizes:z,slideSizesWithGaps:R,startGap:B,endGap:I}=wwe(C,_,N,n,D,a),H=kwe(C,E,v,m,_,N,B,I,A),{snaps:q,snapsAligned:$}=pwe(C,O,_,N,H),X=-va(q)+va(R),{snapsContained:pe,scrollContainLimit:te}=cwe(E,X,$,x,A),de=F?pe:$,{limit:Q}=uwe(X,de,m),K=NF(zp(de),d,m),ee=K.clone(),ce=Xm(n),W=({dragHandler:Ie,scrollBody:dt,scrollBounds:gn,options:{loop:It}},Tn)=>{It||gn.constrain(Ie.pointerDown()),dt.seek(Tn)},we=({scrollBody:Ie,translate:dt,location:gn,offsetLocation:It,scrollLooper:Tn,slideLooper:or,dragHandler:at,animation:Nr,eventHandler:Se,scrollBounds:it,options:{loop:et}},sr)=>{const lr=Ie.settled(),dl=!it.shouldConstrain(),Hp=et?lr:lr&&dl;Hp&&!at.pointerDown()&&(Nr.stop(),Se.emit("settle")),Hp||Se.emit("scroll");const oL=gn.get()*sr+ht.get()*(1-sr);It.set(oL),et&&(Tn.loop(Ie.direction()),or.loop()),dt.to(It.get())},ve=ewe(r,a,Ie=>W(ke,Ie),Ie=>we(ke,Ie)),Ce=.68,Te=de[K.get()],Ye=pd(Te),ht=pd(Te),qe=pd(Te),L=pd(Te),V=swe(Ye,qe,ht,L,p,Ce),G=hwe(m,de,X,Q,L),le=gwe(ve,K,ee,V,G,L,o),oe=mwe(Q),ie=ep(),U=bwe(t,n,o,h),{slideRegistry:Z}=fwe(F,x,de,te,H,ce),ue=vwe(e,n,Z,le,V,ie,o,j),ke={ownerDocument:r,ownerWindow:a,eventHandler:o,containerRect:_,slideRects:N,animation:ve,axis:C,dragHandler:nwe(C,e,r,a,L,rwe(C,a),Ye,ve,le,V,G,K,o,T,f,g,y,Ce,k),eventStore:ie,percentOfView:T,index:K,indexPrevious:ee,limit:Q,location:Ye,offsetLocation:qe,previousLocation:ht,options:i,resizeHandler:owe(t,o,a,n,C,b,P),scrollBody:V,scrollBounds:lwe(Q,qe,L,V,T),scrollLooper:dwe(X,Q,qe,[Ye,qe,ht,L]),scrollProgress:oe,scrollSnapList:de.map(oe.get),scrollSnaps:de,scrollTarget:G,scrollTo:le,slideLooper:ywe(C,E,X,z,R,q,de,qe,n),slideFocus:ue,slidesHandler:xwe(t,o,w),slidesInView:U,slideIndexes:ce,slideRegistry:Z,slidesToScroll:H,target:L,translate:CF(C,t)};return ke}function jwe(){let e={},t;function n(u){t=u}function r(u){return e[u]||[]}function a(u){return r(u).forEach(d=>d(t,u)),c}function i(u,d){return e[u]=r(u).concat([d]),c}function o(u,d){return e[u]=r(u).filter(m=>m!==d),c}function l(){e={}}const c={init:n,emit:a,off:o,on:i,clear:l};return c}const Pwe={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Awe(e){function t(i,o){return _F(i,o||{})}function n(i){const o=i.breakpoints||{},l=Jm(o).filter(c=>e.matchMedia(c).matches).map(c=>o[c]).reduce((c,u)=>t(c,u),{});return t(i,l)}function r(i){return i.map(o=>Jm(o.breakpoints||{})).reduce((o,l)=>o.concat(l),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function _we(e){let t=[];function n(i,o){return t=o.filter(({options:l})=>e.optionsAtMedia(l).active!==!1),t.forEach(l=>l.init(i,e)),o.reduce((l,c)=>Object.assign(l,{[c.name]:c}),{})}function r(){t=t.filter(i=>i.destroy())}return{init:n,destroy:r}}function nv(e,t,n){const r=e.ownerDocument,a=r.defaultView,i=Awe(a),o=_we(i),l=ep(),c=jwe(),{mergeOptions:u,optionsAtMedia:d,optionsMediaQueries:m}=i,{on:p,off:f,emit:g}=c,h=C;let v=!1,y,x=u(Pwe,nv.globalOptions),b=u(x),w=[],k,j,A;function P(){const{container:ce,slides:W}=b;j=(i2(ce)?e.querySelector(ce):ce)||e.children[0];const ve=i2(W)?j.querySelectorAll(W):W;A=[].slice.call(ve||j.children)}function _(ce){const W=Swe(e,j,A,r,a,ce,c);if(ce.loop&&!W.slideLooper.canLoop()){const we=Object.assign({},ce,{loop:!1});return _(we)}return W}function N(ce,W){v||(x=u(x,ce),b=d(x),w=W||w,P(),y=_(b),m([x,...w.map(({options:we})=>we)]).forEach(we=>l.add(we,"change",C)),b.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(ee),y.eventHandler.init(ee),y.resizeHandler.init(ee),y.slidesHandler.init(ee),y.options.loop&&y.slideLooper.loop(),j.offsetParent&&A.length&&y.dragHandler.init(ee),k=o.init(ee,w)))}function C(ce,W){const we=H();E(),N(u({startIndex:we},ce),W),c.emit("reInit")}function E(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),o.destroy(),l.clear()}function T(){v||(v=!0,l.clear(),E(),c.emit("destroy"),c.clear())}function O(ce,W,we){!b.active||v||(y.scrollBody.useBaseFriction().useDuration(W===!0?0:b.duration),y.scrollTo.index(ce,we||0))}function F(ce){const W=y.index.add(1).get();O(W,ce,-1)}function D(ce){const W=y.index.add(-1).get();O(W,ce,1)}function z(){return y.index.add(1).get()!==H()}function R(){return y.index.add(-1).get()!==H()}function B(){return y.scrollSnapList}function I(){return y.scrollProgress.get(y.location.get())}function H(){return y.index.get()}function q(){return y.indexPrevious.get()}function $(){return y.slidesInView.get()}function X(){return y.slidesInView.get(!1)}function pe(){return k}function te(){return y}function de(){return e}function Q(){return j}function K(){return A}const ee={canScrollNext:z,canScrollPrev:R,containerNode:Q,internalEngine:te,destroy:T,off:f,on:p,emit:g,plugins:pe,previousScrollSnap:q,reInit:h,rootNode:de,scrollNext:F,scrollPrev:D,scrollProgress:I,scrollSnapList:B,scrollTo:O,selectedScrollSnap:H,slideNo
915des:K,slidesInView:$,slidesNotInView:X};return N(t,n),setTimeout(()=>c.emit("init"),0),ee}nv.globalOptions=void 0;function pj(e={},t=[]){const n=S.useRef(e),r=S.useRef(t),[a,i]=S.useState(),[o,l]=S.useState(),c=S.useCallback(()=>{a&&a.reInit(n.current,r.current)},[a]);return S.useEffect(()=>{cj(n.current,e)||(n.current=e,c())},[e,c]),S.useEffect(()=>{Z0e(r.current,t)||(r.current=t,c())},[t,c]),S.useEffect(()=>{if(Y0e()&&o){nv.globalOptions=pj.globalOptions;const u=nv(o,n.current,r.current);return i(u),()=>u.destroy()}else i(void 0)},[o,i]),[l,a]}pj.globalOptions=void 0;const EF=S.createContext(null);function Gy(){const e=S.useContext(EF);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const fj=S.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:a,children:i,...o},l)=>{const[c,u]=pj({...t,axis:e==="horizontal"?"x":"y"},r),[d,m]=S.useState(!1),[p,f]=S.useState(!1),g=S.useCallback(x=>{x&&(m(x.canScrollPrev()),f(x.canScrollNext()))},[]),h=S.useCallback(()=>{u==null||u.scrollPrev()},[u]),v=S.useCallback(()=>{u==null||u.scrollNext()},[u]),y=S.useCallback(x=>{x.key==="ArrowLeft"?(x.preventDefault(),h()):x.key==="ArrowRight"&&(x.preventDefault(),v())},[h,v]);return S.useEffect(()=>{!u||!n||n(u)},[u,n]),S.useEffect(()=>{if(u)return g(u),u.on("reInit",g),u.on("select",g),()=>{u==null||u.off("select",g)}},[u,g]),s.jsx(EF.Provider,{value:{carouselRef:c,api:u,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:h,scrollNext:v,canScrollPrev:d,canScrollNext:p},children:s.jsx("div",{ref:l,onKeyDownCapture:y,className:ct("relative",a),role:"region","aria-roledescription":"carousel",...o,children:i})})});fj.displayName="Carousel";const hj=S.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:a}=Gy();return s.jsx("div",{ref:r,className:"overflow-hidden",children:s.jsx("div",{ref:n,className:ct("flex",a==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});hj.displayName="CarouselContent";const gj=S.forwardRef(({className:e,...t},n)=>{const{orientation:r}=Gy();return s.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:ct("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});gj.displayName="CarouselItem";const Nwe=S.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},a)=>{const{orientation:i,scrollPrev:o,canScrollPrev:l}=Gy();return s.jsxs(Dn,{ref:a,variant:t,size:n,className:ct("absolute h-8 w-8 rounded-full",i==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:o,...r,children:[s.jsx(Ws,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Nwe.displayName="CarouselPrevious";const Cwe=S.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},a)=>{const{orientation:i,scrollNext:o,canScrollNext:l}=Gy();return s.jsxs(Dn,{ref:a,variant:t,size:n,className:ct("absolute h-8 w-8 rounded-full",i==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:o,...r,children:[s.jsx(_a,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Next slide"})]})});Cwe.displayName="CarouselNext";const Ewe={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function Twe(e,t){const n=e.scrollSnapList();return typeof t=="number"?n.map(()=>t):t(n,e)}function Owe(e,t){const n=e.rootNode();return t&&t(n)||n}function Qy(e={}){let t,n,r,a,i=null,o=0,l=!1,c=!1,u=!1,d=!1;function m(O,F){n=O;const{mergeOptions:D,optionsAtMedia:z}=F,R=D(Ewe,Qy.globalOptions),B=D(R,e);if(t=z(B),n.scrollSnapList().length<=1)return;d=t.jump,r=!1,a=Twe(n,t.delay);const{eventStore:I,ownerDocument:H}=n.internalEngine(),q=!!n.internalEngine().options.watchDrag,$=Owe(n,t.rootNode);I.add(H,"visibilitychange",y),q&&n.on("pointerDown",b),q&&!t.stopOnInteraction&&n.on("pointerUp",w),t.stopOnMouseEnter&&I.add($,"mouseenter",k),t.stopOnMouseEnter&&!t.stopOn
915Interaction&&I.add($,"mouseleave",j),t.stopOnFocusIn&&n.on("slideFocusStart",v),t.stopOnFocusIn&&!t.stopOnInteraction&&I.add(n.containerNode(),"focusout",h),t.playOnInit&&h()}function p(){n.off("pointerDown",b).off("pointerUp",w).off("slideFocusStart",v),v(),r=!0,l=!1}function f(){const{ownerWindow:O}=n.internalEngine();O.clearTimeout(o),o=O.setTimeout(C,a[n.selectedScrollSnap()]),i=new Date().getTime(),n.emit("autoplay:timerset")}function g(){const{ownerWindow:O}=n.internalEngine();O.clearTimeout(o),o=0,i=null,n.emit("autoplay:timerstopped")}function h(){if(!r){if(x()){u=!0;return}l||n.emit("autoplay:play"),f(),l=!0}}function v(){r||(l&&n.emit("autoplay:stop"),g(),l=!1)}function y(){if(x())return u=l,v();u&&h()}function x(){const{ownerDocument:O}=n.internalEngine();return O.visibilityState==="hidden"}function b(){c||v()}function w(){c||h()}function k(){c=!0,v()}function j(){c=!1,h()}function A(O){typeof O<"u"&&(d=O),h()}function P(){l&&v()}function _(){l&&h()}function N(){return l}function C(){const{index:O}=n.internalEngine(),F=O.clone().add(1).get(),D=n.scrollSnapList().length-1,z=t.stopOnLastSnap&&F===D;if(n.canScrollNext()?n.scrollNext(d):n.scrollTo(0,d),n.emit("autoplay:select"),z)return v();h()}function E(){if(!i)return null;const O=a[n.selectedScrollSnap()],F=new Date().getTime()-i;return O-F}return{name:"autoplay",options:e,init:m,destroy:p,play:A,stop:P,reset:_,isPlaying:N,timeUntilNext:E}}Qy.globalOptions=void 0;const TF=S.memo(()=>{var u;const{language:e}=be(),{testimonials:t,loading:n,error:r}=AF(),[a,i]=M.useState(),[o,l]=M.useState(0),c=((u=tv[e])==null?void 0:u.testimonials)||tv.en.testimonials;return M.useEffect(()=>{a&&(l(a.selectedScrollSnap()),a.on("select",()=>l(a.selectedScrollSnap())))},[a]),s.jsx("section",{className:"py-24",children:s.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[s.jsxs("div",{className:"text-center mb-16",children:[s.jsx("h2",{className:"text-4xl lg:text-5xl font-semibold tracking-tight text-white mb-4",children:c.title}),s.jsx("p",{className:"text-lg text-white/60 max-w-2xl mx-auto leading-relaxed",children:c.subtitle})]}),n?s.jsxs("div",{className:"text-center py-16",children:[s.jsx(Fl,{className:"w-12 h-12 text-white/20 mx-auto mb-3 animate-pulse"}),s.jsx("p",{className:"text-white/50",children:e==="en"?"Loading testimonials...":"Carregando depoimentos..."})]}):r?s.jsxs("div",{className:"text-center py-16",children:[s.jsx(Fl,{className:"w-12 h-12 text-white/20 mx-auto mb-3"}),s.jsx("p",{className:"text-white/50",children:e==="en"?"Error loading testimonials.":"Erro ao carregar depoimentos."})]}):t.length===0?s.jsxs("div",{className:"text-center py-16",children:[s.jsx(Fl,{className:"w-12 h-12 text-white/20 mx-auto mb-3"}),s.jsx("p",{className:"text-white/50",children:e==="en"?"No testimonials available at the moment.":"Nenhum depoimento disponÃvel no momento."})]}):s.jsx("div",{className:"max-w-7xl mx-auto relative px-4",children:s.jsxs(fj,{setApi:i,className:"w-full",opts:{loop:t.length>1,align:"center"},plugins:[Qy({delay:7e3})],children:[s.jsx(hj,{className:"-ml-2 md:-ml-3",children:t.map(d=>s.jsx(gj,{className:"pl-2 md:pl-3 basis-full sm:basis-1/2 lg:basis-1/3",children:s.jsx("div",{className:"group h-full",children:s.jsxs("div",{className:"bg-white/5 backdrop-blur-sm border border-white/10 rounded-xl p-4 md:p-4 h-full transition-all duration-500 hover:bg-white/10 hover:border-white/20 hover:shadow-xl hover:shadow-[#F4845F]/5 hover:-translate-y-1 relative flex flex-col min-h-[280px]",children:[s.jsx("div",{className:"flex items-center justify-between mb-3",children:s.jsx(Fl,{className:"w-4 h-4 md:w-5 md:h-5 text-[#F4845F]/60"})}),s.jsxs("blockquote",{className:"text-sm leading-relaxed text-white/80 mb-4 font-light flex-grow",children:['"',d.quote,'"']}),s.jsxs("div",{className:"mt-auto",children:[s.jsx("div",{className:"w-6 h-px bg-gradient-to-r from-[#F4845F]/60 to-transparent mb-2"}),s.jsxs("cite",{className:"not-italic",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[d.linkedin_url&&s.jsx("a",{href:d.linkedin_url,target:"_blank",rel:"noopener noreferrer",className:"text-white/40 hover:text-[#F4845F] transition-colors duration-300",title:"View LinkedIn Profile",children:s.jsx(Tk,{className:"w-3 h-3"})}),s.jsx("span",{className:"font-medium text-white text-sm",children:d.author_name})]}),d.author_title&&s.jsxs("div",{className:`text-xs text-white/50 leading-tight ${d.linkedin_url?"ml-5":""}`,children:[d.author_title,d.company_name&&s.jsxs("span",{className:"text-[#F4845F]/70",children:[" ⢠",d.company_name]})]})]})]}),s.jsx("div",{className:"absolute -top-2 -right-2 w-3 h-3 bg-gradient-to-br from-[#F4845F]/10 to-[#F4845F]/5 rounded-full opacity-0 group-hover:opacity-100 transition-all duration-500"})]})})},d.id))}),s.jsx("div",{className:"flex justify-center mt-8 gap-2",children:t.map((d,m)=>s.jsx("button",{onClick:()=>a==null?void 0:a.scrollTo(m),className:`w-2 h-2 rounded-full transition-all duration-200 ${m===o?"bg-[#F4845F] w-6":"bg-white/20 hover:bg-white/40"}`},m))})]})})]})})});TF.displayName="TestimonialsSection";const OF=S.memo(()=>{const[e,t]=S.useState(null);return s.jsxs(s.Fragment,{children:[s.jsx(ns,{page:"successStories"}),s.jsx(xF,{children:s.jsx(wF,{onSegmentChange:t,selectedSegment:e})}),s.jsx(PF,{selectedSegment:e}),s.jsx(TF,{}),s.jsx(ku,{})]})});OF.displayName="SuccessStories";function Iwe(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Mwe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$we=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Fwe={};function tE(e,t){return(Fwe.jsx?$we:Mwe).test(e)}const Rwe=/[ \t\n\f\r]/g;function Dwe(e){return typeof e=="object"?e.type==="text"?nE(e.value):!1:nE(e)}function nE(e){return e.replace(Rwe,"")===""}class Bp{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Bp.prototype.normal={};Bp.prototype.property={};Bp.prototype.space=void 0;function IF(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Bp(n,r,t)}function s2(e){return e.toLowerCase()}class ir{constructor(t,n){this.attribute=n,this.property=t}}ir.prototype.attribute="";ir.prototype.booleanish=!1;ir.prototype.boolean=!1;ir.prototype.commaOrSpaceSeparated=!1;ir.prototype.commaSeparated=!1;ir.prototype.defined=!1;ir.prototype.mustUseProperty=!1;ir.prototype.number=!1;ir.prototype.overloadedBoolean=!1;ir.prototype.property="";ir.prototype.spaceSeparated=!1;ir.prototype.space=void 0;let Lwe=0;const Oe=ul(),qt=ul(),l2=ul(),re=ul(),st=ul(),Rs=ul(),ur=ul();function ul(){return 2**++Lwe}const c2=Object.freeze(Object.defineProperty({__proto__:null,boolean:Oe,booleanish:qt,commaOrSpaceSeparated:ur,commaSeparated:Rs,number:re,overloadedBoolean:l2,spaceSeparated:st},Symbol.toStringTag,{value:"Module"})),Nb=Object.keys(c2);class vj extends ir{constructor(t,n,r,a){let i=-1;
vendor: 4,330 bytes, line 915
915if(super(t,n),rE(this,"space",a),typeof r=="number")for(;++i<Nb.length;){const o=Nb[i];rE(this,Nb[i],(r&c2[o])===c2[o])}}}vj.prototype.defined=!0;function rE(e,t,n){n&&(e[t]=n)}function Su(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new vj(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[s2(r)]=r,n[s2(i.attribute)]=r}return new Bp(t,n,e.space)}const MF=Su({properties:{ariaActiveDescendant:null,ariaAtomic:qt,ariaAutoComplete:null,ariaBusy:qt,ariaChecked:qt,ariaColCount:re,ariaColIndex:re,ariaColSpan:re,ariaControls:st,ariaCurrent:null,ariaDescribedBy:st,ariaDetails:null,ariaDisabled:qt,ariaDropEffect:st,ariaErrorMessage:null,ariaExpanded:qt,ariaFlowTo:st,ariaGrabbed:qt,ariaHasPopup:null,ariaHidden:qt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:st,ariaLevel:re,ariaLive:null,ariaModal:qt,ariaMultiLine:qt,ariaMultiSelectable:qt,ariaOrientation:null,ariaOwns:st,ariaPlaceholder:null,ariaPosInSet:re,ariaPressed:qt,ariaReadOnly:qt,ariaRelevant:null,ariaRequired:qt,ariaRoleDescription:st,ariaRowCount:re,ariaRowIndex:re,ariaRowSpan:re,ariaSelected:qt,ariaSetSize:re,ariaSort:null,ariaValueMax:re,ariaValueMin:re,ariaValueNow:re,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function $F(e,t){return t in e?e[t]:t}function FF(e,t){return $F(e,t.toLowerCase())}const zwe=Su({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Rs,acceptCharset:st,accessKey:st,action:null,allow:null,allowFullScreen:Oe,allowPaymentRequest:Oe,allowUserMedia:Oe,alpha:Oe,alt:null,as:null,async:Oe,autoCapitalize:null,autoComplete:st,autoFocus:Oe,autoPlay:Oe,blocking:st,capture:null,charSet:null,checked:Oe,cite:null,className:st,closedBy:null,colorSpace:null,cols:re,colSpan:re,command:null,commandFor:null,content:null,contentEditable:qt,controls:Oe,controlsList:st,coords:re|Rs,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Oe,defer:Oe,dir:null,dirName:null,disabled:Oe,download:l2,draggable:qt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Oe,formTarget:null,headers:st,height:re,hidden:l2,high:re,href:null,hrefLang:null,htmlFor:st,httpEquiv:st,id:null,imageSizes:null,imageSrcSet:null,inert:Oe,inputMode:null,integrity:null,is:null,isMap:Oe,itemId:null,itemProp:st,itemRef:st,itemScope:Oe,itemType:st,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Oe,low:re,manifest:null,max:null,maxLength:re,media:null,method:null,min:null,minLength:re,multiple:Oe,muted:Oe,name:null,nonce:null,noModule:Oe,noValidate:Oe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Oe,optimum:re,pattern:null,ping:st,placeholder:null,playsInl
915ine:Oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Oe,referrerPolicy:null,rel:st,required:Oe,reversed:Oe,rows:re,rowSpan:re,sandbox:st,scope:null,scoped:Oe,seamless:Oe,selected:Oe,shadowRootClonable:Oe,shadowRootCustomElementRegistry:Oe,shadowRootDelegatesFocus:Oe,shadowRootMode:null,shadowRootSerializable:Oe,shape:null,size:re,sizes:null,slot:null,span:re,spellCheck:qt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:re,step:null,style:null,tabIndex:re,target:null,title:null,translate:null,type:null,typeMustMatch:Oe,useMap:null,value:qt,width:re,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:st,axis:null,background:null,bgColor:null,border:re,borderColor:null,bottomMargin:re,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Oe,declare:Oe,event:null,face:null,frame:null,frameBorder:null,hSpace:re,leftMargin:re,link:null,longDesc:null,lowSrc:null,marginHeight:re,marginWidth:re,noResize:Oe,noHref:Oe,noShade:Oe,noWrap:Oe,object:null,profile:null,prompt:null,rev:null,rightMargin:re,rules:null,scheme:null,scrolling:qt,standby:null,summary:null,text:null,topMargin:re,valueType:null,version:null,vAlign:null,vLink:null,vSpace:re,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Oe,disablePictureInPicture:Oe,disableRemotePlayback:Oe,exportParts:Rs,part:st,prefix:null,property:null,results:re,security:null,unselectable:null},space:"html",transform:FF}),Bwe=Su({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
915-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ur,accentHeight:re,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:re,amplitude:re,arabicForm:null,ascent:re,attributeName:null,attributeType:null,azimuth:re,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:re,by:null,calcMode:null,capHeight:re,className:st,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:re,diffuseConstant:re,direction:null,display:null,dur:null,divisor:re,dominantBaseline:null,download:Oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:re,enableBackground:null,end:null,event:null,exponent:re,externalResourcesRequired:null,fill:null,fillOpacity:re,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Rs,g2:Rs,glyphName:Rs,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:re,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:re,horizOriginX:re,horizOriginY:re,id:null,ideographic:re,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:re,k:re,k1:re,k2:re,k3:re,k4:re,kernelMatrix:ur,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:re,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:re,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 4,789 bytes, lines 915-916
915Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:re,overlineThickness:re,paintOrder:null,panose1:null,path:null,pathLength:re,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:st,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:re,pointsAtY:re,pointsAtZ:re,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ur,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ur,rev:ur,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ur,requiredFeatures:ur,requiredFonts:ur,requiredFormats:ur,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:re,specularExponent:re,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:re,strikethroughThickness:re,string:null,stroke:null,strokeDashArray:ur,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:re,strokeOpacity:re,strokeWidth:null,style:null,surfaceScale:re,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ur,tabIndex:re,tableValues:null,target:null,targetX:re,targetY:re,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ur,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:re,underlineThickness:re,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:re,values:null,vAlphabetic:re,vMathematical:re,vectorEffect:null,vHanging:re,vIdeographic:re,version:null,vertAdvY:re,vertOriginX:re,vertOriginY:re,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:re,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:$F}),RF=Su({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),DF=Su({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:FF}),LF=Su({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),qwe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Uwe=/[A-Z]/g,aE=/-[a-z]/g,Wwe=/^data[-\w.:]+$/i;function Vwe(e,t){const n=s2(t);let r=t,a=ir;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Wwe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(aE,Kwe);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!aE.test(i)){let o=i.replace(Uwe,Hwe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=vj}return new a(r,t)}function Hwe(e){return"-"+e.toLowerCase()}function Kwe(e){return e.charAt(1).toUpperCase()}const Gwe=IF([MF,zwe,RF,DF,LF],"html"),yj=IF([MF,Bwe,RF,DF,LF],"svg");function Qwe(e){return e.join(" ").trim()}var xj={},iE=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ywe=/\n/g,Zwe=/^\s*/,Xwe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Jwe=/^:\s*/,e1e=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,t1e=/^[;\s]*/,n1e=/^\s+|\s+$/g,r1e=` 916`,oE="/",sE="*",gs="",a1e="comment",i1e="declaration";function o1e(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(g){var h=g.match(Ywe);h&&(n+=h.length);var v=g.lastIndexOf(r1e);r=~v?g.length-v:r+g.length}function i(){var g={line:n,column:r};return function(h){return h.position=new o(g),u(),h}}function o(g){this.start=g,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function l(g){var h=new Error(t.source+":"+n+":"+r+": "+g);if(h.reason=g,h.filename=t.source,h.line=n,h.column=r,h.source=e,!t.silent)throw h}function c(g){var h=g.exec(e);if(h){var v=h[0];return a(v),e=e.slice(v.length),h}}function u(){c(Zwe)}function d(g){var h;for(g=g||[];h=m();)h!==!1&&g.push(h);return g}function m(){var g=i();if(!(oE!=e.charAt(0)||sE!=e.charAt(1))){for(var h=2;gs!=e.charAt(h)&&(sE!=e.charAt(h)||oE!=e.charAt(h+1));)++h;
vendor: 2,303 bytes, line 916
916if(h+=2,gs===e.charAt(h-1))return l("End of comment missing");var v=e.slice(2,h-2);return r+=2,a(v),e=e.slice(h),r+=2,g({type:a1e,comment:v})}}function p(){var g=i(),h=c(Xwe);if(h){if(m(),!c(Jwe))return l("property missing ':'");var v=c(e1e),y=g({type:i1e,property:lE(h[0].replace(iE,gs)),value:v?lE(v[0].replace(iE,gs)):gs});return c(t1e),y}}function f(){var g=[];d(g);for(var h;h=p();)h!==!1&&(g.push(h),d(g));return g}return u(),f()}function lE(e){return e?e.replace(n1e,gs):gs}var s1e=o1e,l1e=yo&&yo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xj,"__esModule",{value:!0});xj.default=u1e;const c1e=l1e(s1e);function u1e(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,c1e.default)(e),a=typeof t=="function";return r.forEach(i=>{if(i.type!=="declaration")return;const{property:o,value:l}=i;a?t(o,l,i):l&&(n=n||{},n[o]=l)}),n}var Yy={};Object.defineProperty(Yy,"__esModule",{value:!0});Yy.camelCase=void 0;var d1e=/^--[a-zA-Z0-9_-]+$/,m1e=/-([a-z])/g,p1e=/^[^-]+$/,f1e=/^-(webkit|moz|ms|o|khtml)-/,h1e=/^-(ms)-/,g1e=function(e){return!e||p1e.test(e)||d1e.test(e)},v1e=function(e,t){return t.toUpperCase()},cE=function(e,t){return"".concat(t,"-")},y1e=function(e,t){return t===void 0&&(t={}),g1e(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(h1e,cE):e=e.replace(f1e,cE),e.replace(m1e,v1e))};Yy.camelCase=y1e;var x1e=yo&&yo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},b1e=x1e(xj),w1e=Yy;function u2(e,t){var n={};return!e||typeof e!="string"||(0,b1e.default)(e,function(r,a){r&&a&&(n[(0,w1e.camelCase)(r,t)]=a)}),n}u2.default=u2;var k1e=u2;const S1e=Qe(k1e),zF=BF("end"),bj=BF("start");function BF(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function j1e(e){const t=bj(e),n=zF(e);if(t&&n)return{start:t,end:n}}function Fd(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?uE(e.position):"start"in e||"end"in e?uE(e):"line"in e||"column"in e?d2(e):""}function d2(e){return dE(e&&e.line)+":"+dE(e&&e.column)}function uE(e){return d2(e&&e.start)+"-"+d2(e&&e.end)}function dE(e){return e&&typeof e=="number"?e:1}
vendor: 1,927 bytes, line 916
916class En extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?i.ruleId=r:(i.source=r.slice(0,c),i.ruleId=r.slice(c+1))}if(!i.place&&i.ancestors&&i.ancestors){const c=i.ancestors[i.ancestors.length-1];c&&(i.place=c.position)}const l=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=l?l.line:void 0,this.name=Fd(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}En.prototype.file="";En.prototype.name="";En.prototype.reason="";En.prototype.message="";En.prototype.stack="";En.prototype.column=void 0;En.prototype.line=void 0;En.prototype.ancestors=void 0;En.prototype.cause=void 0;En.prototype.fatal=void 0;En.prototype.place=void 0;En.prototype.ruleId=void 0;En.prototype.source=void 0;const wj={}.hasOwnProperty,P1e=new Map,A1e=/[A-Z]/g,_1e=new Set(["table","tbody","thead","tfoot","tr"]),N1e=new Set(["td","th"]),qF="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function C1e(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=R1e(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,059 bytes, line 916
916if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=F1e(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?yj:Gwe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=UF(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function UF(e,t,n){if(t.type==="element")return E1e(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return T1e(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return I1e(e,t,n);if(t.type==="mdxjsEsm")return O1e(e,t);if(t.type==="root")return M1e(e,t,n);if(t.type==="text")return $1e(e,t)}function E1e(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=yj,e.schema=a),e.ancestors.push(t);const i=VF(e,t.tagName,!1),o=D1e(e,t);let l=Sj(e,t);return _1e.has(t.tagName)&&(l=l.filter(function(c){return typeof c=="string"?!Dwe(c):!0})),WF(e,o,i,t),kj(o,l),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function T1e(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}tp(e,t.position)}function O1e(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);tp(e,t.position)}function I1e(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=yj,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:VF(e,t.name,!0),o=L1e(e,t),l=Sj(e,t);return WF(e,o,i,t),kj(o,l),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function M1e(e,t,n){const r={};return kj(r,Sj(e,t)),e.create(t,e.Fragment,r,n)}function $1e(e,t){return t.value}function WF(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function kj(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function F1e(e,t,n){return r;function r(a,i,o,l){const u=Array.isArray(o.children)?n:t;return l?u(i,o,l):u(i,o)}}function R1e(e,t){return n;function n(r,a,i,o){const l=Array.isArray(i.children),c=bj(r);return t(a,i,o,l,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function D1e(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&wj.call(t.properties,a)){const i=z1e(e,a,t.properties[a]);if(i){const[o,l]=i;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&N1e.has(t.tagName)?r=l:n[o]=l}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function L1e(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const l=o.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else tp(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,i=e.evaluater.evaluateExpression(l.expression)}else tp(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function Sj(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:P1e;for(;++r<t.children.length;){const i=t.children[r];let o;if(e.passKeys){const c=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(c){const u=a.get(c)||0;o=c+"-"+u,a.set(c,u+1)}}const l=UF(e,i,o);l!==void 0&&n.push(l)}return n}function z1e(e,t,n){const r=Vwe(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Iwe(n):Qwe(n)),r.property==="style"){let a=typeof n=="object"?n:B1e(e,String(n));return e.stylePropertyNameCase==="css"&&(a=q1e(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?qwe[r.property]||r.property:r.attribute,n]}}function B1e(e,t){try{return S1e(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new En("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=qF+"#cannot-parse-style-attribute",a}}function VF(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,o;for(;++i<a.length;){const l=tE(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};o=o?{type:"MemberExpression",object:o,property:l,computed:!!(i&&l.type==="Literal"),optional:!1}:l}r=o}else r=tE(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return wj.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);tp(e)}function tp(e,t){const n=new En("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=qF+"#cannot-handle-mdx-estrees-without-createevaluater",n}function q1e(e){const t={};let n;for(n in e)wj.call(e,n)&&(t[U1e(n)]=e[n]);return t}function U1e(e){let t=e.replace(A1e,W1e);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function W1e(e){return"-"+e.toLowerCase()}const Cb={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},V1e={};function jj(e,t){const n=V1e,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return HF(e,r,a)}function HF(e,t,n){if(H1e(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return mE(e.children,t,n)}
vendor: 11,207 bytes, line 916
916return Array.isArray(e)?mE(e,t,n):""}function mE(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=HF(e[a],t,n);return r.join("")}function H1e(e){return!!(e&&typeof e=="object")}const pE=document.createElement("i");function Pj(e){const t="&"+e+";";pE.innerHTML=t;const n=pE.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function kr(e,t,n,r){const a=e.length;let i=0,o;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function Rr(e,t){return e.length>0?(kr(e,e.length,0,t),e):t}const fE={}.hasOwnProperty;function KF(e){const t={};let n=-1;for(;++n<e.length;)K1e(t,e[n]);return t}function K1e(e,t){let n;for(n in t){const a=(fE.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){fE.call(a,o)||(a[o]=[]);const l=i[o];G1e(a[o],Array.isArray(l)?l:l?[l]:[])}}}function G1e(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);kr(e,0,0,r)}function GF(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function ya(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ln=rs(/[A-Za-z]/),An=rs(/[\dA-Za-z]/),Q1e=rs(/[#-'*+\--9=?A-Z^-~]/);function rv(e){return e!==null&&(e<32||e===127)}const m2=rs(/\d/),Y1e=rs(/[\dA-Fa-f]/),Z1e=rs(/[!-/:-@[-`{-~]/);function Pe(e){return e!==null&&e<-2}function ut(e){return e!==null&&(e<0||e===32)}function Ue(e){return e===-2||e===-1||e===32}const Zy=rs(new RegExp("\\p{P}|\\p{S}","u")),Xs=rs(/\s/);function rs(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ju(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(i===37&&An(e.charCodeAt(n+1))&&An(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const l=e.charCodeAt(n+1);i<56320&&l>56319&&l<57344?(o=String.fromCharCode(i,l),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function Ke(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(c){return Ue(c)?(e.enter(n),l(c)):t(c)}function l(c){return Ue(c)&&i++<a?(e.consume(c),l):(e.exit(n),t(c))}}const X1e={tokenize:J1e};function J1e(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Ke(e,t,"linePrefix")}function a(l){return e.enter("paragraph"),i(l)}function i(l){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,o(l)}function o(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return Pe(l)?(e.consume(l),e.exit("chunkText"),i):(e.consume(l),o)}}const e2e={tokenize:t2e},hE={tokenize:n2e};function t2e(e){const t=this,n=[];let r=0,a,i,o;return l;function l(b){if(r<n.length){const w=n[r];return t.containerState=w[1],e.attempt(w[0].continuation,c,u)(b)}return u(b)}function c(b){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&x();const w=t.events.length;let k=w,j;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){j=t.events[k][1].end;break}y(r);let A=w;for(;A<t.events.length;)t.events[A][1].end={...j},A++;return kr(t.events,k+1,0,t.events.slice(w)),t.events.length=A,u(b)}return l(b)}function u(b){if(r===n.length){if(!a)return p(b);if(a.currentConstruct&&a.currentConstruct.concrete)return g(b);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(hE,d,m)(b)}function d(b){return a&&x(),y(r),p(b)}function m(b){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,g(b)}function p(b){return t.containerState={},e.attempt(hE,f,g)(b)}function f(b){return r++,n.push([t.currentConstruct,t.containerState]),p(b)}function g(b){if(b===null){a&&x(),y(0),e.consume(b);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),h(b)}function h(b){if(b===null){v(e.exit("chunkFlow"),!0),y(0),e.consume(b);return}return Pe(b)?(e.consume(b),v(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(b),h)}function v(b,w){const k=t.sliceStream(b);if(w&&k.push(null),b.previous=i,i&&(i.next=b),i=b,a.defineSkip(b.start),a.write(k),t.parser.lazy[b.start.line]){let j=a.events.length;for(;j--;)if(a.events[j][1].start.offset<o&&(!a.events[j][1].end||a.events[j][1].end.offset>o))return;const A=t.events.length;let P=A,_,N;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(_){N=t.events[P][1].end;break}_=!0}for(y(r),j=A;j<t.events.length;)t.events[j][1].end={...N},j++;kr(t.events,P+1,0,t.events.slice(A)),t.events.length=j}}function y(b){let w=n.length;for(;w-- >b;){const k=n[w];t.containerState=k[1],k[0].exit.call(t,e)}n.length=b}function x(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function n2e(e,t,n){return Ke(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Wc(e){if(e===null||ut(e)||Xs(e))return 1;if(Zy(e))return 2}function Xy(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const p2={name:"attention",resolveAll:r2e,tokenize:a2e};function r2e(e,t){let n=-1,r,a,i,o,l,c,u,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const m={...e[r][1].end},p={...e[n][1].start};gE(m,-c),gE(p,c),o={type:c>1?"strongSequence":"emphasisSequence",start:m,end:{...e[r][1].end}},l={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},i={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:c>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[r][1].end={...o.start},e[n][1].start={...l.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Rr(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Rr(u,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=Rr(u,Xy(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Rr(u,[["exit",i,t],["enter",l,t],["exit",l,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=Rr(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,kr(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function a2e(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Wc(r);let i;return o;function o(c){return i=c,e.enter("attentionSequence"),l(c)}function l(c){if(c===i)return e.consume(c),l;const u=e.exit("attentionSequence"),d=Wc(c),m=!d||d===2&&a||n.includes(c),p=!a||a===2&&d||n.includes(r);return u._open=!!(i===42?m:m&&(a||!p)),u._close=!!(i===42?p:p&&(d||!m)),t(c)}}function gE(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const i2e={name:"autolink",tokenize:o2e};function o2e(e,t,n){let r=0;return a;function a(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(f){return Ln(f)?(e.consume(f),o):f===64?n(f):u(f)}function o(f){return f===43||f===45||f===46||An(f)?(r=1,l(f)):u(f)}function l(f){return f===58?(e.consume(f),r=0,c):(f===43||f===45||f===46||An(f))&&r++<32?(e.consume(f),l):(r=0,u(f))}function c(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||rv(f)?n(f):(e.consume(f),c)}function u(f){return f===64?(e.consume(f),d):Q1e(f)?(e.consume(f),u):n(f)}function d(f){return An(f)?m(f):n(f)}function m(f){return f===46?(e.consume(f),r=0,d):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):p(f)}function p(f){if((f===45||An(f))&&r++<63){const g=f===45?p:m;return e.consume(f),g}return n(f)}}const qp={partial:!0,tokenize:s2e};function s2e(e,t,n){return r;function r(i){return Ue(i)?Ke(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||Pe(i)?t(i):n(i)}}const QF={continuation:{tokenize:c2e},exit:u2e,name:"blockQuote",tokenize:l2e};function l2e(e,t,n){const r=this;return a;function a(o){if(o===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return n(o)}function i(o){return Ue(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function c2e(e,t,n){const r=this;return a;function a(o){return Ue(o)?Ke(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return e.attempt(QF,t,n)(o)}}function u2e(e){e.exit("blockQuote")}const YF={name:"characterEscape",tokenize:d2e};function d2e(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return Z1e(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const ZF={name:"characterReference",tokenize:m2e};function m2e(e,t,n){const r=this;let a=0,i,o;return l;function l(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),c}function c(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,o=An,d(m))}function u(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Y1e,d):(e.enter("characterReferenceValue"),i=7,o=m2,d(m))}function d(m){if(m===59&&a){const p=e.exit("characterReferenceValue");return o===An&&!Pj(r.sliceSerialize(p))?n(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(m)&&a++<i?(e.consume(m),d):n(m)}}const vE={partial:!0,tokenize:f2e},yE={concrete:!0,name:"codeFenced",tokenize:p2e};function p2e(e,t,n){const r=this,a={partial:!0,tokenize:k};let i=0,o=0,l;return c;function c(j){return u(j)}function u(j){const A=r.events[r.events.length-1];return i=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,l=j,e.enter("co
916deFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(j)}function d(j){return j===l?(o++,e.consume(j),d):o<3?n(j):(e.exit("codeFencedFenceSequence"),Ue(j)?Ke(e,m,"whitespace")(j):m(j))}function m(j){return j===null||Pe(j)?(e.exit("codeFencedFence"),r.interrupt?t(j):e.check(vE,h,w)(j)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(j))}function p(j){return j===null||Pe(j)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(j)):Ue(j)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ke(e,f,"whitespace")(j)):j===96&&j===l?n(j):(e.consume(j),p)}function f(j){return j===null||Pe(j)?m(j):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(j))}function g(j){return j===null||Pe(j)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(j)):j===96&&j===l?n(j):(e.consume(j),g)}function h(j){return e.attempt(a,w,v)(j)}function v(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),y}function y(j){return i>0&&Ue(j)?Ke(e,x,"linePrefix",i+1)(j):x(j)}function x(j){return j===null||Pe(j)?e.check(vE,h,w)(j):(e.enter("codeFlowValue"),b(j))}function b(j){return j===null||Pe(j)?(e.exit("codeFlowValue"),x(j)):(e.consume(j),b)}function w(j){return e.exit("codeFenced"),t(j)}function k(j,A,P){let _=0;return N;function N(F){return j.enter("lineEnding"),j.consume(F),j.exit("lineEnding"),C}function C(F){return j.enter("codeFencedFence"),Ue(F)?Ke(j,E,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):E(F)}function E(F){return F===l?(j.enter("codeFencedFenceSequence"),T(F)):P(F)}function T(F){return F===l?(_++,j.consume(F),T):_>=o?(j.exit("codeFencedFenceSequence"),Ue(F)?Ke(j,O,"whitespace")(F):O(F)):P(F)}function O(F){return F===null||Pe(F)?(j.exit("codeFencedFence"),A(F)):P(F)}}}function f2e(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Eb={name:"codeIndented",tokenize:g2e},h2e={partial:!0,tokenize:v2e};function g2e(e,t,n){const r=this;return a;function a(u){return e.enter("codeIndented"),Ke(e,i,"linePrefix",5)(u)}function i(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?c(u):Pe(u)?e.attempt(h2e,o,c)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||Pe(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),l)}function c(u){return e.exit("codeIndented"),t(u)}}function v2e(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):Pe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):Ke(e,i,"linePrefix",5)(o)}function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):Pe(o)?a(o):n(o)}}const y2e={name:"codeText",previous:b2e,resolve:x2e,tokenize:w2e};function x2e(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function b2e(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function w2e(e,t,n){let r=0,a,i;return o;function o(m){return e.enter("codeText"),e.enter("codeTextSequence"),l(m)}function l(m){return m===96?(e.consume(m),r++,l):(e.exit("codeTextSequence"),c(m))}function c(m){return m===null?n(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),c):m===96?(i=e.enter("codeTextSequence"),a=0,d(m)):Pe(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(m))}function u(m){return m===null||m===32||m===96||Pe(m)?(e.exit("codeTextData"),c(m)):(e.consume(m),u)}function d(m){return m===96?(e.consume(m),a++,d):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(m)):(i.type="codeTextData",u(m))}}class k2e{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&Zu(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Zu(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Zu(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Zu(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Zu(this.left,n.reverse())}}}function Zu(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function XF(e){const t={};let n=-1,r,a,i,o,l,c,u;const d=new k2e(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,i=0,i<c.length&&c[i][1].type==="lineEndingBlank"&&(i+=2),i<c.length&&c[i][1].type==="content"))for(;++i<c.length&&c[i][1].type!=="content";)c[i][1].type==="chunkText"&&(c[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,S2e(d,n)),n=t[n],u=!0);else if(r[1]._container){for(i=n,a=void 0;i--;)if(o=d.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(a&&(d.get(a)[1].type="lineEndingBlank"),o[1].type="lineEnding",a=i);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;a&&(r[1].end={...d.get(a)[1].start},l=d.slice(a,n),l.unshift(r),d.splice(a,n-a+1,l))}}return kr(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function S2e(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const l=o.events,c=[],u={};let d,m,p=-1,f=n,g=0,h=0;const v=[h];for(;f;){for(;e.get(++a)[1]!==f;);i.push(a),f._tokenizer||(d=r.sliceStream(f),f.next||d.push(null),m&&o.defineSki
vendor: 18,631 bytes, line 916
916p(f.start),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),m=f,f=f.next}for(f=n;++p<l.length;)l[p][0]==="exit"&&l[p-1][0]==="enter"&&l[p][1].type===l[p-1][1].type&&l[p][1].start.line!==l[p][1].end.line&&(h=p+1,v.push(h),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(o.events=[],f?(f._tokenizer=void 0,f.previous=void 0):v.pop(),p=v.length;p--;){const y=l.slice(v[p],v[p+1]),x=i.pop();c.push([x,x+y.length-1]),e.splice(x,2,y)}for(c.reverse(),p=-1;++p<c.length;)u[g+c[p][0]]=g+c[p][1],g+=c[p][1]-c[p][0]-1;return u}const j2e={resolve:A2e,tokenize:_2e},P2e={partial:!0,tokenize:N2e};function A2e(e){return XF(e),e}function _2e(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(l)}function a(l){return l===null?i(l):Pe(l)?e.check(P2e,o,i)(l):(e.consume(l),a)}function i(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function o(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function N2e(e,t,n){const r=this;return a;function a(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Ke(e,i,"linePrefix")}function i(o){if(o===null||Pe(o))return n(o);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function JF(e,t,n,r,a,i,o,l,c){const u=c||Number.POSITIVE_INFINITY;let d=0;return m;function m(y){return y===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(y),e.exit(i),p):y===null||y===32||y===41||rv(y)?n(y):(e.enter(r),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),h(y))}function p(y){return y===62?(e.enter(i),e.consume(y),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),f(y))}function f(y){return y===62?(e.exit("chunkString"),e.exit(l),p(y)):y===null||y===60||Pe(y)?n(y):(e.consume(y),y===92?g:f)}function g(y){return y===60||y===62||y===92?(e.consume(y),f):f(y)}function h(y){return!d&&(y===null||y===41||ut(y))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(r),t(y)):d<u&&y===40?(e.consume(y),d++,h):y===41?(e.consume(y),d--,h):y===null||y===32||y===40||rv(y)?n(y):(e.consume(y),y===92?v:h)}function v(y){return y===40||y===41||y===92?(e.consume(y),h):h(y)}}function eR(e,t,n,r,a,i){const o=this;let l=0,c;return u;function u(f){return e.enter(r),e.enter(a),e.consume(f),e.exit(a),e.enter(i),d}function d(f){return l>999||f===null||f===91||f===93&&!c||f===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(f):f===93?(e.exit(i),e.enter(a),e.consume(f),e.exit(a),e.exit(r),t):Pe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),m(f))}function m(f){return f===null||f===91||f===93||Pe(f)||l++>999?(e.exit("chunkString"),d(f)):(e.consume(f),c||(c=!Ue(f)),f===92?p:m)}function p(f){return f===91||f===92||f===93?(e.consume(f),l++,m):m(f)}}function tR(e,t,n,r,a,i){let o;return l;function l(p){return p===34||p===39||p===40?(e.enter(r),e.enter(a),e.consume(p),e.exit(a),o=p===40?41:p,c):n(p)}function c(p){return p===o?(e.enter(a),e.consume(p),e.exit(a),e.exit(r),t):(e.enter(i),u(p))}function u(p){return p===o?(e.exit(i),c(o)):p===null?n(p):Pe(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Ke(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===o||p===null||Pe(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?m:d)}function m(p){return p===o||p===92?(e.consume(p),d):d(p)}}function Rd(e,t){let n;return r;function r(a){return Pe(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):Ue(a)?Ke(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const C2e={name:"definition",tokenize:T2e},E2e={partial:!0,tokenize:O2e};function T2e(e,t,n){const r=this;let a;return i;function i(f){return e.enter("definition"),o(f)}function o(f){return eR.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function l(f){return a=ya(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),c):n(f)}function c(f){return ut(f)?Rd(e,u)(f):u(f)}function u(f){return JF(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function d(f){return e.attempt(E2e,m,m)(f)}function m(f){return Ue(f)?Ke(e,p,"whitespace")(f):p(f)}function p(f){return f===null||Pe(f)?(e.exit("definition"),r.parser.defined.push(a),t(f)):n(f)}}function O2e(e,t,n){return r;function r(l){return ut(l)?Rd(e,a)(l):n(l)}function a(l){return tR(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function i(l){return Ue(l)?Ke(e,o,"whitespace")(l):o(l)}function o(l){return l===null||Pe(l)?t(l):n(l)}}const I2e={name:"hardBreakEscape",tokenize:M2e};function M2e(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return Pe(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const $2e={name:"headingAtx",resolve:F2e,tokenize:R2e};function F2e(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},kr(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function R2e(e,t,n){let r=0;return a;function a(d){return e.enter("atxHeading"),i(d)}function i(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(e.consume(d),o):d===null||ut(d)?(e.exit("atxHeadingSequence"),l(d)):n(d)}function l(d){return d===35?(e.enter("atxHeadingSequence"),c(d)):d===null||Pe(d)?(e.exit("atxHeading"),t(d)):Ue(d)?Ke(e,l,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function c(d){return d===35?(e.consume(d),c):(e.exit("atxHeadingSequence"),l(d))}function u(d){return d===null||d===35||ut(d)?(e.exit("atxHeadingText"),l(d)):(e.consume(d),u)}}const D2e=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],xE=["pre","script","style","textarea"],L2e={concrete:!0,name:"htmlFlow",resolveTo:q2e,tokenize:U2e},z2e={partial:!0,tokenize:V2e},B2e={partial:!0,tokenize:W2e};function q2e(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function U2e(e,t,n){const r=this;let a,i,o,l,c;return u;function u($){return d($)}function d($){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume($),m}function m($){return $===33?(e.consume($),p):$===47?(e.consume($),i=!0,h):$===63?(e.consume($),a=3,r.interrupt?t:I):Ln($)?(e.consume($),o=String.fromCharCode($),v):n($)}function p($){return $===45?(e.consume($),a=2,f):$===91?(e.consume($),a=5,l=0,g):Ln($)?(e.consume($),a=4,r.interrupt?t:I):n($)}function f($){return $===45?(e.consume($),r.interrupt?t:I):n($)}function g($){const X="CDATA[";return $===X.charCodeAt(l++)?(e.consume($),l===X.length?r.interrupt?t:E:g):n($)}function h($){return Ln($)?(e.consume($),o=String.fromCharCode($),v):n($)}function v($){if($===null||$===47||$===62||ut($)){const X=$===47,pe=o.toLowerCase();return!X&&!i&&xE.includes(pe)?(a=1,r.interrupt?t($):E($)):D2e.includes(o.toLowerCase())?(a=6,X?(e.consume($),y):r.interrupt?t($):E($)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n($):i?x($):b($))}return $===45||An($)?(e.consume($),o+=String.fromCharCode($),v):n($)}function y($){return $===62?(e.consume($),r.interrupt?t:E):n($)}function x($){return Ue($)?(e.consume($),x):N($)}function b($){return $===47?(e.consume($),N):$===58||$===95||Ln($)?(e.consume($),w):Ue($)?(e.consume($),b):N($)}function w($){return $===45||$===46||$===58||$===95||An($)?(e.consume($),w):k($)}function k($){return $===61?(e.consume($),j):Ue($)?(e.consume($),k):b($)}function j($){return $===null||$===60||$===61||$===62||$===96?n($):$===34||$===39?(e.consume($),c=$,A):Ue($)?(e.consume($),j):P($)}function A($){return $===c?(e.consume($),c=null,_):$===null||Pe($)?n($):(e.consume($),A)}function P($){return $===null||$===34||$===39||$===47||$===60||$===61||$===62||$===96||ut($)?k($):(e.consume($),P)}function _($){return $===47||$===62||Ue($)?b($):n($)}function N($){return $===62?(e.consume($),C):n($)}function C($){return $===null||Pe($)?E($):Ue($)?(e.consume($),C):n($)}function E($){return $===45&&a===2?(e.consume($),D):$===60&&a===1?(e.consume($),z):$===62&&a===4?(e.consume($),H):$===63&&a===3?(e.consume($),I):$===93&&a===5?(e.consume($),B):Pe($)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(z2e,q,T)($)):$===null||Pe($)?(e.exit("htmlFlowData"),T($)):(e.consume($),E)}function T($){return e.check(B2e,O,q)($)}function O($){return e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),F}function F($){return $===null||Pe($)?T($):(e.enter("htmlFlowData"),E($))}function D($){return $===45?(e.consume($),I):E($)}function z($){return $===47?(e.consume($),o="",R):E($)}function R($){if($===62){const X=o.toLowerCase();return xE.includes(X)?(e.consume($),H):E($)}return Ln($)&&o.length<8?(e.consume($),o+=String.fromCharCode($),R):E($)}function B($){return $===93?(e.consume($),I):E($)}function I($){return $===62?(e.consume($),H):$===45&&a===2?(e.consume($),I):E($)}function H($){return $===null||Pe($)?(e.exit("htmlFlowData"),q($)):(e.consume($),H)}function q($){return e.exit("htmlFlow"),t($)}}function W2e(e,t,n){const r=this;return a;function a(o){return Pe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function V2e(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(qp,t,n)}}const H2e={name:"htmlText",tokenize:K2e};function K2e(e,t,n){const r=this;let a,i,o;return l;function l(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),c}function c(I){return I===33?(e.consume(I),u):I===47?(e.consume(I),k):I===63?(e.consume(I),b):Ln(I)?(e.consume(I),P):n(I)}function u(I){return I===45?(e.consume(I),d):I===91?(e.consume(I),i=0,g):Ln(I)?(e.consume(I),x):n(I)}function d(I){return I===45?(e.consume(I),f):n(I)}function m(I){return I===null?n(I):I===45?(e.consume(I),p):Pe(I)?(o=m,z(I)):(e.consume(I),m)}function p(I){return I===45?(e.consume(I),f):m(I)}function f(I){return I===62?D(I):I===45?p(I):m(I)}function g(I){const H="CDATA[";return I===H.charCodeAt(i++)?(e.consume(I),i===H.length?h:g):n(I)}function h(I){return I===null?n(I):I===93?(e.consume(I),v):Pe(I)?(o=h,z(I)):(e.consume(I),h)}function v(I){return I===93?(e.consume(I),y):h(I)}function y(I){return I===62?D(I):I===93?(e.consume(I),y):h(I)}function x(I){return I===null||I===62?D(I):Pe(I)?(o=x,z(I)):(e.consume(I),x)}function b(I){return I===null?n(I):I===63?(e.consume(I),w):Pe(I)?(o=b,z(I)):(e.consume(I),b)}function w(I){return I===62?D(I):b(I)}function k(I){return Ln(I)?(e.consume(I),j):n(I)}function j(I){return I===45||An(I)?(e.consume(I),j):A(I)}function A(I){return Pe(I)?(o=A,z(I)):Ue(I)?(e.consume(I),A):D(I)}function P(I){return I===45||An(I)?(e.consume(I),P):I===47||I===62||ut(I)?_(I):n(I)}function _(I){return I===47?(e.consume(I),D):I===58||I===95||Ln(I)?(e.consume(I),N):Pe(I)?(o=_,z(I)):Ue(I)?(e.consume(I),_):D(I)}function N(I){return I===45||I===46||I===58||I===95||An(I)?(e.consume(I),N):C(I)}function C(I){return I===61?(e.consume(I),E):Pe(I)?(o=C,z(I)):Ue(I)?(e.consume(I),C):_(I)}function E(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),a=I,T):Pe(I)?(o=E,z(I)):Ue(I)?(e.consume(I),E):(e.consume(I),O)}function T(I){return I===a?(e.consume(I),a=void 0,F):I===null?n(I):Pe(I)?(o=T,z(I)):(e.consume(I),T)}function O(I){return I===null||I===34||I===39||I===60||I===61||I===96?n(I):I===47||I===62||ut(I)?_(I):(e.consume(I),O)}function F(I){return I===47||I===62||ut(I)?_(I):n(I)}function D(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),t):n(I)}function z(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),R}function R(I){return Ue(I)?Ke(e,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):B(I)}function B(I){return e.enter("htmlTextData"),o(I)}}const Aj={name:"labelEnd",resolveAll:Z2e,resolveTo:X2e,tokenize:J2e},G2e={tokenize:eke},Q2e={tokenize:tke},Y2e={tokenize:nke};function Z2e(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&kr(e,0,e.length,n),e}function X2e(e,t){let n=e.length,r=0,a,i,o,l;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(o=n);const c={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},d={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[o-2][1].start}};return l=[["enter",c,t],["enter",u,t]],l=Rr(l,e.slice(i+1,i+r+3)),l=Rr(l,[["enter",d,t]]),l=Rr(l,Xy(t.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),t)),l=Rr(l,[["exit",d,t],e[o-2],e[o-1],["exit",u,t]]),l=Rr(l,e.slice(o+1)),l=Rr(l,[["exit",c,t]]),kr(e,i,e.length,l),e}function J2e(e,t,n){const r=this;let a=r.events.length,i,o;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return l;function l(p){return i?i._inactive?m(p):(o=r.parser.defined.includes(ya(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),c):n(p)}function c(p){return p===40?e.attempt(G2e,d,o?d:m)(p):p===91?e.attempt(Q2e,d,o?u:m)(p):o?d(p):m(p)}function u(p){return e.attempt(Y2e,d,m)(p)}function d(p){return t(p)}function m(p){return i._balanced=!0,n(p)}}function eke(e,t,n){return r;function r(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),a}function a(m){return ut(m)?Rd(e,i)(m):i(m)}function i(m){return m===41?d(m):JF(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function o(m){return ut(m)?Rd(e,c)(m):d(m)}function l(m){return n(m)}function c(m){return m===34||m===39||m===40?tR(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):d(m)}function u(m){return ut(m)?Rd(e,d)(m):d(m)}function d(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),t):n(m)}}function tke(e,t,n){const r=this;return a;function a(l){return eR.call(r,e,i,o,"reference","referenceMarker","referenceString")(l)}function i(l){return r.parser.defined.includes(ya(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function o(l){return n(l)}}function nke(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const rke={name:"labelStartImage",resolveAll:Aj.resolveAll,tokenize:ake};function ake(e,t,n){const r=this;return a;function a(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),i}function i(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),o):n(l)}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const ike={name:"labelStartLink",resolveAll:Aj.resolveAll,tokenize:oke};function oke(e,t,n){const r=this;return a;function a(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Tb={name:"lineEnding",tokenize:ske};function ske(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Ke(e,t,"linePrefix")}}const fh={name:"thematicBreak",tokenize:lke};function lke(e,t,n){let r=0,a;return i;function i(u){return e.enter("thematicBreak"),o(u)}function o(u){return a=u,l(u)}function l(u){return u===a?(e.enter("thematicBreakSequence"),c(u)):r>=3&&(u===null||Pe(u))?(e.exit("thematicBreak"),t(u)):n(u)}function c(u){return u===a?(e.consume(u),r++,c):(e.exit("thematicBreakSequence"),Ue(u)?Ke(e,l,"whitespace")(u):l(u))}}const Gn={continuation:{tokenize:mke},exit:fke,name:"list",tokenize:dke},cke={partial:!0,tokenize:hke},uke={partial:!0,tokenize:pke};function dke(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return l;function l(f){const g=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:m2(f)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(fh,n,u)(f):u(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(f)}return n(f)}function c(f){return m2(f)&&++o<10?(e.consume(f),c):(!r.interrupt||o<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),u(f)):n(f)}function u(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(qp,r.interrupt?n:d,e.attempt(cke,p,m))}
vendor: 5,407 bytes, line 916
916function d(f){return r.containerState.initialBlankLine=!0,i++,p(f)}function m(f){return Ue(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function mke(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(qp,a,i);function a(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ke(e,t,"listItemIndent",r.containerState.size+1)(l)}function i(l){return r.containerState.furtherBlankLines||!Ue(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(uke,t,o)(l))}function o(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ke(e,e.attempt(Gn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function pke(e,t,n){const r=this;return Ke(e,a,"listItemIndent",r.containerState.size+1);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function fke(e){e.exit(this.containerState.type)}function hke(e,t,n){const r=this;return Ke(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const o=r.events[r.events.length-1];return!Ue(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const bE={name:"setextUnderline",resolveTo:gke,tokenize:vke};function gke(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function vke(e,t,n){const r=this;let a;return i;function i(u){let d=r.events.length,m;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){m=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||m)?(e.enter("setextHeadingLine"),a=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===a?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),Ue(u)?Ke(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||Pe(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const yke={tokenize:xke};function xke(e){const t=this,n=e.attempt(qp,r,e.attempt(this.parser.constructs.flowInitial,a,Ke(e,e.attempt(this.parser.constructs.flow,a,e.attempt(j2e,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const bke={resolveAll:rR()},wke=nR("string"),kke=nR("text");function nR(e){return{resolveAll:rR(e==="text"?Ske:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,o,l);return o;function o(d){return u(d)?i(d):l(d)}function l(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),c}function c(d){return u(d)?(n.exit("data"),i(d)):(n.consume(d),c)}function u(d){if(d===null)return!0;const m=a[d];let p=-1;if(m)for(;++p<m.length;){const f=m[p];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function rR(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function Ske(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let i=a.length,o=-1,l=0,c;for(;i--;){const u=a[i];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)l++,o--;if(o)break;o=-1}else if(u===-2)c=!0,l++;else if(u!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const u={type:n===e.length||c||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?o:r.start._bufferIndex+o,_index:r.start._index+i,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const jke={42:Gn,43:Gn,45:Gn,48:Gn,49:Gn,50:Gn,51:Gn,52:Gn,53:Gn,54:Gn,55:Gn,56:Gn,57:Gn,62:QF},Pke={91:C2e},Ake={[-2]:Eb,[-1]:Eb,32:Eb},_ke={35:$2e,42:fh,45:[bE,fh],60:L2e,61:bE,95:fh,96:yE,126:yE},Nke={38:ZF,92:YF},Cke={[-5]:Tb,[-4]:Tb,[-3]:Tb,33:rke,38:ZF,42:p2,60:[i2e,H2e],91:ike,92:[I2e,YF],93:Aj,95:p2,96:y2e},Eke={null:[p2,bke]},Tke={null:[42,95]},Oke={null:[]},Ike=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Tke,contentInitial:Pke,disable:Oke,document:jke,flow:_ke,flowInitial:Ake,insideSpan:Eke,string:Nke,text:Cke},Symbol.toStringTag,{value:"Module"}));function Mke(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
vendor: 14,614 bytes, lines 916-918
916olumn:n&&n.column||1,offset:n&&n.offset||0};const a={},i=[];let o=[],l=[];const c={attempt:A(k),check:A(j),consume:x,enter:b,exit:w,interrupt:A(j,{interrupt:!0})},u={code:null,containerState:{},defineSkip:h,events:[],now:g,parser:e,previous:null,sliceSerialize:p,sliceStream:f,write:m};let d=t.tokenize.call(u,c);return t.resolveAll&&i.push(t),u;function m(C){return o=Rr(o,C),v(),o[o.length-1]!==null?[]:(P(t,0),u.events=Xy(i,u.events,u),u.events)}function p(C,E){return Fke(f(C),E)}function f(C){return $ke(o,C)}function g(){const{_bufferIndex:C,_index:E,line:T,column:O,offset:F}=r;return{_bufferIndex:C,_index:E,line:T,column:O,offset:F}}function h(C){a[C.line]=C.column,N()}function v(){let C;for(;r._index<o.length;){const E=o[r._index];if(typeof E=="string")for(C=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===C&&r._bufferIndex<E.length;)y(E.charCodeAt(r._bufferIndex));else y(E)}}function y(C){d=d(C)}function x(C){Pe(C)?(r.line++,r.column=1,r.offset+=C===-3?2:1,N()):C!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=C}function b(C,E){const T=E||{};return T.type=C,T.start=g(),u.events.push(["enter",T,u]),l.push(T),T}function w(C){const E=l.pop();return E.end=g(),u.events.push(["exit",E,u]),E}function k(C,E){P(C,E.from)}function j(C,E){E.restore()}function A(C,E){return T;function T(O,F,D){let z,R,B,I;return Array.isArray(O)?q(O):"tokenize"in O?q([O]):H(O);function H(te){return de;function de(Q){const K=Q!==null&&te[Q],ee=Q!==null&&te.null,ce=[...Array.isArray(K)?K:K?[K]:[],...Array.isArray(ee)?ee:ee?[ee]:[]];return q(ce)(Q)}}function q(te){return z=te,R=0,te.length===0?D:$(te[R])}function $(te){return de;function de(Q){return I=_(),B=te,te.partial||(u.currentConstruct=te),te.name&&u.parser.constructs.disable.null.includes(te.name)?pe():te.tokenize.call(E?Object.assign(Object.create(u),E):u,c,X,pe)(Q)}}function X(te){return C(B,I),F}function pe(te){return I.restore(),++R<z.length?$(z[R]):D}}}function P(C,E){C.resolveAll&&!i.includes(C)&&i.push(C),C.resolve&&kr(u.events,E,u.events.length-E,C.resolve(u.events.slice(E),u)),C.resolveTo&&(u.events=C.resolveTo(u.events,u))}function _(){const C=g(),E=u.previous,T=u.currentConstruct,O=u.events.length,F=Array.from(l);return{from:O,restore:D};function D(){r=C,u.previous=E,u.currentConstruct=T,u.events.length=O,l=F,N()}}function N(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function $ke(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let o;if(n===a)o=[e[n].slice(r,i)];else{if(o=e.slice(n,a),r>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function Fke(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=` 917`;break}case-3:{o=`\r 918`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&a)continue;o=" ";break}default:o=String.fromCharCode(i)}a=i===-2,r.push(o)}return r.join("")}function Rke(e){const r={constructs:KF([Ike,...(e||{}).extensions||[]]),content:a(X1e),defined:[],document:a(e2e),flow:a(yke),lazy:{},string:a(wke),text:a(kke)};return r;function a(i){return o;function o(l){return Mke(r,i,l)}}}function Dke(e){for(;!XF(e););return e}const wE=/[\0\t\n\r]/g;function Lke(){let e=1,t="",n=!0,r;return a;function a(i,o,l){const c=[];let u,d,m,p,f;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),m=0,t="",n&&(i.charCodeAt(0)===65279&&m++,n=void 0);m<i.length;){if(wE.lastIndex=m,u=wE.exec(i),p=u&&u.index!==void 0?u.index:i.length,f=i.charCodeAt(p),!u){t=i.slice(m);break}if(f===10&&m===p&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),m<p&&(c.push(i.slice(m,p)),e+=p-m),f){case 0:{c.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,c.push(-2);e++<d;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}m=p+1}return l&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}const zke=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Bke(e){return e.replace(zke,qke)}function qke(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return GF(n.slice(i?2:1),i?16:10)}return Pj(n)||e}const aR={}.hasOwnProperty;function Uke(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Wke(n)(Dke(Rke(n).document().write(Lke()(e,t,!0))))}function Wke(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(qe),autolinkProtocol:_,autolinkEmail:_,atxHeading:i(Ce),blockQuote:i(ee),characterEscape:_,characterReference:_,codeFenced:i(ce),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(ce,o),codeText:i(W,o),codeTextData:_,data:_,codeFlowValue:_,definition:i(we),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(ve),hardBreakEscape:i(Te),hardBreakTrailing:i(Te),htmlFlow:i(Ye,o),htmlFlowData:_,htmlText:i(Ye,o),htmlTextData:_,image:i(ht),label:o,link:i(qe),listItem:i(V),listItemValue:p,listOrdered:i(L,m),listUnordered:i(L),paragraph:i(G),reference:$,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(Ce),strong:i(le),thematicBreak:i(ie)},exit:{atxHeading:c(),atxHeadingSequence:k,autolink:c(),autolinkEmail:K,autolinkProtocol:Q,blockQuote:c(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:pe,characterReferenceMarkerNumeric:pe,characterReferenceValue:te,characterReference:de,codeFenced:c(v),codeFencedFence:h,codeFencedFenceInfo:f,codeFencedFenceMeta:g,codeFlowValue:N,codeIndented:c(y),codeText:c(F),codeTextData:N,data:N,definition:c(),definitionDestinationString:w,definitionLabelString:x,definitionTitleString:b,emphasis:c(),hardBreakEscape:c(E),hardBreakTrailing:c(E),htmlFlow:c(T),htmlFlowData:N,htmlText:c(O),htmlTextData:N,image:c(z),label:B,labelText:R,lineEnding:C,link:c(D),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:X,resourceDestinationString:I,resourceTitleString:H,resource:q,setextHeading:c(P),setextHeadingLineSequence:A,setextHeadingText:j,strong:c(),thematicBreak:c()}};iR(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(U){let Z={type:"root",children:[]};const ue={stack:[Z],tokenStack:[],config:t,enter:l,exit:u,buffer:o,resume:d,data:n},ke=[];let Ie=-1;for(;++Ie<U.length;)if(U[Ie][1].type==="listOrdered"||U[Ie][1].type==="listUnordered")if(U[Ie][0]==="enter")ke.push(Ie);else{const dt=ke.pop();Ie=a(U,dt,Ie)}for(Ie=-1;++Ie<U.length;){const dt=t[U[Ie][0]];aR.call(dt,U[Ie][1].type)&&dt[U[Ie][1].type].call(Object.assign({sliceSerialize:U[Ie][2].sliceSerialize},ue),U[Ie][1])}if(ue.tokenStack.length>0){const dt=ue.tokenStack[ue.tokenStack.length-1];(dt[1]||kE).call(ue,void 0,dt[0])}for(Z.position={start:Xi(U.length>0?U[0][1].start:{line:1,column:1,offset:0}),end:Xi(U.length>0?U[U.length-2][1].end:{line:1,column:1,offset:0})},Ie=-1;++Ie<t.transforms.length;)Z=t.transforms[Ie](Z)||Z;return Z}function a(U,Z,ue){let ke=Z-1,Ie=-1,dt=!1,gn,It,Tn,or;for(;++ke<=ue;){const at=U[ke];switch(at[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{at[0]==="enter"?Ie++:Ie--,or=void 0;break}case"lineEndingBlank":{at[0]==="enter"&&(gn&&!or&&!Ie&&!Tn&&(Tn=ke),or=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:or=void 0}if(!Ie&&at[0]==="enter"&&at[1].type==="listItemPrefix"||Ie===-1&&at[0]==="exit"&&(at[1].type==="listUnordered"||at[1].type==="listOrdered")){if(gn){let Nr=ke;for(It=void 0;Nr--;){const Se=U[Nr];if(Se[1].type==="lineEnding"||Se[1].type==="lineEndingBlank"){if(Se[0]==="exit")continue;It&&(U[It][1].type="lineEndingBlank",dt=!0),Se[1].type="lineEnding",It=Nr}else if(!(Se[1].type==="linePrefix"||Se[1].type==="blockQuotePrefix"||Se[1].type==="blockQuotePrefixWhitespace"||Se[1].type==="blockQuoteMarker"||Se[1].type==="listItemIndent"))break}Tn&&(!It||Tn<It)&&(gn._spread=!0),gn.end=Object.assign({},It?U[It][1].start:at[1].end),U.splice(It||ke,0,["exit",gn,at[2]]),ke++,ue++}if(at[1].type==="listItemPrefix"){const Nr={type:"listItem",_spread:!1,start:Object.assign({},at[1].start),end:void 0};gn=Nr,U.splice(ke,0,["enter",Nr,at[2]]),ke++,ue++,Tn=void 0,or=!0}}}return U[Z][1]._spread=dt,ue}function i(U,Z){return ue;function ue(ke){l.call(this,U(ke),ke),Z&&Z.call(this,ke)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(U,Z,ue){this.stack[this.stack.length-1].children.push(U),this.stack.push(U),this.tokenStack.push([Z,ue||void 0]),U.position={start:Xi(Z.start),end:void 0}}function c(U){return Z;function Z(ue){U&&U.call(this,ue),u.call(this,ue)}}function u(U,Z){const ue=this.stack.pop(),ke=this.tokenStack.pop();if(ke)ke[0].type!==U.type&&(Z?Z.call(this,U,ke[0]):(ke[1]||kE).call(this,U,ke[0]));else throw new Error("Cannot close `"+U.type+"` ("+Fd({start:U.start,end:U.end})+"): itâs not open");ue.position.end=Xi(U.end)}function d(){return jj(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function p(U){if(this.data.expectingFirstListItemValue){const Z=this.stack[this.stack.length-2];Z.start=Number.parseInt(this.sliceSerialize(U),10),this.data.expectingFirstListItemValue=void 0}}function f(){const U=this.resume(),Z=this.stack[this.stack.length-1];Z.lang=U}function g(){const U=this.resume(),Z=this.stack[this.stack.length-1];Z.meta=U}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const U=this.resume(),Z=this.stack[this.stack.length-1];Z.value=U.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const U=this.resume(),Z=this.stack[this.stack.length-1];Z.value=U.replace(/(\r?\n|\r)$/g,"")}function x(U){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.label=Z,ue.identifier=ya(this.sliceSerialize(U)).toLowerCase()}function b(){const U=this.resume(),Z=this.stack[this.stack.length-1];Z.title=U}function w(){const U=this.resume(),Z=this.stack[this.stack.length-1];Z.url=U}function k(U){const Z=this.stack[this.stack.length-1];if(!Z.depth){const ue=this.sliceSerialize(U).length;Z.depth=ue}}function j(){this.data.setextHeadingSlurpLineEnding=!0}function A(U){const Z=this.stack[this.stack.length-1];Z.depth=this.sliceSerialize(U).codePointAt(0)===61?1:2}function P(){this.data.setextHeadingSlurpLineEnding=void 0}function _(U){const ue=this.stack[this.stack.length-1].children;let ke=ue[ue.length-1];(!ke||ke.type!=="text")&&(ke=oe(),ke.position={start:Xi(U.start),end:void 0},ue.push(ke)),this.stack.push(ke)}function N(U){const Z=this.stack.pop();Z.value+=this.sliceSerialize(U),Z.position.end=Xi(U.end)}function C(U){const Z=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ue=Z.children[Z.children.length-1];ue.position.end=Xi(U.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Z.type)&&(_.call(this,U),N.call(this,U))}function E(){this.data.atHardBreak=!0}function T(){const U=this.resume(),Z=this.stack[this.stack.length-1];Z.value=U}function O(){const U=this.resume(),Z=this.stack[this.stack.length-1];Z.value=U}function F(){const U=this.resume(),Z=this.stack[this.stack.length-1];Z.value=U}function D(){const U=this.stack[this.stack.length-1];if(this.data.inReference){const Z=this.data.referenceType||"shortcut";U.type+="Reference",U.referenceType=Z,delete U.url,delete U.title}else delete U.identifier,delete U.label;this.data.referenceType=void 0}function z(){const U=this.stack[this.stack.length-1];if(this.data.inReference){const Z=this.data.referenceType||"shortcut";U.type+="Reference",U.referenceType=Z,delete U.url,delete U.title}else delete U.identifier,delete U.label;this.data.referenceType=void 0}function R(U){const Z=this.sliceSerialize(U),ue=this.stack[this.stack.length-2];ue.label=Bke(Z),ue.identifier=ya(Z).toLowerCase()}function B(){const U=this.stack[this.stack.length-1],Z=this.resume(),ue=this.stack[this.stack.length-1];if(this.data.inReference=!0,ue.type==="link"){const ke=U.children;ue.children=ke}else ue.alt=Z}function I(){const U=this.resume(),Z=this.stack[this.stack.length-1];Z.url=U}function H(){const U=this.resume(),Z=this.stack[this.stack.length-1];Z.title=U}function q(){this.data.inReference=void 0}function $(){this.data.referenceType="collapsed"}function X(U){const Z=this.resume(),ue=this.stack[this.stack.length-1];ue.label=Z,ue.identifier=ya(this.sliceSerialize(U)).toLowerCase(),this.data.referenceType="full"}function pe(U){this.data.characterReferenceType=U.type}function te(U){const Z=this.sliceSerialize(U),ue=this.data.characterReferenceType;let ke;ue?(ke=GF(Z,ue==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ke=Pj(Z);const Ie=this.stack[this.stack.length-1];Ie.value+=ke}function de(U){const Z=this.stack.pop();Z.position.end=Xi(U.end)}function Q(U){N.call(this,U);const Z=this.stack[this.stack.length-1];Z.url=this.sliceSerialize(U)}function K(U){N.call(this,U);const Z=this.stack[this.stack.length-1];Z.url="mailto:"+this.sliceSerialize(U)}function ee(){return{type:"blockquote",children:[]}}function ce(){return{type:"code",lang:null,meta:null,value:""}}function W(){return{type:"inlineCode",value:""}}function we(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ve(){return{type:"emphasis",children:[]}}function Ce(){return{type:"heading",depth:0,children:[]}}function Te(){return{type:"break"}}function Ye(){return{type:"html",value:""}}function ht(){return{type:"image",title:null,url:"",alt:null}}function qe(){return{type:"link",title:null,url:"",children:[]}}function L(U){return{type:"list",ordered:U.type==="listOrdered",start:null,spread:U._spread,children:[]}}function V(U){return{type:"listItem",spread:U._spread,checked:null,children:[]}}function G(){return{type:"paragraph",children:[]}}function le(){return{type:"strong",children:[]}}function oe(){return{type:"text",value:""}}function ie(){return{type:"thematicBreak"}}}function Xi(e){return{line:e.line,column:e.column,offset:e.offset}}function iR(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?iR(e,r):Vke(e,r)}}function Vke(e,t){let n;for(n in t)if(aR.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function kE(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Fd({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Fd({start:t.start,end:t.end}
vendor: 4,533 bytes, lines 918-922
918)+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Fd({start:t.start,end:t.end})+") is still open")}function Hke(e){const t=this;t.parser=n;function n(r){return Uke(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Kke(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Gke(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` 919`}]}function Qke(e,t){const n=t.value?t.value+` 920`:"",r={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(r.className=["language-"+a[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function Yke(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Zke(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Xke(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=ju(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let o,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=i+1,l+=1,e.footnoteCounts.set(r,l);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,u),e.applyData(t,u)}function Jke(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function eSe(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function oR(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const o=a[a.length-1];return o&&o.type==="text"?o.value+=r:a.push({type:"text",value:r}),a}function tSe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return oR(e,t);const a={src:ju(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function nSe(e,t){const n={src:ju(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function rSe(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function aSe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return oR(e,t);const a={href:ju(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function iSe(e,t){const n={href:ju(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function oSe(e,t,n){const r=e.all(t),a=n?sSe(n):sR(t),i={},o=[];if(typeof t.checked=="boolean"){const d=r[0];let m;d&&d.type==="element"&&d.tagName==="p"?m=d:(m={type:"element",tagName:"p",properties:{},children:[]},r.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const d=r[l];(a||l!==0||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:` 921`}),d.type==="element"&&d.tagName==="p"&&!a?o.push(...d.children):o.push(d)}const c=r[r.length-1];c&&(a||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:` 922`});const u={type:"element",tagName:"li",properties:i,children:o};
vendor: 3,294 bytes, line 922
922return e.patch(t,u),e.applyData(t,u)}function sSe(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=sR(n[r])}return t}function sR(e){const t=e.spread;return t??e.children.length>1}function lSe(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const o=r[a];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function cSe(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function uSe(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function dSe(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mSe(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),a.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=bj(t.children[1]),c=zF(t.children[t.children.length-1]);l&&c&&(o.position={start:l,end:c}),a.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function pSe(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,l=o?o.length:t.children.length;let c=-1;const u=[];for(;++c<l;){const m=t.children[c],p={},f=o?o[c]:void 0;f&&(p.align=f);let g={type:"element",tagName:i,properties:p,children:[]};m&&(g.children=e.all(m),e.patch(m,g),g=e.applyData(m,g)),u.push(g)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function fSe(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const SE=9,jE=32;function hSe(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const i=[];for(;r;)i.push(PE(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(PE(t.slice(a),a>0,!1)),i.join("")}function PE(e,t,n){let r=0,a=e.length;if(t){let i=e.codePointAt(r);for(;i===SE||i===jE;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(a-1);for(;i===SE||i===jE;)a--,i=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function gSe(e,t){const n={type:"text",value:hSe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function vSe(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const ySe={blockquote:Kke,break:Gke,code:Qke,delete:Yke,emphasis:Zke,footnoteReference:Xke,heading:Jke,html:eSe,imageReference:tSe,image:nSe,inlineCode:rSe,linkReference:aSe,link:iSe,listItem:oSe,list:lSe,paragraph:cSe,root:uSe,strong:dSe,table:mSe,tableCell:fSe,tableRow:pSe,text:gSe,thematicBreak:vSe,toml:Of,yaml:Of,definition:Of,footnoteDefinition:Of};function Of(){}const lR=-1,Jy=0,Dd=1,av=2,_j=3,Nj=4,Cj=5,Ej=6,cR=7,uR=8,{defineProperty:xSe}=Object,dR=typeof self=="object"?self:globalThis,AE=(e,t)=>
vendor: 4,755 bytes, line 922
922{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new dR[e](t)},bSe=(e,t)=>{const n=(a,i)=>(e.set(i,a),a),r=a=>{if(e.has(a))return e.get(a);const[i,o]=t[a];switch(i){case Jy:case lR:return n(o,a);case Dd:{const l=n([],a);for(const c of o)l.push(r(c));return l}case av:{const l=n({},a);for(const[c,u]of o){const d=r(c),m=r(u);d==="__proto__"?xSe(l,d,{value:m,configurable:!0,enumerable:!0,writable:!0}):l[d]=m}return l}case _j:return n(new Date(o),a);case Nj:{const{source:l,flags:c}=o;return n(new RegExp(l,c),a)}case Cj:{const l=n(new Map,a);for(const[c,u]of o)l.set(r(c),r(u));return l}case Ej:{const l=n(new Set,a);for(const c of o)l.add(r(c));return l}case cR:{const{name:l,message:c}=o;return n(typeof dR[l]=="function"?AE(l,c):new Error(c),a)}case uR:return n(BigInt(o),a);case"BigInt":return n(Object(BigInt(o)),a);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:l}=new Uint8Array(o);return n(new DataView(l),o)}case"-0":return-0}return n(AE(i,o),a)};return r},_E=e=>bSe(new Map,e)(0),hs="",{toString:wSe}={},{keys:kSe,is:SSe}=Object,Xu=e=>{const t=typeof e;if(t!=="object"||!e)return[Jy,t];const n=wSe.call(e).slice(8,-1);switch(n){case"Array":return[Dd,hs];case"Object":return[av,hs];case"Date":return[_j,hs];case"RegExp":return[Nj,hs];case"Map":return[Cj,hs];case"Set":return[Ej,hs];case"DataView":return[Dd,n]}return n.includes("Array")?[Dd,n]:e instanceof Error?[cR,e.name||"Error"]:[av,n]},If=([e,t])=>e===Jy&&(t==="function"||t==="symbol"),jSe=(e,t,n,r)=>{const a=(o,l)=>{const c=r.push(o)-1;return n.set(l,c),c},i=o=>{if(n.has(o))return n.get(o);let[l,c]=Xu(o);switch(l){case Jy:{let d=o;switch(c){case"bigint":l=uR,d=o.toString();break;case"number":if(!o&&SSe(o,-0))return r.push(["-0"])-1;break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);d=null;break;case"undefined":return a([lR],o)}return a([l,d],o)}case Dd:{if(c){let p=o;return c==="DataView"?p=new Uint8Array(o.buffer):c==="ArrayBuffer"&&(p=new Uint8Array(o)),a([c,[...p]],o)}const d=[],m=a([l,d],o);for(const p of o)d.push(i(p));return m}case av:{if(c)switch(c){case"BigInt":return a([c,o.toString()],o);case"Boolean":case"Number":case"String":return a([c,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const d=[],m=a([l,d],o);for(const p of kSe(o))(e||!If(Xu(o[p])))&&d.push([i(p),i(o[p])]);return m}case _j:return a([l,isNaN(o.getTime())?hs:o.toISOString()],o);case Nj:{const{source:d,flags:m}=o;return a([l,{source:d,flags:m}],o)}case Cj:{const d=[],m=a([l,d],o);for(const[p,f]of o)(e||!(If(Xu(p))||If(Xu(f))))&&d.push([i(p),i(f)]);return m}case Ej:{const d=[],m=a([l,d],o);for(const p of o)(e||!If(Xu(p)))&&d.push(i(p));return m}}const{message:u}=o;return a([l,{name:c,message:u}],o)};return i},NE=(e,{json:t,lossy:n}={})=>{const r=[];return jSe(!(t||n),!!t,new Map,r)(e),r},iv=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?_E(NE(e,t)):structuredClone(e):(e,t)=>_E(NE(e,t));function PSe(e,t){const n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function ASe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function _Se(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||PSe,r=e.options.footnoteBackLabel||ASe,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let c=-1;for(;++c<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[c]);if(!u)continue;const d=e.all(u),m=String(u.identifier).toUpperCase(),p=ju(m.toLowerCase());let f=0;const g=[],h=e.footnoteCounts.get(m);for(;h!==void 0&&++f<=h;){g.length>0&&g.push({type:"text",value:" "});let x=typeof n=="string"?n:n(c,f);typeof x=="string"&&(x={type:"text",value:x}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,f),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const v=d[d.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const x=v.children[v.children.length-1];x&&x.type==="text"?x.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...g)}else d.push(...g);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(d,!0)};e.patch(u,y),l.push(y)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...iv(o),id:"footnote-label"},children:[{type:"text",value:a}]}
vendor: 20,315 bytes, lines 922-928
922,{type:"text",value:` 923`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:` 924`}]}}const ex=function(e){if(e==null)return TSe;if(typeof e=="function")return tx(e);if(typeof e=="object")return Array.isArray(e)?NSe(e):CSe(e);if(typeof e=="string")return ESe(e);throw new Error("Expected function, string, or object as test")};function NSe(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=ex(e[n]);return tx(r);function r(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function CSe(e){const t=e;return tx(n);function n(r){const a=r;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function ESe(e){return tx(t);function t(n){return n&&n.type===e}}function tx(e){return t;function t(n,r,a){return!!(OSe(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function TSe(){return!0}function OSe(e){return e!==null&&typeof e=="object"&&"type"in e}const mR=[],ISe=!0,f2=!1,MSe="skip";function pR(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const i=ex(a),o=r?-1:1;l(e,void 0,[])();function l(c,u,d){const m=c&&typeof c=="object"?c:{};if(typeof m.type=="string"){const f=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(c.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=mR,g,h,v;if((!t||i(c,u,d[d.length-1]||void 0))&&(f=$Se(n(c,d)),f[0]===f2))return f;if("children"in c&&c.children){const y=c;if(y.children&&f[0]!==MSe)for(h=(r?y.children.length:-1)+o,v=d.concat(y);h>-1&&h<y.children.length;){const x=y.children[h];if(g=l(x,h,v)(),g[0]===f2)return g;h=typeof g[1]=="number"?g[1]:h+o}}return f}}}function $Se(e){return Array.isArray(e)?e:typeof e=="number"?[ISe,e]:e==null?mR:[e]}function Tj(e,t,n,r){let a,i,o;typeof t=="function"&&typeof n!="function"?(i=void 0,o=t,a=n):(i=t,o=n,a=r),pR(e,i,l,a);function l(c,u){const d=u[u.length-1],m=d?d.children.indexOf(c):void 0;return o(c,m,d)}}const h2={}.hasOwnProperty,FSe={};function RSe(e,t){const n=t||FSe,r=new Map,a=new Map,i=new Map,o={...ySe,...n.handlers},l={all:u,applyData:LSe,definitionById:r,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:o,one:c,options:n,patch:DSe,wrap:BSe};return Tj(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const m=d.type==="definition"?r:a,p=String(d.identifier).toUpperCase();m.has(p)||m.set(p,d)}}),l;function c(d,m){const p=d.type,f=l.handlers[p];if(h2.call(l.handlers,p)&&f)return f(l,d,m);if(l.options.passThrough&&l.options.passThrough.includes(p)){if("children"in d){const{children:h,...v}=d,y=iv(v);return y.children=l.all(d),y}return iv(d)}return(l.options.unknownHandler||zSe)(l,d,m)}function u(d){const m=[];if("children"in d){const p=d.children;let f=-1;for(;++f<p.length;){const g=l.one(p[f],d);if(g){if(f&&p[f-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=CE(g.value)),!Array.isArray(g)&&g.type==="element")){const h=g.children[0];h&&h.type==="text"&&(h.value=CE(h.value))}Array.isArray(g)?m.push(...g):m.push(g)}}}return m}}function DSe(e,t){e.position&&(t.position=j1e(e))}function LSe(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&i&&Object.assign(n.properties,iv(i)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function zSe(e,t){const n=t.data||{},r="value"in t&&!(h2.call(n,"hProperties")||h2.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function BSe(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:` 925`});++r<e.length;)r&&n.push({type:"text",value:` 926`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:` 927`}),n}function CE(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function EE(e,t){const n=RSe(e,t),r=n.one(e,void 0),a=_Se(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:` 928`},a),i}function qSe(e,t){return e&&"run"in e?async function(n,r){const a=EE(n,{file:r,...t});await e.run(a,r)}:function(n,r){return EE(n,{file:r,...e||t})}}function TE(e){if(e)throw e}var hh=Object.prototype.hasOwnProperty,fR=Object.prototype.toString,OE=Object.defineProperty,IE=Object.getOwnPropertyDescriptor,ME=function(t){return typeof Array.isArray=="function"?Array.isArray(t):fR.call(t)==="[object Array]"},$E=function(t){if(!t||fR.call(t)!=="[object Object]")return!1;var n=hh.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&hh.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var a;for(a in t);return typeof a>"u"||hh.call(t,a)},FE=function(t,n){OE&&n.name==="__proto__"?OE(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},RE=function(t,n){if(n==="__proto__")if(hh.call(t,n)){if(IE)return IE(t,n).value}else return;return t[n]},USe=function e(){var t,n,r,a,i,o,l=arguments[0],c=1,u=arguments.length,d=!1;for(typeof l=="boolean"&&(d=l,l=arguments[1]||{},c=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});c<u;++c)if(t=arguments[c],t!=null)for(n in t)r=RE(l,n),a=RE(t,n),l!==a&&(d&&a&&($E(a)||(i=ME(a)))?(i?(i=!1,o=r&&ME(r)?r:[]):o=r&&$E(r)?r:{},FE(l,{name:n,newValue:e(d,o,a)})):typeof a<"u"&&FE(l,{name:n,newValue:a}));return l};const Ob=Qe(USe);function g2(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function WSe(){const e=[],t={run:n,use:r};return t;function n(...a){let i=-1;const o=a.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...a);function l(c,...u){const d=e[++i];let m=-1;if(c){o(c);return}for(;++m<a.length;)(u[m]===null||u[m]===void 0)&&(u[m]=a[m]);a=u,d?VSe(d,l)(...u):o(null,...u)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function VSe(e,t){let n;return r;function r(...o){const l=e.length>o.length;let c;l&&o.push(a);try{c=e.apply(this,o)}catch(u){const d=u;if(l&&n)throw d;return a(d)}l||(c&&c.then&&typeof c.then=="function"?c.then(i,a):c instanceof Error?a(c):i(c))}function a(o,...l){n||(n=!0,t(o,...l))}function i(o){a(null,o)}}const Ia={basename:HSe,dirname:KSe,extname:GSe,join:QSe,sep:"/"};function HSe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Up(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,l=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1),l>-1&&(e.codePointAt(a)===t.codePointAt(l--)?l<0&&(r=a):(l=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function KSe(e){if(Up(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function GSe(e){Up(e);let t=e.length,n=-1,r=0,a=-1,i=0,o;for(;t--;){const l=e.codePointAt(t);if(l===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),l===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function QSe(...e){let t=-1,n;for(;++t<e.length;)Up(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":YSe(n)}function YSe(e){Up(e);const t=e.codePointAt(0)===47;let n=ZSe(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function ZSe(e,t){let n="",r=0,a=-1,i=0,o=-1,l,c;for(;++o<=e.length;){if(o<e.length)l=e.codePointAt(o);else{if(l===47)break;l=47}if(l===47){if(!(a===o-1||i===1))if(a!==o-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),a=o,i=0;continue}}else if(n.length>0){n="",r=0,a=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),r=o-a-1;a=o,i=0}else l===46&&i>-1?i++:i=-1}return n}function Up(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const XSe={cwd:JSe};function JSe(){return"/"}function v2(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function eje(e){if(typeof e=="string")e=new URL(e);else if(!v2(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return tje(e)}function tje(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const Ib=["history","path","basename","stem","extname","dirname"];class hR{constructor(t){let n;t?v2(t)?n={path:t}:typeof t=="string"||nje(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":XSe.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ib.length;){const i=Ib[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)Ib.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?Ia.basename(this.path):void 0}set basename(t){$b(t,"basename"),Mb(t,"basename"),this.path=Ia.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ia.dirname(this.path):void 0}set dirname(t){DE(this.basename,"dirname"),this.path=Ia.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ia.extname(this.path):void 0}set extname(t){if(Mb(t,"extname"),DE(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ia.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){v2(t)&&(t=eje(t)),$b(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ia.basename(this.path,this.extname):void 0}set stem(t){$b(t,"stem"),Mb(t,"stem"),this.path=Ia.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new En(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Mb(e,t){if(e&&e.includes(Ia.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ia.sep+"`")}function $b(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function DE(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function nje(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const rje=function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,r),i},aje={}.hasOwnProperty;class Oj extends rje{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=WSe()}copy(){const t=new Oj;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Ob(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Db("data",this.frozen),this.namespace[t]=n,this):aje.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Db("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Mf(t),r=this.parser||this.Parser;return Fb("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Fb("process",this.parser||this.Parser),Rb("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,o){const l=Mf(t),c=r.parse(l);r.run(c,l,function(d,m,p){if(d||!m||!p)return u(d);const f=m,g=r.stringify(f,p);sje(g)?p.value=g:p.result=g,u(d,p)});function u(d,m){d||!m?o(d):i?i(m):n(void 0,m)}}}processSync(t){let n=!1,r;return this.freeze(),Fb("processSync",this.parser||this.Parser),Rb("processSync",this.compiler||this.Compiler),this.process(t,a),zE("processSync","process",n),r;function a(i,o){n=!0,TE(i),r=o}}run(t,n,r){LE(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(o,l){const c=Mf(n);a.run(t,c,u);function u(d,m,p){const f=m||t;d?l(d):o?o(f):r(void 0,f,p)}}}runSync(t,n){let r=!1,a;return this.run(t,n,i),zE("runSync","run",r),a;function i(o,l){TE(o),a=l,r=!0}}stringify(t,n){this.freeze();const r=Mf(n),a=this.compiler||this.Compiler;return Rb("stringify",a),LE(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(Db("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(u){if(typeof u=="function")c(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...m]=u;c(d,m)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(u.plugins),u.settings&&(a.settings=Ob(!0,a.settings,u.settings))}function l(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const m=u[d];i(m)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function c(u,d){let m=-1,p=-1;for(;++m<r.length;)if(r[m][0]===u){p=m;break}if(p===-1)r.push([u,...d]);else if(d.length>0){let[f,...g]=d;const h=r[p][1];g2(h)&&g2(f)&&(f=Ob(!0,h,f)),r[p]=[u,f,...g]}}}}const ije=new Oj().freeze();function Fb(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Rb(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Db(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function LE(e){if(!g2(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function zE(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Mf(e){return oje(e)?e:new hR(e)}function oje(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function sje(e){return typeof e=="string"||lje(e)}function lje(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const cje="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",BE=[],qE={allowDangerousHtml:!0},uje=/^(https?|ircs?|mailto|xmpp)$/i,dje=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Pu(e){const t=mje(e),n=pje(e);return fje(t.runSync(t.parse(n),n),e)}function mje(e){const t=e.rehypePlugins||BE,n=e.remarkPlugins||BE,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...qE}:qE;return ije().use(Hke).use(n).use(qSe,r).use(t)}function pje(e){const t=e.children||"",n=new hR;return typeof t=="string"&&(n.value=t),n}function fje(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,i=t.disallowedElements,o=t.skipHtml,l=t.unwrapDisallowed,c=t.urlTransform||hje;for(const d of dje)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+cje+d.id,void 0);return Tj(e,u),C1e(e,{Fragment:s.Fragment,components:a,ignoreInvalidStyle:!0,jsx:s.jsx,jsxs:s.jsxs,passKeys:!0,passNode:!0});function u(d,m,p){if(d.type==="raw"&&p&&typeof m=="number")return o?p.children.splice(m,1):p.children[m]={type:"text",value:d.value},m;if(d.type==="element"){let f;for(f in Cb)if(Object.hasOwn(Cb,f)&&Object.hasOwn(d.properties,f)){const g=d.properties[f],h=Cb[f];(h===null||h.includes(d.tagName))&&(d.properties[f]=c(String(g||""),f,d))}}if(d.type==="element"){let f=n?!n.includes(d.tagName):i?i.includes(d.tagName):!1;if(!f&&r&&typeof m=="number"&&(f=!r(d,m,p)),f&&p&&typeof m=="number")return l&&d.children?p.children.splice(m,1,...d.children):p.children.splice(m,1),m}}}function hje(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||uje.test(e.slice(0,t))?e:""}function UE(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function gje(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function vje(e,t,n){const a=ex((n||{}).ignore||[]),i=yje(t);let o=-1;for(;++o<i.length;)pR(e,"text",l);function l(u,d){let m=-1,p;for(;++m<d.length;){const f=d[m],g=p?p.children:void 0;if(a(f,g?g.indexOf(f):void 0,p))return;p=f}if(p)return c(u,d)}function c(u,d){const m=d[d.length-1],p=i[o][0],f=i[o][1];let g=0;const v=m.children.indexOf(u);let y=!1,x=[];p.lastIndex=0;let b=p.exec(u.value);for(;b;){const w=b.index,k={index:b.index,input:b.input,stack:[...d,u]};let j=f(...b,k);if(typeof j=="string"&&(j=j.length>0?{type:"text",value:j}:void 0),j===!1?p.lastIndex=w+1:(g!==w&&x.push({type:"text",value:u.value.slice(g,w)}),Array.isArray(j)?x.push(...j):j&&x.push(j),g=w+b[0].length,y=!0),!p.global)break;b=p.exec(u.value)}return y?(g<u.value.length&&x.push({type:"text",value:u.value.slice(g)}),m.children.splice(v,1,...x)):x=[u],v+x.length}}function yje(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([xje(a[0]),bje(a[1])])}return t}function xje(e){return typeof e=="string"?new RegExp(gje(e),"g"):e}function bje(e){return typeof e=="function"?e:function(){return e}}const Lb="phrasing",zb=["autolink","link","image","label"];
vendor: 6,642 bytes, lines 928-932
928function wje(){return{transforms:[Nje],enter:{literalAutolink:Sje,literalAutolinkEmail:Bb,literalAutolinkHttp:Bb,literalAutolinkWww:Bb},exit:{literalAutolink:_je,literalAutolinkEmail:Aje,literalAutolinkHttp:jje,literalAutolinkWww:Pje}}}function kje(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Lb,notInConstruct:zb},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Lb,notInConstruct:zb},{character:":",before:"[ps]",after:"\\/",inConstruct:Lb,notInConstruct:zb}]}}function Sje(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Bb(e){this.config.enter.autolinkProtocol.call(this,e)}function jje(e){this.config.exit.autolinkProtocol.call(this,e)}function Pje(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Aje(e){this.config.exit.autolinkEmail.call(this,e)}function _je(e){this.exit(e)}function Nje(e){vje(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Cje],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Eje]],{ignore:["link","linkReference"]})}function Cje(e,t,n,r,a){let i="";if(!gR(a)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!Tje(n)))return!1;const o=Oje(n+r);if(!o[0])return!1;const l={type:"link",title:null,url:i+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function Eje(e,t,n,r){return!gR(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Tje(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Oje(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=UE(e,"(");let i=UE(e,")");for(;r!==-1&&a>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}function gR(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Xs(n)||Zy(n))&&(!t||n!==47)}vR.peek=Bje;function Ije(){this.buffer()}function Mje(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function $je(){this.buffer()}function Fje(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Rje(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ya(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Dje(e){this.exit(e)}function Lje(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ya(this.sliceSerialize(e)).toLowerCase(),n.label=t}function zje(e){this.exit(e)}function Bje(){return"["}function vR(e,t,n,r){const a=n.createTracker(r);let i=a.move("[^");const o=n.enter("footnoteReference"),l=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{after:"]",before:i})),l(),o(),i+=a.move("]"),i}function qje(){return{enter:{gfmFootnoteCallString:Ije,gfmFootnoteCall:Mje,gfmFootnoteDefinitionLabelString:$je,gfmFootnoteDefinition:Fje},exit:{gfmFootnoteCallString:Rje,gfmFootnoteCall:Dje,gfmFootnoteDefinitionLabelString:Lje,gfmFootnoteDefinition:zje}}}function Uje(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:vR},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,i,o){const l=i.createTracker(o);let c=l.move("[^");const u=i.enter("footnoteDefinition"),d=i.enter("label");return c+=l.move(i.safe(i.associationId(r),{before:c,after:"]"})),d(),c+=l.move("]:"),r.children&&r.children.length>0&&(l.shift(4),c+=l.move((t?` 929`:" ")+i.indentLines(i.containerFlow(r,l.current()),t?yR:Wje))),u(),c}}function Wje(e,t,n){return t===0?e:yR(e,t,n)}function yR(e,t,n){return(n?"":" ")+e}const Vje=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];xR.peek=Yje;function Hje(){return{canContainEols:["delete"],enter:{strikethrough:Gje},exit:{strikethrough:Qje}}}function Kje(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Vje}],handlers:{delete:xR}}}function Gje(e){this.enter({type:"delete",children:[]},e)}function Qje(e){this.exit(e)}function xR(e,t,n,r){const a=n.createTracker(r),i=n.enter("strikethrough");let o=a.move("~~");return o+=n.containerPhrasing(e,{...a.current(),before:o,after:"~"}),o+=a.move("~~"),i(),o}function Yje(){return"~"}function Zje(e){return e.length}function Xje(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||Zje,i=[],o=[],l=[],c=[];let u=0,d=-1;for(;++d<e.length;){const h=[],v=[];let y=-1;for(e[d].length>u&&(u=e[d].length);++y<e[d].length;){const x=Jje(e[d][y]);if(n.alignDelimiters!==!1){const b=a(x);v[y]=b,(c[y]===void 0||b>c[y])&&(c[y]=b)}h.push(x)}o[d]=h,l[d]=v}let m=-1;if(typeof r=="object"&&"length"in r)for(;++m<u;)i[m]=WE(r[m]);else{const h=WE(r);for(;++m<u;)i[m]=h}m=-1;const p=[],f=[];for(;++m<u;){const h=i[m];let v="",y="";h===99?(v=":",y=":"):h===108?v=":":h===114&&(y=":");let x=n.alignDelimiters===!1?1:Math.max(1,c[m]-v.length-y.length);const b=v+"-".repeat(x)+y;n.alignDelimiters!==!1&&(x=v.length+x+y.length,x>c[m]&&(c[m]=x),f[m]=x),p[m]=b}o.splice(1,0,p),l.splice(1,0,f),d=-1;const g=[];for(;++d<o.length;){const h=o[d],v=l[d];m=-1;const y=[];for(;++m<u;){const x=h[m]||"";let b="",w="";if(n.alignDelimiters!==!1){const k=c[m]-(v[m]||0),j=i[m];j===114?b=" ".repeat(k):j===99?k%2?(b=" ".repeat(k/2+.5),w=" ".repeat(k/2-.5)):(b=" ".repeat(k/2),w=b):w=" ".repeat(k)}n.delimiterStart!==!1&&!m&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&x==="")&&(n.delimiterStart!==!1||m)&&y.push(" "),n.alignDelimiters!==!1&&y.push(b),y.push(x),n.alignDelimiters!==!1&&y.push(w),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||m!==u-1)&&y.push("|")}g.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return g.join(` 930`)}function Jje(e){return e==null?"":String(e)}function WE(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function ePe(e,t,n,r){const a=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const o=n.indentLines(n.containerFlow(e,i.current()),tPe);return a(),o}function tPe(e,t,n){return">"+(n?"":" ")+e}function nPe(e,t){return VE(e,t.inConstruct,!0)&&!VE(e,t.notInConstruct,!1)}function VE(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function HE(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===` 931`&&nPe(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\ 932`}
vendor: 6,155 bytes, lines 932-941
932function rPe(e,t){const n=String(e);let r=n.indexOf(t),a=r,i=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++i>o&&(o=i):i=1,a=r+t.length,r=n.indexOf(t,a);return o}function aPe(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function iPe(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function oPe(e,t,n,r){const a=iPe(n),i=e.value||"",o=a==="`"?"GraveAccent":"Tilde";if(aPe(e,n)){const m=n.enter("codeIndented"),p=n.indentLines(i,sPe);return m(),p}const l=n.createTracker(r),c=a.repeat(Math.max(rPe(i,a)+1,3)),u=n.enter("codeFenced");let d=l.move(c);if(e.lang){const m=n.enter(`codeFencedLang${o}`);d+=l.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...l.current()})),m()}if(e.lang&&e.meta){const m=n.enter(`codeFencedMeta${o}`);d+=l.move(" "),d+=l.move(n.safe(e.meta,{before:d,after:` 933`,encode:["`"],...l.current()})),m()}return d+=l.move(` 934`),i&&(d+=l.move(i+` 935`)),d+=l.move(c),u(),d}function sPe(e,t,n){return(n?"":" ")+e}function Ij(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function lPe(e,t,n,r){const a=Ij(n),i=a==='"'?"Quote":"Apostrophe",o=n.enter("definition");let l=n.enter("label");const c=n.createTracker(r);let u=c.move("[");return u+=c.move(n.safe(n.associationId(e),{before:u,after:"]",...c.current()})),u+=c.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(n.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(l=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":` 936`,...c.current()}))),l(),e.title&&(l=n.enter(`title${i}`),u+=c.move(" "+a),u+=c.move(n.safe(e.title,{before:u,after:a,...c.current()})),u+=c.move(a),l()),o(),u}function cPe(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function np(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ov(e,t,n){const r=Wc(e),a=Wc(t);return r===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}bR.peek=uPe;function bR(e,t,n,r){const a=cPe(n),i=n.enter("emphasis"),o=n.createTracker(r),l=o.move(a);let c=o.move(n.containerPhrasing(e,{after:a,before:l,...o.current()}));const u=c.charCodeAt(0),d=ov(r.before.charCodeAt(r.before.length-1),u,a);d.inside&&(c=np(u)+c.slice(1));const m=c.charCodeAt(c.length-1),p=ov(r.after.charCodeAt(0),m,a);p.inside&&(c=c.slice(0,-1)+np(m));const f=o.move(a);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:d.outside},l+c+f}function uPe(e,t,n){return n.options.emphasis||"*"}function dPe(e,t){let n=!1;return Tj(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,f2}),!!((!e.depth||e.depth<3)&&jj(e)&&(t.options.setext||n))}function mPe(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(dPe(e,n)){const d=n.enter("headingSetext"),m=n.enter("phrasing"),p=n.containerPhrasing(e,{...i.current(),before:` 937`,after:` 938`});return m(),d(),p+` 939`+(a===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(` 940`))+1))}const o="#".repeat(a),l=n.enter("headingAtx"),c=n.enter("phrasing");i.move(o+" ");let u=n.containerPhrasing(e,{before:"# ",after:` 941`,...i.current()});return/^[\t ]/.test(u)&&(u=np(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),c(),l(),u}wR.peek=pPe;function wR(e){return e.value||""}function pPe(){return"<"}kR.peek=fPe;function kR(e,t,n,r){const a=Ij(n),i=a==='"'?"Quote":"Apostrophe",o=n.enter("image");let l=n.enter("label");const c=n.createTracker(r);let u=c.move("![");return u+=c.move(n.safe(e.alt,{before:u,after:"]",...c.current()})),u+=c.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(n.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(l=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":")",...c.current()}))),l(),e.title&&(l=n.enter(`title${i}`),u+=c.move(" "+a),u+=c.move(n.safe(e.title,{before:u,after:a,...c.current()})),u+=c.move(a),l()),u+=c.move(")"),o(),u}function fPe(){return"!"}SR.peek=hPe;function SR(e,t,n,r){const a=e.referenceType,i=n.enter("imageReference");let o=n.enter("label");const l=n.createTracker(r);let c=l.move("![");const u=n.safe(e.alt,{before:c,after:"]",...l.current()});c+=l.move(u+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const m=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return o(),n.stack=d,i(),a==="full"||!u||u!==m?c+=l.move(m+"]"):a==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function hPe(){return"!"}jR.peek=gPe;function jR(e,t,n){let r=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const o=n.unsafe[i],l=n.compilePattern(o);let c;if(o.atBreak)for(;c=l.exec(r);){let u=c.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(c.index+1)}}return a+r+a}function gPe(){return"`"}function PR(e,t){const n=jj(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}AR.peek=vPe;function AR(e,t,n,r){const a=Ij(n),i=a==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let l,c;if(PR(e,n)){const d=n.stack;n.stack=[],l=n.enter("autolink");let m=o.move("<");return m+=o.move(n.containerPhrasing(e,{before:m,after:">",...o.current()})),m+=o.move(">
941"),l(),n.stack=d,m}l=n.enter("link"),c=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(c=n.enter("destinationRaw"),u+=o.move(n.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),c(),e.title&&(c=n.enter(`title${i}`),u+=o.move(" "+a),u+=o.move(n.safe(e.title,{before:u,after:a,...o.current()})),u+=o.move(a),c()),u+=o.move(")"),l(),u}function vPe(e,t,n){return PR(e,n)?"<":"["}_R.peek=yPe;function _R(e,t,n,r){const a=e.referenceType,i=n.enter("linkReference");let o=n.enter("label");const l=n.createTracker(r);let c=l.move("[");const u=n.containerPhrasing(e,{before:c,after:"]",...l.current()});c+=l.move(u+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const m=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return o(),n.stack=d,i(),a==="full"||!u||u!==m?c+=l.move(m+"]"):a==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function yPe(){return"["}function Mj(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function xPe(e){const t=Mj(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function bPe(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function NR(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function wPe(e,t,n,r){const a=n.enter("list"),i=n.bulletCurrent;let o=e.ordered?bPe(n):Mj(n);const l=e.ordered?o==="."?")":".":xPe(n);let c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),NR(n)===o&&d){let m=-1;for(;++m<e.children.length;){const p=e.children[m];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(o=l),n.bulletCurrent=o;const u=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=i,a(),u}function kPe(e){const t=e.options.listItemIndent||"one";
vendor: 5,972 bytes, lines 941-943
941if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function SPe(e,t,n,r){const a=kPe(n);let i=n.bulletCurrent||Mj(n);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let o=i.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const l=n.createTracker(r);l.move(i+" ".repeat(o-i.length)),l.shift(o);const c=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,l.current()),d);return c(),u;function d(m,p,f){return p?(f?"":" ".repeat(o))+m:(f?i:i+" ".repeat(o-i.length))+m}}function jPe(e,t,n,r){const a=n.enter("paragraph"),i=n.enter("phrasing"),o=n.containerPhrasing(e,r);return i(),a(),o}const PPe=ex(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function APe(e,t,n,r){return(e.children.some(function(o){return PPe(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function _Pe(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}CR.peek=NPe;function CR(e,t,n,r){const a=_Pe(n),i=n.enter("strong"),o=n.createTracker(r),l=o.move(a+a);let c=o.move(n.containerPhrasing(e,{after:a,before:l,...o.current()}));const u=c.charCodeAt(0),d=ov(r.before.charCodeAt(r.before.length-1),u,a);d.inside&&(c=np(u)+c.slice(1));const m=c.charCodeAt(c.length-1),p=ov(r.after.charCodeAt(0),m,a);p.inside&&(c=c.slice(0,-1)+np(m));const f=o.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:d.outside},l+c+f}function NPe(e,t,n){return n.options.strong||"*"}function CPe(e,t,n,r){return n.safe(e.value,r)}function EPe(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function TPe(e,t,n){const r=(NR(n)+(n.options.ruleSpaces?" ":"")).repeat(EPe(n));return n.options.ruleSpaces?r.slice(0,-1):r}const ER={blockquote:ePe,break:HE,code:oPe,definition:lPe,emphasis:bR,hardBreak:HE,heading:mPe,html:wR,image:kR,imageReference:SR,inlineCode:jR,link:AR,linkReference:_R,list:wPe,listItem:SPe,paragraph:jPe,root:APe,strong:CR,text:CPe,thematicBreak:TPe};function OPe(){return{enter:{table:IPe,tableData:KE,tableHeader:KE,tableRow:$Pe},exit:{codeText:FPe,table:MPe,tableData:qb,tableHeader:qb,tableRow:qb}}}function IPe(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function MPe(e){this.exit(e),this.data.inTable=void 0}function $Pe(e){this.enter({type:"tableRow",children:[]},e)}function qb(e){this.exit(e)}function KE(e){this.enter({type:"tableCell",children:[]},e)}function FPe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,RPe));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function RPe(e,t){return t==="|"?t:e}function DPe(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` 942`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:c,tableRow:l}};function o(f,g,h,v){return u(d(f,h,v),f.align)}function l(f,g,h,v){const y=m(f,h,v),x=u([y]);return x.slice(0,x.indexOf(` 943`))}function c(f,g,h,v){const y=h.enter("tableCell"),x=h.enter("phrasing"),b=h.containerPhrasing(f,{...v,before:i,after:i});return x(),y(),b}function u(f,g){return Xje(f,{align:g,alignDelimiters:r,padding:n,stringLength:a})}function d(f,g,h){const v=f.children;let y=-1;const x=[],b=g.enter("table");for(;++y<v.length;)x[y]=m(v[y],g,h);return b(),x}function m(f,g,h){const v=f.children;let y=-1;const x=[],b=g.enter("tableRow");for(;++y<v.length;)x[y]=c(v[y],f,g,h);return b(),x}function p(f,g,h){let v=ER.inlineCode(f,g,h);return h.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function LPe(){return{exit:{taskListCheckValueChecked:GE,taskListCheckValueUnchecked:GE,paragraph:BPe}}}function zPe(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:qPe}}}function GE(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function BPe(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let i=-1,o;for(;++i<a.length;){const l=a[i];if(l.type==="paragraph"){o=l;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function qPe(e,t,n,r){const a=e.children[0],i=typeof e.checked=="boolean"&&a&&a.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);i&&l.move(o);let c=ER.listItem(e,t,n,{...r,...l.current()});return i&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),c;function u(d){return d+o}}function UPe(){return[wje(),qje(),Hje(),OPe(),LPe()]}function WPe(e){return{extensions:[kje(),Uje(e),Kje(),DPe(e),zPe()]}}const VPe={tokenize:ZPe,partial:!0},TR={tokenize:XPe,partial:!0},OR={tokenize:JPe,partial:!0},IR={tokenize:e4e,partial:!0},HPe={tokenize:t4e,partial:!0},MR={name:"wwwAutolink",tokenize:QPe,previous:FR},$R={name:"protocolAutolink",tokenize:YPe,previous:RR},Gi={name:"emailAutolink",tokenize:GPe,previous:DR},ii={};function KPe(){return{text:ii}}let is=48;
vendor: 8,965 bytes, line 943
943for(;is<123;)ii[is]=Gi,is++,is===58?is=65:is===91&&(is=97);ii[43]=Gi;ii[45]=Gi;ii[46]=Gi;ii[95]=Gi;ii[72]=[Gi,$R];ii[104]=[Gi,$R];ii[87]=[Gi,MR];ii[119]=[Gi,MR];function GPe(e,t,n){const r=this;let a,i;return o;function o(m){return!y2(m)||!DR.call(r,r.previous)||$j(r.events)?n(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(m))}function l(m){return y2(m)?(e.consume(m),l):m===64?(e.consume(m),c):n(m)}function c(m){return m===46?e.check(HPe,d,u)(m):m===45||m===95||An(m)?(i=!0,e.consume(m),c):d(m)}function u(m){return e.consume(m),a=!0,c}function d(m){return i&&a&&Ln(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(m)):n(m)}}function QPe(e,t,n){const r=this;return a;function a(o){return o!==87&&o!==119||!FR.call(r,r.previous)||$j(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(VPe,e.attempt(TR,e.attempt(OR,i),n),n)(o))}function i(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function YPe(e,t,n){const r=this;let a="",i=!1;return o;function o(m){return(m===72||m===104)&&RR.call(r,r.previous)&&!$j(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(m),e.consume(m),l):n(m)}function l(m){if(Ln(m)&&a.length<5)return a+=String.fromCodePoint(m),e.consume(m),l;if(m===58){const p=a.toLowerCase();if(p==="http"||p==="https")return e.consume(m),c}return n(m)}function c(m){return m===47?(e.consume(m),i?u:(i=!0,c)):n(m)}function u(m){return m===null||rv(m)||ut(m)||Xs(m)||Zy(m)?n(m):e.attempt(TR,e.attempt(OR,d),n)(m)}function d(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(m)}}function ZPe(e,t,n){let r=0;return a;function a(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),a):o===46&&r===3?(e.consume(o),i):n(o)}function i(o){return o===null?n(o):t(o)}}function XPe(e,t,n){let r,a,i;return o;function o(u){return u===46||u===95?e.check(IR,c,l)(u):u===null||ut(u)||Xs(u)||u!==45&&Zy(u)?c(u):(i=!0,e.consume(u),o)}function l(u){return u===95?r=!0:(a=r,r=void 0),e.consume(u),o}function c(u){return a||r||!i?n(u):t(u)}}function JPe(e,t){let n=0,r=0;return a;function a(o){return o===40?(n++,e.consume(o),a):o===41&&r<n?i(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(IR,t,i)(o):o===null||ut(o)||Xs(o)?t(o):(e.consume(o),a)}function i(o){return o===41&&r++,e.consume(o),a}}function e4e(e,t,n){return r;function r(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),r):l===38?(e.consume(l),i):l===93?(e.consume(l),a):l===60||l===null||ut(l)||Xs(l)?t(l):n(l)}function a(l){return l===null||l===40||l===91||ut(l)||Xs(l)?t(l):r(l)}function i(l){return Ln(l)?o(l):n(l)}function o(l){return l===59?(e.consume(l),r):Ln(l)?(e.consume(l),o):n(l)}}function t4e(e,t,n){return r;function r(i){return e.consume(i),a}function a(i){return An(i)?n(i):t(i)}}function FR(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ut(e)}function RR(e){return!Ln(e)}function DR(e){return!(e===47||y2(e))}function y2(e){return e===43||e===45||e===46||e===95||An(e)}function $j(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const n4e={tokenize:u4e,partial:!0};function r4e(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:s4e,continuation:{tokenize:l4e},exit:c4e}},text:{91:{name:"gfmFootnoteCall",tokenize:o4e},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:a4e,resolveTo:i4e}}}}function a4e(e,t,n){const r=this;let a=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;a--;){const c=r.events[a][1];if(c.type==="labelImage"){o=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return l;function l(c){if(!o||!o._balanced)return n(c);const u=ya(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function i4e(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function o4e(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,o;return l;function l(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),c}function c(m){return m!==94?n(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(m){if(i>999||m===93&&!o||m===null||m===91||ut(m))return n(m);if(m===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return a.includes(ya(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(m)}return ut(m)||(o=!0),i++,e.consume(m),m===92?d:u}function d(m){return m===91||m===92||m===93?(e.consume(m),i++,u):u(m)}}function s4e(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,o=0,l;return c;function c(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(g)}function d(g){if(o>999||g===93&&!l||g===null||g===91||ut(g))return n(g);if(g===93){e.exit("chunkString");const h=e.exit("gfmFootnoteDefinitionLabelString");return i=ya(r.sliceSerialize(h)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return ut(g)||(l=!0),o++,e.consume(g),g===92?m:d}function m(g){return g===91||g===92||g===93?(e.consume(g),o++,d):d(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),a.includes(i)||a.push(i),Ke(e,f,"gfmFootnoteDefinitionWhitespace")):n(g)}function f(g){return t(g)}}function l4e(e,t,n){return e.check(qp,t,e.attempt(n4e,t,n))}function c4e(e){e.exit("gfmFootnoteDefinition")}function u4e(e,t,n){const r=this;return Ke(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(i):n(i)}}function d4e(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(o,l){let c=-1;for(;++c<o.length;)if(o[c][0]==="enter"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._close){let u=c;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[c][1].end.offset-o[c][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[c][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[c][1].end)},m={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[c][1].start)},p=[["enter",d,l],["enter",o[u][1],l],["exit",o[u][1],l],["enter",m,l]],f=l.parser.constructs.insideSpan.null;f&&kr(p,p.length,0,Xy(f,o.slice(u+1,c),l)),kr(p,p.length,0,[["exit",m,l],["enter",o[c][1],l],["exit",o[c][1],l],["exit",d,l]]),kr(o,u-1,c-u+3,p),c=u+p.length-2;break}}for(c=-1;++c<o.length;)o[c][1].type==="strikethroughSequenceTemporary"&&(o[c][1].type="data");return o}function i(o,l,c){const u=this.previous,d=this.events;let m=0;return p;function p(g){return u===126&&d[d.length-1][1].type!=="characterEscape"?c(g):(o.enter("strikethroughSequenceTemporary"),f(g))}function f(g){const h=Wc(u);if(g===126)return m>1?c(g):(o.consume(g),m++,f);
vendor: 6,582 bytes, line 943
943if(m<2&&!n)return c(g);const v=o.exit("strikethroughSequenceTemporary"),y=Wc(g);return v._open=!y||y===2&&!!h,v._close=!h||h===2&&!!y,l(g)}}}class m4e{constructor(){this.map=[]}add(t,n,r){p4e(this,t,n,r)}consume(t){if(this.map.sort(function(i,o){return i[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const i of a)t.push(i);a=r.pop()}this.map.length=0}}function p4e(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function f4e(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function h4e(){return{flow:{null:{name:"table",tokenize:g4e,resolveAll:v4e}}}}function g4e(e,t,n){const r=this;let a=0,i=0,o;return l;function l(N){let C=r.events.length-1;for(;C>-1;){const O=r.events[C][1].type;if(O==="lineEnding"||O==="linePrefix")C--;else break}const E=C>-1?r.events[C][1].type:null,T=E==="tableHead"||E==="tableRow"?j:c;return T===j&&r.parser.lazy[r.now().line]?n(N):T(N)}function c(N){return e.enter("tableHead"),e.enter("tableRow"),u(N)}function u(N){return N===124||(o=!0,i+=1),d(N)}function d(N){return N===null?n(N):Pe(N)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),f):n(N):Ue(N)?Ke(e,d,"whitespace")(N):(i+=1,o&&(o=!1,a+=1),N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),o=!0,d):(e.enter("data"),m(N)))}function m(N){return N===null||N===124||ut(N)?(e.exit("data"),d(N)):(e.consume(N),N===92?p:m)}function p(N){return N===92||N===124?(e.consume(N),m):m(N)}function f(N){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(N):(e.enter("tableDelimiterRow"),o=!1,Ue(N)?Ke(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):g(N))}function g(N){return N===45||N===58?v(N):N===124?(o=!0,e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),h):k(N)}function h(N){return Ue(N)?Ke(e,v,"whitespace")(N):v(N)}function v(N){return N===58?(i+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),y):N===45?(i+=1,y(N)):N===null||Pe(N)?w(N):k(N)}function y(N){return N===45?(e.enter("tableDelimiterFiller"),x(N)):k(N)}function x(N){return N===45?(e.consume(N),x):N===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(N))}function b(N){return Ue(N)?Ke(e,w,"whitespace")(N):w(N)}function w(N){return N===124?g(N):N===null||Pe(N)?!o||a!==i?k(N):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(N)):k(N)}function k(N){return n(N)}function j(N){return e.enter("tableRow"),A(N)}function A(N){return N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),A):N===null||Pe(N)?(e.exit("tableRow"),t(N)):Ue(N)?Ke(e,A,"whitespace")(N):(e.enter("data"),P(N))}function P(N){return N===null||N===124||ut(N)?(e.exit("data"),A(N)):(e.consume(N),N===92?_:P)}function _(N){return N===92||N===124?(e.consume(N),P):P(N)}}function v4e(e,t){let n=-1,r=!0,a=0,i=[0,0,0,0],o=[0,0,0,0],l=!1,c=0,u,d,m;const p=new m4e;for(;++n<e.length;){const f=e[n],g=f[1];f[0]==="enter"?g.type==="tableHead"?(l=!1,c!==0&&(QE(p,t,c,u,d),d=void 0,c=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",u,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,m=void 0,i=[0,0,0,0],o=[0,n+1,0,0],l&&(l=!1,d={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",d,t]])),a=g.type==="tableDelimiterRow"?2:d?3:1):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(i[1]!==0&&(o[0]=o[1],m=$f(p,t,i,a,void 0,m),i=[0,0,0,0]),o[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(o[0]=o[1],m=$f(p,t,i,a,void 0,m)),i=o,o=[i[1],n,0,0])):g.type==="tableHead"?(l=!0,c=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(c=n,i[1]!==0?(o[0]=o[1],m=$f(p,t,i,a,n,m)):o[1]!==0&&(m=$f(p,t,o,a,n,m)),a=0):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(o[3]=n)}for(c!==0&&QE(p,t,c,u,d),p.consume(t.events),n=-1;++n<t.events.length;){const f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=f4e(t.events,n))}return e}function $f(e,t,n,r,a,i){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(i.end=Object.assign({},kl(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const c=kl(t.events,n[1]);if(i={type:o,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const u=kl(t.events,n[2]),d=kl(t.events,n[3]),m={type:l,start:Object.assign({},u),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",m,t]]),r!==2){const p=t.events[n[2]],f=t.events[n[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,h=n[3]-n[2]-1;e.add(g,h,[])}}e.add(n[3]+1,0,[["exit",m,t]])}return a!==void 0&&(i.end=Object.assign({},kl(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function QE(e,t,n,r,a){const i=[],o=kl(t.events,n);a&&(a.end=Object.assign({},o),i.push(["exit",a,t])),r.end=Object.assign({},o),i.push(["exit",r,t]),e.add(n+1,0,i)}function kl(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const y4e={name:"tasklistCheck",tokenize:b4e};function x4e(){return{text:{91:y4e}}}function b4e(e,t,n){const r=this;return a;function a(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),i)}function i(c){return ut(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),o):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),o):n(c)}function o(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(c)}function l(c){return Pe(c)?t(c):Ue(c)?e.check({tokenize:w4e},t,n)(c):n(c)}}
943function w4e(e,t,n){return Ke(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function k4e(e){return KF([KPe(),r4e(),d4e(e),h4e(),x4e()])}const S4e={};function Au(e){const t=this,n=e||S4e,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(k4e(n)),i.push(UPe()),o.push(WPe(n))}const j4e=e=>{if(!e)return"";let t=e;for(let n=0;n<3;n++){const r=t.replace(/\\\\/g,"\\");if(r===t)break;t=r}return t.replace(/\\n/g,` 944`).replace(/\\t/g," ")},Ju=({children:e})=>s.jsx("div",{className:"prose prose-invert max-w-none prose-headings:text-white prose-p:text-white/70 prose-p:leading-relaxed prose-a:text-[#F4845F] prose-strong:text-white prose-li:text-white/70 prose-blockquote:border-[#F4845F] prose-blockquote:text-white/80",children:s.jsx(Pu,{remarkPlugins:[Au],components:{a:({node:t,...n})=>s.jsx("a",{...n,target:"_blank",rel:"noopener noreferrer"})},children:j4e(e)})}),li="https://infinity6.ai",P4e=e=>{const t=e.split(" ")[0],n=e.split(" ").slice(1).join(" ");return{value:t,label:n}},A4e=()=>{const{slug:e}=Wi(),{language:t}=be(),n=wt(),{stories:r,loading:a}=lj();if(a)return s.jsx("div",{className:"container mx-auto px-4 pt-32 pb-20 flex justify-center",children:s.jsx("div",{className:"animate-spin rounded-full h-16 w-16 border-b-2 border-[#F4845F]"})});const i=r.find(d=>d.slug===e);if(!i)return s.jsx(Rn,{to:n("/success-stories"),replace:!0});const o=`${li}/${t}/success-stories/${i.slug}`,l=[i.metric1,i.metric2,i.metric3].filter(d=>d&&d.trim()!=="-"&&d.trim()!=="").map(P4e),c={back:t==="pt"?"Voltar para Histórias":"Back to Stories",pain:t==="pt"?"A DOR REAL":"THE REAL PAIN",anticipate:t==="pt"?"O QUE PRECISAVA SER ANTECIPADO":"WHAT NEEDED TO BE ANTICIPATED",prediction:t==="pt"?"A PREDIÃÃO":"THE PREDICTION",solution:t==="pt"?"A SOLUÃÃO":"THE SOLUTION",appliedSolutions:t==="pt"?"ALAVANCAS DE VALOR":"VALUE LEVERS",appliedSolutionsHint:t==="pt"?"Clique para conhecer as soluções aplicadas":"Click to explore the applied solutions",results:t==="pt"?"IMPACTO COMPROVADO":"PROVEN IMPACT",about:t==="pt"?"Sobre o Cliente":"About the Client",related:t==="pt"?"Outras Histórias":"Other Stories"},u=r.filter(d=>d.slug!==i.slug).slice(0,3);return s.jsxs(s.Fragment,{children:[s.jsxs(Na,{children:[s.jsx("html",{lang:t==="pt"?"pt-BR":"en"}),s.jsx("title",{children:`${i.title} | infinity6`}),i.description&&s.jsx("meta",{name:"description",content:i.description}),s.jsx("link",{rel:"canonical",href:o}),s.jsx("link",{rel:"alternate",hrefLang:"en",href:`${li}/en/success-stories/${i.slug}`}),s.jsx("link",{rel:"alternate",hrefLang:"pt-BR",href:`${li}/pt/success-stories/${i.slug}`}),s.jsx("link",{rel:"alternate",hrefLang:"x-default",href:`${li}/en/success-stories/${i.slug}`}),s.jsx("meta",{property:"og:type",content:"article"}),s.jsx("meta",{property:"og:title",content:i.title}),i.description&&s.jsx("meta",{property:"og:description",content:i.description}),s.jsx("meta",{property:"og:url",content:o}),i.image&&s.jsx("meta",{property:"og:image",content:i.image.startsWith("http")?i.image:`${li}${i.image}`}),s.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Article",headline:i.title,...i.description?{description:i.description}:{},author:{"@type":"Organization",name:"infinity6"},publisher:{"@type":"Organization",name:"infinity6",logo:{"@type":"ImageObject",url:`${li}/lovable-uploads/0fce52e4-a161-4d37-b3e4-f23f093b9b75.png`}},mainEntityOfPage:o,about:i.client,articleSection:i.segment,...i.image?{image:i.image.startsWith("http")?i.image:`${li}${i.image}`}:{}})}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${li}/${t}`},{"@type":"ListItem",position:2,name:t==="pt"?"Histórias de Sucesso":"Success Stories",item:`${li}/${t}/success-stories`},{"@type":"ListItem",position:3,name:i.title,item:o}]})})]}),s.jsxs("article",{className:"container mx-auto px-6 pt-32 pb-12 max-w-4xl",children:[s.jsxs(Ee,{to:n("/success-stories"),className:"inline-flex items-center gap-2 text-sm text-white/60 hover:text-[#F4845F] mb-8 transition-colors",children:[s.jsx(Ws,{size:16})," ",c.back]}),s.jsx("div",{className:"relative left-1/2 right-1/2 -mx-[50vw] w-screen overflow-hidden mb-12",children:s.jsxs("div",{className:"relative h-[420px] md:h-[560px]",children:[i.image&&s.jsx("img",{src:i.image,alt:i.title,className:"absolute inset-0 w-full h-full object-cover filter brightness-[0.7] saturate-[0.85] contrast-[1.05]"}),s.jsx("div",{className:"absolute inset-0 bg-[#0B1224]/35"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-[#0B1224]/40 to-[#0B1224]"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-[#0B1224]/50 via-trans
944parent to-[#0B1224]/50"}),s.jsxs("div",{className:"relative h-full container mx-auto max-w-4xl px-6 flex flex-col justify-end pb-8 md:pb-12",children:[!i.clientAnon&&i.logo&&s.jsx("img",{src:i.logo,alt:`${i.client} logo`,className:"self-start h-10 md:h-12 w-auto object-contain object-left mb-4 brightness-0 invert opacity-80"}),s.jsxs("p",{className:"text-xs uppercase tracking-[0.3em] text-[#F4845F] mb-4 inline-flex items-center gap-2",children:[s.jsx(MB,{className:"w-3 h-3"})," infinity6 · ",i.segment]}),s.jsx("h1",{className:"text-3xl md:text-5xl font-bold text-white mb-3 leading-[1.1] tracking-tight",children:i.title}),s.jsx("p",{className:"text-lg md:text-xl text-white/85 mb-2 leading-relaxed max-w-2xl",children:i.client}),i.description&&s.jsx("p",{className:"text-sm md:text-base text-white/70 leading-relaxed max-w-2xl",children:i.description})]})]})}),l.length>0&&s.jsxs("section",{className:"mb-12",children:[s.jsx("h2",{className:"text-xs uppercase tracking-[0.25em] text-[#F4845F] mb-6 font-semibold",children:c.results}),s.jsx("div",{className:`grid gap-4 ${l.length===1?"grid-cols-1":l.length===2?"grid-cols-1 md:grid-cols-2":"grid-cols-1 md:grid-cols-3"}`,children:l.map((d,m)=>s.jsxs("div",{className:"p-6 bg-white/5 rounded-xl border border-white/10 text-center",children:[s.jsx("div",{className:"text-2xl md:text-3xl font-semibold text-[#F4845F] mb-2",children:d.value}),s.jsx("div",{className:"text-sm text-white/60",children:d.label})]},m))})]}),s.jsxs("div",{className:"space-y-10 mb-12",children:[i.challenge&&s.jsxs("section",{children:[s.jsx("p",{className:"text-xs uppercase tracking-[0.25em] text-[#F4845F] mb-3 font-semibold",children:c.pain}),s.jsx(Ju,{children:i.challenge})]}),i.whatToAnticipate&&s.jsxs("section",{children:[s.jsx("p",{className:"text-xs uppercase tracking-[0.25em] text-[#F4845F] mb-3 font-semibold",children:c.anticipate}),s.jsx(Ju,{children:i.whatToAnticipate})]}),i.prediction&&s.jsxs("section",{children:[s.jsx("p",{className:"text-xs uppercase tracking-[0.25em] text-[#F4845F] mb-3 font-semibold",children:c.prediction}),s.jsx(Ju,{children:i.prediction})]}),i.solution&&s.jsxs("section",{children:[s.jsx("p",{className:"text-xs uppercase tracking-[0.25em] text-[#F4845F] mb-3 font-semibold",children:c.solution}),s.jsx(Ju,{children:i.solution})]})]}),i.solutions&&i.solutions.length>0&&s.jsx("section",{className:"mb-12",children:s.jsxs("div",{className:"rounded-xl border border-white/10 bg-white/5 p-6",children:[s.jsx("h2",{className:"text-xs uppercase tracking-[0.25em] text-[#F4845F] mb-2 font-semibold",children:c.appliedSolutions}),s.jsx("p",{className:"text-sm text-white/60 mb-5",children:c.appliedSolutionsHint}),(()=>{const d=i.solutions.length,m=f=>f===1?"grid-cols-1":f===2||f===4?"grid-cols-1 sm:grid-cols-2":f>=8?"grid-cols-1 sm:grid-cols-2 md:grid-cols-4":"grid-cols-1 sm:grid-cols-2 md:grid-cols-3",p="w-full min-h-[44px] px-4 py-2 rounded-full border text-sm flex items-center justify-center text-center transition-colors";return s.jsx("div",{className:`grid gap-3 ${m(d)} ${d===1?"max-w-sm mx-auto":""} justify-items-center`,children:i.solutions.map((f,g)=>f.slug?s.jsx(Ee,{to:n(`/solutions#territory-${f.slug}`),className:`${p} bg-[#F4845F]/10 border-[#F4845F]/30 text-white/80 hover:bg-[#F4845F]/20 hover:border-[#F4845F]/60 hover:text-white`,children:f.label},g):s.jsx("span",{className:`${p} bg-[#F4845F]/10 border-[#F4845F]/30 text-white/80`,children:f.label},g))})})()]})}),i.quote&&s.jsxs("section",{className:"mb-12 p-8 rounded-xl bg-white/5 border border-white/10",children:[s.jsx(Fl,{className:"w-8 h-8 text-[#F4845F] mb-4"}),s.jsx("div",{className:"text-lg md:text-xl text-white/85 italic mb-4 [&_p]:text-white/85 [&_p]:italic",children:s.jsx(Ju,{children:i.quote})}),i.customerName&&i.customerName!=="-"&&s.jsxs("div",{className:"text-sm text-white/60",children:[s.jsx("span",{className:"font-semibold text-white",children:i.customerName}),i.customerTitle&&i.customerTitle!=="-"&&s.jsxs(s.Fragment,{children:[" · ",i.customerTitle]})]})]}),u.length>0&&s.jsxs("section",{className:"mt-16 pt-10 border-t border-white/10",children:[s.jsx("h2",{className:"text-xl font-semibold text-white mb-6",children:c.related}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:u.map(d=>s.jsxs(Ee,{to:n(`/success-stories/${d.slug}`),className:"group p-5 rounded-xl border border-white/10 bg-white/5 hover:bg-white/10 hover:border-white/20 transition-all",children:[s.jsx("div",{className:"text-xs uppercase tracking-wider text-white/40 mb-2",children:d.segment}),s.jsx("div",{className:"text-base font-semibold text-white group-hover:text-[#F4845F] transition-colors",children:d.title})]},d.slug))})]})]}),s.jsx(ku,{})]})},LR=S.memo(()=>{const{language:e}=be(),t=S.useMemo(()=>({pt:{prefix:"Sua",highlight:"próxima vantagem",suffix:"começa na próxima decisão.",description:"Fale com nosso time sobre antecipar demanda, proteger margem, acelerar giro e aumentar conversão."},en:{prefix:"Your",highlight:"next advantage",suffix:"starts with the next decision.",description:"Talk to our team about anticipating demand, protecting margin, accelerating turnover and increasing conversion."}}),[]),n=S.useMemo(()=>t[e],[t,e]);return s.jsx("section",{className:"w-full pt-28 pb-6 relative z-[10]",children:s.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:s.jsxs("div",{className:"text-center max-w-4xl mx-auto",children:[s.jsxs("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold mb-6 leading-tight text-white [text-wrap:balance]",children:[n.prefix," ",s.jsx("span",{className:"text-[#F4845F]",style:{textShadow:"0 0 30px rgba(244,132,95,0.3)"},children:n.highlight})," ",n.suffix]}),s.jsx("p",{className:"text-base sm:text-lg text-white/60 max-w-3xl mx-auto leading-relaxed [text-wrap:balance]",children:n.description})]})})})});LR.displayName="ContactHero";const Ti=S.forwardRef(({className:e,type:t,...n},r)=>s.jsx("input",{type:t,className:ct("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Ti.displayName="Input";var Fj="Collapsible",[_4e,J8e]=Rv(Fj),[N4e,Rj]=_4e(Fj),zR=S.forwardRef((e,t)=>
944{const{__scopeCollapsible:n,open:r,defaultOpen:a,disabled:i,onOpenChange:o,...l}=e,[c=!1,u]=Lv({prop:r,defaultProp:a,onChange:o});return s.jsx(N4e,{scope:n,disabled:i,contentId:tM(),open:c,onOpenToggle:S.useCallback(()=>u(d=>!d),[u]),children:s.jsx(Kt.div,{"data-state":Lj(c),"data-disabled":i?"":void 0,...l,ref:t})})});zR.displayName=Fj;var BR="CollapsibleTrigger",qR=S.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,a=Rj(BR,n);return s.jsx(Kt.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":Lj(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...r,ref:t,onClick:Ft(e.onClick,a.onOpenToggle)})});qR.displayName=BR;var Dj="CollapsibleContent",UR=S.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=Rj(Dj,e.__scopeCollapsible);return s.jsx(Dv,{present:n||a.open,children:({present:i})=>s.jsx(C4e,{...r,ref:t,present:i})})});UR.displayName=Dj;var C4e=S.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:a,...i}=e,o=Rj(Dj,n),[l,c]=S.useState(r),u=S.useRef(null),d=Pr(t,u),m=S.useRef(0),p=m.current,f=S.useRef(0),g=f.current,h=o.open||l,v=S.useRef(h),y=S.useRef();return S.useEffect(()=>{const x=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(x)},[]),Fi(()=>{const x=u.current;if(x){y.current=y.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const b=x.getBoundingClientRect();m.current=b.height,f.current=b.width,v.current||(x.style.transitionDuration=y.current.transitionDuration,x.style.animationName=y.current.animationName),c(r)}},[o.open,r]),s.jsx(Kt.div,{"data-state":Lj(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!h,...i,ref:d,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:h&&a})});function Lj(e){return e?"open":"closed"}var E4e=zR;const T4e=E4e,O4e=qR,I4e=UR,WR=S.memo(()=>{const{language:e}=be(),[t,n]=S.useState(""),[r,a]=S.useState(""),[i,o]=S.useState(null);M.useEffect(()=>{const p=setTimeout(()=>{a(t)},300);return()=>clearTimeout(p)},[t]);const l=S.useMemo(()=>({pt:{title:"O Que Você Precisa Saber",subtitle:"Respostas objetivas sobre como implementar inteligência preditiva com rapidez e segurança.",searchPlaceholder:"Busque por tema, desafio ou palavra-chave...",noResults:"Nenhuma pergunta frequente encontrada correspondendo à sua busca. Tente palavras-chave diferentes.",faqs:[{id:1,question:"Quanto tempo leva para colocar a inteligência em produção?",answer:"Colocamos inteligência preditiva em produção entre 4 e 12 semanas, com geração de impacto financeiro mensurável já nas primeiras ativações, seja em crescimento de receita, proteção de margem ou ganho de eficiência operacional.",order:1},{id:2,question:"Como iniciar sem alto risco de investimento?",answer:"Iniciamos com uma fase de validação orientada a negócio, utilizando amostras de dados para estimar potencial de impacto antes da integração completa. O modelo é progressivo, permitindo começar com escopo controlado e expandir conforme os resultados são comprovados.",order:2},{id:3,question:"Em quais indústrias atuam?",answer:"Atuamos em setores como varejo, indústria, finanças, saúde, farmacêutica, educação e tecnologia, sempre com foco direto em impacto de negócio e resultados mensuráveis.",order:3},{id:4,question:"O suporte é contÃnuo?",answer:"Sim. Monitoramos performance, ajustamos modelos continuamente e garantimos evolução constante dos resultados em produção.",order:4},{id:5,question:"Como garantem que os modelos continuam performando ao longo do tempo?",answer:"Utilizamos modelos adaptativos e monitoramento contÃnuo de performance. Ajustes são realizados conforme mudanças de comportamento, mercado ou estratégia, mantendo impacto consistente ao longo do tempo.",order:5},{id:6,question:"Qual o ROI tÃpico das soluções?",answer:"Projetos podem gerar até 20x de ROI no primeiro ano, impulsionando receita, protegendo margem e reduzindo ineficiências operacionais.",order:6},{id:7,question:"Que tipo de dados são necessários para começar?",answer:"Utilizamos os dados que sua empresa já possui, como transações, comportamento, CRM e supply. Iniciamos com amostras para validar potencial antes da integração completa, com modelos robustos a lacunas de dados.",order:7},{id:8,question:"A solução integra com nossos sistemas atuais?",answer:"Sim. Nossa arquitetura é API-first e conecta-se facilmente a ERPs, CRMs, e-commerce e outras bases internas.",order:8},{id:9,question:"à necessário ter equipe de ciência de dados?",answer:"Não. As soluções são projetadas para equipes de negócio operarem decisões preditivas sem dependência técnica.",order:9},{id:10,question:"A inteligência é explicável e compatÃvel com regulamentações?",answer:"Sim. Trabalhamos com camadas de explicabilidade e aderência a normas como LGPD e GDPR, garantindo transparência e segurança.",order:10},{id:11,question:"O que diferencia vocês de outras empresas de IA?",answer:`Unimos inteligência preditiva com ativação em tempo real. Nossos motores proprietários transformam dados em decisões operacionais, enquanto o i6Signal conecta esses insights diretamente à s equipes, convertendo análise em ação imediata. 945 946Não entregamos apenas modelos. Colocamos decisões em movimento.`,order:11},{id:12,question:"Como vocês mensuram impacto no negócio?",answer:"Trabalhamos com indicadores claros de receita, margem e eficiência desde o inÃcio do projeto, acompanhando variações diretamente atribuÃveis à s ativações preditivas em produção.",order:12}]},en:{title:"What You Need to Know",subtitle:"Straight answers on how to deploy predictive intelligence quickly and securely.",searchPlaceholder:"Search by topic, challenge or keyword...",noResults:"No FAQs foun
946d matching your search. Try different keywords.",faqs:[{id:1,question:"How long does it take to put intelligence into production?",answer:"We deploy predictive intelligence into production within 4 to 12 weeks, generating measurable financial impact from the first activations, whether in revenue growth, margin protection or operational efficiency gains.",order:1},{id:2,question:"How to start without high investment risk?",answer:"We start with a business-oriented validation phase, using data samples to estimate impact potential before full integration. The model is progressive, allowing you to begin with a controlled scope and expand as results are proven.",order:2},{id:3,question:"What industries do you serve?",answer:"We serve sectors such as retail, manufacturing, finance, healthcare, pharma, education and technology, always with a direct focus on business impact and measurable results.",order:3},{id:4,question:"Is support ongoing?",answer:"Yes. We monitor performance, continuously adjust models and ensure constant evolution of results in production.",order:4},{id:5,question:"How do you ensure models keep performing over time?",answer:"We use adaptive models and continuous performance monitoring. Adjustments are made according to changes in behavior, market or strategy, maintaining consistent impact over time.",order:5},{id:6,question:"What is the typical ROI of your solutions?",answer:"Projects can generate up to 20x ROI in the first year, driving revenue, protecting margins and reducing operational inefficiencies.",order:6},{id:7,question:"What kind of data is needed to get started?",answer:"We work with the data your company already has, such as transactions, behavior, CRM and supply. We start with samples to validate potential before full integration, with models robust to data gaps.",order:7},{id:8,question:"Does the solution integrate with our current systems?",answer:"Yes. Our architecture is API-first and easily connects to ERPs, CRMs, e-commerce and other internal databases.",order:8},{id:9,question:"Do we need a data science team?",answer:"No. Our solutions are designed for business teams to operate predictive decisions without technical dependency.",order:9},{id:10,question:"Is the intelligence explainable and compliant with regulations?",answer:"Yes. We work with explainability layers and adherence to standards such as LGPD and GDPR, ensuring transparency and security.",order:10},{id:11,question:"What sets you apart from other AI companies?",answer:`We combine predictive intelligence with real-time activation. Our proprietary engines transform data into operational decisions, while i6Signal connects these insights directly to teams, converting analysis into immediate action. 947 948We don't just deliver models. We put decisions in motion.`,order:11},{id:12,question:"How do you measure business impact?",answer:"We work with clear revenue, margin and efficiency indicators from the start of the project, tracking variations directly attributable to predictive activations in production.",order:12}]}}),[]),c=S.useMemo(()=>l[e],[e]),u=S.useMemo(()=>{if(!r.trim())return c.faqs;const p=r.toLowerCase();return c.faqs.filter(f=>f.question.toLowerCase().includes(p)||f.answer.toLowerCase().includes(p))},[c.faqs,r]),d=S.useCallback(p=>{o(i===p?null:p)},[i]),m=S.useCallback(p=>{n(p.target.value)},[]);return s.jsx("section",{className:"py-10 relative",children:s.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:[s.jsxs("div",{className:"text-center mb-12",children:[s.jsx("h2",{className:"text-4xl md:text-5xl font-bold text-white mb-6 leading-tight",children:c.title}),s.jsx("p",{className:"text-xl text-white/60 leading-relaxed",children:c.subtitle})]}),s.jsx("div",{className:"max-w-2xl mx-auto mb-12",children:s.jsx("div",{className:"relative",children:s.jsx("div",{className:"relative bg-white/5 backdrop-blur-sm border border-white/10 rounded-2xl p-1",children:s.jsxs("div",{className:"relative",children:[s.jsx(y4,{className:"absolute left-4 top-1/2 transform -translate-y-1/2 text-white/40 w-5 h-5 z-10"}),s.jsx(Ti,{type:"text",placeholder:c.searchPlaceholder,value:t,onChange:m,className:"pl-12 pr-4 py-4 text-lg bg-transparent border-0 rounded-xl text-white placeholder:text-white/40 focus:ring-2 focus:ring-[#F4845F]/30"})]})})})}),s.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 max-w-7xl mx-auto",children:u.map((p,f)=>s.jsx(T4e,{open:i===f,onOpenChange:()=>d(f),children:s.jsx("div",{className:"group relative",children:s.jsxs("div",{className:"relative bg-white/5 backdrop-blur-sm border border-white/10 rounded-2xl shadow-lg hover:shadow-xl hover:bg-white/[0.07] transition-all duration-300 overflow-hidden",children:[s.jsx(O4e,{className:"w-full p-6 text-left transition-colors duration-200",children:s.jsxs("div",{className:"flex items-center justify-between group",children:[s.jsxs("div",{className:"flex items-start space-x-4",children:[s.jsx("div",{className:"flex-shrink-0 w-10 h-10 bg-white/5 rounded-xl flex items-center justify-center",children:s.jsx("span",{className:"text-sm font-bold text-[#F4845F]",children:String(f+1).padStart(2,"0")})}),s.jsx("h3",{className:"text-lg md:text-xl font-semibold text-white group-hover:text-[#F4845F] transition-colors duration-200 leading-tight",children:p.question})]}),s.jsx(Wv,{className:`w-6 h-6 text-white/40 group-hover:text-[#F4845F] transition-all duration-300 flex-shrink-0 ml-4 ${i===f?"rotate-180":""}`})]})}),s.jsx(I4e,{className:"data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up overflow-hidden",children:s.jsx("div",{className:"px-6 pb-6",children:s.jsx("div",{className:"ml-14 pt-4 border-t border-white/10",children:s.jsx("p",{className:"whitespace-pre-wrap text-base text-white/60 leading-relaxed",children:p.answer})})})})]})})},p.id))}),u.length===0&&s.jsxs("div",{className:"text-center py-16",children:[s.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 bg-white/5 rounded-2xl mb-6",children:s.jsx(y4,{className:"w-8 h-8 text-white/40"})}),s.jsx("p",{className:"text-xl text-white/60",children:c.noResults})]})]})})});WR.displayName="FAQSection";var Wp=e=>e.type==="checkbox",As=e=>e instanceof Date,$n=e=>e==null;const VR=e=>typeof e=="object";var Lt=e=>!$n(e)&&!Array.isArray(e)&&VR(e)&&!As(e),M4e=e=>Lt(e)&&e.target?Wp(e.target)?e.target.checked:e.target.value:e,$4e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,F4e=(e,t)=>
vendor: 9,590 bytes, line 948
948e.has($4e(t)),R4e=e=>{const t=e.constructor&&e.constructor.prototype;return Lt(t)&&t.hasOwnProperty("isPrototypeOf")},zj=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function en(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(zj&&(e instanceof Blob||r))&&(n||Lt(e)))if(t=n?[]:{},!n&&!R4e(e))t=e;else for(const a in e)e.hasOwnProperty(a)&&(t[a]=en(e[a]));else return e;return t}var nx=e=>/^\w*$/.test(e),Ut=e=>e===void 0,Bj=e=>Array.isArray(e)?e.filter(Boolean):[],qj=e=>Bj(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ye=(e,t,n)=>{if(!t||!Lt(e))return n;const r=(nx(t)?[t]:qj(t)).reduce((a,i)=>$n(a)?a:a[i],e);return Ut(r)||r===e?Ut(e[t])?n:e[t]:r},Ma=e=>typeof e=="boolean",ot=(e,t,n)=>{let r=-1;const a=nx(t)?[t]:qj(t),i=a.length,o=i-1;for(;++r<i;){const l=a[r];let c=n;if(r!==o){const u=e[l];c=Lt(u)||Array.isArray(u)?u:isNaN(+a[r+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const YE={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},la={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ci={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},D4e=M.createContext(null);D4e.displayName="HookFormContext";var L4e=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(a,i,{get:()=>{const o=i;return t._proxyFormState[o]!==la.all&&(t._proxyFormState[o]=!r||la.all),e[o]}});return a};const z4e=typeof window<"u"?S.useLayoutEffect:S.useEffect;var Ua=e=>typeof e=="string",B4e=(e,t,n,r,a)=>Ua(e)?(r&&t.watch.add(e),ye(n,e,a)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),ye(n,i))):(r&&(t.watchAll=!0),n),HR=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},Ld=e=>Array.isArray(e)?e:[e],ZE=()=>{let e=[];return{get observers(){return e},next:a=>{for(const i of e)i.next&&i.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(i=>i!==a)}}),unsubscribe:()=>{e=[]}}},x2=e=>$n(e)||!VR(e);function uo(e,t,n=new WeakSet){if(x2(e)||x2(t))return e===t;if(As(e)&&As(t))return e.getTime()===t.getTime();const r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of r){const o=e[i];if(!a.includes(i))return!1;if(i!=="ref"){const l=t[i];if(As(o)&&As(l)||Lt(o)&&Lt(l)||Array.isArray(o)&&Array.isArray(l)?!uo(o,l,n):o!==l)return!1}}return!0}var Qn=e=>Lt(e)&&!Object.keys(e).length,Uj=e=>e.type==="file",ca=e=>typeof e=="function",sv=e=>{if(!zj)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},KR=e=>e.type==="select-multiple",Wj=e=>e.type==="radio",q4e=e=>Wj(e)||Wp(e),Ub=e=>sv(e)&&e.isConnected;function U4e(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Ut(e)?r++:e[t[r++]];return e}function W4e(e){for(const t in e)if(e.hasOwnProperty(t)&&!Ut(e[t]))return!1;return!0}function zt(e,t){const n=Array.isArray(t)?t:nx(t)?[t]:qj(t),r=n.length===1?e:U4e(e,n),a=n.length-1,i=n[a];return r&&delete r[i],a!==0&&(Lt(r)&&Qn(r)||Array.isArray(r)&&W4e(r))&&zt(e,n.slice(0,-1)),e}var GR=e=>{for(const t in e)if(ca(e[t]))return!0;return!1};function lv(e,t={}){const n=Array.isArray(e);if(Lt(e)||n)for(const r in e)Array.isArray(e[r])||Lt(e[r])&&!GR(e[r])?(t[r]=Array.isArray(e[r])?[]:{},lv(e[r],t[r])):$n(e[r])||(t[r]=!0);return t}function QR(e,t,n){const r=Array.isArray(e);if(Lt(e)||r)for(const a in e)Array.isArray(e[a])||Lt(e[a])&&!GR(e[a])?Ut(t)||x2(n[a])?n[a]=Array.isArray(e[a])?lv(e[a],[]):{...lv(e[a])}:QR(e[a],$n(t)?{}:t[a],n[a]):n[a]=!uo(e[a],t[a]);return n}var ed=(e,t)=>QR(e,t,lv(t));const XE={value:!1,isValid:!1},JE={value:!0,isValid:!0};var YR=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ut(e[0].attributes.value)?Ut(e[0].value)||e[0].value===""?JE:{value:e[0].value,isValid:!0}:JE:XE}return XE},ZR=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ut(e)?e:t?e===""?NaN:e&&+e:n&&Ua(e)?new Date(e):r?r(e):e;const e5={isValid:!1,value:null};var XR=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,e5):e5;function t5(e){const t=e.ref;return Uj(t)?t.files:Wj(t)?XR(e.refs).value:KR(t)?[...t.selectedOptions].map(({value:n})=>n):Wp(t)?YR(e.refs).value:ZR(Ut(t.value)?e.ref.value:t.value,e)}var V4e=(e,t,n,r)=>{const a={};for(const i of e){const o=ye(t,i);o&&ot(a,i,o._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}},cv=e=>e instanceof RegExp,td=e=>Ut(e)?e:cv(e)?e.source:Lt(e)?cv(e.value)?e.value.source:e.value:e,n5=e=>({isOnSubmit:!e||e===la.onSubmit,isOnBlur:e===la.onBlur,isOnChange:e===la.onChange,isOnAll:e===la.all,isOnTouch:e===la.onTouched});const r5="AsyncFunction";var H4e=e=>!!e&&!!e.validate&&!!(ca(e.validate)&&e.validate.constructor.name===r5||Lt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===r5)),K4e=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),a5=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const zd=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const i=ye(e,a);if(i){const{_f:o,...l}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],a)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(zd(l,t))break}else if(Lt(l)&&zd(l,t))break}}};function i5(e,t,n){const r=ye(e,n);if(r||nx(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const i=a.join("."),o=ye(t,i),l=ye(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(l&&l.type)return{name:i,error:l};if(l&&l.root&&l.root.type)return{name:`${i}.root`,error:l.root};a.pop()}return{name:n}}var G4e=(e,t,n,r)=>{n(e);const{name:a,...i}=e;return Qn(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!r||la.all))},Q4e=(e,t,n)=>!e||!t||e===t||Ld(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),Y4e=(e,t,n,r,a)=>a.isOnAll?!1:!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:(n?r.isOnChange:a.isOnChange)?e:!0,Z4e=(e,t)=>!Bj(ye(e,t)).length&&zt(e,t),X4e=(e,t,n)=>{const r=Ld(ye(e,n));return ot(r,"root",t[n]),ot(e,n,r),e},gh=e=>Ua(e);function o5(e,t,n="validate"){if(gh(e)||Array.isArray(e)&&e.every(gh)||Ma(e)&&!e)return{type:n,message:gh(e)?e:"",ref:t}}var yl=e=>Lt(e)&&!cv(e)?e:{value:e,message:""},s5=async(e,t,n,r,a,i)=>{const{ref:o,refs:l,required:c,maxLength:u,minLength:d,min:m,max:p,pattern:f,validate:g,name:h,valueAsNumber:v,mount:y}=e._f,x=ye(n,h);if(!y||t.has(h))return{};const b=l?l[0]:o,w=E=>{a&&b.reportValidity&&(b.setCustomValidity(Ma(E)?"":E||""),b.reportValidity())},k={},j=Wj(o),A=Wp(o),P=j||A,_=(v||Uj(o))&&Ut(o.value)&&Ut(x)||sv(o)&&o.value===""||x===""||Array.isArray(x)&&!x.length,N=HR.bind(null,h,r,k),C=(E,T,O,F=ci.maxLength,D=ci.minLength)=>{const z=E?T:O;k[h]={type:E?F:D,message:z,ref:o,...N(E?F:D,z)}};if(i?!Array.isArray(x)||!x.length:c&&(!P&&(_||$n(x))||Ma(x)&&!x||A&&!YR(l).isValid||j&&!XR(l).isValid)){const{value:E,message:T}=gh(c)?{value:!!c,message:c}:yl(c);if(E&&(k[h]={type:ci.required,message:T,ref:b,...N(ci.required,T)},!r))return w(T),k}if(!_&&(!$n(m)||!$n(p))){let E,T;const O=yl(p),F=yl(m);if(!$n(x)&&!isNaN(x)){const D=o.valueAsNumber||x&&+x;$n(O.value)||(E=D>O.value),$n(F.value)||(T=D<F.value)}else{const D=o.valueAsDate||new Date(x),z=I=>new Date(new Date().toDateString()+" "+I),R=o.type=="time",B=o.type=="week";Ua(O.value)&&x&&(E=R?z(x)>z(O.value):B?x>O.value:D>new Date(O.value)),Ua(F.value)&&x&&(T=R?z(x)<z(F.value):B?x<F.value:D<new Date(F.value))}if((E||T)&&(C(!!E,O.message,F.message,ci.max,ci.min),!r))return w(k[h].message),k}if((u||d)&&!_&&(Ua(x)||i&&Array.isArray(x))){const E=yl(u),T=yl(d),O=!$n(E.value)&&x.length>+E.value,F=!$n(T.value)&&x.length<+T.value;if((O||F)&&(C(O,E.message,T.message),!r))return w(k[h].message),k}if(f&&!_&&Ua(x)){const{value:E,message:T}=yl(f);if(cv(E)&&!x.match(E)&&(k[h]={type:ci.pattern,message:T,ref:o,...N(ci.pattern,T)},!r))return w(T),k}if(g){if(ca(g)){const E=await g(x,n),T=o5(E,b);if(T&&(k[h]={...T,...N(ci.validate,T.message)},!r))return w(T.message),k}else if(Lt(g)){let E={};for(const T in g){if(!Qn(E)&&!r)break;const O=o5(await g[T](x,n),b,T);O&&(E={...O,...N(T,O.message)},w(O.message),r&&(k[h]=E))}if(!Qn(E)&&(k[h]={ref:b,...E},!r))return k}}return w(!0),k};const J4e={mode:la.onSubmit,reValidateMode:la.onChange,shouldFocusError:!0};function eAe(e={}){let t={...J4e,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:ca(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},a=Lt(t.defaultValues)||Lt(t.values)?en(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:en(a),o={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let m={...d};const p={array:ZE(),state:ZE()},f=t.criteriaMode===la.all,g=L=>V=>{clearTimeout(u),u=setTimeout(L,V)},h=async L=>{if(!t.disabled&&(d.isValid||m.isValid||L)){const V=t.resolver?Qn((await A()).errors):await _(r,!0);V!==n.isValid&&p.state.next({isValid:V})}},v=(L,V)=>{!t.disabled&&(d.isValidating||d.validatingFields||m.isValidating||m.validatingFields)&&((L||Array.from(l.mount)).forEac
vendor: 5,875 bytes, line 948
948h(G=>{G&&(V?ot(n.validatingFields,G,V):zt(n.validatingFields,G))}),p.state.next({validatingFields:n.validatingFields,isValidating:!Qn(n.validatingFields)}))},y=(L,V=[],G,le,oe=!0,ie=!0)=>{if(le&&G&&!t.disabled){if(o.action=!0,ie&&Array.isArray(ye(r,L))){const U=G(ye(r,L),le.argA,le.argB);oe&&ot(r,L,U)}if(ie&&Array.isArray(ye(n.errors,L))){const U=G(ye(n.errors,L),le.argA,le.argB);oe&&ot(n.errors,L,U),Z4e(n.errors,L)}if((d.touchedFields||m.touchedFields)&&ie&&Array.isArray(ye(n.touchedFields,L))){const U=G(ye(n.touchedFields,L),le.argA,le.argB);oe&&ot(n.touchedFields,L,U)}(d.dirtyFields||m.dirtyFields)&&(n.dirtyFields=ed(a,i)),p.state.next({name:L,isDirty:C(L,V),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else ot(i,L,V)},x=(L,V)=>{ot(n.errors,L,V),p.state.next({errors:n.errors})},b=L=>{n.errors=L,p.state.next({errors:n.errors,isValid:!1})},w=(L,V,G,le)=>{const oe=ye(r,L);if(oe){const ie=ye(i,L,Ut(G)?ye(a,L):G);Ut(ie)||le&&le.defaultChecked||V?ot(i,L,V?ie:t5(oe._f)):O(L,ie),o.mount&&h()}},k=(L,V,G,le,oe)=>{let ie=!1,U=!1;const Z={name:L};if(!t.disabled){if(!G||le){(d.isDirty||m.isDirty)&&(U=n.isDirty,n.isDirty=Z.isDirty=C(),ie=U!==Z.isDirty);const ue=uo(ye(a,L),V);U=!!ye(n.dirtyFields,L),ue?zt(n.dirtyFields,L):ot(n.dirtyFields,L,!0),Z.dirtyFields=n.dirtyFields,ie=ie||(d.dirtyFields||m.dirtyFields)&&U!==!ue}if(G){const ue=ye(n.touchedFields,L);ue||(ot(n.touchedFields,L,G),Z.touchedFields=n.touchedFields,ie=ie||(d.touchedFields||m.touchedFields)&&ue!==G)}ie&&oe&&p.state.next(Z)}return ie?Z:{}},j=(L,V,G,le)=>{const oe=ye(n.errors,L),ie=(d.isValid||m.isValid)&&Ma(V)&&n.isValid!==V;if(t.delayError&&G?(c=g(()=>x(L,G)),c(t.delayError)):(clearTimeout(u),c=null,G?ot(n.errors,L,G):zt(n.errors,L)),(G?!uo(oe,G):oe)||!Qn(le)||ie){const U={...le,...ie&&Ma(V)?{isValid:V}:{},errors:n.errors,name:L};n={...n,...U},p.state.next(U)}},A=async L=>{v(L,!0);const V=await t.resolver(i,t.context,V4e(L||l.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return v(L),V},P=async L=>{const{errors:V}=await A(L);if(L)for(const G of L){const le=ye(V,G);le?ot(n.errors,G,le):zt(n.errors,G)}else n.errors=V;return V},_=async(L,V,G={valid:!0})=>{for(const le in L){const oe=L[le];if(oe){const{_f:ie,...U}=oe;if(ie){const Z=l.array.has(ie.name),ue=oe._f&&H4e(oe._f);ue&&d.validatingFields&&v([le],!0);const ke=await s5(oe,l.disabled,i,f,t.shouldUseNativeValidation&&!V,Z);if(ue&&d.validatingFields&&v([le]),ke[ie.name]&&(G.valid=!1,V))break;!V&&(ye(ke,ie.name)?Z?X4e(n.errors,ke,ie.name):ot(n.errors,ie.name,ke[ie.name]):zt(n.errors,ie.name))}!Qn(U)&&await _(U,V,G)}}return G.valid},N=()=>{for(const L of l.unMount){const V=ye(r,L);V&&(V._f.refs?V._f.refs.every(G=>!Ub(G)):!Ub(V._f.ref))&&de(L)}l.unMount=new Set},C=(L,V)=>!t.disabled&&(L&&V&&ot(i,L,V),!uo(I(),a)),E=(L,V,G)=>B4e(L,l,{...o.mount?i:Ut(V)?a:Ua(L)?{[L]:V}:V},G,V),T=L=>Bj(ye(o.mount?i:a,L,t.shouldUnregister?ye(a,L,[]):[])),O=(L,V,G={})=>{const le=ye(r,L);let oe=V;if(le){const ie=le._f;ie&&(!ie.disabled&&ot(i,L,ZR(V,ie)),oe=sv(ie.ref)&&$n(V)?"":V,KR(ie.ref)?[...ie.ref.options].forEach(U=>U.selected=oe.includes(U.value)):ie.refs?Wp(ie.ref)?ie.refs.forEach(U=>{(!U.defaultChecked||!U.disabled)&&(Array.isArray(oe)?U.checked=!!oe.find(Z=>Z===U.value):U.checked=oe===U.value||!!oe)}):ie.refs.forEach(U=>U.checked=U.value===oe):Uj(ie.ref)?ie.ref.value="":(ie.ref.value=oe,ie.ref.type||p.state.next({name:L,values:en(i)})))}(G.shouldDirty||G.shouldTouch)&&k(L,oe,G.shouldTouch,G.shouldDirty,!0),G.shouldValidate&&B(L)},F=(L,V,G)=>{for(const le in V){if(!V.hasOwnProperty(le))return;const oe=V[le],ie=L+"."+le,U=ye(r,ie);(l.array.has(L)||Lt(oe)||U&&!U._f)&&!As(oe)?F(ie,oe,G):O(ie,oe,G)}},D=(L,V,G={})=>{const le=ye(r,L),oe=l.array.has(L),ie=en(V);ot(i,L,ie),oe?(p.array.next({name:L,values:en(i)}),(d.isDirty||d.dirtyFields||m.isDirty||m.dirtyFields)&&G.shouldDirty&&p.state.next({name:L,dirtyFields:ed(a,i),isDirty:C(L,ie)})):le&&!le._f&&!$n(ie)?F(L,ie,G):O(L,ie,G),a5(L,l)&&p.state.next({...n}),p.state.next({name:o.mount?L:void 0,values:en(i)})},z=async L=>{o.mount=!0;const V=L.target;let G=V.name,le=!0;const oe=ye(r,G),ie=ue=>{le=Number.isNaN(ue)||As(ue)&&isNaN(ue.getTime())||uo(ue,ye(i,G,ue))},U=n5(t.mode),Z=n5(t.reValidateMode);if(oe){let ue,ke;const Ie=V.type?t5(oe._f):M4e(L),dt=L.type===YE.BLUR||L.type===YE.FOCUS_OUT,gn=!K4e(oe._f)&&!t.resolver&&!ye(n.errors,G)&&!oe._f.deps||Y4e(dt,ye(n.touchedFields,G),n.isSubmitted,Z,U),It=a5(G,l,dt);ot(i,G,Ie),dt?(oe._f.onBlur&&oe._f.onBlur(L),c&&c(0)):oe._f.onChange&&oe._f.onChange(L);const Tn=k(G,Ie,dt),or=!Qn(Tn)||It;if(!dt&&p.state.next({name:G,type:L.type,values:en(i)}),gn)return(d.isValid||m.isValid)&&(t.mode==="onBlur"?dt&&h():dt||h()),or&&p.state.next({name:G,...It?{}:Tn});if(!dt&&It&&p.state.next({...n}),t.resolver){const{errors:at}=await A([G]);if(ie(Ie),le){const Nr=i5(n.errors,r,G),Se=i5(at,r,Nr.name||G);ue=Se.error,G=Se.name,ke=Qn(at)}}else v([G],!0),ue=(await s5(oe,l.disabled,i,f,t.shouldUseNativeValidation))[G],v([G]),ie(Ie),le&&(ue?ke=!1:(d.isValid||m.isValid)&&(ke=await _(r,!0)));le&&(oe._f.deps&&B(oe._f.deps),j(G,ke,ue,Tn))}},R=(L,V)=>{if(ye(n.errors,V)&&L.focus)return L.focus(),1},B=async(L,V={})=>{let G,le;const oe=Ld(L);if(t.resolver){const ie=await P(Ut(L)?L:oe);G=Qn(ie),le=L?!oe.some(U=>ye(ie,U)):G}else L?(le=(await Promise.all(oe.map(async ie=>{const U=ye(r,ie);return await _(U&&U._f?{[ie]:U}:U)}))).every(Boolean),!(!le&&!n.isValid)&&h()):le=G=await _(r);return p.state.next({...!Ua(L)||(d.isValid||m.isValid)&&G!==n.isValid?{}:{name:L},...t.resolver||!L?{isValid:G}:{},errors:n.errors}),V.shouldFocus&&!le&&zd(r,R,L?oe:l.mount),le},I=L=>{const V={...o.mount?i:a};return Ut(L)?V:Ua(L)?ye(V,L):L.map(G=>ye(V,G))},H=(L,V)=>({invalid:!!ye((V||n).errors,L),isDirty:!!ye((V||n).dirtyFields,L),error:ye((V||n).errors,L),isValidating:!!ye(n.validatingFields,L),isTouched:!!ye((V||n).touchedFields,L)}),q=L=>
vendor: 6,331 bytes, line 948
948{L&&Ld(L).forEach(V=>zt(n.errors,V)),p.state.next({errors:L?n.errors:{}})},$=(L,V,G)=>{const le=(ye(r,L,{_f:{}})._f||{}).ref,oe=ye(n.errors,L)||{},{ref:ie,message:U,type:Z,...ue}=oe;ot(n.errors,L,{...ue,...V,ref:le}),p.state.next({name:L,errors:n.errors,isValid:!1}),G&&G.shouldFocus&&le&&le.focus&&le.focus()},X=(L,V)=>ca(L)?p.state.subscribe({next:G=>L(E(void 0,V),G)}):E(L,V,!0),pe=L=>p.state.subscribe({next:V=>{Q4e(L.name,V.name,L.exact)&&G4e(V,L.formState||d,Ye,L.reRenderRoot)&&L.callback({values:{...i},...n,...V})}}).unsubscribe,te=L=>(o.mount=!0,m={...m,...L.formState},pe({...L,formState:m})),de=(L,V={})=>{for(const G of L?Ld(L):l.mount)l.mount.delete(G),l.array.delete(G),V.keepValue||(zt(r,G),zt(i,G)),!V.keepError&&zt(n.errors,G),!V.keepDirty&&zt(n.dirtyFields,G),!V.keepTouched&&zt(n.touchedFields,G),!V.keepIsValidating&&zt(n.validatingFields,G),!t.shouldUnregister&&!V.keepDefaultValue&&zt(a,G);p.state.next({values:en(i)}),p.state.next({...n,...V.keepDirty?{isDirty:C()}:{}}),!V.keepIsValid&&h()},Q=({disabled:L,name:V})=>{(Ma(L)&&o.mount||L||l.disabled.has(V))&&(L?l.disabled.add(V):l.disabled.delete(V))},K=(L,V={})=>{let G=ye(r,L);const le=Ma(V.disabled)||Ma(t.disabled);return ot(r,L,{...G||{},_f:{...G&&G._f?G._f:{ref:{name:L}},name:L,mount:!0,...V}}),l.mount.add(L),G?Q({disabled:Ma(V.disabled)?V.disabled:t.disabled,name:L}):w(L,!0,V.value),{...le?{disabled:V.disabled||t.disabled}:{},...t.progressive?{required:!!V.required,min:td(V.min),max:td(V.max),minLength:td(V.minLength),maxLength:td(V.maxLength),pattern:td(V.pattern)}:{},name:L,onChange:z,onBlur:z,ref:oe=>{if(oe){K(L,V),G=ye(r,L);const ie=Ut(oe.value)&&oe.querySelectorAll&&oe.querySelectorAll("input,select,textarea")[0]||oe,U=q4e(ie),Z=G._f.refs||[];if(U?Z.find(ue=>ue===ie):ie===G._f.ref)return;ot(r,L,{_f:{...G._f,...U?{refs:[...Z.filter(Ub),ie,...Array.isArray(ye(a,L))?[{}]:[]],ref:{type:ie.type,name:L}}:{ref:ie}}}),w(L,!1,void 0,ie)}else G=ye(r,L,{}),G._f&&(G._f.mount=!1),(t.shouldUnregister||V.shouldUnregister)&&!(F4e(l.array,L)&&o.action)&&l.unMount.add(L)}}},ee=()=>t.shouldFocusError&&zd(r,R,l.mount),ce=L=>{Ma(L)&&(p.state.next({disabled:L}),zd(r,(V,G)=>{const le=ye(r,G);le&&(V.disabled=le._f.disabled||L,Array.isArray(le._f.refs)&&le._f.refs.forEach(oe=>{oe.disabled=le._f.disabled||L}))},0,!1))},W=(L,V)=>async G=>{let le;G&&(G.preventDefault&&G.preventDefault(),G.persist&&G.persist());let oe=en(i);if(p.state.next({isSubmitting:!0}),t.resolver){const{errors:ie,values:U}=await A();n.errors=ie,oe=en(U)}else await _(r);if(l.disabled.size)for(const ie of l.disabled)zt(oe,ie);if(zt(n.errors,"root"),Qn(n.errors)){p.state.next({errors:{}});try{await L(oe,G)}catch(ie){le=ie}}else V&&await V({...n.errors},G),ee(),setTimeout(ee);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Qn(n.errors)&&!le,submitCount:n.submitCount+1,errors:n.errors}),le)throw le},we=(L,V={})=>{ye(r,L)&&(Ut(V.defaultValue)?D(L,en(ye(a,L))):(D(L,V.defaultValue),ot(a,L,en(V.defaultValue))),V.keepTouched||zt(n.touchedFields,L),V.keepDirty||(zt(n.dirtyFields,L),n.isDirty=V.defaultValue?C(L,en(ye(a,L))):C()),V.keepError||(zt(n.errors,L),d.isValid&&h()),p.state.next({...n}))},ve=(L,V={})=>{const G=L?en(L):a,le=en(G),oe=Qn(L),ie=oe?a:le;if(V.keepDefaultValues||(a=G),!V.keepValues){if(V.keepDirtyValues){const U=new Set([...l.mount,...Object.keys(ed(a,i))]);for(const Z of Array.from(U))ye(n.dirtyFields,Z)?ot(ie,Z,ye(i,Z)):D(Z,ye(ie,Z))}else{if(zj&&Ut(L))for(const U of l.mount){const Z=ye(r,U);if(Z&&Z._f){const ue=Array.isArray(Z._f.refs)?Z._f.refs[0]:Z._f.ref;if(sv(ue)){const ke=ue.closest("form");if(ke){ke.reset();break}}}}if(V.keepFieldsRef)for(const U of l.mount)D(U,ye(ie,U));else r={}}i=t.shouldUnregister?V.keepDefaultValues?en(a):{}:en(ie),p.array.next({values:{...ie}}),p.state.next({values:{...ie}})}l={mount:V.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!d.isValid||!!V.keepIsValid||!!V.keepDirtyValues,o.watch=!!t.shouldUnregister,p.state.next({submitCount:V.keepSubmitCount?n.submitCount:0,isDirty:oe?!1:V.keepDirty?n.isDirty:!!(V.keepDefaultValues&&!uo(L,a)),isSubmitted:V.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:oe?{}:V.keepDirtyValues?V.keepDefaultValues&&i?ed(a,i):n.dirtyFields:V.keepDefaultValues&&L?ed(a,L):V.keepDirty?n.dirtyFields:{},touchedFields:V.keepTouched?n.touchedFields:{},errors:V.keepErrors?n.errors:{},isSubmitSuccessful:V.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Ce=(L,V)=>ve(ca(L)?L(i):L,V),Te=(L,V={})=>{const G=ye(r,L),le=G&&G._f;if(le){const oe=le.refs?le.refs[0]:le.ref;oe.focus&&(oe.focus(),V.shouldSelect&&ca(oe.select)&&oe.select())}},Ye=L=>{n={...n,...L}},qe={control:{register:K,unregister:de,getFieldState:H,handleSubmit:W,setError:$,_subscribe:pe,_runSchema:A,_focusError:ee,_getWatch:E,_getDirty:C,_setValid:h,_setFieldArray:y,_setDisabledField:Q,_setErrors:b,_getFieldArray:T,_reset:ve,_resetDefaultValues:()=>ca(t.defaultValues)&&t.defaultValues().then(L=>{Ce(L,t.resetOptions),p.state.next({isLoading:!1})}),_removeUnmounted:N,_disableForm:ce,_subjects:p,_proxyFormState:d,get _fields(){return r},get _formValues(){return i},get _state(){return o},set _state(L){o=L},get _defaultValues(){return a},get _names(){return l},set _names(L){l=L},get _formState(){return n},get _options(){return t},set _options(L){t={...t,...L}}},subscribe:te,trigger:B,register:K,handleSubmit:W,watch:X,setValue:D,getValues:I,reset:Ce,resetField:we,clearErrors:q,unregister:de,setError:$,setFocus:Te,getFieldState:H};return{...qe,formControl:qe}}function rx(e={}){const t=M.useRef(void 0),n=M.useRef(void 0),[r,a]=M.useState({isDirty:!1,isValidating:!1,isLoading:ca(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:ca(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!ca(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:o,...l}=eAe(e);t.current={...l,formState:r}}const i=t.current.control;return i._options=e,z4e(()=>{const o=i._subscribe({formState:i._proxyFormState,callback:()=>a({...i._formState}
948),reRenderRoot:!0});return a(l=>({...l,isReady:!0})),i._formState.isReady=!0,o},[i]),M.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),M.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),M.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),M.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),M.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==r.isDirty&&i._subjects.state.next({isDirty:o})}},[i,r.isDirty]),M.useEffect(()=>{e.values&&!uo(e.values,n.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),n.current=e.values,a(o=>({...o}))):i._resetDefaultValues()},[i,e.values]),M.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=L4e(r,i),t.current}const JR=S.forwardRef(({className:e,...t},n)=>s.jsx("textarea",{className:ct("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
948ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));JR.displayName="Textarea";var tAe="Label",eD=S.forwardRef((e,t)=>s.jsx(Kt.label,{...e,ref:t,onMouseDown:n=>{var a;n.target.closest("button, input, select, textarea")||((a=e.onMouseDown)==null||a.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));eD.displayName=tAe;var tD=eD;const nAe=Nk("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),za=S.forwardRef(({className:e,...t},n)=>s.jsx(tD,{ref:n,className:ct(nAe(),e),...t}));za.displayName=tD.displayName;const ax="https://script.google.com/macros/s/AKfycbzx_sv6GihHhurFlLvuoYRvjLZOC7TrDHWIayCiJIGO5vvBsGgvUd3ATEmFEuWZxZ6I/exec",ix="i6-web-2026-mvmnt",Pa="website_url",b2="lead_uid";function rAe(){try{if(typeof crypto<"u"&&"randomUUID"in crypto)return crypto.randomUUID()}catch{}return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`}const aAe=50,iAe=["reason","subscription","utm_source","utm_medium","utm_campaign","user_agent","source"];function ox(e,t){const n={};return Object.entries(e).forEach(([r,a])=>{n[r]=a==null?"":String(a)}),n.source=t.slice(0,aAe),iAe.forEach(r=>{typeof n[r]!="string"&&(n[r]="")}),n.insight_id||delete n.insight_id,n[b2]||(n[b2]=rAe()),n}const ua={INSIGHT_VIEW:"insight_view",INSIGHT_DOWNLOAD_STARTED:"insight_download_started",INSIGHT_DOWNLOAD_COMPLETED:"insight_download_completed",INSIGHT_CTA_SUBMITTED:"insight_cta_submitted",RESEARCH_VIEW:"research_view",RESEARCH_UNLOCKED:"research_unlocked",RESEARCH_CTA_SUBMITTED:"research_cta_submitted",CONTACT_FORM_STARTED:"contact_form_started",CONTACT_FORM_SUBMITTED:"contact_form_submitted",CTA_CLICK:"cta_click",SCROLL_75:"scroll_75",KIOSK_SESSION_STARTED:"kiosk_session_started",KIOSK_QUIZ_ANSWERED:"kiosk_quiz_answered",KIOSK_QUIZ_COMPLETED:"kiosk_quiz_completed",KIOSK_SOLUTION_SELECTED:"kiosk_solution_selected",KIOSK_EBOOK_REQUESTED:"kiosk_ebook_requested"},Vj=S.memo(({defaultValues:e,leadSource:t="contact-form",extraFields:n,hideCompany:r=!1,hideSubject:a=!1,compact:i=!1}={})=>{const{language:o}=be(),{toast:l}=Fv(),[c,u]=S.useState(!1),[d,m]=S.useState(!1),p=S.useRef(null),{register:f,handleSubmit:g,formState:{errors:h},reset:v}=rx({defaultValues:e}),y=S.useMemo(()=>({pt:{title1:"Comece a Movimentar",title2:"Seus Resultados",subtitle:"Fale conosco e compartilhe seu objetivo ou desafio estratégico.",name:"Nome completo",email:"Email profissional",company:"Empresa",phone:"Telefone",subject:"Assunto",subjectOptions:{general:"Consulta geral",demo:"Solicitar demonstração",partnership:"Parceria",support:"Suporte técnico"},message:"Mensagem",messageMinChar:"(mÃnimo 10 caracteres)",messagePlaceholder:"Descreva como podemos ajudar seu negócio...",sendButton:"Enviar Mensagem",successMessage:"Mensagem enviada com sucesso! Entraremos em contato em breve.",errors:{nameRequired:"Preencha este campo.",emailRequired:"Preencha este campo.",emailInvalid:"Preencha este campo.",subjectRequired:"Preencha este campo.",messageRequired:"Preencha este campo.",messageMinLength:"Preencha este campo."}},en:{title1:"Start Moving",title2:"Your Results",subtitle:"Talk to us and share your strategic goal or challenge.",name:"Full name",email:"Professional email",company:"Company",phone:"Phone",subject:"Subject",subjectOptions:{general:"General inquiry",demo:"Request demo",partnership:"Partnership",support:"Technical support"},message:"Message",messageMinChar:"(minimum 10 characters)",messagePlaceholder:"Describe how we can help your business...",sendButton:"Send Message",successMessage:"Message sent successfully! We will contact you soon.",errors:{nameRequired:"Please fill out this field.",emailRequired:"Please fill out this field.",emailInvalid:"Please fill out this field.",subjectRequired:"Please fill out this field.",messageRequired:"Please fill out this field.",messageMinLength:"Please fill out this field."}}}),[]),x=S.useCallback(async w=>{if(w[Pa]){m(!0),v();return}u(!0);try{const k=document.createElement("iframe");k.style.display="none",k.name="hidden_iframe",document.body.appendChild(k);const j=document.createElement("form");j.method="POST",j.action=ax,j.target="hidden_iframe",j.style.display="none";const A=iu(),P=[w.message,"",ny(A)].join(` 949`),_=ox({name:w.name,email:w.email,company:w.company||"",message:P,subscription:w.subject,reason:t,token:ix,...ry(),...n||{}},t);Object.entries(_).map(([C,E])=>({name:C,value:E}
949)).forEach(C=>{const E=document.createElement("input");E.type="hidden",E.name=C.name,E.value=C.value,j.appendChild(E)}),document.body.appendChild(j),j.submit(),setTimeout(()=>{document.body.removeChild(j),document.body.removeChild(k)},1e3),oa(ua.CONTACT_FORM_SUBMITTED,{subject:w.subject}),m(!0),l({title:o==="pt"?"Mensagem enviada com sucesso! Entraremos em contato em breve.":"Message sent successfully! We will contact you soon.",description:""}),v()}catch(k){console.error("Form submission error:",k)}finally{u(!1)}},[v,l,o,t,n]),b=S.useMemo(()=>y[o],[o]);return s.jsx(Lp,{className:"border border-white/10 bg-white/5 backdrop-blur-sm shadow-2xl h-full flex flex-col",children:s.jsx(Hy,{className:`${i?"p-4":"p-8"} flex-1 flex flex-col`,children:s.jsxs("form",{ref:p,onSubmit:g(x),className:`${i?"space-y-3":"space-y-6"} flex-1 flex flex-col`,noValidate:!0,children:[s.jsxs("div",{"aria-hidden":"true",style:{position:"absolute",left:"-10000px",top:"auto",width:1,height:1,overflow:"hidden"},children:[s.jsx("label",{htmlFor:"contact-website",children:"Website"}),s.jsx("input",{id:"contact-website",type:"text",tabIndex:-1,autoComplete:"off",...f(Pa)})]}),s.jsxs("div",{className:`${i?"":"flex-1"} ${i?"space-y-3":"space-y-6"}`,children:[s.jsxs("div",{className:`grid grid-cols-1 md:grid-cols-2 ${i?"gap-3":"gap-6"}`,children:[s.jsxs("div",{children:[s.jsxs(za,{htmlFor:"name",className:`font-medium text-white/70 block ${i?"text-xs mb-1":"text-sm mb-2"}`,children:[b.name," *"]}),s.jsx(Ti,{id:"name",type:"text",...f("name",{required:b.errors.nameRequired}),className:`w-full bg-white/10 border rounded-lg text-white placeholder:text-white/40 focus:ring-2 focus:ring-[#F4845F]/30 focus:border-transparent ${i?"px-3 py-1.5 text-sm":"px-4 py-2"} ${h.name?"border-red-500":"border-white/10"}`})]}),s.jsxs("div",{children:[s.jsxs(za,{htmlFor:"email",className:`font-medium text-white/70 block ${i?"text-xs mb-1":"text-sm mb-2"}`,children:[b.email," *"]}),s.jsx(Ti,{id:"email",type:"email",...f("email",{required:b.errors.emailRequired,pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:b.errors.emailInvalid}}),className:`w-full bg-white/10 border rounded-lg text-white placeholder:text-white/40 focus:ring-2 focus:ring-[#F4845F]/30 focus:border-transparent ${i?"px-3 py-1.5 text-sm":"px-4 py-2"} ${h.email?"border-red-500":"border-white/10"}`})]})]}),!r&&s.jsxs("div",{children:[s.jsx(za,{htmlFor:"company",className:"text-sm font-medium text-white/70 mb-2 block",children:b.company}),s.jsx(Ti,{id:"company",type:"text",...f("company"),className:"w-full px-4 py-2 bg-white/10 border border-white/10 rounded-lg text-white placeholder:text-white/40 focus:ring-2 focus:ring-[#F4845F]/30 focus:border-transparent"})]}),a?s.jsx("input",{type:"hidden",...f("subject")}):s.jsxs("div",{children:[s.jsxs(za,{htmlFor:"subject",className:`font-medium text-white/70 block ${i?"text-xs mb-1":"text-sm mb-2"}`,children:[b.subject," *"]}),s.jsxs("select",{id:"subject",...f("subject",{required:b.errors.subjectRequired}),className:`w-full bg-white/10 border rounded-lg text-white focus:ring-2 focus:ring-[#F4845F]/30 focus:border-transparent ${i?"px-3 py-1.5 text-sm":"px-4 py-2"} ${h.subject?"border-red-500":"border-white/10"}`,children:[s.jsx("option",{value:"",className:"bg-[#0B1224]",children:b.subject}),s.jsx("option",{value:"general",className:"bg-[#0B1224]",children:b.subjectOptions.general}),s.jsx("option",{value:"demo",className:"bg-[#0B1224]",children:b.subjectOptions.demo}),s.jsx("option",{value:"partnership",className:"bg-[#0B1224]",children:b.subjectOptions.partnership}),s.jsx("option",{value:"support",className:"bg-[#0B1224]",children:b.subjectOptions.support})]})]}),s.jsxs("div",{className:`${i?"":"flex-1"} flex flex-col`,children:[s.jsxs(za,{htmlFor:"message",className:`font-medium text-white/70 block ${i?"text-xs mb-1":"text-sm mb-2"}`,children:[b.message," * ",s.jsx("span",{className:"text-white/40 font-normal",children:b.messageMinChar})]}),s.jsx(JR,{id:"message",placeholder:b.messagePlaceholder,...f("message",{required:b.errors.messageRequired,minLength:{value:10,message:b.errors.messageMinLength}}),className:`w-full bg-white/10 border rounded-lg text-white placeholder:text-white/40 focus:ring-2 focus:ring-[#F4845F]/30 focus:border-transparent resize-none ${i?"":"flex-1"} ${i?"px-3 py-1.5 min-h-[72px] text-sm":"px-4 py-2 min-h-[120px]"} ${h.message?"border-red-500":"border-white/10"}`})]}),d&&s.jsx("div",{className:"bg-green-500/10 border border-green-500/20 rounded-lg p-4 text-green-400",children:s.jsxs("div",{className:"flex items-center",children:[s.jsx("svg",{className:"w-5 h-5 mr-2",fill:"
949currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),b.successMessage]})})]}),s.jsxs(Dn,{type:"submit",disabled:c,className:`w-full bg-white/10 hover:bg-[#F4845F]/20 border border-transparent hover:border-[#F4845F]/30 text-white/80 hover:text-[#F4845F] mt-auto transition-all duration-500 disabled:opacity-50 disabled:cursor-not-allowed ${i?"text-base py-2":"text-lg py-3"}`,children:[c?"Sending...":b.sendButton,s.jsx(Ap,{className:`ml-2 w-4 h-4 ${c?"animate-pulse":""}`})]})]})})})});Vj.displayName="ContactForm";const nD=S.memo(()=>{const{language:e}=be(),t=e==="pt"?"Já nos conhece?":"Already know us?",n="[email protected]",r=e==="pt"?`Enviar e-mail para ${n}`:`Send email to ${n}`;return s.jsx("section",{className:"pt-2 pb-10",children:s.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:s.jsxs("p",{className:"text-center text-sm text-white/55",children:[s.jsx("span",{className:"mr-2",children:t}),s.jsx("a",{href:`mailto:${n}`,"aria-label":r,className:"text-white/75 hover:text-[#F4845F] underline underline-offset-4 decoration-white/20 hover:decoration-[#F4845F] transition-colors",children:n})]})})})});nD.displayName="DirectContactStrip";const oAe=(e={})=>{const{threshold:t=.1,rootMargin:n="50px",triggerOnce:r=!0}=e,[a,i]=S.useState(!1),o=S.useRef(null);return S.useEffect(()=>{const l=new IntersectionObserver(([c])=>{c.isIntersecting?(i(!0),r&&l.disconnect()):r||i(!1)},{threshold:t,rootMargin:n});return o.current&&l.observe(o.current),()=>l.disconnect()},[t,n,r]),{isVisible:a,elementRef:o}},sAe=(e,t=!0)=>{const[n,r]=S.useState(!1),[a,i]=S.useState(!1);return S.useEffect(()=>{if(!t||!e)return;const o=new Image;return o.onload=()=>{r(!0),i(!1)},o.onerror=()=>{r(!1),i(!0)},o.src=e,()=>{o.onload=null,o.onerror=null}},[e,t]),{isLoaded:n,hasError:a}},l5="/assets/world-map-BvVhg8ek.png",rD=S.memo(()=>{const{language:e}=be(),t=Zk(),{isVisible:n,elementRef:r}=oAe(),{isLoaded:a}=sAe(l5,n),i=S.useMemo(()=>({pt:{title:"Nossa Presença Global",description:"Posicione o mouse nas localizações para ver informações detalhadas de contato.",headquarters:"Sede",brazil:"Brasil",hoverTip:"Posicione o mouse sobre as localizações para mais informações"},en:{title:"Our Global Presence",description:"Click on each location to see detailed contact information.",headquarters:"Headquarters",brazil:"Brazil",hoverTip:"Hover over locations for more information"}}),[]),o=S.useMemo(()=>i[e],[e]),l=S.useMemo(()=>({campinas:t?{top:"68%",left:"35%"}:{top:"68%",left:"32%"}}),[t]),c=S.useMemo(()=>[{id:"campinas",city:"Campinas",state:"São Paulo",country:o.brazil,flag:"ð§ð·",type:o.headquarters,unitName:"infinity6 LATAM",position:l.campinas,address:`Av. Antônio Artioli, 570 - Sala 134 / Prédio A 950CEP 13049-900 951Campinas, SP - Brasil`,email:"[email protected]"}],[o.brazil,o.headquarters,l.campinas]),u=S.useCallback(d=>{console.log("Location clicked:",d)},[]);return s.jsx(Lp,{className:"border border-white/10 bg-white/5 backdrop-blur-sm shadow-lg",children:s.jsxs(Hy,{className:"p-4 sm:p-6 lg:p-8",children:[s.jsx("h3",{className:"text-xl sm:text-2xl font-bold text-white mb-4",children:o.title}),s.jsx("p",{className:"text-white/60 mb-6 text-sm sm:text-base",children:o.description}),s.jsx(EM,{children:s.jsxs("div",{ref:r,className:"relative w-full h-64 sm:h-80 lg:h-96 bg-white/5 rounded-lg overflow-hidden border border-white/10",children:[!a&&s.jsx("div",{className:"absolute inset-0 bg-white/5 animate-pulse flex items-center justify-center",children:s.jsx("div",{className:"text-white/40 text-sm",children:"Loading map..."})}),n&&s.jsx("img",{src:l5,alt:"World Map",className:`w-full h-full object-cover transition-opacity duration-300 ${a?"opacity-100":"opacity-0"}`,loading:"lazy"}),c.map(d=>s.jsxs(ZU,{children:[s.jsx(XU,{asChild:!0,children:s.jsx("button",{className:"absolute transform -translate-x-1/2 -translate-y-1/2 hover:scale-110 transition-all duration-200 z-10 focus:outline-none focus:ring-2 focus:ring-[#F4845F]/50 rounded-lg",style:{to
951p:d.position.top,left:d.position.left},onClick:()=>u(d.id),children:s.jsxs("div",{className:"bg-[#0B1224]/90 backdrop-blur-sm rounded-lg shadow-lg border border-white/20 p-2 min-w-[90px] sm:min-w-[110px]",children:[s.jsxs("div",{className:"flex items-center gap-1.5 mb-1",children:[s.jsx("span",{className:"text-sm",children:d.flag}),s.jsxs("div",{className:"text-left",children:[s.jsx("div",{className:"font-semibold text-white text-xs leading-tight",children:d.city}),s.jsx("div",{className:"text-xs text-white/60 leading-tight",children:d.state})]})]}),s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(v4,{className:"w-2.5 h-2.5 text-[#F4845F]"}),s.jsx("span",{className:"text-xs font-medium text-[#F4845F]",children:d.type})]})]})})}),s.jsx(TM,{side:"top",className:"max-w-xs p-3 sm:p-4 bg-[#0B1224] border border-white/10 shadow-xl",children:s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx("span",{className:"text-lg",children:d.flag}),s.jsxs("div",{children:[s.jsxs("h4",{className:"font-bold text-white text-sm sm:text-base",children:[d.city,", ",d.state]}),s.jsx("p",{className:"text-xs text-white/60",children:d.country})]})]}),s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx(v4,{className:"w-4 h-4 text-[#F4845F]"}),s.jsx("span",{className:"text-sm font-medium text-[#F4845F]",children:d.type})]}),s.jsx("p",{className:"text-sm font-semibold text-white mb-3",children:d.unitName})]}),s.jsxs("div",{className:"text-xs sm:text-sm text-white/60 space-y-2 pt-2 border-t border-white/10",children:[s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(HB,{className:"w-3 h-3 flex-shrink-0 mt-0.5 text-white/40"}),s.jsx("div",{className:"whitespace-pre-line",children:d.address})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(LI,{className:"w-3 h-3 flex-shrink-0 text-white/40"}),s.jsx("span",{className:"break-all",children:d.email})]})]})]})})]},d.id))]})})]})})});rD.displayName="WorldMap";const aD=S.memo(()=>{const e=hn(),{language:t}=be();S.useEffect(()=>{e.hash==="#contact-form"&&setTimeout(()=>{const r=document.getElementById("contact-form");r&&r.scrollIntoView({behavior:"smooth"})},300)},[e]);const n=S.useMemo(()=>({"@context":"https://schema.org","@type":"FAQPage",mainEntity:(t==="pt"?[{q:"Quanto tempo leva para colocar a inteligência em produção?",a:"Colocamos inteligência preditiva em produção entre 4 e 12 semanas, com geração de impacto financeiro mensurável já nas primeiras ativações, seja em crescimento de receita, proteção de margem ou ganho de eficiência operacional."},{q:"Como iniciar sem alto risco de investimento?",a:"Iniciamos com uma fase de validação orientada a negócio, utilizando amostras de dados para estimar potencial de impacto antes da integração completa. O modelo é progressivo, permitindo começar com escopo controlado e expandir conforme os resultados são comprovados."},{q:"Em quais indústrias atuam?",a:"Atuamos em setores como varejo, indústria, finanças, saúde, farmacêutica, educação e tecnologia, sempre com foco direto em impacto de negócio e resultados mensuráveis."},{q:"O suporte é contÃnuo?",a:"Sim. Monitoramos performance, ajustamos modelos continuamente e garantimos evolução constante dos resultados em produção."},{q:"Como garantem que os modelos continuam performando ao longo do tempo?",a:"Utilizamos modelos adaptativos e monitoramento contÃnuo de performance. Ajustes são realizados conforme mudanças de comportamento, mercado ou estratégia, mantendo impacto consistente ao longo do tempo."},{q:"Qual o ROI tÃpico das soluções?",a:"Projetos podem gerar até 20x de ROI no primeiro ano, impulsionando receita, protegendo margem e reduzindo ineficiências operacionais."},{q:"Que tipo de dados são necessários para começar?",a:"Utilizamos os dados que sua empresa já possui, como transações, comportamento, CRM e supply. Iniciamos com amostras para validar potencial antes da integração completa, com modelos robustos a lacunas de dados."},{q:"A solução integra com nossos sistemas atuais?",a:"Sim. Nossa arquitetura é API-first e conecta-se facilmente a ERPs, CRMs, e-commerce e outras bases internas."},{q:"à necessário ter equipe de ciência de dados?",a:"Não. As soluções são projetadas para equipes de negócio operarem decisões preditivas sem dependência técnica."},{q:"A inteligência é explicável e compatÃvel com regulamentações?",a:"Sim. Trabalhamos com camadas de explicabilidade e aderência a normas como LGPD e GDPR, garantindo transparência e segurança."},{q:"O que diferencia vocês de outras empresas de IA?",a:"Unimos inteligência preditiva com ativação em tempo real. Nossos motores proprietários transformam dados em decisões operacionais, enquanto o i6Signal conecta esses insights diretamente à s equipes, convertendo análise em ação imediata."},{q:"Como vocês mensuram impacto no negócio?",a:"Trabalhamos com indicadores claros de receita, margem e eficiência desde o inÃcio do projeto, acompanhando variações diretamente atribuÃveis à s ativações preditivas em produção."}]:[{q:"How long does it take to put intelligence into production?",a:"We deploy predictive intelligence into production within 4 to 12 weeks, generating measurable financial impact from the first activations, whether in revenue growth, margin protection or operational efficiency gains."},{q:"How to start without high investment risk?",a:"We start with a business-oriented validation phase, using data samples to estimate impact potential before full integration. The model is progressive, allowing you to begin with a controlled scope and expand as results are proven."},{q:"What industries do you serve?",a:"We serve sectors such as retail, manufacturing, finance, healthcare, pharma, education and technology, always with a direct focus on business impact and measurable results."}
951,{q:"Is support ongoing?",a:"Yes. We monitor performance, continuously adjust models and ensure constant evolution of results in production."},{q:"How do you ensure models keep performing over time?",a:"We use adaptive models and continuous performance monitoring. Adjustments are made according to changes in behavior, market or strategy, maintaining consistent impact over time."},{q:"What is the typical ROI of your solutions?",a:"Projects can generate up to 20x ROI in the first year, driving revenue, protecting margins and reducing operational inefficiencies."},{q:"What kind of data is needed to get started?",a:"We work with the data your company already has, such as transactions, behavior, CRM and supply. We start with samples to validate potential before full integration, with models robust to data gaps."},{q:"Does the solution integrate with our current systems?",a:"Yes. Our architecture is API-first and easily connects to ERPs, CRMs, e-commerce and other internal databases."},{q:"Do we need a data science team?",a:"No. Our solutions are designed for business teams to operate predictive decisions without technical dependency."},{q:"Is the intelligence explainable and compliant with regulations?",a:"Yes. We work with explainability layers and adherence to standards such as LGPD and GDPR, ensuring transparency and security."},{q:"What sets you apart from other AI companies?",a:"We combine predictive intelligence with real-time activation. Our proprietary engines transform data into operational decisions, while i6Signal connects these insights directly to teams, converting analysis into immediate action."},{q:"How do you measure business impact?",a:"We work with clear revenue, margin and efficiency indicators from the start of the project, tracking variations directly attributable to predictive activations in production."}]).map(a=>
951({"@type":"Question",name:a.q,acceptedAnswer:{"@type":"Answer",text:a.a}}))}),[t]);return s.jsxs(s.Fragment,{children:[s.jsx(ns,{page:"contact",jsonLd:n}),s.jsx(LR,{}),s.jsx("section",{id:"contact-form",className:"pt-0 pb-6",children:s.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:s.jsx("div",{className:"max-w-4xl mx-auto",children:s.jsx(Vj,{})})})}),s.jsx(nD,{}),s.jsx(WR,{}),s.jsx("section",{className:"py-12",children:s.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:s.jsx(rD,{})})})]})});aD.displayName="Contact";const lAe=(e,t)=>{let n=null,r=0;return(...a)=>{const i=Date.now();i-r>t?(e(...a),r=i):(n&&clearTimeout(n),n=setTimeout(()=>{e(...a),r=Date.now()},t-(i-r)))}},iD=()=>{const[e,t]=S.useState(0),n=S.useCallback(lAe(()=>{t(window.scrollY)},16),[]);return S.useEffect(()=>(window.addEventListener("scroll",n,{passive:!0}),()=>window.removeEventListener("scroll",n)),[n]),S.useEffect(()=>{const r=document.querySelectorAll(".scroll-reveal"),a=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting&&o.target.classList.add("revealed")})},{threshold:.1});return r.forEach(i=>a.observe(i)),()=>a.disconnect()},[]),{scrollY:e}},cAe=()=>{const e=(n,r,a)=>s.jsxs("section",{className:"border-b border-white/10 pb-8",children:[s.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:n}),s.jsx("p",{className:"text-white/70 mb-4",children:r}),a&&s.jsx("ul",{className:"list-disc list-inside text-white/70 space-y-2 marker:text-[#F4845F]",children:a.map((i,o)=>s.jsx("li",{children:i},o))})]}),t=n=>s.jsx("ul",{className:"list-disc list-inside text-white/70 space-y-3 marker:text-[#F4845F]",children:n.map((r,a)=>s.jsxs("li",{children:[s.jsxs("strong",{className:"text-white",children:[r.title,":"]})," ",r.desc]},a))});return s.jsxs("div",{className:"max-w-4xl mx-auto space-y-8",children:[s.jsxs("section",{className:"border-b border-white/10 pb-8",children:[s.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:"1. Introdução"}),s.jsx("p",{className:"text-white/70 mb-4",children:"A infinity6 é uma plataforma de inteligência de dados escalável, desenvolvida para acelerar resultados e ampliar o sucesso em larga escala. Nossa prioridade é garantir a confidencialidade, integridade, disponibilidade e transparência no tratamento das informações, alinhando-nos à s melhores práticas internacionais (ISO/IEC 42001) e ao marco regulatório europeu para Inteligência Artificial (AI Act)."}),s.jsx("p",{className:"text-white/70",children:"Esta PolÃtica de Privacidade descreve como protegemos os dados de nossos clientes, usuários e parceiros, assegurando conformidade legal, técnica e ética, além de introduzir um modelo de classificação de confidencialidade de ativos e informações."})]}),s.jsxs("section",{className:"border-b border-white/10 pb-8",children:[s.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:"2. PrincÃpios de Proteção de Dados"}),s.jsx("p",{className:"text-white/70 mb-4",children:"A infinity6 adota os seguintes princÃpios, em conformidade com a ISO/IEC 42001 e a Lei de IA da UE:"}),t([{title:"Minimização de Dados",desc:"trabalhamos apenas com informações estritamente necessárias."},{title:"Anonimização por padrão",desc:"todos os dados recebidos de clientes chegam já anonimizados, eliminando a necessidade de tratamento de dados pessoais."},{title:"Finalidade clara e legÃtima",desc:"processamos dados exclusivamente para fins previamente acordados com cada cliente."},{title:"Não compartilhamento entre clientes",desc:"nenhuma informação de um cliente é disponibilizada a outro cliente."},{title:"Segurança e confidencialidade",desc:"todos os ativos digitais e informações internas são classificados e protegidos de acordo com seu nÃvel de confidencialidade."}
951,{title:"Responsabilidade e prestação de contas",desc:"mantemos governança clara e controles auditáveis sobre o ciclo de vida dos dados."}])]}),s.jsxs("section",{className:"border-b border-white/10 pb-8",children:[s.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:"3. Classificação de Confidencialidade"}),s.jsx("p",{className:"text-white/70 mb-6",children:"Todas as informações e ativos da infinity6 são categorizados em quatro nÃveis de confidencialidade:"}),s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full border-collapse",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"bg-white/10",children:[s.jsx("th",{className:"border border-white/10 px-4 py-3 text-left text-white font-semibold",children:"Classificação"}),s.jsx("th",{className:"border border-white/10 px-4 py-3 text-left text-white font-semibold",children:"Descrição"}),s.jsx("th",{className:"border border-white/10 px-4 py-3 text-left text-white font-semibold",children:"Exemplo"})]})}),s.jsxs("tbody",{children:[s.jsxs("tr",{className:"bg-white/5",children:[s.jsx("td",{className:"border border-white/10 px-4 py-3 text-white font-medium",children:"Pública"}),s.jsx("td",{className:"border border-white/10 px-4 py-3 text-white/70",children:"Informações disponÃveis publicamente sem restrições"}),s.jsx("td",{className:"border border-white/10 px-4 py-3 text-white/70",children:"Material de marketing, site institucional"})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-white/10 px-4 py-3 text-white font-medium",children:"Interna"}),s.jsx("td",{className:"border border-white/10 px-4 py-3 text-white/70",children:"Informações restritas ao uso dentro da infinity6"}),s.jsx("td",{className:"border border-white/10 px-4 py-3 text-white/70",children:"Procedimentos internos não sensÃveis"})]}),s.jsxs("tr",{className:"bg-white/5",children:[s.jsx("td",{className:"border border-white/10 px-4 py-3 text-white font-medium",children:"Confidencial"}),s.jsx("td",{className:"border border-white/10 px-4 py-3 text-white/70",children:"Informações crÃticas que exigem proteção contra divulgação externa"}),s.jsx("td",{className:"border border-white/10 px-4 py-3 text-white/70",children:"Documentos técnicos, relatórios de clientes anonimizados, contratos internos, artefatos e processos do cliente"})]}),s.jsxs("tr",{children:[s.jsx("td",{className:"border border-white/10 px-4 py-3 text-white font-medium",children:"Sigilosa"}),s.jsx("td",{className:"border border-white/10 px-4 py-3 text-white/70",children:"Informações altamente sensÃveis com impacto significativo caso divulgadas"}),s.jsx("td",{className:"border border-white/10 px-4 py-3 text-white/70",children:"Ativos de desenvolvimento, código-fonte proprietário, algoritmos, modelos de IA, dados estratégicos financeiros e operacionais"})]})]})]})})]}),s.jsxs("section",{className:"border-b border-white/10 pb-8",children:[s.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:"4. Dados Tratados pela infinity6"}),s.jsx("h3",{className:"text-lg font-semibold text-white/80 mb-3",children:"4.1 Dados de Clientes"}),s.jsxs("ul",{className:"list-disc list-inside text-white/70 space-y-2 mb-4 marker:text-[#F4845F]",children:[s.jsx("li",{children:"Recebidos anonimizados e sem possibilidade de identificação de indivÃduos."}),s.jsx("li",{children:"Processados exclusivamente para fins de inteligência de dados, análises e geração de valor ao cliente contratante."}),s.jsxs("li",{children:[s.jsx("strong",{className:"text-white",children:"Classificação de confidencialidade:"})," Confidencial"]})]}),s.jsx("h3",{className:"text-lg font-semibold text-white/80 mb-3",children:"4.2 Dados Internos da infinity6"}),s.jsxs("ul",{className:"list-disc list-inside text-white/70 space-y-2 marker:text-[#F4845F]",children:[s.jsxs("li",{children:[s.jsx("strong",{className:"text-white",children:"Ativos de desenvolvimento:"})," código, algoritmos, modelos e pipelines de dados."]}),s.jsxs("li",{children:[s.jsx("strong",{className:"text-white",children:"Classificação:"})," Sigilosa"]}),s.jsx("li",{children:"Nunca compartilhados com terceiros."}),s.jsxs("li",{children:[s.jsx("strong",{className:"text-white",children:"Documentos internos:"}
951)," estratégicos, técnicos, financeiros e operacionais."]}),s.jsxs("li",{children:[s.jsx("strong",{className:"text-white",children:"Classificação:"})," Confidencial"]}),s.jsx("li",{children:"Protegidos por controles de acesso rigorosos."})]})]}),e("5. Compartilhamento de Dados","",["Não há compartilhamento de dados de clientes com outros clientes.","Dados de clientes não são comercializados, alugados ou transferidos a terceiros.","Compartilhamento restrito apenas para cumprimento de obrigações legais ou regulatórias, com avaliação jurÃdica."]),e("6. Segurança da Informação","",["SGSI-IA baseado na ISO/IEC 42001.","Controles de acesso baseados em identidade, mÃnimo privilégio e autenticação multifator.","Criptografia de dados em repouso e em trânsito.","Monitoramento e auditoria contÃnua de sistemas crÃticos.","Gestão de vulnerabilidades, pentests e auditorias externas.","Planos de continuidade de negócios e resposta a incidentes periodicamente testados."]),e("7. Conformidade com a Lei de IA da União Europeia","",["Avaliação de riscos de IA e mitigação de impactos adversos.","Explicabilidade dos modelos de IA sempre que aplicável.","Monitoramento contÃnuo e controle de viés/discriminação.","Auditoria e rastreabilidade de operações de IA.","Alinhamento a regulamentações de alto risco de IA quando aplicáveis."]),e("8. Direitos dos Clientes","",["Transparência sobre o tratamento de dados anonimizados.","Controle sobre a finalidade e o escopo de uso dos dados.","Segurança contratual quanto à confidencialidade e proteção das informações.","Direito à auditoria formal para comprovar conformidade."]),e("9. Confidencialidade e Propriedade Intelectual","",["Todos os desenvolvimentos tecnológicos são Sigilosos e propriedade exclusiva da infinity6.","Nenhum ativo de desenvolvimento é compartilhado com terceiros.","Todos os documentos internos são Confidenciais, protegidos contra divulgação não autorizada."]),s.jsxs("section",{className:"border-b border-white/10 pb-8",children:[s.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:"10. Cookies e Analytics do Site"}),s.jsxs("p",{className:"text-white/70 mb-4",children:["Quando você navega em infinity6.ai, coletamos automaticamente, sob base legal de ",s.jsx("strong",{className:"text-white",children:"legÃtimo interesse"}),", informações anônimas para entender como o site é usado e melhorar sua experiência. Nenhum dado pessoal identificável é coletado nesta etapa."]}),s.jsx("p",{className:"text-white/70 mb-3",children:s.jsx("strong",{className:"text-white",children:"O que coletamos:"})}),t([{title:"anonymous_id",desc:"identificador anônimo (UUID) gerado no seu navegador e guardado em localStorage. Não identifica você pessoalmente."},{title:"session_id",desc:"identificador temporário de sessão; expira após 30 minutos de inatividade."},{title:"Origem da visita",desc:"parâmetros UTM (source, medium, campaign), referrer e landing page."},{title:"Histórico no site",desc:"últimas 20 páginas visitadas e últimos 30 eventos de interação (cliques em CTAs, downloads de Insights, envios de formulário)."},{title:"Dados técnicos via Google Analytics 4",desc:"tipo de dispositivo, navegador, paÃs aproximado."}]),s.jsxs("p",{className:"text-white/70 mt-4 mb-2",children:[s.jsx("strong",{className:"text-white",children:"Como usamos:"})," medir desempenho, melhorar a experiência de uso e, quando você opta por preencher um formulário, anexar esse histórico anônimo ao seu contato para enriquecer o atendimento."]}),s.jsxs("p",{className:"text-white/70 mb-2",children:[s.jsx("strong",{className:"text-white",children:"Cookies adicionais (marketing/preferências):"}),' só são ativados após consentimento explÃcito no banner de cookies. Você pode revisar e alterar suas escolhas a qualquer momento em "Preferências de cookies".']}),s.jsxs("p",{className:"text-white/70",children:[s.jsx("strong",{className:"text-white",children:"Seus direitos:"}),' desativar analytics em "Preferências de cookies", limpar o storage do navegador ou solicitar exclusão via ',s.jsx("a",{href:"mailto:[email protected]",className:"text-[#F4845F] hover:underline",children:"[email protected]"}),"."]})]}),s.jsxs("section",{className:"border-b border-white/10 pb-8",children:[s.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:"11. Atualizações da PolÃtica"}),s.jsx("p",{className:"text-white/70",children:"A infinity6 poderá atualizar esta PolÃtica para refletir melhorias em processos, mudanças regulatórias ou evolução tecnológica, comunicando tais alterações de forma clara e transparente."})]}),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:"12. Contato"}),s.jsx("p",{className:"text-white/70 mb-4",children:"Em caso de dúv
951idas ou solicitações relacionadas a esta polÃtica:"}),s.jsx("div",{className:"bg-white/5 border border-white/10 p-6 rounded-lg mb-6",children:s.jsxs("p",{className:"text-white/70",children:[s.jsx("strong",{className:"text-white",children:"E-mail:"})," [email protected]"]})}),s.jsx("p",{className:"text-white/70 flex items-center gap-2",children:"ð A infinity6 reafirma seu compromisso com a confiança, segurança e ética no uso de dados e inteligência artificial."})]})]})},uAe=()=>{iD();const{language:e}=be(),n={en:{title:"Privacy Policy",subtitle:"Your privacy is our priority. Learn how we protect and handle your data.",lastUpdated:"Last updated: June 2026"},pt:{title:"PolÃtica de Privacidade",subtitle:"Sua privacidade é nossa prioridade. Saiba como protegemos e gerenciamos seus dados.",lastUpdated:"Ãltima atualização: Junho 2026"}}[e],r={introduction:{title:"1. Introduction",text:'At infinity6 ("we," "our," or "us"), we are committed to protecting your privacy and personal information. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you visit our website or use our services.'},information:{title:"2. Information We Collect",personalTitle:"Personal Information",personalText:"We may collect personal information that you voluntarily provide to us, including:",personalItems:["Name and contact information (email, phone number)","Company information and job title","Communications with us through contact forms or email","Information provided during consultations or demos"],technicalTitle:"Technical Information",technicalText:"We automatically collect certain information when you visit our website:",technicalItems:["IP address and device information","Browser type and version","Website usage data and analytics","Cookies and similar tracking technologies"]},usage:{title:"3. How We Use Your Information",text:"We use the collected information for the following purposes:",items:["Provide and improve our AI solutions and services","Respond to your inquiries and provide customer support","Send you relevant information about our products and services","Analyze website usage to improve user experience","Comply with legal obligations and protect our rights"]},security:{title:"4. Data Security",text:"We implement appropriate technical and organizational security measures to protect your personal information:",items:["Encryption of data in transit and at rest","Regular security assessments and updates","Access controls and employee training","Secure cloud infrastructure with leading providers"]},sharing:{title:"5. Information Sharing",text:"We do not sell your personal information. We may share your information in the following circumstances:",items:["With trusted service providers who assist in our operations","To comply with legal requirements or protect our rights","In connection with a business transaction (merger, acquisition)","With your explicit consent for specific purposes"]},rights:{title:"6. Your Rights",text:"Depending on your location, you may have the following rights regarding your personal information:",items:["Access and receive a copy of your personal data","Rectify inaccurate or incomplete information","Request deletion of your personal data","Object to or restrict processing of your data","Data portability rights"]},transfers:{title:"7. International Data Transfers",text:"Your information may be transferred to and processed in countries other than your own. We ensure appropriate safeguards are in place to protect your data in accordance with applicable laws."},cookies:{title:"8. Cookies and Site Analytics",intro:"When you browse infinity6.ai, we automatically collect, under the legal basis of legitimate interest, anonymous information to understand how the site is used and improve your experience. No personally identifiable data is collected at this stage.",collectedTitle:"What we collect:",collectedItems:[{title:"anonymous_id",desc:"anonymous identifier (UUID) generated in your browser and stored in localStorage. Does not identify you personally."},{title:"session_id",desc:"temporary session identifier; expires after 30 minutes of inactivity."},{title:"Visit origin",desc:"UTM parameters (source, medium, campaign), referrer and landing page."},{title:"On-site history",desc:"last 20 pages visited and last 30 interaction events (CTA clicks, Insight downloads, form submissions)."},{title:"Technical data via Google Analytics 4",desc:"device type, browser, approximate country."}],usage:"How we use it: measure performance, improve UX, and when you choose to fill out a form, attach this anonymous history to your contact to enrich the conversation.",additional:'Additional cookies (marketing/preferences): only activated after explicit consent in the cookie banner. You can review and change your choices at any time in "Cookie preferences".',rights:'Your rights: disable analytics in "Cookie preferences", clear your browser storage, or request deleti
951on via [email protected].'},changes:{title:"9. Changes to This Policy",text:'We may update this Privacy Policy periodically. We will notify you of any material changes by posting the new policy on our website and updating the "Last updated" date.'},contact:{title:"10. Contact Us",text:"If you have any questions about this Privacy Policy or wish to exercise your rights, please contact us:",email:"Email:",address:"Address:",company:"infinity6 AI Solutions",dpo:"Data Protection Officer"}},a=(o,l,c)=>s.jsxs("section",{className:"border-b border-white/10 pb-8",children:[s.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:o}),s.jsx("p",{className:"text-white/70 mb-4",children:l}),c&&s.jsx("ul",{className:"list-disc list-inside text-white/70 space-y-1 marker:text-[#F4845F]",children:c.map((u,d)=>s.jsx("li",{children:u},d))})]}),i=()=>s.jsxs("div",{className:"max-w-4xl mx-auto space-y-8",children:[a(r.introduction.title,r.introduction.text),s.jsxs("section",{className:"border-b border-white/10 pb-8",children:[s.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:r.information.title}),s.jsx("h3",{className:"text-lg font-semibold text-white/80 mb-2",children:r.information.personalTitle}),s.jsx("p",{className:"text-white/70 mb-4",children:r.information.personalText}),s.jsx("ul",{className:"list-disc list-inside text-white/70 mb-6 space-y-1 marker:text-[#F4845F]",children:r.information.personalItems.map((o,l)=>s.jsx("li",{children:o},l))}),s.jsx("h3",{className:"text-lg font-semibold text-white/80 mb-2",children:r.information.technicalTitle}),s.jsx("p",{className:"text-white/70 mb-4",children:r.information.technicalText}),s.jsx("ul",{className:"list-disc list-inside text-white/70 space-y-1 marker:text-[#F4845F]",children:r.information.technicalItems.map((o,l)=>s.jsx("li",{children:o},l))})]}),a(r.usage.title,r.usage.text,r.usage.items),a(r.security.title,r.security.text,r.security.items),a(r.sharing.title,r.sharing.text,r.sharing.items),a(r.rights.title,r.rights.text,r.rights.items),a(r.transfers.title,r.transfers.text),s.jsxs("section",{className:"border-b border-white/10 pb-8",children:[s.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:r.cookies.title}),s.jsx("p",{className:"text-white/70 mb-4",children:r.cookies.intro}),s.jsx("p",{className:"text-white/70 mb-3",children:s.jsx("strong",{className:"text-white",children:r.cookies.collectedTitle})}),s.jsx("ul",{className:"list-disc list-inside text-white/70 space-y-2 marker:text-[#F4845F] mb-4",children:r.cookies.collectedItems.map((o,l)=>s.jsxs("li",{children:[s.jsxs("strong",{className:"text-white",children:[o.title,":"]})," ",o.desc]},l))}),s.jsx("p",{className:"text-white/70 mb-2",children:r.cookies.usage}),s.jsx("p",{className:"text-white/70 mb-2",children:r.cookies.additional}),s.jsx("p",{className:"text-white/70",children:r.cookies.rights})]}),a(r.changes.title,r.changes.text),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:r.contact.title}),s.jsx("p",{className:"text-white/70 mb-4",children:r.contact.text}),s.jsxs("div",{className:"bg-white/5 border border-white/10 p-6 rounded-lg",children:[s.jsxs("p",{className:"text-white/70 mb-2",children:[s.jsx("strong",{className:"text-white",children:r.contact.email})," [email protected]"]}),s.jsxs("p",{className:"text-white/70 mb-2",children:[s.jsx("strong",{className:"text-white",children:r.contact.address})," ",r.contact.company]}),s.jsx("p",{className:"text-white/70",children:s.jsx("strong",{className:"text-white",children:r.contact.dpo})})]})]})]});return s.jsxs("div",{className:"relative overflow-hidden",children:[s.jsx(ns,{page:"privacyPolicy"}),s.jsx("section",{className:"w-full flex items-center justify-center pt-28 pb-24 relative bg-gradient-to-b from-[#F4845F]/30 via-[#F4845F]/15 via-70% to-[#0B1224]",children:s.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:s.jsxs("div",{className:"text-center max-w-4xl mx-auto",children:[s.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold text-white mb-3 leading-tight",children:n.title}),s.jsx("p",{className:"text-base sm:text-lg text-white/60 mb-2 leading-relaxed",children:n.subtitle}),s.jsx("p",{className:"text-sm text-white/40",children:n.lastUpdated})]})})}),s.jsx("div",{className:"relative bg-[#0B1224]",children:s.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 py-16",children:e==="pt"?s.jsx(cAe,{}):i()})})]})},dAe=()=>{iD();const{language:e}=be(),n={en:{title:"Ethics Policy",subtitle:"Our commitment to ethical AI and responsible business practices.",lastUpdated:"Last updated: January 2025",sections:{foundation:{title:"1. Our Ethical Foundation",text:"At infinity6, we believe that artificial intelligence should serve humanity's best interests. Our commitment to ethical AI development guides every aspect of our work, from research and development to deployment and ongoing maintenance of our solutions."},development:{title:"2. Responsible AI Development",fairnessTitle:"Fairness and Non-Discrimination",fairnessText:"We are committed to developing AI systems that are fair and unbiased:",fairnessItems:["Regular bias testing and mitigation in all our AI models","Diverse training datasets that represent different demographics","Continuous monitoring for discriminatory outcomes","Inclusive design practices throughout development"],transparencyTitle:"Trans
951parency and Explainability",transparencyText:"We believe in making AI decisions understandable:",transparencyItems:["Clear documentation of AI system capabilities and limitations","Explainable AI techniques where decision transparency is critical","Open communication about how our systems work","Regular reporting on AI system performance and impact"]},data:{title:"3. Data Ethics and Privacy",minimizationTitle:"Data Minimization",minimizationText:"We collect and use only the data necessary for our services:",minimizationItems:["Purpose limitation - data used only for stated purposes","Data retention policies with automatic deletion","Regular audits of data collection and usage practices","Strong consent mechanisms for data processing"],privacyTitle:"Privacy by Design",privacyText:"Privacy is built into every system we develop:",privacyItems:["End-to-end encryption for all data transmissions","Anonymization and pseudonymization techniques","Secure multi-party computation where applicable","Regular privacy impact assessments"]},human:{title:"4. Human-Centered AI",text:"Our AI solutions are designed to augment human capabilities, not replace human judgment:",items:["Human oversight in critical decision-making processes","Easy opt-out mechanisms for automated systems","Support for human skill development and adaptation","Respect for human autonomy and choice"]},environmental:{title:"5. Environmental Responsibility",text:"We are committed to sustainable AI development:",items:["Energy-efficient model architectures and training practices","Green cloud infrastructure and renewable energy usage","Carbon footprint monitoring and offset programs","Lifecycle assessment of our AI systems' environmental impact"]},stakeholder:{title:"6. Stakeholder Engagement",text:"We actively engage with various stakeholders to ensure our ethical standards:",items:["Regular consultation with ethics experts and advisory boards","Collaboration with academic institutions and research organizations","Participation in industry standards and best practice initiatives","Open dialogue with civil society and advocacy groups"]},improvement:{title:"7. Continuous Improvement",text:"Ethics is an ongoing commitment, not a one-time achievement:",items:["Regular ethics training for all team members","Continuous monitoring and evaluation of ethical practices","Feedback mechanisms for reporting ethical concerns","Annual ethics audits and public reporting"]},compliance:{title:"8. Compliance and Governance",text:"We adhere to the highest standards of compliance and governance:",items:["Compliance with GDPR, CCPA, and other privacy regulations","Adherence to emerging AI governance frameworks","Regular legal and compliance reviews","Transparent reporting of compliance metrics"]},contact:{title:"9. Contact Our Ethics Team",text:"For questions about our ethics policy, to report concerns, or to discuss ethical considerations:",officer:"Chief Ethics Officer",email:"Email:",phone:"Phone:",address:"Address:",company:"infinity6 AI Solutions, Ethics Department"}}},pt:{title:"PolÃtica de Ãtica",subtitle:"Nosso compromisso com IA ética e práticas comerciais responsáveis.",lastUpdated:"Ãltima atualização: Janeiro 2025",sections:{foundation:{title:"1. Nossa Base Ãtica",text:"Na infinity6, acreditamos que a inteligência artificial deve servir aos melhores interesses da humanidade. Nosso compromisso com o desenvolvimento ético de IA orienta todos os aspectos do nosso trabalho, desde pesquisa e desenvolvimento até implantação e manutenção contÃnua de nossas soluções."},development:{title:"2. Desenvolvimento Responsável de IA",fairnessTitle:"Equidade e Não-Discriminação",fairnessText:"Estamos comprometidos em desenvolver sistemas de IA que sejam justos e imparciais:",fairnessItems:["Testes regulares de viés e mitigação em todos os nossos modelos de IA","Conjuntos de dados de treinamento diversificados que representam diferentes demografias","Monitoramento contÃnuo para resultados discriminatórios","Práticas de design inclusivo em todo o desenvolvimento"],transparencyTitle:"Trans
951parência e Explicabilidade",transparencyText:"Acreditamos em tornar as decisões de IA compreensÃveis:",transparencyItems:["Documentação clara das capacidades e limitações do sistema de IA","Técnicas de IA explicável onde a transparência da decisão é crÃtica","Comunicação aberta sobre como nossos sistemas funcionam","Relatórios regulares sobre desempenho e impacto do sistema de IA"]},data:{title:"3. Ãtica de Dados e Privacidade",minimizationTitle:"Minimização de Dados",minimizationText:"Coletamos e usamos apenas os dados necessários para nossos serviços:",minimizationItems:["Limitação de propósito - dados usados apenas para fins declarados","PolÃticas de retenção de dados com exclusão automática","Auditorias regulares das práticas de coleta e uso de dados","Mecanismos de consentimento rigorosos para processamento de dados"],privacyTitle:"Privacidade por Design",privacyText:"A privacidade é incorporada em todos os sistemas que desenvolvemos:",privacyItems:["Criptografia de ponta a ponta para todas as transmissões de dados","Técnicas de anonimização e pseudonimização","Computação segura multi-partes quando aplicável","Avaliações regulares de impacto na privacidade"]},human:{title:"4. IA Centrada no Humano",text:"Nossas soluções de IA são projetadas para aumentar as capacidades humanas, não substituir o julgamento humano:",items:["Supervisão humana em processos crÃticos de tomada de decisão","Mecanismos fáceis de opt-out para sistemas automatizados","Suporte para desenvolvimento e adaptação de habilidades humanas","Respeito pela autonomia e escolha humana"]},environmental:{title:"5. Responsabilidade Ambiental",text:"Estamos comprometidos com o desenvolvimento sustentável de IA:",items:["Arquiteturas de modelo energeticamente eficientes e práticas de treinamento","Infraestrutura em nuvem verde e uso de energia renovável","Monitoramento da pegada de carbono e programas de compensação","Avaliação do ciclo de vida do impacto ambiental dos nossos sistemas de IA"]},stakeholder:{title:"6. Engajamento das Partes Interessadas",text:"Nos envolvemos ativamente com várias partes interessadas para garantir nossos padrões éticos:",items:["Consulta regular com especialistas em ética e conselhos consultivos","Colaboração com instituições acadêmicas e organizações de pesquisa","Participação em padrões da indústria e iniciativas de melhores práticas","Diálogo aberto com a sociedade civil e grupos de advocacia"]},improvement:{title:"7. Melhoria ContÃnua",text:"A ética é um compromisso contÃnuo, não uma conquista única:",items:["Treinamento regular em ética para todos os membros da equipe","Monitoramento e avaliação contÃnua das práticas éticas","Mecanismos de feedback para relatar preocupações éticas","Auditorias anuais de ética e relatórios públicos"]},compliance:{title:"8. Conformidade e Governança",text:"Aderimos aos mais altos padrões de conformidade e governança:",items:["Conformidade com GDPR, CCPA e outras regulamentações de privacidade","Aderência a estruturas emergentes de governança de IA","Revisões regulares legais e de conformidade","Relatórios transparentes de métricas de conformidade"]},contact:{title:"9. Contate Nossa Equipe de Ãtica",text:"Para perguntas sobre nossa polÃtica de ética, para relatar preocupações ou discutir considerações éticas:",officer:"Diretor de Ãtica",email:"Email:",phone:"Telefone:",address:"Endereço:",company:"infinity6 AI Solutions, Departamento de Ãtica"}}}}[e],r=(i,o,l)=>s.jsxs("section",{className:"border-b border-white/10 pb-8",children:[s.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:i}),s.jsx("p",{className:"text-white/70 mb-4",children:o}),l&&s.jsx("ul",{className:"list-disc list-inside text-white/70 space-y-1 marker:text-[#F4845F]",children:l.map((c,u)=>s.jsx("li",{children:c},u))})]}),a=(i,o,l)=>s.jsxs(s.Fragment,{children:[s.jsx("h3",{className:"text-lg font-semibold text-white/80 mb-2",children:i}),s.jsx("p",{className:"text-white/70 mb-4",children:o}),s.jsx("ul",{className:"list-disc list-inside text-white/70 mb-6 space-y-1 marker:text-[#F4845F]",children:l.map((c,u)=>s.jsx("li",{children:c},u))})]});return s.jsxs("div",{className:"relative overflow-hidden",children:[s.jsx(ns,{page:"ethicsPolicy"}),s.jsx("section",{className:"w-full flex items-center justify-center pt-28 pb-24 relative bg-gradient-to-b from-[#F4845F]/30 via-[#F4845F]/15 via-70% to-[#0B1224]",children:s.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:s.jsxs("div",{className:"text-center max-w-4xl mx-auto",children:[s.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold text-white mb-3 leading-tight",children:n.title}),s.jsx("p",{className:"text-base sm:text-lg text-white/60 mb-2 leading-relaxed",children:n.subtitle}),s.jsx("p",{className:"text-sm text-white/40",children:n.lastUpdated})]})})}),s.jsx("div",{className:"relative bg-[#0B1224]",children:s.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 py-16",children:s.jsxs("div",{className:"max-w-4xl mx-auto
951space-y-8",children:[r(n.sections.foundation.title,n.sections.foundation.text),s.jsxs("section",{className:"border-b border-white/10 pb-8",children:[s.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:n.sections.development.title}),a(n.sections.development.fairnessTitle,n.sections.development.fairnessText,n.sections.development.fairnessItems),a(n.sections.development.transparencyTitle,n.sections.development.transparencyText,n.sections.development.transparencyItems)]}),s.jsxs("section",{className:"border-b border-white/10 pb-8",children:[s.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:n.sections.data.title}),a(n.sections.data.minimizationTitle,n.sections.data.minimizationText,n.sections.data.minimizationItems),a(n.sections.data.privacyTitle,n.sections.data.privacyText,n.sections.data.privacyItems)]}),r(n.sections.human.title,n.sections.human.text,n.sections.human.items),r(n.sections.environmental.title,n.sections.environmental.text,n.sections.environmental.items),r(n.sections.stakeholder.title,n.sections.stakeholder.text,n.sections.stakeholder.items),r(n.sections.improvement.title,n.sections.improvement.text,n.sections.improvement.items),r(n.sections.compliance.title,n.sections.compliance.text,n.sections.compliance.items),s.jsxs("section",{children:[s.jsx("h2",{className:"text-2xl font-bold text-white mb-4",children:n.sections.contact.title}),s.jsx("p",{className:"text-white/70 mb-4",children:n.sections.contact.text}),s.jsx("div",{className:"bg-white/5 border border-white/10 p-6 rounded-lg",children:s.jsxs("p",{className:"text-white/70 mb-2",children:[s.jsx("strong",{className:"text-white",children:n.sections.contact.email})," [email protected]"]})})]})]})})})]})},mAe=()=>{const e=hn(),{t}=be();return S.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),s.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:s.jsxs("div",{className:"text-center",children:[s.jsx("h1",{className:"text-4xl font-bold mb-4",children:t("notFound.title")}),s.jsx("p",{className:"text-xl text-gray-600 mb-4",children:t("notFound.subtitle")}),s.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:t("notFound.backHome")})]})})},pAe=1,fAe="06ae63a0-45f9-4633-a64a-694fbe4fb1d0",hAe="e93ee020-684a-4686-8879-c9847ef30581",gAe="/vendor-assets/hero-video-pt-v8.mp4",vAe="a/v1/e93ee020-684a-4686-8879-c9847ef30581/06ae63a0-45f9-4633-a64a-694fbe4fb1d0/hero-video-pt-v8.mp4",yAe="hero-video-pt-v8.mp4",xAe=968851,bAe="video/mp4",wAe="2026-08-11T22:11:12Z",kAe={version:pAe,asset_id:fAe,project_id:hAe,url:gAe,r2_key:vAe,original_filename:yAe,size:xAe,content_type:bAe,created_at:wAe},SAe=1,jAe="8bfd2725-148b-43f8-8e9b-3e46aebb7e88",PAe="e93ee020-684a-4686-8879-c9847ef30581",AAe="/vendor-assets/hero-video-pt-v8.webm",_Ae="a/v1/e93ee020-684a-4686-8879-c9847ef30581/8bfd2725-148b-43f8-8e9b-3e46aebb7e88/hero-video-pt-v8.webm",NAe="hero-video-pt-v8.webm",CAe=450772,EAe="video/webm",TAe="2026-08-11T22:11:14Z",OAe={version:SAe,asset_id:jAe,project_id:PAe,url:AAe,r2_key:_Ae,original_filename:NAe,size:CAe,content_type:EAe,created_at:TAe},IAe=1,MAe="a0f16a8f-0d8a-42f5-90b9-880794c7458a",$Ae="e93ee020-684a-4686-8879-c9847ef30581",FAe="/vendor-assets/hero-video-pt-v8-poster.jpg",RAe="a/v1/e93ee020-684a-4686-8879-c9847ef30581/a0f16a8f-0d8a-42f5-90b9-880794c7458a/hero-video-pt-v8-poster.jpg",DAe="hero-video-pt-v8-poster.jpg",LAe=64307,zAe="image/jpeg",BAe="2026-08-11T22:11:17Z",qAe={version:IAe,asset_id:MAe,project_id:$Ae,url:FAe,r2_key:RAe,original_filename:DAe,size:LAe,content_type:zAe,created_at:BAe},UAe=1,WAe="0c41e716-392f-42a8-b2c5-b2f542006b84",VAe="e93ee020-684a-4686-8879-c9847ef30581",HAe="/vendor-assets/hero-video-en-v1.mp4",KAe="a/v1/e93ee020-684a-4686-8879-c9847ef30581/0c41e716-392f-42a8-b2c5-b2f542006b84/hero-video-en-v1.mp4",GAe="hero-video-en-v1.mp4",QAe=845449,YAe="video/mp4",ZAe="2026-08-12T15:50:56Z",XAe={version:UAe,asset_id:WAe,project_id:VAe,url:HAe,r2_key:KAe,original_filename:GAe,size:QAe,content_type:YAe,created_at:ZAe},JAe=1,e_e="7f96fd48-5b3b-4f4c-9f18-84ca7e871a62",t_e="e93ee020-684a-4686-8879-c9847ef30581",n_e="/vendor-assets/hero-video-en-v1-poster.jpg",r_e="a/v1/e93ee020-684a-4686-8879-c9847ef30581/7f96fd48-5b3b-4f4c-9f18-84ca7e871a62/hero-video-en-v1-poster.jpg",a_e="hero-video-en-v1-poster.jpg",i_e=43571,o_e="image/jpeg",s_e="2026-08-12T15:
95151:06Z",l_e={version:JAe,asset_id:e_e,project_id:t_e,url:n_e,r2_key:r_e,original_filename:a_e,size:i_e,content_type:o_e,created_at:s_e},c_e=1,u_e="39f6af0d-221e-4596-9a14-196d8ef71fad",d_e="e93ee020-684a-4686-8879-c9847ef30581",m_e="/vendor-assets/hero-mapa-mobile-pt-v9.png",p_e="a/v1/e93ee020-684a-4686-8879-c9847ef30581/39f6af0d-221e-4596-9a14-196d8ef71fad/hero-mapa-mobile-pt-v9.png",f_e="hero-mapa-mobile-pt-v9.png",h_e=88988,g_e="image/webp",v_e="2026-08-12T12:29:43Z",y_e={version:c_e,asset_id:u_e,project_id:d_e,url:m_e,r2_key:p_e,original_filename:f_e,size:h_e,content_type:g_e,created_at:v_e},x_e=1,b_e="2c72a28b-de0c-41f9-84ba-e7e18a4a6e12",w_e="e93ee020-684a-4686-8879-c9847ef30581",k_e="/vendor-assets/hero-mapa-mobile-en-v9.png",S_e="a/v1/e93ee020-684a-4686-8879-c9847ef30581/2c72a28b-de0c-41f9-84ba-e7e18a4a6e12/hero-mapa-mobile-en-v9.png",j_e="hero-mapa-mobile-en-v9.png",P_e=86376,A_e="image/webp",__e="2026-08-12T12:29:55Z",N_e={version:x_e,asset_id:b_e,project_id:w_e,url:k_e,r2_key:S_e,original_filename:j_e,size:P_e,content_type:A_e,created_at:__e},c5="absolute inset-0 w-full h-full object-contain object-center lg:object-cover lg:object-[center_58%] lg:translate-y-[4vh] select-none filter brightness-100 saturate-100 contrast-[1.06]",u5="linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%)",C_e=()=>{const e=wt(),{language:t}=be(),n=t==="pt",[r,a]=S.useState(!1);S.useEffect(()=>{const d=window.matchMedia("(prefers-reduced-motion: reduce)"),m=()=>a(!d.matches);return m(),d.addEventListener("change",m),()=>d.removeEventListener("change",m)},[]);const i=n?"Transformamos sinais do negócio, mercado e comportamento em decisões que protegem margem, aceleram giro, aumentam conversão e reduzem custo.":"We turn business, market and behavior signals into decisions that protect margin, accelerate turnover, increase conversion and reduce cost.",o=n?"antes":"before",l=n?"Decida ":"Decide ",c=n?" do mercado.":" the market.",u=n?qAe.url:l_e.url;return s.jsxs("section",{className:"relative min-h-[100svh] bg-[#0B1224] overflow-hidden flex flex-col",children:[s.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-0 overflow-hidden hidden md:block",children:[r?s.jsx("video",{autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"metadata",poster:u,className:c5,children:n?s.jsxs(s.Fragment,{children:[s.jsx("source",{src:kAe.url,type:"video/mp4"}),s.jsx("source",{src:OAe.url,type:"video/webm"})]}):s.jsx("source",{src:XAe.url,type:"video/mp4"})},t):s.jsx("img",{src:u,alt:"",loading:"eager",decoding:"async",className:c5}),s.jsx("div",{className:"absolute inset-0 bg-[#0B1224]/10"}),s.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to bottom, #0B1224 0%, rgba(11,18,36,0.45) 10%, rgba(11,18,36,0) 23%, rgba(11,18,36,0) 74%, rgba(11,18,36,0.55) 87%, #0B1224 100%)"}}),s.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to right, #0B1224 0%, rgba(11,18,36,0.35) 8%, rgba(11,18,36,0) 18%, rgba(11,18,36,0) 82%, rgba(11,18,36,0.35) 92%, #0B1224 100%)"}}),s.jsx("div",{className:"absolute inset-0",style:{background:"radial-gradient(40% 42% at 50% 64%, rgba(244,132,95,0.12) 0%, rgba(244,132,95,0.04) 50%, rgba(244,132,95,0) 78%)"}})]}),s.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-[27svh] h-[40svh] z-0 overflow-hidden md:hidden",children:[s.jsx("img",{src:n?y_e.url:N_e.url,alt:"",loading:"eager",decoding:"async",className:"absolute inset-0 w-full h-full object-contain object-center select-none",style:{mixBlendMode:"lighten",maskImage:u5,WebkitMaskImage:u5,maskComposite:"intersect",WebkitMaskComposite:"source-in"}}),s.jsx("div",{className:"absolute inset-0",style:{background:"radial-gradient(46% 46% at 50% 50%, rgba(244,132,95,0.12) 0%, rgba(244,132,95,0.04) 52%, rgba(244,132,95,0) 78%)"}})]}),s.jsx("div",{className:"relative z-10 flex-shrink-0 pt-[10vh] sm:pt-[9vh] md:pt-[11vh] px-5 sm:px-6",children:s.jsx("div",{className:"text-center max-w-4xl mx-auto",children:s.jsx("h1",{className:"text-3xl sm:text-4xl md:text-6xl lg:text-7xl font-bold text-white leading-tight tracking-tight",dangerouslySetInnerHTML:{__html:'The Platform for<br/><span style="color:#F4845F">Decision Advantage</span>'}})})}
951),s.jsx("div",{className:"relative flex-1 min-h-[18vh] sm:min-h-0 w-full overflow-hidden flex items-center justify-center -my-[1vh] sm:-my-[2vh] md:-my-[3vh]"}),s.jsx("div",{className:"relative z-10 flex-shrink-0 pb-[4vh] sm:pb-[2vh] md:pb-[3vh] px-5 sm:px-6",children:s.jsxs("div",{className:"text-center max-w-2xl mx-auto flex flex-col items-center gap-4 sm:gap-5",children:[s.jsx("p",{className:"text-base sm:text-lg text-white/70 leading-relaxed",children:i}),s.jsxs(Ee,{to:e("/contact"),className:"group inline-flex items-center gap-2 px-8 py-4 bg-transparent text-white font-semibold rounded-xl border border-[#F4845F]/60 animate-glow-coral transition-all duration-500 ease-out hover:bg-[#F4845F] hover:border-[#F4845F] hover:shadow-[0_0_30px_rgba(244,132,95,0.5),0_0_60px_rgba(244,132,95,0.2)]",children:[s.jsxs("span",{children:[l,s.jsx("span",{className:"text-[#F4845F] group-hover:text-black transition-colors duration-300 [text-shadow:0_0_8px_rgba(244,132,95,0.9),0_0_20px_rgba(244,132,95,0.5),0_0_35px_rgba(244,132,95,0.25)]",children:o}),c]}),s.jsx(_a,{size:18,className:"opacity-0 -translate-x-2 transition-all duration-300 group-hover:opacity-100 group-hover:translate-x-1"})]})]})})]})},E_e=1,T_e="16eba22f-2478-4cfc-90a3-8c7f5568f89d",O_e="e93ee020-684a-4686-8879-c9847ef30581",I_e="/vendor-assets/oracle.png",M_e="a/v1/e93ee020-684a-4686-8879-c9847ef30581/16eba22f-2478-4cfc-90a3-8c7f5568f89d/oracle.png",$_e="oracle.png",F_e=26261,R_e="image/png",D_e="2026-07-22T23:23:02Z",L_e={version:E_e,asset_id:T_e,project_id:O_e,url:I_e,r2_key:M_e,original_filename:$_e,size:F_e,content_type:R_e,created_at:D_e},z_e=1,B_e="4d4f4060-bd3c-4fba-b021-89f5fcff50d2",q_e="e93ee020-684a-4686-8879-c9847ef30581",U_e="/vendor-assets/sap.svg",W_e="a/v1/e93ee020-684a-4686-8879-c9847ef30581/4d4f4060-bd3c-4fba-b021-89f5fcff50d2/sap.svg",V_e="sap.svg",H_e=1042,K_e="image/svg+xml",G_e="2026-07-22T23:22:50Z",oD={version:z_e,asset_id:B_e,project_id:q_e,url:U_e,r2_key:W_e,original_filename:V_e,size:H_e,content_type:K_e,created_at:G_e},Q_e=1,Y_e="0ce4d52c-5788-4776-a84a-ce56a00c54cc",Z_e="e93ee020-684a-4686-8879-c9847ef30581",X_e="/vendor-assets/snowflake.svg",J_e="a/v1/e93ee020-684a-4686-8879-c9847ef30581/0ce4d52c-5788-4776-a84a-ce56a00c54cc/snowflake.svg",eNe="snowflake.svg",tNe=2474,nNe="image/svg+xml",rNe="2026-07-22T23:22:54Z",aNe={version:Q_e,asset_id:Y_e,project_id:Z_e,url:X_e,r2_key:J_e,original_filename:eNe,size:tNe,content_type:nNe,created_at:rNe},iNe=1,oNe="dbf59775-1a3b-491c-ae7e-42fcfb24aa35",sNe="e93ee020-684a-4686-8879-c9847ef30581",lNe="/vendor-assets/databricks.svg",cNe="a/v1/e93ee020-684a-4686-8879-c9847ef30581/dbf59775-1a3b-491c-ae7e-42fcfb24aa35/databricks.svg",uNe="databricks.svg",dNe=437,mNe="image/svg+xml",pNe="2026-07-22T23:22:36Z",fNe={version:iNe,asset_id:oNe,project_id:sNe,url:lNe,r2_key:cNe,original_filename:uNe,size:dNe,content_type:mNe,created_at:pNe},hNe=1,gNe="08f858de-102a-4170-a399-20c2db26d7c4",vNe="e93ee020-684a-4686-8879-c9847ef30581",yNe="/vendor-assets/aws.svg",xNe="a/v1/e93ee020-684a-4686-8879-c9847ef30581/08f858de-102a-4170-a399-20c2db26d7c4/aws.svg",bNe="aws.svg",wNe=8235,kNe="image/svg+xml",SNe="2026-07-22T23:22:34Z",jNe={version:hNe,asset_id:gNe,project_id:vNe,url:yNe,r2_key:xNe,original_filename:bNe,size:wNe,content_type:kNe,created_at:SNe},PNe=1,ANe="3dfd993e-a236-4a52-a13d-4e3a6b6c1cb2",_Ne="e93ee020-684a-4686-8879-c9847ef30581",NNe="/vendor-assets/googlecloud.svg",CNe="a/v1/e93ee020-684a-4686-8879-c9847ef30581/3dfd993e-a236-4a52-a13d-4e3a6b6c1cb2/googlecloud.svg",ENe="googlecloud.svg",TNe=698,ONe="image/svg+xml",INe="2026-07-23T00:14:07Z",MNe={version:PNe,asset_id:ANe,project_id:_Ne,url:NNe,r2_key:CNe,original_filename:ENe,size:TNe,content_type:ONe,created_at:INe},$Ne=1,FNe="9ef79c4f-dbdf-4806-8ebe-1c8ed75f14c2",RNe="e93ee020-684a-4686-8879-c9847ef30581",DNe="/vendor-assets/azure.png",LNe="a/v1/e93ee020-684a-4686-8879-c9847ef30581/9ef79c4f-dbdf-4806-8ebe-1c8ed75f14c2/azure.png",zNe="azure.png",BNe=151888,qNe="image/png",UNe="2026-07-23T00:16:10Z",WNe={version:$Ne,asset_id:FNe,project_id:RNe,url:DNe,r2_key:LNe,original_filename:zNe,size:BNe,content_type:qNe,created_at:UNe},VNe=1,HNe="e4daa55f-8b55-4e1c-a794-77c25f8b25e8",KNe="e93ee020-684a-4686-8879-c9847ef30581",GNe="/vendor-assets/ibm.png",QNe="a/v1/e93ee020-684a-4686-8879-c9847ef30581/e4daa55f-8b55-4e1c-a794-77c25f8b25e8/ibm.png",YNe="ibm.png",ZNe=24818,XNe="image/png",JNe="2026-07-23T00:16:11Z",eCe={version:VNe,asset_id:HNe,project_id:KNe,url:GNe,r2_key:QNe,original_filename:YNe,size:ZNe,content_type:XNe,created_at:JNe},tCe=1,nCe="c7fa7548-41c0-43d4-b315-864db6b71464",rCe="e93ee020-684a-4686-8879-c9847ef30581",aCe="/vendor-assets/salesforce.png",iCe="a/v1/e93ee020-684a-4686-8879-c9847ef30581/c7fa7548-41c0-43d4-b315-864db6b71464/salesforce.png",oCe="salesforce.png",sCe=5587,lCe="image/png",cCe="2026-07-22T23:23:06Z",sD={version:tCe,asset_id:nCe,project_id:rCe,url:aCe,r2_key:iCe,original_filename:oCe,size:sCe,content_type:lCe,created_at:cCe},uCe=1,dCe="68b395b9-b999-41e6-b78d-bc1b0b4500b2",mCe="e93ee020-684a-4686-8879-c9847ef30581",pCe="/vendor-assets/hubspot.svg",fCe="a/v1/e93ee020-684a-4686-8879-c9847ef30581/68b395b9-b999-41e6-b78d-bc1b0b4500b2/hubspot.svg",hCe="hubspot.svg",gCe=678,vCe="image/svg+xml",yCe="2026-07-22T23:22:41Z",xCe={version:uCe,asset_id:dCe,project_id:mCe,url:pCe,r2_key:fCe,original_filename:hCe,size:gCe,content_type:vCe,created_at:yCe}
951,bCe=1,wCe="d737ec81-b12b-4caa-96f1-080cf47a0826",kCe="e93ee020-684a-4686-8879-c9847ef30581",SCe="/vendor-assets/shopify.svg",jCe="a/v1/e93ee020-684a-4686-8879-c9847ef30581/d737ec81-b12b-4caa-96f1-080cf47a0826/shopify.svg",PCe="shopify.svg",ACe=1249,_Ce="image/svg+xml",NCe="2026-07-22T23:22:52Z",CCe={version:bCe,asset_id:wCe,project_id:kCe,url:SCe,r2_key:jCe,original_filename:PCe,size:ACe,content_type:_Ce,created_at:NCe},ECe=1,TCe="a7609760-6cb2-4c34-9bfe-d245e712419a",OCe="e93ee020-684a-4686-8879-c9847ef30581",ICe="/vendor-assets/whatsapp.svg",MCe="a/v1/e93ee020-684a-4686-8879-c9847ef30581/a7609760-6cb2-4c34-9bfe-d245e712419a/whatsapp.svg",$Ce="whatsapp.svg",FCe=1231,RCe="image/svg+xml",DCe="2026-07-22T23:22:56Z",LCe={version:ECe,asset_id:TCe,project_id:OCe,url:ICe,r2_key:MCe,original_filename:$Ce,size:FCe,content_type:RCe,created_at:DCe},zCe=1,BCe="440b844d-3952-4467-b359-71b0982faae8",qCe="e93ee020-684a-4686-8879-c9847ef30581",UCe="/vendor-assets/zendesk.svg",WCe="a/v1/e93ee020-684a-4686-8879-c9847ef30581/440b844d-3952-4467-b359-71b0982faae8/zendesk.svg",VCe="zendesk.svg",HCe=339,KCe="image/svg+xml",GCe="2026-07-22T23:22:58Z",QCe={version:zCe,asset_id:BCe,project_id:qCe,url:UCe,r2_key:WCe,original_filename:VCe,size:HCe,content_type:KCe,created_at:GCe},YCe=1,ZCe="62529e5a-217c-46c7-aa2d-a0c5b9181e99",XCe="e93ee020-684a-4686-8879-c9847ef30581",JCe="/vendor-assets/rdstation.png",eEe="a/v1/e93ee020-684a-4686-8879-c9847ef30581/62529e5a-217c-46c7-aa2d-a0c5b9181e99/rdstation.png",tEe="rdstation.png",nEe=12256,rEe="image/png",aEe="2026-07-22T23:23:04Z",iEe={version:YCe,asset_id:ZCe,project_id:XCe,url:JCe,r2_key:eEe,original_filename:tEe,size:nEe,content_type:rEe,created_at:aEe},oEe=1,sEe="6fc5f44f-b0d7-4699-8706-7fda86614071",lEe="e93ee020-684a-4686-8879-c9847ef30581",cEe="/vendor-assets/marketo.png",uEe="a/v1/e93ee020-684a-4686-8879-c9847ef30581/6fc5f44f-b0d7-4699-8706-7fda86614071/marketo.png",dEe="marketo.png",mEe=7472,pEe="image/png",fEe="2026-07-22T23:23:00Z",hEe={version:oEe,asset_id:sEe,project_id:lEe,url:cEe,r2_key:uEe,original_filename:dEe,size:mEe,content_type:pEe,created_at:fEe},gEe=1,vEe="f96f8ac6-7606-4a6b-b440-dfff2abf1b5e",yEe="e93ee020-684a-4686-8879-c9847ef30581",xEe="/vendor-assets/meta.svg",bEe="a/v1/e93ee020-684a-4686-8879-c9847ef30581/f96f8ac6-7606-4a6b-b440-dfff2abf1b5e/meta.svg",wEe="meta.svg",kEe=1339,SEe="image/svg+xml",jEe="2026-07-22T23:22:43Z",PEe={version:gEe,asset_id:vEe,project_id:yEe,url:xEe,r2_key:bEe,original_filename:wEe,size:kEe,content_type:SEe,created_at:jEe},d5=[{name:"Oracle",src:L_e.url},{name:"SAP",src:oD.url},{name:"Snowflake",src:aNe.url},{name:"Databricks",src:fNe.url},{name:"AWS",src:jNe.url},{name:"Google Cloud",src:MNe.url},{name:"Azure",src:WNe.url},{name:"Salesforce",src:sD.url},{name:"IBM",src:eCe.url}],m5=[{name:"Salesforce",src:sD.url},{name:"HubSpot",src:xCe.url},{name:"SAP",src:oD.url},{name:"Shopify",src:CCe.url},{name:"WhatsApp",src:LCe.url},{name:"Zendesk",src:QCe.url},{name:"RD Station",src:iEe.url},{name:"Marketo",src:hEe.url},{name:"Meta Ads",src:PEe.url}],Ff=({item:e,align:t,chipRef:n})=>s.jsxs("div",{ref:n,className:`inline-flex items-center gap-2 px-3.5 py-2 rounded-full bg-white border border-slate-200 shadow-[0_2px_8px_rgba(15,23,42,0.06)] text-slate-700 text-xs md:text-sm hover:shadow-[0_4px_16px_rgba(244,132,95,0.18)] hover:border-[#F4845F]/40 transition-all ${t==="right"?"flex-row-reverse":""}`,children:[s.jsx("img",{src:e.src,alt:"",loading:"lazy",className:"w-4 h-4 object-contain"}),s.jsx("span",{className:"font-medium",children:e.name})]}),AEe=()=>{const{language:e}=be(),t=e==="pt",n=S.useRef(null),r=S.useRef(null),a=S.useRef(null),i=S.useRef([]),o=S.useRef([]),[l,c]=S.useState([]),[u,d]=S.useState([]),[m,p]=S.useState([]),[f,g]=S.useState([]),[h,v]=S.useState({w:0,h:0}),y=()=>{const w=n.current,k=r.current,j=a.current;if(!w||!k||!j)return;const A=w.getBoundingClientRect();v({w:A.width,h:A.height});const P=k.getBoundingClientRect(),_=j.getBoundingClientRect(),N={x:P.left-A.left,y:P.top-A.top+P.height/2},C={x:_.right-A.left,y:_.top-A.top+_.height/2},E=[],T=[];i.current.forEach(D=>
951{if(!D)return;const z=D.getBoundingClientRect(),R=z.right-A.left,B=z.top-A.top+z.height/2,I=N.x,H=N.y,q=Math.max(60,(I-R)*.6),$=R+q,X=I-q;E.push(`M ${R} ${B} C ${$} ${B}, ${X} ${H}, ${I} ${H}`),T.push({x:R,y:B})}),c(E),p(T);const O=[],F=[];o.current.forEach(D=>{if(!D)return;const z=D.getBoundingClientRect(),R=z.left-A.left,B=z.top-A.top+z.height/2,I=C.x,H=C.y,q=Math.max(60,(R-I)*.6),$=I+q,X=R-q;O.push(`M ${I} ${H} C ${$} ${H}, ${X} ${B}, ${R} ${B}`),F.push({x:R,y:B})}),d(O),g(F)};S.useLayoutEffect(()=>{y()},[e]),S.useEffect(()=>{const w=new ResizeObserver(()=>y());n.current&&w.observe(n.current),window.addEventListener("resize",y);const k=window.setTimeout(y,300),j=window.setTimeout(y,1200);return()=>{w.disconnect(),window.removeEventListener("resize",y),window.clearTimeout(k),window.clearTimeout(j)}},[]);const x=t?{badge:"COMO FUNCIONA",titleStart:"Como transformamos sinais em ",titleHighlight:"decisões acionáveis",subtitle:"Da leitura do contexto à ativação no canal, combinamos predição, recomendação e execução para antecipar a próxima melhor decisão.",sourcesLabel:"Capturamos de qualquer ecossistema",activationLabel:"Ativamos em qualquer ecossistema",steps:[{title:"Captura de sinais",desc:"Demanda, preço, estoque, comportamento e contexto de mercado."},{title:"Predição",descBefore:"",highlight:"Modelos proprietários",descAfter:" identificam risco, intenção, elasticidade e propensão."},{title:"Recomendação priorizada",desc:"A melhor ação por objetivo, canal, cliente, SKU ou região."},{title:"Ativação",desc:"A decisão chega à operação no ecossistema do cliente."}]}:{badge:"HOW IT WORKS",titleStart:"How we turn signals into ",titleHighlight:"actionable decisions",subtitle:"From reading the context to activating the channel, we combine prediction, recommendation and execution to anticipate the next best decision.",sourcesLabel:"We capture from any ecosystem",activationLabel:"We activate in any ecosystem",steps:[{title:"Signal capture",desc:"Demand, price, inventory, behavior and market context."},{title:"Prediction",descBefore:"",highlight:"Proprietary models",descAfter:" identify risk, intent, elasticity and propensity."},{title:"Prioritized recommendation",desc:"The best action by objective, channel, customer, SKU or region."},{title:"Activation",desc:"The decision reaches operations across the client ecosystem."}]},b=w=>w===0?r:w===3?a:void 0;return s.jsxs("section",{className:"relative bg-[#F5F6FA]",children:[s.jsx("div",{className:"h-10 bg-gradient-to-b from-[#0B1224] to-[#F5F6FA]"}),s.jsxs("div",{className:"py-12 md:py-16",children:[s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsx("div",{className:"mb-6",children:s.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full bg-[#F4845F]/15 text-[#F4845F] text-xs font-semibold tracking-widest uppercase",children:x.badge})}),s.jsxs("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-bold text-slate-900 leading-snug mb-4",children:[x.titleStart,s.jsx("span",{className:"text-[#F4845F]",children:x.titleHighlight})]}),s.jsx("p",{className:"text-slate-500 text-base md:text-lg max-w-2xl mb-12",children:x.subtitle})]}),s.jsx("div",{className:"hidden lg:block container mx-auto px-6",children:s.jsxs("div",{ref:n,className:"relative",children:[s.jsxs("svg",{className:"absolute inset-0 pointer-events-none",width:h.w,height:h.h,viewBox:`0 0 ${h.w} ${h.h}`,children:[s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:"strokeL",x1:"0",y1:"0",x2:"1",y2:"0",children:[s.jsx("stop",{offset:"0%",stopColor:"#F4845F",stopOpacity:"0.15"}),s.jsx("stop",{offset:"100%",stopColor:"#F4845F",stopOpacity:"0.7"})]}),s.jsxs("linearGradient",{id:"strokeR",x1:"0",y1:"0",x2:"1",y2:"0",children:[s.jsx("stop",{offset:"0%",stopColor:"#F4845F",stopOpacity:"0.7"}),s.jsx("stop",{offset:"100%",stopColor:"#F4845F",stopOpacity:"0.15"})]}),s.jsxs("filter",{id:"pGlow",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[s.jsx("feGaussianBlur",{stdDeviation:"1.2",result:"b"}),s.jsxs("feMerge",{children:[s.jsx("feMergeNode",{in:"b"}),s.jsx("feMergeNode",{in:"SourceGraphic"})]})]})]}),l.map((w,k)=>s.jsx("path",{id:`path-l-${k}
951`,d:w,stroke:"url(#strokeL)",strokeWidth:1.2,fill:"none"},`l-${k}`)),u.map((w,k)=>s.jsx("path",{id:`path-r-${k}`,d:w,stroke:"url(#strokeR)",strokeWidth:1.2,fill:"none"},`r-${k}`)),m.map((w,k)=>s.jsx("circle",{cx:w.x,cy:w.y,r:2.5,fill:"#F4845F"},`ld-${k}`)),f.map((w,k)=>s.jsx("circle",{cx:w.x,cy:w.y,r:2.5,fill:"#F4845F"},`rd-${k}`)),l.map((w,k)=>s.jsx("circle",{r:2.2,fill:"#F4845F",filter:"url(#pGlow)",children:s.jsx("animateMotion",{dur:"2.6s",repeatCount:"indefinite",begin:`${k*.25}s`,children:s.jsx("mpath",{href:`#path-l-${k}`})})},`lp-${k}`)),u.map((w,k)=>s.jsx("circle",{r:2.2,fill:"#F4845F",filter:"url(#pGlow)",children:s.jsx("animateMotion",{dur:"2.6s",repeatCount:"indefinite",begin:`${k*.22}s`,children:s.jsx("mpath",{href:`#path-r-${k}`})})},`rp-${k}`))]}),s.jsxs("div",{className:"relative grid grid-cols-[minmax(180px,200px)_1fr_minmax(180px,200px)] gap-6 items-center",children:[s.jsxs("div",{className:"relative",children:[s.jsx("p",{className:"text-[10px] font-semibold tracking-[0.15em] uppercase text-slate-400 mb-5",children:x.sourcesLabel}),s.jsx("div",{className:"flex flex-col gap-2.5",children:d5.map((w,k)=>s.jsx("div",{style:{marginLeft:`${[0,14,28,20,6,0,10,24,18,4][k]??0}px`},children:s.jsx(Ff,{item:w,align:"left",chipRef:j=>i.current[k]=j})},w.name))})]}),s.jsxs("div",{className:"relative rounded-2xl border border-[#F4845F]/30 bg-white/40 backdrop-blur-[2px] shadow-[0_10px_40px_rgba(244,132,95,0.08)] px-2 pt-8 pb-4",children:[s.jsx("span",{className:"absolute -top-3 left-1/2 -translate-x-1/2 px-3 py-1 rounded-full bg-[#F5F6FA] border border-[#F4845F]/40 text-[#F4845F] text-[10px] font-bold tracking-[0.22em] uppercase whitespace-nowrap",children:"i6 Platform"}),s.jsx("div",{className:"grid grid-cols-4 gap-2 items-stretch",children:x.steps.map((w,k)=>{const j=b(k);return s.jsxs("div",{ref:j,className:"group relative h-full flex flex-col px-4 py-5 rounded-2xl bg-white border border-slate-200 shadow-[0_8px_30px_rgba(15,23,42,0.06)] hover:shadow-[0_12px_40px_rgba(244,132,95,0.18)] hover:border-[#F4845F]/50 transition-all duration-300",children:[s.jsx("div",{className:"text-4xl font-bold text-[#F4845F] mb-4 leading-none tracking-tight",children:String(k+1).padStart(2,"0")}),s.jsx("h3",{className:"text-slate-900 text-base font-semibold mb-2 min-h-[3.25rem]",children:w.title}),s.jsx("p",{className:"text-slate-600 text-sm leading-relaxed",children:w.desc??s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"font-semibold text-[#F4845F]",children:w.highlight}),w.descAfter]})})]},k)})})]}),s.jsxs("div",{className:"relative",children:[s.jsx("p",{className:"text-[10px] font-semibold tracking-[0.15em] uppercase text-slate-400 mb-5 text-right",children:x.activationLabel}),s.jsx("div",{className:"flex flex-col gap-2.5 items-end",children:m5.map((w,k)=>s.jsx("div",{style:{marginRight:`${[0,14,28,20,6,0,10,24,18,4][k]??0}px`},children:s.jsx(Ff,{item:w,align:"right",chipRef:j=>o.current[k]=j})},w.name))})]})]})]})}),s.jsxs("div",{className:"lg:hidden container mx-auto px-6 space-y-8",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-[10px] font-semibold tracking-[0.22em] uppercase text-slate-400 mb-3 text-center",children:x.sourcesLabel}),s.jsx("div",{className:"flex flex-wrap justify-center gap-2",children:d5.map((w,k)=>s.jsx(Ff,{item:w,align:"left",chipRef:()=>{}},w.name))})]}),s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:x.steps.map((w,k)=>s.jsxs("div",{className:"p-5 rounded-2xl bg-white border border-slate-200 shadow-[0_8px_30px_rgba(15,23,42,0.06)]",children:[s.jsx("div",{className:"text-4xl font-bold text-[#F4845F] mb-3 leading-none tracking-tight",children:String(k+1).padStart(2,"0")}),s.jsx("h3",{className:"text-slate-900 text-base font-semibold mb-2",children:w.title}),s.jsx("p",{className:"text-slate-600 text-sm leading-relaxed",children:w.desc??s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"font-semibold text-[#F4845F]",children:w.highlight}),w.descAfter]})})]},k))}),s.jsxs("div",{children:[s.jsx("p",{className:"text-[10px] font-semibold tracking-[0.22em] uppercase text-slate-400 mb-3 text-center",children:x.activationLabel}),s.jsx("div",{className:"flex flex-wrap justify-center gap-2",children:m5.map((w,k)=>s.jsx(Ff,{item:w,align:"right",chipRef:()=>{}},w.name))})]})]})]}),s.jsx("div",{className:"h-10 bg-gradient-to-b from-[#F5F6FA] to-[#0F172A]"})]})},_Ee=[DB,II,Un,JB,YB,IB],NEe=()=>{const{language:e}=be(),t=wt(),{territories:n}=Yo[e],r={pt:{badge:"NOSSAS SOLUÃÃES",titleLine1Start:"Somos especialistas em ",titleLine1Highlight:"IA aplicada",titleLine2Start:"que transforma decisões em ",titleLine2Highlight:"resultados",titleLine2End:".",subtitle:"Detectamos sinais que orientam decisões comerciais, de supply e de pricing.",ctaSolutions:"Conheça nossas soluções",i6signal:`i6Signal 952Interface conversacional que transforma sinais preditivos em decisões acionáveis em tempo real.`,capabilities:["Motores de IA proprietários com fine-tuning.","Base fundacional multi-segmento.","Relevância mesmo sem histórico.","Personalização com diversidade controlada.","Explicabilidade
952clara e orientada a negócio.","APIs de ativação imediata."],cards:["Antecipe ruptura de estoque antes que ela custe receita","Detecte intenção de compra antes do clique","Ajuste preço ao movimento real do mercado","Priorize esforço comercial onde o retorno é maior","Reoriente mix e oferta ideal em tempo real","Antecipe janelas ideais de ativação"],popups:["Previsão de sell-out superior à cobertura atual de estoque","Aumento de volume recomendado sem impacto negativo em giro","Mudança de sazonalidade antecipada para esta região","SKU crÃtico com alta probabilidade de ruptura","PDVs similares operam com mix mais eficiente","Mix atual não acompanha o padrão de compra do PDV","SKU com alta demanda prevista ausente no mix atual","Oportunidade de pedido adicional com alto potencial de giro","Aceleração de demanda detectada","Substituição de SKUs sugerida para otimizar giro e margem"]},en:{badge:"OUR SOLUTIONS",titleLine1Start:"We are specialists in ",titleLine1Highlight:"applied AI",titleLine2Start:"that turns decisions into ",titleLine2Highlight:"results",titleLine2End:".",subtitle:"We detect signals that guide commercial, supply, and pricing decisions.",ctaSolutions:"Explore our solutions",i6signal:`i6Signal 953Conversational interface that transforms predictive signals into actionable decisions in real time.`,capabilities:["Proprietary AI engines with fine-tuning.","Multi-segment foundational base.","Relevance even without history.","Personalization with controlled diversity.","Clear, business-oriented explainability.","Instant activation APIs."],cards:["Anticipate stockouts before they cost revenue","Detect purchase intent before the click","Adjust pricing to real market movement","Focus sales effort where ROI is highest","Reorient mix and ideal offer in real time","Anticipate ideal activation windows"],popups:["Sell-out forecast exceeds current stock coverage","Volume increase recommended without negative turnover impact","Seasonality shift anticipated for this region","Critical SKU with high stockout probability","Similar stores operate with more efficient mix","Current mix doesn't match store purchase pattern","High-demand SKU missing from current mix","Additional order opportunity with high turnover potential","Demand acceleration detected","SKU substitution suggested to optimize turnover and margin"]}}[e];return s.jsx("section",{className:"py-14 md:py-20 bg-[#0F172A]",children:s.jsxs("div",{className:"container mx-auto px-6",children:[s.jsx("div",{className:"mb-6",children:s.jsx("span",{className:"inline-block px-4 py-1.5 rounded-full bg-[#F4845F]/20 text-[#F4845F] text-xs font-semibold tracking-widest uppercase",children:r.badge})}),s.jsxs("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-bold text-white leading-snug mb-4",children:[r.titleLine1Start,s.jsx("span",{className:"text-[#F4845F] drop-shadow-[0_0_12px_rgba(244,132,95,0.5)]",children:r.titleLine1Highlight}),s.jsx("br",{className:"hidden sm:block"})," ",r.titleLine2Start,s.jsx("span",{className:"text-[#F4845F] drop-shadow-[0_0_12px_rgba(244,132,95,0.5)]",children:r.titleLine2Highlight}),r.titleLine2End]}),s.jsx("p",{className:"text-white/50 text-base md:text-lg max-w-2xl mb-12",children:r.subtitle}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5 mb-20",children:n.map(a=>s.jsxs("div",{className:"group relative flex flex-col rounded-2xl bg-white/5 border border-white/10 hover:border-[#F4845F]/50 backdrop-blur-sm transition-all duration-500 hover:scale-[1.02] p-6",children:[s.jsx("div",{className:"absolute top-0 left-0 w-0 h-1 bg-[#F4845F] group-hover:w-full transition-all duration-700 ease-out rounded-t-2xl"}),s.jsx("h3",{className:"text-lg font-bold text-white mb-2 group-hover:text-[#F4845F] transition-colors line-clamp-2 min-h-[2lh]",children:a.title}),s.jsx("p",{className:"text-sm text-white/70 leading-snug mb-4 line-clamp-3 min-h-[3lh]",children:a.tagline}),s.jsx("ul",{className:"flex flex-col gap-1.5 mb-4",children:a.chips.map(i=>s.jsx("li",{className:"text-[11px] text-white/60 border border-white/10 rounded-full px-2 py-0.5 w-fit",children:i},i))})]},a.id))}),s.jsx("div",{className:"mb-0",children:s.jsxs("div",{className:"flex items-start gap-4 p-6 bg-white/[0.03] border-b border-[#F4845F]/20",children:[s.jsx(dw,{className:"w-7 h-7 text-[#F4845F] mt-0.5 flex-shrink-0"}),s.jsxs("p",{className:"text-white/90 text-base md:text-lg leading-relaxed",children:[s.jsx("span",{className:"font-medium",children:r.i6signal.split(` 954`)[0]}),s.jsx("br",{}),s.jsx("span",{className:"font-normal",children:r.i6signal.split(` 955`)[1]})]})]})}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1fr_1.4fr] gap-12 lg:gap-10 items-stretch",children:[s.jsx("div",{className:"flex flex-col justify-between pt-10 order-2 lg:order-1",children:r.capabilities.map((a,i)=>{const o=_Ee[i];return s.jsxs("div",{className:`flex items-start gap-4 py-5 ${i<r.capabilities.length-1?"border-b border-white/10":""}`,children:[s.jsx(o,{className:"w-6 h-6 text-[#F4845F] mt-0.5 flex-shrink-0"}),s.jsx("p",{className:"text-white/80 text-sm md:text-base leading-relaxed",children:a})]},i)})}),s.jsxs("div",{className:"relative flex flex-col items-center justify-start overflow-hidden lg:overflow-visible order-1 lg:order-2",children:[s.jsx("div",{className:"w-px h-10 bg-gradient-to-b from-[#F4845F]/40 to-[#F4845F]/10"}),s.jsx("div",{className:"absolute inset-0 bg-[#F4845F]/5 rounded-2xl blur-3xl scale-110"}),s.jsx("img",{src:ja("images/i6signal-demo.gif"),alt:"i6Signal demo",className:"relative z-10 w-full rounded-xl shadow-2xl border border-white/10"}),s.jsx("div",{className:"hidden md:block",children:r.popups.slice(0,7).map((a,i)=>{const o=["-2deg","1.5deg","-1deg","2deg","-1.5deg","0.5deg","-0.5deg"],l=[{top:"5%",right:"3%"},{top:"20%",left:"3%"},{top:"38%",right:"5%"},{top:"55%",left:"5%"},{top:"72%",right:"3%"},{bottom:"10%",left:"10%"},{bottom:"5%",right:"8%"}];return s.jsx("div",{className:"absolute z-20 px-4 py-2.5 rounded-lg bg-[#0F172A]/90 border border-[#F4845F]/40 shadow-lg backdrop-blur-sm max-w-[260px]",style:{...l[i],transform:`rotate(${o[i]})`,animation:`popup-cycle 30s ${i*4}
955s infinite ease-in-out`,opacity:0},children:s.jsx("p",{className:"text-white/90 text-xs leading-snug",children:a})},i)})})]})]}),s.jsx("div",{className:"flex justify-center mt-14",children:s.jsxs(Ee,{to:t("/solutions"),className:"group inline-flex items-center gap-2 px-6 py-3 bg-transparent text-white font-medium rounded-xl border border-white/40 animate-glow-white transition-all duration-500 ease-out hover:bg-white hover:text-[#0B1224] hover:border-white hover:shadow-[0_0_24px_rgba(255,255,255,0.35),0_0_48px_rgba(255,255,255,0.12)] text-sm md:text-base text-center",children:[r.ctaSolutions,s.jsx(_a,{size:16,className:"opacity-0 -translate-x-2 transition-all duration-300 group-hover:opacity-100 group-hover:translate-x-1"})]})})]})})},CEe=()=>{const[e,t]=S.useState([]),[n,r]=S.useState(!0),[a,i]=S.useState(null);return S.useEffect(()=>{(async()=>{try{r(!0),i(null);const l=await fetch("/content/partners-logos.md");if(!l.ok)throw new Error(`Failed to fetch content: ${l.status}`);const c=await l.text();console.log("Partners markdown content loaded:",c.substring(0,200)+"...");const u=EEe(c);console.log("Parsed partners count:",u.length),console.log("Partners order from MD:",u.map(d=>d.name)),console.log("Partners with logos:",u.map(d=>({name:d.name,logo:d.logo}))),t(u)}catch(l){console.error("Error fetching partners content:",l),i(l instanceof Error?l.message:"Unknown error")}finally{r(!1)}})()},[]),{partners:e,loading:n,error:a}},EEe=e=>{const t=[],n=e.split("---").map(r=>r.trim()).filter(Boolean);for(const r of n){const a=r.split(` 956`).map(l=>l.trim()).filter(Boolean);let i="",o="";for(const l of a)l.startsWith("## ")?i=l.substring(3).trim():l.startsWith("**Logo:**")&&(o=l.substring(9).trim());i&&o&&t.push({name:i,logo:o})}return t},TEe=()=>{const{partners:e,loading:t}=CEe(),{language:n}=be(),r=n==="pt"?"LÃderes que transformam antecipação em vantagem":"Leaders who turn anticipation into advantage";if(t||e.length===0)return null;const a=i=>s.jsx("div",{className:"flex items-center gap-20 shrink-0","aria-hidden":i==="b"?!0:void 0,children:e.map((o,l)=>s.jsx("img",{src:`/${o.logo.startsWith("/")?o.logo.slice(1):o.logo}`,alt:o.name,className:"h-8 sm:h-10 w-auto max-w-[120px] object-contain opacity-60 hover:opacity-100 transition-opacity shrink-0",loading:"lazy"},`${i}-${o.name}-${l}`))});return s.jsxs("section",{className:"py-10 md:py-14 bg-slate-50",children:[s.jsx("div",{className:"container mx-auto px-6 mb-10",children:s.jsx("p",{className:"text-center text-sm uppercase tracking-widest text-slate-500",children:r})}),s.jsxs("div",{className:"relative overflow-hidden",children:[s.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-24 bg-gradient-to-r from-slate-50 to-transparent z-10"}),s.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-24 bg-gradient-to-l from-slate-50 to-transparent z-10"}),s.jsxs("div",{className:"flex items-center gap-20 w-max animate-marquee motion-safe:animate-marquee",style:{animationDuration:"35s"},children:[a("a"),a("b")]})]})]})},OEe=`# Insights 957 958> â ï¸ **Estes arquivos são GERADOS automaticamente.** Não edite manualmente. 959> 960> A fonte da verdade vive no **i6Hub** em 961> \`Marketing & CRM â Content Radar â Site Content\`. 962> 963> A cada deploy, o GitHub Actions executa \`scripts/sync-insights-from-i6hub.mjs\`, 964> que apaga todos os \`.md\` deste diretório (exceto este README) e regera a 965> partir do feed público do i6Hub (edge function) â apenas registros com 966> \`published = true\`. 967 968## Como funciona 969 970\`\`\` 971i6Hub (admin) 972 â (toggle salvar) 973 â¼ 974edge function notify-site-rebuild 975 â (repository_dispatch: insights-updated) 976 â¼ 977GitHub Actions (deploy-gh-pages.yml) 978 â fetch I6HUB_FEED_URL com X-Sync-Token 979 â¼ 980sync-insights-from-i6hub.mjs regera .md 981 â 982 â¼ 983vite build â GitHub Pages 984\`\`\` 985 986- **Despublicar artigo:** toggle \`published = false\` no i6Hub â próximo deploy remove o \`.md\`. 987- **Destacar na home:** toggle \`featured = true\` no i6Hub. 988- **Excluir definitivamente:** botão na aba Site Content (remove a linha). 989 990## Convenção de nome de arquivo 991 992\`\`\` 993{language}-{slug}.md 994\`\`\` 995 996O loader (\`useInsights.ts\`) usa \`import.meta.glob\` em todos os \`.md\` desta 997pasta, então o nome em si não importa â só serve para evitar colisões. 998 999## Frontmatter (gerado pelo sync) 1000 1001\`\`\`yaml 1002--- 1003title: "TÃtulo do artigo" 1004slug: meu-artigo 1005language: pt # pt | en 1006type: article # article | linkedin | press | podcast | video 1007cluster: "forecasting" 1008featured: true 1009gated: false 1010date: 2025-06-04 1011read_time: 6 1012cover_image: "/path.jpg" 1013external_url: "https://..." 1014asset_url: null 1015excerpt: "Resumo curto que aparece no card." 1016--- 1017\`\`\` 1018 1019## Secrets envolvidos 1020 1021| Onde | Nome | Para que serve | 1022|------|------|----------------|
1023| GitHub repo i6-website | \`I6HUB_FEED_URL\` | URL da edge function pública do i6Hub que devolve os insights publicados | 1024| GitHub repo i6-website | \`I6HUB_SYNC_TOKEN\` | Token compartilhado enviado em \`X-Sync-Token\` e validado pela edge function | 1025| i6Hub (Lovable secrets) | \`GITHUB_DISPATCH_TOKEN\` | PAT fine-grained usado pela edge function \`notify-site-rebuild\` para disparar o \`repository_dispatch\` | 1026 1027O site **nunca** recebe service_role nem fala direto com o banco do i6Hub â 1028toda leitura é mediada pela edge function. 1029`,IEe=`--- 1030id: f0f57622-4e80-44a2-b4ba-751e83fa768d 1031title: "Right price on the spreadsheet, wrong margin in the result: the new challenge for e-commerce pricing" 1032slug: ai-pricing-ecommerce-margem-giro-conversao 1033language: en 1034type: i6 Article 1035featured: true 1036gated: false 1037date: 2026-07-16T12:00:00.000Z 1038read_time: 6 1039cover_image: "/content/insights/ai-pricing-ecommerce-margem-giro-conversao.png" 1040cta_form: true 1041cta_form_text: "**Would you like to learn more?** Fill in the form and let's get in touch!" 1042theme: "preco-elasticidade" 1043theme_label: "Price & Elasticity" 1044is_default: true 1045excerpt: "Understand how AI Pricing helps e-commerce stores transform pricing into a dynamic decision, connecting margin, turnover,
1045conversion, stock, and governance." 1046--- 1047In e-commerce, a price can be technically correct and commercially wrong at the same time. 1048 1049It can respect the minimum margin. It can be aligned with the commercial table. It can seem competitive when compared to the competitor. It can have been approved in a meeting and still leave money on the table. 1050 1051**This happens because price is not an isolated variable. It is a decision that changes according to the context.** 1052 1053It changes with inventory. It changes with the elasticity of each SKU. It changes with the category's turnover. It changes with the origin of traffic. It changes with purchase intent. It changes with seasonality. It changes with competitive pressure. It changes with the margin target. 1054 1055When all these signals are analyzed slowly, manually, or with little granularity, the problem rarely appears as a "pricing error." It appears in the result: compressed margin, unnecessary discount, stagnant inventory, late markdown, lost conversion, and trapped capital. 1056 1057The issue is that many companies still treat pricing as a table, when it has already become a financial lever. 1058 1059## Why the traditional pricing model fell short 1060 1061For a long time, pricing based on history, minimum margin, periodic meetings, and punctual monitoring of competition seemed sufficient. 1062 1063But e-commerce operates at a different pace. 1064 1065Demand changes throughout the day. Competition adjusts prices more frequently. Consumers compare options in seconds. Inventory ages while the decision is still being discussed. Campaigns, channels, and browsing behaviors create different contexts for the same product. 1066 1067In this scenario, deciding prices only by average, history, or fixed rule creates distortions. 1068 1069An SKU with high demand and low price sensitivity may be giving up margin unnecessarily. Another, with pressured inventory and low turnover speed, may need a more precise markdown strategy. A third may have good conversion in a certain session context, but lose revenue when treated with the same logic applied to the entire catalog. 1070 1071The problem is not a lack of data. 1072The problem is transforming data into decisions before the opportunity passes. 1073 1074## The real tension: margin, turnover, and conversion 1075 1076Every pricing decision involves a trade-off. 1077 1078If the price goes up, the margin may improve, but conversion may fall. If the price goes down, conversion may go up, but the margin may be destroyed. If the product doesn't move, inventory ages. If the markdown comes in too early, the company teaches the market to wait for discounts. If it comes in too late, the cost has already been absorbed by the operation. 1079 1080That's why the question "what price should we set?" is limited. 1081 1082The most important question is: 1083 1084> What pricing decision generates the best possible result for this product, in this context, respecting the business constraints? 1085 1086This change in question is what separates operational pricing from intelligent pricing. 1087 1088## What AI Pricing changes in practice 1089 1090AI Pricing does not mean letting AI change prices without criteria. 1091 1092It means using artificial intelligence to expand analysis and recommendation capabilities, considering more variables than a team could manually process with the same frequency and granularity. 1093 1094**In practice, AI can help estimate elasticity per SKU, project demand, simulate scenarios, identify opportunities for margin capture, calibrate markdown, recommend price ranges, and measure decision results before scaling.** 1095 1096The central point is that the recommendation needs to operate within the business rules. 1097 1098Minimum margin, available inventory, commercial policy, competitive band, exposure rules, and governance are not details. They are constraints that define the safe decision space. 1099 1100AI does not replace commercial strategy. It helps execute that strategy with more speed, precision, and traceability. 1101 1102## Three ways to apply AI Pricing in e-commerce 1103 1104At infinity6, the vision of AI Pricing starts from three complementary fronts: margin, turnover, and conversion. 1105 1106### 1. Price-to-Margin: capturing margin without breaking the commercial strategy 1107 1108Not every product needs a discount to sell better. And not every competitive price maximizes results. 1109
1110Price-to-Margin seeks to identify margin capture opportunities per SKU, considering elasticity, forecast, price and volume history, competition, inventory, and commercial restrictions. 1111 1112**The logic is simple: if two products have different behaviors, they should not be treated by the same rule.** 1113 1114With a more granular view, the company can understand where there is room to preserve or expand margin without compromising the commercial strategy. 1115 1116### 2. Price-to-Turnover: accelerating turnover without turning discount into autopilot 1117 1118Stagnant inventory is margin under pressure. 1119 1120But solving turnover only with discounts can erode profitability. The challenge is to understand when, where, and with what intensity to adjust prices to move products without destroying value. 1121 1122**Price-to-Turnover considers product life cycle, sales velocity, seasonality, inventory, region, store, category, or cluster to recommend price and markdown rules with more precision.** 1123 1124The decision is no longer "lower price because it didn't sell" and becomes "which movement best preserves the balance between turnover and margin?" 1125 1126### 3. Price-to-Conversion: deciding based on session context 1127 1128In e-commerce, two sessions are never exactly alike. 1129 1130A recurring user, coming from a specific campaign, browsing at a certain time, and demonstrating high purchase intent, does not have the same context as a new visitor, without history and without clear conversion signals. 1131 1132**Price-to-Conversion uses session signals, user history, channel origin, inventory, real-time demand, and commercial rules to support more contextual recommendations.** 1133 1134The goal is not simply to convert more. It is to increase conversion and revenue per session without giving up margin. 1135 1136## Governance is what makes AI applicable 1137 1138The biggest objection to AI in pricing is legitimate: price is too sensitive to become an uncontrolled experiment. 1139 1140Therefore, governance needs to be in the solution's design, not in the discourse. 1141 1142Before recommending any action, the model must respect restrictions such as **minimum margin, available inventory, commercial policy, and exposure rules.** Then, the company needs to monitor actual versus recommended results, perform backtests, adjust assumptions, and recalibrate models as new data comes in. 1143 1144This process avoids two common pitfalls: relying too much on a recommendation without explainability or limiting AI to a decorative layer, without real impact on the decision. 1145 1146Well-implemented AI Pricing does not take control from the company. 1147 1148It increases the quality of control. 1149 1150## How to know if your operation is ready for AI Pricing 1151 1152The journey doesn't have to start with the entire catalog. 1153 1154The best starting point is usually where there is the greatest tension between margin, turnover, and conversion. 1155 1156Some questions help to find this cut: 1157 1158- Which categories have the greatest margin pressure? 1159- Which SKUs are frequently discounted, but without clarity of necessity? 1160- Where is inventory aging? 1161- Where does markdown arrive too late? 1162- Which products have high demand variation? 1163- Where does decision still depend on spreadsheets and manual cycles? 1164- What data already exists, but has not yet become actionable recommendations? 1165 1166From there, it is possible to start with a pilot, validate impact, create governance, and scale. 1167 1168## The future of pricing is less reaction and more decision 1169 1170E-commerce doesn't need another layer of complexity. It needs better decisions. 1171 1172Pricing has ceased to be a routine of table updates. It has become a commercial intelligence system that connects data, margin, inventory, demand, conversion, and governance. 1173 1174A company that decides prices too late loses money even when the system seems to be working. 1175 1176And that's precisely where AI Pricing gains relevance: not as a generic promise of automation, but as a practical way to transform data into faster, measurable, and results-aligned commercial decisions. 1177 1178**infinity6 will be at [Fórum E-Commerce Brasil](https://eventos.ecommercebrasil.com.br/forum), from July 28 to 30, as one of the finalists of the RocketGen Contest, to present its AI Pricing solution and talk to companies that want to treat price as what it truly is: A direct lever for margin, turnover, and growth.** 1179 1180Price is not a table. It's a business decision.`,MEe=`--- 1181id: 4c011a83-e7e4-42de-9eb1-b7d980f98867 1182title: "How to boost POS ticket by +23% and new SKU conversion by +36%?" 1183slug: conversion-ai-average-ticket-infinity6 1184language: en 1185type: i6 Social 1186cluster: "Increase Average Ticket Conversion infinity6" 1187featured: false 1188gated: false 1189date: 2026-03-31T12:00:00.000Z 1190cover_image: "/content/insights/conversion-ai-average-ticket-infinity6.webp" 1191external_url: "https://www.linkedin.com/feed/update/urn:li:activity:7444745234313326592" 1192excerpt: "More precision per POS? Commercial anticipation? Integrated vision without noise? \\nCheck out the details of this success story with EMS in our LinkedIn post." 1193---`,$Ee=`--- 1194id: cfade6eb-9f47-4307-9112-f8e1742bbfe8
1195title: "Generic efficiency is no longer enough to generate real results." 1196slug: efficiency-applied-anticipate-demand-infinity6 1197language: en 1198type: i6 on Media 1199cluster: "Forecasting Applied AI" 1200featured: false 1201gated: false 1202date: 2025-05-27T12:00:00.000Z 1203cover_image: "/content/insights/efficiency-applied-anticipate-demand-infinity6.webp" 1204external_url: "https://mercadoeconsumo.com.br/27/06/2025/tecnologia/nova-era-da-ia-eficiencia-generica-ja-nao-basta-para-gerar-resultado-real-nos-negocios/" 1205excerpt: "EMS's partnership with Infinity6 scalates applied AI that connects the entire product journey and anticipates demand with high precision." 1206---`,FEe=`--- 1207id: 830d2f61-0ea4-41a6-877b-5cfd57682d39 1208title: "Purchase intention signals: how to turn behavior into conversion before the competitor" 1209slug: intention-signals-predictive-ai 1210language: en 1211type: i6 Article 1212featured: true 1213gated: false 1214date: 2026-08-28T12:00:00.000Z 1215read_time: 4 1216cover_image: "/content/insights/intention-signals-predictive-ai.jpg" 1217cta_form: true 1218cta_form_text: "**Pronto para aplicar isso na realidade da sua empresa?** à só preencher o formulário abaixo." 1219theme: "propensao-conversao" 1220theme_label: "Conversion Propensity" 1221excerpt: "Your customer may not say they intend to buy. But they are already leaving clues." 1222--- 1223A specific search. Returning to the same page. Comparing products. Checking price or availability. Separately, each behavior says little. Together and in the right context, they reveal an undeclared intention â and an opportunity that can quickly disappear. 1224 1225**Intention signals** are behaviors and contexts that indicate the probability of a customer buying, hiring, or responding to an offer. For technology companies, financial institutions, and consumer goods industries, the challenge is to interpret them while there is still time to influence the decision. 1226 1227# Consumers no longer follow a predictable funnel 1228 1229The customer journey is no longer linear. A [survey published by Google](https://business.google.com/br/think/consumer-insights/empowered-customer-report/) in April 2026 shows that Search and YouTube are present in 84% of journeys where Brazilians discovered a new brand, product, or retailer. Furthermore, 86% state they are open to trying new brands while researching. 1230 1231AI makes this behavior even more complex. Queries in Google's AI Mode are, on average, three times longer, indicating more contextual searches. Discovery, comparison, and decision begin to happen in the same environment. 1232 1233In practice, intention appears before conversion and changes rapidly. A person may have a high propensity but need installment payments; seek a discount even with a high income; or be ready to convert without a coupon. 1234 1235Therefore, intention should not be confused with a click or demographic profile. 1236 1237It is worth noting that **identifying intention does not mean exposing personal data or monitoring consumers indiscriminately**. Propensity models can operate with anonymized identifiers, aggregated data, and behavioral variables, respecting purpose, minimization, and governance. In regulated sectors, the explainability of the recommendation is as important as its accuracy. 1238 1239# An isolated signal is not enough. The combination is what generates intelligence 1240 1241The most valuable signals combine: 1242 12431. **Recent behavior**: searches, comparisons, abandonments, and returns. 12442. **Context**: channel, category, occasion, price, stock, and moment. 12453. **Ability to act**: financial condition, credit, availability, and necessary incentive. 1246 1247According to [Meio & Mensagem](https://www.meioemensagem.com.br/marketing/black-friday-81-dos-brasileiros-querem-incentivos-nas-compras), for Black Friday 2026, 48% of consumers who intended to buy already had a defined list and 44% had started researching prices. At the same time, 51% had their income committed. 1248 1249The intention existed, but conversion still depended on the right condition. 1250 1251On Father's Day, [Serasa Experian](https://www.serasaexperian.com.br/sala-de-imprensa/servicos-de-marketing/consumidor-mais-propenso-a-comprar-no-dia-dos-pais-e-3-vezes-mais-sensivel-a-descontos-que-a-media-dos-brasileiros-revela-serasa-experian/) identified 11.7 million Brazilians with a higher propensity to buy. Of these, 57.8% were discount hunters â three times the average â although 26.9% had an income above R$ 8,000. 1252 1253Income and intention, alone, do not reveal which offer will be most efficient. 1254 1255 1256 1257# What intention signals change in each market 1258 1259In **technology**, recurring use, price inquiries, and integrations or a drop in engagement can indicate a propensity for upgrade, cross-sell, or churn. 1260 1261In the **financial market**, simulations, transactions, affinities, and responses to campaigns help identify who might take out credit, insurance, investments, or other products â and what argument to use. 1262 1263In **consumer goods**, searches, sell-out, recurrence, price, availability, and seasonality anticipate purchases and changes in demand by SKU, region, or POS. The signal guides marketing, assortment, supply, and pricing. 1264 1265In all these sectors, the gain is in transforming signals into decisions: **who to activate, when, with what offer, channel, and incentive**. 1266 1267# How infinity6 transforms signals into predictive decisions 1268 1269infinity6 connects navigation, search, purchase, cart, channel, product, price, stock, context, and history to identify undeclared intentions and recommend the next best action. 1270 1271The **i6 RecSys** calculates propensity, affinity, churn risk, and cross-sell or up-sell opportunities â including for anonymous traffic. 1272
1273The **i6 ElasticPrice** distinguishes who needs an incentive from who would buy at full price, calibrating discount, bundle, or value proposition based on elasticity and margin. 1274 1275The **i6 Previsio** connects behavior to future demand to guide stock, mix, and supply. 1276 1277The **i6 Signal** delivers explainable recommendations to CRM, e-commerce, app, WhatsApp, media, POS, or sales team. 1278 1279In projects already carried out, this approach generated: 1280 1281- **12 times more conversion in campaigns;** 1282- **57% reduction in messaging costs;** 1283- **40% incremental revenue with predictive curation in fashion retail;** 1284- **23% increase in average ticket per POS.** 1285 1286[Learn about infinity6's Growth & Consumer Intelligence solution](https://infinity6.ai/pt/solutions#territory-growth). 1287 1288# The cost of interpreting intention too late 1289 1290Generic campaigns, static clusters, and rules like âabandoned cart, send couponâ lead to three losses: investment in audiences with low propensity, discounts for those who would buy without incentive, and a delayed approach to those who were ready to convert. 1291 1292Predictive AI changes this logic. Instead of just asking what the customer did, it estimates what they are likely to do now and prescribes the most promising action. 1293 1294If your company already collects customer, transaction, and channel data, but still decides based on the past, the opportunity is probably already within the operation. 1295 1296The next step is to discover which signals anticipate conversion â and how much value can be captured by acting sooner. 1297 1298# Frequently asked questions about intention signals 1299 1300## What are intention signals? 1301 1302They are behaviors and contexts that help estimate the likelihood of a person buying, hiring, or responding to an offer, such as searches, recurring visits, comparisons, simulations, cart, abandonment, and purchase history. 1303 1304## Which signals indicate greater purchase intention? 1305 1306The strongest ones involve increasing commitment: returning to the product, comparing conditions, checking availability, simulating a contract, initiating checkout, or negotiating an offer. Their strength depends on recency, frequency, sequence, and context. 1307 1308## What is the difference between segmentation and purchase propensity? 1309 1310Segmentation groups similar people. Propensity estimates the probability of a specific action in a given context and moment. Two people from the same segment can have different probabilities. 1311 1312## Is it possible to identify intention in anonymous visitors? 1313 1314Yes. Session, origin, device, navigation, search, and recurrence can indicate intention even without login or identified history. 1315 1316# Are you ready to transform intention signals into revenue, margin, and commercial efficiency? 1317 1318Talk to infinity6 and perform a free backtest to find out where your company is losing money.`,REe=`--- 1319id: 880f9234-fcb5-4c09-bef2-555bb7c51877 1320title: "Where is your margin being drained right now?" 1321slug: margin-prediction-AI-demand 1322language: en 1323type: i6 Social 1324cluster: "Anticipating demand increases margin and efficiency." 1325featured: false 1326gated: false 1327date: 2026-04-10T12:00:00.000Z 1328cover_image: "/content/insights/margin-prediction-AI-demand.png" 1329external_url: "https://www.linkedin.com/feed/update/urn:li:activity:7448480926738620416" 1330excerpt: "Idle data is the competition's profit. Anticipating demand with AI is no longer a luxury, it's survival. See how we transform signals into nine-figure results." 1331---`,DEe=`--- 1332id: 11f16d0e-9e5d-437c-8213-ad3dd0068d87 1333title: "infinity6 is mentioned on \\"Fato Relevante\\", a CNN program" 1334slug: media-cnn-infinity6 1335language: en 1336type: i6 on Media 1337cluster: "Applied AI" 1338featured: true 1339gated: false 1340date: 2026-05-11T12:00:00.000Z 1341cover_image: "/content/insights/media-cnn-infinity6.webp" 1342external_url: "https://www.youtube.com/watch?v=eEaJ_TZIOKU" 1343excerpt: "infinity6 was mentioned on Fato Relevante, a CNN Brasil program in partnership with NeoFeed, as one of the few Brazilian companies building applied, proprietary AI focused on real business outcomes." 1344---`,LEe=`--- 1345id: bd93c4fb-dfee-4553-b722-0342e128f97a 1346title: "Everton Gago, co-founder of infinity6, is interviewed by NeoFeed on Brazilâs AI race" 1347slug: media-neofeed-everton-gago-brazilian-ai 1348language: en 1349type: i6 on Media 1350cluster: "Applied AI" 1351featured: false 1352gated: false 1353date: 2026-04-30T12:00:00.000Z 1354cover_image: "/content/insights/media-neofeed-everton-gago-brazilian-ai.png" 1355external_url: "https://neofeed.com.br/startups/brasil-tem-50-chatgpts-com-sotaque-brasileiro-eles-vao-sobreviver-
1355a-corrida-da-ia/" 1356excerpt: "In a feature on Brazilâs artificial intelligence race, NeoFeed interviewed Everton Gago, co-founder of infinity6, about proprietary models trained with customer data, specialized AI and real-world applications in recommendation, forecasting and pricing." 1357---`,zEe=`--- 1358id: 89611b45-9de4-4e96-af52-838954ab48d6 1359title: "infinity6 is one of the guest speakers at the 2nd edition of the Agibank Meetup." 1360slug: meetup-agibank-data-infinity6 1361language: en 1362type: i6 on Media 1363cluster: "Meetup Data AI infinity6" 1364featured: false 1365gated: false 1366date: 2026-02-26T12:00:00.000Z 1367cover_image: "/content/insights/meetup-agibank-data-infinity6.png" 1368external_url: "https://www.linkedin.com/feed/update/urn:li:activity:7433179113617559553/" 1369excerpt: "The 2nd edition of the Agibank Meetup promoted a relevant meeting about data, artificial intelligence, and scalable systems, bringing together professionals for the exchange of experiences, networking, and applied technical discussion." 1370---`,BEe=`--- 1371id: 10ea9f2c-f897-41eb-bb73-82b85b511b58 1372title: "Where is your company losing money because decisions are happening too late?" 1373slug: where-your-company-is-losing-money 1374language: en 1375type: i6 Article 1376featured: false 1377gated: false 1378date: 2026-07-08T12:00:00.000Z 1379read_time: 4 1380cover_image: "/content/insights/where-your-company-is-losing-money.jpg" 1381cta_form: true 1382cta_form_text: "**Want to apply this to your business?** Just fill out the form below." 1383theme: "previsao-demanda" 1384theme_label: "Demand Forecasting" 1385excerpt: "Artificial intelligence is already on retail's radar." 1386--- 1387AI appears in more personalized campaigns, product recommendations, automated service, behavior analysis, and new forms of customer relationship. All of this has value. But there is a less visible, and often more critical, layer where AI can have a direct impact on results: demand, inventory, and supply chain. 1388 1389A recent [CartaCapital](https://www.cartacapital.com.br/do-micro-ao-macro/varejo-ia-estoque-logistica/) article about the use of AI in retail highlighted precisely this point. Many companies have advanced in marketing and customer service but still have a great opportunity in demand forecasting, logistics, and inventory management. 1390 1391And this opportunity is not just technological. 1392 1393**It's financial.** 1394 1395Because much of the money a company loses doesn't appear as an obvious error. It appears as a sale that didn't happen. A product that was out of stock. Excess inventory. A purchasing decision made too late. An allocation that didn't keep up with real demand. A margin pressured by discounts that could have been avoided. 1396**In retail, deciding late is expensive.** 1397 1398 1399 1400## The problem starts before the stockout. 1401 1402When a product is missing from the shelf, the problem has already occurred. The sale was lost. The customer may have chosen another brand. The campaign effort may have generated demand for an unavailable item. The operation, at this point, is already reacting. 1403 1404**The same happens with excess inventory.** When the company realizes it bought too much or allocated poorly, part of the loss has already formed. Capital is tied up. Space is occupied. Future margin is threatened. And the correction usually comes through discounts, emergency transfers, or increased operational costs. 1405 1406>The important question is not just, "what happened?" The right question is: **"what signs already indicated this was going to happen?"** 1407 1408This is the difference between a reactive operation and a predictive operation. 1409 1410## Retail doesn't suffer from a lack of data. 1411 1412Most companies already have a lot of data: sales by SKU; inventory turnover by store; available inventory; stockout history; margin by category; campaigns; price; channel; region; seasonality; lead time; purchasing behavior; sell-in; sell-out... 1413 1414The challenge isn't to generate more information. The challenge is to transform information into decisions before the problem turns into a loss. 1415 1416When these signals are scattered across systems, reports, and spreadsheets, the company can glimpse the past. But it takes time to anticipate what needs to be done now. 1417 1418And, in a market with pressured margins, demand volatility, and increasingly complex operations, this delay impacts cash flow. 1419 1420## Predictive AI shifts the decision-making center 1421 1422Predictive AI applied to retail allows moving from a logic based solely on history and averages to a logic guided by signals, patterns, and actionable recommendations. This means **forecasting demand behavior with greater granularity by product, store, channel, and period**. 1423 1424But forecasting, alone, is not enough. 1425 1426The real value emerges when forecasting helps to make better decisions. 1427 1428- What to buy. 1429- How much to buy. 1430- Where to allocate. 1431- When to replenish. 1432- Which SKU has the highest risk of stockout. 1433- Where excess inventory is forming. 1434- Which store needs adjustment. 1435- Which decision best protects revenue, margin, turnover, and service level. 1436 1437This is the most important frontier of AI in retail: **moving from diagnosis to operational decision.** 1438 1439## The direct impact on the business 1440 1441When a company anticipates demand more accurately, it reduces the chance of losing sales due to product stockouts. 1442 1443When it improves allocation, it places inventory where there is greater potential for turnover. 1444 1445When it identifies excess before it consolidates, it avoids tied-up capital and reduces the need for aggressive discounts. 1446 1447When it connects demand, inventory, margin, and service level, it stops making isolated decisions and starts operating with a more intelligent business vision. 1448 1449The impact appears on four main fronts: 1450 1451- **Revenue**, because there are fewer lost sales due to stockouts. 1452- **Margin**, because the company reduces expensive corrections, markdowns, emergency decisions, and makes capital more efficient. 1453- **Working capital**, because it buys and distributes with greater precision. 1454- **Operational efficiency**, because decision-making becomes faster, more granular, and guided by real behavioral data. 1455 1456>
1456 Ultimately, **AI only generates value when it changes an important decision.** 1457 1458And few decisions are as important for retail as forecasting demand, replenishing correctly, and protecting margins. 1459 1460## The question leaders should be asking now 1461 1462Many companies still start the conversation about AI by asking what tool they should use. This should not be the first question. 1463 1464The more strategic question is: 1465 1466> Where are we losing money because our decisions happen too late? 1467 1468The answer may lie: 14691. In the stockout of high-turnover products; 14702. In excess inventory in slow-moving categories; 14713. In incorrect allocation among stores, distribution centers, e-commerce, and marketplaces; 14724. In the difficulty of adjusting assortments by region; 14735. In the delay in perceiving changes in consumer behavior. 1474 1475Or simply in the *gap between what the data shows and what the operation can execute*. 1476 1477When this question is answered clearly, **AI ceases to be a generic innovation project and becomes a concrete lever for efficiency, growth, and profitability**. 1478 1479## The next frontier of AI in retail will be operational 1480 1481AI applied to marketing and customer service will continue to evolve. It improves relationships, personalization, and productivity. 1482 1483But one of the biggest opportunities in retail lies behind the scenes, in: 1484- Better forecasting. 1485- Better purchasing. 1486- Better allocation. 1487- Better replenishment. 1488- Avoiding stockouts. 1489- Reducing excess. 1490- Protecting margins. 1491 1492The next frontier of artificial intelligence in retail will not just be selling more. It will be preventing sales already created by demand from being lost due to a decision made too late. 1493 1494It is precisely at this point that infinity6 operates: *transforming demand and supply data into predictive, actionable decisions connected to the real business impact.* 1495 1496Because **the value of AI is not in appearing innovative, but in helping the company act before a loss occurs.**`,qEe=`--- 1497id: 9b2bd3a9-6259-4c57-bb0e-37aafb0ef0df 1498title: "Preço certo na planilha, margem errada no resultado: o novo desafio do pricing no e-commerce" 1499slug: ai-pricing-ecommerce-margem-giro-conversao 1500language: pt 1501type: i6 Article 1502featured: true 1503gated: false 1504date: 2026-07-16T12:00:00.000Z 1505read_time: 6 1506cover_image: "/content/insights/ai-pricing-ecommerce-margem-giro-conversao.png" 1507cta_form: true 1508cta_form_text: "**Pronto para aplicar isso na realidade da sua empresa?** à só preencher o formulário abaixo." 1509theme: "preco-elasticidade" 1510theme_label: "Preço e elasticidade" 1511excerpt: "Entenda como AI Pricing ajuda e-commerces a transformar preço em uma decisão dinâmica, conectando margem, giro, conversão, estoque e governança." 1512--- 1513No e-commerce, um preço pode estar tecnicamente correto e comercialmente errado ao mesmo tempo. 1514 1515Ele pode respeitar a margem mÃnima. Pode estar alinhado à tabela comercial. Pode parecer competitivo quando comparado ao concorrente. Pode ter sido aprovado em reunião e ainda assim deixar dinheiro na mesa. 1516 1517**Isso acontece porque preço não é uma variável isolada. à uma decisão que muda conforme o contexto.** 1518 1519Muda com o estoque. Muda com a elasticidade de cada SKU. Muda com o giro da categoria. Muda com a origem do tráfego. Muda com a intenção de compra. Muda com a sazonalidade. Muda com a pressão competitiva. Muda com a meta de margem. 1520 1521Quando todos esses sinais são analisados de forma lenta, manual ou pouco granular, o problema raramente aparece como âerro de preçoâ. Ele aparece no resultado: margem comprimida, desconto desnecessário, estoque parado, markdown tardio, conversão perdida e capital preso. 1522 1523A questão é que muitas empresas ainda tratam pricing como tabela, quando ele já se tornou uma alavanca financeira. 1524 1525## Por que o modelo tradicional de pricing ficou curto 1526 1527Durante muito tempo, precificar com base em histórico, margem mÃnima, reuniões periódicas e acompanhamento pontual da concorrência parecia suficiente. 1528 1529Mas o e-commerce opera em outro ritmo. 1530 1531A demanda muda ao longo do dia. A concorrência ajusta preço com mais frequência. O consumidor compara opções em segundos. O estoque envelhece enquanto a decisão ainda está sendo discutida. Campanhas, canais e comportamentos de navegação criam contextos diferentes para o mesmo produto. 1532 1533Nesse cenário, decidir preço apenas por média, histórico ou regra fixa cria distorções. 1534 1535Um SKU com alta demanda e baixa sensibilidade a preço pode estar cedendo margem sem necessidade. Outro, com estoque pressionado e baixa velocidade de giro, pode precisar de uma estratég
1535ia de markdown mais precisa. Um terceiro pode ter boa conversão em determinado contexto de sessão, mas perder receita quando tratado com a mesma lógica aplicada a todo o catálogo. 1536 1537O problema não é falta de dados. 1538O problema é transformar dados em decisão antes que a oportunidade passe. 1539 1540## A tensão real: margem, giro e conversão 1541 1542Toda decisão de preço carrega uma troca. 1543 1544Se o preço sobe, a margem pode melhorar, mas a conversão pode cair. Se o preço baixa, a conversão pode subir, mas a margem pode ser destruÃda. Se o produto não gira, o estoque envelhece. Se o markdown entra cedo demais, a empresa ensina o mercado a esperar desconto. Se entra tarde demais, o custo já foi absorvido pela operação. 1545 1546à por isso que a pergunta âqual preço devemos colocar?â é limitada. 1547 1548A pergunta mais importante é: 1549 1550> Qual decisão de preço gera o melhor resultado possÃvel para este produto, neste contexto, respeitando as restrições do negócio? 1551 1552Essa mudança de pergunta é o que separa pricing operacional de pricing inteligente. 1553 1554## O que AI Pricing muda na prática 1555 1556AI Pricing não significa deixar a IA alterar preços sem critério. 1557 1558Significa usar inteligência artificial para ampliar a capacidade de análise e recomendação, considerando mais variáveis do que uma equipe conseguiria processar manualmente com a mesma frequência e granularidade. 1559 1560**Na prática, a IA pode ajudar a estimar elasticidade por SKU, projetar demanda, simular cenários, identificar oportunidades de captura de margem, calibrar markdown, recomendar faixas de preço e medir o resultado das decisões antes de escalar.** 1561 1562O ponto central é que a recomendação precisa operar dentro das regras do negócio. 1563 1564Margem mÃnima, estoque disponÃvel, polÃtica comercial, banda competitiva, regras de exposição e governança não são detalhes. São restrições que definem o espaço seguro de decisão. 1565
1566A IA não substitui a estratégia comercial. Ela ajuda a executar essa estratégia com mais velocidade, precisão e rastreabilidade. 1567 1568## Três formas de aplicar AI Pricing no e-commerce 1569 1570Na infinity6, a visão de AI Pricing parte de três frentes complementares: margem, giro e conversão. 1571 1572### 1. Price-to-Margin: capturar margem sem romper a estratégia comercial 1573 1574Nem todo produto precisa de desconto para vender melhor. E nem todo preço competitivo maximiza resultado. 1575 1576O Price-to-Margin busca identificar oportunidades de captura de margem por SKU, considerando elasticidade, forecast, histórico de preço e volume, concorrência, estoque e restrições comerciais. 1577 1578**A lógica é simples: se dois produtos têm comportamentos diferentes, eles não deveriam ser tratados pela mesma regra.** 1579 1580Com uma visão mais granular, a empresa consegue entender onde há espaço para preservar ou ampliar margem sem comprometer a estratégia comercial. 1581 1582### 2. Price-to-Turnover: acelerar giro sem transformar desconto em piloto automático 1583 1584Estoque parado é margem sob pressão. 1585 1586Mas resolver giro apenas com desconto pode corroer rentabilidade. O desafio está em entender quando, onde e com qual intensidade ajustar preço para movimentar produto sem destruir valor. 1587 1588**O Price-to-Turnover considera ciclo de vida do produto, velocidade de venda, sazonalidade, estoque, região, loja, categoria ou cluster para recomendar preço e régua de markdown com mais precisão.** 1589 1590A decisão deixa de ser âbaixar preço porque não vendeuâ e passa a ser âqual movimento preserva melhor o equilÃbrio entre giro e margem?â. 1591 1592### 3. Price-to-Conversion: decidir com base no contexto da sessão 1593 1594No e-commerce, duas sessões nunca são exatamente iguais. 1595 1596Um usuário recorrente, vindo de uma campanha especÃfica, navegando em determinado horário e demonstrando alta intenção de compra não tem o mesmo contexto de um visitante novo, sem histórico e sem sinais claros de conversão. 1597 1598**O Price-to-Conversion usa sinais da sessão, histórico do usuário, origem do canal, estoque, demanda em tempo real e regras comerciais para apoiar recomendações mais contextuais.** 1599 1600O objetivo não é simplesmente converter mais. à aumentar conversão e receita por sessão sem abrir mão da margem. 1601 1602## Governança é o que torna a IA aplicável 1603 1604A maior objeção à IA em pricing é legÃtima: preço é sensÃvel demais para virar experimento sem controle. 1605 1606Por isso, governança precisa estar no desenho da solução, não no discurso. 1607 1608Antes de recomendar qualquer ação, o modelo deve respeitar restrições como **margem mÃnima, estoque disponÃvel, polÃtica comercial e regras de exposição.** Depois, a empresa precisa acompanhar resultado real versus recomendado, realizar backtests, ajustar premissas e recalibrar modelos conforme novos dados entram. 1609 1610Esse processo evita duas armadilhas comuns: confiar demais em uma recomendação sem explicabilidade ou limitar a IA a uma camada decorativa, sem impacto real na decisão. 1611 1612AI Pricing bem implementado não tira controle da empresa. 1613 1614Ele aumenta a qualidade do controle. 1615 1616## Como saber se sua operação está pronta para AI Pricing 1617 1618A jornada não precisa começar pelo catálogo inteiro. 1619 1620O melhor ponto de partida costuma estar onde existe maior tensão entre margem, giro e conversão. 1621 1622Algumas perguntas ajudam a encontrar esse recorte: 1623 1624- Quais categorias têm maior pressão de margem? 1625- Quais SKUs recebem desconto com frequência, mas sem clareza de necessidade? 1626- Onde o estoque está envelhecendo? 1627- Onde o markdown chega tarde demais? 1628- Quais produtos têm alta variação de demanda? 1629- Onde a decisão ainda depende de planilhas e ciclos manuais? 1630- Quais dados já existem, mas ainda não viram recomendação acionável? 1631
1632A partir daÃ, é possÃvel começar com um piloto, validar impacto, criar governança e escalar. 1633 1634## O futuro do pricing é menos reação e mais decisão 1635 1636O e-commerce não precisa de mais uma camada de complexidade. Precisa de decisões melhores. 1637 1638Pricing deixou de ser uma rotina de atualização de tabela. Virou um sistema de inteligência comercial que conecta dados, margem, estoque, demanda, conversão e governança. 1639 1640A empresa que decide preço tarde demais perde dinheiro mesmo quando o sistema parece estar funcionando. 1641 1642E é justamente aà que AI Pricing ganha relevância: não como promessa genérica de automação, mas como uma forma prática de transformar dados em decisões comerciais mais rápidas, mensuráveis e alinhadas ao resultado. 1643 1644 1645 1646 1647**A infinity6 estará no [Fórum E-Commerce Brasil](https://eventos.ecommercebrasil.com.br/forum), de 28 a 30 de julho, como uma das finalistas do Concurso RocketGen, para apresentar sua solução de AI Pricing e conversar com empresas que querem tratar preço como aquilo que ele realmente é: Uma alavanca direta de margem, giro e crescimento.** 1648 1649Preço não é tabela. à decisão de negócio.`,UEe=`--- 1650id: ffad2f35-edef-4e0e-a0d0-03753912fcd9 1651title: "Como elevar o ticket por PDV em +23% e a conversão de novos SKUs em +36%?" 1652slug: conversao-ia-ticket-medio-infinity6 1653language: pt 1654type: i6 Social 1655cluster: "Aumento Conversão Ticket Médio infinity6" 1656featured: false 1657gated: false 1658date: 2026-03-31T12:00:00.000Z 1659cover_image: "/content/insights/conversao-ia-ticket-medio-infinity6.webp" 1660external_url: "https://www.linkedin.com/feed/update/urn:li:activity:7444745234313326592" 1661excerpt: "Mais precisão por PDV? Antecipação comercial? Visão integrada sem ruÃdo?\\nConfira os detalhes desse case de sucesso com a EMS em nosso post no Linkedin." 1662---`,WEe=`--- 1663id: 19029a9f-4976-4076-88f3-cac529a99907 1664title: "Eficiência genérica já não basta para gerar resultado real" 1665slug: eficiencia-ia-aplicada-antecipar-demanda 1666language: pt 1667type: i6 on Media 1668cluster: "Forecasting IA Aplicada" 1669featured: false 1670gated: false 1671date: 2025-05-27T12:00:00.000Z 1672cover_image: "/content/insights/eficiencia-ia-aplicada-antecipar-demanda.webp" 1673external_url: "https://mercadoeconsumo.com.br/27/06/2025/tecnologia/nova-era-da-ia-eficiencia-generica-ja-nao-basta-para-gerar-resultado-real-nos-negocios/" 1674excerpt: "A parceria da EMS com a Infinity6 amplia a aplicação de IA, conectando toda a jornada do produto e antecipando a demanda com alta precisão." 1675---`,VEe=`--- 1676id: abd80d74-80c8-49d0-9221-6bfdf167293d 1677title: "Onde sua margem está sendo drenada agora?" 1678slug: margem-predição-ia-demanda 1679language: pt 1680type: i6 Social 1681cluster: "Antecipar demanda aumentando margem e eficiência" 1682featured: false 1683gated: false 1684date: 2026-04-10T12:00:00.000Z 1685cover_image: "/content/insights/margem-predição-ia-demanda.png" 1686external_url: "https://www.linkedin.com/feed/update/urn:li:activity:7448480926738620416" 1687excerpt: "Dados parados são o lucro da concorrência. Antecipar a demanda com IA não é mais um luxo, é sobrevivência. Veja como transformamos sinais em resultados de nove dÃgitos." 1688---`,HEe=`--- 1689id: ba512e18-ec1a-4537-b190-df1e17c3939a 1690title: "infinity6 é citada no Fato Relevante, quadro da CNN Brasil" 1691slug: media-cnn-infinity6 1692language: pt 1693type: i6 on Media 1694cluster: "IA Aplicada" 1695featured: true 1696gated: false 1697date: 2026-06-01T12:00:00.000Z 1698read_time: 4 1699cover_image: "/content/insights/media-cnn-infinity6.webp" 1700external_url: "https://www.youtube.com/watch?v=eEaJ_TZIOKU" 1701excerpt: "A infinity6 foi citada no Fato Relevante, quadro da CNN Brasil em parceria com a NeoFeed, como uma das poucas empresas brasileiras desenvolvendo IA aplicada, proprietária e orientada a resultados reais de negócio." 1702---`,KEe=`--- 1703id: 18926924-06d0-4a4e-bdab-2ad5b6c232a9 1704title: "Everton Gago, cofundador da infinity6, é entrevistado pelo NeoFeed sobre a corrida da IA brasileira" 1705slug: media-neofeed-everton-gago-ia-brasileira 1706language: pt 1707type: i6 on Media 1708cluster: "IA Aplicada" 1709featured: false 1710gated: false 1711date: 2026-04-30T12:00:00.000Z 1712cover_image: "/content/insights/media-neofeed-everton-gago-ia-brasileira.png" 1713external_url: "https://neofeed.com.br/startups/brasil-tem-50-chatgpts-com-sotaque-brasileiro-eles-vao-sobreviver-
1713a-corrida-da-ia/" 1714excerpt: "Em reportagem sobre a corrida da inteligência artificial no Brasil, o NeoFeed entrevistou Everton Gago, cofundador da infinity6, para falar sobre modelos proprietários treinados com dados dos clientes, IA especializada e aplicações reais em recomendação, previsão e precificação." 1715---`,GEe=`--- 1716id: f16b555d-6e0f-4e67-bb62-a044782deac9 1717title: "infinity6 é um dos palestrantes convidados na 2ª edição do Meetup Agibank" 1718slug: meetup-agibank-dados-infinity6 1719language: pt 1720type: i6 on Media 1721cluster: "Meetup Dados IA infinity6" 1722featured: false 1723gated: false 1724date: 2026-02-26T12:00:00.000Z 1725cover_image: "/content/insights/meetup-agibank-dados-infinity6.png" 1726external_url: "https://www.linkedin.com/feed/update/urn:li:activity:7433179113617559553/" 1727excerpt: "A 2ª edição do Meetup Agibank promoveu um encontro relevante sobre dados, inteligência artificial e sistemas escaláveis, reunindo profissionais para troca de experiências, networking e discussão técnica aplicada." 1728---`,QEe=`--- 1729id: 9913c519-12a3-4794-92f4-5f85573a095d 1730title: "Onde a sua empresa está perdendo dinheiro porque as decisões acontecem tarde demais?" 1731slug: onde-sua-empresa-esta-perdendo-dinheiro 1732language: pt 1733type: i6 Article 1734featured: false 1735gated: false 1736date: 2026-07-08T12:00:00.000Z 1737read_time: 4 1738cover_image: "/content/insights/onde-sua-empresa-esta-perdendo-dinheiro.jpg" 1739cta_form: true 1740cta_form_text: "**Pronto para aplicar isso na realidade da sua empresa?** à só preencher o formulário abaixo." 1741theme: "previsao-demanda" 1742theme_label: "Previsão de demanda" 1743excerpt: "A inteligência artificial já está no radar do varejo." 1744--- 1745A IA aparece em campanhas mais personalizadas, recomendações de produto, atendimento automatizado, análise de comportamento e novas formas de relacionamento com o consumidor. Tudo isso tem valor. Mas existe uma camada menos visÃvel, e muitas vezes mais crÃtica, onde a IA pode gerar impacto direto no resultado: demanda, estoque e supply chain. 1746 1747Uma matéria recente da [CartaCapital](https://www.cartacapital.com.br/do-micro-ao-macro/varejo-ia-estoque-logistica/) sobre o uso de IA no varejo chamou atenção justamente para esse ponto. Muitas empresas avançaram em marketing e atendimento, mas ainda têm uma grande oportunidade em previsão de demanda, logÃstica e gestão de estoque. 1748 1749E essa oportunidade não é apenas tecnológica. 1750 1751**à financeira.** 1752 1753Porque boa parte do dinheiro que uma empresa perde não aparece como um erro óbvio. Aparece como uma venda que não aconteceu. Um produto que faltou. Um estoque que sobrou. Uma decisão de compra tomada tarde. Uma alocação que não acompanhou a demanda real. Uma margem pressionada por descontos que poderiam ter sido evitados. 1754**No varejo, decidir tarde custa caro.** 1755 1756 1757 1758## O problema começa antes da ruptura. 1759 1760Quando um produto falta na prateleira, o problema já aconteceu. A venda foi perdida. O cliente pode ter escolhido outra marca. O esforço de campanha pode ter gerado demanda para um item indisponÃvel. A operação, nesse momento, já está reagindo. 1761 1762**O mesmo acontece com o excesso de estoque.** Quando a empresa percebe que comprou demais ou alocou mal, parte do prejuÃzo já está formada. O capital ficou parado. O espaço foi ocupado. A margem futura ficou ameaçada. E a correção normalmente vem por meio de desconto, transferência emergencial ou aumento de custo operacional. 1763 1764>A pergunta importante não é apenas: âo que aconteceu?â. A pergunta certa é: **âquais sinais já indicavam que isso iria acontecer?â** 1765 1766Essa é a diferença entre uma operação reativa e uma operação preditiva. 1767 1768## O varejo não sofre por falta de dados. 1769 1770A maioria das empresas já tem muitos dados: vendas por SKU; Giro por loja; Estoque disponÃvel; Histórico de ruptura; Margem por categoria; Campanhas; Preço; Canal; Região; Sazonalidade; Lead time; Comportamento de compra; Sell-in; Sell-out... 1771 1772O desafio não é gerar mais informação. O desafio é transformar informação em decisão antes que o problema vire perda. 1773 1774Quando esses sinais ficam espalhados em sistemas, relatórios e planilhas, a empresa até consegue enxergar o passado. Mas demora para antecipar o que precisa ser feito agora. 1775 1776E, em um mercado de margens pressionadas, volatilidade de demanda e operações cada vez mais complexas, esse atraso pesa no caixa. 1777 1778## A IA preditiva muda o centro da decisão 1779 1780A IA preditiva aplicada ao varejo permite sair de uma lógica baseada apenas em histórico e médias para uma lógica orientada por sinais, padrões e recomendações acionáveis. Isso significa **prever com mais granularidade o comportamento da demanda por produto, loja, canal e perÃodo**. 1781 1782Mas previsão, sozinha, não basta. 1783 1784O valor real aparece quando a previsão ajuda a decidir melhor. 1785 1786- O que comprar. 1787- Quanto comprar. 1788- Onde alocar. 1789- Quando repor. 1790- Qual SKU tem maior risco de ruptura. 1791- Onde o excesso está se formando. 1792- Qual loja precisa de ajuste. 1793- Qual decisão protege melhor receita, margem, giro e nÃvel de serviço. 1794 1795Essa é a fronteira mais importante da IA no varejo: **sair do diagnóstico e chegar à decisão operacional.** 1796 1797## O impacto direto no negócio 1798 1799Quando a empresa antecipa a demanda com mais precisão, ela reduz a chance de perder vendas por falta de produto. 1800 1801Quando melhora a alocação, coloca o estoque onde existe maior potencial de giro. 1802 1803Quando identifica excesso antes que ele se consolide, evita capital parado e reduz a necessidade de descontos agressivos. 1804 1805Quando conecta demanda, estoque, margem e nÃvel de serviço, deixa de tomar decisões isoladas e passa a operar com uma visão mais inteligente do negócio. 1806 1807O impacto aparece em quatro frentes principais: 1808 1809- **Receita**, porque há menos perda de venda por ruptura. 1810- **Margem**, porque a empresa reduz correções caras, remarcações, decisões emergenciais e torna o capital mais eficiente. 1811- **Capital de giro**, porque compra e distribui com mais precisão. 1812- **Eficiência operacional**, porque a tomada de decisão fica mais rápida, granular e orientada por dados reais de comportamento. 1813 1814> No fim, a **IA só gera valor quando muda uma decisão importante.** 1815 1816E poucas decisões são tão importantes para o varejo quanto prever demanda, abastecer corretamente e proteger margem. 1817 1818## A pergunta que lÃderes deveriam fazer agora 1819 1820Muitas empresas ainda começam a conversa sobre IA perguntando qual ferramenta devem usar. Essa não deveria ser a primeira pergunta. 1821
1822A pergunta mais estratégica é: 1823 1824> Onde estamos perdendo dinheiro porque nossas decisões acontecem tarde demais? 1825 1826A resposta pode estar: 18271. Na ruptura de produtos de alto giro; 18282. No excesso de estoque em categorias com baixa saÃda; 18293. Na alocação errada entre lojas, centros de distribuição, e-commerce e marketplace; 18304. Na dificuldade de ajustar o sortimento por região; 18315. Na demora para perceber mudanças de comportamento do consumidor. 1832 1833Ou simplesmente na *distância entre o que os dados mostram e o que a operação consegue executar*. 1834 1835Quando essa pergunta é respondida com clareza, **a IA deixa de ser um projeto genérico de inovação e passa a ser uma alavanca concreta de eficiência, crescimento e rentabilidade**. 1836 1837## A próxima fronteira da IA no varejo será operacional 1838 1839A IA aplicada a marketing e atendimento continuará evoluindo. Ela melhora relacionamento, personalização e produtividade. 1840 1841Mas uma das maiores oportunidades do varejo está nos bastidores, em: 1842- Prever melhor. 1843- Comprar melhor. 1844- Alocar melhor. 1845- Repor melhor. 1846- Evitar ruptura. 1847- Reduzir excesso. 1848- Proteger margem. 1849 1850A próxima fronteira da inteligência artificial no varejo não será apenas vender mais. Será impedir que a venda já criada pela demanda seja perdida por uma decisão tomada tarde demais. 1851 1852à extamente nesse ponto que a infinity6 atua: *transformando dados de demanda e supply em decisões preditivas, acionáveis e conectadas ao impacto real no negócio.* 1853 1854Porque **o valor da IA não está em parecer inovador, mas em ajudar a empresa a agir antes que a perda aconteça.**`,YEe=`--- 1855id: d6b57dca-ef57-43aa-8a34-fd17693da292 1856title: "Sinais de intenção de compra: como transformar comportamento em conversão antes do concorrente" 1857slug: sinais-de-intencao-ia-preditiva 1858language: pt 1859type: i6 Article 1860featured: true 1861gated: false 1862date: 2026-08-28T12:00:00.000Z 1863read_time: 4 1864cover_image: "/content/insights/sinais-de-intencao-ia-preditiva.jpg" 1865cta_form: true 1866cta_form_text: "**Pronto para aplicar isso na realidade da sua empresa?** à só preencher o formulário abaixo." 1867theme: "propensao-conversao" 1868theme_label: "Propensão de conversão" 1869is_default: true 1870excerpt: "Seu cliente pode não dizer que pretende comprar. Mas ele já está deixando pistas." 1871--- 1872Uma busca especÃfica. O retorno à mesma página. A comparação entre produtos. A consulta ao preço ou à disponibilidade. Separadamente, cada comportamento diz pouco. Em conjunto e no contexto certo, revelam uma intenção ainda não declarada â e uma o
1872portunidade que pode desaparecer rapidamente. 1873 1874**Sinais de intenção** são comportamentos e contextos que indicam a probabilidade de um cliente comprar, contratar ou responder a uma oferta. Para empresas de tecnologia, instituições financeiras e indústrias de bens de consumo, o desafio é interpretá-los enquanto ainda existe tempo para influenciar a decisão. 1875 1876# O consumidor não segue mais um funil previsÃvel 1877 1878A jornada de compra deixou de ser linear. Uma [pesquisa publicada pelo Google](https://business.google.com/br/think/consumer-insights/empowered-customer-report/) em abril de 2026 mostra que Busca e YouTube estão presentes em 84% das jornadas nas quais brasileiros descobriram uma nova marca, produto ou varejista. Além disso, 86% afirmam estar abertos a experimentar novas marcas enquanto pesquisam. 1879 1880A IA torna esse comportamento ainda mais complexo. As consultas no Modo IA do Google são, em média, três vezes mais longas, indicando pesquisas mais contextuais. Descoberta, comparação e decisão começam a acontecer no mesmo ambiente. 1881 1882Na prática, a intenção aparece antes da conversão e muda rapidamente. Uma pessoa pode ter alta propensão, mas precisar de parcelamento; buscar desconto mesmo com renda elevada; ou estar pronta para converter sem cupom. 1883 1884Por isso, intenção não deve ser confundida com um clique ou perfil demográfico. 1885 1886Vale ressaltar que **identificar intenção não significa expor dados pessoais ou monitorar o consumidor sem critérios**. Modelos de propensão podem operar com identificadores anonimizados, dados agregados e variáveis comportamentais, respeitando finalidade, minimização e governança. Em setores regulados, a explicabilidade da recomendação é tão importante quanto sua precisão. 1887 1888# O sinal isolado não basta. A combinação é o que gera inteligência 1889 1890Os sinais mais valiosos combinam: 1891 18921. **Comportamento recente**: buscas, comparações, abandonos e retornos. 18932. **Contexto**: canal, categoria, ocasião, preço, estoque e momento. 18943. **Capacidade de ação**: condição financeira, crédito, disponibilidade e incentivo necessário. 1895 1896De acordo com o [Meio & Mensagem](https://www.meioemensagem.com.br/marketing/black-friday-81-dos-brasileiros-querem-incentivos-nas-compras), para a Black Friday de 2026, 48% dos consumidores que pretendiam comprar já tinham uma lista definida e 44% haviam começado a pesquisar preços. Ao mesmo tempo, 51% estavam com a renda comprometida. 1897 1898A intenção existia, mas a conversão ainda dependia da condição certa. 1899 1900No Dia dos Pais, a [Serasa Experian](https://www.serasaexperian.com.br/sala-de-imprensa/servicos-de-marketing/consumidor-mais-propenso-a-comprar-no-dia-dos-pais-e-3-vezes-mais-sensivel-a-descontos-que-a-media-dos-brasileiros-revela-serasa-experian/) identificou 11,7 milhões de brasileiros com maior propensão de compra. Desses, 57,8% eram caçadores de descontos â três vezes a média â, embora 26,9% tivessem renda acima de R$ 8 mil. 1901 1902Renda e intenção, sozinhas, não revelam qual oferta será mais eficiente. 1903 1904 1905 1906# O que os sinais de intenção mudam em cada mercado 1907 1908Em **tecnologia**, uso recorrente, consulta a preços e integrações ou queda de engajamento podem indicar propensão de upgrade, cross-sell ou churn. 1909 1910No **mercado financeiro**, simulações, movimentações, afinidades e respostas a campanhas ajudam a identificar quem pode contratar crédito, seguro, investimento ou outro produto â e qual argumento usar. 1911 1912Em **bens de consumo**, buscas, sell-out, recorrência, preço, disponibilidade e sazonalidade antecipam compras e mudanças de demanda por SKU, região ou PDV. O sinal orienta marketing, sortimento, abastecimento e pricing. 1913 1914Em todos esses setores, o ganho está em transformar sinais em decisão: **quem ativar, quando, com qual oferta, canal e incentivo**. 1915 1916# Como a infinity6 transforma sinais em decisões preditivas 1917 1918A infinity6 conecta navegação, busca, compra, carrinho, canal, produto, preço, estoque, contexto e histórico para identificar intenções não declaradas e recomendar a próxima melhor ação. 1919 1920O **i6 RecSys** calcula propensão, afinidade, risco de abandono e oportunidades de cross-sell ou up-sell â inclusive para tráfego anônimo. 1921 1922O **i6 ElasticPrice** distingue quem precisa de incentivo de quem compraria a preço cheio, calibrando desconto, bundle ou argumento de valor com base em elasticidade e margem. 1923 1924O **i6 Previsio** conecta comportamento à demanda futura para orientar estoque, mix e abastecimento. 1925 1926O **i6 Signal** leva recomendações explicáveis ao CRM, e-commerce, app, WhatsApp, mÃdia, PDV ou time comercial. 1927 1928Em projetos já realizados, essa abordagem gerou: 1929 1930- **12 vezes mais conversão em campanhas;** 1931- **redução de 57% nos custos de mensageria;** 1932- **receita incremental de 40% com curadoria preditiva no varejo fashion;** 1933- **aumento de 23% no ticket médio por PDV.** 1934 1935[Conheça a solução de Crescimento & Inteligência de Consumidor da infinity6](https://infinity6.ai/pt/solutions#territory-growth). 1936 1937# O custo de interpretar a intenção tarde demais 1938
1939Campanhas genéricas, clusters estáticos e regras como âabandonou o carrinho, envie cupomâ geram três perdas: investimento em públicos com baixa propensão, desconto para quem compraria sem incentivo e abordagem tardia de quem estava pronto para converter. 1940 1941A IA preditiva muda essa lógica. Em vez de perguntar apenas o que o cliente fez, estima o que ele está propenso a fazer agora e prescreve a ação mais promissora. 1942 1943Se sua empresa já reúne dados de clientes, transações e canais, mas ainda decide com base no passado, a oportunidade provavelmente já está dentro da operação. 1944 1945O próximo passo é descobrir quais sinais antecipam conversão â e quanto valor pode ser capturado ao agir antes. 1946 1947# Perguntas frequentes sobre sinais de intenção 1948 1949## O que são sinais de intenção? 1950 1951São comportamentos e contextos que ajudam a estimar a probabilidade de uma pessoa comprar, contratar ou responder a uma oferta, como buscas, visitas recorrentes, comparações, simulações, carrinho, abandono e histórico de compra. 1952 1953## Quais sinais indicam maior intenção de compra? 1954 1955Os mais fortes envolvem compromisso crescente: retornar ao produto, comparar condições, consultar disponibilidade, simular uma contratação, iniciar o checkout ou negociar uma oferta. Sua força depende de recência, frequência, sequência e contexto. 1956 1957## Qual é a diferença entre segmentação e propensão de compra? 1958 1959Segmentação agrupa pessoas semelhantes. Propensão estima a probabilidade de uma ação especÃfica em determinado contexto e momento. Duas pessoas do mesmo segmento podem ter probabilidades diferentes. 1960 1961## à possÃvel identificar intenção em visitantes anônimos? 1962 1963Sim. Sessão, origem, dispositivo, navegação, busca e recorrência podem indicar intenção mesmo sem login ou histórico identificado. 1964 1965# Você está pronto para transformar sinais de intenção em receita, margem e eficiência comercial? 1966 1967Fale com a infinity6 e realize um backtest gratuito para descobrir onde sua empresa está perdendo dinheiro.`,lD=`# i6 Intelligence â schema de conteúdo 1968 1969Este diretório alimenta o hub editorial **i6 Intelligence** em \`/i6-intelligence\`. 1970Cada peça é um arquivo Markdown com **frontmatter YAML** + corpo. O conteúdo é 1971varrido em tempo de build por: 1972 1973- \`src/hooks/useIntelligence.ts\` â runtime React (Ãndice + página de artigo) 1974- \`scripts/prerender-seo-stubs.mjs\` â pré-render de stubs estáticos (SEO/GEO) 1975- \`public/sitemap.xml\` â entradas dinâmicas entre \`<!-- i6hub:intelligence-sitemap-start -->\` e \`<!-- ...-end -->\` 1976- \`public/llms.txt\` â listagem entre \`<!-- i6hub:intelligence-list-start -->\` e \`<!-- ...-end -->\` 1977 1978## Convenção de arquivo 1979 1980Cada peça vive em **par obrigatório** PT + EN: 1981 1982\`\`\` 1983src/content/intelligence/ 1984 <slug>-pt.md 1985 <slug>-en.md 1986\`\`\` 1987 1988O \`<slug>\` é o mesmo nas duas versões e gera as rotas: 1989 1990- \`/pt/i6-intelligence/<slug>\` 1991- \`/en/i6-intelligence/<slug>\` 1992 1993## Frontmatter 1994 1995\`\`\`yaml 1996--- 1997id: ruptura-gondola-ia-preditiva # opcional, mesmo id nos dois idiomas 1998title: "TÃtulo da peça (= H1, pergunta JTBD)" 1999slug: ruptura-gondola-ia-preditiva # idêntico nos dois idiomas 2000language: pt # 'pt' ou 'en' 2001date: 2026-06-12 # ISO YYYY-MM-DD 2002sector: farma # ver tabela abaixo 2003theme: estoque # ver tabela abaixo 2004excerpt: "1 a 3 frases, citation magnet" # 140â280 caracteres 2005read_time: 8 # opcional, em minutos 2006featured: true # opcional, destaca no Ãndice 2007cover_image: /lovable-uploads/xxx.png # opcional, caminho relativo ou URL absoluta 2008gated: false # opcional, true â exige LeadGateForm antes de liberar o conteúdo 2009asset_url: /assets/research/xxx.pdf # opcional, PDF liberado após o gate (também enviado por email pelo i6Hub) 2010related_product: i6previsio # opcional, âncora em /solutions 2011related_story_slug: marketplace-excellence-pharmacy # opcional, link cruzado para case 2012--- 2013\`\`\` 2014 2015### Valores aceitos para \`sector\` 2016 2017| valor | rótulo PT | rótulo EN | 2018|---|---|---| 2019| \`farma\` | Farma | Pharma | 2020| \`industria\` | Indústria | Industry | 2021| \`financeiro\` | Financeiro | Financial Services | 2022| \`varejo\` | Varejo | Retail | 2023| \`ecommerce\` | E-commerce | E-commerce | 2024| \`multissetor\` | Multissetor | Cross-sector | 2025 2026### Valores aceitos para \`theme\` 2027 2028| valor | rótulo PT | rótulo EN | 2029|---|---|---| 2030| \`demanda\` | Demanda | Demand | 2031| \`margem\` | Margem | Margin | 2032| \`estoque\` | Estoque | Inventory | 2033| \`mix\` | Mix & Sortimento | Mix & Assortment | 2034| \`propensao\` | Propensão | Propensity | 2035| \`cac\` | CAC | CAC | 2036 2037Use **sempre** os valores em português (à esquerda) â o filtro mapeia 2038automaticamente para o rótulo do idioma corrente. 2039 2040## Estrutura recomendada do corpo 2041 2042Para maximizar GEO (citações por LLMs) e SEO: 2043 2044\`\`\`md 2045## Resposta direta # PT | ## Direct answer # EN 20462 a 3 frases respondendo a pergunta do tÃtulo. Inclui dado quantitativo 2047e o engine proprietário responsável (Previsio, ElasticPrice, RecSys). 2048 2049## O tamanho do problema # PT | ## How big is the problem # EN 2050Dado de mercado em frase canônica: 2051"Segundo levantamentos mapeados pela infinity6, ..." 2052"According to data mapped by infinity6, ..." 2053 2054## Por que abordagens tradicionais falham 2055Por que ERP/planilha/regra fixa não resolve. 2056 2057## O motor proprietário da infinity6 2058Engine responsável + como combina com os outros. 2059 2060## Resultado anonimizado 2061Métricas anonimizadas (perfil de cliente, sem nome). 2062 2063## Perguntas frequentes # PT | ## FAQ # EN 2064**Pergunta 1?** 2065Resposta em 1â3 frases. 2066 2067**Pergunta 2?** 2068Resposta em 1â3 frases. 2069 2070## Próximo passo 2071CTA editorial. 2072\`\`\` 2073 2074- O bloco **Perguntas frequentes** / **FAQ** é detectado automaticamente 2075 e vira \`FAQPage\` JSON-LD em build time. Use exatamente um destes dois 2076 tÃtulos como H2 â variações ("Perguntas comuns", "Q&A") não são 2077 reconhecidas. 2078- Cada pergunta deve ser uma linha **em negrito** terminada em \`?\`. 2079- A resposta é o(s) parágrafo(s) imediatamente abaixo, até a próxima 2080 linha em branco seguida de outra pergunta em negrito ou outro H2. 2081 2082## Tamanho alvo 2083 2084- **1.500 a 2.500 palavras** por peça. 2085- **Excerpt**: 140 a 280 caracteres, frase que possa ser citada solta. 2086 2087## Cross-links (opcional) 2088 2089Links internos para \`/solutions\`, \`/success-stories\` ou outras peças do 2090hub usam caminho relativo ao idioma: 2091 2092\`\`\`md 2093[i6 Previsio](/pt/solutions) 2094[Success Story EMS](/pt/success-stories/ems-farma) 2095[Pricing dinâmico](/pt/i6-intelligence/precificacao-dinamica) 2096\`\`\` 2097 2098## Checklist antes de publicar 2099 2100- [ ] Par \`<slug>
2100-pt.md\` + \`<slug>-en.md\` existe 2101- [ ] \`slug\` idêntico nos dois arquivos 2102- [ ] \`language\` corresponde ao sufixo do arquivo 2103- [ ] \`sector\` e \`theme\` usam os valores da tabela acima 2104- [ ] H1 (campo \`title\`) é uma pergunta JTBD real de busca 2105- [ ] Resposta direta nos primeiros 2â3 parágrafos 2106- [ ] Pelo menos 1 dado em frase canônica "mapeados pela infinity6" 2107- [ ] Pelo menos 3 perguntas no bloco FAQ 2108- [ ] Atualizar \`public/sitemap.xml\` entre \`<!-- i6hub:intelligence-sitemap-start -->\` e \`<!-- ...-end -->\` 2109- [ ] Atualizar \`public/llms.txt\` entre \`<!-- i6hub:intelligence-list-start -->\` e \`<!-- ...-end -->\` 2110`;function ZEe(e){return e.replace(/\\r\\n/g,` 2111`).replace(/\\n/g,` 2112`).replace(/\\r/g,` 2113`).replace(/\\t/g," ").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}function XEe(e){const t=e.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/);if(!t)return{data:{},content:e};const[,n,r]=t,a={};for(const i of n.split(/\r?\n/)){if(!i.trim()||i.trim().startsWith("#"))continue;const o=i.indexOf(":");if(o===-1)continue;const l=i.slice(0,o).trim();let c=i.slice(o+1).trim(),u=!1;c.startsWith('"')&&c.endsWith('"')?(c=c.slice(1,-1),u=!0):c.startsWith("'")&&c.endsWith("'")&&(c=c.slice(1,-1)),u&&(c=ZEe(c)),c===""||c==="null"||c==="~"?a[l]=null:c==="true"?a[l]=!0:c==="false"?a[l]=!1:/^\[.*\]$/.test(c)?a[l]=c.slice(1,-1).split(",").map(d=>d.trim().replace(/^["']|["']$/g,"")).filter(Boolean):/^-?\d+(\.\d+)?$/.test(c)?a[l]=Number(c):a[l]=c}return{data:a,content:r.trim()}}function JEe(e){return e?e.replace(/```[\s\S]*?```/g," ").replace(/`([^`]*)`/g,"$1").replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^\s{0,3}#{1,6}\s+/gm,"").replace(/^\s{0,3}>\s?/gm,"").replace(/(\*\*|__)(.*?)\1/g,"$2").replace(/(\*|_)(.*?)\1/g,"$2").replace(/~~(.*?)~~/g,"$1").replace(/\s+/g," ").trim():""}const e5e=Object.assign({"/src/content/insights/README.md":OEe,"/src/content/insights/en-ai-pricing-ecommerce-margem-giro-conversao.md":IEe,"/src/content/insights/en-conversion-ai-average-ticket-infinity6.md":MEe,"/src/content/insights/en-efficiency-applied-anticipate-demand-infinity6.md":$Ee,"/src/content/insights/en-intention-signals-predictive-ai.md":FEe,"/src/content/insights/en-margin-prediction-AI-demand.md":REe,"/src/content/insights/en-media-cnn-infinity6.md":DEe,"/src/content/insights/en-media-neofeed-everton-gago-brazilian-ai.md":LEe,"/src/content/insights/en-meetup-agibank-data-infinity6.md":zEe,"/src/content/insights/en-where-your-company-is-losing-money.md":BEe,"/src/content/insights/pt-ai-pricing-ecommerce-margem-giro-conversao.md":qEe,"/src/content/insights/pt-conversao-ia-ticket-medio-infinity6.md":UEe,"/src/content/insights/pt-eficiencia-ia-aplicada-antecipar-demanda.md":WEe,"/src/content/insights/pt-margem-predição-ia-demanda.md":VEe,"/src/content/insights/pt-media-cnn-infinity6.md":HEe,"/src/content/insights/pt-media-neofeed-everton-gago-ia-brasileira.md":KEe,"/src/content/insights/pt-meetup-agibank-dados-infinity6.md":GEe,"/src/content/insights/pt-onde-sua-empresa-esta-perdendo-dinheiro.md":QEe,"/src/content/insights/pt-sinais-de-intencao-ia-preditiva.md":YEe}),t5e=Object.assign({"/src/content/intelligence/README.md":lD}),n5e={...e5e,...t5e},r5e=["i6 on Media","i6 Article","i6 eBook","i6 Social"],a5e=["i6 on Media","i6 Social"],i5e=["i6 eBook"],_u=Object.entries(n5e).map(([e,t])=>{const{data:n,content:r}=XEe(t),a=n;if(!a.type&&e.includes("/content/intelligence/")&&(a.type=a.asset_url?"i6 eBook":"i6 Article"),!a.title||!a.language||!a.type||!a.date||!r5e.includes(a.type))return null;const i=a.tags,o=Array.isArray(i)?i.map(l=>String(l)).filter(Boolean):typeof i=="string"&&i?[i]:void 0;return{id:a.id,title:a.title,type:a.type,date:a.date,language:a.language,excerpt:JEe(a.excerpt||""),cluster:a.cluster,cover_image:a.cover_image??null,external_url:a.external_url??null,read_time:a.read_time,featured:a.featured===!0,gated:a.gated===!0,asset_url:a.asset_url??null,cta_form:a.cta_form===!0,cta_form_text:a.cta_form_text??null,is_default:a.is_default===!0,theme:a.theme,theme_label:a.theme_label,tags:o,slug:a.slug||e.split("/").pop().replace(/\.md$/,"").replace(/-(pt|en)$/,""),content:r}}).filter(e=>e!==null);_u.sort((e,t)=>
2113e.date<t.date?1:-1);const o5e=e=>{const{language:t}=be(),[n,r]=S.useState([]);return S.useEffect(()=>{const a=_u.filter(i=>i.language===t&&a5e.includes(i.type));r(a)},[t,e]),n},s5e=()=>{const{language:e}=be(),[t,n]=S.useState([]);return S.useEffect(()=>{const r=_u.filter(a=>a.language===e&&i5e.includes(a.type));n(r)},[e]),t},l5e=()=>{const{language:e}=be(),[t,n]=S.useState([]);return S.useEffect(()=>{const r=_u.filter(a=>a.language===e&&a.type==="i6 Article");n(r)},[e]),t},c5e=e=>{const{language:t}=be(),[n,r]=S.useState([]);return S.useEffect(()=>{const a=_u.filter(i=>i.language===t&&i.featured===!0);r(a.slice(0,e))},[t,e]),n},cD=e=>{const{language:t}=be();return _u.find(n=>n.slug===e&&n.language===t)||null},Nu=e=>e?e.startsWith("http")?e:ja(e.replace(/^\//,"")):null,u5e=({insight:e})=>{const t=wt();let n;e.type==="i6 eBook"?n=`/i6-intelligence/${e.slug}`:e.type==="i6 Article"?n=`/i6-blog/${e.slug}`:n=`/insights/${e.slug}`;const a=(e.type==="i6 on Media"||e.type==="i6 Social")&&!e.gated&&!!e.external_url,i=s.jsxs("div",{className:"group h-full p-6 rounded-xl border border-white/10 bg-white/5 hover:bg-white/[0.08] hover:border-[#F4845F]/40 transition-all",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider px-2 py-1 rounded bg-[#F4845F]/15 text-[#F4845F]",children:e.type}),a&&s.jsx($I,{size:14,className:"text-white/40"})]}),s.jsx("h3",{className:"text-lg font-semibold text-white mb-2 group-hover:text-[#F4845F] transition-colors",children:e.title}),s.jsx("p",{className:"text-sm text-white/60 line-clamp-3",children:e.excerpt})]});return a?s.jsx("a",{href:e.external_url,target:"_blank",rel:"noopener noreferrer",children:i}):s.jsx(Ee,{to:t(n),children:i})},d5e=()=>{const{language:e}=be(),t=wt(),n=c5e(3);if(n.length===0)return null;const r=e==="pt"?"Ãltimos Insights":"Latest Insights",a=e==="pt"?"Ver todos os insights":"See all insights";return s.jsxs("section",{className:"container mx-auto px-6 py-20",children:[s.jsxs("div",{className:"flex items-end justify-between mb-10 flex-wrap gap-4",children:[s.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white",children:r}),s.jsxs(Ee,{to:t("/insights"),className:"inline-flex items-center gap-2 text-sm font-semibold text-[#F4845F] hover:gap-3 transition-all",children:[a," ",s.jsx(_a,{size:16})]})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:n.map(i=>s.jsx(u5e,{insight:i},`${i.slug}-${i.language}`))})]})},uD=S.memo(()=>{const{language:e}=be(),t=wt(),{testimonials:n,loading:r,error:a}=AF(),[i,o]=M.useState(),[l,c]=M.useState(0);if(M.useEffect(()=>{i&&(c(i.selectedScrollSnap()),i.on("select",()=>c(i.selectedScrollSnap())))},[i]),r||a||n.length===0)return null;const u={pt:{title:"Com a palavra: quem já está decidindo antes.",subtitle:"LÃderes compartilham como decisões antecipadas estão gerando impacto real nos negócios.",cta:"Veja histórias de sucesso"},en:{title:"In their words: those already deciding first.",subtitle:"Leaders share how anticipated decisions are driving real business impact.",cta:"View success stories"}}[e];return s.jsx("section",{className:"pt-6 pb-16",children:s.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[s.jsxs("div",{className:"text-center mb-6",children:[s.jsx("h2",{className:"text-2xl md:text-3xl font-bold tracking-tight text-white mb-3",children:u.title}),s.jsx("p",{className:"text-base text-white/55 max-w-xl mx-auto leading-relaxed",children:u.subtitle})]}),s.jsx("div",{className:"w-full relative px-2",children:s.jsxs(fj,{setApi:o,className:"w-full",opts:{loop:n.length>1,align:"center"},plugins:[Qy({delay:7e3})],children:[s.jsx(hj,{className:"-ml-2 md:-ml-3 items-stretch",children:n.map(d=>s.jsx(gj,{className:"pl-2 md:pl-3 basis-full sm:basis-1/2 lg:basis-1/3",children:s.jsx("div",{className:"group h-full",children:s.jsxs("div",{className:"bg-white/5 backdrop-blur-sm border border-white/10 rounded-xl p-4 h-full transition-all duration-500 hover:bg-white/10 hover:border-white/20 hover:shadow-lg hover:shadow-[#F4845F]/5 hover:-translate-y-0.5 relative flex flex-col",children:[s.jsx(Fl,{className:"w-4 h-4 text-[#F4845F]/60 mb-2"}),s.jsxs("blockquote",{className:"text-[13px] leading-relaxed text-white/80 mb-3 font-light flex-grow",children:['"',d.quote,'"']}),s.jsxs("div",{className:"mt-auto",children:[s.jsx("div",{className:"w-6 h-px bg-gradient-to-r from-[#F4845F]/60 to-transparent mb-2"}),s.jsxs("cite",{className:"not-italic",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[d.linkedin_url&&s.jsx("a",{href:d.linkedin_url,target:"_blank",rel:"noopener noreferrer",className:"text-white/40 hover:text-[#F4845F] transition-colors duration-300",title:"View LinkedIn Profile",children:s.jsx(Tk,{className:"w-3 h-3"})}),s.jsx("span",{className:"font-medium text-white text-sm",children:d.author_name})]}),d.author_title&&s.jsxs("div",{className:`text-xs text-white/50 leading-tight ${d.linkedin_url?"ml-5":""}`,children:[d.author_title,d.company_name&&s.jsxs("span",{className:"text-[#F4845F]/70",children:[" ","⢠",d.company_name]})]})]})]})]})})},d.id))}),s.jsx("div",{className:"flex justify-center mt-6 gap-1.5",children:n.map((d,m)=>s.jsx("button",{onClick:()=>i==null?void 0:i.scrollTo(m),"aria-label":`Slide ${m+1}`,className:`h-1.5 rounded-full transition-all duration-200 ${m===l?"bg-[#F4845F] w-5":"bg-white/20 hover:bg-white/40 w-1.5"}`},m))})]})}),s.jsx("div",{className:"flex justify-center mt-10",children:s.jsxs(Ee,{to:t("/success-stories"),className:"group inline-flex items-center gap-2 px-6 py-3 bg-transparent text-white font-medium rounded-xl border border-white/40 animate-glow-white transition-all duration-500 ease-out hover:bg-white hover:text-[#0B1224] hover:border-white hover:shadow-[0_0_24px_rgba(255,255,255,0.35),0_0_48px_rgba(255,255,255,0.12)] text-sm md:text-base text-center",children:[u.cta,s.jsx(_a,{size:16,className:"opacity-0 -translate-x-2 transition-all duration-300 group-hover:opacity-100 group-hover:translate-x-1"})]})})]})})});uD.displayName="TestemunhosCompact";const m5e=()=>s.jsxs(s.Fragment,{children:[s.jsx(ns,{page:"home"}),s.jsx(C_e,{}),s.jsx(AEe,{}),s.jsx(NEe,{}),s.jsx(Vy,{compact:!0}),s.jsx(uD,{}),s.jsx(TEe,{}),s.jsx(d5e,{}),s.jsx(ku,{})]}),p5e=ja("content/logos/infinity6_CMYK_color_symbol_72dpi.png"),f5e=({insight:e})=>{const{language:t}=be(),n=wt(),r=!e.gated&&e.type!=="i6 Article"&&!!e.external_url,a=Nu(e.cover_image),i=!!a,o=a||p5e,l=e.type,c=s.jsxs("article",{className:"group relative h-full flex flex-col rounded-xl border border-white/10 bg-white/5 hover:bg-white/[0.08] hover:border-[#F4845F]/40 transition-all p-5",children:[s.jsxs("div",{className:"flex items-start gap-3 mb-4",children:[s.jsxs("div",{className:"flex items-center gap-2 flex-wrap min-w-0",children:[s.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-wider px-1.5 py-0.5 rounded bg-[#F4845F]/15 text-[#F4845F]",children:l}),s.jsx("time",{className:"text-[10px] text-white/40",children:new Date(e.date).toLocaleDateString(t==="pt"?"pt-BR":"en-US",{day:"2-digit",month:"short",year:"numeric"})})]}),s.jsx("img",{src:o,alt:i?`${e.title} source logo`:"infinity6",className:`ml-auto h-8 max-w-[96px] object-contain shrink-0 transition-opacity duration-300 ${i?"opacity-80 group-hover:opacity-100":"opacity-40 group-hover:opacity-60"}`,loading:"lazy"})]}),s.jsx("h2",{className:"text-sm font-semibold text-white mb-2 group-hover:text-[#F4845F] transition-colors line-clamp-2",children:e.title}),s.jsx("p",{className:"text-xs text-white/60 flex-1 line-clamp-3",children:e.excerpt}),s.jsxs("div",{className:"flex items-center gap-2 mt-4 text-[10px] text-white/40",children:[e.read_time&&e.type==="i6 Article"&&s.jsxs("span",{children:[e.read_time," min"]}),r&&s.jsx($I,{size:12,className:"ml-auto text-white/40"})]})]});return r?s.jsx("a",{href:e.external_url,target:"_blank",rel:"noopener noreferrer",className:"block h-full",children:c}):s.jsx(Ee,{to:n(`/insights/${e.slug}`),className:"block h-full",children:c})},h5e=()=>{const{language:e}
vendor: 9,081 bytes, line 2113
2113=be(),t=o5e(),n="Insights",r=e==="pt"?"Artigos, análises e conteúdos de mÃdia sobre IA preditiva, forecast, pricing e crescimento de receita.":"Articles, analysis and media content on predictive AI, forecasting, pricing and revenue growth.";return s.jsxs(s.Fragment,{children:[s.jsx(ns,{page:"insights"}),s.jsx(Na,{children:s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"CollectionPage",name:n,description:r})})}),s.jsxs("section",{className:"container mx-auto px-6 pt-32 pb-20",children:[s.jsxs("header",{className:"max-w-3xl mb-12",children:[s.jsxs("p",{className:"text-xs uppercase tracking-[0.3em] text-[#F4845F] mb-3",children:["infinity6 · ",e==="pt"?"Na MÃdia":"In the Media"]}),s.jsx("h1",{className:"sr-only",children:n}),s.jsx("p",{className:"text-lg text-white/70",children:r})]}),t.length===0?s.jsx("p",{className:"text-white/50",children:e==="pt"?"Em breve, novos conteúdos":"New content coming soon"}):s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:t.map(a=>s.jsx(f5e,{insight:a},`${a.slug}-${a.language}`))})]})]})},p5=(e,t,n)=>{if(e&&"reportValidity"in e){const r=ye(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},dD=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?p5(r.ref,n,e):r.refs&&r.refs.forEach(a=>p5(a,n,e))}},g5e=(e,t)=>{t.shouldUseNativeValidation&&dD(e,t);const n={};for(const r in e){const a=ye(t.fields,r),i=Object.assign(e[r]||{},{ref:a&&a.ref});if(v5e(t.names||Object.keys(e),r)){const o=Object.assign({},ye(n,r));ot(o,"root",i),ot(n,r,o)}else ot(n,r,i)}return n},v5e=(e,t)=>e.some(n=>n.startsWith(t+"."));var y5e=function(e,t){for(var n={};e.length;){var r=e[0],a=r.code,i=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var l=r.unionErrors[0].errors[0];n[o]={message:l.message,type:l.code}}else n[o]={message:i,type:a};if("unionErrors"in r&&r.unionErrors.forEach(function(d){return d.errors.forEach(function(m){return e.push(m)})}),t){var c=n[o].types,u=c&&c[r.code];n[o]=HR(o,t,n,a,u?[].concat(u,r.message):r.message)}e.shift()}return n},Hj=function(e,t,n){return n===void 0&&(n={}),function(r,a,i){try{return Promise.resolve(function(o,l){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(u){return i.shouldUseNativeValidation&&dD({},i),{errors:{},values:n.raw?r:u}})}catch(u){return l(u)}return c&&c.then?c.then(void 0,l):c}(0,function(o){if(function(l){return Array.isArray(l==null?void 0:l.errors)}(o))return{values:{},errors:g5e(y5e(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}},He;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const i={};for(const o of a)i[o]=o;return i},e.getValidEnumValues=a=>{const i=e.objectKeys(a).filter(l=>typeof a[a[l]]!="number"),o={};for(const l of i)o[l]=a[l];return e.objectValues(o)},e.objectValues=a=>e.objectKeys(a).map(function(i){return a[i]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&i.push(o);return i},e.find=(a,i)=>{for(const o of a)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function r(a,i=" | "){return a.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(He||(He={}));var w2;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(w2||(w2={}));const fe=He.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),mo=e=>{switch(typeof e){case"undefined":return fe.undefined;case"string":return fe.string;case"number":return isNaN(e)?fe.nan:fe.number;case"boolean":return fe.boolean;case"function":return fe.function;case"bigint":return fe.bigint;case"symbol":return fe.symbol;case"object":return Array.isArray(e)?fe.array:e===null?fe.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?fe.promise:typeof Map<"u"&&e instanceof Map?fe.map:typeof Set<"u"&&e instanceof Set?fe.set:typeof Date<"u"&&e instanceof Date?fe.date:fe.object;default:return fe.unknown}},ae=He.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"]),x5e=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Sr extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(i){return i.message},r={_errors:[]},a=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(a);else if(o.code==="invalid_return_type")a(o.returnTypeError);else if(o.code==="invalid_arguments")a(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let l=r,c=0;for(;c<o.path.length;){const u=o.path[c];c===o.path.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(n(o))):l[u]=l[u]||{_errors:[]},l=l[u],c++}}};return a(this),r}static assert(t){if(!(t instanceof Sr))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,He.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Sr.create=e=>new Sr(e);const Vc=(e,t)=>{let n;switch(e.code){case ae.invalid_type:e.received===fe.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ae.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,He.jsonStringifyReplacer)}`;break;case ae.unrecognized_keys:n=`Unrecognized key(s) in object: ${He.joinValues(e.keys,", ")}`;break;case ae.invalid_union:n="Invalid input";break;case ae.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${He.joinValues(e.options)}`;break;case ae.invalid_enum_value:n=`Invalid enum value. Expected ${He.joinValues(e.options)}, received '${e.received}'`;break;case ae.invalid_arguments:n="Invalid function arguments";break;case ae.invalid_return_type:n="Invalid function return type";break;case ae.invalid_date:n="Invalid date";break;case ae.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}"`:He.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ae.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==="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 ae.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 ae.custom:n="Invalid input";break;case ae.invalid_intersection_types:n="Intersection results could not be merged";break;case ae.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ae.not_finite:n="Number must be finite";break;default:n=t.defaultError,He.assertNever(e)}return{message:n}};let mD=Vc;function b5e(e){mD=e}function uv(){return mD}const dv=e=>
vendor: 7,037 bytes, line 2113
2113{const{data:t,path:n,errorMaps:r,issueData:a}=e,i=[...n,...a.path||[]],o={...a,path:i};if(a.message!==void 0)return{...a,path:i,message:a.message};let l="";const c=r.filter(u=>!!u).slice().reverse();for(const u of c)l=u(o,{data:t,defaultError:l}).message;return{...a,path:i,message:l}},w5e=[];function me(e,t){const n=uv(),r=dv({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Vc?void 0:Vc].filter(a=>!!a)});e.common.issues.push(r)}class Cn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const a of n){if(a.status==="aborted")return Ne;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const i=await a.key,o=await a.value;r.push({key:i,value:o})}return Cn.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:i,value:o}=a;if(i.status==="aborted"||o.status==="aborted")return Ne;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||a.alwaysSet)&&(r[i.value]=o.value)}return{status:t.value,value:r}}}const Ne=Object.freeze({status:"aborted"}),Ll=e=>({status:"dirty",value:e}),Wn=e=>({status:"valid",value:e}),k2=e=>e.status==="aborted",S2=e=>e.status==="dirty",rp=e=>e.status==="valid",ap=e=>typeof Promise<"u"&&e instanceof Promise;function mv(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function pD(e,t,n,r,a){if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var je;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(je||(je={}));var fd,hd;class Ja{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const f5=(e,t)=>{if(rp(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 Sr(e.common.issues);return this._error=n,this._error}}};function Fe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(o,l)=>{var c,u;const{message:d}=e;return o.code==="invalid_enum_value"?{message:d??l.defaultError}:typeof l.data>"u"?{message:(c=d??r)!==null&&c!==void 0?c:l.defaultError}:o.code!=="invalid_type"?{message:l.defaultError}:{message:(u=d??n)!==null&&u!==void 0?u:l.defaultError}},description:a}}class Be{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)}get description(){return this._def.description}_getType(t){return mo(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:mo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Cn,ctx:{common:t.parent.common,data:t.data,parsedType:mo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(ap(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 r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const a={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:mo(t)},i=this._parseSync({data:t,path:a.path,parent:a});return f5(a,i)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={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:mo(t)},a=this._parse({data:t,path:r.path,parent:r}),i=await(ap(a)?a:Promise.resolve(a));return f5(r,i)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,i)=>{const o=t(a),l=()=>i.addIssue({code:ae.custom,...r(a)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(l(),!1)):o?!0:(l(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new Aa({schema:this,typeName:Ae.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Qa.create(this,this._def)}nullable(){return Vo.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return xa.create(this,this._def)}promise(){return Kc.create(this,this._def)}or(t){return lp.create([this,t],this._def)}and(t){return cp.create(this,t,this._def)}transform(t){return new Aa({...Fe(this._def),schema:this,typeName:Ae.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new fp({...Fe(this._def),innerType:this,defaultValue:n,typeName:Ae.ZodDefault})}brand(){return new Kj({typeName:Ae.ZodBranded,type:this,...Fe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new hp({...Fe(this._def),innerType:this,catchValue:n,typeName:Ae.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Vp.create(this,t)}readonly(){return gp.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const k5e=/^c[^\s-]{8,}
vendor: 43,289 bytes, line 2113
2113$/i,S5e=/^[0-9a-z]+$/,j5e=/^[0-9A-HJKMNP-TV-Z]{26}$/,P5e=/^[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,A5e=/^[a-z0-9_-]{21}$/i,_5e=/^[-+]?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)?)??$/,N5e=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,C5e="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Wb;const E5e=/^(?:(?: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])$/,T5e=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,O5e=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,fD="((\\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])))",I5e=new RegExp(`^${fD}$`);function hD(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function M5e(e){return new RegExp(`^${hD(e)}$`)}function gD(e){let t=`${fD}T${hD(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 $5e(e,t){return!!((t==="v4"||!t)&&E5e.test(e)||(t==="v6"||!t)&&T5e.test(e))}class pa extends Be{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==fe.string){const i=this._getOrReturnCtx(t);return me(i,{code:ae.invalid_type,expected:fe.string,received:i.parsedType}),Ne}const r=new Cn;let a;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(a=this._getOrReturnCtx(t,a),me(a,{code:ae.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(a=this._getOrReturnCtx(t,a),me(a,{code:ae.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,l=t.data.length<i.value;(o||l)&&(a=this._getOrReturnCtx(t,a),o?me(a,{code:ae.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):l&&me(a,{code:ae.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")N5e.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"email",code:ae.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")Wb||(Wb=new RegExp(C5e,"u")),Wb.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"emoji",code:ae.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")P5e.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"uuid",code:ae.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")A5e.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"nanoid",code:ae.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")k5e.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"cuid",code:ae.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")S5e.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"cuid2",code:ae.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")j5e.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"ulid",code:ae.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),me(a,{validation:"url",code:ae.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"regex",code:ae.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(t,a),me(a,{code:ae.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(a=this._getOrReturnCtx(t,a),me(a,{code:ae.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(a=this._getOrReturnCtx(t,a),me(a,{code:ae.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?gD(i).test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{code:ae.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?I5e.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{code:ae.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?M5e(i).test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{code:ae.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?_5e.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"duration",code:ae.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?$5e(t.data,i.version)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"ip",code:ae.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?O5e.test(t.data)||(a=this._getOrReturnCtx(t,a),me(a,{validation:"base64",code:ae.invalid_string,message:i.message}),r.dirty()):He.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:ae.invalid_string,...je.errToObj(r)})}_addCheck(t){return new pa({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...je.errToObj(t)})}url(t){return this._addCheck({kind:"url",...je.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...je.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...je.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...je.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...je.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...je.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...je.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...je.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...je.errToObj(t)})}datetime(t){var n,r;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:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...je.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,...je.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...je.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...je.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...je.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...je.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...je.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...je.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...je.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...je.errToObj(n)})}nonempty(t){return this.min(1,je.errToObj(t))}trim(){return new pa({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new pa({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new pa({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}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}}pa.create=e=>{var t;return new pa({checks:[],typeName:Ae.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Fe(e)})};function F5e(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,i=parseInt(e.toFixed(a).replace(".","")),o=parseInt(t.toFixed(a).replace(".",""));return i%o/Math.pow(10,a)}class qo extends Be{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)!==fe.number){const i=this._getOrReturnCtx(t);return me(i,{code:ae.invalid_type,expected:fe.number,received:i.parsedType}),Ne}let r;const a=new Cn;for(const i of this._def.checks)i.kind==="int"?He.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),me(r,{code:ae.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),me(r,{code:ae.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),me(r,{code:ae.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?F5e(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),me(r,{code:ae.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),me(r,{code:ae.not_finite,message:i.message}),a.dirty()):He.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,je.toString(n))}gt(t,n){return this.setLimit("min",t,!1,je.toString(n))}lte(t,n){return this.setLimit("max",t,!0,je.toString(n))}lt(t,n){return this.setLimit("max",t,!1,je.toString(n))}setLimit(t,n,r,a){return new qo({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:je.toString(a)}]})}_addCheck(t){return new qo({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:je.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:je.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:je.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:je.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:je.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:je.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:je.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:je.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:je.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"&&He.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}qo.create=e=>new qo({checks:[],typeName:Ae.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Fe(e)});class Uo extends Be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==fe.bigint){const i=this._getOrReturnCtx(t);return me(i,{code:ae.invalid_type,expected:fe.bigint,received:i.parsedType}),Ne}let r;const a=new Cn;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),me(r,{code:ae.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),me(r,{code:ae.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),me(r,{code:ae.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):He.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,je.toString(n))}gt(t,n){return this.setLimit("min",t,!1,je.toString(n))}lte(t,n){return this.setLimit("max",t,!0,je.toString(n))}lt(t,n){return this.setLimit("max",t,!1,je.toString(n))}setLimit(t,n,r,a){return new Uo({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:je.toString(a)}]})}_addCheck(t){return new Uo({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:je.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:je.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:je.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:je.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:je.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}}Uo.create=e=>{var t;return new Uo({checks:[],typeName:Ae.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Fe(e)})};class ip extends Be{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==fe.boolean){const r=this._getOrReturnCtx(t);return me(r,{code:ae.invalid_type,expected:fe.boolean,received:r.parsedType}),Ne}return Wn(t.data)}}ip.create=e=>new ip({typeName:Ae.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Fe(e)});class Js extends Be{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==fe.date){const i=this._getOrReturnCtx(t);return me(i,{code:ae.invalid_type,expected:fe.date,received:i.parsedType}),Ne}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return me(i,{code:ae.invalid_date}),Ne}const r=new Cn;let a;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(a=this._getOrReturnCtx(t,a),me(a,{code:ae.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(a=this._getOrReturnCtx(t,a),me(a,{code:ae.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):He.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Js({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:je.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:je.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}}Js.create=e=>new Js({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Ae.ZodDate,...Fe(e)});class pv extends Be{_parse(t){if(this._getType(t)!==fe.symbol){const r=this._getOrReturnCtx(t);return me(r,{code:ae.invalid_type,expected:fe.symbol,received:r.parsedType}),Ne}return Wn(t.data)}}pv.create=e=>new pv({typeName:Ae.ZodSymbol,...Fe(e)});class op extends Be{_parse(t){if(this._getType(t)!==fe.undefined){const r=this._getOrReturnCtx(t);return me(r,{code:ae.invalid_type,expected:fe.undefined,received:r.parsedType}),Ne}return Wn(t.data)}}op.create=e=>new op({typeName:Ae.ZodUndefined,...Fe(e)});class sp extends Be{_parse(t){if(this._getType(t)!==fe.null){const r=this._getOrReturnCtx(t);return me(r,{code:ae.invalid_type,expected:fe.null,received:r.parsedType}),Ne}return Wn(t.data)}}sp.create=e=>new sp({typeName:Ae.ZodNull,...Fe(e)});class Hc extends Be{constructor(){super(...arguments),this._any=!0}_parse(t){return Wn(t.data)}}Hc.create=e=>new Hc({typeName:Ae.ZodAny,...Fe(e)});class Ds extends Be{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Wn(t.data)}}Ds.create=e=>new Ds({typeName:Ae.ZodUnknown,...Fe(e)});class qi extends Be{_parse(t){const n=this._getOrReturnCtx(t);return me(n,{code:ae.invalid_type,expected:fe.never,received:n.parsedType}),Ne}}qi.create=e=>new qi({typeName:Ae.ZodNever,...Fe(e)});class fv extends Be{_parse(t){if(this._getType(t)!==fe.undefined){const r=this._getOrReturnCtx(t);return me(r,{code:ae.invalid_type,expected:fe.void,received:r.parsedType}),Ne}return Wn(t.data)}}fv.create=e=>new fv({typeName:Ae.ZodVoid,...Fe(e)});class xa extends Be{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==fe.array)return me(n,{code:ae.invalid_type,expected:fe.array,received:n.parsedType}),Ne;if(a.exactLength!==null){const o=n.data.length>a.exactLength.value,l=n.data.length<a.exactLength.value;(o||l)&&(me(n,{code:o?ae.too_big:ae.too_small,minimum:l?a.exactLength.value:void 0,maximum:o?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(me(n,{code:ae.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(me(n,{code:ae.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,l)=>a.type._parseAsync(new Ja(n,o,n.path,l)))).then(o=>Cn.mergeArray(r,o));const i=[...n.data].map((o,l)=>a.type._parseSync(new Ja(n,o,n.path,l)));return Cn.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new xa({...this._def,minLength:{value:t,message:je.toString(n)}})}max(t,n){return new xa({...this._def,maxLength:{value:t,message:je.toString(n)}})}length(t,n){return new xa({...this._def,exactLength:{value:t,message:je.toString(n)}})}nonempty(t){return this.min(1,t)}}xa.create=(e,t)=>new xa({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ae.ZodArray,...Fe(t)});function Sl(e){if(e instanceof jt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Qa.create(Sl(r))}return new jt({...e._def,shape:()=>t})}else return e instanceof xa?new xa({...e._def,type:Sl(e.element)}):e instanceof Qa?Qa.create(Sl(e.unwrap())):e instanceof Vo?Vo.create(Sl(e.unwrap())):e instanceof ei?ei.create(e.items.map(t=>Sl(t))):e}class jt extends Be{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=He.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==fe.object){const u=this._getOrReturnCtx(t);return me(u,{code:ae.invalid_type,expected:fe.object,received:u.parsedType}),Ne}const{status:r,ctx:a}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),l=[];if(!(this._def.catchall instanceof qi&&this._def.unknownKeys==="strip"))for(const u in a.data)o.includes(u)||l.push(u);const c=[];for(const u of o){const d=i[u],m=a.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new Ja(a,m,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof qi){const u=this._def.unknownKeys;if(u==="passthrough")for(const d of l)c.push({key:{status:"valid",value:d},value:{status:"valid",value:a.data[d]}});else if(u==="strict")l.length>0&&(me(a,{code:ae.unrecognized_keys,keys:l}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const d of l){const m=a.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new Ja(a,m,a.path,d)),alwaysSet:d in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const u=[];for(const d of c){const m=await d.key,p=await d.value;u.push({key:m,value:p,alwaysSet:d.alwaysSet})}return u}).then(u=>Cn.mergeObjectSync(r,u)):Cn.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return je.errToObj,new jt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,i,o,l;const c=(o=(i=(a=this._def).errorMap)===null||i===void 0?void 0:i.call(a,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(l=je.errToObj(t).message)!==null&&l!==void 0?l:c}:{message:c}}}:{}})}strip(){return new jt({...this._def,unknownKeys:"strip"})}passthrough(){return new jt({...this._def,unknownKeys:"passthrough"})}extend(t){return new jt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new jt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ae.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new jt({...this._def,catchall:t})}pick(t){const n={};return He.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new jt({...this._def,shape:()=>n})}omit(t){const n={};return He.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new jt({...this._def,shape:()=>n})}deepPartial(){return Sl(this)}partial(t){const n={};return He.objectKeys(this.shape).forEach(r=>{const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}),new jt({...this._def,shape:()=>n})}required(t){const n={};return He.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Qa;)i=i._def.innerType;n[r]=i}}),new jt({...this._def,shape:()=>n})}keyof(){return vD(He.objectKeys(this.shape))}}jt.create=(e,t)=>new jt({shape:()=>e,unknownKeys:"strip",catchall:qi.create(),typeName:Ae.ZodObject,...Fe(t)});jt.strictCreate=(e,t)=>new jt({shape:()=>e,unknownKeys:"strict",catchall:qi.create(),typeName:Ae.ZodObject,...Fe(t)});jt.lazycreate=(e,t)=>new jt({shape:e,unknownKeys:"strip",catchall:qi.create(),typeName:Ae.ZodObject,...Fe(t)});class lp extends Be{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(i){for(const l of i)if(l.result.status==="valid")return l.result;for(const l of i)if(l.result.status==="dirty")return n.common.issues.push(...l.ctx.common.issues),l.result;const o=i.map(l=>new Sr(l.ctx.common.issues));return me(n,{code:ae.invalid_union,unionErrors:o}),Ne}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(a);{let i;const o=[];for(const c of r){const u={...n,common:{...n.common,issues:[]},parent:null},d=c._parseSync({data:n.data,path:n.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!i&&(i={result:d,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const l=o.map(c=>new Sr(c));return me(n,{code:ae.invalid_union,unionErrors:l}),Ne}}get options(){return this._def.options}}lp.create=(e,t)=>new lp({options:e,typeName:Ae.ZodUnion,...Fe(t)});const xi=e=>e instanceof dp?xi(e.schema):e instanceof Aa?xi(e.innerType()):e instanceof mp?[e.value]:e instanceof Wo?e.options:e instanceof pp?He.objectValues(e.enum):e instanceof fp?xi(e._def.innerType):e instanceof op?[void 0]:e instanceof sp?[null]:e instanceof Qa?[void 0,...xi(e.unwrap())]:e instanceof Vo?[null,...xi(e.unwrap())]:e instanceof Kj||e instanceof gp?xi(e.unwrap()):e instanceof hp?xi(e._def.innerType):[];class sx extends Be{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==fe.object)return me(n,{code:ae.invalid_type,expected:fe.object,received:n.parsedType}),Ne;const r=this.discriminator,a=n.data[r],i=this.optionsMap.get(a);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(me(n,{code:ae.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Ne)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const a=new Map;for(const i of n){const o=xi(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const l of o){if(a.has(l))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(l)}`);a.set(l,i)}}return new sx({typeName:Ae.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a,...Fe(r)})}}function j2(e,t){const n=mo(e),r=mo(t);if(e===t)return{valid:!0,data:e};if(n===fe.object&&r===fe.object){const a=He.objectKeys(t),i=He.objectKeys(e).filter(l=>a.indexOf(l)!==-1),o={...e,...t};for(const l of i){const c=j2(e[l],t[l]);if(!c.valid)return{valid:!1};o[l]=c.data}return{valid:!0,data:o}}else if(n===fe.array&&r===fe.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let i=0;i<e.length;i++){const o=e[i],l=t[i],c=j2(o,l);if(!c.valid)return{valid:!1};a.push(c.data)}return{valid:!0,data:a}}else return n===fe.date&&r===fe.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class cp extends Be{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(i,o)=>{if(k2(i)||k2(o))return Ne;const l=j2(i.value,o.value);return l.valid?((S2(i)||S2(o))&&n.dirty(),{status:n.value,value:l.data}):(me(r,{code:ae.invalid_intersection_types}),Ne)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,o])=>a(i,o)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}cp.create=(e,t,n)=>new cp({left:e,right:t,typeName:Ae.ZodIntersection,...Fe(n)});class ei extends Be{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==fe.array)return me(r,{code:ae.invalid_type,expected:fe.array,received:r.parsedType}),Ne;if(r.data.length<this._def.items.length)return me(r,{code:ae.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ne;!this._def.rest&&r.data.length>this._def.items.length&&(me(r,{code:ae.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,l)=>{const c=this._def.items[l]||this._def.rest;return c?c._parse(new Ja(r,o,r.path,l)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>Cn.mergeArray(n,o)):Cn.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new ei({...this._def,rest:t})}}ei.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ei({items:e,typeName:Ae.ZodTuple,rest:null,...Fe(t)})};class up extends Be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==fe.object)return me(r,{code:ae.invalid_type,expected:fe.object,received:r.parsedType}),Ne;const a=[],i=this._def.keyType,o=this._def.valueType;for(const l in r.data)a.push({key:i._parse(new Ja(r,l,r.path,l)),value:o._parse(new Ja(r,r.data[l],r.path,l)),alwaysSet:l in r.data});return r.common.async?Cn.mergeObjectAsync(n,a):Cn.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Be?new up({keyType:t,valueType:n,typeName:Ae.ZodRecord,...Fe(r)}):new up({keyType:pa.create(),valueType:t,typeName:Ae.ZodRecord,...Fe(n)})}}class hv extends Be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==fe.map)return me(r,{code:ae.invalid_type,expected:fe.map,received:r.parsedType}),Ne;const a=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([l,c],u)=>({key:a._parse(new Ja(r,l,r.path,[u,"key"])),value:i._parse(new Ja(r,c,r.path,[u,"value"]))}));if(r.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const c of o){const u=await c.key,d=await c.value;if(u.status==="aborted"||d.status==="aborted")return Ne;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),l.set(u.value,d.value)}return{status:n.value,value:l}})}else{const l=new Map;for(const c of o){const u=c.key,d=c.value;if(u.status==="aborted"||d.status==="aborted")return Ne;(u.status==="dirty"||d.status==="dirty")&&n.dirty(),l.set(u.value,d.value)}return{status:n.value,value:l}}}}hv.create=(e,t,n)=>new hv({valueType:t,keyType:e,typeName:Ae.ZodMap,...Fe(n)});class el extends Be{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==fe.set)return me(r,{code:ae.invalid_type,expected:fe.set,received:r.parsedType}),Ne;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(me(r,{code:ae.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(me(r,{code:ae.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const i=this._def.valueType;function o(c){const u=new Set;for(const d of c){if(d.status==="aborted")return Ne;d.status==="dirty"&&n.dirty(),u.add(d.value)}return{status:n.value,value:u}}const l=[...r.data.values()].map((c,u)=>i._parse(new Ja(r,c,r.path,u)));return r.common.async?Promise.all(l).then(c=>o(c)):o(l)}min(t,n){return new el({...this._def,minSize:{value:t,message:je.toString(n)}})}max(t,n){return new el({...this._def,maxSize:{value:t,message:je.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}el.create=(e,t)=>new el({valueType:e,minSize:null,maxSize:null,typeName:Ae.ZodSet,...Fe(t)});class Jl extends Be{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==fe.function)return me(n,{code:ae.invalid_type,expected:fe.function,received:n.parsedType}),Ne;function r(l,c){return dv({data:l,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,uv(),Vc].filter(u=>!!u),issueData:{code:ae.invalid_arguments,argumentsError:c}})}function a(l,c){return dv({data:l,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,uv(),Vc].filter(u=>!!u),issueData:{code:ae.invalid_return_type,returnTypeError:c}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof Kc){const l=this;return Wn(async function(...c){const u=new Sr([]),d=await l._def.args.parseAsync(c,i).catch(f=>{throw u.addIssue(r(c,f)),u}),m=await Reflect.apply(o,this,d);return await l._def.returns._def.type.parseAsync(m,i).catch(f=>{throw u.addIssue(a(m,f)),u})})}else{const l=this;return Wn(function(...c){const u=l._def.args.safeParse(c,i);if(!u.success)throw new Sr([r(c,u.error)]);const d=Reflect.apply(o,this,u.data),m=l._def.returns.safeParse(d,i);if(!m.success)throw new Sr([a(d,m.error)]);return m.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Jl({...this._def,args:ei.create(t).rest(Ds.create())})}returns(t){return new Jl({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Jl({args:t||ei.create([]).rest(Ds.create()),returns:n||Ds.create(),typeName:Ae.ZodFunction,...Fe(r)})}}class dp extends Be{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})}}dp.create=(e,t)=>new dp({getter:e,typeName:Ae.ZodLazy,...Fe(t)});class mp extends Be{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return me(n,{received:n.data,code:ae.invalid_literal,expected:this._def.value}),Ne}return{status:"valid",value:t.data}}get value(){return this._def.value}}mp.create=(e,t)=>new mp({value:e,typeName:Ae.ZodLiteral,...Fe(t)});function vD(e,t){return new Wo({values:e,typeName:Ae.ZodEnum,...Fe(t)})}class Wo extends Be{constructor(){super(...arguments),fd.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return me(n,{expected:He.joinValues(r),received:n.parsedType,code:ae.invalid_type}),Ne}if(mv(this,fd)||pD(this,fd,new Set(this._def.values)),!mv(this,fd).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return me(n,{received:n.data,code:ae.invalid_enum_value,options:r}),Ne}return Wn(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 Wo.create(t,{...this._def,...n})}exclude(t,n=this._def){return Wo.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}fd=new WeakMap;Wo.create=vD;class pp extends Be{constructor(){super(...arguments),hd.set(this,void 0)}_parse(t){const n=He.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==fe.string&&r.parsedType!==fe.number){const a=He.objectValues(n);return me(r,{expected:He.joinValues(a),received:r.parsedType,code:ae.invalid_type}),Ne}if(mv(this,hd)||pD(this,hd,new Set(He.getValidEnumValues(this._def.values))),!mv(this,hd).has(t.data)){const a=He.objectValues(n);return me(r,{received:r.data,code:ae.invalid_enum_value,options:a}),Ne}return Wn(t.data)}get enum(){return this._def.values}}hd=new WeakMap;pp.create=(e,t)=>new pp({values:e,typeName:Ae.ZodNativeEnum,...Fe(t)});class Kc extends Be{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==fe.promise&&n.common.async===!1)return me(n,{code:ae.invalid_type,expected:fe.promise,received:n.parsedType}),Ne;const r=n.parsedType===fe.promise?n.data:Promise.resolve(n.data);return Wn(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Kc.create=(e,t)=>new Kc({type:e,typeName:Ae.ZodPromise,...Fe(t)});class Aa extends Be{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ae.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=this._def.effect||null,i={addIssue:o=>{me(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){const o=a.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async l=>{if(n.value==="aborted")return Ne;const c=await this._def.schema._parseAsync({data:l,path:r.path,parent:r});return c.status==="aborted"?Ne:c.status==="dirty"||n.value==="dirty"?Ll(c.value):c});{if(n.value==="aborted")return Ne;const l=this._def.schema._parseSync({data:o,path:r.path,parent:r});return l.status==="aborted"?Ne:l.status==="dirty"||n.value==="dirty"?Ll(l.value):l}}if(a.type==="refinement"){const o=l=>{const c=a.refinement(l,i);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return l.status==="aborted"?Ne:(l.status==="dirty"&&n.dirty(),o(l.value),{status:n.value,value:l.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>l.status==="aborted"?Ne:(l.status==="dirty"&&n.dirty(),o(l.value).then(()=>({status:n.value,value:l.value}))))}if(a.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!rp(o))return o;const l=a.transform(o.value,i);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:l}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>rp(o)?Promise.resolve(a.transform(o.value,i)).then(l=>({status:n.value,value:l})):o);He.assertNever(a)}}Aa.create=(e,t,n)=>new Aa({schema:e,typeName:Ae.ZodEffects,effect:t,...Fe(n)});Aa.createWithPreprocess=(e,t,n)=>new Aa({schema:t,effect:{type:"preprocess",transform:e},typeName:Ae.ZodEffects,...Fe(n)});class Qa extends Be{_parse(t){return this._getType(t)===fe.undefined?Wn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Qa.create=(e,t)=>new Qa({innerType:e,typeName:Ae.ZodOptional,...Fe(t)});class Vo extends Be{_parse(t){return this._getType(t)===fe.null?Wn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Vo.create=(e,t)=>new Vo({innerType:e,typeName:Ae.ZodNullable,...Fe(t)});class fp extends Be{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===fe.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}fp.create=(e,t)=>new fp({innerType:e,typeName:Ae.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Fe(t)});class hp extends Be{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return ap(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Sr(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Sr(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}hp.create=(e,t)=>new hp({innerType:e,typeName:Ae.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Fe(t)});class gv extends Be{_parse(t){if(this._getType(t)!==fe.nan){const r=this._getOrReturnCtx(t);return me(r,{code:ae.invalid_type,expected:fe.nan,received:r.parsedType}),Ne}return{status:"valid",value:t.data}}}gv.create=e=>new gv({typeName:Ae.ZodNaN,...Fe(e)});const R5e=Symbol("zod_brand");class Kj extends Be{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Vp extends Be{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?Ne:i.status==="dirty"?(n.dirty(),Ll(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Ne:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new Vp({in:t,out:n,typeName:Ae.ZodPipeline})}}class gp extends Be{_parse(t){const n=this._def.innerType._parse(t),r=a=>(rp(a)&&(a.value=Object.freeze(a.value)),a);return ap(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}gp.create=(e,t)=>new gp({innerType:e,typeName:Ae.ZodReadonly,...Fe(t)});function yD(e,t={},n){return e?Hc.create().superRefine((r,a)=>{var i,o;if(!e(r)){const l=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,c=(o=(i=l.fatal)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:!0,u=typeof l=="string"?{message:l}:l;a.addIssue({code:"custom",...u,fatal:c})}}):Hc.create()}const D5e={object:jt.lazycreate};var Ae;(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"})(Ae||(Ae={}));const L5e=(e,t={message:`Input not instance of ${e.name}`})=>yD(n=>n instanceof e,t),xD=pa.create,bD=qo.create,z5e=gv.create,B5e=Uo.create,wD=ip.create,q5e=Js.create,U5e=pv.create,W5e=op.create,V5e=sp.create,H5e=Hc.create,K5e=Ds.create,G5e=qi.create,Q5e=fv.create,Y5e=xa.create,Z5e=jt.create,X5e=jt.strictCreate,J5e=lp.create,eTe=sx.create,tTe=cp.create,nTe=ei.create,rTe=up.create,aTe=hv.create,iTe=el.create,oTe=Jl.create,sTe=dp.create,lTe=mp.create,cTe=Wo.create,uTe=pp.create,dTe=Kc.create,h5=Aa.create,mTe=Qa.create,pTe=Vo.create,fTe=Aa.createWithPreprocess,hTe=Vp.create,gTe=()=>xD().optional(),vTe=()=>bD().optional(),yTe=()=>wD().optional(),xTe={string:e=>pa.create({...e,coerce:!0}),number:e=>qo.create({...e,coerce:!0}),boolean:e=>ip.create({...e,coerce:!0}),bigint:e=>Uo.create({...e,coerce:!0}),date:e=>Js.create({...e,coerce:!0})},bTe=Ne;var zn=Object.freeze({__proto__:null,defaultErrorMap:Vc,setErrorMap:b5e,getErrorMap:uv,makeIssue:dv,EMPTY_PATH:w5e,addIssueToContext:me,ParseStatus:Cn,INVALID:Ne,DIRTY:Ll,OK:Wn,isAborted:k2,isDirty:S2,isValid:rp,isA
2113sync:ap,get util(){return He},get objectUtil(){return w2},ZodParsedType:fe,getParsedType:mo,ZodType:Be,datetimeRegex:gD,ZodString:pa,ZodNumber:qo,ZodBigInt:Uo,ZodBoolean:ip,ZodDate:Js,ZodSymbol:pv,ZodUndefined:op,ZodNull:sp,ZodAny:Hc,ZodUnknown:Ds,ZodNever:qi,ZodVoid:fv,ZodArray:xa,ZodObject:jt,ZodUnion:lp,ZodDiscriminatedUnion:sx,ZodIntersection:cp,ZodTuple:ei,ZodRecord:up,ZodMap:hv,ZodSet:el,ZodFunction:Jl,ZodLazy:dp,ZodLiteral:mp,ZodEnum:Wo,ZodNativeEnum:pp,ZodPromise:Kc,ZodEffects:Aa,ZodTransformer:Aa,ZodOptional:Qa,ZodNullable:Vo,ZodDefault:fp,ZodCatch:hp,ZodNaN:gv,BRAND:R5e,ZodBranded:Kj,ZodPipeline:Vp,ZodReadonly:gp,custom:yD,Schema:Be,ZodSchema:Be,late:D5e,get ZodFirstPartyTypeKind(){return Ae},coerce:xTe,any:H5e,array:Y5e,bigint:B5e,boolean:wD,date:q5e,discriminatedUnion:eTe,effect:h5,enum:cTe,function:oTe,instanceof:L5e,intersection:tTe,lazy:sTe,literal:lTe,map:aTe,nan:z5e,nativeEnum:uTe,never:G5e,null:V5e,nullable:pTe,number:bD,object:Z5e,oboolean:yTe,onumber:vTe,optional:mTe,ostring:gTe,pipeline:hTe,preprocess:fTe,promise:dTe,record:rTe,set:iTe,strictObject:X5e,string:xD,symbol:U5e,transformer:h5,tuple:nTe,undefined:W5e,union:J5e,unknown:K5e,void:Q5e,NEVER:bTe,ZodIssueCode:ae,quotelessJson:x5e,ZodError:Sr});const wTe=zn.object({name:zn.string().trim().min(1).max(100),email:zn.string().trim().email().max(255),[Pa]:zn.string().max(0).optional().or(zn.literal(""))}),P2=({kind:e,mode:t="gate",title:n,slug:r,id:a,pdfUrl:i,onUnlock:o})=>{const{language:l}=be(),c=wt(),{toast:u}=Fv(),[d,m]=S.useState(!1),[p,f]=S.useState(!1),{register:g,handleSubmit:h,formState:{errors:v}}=rx({resolver:Hj(wTe)}),y=l==="pt"?{title:t==="resend"?"Reenviar PDF por e-mail":"Conteúdo exclusivo",subtitle:t==="resend"?"Confirme seu nome e e-mail e reenviaremos o PDF na hora":"Para receber este conteúdo, deixe seu nome e email",name:"Nome",email:"Email",cta:t==="resend"?"Reenviar por e-mail":"Liberar conteúdo",sending:"Enviando...",successTitle:t==="resend"?"PDF reenviado":"Tudo certo",successMsgBefore:"Obrigado! Já estamos enviando o material para o seu email. Ele deve chegar em alguns minutos â se não aparecer na caixa de entrada, dá uma olhadinha na pasta de ",successMsgStrong:"SPAM",successMsgAfter:".",successHelp:"Qualquer problema, ",successHelpLink:"entre em contato",successHelpTail:" que respondemos o mais rápido possÃvel.",error:"Não foi possÃvel enviar. Tente novamente",privacy:"Ao enviar, você concorda com nossa",privacyLink:"PolÃtica de Privacidade",invalidName:"Informe seu nome",invalidEmail:"Email inválido"}:{title:t==="resend"?"Resend PDF to my email":"Exclusive content",subtitle:t==="resend"?"Confirm your name and email and we will resend the PDF right away":"To receive this content, leave your name and email",name:"Name",email:"Email",cta:t==="resend"?"Resend to my email":"Unlock content",sending:"Sending...",successTitle:t==="resend"?"PDF resent":"All set",successMsgBefore:"Thanks! We're sending the material to your inbox right now. It should arrive in a few minutes â if you don't see it, please check your ",successMsgStrong:"Spam",successMsgAfter:" folder.",successHelp:"Any issues, ",successHelpLink:"get in touch",successHelpTail:" and we'll reply as soon as possible.",error:"Could not submit. Please try again",privacy:"By submitting, you agree to our",privacyLink:"Privacy Policy",invalidName:"Enter your name",invalidEmail:"Invalid email"},x=S.useCallback(async b=>{if(b[Pa]){f(!0);return}m(!0);try{const k=`https://infinity6.ai/${l}/${e==="research"?"i6-intelligence":"insights"}/${r}`,j=iu(),A=e==="research"?"[Lead Research]":"[Lead Insights]",P=e==="research"?"Research":"Insight",_=e==="research"?"lead-gate-research":"lead-gate-insight",N=[A,`${P}: ${n}`,`Slug: ${r}`,`ID: ${a||"-"}`,`URL: ${k}`,`Idioma: ${l}`,`Origem: ${_}`,"",ny(j)].join(` 2114`),C=ox({name:b.name,email:b.email,company:n,message:N,subscription:`${e}:${r}`,insight_id:a||"",reason:_,token:ix,...ry()},e==="research"?"lead-gate-research":"lead-gate-insight"),E=new FormData;if(Object.entries(C).forEach(([T,O])=>E.append(T,O)),await fetch(ax,{method:"POST",mode:"no-cors",body:E}),e==="research"?oa(ua.RESEARCH_UNLOCKED,{research_id:a,research_slug:r,language:l}):oa(ua.INSIGHT_DOWNLOAD_COMPLETED,{insight_id:a,insight_slug:r,language:l}),e==="research"&&t==="gate"&&o){try{localStorage.setItem(`i6_unlocked_research:${r}:${l}`,"1")}catch{}o();return}f(!0)}catch(w){console.error("LeadGateForm submit error:",w),u({title:y.error,variant:"destructive"})}finally{m(!1)}},[a,r,n,l,i,e,t,o,y.error,u]);return p?s.jsxs("div",{className:"my-10 p-8 md:p-10 rounded-2xl border border-[#F4845F]/30 bg-gradient-to-br from-white/5 to-[#F4845F]/5 backdrop-blur-sm text-center",children:[s.jsx("div",{className:"w-14 h-14 mx-auto mb-4 rounded-full bg-[#F4845F]/15 border border-[#F4845F]/30 flex items-center justify-center",children:s.jsx(Vv,{className:"w-7 h-7 text-[#F4845F]"})}),s.jsx("h2",{className:"text-2xl font-semibold text-white mb-2",children:y.successTitle}),s.jsxs("p",{className:"text-white/70 max-w-md mx-auto",children:[y.successMsgBefore,s.jsx("strong",{className:"text-white",children:y.successMsgStrong}),y.successMsgAfter]}),s.jsxs("p",{className:"text-white/70 max-w-md mx-auto mt-4",children:[y.successHelp,s.jsx(Ee,{to:c("/contact"),className:"text-[#F4845F] hover:underline",children:y.successHelpLink}
2114),y.successHelpTail]})]}):s.jsxs("div",{className:"my-10 p-8 md:p-10 rounded-2xl border border-[#F4845F]/30 bg-gradient-to-br from-white/5 to-[#F4845F]/5 backdrop-blur-sm",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[s.jsx("div",{className:"w-10 h-10 rounded-full bg-[#F4845F]/15 border border-[#F4845F]/30 flex items-center justify-center",children:s.jsx(DI,{className:"w-4 h-4 text-[#F4845F]"})}),s.jsx("h2",{className:"text-2xl font-semibold text-white",children:y.title})]}),s.jsx("p",{className:"text-white/70 mb-6",children:y.subtitle}),s.jsxs("form",{onSubmit:h(x),className:"space-y-4",noValidate:!0,children:[s.jsx("input",{type:"hidden",name:"insight_id",value:a??"",readOnly:!0}),s.jsxs("div",{"aria-hidden":"true",style:{position:"absolute",left:"-10000px",top:"auto",width:1,height:1,overflow:"hidden"},children:[s.jsx("label",{htmlFor:"lead-website",children:"Website"}),s.jsx("input",{id:"lead-website",type:"text",tabIndex:-1,autoComplete:"off",...g(Pa)})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(za,{htmlFor:"lead-name",className:"text-white/80",children:y.name}),s.jsx(Ti,{id:"lead-name",...g("name"),className:"bg-white/5 border-white/10 text-white placeholder:text-white/40 focus-visible:ring-[#F4845F]",disabled:d}),v.name&&s.jsx("p",{className:"text-xs text-red-400",children:y.invalidName})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(za,{htmlFor:"lead-email",className:"text-white/80",children:y.email}),s.jsx(Ti,{id:"lead-email",type:"email",...g("email"),className:"bg-white/5 border-white/10 text-white placeholder:text-white/40 focus-visible:ring-[#F4845F]",disabled:d}),v.email&&s.jsx("p",{className:"text-xs text-red-400",children:y.invalidEmail})]}),s.jsx(Dn,{type:"submit",disabled:d,className:"w-full bg-[#F4845F] hover:bg-[#F4845F]/90 text-white font-semibold border border-[#F4845F]/50 shadow-[0_0_20px_rgba(244,132,95,0.3)] hover:shadow-[0_0_30px_rgba(244,132,95,0.5)] transition-all",children:d?s.jsxs("span",{className:"inline-flex items-center gap-2",children:[s.jsx(Ok,{className:"w-4 h-4 animate-spin"})," ",y.sending]}):y.cta}),s.jsxs("p",{className:"text-xs text-white/50 text-center",children:[y.privacy," ",s.jsx(Ee,{to:c("/privacy-policy"),className:"text-[#F4845F] hover:underline",children:y.privacyLink})]})]})]})},kTe=zn.object({name:zn.string().trim().min(1).max(100),email:zn.string().trim().email().max(255),[Pa]:zn.string().max(0).optional().or(zn.literal(""))}),kD=({kind:e,title:t,slug:n,id:r,ctaText:a})=>{const{language:i}=be(),o=wt(),{toast:l}=Fv(),[c,u]=S.useState(!1),[d,m]=S.useState(!1),{register:p,handleSubmit:f,formState:{errors:g}}=rx({resolver:Hj(kTe)}),h=i==="pt"?{name:"Nome",email:"Email",cta:"Enviar",sending:"Enviando...",successTitle:"Tudo certo",successMsg:"Obrigado! Recebemos seu contato e em breve retornamos.",successHelp:"Qualquer dúvida, ",successHelpLink:"entre em contato",successHelpTail:".",error:"Não foi possÃvel enviar. Tente novamente",privacy:"Ao enviar, você concorda com nossa",privacyLink:"PolÃtica de Privacidade",invalidName:"Informe seu nome",invalidEmail:"Email inválido"}:{name:"Name",email:"Email",cta:"Send",sending:"Sending...",successTitle:"All set",successMsg:"Thanks! We got your message and will get back to you shortly.",successHelp:"Any questions, ",successHelpLink:"get in touch",successHelpTail:".",error:"Could not submit. Please try again",privacy:"By submitting, you agree to our",privacyLink:"Privacy Policy",invalidName:"Enter your name",invalidEmail:"Invalid email"},v=S.useCallback(async y=>{if(y[Pa]){m(!0);return}u(!0);try{const b=`https://infinity6.ai/${i}/${e==="research"?"i6-intelligence":"insights"}/${n}`,w=iu(),k=e==="research"?"[Lead Research CTA]":"[Lead Insights CTA]",j=e==="research"?"Research":"Insight",A=e==="research"?"article-cta-research":"article-cta-insight",P=[k,`${j}: ${t}`,`Slug: ${n}`,`ID: ${r||"-"}`,`URL: ${b}`,`Idioma: ${i}`,`Origem: ${A}`,"",ny(w)].join(` 2115`),_=ox({name:y.name,email:y.email,company:t,message:P,subscription:e==="research"?`research:${n}`:`blog:${n}`,insight_id:r||"",reason:A,token:ix,...ry()},e==="research"?"article-cta-research":"article-cta-insight"),N=new FormData;Object.entries(_).forEach(([C,E])=>N.append(C,E)),await fetch(ax,{method:"POST",mode:"no-cors",body:N}),oa(e==="research"?ua.RESEARCH_CTA_SUBMITTED:ua.INSIGHT_CTA_SUBMITTED,{[`${e}_id`]:r,[`${e}_slug`]:n,language:i}),m(!0)}catch(x){console.error("ArticleCTAForm submit error:",x),l({title:h.error,variant:"destructive"})}finally{u(!1)}},[r,n,t,i,e,h.error,l]);return d?s.jsxs("div",{className:"my-10 p-8 md:p-10 rounded-2xl border border-[#F4845F]/30 bg-gradient-to-br from-white/5 to-[#F4845F]/5 backdrop-blur-sm text-center",children:[s.jsx("div",{className:"w-14 h-14 mx-auto mb-4 rounded-full bg-[#F4845F]/15 border border-[#F4845F]/30 flex items-center justify-center",children:s.jsx(Vv,{className:"w-7 h-7 text-[#F4845F]"})}),s.jsx("h3",{className:"text-2xl font-semibold text-white mb-2",children:h.successTitle}),s.jsx("p",{className:"text-white/70 max-w-md mx-auto",children:h.successMsg}),s.jsxs("p",{className:"text-white/70 max-w-md mx-auto mt-4",children:[h.successHelp,s.jsx(Ee,{to:o("/contact"),className:"text-[#F4845F] hover:underline",children:h.successHelpLink}
2115),h.successHelpTail]})]}):s.jsxs("div",{className:"my-12 p-8 md:p-10 rounded-2xl border border-[#F4845F]/30 bg-gradient-to-br from-white/5 to-[#F4845F]/5 backdrop-blur-sm",children:[s.jsx("div",{className:"mb-6 text-white text-lg md:text-xl leading-relaxed [&_strong]:text-[#F4845F] [&_p]:mb-2 [&_p:last-child]:mb-0",children:s.jsx(Pu,{remarkPlugins:[Au],components:{a:({node:y,...x})=>s.jsx("a",{...x,target:"_blank",rel:"noopener noreferrer"})},children:a})}),s.jsxs("form",{onSubmit:f(v),className:"space-y-4",noValidate:!0,children:[s.jsxs("div",{"aria-hidden":"true",style:{position:"absolute",left:"-10000px",top:"auto",width:1,height:1,overflow:"hidden"},children:[s.jsx("label",{htmlFor:"cta-website",children:"Website"}),s.jsx("input",{id:"cta-website",type:"text",tabIndex:-1,autoComplete:"off",...p(Pa)})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(za,{htmlFor:"cta-name",className:"text-white/80",children:h.name}),s.jsx(Ti,{id:"cta-name",...p("name"),className:"bg-white/5 border-white/10 text-white placeholder:text-white/40 focus-visible:ring-[#F4845F]",disabled:c}),g.name&&s.jsx("p",{className:"text-xs text-red-400",children:h.invalidName})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(za,{htmlFor:"cta-email",className:"text-white/80",children:h.email}),s.jsx(Ti,{id:"cta-email",type:"email",...p("email"),className:"bg-white/5 border-white/10 text-white placeholder:text-white/40 focus-visible:ring-[#F4845F]",disabled:c}),g.email&&s.jsx("p",{className:"text-xs text-red-400",children:h.invalidEmail})]})]}),s.jsx(Dn,{type:"submit",disabled:c,className:"w-full bg-[#F4845F] hover:bg-[#F4845F]/90 text-white font-semibold border border-[#F4845F]/50 shadow-[0_0_20px_rgba(244,132,95,0.3)] hover:shadow-[0_0_30px_rgba(244,132,95,0.5)] transition-all",children:c?s.jsxs("span",{className:"inline-flex items-center gap-2",children:[s.jsx(Ok,{className:"w-4 h-4 animate-spin"})," ",h.sending]}):s.jsxs("span",{className:"inline-flex items-center gap-2",children:[s.jsx(Ap,{className:"w-4 h-4"})," ",h.cta]})}),s.jsxs("p",{className:"text-xs text-white/50 text-center",children:[h.privacy," ",s.jsx(Ee,{to:o("/privacy-policy"),className:"text-[#F4845F] hover:underline",children:h.privacyLink})]})]})]})},ui="https://infinity6.ai",A2=()=>{const{slug:e}=Wi(),{language:t}=be(),n=wt(),r=hn(),a=cD(e||""),i=r.pathname.includes("/i6-intelligence/"),o=r.pathname.includes("/i6-blog/"),l=!!a&&a.type==="i6 Article",c=!!a&&a.type==="i6 eBook",u=o?"/i6-blog":i?"/i6-intelligence":"/insights",d=t==="pt"?o?"Voltar para o Blog":i?"Voltar para i6 Research":"Voltar para Insights":o?"Back to Blog":i?"Back to i6 Research":"Back to Insights";if(S.useEffect(()=>{try{localStorage.getItem("i6_unlocked_insights")!==null&&localStorage.removeItem("i6_unlocked_insights")}catch{}},[]),S.useEffect(()=>{a&&!a.gated&&a.type!=="i6 Article"&&a.external_url&&window.open(a.external_url,"_blank","noopener,noreferrer")},[a]),!a)return s.jsx(Rn,{to:n(u),replace:!0});if(l&&!o)return s.jsx(Rn,{to:n(`/i6-blog/${a.slug}`),replace:!0});if(c&&!i)return s.jsx(Rn,{to:n(`/i6-intelligence/${a.slug}`),replace:!0});if(!l&&!c&&(i||o))return s.jsx(Rn,{to:n(`/insights/${a.slug}`),replace:!0});if(a.type!=="i6 Article"&&!a.gated)return a.external_url?s.jsxs("section",{className:"container mx-auto px-6 pt-32 pb-20 max-w-2xl text-center",children:[s.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-white mb-4",children:a.title}),s.jsx("p",{className:"text-white/70 mb-8",children:t==="pt"?"Este conteúdo está hospedado em outro site. Abrimos em uma nova aba â se nada aconteceu, seu navegador pode ter bloqueado o popup.":"This content is hosted on another site. We opened it in a new tab â if nothing happened, your browser may have blocked the popup."}),s.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-3",children:[s.jsx(Dn,{asChild:!0,className:"bg-[#F4845F] hover:bg-[#F4845F]/90 text-white shadow-[0_0_20px_rgba(244,132,95,0.3)]",children:s.jsx("a",{href:a.external_url,target:"_blank",rel:"noopener noreferrer",children:t==="pt"?"Abrir em nova aba":"Open in new tab"})}),s.jsxs(Ee,{to:n(u),className:"inline-flex items-center gap-2 text-sm text-white/60 hover:text-[#F4845F] transition-colors",children:[s.jsx(Ws,{size:16})," ",d]})]})]}):s.jsx(Rn,{to:n(u),replace:!0});const m=Nu(a.cover_image),p=l?"i6-blog":c?"i6-intelligence":"insights",f=`${ui}/${t}/${p}/${a.slug}`,g=a.gated===!0,h=a.asset_url?a.asset_url.startsWith("http")?a.asset_url:ja(a.asset_url.replace(/^\//,"")):null;return s.jsxs(s.Fragment,{children:[s.jsxs(Na,{children:[s.jsx("html",{lang:t==="pt"?"pt-BR":"en"}),s.jsx("title",{children:`${a.title} | infinity6`}),s.jsx("meta",{name:"description",content:a.excerpt}),s.jsx("link",{rel:"canonical",href:f}),s.jsx("link",{rel:"alternate",hrefLang:"en",href:`${ui}/en/${p}/${a.slug}`}),s.jsx("link",{rel:"alternate",hrefLang:"pt-BR",href:`${ui}/pt/${p}/${a.slug}`}),s.jsx("link",{rel:"alternate",hrefLang:"x-default",href:`${ui}/en/${p}/${a.slug}`}),s.jsx("meta",{property:"og:type",content:"article"}),s.jsx("meta",{property:"og:title",content:a.title}),s.jsx("meta",{property:"og:description",content:a.excerpt}),s.jsx("meta",{property:"og:url",content:f}),m&&s.jsx("meta",{property:"og:image",content:m.startsWith("http")?m:`${ui}${m}`}),s.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Article",headline:a.title,de
2115scription:a.excerpt,datePublished:a.date,author:{"@type":"Organization",name:"infinity6"},publisher:{"@type":"Organization",name:"infinity6",logo:{"@type":"ImageObject",url:`${ui}/lovable-uploads/0fce52e4-a161-4d37-b3e4-f23f093b9b75.png`}},mainEntityOfPage:f,...m?{image:m.startsWith("http")?m:`${ui}${m}`}:{}})}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${ui}/${t}`},{"@type":"ListItem",position:2,name:o?"i6 Blog":i?"i6 Research":"Insights",item:`${ui}/${t}/${p}`},{"@type":"ListItem",position:3,name:a.title,item:f}]})})]}),s.jsxs("article",{className:"container mx-auto px-6 pt-32 pb-20 max-w-3xl",children:[s.jsxs(Ee,{to:n(u),className:"inline-flex items-center gap-2 text-sm text-white/60 hover:text-[#F4845F] mb-8 transition-colors",children:[s.jsx(Ws,{size:16})," ",d]}),s.jsxs("header",{className:"mb-10",children:[s.jsxs("div",{className:"flex items-center gap-3 text-sm text-white/50 mb-4",children:[s.jsx("time",{children:new Date(a.date).toLocaleDateString(t==="pt"?"pt-BR":"en-US",{day:"2-digit",month:"long",year:"numeric"})}),a.read_time&&s.jsxs("span",{children:["· ",a.read_time," min"]})]}),s.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-white mb-4",children:a.title}),s.jsx("p",{className:"text-xl text-white/70",children:a.excerpt})]}),m&&s.jsx("img",{src:m,alt:a.title,className:"w-full rounded-xl mb-10"}),g?s.jsx(P2,{kind:"insight",title:a.title,slug:a.slug,id:a.id,pdfUrl:h}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"prose prose-invert prose-lg max-w-none prose-headings:text-white prose-p:text-white/80 prose-a:text-[#F4845F] prose-strong:text-white prose-li:text-white/80 prose-img:rounded-xl prose-img:my-8 prose-img:w-full",children:s.jsx(Pu,{remarkPlugins:[Au],components:{a:({node:v,...y})=>s.jsx("a",{...y,target:"_blank",rel:"noopener noreferrer"})},children:a.content})}),a.cta_form&&a.cta_form_text&&s.jsx(kD,{kind:"insight",title:a.title,slug:a.slug,id:a.id,ctaText:a.cta_form_text})]})]})]})};function STe(e){return e.replace(/\\r\\n/g,`
2116`).replace(/\\n/g,` 2117`).replace(/\\r/g,` 2118`).replace(/\\t/g," ").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}function jTe(e){const t=e.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/);if(!t)return{data:{},content:e};const[,n,r]=t,a={};for(const i of n.split(/\r?\n/)){if(!i.trim()||i.trim().startsWith("#"))continue;const o=i.indexOf(":");if(o===-1)continue;const l=i.slice(0,o).trim();let c=i.slice(o+1).trim(),u=!1;c.startsWith('"')&&c.endsWith('"')?(c=c.slice(1,-1),u=!0):c.startsWith("'")&&c.endsWith("'")&&(c=c.slice(1,-1)),u&&(c=STe(c)),c===""||c==="null"||c==="~"?a[l]=null:c==="true"?a[l]=!0:c==="false"?a[l]=!1:/^-?\d+(\.\d+)?$/.test(c)?a[l]=Number(c):a[l]=c}return{data:a,content:r.trim()}}const PTe=Object.assign({"/src/content/intelligence/README.md":lD}),Gj=Object.entries(PTe).map(([e,t])=>{const{data:n,content:r}=jTe(t),a=n;return!a.title||!a.language||!a.date?null:{id:a.id,title:a.title,date:a.date,language:a.language,excerpt:a.excerpt||"",sector:a.sector,theme:a.theme,cover_image:a.cover_image??null,read_time:a.read_time,featured:a.featured===!0,related_product:a.related_product,related_story_slug:a.related_story_slug,gated:a.gated===!0,asset_url:a.asset_url??null,cta_form:a.cta_form===!0,cta_form_text:a.cta_form_text??null,slug:a.slug||e.split("/").pop().replace(/\.md$/,"").replace(/-(pt|en)$/,""),content:r}}).filter(e=>e!==null);Gj.sort((e,t)=>e.date<t.date?1:-1);const ATe=e=>{const{language:t}=be(),[n,r]=S.useState([]);return S.useEffect(()=>{const a=Gj.filter(i=>i.language===t);r(a)},[t,e]),n},SD=e=>{const{language:t}=be();return Gj.find(n=>n.slug===e&&n.language===t)||null},jD=e=>e?e.startsWith("http")?e:ja(e.replace(/^\//,"")):null,PD={varejo:"Varejo",farma:"Farma",industria:"Indústria",ecommerce:"E-commerce",multissetor:"Multissetor"},AD={varejo:"Retail",farma:"Pharma",industria:"Industry",ecommerce:"E-commerce",multissetor:"Cross-sector",retail:"Retail",pharma:"Pharma",industry:"Industry"},_D={demanda:"Demanda",margem:"Margem",estoque:"Estoque",mix:"Mix & Sortimento",propensao:"Propensão",cac:"CAC"},ND={demanda:"Demand",margem:"Margin",estoque:"Inventory",mix:"Mix & Assortment",propensao:"Propensity",cac:"CAC",demand:"Demand",margin:"Margin",inventory:"Inventory",assortment:"Mix & Assortment",propensity:"Propensity"};function _Te(e){return{kind:"i6 Research",slug:e.slug,title:e.title,excerpt:e.excerpt,date:e.date,cover:jD(e.cover_image),sector:e.sector,theme:e.theme,language:e.language,readTime:e.read_time}}function NTe(e){return{kind:e.type,slug:e.slug,title:e.title,excerpt:e.excerpt,date:e.date,cover:Nu(e.cover_image),language:e.language,readTime:e.read_time}}const CD={"i6 Research":"i6 Research","i6 eBook":"i6 eBook"},CTe=({item:e})=>{const{language:t}=be(),n=wt(),r=t==="pt"?PD:AD,a=t==="pt"?_D:ND;return s.jsx(Ee,{to:n(`/i6-intelligence/${e.slug}`),className:"block h-full",children:s.jsxs("article",{className:"group h-full flex flex-col rounded-xl border border-white/10 bg-white/5 hover:bg-white/[0.08] hover:border-[#F4845F]/40 transition-all overflow-hidden",children:[s.jsx("div",{className:"h-40 overflow-hidden bg-white/5 relative",children:e.cover?s.jsx("img",{src:e.cover,alt:e.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500",loading:"lazy"}):s.jsx("div",{className:"w-full h-full flex items-center justify-center relative overflow-hidden",style:{background:"radial-gradient(120% 80% at 30% 20%, rgba(244,132,95,0.12) 0%, rgba(244,132,95,0) 60%), linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%)"},"aria-hidden":"true",children:s.jsx("span",{className:"text-2xl md:text-3xl font-bold uppercase tracking-[0.25em] text-white/10 select-none",children:e.kind})})}),s.jsxs("div",{className:"p-6 flex-1 flex flex-col",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3 flex-wrap",children:[s.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider px-2 py-1 rounded bg-[#F4845F]/15 text-[#F4845F]",children:CD[e.kind]}),e.sector&&s.jsx("span",{className:"text-xs font-medium uppercase tracking-wider px-2 py-1 rounded bg-white/10 text-white/70",children:r[e.sector]||e.sector}),e.theme&&s.jsx("span",{className:"text-xs font-medium uppercase tracking-wider px-2 py-1 rounded bg-white/5 text-white/60",children:a[e.theme]||e.theme}),s.jsx("time",{className:"text-xs text-white/40 ml-auto",children:new Date(e.date).toLocaleDateString(t==="pt"?"pt-BR":"en-US",{day:"2-digit",month:"short",year:"numeric"})})]}),s.jsx("h2",{className:"text-lg font-semibold text-white mb-2 group-hover:text-[#F4845F] transition-colors",children:e.title}),s.jsx("p",{className:"text-sm text-white/60 flex-1",children:e.excerpt}),e.readTime&&s.jsxs("p",{className:"text-xs text-white/40 mt-4",children:[e.readTime," min"]})]})]})})},ETe=()=>{const{language:e}=be(),t=ATe(),n=s5e(),[r,a]=jV(),[i,o]=S.useState(r.get("kind")||null),[l,c]=S.useState(r.get("sector")),[u,d]=S.useState(r.get("theme"));S.useEffect(()=>
2118{o(r.get("kind")||null),c(r.get("sector")),d(r.get("theme"))},[r]);const m=(_,N)=>{const C=new URLSearchParams(r);N?C.set(_,N):C.delete(_),a(C,{replace:!0})},p=_=>{o(_),m("kind",_)},f=_=>{c(_),m("sector",_)},g=_=>{d(_),m("theme",_)},h=S.useMemo(()=>{const _=[...t.map(_Te),...n.map(NTe)];return _.sort((N,C)=>N.date<C.date?1:-1),_},[t,n]),v=S.useMemo(()=>Array.from(new Set(h.map(_=>_.sector).filter(Boolean))),[h]),y=S.useMemo(()=>Array.from(new Set(h.map(_=>_.theme).filter(Boolean))),[h]),x=i===null||i==="i6 Research",b=h.filter(_=>!(i&&_.kind!==i||x&&(l&&_.sector!==l||u&&_.theme!==u))),w="i6 Research",k=e==="pt"?"Inteligência aplicada para decisões de demanda, margem, estoque, mix e propensão. Research, artigos e eBooks da infinity6 para varejo, indústria, financeiro e farma.":"Applied intelligence for decisions on demand, margin, inventory, mix and propensity. Research, articles and eBooks by infinity6 across retail, industry, financial services and pharma.",j=e==="pt"?PD:AD,A=e==="pt"?_D:ND,P=["i6 Research","i6 eBook"];return s.jsxs(s.Fragment,{children:[s.jsxs(Na,{children:[s.jsx("html",{lang:e==="pt"?"pt-BR":"en"}),s.jsx("title",{children:"i6 Research | infinity6"}),s.jsx("meta",{name:"description",content:k}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"CollectionPage",name:w,description:k})})]}),s.jsxs("section",{className:"container mx-auto px-6 pt-32 pb-20",children:[s.jsxs("header",{className:"max-w-3xl mb-10",children:[s.jsx("p",{className:"text-xs uppercase tracking-[0.3em] text-[#F4845F] mb-3",children:"infinity6 · Executive Research"}),s.jsx("h1",{className:"sr-only",children:w}),s.jsx("p",{className:"text-lg text-white/70 line-clamp-2",children:k})]}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-6",children:[s.jsx("span",{className:"text-xs uppercase tracking-wider text-white/40 mr-2",children:e==="pt"?"Tipo":"Type"}),s.jsx("button",{onClick:()=>p(null),className:`px-3 py-1 rounded-full text-xs font-medium transition-all ${i===null?"bg-[#F4845F] text-white":"bg-white/5 text-white/60 hover:bg-white/10"}`,children:e==="pt"?"Todos":"All"}),P.map(_=>s.jsx("button",{onClick:()=>p(_),className:`px-3 py-1 rounded-full text-xs font-medium transition-all ${i===_?"bg-[#F4845F] text-white":"bg-white/5 text-white/60 hover:bg-white/10"}`,children:CD[_]},_))]}),x&&(v.length>0||y.length>0)&&s.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-10",children:[v.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-xs uppercase tracking-wider text-white/40 mr-2",children:e==="pt"?"Setor":"Sector"}),s.jsx("button",{onClick:()=>f(null),className:`px-3 py-1 rounded-full text-xs font-medium transition-all ${l===null?"bg-[#F4845F] text-white":"bg-white/5 text-white/60 hover:bg-white/10"}`,children:e==="pt"?"Todos":"All"}),v.map(_=>s.jsx("button",{onClick:()=>f(_),className:`px-3 py-1 rounded-full text-xs font-medium transition-all ${l===_?"bg-[#F4845F] text-white":"bg-white/5 text-white/60 hover:bg-white/10"}`,children:j[_]||_},_)),s.jsx("span",{className:"w-px h-4 bg-white/10 mx-2"})]}),y.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-xs uppercase tracking-wider text-white/40 mr-2",children:e==="pt"?"Tema":"Theme"}),s.jsx("button",{onClick:()=>g(null),className:`px-3 py-1 rounded-full text-xs font-medium transition-all ${u===null?"bg-[#F4845F] text-white":"bg-white/5 text-white/60 hover:bg-white/10"}`,children:e==="pt"?"Todos":"All"}),y.map(_=>s.jsx("button",{onClick:()=>g(_),className:`px-3 py-1 rounded-full text-xs font-medium transition-all ${u===_?"bg-[#F4845F] text-white":"bg-white/5 text-white/60 hover:bg-white/10"}`,children:A[_]||_},_))]})]}),b.length===0?s.jsx("p",{className:"text-white/50",children:e==="pt"?"Em breve, novas peças":"New pieces coming soon"}):s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:b.map(_=>s.jsx(CTe,{item:_},`${_.kind}-${_.slug}-${_.language}`))})]})]})},Ji="https://infinity6.ai";function TTe(e){const t=/^##\s+(?:Perguntas frequentes|FAQ)\s*$/im,n=e.match(t);if(!n)return[];const r=e.indexOf(n[0])+n[0].length,a=e.slice(r),i=a.search(/\n##\s+/),o=i===-1?a:a.slice(0,i),l=[],c=/\*\*([^*]+\?)\*\*\s*\n+([^\n][^\n]
2118*(?:\n[^\n*][^\n]*)*)/g;let u;for(;(u=c.exec(o))!==null;)l.push({q:u[1].trim(),a:u[2].trim()});return l}const OTe=()=>{const{slug:e}=Wi(),{language:t}=be(),n=wt(),r=SD(e||""),a=r?`i6_unlocked_research:${r.slug}:${r.language}`:"",[i,o]=S.useState(!1),[l,c]=S.useState(!1);if(S.useEffect(()=>{if(a)try{o(localStorage.getItem(a)==="1")}catch{}},[a]),!r)return s.jsx(Rn,{to:n("/i6-intelligence"),replace:!0});const u=jD(r.cover_image),d=`${Ji}/${t}/i6-intelligence/${r.slug}`,m=TTe(r.content),p=r.gated===!0&&!i,f=r.asset_url?r.asset_url.startsWith("http")?r.asset_url:ja(r.asset_url.replace(/^\//,"")):null;return s.jsxs(s.Fragment,{children:[s.jsxs(Na,{children:[s.jsx("html",{lang:t==="pt"?"pt-BR":"en"}),s.jsx("title",{children:`${r.title} | i6 Research`}),s.jsx("meta",{name:"description",content:r.excerpt}),s.jsx("link",{rel:"canonical",href:d}),s.jsx("link",{rel:"alternate",hrefLang:"en",href:`${Ji}/en/i6-intelligence/${r.slug}`}),s.jsx("link",{rel:"alternate",hrefLang:"pt-BR",href:`${Ji}/pt/i6-intelligence/${r.slug}`}),s.jsx("link",{rel:"alternate",hrefLang:"x-default",href:`${Ji}/en/i6-intelligence/${r.slug}`}),s.jsx("meta",{property:"og:type",content:"article"}),s.jsx("meta",{property:"og:title",content:r.title}),s.jsx("meta",{property:"og:description",content:r.excerpt}),s.jsx("meta",{property:"og:url",content:d}),u&&s.jsx("meta",{property:"og:image",content:u.startsWith("http")?u:`${Ji}${u}`}),s.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Article",headline:r.title,description:r.excerpt,datePublished:r.date,inLanguage:t==="pt"?"pt-BR":"en",author:{"@type":"Organization",name:"infinity6"},publisher:{"@type":"Organization",name:"infinity6"},mainEntityOfPage:d,isPartOf:{"@type":"CreativeWork",name:"i6 Research"},...u?{image:u.startsWith("http")?u:`${Ji}${u}`}:{}})}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${Ji}/${t}`},{"@type":"ListItem",position:2,name:"i6 Research",item:`${Ji}/${t}/i6-intelligence`},{"@type":"ListItem",position:3,name:r.title,item:d}]})}),m.length>0&&!p&&s.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:m.map(g=>({"@type":"Question",name:g.q,acceptedAnswer:{"@type":"Answer",text:g.a}}))})})]}),s.jsxs("article",{className:"container mx-auto px-6 pt-32 pb-20 max-w-3xl",children:[s.jsxs(Ee,{to:n("/i6-intelligence"),className:"inline-flex items-center gap-2 text-sm text-white/60 hover:text-[#F4845F] transition-colors mb-5",children:[s.jsx(Ws,{size:16})," ",t==="pt"?"Voltar para i6 Research":"Back to i6 Research"]}),s.jsx("p",{className:"text-xs uppercase tracking-[0.3em] text-[#F4845F] mb-4",children:"infinity6 · Research"}),s.jsx("div",{className:"relative left-1/2 right-1/2 -mx-[50vw] w-screen overflow-hidden mb-12",children:s.jsxs("div",{className:"relative h-[420px] md:h-[560px]",children:[u&&s.jsx("img",{src:u,alt:r.title,className:"absolute inset-0 w-full h-full object-cover filter brightness-[0.7] saturate-[0.85] contrast-[1.05]"}),s.jsx("div",{className:"absolute inset-0 bg-[#0B1224]/35"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-[#0B1224]/40 to-[#0B1224]"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-[#0B1224]/50 via-transparent to-[#0B1224]/50"}),s.jsxs("div",{className:"relative h-full container mx-auto max-w-3xl px-6 flex flex-col justify-end pb-8 md:pb-12",children:[s.jsx("h1",{className:"text-2xl md:text-4xl font-bold text-white mb-3 leading-[1.1] tracking-tight",children:r.title}),s.jsx("p",{className:"text-sm md:text-base text-white/85 mb-4 leading-relaxed max-w-2xl",children:r.excerpt}),s.jsxs("div",{className:"flex items-center gap-3 text-xs text-white/60",children:[s.jsx("time",{children:new Date(r.date).toLocaleDateString(t==="pt"?"pt-BR":"en-US",{day:"2-digit",month:"long",year:"numeric"})}),r.read_time&&s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"·"}),s.jsxs("span",{children:[r.read_time," min"]})]})]})]})]})}),p?s.jsx(P2,{kind:"research",title:r.title,slug:r.slug,id:r.id,pdfUrl:f,onUnlock:()=>o(!0)}):r.asset_url?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"my-4 p-8 md:p-10 rounded-2xl border border-[#F4845F]/30 bg-gradient-to-br from-white/5 to-[#F4845F]/5 backdrop-blur-sm text-center",children:[s.jsx("div",{className:"w-14 h-14 mx-auto mb-4 rounded-full bg-[#F4845F]/15 border border-[#F4845F]/30 flex items-center justify-center",children:s.jsx(Vv,{className:"w-7 h-7 text-[#F4845F]"})}),s.jsx("h2",{className:"text-2xl font-semibold text-white mb-2",children:t==="pt"?"PDF envi
2118ado para o seu e-mail":"PDF sent to your email"}),s.jsx("p",{className:"text-white/70 max-w-md mx-auto",children:t==="pt"?s.jsxs(s.Fragment,{children:["Verifique sua caixa de entrada â se não achar, olhe a pasta de ",s.jsx("strong",{className:"text-white",children:"SPAM"}),"."]}):s.jsxs(s.Fragment,{children:["Please check your inbox â if you don't see it, look in your ",s.jsx("strong",{className:"text-white",children:"Spam"})," folder."]})}),!l&&s.jsxs(Dn,{type:"button",onClick:()=>c(!0),className:"mt-6 bg-[#F4845F] hover:bg-[#F4845F]/90 text-white font-semibold border border-[#F4845F]/50 shadow-[0_0_20px_rgba(244,132,95,0.3)] hover:shadow-[0_0_30px_rgba(244,132,95,0.5)] transition-all",children:[s.jsx(LI,{className:"w-4 h-4 mr-2"}),t==="pt"?"Reenviar por e-mail":"Resend to my email"]})]}),l&&s.jsx(P2,{kind:"research",mode:"resend",title:r.title,slug:r.slug,id:r.id,pdfUrl:f}),s.jsxs("div",{className:"mt-16 pt-8 border-t border-white/10 space-y-6",children:[(r.related_product||r.related_story_slug)&&s.jsxs("div",{className:"flex flex-wrap gap-3",children:[r.related_product&&s.jsx(Ee,{to:n(`/solutions#${r.related_product}`),className:"inline-flex items-center gap-2 px-4 py-2 rounded-full border border-[#F4845F]/40 text-[#F4845F] hover:bg-[#F4845F]/10 text-xs font-semibold uppercase tracking-wider transition-colors",children:t==="pt"?"Ver a solução relacionada":"See the related solution"}),r.related_story_slug&&s.jsx(Ee,{to:n(`/success-stories/${r.related_story_slug}`),className:"inline-flex items-center gap-2 px-4 py-2 rounded-full border border-white/20 text-white/80 hover:bg-white/5 text-xs font-semibold uppercase tracking-wider transition-colors",children:t==="pt"?"Ler o case relacionado":"Read the related case"})]}),s.jsx(Ee,{to:n("/contact"),className:"inline-flex items-center gap-2 px-6 py-3 rounded-full bg-[#F4845F] hover:bg-[#F4845F]/90 text-white text-sm font-semibold transition-all shadow-[0_0_20px_rgba(244,132,95,0.3)]",children:t==="pt"?"Colocar Dados em Movimento":"Put Data in Motion"})]})]}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"prose prose-invert prose-headings:text-white prose-h2:text-2xl prose-h2:mt-12 prose-h2:mb-4 prose-p:text-white/80 prose-li:text-white/80 prose-strong:text-white prose-a:text-[#F4845F] hover:prose-a:underline max-w-none",children:s.jsx(Pu,{remarkPlugins:[Au],components:{a:({node:g,...h})=>s.jsx("a",{...h,target:"_blank",rel:"noopener noreferrer"})},children:r.content})}),r.cta_form&&r.cta_form_text&&s.jsx(kD,{kind:"research",title:r.title,slug:r.slug,id:r.id,ctaText:r.cta_form_text}),s.jsxs("div",{className:"mt-16 pt-8 border-t border-white/10 space-y-6",children:[(r.related_product||r.related_story_slug)&&s.jsxs("div",{className:"flex flex-wrap gap-3",children:[r.related_product&&s.jsx(Ee,{to:n(`/solutions#${r.related_product}`),className:"inline-flex items-center gap-2 px-4 py-2 rounded-full border border-[#F4845F]/40 text-[#F4845F] hover:bg-[#F4845F]/10 text-xs font-semibold uppercase tracking-wider transition-colors",children:t==="pt"?"Ver a solução relacionada":"See the related solution"}),r.related_story_slug&&s.jsx(Ee,{to:n(`/success-stories/${r.related_story_slug}`),className:"inline-flex items-center gap-2 px-4 py-2 rounded-full border border-white/20 text-white/80 hover:bg-white/5 text-xs font-semibold uppercase tracking-wider transition-colors",children:t==="pt"?"Ler o case relacionado":"Read the related case"})]}),s.jsx(Ee,{to:n("/contact"),className:"inline-flex items-center gap-2 px-6 py-3 rounded-full bg-[#F4845F] hover:bg-[#F4845F]/90 text-white text-sm font-semibold transition-all shadow-[0_0_20px_rgba(244,132,95,0.3)]",children:t==="pt"?"Colocar Dados em Movimento":"Put Data in Motion"})]})]})]})]})},ITe=()=>{const{slug:e}=Wi();be();const t=wt(),n=SD(e||""),r=cD(e||"");return n?s.jsx(OTe,{}):r&&r.type==="i6 Article"?s.jsx(Rn,{to:t(`/i6-blog/${r.slug}`),replace:!0}):r&&r.type==="i6 eBook"?s.jsx(A2,{}):s.jsx(Rn,{to:t("/i6-intelligence"),replace:!0})},MTe=({article:e})=>{const{t,language:n}=be(),r=wt(),a=Nu(e.cover_image);return s.jsx(Ee,{to:r(`/i6-blog/${e.slug}`),className:"group block relative rounded-3xl overflow-hidden isolate h-full",children:s.jsxs("div",{className:"relative aspect-[4/5] sm:aspect-[16/10] lg:aspect-auto lg:h-full w-full",children:[a?s.jsx("img",{src:a,alt:e.title,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-700 group-hover:scale-[1.03]",loading:"eager",style:{WebkitMaskImage:"radial-gradient(ellipse 90% 85% at center, #000 55%, transparent 100%)",maskImage:"radial-gradient(ellipse 90% 85% at center, #000 55%, transparent 100%)"}}):s.jsx("div",{className:"absolute inset-0",style:{background:"radial-gradient(120% 80% at 30% 20%, rgba(244,132,95,0.25) 0%, rgba(244,132,95,0) 60%), linear-gradient(135deg, #0B1224 0%, #131a2f
2118100%)"},"aria-hidden":"true"}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-[#0B1224] via-[#0B1224]/70 to-transparent","aria-hidden":"true"}),s.jsxs("div",{className:"absolute inset-0 flex flex-col justify-end p-5 md:p-8 lg:p-10 max-w-4xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsx("span",{className:"text-[10px] md:text-xs font-semibold uppercase tracking-[0.2em] px-3 py-1 rounded-full bg-[#F4845F]/20 text-[#F4845F] border border-[#F4845F]/40 backdrop-blur-sm",children:t("blog.badge")}),s.jsx("time",{className:"text-xs text-white/60",children:new Date(e.date).toLocaleDateString(n==="pt"?"pt-BR":"en-US",{day:"2-digit",month:"long",year:"numeric"})}),e.read_time&&s.jsxs("span",{className:"text-xs text-white/50",children:["· ",e.read_time," ",t("blog.minRead")]})]}),s.jsx("h2",{className:"text-2xl md:text-3xl lg:text-3xl xl:text-4xl font-bold text-white mb-2 md:mb-3 max-w-3xl leading-tight group-hover:text-[#F4845F] transition-colors",children:e.title}),s.jsx("p",{className:"text-base md:text-lg text-white/80 max-w-2xl mb-2 line-clamp-2 md:line-clamp-3",children:e.excerpt}),s.jsxs("span",{className:"inline-flex items-center gap-2 text-sm font-medium text-[#F4845F]",children:[t("blog.readArticle"),s.jsx(_a,{size:16,className:"transition-transform group-hover:translate-x-1"})]})]})]})})},g5=({article:e,size:t="md",variant:n="default",dense:r=!1})=>{const{t:a,language:i}=be(),o=wt(),l=Nu(e.cover_image),c=t==="lg"?"h-56 md:h-64":t==="sm"?"h-32 md:h-36":"h-40 md:h-48";return n==="horizontal"?s.jsxs(Ee,{to:o(`/i6-blog/${e.slug}`),className:"group relative block h-full rounded-2xl p-[1px] overflow-hidden",children:[s.jsx("span",{"aria-hidden":"true",className:"absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none",style:{background:"radial-gradient(120% 90% at 20% 0%, rgba(244,132,95,0.35) 0%, rgba(244,132,95,0.08) 35%, transparent 70%)"}}),s.jsxs("article",{className:"relative h-full flex flex-row rounded-2xl border border-white/10 bg-[#0B1224]/80 backdrop-blur-sm group-hover:border-[#F4845F]/40 transition-colors overflow-hidden",children:[l&&s.jsx("div",{className:`${r?"w-1/3":"w-2/5"} shrink-0 overflow-hidden bg-white/5`,children:s.jsx("img",{src:l,alt:e.title,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105",loading:"lazy"})}),s.jsxs("div",{className:`${r?"px-3 py-2.5 md:px-4 md:py-3":"p-4 md:p-5"} flex-1 flex flex-col min-w-0`,children:[s.jsxs("div",{className:`flex items-center gap-2 ${r?"mb-1":"mb-2"} flex-wrap shrink-0`,children:[s.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.2em] px-2 py-0.5 rounded bg-[#F4845F]/15 text-[#F4845F]",children:a("blog.badge")}),!r&&e.theme&&s.jsx("span",{className:"text-[10px] font-medium uppercase tracking-wider px-2 py-0.5 rounded bg-white/5 text-white/60",children:e.theme})]}),s.jsx("h3",{className:`font-semibold text-white group-hover:text-[#F4845F] transition-colors mb-2 leading-snug ${r?"text-sm":"text-sm md:text-base"}`,children:e.title}),s.jsxs("div",{className:"flex items-center gap-2 text-xs text-white/40 mt-auto shrink-0",children:[s.jsx("time",{children:new Date(e.date).toLocaleDateString(i==="pt"?"pt-BR":"en-US",{day:"2-digit",month:"short",year:"numeric"})}),e.read_time&&s.jsxs("span",{children:["· ",e.read_time," ",a("blog.minRead")]})]})]})]})]}):s.jsxs(Ee,{to:o(`/i6-blog/${e.slug}`),className:"group relative block h-full rounded-2xl p-[1px] overflow-hidden",children:[s.jsx("span",{"aria-hidden":"true",className:"absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none",style:{background:"radial-gradient(120% 90% at 20% 0%, rgba(244,132,95,0.35) 0%, rgba(244,132,95,0.08) 35%, transparent 70%)"}}),s.jsxs("article",{className:"relative h-full flex flex-col rounded-2xl border border-white/10 bg-[#0B1224]/80 backdrop-blur-sm group-hover:border-[#F4845F]/40 transition-colors overflow-hidden",children:[l&&s.jsx("div",{className:`${c} overflow-hidden bg-white/5`,children:s.jsx("img",{src:l,alt:e.title,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105",loading:"lazy"})}),s.jsxs("div",{className:"p-5 md:p-6 flex-1 flex flex-col",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3 flex-wrap",children:[s.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.2em] px-2 py-0.5 rounded bg-[#F4845F]/15 text-[#F4845F]",children:a("blog.badge")}),e.theme&&s.jsx("span",{className:"text-[10px] font-medium uppercase tracking-wider px-2 py-0.5 rounded bg-white/5 text-white/60",children:e.theme})]}),s.jsx("h3",{className:`font-semibold text-white group-hover:text-[#F4845F] transition-colors mb-2 ${t==="lg"?"text-xl md:text-2xl":"text-base md:text-lg"}`,children:e.title}),s.jsx("p",{className:"text-sm text-white/60 line-clamp-3 flex-1",children:e.excerpt}),s.jsxs("div",{className:"flex items-center gap-2 text-xs text-white/40 mt-4",children:[s.jsx("time",{children:new Date(e.date).toLocaleDateString(i==="pt"?"pt-BR":"en-US",{day:"2-digit",month:"short",year:"numeric"})}),e.read_time&&s.jsxs("span",{children:["· ",e.read_time," ",a("blog.minRead")]})]})]})]})]})},v5=({articles:e,layout:t="row"})=>{const{t:n}=be();if(e.length===0)return null;if(t==="side"){const r=e.slice(0,3);return s.jsxs("section",{className:"flex flex-col h-full max-h-full overflow-hidden",children:[s.jsx("h2",{className:"text-xs font-medium uppercase tracking-[0.2em] text-white/60 mb-2 shrink-0",children:n("blog.recentTitle")}),s.jsx("div",{className:"flex flex-col gap-2.5 flex-1 min-h-0",children:r.map(a=>s.jsx("div",{className:"h-1/3 min-h-0",children:s.jsx(g5,{article:a,variant:"horizontal",dense:!0})},a.slug))})]})}return s.jsxs("section",{className:"mt-16",children:[s.jsx("h2",{className:"text-xs font-medium uppercase tracking-[0.2em] text-white/60 mb-4",children:n("blog.recentTitle")}),s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 ga
2118p-4",children:e.slice(0,5).map(r=>s.jsx(g5,{article:r,size:"sm"},r.slug))})]})},Rf=e=>`px-3 py-1 rounded-full text-xs font-medium transition-all ${e?"bg-[#F4845F] text-white":"bg-white/5 text-white/60 hover:bg-white/10"}`,$Te=({themes:e,tags:t,activeTheme:n,activeTag:r,onThemeChange:a,onTagChange:i})=>{const{t:o}=be();return e.length===0&&t.length===0?null:s.jsxs("div",{className:"mt-12 space-y-3",children:[e.length>0&&s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[s.jsx("span",{className:"text-xs uppercase tracking-wider text-white/40 mr-2",children:o("blog.filterTheme")}),s.jsx("button",{onClick:()=>a(null),className:Rf(n===null),children:o("blog.filterAll")}),e.map(l=>s.jsx("button",{onClick:()=>a(l.value),className:Rf(n===l.value),children:l.label},l.value))]}),t.length>0&&s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[s.jsx("span",{className:"text-xs uppercase tracking-wider text-white/40 mr-2",children:o("blog.filterTags")}),s.jsx("button",{onClick:()=>i(null),className:Rf(r===null),children:o("blog.filterAll")}),t.map(l=>s.jsx("button",{onClick:()=>i(l),className:Rf(r===l),children:l},l))]})]})},FTe=({article:e})=>{const{t,language:n}=be(),r=wt(),a=Nu(e.cover_image);return s.jsxs(Ee,{to:r(`/i6-blog/${e.slug}`),className:"group flex gap-4 items-center py-4 border-b border-white/5",children:[s.jsx("div",{className:"w-24 h-24 md:w-28 md:h-28 shrink-0 rounded-xl overflow-hidden bg-white/5 relative",children:a?s.jsx("img",{src:a,alt:e.title,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-110",loading:"lazy"}):s.jsx("div",{className:"absolute inset-0 transition-transform duration-500 group-hover:scale-110",style:{background:"radial-gradient(80% 80% at 30% 30%, rgba(244,132,95,0.25), transparent 70%), linear-gradient(135deg,#0B1224,#131a2f)"}})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("h3",{className:"font-semibold text-white group-hover:text-[#F4845F] transition-colors text-sm md:text-base line-clamp-2 mb-1.5",children:e.title}),e.excerpt&&s.jsx("p",{className:"text-xs text-white/50 line-clamp-2 mb-2",children:e.excerpt}),s.jsxs("div",{className:"flex items-center gap-2 text-[11px] text-white/40",children:[s.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.18em] text-[#F4845F]",children:t("blog.badge")}),s.jsx("span",{className:"text-white/20",children:"·"}),s.jsx("time",{children:new Date(e.date).toLocaleDateString(n==="pt"?"pt-BR":"en-US",{day:"2-digit",month:"short",year:"numeric"})}),e.read_time&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-white/20",children:"·"}),s.jsxs("span",{children:[e.read_time," ",t("blog.minRead")]})]})]})]})]})},RTe=({title:e,articles:t})=>t.length===0?null:s.jsxs("section",{className:"mt-16",children:[s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-white",children:e}),s.jsx("span",{className:"block h-0.5 w-10 bg-[#F4845F] mt-2 rounded-full"})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-x-8",children:t.map(n=>s.jsx(FTe,{article:n},n.slug))})]}),DTe=()=>{const{t:e,language:t}=be(),n=l5e(),[r,a]=S.useState(null),[i,o]=S.useState(null),l=S.useMemo(()=>n.length===0?null:n.find(h=>h.is_default)||n[0],[n]),c=S.useMemo(()=>n.filter(g=>g.slug!==(l==null?void 0:l.slug)).slice(0,5),[n,l]),u=S.useMemo(()=>n.filter(g=>g.slug!==(l==null?void 0:l.slug)),[n,l]),d=S.useMemo(()=>{const g=new Map;return u.forEach(h=>{if(!h.theme)return;const v=g.get(h.theme);(!v||v===h.theme)&&g.set(h.theme,h.theme_label||v||h.theme)}),Array.from(g,([h,v])=>({value:h,label:v}))},[u]),m=S.useMemo(()=>{const g=new Set;return u.forEach(h=>{var v;return(v=h.tags)==null?void 0:v.forEach(y=>g.add(y))}),Array.from(g)},[u]),p=S.useMemo(()=>n.filter(g=>!(l&&g.slug===l.slug||r&&g.theme!==r||i&&!(g.tags||[]).includes(i))),[n,r,i,l]),f=S.useMemo(()=>{const g=new Map;return p.forEach(h=>{const v=h.theme||"__none__",y=h.theme_label||h.theme||e("blog.themeFallback");g.has(v)||g.set(v,{label:y,items:[]}),g.get(v).items.push(h)}),Array.from(g.values())},[p,e]);return s.jsxs(s.Fragment,{children:[s.jsxs(Na,{children:[s.jsx("html",{lang:t==="pt"?"pt-BR":"en"}),s.jsx("title",{children:`${e("blog.pageTitle")} | infinity6`}),s.jsx("meta",{name:"description",content:e("blog.pageSubtitle")})]}),s.jsxs("section",{className:"container mx-auto px-6 pt-32 pb-20",children:[s.jsxs("header",{className:"max-w-3xl mb-10",children:[s.jsx("p",{className:"text-xs uppercase tracking-[0.3em] text-[#F4845F] mb-3",children:"infinity6 · Blog"}),s.jsx("h1",{className:"sr-only",children:e("blog.pageTitle")}),s.jsx("p",{className:"text-lg text-white/70",children:e("blog.pageSubtitle")})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 items-stretch lg:h-[62vh]",children:[l&&s.jsx("div",{className:"lg:col-span-2",children:s.jsx(MTe,{article:l})}),s.jsx("div",{className:"hidden lg:block lg:col-span-1",children:s.jsx(v5,{articles:c,layout:"side"})})]}),s.jsx("div",{className:"lg:hidden",children:s.jsx(v5,{articles:c,layout:"row"})}),s.jsx($Te,{themes:d,tags:m,activeTheme:r,activeTag:i,onThemeChange:a,onTagChange:o}),f.length===0&&n.length===0&&s.jsx("p",{className:"mt-16 text-white/50",children:e("blog.empty")}),f.map(({label:g,items:h})=>s.jsx(RTe,{title:g,articles:h},g))]})]})},LTe={pt:{hero:{eyebrow:"Proprietary AI",title:"Motores proprietários de IA",subtitle:"IA aplicada é um organismo que se constrói, se alimenta e se adapta",lead:"Três motores próprios que aprendem comportamento, antecipam decisão e prescrevem ação â não geram texto, geram resultado."},thesis:{eyebrow:"Do comportamento ao resultado",title:"IA só precisa saber o que muda o jogo",stages:[{label:"Fine tuning",detail:"Calibração a partir do comportamento isolado"}
2118,{label:"Necessidade especÃfica",detail:"Para influência e continuidade da jornada"},{label:"Resultado de negócio",detail:"Necessidades do negócio e metas a alcançar"}],journey:["interesse","pesquisa","compra"],attributes:["Relevância","Oportunidade","Timing","Necessidade","Substituição","Elasticidade","Similaridade","Explicabilidade"],pillars:[{title:"Clareza do problema",text:"Dar à IA o problema certo para resolver â não dados crus, mas a decisão de negócio que importa."},{title:"Isolar o comportamento",text:"O treinamento isola o comportamento que leva ao objetivo de negócio e elimina variáveis ruidosas."},{title:"Aderência contextual",text:'Não é o que o cliente "gosta" â é o que ele tem intenção e condição de comprar agora.'}],foundation:{label:"Modelo fundacional",name:"i6-RecSys-Base.g1",description:"MAML + Active Learning + Topological Loss Foundation Model â adaptável com poucas amostras, com memória externa para aprender novas tarefas rapidamente.",stats:[{value:"1,45B",label:"registros (2025)"},{value:"20B",label:"registros (2026)"},{value:"12",label:"bases públicas/adquiridas (2025)"},{value:"~50",label:"bases públicas/adquiridas (2026)"}],mix:[{value:"15%",label:"comportamento em produtos financeiros"},{value:"45%",label:"e-commerce"},{value:"20%",label:"telecom"},{value:"20%",label:"atacado / varejo"}],references:{title:"Referências acadêmicas",items:[{author:"Finn, Abbeel & Levine",paper:"Model-Agnostic Meta-Learning (MAML)",note:"Algoritmo que treina modelos para serem adaptáveis com poucas amostras"},{author:"Vinyals et al.",paper:"Matching Networks for One Shot Learning",note:"Fundamenta abordagens metric-based de meta-learning"},{author:"Ravi & Larochelle",paper:"Optimization as a Model for Few-Shot Learning",note:"Redes recorrentes para aprender otimizadores que generalizam"},{author:"Santoro et al.",paper:"Meta-Learning with Memory-Augmented Neural Networks",note:"Memória externa para aprender novas tarefas rapidamente"}]}}},engines:{title:"Três motores. Uma camada conversacional.",lead:"Cada motor resolve uma classe de decisão. O i6 Signal lê o output preditivo dos três e entrega a próxima ação ao time de negócio.",items:[{id:"i6recsys",name:"i6 RecSys",tagline:"Recomendação de alto desempenho",description:"Sugestões personalizadas e escaláveis para mix e volume de produtos â em PDV, e-commerce e canais digitais."},{id:"i6previsio",name:"i6 Previsio",tagline:"Previsão de demanda granular",description:"Previsões precisas que otimizam produção, estoque e distribuição â eliminando ruptura e excesso."},{id:"i6elasticprice",name:"i6 ElasticPrice",tagline:"Precificação dinâmica",description:"Aprende continuamente com sinais de mercado e demanda para entregar recomendações de preço rápidas e precisas."},{id:"i6signal",name:"i6 Signal",tagline:"Camada conversacional preditiva",description:"Conversa com o output preditivo dos três motores e entrega recomendações antecipatórias e prescritivas para a decisão."}],differentiators:{title:"Recursos incomparáveis",items:["Arquitetura hÃbrida","Operação com dados anonimizados","Ajuste fino do equilÃbrio entre metas comerciais"]}},diversity:{title:"Balanceamento de diversidade",lead:"Ao analisar comportamentos únicos e padrões de recomendação, identificamos os melhores produtos inexplorados para cada cliente â garantindo sugestões diversas e relevantes além do histórico.",tasks:["Recomendado para você","Comprados juntos com frequência","Compre novamente","Itens similares","Em promoção"],middle:{title:"Treinamento com ajuste fino",subtitle:"Para precisão e diversidade"},chartNote:"Distribuição de clientes por número de produtos diversos recomendados â clientes com previsões diversas, mantendo alta precisão no alinhamento comportamental.",chartHighlight:"9 recomendações com o mesmo nÃvel de relevância â inclusive para usuários anônimos"},explainability:{title:"Explicabilidade que vira argumento de venda",eyebrow:"XAI orientada a negócio",lead:"Aplicamos XAI â Explainable AI â para transformar outputs preditivos em recomendações claras, rastreáveis e acionáveis.",description:"Mais do que mostrar um score, explicamos os principais sinais que influenciaram cada decisão: comportamento, propensão, estoque, margem, demanda, elasticidade e similaridade. Assim, a IA deixa de ser uma caixa preta e passa a apoiar decisões comerciais, operacionais e estratég
2118icas com contexto, confiança e argumento de negócio.",steps:[{title:"Identifica motivadores",description:"Detecta os principais fatores que influenciam a recomendação",sample:{sku:"SKU 3874",rows:[{feature:"ct_lst_15_days",weight:"+0.0824"},{feature:"cx_time_tobuy",weight:"+0.0360"},{feature:"ct_lst_7_days",weight:"â0.0352"},{feature:"cx_item_id_weighted",weight:"â0.0239"}]}},{title:"Prioriza fatores e estrutura",description:"Classifica fatores pelo impacto estimado no aumento de vendas e escolhe o melhor modelo de mensagem",cards:[{title:"Aumento de demanda",subtitle:"priorize o argumento de oportunidade de crescimento"},{title:"Ocasião de recompra",subtitle:"enfatize a necessidade de reposição imediata"},{title:"Produto novo",subtitle:"destaque a tendência de mercado"},{title:"Produto de alta venda",subtitle:"reforce o risco de ruptura"}]},{title:"Gera argumento dinâmico",description:"Preenche o modelo com elementos dinâmicos, compondo a mensagem personalizada para cada PDV/SKU",segments:[{label:"Indústria",items:[{title:"Padrão de consumo",subtitle:"replicado em janelas sazonais comparáveis"},{title:"Sazonalidade prevista",subtitle:"antecipa pico de demanda em 21 dias"},{title:"Reposição inteligente",subtitle:"evita ruptura no canal de maior giro"}]},{label:"Varejo",items:[{title:"Alto engajamento",subtitle:"de perfis de cliente similares nos últimos 30 dias"},{title:"Bundling otimizado",subtitle:"baseado em padrões bem-sucedidos de cross-sell"},{title:"Forte correlação",subtitle:"com os produtos preferidos de clientes de alto valor"}]},{label:"Financeiro",items:[{title:"Propensão a contratar",subtitle:"score elevado de afinidade com a oferta"},{title:"Perfil de risco alinhado",subtitle:"dentro do apetite definido pela carteira"},{title:"Cross-sell de produto",subtitle:"aderente à jornada do cliente já ativo"}]},{label:"Farma",items:[{title:"Aderência ao tratamento",subtitle:"momento ideal de renovação da receita"},{title:"Recompra prevista",subtitle:"janela de continuidade da terapia"},{title:"Recomendação por perfil clÃnico",subtitle:"coerente com a categoria prescrita"}]}]}]},security:{title:"Segurança e conformidade por design",pillars:[{title:"Anonimização na origem",description:"Dados sensÃveis são anonimizados antes de qualquer treinamento â pré-requisito de segurança para todos os modelos"},{title:"Arquitetura segura",description:"Autenticação multinÃvel e controle de acesso baseado em rotas"},{title:"Ambiente isolado",description:"Ambientes seguros e isolados protegem dados e modelos contra acesso não autorizado"},{title:"Pronto para escalar",description:"Solução 100% em nuvem, com escalonamento automático de recursos"}]},challenges:{title:"Por que a IA falha e como resolvemos",lead:"IA aplicada é um organismo que se constrói, se alimenta e se adapta. Os principais desafios que enfrentamos com clientes e como a infinity6 endereça cada um.",headers:{challenge:"Desafio",learning:"Aprendizado",resolution:"Como resolvemos"},rows:[{challenge:"Jornadas não digitais ou fragmentadas",learning:"Sem interação, IA não aprende",resolution:"Touchpoints hÃbridos (contextual, WhatsApp, integrações simples)"},{challenge:"Dados transacionais sem contexto",learning:"Dados frios geram modelos cegos",resolution:"Modelos funcionais que generalizam o comportamento"},{challenge:"Dado bom, mas desorganizado",learning:"Volume não é qualidade",resolution:"Estruturação e curadoria de variáveis mais relevantes"},{challenge:"CPC (Contato Pessoa Certa)",learning:"Canal errado anula mensagem certa",resolution:"Enriquecimento de dados"},{challenge:"Falta de estratégia corporativa",learning:"IA isolada é IA ineficiente",resolution:"Rastreabilidade entre aplicação da IA, objetivos estratég
2118icos e áreas"},{challenge:"Expectativas irreais",learning:'"IA vai resolver tudo" é o primeiro passo do fracasso',resolution:"Processo incremental com entregas rápidas"},{challenge:"Foco em modelo, não em resultado",learning:"O modelo é meio, não fim",resolution:"IA orientada à decisão, não à curiosidade técnica"},{challenge:"Dependência de IA genérica",learning:"Nem toda IA precisa ser proprietária",resolution:"Combinar GLM (general large model) para automação e SAM (small actionable model) para precisão e escala"},{challenge:"Governança e privacidade",learning:"Medo de errar trava inovação",resolution:"AI by design: anonimização, segurança e experimentação responsável"}]},community:{title:"Comunidade infinity6",description:"Publicamos modelos, datasets e experimentos abertos no Hugging Face â parte do que aprendemos volta para a comunidade.",cta:"Visitar nossa comunidade"},research:{eyebrow:"Pesquisa & Fundamentos",title:"Base cientÃfica dos motores i6",lead:"Referências técnicas próprias: estudos conduzidos pelo founder da infinity6 e nossa área de P&D, em uma base de pesquisa em IA construÃda desde 2010, que sustentam os motores i6Previsio, i6RecSys e i6ElasticPrice â de mapas auto-organizáveis a clustering não-supervisionado e descoberta de padrões sem regras prévias",publicationsLabel:"Publicações revisadas por pares",talksLabel:"Palestras técnicas",openLabel:"Acessar",watchLabel:"Assistir",publications:[{badge:"SPRINGER · LNBIP · 2013",title:"Knowledge Discovery: Data Mining by Self-organizing Maps",venue:"Web Information Systems and Technologies â Lecture Notes in Business Information Processing, vol. 140, pp. 185â200, Springer, Berlin, Heidelberg",url:"https://link.springer.com/chapter/10.1007/978-3-642-36608-6_12"},{badge:"CONFERÃNCIA · WEBIST · 2012",title:"Self-Organizing Maps â An Approach Applied to the Electronic Government",venue:"Proceedings of the 8th International Conference on Web Information Systems and Technologies (WEBIST 2012)",url:"https://www.academia.edu/122408553/SELF_ORGANIZING_MAPS_An_Approach_Applied_to_the_Electronic_Government"},{badge:"SPRINGER · LNCS · 2010",title:"Development of a Business Intelligence Environment for e-Gov using Open Source Technologies",venue:"Lecture Notes in Computer Science, Springer",url:"https://www.academia.edu/24631504/Development_of_a_Business_Intelligence_Environment_for_e_Gov_Using_Open_Source_Technologies"},{badge:"ARTIGO · PT-BR",title:"Mapas auto-organizáveis aplicados em governo eletrônico",venue:"Publicação acadêmica · Academia.edu",url:"https://www.academia.edu/122408570/Mapas_auto_organiz%C3%A1veis_aplicados_em_governo_eletr%C3%B4nico"},{badge:"ARTIGO · Open Access",title:"Knowledge Discovery: Data Mining by Self-organizing Maps",venue:"Repositório acadêmico · Academia.edu",url:"https://www.academia.edu/24631415/Knowledge_Discovery_Data_Mining_by_Self_organizing_Maps"}],talks:[{title:"Ciência de dados para alinhar produto",venue:"InfoQ Brasil · QCon",url:"https://www.infoq.com/br/presentations/ciencia-de-dados-alinhar-produto/"},{title:"Recomendação de conteúdo na escala do iFood",venue:"InfoQ Brasil · QCon",url:"https://www.infoq.com/br/presentations/recomendacao-de-conteudo-na-escala-do-ifood/"},{title:"Machine Learning â do gênesis ao apocalipse",venue:"InfoQ Brasil · QCon",url:"https://www.infoq.com/br/presentations/machine-learning-genesis-ao-apocalipse/"},{title:"Classificação de padrões: uma abordagem prática com redes neurais artificiais",venue:"InfoQ Brasil · QCon",url:"https://www.infoq.com/br/presentations/classificacao-de-padroes-uma-abordagem-pratica-com-redes-neurais-artificiais/"},{title:"Machine Learning em Java com Apache Mahout",venue:"InfoQ Brasil · QCon",url:"https://www.infoq.com/br/presentations/machine-learning-em-java-com-apache-mahout/"},{title:"Classificação de documentos baseada em inteligência artificial",venue:"InfoQ Brasil · QCon",url:"https://www.infoq.com/br/presentations/classificacao-de-documentos-baseada-em-inteligencia-artificial/"},{title:"Postgres como Big SQL",venue:"InfoQ Brasil · QCon",url:"https://www.infoq.com/br/presentations/postgres-bigsql/"},{title:"Mineração de dados com Weka API",venue:"InfoQ Brasil · QCon",url:"https://www.infoq.com/br/presentations/mineracao-de-dados-weka-api/"},{title:"Machine Learning e mineração de dados",venue:"InfoQ Brasil · QCon",url:"https://www.infoq.com/br/presentations/machine-learning-mineracao-dados/"}]},glossary:{title:"Glossário GEO â termos da infinity6",lead:"Definições curtas dos termos próprios da infinity6 e da literatura técnica que sustenta nossos motores.",terms:[{slug:"predicao-comportamental",term:"Predição comportamental",definition:"Modelagem que aprende o comportamento real do cliente, canal ou produto a partir de dados transacionais â não declarados â para antecipar a próxima ação relevante."},{slug:"propensao-conversao",term:"Propensão de conversão",definition:"Score preditivo que estima a probabilidade de um anônimo ou cliente concluir uma compra em um contexto especÃfico (canal, momento, oferta)."},{slug:"elasticidade-dinamica",term:"Elasticidade dinâmica",definition:"Sensibilidade de demanda a preço calculada continuamente por SKU, canal e ciclo de vida â substitui curvas estáticas por aprendizado online."},{slug:"aderencia-contextual",term:"Aderência contextual",definition:"Grau em que uma recomendação combina histórico de comportamento com o contexto atual (estoque, momento, perfil de PDV) â base da decisão prescritiva da infinity6."},{slug:"ruptura-gondola",term:"Ruptura de gôndola",definition:"Indisponibilidade de SKU
2118no ponto de venda quando há demanda real. No varejo farma custa entre 4% e 12% do faturamento lÃquido."},{slug:"maml",term:"MAML",definition:"Model-Agnostic Meta-Learning. Algoritmo (Finn, Abbeel & Levine, 2017) que treina modelos para se adaptarem rapidamente a novas tarefas com poucas amostras â base do i6-RecSys-Base.g1."},{slug:"topological-loss",term:"Topological Loss",definition:"Função de perda que preserva relações topológicas entre exemplos no espaço latente, melhorando generalização em poucos shots e estabilidade do embedding."},{slug:"active-learning",term:"Active Learning",definition:"Estratégia em que o modelo seleciona ativamente quais amostras rotular para acelerar aprendizado e reduzir custo de anotação."},{slug:"i6-recsys-base-g1",term:"i6-RecSys-Base.g1",definition:"Modelo fundacional proprietário da infinity6 (MAML + Active Learning + Topological Loss) pré-treinado em 1,45 bilhão de registros multissetoriais, adaptável com poucas amostras por cliente."},{slug:"i6signal",term:"i6 Signal",definition:"Camada conversacional preditiva que lê o output dos motores i6 Previsio, i6 RecSys e i6 ElasticPrice e entrega ao time de negócio a próxima ação prescritiva â antecipatória, não reativa."}]},cta:{title:"Quer conhecer os motores em profundidade?",button:"Converse com nosso time técnico"}},en:{hero:{eyebrow:"Proprietary AI",title:"Proprietary AI engines",subtitle:"Applied AI is an organism that builds itself, feeds itself and adapts",lead:"Three in-house engines that learn behavior, anticipate decisions and prescribe action â they do not generate text, they generate outcomes."},thesis:{eyebrow:"From behavior to outcome",title:"AI only needs to know what changes the game",stages:[{label:"Fine tuning",detail:"Calibration from isolated behavior"},{label:"Specific need",detail:"For influence and journey continuity"},{label:"Business outcome",detail:"Business needs and goals to achieve"}],journey:["interest","research","purchase"],attributes:["Relevance","Opportunity","Timing","Need","Substitution","Elasticity","Similarity","Explainability"],pillars:[{title:"Clarity of the problem",text:"Give AI the right problem to solve â not raw data, but the business decision that actually matters."},{title:"Isolate the behavior",text:"Training isolates the behavior that leads to the business goal and removes noisy variables."},{title:"Contextual adherence",text:"It's not about what the customer 'likes' â it's about what they intend and are ready to buy now."}],foundation:{label:"Foundation model",name:"i6-RecSys-Base.g1",description:"MAML + Active Learning + Topological Loss Foundation Model â adaptable from few samples, with external memory to learn new tasks fast.",stats:[{value:"1.45B",label:"records (2025)"},{value:"20B",label:"records (2026)"},{value:"12",label:"public/acquired sources (2025)"},{value:"~50",label:"public/acquired sources (2026)"}],mix:[{value:"15%",label:"financial product behavior"},{value:"45%",label:"e-commerce"},{value:"20%",label:"telecom"},{value:"20%",label:"wholesale / retail"}],references:{title:"Academic references",items:[{author:"Finn, Abbeel & Levine",paper:"Model-Agnostic Meta-Learning (MAML)",note:"Algorithm that trains models to adapt from few samples"},{author:"Vinyals et al.",paper:"Matching Networks for One Shot Learning",note:"Foundation for metric-based meta-learning"},{author:"Ravi & Larochelle",paper:"Optimization as a Model for Few-Shot Learning",note:"Recurrent networks to learn optimizers that generalize"},{author:"Santoro et al.",paper:"Meta-Learning with Memory-Augmented Neural Networks",note:"External memory to learn new tasks rapidly"}]}}},engines:{title:"Three engines. One conversational layer.",lead:"Each engine solves a class of decision. i6 Signal reads the predictive output of all three and delivers the next action to the business team.",items:[{id:"i6recsys",name:"i6 RecSys",tagline:"High-performance recommendation",description:"Personalized, scalable suggestions for product mix and volume â across POS, e-commerce and digital channels."},{id:"i6previsio",name:"i6 Previsio",tagline:"Granular demand forecasting",description:"Accurate forecasts that optimize production, inventory and distribution â eliminating stockouts and overstock."},{id:"i6elasticprice",name:"i6 ElasticPrice",tagline:"Dynamic pricing",description:"Continuously learns from market and demand signals to deliver fast, precise price recommendations."},{id:"i6signal",name:"i6 Signal",tagline:"Predictive conversational layer",description:"Talks to the predictive output of the three engines and delivers anticipatory, prescriptive recommendations for decision-making."}],differentiators:{title:"Unmatched capabilities",items:["Hybrid architecture","Operates on anonymized data","Fine-tuned balance across business goals"]}},diversity:{title:"Diversity balancing",lead:"By analyzing unique behaviors and recommendation patterns, we identify the best unexplored products for each customer â ensuring diverse, relevant suggestions beyond purchase history.",tasks:["Recommended for you","Frequently bought together","Buy it again","Similar items","On sale"],middle:{title:"Fine-tuned training",subt
2118itle:"For precision and diversity"},chartNote:"Distribution of customers by number of diverse products recommended â customers with diverse predictions, while keeping high precision in behavioral alignment.",chartHighlight:"9 recommendations at the same relevance level â even for anonymous users"},explainability:{title:"Explainability that becomes a sales argument",eyebrow:"XAI for Business",lead:"We apply XAI â Explainable AI â to turn predictive outputs into clear, traceable, actionable recommendations.",description:"More than showing a score, we explain the key signals behind every decision: behavior, propensity, inventory, margin, demand, elasticity and similarity. This way AI stops being a black box and starts supporting commercial, operational and strategic decisions with context, confidence and business rationale.",steps:[{title:"Identify drivers",description:"Detect the main factors that influence the recommendation",sample:{sku:"SKU 3874",rows:[{feature:"ct_lst_15_days",weight:"+0.0824"},{feature:"cx_time_tobuy",weight:"+0.0360"},{feature:"ct_lst_7_days",weight:"â0.0352"},{feature:"cx_item_id_weighted",weight:"â0.0239"}]}},{title:"Prioritize factors and structure",description:"Classify factors by estimated impact on sales growth and pick the best message template",cards:[{title:"Increase in demand",subtitle:"prioritize argument of growth opportunity"},{title:"Repurchase occasion",subtitle:"emphasize need for immediate restocking"},{title:"New product",subtitle:"highlight market trend"},{title:"High-selling product",subtitle:"stress risk of stockout"}]},{title:"Generate dynamic argument",description:"Fill the template with dynamic elements, composing a personalized message per POS/SKU",segments:[{label:"Industry",items:[{title:"Consumption pattern",subtitle:"mirrored in comparable seasonal windows"},{title:"Forecasted seasonality",subtitle:"anticipates demand peak in 21 days"},{title:"Smart replenishment",subtitle:"prevents stockout in the highest-turnover channel"}]},{label:"Retail",items:[{title:"High engagement",subtitle:"from similar customer profiles in the last 30 days"},{title:"Optimized bundling",subtitle:"based on successful cross-sell patterns"},{title:"Strong correlation",subtitle:"with the preferred products of high-value customers"}]},{label:"Finance",items:[{title:"Propensity to contract",subtitle:"high affinity score with the offer"},{title:"Aligned risk profile",subtitle:"within the portfolio's defined appetite"}
2118,{title:"Product cross-sell",subtitle:"consistent with the active customer journey"}]},{label:"Pharma",items:[{title:"Treatment adherence",subtitle:"ideal moment to renew prescription"},{title:"Predicted repurchase",subtitle:"continuity window for therapy"},{title:"Clinical-profile recommendation",subtitle:"aligned with the prescribed category"}]}]}]},security:{title:"Security and compliance by design",pillars:[{title:"Anonymization at source",description:"Sensitive data is anonymized before any training â a security prerequisite for every model"},{title:"Secure architecture",description:"Multi-level authentication and route-based access control"},{title:"Isolated environment",description:"Secure, isolated environments protect your data and models from unauthorized access"},{title:"Ready to scale",description:"100% cloud-native solution with automatic resource scaling"}]},challenges:{title:"Why AI fails and how we solve it",lead:"Applied AI is an organism that builds itself, feeds itself and adapts. The main challenges we face with clients and how infinity6 addresses each one.",headers:{challenge:"Challenge",learning:"Learning",resolution:"How we solve it"},rows:[{challenge:"Non-digital or fragmented journeys",learning:"Without interaction, AI cannot learn",resolution:"Hybrid touchpoints (contextual, WhatsApp, simple integrations)"},{challenge:"Transactional data without context",learning:"Cold data produces blind models",resolution:"Functional models that generalize behavior"},{challenge:"Good data, but disorganized",learning:"Volume is not quality",resolution:"Structuring and curating the most relevant variables"},{challenge:"Right Person Contact",learning:"The wrong channel cancels the right message",resolution:"Data enrichment"},{challenge:"No corporate strategy",learning:"Isolated AI is inefficient AI",resolution:"Traceability between AI application, strategic goals and business areas"},{challenge:"Unrealistic expectations",learning:'"AI will solve everything" is the first step toward failure',resolution:"Incremental process with fast deliveries"},{challenge:"Focus on model, not on outcome",learning:"The model is means, not end",resolution:"Decision-oriented AI, not technical curiosity"},{challenge:"Dependence on generic AI",learning:"Not every AI needs to be proprietary",resolution:"Combine GLM (general large model) for automation and SAM (small actionable model) for precision and scale"},{challenge:"Governance and privacy",learning:"Fear of failure blocks innovation",resolution:"AI by design: anonymization, security and responsible experimentation"}]},community:{title:"infinity6 community",description:"We publish open models, datasets and experiments on Hugging Face â part of what we learn flows back to the community.",cta:"Visit our community"},research:{eyebrow:"Research & Foundations",title:"Scientific foundations behind the i6 engines",lead:"Proprietary technical references: studies developed by the founder of infinity6 and our R&D department, on an AI research base built since 2010, powering i6Previsio, i6RecSys and i6ElasticPrice â from self-organizing maps to unsupervised clustering and rule-free pattern discovery",publicationsLabel:"Peer-reviewed publications",talksLabel:"Technical talks",openLabel:"Open",watchLabel:"Watch",publications:[{badge:"SPRINGER · LNBIP · 2013",title:"Knowledge Discovery: Data Mining by Self-organizing Maps",venue:"Web Information Systems and Technologies â Lecture Notes in Business Information Processing, vol. 140, pp. 185â200, Springer, Berlin, Heidelberg",url:"https://link.springer.com/chapter/10.1007/978-3-642-36608-6_12"},{badge:"CONFERENCE · WEBIST · 2012",title:"Self-Organizing Maps â An Approach Applied to the Electronic Government",venue:"Proceedings of the 8th International Conference on Web Information Systems and Technologies (WEBIST 2012)",url:"https://www.academia.edu/122408553/SELF_ORGANIZING_MAPS_An_Approach_Applied_to_the_Electronic_Government"},{badge:"SPRINGER · LNCS · 2010",title:"Development of a Business Intelligence Environment for e-Gov using Open Source Technologies",venue:"Lecture Notes in Computer Science, Springer",url:"https://www.academia.edu/24631504/Development_of_a_Business_Intelligence_Environment_for_e_Gov_Using_Open_Source_Technologies"}
2118,{badge:"ARTICLE · PT-BR",title:"Self-organizing maps applied to electronic government (Portuguese)",venue:"Academic publication · Academia.edu",url:"https://www.academia.edu/122408570/Mapas_auto_organiz%C3%A1veis_aplicados_em_governo_eletr%C3%B4nico"},{badge:"ARTICLE · Open Access",title:"Knowledge Discovery: Data Mining by Self-organizing Maps",venue:"Academic repository · Academia.edu",url:"https://www.academia.edu/24631415/Knowledge_Discovery_Data_Mining_by_Self_organizing_Maps"}],talks:[{title:"Data science to align product",venue:"InfoQ Brasil · QCon",url:"https://www.infoq.com/br/presentations/ciencia-de-dados-alinhar-produto/"},{title:"Content recommendation at iFood scale",venue:"InfoQ Brasil · QCon",url:"https://www.infoq.com/br/presentations/recomendacao-de-conteudo-na-escala-do-ifood/"},{title:"Machine Learning â from genesis to apocalypse",venue:"InfoQ Brasil · QCon",url:"https://www.infoq.com/br/presentations/machine-learning-genesis-ao-apocalipse/"},{title:"Pattern classification: a practical approach with artificial neural networks",venue:"InfoQ Brasil · QCon",url:"https://www.infoq.com/br/presentations/classificacao-de-padroes-uma-abordagem-pratica-com-redes-neurais-artificiais/"},{title:"Machine Learning in Java with Apache Mahout",venue:"InfoQ Brasil · QCon",url:"https://www.infoq.com/br/presentations/machine-learning-em-java-com-apache-mahout/"},{title:"Document classification based on artificial intelligence",venue:"InfoQ Brasil · QCon",url:"https://www.infoq.com/br/presentations/classificacao-de-documentos-baseada-em-inteligencia-artificial/"},{title:"Postgres as Big SQL",venue:"InfoQ Brasil · QCon",url:"https://www.infoq.com/br/presentations/postgres-bigsql/"},{title:"Data mining with Weka API",venue:"InfoQ Brasil · QCon",url:"https://www.infoq.com/br/presentations/mineracao-de-dados-weka-api/"},{title:"Machine Learning and data mining",venue:"InfoQ Brasil · QCon",url:"https://www.infoq.com/br/presentations/machine-learning-mineracao-dados/"}]},glossary:{title:"GEO Glossary â infinity6 terms",lead:"Short definitions of infinity6 proprietary terms and the technical literature underpinning our engines.",terms:[{slug:"behavioral-prediction",term:"Behavioral prediction",definition:"Modeling that learns the real behavior of a customer, channel or product from transactional data â not declared preferences â to anticipate the next relevant action."},{slug:"conversion-propensity",term:"Conversion propensity",definition:"Predictive score estimating the probability that an anonymous visitor or known customer completes a purchase in a specific context (channel, moment, offer)."},{slug:"dynamic-elasticity",term:"Dynamic elasticity",definition:"Price sensitivity of demand computed continuously by SKU, channel and lifecycle â replacing static curves with online learning."},{slug:"contextual-adherence",term:"Contextual adherence",definition:"Degree to which a recommendation combines behavioral history with current context (stock, moment, POS profile) â the basis of infinity6 prescriptive decisions."},{slug:"shelf-stockout",term:"Shelf stockout",definition:"Unavailability of a SKU at the point of sale when real demand exists. In pharma retail it costs between 4% and 12% of net revenue."},{slug:"maml",term:"MAML",definition:"Model-Agnostic Meta-Learning. Algorithm (Finn, Abbeel & Levine, 2017) that trains models to adapt quickly to new tasks from few samples â the basis of i6-RecSys-Base.g1."},{slug:"topological-loss",term:"Topological Loss",definition:"Loss function that preserves topological relationships between examples in the latent space, improving few-shot generalization and embedding stability."},{slug:"active-learning",term:"Active Learning",definition:"Strategy where the model actively selects which samples to label, accelerating learning and reducing annotation cost."},{slug:"i6-recsys-base-g1",term:"i6-RecSys-Base.g1",definition:"infinity6 proprietary foundation model (MAML + Active Learning + Topological Loss) pre-trained on 1.45 billion cross-sector records, adaptable from few client samples."},{slug:"i6signal",term:"i6 Signal",definition:"Predictive conversational layer that reads the output of the i6 Previsio, i6 RecSys and i6 ElasticPrice engines and delivers the next prescriptive action to business teams â anticipatory, not reactive."}]},cta:{title:"Want to explore the engines in depth?",button:"Talk to our technical team"}}},ED=S.memo(({content:e})=>s.jsxs("section",{className:"relative w-full pt-28 pb-6 md:pt-36 md:pb-8 bg-[#0B1224] overflow-hidden",children:[s.jsxs("svg",{"aria-hidden":"true",className:"absolute inset-x-0 bottom-0 w-full h-32 md:h-48 opacity-[0.07]",viewBox:"0 0 1200 200",preserveAspectRatio:"none",children:[s.jsx("path",{d:"M0,120 Q150,40 300,120 T600,120 T900,120 T1200,120",fill:"none",stroke:"#F4845F",strokeWidth:"1"}),s.jsx("path",{d:"M0,140 Q200,80 400,140 T800,140 T1200,140",fill:"none",stroke:"#FFFFFF",strokeWidth:"0.5"})]}),s.jsxs("div",{className:"container mx-auto px-6 relative z-10 text-center max-w-4xl",children:[s.jsx("span",{className:"inline-block text-[11px] font-semibold tracking-[0.25em] uppercase text-[#F4845F] mb-6",children:e.eyebrow}),s.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold text-white leading-tight mb-6",children:e.title}),s.jsx("p",{className:"text-lg md:text-xl text-white/70 font-light italic mb-4",children:e.subt
2118itle})]})]}));ED.displayName="OurAIHero";const zTe=[lm,BB,LB],TD=S.memo(({content:e})=>s.jsx("section",{className:"relative py-14 md:py-20 bg-[#0B1224]",children:s.jsxs("div",{className:"container mx-auto px-6 max-w-6xl",children:[s.jsx("p",{className:"text-[11px] font-semibold tracking-[0.3em] uppercase text-[#F4845F] text-center mb-4",children:e.eyebrow}),s.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-white text-center mb-10 max-w-3xl mx-auto leading-tight",children:e.title}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 md:gap-12",children:e.pillars.map((t,n)=>{const r=zTe[n];return s.jsxs("div",{className:"text-center md:text-left",children:[s.jsx(r,{size:22,strokeWidth:1.25,className:"text-[#F4845F] mx-auto md:mx-0 mb-4"}),s.jsx("h3",{className:"text-base font-semibold text-white mb-2",children:t.title}),s.jsx("p",{className:"text-sm text-white/55 leading-relaxed",children:t.text})]},t.title)})}),s.jsxs("div",{className:"mt-14 pt-10 border-t border-white/10",children:[s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-[1fr_auto_1fr_auto_1fr] items-stretch gap-4 md:gap-2 mb-8 text-left",children:e.stages.map((t,n)=>s.jsxs(S.Fragment,{children:[s.jsxs("div",{className:"border border-white/10 rounded-lg p-6 bg-white/[0.02]",children:[s.jsxs("p",{className:"text-[11px] font-semibold tracking-[0.2em] uppercase text-[#F4845F] mb-2",children:["Step 0",n+1]}),s.jsx("h3",{className:"text-base md:text-lg font-bold text-white mb-2",children:t.label}),s.jsx("p",{className:"text-xs text-white/55 leading-relaxed",children:t.detail}),n===1&&s.jsx("div",{className:"mt-4 pt-4 border-t border-white/10 flex items-center gap-2 flex-wrap",children:e.journey.map((r,a)=>s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-xs text-white/70 italic",children:r}),a<e.journey.length-1&&s.jsx("span",{className:"text-[#F4845F]/60 text-xs",children:"â"})]},r))})]}),n<e.stages.length-1&&s.jsx("div",{className:"hidden md:flex items-center justify-center text-[#F4845F]","aria-hidden":"true",children:s.jsx("svg",{width:"32",height:"12",viewBox:"0 0 32 12",fill:"none",children:s.jsx("path",{d:"M0 6h28m0 0l-5-5m5 5l-5 5",stroke:"currentColor",strokeWidth:"1.2"})})})]},t.label))}),s.jsx("div",{className:"flex flex-wrap justify-center gap-2",children:e.attributes.map(t=>s.jsx("span",{className:"text-xs text-white/55 px-3 py-1.5 rounded-full border border-white/10",children:t},t))})]})]})}));TD.displayName="ThesisSection";const BTe={i6recsys:Ek,i6previsio:_p,i6elasticprice:MI,i6signal:zI},OD=S.memo(({content:e,foundation:t})=>s.jsx("section",{className:"relative pt-6 pb-14 md:pt-8 md:pb-20 bg-[#0A101F]",children:s.jsxs("div",{className:"container mx-auto px-6 max-w-6xl",children:[s.jsxs("div",{className:"text-center mb-10 max-w-3xl mx-auto",children:[s.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-white mb-4",children:e.title}),s.jsx("p",{className:"text-sm md:text-base text-white/55 leading-relaxed",children:e.lead})]}),(()=>{const n=e.items.find(i=>i.id==="i6signal"),r=e.items.filter(i=>i.id!=="i6signal"),a=(i,o=!1)=>{const l=BTe[i.id];return s.jsxs("article",{id:i.id,className:`group border rounded-lg p-7 transition-all duration-300 scroll-mt-24 ${o?"border-[#F4845F]/40 bg-gradient-to-r from-[#F4845F]/[0.06] via-white/[0.02] to-[#F4845F]/[0.06] hover:border-[#F4845F]/60":"border-white/10 bg-white/[0.015] hover:border-[#F4845F]/40 hover:bg-white/[0.03]"}`,itemScope:!0,itemType:"https://schema.org/SoftwareApplication",children:[s.jsx("meta",{itemProp:"applicationCategory",content:"BusinessApplication"}),s.jsx("meta",{itemProp:"operatingSystem",content:"Cloud"}),s.jsxs("div",{className:"flex items-start gap-4 mb-4",children:[s.jsx("div",{className:`shrink-0 w-10 h-10 rounded-md border flex items-center justify-center text-[#F4845F] transition-colors ${o?"border-[#F4845F]/50":"border-white/10 group-hover:border-[#F4845F]/50"}`,children:s.jsx(l,{size:18,strokeWidth:1.5})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-bold text-white",itemProp:"name",children:i.name}),s.jsx("p",{className:"text-[11px] text-[#F4845F] uppercase tracking-wider font-semibold mt-0.5",children:i.tagline})]})]}),s.jsx("p",{className:"text-sm text-white/60 leading-relaxed",itemProp:"description",children:i.description})]},i.id)};return s.jsxs("div",{children:[n&&s.jsxs("div",{children:[s.jsx("p",{className:"text-[11px] font-semibold tracking-[0.25em] uppercase text-[#F4845F]/80 text-center mb-3",children:"Camada conversacional"}),a(n,!0)]}
2118),s.jsxs("div",{"aria-hidden":!0,className:"grid grid-cols-3 gap-5 h-8 px-[12%] md:px-[18%]",children:[s.jsx("div",{className:"flex justify-center",children:s.jsx("span",{className:"w-px h-full bg-gradient-to-b from-[#F4845F]/50 to-[#F4845F]/10"})}),s.jsx("div",{className:"flex justify-center",children:s.jsx("span",{className:"w-px h-full bg-gradient-to-b from-[#F4845F]/50 to-[#F4845F]/10"})}),s.jsx("div",{className:"flex justify-center",children:s.jsx("span",{className:"w-px h-full bg-gradient-to-b from-[#F4845F]/50 to-[#F4845F]/10"})})]}),s.jsx("p",{className:"text-[11px] font-semibold tracking-[0.25em] uppercase text-white/40 text-center mb-3",children:"Motores preditivos"}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5",children:r.map(i=>a(i))})]})})(),s.jsxs("div",{className:"mt-8 border border-white/10 rounded-lg p-8 md:p-10 bg-white/[0.02]",children:[s.jsxs("div",{className:"flex flex-col md:flex-row md:items-end md:justify-between gap-4 mb-6",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-[11px] font-semibold tracking-[0.2em] uppercase text-[#F4845F] mb-2",children:t.label}),s.jsx("h3",{className:"text-2xl md:text-3xl font-bold text-white font-mono tracking-tight",children:t.name})]}),s.jsx("p",{className:"text-sm text-white/55 leading-relaxed max-w-md",children:t.description})]}),s.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 md:gap-8 pt-6 border-t border-white/10",children:t.stats.map(n=>s.jsxs("div",{children:[s.jsx("div",{className:"text-xl md:text-2xl font-bold text-white mb-1 font-mono",children:n.value}),s.jsx("div",{className:"text-[11px] text-white/45 uppercase tracking-wider",children:n.label})]},n.label))}),s.jsx("div",{className:"flex flex-wrap gap-x-6 gap-y-2 mt-6 pt-6 border-t border-white/10",children:t.mix.map(n=>s.jsxs("div",{className:"flex items-baseline gap-1.5 text-xs",children:[s.jsx("span",{className:"text-[#F4845F] font-semibold font-mono",children:n.value}),s.jsx("span",{className:"text-white/45",children:n.label})]},n.label))}),s.jsxs("details",{className:"mt-6 pt-6 border-t border-white/10 group",children:[s.jsxs("summary",{className:"cursor-pointer text-[11px] font-semibold tracking-[0.2em] uppercase text-white/45 hover:text-[#F4845F] transition-colors list-none flex items-center gap-2",children:[s.jsx("span",{className:"inline-block w-2 h-px bg-current"}),t.references.title,s.jsx("span",{className:"ml-auto group-open:rotate-180 transition-transform text-xs",children:"â¾"})]}),s.jsx("ul",{className:"mt-4 space-y-3 text-xs text-white/55",children:t.references.items.map(n=>s.jsxs("li",{className:"leading-relaxed",children:[s.jsx("span",{className:"text-white/75 font-medium",children:n.author})," â ",s.jsx("em",{children:n.paper}),s.jsx("div",{className:"text-white/40 italic mt-0.5",children:n.note})]},n.paper))})]})]}),s.jsxs("div",{className:"mt-12 pt-8 border-t border-white/5",children:[s.jsx("p",{className:"text-[11px] font-semibold tracking-[0.25em] uppercase text-white/40 text-center mb-5",children:e.differentiators.title}),s.jsx("div",{className:"flex flex-wrap justify-center gap-2 md:gap-3",children:e.differentiators.items.map(n=>s.jsx("span",{className:"text-xs md:text-sm text-white/65 px-4 py-2 rounded-full border border-white/10 bg-white/[0.02]",children:n},n))})]})]})}));OD.displayName="EnginesGrid";const y5=[{x:"1",y:460},{x:"2",y:445},{x:"3",y:470},{x:"4",y:490},{x:"5",y:520},{x:"6",y:575},{x:"7",y:600},{x:"8",y:605},{x:"9",y:2040}],ID=S.memo(({content:e})=>s.jsx("section",{className:"relative py-12 md:py-16 bg-[#0A101F] border-t border-white/5",children:s.jsxs("div",{className:"container mx-auto px-6 max-w-6xl",children:[s.jsxs("div",{className:"text-center mb-10 max-w-3xl mx-auto",children:[s.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-white mb-4",children:e.title}),s.jsx("p",{className:"text-sm md:text-base text-white/55 leading-relaxed",children:e.lead})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-[auto_1fr_2fr] items-center gap-8 md:gap-10",children:[s.jsx("div",{className:"flex flex-col gap-2",children:e.tasks.map(t=>s.jsx("span",{className:"text-xs text-white/65 px-4 py-2 rounded border border-white/10 bg-white/[0.02] text-center md:text-left whitespace-nowrap",children:t},t))}),s.jsxs("div",{className:"text-center",children:[s.jsx(Un,{size:28,strokeWidth:1.2,className:"text-[#F4845F] mx-auto mb-3"}),s.jsx("p",{className:"text-sm font-semibold text-white",children:e.middle.title}),s.jsx("p",{className:"text-xs text-white/45 mt-1",children:e.middle.subtitle}),s.jsx("svg",{"aria-hidden":"true",className:"hidden md:block mx-auto mt-4 text-[#F4845F]/50",width:"40",height:"12",viewBox:"0 0 40 12",fill:"none",children:s.jsx("path",{d:"M0 6h36m0 0l-5-5m5 5l-5 5",stroke:"currentColor",strokeWidth:"1"})})]}),s.jsxs("div",{className:"relative border border-white/10 rounded-lg p-5 bg-white/[0.02]",children:[s.jsxs("div",{className:"absolute top-3 right-3 z-20 max-w-[220px] border border-[#F4845F]/40 bg-[#0B1224]/95 rounded px-3 py-2 animate-fade-in shadow-[0_0_28px_-12px_rgba(244,132,95,0.7)]",children:[s.jsxs("div",{className:"flex items-center gap-1.5 mb-1",children:[s.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full bg-[#F4845F] animate-pulse"}),s.jsx("p",{className:"text-[10px] text-[#F4845F] font-bold uppercase tracking-wider",children:"Insight · 9"})]}),s.jsx("p",{className:"text-[11px] text-white/75 leading-snug",children:e.chartHighlight})]}),s.jsxs("div",{className:"relative h-48 md:h-56",children:[s.jsx("div",{"aria-hidden":!0,
2118className:"pointer-events-none absolute z-10 animate-pulse-soft rounded-sm bg-[#F4845F] blur-md",style:{right:"2.5%",bottom:"32px",width:"7%",height:"78%",transformOrigin:"bottom center"}}),s.jsx(Gr,{width:"100%",height:"100%",children:s.jsxs(Dp,{data:y5,margin:{top:8,right:8,left:0,bottom:8},children:[s.jsx(sn,{dataKey:"x",tick:{fill:"rgba(255,255,255,0.4)",fontSize:10},axisLine:{stroke:"rgba(255,255,255,0.1)"},tickLine:!1}),s.jsx(Ht,{tick:{fill:"rgba(255,255,255,0.4)",fontSize:10},axisLine:{stroke:"rgba(255,255,255,0.1)"},tickLine:!1,width:40}),s.jsx(Mt,{cursor:{fill:"rgba(244,132,95,0.05)"},contentStyle:{background:"#0B1224",border:"1px solid rgba(255,255,255,0.1)",borderRadius:6,fontSize:12,color:"#fff"}}),s.jsx(fn,{dataKey:"y",radius:[2,2,0,0],children:y5.map(t=>s.jsx(hu,{fill:t.x==="9"?"#F4845F":"rgba(255,255,255,0.18)"},t.x))})]})})]}),s.jsx("p",{className:"text-[11px] text-white/45 mt-3 leading-relaxed",children:e.chartNote})]})]})]})}));ID.displayName="DiversityBalanceSection";const x5=76,qTe=3,UTe=2600,MD=S.memo(({segments:e})=>{var m;const t=S.useMemo(()=>e.flatMap(p=>p.items.map(f=>({...f,segment:p.label}))),[e]),n=t.length,[r,a]=S.useState(0),[i,o]=S.useState(!0),[l,c]=S.useState(!1);S.useEffect(()=>{var g;const p=window.matchMedia("(prefers-reduced-motion: reduce)");c(p.matches);const f=()=>c(p.matches);return(g=p.addEventListener)==null||g.call(p,"change",f),()=>{var h;return(h=p.removeEventListener)==null?void 0:h.call(p,"change",f)}},[]),S.useEffect(()=>{if(l||n===0)return;const p=setInterval(()=>{document.visibilityState==="visible"&&a(f=>f+1)},UTe);return()=>clearInterval(p)},[l,n]),S.useEffect(()=>{if(r<n||n===0)return;const p=setTimeout(()=>{o(!1),a(0),requestAnimationFrame(()=>{requestAnimationFrame(()=>o(!0))})},700);return()=>clearTimeout(p)},[r,n]);const u=S.useMemo(()=>[...t,...t],[t]),d=((m=t[r%Math.max(n,1)])==null?void 0:m.segment)??"";return n===0?null:s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-baseline gap-2 mb-3 h-4",children:[s.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full bg-[#F4845F]"}),s.jsx("span",{className:"text-[10px] font-semibold tracking-[0.2em] uppercase text-[#F4845F]/90 animate-fade-in",children:d},d)]}),s.jsxs("div",{className:"relative overflow-hidden",style:{height:x5*qTe-8},"aria-live":"polite",children:[s.jsx("div",{className:"flex flex-col gap-2",style:{transform:`translateY(-${(l?0:r)*x5}px)`,transition:i&&!l?"transform 700ms cubic-bezier(0.4, 0, 0.2, 1)":"none"},children:u.map((p,f)=>s.jsxs("div",{className:"border border-white/10 rounded p-3 bg-[#0B1224] h-[68px] flex flex-col justify-center",children:[s.jsx("p",{className:"text-xs font-semibold text-white uppercase tracking-wide",children:p.title}),s.jsx("p",{className:"text-[11px] text-white/50 mt-0.5 leading-snug",children:p.subtitle})]},f))}),s.jsx("div",{className:"absolute top-0 inset-x-0 h-5 bg-gradient-to-b from-[#0A101F] to-transparent pointer-events-none"}),s.jsx("div",{className:"absolute bottom-0 inset-x-0 h-5 bg-gradient-to-t from-[#0A101F] to-transparent pointer-events-none"})]})]})});MD.displayName="SegmentArgumentCarousel";const $D=S.memo(({content:e})=>s.jsx("section",{className:"relative py-12 md:py-16 bg-[#0A101F] border-t border-white/5",children:s.jsxs("div",{className:"container mx-auto px-6 max-w-6xl",children:[s.jsxs("div",{className:"text-center mb-10 max-w-3xl mx-auto",children:[s.jsx("span",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full border border-[#F4845F]/30 bg-[#F4845F]/10 text-[#F4845F] text-[10px] md:text-[11px] font-semibold tracking-[0.25em] uppercase mb-3",children:e.eyebrow}),s.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-white mb-4",children:e.title}),s.jsx("p",{className:"text-sm md:text-base text-white/70 leading-relaxed mb-4",children:e.lead}),s.jsx("p",{className:"text-sm md:text-base text-white/55 leading-relaxed",children:e.description})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5 md:gap-4 relative",children:e.steps.map((t,n)=>s.jsxs("div",{className:"relative",children:[s.jsxs("div",{className:"border border-white/10 rounded-lg p-6 bg-white/[0.02] h-full",children:[s.jsxs("div",{className:"flex items-baseline gap-3 mb-3",children:[s.jsxs("span",{className:"text-[#F4845F] text-xl font-mono font-bold",children:["0",n+1]}),s.jsx("h3",{className:"text-base md:text-lg font-bold text-white",children:t.title})]}),s.jsx("p",{className:"text-xs text-white/55 leading-relaxed mb-5",children:t.description}),t.sample&&s.jsxs("div",{className:"border border-white/10 rounded p-3 bg-[#0B1224]",children:[s.jsxs("p",{className:"text-[10px] text-white/45 mb-2 font-mono",children:["Data 0 â ",t.sample.sku]}),s.jsx("ul",{className:"space-y-1.5",children:t.sample.rows.map(r=>s.jsxs("li",{className:"flex items-center justify-between text-[11px] font-mono",children:[s.jsx("span",{className:"text-white/55 truncate pr-2",children:r.feature}),s.jsx("span",{className:r.weight.startsWith("+")?"text-[#F4845F]":"text-white/35",children:r.weight})]},r.feature))})]}),t.cards&&s.jsx("ul",{className:"space-y-2",children:t.cards.map(r=>s.jsxs("li",{className:"border border-white/10 rounded p-3 bg-[#0B1224]",children:[s.jsx("p",{className:"text-xs font-semibold text-white uppercase tracking-wide",children:r.title}),s.jsx("p",{className:"text-[11px] text-white/50 mt-0.5",children:r.subtitle})]},r.title))}),t.segments&&s.jsx(MD,{segments:t.segments})]}),n<e.steps.length-1&&s.jsx("div",{className:"hidden md:flex absolute top-1/2 -right-3 -translate-y-1/2 z-10 text-[#F4845F]","aria-hidden":"true",children:s.jsx("svg",{width:"20",height:"12",viewBox:"0 0 20 12",fill:"none",children:s.jsx("path",{d:"M0 6h16m0 0l-5-5m5 5l-5 5",stroke:"currentColor",strokeWidth:"1.2"})})})]},t.title))})]})}));$D.displayName="ExplainabilitySection";const WTe=[zB,t7,DI,VB,KB],FD=S.memo(({content:e})=>s.jsx("section",{className:"relative py-14 md:py-20 bg-[#0B1224]",children:s.jsxs("div",{className:"container mx-auto px-6 max-w-6xl",children:[s.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-white text-center mb-10 max-w-3xl mx-auto leading-tight",children:e.title}),s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-px bg-white/10 rounded-lg overflow-hidden",children:e.pillars.map((t,n)=>{const r=WTe[n];return s.jsxs("div",{className:"bg-[#0B1224] p-6 md:p-7 text-center md:text-left",children:[s.jsx(r,{size:20,strokeWidth:1.3,className:"text-[#F4845F] mx-auto md:mx-0 mb-4"}),s.jsx("h3",{className:"text-sm font-semibold text-white mb-2",children:t.title}),s.jsx("p",{className:"text-xs text-white/55 leading-relaxed",children:t.description})]},t.title)})})]})}));FD.displayName="SecuritySection";const RD=S.memo(({content:e})=>s.jsx("section",{className:"relative py-14 md:py-20 bg-[#0A101F]",children:s.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[s.jsxs("div",{className:"text-center mb-10",children:[s.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-white mb-4",children:e.title}),s.jsx("p",{className:"text-sm md:text-base text-white/55 leading-relaxed max-w-2xl mx-auto",children:e.lead})]}),s.jsx("div",{className:"overflow-x-auto border border-white/10 rounded-lg bg-white/[0.02]",children:s.jsxs("table",{className:"w-full border-collapse min-w-[640px]",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"bg-white/5 border-b border-white/10",children:[s.jsx("th",{className:"w-12 px-3 md:px-4 py-3 text-left text-[11px] uppercase tracking-[0.18em] text-white/50 font-semibold",children:"#"}),s.jsx("th",{className:"px-3 md:px-4 py-3 text-left text-[11px] uppercase tracking-[0.18em] text-white/50 font-semibold",children:e.headers.challenge}),s.jsx("th",{className:"px-3 md:px-4 py-3 text-left text-[11px] uppercase tracking-[0.18em] text-white/50 font-semibold",children:e.headers.learning}),s.jsx("th",{className:"px-3 md:px-4 py-3 text-left text-[11px] uppercase tracking-[0.18em] text-[#F4845F]/80 font-semibold",children:e.headers.resolution})]})}),s.jsx("tbody",{children:e.rows.map((t,n)=>s.jsxs("tr",{className:"border-b border-white/10 last:border-b-0 hover:bg-white/[0.03] transition-colors",children:[s.jsx("td",{className:"px-3 md:px-4 py-4 align-top text-[#F4845F]/70 font-mono text-xs",children:String(n+1).padStart(2,"0")}),s.jsx("td",{className:"px-3 md:px-4 py-4 align-top text-white font-semibold text-[13px] md:text-sm leading-snug",children:t.challenge}),s.jsx("td",{className:"px-3 md:px-4 py-4 align-top text-white/70 text-[13px] md:text-sm leading-relaxed italic",children:t.learning}),s.jsx("td",{className:"px-3 md:px-4 py-4 align-top text-white/80 text-[13px] md:text-sm leading-relaxed",children:t.resolution})]},t.challenge))})]})})]})}));RD.displayName="ChallengesAccordion";const DD=S.memo(({content:e})=>s.jsx("section",{className:"relative py-14 md:py-20 bg-[#0B1224]",children:s.jsxs("div",{className:"container mx-auto px-6 max-w-3xl text-center",children:[s.jsx("svg",{viewBox:"0 0 95 88",fill:"
2118currentColor",width:"40",height:"40","aria-hidden":"true",className:"mx-auto mb-5 text-[#F4845F]",children:s.jsx("path",{d:"M47.5 0C21.3 0 0 19.7 0 44c0 13.8 6.7 26.2 17.2 34.5 1.5 1.2 3.4 1.8 5.3 1.8h50c1.9 0 3.8-.6 5.3-1.8C88.3 70.2 95 57.8 95 44 95 19.7 73.7 0 47.5 0zM25 52c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8zm45 0c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8zM35 65c0-3.3 5.6-6 12.5-6s12.5 2.7 12.5 6-5.6 6-12.5 6S35 68.3 35 65z"})}),s.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-white mb-4",children:e.title}),s.jsx("p",{className:"text-sm md:text-base text-white/60 leading-relaxed mb-7 max-w-xl mx-auto",children:e.description}),s.jsxs("a",{href:"https://huggingface.co/infinity6",target:"_blank",rel:"noopener noreferrer",className:"group inline-flex items-center gap-2 px-6 py-3 bg-transparent text-white text-sm font-semibold rounded-xl border border-white/30 hover:bg-white hover:text-[#0B1224] hover:border-white transition-all duration-300",children:[e.cta,s.jsx(cw,{size:16,className:"transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5"})]})]})}));DD.displayName="CommunitySection";const LD=S.memo(({content:e})=>s.jsx("section",{className:"relative py-14 md:py-20 bg-[#0B1224]",children:s.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[s.jsxs("div",{className:"mb-10 md:mb-14",children:[s.jsx("p",{className:"text-[11px] uppercase tracking-[0.22em] text-[#F4845F] mb-3",children:e.eyebrow}),s.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-white leading-tight mb-4",children:e.title}),s.jsx("p",{className:"text-sm md:text-base text-white/60 leading-relaxed max-w-3xl",children:e.lead})]}),s.jsxs("div",{className:"border-t border-white/10 pt-6",children:[s.jsx("h3",{className:"text-xs uppercase tracking-[0.18em] text-white/40 mb-4",children:e.publicationsLabel}),s.jsx("ul",{className:"divide-y divide-white/10",children:e.publications.map(t=>s.jsx("li",{className:"py-5 group",children:s.jsxs("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",className:"flex flex-col md:flex-row md:items-start md:justify-between gap-3 md:gap-6",children:[s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#F4845F] mb-1.5",children:t.badge}),s.jsx("h4",{className:"text-base md:text-lg text-white font-semibold leading-snug group-hover:text-[#F4845F] transition-colors",children:t.title}),s.jsx("p",{className:"text-sm text-white/60 italic mt-1 leading-relaxed",children:t.venue})]}),s.jsxs("span",{className:"inline-flex items-center gap-1 text-sm text-white/70 group-hover:text-[#F4845F] transition-colors shrink-0 md:pt-6",children:[e.openLabel,s.jsx(cw,{size:14,className:"transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5"})]})]})},t.url))})]}),s.jsxs("div",{className:"border-t border-white/10 pt-6 mt-12",children:[s.jsx("h3",{className:"text-xs uppercase tracking-[0.18em] text-white/40 mb-4",children:e.talksLabel}),s.jsx("ul",{className:"divide-y divide-white/10",children:e.talks.map(t=>s.jsx("li",{className:"py-5 group",children:s.jsxs("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",className:"flex flex-col md:flex-row md:items-start md:justify-between gap-3 md:gap-6",children:[s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("p",{className:"text-[11px] uppercase tracking-wider text-[#F4845F] mb-1.5",children:t.venue}),s.jsx("h4",{className:"text-base md:text-lg text-white font-semibold leading-snug group-hover:text-[#F4845F] transition-colors",children:t.title})]}),s.jsxs("span",{className:"inline-flex items-center gap-1 text-sm text-white/70 group-hover:text-[#F4845F] transition-colors shrink-0 md:pt-4",children:[e.watchLabel,s.jsx(cw,{size:14,className:"transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5"})]})]})},t.url))})]})]})}));LD.displayName="ResearchSection";const zD=S.memo(({content:e})=>{const{language:t}=be(),n=t==="pt"?"Glossário":"Glossary";return s.jsx("section",{id:"glossario",className:"relative py-12 md:py-16 bg-[#0B1224] border-t border-white/5",children:s.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[s.jsx("p",{className:"text-[11px] font-semibold tracking-[0.3em] uppercase text-[#F4845F] mb-8",children:n}),s.jsx("dl",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-10 gap-y-6",children:e.terms.map(r=>s.jsxs("div",{id:`glossario-${r.slug}`,className:"border-l border-white/10 pl-5 scroll-mt-24",children:[s.jsx("dt",{className:"text-sm font-semibold text-[#F4845F] mb-1.5 tracking-tight",children:r.term}),s.jsx("dd",{className:"text-sm text-white/65 leading-relaxed",children:r.definition})]},r.slug))})]})})});zD.displayName="GlossarySection";const os="https://infinity6.ai",BD=S.memo(()=>{const{language:e}=be(),t=LTe[e],n=S.useMemo(()=>{const r=`${os}/${e}/our-ai`,a={"@context":"https://schema.org","@type":"TechArticle",headline:t.hero.title,de
2118scription:t.hero.lead,url:r,image:`${os}/favicon.ico`,inLanguage:e==="pt"?"pt-BR":"en",author:{"@type":"Organization",name:"infinity6",url:os},publisher:{"@type":"Organization",name:"infinity6",url:os},about:t.engines.items.map(c=>c.name),keywords:["proprietary AI","predictive intelligence","recommendation engine","demand forecasting","dynamic pricing","i6-RecSys-Base.g1","MAML","Active Learning","Topological Loss"]},i=t.engines.items.map(c=>({"@context":"https://schema.org","@type":"SoftwareApplication",name:c.name,applicationCategory:"BusinessApplication",operatingSystem:"Cloud",description:c.description,url:`${r}#${c.id}`,creator:{"@type":"Organization",name:"infinity6",url:os},provider:{"@type":"Organization",name:"infinity6",url:os}})),o={"@context":"https://schema.org","@type":"DefinedTermSet","@id":`${r}#glossario`,name:t.glossary.title,description:t.glossary.lead,inLanguage:e==="pt"?"pt-BR":"en",hasDefinedTerm:t.glossary.terms.map(c=>({"@type":"DefinedTerm","@id":`${r}#glossario-${c.slug}`,name:c.term,description:c.definition,inDefinedTermSet:`${r}#glossario`,url:`${r}#glossario-${c.slug}`}))},l=a2.filter(c=>typeof c.numericValue=="number").map(c=>({"@context":"https://schema.org","@type":"Observation",name:c.label[e],observationAbout:{"@type":"Organization",name:"infinity6",url:os},variableMeasured:{"@type":"PropertyValue",name:c.label[e],...c.unitText?{unitText:c.unitText}:{}},measuredValue:c.numericValue,...c.unitText?{unitText:c.unitText}:{},description:`${e==="pt"?"Setor":"Sector"}: ${c.source[e]}`}));return{"@context":"https://schema.org","@graph":[a,...i,o,...l]}},[t,e]);
2118return s.jsxs(s.Fragment,{children:[s.jsx(ns,{page:"our-ai",jsonLd:n}),s.jsx(ED,{content:t.hero}),s.jsx(OD,{content:t.engines,foundation:t.thesis.foundation}),s.jsx(ID,{content:t.diversity}),s.jsx($D,{content:t.explainability}),s.jsx(TD,{content:t.thesis}),s.jsx(FD,{content:t.security}),s.jsx(RD,{content:t.challenges}),s.jsx(DD,{content:t.community}),s.jsx(LD,{content:t.research}),s.jsx(Vy,{}),s.jsx(zD,{content:t.glossary}),s.jsx(ku,{})]})});BD.displayName="OurAI";const VTe='# Landing Pages (Business Transformations) â content schema\n\nEditorial source for the **4 transformation landings** under `/{lang}/solutions/<slug>`.\n\nThe pages are rendered by `src/pages/TransformationLanding.tsx` (one parametrized component) and pulled at build-time by `src/hooks/useLandings.ts` (eager Vite glob â no fetch at runtime).\n\n## Allowed slugs (whitelist)\n\nOnly these 4 slugs render. Anything else falls back to `/solutions`.\n\n| slug | route | hub_theme |\n|---|---|---|\n| `demand-supply-efficiency` | `/{lang}/solutions/demand-supply-efficiency` | `demand` |\n| `data-monetization` | `/{lang}/solutions/data-monetization` | `mix` |\n| `predictive-operations` | `/{lang}/solutions/predictive-operations` | `inventory` |\n| `behavior-conversion` | `/{lang}/solutions/behavior-conversion` | `propensity` |\n\n## File convention\n\nEach landing has a **mandatory pair** PT + EN:\n\n```\nsrc/content/landings/\n <slug>-pt.md\n <slug>-en.md\n```\n\n## Frontmatter\n\n```yaml\n---\ntitle: "Eficiência de Demanda e Oferta com IA Preditiva"\ndescription: "Citation-friendly meta description (140â280 chars)."\nslug: demand-supply-efficiency\nlanguage: pt # pt | en\nhero_kicker: "Transformação · Demanda & Oferta" # short eyebrow\nhero_headline: "Balance demand and supplyâ¦" # large H1\nhero_sub: "Sub-headline that explains the promise."\nsectors: "varejo, farma, indústria, CPG" # CSV\nhub_theme: demand # demand | margin | inventory | mix | propensity\nrelated_engines: "i6previsio, i6recsys, i6signal" # CSV â anchors to /our-ai\nrelated_stories: "story-slug-1, story-slug-2" # CSV â slugs of /success-stories\ncover_image: null\n---\n```\n\n## Body sections (H2 headings)\n\nThe component renders fixed blocks driven by `## ` headings â keep these names (PT or EN both work):\n\n| heading | role |\n|---|---|\n| `## Pain` / `## Dor` | 3 real pains, citation-magnet |\n| `## Problem` / `## Problema` | why generic AI fails |\n| `## Solution` / `## Solução` | proprietary engines applied (also renders engine cards from `related_engines`) |\n| `## Application` / `## Aplicação` | how it runs in production (also renders the dataâengineâdecisionâsignal flow) |\n| `## Results` / `## Resultados` | bullets like `- **â38%** label \\| source` â parsed into KPI strip + `Statistic` JSON-LD |\n| `## FAQ` / `## Perguntas frequentes` | `**Q?**` + answer paragraph â parsed into `FAQPage` JSON-LD |\n\n### Results format (must follow exactly)\n\n```markdown\n## Results\n- **â38%** Ruptura em SKUs A/B (90 dias) | Varejo farma\n- **+6,2 p.p.** Margem bruta da categoria OTC | Varejo farma\n```\n\nThe bold token becomes the big number, the rest becomes the label, anything after `|` becomes the small source tag.\n\n## SEO/GEO\n\nEach landing automatically emits:\n\n- `Service` + `BreadcrumbList` JSON-LD (page-level)\n- `FAQPage` JSON-LD (if `## FAQ` present)\n- Canonical + hreflang (en/pt-BR/x-default)\n- Prerendered static stub in `dist/<lang>/solutions/<slug>.html` (via `scripts/prerender-seo-stubs.mjs`)\n- `sitemap.xml` + `llms.txt` entries (maintained manually until i6Hub sync covers landings)\n\n## i6Hub integration (when CMS-managed)\n\nSame architecture as Insights/Intelligence:\n\n```\ni6Hub admin â notify-site-rebuild edge â repository_dispatch\n â GitHub Actions â sync-landings-from-i6hub.mjs (TODO)\n â regenerates src/content/landings/*.md â vite build â GH Pages\n```\n\nThe sync script for landings is not yet wired (initial 8 files are hand-authored). When i6Hub gains a `landing` content type, mirror `sync-insights-from-i6hub.mjs` and add a `landings-updated` dispatch event.\n\nEditors in i6Hub will see:\n\n- Slug picker locked to the 4-item whitelist above.\n- All frontmatter fields as form inputs.\n- Body editor with section dividers per H2 convention.\n',HTe=`--- 2119title: "Behavior and Conversion" 2120description: "Anticipate intent, prescribe the right argument and convert more â proprietary AI that learns individual behavior and activates the next action on the right channel." 2121slug: behavior-conversion 2122language: en 2123hero_kicker: "Transformation · Behavior & Conversion" 2124hero_headline: "Conversion isn't about who walks in. It's about who you understand in time." 2125hero_sub: "Most companies do not lose conversion because they lack traffic. They lose conversion because they interpret too late the signals of intent, context and behavior that were already happening throughout the journey. \\n\\nEvery search, click, page view, abandonment, return, compared product, accessed channel and session pattern reveals a possible intent. **The problem is that, without prediction, these signals only become insight after the opportunity has passed.** \\n\\nPredictive AI applied to behavior makes it possible to anticipate undeclared intentions, personalize the next action and influence conversions with more precision, without relying only on coupons, fixed rules or generic campaigns." 2126sectors: "retail, e-commerce, financial services, CPG" 2127hub_theme: propensity 2128related_engines: "i6recsys, i6elasticprice, i6signal" 2129related_stories: "customer-engagement-online-sales, cross-sell-propensity-intelligence, marketplace-excellence-pharmacy" 2130cover_image: null 2131--- 2132## Pain 2133 2134### Conversion drops when intent appears before the companyâs decision 2135 2136Customers rarely declare exactly what they want. **They leave signals.** 2137 2138The way they navigate, search, compare, return, abandon, click, ignore, add to cart or interact with an offer indicates intent, doubt, urgency, price sensitivity, product affinity and conversion probability. 2139 2140In practice, marketing, CRM, e-commerce, growth, sales and digital channels deal with recurring pain points: 2141 2142- **The right offer arriving too late:** The customer has already shown intent, but activation happens when they have already decided to leave, compare prices or buy somewhere else. 2143 2144- **Generic personalization:** The journey changes little across customers with different intentions, because the company personalizes by segment, not by real behavior. 2145 2146- **Coupon used as a universal solution:** Discounts are applied to customers who would buy at full price, eroding margin unnecessarily. 2147 2148- **Low-adherence cross-sell and up-sell:** Products are recommended by rule, inventory or simple association, not by propensity, context and purchase timing. 2149 2150- **Wasted anonymous traffic:** Visitors without login generate rich session signals, but many companies treat this behavior as invisible. 2151 2152- **Teams without confidence in the recommendation:** When the model does not explain why an action was suggested, marketing and sales tend to ignore, disable or underuse the intelligence. 2153 2154>The real pain is easy to understand: undeclared intent already exists in the journey. The challenge is to anticipate that intent with enough precision to change conversion before the opportunity disappears. 2155 2156## Problem 2157 2158### Fixed rules do not understand intent, timing and context 2159 2160Rule-based personalization treats different customers as if they were the same within the same segment. âIf cart was abandoned, send a coupon.â âIf product X was viewed, recommend product Y.â âIf the customer entered the category, show the standard campaign.â 2161 2162These rules are easy to operate, but they ignore the questions that truly change conversion: 2163 2164- **1. Who is researching and who is ready to buy?** 2165- **2. Who needs a value argument and who needs an incentive?** 2166- **3. Who would buy without a discount?** 2167- **4. Which product has the highest adherence for that customer, at that moment?** 2168- **5. Which offer increases conversion without destroying margin?** 2169- **6. Which navigation signal reveals intent before login?** 2170- **7. Which journey should change now, not tomorrow?** 2171- **8. Which argument explains the recommendation to the channel or commercial team?** 2172 2173Generic propensity models also fail when they use weak signals, frozen clusters or recommendations without contextual adherence. 2174 2175Without prediction, **the company reacts to abandonment**.\\ 2176Without explainability, **the team does not trust the recommendation**.\\ 2177Without real-time activation, **intent passes by**. 2178 2179Without context, **personalization becomes a superficial campaign variation**. 2180 2181> Conversion does not depend only on knowing who the customer is. It depends on understanding what they are about to do. To change the conversion game, AI needs to anticipate intent, explain the recommendation and activate the next best action while the journey is still alive. 2182 2183## Solution 2184 2185### Proprietary AI engines to transform behavior into conversion 2186 2187infinity6 applies proprietary predictive AI, recommendation and pricing engines to transform live behavior into early decisions for personalization, influence and conversion. 2188 2189The solution **connects navigation, purchase, search, cart, channel, product, price, context and historical signals to identify undeclared intent** and recommend the next best action. 2190 2191- **i6 RecSys -** Recommendation and propensity engine to identify the next best action by customer, session and moment. 2192 2193 *Applications:* purchase propensity, product recommendation, journey personalization, cross-sell and up-sell, cart recovery and anonymous traffic activation. 2194 2195- **i6 ElasticPrice -** Incentive decision engine to calibrate discount, bundle or value argument based on elasticity and margin. 2196 2197 *Applications:* unnecessary coupon reduction, discount optimization, personalized bundles and margin protection. 2198 2199- **i6 Signal -** Predictive interface that turns recommendation into action across channels. 2200 2201 *Answers:* who to activate, what to offer, which argument to use and why. Combines propensity, context and explainability to increase conversion with precision. 2202 2203## Application 2204 2205### How behavior prediction runs in practice 2206 2207The solution operates as an intelligence layer above current channels, connecting e-commerce, CRM, app, CDP, media, marketplace, WhatsApp, POS and campaign tools. 2208 2209Each behavior event can recalibrate propensity and update the next best action. **The goal is to transform live signals into activation while there is still an opportunity to influence conversion**. 2210 2211**01. Behavior data** 2212 2213The foundation starts with the signals generated throughout the journey: navigation, search, product view, accessed category, c
2213art, abandonment, return, frequency, origin, device, campaign, purchase history, price, inventory, channel and anonymous session behavior. 2214 2215This data reveals intent, doubt, affinity, urgency, elasticity, price sensitivity and conversion probability. 2216 2217**02. Predictive engine** 2218 2219The proprietary engines identify patterns that fixed rules and traditional segmentations do not capture. 2220 2221AI calculates purchase propensity, affinity between customer and SKU, conversion probability, abandonment risk, incentive elasticity, cross-sell opportunity, up-sell potential and the best activation moment. 2222 2223Prediction considers context, timing, similarity, history, recent behavior and undeclared intent signals. 2224 2225**03. Prescriptive decision** 2226 2227Prediction becomes a practical conversion recommendation. 2228 2229AI indicates which product to recommend, which offer to present, which argument to use, which channel to activate, which incentive to apply and which journey to prioritize. 2230 2231Each recommendation can come with feature-level explainability, showing the factors that support the decision, such as category affinity, recent engagement, similarity with high-value profiles, price elasticity or correlation with higher-margin items. 2232 2233**04. i6 Signal activation** 2234 2235Recommendations are delivered into the current flow through API, e-commerce, CRM, app, WhatsApp, campaign tool, POS, dashboard or i6 Signal. 2236 2237Activation can influence storefront, recommended product, message, argument, incentive, offer order, campaign or commercial approach. 2238 2239With each interaction, the models learn from the customerâs real response, creating a continuous cycle: behavior, prediction, recommendation, activation and conversion. 2240 2241> The team stops asking only âwho visited?â and starts acting on âwhich intent is forming now and which action increases the chance of conversion?â. 2242 2243## Results 2244 2245- **+23%** Average ticket per POS 2246- **+12MM** Additional revenue from financial product cross-sell 2247- **â57%** Messaging cost reduction (CAC) 2248- **+12 x** Increase in campaign conversion 2249 2250## FAQ 2251 2252**What is behavior prediction?** 2253Behavior prediction is the use of AI to analyze navigation, search, purchase, cart, abandonment, channel, context and history signals, with the goal of anticipating intentions and indicating the next best action to increase conversion, personalization and customer value. 2254 2255**How can AI identify undeclared intentions?** 2256AI identifies patterns in indirect signals, such as navigation sequence, compared products, interaction time, origin, visited category, recurrence, abandonment, similarity with other profiles and historical response. These signals help estimate intent even when the customer does not declare what they want. 2257 2258**Does it work for anonymous traffic without login?** 2259Yes. The solution can generate propensity for anonymous visitors based on session pattern, device, origin, navigation, search, context and similarity with known clusters. Even without login, there are enough signals to improve recommendation and activation. 2260 2261**How does AI influence conversion?** 2262AI influences conversion by indicating the right product, the right offer, the right argument, the right channel and the right incentive for each moment of the journey. This makes it possible to act before abandonment, improve relevance and reduce dependence on generic campaigns. 2263 2264**How does the solution avoid cannibalizing full-price sales?** 2265The elasticity engine helps identify who needs an incentive and who would buy without a discount. Customers with high propensity can receive a value argument, recommendation or proof of fit instead of an unnecessary coupon. 2266 2267**What does feature-level explainability mean?** 2268It means each recommendation can bring the factors that support the decision, such as category affinity, recent behavior, similarity with high-value customers, purchase history, elasticity, channel, context and conversion probability. This increases confidence and adoption by the commercial team. 2269 2270**Why are fixed personalization rules not enough?** 2271Fixed rules treat similar customers as if they were the same and do not adapt well to context, timing, intent, elasticity and behavior change. Predictive AI recalculates propensity as new signals appear throughout the journey. 2272 2273**Does AI replace the CRM or e-commerce platform?** 2274No. The solution operates above current channels. CRM, e-commerce, app, marketplace, WhatsApp, CDP or campaign tool remain the activation environments. AI adds the predictive layer that defines who to activate, when, with which offer and why. 2275 2276**What data is needed to start?** 2277The minimum data usually includes navigation events, search, product views, cart, abandonment, purchase history, products, categories, price, channel and origin. Additional data such as inventory, margin, campaigns, CRM, recurrence and commercial response increases precision. 2278 2279**How do you measure conversion impact?** 2280Impact should be measured against a baseline, control group or A/B test. Common metrics include conversion rate, incremental revenue, average ticket, incremental margin, coupon reduction, cross-sell conversion, up-sell, cart recovery and share of revenue generated by the models. 2281 2282**How long does it take to see impact?** 2283It depends on traffic volume, event quality and activation speed. In digital operations with relevant volume, the first learning cycles can happen in a few weeks and material results tend to appear as recommendations go into production. 2284 2285**How does this page connect with Data Monetization?** 2286Behavior and conversion are one of the most direct ways to monetize data. Navigation, intent, purchase and abandonment signals can be transformed into incremental revenue, margin and commercial efficiency. 2287 2288**How does this page connect with Demand & Supply?** 2289Digital behavior anticipates demand. Search, navigation, cart and intent help predict pressure on products, categories and channels before the sale happens, supporting inventory, assortment and replenishment. 2290 2291**How does this page connect with Predictive Operations?**
2292Conversion also depends on operations. Behavior signals can anticipate stockout risk, channel pressure, replenishment needs and operational prioritization before the problem impacts the customer experience.`,KTe=`--- 2293title: "Comportamento e Conversão" 2294description: "Antecipe intenção, prescreva o argumento certo e converta mais â IA proprietária que aprende o comportamento individual e ativa a próxima ação no canal certo." 2295slug: behavior-conversion 2296language: pt 2297hero_kicker: "Transformação · Comportamento & Conversão" 2298hero_headline: "Conversão não é sobre quem entra. à sobre quem você entende a tempo." 2299hero_sub: "A maior parte das empresas não perde conversão por falta de tráfego. Perde porque interpreta tarde demais os sinais de intenção, contexto e comportamento que já estavam acontecendo na jornada.\\n\\nCada busca, clique, página vista, abandono, retorno, produto comparado, canal acessado e padrão de sessão revela uma intenção possÃvel. **O problema é que, sem predição, esses sinais só viram leitura depois que a oportunidade passou.**\\n\\nIA preditiva aplicada ao comportamento permite antecipar intenções não declaradas, personalizar a próxima ação e influenciar conversões com mais precisão, sem depender apenas de cupom, regra fixa ou campanha genérica." 2300sectors: "varejo, e-commerce, financeiro, CPG" 2301hub_theme: propensity 2302related_engines: "i6recsys, i6elasticprice, i6signal" 2303related_stories: "customer-engagement-online-sales, cross-sell-propensity-intelligence, marketplace-excellence-pharmacy" 2304cover_image: null 2305--- 2306## Pain 2307 2308### A conversão cai quando a intenção aparece antes da decisão da empresa 2309 2310Clientes raramente declaram exatamente o que querem. **Eles deixam sinais.** 2311 2312A forma como navegam, pesquisam, comparam, voltam, abandonam, clicam, ignoram, adicionam ao carrinho ou interagem com uma oferta indica intenção, dúvida, urgência, sensibilidade a preço, afinidade com produto e probabilidade de conversão. 2313 2314Na prática, marketing, CRM, e-commerce, growth, vendas e canais digitais convivem com dores recorrentes: 2315 2316- **Oferta certa chegando tarde:** O cliente já demonstrou intenção, mas a ativação acontece quando ele já decidiu sair, comparar preço ou comprar em outro lugar. 2317 2318- **Personalização genérica:** A jornada muda pouco entre clientes com intenções diferentes, porque a empresa personaliza por segmento, não por comportamento real. 2319 2320- **Cupom usado como solução universal:** Desconto é aplicado para quem compraria a preço cheio, corroendo margem sem necessidade. 2321 2322- **Cross-sell e up-sell pouco aderentes:** Produtos são recomendados por regra, estoque ou associação simples, não por propensão, contexto e timing de compra. 2323 2324- **Tráfego anônimo desperdiçado:** Visitantes sem login geram sinais ricos de sessão, mas muitas empresas tratam esse comportamento como invisÃvel. 2325 2326- **Times sem confiança na recomendação:** Quando o modelo não explica por que uma ação foi sugerida, marketing e comercial tendem a ignorar, desligar ou subutilizar a inteligência. 2327 2328>A dor real é fácil de entender: intenção não declarada já existe na jornada. O desafio é antecipar essa intenção com precisão suficiente para mudar a conversão antes que a oportunidade desapareça. 2329 2330## Problem 2331 2332### Regras fixas não entendem intenção, timing e contexto 2333 2334Personalização baseada em regras trata clientes diferentes como se fossem iguais dentro do mesmo segmento. âSe abandonou carrinho, envie cupomâ. âSe viu produto X, recomende produto Yâ. âSe entrou na categoria, mostre a campanha padrãoâ. 2335 2336Essas regras são fáceis de operar, mas ignoram as perguntas que realmente mudam conversão: 2337 2338- **1. Quem está pesquisando e quem está pronto para comprar?** 2339- **2. Quem precisa de argumento de valor e quem precisa de incentivo?** 2340- **3. Quem compraria sem desconto?** 2341- **4. Qual produto tem maior aderência para aquele cliente, naquele momento?** 2342- **5. Qual oferta aumenta conversão sem destruir margem?** 2343- **6. Qual sinal de navegação revela intenção antes do login?** 2344- **7. Qual jornada deve mudar agora, não amanhã?** 2345- **8. Qual argumento explica a recomendação para o canal ou time comercial?** 2346 2347Modelos genéricos de propensão também falham quando usam sinais frágeis, cluster
2347s congelados ou recomendações sem aderência contextual. 2348 2349Sem predição, **a empresa reage ao abandono**.\\ 2350Sem explicabilidade, **o time não confia na recomendação**.\\ 2351Sem ativação em tempo real, **a intenção passa**. 2352 2353Sem contexto, **personalização vira variação superficial de campanha**. 2354 2355> A conversão não depende apenas de saber quem o cliente é. Depende de entender o que ele está prestes a fazer. Para mudar o jogo da conversão, a IA precisa antecipar intenção, explicar a recomendação e ativar a próxima melhor ação enquanto a jornada ainda está viva. 2356 2357## Solution 2358 2359### Motores proprietários de IA para transformar comportamento em conversão 2360 2361A infinity6 aplica motores proprietários de IA preditiva, recomendação e pricing para transformar comportamento vivo em decisões antecipadas de personalização, influência e conversão. 2362 2363A solução **conecta sinais de navegação, compra, busca, carrinho, canal, produto, preço, contexto e histórico para identificar intenção não declarada** e recomendar a próxima melhor ação. 2364 2365- **i6 RecSys -** Motor de recomendação e propensão para identificar a próxima melhor ação por cliente, sessão e momento. 2366 2367 *Aplicações:* propensão de compra, recomendação de produto, personalização de jornada, cross-sell e up-sell, recuperação de carrinho e ativação de tráfego anônimo. 2368 2369- **i6 ElasticPrice -** Motor de decisão de incentivo para calibrar desconto, bundle ou argumento de valor com base em elasticidade e margem. 2370 2371 *Aplicações:* redução de cupom desnecessário, otimização de desconto, bundles personalizados e proteção de margem. 2372 2373- **i6 Signal -** Interface preditiva que transforma recomendação em ação nos canais. 2374 2375 *Responde:* quem ativar, o que oferecer, qual argumento usar e por quê. Une propensão, contexto e explicabilidade para aumentar conversão com precisão. 2376 2377## Application 2378 2379### Como a predição de comportamento roda na prática 2380 2381A solução opera como uma camada de inteligência acima dos canais atuais, conectando e-commerce, CRM, app, CDP, mÃdia, marketplace, WhatsApp, PDV e ferramentas de campanha. 2382 2383Cada evento de comportamento pode recalibrar a propensão e atualizar a próxima melhor ação. **O objetivo é transformar sinais vivos em ativação enquanto ainda existe oportunidade de influenciar a conversão**. 2384 2385**01. Dado de comportamento** 2386 2387A base começa nos sinais gerados na jornada: navegação, busca, visualização de produto, categoria acessada, carrinho, abandono, retorno, frequência, origem, dispositivo, campanha, histórico de compra, preço, estoque, canal e comportamento anônimo de sessão. 2388 2389Esses dados revelam intenção, dúvida, afinidade, urgência, elasticidade, sensibilidade a preço e probabilidade de conversão. 2390 2391**02. Motor preditivo** 2392 2393Os motores proprietários identificam padrões que regras fixas e segmentações tradicionais não capturam. 2394 2395A IA calcula propensão de compra, afinidade entre cliente e SKU, probabilidade de conversão, risco de abandono, elasticidade de incentivo, oportunidade de cross-sell, potencial de up-sell e melhor momento de ativação. 2396 2397A predição considera contexto, timing, similaridade, histórico, comportamento recente e sinais não declarados de intenção. 2398 2399**03. Decisão prescritiva** 2400 2401A predição vira recomendação prática de conversão. 2402 2403A IA indica qual produto recomendar, qual oferta apresentar, qual argumento usar, qual canal ativar, qual incentivo aplicar e qual jornada priorizar. 2404 2405Cada recomendação pode vir com explicabilidade por feature, mostrando os fatores que sustentam a decisão, como afinidade com categoria, engajamento recente, similaridade com perfis de alto valor, elasticidade de preço ou correlação com itens de maior margem. 2406 2407**04. Ativação i6 Signal** 2408 2409As recomendações são entregues no fluxo atual por API, e-commerce, CRM, app, WhatsApp, ferramenta de campanha, PDV, dashboard ou i6 Signal. 2410 2411A ativação pode influenciar vitrine, produto recomendado, mensagem, argumento, incentivo, ordem de oferta, campanha ou abordagem comercial. 2412 2413A cada interação, os modelos aprendem com a resposta real do cliente, criando um ciclo contÃnuo: comportamento, predição, recomendação, ativação e c
2413onversão. 2414 2415> O time deixa de perguntar apenas âquem visitou?â e passa a agir sobre âqual intenção está se formando agora e qual ação aumenta a chance de conversão?â. 2416 2417## Results 2418 2419- **+23%** Ticket médio por PDV 2420- **+12MM** Receita adicional em cross-sell de produtos financeiros 2421- **â57%** Redução de custos de mensageria (CAC) 2422- **+12 x** Aumento de conversão em campanhas 2423 2424## FAQ 2425 2426**O que é predição de comportamento?** 2427Predição de comportamento é o uso de IA para analisar sinais de navegação, busca, compra, carrinho, abandono, canal, contexto e histórico, com o objetivo de antecipar intenções e indicar a próxima melhor ação para aumentar conversão, personalização e valor por cliente. 2428 2429**Como a IA consegue identificar intenções não declaradas?** 2430A IA identifica padrões em sinais indiretos, como sequência de navegação, produtos comparados, tempo de interação, origem, categoria visitada, recorrência, abandono, similaridade com outros perfis e resposta histórica. Esses sinais ajudam a estimar intenção mesmo quando o cliente não declara o que quer. 2431 2432**Funciona para tráfego anônimo sem login?** 2433Sim. A solução pode gerar propensão para visitantes anônimos com base em padrão de sessão, dispositivo, origem, navegação, busca, contexto e similaridade com cluster
2433s conhecidos. Mesmo sem login, existem sinais suficientes para melhorar recomendação e ativação. 2434 2435**Como a IA influencia conversão?** 2436A IA influencia conversão ao indicar o produto certo, a oferta certa, o argumento certo, o canal certo e o incentivo certo para cada momento da jornada. Isso permite agir antes do abandono, melhorar relevância e reduzir dependência de campanhas genéricas. 2437 2438**Como a solução evita canibalizar venda a preço cheio?** 2439O motor de elasticidade ajuda a identificar quem precisa de incentivo e quem compraria sem desconto. Clientes com alta propensão podem receber argumento de valor, recomendação ou prova de aderência, em vez de cupom desnecessário. 2440 2441**O que significa explicabilidade por feature?** 2442Significa que cada recomendação pode trazer os fatores que sustentam a decisão, como afinidade com categoria, comportamento recente, similaridade com clientes de alto valor, histórico de compra, elasticidade, canal, contexto e probabilidade de conversão. Isso aumenta confiança e adoção pelo time comercial. 2443 2444**Por que regras fixas de personalização não são suficientes?** 2445Regras fixas tratam clientes parecidos como iguais e não se adaptam bem a contexto, timing, intenção, elasticidade e mudança de comportamento. IA preditiva recalcula a propensão conforme novos sinais aparecem na jornada. 2446 2447**A IA substitui o CRM ou a plataforma de e-commerce?** 2448Não. A solução opera acima dos canais atuais. CRM, e-commerce, app, marketplace, WhatsApp, CDP ou ferramenta de campanha continuam sendo os ambientes de ativação. A IA adiciona a camada preditiva que define quem ativar, quando, com qual oferta e por quê. 2449 2450**Quais dados são necessários para começar?** 2451Os dados mÃnimos geralmente incluem eventos de navegação, busca, visualização de produto, carrinho, abandono, histórico de compra, produtos, categorias, preço, canal e origem. Dados adicionais como estoque, margem, campanhas, CRM, recorrência e resposta comercial aumentam a precisão. 2452 2453**Como medir o impacto na conversão?** 2454O impacto deve ser medido contra baseline, grupo de controle ou teste A/B. Métricas comuns incluem taxa de conversão, receita incremental, ticket médio, margem incremental, redução de cupom, conversão de cross-sell, up-sell, recuperação de carrinho e participação da receita gerada pelos modelos. 2455 2456**Quanto tempo leva para ver impacto?** 2457Depende do volume de tráfego, qualidade dos eventos e velocidade de ativação. Em operações digitais com volume relevante, os primeiros ciclos de aprendizado podem acontecer em poucas semanas e os resultados materiais tendem a aparecer conforme as recomendações entram em produção. 2458 2459**Como essa página se conecta com Monetização de Dados?** 2460Comportamento e conversão são uma das formas mais diretas de monetizar dados. Sinais de navegação, intenção, compra e abandono podem ser transformados em receita incremental, margem e eficiência comercial. 2461 2462**Como essa página se conecta com Demanda & Supply?** 2463Comportamento digital antecipa demanda. Busca, navegação, carrinho e intenção ajudam a prever pressão sobre produtos, categorias e canais antes da venda acontecer, apoiando estoque, sortimento e abastecimento. 2464 2465**Como essa página se conecta com Operações Preditivas?** 2466A conversão também depende da operação. Sinais de comportamento podem antecipar risco de ruptura, pressão de canal, necessidade de reposição e priorização operacional antes que o problema impacte a experiência do cliente.`,GTe=`--- 2467title: "Data Monetization" 2468description: "Turn customer, transactional and operational data into recurring revenue streams â predictive propensity, per-cluster mix and prescriptive activation via i6 Signal." 2469slug: data-monetization 2470language: en 2471hero_kicker: "Transformation · Data Monetization" 2472hero_headline: "Your data already holds hidden revenue. AI finds it before the market does." 2473hero_sub: "Companies accumulate data from purchases, navigation, inventory, pricing, CRM, channel, store and behavior. But most of these assets remain trapped in reports, static segmentations and poorly intelligent campaigns.\\n\\n**Data monetization is not about selling spreadsheets or creating more dashboards.** It is about turning signals into decisions that increase revenue, margin, conversion, recurrence, commercial efficiency and customer value.\\n\\nPredictive AI makes it possible to identify where there is intent, propensity, elasticity, offer opportunity, risk of loss and growth potential before the market notices." 2474sectors: "retail, e-commerce, financial services, CPG" 2475hub_theme: mix 2476related_engines: "i6recsys, i6elasticprice, i6previsio, i6signal" 2477related_stories: "customer-engagement-online-sales, cross-sell-propensity-intelligence, marketplace-excellence-pharmacy" 2478cover_image: null 2479--- 2480## Pain 2481 2482### Rich data keeps generating weak decisions. 2483 2484Most companies live with the same frustration: **89% do not monetize their own data**. Most companies already have the data they need to grow more: transactional history, navigation, customer profile, channel behavior, campaigns, prices, categories, inventory, recurrence, abandonment, repurchase and commercial interaction. 2485 2486**The problem is that this data rarely becomes incremental revenue.** 2487 2488In practice, monetization fails because data is used too late, in a fragmented way or without connection to the next business decision. 2489 2490- **Limited personalization** 2491The company personalizes the email, but does not influence the journey, the product, the price, the channel, the POS or the next commercial action. 2492 2493- **Generic cross-sell and up-sell** 2494The offer is pushed by what is in stock or by the campaign rule, not by real purchase propensity. 2495 2496- **Calendar-based CRM** 2497Customers are activated by rules, not by the real moment of intent, repurchase, abandonment or higher probability of conversion. 2498 2499- **Data trapped in BI** 2500The dashboard shows what happened, but does not guide who to approach, what to offer, through which channel and with which incentive. 2501 2502- **Low value capture** 2503The company has data, but continues losing margin, conversion, ticket, recurrence and commercial efficiency. 2504 2505> The real pain is simple: the data exists, but it still does not move at the speed of the opportunity or anticipate what will happen to guide decisions before the market. 2506 2507## Problem 2508 2509### Data monetization does not happen when the company only understands the past 2510 2511Many data initiatives stop at reports, fixed clusters, generic propensity models or personalization platforms that treat similar customers as if they were the same. 2512 2513**These approaches help organize information, but they do not necessarily increase revenue.** 2514 2515The problem appears when the company cannot answer operational questions with precision: 2516- **1. Who has the highest purchase propensity right now?** 2517- **2. Which product should be recommended for each customer, channel or context?** 2518- **3. Which offer increases conversion without destroying margin?** 2519- **4. Which customer is ready for up-sell, cross-sell or repurchase?** 2520- **5. Which audience deserves investment from media, CRM or sales force?** 2521- **6. Which category, store, channel or partner has the biggest hidden opportunity?** 2522- **7. Which data can become intelligence for suppliers, marketplaces, industries or commercial partners?** 2523 2524Without prediction, monetization becomes guesswork.\\ 2525Without activation, it becomes a dashboard.\\ 2526Without incremental measurement, it becomes a vanity metric. 2527 2528>Data only generates revenue when it changes a decision: who to approach, when to approach, what to offer, how much to incentivize, where to allocate effort and how to measure the real result. 2529 2530## Solution 2531 2532### Proprietary AI engines to transform data into incremental revenue 2533 2534infinity6 applies proprietary predictive AI and recommendation engines to **transform transactional, behavioral and operational data into actionable growth decisions**. 2535
2536The solution does not depend on a single front. Monetization can happen in CRM, e-commerce, marketplace, physical retail, industry, pricing, supply, assortment, campaigns, digital channels or commercial operations. 2537 2538- **i6 RecSys -** recommendation and propensity engine to define the next best product, offer and action by customer, channel and moment. 2539 2540 *Applications:* recommendation, purchase propensity, cross-sell, up-sell, personalization, reactivation and offer prioritization. 2541 2542- **i6 ElasticPrice -** engine for pricing and incentive decisions based on elasticity, margin and conversion. 2543 2544 *Applications:* discount optimization, bundles, promotions with lower margin erosion and propensity-driven pricing. 2545 2546- **i6 Previsio -** forecasting engine to anticipate demand, repurchase and opportunities. 2547 2548 *Applications:* demand forecasting, repurchase anticipation, prioritization and trend identification. 2549 2550- **i6 Signal -** Predictive interface that turns models into decisions. 2551 2552 *Answers:* who to activate, when, with which offer, channel and incentive. Connects data, prediction and activation to generate measurable commercial action. 2553 2554## Application 2555 2556### How data monetization runs in practice. 2557 2558Monetization happens when transactional, behavioral and operational data stop feeding only reports and start guiding commercial decisions in real time. 2559 2560**The solution operates as an intelligence layer above current systems**, connecting ERP, CRM, e-commerce, marketplace, CDP, OMS, WMS, media, store and digital channels. Data can be anonymized, handled through hash identifiers and activated in an LGPD-friendly way, with no exposure of PII. 2561 2562**01. Business data** 2563 2564The foundation starts with the signals the company already has: purchase history, navigation, search, cart, abandonment, campaigns, products, categories, price, margin, inventory, channel, store, recurrence, commercial response and anonymous session behavior. 2565 2566This data reveals intent, affinity, elasticity, risk, repurchase and hidden revenue opportunities. 2567 2568**02. Predictive engine** 2569 2570The proprietary engines identify patterns that fixed rules, BI and traditional segmentations do not capture. 2571 2572AI calculates purchase propensity, product recommendation, affinity between customer and SKU, price elasticity, cross-sell opportunity, up-sell potential, risk of loss, repurchase probability and the best activation moment. 2573 2574Clusters are not static. They relearn at every cycle, as customers, products, channels and contexts change. 2575 2576**03. Prescriptive decision** 2577 2578Prediction becomes a practical business recommendation. 2579 2580AI indicates who to activate, when to activate, with which product, which offer, which channel, which incentive and which priority. It also guides where to reduce discounts, where to protect margin, where to increase commercial pressure and where there is higher incremental potential. 2581 2582Each recommendation can be measured against a baseline, control group or A/B test, separating real impact from vanity metrics. 2583 2584**04. i6 Signal activation** 2585 2586Recommendations are delivered into the current process through API, file, dashboard, CRM, e-commerce, campaign tool or i6 Signal. 2587 2588With each activation, the models learn from the real response of the customer, channel or operation, creating a continuous monetization cycle: data, prediction, decision, activation and result. 2589 2590>The team stops asking only âwhat happened?â and starts acting on âwhat is the next best action?â. 2591 2592## Results 2593 2594- **+23%** Average ticket per POS 2595- **+31%** Conversion of new SKUs (positivation) 2596- **+40%** Additional revenue from guided cross-sell 2597- **+7,2%** Direct up-sell through sales representatives 2598 2599## FAQ 2600 2601**What is data monetization with predictive AI?** 2602It is the use of transactional, behavioral and operational data to generate incremental revenue through predictions, recommendations and actionable decisions. Instead of only analyzing the past, AI identifies where there is higher purchase propensity, cross-sell opportunity, up-sell potential, price elasticity, risk of loss, repurchase or incremental margin. 2603 2604**Does data monetization mean selling data?** 2605Not necessarily. In most cases, data monetization means using the companyâs own data to increase revenue, improve c
2605onversion, reduce waste, protect margin and create new sources of value. This can happen in CRM, e-commerce, marketplace, physical retail, pricing, assortment, campaigns, digital channels or partner relationships. 2606 2607**Do I need a mature data lake to start?** 2608No. The foundational model i6-RecSys-Base.g1 is already pre-trained on 1.45 billion records from e-commerce, banking, telecom and retail. infinity6 connects to what already exists, such as purchase history, products, campaigns, inventory, price, channel and digital behavior, and fine-tuning happens on the business data. 2609 2610**How is LGPD handled?** 2611Operation with anonymized data is native. The solution can work with hash identifiers and behavioral attributes, with no PII traffic. The goal is to generate predictive intelligence from behavior, purchase, navigation, channel and context signals, without exposing unnecessary personal information. 2612 2613**Do the models become a black box for the commercial team?** 2614No. Each recommendation can return the factors that support the decision, such as propensity, affinity, recent behavior, purchase history, elasticity, channel, context and expected response. This turns the model into a sales and decision argument, not an opaque imposition. 2615 2616**Does it work for anonymous customers without login?** 2617Yes. i6 RecSys generates purchase propensity for anonymous traffic based on session pattern, navigation, search, origin, context, similarity and aggregated behavior. Even without login, AI can identify intent signals and recommend products, offers or journeys with higher conversion probability. 2618 2619**Why is BI not enough to monetize data?** 2620BI shows what happened. Monetization requires deciding what to do now. The difference is turning analysis into action: who to approach, with which product, in which channel, at which moment, with which incentive and with which expected return. Data only becomes revenue when it changes a commercial decision. 2621 2622**Which data can be used for monetization?** 2623Purchase, navigation, search, cart, abandonment, CRM, campaigns, products, categories, price, margin, inventory, availability, channel, store, region, frequency, recurrence, commercial response, anonymous session, repurchase, churn and inactivity data can be used. 2624 2625**Which areas can monetize data?** 2626Marketing, CRM, e-commerce, marketplace, sales, trade, pricing, supply, product, digital channels, physical retail, industry and partner relationships. Any area that makes recurring decisions can capture value with predictive data. 2627 2628**What are the main use cases?** 2629Purchase propensity, product recommendation, cross-sell, up-sell, journey personalization, cart recovery, campaign optimization, pricing, bundles, assortment, commercial prioritization, demand forecasting, customer reactivation and partner intelligence. 2630 2631**How do you measure whether monetization generated real results?** 2632Measurement should compare recommended actions against a baseline, control group or A/B test. The main metrics are incremental revenue, incremental margin, conversion, average ticket, campaign ROI, CRM cost reduction, repurchase increase, commercial efficiency and share of revenue generated by the models. 2633 2634**How does AI increase revenue from data?** 2635AI increases revenue because it identifies opportunities before they are obvious to the operation. It points out customers with higher propensity, products with higher affinity, offers with higher conversion probability, discounts with lower margin erosion, more valuable audiences and activation moments with higher response probability. 2636 2637**How does this page connect with Behavior & Conversion?** 2638Behavior & Conversion goes deeper into how navigation, search, cart, intent and journey signals can be used to influence purchase, personalize experience and increase conversion in digital channels. 2639 2640**How does this page connect with Demand & Supply?** 2641Monetizable data also exists in the operation. Demand, turnover, inventory, stockout, assortment and replenishment signals can generate efficiency, commercial intelligence and new revenue opportunities. 2642 2643**How does this page connect with Predictive Operations?** 2644Data monetization requires recurring activation. Predictive Operations shows how to turn predictions into rout
2644ines, alerts, prioritization and operational decisions in daily execution.`,QTe=`--- 2645title: "Monetização de Dados" 2646description: "Transforme dados de clientes, transações e operação em fluxos de receita recorrentes â propensão preditiva, mix por cluster e ativação prescritiva via i6 Signal." 2647slug: data-monetization 2648language: pt 2649hero_kicker: "Transformação · Monetização de Dados" 2650hero_headline: "Seus dados já têm receita escondida. A IA encontra antes do mercado." 2651hero_sub: "Empresas acumulam dados de compra, navegação, estoque, preço, CRM, canal, loja e comportamento. Mas a maior parte desses ativos ainda fica presa em relatórios, segmentações estáticas e campanhas pouco inteligentes.\\n\\n**Monetizar dados não é vender planilhas, nem criar mais dashboards.** à transformar sinais em decisões que aumentam receita, margem, conversão, recorrência, eficiência comercial e valor por cliente.\\n\\nIA preditiva permite identificar onde existe intenção, propensão, elasticidade, oportunidade de oferta, risco de perda e potencial de crescimento antes que o mercado perceba." 2652sectors: "varejo, e-commerce, financeiro, CPG" 2653hub_theme: mix 2654related_engines: "i6recsys, i6elasticprice, i6previsio, i6signal" 2655related_stories: "customer-engagement-online-sales, sales-forecast-precision, marketplace-excellence-pharmacy" 2656cover_image: null 2657--- 2658## Pain 2659 2660### Dados ricos continuam gerando decisões fracas. 2661 2662A maior parte das empresas convive com a mesma frustração: **89% não monetizam os próprios dados**. A maior parte das empresas já tem os dados necessários para crescer mais: histórico transacional, navegação, perfil de cliente, comportamento de canal, campanhas, preços, categorias, estoque, recorrência, abandono, recompra e interação comercial. 2663 2664**O problema é que esses dados raramente viram receita incremental.** 2665 2666Na prática, a monetização falha porque os dados são usados tarde demais, de forma fragmentada ou sem conexão com a próxima decisão de negócio. 2667 2668- **Personalização limitada** 2669A empresa personaliza o e-mail, mas não influencia a jornada, o produto, o preço, o canal, o PDV ou a próxima ação comercial. 2670 2671- **Cross-sell e up-sell genéricos** 2672A oferta é empurrada pelo que está em estoque ou pela regra da campanha, não pela propensão real de compra. 2673 2674- **CRM baseado em calendário** 2675Clientes são acionados por régua, não pelo momento real de intenção, recompra, abandono ou maior probabilidade de conversão. 2676 2677- **Dados presos em BI** 2678O dashboard mostra o que aconteceu, mas não orienta quem abordar, o que oferecer, por qual canal e com qual incentivo. 2679 2680- **Baixa captura de valor** 2681A empresa tem dados, mas continua perdendo margem, conversão, ticket, recorrência e eficiência comercial. 2682 2683> A dor real é simples: o dado existe, mas ainda não se move na velocidade da oportunidade nem antecipa o que vai acontecer para orientar decisões antes do mercado. 2684 2685## Problem 2686 2687### Monetização de dados não acontece quando a empresa só entende o passado 2688 2689Muitas iniciativas de dados param em relatórios, clusters fixos, modelos genéricos de propensão ou plataformas de personalização que tratam clientes parecidos como se fossem iguais. 2690
2691**Essas abordagens ajudam a organizar a informação, mas não necessariamente aumentam receita.** 2692 2693O problema aparece quando a empresa não consegue responder perguntas operacionais com precisão: 2694 2695- **1. Quem tem maior propensão de compra agora?** 2696- **2. Qual produto deve ser recomendado para cada cliente, canal ou contexto?** 2697- **3. Qual oferta aumenta conversão sem destruir margem?** 2698- **4. Qual cliente está pronto para up-sell, cross-sell ou recompra?** 2699- **5. Qual audiência merece investimento de mÃdia, CRM ou força comercial?** 2700- **6. Qual categoria, loja, canal ou parceiro tem maior oportunidade escondida?** 2701- **7. Qual dado pode virar inteligência para fornecedores, marketplaces, indústrias ou parceiros comerciais?** 2702 2703Sem predição, a monetização vira tentativa.\\ 2704Sem ativação, vira dashboard.\\ 2705Sem medição incremental, vira métrica de vaidade. 2706 2707>O dado só gera receita quando muda uma decisão: quem abordar, quando abordar, o que oferecer, quanto incentivar, onde alocar esforço e como medir o resultado real. 2708 2709## Solution 2710 2711### Motores proprietários de IA para transformar dados em receita incremental 2712 2713A infinity6 aplica motores proprietários de IA preditiva e recomendação para **transformar dados transacionais, comportamentais e operacionais em decisões acionáveis de crescimento**. 2714 2715A solução não depende de uma única frente. A monetização pode acontecer em CRM, e-commerce, marketplace, varejo fÃsico, indústria, pricing, supply, sortimento, campanhas, canais digitais ou operação comercial. 2716 2717- **i6 RecSys -** motor de recomendação e propensão para definir próximo melhor produto, oferta e ação por cliente, canal e momento. 2718 2719 *Aplicações:* recomendação, propensão de compra, cross-sell, up-sell, personalização, reativação e priorização de ofertas. 2720 2721- **i6 ElasticPrice -** motor para decisões de preço e incentivo com base em elasticidade, margem e conversão. 2722 2723 *Aplicações:* otimização de desconto, bundles, promoções com menor erosão de margem e pricing orientado por propensão. 2724 2725- **i6 Previsio -** motor de previsão para antecipar demanda, recompra e oportunidades. 2726 2727 *Aplicações:* previsão de demanda, antecipação de recompra, priorização e identificação de tendências. 2728 2729- **i6 Signal -** Interface preditiva que transforma modelos em decisão. 2730 2731 *Responde:* quem acionar, quando, com qual oferta, canal e incentivo. Conecta dados, predição e ativação para gerar ação comercial mensurável. 2732 2733## Application 2734 2735### Como a monetização de dados roda na prática. 2736 2737A monetização acontece quando dados transacionais, comportamentais e operacionais deix
2737am de alimentar apenas relatórios e passam a orientar decisões comerciais em tempo real. 2738 2739**A solução opera como uma camada de inteligência acima dos sistemas atuais**, conectando ERP, CRM, e-commerce, marketplace, CDP, OMS, WMS, mÃdia, loja e canais digitais. Os dados podem ser anonimizados, tratados por identificadores hash e ativados de forma LGPD-friendly, sem exposição de PII. 2740 2741**01. Dado de negócio** 2742 2743A base começa nos sinais que a empresa já possui: histórico de compras, navegação, busca, carrinho, abandono, campanhas, produtos, categorias, preço, margem, estoque, canal, loja, recorrência, resposta comercial e comportamento anônimo de sessão. 2744 2745Esses dados revelam intenção, afinidade, elasticidade, risco, recompra e oportunidades escondidas de receita. 2746 2747**02. Motor preditivo** 2748 2749Os motores proprietários identificam padrões que regras fixas, BI e segmentações tradicionais não capturam. 2750 2751A IA calcula propensão de compra, recomendação de produto, afinidade entre cliente e SKU, elasticidade de preço, oportunidade de cross-sell, potencial de up-sell, risco de perda, probabilidade de recompra e melhor momento de ativação. 2752 2753Os clusters não são estáticos. Eles reaprendem a cada ciclo, conforme clientes, produtos, canais e contextos mudam. 2754 2755**03. Decisão prescritiva** 2756 2757A predição vira recomendação prática de negócio. 2758 2759A IA indica quem acionar, quando acionar, com qual produto, qual oferta, qual canal, qual incentivo e qual prioridade. Também orienta onde reduzir desconto, onde proteger margem, onde aumentar pressão comercial e onde existe maior potencial incremental. 2760 2761Cada recomendação pode ser medida contra baseline, grupo de controle ou teste A/B, separando impacto real de métricas de vaidade. 2762 2763**04. Ativação i6 Signal** 2764 2765As recomendações são entregues no processo atual por API, arquivo, dashboard, CRM, e-commerce, ferramenta de campanha ou i6 Signal. 2766 2767A cada ativação, os modelos aprendem com a resposta real do cliente, canal ou operação, criando um ciclo contÃnuo de monetização: dado, predição, decisão, ativação e resultado. 2768 2769>O time deixa de perguntar apenas âo que aconteceu?â e passa a agir sobre âqual é a próxima melhor ação?â. 2770 2771## Results 2772 2773- **+23%** Ticket médio por PDV 2774- **+31%** Conversão de novos SKUs (positivação) 2775- **+40%** Receita adicional em cross-sell guiado 2776- **+7,2%** Up-sell direto via representantes 2777 2778## FAQ 2779 2780**O que é monetização de dados com IA preditiva?** 2781à o uso de dados transacionais, comportamentais e operacionais para gerar receita incremental por meio de previsões, recomendações e decisões acionáveis. Em vez de apenas analisar o passado, a IA identifica onde existe maior propensão de compra, oportunidade de cross-sell, potencial de up-sell, elasticidade de preço, risco de perda, recompra ou margem incremental. 2782 2783**Monetizar dados significa vender dados?** 2784Não necessariamente. Na maioria dos casos, monetizar dados significa usar os próprios dados para aumentar receita, melhorar conversão, reduzir desperdÃcio, proteger margem e criar novas fontes de valor. Isso pode acontecer em CRM, e-commerce, marketplace, varejo fÃsico, pricing, sortimento, campanhas, canais digitais ou relacionamento com parceiros. 2785 2786**Preciso ter um data lake maduro para começar?** 2787Não. O modelo fundacional i6-RecSys-Base.g1 já vem pré-treinado em 1,45 bilhão de registros de e-commerce, banco, telecom e varejo. A infinity6 conecta com o que já existe, como histórico de compras, produtos, campanhas, estoque, preço, canal e comportamento digital, e o ajuste fino acontece sobre os dados do negócio. 2788 2789**Como fica a LGPD?** 2790A operação com dados anonimizados é nativa. A solução pode trabalhar com identificadores hash e atributos comportamentais, sem tráfego de PII. O objetivo é gerar inteligência preditiva a partir de sinais de comportamento, compra, navegação, canal e contexto, sem expor informações pessoais desnecessárias. 2791 2792**Os modelos viram caixa-preta para o time comercial?** 2793Não. Cada recomendação pode retornar os fatores que sustentam a decisão, como propensão, afinidade, comportamento recente, histórico de compra, elasticidade, canal, contexto e resposta esperada. Isso transforma o modelo em argumento de venda e decisão, não em imposição opaca. 2794 2795**Funciona para clientes anônimos sem login?** 2796Sim. O i6 RecSys gera propensão de compra para tráfego anônimo com base em padrão de sessão, navegação, busca, origem, contexto, similaridade e comportamento agregado. Mesmo sem login, a IA consegue identificar sinais de intenção e recomendar produtos, ofertas ou jornadas com maior probabilidade de conversão. 2797
2798**Por que BI não é suficiente para monetizar dados?** 2799BI mostra o que aconteceu. Monetização exige decidir o que fazer agora. A diferença está em transformar análise em ação: quem abordar, com qual produto, em qual canal, em qual momento, com qual incentivo e com qual retorno esperado. O dado só vira receita quando muda uma decisão comercial. 2800 2801**Quais dados podem ser usados para monetização?** 2802Podem ser usados dados de compra, navegação, busca, carrinho, abandono, CRM, campanhas, produtos, categorias, preço, margem, estoque, disponibilidade, canal, loja, região, frequência, recorrência, resposta comercial, sessão anônima, recompra, churn e inatividade. 2803 2804**Quais áreas podem monetizar dados?** 2805Marketing, CRM, e-commerce, marketplace, vendas, trade, pricing, supply, produto, canais digitais, varejo fÃsico, indústria e relacionamento com parceiros. Qualquer área que toma decisões recorrentes pode capturar valor com dados preditivos. 2806 2807**Quais são os principais casos de uso?** 2808Propensão de compra, recomendação de produto, cross-sell, up-sell, personalização de jornada, recuperação de carrinho, otimização de campanhas, pricing, bundles, sortimento, priorização comercial, previsão de demanda, reativação de clientes e inteligência para parceiros. 2809 2810**Como medir se a monetização gerou resultado real?** 2811A medição deve comparar as ações recomendadas contra baseline, grupo de controle ou teste A/B. As principais métricas são receita incremental, margem incremental, conversão, ticket médio, ROI de campanha, redução de custo de CRM, aumento de recompra, eficiência comercial e participação da receita gerada pelos modelos. 2812 2813**Como a IA aumenta a receita proveniente dos dados?** 2814A IA aumenta a receita porque identifica oportunidades antes que elas sejam óbvias para a operação. Ela aponta clientes com maior propensão, produtos com maior afinidade, ofertas com maior chance de conversão, descontos com menor erosão de margem, audiências mais valiosas e momentos de ativação com maior probabilidade de resposta. 2815 2816**Como essa página se conecta com Comportamento & Conversão?** 2817Comportamento & Conversão aprofunda como sinais de navegação, busca, carrinho, intenção e jornada podem ser usados para influenciar compra, personalizar experiência e aumentar conversão em canais digitais. 2818 2819**Como essa página se conecta com Demanda & Supply?** 2820Dados monetizáveis também existem na operação. Sinais de demanda, giro, estoque, ruptura, sortimento e abastecimento podem gerar eficiência, inteligência comercial e novas oportunidades de receita. 2821 2822**Como essa página se conecta com Operações Preditivas?** 2823Monetizar dados exige ativação recorrente. Operações Preditivas mostra como transformar previsões em rotinas, alertas, priorização e decisões operacionais no dia a dia.`,YTe=`--- 2824title: "Demand & Supply" 2825description: "Proprietary AI that connects demand forecasting, inventory policy and per-store allocation to reduce stockouts and overstock without inflating working c
2825apital." 2826slug: demand-supply-efficiency 2827language: en 2828hero_kicker: "Transformation · Demand & Supply" 2829hero_headline: "Reduce stockouts and excess inventory with predictive AI for demand and supply" 2830hero_sub: "Companies lose margin when they plan demand and inventory based on delayed signals, ignoring changes by SKU, channel, region and behavior. Without anticipation, stockouts emerge, excess inventory builds up and capital gets trapped in slow-moving products. Predictive AI transforms data into early decisions for purchasing, replenishment, allocation and assortment." 2831sectors: "retail, pharma, industry, CPG" 2832hub_theme: demand 2833related_engines: "i6previsio, i6recsys, i6signal" 2834related_stories: "demand-forecast-accuracy, sales-forecast-precision, assortment-precision-sales-growth" 2835cover_image: null 2836--- 2837## Pain 2838 2839The invisible cost sits between the demand signal and the operational decision. 2840 2841The demand and supply problem does not start when a product is already out of stock. It starts earlier, when signals of change already exist, but the company still cannot interpret them in time. 2842 2843Every operation generates signals. Sales by SKU, turnover by store, behavior by channel, price variation, campaign activity, previous stockouts, seasonality, available inventory, lead time, margin and service level. The challenge is to turn those signals into decisions before the loss happens. 2844 2845In practice, demand, purchasing, supply, trade, logistics and operations teams deal with recurring pain points: 2846 2847- **Stockouts in relevant products:** The customer wants to buy, but the product is not available in the right channel, store or region. 2848- **Excess inventory in slow-moving products:** Capital gets stuck in SKUs that should not have received that much stock. 2849- **Wrong allocation across DC, store, channel and region:** Products are distributed based on averages or fixed rules, ignoring real differences in local demand. 2850- **Assortment misaligned with consumer behavior:** The store, channel or marketplace does not offer the mix that best fits the purchasing profile. 2851- **Margin pressured by late decisions:** Emergency corrections create discounts, reallocations, logistics costs, lost sales and lower operational efficiency. 2852 2853> The most expensive combination is simple: **the SKU that would sell is missing, while the SKU nobody wants to buy is sitting in stock**. 2854 2855## Problem 2856 2857Traditional forecasting does not solve volatile, granular and intermittent demand. 2858 2859Many demand forecasting processes still depend on historical averages, fixed rules, spreadsheets and aggregated analyses. These methods work in stable scenarios, but fail when demand varies by SKU, store, channel, region, price, promotion and consumer behavior. 2860 2861In practice, the operation needs to answer questions these models do not handle well: 2862 2863- **Which SKU has the highest stockout risk?** 2864- **Which store needs more or less inventory?** 2865- **Where is excess inventory starting to build up?** 2866- **Which category needs assortment adjustment?** 2867- **Which channel is changing its demand pattern?** 2868- **What inventory level makes sense considering margin and lead time?** 2869- **Where has demand already changed, but still not appeared in the reports?** 2870 2871> The problem is not only forecasting sales. **It is turning forecasts into decisions**. 2872 2873Without guiding purchasing, replenishment, allocation and prioritization, the operation remains reactive. The company understands the problem more clearly, but still acts too late. 2874 2875Generic AI also fails when it only delivers analysis. To create real impact, AI needs to operate across the full cycle: predict, recommend, decide, activate and continuously learn. 2876 2877## Solution 2878 2879infinity6 applies proprietary AI engines to connect demand, inventory, assortment and allocation into a single decision cycle. 2880 2881The solution runs on top of the companyâs current systems, such as ERP, WMS, OMS and CRM, using existing data to generate actionable recommendations. 2882 2883- **i6 Previsio** - Demand forecasting engine by SKU, store, channel and period. It identifies sales patterns, seasonality, volatility and the risk of stockouts or excess inventory. 2884 2885 *Applications*: Demand and sales forecasting. Stockout and excess identification. Replenishment planning. SKU prioritization. 2886 2887- **i6 RecSys** - Recommendation engine to optimize mix, assortment and allocation. It analyzes product similarity, store behavior and sales potential. 2888 2889 *Applications*: Mix and assortment recommendation. Allocation across DC, store and channel. Substitute product identification. Product prioritization. 2890 2891- **i6 Signal** - Interface that turns forecasts into operational decisions. 2892 2893 *It answers directly:* What to order, how much, where to send it and when. Where there is stockout or excess risk. Which decision creates the highest impact. 2894 2895> The difference is simple: **turning forecasts into action before the loss happens**. 2896 2897## Application 2898 2899The solution operates as an intelligence layer above current systems. The ERP continues to record purchases, orders, inventory, transfers and movements. infinity6 adds a predictive layer to guide better demand and supply decisions. 2900 2901- **Daily refresh** of forecasts and inventory policy. 2902- **Real constraints** built in: supplier lead time, shelf life, target service level per category, weighted margin. 2903- **Explainability** per SKU: each recommendation comes with the factors behind it, ready for buyer discussion. 2904 2905### Application Flow 2906 2907**1. Business Data Integration:** 2908infinity6 connects sales, inventory, product, price, channel, store, campaign and operational data. 2909 2910**2. Predictive Modeling:**
2911The proprietary engines identify demand patterns, stockout risk, excess risk, turnover behavior, seasonality, volatility and allocation opportunities. 2912 2913**3. Operational Recommendation:** 2914AI generates practical recommendations for forecasting, purchasing, replenishment, transfer, assortment, service level and SKU prioritization. 2915 2916**4. Activation in the Current Process:** 2917Recommendations are delivered through API, file, dashboard or i6 Signal, without replacing current systems. 2918 2919**5. Continuous Learning:** 2920The models relearn from new sales, inventory, stockout, campaign, price, replenishment and operational response data. 2921 2922## Results 2923 2924- **+100MM** Savings in medication incineration. 2925- **+61,5%** Increase in stockout prediction efficiency. 2926- **75%** Accuracy level in sell-in demand prediction (market average: 30%). 2927- **85%** Accuracy level in sell-out demand prediction (market average: 70%). 2928 2929## FAQ 2930 2931**What is predictive AI for demand and supply?** 2932It is the use of AI to analyze sales, inventory, price, product, channel and behavior data, predicting demand and guiding purchasing, replenishment, allocation and assortment decisions. 2933 2934**What problem does AI solve in demand forecasting?** 2935It anticipates changes before they become stockouts, excess inventory or margin loss, improving forecasts by SKU, store, channel and region. 2936 2937**How does AI help reduce stockouts?** 2938It identifies risk based on sales, inventory, lead time and seasonality, allowing the operation to act before products are missing. 2939 2940**How does AI help reduce excess inventory?** 2941It detects where inventory is above real demand, allowing the company to adjust purchasing, redistribution and assortment. 2942 2943**What is the difference between traditional forecasting and predictive AI?** 2944Traditional forecasting uses averages and fixed rules. AI learns granular patterns and adapts quickly to changes. 2945 2946**Does the solution replace the ERP or S&OP tool?** 2947No. It acts as a layer above current systems, complementing ERP and S&OP with predictive intelligence. 2948 2949**What data is needed to start?** 2950Sales history, products, inventory, price, channel and calendar. Additional data increases accuracy. 2951 2952**Does AI work for new SKUs with no history?** 2953Yes. It uses similarity with other products, attributes and behavior patterns to estimate initial demand. 2954 2955**Does AI work for products with intermittent sales?** 2956Yes. Models consider irregular patterns and contextual signals to improve forecasts. 2957 2958**Does the solution work for physical retail, e-commerce, marketplace and industry?** 2959Yes. It applies to any operation that needs to balance demand and supply with more precision. 2960 2961**How long does it take to see results?** 2962Usually between 30 and 90 days, depending on the data and operational rollout. 2963 2964**Does the solution also help with assortment?** 2965Yes. It recommends the ideal mix by store, channel or region, aligning supply with real demand. 2966 2967**How do demand and supply connect with behavior and conversion?** 2968Navigation, search and intent signals help anticipate demand before the sale happens. 2969 2970**How do demand and supply connect with predictive operations?** 2971The forecast becomes operational action: prioritization, alerts and daily decision-making. 2972 2973**How can demand data generate monetization?** 2974It can be used as a strategic asset to generate market intelligence and new revenue streams.`,ZTe=`--- 2975title: "Demanda e Supply" 2976description: "IA proprietária que conecta previsão de demanda, polÃtica de estoque e alocação por PDV para reduzir ruptura e overstock sem inflar capital de giro." 2977slug: demand-supply-efficiency 2978language: pt 2979hero_kicker: "Transformação · Demanda & Oferta" 2980hero_headline: "Reduza ruptura e excesso de estoque com IA preditiva para demanda e supply" 2981hero_sub: "Empresas perdem margem quando planejam demanda e estoque com base em sinais atrasados, ignorando mudanças por SKU, canal, região e comportamento. Sem antecipação, surgem rupturas, excesso de estoque e capital preso em baixo giro." 2982sectors: "varejo, farma, indústria, CPG" 2983hub_theme: demand 2984related_engines: "i6previsio, i6recsys, i6signal" 2985related_stories: "demand-forecast-accuracy, sales-forecast-precision, assortment-precision-sales-growth" 2986cover_image: null 2987--- 2988## Pain 2989 2990O custo invisÃvel está entre o sinal de demanda e a decisão operacional. 2991 2992O problema de demanda e supply não começa quando o produto rompe. Ele começa antes, quando os sinais de mudança já existem, mas a empresa ainda não consegue interpretá-los a tempo. 2993 2994Toda operação gera sinais. Vendas por SKU, giro por loja, comportamento por canal, variação de preço, campanha, ruptura anterior, sazonalidade, estoque disponÃvel, lead time, margem e nÃvel de serviço. O desafio é transformar esses sinais em decisão antes que a perda aconteça. 2995 2996Na prática, equipes de demanda, compras, supply, trade, logÃstica e operações convivem com dores recorrentes: 2997 2998- **Ruptura em produtos relevantes:** O cliente quer comprar, mas o produto não está disponÃvel no canal, loja ou região certa. 2999- **Excesso de estoque em produtos de baixo giro:** Capital fica parado em SKUs que não deveriam ter recebido tanto estoque. 3000- **Alocação errada entre CD, loja, canal e região:** Produtos são distribuÃdos com base em médias ou regras fixas, ignorando diferenças reais de demanda local. 3001- **Sortimento desalinhado com o comportamento do consumidor:** A loja, o canal ou o marketplace não oferecem o mix mais aderente ao perfil de compra. 3002- **Margem pressionada por decisões tardias:** Correções emergenciais geram desconto, remanejamento, custo logÃstico, perda de venda e baixa eficiência operacional. 3003 3004> A combinação mais cara é simples: falta no SKU que venderia bem e sobra no SKU que ninguém quer comprar. 3005 3006## Problem 3007 3008Forecast tradicional não resolve demanda volátil, granular e intermitente. 3009
3010Muitos processos de previsão de demanda ainda dependem de médias históricas, regras fixas, planilhas e análises agregadas. 3011 3012Esses métodos funcionam em cenários estáveis, mas falham quando a demanda varia por SKU, loja, canal, região, preço, promoção e comportamento do consumidor. 3013 3014Na prática, a operação precisa responder perguntas que esses modelos não cobrem bem: 3015 3016- **Qual SKU tem maior risco de ruptura?** 3017- **Qual loja precisa de mais ou menos estoque?** 3018- **Onde o excesso está se formando?** 3019- **Qual categoria precisa de ajuste de sortimento?** 3020- **Qual canal está mudando o padrão de demanda?** 3021- **Qual nÃvel de estoque faz sentido considerando margem e lead time?** 3022- **Onde a demanda já mudou, mas ainda não apareceu nos relatórios?** 3023 3024> O problema não é só prever vendas. à transformar previsão em decisão. 3025 3026Sem orientar compra, reposição, alocação e priorização, a operação continua reativa. A empresa entende melhor o problema, mas ainda age tarde. 3027 3028IA genérica também não resolve quando entrega apenas análise. Para gerar impacto real, a IA precisa atuar no ciclo completo: prever, recomendar, decidir, ativar e aprender continuamente. 3029 3030## Solution 3031 3032A infinity6 aplica motores proprietários de IA para conectar demanda, estoque, sortimento e alocação em um único ciclo de decisão. 3033 3034A solução roda sobre os sistemas atuais (ERP, WMS, OMS, CRM), usando dados existentes para gerar recomendações acionáveis. 3035 3036- **i6 Previsio** â Motor de previsão de demanda por SKU, loja, canal e perÃodo. Identifica padrões de venda, sazonalidade, volatilidade e risco de ruptura ou excesso. 3037 3038 *Aplicações:* 3039Previsão de demanda e vendas. 3040Identificação de ruptura e excesso. 3041Planejamento de abastecimento. 3042Priorização de SKUs. 3043 3044- **i6 RecSys** â Motor de recomendação para otimizar mix, sortimento e alocação. Analisa similaridade de produtos, comportamento de lojas e potencial de venda. 3045 3046 *Aplicações:* 3047Recomendação de mix e sortimento. 3048Alocação entre CD, loja e canal. 3049Identificação de substitutos. 3050Priorização de produtos. 3051 3052- **i6 Signal** â Interface que transforma previsões em decisões operacionais. 3053 3054 *Responde de forma direta:* 3055O que pedir, quanto, para onde e quando. 3056Onde há risco de ruptura ou excesso. 3057Qual decisão gera mais impacto. 3058 3059> O diferencial é simples: **transformar previsão em ação antes da perda acontecer**. 3060 3061## Application 3062 3063A solução opera como uma camada de inteligência acima dos sistemas atuais. O ERP continua registrando compras, pedidos, estoque, transferências e movimentações. A infinity6 adiciona uma camada preditiva para orientar melhores decisões de demanda e supply. 3064 3065- **Atualização diária** das previsões e da polÃtica de estoque. 3066- **Restrições reais** incorporadas: lead time do fornecedor, shelf life, nÃvel de serviço alvo por categoria, margem ponderada. 3067- **Explicabilidade** por SKU: cada recomendação vem com os fatores que a sustentam, prontos para discussão com o comprador. 3068 3069### Fluxo de aplicação 3070**1. Integração dos dados de negócio:** 3071A infinity6 conecta dados de venda, estoque, produto, preço, canal, loja, campanha e operação. 3072 3073**2. Modelagem preditiva:** 3074Os motores proprietários identificam padrões de demanda, risco de ruptura, risco de excesso, comportamento de giro, sazonalidade, volatilidade e oportunidades de alocação. 3075 3076**3. Recomendação operacional:** 3077A IA gera recomendações práticas para previsão, compra, reposição, transferência, sortimento, nÃvel de serviço e priorização de SKUs. 3078 3079**4. Ativação no processo atual:** 3080As recomendações são entregues por API, arquivo, dashboard ou i6 Signal, sem substituir os sistemas atuais. 3081 3082**5. Aprendizado contÃnuo:** 3083Os modelos reaprendem com novos dados de venda, estoque, ruptura, campanha, preço, reposição e resposta operacional. 3084 3085## Results 3086 3087- **+100MM** Savings em incineração de medicamentos 3088- **+61,5%** Aumento de eficiência na predição de ruptura 3089- **75%** NÃvel de acurácia na predição de demanda sell-in (média mercado de 30%) 3090- **85%** NÃvel de acurácia na predição de demanda sell-out (média mercado de 70%) 3091 3092## FAQ 3093 3094**O que é IA preditiva para demanda e supply?** 3095à o uso de IA para analisar dados de vendas, estoque, preço, produto, canal e comportamento, prevendo demanda e orientando decisões de compra, reposição, alocação e sortimento. 3096 3097**Qual problema a IA resolve na previsão de demanda?** 3098Antecipa mudanças antes que virem ruptura, excesso ou perda de margem, melhorando previsões por SKU, loja, canal e região. 3099 3100**Como a IA ajuda a reduzir ruptura?** 3101Identifica risco com base em venda, estoque, lead time e sazonalidade, permitindo agir antes da falta. 3102 3103**Como a IA ajuda a reduzir excesso de estoque?** 3104Detecta onde há estoque acima da demanda real, permitindo ajustar compra, redistribuição e sortimento. 3105 3106**Qual a diferença entre forecast tradicional e IA preditiva?** 3107O tradicional usa médias e regras fixas. A IA aprende padrões granulares e se adapta rapidamente à s mudanças. 3108 3109**A solução substitui o ERP ou ferramenta de S&OP?** 3110Não. Atua como uma camada acima dos sistemas atuais, complementando ERP e S&OP com inteligência preditiva. 3111 3112**Quais dados são necessários para começar?** 3113Histórico de vendas, produtos, estoque, preço, canal e calendário. Dados adicionais aumentam a precisão. 3114 3115**A IA funciona para SKUs novos sem histórico?** 3116Sim. Usa similaridade com outros produtos, atributos e padrões de comportamento para estimar demanda inicial. 3117 3118**A IA funciona para produtos com venda intermitente?** 3119Sim. Modelos consideram padrões irregulares e sinais contextuais para melhorar previsões. 3120 3121**A solução funciona para varejo fÃsico, e-commerce, marketplace e indústria?** 3122Sim. Aplica-se a qualquer operação que precise equilibrar demanda e oferta com mais precisão. 3123 3124**Quanto tempo leva para ver resultado?** 3125Normalmente entre 30 e 90 dias, dependendo dos dados e do desdobramento da operação. 3126 3127**A solução também ajuda em sortimento?** 3128Sim. Recomenda o mix ideal por loja, canal ou região, alinhando oferta à demanda real. 3129 3130**Como demanda e supply se conectam com comportamento e conversão?** 3131Sinais de navegação, busca e intenção ajudam a antecipar demanda antes da venda acontecer. 3132 3133**Como demanda e supply se conectam com operações preditivas?** 3134A previsão vira ação operacional: priorização, alerta e decisão no dia a dia. 3135 3136**Como dados de demanda podem gerar monetização?**
3137Podem ser usados como ativos estratégicos para gerar inteligência de mercado e novas receitas.`,XTe=`--- 3138title: "Predictive Operations" 3139description: "From demand forecasting to execution: proprietary AI that anticipates stockouts, prioritizes orders and activates the operations team on the right channel, at the right moment." 3140slug: predictive-operations 3141language: en 3142hero_kicker: "Transformation · Predictive Operations" 3143hero_headline: "The next operational decision can't wait for the dashboard to refresh." 3144hero_sub: "Modern operations **lose efficiency when critical decisions arrive after the problem**: urgent order, delay, stockout, excess, reallocation, service failure or corrective maintenance.\\n\\nThe difference between a reactive operation and a predictive operation lies in the ability to anticipate what is likely to happen, prescribe the best action and activate the right team before the occurrence becomes cost.\\n\\nPredictive and prescriptive AI transforms operational signals into early decisions, connecting forecast, priority, policy and execution." 3145sectors: "retail, industry, CPG, logistics" 3146hub_theme: inventory 3147related_engines: "i6previsio, i6elasticprice, i6recsys, i6signal" 3148related_stories: "marketplace-excellence-pharmacy, customer-engagement-online-sales, sales-forecast-precision" 3149cover_image: null 3150--- 3151## Pain 3152 3153### Operations lose margin when the decision arrives after the event. 3154 3155Every operation generates signals before a failure happens. Demand starts rising before the urgent order. Lead time deviates before the delay. Inventory starts becoming unbalanced before the stockout. The asset shows risk before corrective maintenance. 3156 3157The problem is that these signals are often scattered across systems, reports, spreadsheets and dashboards. **The data exists, but the action arrives late.** 3158 3159In practice, supply, logistics, purchasing, industry, maintenance, planning and operations teams deal with recurring pain points: 3160 3161- **Urgent orders due to lack of anticipation:** Demand accelerates, inventory drops, lead time does not keep up and the operation only notices when it needs to correct urgently. 3162 3163- **Delays that become penalties or service loss:** Operational deviations appear too late to protect OTIF, SLA, service level or contract. 3164 3165- **Stockout and overstock in the same operation:** Product is missing where there is demand and inventory is sitting where the need has already cooled down. 3166 3167- **Corrective maintenance instead of predictive maintenance:** Assets and components show risk signals, but the intervention decision only happens after the failure. 3168 3169- **Teams operating dashboards, not decisions:** The team monitors indicators, but still needs to manually decide what to prioritize, where to act and which action generates the highest impact. 3170 3171>The conclusion is simple: when the operation only sees the problem after it appears, the cost has already entered the margin. 3172 3173## Problem 3174 3175### Traditional systems are reactive by design. 3176 3177A large part of operational systems was built to record, control and report what happened. ERP, WMS, TMS, MES, spreadsheets and dashboards are essential to the operation, but they usually act after the fact. 3178 3179They show orders, inventory, transportation, production, maintenance, SLA, delay, cost and execution. But they rarely answer with precision: 3180 3181- **1. Which operational event will break first?** 3182- **2. Which order has the highest delay risk?** 3183- **3. Which stockout can be avoided now?** 3184- **4. Which asset needs intervention before failure?** 3185- **5. Which decision protects more margin or service level?** 3186- **6. Which queue should be prioritized by financial impact, not by order of arrival?** 3187- **7. Which action should be taken today to avoid a cost tomorrow?** 3188 3189>The problem is not lack of information. It is lack of early decision-making. 3190 3191Isolated forecasting also does not solve it: predicting a risk without connecting the forecast to the next action becomes just another chart. Generic AI also fails when it delivers analysis without operational context, without real constraints, without prioritization and without **continuous learning**. 3192 3193To create impact, AI needs to operate across the full cycle: predict, prescribe, prioritize, activate and relearn. 3194 3195## Solution 3196 3197### Proprietary AI engines to transform reactive operations into anticipatory operations. 3198 3199infinity6 applies proprietary predictive and prescriptive AI engines to connect operational signals, risk forecasting, impact-based prioritization and next-action activation. 3200 3201**The solution runs above current systems, such as ERP, WMS, TMS, MES, OMS and operational platforms**, using existing data to generate actionable recommendations without replacing the current operation. 3202 3203- **i6 Previsio -** Granular forecasting to anticipate demand, stockout, delay, excess and operational risk. 3204 3205 *Applications:* Demand forecasting, stockout and overstock risk, delay and SLA forecasting, failure risk by asset or process, forecast by SKU, POS, channel, route or supplier. 3206 3207- **i6 RecSys -** Recommendation to prioritize actions and decisions by business impact. 3208 3209 *Applications:* Prioritization of orders and queues, operational allocation, prioritization of SKUs, routes and suppliers, decision-making by margin, service and urgency. 3210 3211- **i6 ElasticPrice -** Dynamic pricing optimization to maximize margin, turnover and competitiveness. 3212 3213 *Applications:* Price adjustment by demand and elasticity, margin optimization by SKU and channel, reaction to competition and market context, pricing by inventory, turnover and stockout r
3213isk. 3214 3215- **i6 Signal -** Interface that turns forecast and recommendation into clear decision-making. 3216 3217 *Answers:* What to prioritize? Where to act? Which risk is forming? Which action reduces the greatest loss? Which decision protects service? Turns alerts into action before cost is incurred. 3218 3219## Application 3220 3221### How predictive operations run in practice. 3222 3223The solution operates as an intelligence layer above current systems. ERP, WMS, TMS, MES, OMS and operational tools continue recording orders, inventory, transportation, production, maintenance, transfers and execution. 3224 3225The predictive layer identifies risks, prioritizes impacts and delivers prescriptive recommendations for the team to act within the current process. 3226 3227**01. Business data** 3228 3229The foundation starts with the signals the operation already has: orders, inventory, sales, lead time, supplier, production, transportation, maintenance, SLA, margin, service level, stockout, delay, operational queue, logistics cost and historical operational response. 3230 3231This data reveals risk, urgency, constraint, financial impact, failure probability and anticipation opportunity. 3232 3233**02. Predictive engine** 3234 3235The proprietary engines identify patterns that dashboards, fixed rules and traditional alerts do not capture. 3236 3237AI calculates stockout risk, delay, overstock, failure, SLA breach, urgent order, lead time deviation, operational bottleneck and expected impact by decision. 3238 3239The forecast is not just a number. It considers context, confidence interval, seasonality, local constraint, real supplier lead time, operational history and execution response. 3240 3241**03. Prescriptive decision** 3242 3243Prediction becomes practical guidance for the operation. 3244 3245AI indicates which event to prioritize, which order to accelerate, which SKU to redistribute, which asset to monitor, which supplier to activate, which route to review, which order to bring forward and which decision tends to protect more margin, service or efficiency. 3246 3247The queue stops being handled only by order of arrival and starts being prioritized by expected impact. 3248 3249**04. i6 Signal activation** 3250 3251Recommendations are delivered into the current workflow through API, file, dashboard, operational panel, ERP, communication tool or i6 Signal. 3252 3253Each alert comes with cause, context and explanatory factor, so the team understands why to act and does not just receive a notification. 3254 3255With each executed decision, the models learn from the real response of the operation, creating a continuous cycle: data, forecast, prescription, activation and learning. 3256 3257>The operation stops asking only âwhat happened?â and starts acting on âwhat needs to be done before the problem happens?â. 3258 3259## Results 3260 3261- **+55%** Conversion of new product suggestions 3262- **+100MM** Savings from avoiding product incineration (overstocking) 3263- **â57%** Messaging cost (CAC reduction) 3264- **+12M** Additional revenue from cross-selling financial products 3265 3266## FAQ 3267 3268**What are predictive operations?** 3269Predictive operations use AI to anticipate risks, deviations and opportunities before they become operational occurrences. Instead of only recording what happened, the operation starts predicting what is likely to happen and receiving recommendations on what to do. 3270 3271**What is the difference between predictive operations and an operational dashboard?** 3272A dashboard shows indicators. Predictive operations guide decisions. The difference is moving from visualizing the problem to early action: which risk to prioritize, where to act first, which action to execute and what impact to expect. 3273 3274**What does prescriptive decision mean?** 3275A prescriptive decision is the practical recommendation generated from the forecast. AI does not only indicate that there is a risk of delay, stockout, failure or excess. It recommends the action: accelerate an order, redistribute inventory, prioritize a SKU, review a route, activate a supplier or anticipate maintenance. 3276 3277**Does it work for process industries, not only retail?** 3278Yes. The predictive logic can be applied to retail, industry, distribution, logistics, pharma, consumer goods, e-commerce and asset-based operations. The model adjusts to the context: SKU, POS, channel, route, order, asset,
3278component, supplier or period. 3279 3280**Do I need to integrate ERP, MES, WMS and TMS?** 3281Not necessarily at the beginning. Implementation can start with the system that has the highest leverage, usually ERP, WMS or a critical operational base, and expand as ROI validates new integrations. The solution acts as a layer above current systems. 3282 3283**How does AI help reduce urgent orders?** 3284AI identifies demand, inventory, lead time and stockout risk signals before the order becomes urgent. This allows the operation to anticipate purchasing, replenishment, transfer or prioritization. 3285 3286**How does AI improve OTIF and service level?** 3287AI anticipates risk of delay, shortage, bottleneck, stockout or operational deviation. This makes it possible to prioritize orders, routes, suppliers, SKUs or actions that most impact on-time delivery and complete fulfillment. 3288 3289**How does AI help with predictive maintenance?** 3290AI identifies risk signals in assets, components, usage cycles, failure history, operational context and anomalous behavior. This allows the operation to act before the failure becomes downtime, corrective maintenance or productivity loss. 3291 3292**How does the operational team adopt it?** 3293The recommendation needs to arrive in business language. i6 Signal can deliver guidance through panel, API, operational tool, email, Slack, WhatsApp or conversational interface. Adoption improves when the team understands the cause, priority and impact of each recommendation. 3294 3295**Do the models explain why an action was recommended?** 3296Yes. Each alert or recommendation can include the factors that support the decision, such as risk, lead time, inventory, demand, margin at risk, SLA, history, seasonality, recent behavior and expected impact. 3297 3298**Do the models handle shocks, strikes, recalls or weather events?** 3299Yes. Recurring reevaluation allows forecasts to adjust as new signals come in. In extreme events, the model can signal higher uncertainty, widen the confidence interval and indicate that the operation should treat that scenario as a high-risk exception. 3300 3301**How do you measure the impact of predictive operations?** 3302The main metrics include reduction in urgent orders, OTIF improvement, stockout reduction, overstock reduction, lower logistics cost, less corrective maintenance, SLA improvement, rework reduction and operational margin gain. 3303 3304**How does this page connect with Demand & Supply?** 3305Demand & Supply goes deeper into the application of AI for demand forecasting, inventory, stockout, overstock, assortment, replenishment and intelligent allocation. 3306 3307**How does this page connect with Data Monetization?** 3308Predictive operations also monetize data by transforming operational signals into cost reduction, margin protection, logistics efficiency, service improvement and new commercial opportunities. 3309 3310**How does this page connect with Behavior & Conversion?** 3311Behavior and conversion signals can anticipate demand, stockout risk, replenishment needs, channel pressure and operational opportunities before the sale happens.`,JTe=`--- 3312title: "Operações Preditivas" 3313description: "Da previsão de demanda à execução: IA proprietária que antecipa ruptura, prioriza ordens e ativa o time de operações no canal certo, no momento certo." 3314slug: predictive-operations 3315language: pt 3316hero_kicker: "Transformação · Operações Preditivas" 3317hero_headline: "A próxima decisão operacional não pode esperar o dashboard atualizar." 3318hero_sub: "Operações modernas **perdem eficiência quando decisões crÃticas chegam depois do problema**: pedido urgente, atraso, ruptura, excesso, remanejamento, falha de serviço ou manutenção corretiva.\\n\\nA diferença entre uma operação reativa e uma operação preditiva está na capacidade de antecipar o que tende a acontecer, prescrever a melhor ação e ativar o time certo antes que a ocorrência vire custo.\\n\\nIA preditiva e prescritiva transforma sinais operacionais em decisões antecipadas, conectando previsão, prioridade, polÃtica e execução." 3319sectors: "varejo, indústria, CPG, logÃstica" 3320hub_theme: inventory
3321related_engines: "i6previsio, i6elasticprice, i6recsys, i6signal" 3322related_stories: "sales-forecast-precision, marketplace-excellence-pharmacy, customer-engagement-online-sales" 3323cover_image: null 3324--- 3325## Pain 3326 3327### Operações perdem margem quando a decisão chega depois do evento. 3328 3329Toda operação gera sinais antes de uma falha acontecer. A demanda começa a subir antes do pedido urgente. O lead time desvia antes do atraso. O estoque começa a desequilibrar antes da ruptura. O ativo mostra risco antes da manutenção corretiva. 3330 3331O problema é que esses sinais muitas vezes ficam espalhados em sistemas, relatórios, planilhas e dashboards. **O dado existe, mas a ação chega tarde.** 3332 3333Na prática, times de supply, logÃstica, compras, indústria, manutenção, planejamento e operações convivem com dores recorrentes: 3334 3335- **Pedidos urgentes por falta de antecipação:** A demanda acelera, o estoque cai, o lead time não acompanha e a operação só percebe quando precisa corrigir com urgência. 3336 3337- **Atrasos que viram multa ou perda de serviço:** Desvios operacionais aparecem tarde demais para proteger OTIF, SLA, nÃvel de serviço ou contrato. 3338 3339- **Ruptura e overstock na mesma operação:** Falta produto onde existe demanda e sobra estoque onde a necessidade já esfriou. 3340 3341- **Manutenção corretiva no lugar de manutenção preditiva:** Ativos e componentes mostram sinais de risco, mas a decisão de intervenção só acontece depois da falha. 3342 3343- **Times operando dashboards, não decisões:** A equipe acompanha indicadores, mas ainda precisa decidir manualmente o que priorizar, onde agir e qual ação gera maior impacto. 3344 3345>A conclusão é simples: quando a operação só enxerga o problema depois que ele aparece, o custo já entrou na margem. 3346 3347## Problem 3348 3349### Sistemas tradicionais são reativos por design. 3350 3351Grande parte dos sistemas operacionais foi construÃda para registrar, controlar e reportar o que aconteceu. ERP, WMS, TMS, MES, planilhas e dashboards são essenciais para a operação, mas normalmente atuam depois do fato. 3352 3353Eles mostram pedido, estoque, transporte, produção, manutenção, SLA, atraso, custo e execução. Mas raramente respondem com precisão: 3354 3355- **1. Qual evento operacional vai estourar primeiro?** 3356- **2. Qual pedido tem maior risco de atraso?** 3357- **3. Qual ruptura pode ser evitada agora?** 3358- **4. Qual ativo precisa de intervenção antes da falha?** 3359- **5. Qual decisão protege mais margem ou nÃvel de serviço?** 3360- **6. Qual fila deve ser priorizada pelo impacto financeiro, não pela ordem de chegada?** 3361- **7. Qual ação deve ser tomada hoje para evitar um custo amanhã?** 3362 3363>O problema não é falta de informação. à falta de decisão antecipada. 3364 3365Forecast isolado também não resolve: prever um risco sem conectar previsão à próxima ação vira apenas mais um gráfico. IA genérica também falha quando entrega análise sem contexto operacional, sem restrições reais, sem priorização e sem **aprendizado contÃnuo**. 3366 3367Para gerar impacto, a IA precisa atuar no ciclo completo: prever, prescrever, priorizar, ativar e reaprender. 3368 3369## Solution 3370 3371### Motores proprietários de IA para transformar operação reativa em operação antecipatória. 3372 3373A infinity6 aplica motores proprietários de IA preditiva e prescritiva para conectar sinais operacionais, previsão de risco, priorização por impacto e ativação da próxima ação. 3374 3375**A solução roda acima dos sistemas atuais, como ERP, WMS, TMS, MES, OMS e plataformas operacionais**, usando dados existentes para gerar recomendações acionáveis sem substituir a operação atual. 3376 3377- **i6 Previsio:** Previsão granular para antecipar demanda, ruptura, atraso, excesso e risco operacional. 3378 3379 *Aplicações:* Previsão de demanda, risco de ruptura e overstock, previsão de atraso e SLA, risco de falha por ativo ou processo, forecast por SKU, PDV, canal, rota ou fornecedor. 3380 3381- **i6 RecSys:** Recomendação para priorizar ações e decisões pelo impacto no negócio. 3382 3383 *Aplicações:* Priorização de pedidos e filas, alocação operacional, priorização de SKUs, rotas e fornecedores, decisão por margem, serviço e urgência. 3384
3385- **i6 ElasticPrice:** Otimização dinâmica de preços para maximizar margem, giro e competitividade. 3386 3387 *Aplicações:* Ajuste de preço por demanda e elasticidade, otimização de margem por SKU e canal, reação a concorrência e contexto de mercado, precificação por estoque, giro e risco de ruptura. 3388 3389- **i6 Signal:** Interface que transforma previsão e recomendação em decisão clara. 3390 3391 *Responde:* O que priorizar? Onde agir? Qual risco está se formando? Qual ação reduz maior perda? Qual decisão protege serviço Transforma alerta em ação antes do custo. 3392 3393## Application 3394 3395### Como operações preditivas rodam na prática. 3396 3397A solução opera como uma camada de inteligência acima dos sistemas atuais. ERP, WMS, TMS, MES, OMS e ferramentas operacionais continuam registrando pedidos, estoque, transporte, produção, manutenção, transferências e execução. 3398 3399A camada preditiva identifica riscos, prioriza impactos e entrega recomendações prescritivas para o time agir no processo atual. 3400 3401**01. Dado de negócio** 3402 3403A base começa nos sinais que a operação já possui: pedidos, estoque, vendas, lead time, fornecedor, produção, transporte, manutenção, SLA, margem, nÃvel de serviço, ruptura, atraso, fila operacional, custo logÃstico e resposta histórica da operação. 3404 3405Esses dados revelam risco, urgência, restrição, impacto financeiro, probabilidade de falha e oportunidade de antecipação. 3406 3407**02. Motor preditivo** 3408 3409Os motores proprietários identificam padrões que dashboards, regras fixas e alertas tradicionais não capturam. 3410 3411A IA calcula risco de ruptura, atraso, overstock, falha, quebra de SLA, pedido urgente, desvio de lead time, gargalo operacional e impacto esperado por decisão. 3412 3413A previsão não é apenas um número. Ela considera contexto, intervalo de confiança, sazonalidade, restrição local, lead time real, histórico operacional e resposta da execução. 3414 3415**03. Decisão prescritiva** 3416 3417A predição vira orientação prática para a operação. 3418 3419A IA indica qual evento priorizar, qual pedido acelerar, qual SKU redistribuir, qual ativo monitorar, qual fornecedor acionar, qual rota revisar, qual ordem antecipar e qual decisão tende a proteger mais margem, serviço ou eficiência. 3420 3421A fila deixa de ser tratada apenas por ordem de chegada e passa a ser priorizada por impacto esperado. 3422 3423**04. Ativação i6 Signal** 3424 3425As recomendações são entregues no fluxo atual por API, arquivo, dashboard, painel operacional, ERP, ferramenta de comunicação ou i6 Signal. 3426 3427Cada alerta vem com causa, contexto e fator explicativo, para que o time entenda por que agir e não apenas receba uma notificação. 3428 3429A cada decisão executada, os modelos aprendem com a resposta real da operação, criando um ciclo contÃnuo: dado, previsão, prescrição, ativação e aprendizado. 3430 3431>A operação deixa de perguntar apenas âo que aconteceu?â e passa a agir sobre âo que precisa ser feito antes que o problema aconteça?â. 3432 3433## Results 3434 3435- **+55%** Conversão de sugestões de novos produtos 3436- **+100MM** Savings em não incineração de produtos (overstocking) 3437- **â57%** Custo de mensageria (redução de CAC) 3438- **+12MM** Receita adicional em cross-sell de produtos financeiros 3439 3440## FAQ 3441 3442**O que são operações preditivas?** 3443Operações preditivas usam IA para antecipar riscos, desvios e oportunidades antes que eles virem ocorrência operacional. Em vez de apenas registrar o que aconteceu, a operação passa a prever o que tende a acontecer e a receber recomendações sobre o que fazer. 3444 3445**Qual a diferença entre operação preditiva e dashboard operacional?** 3446Dashboard mostra indicadores. Operação preditiva orienta decisão. A diferença está em sair da visualização do problema para a ação antecipada: qual risco priorizar, onde agir primeiro, qual ação executar e qual impacto esperar. 3447 3448**O que significa decisão prescritiva?** 3449Decisão prescritiva é a recomendação prática gerada a partir da previsão. A IA não apenas indica que existe risco de atraso, ruptura, falha ou excesso. Ela recomenda a ação: acelerar pedido, redistribuir estoque, priorizar SKU, revisar rota, acionar fornecedor ou antecipar manutenção. 3450 3451**Funciona para indústria de processo, não só varejo?** 3452Sim. A lógica preditiva pode ser aplicada em varejo, indústria, distribuição, logÃstica, farma, bens de consumo, e-commerce e operações com ativos. O modelo se ajusta ao contexto: SKU, PDV, canal, rota, pedido, ativo, componente, fornecedor ou perÃodo. 3453 3454**Preciso integrar ERP, MES, WMS e TMS?** 3455Não necessariamente no inÃcio. A implantação pode começar pelo sistema com maior alavancagem, geralmente ERP, WMS ou base operacional crÃtica, e expandir conforme o ROI valida novas integrações. A solução atua como camada acima dos sistemas atuais. 3456
3457**Como a IA ajuda a reduzir pedidos urgentes?** 3458A IA identifica sinais de demanda, estoque, lead time e risco de ruptura antes que o pedido vire urgência. Com isso, a operação consegue antecipar compra, reposição, transferência ou priorização. 3459 3460**Como a IA melhora OTIF e nÃvel de serviço?** 3461A IA antecipa risco de atraso, falta, gargalo, ruptura ou desvio operacional. Isso permite priorizar pedidos, rotas, fornecedores, SKUs ou ações que mais impactam entrega no prazo e atendimento completo. 3462 3463**Como a IA ajuda em manutenção preditiva?** 3464A IA identifica sinais de risco em ativos, componentes, ciclos de uso, histórico de falha, contexto operacional e comportamento anômalo. Com isso, a operação pode agir antes que a falha vire parada, manutenção corretiva ou perda de produtividade. 3465 3466**Como o time operacional adere?** 3467A recomendação precisa chegar em linguagem de negócio. O i6 Signal pode entregar orientações por painel, API, ferramenta operacional, e-mail, Slack, WhatsApp ou interface conversacional. A adoção melhora quando o time entende causa, prioridade e impacto de cada recomendação. 3468 3469**Os modelos explicam por que uma ação foi recomendada?** 3470Sim. Cada alerta ou recomendação pode trazer os fatores que sustentam a decisão, como risco, lead time, estoque, demanda, margem em risco, SLA, histórico, sazonalidade, comportamento recente e impacto esperado. 3471 3472**Os modelos lidam com choques, greve, recall ou evento climático?** 3473Sim. A reavaliação recorrente permite ajustar previsões conforme novos sinais entram. Em eventos extremos, o modelo pode sinalizar maior incerteza, ampliar intervalo de confiança e indicar que a operação deve tratar aquele cenário como exceção de risco elevado. 3474 3475**Como medir o impacto de operações preditivas?** 3476As principais métricas incluem redução de pedidos urgentes, melhora de OTIF, redução de ruptura, redução de overstock, queda de custo logÃstico, menor manutenção corretiva, melhora de SLA, redução de retrabalho e ganho de margem operacional. 3477 3478**Como essa página se conecta com Demanda & Supply?** 3479Demanda & Supply aprofunda a aplicação de IA para previsão de demanda, estoque, ruptura, overstock, sortimento, reposição e alocação inteligente. 3480 3481**Como essa página se conecta com Monetização de Dados?** 3482Operações preditivas também monetizam dados ao transformar sinais operacionais em redução de custo, proteção de margem, eficiência logÃstica, melhora de serviço e novas oportunidades comerciais. 3483 3484**Como essa página se conecta com Comportamento & Conversão?** 3485Sinais de comportamento e conversão podem antecipar demanda, risco de ruptura, necessidade de abastecimento, pressão de canal e oportunidades operacionais antes da venda acontecer.`,eOe=["demand-supply-efficiency","data-monetization","predictive-operations","behavior-conversion"];function tOe(e){const t=e.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/);if(!t)return{data:{},content:e};const[,n,r]=t,a={};for(const i of n.split(/\r?\n/)){if(!i.trim()||i.trim().startsWith("#"))continue;const o=i.indexOf(":");if(o===-1)continue;const l=i.slice(0,o).trim();let c=i.slice(o+1).trim();const u=c.startsWith('"')&&c.endsWith('"')&&c.length>=2,d=c.startsWith("'")&&c.endsWith("'")&&c.length>=2;(u||d)&&(c=c.slice(1,-1)),u&&(c=c.replace(/\\\\/g,"\0").replace(/\\n
3485/g,` 3486`).replace(/\\t/g," ").replace(/\\"/g,'"').replace(/\u0000/g,"\\")),c===""||c==="null"||c==="~"?a[l]=null:c==="true"?a[l]=!0:c==="false"?a[l]=!1:a[l]=c}return{data:a,content:r.trim()}}const nOe={pain:"pain",dor:"pain",dores:"pain",problem:"problem",problema:"problem",solution:"solution",solucao:"solution",solução:"solution",application:"application",aplicacao:"application",aplicação:"application",results:"results",resultados:"results",faq:"faq","perguntas frequentes":"faq"};function rOe(e){const t=e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").trim();return nOe[t]||t.replace(/\s+/g,"-")}function aOe(e){const t=e.split(/\r?\n/),n=[];let r=null;for(const a of t){const i=a.match(/^##\s+(.+?)\s*$/);i?(r&&n.push(r),r={id:rOe(i[1]),title:i[1].trim(),body:""}):r&&(r.body+=a+` 3487`)}return r&&n.push(r),n.map(a=>({...a,body:a.body.trim()}))}function iOe(e){if(!e)return[];const t=/\*\*([^*]+\?)\*\*\s*\n+([^\n][^\n]*(?:\n[^\n*][^\n]*)*)/g,n=[];let r;for(;(r=t.exec(e))!==null;)n.push({q:r[1].trim(),a:r[2].trim()});return n}function oOe(e){if(!e)return[];const t=[];for(const n of e.split(/\r?\n/)){const r=n.match(/^\s*-\s+\*\*([^*]+)\*\*\s*(.+)$/);if(r){const a=r[2].split("|").map(i=>i.trim());t.push({value:r[1].trim(),label:a[0]||"",source:a[1]})}}return t}const sOe=Object.assign({"/src/content/landings/README.md":VTe,"/src/content/landings/behavior-conversion-en.md":HTe,"/src/content/landings/behavior-conversion-pt.md":KTe,"/src/content/landings/data-monetization-en.md":GTe,"/src/content/landings/data-monetization-pt.md":QTe,"/src/content/landings/demand-supply-efficiency-en.md":YTe,"/src/content/landings/demand-supply-efficiency-pt.md":ZTe,"/src/content/landings/predictive-operations-en.md":XTe,"/src/content/landings/predictive-operations-pt.md":JTe}),lOe=Object.entries(sOe).map(([e,t])=>{const{data:n,content:r}=tOe(t),a=n;if(!a.title||!a.language||!a.slug)return null;const i=aOe(r),o=i.find(c=>c.id==="faq"),l=i.find(c=>c.id==="results");return{...a,sections:i,faq:o?iOe(o.body):[],stats:l?oOe(l.body):[]}}).filter(e=>e!==null),cOe=e=>eOe.includes(e),uOe=e=>{const{language:t}=be();return lOe.find(n=>n.slug===e&&n.language===t)||null},dOe=ja("content/logos/infinity6_CMYK_color_symbol_72dpi.png"),qD=S.memo(({story:e,language:t})=>{const r=wt()(`/success-stories/${e.slug}`),a=e.clientAnon?dOe:e.logo;return s.jsxs(Ee,{to:r,className:"group flex flex-col overflow-hidden rounded-xl border border-white/10 bg-white/[0.02] hover:bg-white/[0.04] hover:border-[#F4845F]/40 transition-all duration-500 h-full",children:[s.jsx("div",{className:"px-5 pt-5 pb-3 flex items-center justify-center h-16",children:s.jsx("img",{src:a,alt:e.clientAnon?"infinity6":e.client,className:`max-h-10 max-w-[120px] object-contain opacity-70 group-hover:opacity-100 transition-opacity duration-500 ${e.clientAnon?"brightness-0 invert":""}`})}),s.jsx("div",{className:"mx-5 h-px bg-white/10"}),s.jsx("div",{className:"px-5 pt-4 pb-3 flex-1",children:s.jsx("h4",{className:"text-sm font-semibold text-white group-hover:text-[#F4845F] transition-colors duration-300 line-clamp-2 leading-snug",children:e.title})}),s.jsxs("div",{className:"px-5 pb-4 space-y-2",children:[e.metric1&&s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-xs font-bold text-[#F4845F]",children:e.metric1.split(" ")[0]}),s.jsx("span",{className:"text-[11px] text-white/60 leading-tight",children:e.metric1.split(" ").slice(1).join(" ")})]}),e.metric2&&s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-xs font-bold text-[#F4845F]",children:e.metric2.split(" ")[0]}),s.jsx("span",{className:"text-[11px] text-white/60 leading-tight",children:e.metric2.split(" ").slice(1).join(" ")})]})]}),s.jsxs("div",{className:"px-5 pb-5 pt-2 mt-auto flex items-center justify-between",children:[s.jsx("span",{className:"text-[11px] font-medium text-white/40 uppercase tracking-wider group-hover:text-white/60 transition-colors",children:t==="pt"?"Ler case completo":"Read full case"}),s.jsx(_a,{size:14,className:"text-white/40 group-hover:text-[#F4845F] group-hover:translate-x-1 transition-all duration-300"})]})]})});qD.displayName="RelatedStoryMiniCard";const ss="https://infinity6.ai",Df={i6recsys:{name:"i6 RecSys",icon:Ek,anchor:"i6recsys"},i6previsio:{name:"i6 Previsio",icon:_p,anchor:"i6previsio"},i6elasticprice:{name:"i6 ElasticPrice",icon:MI,anchor:"i6elasticprice"},i6signal:{name:"i6 Signal",icon:zI,anchor:"i6signal"}},UD=e=>e?e.split(",").map(t=>
3487t.trim()).filter(Boolean):[],vs=({title:e,eyebrow:t,children:n})=>s.jsx("section",{className:"py-16 md:py-20 border-t border-white/5",children:s.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[t&&s.jsx("p",{className:"text-[11px] font-semibold tracking-[0.3em] uppercase text-[#F4845F] mb-3",children:t}),s.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-white mb-8",children:e}),n]})}),Lf=({md:e})=>s.jsx("div",{className:"prose prose-invert prose-headings:text-white prose-h3:text-lg prose-h3:mt-8 prose-p:text-white/75 prose-li:text-white/75 prose-strong:text-white prose-a:text-[#F4845F] hover:prose-a:underline max-w-none text-[15px] leading-relaxed",children:s.jsx(Pu,{remarkPlugins:[Au],children:e})}),mOe=({piece:e,lang:t})=>{const n=wt();return s.jsx("section",{className:"relative pt-32 pb-16 md:pt-40 md:pb-24 bg-gradient-to-b from-[#0B1224] to-[#0A101F]",children:s.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[e.hero_kicker&&s.jsx("p",{className:"text-xs font-semibold tracking-[0.3em] uppercase text-[#F4845F] mb-5",children:e.hero_kicker}),s.jsx("h1",{className:"text-3xl md:text-5xl font-bold text-white leading-tight mb-6",children:e.hero_headline||e.title}),e.hero_sub&&s.jsx("div",{className:"prose prose-invert max-w-none text-base md:text-lg leading-relaxed mb-10 prose-p:text-white/65 prose-strong:text-white prose-li:text-white/65 prose-a:text-[#F4845F] hover:prose-a:underline",children:s.jsx(Pu,{remarkPlugins:[Au],children:e.hero_sub})}),s.jsxs(Ee,{to:n("/contact"),className:"group inline-flex items-center gap-2 px-6 py-3 rounded-full bg-[#F4845F] hover:bg-[#F4845F]/90 text-white text-sm font-semibold transition-all shadow-[0_0_20px_rgba(244,132,95,0.3)]",children:[t==="pt"?"Falar com a infinity6":"Talk to infinity6",s.jsx(_a,{size:16,className:"transition-transform group-hover:translate-x-1"})]})]})})},pOe=({piece:e,lang:t})=>{const n=UD(e.related_engines),r=n.filter(l=>l!=="i6signal").map(l=>Df[l]).filter(Boolean),a=n.includes("i6signal"),i=wt();if(r.length===0&&!a)return null;const o=Df.i6signal.icon;return s.jsxs("div",{className:"mt-8 space-y-4",children:[r.length>0&&s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:r.map(l=>{const c=l.icon;return s.jsxs(Ee,{to:i(`/our-ai#${l.anchor}`),className:"group flex items-start gap-4 border border-white/10 rounded-lg p-5 bg-white/[0.02] hover:border-[#F4845F]/40 hover:bg-white/[0.04] transition-all",children:[s.jsx("div",{className:"shrink-0 w-10 h-10 rounded-md border border-white/10 flex items-center justify-center text-[#F4845F] group-hover:border-[#F4845F]/50 transition-colors",children:s.jsx(c,{size:18,strokeWidth:1.5})}),s.jsxs("div",{className:"flex-1",children:[s.jsx("h4",{className:"text-sm font-semibold text-white group-hover:text-[#F4845F] transition-colors",children:l.name}),s.jsx("p",{className:"text-xs text-white/50 mt-1",children:t==="pt"?"Ver o motor â":"See the engine â"})]})]},l.anchor)})}),a&&s.jsxs(Ee,{to:i(`/our-ai#${Df.i6signal.anchor}`),className:"group flex items-start gap-4 border border-[#F4845F]/30 rounded-lg p-5 bg-[#F4845F]/[0.04] hover:border-[#F4845F]/60 hover:bg-[#F4845F]/[0.07] transition-all",children:[s.jsx("div",{className:"shrink-0 w-10 h-10 rounded-md border border-[#F4845F]/40 flex items-center justify-center text-[#F4845F] group-hover:border-[#F4845F] transition-colors",children:s.jsx(o,{size:18,strokeWidth:1.5})}),s.jsxs("div",{className:"flex-1",children:[s.jsx("p",{className:"text-[10px] font-semibold tracking-[0.2em] uppercase text-[#F4845F]/80 mb-1",children:t==="pt"?"Interface preditiva conversacional":"Conversational predictive interface"}),s.jsx("h4",{className:"text-sm font-semibold text-white group-hover:text-[#F4845F] transition-colors",children:Df.i6signal.name}),s.jsx("p",{className:"text-xs text-white/50 mt-1",children:t==="pt"?"Conhecer o i6 Signal â":"Discover i6 Signal â"})]})]})]})},fOe=({lang:e})=>{const t=e==="pt"?["Dado de negócio","Motor preditivo","Decisão prescritiva","Ativação i6 Signal"]:["Business data","Predictive engine","Prescriptive decision","i6 Signal activation"];return s.jsx("div",{className:"mt-8 flex flex-col md:flex-row items-stretch gap-3",children:t.map((n,r)=>s.jsxs("div",{className:"flex items-stretch gap-3 flex-1",children:[s.jsxs("div",{className:"flex-1 border border-white/10 rounded-lg p-5 bg-white/[0.02] text-center",children:[s.jsx("p",{className:"text-[11px] font-semibold tracking-[0.2em] uppercase text-[#F4845F] mb-2",children:String(r+1).padStart(2,"0")}),s.jsx("p",{className:"text-sm text-white/80 font-medium",children:n})]}),r<t.length-1&&s.jsx("div",{className:"hidden md:flex items-center text-white/30",children:s.jsx(_a,{size:16})})]},n))})},hOe=({piece:e})=>e.stats.length===0?null:s.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mt-8",children:e.stats.map((t,n)=>s.jsxs("div",{className:"border border-white/10 rounded-lg p-5 bg-white/[0.02]",children:[s.jsx("p",{className:"text-2xl md:text-3xl font-bold text-[#F4845F] mb-1",children:t.value}),s.jsx("p",{className:"text-xs text-white/70 leading-snug",children:t.label}),t.source&&s.jsx("p",{className:"text-[10px] text-white/40 mt-2 uppercase tracking-wider",children:t.source})]},n))}),gOe=({piece:e,lang:t})=>{const n=UD(e.related_stories).slice(0,3);if(n.length===0)return null;const r=n.map(a=>
3487R0e(a,t)).filter(Boolean);return r.length===0?null:s.jsx(vs,{eyebrow:t==="pt"?"Provas reais":"Real proof",title:t==="pt"?"Cases relacionados":"Related cases",children:s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:r.map(a=>s.jsx(qD,{story:a,language:t},a.slug))})})},vOe=({piece:e,lang:t})=>e.faq.length===0?null:s.jsx(vs,{eyebrow:t==="pt"?"Dúvidas frequentes":"Frequent questions",title:t==="pt"?"Perguntas frequentes":"FAQ",children:s.jsx("dl",{className:"space-y-6",children:e.faq.map((n,r)=>s.jsxs("div",{className:"border-l-2 border-[#F4845F]/40 pl-5",children:[s.jsx("dt",{className:"text-sm font-semibold text-white mb-2",children:n.q}),s.jsx("dd",{className:"text-sm text-white/65 leading-relaxed",children:n.a})]},r))})}),yOe=()=>{const{slug:e=""}=Wi(),{language:t}=be(),n=wt(),r=uOe(e);if(!cOe(e))return s.jsx(Rn,{to:n("/solutions"),replace:!0});if(!r)return s.jsx(Rn,{to:n("/solutions"),replace:!0});const a=`${ss}/${t}/solutions/${r.slug}`,i=r.sections.find(f=>f.id==="pain"),o=r.sections.find(f=>f.id==="problem"),l=r.sections.find(f=>f.id==="solution"),c=r.sections.find(f=>f.id==="application"),u=r.sections.find(f=>f.id==="results"),d=t==="pt"?"Setores":"Sectors",m={"@context":"https://schema.org","@type":"Service",name:r.title,description:r.description,url:a,serviceType:r.hero_kicker||r.title,provider:{"@type":"Organization",name:"infinity6",url:ss},areaServed:["BR","LatAm"],...r.stats.length>0?{hasOfferCatalog:{"@type":"OfferCatalog",name:t==="pt"?"Resultados mensuráveis":"Measurable results",itemListElement:r.stats.map(f=>({"@type":"QuantitativeValue",value:f.value,unitText:f.label}))}}:{}},p={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${ss}/${t}`},{"@type":"ListItem",position:2,name:t==="pt"?"Soluções":"Solutions",item:`${ss}/${t}/solutions`},{"@type":"ListItem",position:3,name:r.title,item:a}]};return s.jsxs(s.Fragment,{children:[s.jsxs(Na,{children:[s.jsx("html",{lang:t==="pt"?"pt-BR":"en"}),s.jsx("title",{children:`${r.title} | infinity6`}),s.jsx("meta",{name:"description",content:r.description}),s.jsx("link",{rel:"canonical",href:a}),s.jsx("link",{rel:"alternate",hrefLang:"en",href:`${ss}/en/solutions/${r.slug}`}),s.jsx("link",{rel:"alternate",hrefLang:"pt-BR",href:`${ss}/pt/solutions/${r.slug}`}),s.jsx("link",{rel:"alternate",hrefLang:"x-default",href:`${ss}/en/solutions/${r.slug}`}),s.jsx("meta",{property:"og:type",content:"website"}),s.jsx("meta",{property:"og:title",content:r.title}),s.jsx("meta",{property:"og:description",content:r.description}),s.jsx("meta",{property:"og:url",content:a}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify(m)}),s.jsx("script",{type:"application/ld+json",children:JSON.stringify(p)})]}),s.jsxs("div",{className:"sr-only","aria-hidden":"true",children:[s.jsx("h2",{children:r.title}),s.jsx("p",{children:r.description}),r.sectors&&s.jsxs("p",{children:[d,": ",r.sectors]}),r.faq.map((f,g)=>s.jsxs("div",{children:[s.jsx("strong",{children:f.q}),s.jsx("p",{children:f.a})]},g))]}),s.jsx(mOe,{piece:r,lang:t}),i&&s.jsx(vs,{eyebrow:t==="pt"?"A dor real":"The real pain",title:t==="pt"?"Dor":"Pain",children:s.jsx(Lf,{md:i.body})}),o&&s.jsx(vs,{eyebrow:t==="pt"?"Onde as soluções tradicionais falham":"Where traditional solutions fail",title:t==="pt"?"Problema":"Problem",children:s.jsx(Lf,{md:o.body})}
3487),l&&s.jsxs(vs,{eyebrow:t==="pt"?"Motores aplicados":"Applied engines",title:t==="pt"?"Solução":"Solution",children:[s.jsx(Lf,{md:l.body}),s.jsx(pOe,{piece:r,lang:t})]}),c&&s.jsxs(vs,{eyebrow:t==="pt"?"Como roda em produção":"How it runs in production",title:t==="pt"?"Aplicação":"Application",children:[s.jsx(Lf,{md:c.body}),s.jsx(fOe,{lang:t})]}),u&&s.jsx(vs,{eyebrow:t==="pt"?"Resultados em números":"Results in numbers",title:t==="pt"?"Resultados":"Results",children:s.jsx(hOe,{piece:r})}),s.jsx(gOe,{piece:r,lang:t}),s.jsx(vOe,{piece:r,lang:t}),s.jsx(ku,{})]})};function xOe(e,t,n){const r=S.useRef(null),a=S.useRef(e);a.current=e;const i=S.useCallback(()=>{r.current!==null&&window.clearTimeout(r.current),n&&(r.current=window.setTimeout(()=>a.current(),t))},[n,t]);return S.useEffect(()=>{if(!n){r.current!==null&&window.clearTimeout(r.current);return}i();const o=["pointerdown","pointermove","touchstart","keydown","wheel"],l=()=>i();return o.forEach(c=>document.addEventListener(c,l,{passive:!0})),()=>{o.forEach(c=>document.removeEventListener(c,l)),r.current!==null&&window.clearTimeout(r.current)}},[n,i]),i}const bOe=({children:e,inactivityMs:t,onInactive:n,active:r})=>{const a=S.useRef(null);return xOe(n,t,r),S.useEffect(()=>{const i=document.documentElement,o=document.body,l=i.style.cssText,c=o.style.cssText;i.style.background="#0B1224",o.style.background="#0B1224",o.style.overflow="hidden",o.style.userSelect="none",o.style.webkitUserSelect="none",o.style.touchAction="manipulation";const u=d=>d.preventDefault();return document.addEventListener("contextmenu",u),document.addEventListener("gesturestart",u),()=>{i.style.cssText=l,o.style.cssText=c,document.removeEventListener("contextmenu",u),document.removeEventListener("gesturestart",u)}},[]),s.jsxs("div",{ref:a,className:"fixed inset-0 overflow-hidden bg-[#0B1224] text-white",style:{touchAction:"manipulation"},children:[s.jsx("div",{"aria-hidden":!0,className:"absolute inset-0 pointer-events-none",style:{background:"radial-gradient(ellipse at 30% 0%, rgba(244,132,95,0.20) 0%, rgba(11,18,36,0) 45%), radial-gradient(ellipse at 70% 100%, rgba(244,132,95,0.10) 0%, rgba(11,18,36,0) 50%)"}}),s.jsx("div",{className:"relative h-full w-full overflow-y-auto overflow-x-hidden",children:e})]})},wOe=1,kOe="d9cdc485-5386-483b-b45c-6b28bda66b78",SOe="e93ee020-684a-4686-8879-c9847ef30581",jOe="/vendor-assets/infinity6-logo-white-horiz.png",POe="a/v1/e93ee020-684a-4686-8879-c9847ef30581/d9cdc485-5386-483b-b45c-6b28bda66b78/infinity6-logo-white-horiz.png",AOe="infinity6-logo-white-horiz.png",_Oe=16844,NOe="image/webp",COe="2026-07-27T19:30:34Z",WD={version:wOe,asset_id:kOe,project_id:SOe,url:jOe,r2_key:POe,original_filename:AOe,size:_Oe,content_type:NOe,created_at:COe},EOe=[WD.url,tS],TOe=({content:e,onStart:t})=>(S.useEffect(()=>{EOe.forEach(n=>{const r=new Image;r.decoding="async",r.src=n})},[]),s.jsxs("button",{type:"button",onClick:t,className:"relative flex flex-col justify-between items-center w-full min-h-screen overflow-hidden px-12 pt-[10vmin] pb-[14vmin] text-center focus:outline-none",children:[s.jsx("div",{className:"relative z-10 flex items-center justify-center flex-1 w-full",children:s.jsx("h1",{className:"text-[6vmin] leading-[1.05] font-bold max-w-none whitespace-nowrap",dangerouslySetInnerHTML:{__html:e.attract.headline}})}),s.jsxs("div",{className:"relative flex items-center justify-center flex-1 w-full",children:[s.jsxs("div",{"aria-hidden":!0,className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:[s.jsx("div",{className:"w-[60vmin] h-[60vmin] rounded-full border border-[#F4845F]/20 animate-ping",style:{animationDuration:"3s"}}),s.jsx("div",{className:"absolute w-[45vmin] h-[45vmin] rounded-full border border-[#F4845F]/30 animate-ping",style:{animationDuration:"2.4s"}}),s.jsx("div",{className:"absolute w-[30vmin] h-[30vmin] rounded-full border border-[#F4845F]/40 animate-ping",style:{animationDuration:"1.8s"}})]}),s.jsx("div",{className:"relative z-10 px-[6vmin] py-[3vmin] rounded-full bg-[#F4845F] text-white text-[3vmin] font-semibold shadow-[0_0_60px_rgba(244,132,95,0.5)] animate-pulse",children:e.attract.tapHint})]}),s.jsxs("div",{className:"relative z-10 flex flex-col items-center gap-[1.2vmin] flex-1 justify-end mb-[8vmin]",children:[s.jsx("img",{src:WD.url,alt:e.attract.brand,className:"h-[12vmin] w-auto object-contain"}),s.jsxs("p",{className:"text-[2.6vmin] font-semibold tracking-[0.02em] leading-[1.15] text-white/95",children:["The Platform for",s.jsx("br",{}),s.jsx("span",{className:"font-bold text-[#F4845F]",children:"Decision Advantage"})]})]})]})),OOe="inline-flex items-center justify-center rounded-full bg-[#F4845F] text-white font-bold hover:bg-[#F4845F]/90 active:scale-[0.98] transition shadow-[0_0_30px_rgba(244,132,95,0.35)]",IOe="bg-white/10 text-white/40 cursor-not-allowed shadow-none",_n=(e="",t=!1)=>`${OOe}${t?` ${IOe}`:""} ${e}`.trim(),MOe=({question:e,stepIndex:t,totalSteps:n,progressLabel:r,continueCta:a,onAnswer:i})=>{const[o,l]=S.useState(null),c=r.replace("{current}",String(t+1)).replace("{total}",String(n)),u=()=>{if(!o)return;const d=e.options.find(m=>m.id===o);d&&i(d.id)};return s.jsx("div",{className:"flex flex-col items-center min-h-screen px-[6vmin] py-[8vmin]",children:s.jsxs("div",{className:"w-full max-w-[92vw] text-center",children:[s.jsx("p",{className:"text-[1.8vmin] tracking-[0.4em] uppercase text-[#F4845F] font-semibold mb-[3vmin]",children:c}),s.jsx("h2",{className:"text-[4.5vmin] font-bold leading-tight mb-[2vmin]",children:e.text}),e.helper&&s.jsx("p",{className:"text-[2.2vmin] text-white/60 mb-[6vmin]",children:e.helper}),s.jsx("div",{className:"flex flex-col gap-[2.5vmin]",children:e.options.map(d=>{const m=o===d.id;return s.jsxs("button",{type:"button",onClick:()=>l(d.id),className:`w-full flex items-start gap-[3vmin] rounded-2xl px-[4vmin] py-[3.5vmin] text-left transition-all border-2 min-h-[10vmin] ${m?"bg-[#F4845F]/15 border-[#F4845F] shadow-[0_0_30px_rgba(244,132,95,0.3)]":"bg-white/5 border-white/10"}`,children:[s.jsx("span",{className:`flex-shrink-0 mt-[0.5vmin] w-[7vmin] h-[7vmin] rounded-xl flex items-center justify-center border-2 ${m?"bg-[#F4845F] border-[#F4845F]":"bg-white/5 border-white/20"}`,children:m&&s.jsx(ti,{className:"w-[4vmin] h-[4vmin] text-white",strokeWidth:3})}),s.jsxs("span",{className:"flex flex-col gap-[1vmin] flex-1",children:[s.jsx("span",{className:"text-[2.8vmin] font-semibold leading-snug",children:d.label}),d.helper&&s.jsx("span",{className:"text-[2vmin] font-normal text-white/60 leading-snug",children:d.helper})]})]},d.id)})}),s.jsx("button",{type:"button",onClick:u,disabled:!o,className:_n("mt-[8vmin] w-full max-w-[70vw] mx-auto px-[6vmin] py-[3.5vmin] text-[3vmin] min-h-[10vmin]",!o),children:a})]})})},$Oe=({solutions:e,labels:t,activeId:n,onSelect:r,highlightAll:a=!1})=>s.jsx("div",{className:"flex flex-nowrap gap-[2vmin]",children:e.map(i=>{const o=a||n===i.id;return s.jsxs("button",{type:"button",onClick:()=>r(i.id),className:`flex-1 min-w-0 basis-0 text-left rounded-2xl border-2 p-[2.2vmin] transition-all min-h-[16vmin] ${o?"bg-[#F4845F]/12 border-[#F4845F] shadow-[0_0_30px_rgba(244,132,95,0.25)]":"bg-white/5 border-white/10"}`,children:[s.jsx("h4",{className:`text-[2.2vmin] font-bold leading-tight mb-[1vmin] ${o?"text-[#F4845F]":"text-white"}`,children:i.title}),s.jsx("p",{className:"text-[1.7vmin] text-white/70 leading-snug mb-[1.5vmin]",children:i.tagline}),s.jsxs("div",{className:"flex flex-col gap-[0.8vmin]",children:[s.jsx(Vb,{label:t.resolve,value:i.resolve}),s.jsx(Vb,{label:t.entrega,value:i.entrega}),s.jsx(Vb,{label:t.impacto,value:i.impacto})]})]},i.id)})}),Vb=({label:e,value:t})=>s.jsxs("div",{className:"border-t border-white/5 first:border-t-0 pt-[0.6vmin]",children:[s.jsx("span",{className:"block text-[1.2vmin] font-semibold tracking-[0.2em] uppercase text-[#F4845F]/80",children:e}),s.jsx("span",{className:"block text-[1.6vmin] text-white/75 leading-snug",children:t})]}),VD="/assets/product-1-DZMwqs6e.jpg",HD="/assets/product-2-CbK5qxwU.jpg",KD="/assets/product-3-fpV8TY0E.jpg",GD="/assets/product-4-BeP-UKX5.jpg",FOe=[{id:"sku-1",name:"Hidratante Facial 200ml",image:VD,category:"Skincare",cost:24.5,currentPrice:49.9,currentMargin:50.9,turnover:"18 un/sem",recommendedPrice:44.7,recommendedMargin:45.2,deltaRevenuePct:8.3,deltaMarginPct:-5.7,deltaConversionPct:18.3,insight:"Abandono de carrinho >
348762% e sessões repetidas mostram hesitação. Pequeno corte destrava a conversão do cluster de fim de semana sem canibalizar o premium."},{id:"sku-2",name:"Suplemento Vitamina D 60cps",image:HD,category:"Nutrição",cost:18.2,currentPrice:39.9,currentMargin:54.4,turnover:"32 un/sem",recommendedPrice:37.3,recommendedMargin:51.2,deltaRevenuePct:6.1,deltaMarginPct:-3.2,deltaConversionPct:11.7,insight:"71% do drop-off está na 1ª compra da assinatura, com 3+ visitas antes de converter. O ajuste destrava o funil recorrente â LTV compensa já no 2º pedido."},{id:"sku-3",name:"Shampoo Reparador 400ml",image:KD,category:"Haircare",cost:12.8,currentPrice:28.9,currentMargin:55.7,turnover:"46 un/sem",recommendedPrice:29.9,recommendedMargin:57.2,deltaRevenuePct:4.2,deltaMarginPct:1.5,deltaConversionPct:9.4,insight:"Recorrentes (61% do volume) têm baixa sensibilidade a preço e checkout <90s. Elasticidade de â0,3 sustenta o reajuste sem afastar novos compradores."},{id:"sku-4",name:"Protetor Solar FPS 60",image:GD,category:"Sazonal",cost:21.4,currentPrice:54.9,currentMargin:61,turnover:"24 un/sem",recommendedPrice:47.9,recommendedMargin:55.3,deltaRevenuePct:13.6,deltaMarginPct:-5.7,deltaConversionPct:22.1,insight:"Buscas +38% e 3,2 abas por sessão indicam comprador indeciso. Reduzir o ticket agora captura a conversão na janela de 48h, antes da concorrência reagir."}],ROe=[{id:"sku-1",name:"Facial Moisturizer 200ml",image:VD,category:"Skincare",cost:24.5,currentPrice:49.9,currentMargin:50.9,turnover:"18 u/wk",recommendedPrice:44.7,recommendedMargin:45.2,deltaRevenuePct:8.3,deltaMarginPct:-5.7,deltaConversionPct:18.3,insight:"Cart abandonment >62% and repeat sessions signal hesitation. A small cut unlocks weekend-cluster conversion without cannibalizing premium."},{id:"sku-2",name:"Vitamin D Supplement 60ct",image:HD,category:"Nutrition",cost:18.2,currentPrice:39.9,currentMargin:54.4,turnover:"32 u/wk",recommendedPrice:37.3,recommendedMargin:51.2,deltaRevenuePct:6.1,deltaMarginPct:-3.2,deltaConversionPct:11.7,insight:"71% of drop-off sits on the first subscription order, with 3+ visits before converting. The move opens the recurring funnel â LTV offsets it from the 2nd order onward."},{id:"sku-3",name:"Repair Shampoo 400ml",image:KD,category:"Haircare",cost:12.8,currentPrice:28.9,currentMargin:55.7,turnover:"46 u/wk",recommendedPrice:29.9,recommendedMargin:57.2,deltaRevenuePct:4.2,deltaMarginPct:1.5,deltaConversionPct:9.4,insight:"Returning buyers (61% of volume) show low price sensitivity and <90s checkout. Elasticity of â0.3 supports the raise without losing new buyers."},{id:"sku-4",name:"Sunscreen SPF 60",image:GD,category:"Seasonal",cost:21.4,currentPrice:54.9,currentMargin:61,turnover:"24 u/wk",recommendedPrice:47.9,recommendedMargin:55.3,deltaRevenuePct:13.6,deltaMarginPct:-5.7,deltaConversionPct:22.1,insight:"Searches +38% and 3.2 parallel tabs per session signal an undecided buyer. Cutting the ticket now captures conversion in the 48h window, before competitors react."}],DOe={pt:{scenarioTitle:"VivaShop B2B",scenarioSubtitle:"Catálogo · Precificação orientada a conversão",storeName:"VivaShop B2B",catalogLabel:"Catálogo",pickHint:"Toque em um produto para descobrir o preço ideal de conversão",zoomHint:"Analisando o produto",backToCatalog:"â Escolher outro produto",idealPriceBadge:"Preço ideal",analyzingLabel:"Aguarde · o modelo está pensando",productLabels:{cost:"Custo",price:"Preço",margin:"Margem",turnover:"Giro",recommended:"Preço recomendado",deltaRevenue:"Î Receita",deltaMargin:"Î Margem",deltaConversion:"Î Conversão",latency:"Latência do modelo",latencyHint:"média mercado ~180 ms"},objectiveLabel:"Objetivo: conversão",reasoningTitle:"Explicabilidade e raciocÃnio do modelo",reasoningSubtitle:"",pipeline:[{label:"Lendo sessões, cliques e carrinhos abandonados",microMetric:"48.612 sessões · janela de 30 dias",durationMs:1400},{label:"Segmentando clusters de intenção e sensibilidade",microMetric:"6 clusters ativos · cluster dominante: 42%",durationMs:1400},{label:"Simulando resposta de conversão em milhares de cenários",microMetric:"elasticidade de conversão estimada: -1.8",durationMs:1800},{label:"Otimizando para conversão com piso de margem",microMetric:"restrições: margem mÃnima · sinal competitivo",durationMs:1600},{label:"Recomendando preço ideal para converter",microMetric:"confiança: 94%",durationMs:1200}],ctaLabel:"Aplicar preço",rationaleLabel:"Por que este preço",doneLabel:"Recomendação pronta",products:FOe},en:{scenarioTitle:"VivaShop B2B",scenarioSubtitle:"Catalog · Conversion-driven pricing",storeName:"VivaShop B2B",catalogLabel:"Catalog",pickHint:"Tap a product to reveal the ideal conversion price",zoomHint:"Analyzing product",backToCatalog:"â Pick another product",idealPriceBadge:"Ideal price",anal
3487yzingLabel:"Please wait · the model is thinking",productLabels:{cost:"Cost",price:"Price",margin:"Margin",turnover:"Turnover",recommended:"Recommended price",deltaRevenue:"Î Revenue",deltaMargin:"Î Margin",deltaConversion:"Î Conversion",latency:"Model latency",latencyHint:"market avg ~180 ms"},objectiveLabel:"Objective: conversion",reasoningTitle:"Explainability and model reasoning",reasoningSubtitle:"",pipeline:[{label:"Reading sessions, clicks and abandoned carts",microMetric:"48,612 sessions · 30-day window",durationMs:1400},{label:"Segmenting intent and price-sensitivity clusters",microMetric:"6 active clusters · dominant cluster: 42%",durationMs:1400},{label:"Simulating conversion response across thousands of scenarios",microMetric:"estimated conversion elasticity: -1.8",durationMs:1800},{label:"Optimizing for conversion with a margin floor",microMetric:"constraints: min margin · competitive signal",durationMs:1600},{label:"Recommending the ideal price to convert",microMetric:"confidence: 94%",durationMs:1200}],ctaLabel:"Apply price",rationaleLabel:"Why this price",doneLabel:"Recommendation ready",products:ROe}},Hb=(e,t)=>t==="pt"?`R$ ${e.toFixed(2).replace(".",",")}`:`$ ${e.toFixed(2)}`,LOe={pt:{explainTitle:"Explicabilidade e raciocÃnio do modelo",whyEyebrow:"Por que este preço",newSim:"Nova simulação"},en:{explainTitle:"Model reasoning & explainability",whyEyebrow:"Why this price",newSim:"New simulation"}},zOe=({lang:e})=>{const t=DOe[e],n=LOe[e],[r,a]=S.useState(null),[i,o]=S.useState(0),l=S.useMemo(()=>t.products.find(f=>f.id===r)??null,[t.products,r]),c=S.useMemo(()=>r?(22+Math.random()*26).toFixed(2):"0.00",[r]);S.useEffect(()=>{if(!l){o(0);return}o(0);const f=[];let g=0;return t.pipeline.forEach((h,v)=>{g+=h.durationMs,f.push(setTimeout(()=>o(v+1),g))}),()=>f.forEach(clearTimeout)},[l,t.pipeline]);const u=!!l&&i>=t.pipeline.length,d=!!l&&!u,m=()=>{a(null),o(0)},p=t.pipeline.length;return s.jsxs("div",{className:"relative rounded-3xl bg-gradient-to-br from-white/8 to-[#F4845F]/8 border border-[#F4845F]/30 p-[3vmin]",children:[s.jsxs("div",{className:"flex flex-col gap-[2.4vmin]",children:[s.jsxs("div",{className:"rounded-2xl bg-[#0B1224] border border-white/10 overflow-hidden flex flex-col",children:[s.jsxs("div",{className:"flex items-center gap-[1vmin] px-[2vmin] py-[1.5vmin] bg-white/[0.04] border-b border-white/10",children:[s.jsx("span",{className:"w-[1.4vmin] h-[1.4vmin] rounded-full bg-[#ff5f56]"}),s.jsx("span",{className:"w-[1.4vmin] h-[1.4vmin] rounded-full bg-[#ffbd2e]"}),s.jsx("span",{className:"w-[1.4vmin] h-[1.4vmin] rounded-full bg-[#27c93f]"}),s.jsxs("span",{className:"ml-[1.5vmin] text-[1.4vmin] text-white/50 font-mono",children:["vivashop.b2b / ",t.catalogLabel.toLowerCase()]})]}),s.jsxs("div",{className:"p-[2.5vmin] flex-1 flex flex-col",children:[s.jsxs("div",{className:"flex items-baseline justify-between mb-[1.5vmin]",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"text-[2.4vmin] font-bold text-white",children:t.scenarioTitle}),s.jsx("p",{className:"text-[1.6vmin] text-white/60",children:t.scenarioSubtitle})]}),s.jsx("span",{className:"text-[1.4vmin] tracking-[0.25em] uppercase font-semibold text-[#F4845F]",children:t.objectiveLabel})]}),l?s.jsxs("div",{className:"flex flex-col animate-fade-in",children:[s.jsxs("button",{type:"button",onClick:m,className:_n("group self-start gap-[1vmin] min-h-[6vmin] px-[2.4vmin] py-[1.4vmin] text-[1.5vmin] uppercase tracking-[0.14em] mb-[1.6vmin]"),children:[s.jsx(Ws,{className:"w-[1.8vmin] h-[1.8vmin] transition-transform group-hover:-translate-x-[0.3vmin]",strokeWidth:2.5}),t.backToCatalog.replace(/^â\s*/,"")]}),s.jsxs("div",{className:"rounded-2xl border-2 border-[#F4845F]/40 bg-white/[0.03] p-[2vmin]",children:[s.jsxs("div",{className:"grid grid-cols-[1fr_1.4fr] gap-[2vmin] items-stretch",children:[s.jsx("div",{className:"aspect-[4/3] rounded-xl overflow-hidden bg-white/5",children:s.jsx("img",{src:l.image,alt:l.name,className:"w-full h-full object-cover"})}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx("span",{className:"block text-[1.4vmin] uppercase tracking-wider text-[#F4845F]/80 font-semibold mb-[0.4vmin]",children:l.category}),s.jsx("h5",{className:"text-[2.4vmin] leading-tight text-white font-bold mb-[1.5vmin]",children:l.name}),s.jsx("div",{className:"rounded-xl border border-dashed border-white/15 bg-white/[0.02] p-[2vmin] min-h-[10vmin] flex items-center justify-center flex-1",children:u?s.jsxs("div",{className:"w-full flex items-center justify-between animate-fade-in",children:[s.jsxs("div",{children:[s.jsx("span",{className:"block text-[1.3vmin] tracking-[0.25em] uppercase font-semibold text-[#F4845F] mb-[0.4vmin]",children:t.idealPriceBadge}),s.jsx("span",{className:"block text-[4.2vmin] font-bold text-white leading-none",style:{textShadow:"0 0 24px rgba(244,132,95,0.5)"},children:Hb(l.recommendedPrice,e)})]}),s.jsx("span",{className:"rounded-full bg-[#F4845F] text-white text-[1.4vmin] font-bold px-[1.6vmin] py-[0.8vmin] animate-pulse",children:"â"})]}):s.jsxs("div",{className:"flex items-center gap-[1.5vmin] text-white/60",children:[s.jsx("span",{className:"w-[2vmin] h-[2vmin] rounded-full border-2 border-[#F4845F] border-t-transparent animate-spin"}),s.jsx("span",{className:"text-[1.6vmin]",children:t.analyzingLabel})]})})]})]}),u&&s.jsxs("div",{className:"grid grid-cols-4 gap-[1vmin] mt-[1.5vmin] animate-fade-in",children:[s.jsx(zf,{label:t.productLabels.recommended,value:Hb(l.recommendedPrice,e),highlight:!0}),s.jsx(zf,{label:t.productLabels.deltaConversion,value:`+${l.deltaConversionPct.toFixed(1)}%`,highlight:!0}),s.jsx(zf,{label:t.productLabels.deltaRevenue,value:`+${l.deltaRevenuePct.toFixed(1)}%`,highlight:!0}),s.jsx(zf,{label:t.productLabels.latency,value:`${c} ms`,hint:t.productLabels.latencyHint,highlight:!0})]})]})]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"mb-[1.5vmin] rounded-xl border border-[#F4845F]/40 bg-[#F4845F]/[0.08] px-[2vmin] py-[1.4vmin] flex items-center gap-[1.2vmin] animate-pulse",children:[s.jsx("span",{className:"w-[1.4vmin] h-[1.4vmin] rounded-full bg-[#F4845F]"}),s.jsx("span",{className:"text-[1.6vmin] text-white/90 font-semibold",children:t.pickHint})]}),s.jsx("div",{className:"grid grid-cols-4 gap-[1.5vmin]",children:t.products.map(f=>s.jsxs("button",{type:"button",onClick:()=>a(f.id),className:"text-left rounded-xl border-2 p-[1.5vmin] transition-all bg-white/[0.03] border-white/10 hover:border-[#F4845F]/60 hover:bg-[#F4845F]/[0.06]",children:[s.jsx("div",{className:"aspect-square rounded-lg overflow-hidden bg-white/5 mb-[1vmin]",children:s.jsx("img",{src:f.image,alt:f.name,className:"w-full h-full object-cover"})}),s.jsx("span",{className:"block text-[1.3vmin] uppercase tracking-wider text-[#F4845F]/80 font-semibold mb-[0.3vmin]",children:f.category}),s.jsx("span",{className:"block text-[1.6vmin] leading-tight text-white/90 font-semibold min-h-[3.6vmin]",children:f.name})]},f.id))})]})]})]}),s.jsxs("div",{className:"rounded-2xl bg-[#0B1224] border border-white/10 p-[2vmin]",children:[s.jsxs("div",{className:"mb-[1.4vmin]",children:[s.jsx("h4",{className:"text-[1.9vmin] font-bold text-white leading-tight",children:n.explainTitle}),t.reasoningSubtitle&&s.jsx("p",{className:"text-[1.4vmin] text-white/60",children:t.reasoningSubtitle})]}),u&&l&&s.jsxs("div",{className:"kiosk-insight-card mb-[1.4vmin] rounded-xl border-2 border-[#F4845F]/60 bg-[#F4845F]/[0.08] px-[2vmin] py-[1.8vmin]",children:[s.jsxs("div",{className:"flex items-center gap-[1vmin] mb-[0.8vmin]",children:[s.jsx(Un,{className:"w-[2.2vmin] h-[2.2vmin] text-[#F4845F] kiosk-insight-sparkle",strokeWidth:2.5}),s.jsx("span",{className:"text-[1.7vmin] tracking-[0.25em] uppercase font-bold text-[#F4845F]",children:n.whyEyebrow})]}),s.jsxs("span",{className:"block text-[1.7vmin] font-semibold text-white mb-[0.6vmin] leading-tight",children:[l.name," · ",Hb(l.recommendedPrice,e)]}),s.jsx("p",{className:"text-[1.7vmin] leading-relaxed text-white/95",children:l.insight})]}),s.jsx("div",{className:"h-[2vmin] mb-[1vmin] flex items-center justify-center",children:d&&i<p&&s.jsx("span",{className:"text-[1.2vmin] text-white/60 font-mono",children:t.pipeline[i].microMetric})}),s.jsxs("div",{className:"relative px-[2vmin] pb-[1vmin]",children:[s.jsx("div",{className:"absolute left-[3vmin] right-[3vmin] top-[1.9vmin] h-[0.3vmin] rounded-full bg-white/10"}),s.jsx("div",{className:"absolute left-[3vmin] top-[1.9vmin] h-[0.3vmin] rounded-full bg-[#F4845F] transition-all duration-500",style:{width:`calc((100% - 6vmin) * ${p>1?Math.min(i,p-1)/(p-1):0})`}}),s.jsx("div",{className:"relative grid",style:{gridTemplateColumns:`repeat(${p}, minmax(0,1fr))`},children:t.pipeline.map((f,g)=>{const h=l?g<i?"done":g===i?"active":"idle":"idle";return s.jsxs("div",{className:"flex flex-col items-center gap-[0.8vmin] px-[0.5vmin]",children:[s.jsx("span",{className:`flex-shrink-0 w-[3.8vmin] h-[3.8vmin] rounded-full flex items-center justify-center text-[1.5vmin] font-bold border-2 transition-all ${h==="done"?"bg-[#F4845F] border-[#F4845F] text-white":h==="active"?"border-[#F4845F] text-[#F4845F] bg-[#F4845F]/15 animate-pulse":"border-white/25 text-white/50 bg-[#0B1224]"}`,children:h==="done"?s.jsx(ti,{className:"w-[1.8vmin] h-[1.8vmin]"}):g+1}),s.jsx("span",{className:`text-center text-[1.3vmin] leading-tight font-semibold ${h==="idle"?"text-white/45":"text-white/90"}`,children:f.label}),s.jsx("span",{className:`text-center text-[1.1vmin] leading-tight font-mono ${h==="idle"?"text-white/30":"text-white/55"}`,children:f.microMetric})]},g)})})]}),u&&s.jsx("button",{type:"button",onClick:m,className:_n("mt-[1.4vmin] w-full min-h-[6vmin] text-[1.6vmin]"),children:n.newSim})]})]}),s.jsx("style",{children:` 3488 @keyframes kiosk-insight-in { 3489 0% { opacity: 0; transform: translateY(12px) scale(.94); } 3490 100% { opacity: 1; transform: translateY(0) scale(1); } 3491 } 3492 @keyframes kiosk-insight-glow { 3493 0%, 100% { box-shadow: 0 0 0 0 rgba(244,132,95,.35), 0 0 24px rgba(244,132,95,.25); border-color: rgba(244,132,95,.55); } 3494 50% { box-shadow: 0 0 0 6px rgba(244,132,95,.10), 0 0 40px rgba(244,132,95,.60); border-color: rgba(244,132,95,1); } 3495 } 3496 @keyframes kiosk-insight-sparkle { 3497 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 3498 50% { transform: scale(1.25) rotate(15deg); opacity: .85; } 3499 } 3500 .kiosk-insight-card { 3501 animation: kiosk-insight-in .5s ease-out .3s both, kiosk-insight-glow 2.4s ease-in-out .3s infinite; 3502 } 3503 .kiosk-insight-sparkle { animation: kiosk-insight-sparkle 1.8s ease-in-out infinite; } 3504 `})]})},zf=({label:e,value:t,hint:n,highlight:r})=>s.jsxs("div",{className:"rounded-lg p-[1.2vmin] border bg-white/[0.03] border-white/10",children:[s.jsx("span",{className:"block text-[1.2vmin] tracking-[0.2em] uppercase font-semibold text-[#F4845F] mb-[0.3vmin]",children:e}),s.jsx("span",{className:"block text-[2vmin] font-bold text-[#F4845F] leading-none",children:t}),n&&s.jsx("span",{className:"block mt-[0.6vmin] text-[1.1vmin] text-white/50 leading-none",children:n})]}),Dr=({label:e,value:t,onChange:n,options:r})=>{const[a,i]=S.useState(!1),o=S.useRef(null),l=r.find(c=>c.value===t);return S.useEffect(()=>{if(!a)return;const c=d=>{o.current&&(o.current.contains(d.target)||i(!1))},u=d=>{d.key==="Escape"&&i(!1)};return document.addEventListener("mousedown",c),document.addEventListener("touchstart",c),document.addEventListener("keydown",u),()=>{document.removeEventListener("mousedown",c),document.removeEventListener("touchstart",c),document.removeEventListener("keydown",u)}},[a]),s.jsxs("div",{ref:o,className:"relative",children:[s.jsxs("button",{type:"button",onClick:()=>i(c=>!c),className:`w-full rounded-xl border px-[1.6vmin] py-[1.2vmin] flex flex-col gap-[0.35vmin] text-left transition min-h-[6.5vmin] ${a?"border-[#F4845F] bg-[#F4845F]/10":"border-white/10 bg-white/[0.04] hover:border-[#F4845F]/40"}`,children:[s.jsx("span",{className:"text-[1.05vmin] tracking-[0.2em] uppercase font-semibold text-white/55",children:e}),s.jsxs("span",{className:"flex items-center justify-between gap-[1vmin]",children:[s.jsx("span",{className:"text-white text-[1.7vmin] font-semibold truncate",children:(l==null?void 0:l.label)??"â"}),s.jsx(Wv,{className:`w-[1.8vmin] h-[1.8vmin] text-[#F4845F] transition-transform flex-shrink-0 ${a?"rotate-180":""}`})]})]}),a&&s.jsx("div",{className:"absolute left-0 right-0 top-[calc(100%+0.6vmin)] z-50 rounded-xl border border-[#F4845F]/40 bg-[#0B1224] shadow-[0_1.6vmin_3vmin_rgba(0,0,0,0.55)] overflow-hidden",style:{minWidth:"28vmin"},children:s.jsx("div",{className:"max-h-[42vmin] overflow-y-auto py-[0.5vmin]",children:r.map(c=>{const u=c.value===t;return s.jsxs("button",{type:"button",onClick:()=>{n(c.value),i(!1)},className:`w-full min-h-[6vmin] px-[1.6vmin] py-[1.2vmin] flex items-center gap-[1vmin] text-left transition ${u?"bg-[#F4845F]/15 text-white":"text-white/85 hover:bg-white/[0.06] active:bg-[#F4845F]/10"}`,children:[s.jsx("span",{className:`w-[0.4vmin] self-stretch rounded-full ${u?"bg-[#F4845F]":"bg-transparent"}`}),s.jsx("span",{className:"text-[1.6vmin] font-semibold flex-1 truncate",children:c.label}),u&&s.jsx(ti,{className:"w-[1.8vmin] h-[1.8vmin] text-[#F4845F] flex-shrink-0"})]},c.value)})})})]})},di=[{labelPt:"Elasticidade",labelEn:"Elasticity",microPt:"Volume à preço histórico",microEn:"Volume à historical price",durationMs:900},{labelPt:"Projeção de demanda",labelEn:"Demand projection",microPt:"Forecast + estoque + comercial",microEn:"Forecast + stock + commercial",durationMs:900},{labelPt:"Simulação de preço",labelEn:"Price simulation",microPt:"Milhares de cenários",microEn:"Thousands of scenarios",durationMs:950},{labelPt:"Restrições",labelEn:"Constraints",microPt:"Margem, estoque, banda, polÃtica",microEn:"Margin, stock, band, policy",durationMs:850},{labelPt:"Preço ótimo",labelEn:"Optimal price",microPt:"Faixa + confiança + alternativas",microEn:"Range + confidence + alternatives",durationMs:800}],BOe=[{id:"sku-1",namePt:"Hidratante Facial 200ml",nameEn:"Facial Moisturizer 200ml",categoryPt:"Skincare",categoryEn:"Skincare",categoryId:"skincare",channelId:"b2b",regionId:"sudeste",action:"aumentar",volume:1840,elasticity:-.42,competitivePosition:"below",stockCoverDays:58,currentPrice:89.9,competitorPrice:96.5,competitorBand:{min:95,max:99},optimalPrice:94.8,rangeMin:93.4,rangeMax:96.2,confidencePct:91,marginImpactPp:3.2,volumeImpactPct:-1.4,argumentPt
3504:"Elasticidade baixa (â0,42) e preço abaixo da banda concorrente (R$ 95â99). Base recorrente não migrou em 3 reajustes anteriores. Modelo indica captura de margem sem risco relevante de volume.",argumentEn:"Low elasticity (â0.42) and price below the competitor band (R$ 95â99). The recurring customer base did not churn across the last 3 price adjustments. The model indicates margin capture with no significant volume risk.",alternatives:[{id:"conservative",labelPt:"Conservador",labelEn:"Conservative",price:93.4,marginPt:"Maior",marginEn:"Higher",volumePt:"Queda mÃnima",volumeEn:"Minimal drop"},{id:"recommended",labelPt:"Recomendado",labelEn:"Recommended",price:94.8,marginPt:"Ãtima",marginEn:"Optimal",volumePt:"Queda controlada",volumeEn:"Controlled drop"},{id:"aggressive",labelPt:"Agressivo",labelEn:"Aggressive",price:96.2,marginPt:"Máxima",marginEn:"Maximum",volumePt:"Maior risco de volume",volumeEn:"Higher volume risk"}]},{id:"sku-2",namePt:"Suplemento Vitamina D 60cps",nameEn:"Vitamin D Supplement 60caps",categoryPt:"Nutrição",categoryEn:"Nutrition",categoryId:"nutricao",channelId:"b2c",regionId:"sul",action:"manter",volume:3120,elasticity:-.95,competitivePosition:"inline",stockCoverDays:74,currentPrice:92.4,competitorPrice:92.9,competitorBand:{min:91,max:95},optimalPrice:92.6,rangeMin:91.8,rangeMax:93.6,confidencePct:88,marginImpactPp:.4,volumeImpactPct:-.3,argumentPt:"Elasticidade moderada (â0,95) e posição alinhada ao concorrente dentro de banda estreita (R$ 91â95). Recompra do cluster recorrente a cada 34 dias. Manter preço preserva churn e sustenta margem atual.",argumentEn:"Moderate elasticity (â0.95) and a position aligned with the competitor within a narrow band (R$ 91â95). The recurring cluster repurchases every 34 days. Keeping the price preserves churn and sustains current margin.",alternatives:[{id:"conservative",labelPt:"Conservador",labelEn:"Conservative",price:91.8,marginPt:"Maior",marginEn:"Higher",volumePt:"Queda mÃnima",volumeEn:"Minimal drop"},{id:"recommended",labelPt:"Recomendado",labelEn:"Recommended",price:92.6,marginPt:"Estável",marginEn:"Stable",volumePt:"Estável",volumeEn:"Stable"},{id:"aggressive",labelPt:"Agressivo",labelEn:"Aggressive",price:93.6,marginPt:"Máxima",marginEn:"Maximum",volumePt:"Maior risco de volume",volumeEn:"Higher volume risk"}]}
3504,{id:"sku-3",namePt:"Protetor Solar FPS 60",nameEn:"Sunscreen SPF 60",categoryPt:"Sazonal",categoryEn:"Seasonal",categoryId:"sazonal",channelId:"retail",regionId:"sudeste",action:"reduzir",volume:2400,elasticity:-1.55,competitivePosition:"above",stockCoverDays:18,currentPrice:98.9,competitorPrice:92.5,competitorBand:{min:90,max:94},optimalPrice:93.6,rangeMin:92.2,rangeMax:94.4,confidencePct:84,marginImpactPp:-1.2,volumeImpactPct:6.8,argumentPt:"Elasticidade alta (â1,55) e SKU acima da banda concorrente (R$ 90â94), com estoque em janela sazonal curta (18 dias). Modelo reduz preço para dentro da banda para defender giro e evitar sobra de estoque no fim da estação.",argumentEn:"High elasticity (â1.55) and the SKU is above the competitor band (R$ 90â94), with stock in a short seasonal window (18 days). The model lowers the price into the band to defend turnover and avoid leftover stock at the end of the season.",alternatives:[{id:"conservative",labelPt:"Conservador",labelEn:"Conservative",price:94.4,marginPt:"Maior",marginEn:"Higher",volumePt:"Menor recuperação",volumeEn:"Lower recovery"},{id:"recommended",labelPt:"Recomendado",labelEn:"Recommended",price:93.6,marginPt:"Reduzida",marginEn:"Reduced",volumePt:"Recupera volume",volumeEn:"Recovers volume"},{id:"aggressive",labelPt:"Agressivo",labelEn:"Aggressive",price:92.2,marginPt:"MÃnima",marginEn:"Minimum",volumePt:"Máxima recuperação",volumeEn:"Maximum recovery"}]}],nd={category:{pt:[{value:"all",label:"Todas as categorias"},{value:"skincare",label:"Skincare"},{value:"nutricao",label:"Nutrição"},{value:"sazonal",label:"Sazonal"}],en:[{value:"all",label:"All categories"},{value:"skincare",label:"Skincare"},{value:"nutricao",label:"Nutrition"},{value:"sazonal",label:"Seasonal"}]},channel:{pt:[{value:"all",label:"Todos os canais"},{value:"b2b",label:"B2B · Distribuidores"},{value:"b2c",label:"B2C · E-commerce"},{value:"retail",label:"Varejo fÃsico"}],en:[{value:"all",label:"All channels"},{value:"b2b",label:"B2B · Distributors"},{value:"b2c",label:"B2C · E-commerce"},{value:"retail",label:"Physical retail"}]},strategy:{pt:[{value:"margin",label:"Maximizar margem"},{value:"balanced",label:"EquilÃbrio margem/volume"},{value:"defense",label:"Defesa de mercado"}],en:[{value:"margin",label:"Maximize margin"},{value:"balanced",label:"Margin/volume balance"},{value:"defense",label:"Market defense"}]},minMargin:{pt:[{value:"30",label:"⥠30%"},{value:"35",label:"⥠35%"},{value:"40",label:"⥠40%"},{value:"45",label:"⥠45%"}],en:[{value:"30",label:"⥠30%"},{value:"35",label:"⥠35%"},{value:"40",label:"⥠40%"},{value:"45",label:"⥠45%"}]},competitiveBand:{pt:[{value:"strict",label:"Alinhado"},{value:"medium",label:"±5% da banda"},{value:"wide",label:"±10% da banda"}],en:[{value:"strict",label:"Aligned"},{value:"medium",label:"±5% of band"},{value:"wide",label:"±10% of band"}]}},oo=e=>`R$ ${e.toFixed(2).replace(".",",")}`,qOe={pt:{aumentar:"Aumentar preço",manter:"Manter preço",reduzir:"Reduzir preço"},en:{aumentar:"Increase price",manter:"Keep price",reduzir:"Reduce price"}},UOe=(e,t)=>{if(t==="pt"){if(e.length===0)return"Nenhum SKU no filtro atual.";const o=e.filter(d=>d.action==="aumentar").length,l=e.filter(d=>d.action==="manter").length,c=e.filter(d=>d.action==="reduzir").length,u=[];return o&&u.push(`${o} com elasticidade baixa e preço abaixo da banda â subir`),l&&u.push(`${l} alinhado(s) à banda e com recompra estável â manter`),c&&u.push(`${c} acima da banda em janela de estoque curta â reduzir`),`O modelo aprendeu, por SKU, elasticidade, posição vs. concorrente, piso de margem e cobertura de estoque. ${u.join("; ")}.`}if(e.length===0)return"No SKU in the current filter.";const n=e.filter(o=>o.action==="aumentar").length,r=e.filter(o=>o.action==="manter").length,a=e.filter(o=>o.action==="reduzir").length,i=[];return n&&i.push(`${n} with low elasticity and price below the band â raise`),r&&i.push(`${r} aligned to the band with stable repurchase â keep`),a&&i.push(`${a} above the band in a short stock window â reduce`),`The model learned, per SKU, elasticity, position vs. competitor, margin floor and stock coverage. ${i.join("; ")}.`},WOe={pt:{headerTitleResult:"Preço ótimo e cenários alternativos",headerTitleSetup:"Portfólio de precificação",headerSubtitleResult:"Faixa recomendada, impacto em margem e volume por SKU.",headerSubtitleSetup:"Selecione os filtros e ajuste restrições para simular a faixa ótima de preço por SKU.",objective:"Objetivo: Margem",filters:{category:"Categoria",channel:"Canal",strategy:"Estratégia",minMargin:"Margem mÃnima",competitiveBand:"Banda competitiva"},table:{sku:"SKU",actionSuggested:`Ação 3505sugerida`,currentPrice:`Preço 3506atual`,elasticity:"Elast.",competitivePosition:`Posição 3507concorr.`,stockCover:`Cobertura 3508estoque`,competitorPrice:`Preço 3509concorrente`,empty:"Nenhum SKU nesta seleção de filtros."},competitivePositionLabel:{below:"Abaixo",inline:"Alinhado",above:"Acima"}
3509,optimalPrice:"Preço ótimo",recommendedRange:"Faixa recomendada",alternatives:{scenario:"Cenário",price:"Preço",margin:"Margem",volume:"Volume"},marginImpact:"Impacto na margem",volumeImpact:"Impacto no volume",confidence:"Confiança do modelo",confidenceShort:"Confiança",ctaCalculate:"Calcular faixa ótima de preço",ctaAdjustFilters:"Ajuste os filtros para simular",running:"Calculando faixa ótimaâ¦",reasoningTitle:"Explicabilidade e raciocÃnio do modelo",whyThisPrice:"Por que este preço",whatModelLearned:"O que o modelo aprendeu",newSimulation:"Nova simulação",chart:{current:"Atual",min:"MÃn",max:"Máx",competitor:"Concorr.",optimal:"Ãtimo",totalMargin:"margem total"}},en:{headerTitleResult:"Optimal price and alternative scenarios",headerTitleSetup:"Pricing portfolio",headerSubtitleResult:"Recommended range, margin and volume impact per SKU.",headerSubtitleSetup:"Select filters and adjust constraints to simulate the optimal price range per SKU.",objective:"Objective: Margin",filters:{category:"Category",channel:"Channel",strategy:"Strategy",minMargin:"Minimum margin",competitiveBand:"Competitive band"},table:{sku:"SKU",actionSuggested:`Suggested 3510action`,currentPrice:`Current 3511price`,elasticity:"Elast.",competitivePosition:`Competitor 3512position`,stockCover:`Stock 3513cover`,competitorPrice:`Competitor 3514price`,empty:"No SKU in this filter selection."},competitivePositionLabel:{below:"Below",inline:"Aligned",above:"Above"},optimalPrice:"Optimal price",recommendedRange:"Recommended range",alternatives:{scenario:"Scenario",price:"Price",margin:"Margin",volume:"Volume"},marginImpact:"Margin impact",volumeImpact:"Volume impact",confidence:"Model confidence",confidenceShort:"Confidence",ctaCalculate:"Calculate optimal price range",ctaAdjustFilters:"Adjust filters to simulate",running:"Calculating optimal rangeâ¦",reasoningTitle:"Explainability and model reasoning",whyThisPrice:"Why this price",whatModelLearned:"What the model learned",newSimulation:"New simulation",chart:{current:"Current",min:"Min",max:"Max",competitor:"Competitor",optimal:"Optimal",totalMargin:"total margin"}}},VOe="â",HOe=(e,t,n)=>Math.max(t,Math.min(n,e)),Kb=e=>Math.round(e*100)/100,b5=e=>Math.round(e*10)/10,KOe=(e,t,n,r)=>{const a=t==="margin"?{price:1.012,margin:1.1,volume:-1.2,conf:-3}:t==="defense"?{price:.988,margin:-.9,volume:1.4,conf:2}:{price:1,margin:0,volume:0,conf:0},i=r==="strict"?{spread:.55,ceilingMult:1}:r==="wide"?{spread:1.4,ceilingMult:1.06}:{spread:1,ceilingMult:1.03},o=parseInt(n,10),l=o>=45?{price:1.012,margin:1,volume:-.7,conf:-6}:o>=40?{price:1.006,margin:.5,volume:-.3,conf:-3}:o>=35?{price:1,margin:0,volume:0,conf:0}:{price:.998,margin:-.2,volume:.2,conf:1},c=e.optimalPrice*a.price*l.price,u=e.competitorPrice*i.ceilingMult,d=Math.min(c,u),m=(e.rangeMax-e.rangeMin)/2*i.spread,p=d-m,f=Math.min(d+m,u+m*.3);return{optimalPrice:Kb(d),rangeMin:Kb(p),rangeMax:Kb(f),confidencePct:Math.round(HOe(e.confidencePct+a.conf+l.conf,62,97)),marginImpactPp:b5(e.marginImpactPp+a.margin+l.margin),volumeImpactPct:b5(e.volumeImpactPct+a.volume+l.volume),alternatives:e.alternatives}},GOe={aumentar:"text-[#4ade80]",manter:"text-white/85",reduzir:"text-[#F4845F]"},QOe=({lang:e="pt"})=>{const t=WOe[e],[n,r]=S.useState("setup"),[a,i]=S.useState(0),[o,l]=S.useState(null),[c,u]=S.useState("all"),[d,m]=S.useState("all"),[p,f]=S.useState("balanced"),[g,h]=S.useState("35"),[v,y]=S.useState("medium"),x=S.useMemo(()=>BOe.filter(_=>!(c!=="all"&&_.categoryId!==c||d!=="all"&&_.channelId!==d)),[c,d]),b=S.useMemo(()=>x.find(_=>_.id===o)??null,[x,o]),w=S.useMemo(()=>b?KOe(b,p,g,v):null,[b,p,g,v]),k=S.useMemo(()=>UOe(x,e),[x,e]);S.useEffect(()=>{o&&!x.find(_=>_.id===o)&&l(null)},[x,o]),S.useEffect(()=>{if(n!=="running")return;i(0);const _=[];let N=0;return di.forEach((C,E)=>{N+=C.durationMs,_.push(setTimeout(()=>i(E+1),N))}),_.push(setTimeout(()=>{l(C=>{var E;return C??((E=x[0])==null?void 0:E.id)??null}),r("result")},N+260)),()=>_.forEach(clearTimeout)},[n,x]);const j=()=>{r("setup"),i(0)},A=n==="result",P=x.length>0;return s.jsxs("div",{className:"relative rounded-3xl bg-gradient-to-br from-white/8 to-[#F4845F]/8 border border-[#F4845F]/30 p-[3vmin]",children:[s.jsxs("div",{className:"flex flex-col gap-[2.4vmin]",children:[s.jsxs("div",{className:"rounded-2xl bg-[#0B1224] border border-white/10 overflow-hidden flex flex-col",children:[s.jsxs("div",{className:"flex items-baseline justify-between px-[2.5vmin] py-[1.6vmin] bg-white/[0.04] border-b border-white/10 gap-[1vmin]",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"text-[2.2vmin] font-bold text-white leading-tight",children:A?t.headerTitleResult:t.headerTitleSetup}),s.jsx("p",{className:"text-[1.4vmin] text-white/60",children:A?t.headerSubtitleResult:t.headerSubtitleSetup})]}),s.jsx("span",{className:"text-[1.4vmin] tracking-[0.25em] uppercase font-semibold text-[#F4845F] text-right",children:t.objective})]}),s.jsxs("div",{className:"p-[2.2vmin] flex flex-col gap-[1.4vmin]",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-[1vmin]",children:[s.jsx(Dr,{label:t.filters.category,value:c,onChange:u,options:nd.category[e]}),s.jsx(Dr,{label:t.filters.channel,value:d,onChange:m,options:nd.channel[e]})]}),s.jsxs("div",{className:"grid grid-cols-[1.25fr_0.95fr_1fr] gap-[1vmin]",children:[s.jsx(Dr,{label:t.filters.strategy,value:p,onChange:f,options:nd.strategy[e]}),s.jsx(Dr,{label:t.filters.minMargin,value:g,onChange:h,options:nd.minMargin[e]}
3514),s.jsx(Dr,{label:t.filters.competitiveBand,value:v,onChange:y,options:nd.competitiveBand[e]})]}),s.jsxs("div",{className:"rounded-xl border border-white/10 overflow-hidden",children:[s.jsxs("div",{className:"grid grid-cols-[1.6fr_0.9fr_0.9fr_0.8fr_0.9fr_0.9fr_1fr] px-[1.4vmin] py-[0.7vmin] gap-x-[0.6vmin] bg-white/[0.05] text-[0.8vmin] uppercase tracking-[0.1em] font-semibold text-white/60 leading-tight",children:[s.jsx("span",{children:t.table.sku}),s.jsx("span",{className:"text-right whitespace-pre-line",children:t.table.actionSuggested}),s.jsx("span",{className:"text-right whitespace-pre-line",children:t.table.currentPrice}),s.jsx("span",{className:"text-right",children:t.table.elasticity}),s.jsx("span",{className:"text-right whitespace-pre-line",children:t.table.competitivePosition}),s.jsx("span",{className:"text-right whitespace-pre-line",children:t.table.stockCover}),s.jsx("span",{className:"text-right whitespace-pre-line",children:t.table.competitorPrice})]}),x.length===0&&s.jsx("div",{className:"px-[1.4vmin] py-[1.6vmin] text-[1.4vmin] text-white/50",children:t.table.empty}),x.map(_=>{const N=_.id===o&&A,C=!A;return s.jsxs("button",{type:"button",disabled:C,onClick:()=>l(_.id),className:`w-full grid grid-cols-[1.6fr_0.9fr_0.9fr_0.8fr_0.9fr_0.9fr_1fr] items-center px-[1.4vmin] py-[1vmin] text-[1.35vmin] border-t border-white/10 text-left transition ${N?"bg-[#F4845F]/10":C?"cursor-default":"hover:bg-white/[0.04]"}`,children:[s.jsxs("span",{className:"text-white/90 font-semibold leading-tight",children:[e==="pt"?_.namePt:_.nameEn,s.jsx("span",{className:"block text-[1.05vmin] font-normal text-white/50",children:e==="pt"?_.categoryPt:_.categoryEn})]}),s.jsx("span",{className:`text-right font-semibold ${A?GOe[_.action]:"text-white/40"}`,children:A?qOe[e][_.action]:VOe}),s.jsx("span",{className:"text-right text-white/85 font-mono",children:oo(_.currentPrice)}),s.jsx("span",{className:"text-right text-white/85 font-mono",children:_.elasticity.toFixed(2)}),s.jsx("span",{className:"text-right text-white/85",children:t.competitivePositionLabel[_.competitivePosition]}),s.jsxs("span",{className:"text-right text-white/70 font-mono",children:[_.stockCoverDays," d"]}),s.jsx("span",{className:"text-right text-white/70 font-mono",children:oo(_.competitorPrice)})]},_.id)})]}),A&&b&&w&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-[1fr_1.4fr] gap-[1.2vmin]",children:[s.jsxs("div",{className:"flex flex-col gap-[1vmin] h-full",children:[s.jsx(rd,{label:t.optimalPrice,value:oo(w.optimalPrice),highlight:!0}),s.jsx(rd,{label:t.recommendedRange,value:`${oo(w.rangeMin)} â ${oo(w.rangeMax)}`})]}),s.jsx(YOe,{sku:b,derived:w,lang:e,L:t})]}),s.jsxs("div",{className:"rounded-xl border border-white/10 overflow-hidden",children:[s.jsxs("div",{className:"grid grid-cols-[1fr_0.9fr_0.9fr_1.1fr] px-[1.4vmin] py-[0.7vmin] bg-white/[0.05] text-[0.95vmin] uppercase tracking-[0.16em] font-semibold text-white/60 leading-tight",children:[s.jsx("span",{children:t.alternatives.scenario}),s.jsx("span",{className:"text-right",children:t.alternatives.price}),s.jsx("span",{className:"text-right",children:t.alternatives.margin}),s.jsx("span",{className:"text-right",children:t.alternatives.volume})]}),w.alternatives.map(_=>{const N=_.id==="recommended";return s.jsxs("div",{className:"grid grid-cols-[1fr_0.9fr_0.9fr_1.1fr] px-[1.4vmin] py-[1vmin] items-center text-[1.35vmin] border-t border-white/10",children:[s.jsx("span",{className:`font-semibold ${N?"text-[#F4845F]":"text-white/85"}`,children:e==="pt"?_.labelPt:_.labelEn}),s.jsx("span",{className:"text-right text-white font-mono",children:oo(_.price)}),s.jsx("span",{className:`text-right ${N?"text-[#F4845F]":"text-white/80"}`,children:e==="pt"?_.marginPt:_.marginEn}),s.jsx("span",{className:"text-right text-white/75",children:e==="pt"?_.volumePt:_.volumeEn})]},_.id)})]}),s.jsxs("div",{className:"grid grid-cols-3 gap-[1vmin]",children:[s.jsx(rd,{label:t.marginImpact,value:`${w.marginImpactPp>0?"+":""}${w.marginImpactPp.toFixed(1)} pp`,highlight:!0}),s.jsx(rd,{label:t.volumeImpact,value:`${w.volumeImpactPct>0?"+":""}${w.volumeImpactPct.toFixed(1)}%`}),s.jsx(rd,{label:t.confidence,value:`${w.confidencePct}%`})]})]}),n==="setup"&&s.jsx("button",{type:"button",disabled:!P,onClick:()=>r("running"),className:`self-stretch min-h-[7vmin] rounded-2xl font-bold text-[2vmin] tracking-wide transition-all ${P?"bg-[#F4845F] text-white hover:bg-[#F4845F]/90 active:scale-[0.99] shadow-[0_0_28px_rgba(244,132,95,0.35)]":"bg-white/[0.06] text-white/40 border border-white/10 cursor-not-allowed"}`,children:P?t.ctaCalculate:t.ctaAdjustFilters}),n==="running"&&s.jsxs("div",{className:"rounded-2xl border border-[#F4845F]/40 bg-[#F4845F]/[0.08] px-[2vmin] py-[1.5vmin] flex items-center gap-[1.2vmin] animate-pulse",children:[s.jsx("span",{className:"w-[1.8vmin] h-[1.8vmin] rounded-full border-2 border-[#F4845F] border-t-transparent animate-spin"}),s.jsx("span",{className:"text-[1.6vmin] text-white/90 font-semibold",children:t.running})]})]})]}),s.jsxs("div",{className:"rounded-2xl bg-[#0B1224] border border-white/10 p-[2vmin]",children:[s.jsx("div",{className:"flex items-center gap-[1.2vmin] mb-[1.4vmin]",children:s.jsx("div",{children:s.jsx("h4",{className:"text-[1.9vmin] font-bold text-white leading-tight",children:t.reasoningTitle})})}),A&&s.jsxs("div",{className:"kiosk-insight-card mb-[1.4vmin] rounded-xl border-2 border-[#F4845F]/60 bg-[#F4845F]/[0.08] px-[2vmin] py-[1.8vmin]",children:[s.jsxs("div",{className:"flex items-center gap-[1vmin] mb-[0.8vmin]",children:[s.jsx(Un,{className:"w-[2.2vmin] h-[2.2vmin] text-[#F4845F] kiosk-insight-sparkle",strokeWidth:2.5}),s.jsx("span",{className:"text-[1.7vmin] tracking-[0.25em] uppercase font-bold text-[#F4845F]",children:b?t.whyThisPrice:t.whatModelLearned})]}),b?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"block text-[1.7vmin] font-semibold text-white mb-[0.6vmin] leading-tight",children:e==="pt"?b.namePt:b.nameEn}),s.jsx("p",{className:"text-[1.7vmin] leading-relaxed text-white/95",children:e==="pt"?b.argumentPt
3514:b.argumentEn})]}):s.jsx("p",{className:"text-[1.85vmin] leading-relaxed text-white/95",children:k})]}),s.jsx("div",{className:"h-[2vmin] mb-[1vmin] flex items-center justify-center",children:n==="running"&&a<di.length&&s.jsx("span",{className:"text-[1.2vmin] text-white/60 font-mono",children:e==="pt"?di[a].microPt:di[a].microEn})}),s.jsxs("div",{className:"relative px-[2vmin] pb-[1vmin]",children:[s.jsx("div",{className:"absolute left-[3vmin] right-[3vmin] top-[1.9vmin] h-[0.3vmin] rounded-full bg-white/10"}),s.jsx("div",{className:"absolute left-[3vmin] top-[1.9vmin] h-[0.3vmin] rounded-full bg-[#F4845F] transition-all duration-500",style:{width:`calc((100% - 6vmin) * ${di.length>1?Math.min(a,di.length-1)/(di.length-1):0})`}}),s.jsx("div",{className:"relative grid",style:{gridTemplateColumns:`repeat(${di.length}, minmax(0,1fr))`},children:di.map((_,N)=>{const C=n==="setup"?"idle":n==="running"?N<a?"done":N===a?"active":"idle":"done";return s.jsxs("div",{className:"flex flex-col items-center gap-[0.8vmin] px-[0.5vmin]",children:[s.jsx("span",{className:`flex-shrink-0 w-[3.8vmin] h-[3.8vmin] rounded-full flex items-center justify-center text-[1.5vmin] font-bold border-2 transition-all ${C==="done"?"bg-[#F4845F] border-[#F4845F] text-white":C==="active"?"border-[#F4845F] text-[#F4845F] bg-[#F4845F]/15 animate-pulse":"border-white/25 text-white/50 bg-[#0B1224]"}`,children:C==="done"?s.jsx(ti,{className:"w-[1.8vmin] h-[1.8vmin]"}):N+1}),s.jsx("span",{className:`text-center text-[1.3vmin] leading-tight font-semibold ${C==="idle"?"text-white/45":"text-white/90"}`,children:e==="pt"?_.labelPt:_.labelEn}),s.jsx("span",{className:`text-center text-[1.1vmin] leading-tight font-mono ${C==="idle"?"text-white/30":"text-white/55"}`,children:e==="pt"?_.microPt:_.microEn})]},N)})})]}),A&&s.jsx("button",{type:"button",onClick:j,className:_n("mt-[1.4vmin] w-full min-h-[6vmin] text-[1.6vmin]"),children:t.newSimulation})]})]}),s.jsx("style",{children:` 3515 @keyframes kiosk-insight-in { 3516 0% { opacity: 0; transform: translateY(12px) scale(.94); } 3517 100% { opacity: 1; transform: translateY(0) scale(1); } 3518 } 3519 @keyframes kiosk-insight-glow { 3520 0%, 100% { box-shadow: 0 0 0 0 rgba(244,132,95,.35), 0 0 24px rgba(244,132,95,.25); border-color: rgba(244,132,95,.55); } 3521 50% { box-shadow: 0 0 0 6px rgba(244,132,95,.10), 0 0 40px rgba(244,132,95,.60); border-color: rgba(244,132,95,1); } 3522 } 3523 @keyframes kiosk-insight-sparkle { 3524 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 3525 50% { transform: scale(1.25) rotate(15deg); opacity: .85; } 3526 } 3527 .kiosk-insight-card { 3528 animation: kiosk-insight-in .5s ease-out .3s both, kiosk-insight-glow 2.4s ease-in-out .3s infinite; 3529 } 3530 .kiosk-insight-sparkle { animation: kiosk-insight-sparkle 1.8s ease-in-out infinite; } 3531 `})]})},rd=({label:e,value:t,hint:n,highlight:r})=>s.jsxs("div",{className:`rounded-xl border p-[1.2vmin] flex flex-1 flex-col justify-center gap-[0.3vmin] ${r?"border-[#F4845F]/60 bg-[#F4845F]/[0.08]":"border-white/10 bg-white/[0.03]"}`,children:[s.jsx("span",{className:"text-[0.9vmin] tracking-[0.18em] uppercase font-semibold text-white/55 leading-tight",children:e}),s.jsx("span",{className:`text-[1.9vmin] font-bold leading-tight ${r?"text-[#F4845F]":"text-white"}`,children:t}),n&&s.jsx("span",{className:"text-[1.05vmin] text-white/55",children:n})]}),YOe=({sku:e,derived:t,lang:n,L:r})=>{const o={l:34,r:12,t:18,b:30},l=620-o.l-o.r,c=160-o.t-o.b,u=Math.min(e.currentPrice,t.rangeMin)-3,d=Math.max(t.rangeMax,e.competitorPrice)+3,m=w=>o.l+(w-u)/(d-u)*l,p=o.t+c*.15,f=o.t+c*.9,g=w=>{const k=(d-u)/2,j=Math.abs(w-t.optimalPrice)/k;return p+(f-p)*Math.min(1,j*j)},h=60,v=[];for(let w=0;w<=h;w++){const k=u+(d-u)*w/h;v.push(`${m(k).toFixed(1)},${g(k).toFixed(1)}`)}const y=`M ${v.join(" L ")}`,x=`${y} L ${m(d)},${f} L ${m(u)},${f} Z`,b=({price:w,label:k,color:j,dashed:A})=>s.jsxs("g",{children:[s.jsx("line",{x1:m(w),x2:m(w),y1:o.t,y2:160-o.b,stroke:j,strokeWidth:1.5,strokeDasharray:A?"4 4":void 0}),s.jsx("text",{x:m(w),y:o.t-4,fontSize:"10",fill:j,textAnchor:"middle",children:k})]});return s.jsxs("div",{className:"rounded-xl border border-white/10 bg-white/[0.02] flex flex-col",children:[s.jsxs("svg",{viewBox:"0 0 620 160",className:"w-full h-auto",preserveAspectRatio:"xMidYMid meet",children:[s.jsx("rect",{x:m(t.rangeMin),y:o.t,width:m(t.rangeMax)-m(t.rangeMin),height:c,fill:"rgba(244,132,95,0.12)"}),s.jsx("path",{d:x,fill:"rgba(244,132,95,0.18)"}),s.jsx("path",{d:y,fill:"none",stroke:"#F4845F",strokeWidth:2}),s.jsx(b,{price:e.currentPrice,label:r.chart.current,color:"rgba(255,255,255,0.6)",dashed:!0}),s.jsx(b,{price:t.rangeMin,label:r.chart.min,color:"rgba(244,132,95,0.55)",dashed:!0}),s.jsx(b,{price:t.rangeMax,label:r.chart.max,color:"rgba(244,132,95,0.55)",dashed:!0}),s.jsx(b,{price:e.competitorPrice,label:r.chart.competitor,color:"rgba(120,180,255,0.75)",dashed:!0}),s.jsx("line",{x1:m(t.optimalPrice),x2:m(t.optimalPrice),y1:o.t,y2:160-o.b,stroke:"#F4845F",strokeWidth:2}),s.jsx("circle",{cx:m(t.optimalPrice),cy:g(t.optimalPrice),r:5,fill:"#F4845F",stroke:"#fff",strokeWidth:2}),s.jsx("text",{x:m(t.optimalPrice),y:o.t-4,fontSize:"10",fill:"#F4845F",textAnchor:"middle",fontWeight:700,children:r.chart.optimal}),s.jsx("text",{x:o.l,y:150,fontSize:"10",fill:"rgba(255,255,255,0.5)",children:oo(u)}),s.jsx("text",{x:620-o.r,y:150,fontSize:"10",fill:"rgba(255,255,255,0.5)",textAnchor:"end",children:oo(d)}),s.jsx("text",{x:6,y:o.t+8,fontSize:"10",fill:"rgba(255,255,255,0.5)",children:r.chart.totalMargin})]}),s.jsxs("div",{className:"flex items-center justify-between border-t border-white/10 px-[1.4vmin] py-[0.7vmin]",children:[s.jsx("span",{className:"text-[0.9vmin] tracking-[0.18em] uppercase font-semibold text-white/55",children:r.confidenceShort}),s.jsxs("span",{className:"text-[1.4vmin] font-bold text-white font-mono",children:[t.confidencePct,"%"]})]})]})},mi=[{labelPt:"Agrupando lojas por perfil de venda",labelEn:"Grouping stores by s
3531ales profile",microPt:"Comportamento local, renda, demanda, categoria e sensibilidade a preço.",microEn:"Local behavior, income, demand, category and price sensitivity.",durationMs:900},{labelPt:"Estimando o ciclo de vida e o decaimento do produto",labelEn:"Estimating product lifecycle and decay",microPt:"Velocidade de giro, idade do estoque e perda esperada de valor.",microEn:"Turnover velocity, stock age and expected value loss.",durationMs:900},{labelPt:"Lendo estoque, sazonalidade e contexto regional",labelEn:"Reading stock, seasonality and regional context",microPt:"Disponibilidade, clima, calendário, concorrência e demanda local.",microEn:"Availability, weather, calendar, competition and local demand.",durationMs:950},{labelPt:"Simulando preços e réguas progressivas de markdown",labelEn:"Simulating prices and progressive markdown rules",microPt:"Comparando desconto imediato, progressivo e manutenção do preço.",microEn:"Comparing immediate discount, progressive discount and holding price.",durationMs:900},{labelPt:"Recomendando preço e calendário por cluster",labelEn:"Recommending price and calendar per cluster",microPt:"Mantendo cada ação dentro da margem mÃnima e da governança comercial.",microEn:"Keeping every action within the minimum margin and commercial governance.",durationMs:800}],ZOe=[{id:"sp-premium",namePt:"São Paulo Premium",nameEn:"São Paulo Premium",regionPt:"Grande SP · Shoppings tier 1",regionEn:"Greater SP · Tier-1 malls",x:268,y:340,stores:24,stockUnits:1420,avgStockAgeDays:22,sellVelocity:34,categoryAvgVelocity:24,currentPrice:129.9,currentMarkdownPct:0,remainingMarginPp:46,elasticity:-.7,situationPt:"Giro adequado",situationEn:"Healthy turnover",action:"hold",recommendedPrice:129.9,recommendedMarkdownPct:0,nextActionPt:"Manter preço",nextActionEn:"Hold price",actInDays:0,sellThroughProjectedPct:78,agedStockPct:6,marginPreservedPp:4.8,capitalUnlockedBRL:0,argumentPt:"Velocidade 34 un/sem (+42% vs. categoria) e estoque com 22 dias contra 41 da média. Elasticidade â0,7 indica baixa sensibilidade: markdown antecipado corta 4,8 pp de margem sem ganho relevante de giro. A demanda absorve o preço nas próximas 3 semanas dentro do sell-through de 78%.",argumentEn:"Velocity 34 units/week (+42% vs. category) with stock at 22 days vs. a 41-day average. Elasticity of â0.7 signals low sensitivity: an early markdown would cut 4.8 pp of margin without a meaningful turnover gain. Demand absorbs the price over the next 3 weeks within a 78% sell-through.",skus:[{sku:"JQT-INV-001",namePt:"Jaqueta acolchoada preta P",nameEn:"Black padded jacket S",currentPrice:129.9,recommendedPrice:129.9,markdownPct:0,sellThroughProjectedPct:82},{sku:"JQT-INV-002",namePt:"Jaqueta acolchoada preta M",nameEn:"Black padded jacket M",currentPrice:129.9,recommendedPrice:129.9,markdownPct:0,sellThroughProjectedPct:79}
3531,{sku:"JQT-INV-003",namePt:"Jaqueta acolchoada caqui G",nameEn:"Khaki padded jacket L",currentPrice:129.9,recommendedPrice:129.9,markdownPct:0,sellThroughProjectedPct:74}]},{id:"minas-gerais",namePt:"Minas Gerais",nameEn:"Minas Gerais",regionPt:"BH · Uberlândia · Juiz de Fora",regionEn:"BH · Uberlândia · Juiz de Fora",x:278,y:300,stores:29,stockUnits:1980,avgStockAgeDays:63,sellVelocity:14,categoryAvgVelocity:22,currentPrice:129.9,currentMarkdownPct:0,remainingMarginPp:42,elasticity:-1.6,situationPt:"Estoque envelhecido",situationEn:"Aged inventory",action:"markdown",recommendedPrice:109.9,recommendedMarkdownPct:15,nextActionPt:"Markdown agora",nextActionEn:"Markdown now",actInDays:0,sellThroughProjectedPct:82,agedStockPct:41,marginPreservedPp:9.4,capitalUnlockedBRL:216e3,argumentPt:"Idade média 63 dias (+37% vs. categoria) com perda projetada de 2,1 pp/semana se mantido. Elasticidade â1,6 e coleção nova em 21 dias: markdown de 15% agora captura demanda de fim de ciclo e evita liquidação profunda (~30%), preservando 9,4 pp de margem.",argumentEn:"Average age of 63 days (+37% vs. category) with a projected loss of 2.1 pp/week if held. Elasticity of â1.6 and a new collection in 21 days: a 15% markdown now captures end-of-cycle demand and avoids a deep clearance (~30%), preserving 9.4 pp of margin.",skus:[{sku:"JQT-INV-001",namePt:"Jaqueta acolchoada preta P",nameEn:"Black padded jacket S",currentPrice:129.9,recommendedPrice:109.9,markdownPct:15,sellThroughProjectedPct:85}
3531,{sku:"JQT-INV-003",namePt:"Jaqueta acolchoada caqui G",nameEn:"Khaki padded jacket L",currentPrice:129.9,recommendedPrice:104.9,markdownPct:19,sellThroughProjectedPct:82},{sku:"JQT-INV-008",namePt:"Jaqueta acolchoada azul GG",nameEn:"Blue padded jacket XL",currentPrice:129.9,recommendedPrice:99.9,markdownPct:23,sellThroughProjectedPct:78}]},{id:"sul",namePt:"Sul",nameEn:"South",regionPt:"Porto Alegre · Curitiba · Florianópolis",regionEn:"Porto Alegre · Curitiba · Florianópolis",x:234,y:400,stores:26,stockUnits:1640,avgStockAgeDays:34,sellVelocity:21,categoryAvgVelocity:24,currentPrice:129.9,currentMarkdownPct:0,remainingMarginPp:45,elasticity:-1.1,situationPt:"Demanda sazonal futura",situationEn:"Upcoming seasonal demand",action:"wait",recommendedPrice:124.9,recommendedMarkdownPct:0,nextActionPt:"Aguardar 14 dias",nextActionEn:"Wait 14 days",actInDays:14,sellThroughProjectedPct:74,agedStockPct:12,marginPreservedPp:7.6,capitalUnlockedBRL:62e3,argumentPt:"Forecast sinaliza pico sazonal em 12â16 dias (frente fria + calendário regional), com elasticidade caindo de â1,1 para â0,4 nesse perÃodo. Descontar agora antecipa margem que o clima devolve â janela ótima em 2 semanas, quando a régua reprograma automaticamente para R$ 124,90 se o giro não acompanhar.",argumentEn:"The forecast signals a seasonal peak in 12â16 days (cold front + regional calendar), with elasticity dropping from â1.1 to â0.4 during that window. Discounting now would give away margin that the weather returns on its own â the optimal window is in 2 weeks, when the rule automatically reprices to R$ 124.90 if turnover does not keep up.",skus:[{sku:"JQT-INV-001",namePt:"Jaqueta acolchoada preta P",nameEn:"Black padded jacket S",currentPrice:129.9,recommendedPrice:129.9,markdownPct:0,sellThroughProjectedPct:76},{sku:"JQT-INV-009",namePt:"Jaqueta acolchoada vinho M",nameEn:"Burgundy padded jacket M",currentPrice:129.9,recommendedPrice:124.9,markdownPct:4,sellThroughProjectedPct:72},{sku:"JQT-INV-010",namePt:"Jaqueta acolchoada grafite G",nameEn:"Graphite padded jacket L",currentPrice:129.9,recommendedPrice:129.9,markdownPct:0,sellThroughProjectedPct:73}]}],Gb={product:[{value:"sku-1",labelPt:"Jaqueta acolchoada",labelEn:"Padded jacket"},{value:"sku-2",labelPt:"Bota térmica premium",labelEn:"Premium thermal boot"},{value:"sku-3",labelPt:"Blusa tricô oversized",labelEn:"Oversized knit blouse"}],region:[{value:"all",labelPt:"Todas as regiões",labelEn:"All regions"},{value:"sp-premium",labelPt:"São Paulo Premium",labelEn:"São Paulo Premium"},{value:"minas-gerais",labelPt:"Minas Gerais",labelEn:"Minas Gerais"},{value:"sul",labelPt:"Sul",labelEn:"South"}],objective:[{value:"balanced",labelPt:"EquilÃbrio giro/margem",labelEn:"Turnover/margin balance"},{value:"aggressive",labelPt:"Desova agressiva",labelEn:"Aggressive clearance"},{value:"preserve",labelPt:"Preservar margem",labelEn:"Preserve margin"}],minMargin:[{value:"25",labelPt:"⥠25%",labelEn:"⥠25%"},{value:"30",labelPt:"⥠30%",labelEn:"⥠30%"},{value:"35",labelPt:"⥠35%",labelEn:"⥠35%"},{value:"40",labelPt:"⥠40%",labelEn:"⥠40%"}
3531]},XOe={"sku-1":{hold:[{sku:"JQT-INV-001",namePt:"Jaqueta acolchoada preta P",nameEn:"Black padded jacket S",currentPrice:129.9,recommendedPrice:129.9,markdownPct:0,sellThroughProjectedPct:82},{sku:"JQT-INV-002",namePt:"Jaqueta acolchoada preta M",nameEn:"Black padded jacket M",currentPrice:129.9,recommendedPrice:129.9,markdownPct:0,sellThroughProjectedPct:79},{sku:"JQT-INV-003",namePt:"Jaqueta acolchoada caqui G",nameEn:"Khaki padded jacket L",currentPrice:129.9,recommendedPrice:129.9,markdownPct:0,sellThroughProjectedPct:74}],markdown:[{sku:"JQT-INV-001",namePt:"Jaqueta acolchoada preta P",nameEn:"Black padded jacket S",currentPrice:129.9,recommendedPrice:109.9,markdownPct:15,sellThroughProjectedPct:85},{sku:"JQT-INV-003",namePt:"Jaqueta acolchoada caqui G",nameEn:"Khaki padded jacket L",currentPrice:129.9,recommendedPrice:104.9,markdownPct:19,sellThroughProjectedPct:82},{sku:"JQT-INV-008",namePt:"Jaqueta acolchoada azul GG",nameEn:"Blue padded jacket XL",currentPrice:129.9,recommendedPrice:99.9,markdownPct:23,sellThroughProjectedPct:78}],wait:[{sku:"JQT-INV-001",namePt:"Jaqueta acolchoada preta P",nameEn:"Black padded jacket S",currentPrice:129.9,recommendedPrice:129.9,markdownPct:0,sellThroughProjectedPct:76},{sku:"JQT-INV-009",namePt:"Jaqueta acolchoada vinho M",nameEn:"Burgundy padded jacket M",currentPrice:129.9,recommendedPrice:124.9,markdownPct:4,sellThroughProjectedPct:72},{sku:"JQT-INV-010",namePt:"Jaqueta acolchoada grafite G",nameEn:"Graphite padded jacket L",currentPrice:129.9,recommendedPrice:129.9,markdownPct:0,sellThroughProjectedPct:73}],raise:[{sku:"JQT-INV-001",namePt:"Jaqueta acolchoada preta P",nameEn:"Black padded jacket S",currentPrice:129.9,recommendedPrice:139.9,markdownPct:-8,sellThroughProjectedPct:81},{sku:"JQT-INV-002",namePt:"Jaqueta acolchoada preta M",nameEn:"Black padded jacket M",currentPrice:129.9,recommendedPrice:137.9,markdownPct:-6,sellThroughProjectedPct:79},{sku:"JQT-INV-004",namePt:"Jaqueta acolchoada verde G",nameEn:"Green padded jacket L",currentPrice:129.9,recommendedPrice:141.9,markdownPct:-9,sellThroughProjectedPct:77}]},"sku-2":{hold:[{sku:"BTA-TRM-101",namePt:"Bota térmica premium marrom 38",nameEn:"Premium thermal boot brown 38",currentPrice:289.9,recommendedPrice:289.9,markdownPct:0,sellThroughProjectedPct:80},{sku:"BTA-TRM-102",namePt:"Bota térmica premium preta 39",nameEn:"Premium thermal boot black 39",currentPrice:289.9,recommendedPrice:289.9,markdownPct:0,sellThroughProjectedPct:77},{sku:"BTA-TRM-103",namePt:"Bota térmica premium caramelo 40",nameEn:"Premium thermal boot caramel 40",currentPrice:289.9,recommendedPrice:289.9,markdownPct:0,sellThroughProjectedPct:74}],markdown:[{sku:"BTA-TRM-101",namePt:"Bota térmica premium marrom 38",nameEn:"Premium thermal boot brown 38",currentPrice:289.9,recommendedPrice:246.4,markdownPct:15,sellThroughProjectedPct:84},{sku:"BTA-TRM-104",namePt:"Bota térmica premium preta 41",nameEn:"Premium thermal boot black 41",currentPrice:289.9,recommendedPrice:234.8,markdownPct:19,sellThroughProjectedPct:81},{sku:"BTA-TRM-108",namePt:"Bota térmica premium off-white 42",nameEn:"Premium thermal boot off-white 42",currentPrice:289.9,recommendedPrice:223.2,markdownPct:23,sellThroughProjectedPct:77}],wait:[{sku:"BTA-TRM-101",namePt:"Bota térmica premium marrom 38",nameEn:"Premium thermal boot brown 38",currentPrice:289.9,recommendedPrice:289.9,markdownPct:0,sellThroughProjectedPct:75},{sku:"BTA-TRM-109",namePt:"Bota térmica premium vinho 39",nameEn:"Premium thermal boot burgundy 39",currentPrice:289.9,recommendedPrice:278.9,markdownPct:4,sellThroughProjectedPct:71},{sku:"BTA-TRM-110",namePt:"Bota térmica premium grafite 40",nameEn:"Premium thermal boot graphite 40",currentPrice:289.9,recommendedPrice:289.9,markdownPct:0,sellThroughProjectedPct:72}],raise:[{sku:"BTA-TRM-101",namePt:"Bota térmica premium marrom 38",nameEn:"Premium thermal boot brown 38",currentPrice:289.9,recommendedPrice:313.1,markdownPct:-8,sellThroughProjectedPct:82},{sku:"BTA-TRM-102",namePt:"Bota térmica premium preta 39",nameEn:"Premium thermal boot black 39",currentPrice:289.9,recommendedPrice:307.3,markdownPct:-6,sellThroughProjectedPct:80},{sku:"BTA-TRM-105",namePt:"Bota térmica premium camel 41",nameEn:"Premium thermal boot camel 41",currentPrice:289.9,recommendedPrice:318.9,markdownPct:-10,sellThroughProjectedPct:78}]},"sku-3":{hold:[{sku:"BLS-TRC-201",namePt:"Blusa tricô oversized cru P",nameEn:"Oversized knit blouse ecru S",currentPrice:179.9,recommendedPrice:179.9,markdownPct:0,sellThroughProjectedPct:81},{sku:"BLS-TRC-202",namePt:"Blusa tricô oversized preta M",nameEn:"Oversized knit blouse black M",currentPrice:179.9,recommendedPrice:179.9,markdownPct:0,sellThroughProjectedPct:78},{sku:"BLS-TRC-203",namePt:"Blusa tricô oversized mostarda G",n
3531ameEn:"Oversized knit blouse mustard L",currentPrice:179.9,recommendedPrice:179.9,markdownPct:0,sellThroughProjectedPct:74}],markdown:[{sku:"BLS-TRC-201",namePt:"Blusa tricô oversized cru P",nameEn:"Oversized knit blouse ecru S",currentPrice:179.9,recommendedPrice:152.9,markdownPct:15,sellThroughProjectedPct:84},{sku:"BLS-TRC-203",namePt:"Blusa tricô oversized mostarda G",nameEn:"Oversized knit blouse mustard L",currentPrice:179.9,recommendedPrice:145.7,markdownPct:19,sellThroughProjectedPct:81},{sku:"BLS-TRC-208",namePt:"Blusa tricô oversized verde GG",nameEn:"Oversized knit blouse green XL",currentPrice:179.9,recommendedPrice:138.5,markdownPct:23,sellThroughProjectedPct:77}],wait:[{sku:"BLS-TRC-201",namePt:"Blusa tricô oversized cru P",nameEn:"Oversized knit blouse ecru S",currentPrice:179.9,recommendedPrice:179.9,markdownPct:0,sellThroughProjectedPct:75},{sku:"BLS-TRC-209",namePt:"Blusa tricô oversized vinho M",nameEn:"Oversized knit blouse burgundy M",currentPrice:179.9,recommendedPrice:172.9,markdownPct:4,sellThroughProjectedPct:71},{sku:"BLS-TRC-210",namePt:"Blusa tricô oversized grafite G",nameEn:"Oversized knit blouse graphite L",currentPrice:179.9,recommendedPrice:179.9,markdownPct:0,sellThroughProjectedPct:72}],raise:[{sku:"BLS-TRC-201",namePt:"Blusa tricô oversized cru P",nameEn:"Oversized knit blouse ecru S",currentPrice:179.9,recommendedPrice:190.7,markdownPct:-6,sellThroughProjectedPct:82},{sku:"BLS-TRC-202",namePt:"Blusa tricô oversized preta M",nameEn:"Oversized knit blouse black M",currentPrice:179.9,recommendedPrice:188.9,markdownPct:-5,sellThroughProjectedPct:80},{sku:"BLS-TRC-204",namePt:"Blusa tricô oversized rosé G",nameEn:"Oversized knit blouse rosé L",currentPrice:179.9,recommendedPrice:193.3,markdownPct:-7,sellThroughProjectedPct:78}]}},JOe={"sku-1":{"sp-premium":"markdown","minas-gerais":"hold",sul:"wait"},"sku-2":{"sp-premium":"hold","minas-gerais":"markdown",sul:"raise"},"sku-3":{"sp-premium":"hold","minas-gerais":"raise",sul:"markdown"}},_2={hold:{situationPt:"Giro adequado",situationEn:"Healthy turnover",nextActionPt:"Manter preço",nextActionEn:"Hold price",recommendedMarkdownPct:0,sellThroughProjectedPct:78,agedStockPct:6,marginPreservedPp:4.8,capitalUnlockedBRL:0,actInDays:0},markdown:{situationPt:"Estoque envelhecido",situationEn:"Aged inventory",nextActionPt:"Markdown agora",nextActionEn:"Markdown now",recommendedMarkdownPct:15,sellThroughProjectedPct:82,agedStockPct:41,marginPreservedPp:9.4,capitalUnlockedBRL:216e3,actInDays:0},wait:{situationPt:"Demanda sazonal futura",situationEn:"Upcoming seasonal demand",nextActionPt:"Aguardar 14 dias",nextActionEn:"Wait 14 days",recommendedMarkdownPct:0,sellThroughProjectedPct:74,agedStockPct:12,marginPreservedPp:7.6,capitalUnlockedBRL:62e3,actInDays:14},raise:{situationPt:"Giro acima da média",situationEn:"Above-average turnover",nextActionPt:"Aumentar preço",nextActionEn:"Raise price",recommendedMarkdownPct:-8,sellThroughProjectedPct:80,agedStockPct:4,marginPreservedPp:6.2,capitalUnlockedBRL:148e3,actInDays:0}},eIe={"sku-1":{"sp-premium":{pt:"Idade média 63 d em SP Premium (+37% vs. categoria) com queda projetada de 2,1 pp/semana. Elasticidade â1,6 e coleção nova em 21 dias: markdown de 15% agora captura demanda de fim de ciclo e evita liquidação profunda (~30%), preservando 9,4 pp de margem.",en:"Average age of 63 days in SP Premium (+37% vs. category) with a projected drop of 2.1 pp/week. Elasticity of â1.6 and a new collection in 21 days: a 15% markdown now captures end-of-cycle demand and avoids a deep clearance (~30%), preserving 9.4 pp of margin."},"minas-gerais":{pt:"Velocidade 34 un/sem em MG (+55% vs. categoria) e estoque com 22 dias contra 41 da média. Elasticidade â0,7 indica baixa sensibilidade: markdown antecipado corta 4,8 pp de margem sem ganho relevante de giro. Preço aguenta as próximas 3 semanas dentro do sell-through de 78%.",en:"Velocity of 34 units/week in MG (+55% vs. category) with stock at 22 days vs. a 41-day average. Elasticity of â0.7 signals low sensitivity: an early markdown would cut 4.8 pp of margin without a meaningful turnover gain. The price holds for the next 3 weeks within a 78% sell-through."},sul:{pt:"Forecast sinaliza pico sazonal no Sul em 12â16 dias (frente fria + calendário regional), com elasticidade caindo de â1,1 para â0,4. Descontar agora antecipa margem que o clima devolve â a régua reprograma automaticamente para R$ 124,90 em 2 semanas se o giro não acompanhar.",en:"The forecast signals a seasonal peak in the South in 12â16 days (cold front + regional calendar), with elasticity dropping from â1.1 to â0.4. Discounting now would give away margin that the weather returns â the rule automatically reprices to R$ 124.90 in 2 weeks if turnover does not keep up."}},"sku-2":{"sp-premium":{pt:"Bota térmica com giro estável em SP (26 un/sem, dentro da média) e idade média de 24 dias. Elasticidade â0,8 e margem remanesce
3531nte de 46 pp: manter preço protege posicionamento premium enquanto o sell-through segue em 78% sem estoque envelhecido.",en:"The thermal boot has stable turnover in SP (26 units/week, within average) and an average age of 24 days. Elasticity of â0.8 and a remaining margin of 46 pp: holding the price protects the premium positioning while sell-through stays at 78% with no aged inventory."},"minas-gerais":{pt:"Sobre-estoque em MG (+38% vs. planejado) com giro 12 un/sem contra 22 da categoria. Idade média 71 dias e coleção descontinuada em 24 dias: markdown de 15% agora libera R$ 216 mil em capital e evita liquidação a â30% no fim do ciclo.",en:"Overstock in MG (+38% vs. planned) with turnover at 12 units/week vs. 22 for the category. Average age of 71 days and a discontinued collection in 24 days: a 15% markdown now frees up R$ 216k in capital and avoids a â30% clearance at end of cycle."},sul:{pt:"Sell-out 42 un/sem no Sul vs. 26 da categoria e ruptura projetada em 12 dias no pico da frente fria. Elasticidade â0,5 permite aumento controlado de +8% preservando conversão e capturando R$ 148 mil de margem incremental sem canibalizar SKUs correlatos.",en:"Sell-out of 42 units/week in the South vs. 26 for the category, with a projected stockout in 12 days at the cold-front peak. Elasticity of â0.5 allows a controlled +8% increase, preserving conversion and capturing R$ 148k of incremental margin without cannibalizing related SKUs."}},"sku-3":{"sp-premium":{pt:"Blusa tricô com giro 28 un/sem em SP (levemente acima da categoria) e estoque de 27 dias. Elasticidade â0,9 e margem em 44 pp: markdown agora não acelera giro material e sacrifica 4,3 pp de margem â manter preço mantém o sell-through de 78% até o final do ciclo.",en:"The knit blouse has turnover of 28 units/week in SP (slightly above category) and stock at 27 days. Elasticity of â0.9 and margin at 44 pp: a markdown now would not meaningfully accelerate turnover and would sacrifice 4.3 pp of margin â holding the price keeps sell-through at 78% through the end of the cycle."},"minas-gerais":{pt:"Giro 38 un/sem em BH/Uberlândia (+58% vs. categoria) com estoque enxuto (17 d) e coleção descontinuada em 30 d. Aumento de +6% ancora percepção premium e captura R$ 148 mil incremental com impacto marginal em sell-through (â1 pp
3531).",en:"Turnover of 38 units/week in BH/Uberlândia (+58% vs. category) with lean stock (17 days) and a discontinued collection in 30 days. A +6% increase anchors the premium perception and captures R$ 148k incremental with marginal sell-through impact (â1 pp)."},sul:{pt:"Estoque envelhecendo no Sul (54 dias, +26% vs. categoria) com giro caindo para 15 un/sem. Elasticidade â1,4 e transição para primavera em 24 d: markdown de 15% agora sustenta sell-through em 82% e libera R$ 216 mil antes da coleção nova.",en:"Inventory aging in the South (54 days, +26% vs. category) with turnover dropping to 15 units/week. Elasticity of â1.4 and the spring transition in 24 days: a 15% markdown now sustains 82% sell-through and frees up R$ 216k before the new collection."}}},tIe={hold:{pt:"Giro acima da categoria e elasticidade baixa; markdown antecipado corta margem sem ganho relevante de sell-through â o preço aguenta o ciclo dentro do plano.",en:"Turnover above category and low elasticity; an early markdown would cut margin without a meaningful sell-through gain â the price holds the cycle within plan."},markdown:{pt:"Estoque envelhecido com perda projetada semanal de margem. Markdown cirúrgico agora captura demanda de fim de ciclo e evita liquidação profunda no final da coleção.",en:"Aged inventory with a projected weekly margin loss. A surgical markdown now captures end-of-cycle demand and avoids a deep clearance at the end of the collection."},wait:{pt:"Pico sazonal previsto na janela próxima com queda temporária de elasticidade. Aguardar preserva margem que o clima e o calendário devolvem antes de reavaliar o preço.",en:"A seasonal peak is forecast in the near window with a temporary drop in elasticity. Waiting preserves margin that weather and calendar return before the price is reassessed."},raise:{pt:"Giro bem acima da categoria com elasticidade baixa e risco de ruptura na janela sazonal. Aumento controlado captura margem incremental sem impacto material em conversão.",en:"Turnover well above category with low elasticity and stockout risk in the seasonal window. A controlled increase captures incremental margin without material impact on conversion."}},w5=e=>`R$ ${e.toFixed(2).replace(".",",")}`,nIe=(e,t="pt")=>e<=0?"R$ 0":e>=1e3?t==="pt"?`R$ ${(e/1e3).toFixed(0)} mil`:`R$ ${(e/1e3).toFixed(0)}k`:`R$ ${e.toFixed(0)}`,rIe={pt:{dashboardTitle:"Clusters e giro atual",dashboardTitleResult:"Preço e markdown recomendados por cluster",dashboardSubtitle:"Selecione os filtros e ajuste restrições para simular a ação ideal por cluster.",dashboardSubtitleResult:"Ação sugerida, sell-through e capital liberado por cluster.",objective:"Objetivo: Giro",filters:{product:"Produto",objective:"Objetivo",minMargin:"Margem mÃnima"},tableHeaders:{cluster:"Cluster",situation:"Situação",stock:"Estoque",avgAge:`Idade 3532média`,velocityVsCategory:`Veloc. 3533vs. cat.`,suggestedAction:`Ação 3534sugerida`},noClusters:"Nenhum cluster nesta seleção de filtros.",skuTableHeaderPrefix:"SKU",skuHeaders:{currentPrice:`Preço 3535atual`,recommendedPrice:`Preço 3536recomendado`,markdown:"Markdown",sellThrough:`Sell- 3537through`},kpi:{sellThrough:"Sell-through projetado",marginPreserved:"Margem preservada",capitalUnlocked:"Capital liberado"},cta:"Otimizar preço e markdown",ctaDisabled:"Ajuste os filtros para simular",running:"Calculando ação idealâ¦",reasoningTitle:"Explicabilidade e raciocÃnio do modelo",whyPrefix:"Por que",whyHold:"manter",whyWait:"aguardar",whyRaise:"subir preço",whyMarkdown:"este markdown",whatModelLearned:"O que o modelo aprendeu",newSimulation:"Nova simulação",ruler:{title:"Régua progressiva de markdown",actIn:"Ação em",actNow:"agora",actInDaysSuffix:"dias",price:"Preço",today:"Hoje",days7:"7 dias",days14:"14 dias",days21:"21 dias",clearance:"Liquidação"},actionLabel:{hold:"Manter",markdown:"Markdown",wait:"Aguardar",raise:"Aumentar"}},en:{dashboardTitle:"Clusters and current turnover",dashboardTitleResult:"Recommended price and markdown per cluster",dashboardSubtitle:"Select the filters and adjust constraints to simulate the ideal action per
3537cluster.",dashboardSubtitleResult:"Suggested action, sell-through and capital unlocked per cluster.",objective:"Objective: Turnover",filters:{product:"Product",objective:"Objective",minMargin:"Minimum margin"},tableHeaders:{cluster:"Cluster",situation:"Situation",stock:"Stock",avgAge:`Avg 3538age`,velocityVsCategory:`Velocity 3539vs. cat.`,suggestedAction:`Suggested 3540action`},noClusters:"No cluster in this filter selection.",skuTableHeaderPrefix:"SKU",skuHeaders:{currentPrice:`Current 3541price`,recommendedPrice:`Recommended 3542price`,markdown:"Markdown",sellThrough:`Sell- 3543through`},kpi:{sellThrough:"Projected sell-through",marginPreserved:"Margin preserved",capitalUnlocked:"Capital unlocked"},cta:"Optimize price and markdown",ctaDisabled:"Adjust the filters to simulate",running:"Calculating ideal actionâ¦",reasoningTitle:"Explainability and model reasoning",whyPrefix:"Why",whyHold:"hold",whyWait:"wait",whyRaise:"raise price",whyMarkdown:"this markdown",whatModelLearned:"What the model learned",newSimulation:"New simulation",ruler:{title:"Progressive markdown rule",actIn:"Act in",actNow:"now",actInDaysSuffix:"days",price:"Price",today:"Today",days7:"7 days",days14:"14 days",days21:"21 days",clearance:"Clearance"},actionLabel:{hold:"Hold",markdown:"Markdown",wait:"Wait",raise:"Raise"}}},aIe=(e,t,n)=>Math.max(t,Math.min(n,e)),iIe=(e,t,n,r)=>{var y,x;const a=((y=JOe[r])==null?void 0:y[e.id])??e.action,i=_2[a],o=t==="aggressive"?{markdown:1.35,sellThrough:6,margin:-1.8,capital:1.25}:t==="preserve"?{markdown:.6,sellThrough:-4,margin:2.4,capital:.7}:{markdown:1,sellThrough:0,margin:0,capital:1},l=parseInt(n,10),c=l>=40?{markdown:.55,sellThrough:-5,margin:2.2,capital:.6}:l>=35?{markdown:.8,sellThrough:-2,margin:1.1,capital:.85}:l>=30?{markdown:1,sellThrough:0,margin:0,capital:1}:{markdown:1.15,sellThrough:2,margin:-.8,capital:1.1},u=o.markdown*c.markdown;let d=i.recommendedMarkdownPct,m=e.currentPrice;if(a==="markdown")d=Math.round(i.recommendedMarkdownPct*u),m=Math.round(e.currentPrice*(1-d/100)*10)/10;else if(a==="raise"){const b=Math.round(Math.abs(i.recommendedMarkdownPct)*(.9+(u-1)*.15));d=-b,m=Math.round(e.currentPrice*(1+b/100)*10)/10}const p=aIe(Math.round(i.sellThroughProjectedPct+o.sellThrough+c.sellThrough),50,95),f=Math.round((i.marginPreservedPp+o.margin+c.margin)*10)/10,g=Math.round(i.capitalUnlockedBRL*o.capital*c.capital/1e3)*1e3,v=(((x=XOe[r])==null?void 0:x[a])??e.skus).map(b=>{if(a==="markdown"&&b.markdownPct>0){const w=Math.max(0,Math.round(b.markdownPct*u)),k=Math.round(b.currentPrice*(1-w/100)*10)/10;return{...b,markdownPct:w,recommendedPrice:k}}return b});return{recommendedPrice:m,recommendedMarkdownPct:d,nextActionPt:i.nextActionPt,nextActionEn:i.nextActionEn,action:a,actInDays:i.actInDays,sellThroughProjectedPct:p,agedStockPct:i.agedStockPct,marginPreservedPp:f,capitalUnlockedBRL:g,skus:v}},oIe={hold:"#22c55e",markdown:"#F4845F",wait:"#60a5fa",raise:"#10b981"},sIe={hold:"text-[#4ade80]",markdown:"text-[#F4845F]",wait:"text-[#60a5fa]",raise:"text-[#34d399]"},lIe=({lang:e="pt"})=>{var N,C,E;const t=rIe[e],n=e==="pt",[r,a]=S.useState("setup"),[i,o]=S.useState(0),[l,c]=S.useState(null),[u,d]=S.useState("sku-1"),[m,p]=S.useState("balanced"),[f,g]=S.useState("30"),h=ZOe,v=S.useMemo(()=>Gb.product.map(T=>({value:T.value,label:n?T.labelPt:T.labelEn})),[n]),y=S.useMemo(()=>Gb.objective.map(T=>({value:T.value,label:n?T.labelPt:T.labelEn})),[n]),x=S.useMemo(()=>Gb.minMargin.map(T=>({value:T.value,label:n?T.labelPt:T.labelEn})),[n]),b=S.useMemo(()=>{const T=new Map;return h.forEach(O=>T.set(O.id,iIe(O,m,f,u))),T},[h,m,f,u]),w=S.useMemo(()=>h.find(T=>T.id===l)??null,[h,l]),k=w?b.get(w.id)??null:null,j=S.useMemo(()=>{const T=Array.from(b.values()).map(D=>D.action),O={hold:T.filter(D=>D==="hold").length,markdown:T.filter(D=>D==="markdown").length,wait:T.filter(D=>D==="wait").length,raise:T.filter(D=>D==="raise").length},F=[];return n?(O.hold&&F.push(`${O.hold} com giro acima da categoria e elasticidade baixa â manter`),O.markdown&&F.push(`${O.markdown} com estoque envelhecido e elasticidade alta â markdown cirúrgico agora`),O.wait&&F.push(`${O.wait} com pico sazonal próximo â aguardar janela`),O.raise&&F.push(`${O.raise} com giro forte e elasticidade baixa â capturar valor com aumento controlado`),`O modelo lê, por cluster, velocidade vs. m
3543édia da categoria, idade do estoque, elasticidade e janela sazonal, respeitando o piso de margem. ${F.join("; ")}.`):(O.hold&&F.push(`${O.hold} with turnover above category and low elasticity â hold`),O.markdown&&F.push(`${O.markdown} with aged inventory and high elasticity â surgical markdown now`),O.wait&&F.push(`${O.wait} with an upcoming seasonal peak â wait for the window`),O.raise&&F.push(`${O.raise} with strong turnover and low elasticity â capture value with a controlled increase`),`The model reads, per cluster, velocity vs. category average, stock age, elasticity and seasonal window, respecting the margin floor. ${F.join("; ")}.`)},[b,n]);S.useEffect(()=>{if(r!=="running")return;o(0);const T=[];let O=0;return mi.forEach((F,D)=>{O+=F.durationMs,T.push(setTimeout(()=>o(D+1),O))}),T.push(setTimeout(()=>{c(F=>{var D;return F??((D=h[0])==null?void 0:D.id)??null}),a("result")},O+260)),()=>T.forEach(clearTimeout)},[r,h]);const A=()=>{a("setup"),o(0)},P=r==="result",_=h.length>0;return s.jsxs("div",{className:"relative rounded-3xl bg-gradient-to-br from-white/8 to-[#F4845F]/8 border border-[#F4845F]/30 p-[3vmin]",children:[s.jsxs("div",{className:"flex flex-col gap-[2.4vmin]",children:[s.jsxs("div",{className:"rounded-2xl bg-[#0B1224] border border-white/10 overflow-hidden flex flex-col",children:[s.jsxs("div",{className:"flex items-baseline justify-between px-[2.5vmin] py-[1.6vmin] bg-white/[0.04] border-b border-white/10 gap-[1vmin]",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"text-[2.2vmin] font-bold text-white leading-tight",children:P?t.dashboardTitleResult:t.dashboardTitle}),s.jsx("p",{className:"text-[1.4vmin] text-white/60",children:P?t.dashboardSubtitleResult:t.dashboardSubtitle})]}),s.jsx("span",{className:"text-[1.4vmin] tracking-[0.25em] uppercase font-semibold text-[#F4845F] text-right",children:t.objective})]}),s.jsxs("div",{className:"p-[2.2vmin] flex flex-col gap-[1.4vmin]",children:[s.jsxs("div",{className:"grid grid-cols-[1.3fr_1fr_0.9fr] gap-[1vmin]",children:[s.jsx(Dr,{label:t.filters.product,value:u,onChange:d,options:v}),s.jsx(Dr,{label:t.filters.objective,value:m,onChange:p,options:y}),s.jsx(Dr,{label:t.filters.minMargin,value:f,onChange:g,options:x})]}),s.jsxs("div",{className:"rounded-xl border border-white/10 overflow-hidden",children:[s.jsxs("div",{className:"grid grid-cols-[1.4fr_1fr_0.9fr_0.9fr_0.9fr_1.1fr] px-[1.4vmin] py-[0.7vmin] gap-x-[0.6vmin] bg-white/[0.05] text-[0.8vmin] uppercase tracking-[0.1em] font-semibold text-white/60 leading-tight",children:[s.jsx("span",{children:t.tableHeaders.cluster}),s.jsx("span",{children:t.tableHeaders.situation}),s.jsx("span",{className:"text-right",children:t.tableHeaders.stock}),s.jsx("span",{className:"text-right whitespace-pre-line",children:t.tableHeaders.avgAge}),s.jsx("span",{className:"text-right whitespace-pre-line",children:t.tableHeaders.velocityVsCategory}),s.jsx("span",{className:"text-right whitespace-pre-line",children:t.tableHeaders.suggestedAction})]}),h.length===0&&s.jsx("div",{className:"px-[1.4vmin] py-[1.6vmin] text-[1.4vmin] text-white/50",children:t.noClusters}),h.map(T=>{const O=b.get(T.id),F=T.id===l&&P,D=!P;return s.jsxs("button",{type:"button",disabled:D,onClick:()=>c(T.id),className:`w-full grid grid-cols-[1.4fr_1fr_0.9fr_0.9fr_0.9fr_1.1fr] items-center px-[1.4vmin] py-[1vmin] text-[1.35vmin] border-t border-white/10 text-left transition ${F?"bg-[#F4845F]/10":D?"cursor-default":"hover:bg-white/[0.04]"}`,children:[s.jsxs("span",{className:"flex items-center gap-[0.7vmin] text-white/90 font-semibold leading-tight",children:[s.jsx("span",{className:"w-[1.1vmin] h-[1.1vmin] rounded-full flex-shrink-0",style:{background:oIe[(O==null?void 0:O.action)??T.action]}}),s.jsxs("span",{children:[n?T.namePt:T.nameEn,s.jsx("span",{className:"block text-[1.05vmin] font-normal text-white/50",children:n?T.regionPt:T.regionEn})]})]}),s.jsx("span",{className:"text-white/70",children:P&&O?_2[O.action][n?"situationPt":"situationEn"]:"â"}),s.jsx("span",{className:"text-right text-white/85 font-mono",children:P?`${T.stockUnits.toLocaleStr
3543ing(n?"pt-BR":"en-US")} un`:"â"}),s.jsx("span",{className:"text-right text-white/85 font-mono",children:P?`${T.avgStockAgeDays} d`:"â"}),s.jsx("span",{className:"text-right text-white/85 font-mono",children:P?`${T.sellVelocity}/${T.categoryAvgVelocity}`:"â"}),s.jsx("span",{className:`text-right font-semibold ${P&&O?sIe[O.action]:"text-white/40"}`,children:P&&O?n?O.nextActionPt:O.nextActionEn:"â"})]},T.id)})]}),P&&w&&k&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"rounded-xl border border-white/10 overflow-hidden",children:[s.jsxs("div",{className:"grid grid-cols-[1.6fr_0.9fr_1fr_0.8fr_0.9fr] px-[1.4vmin] py-[0.7vmin] gap-x-[0.6vmin] bg-white/[0.05] text-[0.8vmin] uppercase tracking-[0.1em] font-semibold text-white/60 leading-tight",children:[s.jsxs("span",{children:[t.skuTableHeaderPrefix," · ",((N=v.find(T=>T.value===u))==null?void 0:N.label)??(n?w.namePt:w.nameEn)]}),s.jsx("span",{className:"text-right whitespace-pre-line",children:t.skuHeaders.currentPrice}),s.jsx("span",{className:"text-right whitespace-pre-line",children:t.skuHeaders.recommendedPrice}),s.jsx("span",{className:"text-right",children:t.skuHeaders.markdown}),s.jsx("span",{className:"text-right whitespace-pre-line",children:t.skuHeaders.sellThrough})]}),k.skus.map(T=>s.jsxs("div",{className:"grid grid-cols-[1.6fr_0.9fr_1fr_0.8fr_0.9fr] items-center px-[1.4vmin] py-[1vmin] text-[1.35vmin] border-t border-white/10",children:[s.jsxs("span",{className:"text-white/90 leading-tight",children:[s.jsx("span",{className:"block font-semibold",children:n?T.namePt:T.nameEn}),s.jsx("span",{className:"block text-[1.05vmin] font-normal text-white/45 font-mono",children:T.sku})]}),s.jsx("span",{className:"text-right text-white/60 font-mono line-through",children:w5(T.currentPrice)}),s.jsx("span",{className:"text-right text-white font-mono font-semibold",children:w5(T.recommendedPrice)}),s.jsx("span",{className:"text-right font-mono",style:{color:T.markdownPct>0?"#F4845F":T.markdownPct<0?"#34d399":"rgba(255,255,255,0.55)"},children:T.markdownPct>0?`â${T.markdownPct}%`:T.markdownPct<0?`+${Math.abs(T.markdownPct)}%`:"â"}),s.jsxs("span",{className:"text-right text-white/85 font-mono",children:[T.sellThroughProjectedPct,"%"]})]},T.sku))]}),s.jsxs("div",{className:"grid grid-cols-3 gap-[1vmin]",children:[s.jsx(Qb,{label:t.kpi.sellThrough,value:`${k.sellThroughProjectedPct}%`,highlight:!0}),s.jsx(Qb,{label:t.kpi.marginPreserved,value:`+${k.marginPreservedPp.toFixed(1)} pp`}),s.jsx(Qb,{label:t.kpi.capitalUnlocked,value:nIe(k.capitalUnlockedBRL,e)})]})]}),r==="setup"&&s.jsx("button",{type:"button",disabled:!_,onClick:()=>a("running"),className:`self-stretch min-h-[7vmin] rounded-2xl font-bold text-[2vmin] tracking-wide transition-all ${_?"bg-[#F4845F] text-white hover:bg-[#F4845F]/90 active:scale-[0.99] shadow-[0_0_28px_rgba(244,132,95,0.35)]":"bg-white/[0.06] text-white/40 border border-white/10 cursor-not-allowed"}`,children:_?t.cta:t.ctaDisabled}),r==="running"&&s.jsxs("div",{className:"rounded-2xl border border-[#F4845F]/40 bg-[#F4845F]/[0.08] px-[2vmin] py-[1.5vmin] flex items-center gap-[1.2vmin] animate-pulse",children:[s.jsx("span",{className:"w-[1.8vmin] h-[1.8vmin] rounded-full border-2 border-[#F4845F] border-t-transparent animate-spin"}),s.jsx("span",{className:"text-[1.6vmin] text-white/90 font-semibold",children:t.running})]})]})]}),s.jsxs("div",{className:"rounded-2xl bg-[#0B1224] border border-white/10 p-[2vmin]",children:[s.jsx("div",{className:"flex items-center gap-[1.2vmin] mb-[1.4vmin]",children:s.jsx("div",{children:s.jsx("h4",{className:"text-[1.9vmin] font-bold text-white leading-tight",children:t.reasoningTitle})})}),P&&s.jsxs("div",{className:"kiosk-insight-card mb-[1.4vmin] rounded-xl border-2 border-[#F4845F]/60 bg-[#F4845F]/[0.08] px-[2vmin] py-[1.8vmin]",children:[s.jsxs("div",{className:"flex items-center gap-[1vmin] mb-[0.8vmin]",children:[s.jsx(Un,{className:"w-[2.2vmin] h-[2.2vmin] text-[#F4845F] kiosk-insight-sparkle",strokeWidth:2.5}),s.jsx("span",{className:"text-[1.7vmin] tracking-[0.25em] uppercase font-bold text-[#F4845F]",children:k&&w?`${t.whyPrefix} ${k.action==="hold"?t.whyHold:k.action==="wait"?t.whyWait:k.action==="raise"?t.whyRaise:t.whyMarkdown}`:t.whatModelLearned})]}),w&&k?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"block text-[1.7vmin] font-semibold text-white mb-[0.6vmin] leading-tight",children:[n?w.namePt:w.nameEn," · ",_2[k.action][n?"situationPt":"situationEn"]]}),s.jsx("p",{className:"text-[1.7vmin] leading-relaxed text-white/95",children:((E=(C=eIe[u])==null?void 0:C[w.id])==null?void 0:E[n?"pt":"en"])??tIe[k.action][n?"pt":"en"]})]}):s.jsx("p",{className:"text-[1.85vmin] leading-relaxed text-white/95",children:j})]}),s.jsx("div",{className:"h-[2vmin] mb-[1vmin] flex items-center justify-center",children:r==="running"&&i<mi.length&&s.jsx("span",{className:"text-[1.2vmin] text-white/60 font-mono",children:n?mi[i].microPt:mi[i].microEn})}),s.jsxs("div",{className:"relative px-[2vmin] pb-[1vmin]",children:[s.jsx("div",{className:"absolute left-[3vmin] right-[3vmin] top-[1.9vmin] h-[0.3vmin] rounded-full bg-white/10"}),s.jsx("div",{className:"absolute left-[3vmin] top-[1.9vmin] h-[0.3vmin] rounded-full bg-[#F4845F] transition-all duration-500",style:{width:`calc((100% - 6vmin) * ${mi.length>
35431?Math.min(i,mi.length-1)/(mi.length-1):0})`}}),s.jsx("div",{className:"relative grid",style:{gridTemplateColumns:`repeat(${mi.length}, minmax(0,1fr))`},children:mi.map((T,O)=>{const F=r==="setup"?"idle":r==="running"?O<i?"done":O===i?"active":"idle":"done";return s.jsxs("div",{className:"flex flex-col items-center gap-[0.8vmin] px-[0.5vmin]",children:[s.jsx("span",{className:`flex-shrink-0 w-[3.8vmin] h-[3.8vmin] rounded-full flex items-center justify-center text-[1.5vmin] font-bold border-2 transition-all ${F==="done"?"bg-[#F4845F] border-[#F4845F] text-white":F==="active"?"border-[#F4845F] text-[#F4845F] bg-[#F4845F]/15 animate-pulse":"border-white/25 text-white/50 bg-[#0B1224]"}`,children:F==="done"?s.jsx(ti,{className:"w-[1.8vmin] h-[1.8vmin]"}):O+1}),s.jsx("span",{className:`text-center text-[1.3vmin] leading-tight font-semibold ${F==="idle"?"text-white/45":"text-white/90"}`,children:n?T.labelPt:T.labelEn}),s.jsx("span",{className:`text-center text-[1.1vmin] leading-tight font-mono ${F==="idle"?"text-white/30":"text-white/55"}`,children:n?T.microPt:T.microEn})]},O)})})]}),P&&s.jsx("button",{type:"button",onClick:A,className:_n("mt-[1.4vmin] w-full min-h-[6vmin] text-[1.6vmin]"),children:t.newSimulation})]})]}),s.jsx("style",{children:` 3544 @keyframes kiosk-insight-in { 3545 0% { opacity: 0; transform: translateY(12px) scale(.94); } 3546 100% { opacity: 1; transform: translateY(0) scale(1); } 3547 } 3548 @keyframes kiosk-insight-glow { 3549 0%, 100% { box-shadow: 0 0 0 0 rgba(244,132,95,.35), 0 0 24px rgba(244,132,95,.25); border-color: rgba(244,132,95,.55); } 3550 50% { box-shadow: 0 0 0 6px rgba(244,132,95,.10), 0 0 40px rgba(244,132,95,.60); border-color: rgba(244,132,95,1); } 3551 } 3552 @keyframes kiosk-insight-sparkle { 3553 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 3554 50% { transform: scale(1.25) rotate(15deg); opacity: .85; } 3555 } 3556 .kiosk-insight-card { 3557 animation: kiosk-insight-in .5s ease-out .3s both, kiosk-insight-glow 2.4s ease-in-out .3s infinite; 3558 } 3559 .kiosk-insight-sparkle { animation: kiosk-insight-sparkle 1.8s ease-in-out infinite; } 3560 `})]})},Qb=({label:e,value:t,hint:n,highlight:r})=>s.jsxs("div",{className:`rounded-xl border p-[1.2vmin] flex flex-1 flex-col justify-center gap-[0.3vmin] ${r?"border-[#F4845F]/60 bg-[#F4845F]/[0.08]":"border-white/10 bg-white/[0.03]"}`,children:[s.jsx("span",{className:"text-[0.9vmin] tracking-[0.18em] uppercase font-semibold text-white/55 leading-tight",children:e}),s.jsx("span",{className:`text-[1.9vmin] font-bold leading-tight ${r?"text-[#F4845F]":"text-white"}`,children:t}),n&&s.jsx("span",{className:"text-[1.05vmin] text-white/55",children:n})]}),k5=(e,t)=>S.createElement(S.Fragment,null,e,S.createElement("span",{className:"text-[#F4845F]"},`eBook ${t}`)),lx={pt:{intro:{eyebrow:"infinity6 · Experiência Interativa",title:"Descubra em 30 segundos qual solução da infinity6 faz mais sentido para o seu negócio.",subtitle:"Responda duas perguntas rápidas e veja qual solução preditiva se encaixa no seu contexto.",startCta:"Começar"},routing:{id:"q1-route",eyebrow:"Pergunta 1",text:"Qual resultado você precisa priorizar agora?",helper:"Escolha a frente mais relevante para o seu momento.",options:[{id:"r-growth",label:"Aumentar conversão e receita",helper:"Vender mais por cliente, visitante ou canal, com ofertas e abordagens mais relevantes.",route:"growth"},{id:"r-planning",label:"Planejar demanda e operação com mais precisão",helper:"Melhorar previsões, metas, mix e pedidos para reduzir ruptura, excesso e desperdÃcio.",route:"planning"},{id:"r-pricing",label:"Tomar melhores decisões de preço",helper:"Proteger margem, acelerar o giro ou aumentar a conversão por meio do preço.",route:"pricing"}]},branches:{growth:{id:"q2-growth",eyebrow:"Pergunta 2",text:"Onde está a maior oportunidade de crescimento?",options:[{id:"g-personalization",label:"Melhorar o que cada cliente ou visitante encontra e recebe",helper:"Quero recomendar a melhor oferta, produto ou próxima ação para cada pessoa, inclusive visitantes ainda não identificados.",solutionIds:["predictive-personalization","smart-discovery"]},{id:"g-campaign",label:"Identificar quem deve ser abordado em cada campanha",helper:"Quero priorizar os clientes com maior potencial de resposta, definir audiências e tornar campanhas e ações comerciais mais eficientes.",solutionIds:["predictive-campaign-targeting"]}]},planning:{id:"q2-planning",eyebrow:"Pergunta 2",text:"Qual decisão precisa de mais precisão?",options:[{id:"p-forecast",label:"Antecipar quanto será demandado, onde e quando",helper:"Quero prever a demanda por SKU, loja, PDV, canal, região ou cliente.",solutionIds:["demand-forecasting"]},{id:"p-goals",label:"Definir metas de acordo com o potencial real de mercado",helper:"Quero estabelecer metas mais precisas por território, carteira, canal, produto, vendedor ou PDV.",solutionIds:["predictive-commercial-targets"]},{id:"p-mix",label:"Definir o melhor mix, volume ou pedido",helper:"Quero recomendar quais produtos oferecer, em qual quantidade e para cada loja, PDV ou cliente.",solutionIds:["mix-assortment-order"]}]},pricing:{id:"q2-pricing",eyebrow:"Pergunta 2",text:"O que sua decisão de preço precisa otimizar prioritariamente?",options:[{id:"pr-margin",label:"Capturar mais margem",helper:"Quero encontrar o melhor preço por SKU, considerando elasticidade, estoque, concorrência e demanda.",solutionIds:["price-to-margin"]},{id:"pr-turnover",label:"Acelerar o giro de estoque",helper:"Quero otimizar markdowns e promoções para vender estoques parados ou envelhecidos, preservando a maior margem possÃvel.",solutionIds:["price-to-turnover"]},{id:"pr-conversion",label:"Aumentar a conversão",helper:"Quero ajustar o preço ao contexto, perfil ou intenção de compra imediata para aumentar vendas e receita.",solutionIds:["price-to-conversion"]}]}},progressLabel:"Passo {current} de {total}",continueCta:"Continuar",results:{eyebrow:"Sua solução recomendada",title:"Esta é a solução mais aderente ao seu contexto.",subtitle:"Explore o exemplo de aplicação abaixo.",tieTitle:"Seu contexto combina duas soluções complementares.",tieSubtitle:"Toque em uma solução para ver o exemplo de aplicação.",selectSolutionHint:"Toque em uma solução acima",simulateButton:"Clique aqui para simular a solução",closeSimulation:"Conversar com a camada preditiva de comportamento",matrixFashion:"Moda",matrixProducts:"Bens de consumo",
3560signalEyebrow:"i6 Signal",signalTitle:"Converse com a camada preditiva.",signalSubtitle:"Disponibilizamos a camada preditiva gerada pelos modelos em uma plataforma conversacional. Faça perguntas em linguagem natural para antecipar movimentos, identificar oportunidades e tomar decisões comerciais, de supply e de pricing antes do mercado.",signalPickHint:"Escolha uma pergunta"},ebook:{eyebrow:"Leve o conteúdo com você",title:e=>k5("Receba o ",e),subtitle:"Deixe seu nome e email e enviamos o material completo em minutos.",cta:"Quero receber",nameLabel:"Nome",emailLabel:"Email",submit:"Enviar",sending:"Enviando...",invalidName:"Informe seu nome",invalidEmail:"Email inválido",privacy:"Ao enviar, você concorda com nossa PolÃtica de Privacidade.",successTitle:"Tudo certo",successBody:"Enviamos o material para o seu email. Deve chegar em alguns minutos.",successFooter:"Se não aparecer na caixa de entrada, verifique a pasta de SPAM.",error:"Não foi possÃvel enviar. Tente novamente.",keyboardDone:"Concluir",keyboardSpace:"Espaço",emailSuggestionsLabel:"Sugestões"},attract:{brand:"infinity6",headline:'Decida <span class="text-[#F4845F]">antes</span> do mercado.',tapHint:"Toque para começar"},footer:{resetLabel:"Explorar outra solução",tagline:"infinity6 - the platform for decision advantage"}},en:{intro:{eyebrow:"infinity6 · Interactive Experience",title:"Discover in 30 seconds which infinity6 solution fits your business.",subtitle:"Answer two quick questions and see which predictive solution matches your context.",startCta:"Start"},routing:{id:"q1-route",eyebrow:"Question 1",text:"Which outcome do you need to prioritize right now?",helper:"Pick the front that matters most for your moment.",options:[{id:"r-growth",label:"Increase conversion and revenue",helper:"Sell more per customer, visitor or channel, with more relevant offers and approaches.",route:"growth"},{id:"r-planning",label:"Plan demand and operations with more precision",helper:"Improve forecasts, targets, mix and orders to reduce stockouts, excess and waste.",route:"planning"},{id:"r-pricing",label:"Make better pricing decisions",helper:"Protect margin, accelerate turnover or boost conversion through price.",route:"pricing"}]},branches:{growth:{id:"q2-growth",eyebrow:"Question 2",text:"Where is the biggest growth opportunity?",options:[{id:"g-personalization",label:"Improve what each customer or visitor finds and receives",helper:"I want to recommend the best offer, product or next action for each person, including anonymous visitors.",solutionIds:["predictive-personalization","smart-discovery"]},{id:"g-campaign",label:"Identify who should be approached in each campaign",helper:"I want to prioritize customers with the highest response potential and make campaigns more efficient.",solutionIds:["predictive-campaign-targeting"]}]},planning:{id:"q2-planning",eyebrow:"Question 2",text:"Which decision needs more precision?",options:[{id:"p-forecast",label:"Anticipate how much will be demanded, where and when",helper:"I want to forecast demand by SKU, store, POS, channel, region or customer.",solutionIds:["demand-forecasting"]},{id:"p-goals",label:"Set targets aligned with real market potential",helper:"I want to set more precise targets by territory, portfolio, channel, product, rep or POS.",solutionIds:["predictive-commercial-targets"]},{id:"p-mix",label:"Define the best mix, volume or order",helper:"I want to recommend which products to offer, in which quantity and for each store, POS or customer.",solutionIds:["mix-assortment-order"]}]},pricing:{id:"q2-pricing",eyebrow:"Question 2",text:"What should your pricing decision optimize first?",options:[{id:"pr-margin",label:"Capture more margin",helper:"I want to find the best price per SKU, considering elasticity, stock, competition and demand.",solutionIds:["price-to-margin"]},{id:"pr-turnover",label:"Accelerate inventory turnover",helper:"I want to optimize markdowns and promotions to sell aged or stuck stock while preserving the highest possible margin.",solutionIds:["price-to-turnover"]},{id:"pr-conversion",label:"Boost conversion",helper:"I want to adjust price to context, profile or immediate purchase intent to grow sales and revenue.",solutionIds:["price-to-conversion"]}]}},progressLabel:"Step {current} of {total}",continueCta:"Continue",results:{eyebrow:"Your recommended solution",title:"This is the solution that best fits your context.",subtitle:"Explore the example below.",tieTitle:"Your context combines two complementary solutions.",tieSubtitle:"Tap a solution to see the example.",selectSolutionHint:"Tap a solution above",simulateButton:"Click here to simulate the solution",closeSimulation:"Chat with the predictive behavior layer",matrixFashion:"Fashion",matrixProducts:"Consumer goods",signalEyebrow:"i6 Signal",signalTitle:"Chat with the predictive layer.",signalSubtitle:"Tap a question to see how infinity6 turns data into decisions.",signalPickHint:"Pick a question"},ebook:{eyebrow:"Take the content with you",title:e=>k5("Get the ",e),subtitle:"Leave your name and email and we will send the full material in minutes.",cta:"I want it",nameLabel:"Name",emailLabel:"Email",submit:"Submit",sending:"Sending...",invalidName:"Enter your name",invalidEmail:"Invalid email",privacy:"By submitting, you agree to our Privacy Policy.",successTitle:"All set",successBody:"We just sent the material to your inbox. It should arrive in a few minutes.",successFooter:"If you don't see it, please check your SPAM folder.",error:"Could not submit. Please try again.",keyboardDone:"Done",keyboardSpace:"Space",emailSuggestionsLabel:"Suggestions"},attract:{brand:"infinity6",headline:'Decide <span class="text-[#F4845F]">before</span> the market.',tapHint:"Tap to begin"},footer:{resetLabel:"Explore another solution",tagline:"infinity6 - the platform for decision advantage"}}},cIe={"predictive-personalization":["personalizationBehavior","personalizationRepurchase"],"smart-discovery":["personalizationBehavior","personalizationRepurchase"],"predictive-campaign-targeting":["propensity","clusters"],"demand-forecasting":["forecast","supply"],"predictive-commercial-targets":["targetsPotential","targetsRisk"],"mix-assortment-order":["mixBehavior","mixGaps"],"price-to-margin":["marginOpportunities","marginSignals"],"price-to-turnover":["turnoverRisk","turnoverMarkdown"],"price-to-conversion":["priceConversionFriction","priceConversionIncentiveNeed"]},uIe={growth:{pt:"Inteligência do Consumidor Orientada à Decisão",en:"Decision-Oriented Customer Intelligence"},planning:{pt:"Supply Orientado à Decisão",en:"Decision-Driven Supply"},pricing:{pt:"Pricing Orientado a Resultados",en:"Results-Driven Pricing"}},dIe=18e4,eo=({lang:e,solutionTitle:t,solutionTagline:n,resolve:r,entrega:a,impacto:i,labels:o,secondaryTitle:l,secondaryResolve:c,secondaryEntrega:u,secondaryImpacto:d,icon:m=Un,onSimulationClosed:p,children:f})=>{const[g,h]=S.useState(!1),[v,y]=S.useState(0),x=lx[e].results;S.useEffect(()=>{if(!g)return;const w=document.body.style.overflow;document.body.style.overflow="hidden";
3560const k=j=>{j.key==="Escape"&&b()};return window.addEventListener("keydown",k),()=>{document.body.style.overflow=w,window.removeEventListener("keydown",k)}},[g]);const b=()=>{h(!1),y(w=>w+1),p==null||p()};return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"rounded-3xl bg-gradient-to-br from-white/8 to-[#F4845F]/8 border border-[#F4845F]/30 p-[4vmin]",children:[s.jsxs("div",{className:"flex items-center gap-[2vmin] mb-[2.5vmin]",children:[s.jsx("span",{className:"w-[6vmin] h-[6vmin] rounded-xl bg-[#F4845F]/15 border border-[#F4845F]/40 flex items-center justify-center",children:s.jsx(m,{className:"w-[3vmin] h-[3vmin] text-[#F4845F]"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-[3.4vmin] font-bold leading-tight text-white",children:t}),n&&s.jsx("p",{className:"text-[2vmin] text-white/70",children:n})]})]}),o&&(r||a||i)&&s.jsxs("div",{className:"grid grid-cols-1 gap-[2vmin] mb-[2.5vmin]",children:[r&&s.jsx(xl,{label:o.resolve,value:r}),a&&s.jsx(xl,{label:o.entrega,value:a}),i&&s.jsx(xl,{label:o.impacto,value:i,highlight:!0})]}),o&&l&&(c||u||d)&&s.jsxs("div",{className:"mt-[1vmin] mb-[2.5vmin] pt-[2.5vmin] border-t border-white/10",children:[s.jsx("h4",{className:"text-[2.6vmin] font-bold leading-tight text-[#F4845F] mb-[2vmin]",children:l}),s.jsxs("div",{className:"grid grid-cols-1 gap-[2vmin]",children:[c&&s.jsx(xl,{label:o.resolve,value:c}),u&&s.jsx(xl,{label:o.entrega,value:u}),d&&s.jsx(xl,{label:o.impacto,value:d,highlight:!0})]})]}),s.jsx("button",{type:"button",onClick:()=>h(!0),className:_n("w-full min-h-[10vmin] text-[2.4vmin] gap-[1.5vmin]"),children:x.simulateButton})]}),g&&s.jsx("div",{role:"dialog","aria-modal":"true",className:"fixed inset-0 z-50 bg-[#0B1224]/95 backdrop-blur-sm flex items-center justify-center p-[2vmin] animate-fade-in",children:s.jsxs("div",{className:"w-[90vw] h-[90vh] max-w-[90vw] rounded-3xl bg-[#0B1224] border border-white/10 flex flex-col overflow-hidden shadow-[0_30px_80px_rgba(0,0,0,0.6)]",children:[s.jsx("div",{className:"flex-1 overflow-y-auto p-[3vmin]",children:f},v),s.jsx("div",{className:"flex-shrink-0 border-t border-white/10 bg-[#0B1224] p-[2vmin] flex justify-center",children:s.jsxs("button",{type:"button",onClick:b,className:_n("min-h-[8vmin] px-[4vmin] py-[1.8vmin] text-[2vmin] gap-[1.5vmin]"),children:[s.jsx(Xc,{className:"w-[2.2vmin] h-[2.2vmin]"}),x.closeSimulation]})})]})})]})},xl=({label:e,value:t})=>s.jsxs("div",{className:"py-[1vmin]",children:[s.jsx("span",{className:"block text-[1.6vmin] tracking-[0.25em] uppercase font-semibold text-[#F4845F] mb-[0.6vmin]",children:e}),s.jsx("span",{className:"block text-[2.4vmin] leading-snug text-white/90 whitespace-pre-line",children:t})]}),mIe="/assets/headphones-D-kM2fhA.jpg",pIe="/assets/earbuds-CpHwGcyh.jpg",fIe="/assets/speaker-CtiEY2o2.jpg",hIe="/assets/mouse-Bkje8y_R.jpg",gIe="/assets/keyboard-CeC-EWRo.jpg",vIe="/assets/monitor-CQuQcrI2.jpg",yIe="/assets/cable-D1dsQt1u.jpg",xIe="/assets/case-DvvyvAxy.jpg",bIe="/assets/shirt-Yd1qadhI.jpg",wIe="/assets/tee-CFCVrgXO.jpg",kIe="/assets/jacket-CY3yKlvk.jpg",SIe="/assets/pants-GzeHjwot.jpg",jIe="/assets/jeans-CFqN36xL.jpg",PIe="/assets/sneakers-DxzmVbzd.jpg",AIe="/assets/boots-BR5AOClK.jpg",_Ie="/assets/cap-DvFovbtE.jpg",NIe="/assets/backpack-CiBr3lu_.jpg",CIe={title:{pt:"Vitrine · Eletrônicos",en:"Storefront · Electronics"},subtitle:{pt:"Clique num produto para ver o modelo pensar",en:"Tap a product to watch the model reason"},skus:[{id:"p-headphones",emoji:"ð§",image:mIe,name:{pt:"Fone Bluetooth Pro",en:"Bluetooth Headphones Pro"},category:{pt:"Ãudio",en:"Audio"},categoryKey:"audio",price:899.9,recIds:["p-case","p-cable","p-earbuds","p-speaker"]},{id:"p-earbuds",emoji:"ðµ",image:pIe,name:{pt:"Earbuds Wireless",en:"Wireless Earbuds"},category:{pt:"Ãudio",en:"Audio"},categoryKey:"audio",price:449,recIds:["p-case","p-cable","p-headphones","p-speaker"]},{id:"p-speaker",emoji:"ð",image:fIe,name:{pt:"Speaker Portátil",en:"Portable Speaker"},category:{pt:"Ãudio",en:"Audio"},categoryKey:"audio",price:599,recIds:["p-cable","p-headphones","p-earbuds","p-case"]},{id:"p-mouse",emoji:"ð±ï¸",image:hIe,name:{pt:"Mouse Ergonômico",en:"Ergonomic Mouse"},category:{pt:"Periféricos",en:"Peripherals"},categoryKey:"peripherals",price:289.9,recIds:["p-keyboard","p-monitor","p-cable","p-case"]},{id:"p-keyboard",emoji:"â¨ï¸",image:gIe,name:{pt:"Teclado Mecânico",en:"Mechanical Keyboard"},category:{pt:"Periféricos",en:"Peripherals"},categoryKey:"peripherals",price:749,recIds:["p-mouse","p-monitor","p-cable","p-headphones"]}
3560,{id:"p-monitor",emoji:"ð¥ï¸",image:vIe,name:{pt:"Monitor UltraWide",en:"UltraWide Monitor"},category:{pt:"VÃdeo",en:"Video"},categoryKey:"video",price:2199,recIds:["p-keyboard","p-mouse","p-cable","p-speaker"]},{id:"p-cable",emoji:"ð",image:yIe,name:{pt:"Cabo USB-C Trançado",en:"Braided USB-C Cable"},category:{pt:"Acessórios",en:"Accessories"},categoryKey:"accessories",price:89.9,recIds:["p-case","p-earbuds","p-mouse","p-headphones"]},{id:"p-case",emoji:"ð¼",image:xIe,name:{pt:"Case de Proteção",en:"Protective Case"},category:{pt:"Acessórios",en:"Accessories"},categoryKey:"accessories",price:129.9,recIds:["p-headphones","p-earbuds","p-cable","p-mouse"]}]},EIe={title:{pt:"Vitrine · Moda",en:"Storefront · Fashion"},subtitle:{pt:"Clique num item para o modelo montar o look",en:"Tap an item and let the model compose the look"},skus:[{id:"f-shirt",emoji:"ð",image:bIe,name:{pt:"Camisa Linho Oversize",en:"Oversize Linen Shirt"},category:{pt:"Tops",en:"Tops"},categoryKey:"tops",price:289,recIds:["f-pants","f-sneakers","f-cap","f-jacket"],lookIds:["f-pants","f-sneakers","f-cap"]},{id:"f-tee",emoji:"ð½",image:wIe,name:{pt:"T-shirt Premium",en:"Premium T-shirt"},category:{pt:"Tops",en:"Tops"},categoryKey:"tops",price:169,recIds:["f-jeans","f-sneakers","f-backpack","f-cap"],lookIds:["f-jeans","f-sneakers","f-backpack"]},{id:"f-jacket",emoji:"ð§¥",image:kIe,name:{pt:"Jaqueta Bomber",en:"Bomber Jacket"},category:{pt:"Outerwear",en:"Outerwear"},categoryKey:"outerwear",price:599,recIds:["f-tee","f-jeans","f-boots","f-backpack"],lookIds:["f-tee","f-jeans","f-boots"]},{id:"f-pants",emoji:"ð",image:SIe,name:{pt:"Calça Alfaiataria",en:"Tailored Trousers"},category:{pt:"Bottoms",en:"Bottoms"},categoryKey:"bottoms",price:349,recIds:["f-shirt","f-sneakers","f-jacket","f-cap"],lookIds:["f-shirt","f-sneakers","f-cap"]},{id:"f-jeans",emoji:"ð",image:jIe,name:{pt:"Jeans Slim",en:"Slim Jeans"},category:{pt:"Bottoms",en:"Bottoms"},categoryKey:"bottoms",price:259,recIds:["f-tee","f-sneakers","f-jacket","f-backpack"],lookIds:["f-tee","f-sneakers","f-backpack"]},{id:"f-sneakers",emoji:"ð",image:PIe,name:{pt:"Tênis Runner",en:"Runner Sneakers"},category:{pt:"Calçados",en:"Footwear"},categoryKey:"footwear",price:549,recIds:["f-tee","f-jeans","f-cap","f-backpack"],lookIds:["f-tee","f-jeans","f-cap"]},{id:"f-boots",emoji:"ð¥¾",image:AIe,name:{pt:"Bota Casual",en:"Casual Boots"},category:{pt:"Calçados",en:"Footwear"},categoryKey:"footwear",price:689,recIds:["f-jacket","f-jeans","f-shirt","f-backpack"],lookIds:["f-jacket","f-jeans","f-backpack"]},{id:"f-cap",emoji:"ð§¢",image:_Ie,name:{pt:"Boné Trucker",en:"Trucker Cap"},category:{pt:"Acessórios",en:"Accessories"},categoryKey:"fashion-accessories",price:119,recIds:["f-tee","f-sneakers","f-jeans","f-backpack"],lookIds:["f-tee","f-jeans","f-sneakers"]},{id:"f-backpack",emoji:"ð",image:NIe,name:{pt:"Mochila Urbana",en:"Urban Backpack"},category:{pt:"Acessórios",en:"Accessories"},categoryKey:"fashion-accessories",price:429,recIds:["f-tee","f-jeans","f-sneakers","f-jacket"],lookIds:["f-tee","f-jeans","f-sneakers"]}]},TIe={products:CIe,fashion:EIe},QD={"logged-products":{objective:{pt:"Cross-sell",en:"Cross-sell"},features:[{label:{pt:"Lendo o histórico de navegação e compra do cliente",en:"Reading the customerâs browsing and purchase history"},microMetric:{pt:"Sessões, cliques e transações dos últimos 30 dias no perfil identificado.",en:"Sessions, clicks and transactions from the last 30 days on the identified profile."},durationMs:520},{label:{pt:"Identificando as categorias de maior afinidade",en:"Identifying the categories with the strongest affinity"},microMetric:{pt:"Ãudio e periféricos concentram o interesse recente deste cliente.",en:"Audio and peripherals concentrate this customerâs recent interest."},durationMs:460},{label:{pt:"Mapeando produtos que costumam ser vistos e comprados juntos",en:"Mapping products that are usually viewed and bought together"},microMetric:{pt:"Grafo de co-visualização e co-compra a 2 nÃveis a partir do item âncora.",en:"2-hop co-view and co-purchase graph anchored on the selected item."},durationMs:540},{label:{pt:"Aplicando contexto de estoque, preço e sazonalidade",en:"Applying stock, price and seasonality context"},microMetric:{pt:"Só entram no ranking itens disponÃveis, com preço competitivo e coerentes com o momento.",en:"Only in-stock, competitively priced and season-consistent items enter the ranking."},durationMs:420},{label:{pt:"Ranqueando as melhores recomendações de cross-sell",en:"Ranking the best cross-sell recommendations"},microMetric:{pt:"Modelo i6RecSys prioriza combinações com maior probabilidade de compra conjunta.",en:"The i6RecSys model prioritizes combinations with the highest joint-purchase probability."},durationMs:520}],scenarioIntro:{pt:"30d de histórico e {events} eventos indicam afinidade forte em {anchorCat}.",en:"30d of history and {events} events show strong affinity for {anchorCat}."},categoryReading:{audio:{pt:"{name} ativa o cluster áudio-mobilidade â usuários com esse perfil compram acessórios de proteção e c
3560onectividade em 48h.",en:"{name} activates the audio-mobility cluster â this profile buys protection and connectivity accessories within 48h."},peripherals:{pt:"{name} sinaliza setup de produtividade â o histórico converte forte em bundles de periféricos + vÃdeo.",en:"{name} signals a productivity setup â history converts strongly into peripherals + video bundles."},video:{pt:"{name} é âncora de alto ticket â clientes desse cluster completam setup com periféricos premium.",en:"{name} is a high-ticket anchor â customers in this cluster complete their setup with premium peripherals."},accessories:{pt:"{name} é acessório de continuidade â perfil recorrente puxa upgrade em categorias-âncora (áudio/periféricos).",en:"{name} is a continuity accessory â recurring profile pulls upgrades in anchor categories (audio/peripherals)."}},recsRationale:{pt:"Estes itens co-ocorrem em {mult} nas compras seguintes de {name} â topo do ranking: {cats}.",en:"These items co-occur {mult} in purchases following {name} â top of ranking: {cats}."}},"logged-fashion":{objective:{pt:"Cross-sell · Look",en:"Cross-sell · Outfit"},features:[{label:{pt:"Lendo o histórico de estilo e navegação do cliente",en:"Reading the customerâs style and browsing history"},microMetric:{pt:"Peças visualizadas e compradas nos últimos 30 dias no perfil identificado.",en:"Items viewed and purchased in the last 30 days on the identified profile."},durationMs:520},{label:{pt:"Inferindo estilo e paleta preferidos",en:"Inferring preferred style and palette"},microMetric:{pt:"Cluster de estilo urban-minimal, com preferência por tons neutros e caimento reto.",en:"Urban-minimal style cluster, favoring neutral tones and straight-fit cuts."},durationMs:480},{label:{pt:"Buscando peças que combinam com a âncora escolhida",en:"Finding pieces that match the selected anchor"},microMetric:{pt:"Grafo de co-look identifica bottoms, calçados e sobreposições que fecham a composição.",en:"Co-outfit graph identifies bottoms, footwear and layers that complete the look."},durationMs:500},{label:{pt:"Ajustando o look ao contexto de estação, região e estoque",en:"Adjusting the outfit to season, region and stock context"},microMetric:{pt:"Só permanecem peças coerentes com clima/geo e disponÃveis para retirada rápida.",en:"Only items aligned with weather/geo and available for fast fulfillment remain."},durationMs:420},{label:{pt:"Compondo o look final priorizando ticket médio",en:"Composing the final outfit prioritizing average order value"},microMetric:{pt:"Outfit composer i6RecSys prioriza combinações que elevam o valor do carrinho sem quebrar o estilo.",en:"The i6RecSys outfit composer prioritizes combos that lift AOV without breaking style."},durationMs:540}],scenarioIntro:{pt:"Estilo urban-minimal ({events} eventos em 30d) guia a composição do look.",en:"Urban-minimal style ({events} events over 30d) guides the outfit composition."},categoryReading:{tops:{pt:"{name} entra como peça-chave superior â o composer prioriza bottoms de caimento reto e calçado clean.",en:"{name} enters as the key top â the composer prioritizes straight-fit bottoms and clean footwear."},bottoms:{pt:"{name} define a base do look â o composer busca tops de paleta neutra e sobreposição leve.",en:"{name} sets the outfit base â the composer picks neutral-palette tops and light layering."},outerwear:{pt:"{name} eleva o outfit em camadas â o composer completa com jeans e footwear de contraste.",en:"{name} lifts the outfit in layers â the composer completes with jeans and contrasting footwear."},footwear:{pt:"{name} ancora o outfit pelos pés â o composer sugere silhueta coerente em tops e bottoms.",en:"{name} anchors the outfit from the feet â the composer suggests a coherent silhouette in tops and bottoms."},"fashion-accessories":{pt:"{name} fecha o styling â o composer sugere peças-base para consolidar o look em torno do acessório.",en:"{name} closes the styling â the composer suggests base pieces to build the look around the accessory."}},recsRationale:{pt:"Combinações com {name} elevam ticket médio em {mult} â look proposto: {cats}.",en:"Combos featuring {name} lift AOV by {mult} â proposed outfit: {cats}."}},"anon-products":{objective:{pt:"Descoberta",en:"Discovery"}
3560,features:[{label:{pt:"Lendo os sinais desta sessão anônima",en:"Reading the signals from this anonymous session"},microMetric:{pt:"Região, horário, canal de entrada e tipo de dispositivo para dar contexto ao modelo.",en:"Region, time, entry channel and device type give context to the model."},durationMs:520},{label:{pt:"Encontrando clientes com comportamento parecido",en:"Finding customers with similar behavior"},microMetric:{pt:"Embeddings de sessão aproximam esta visita a clusters de compradores similares.",en:"Session embeddings bring this visit close to clusters of similar shoppers."},durationMs:560},{label:{pt:"Filtrando por catálogo disponÃvel e tendências do momento",en:"Filtering by available catalog and current trends"},microMetric:{pt:"Só entram itens em estoque, com preço saudável e com tração recente.",en:"Only in-stock items with healthy pricing and recent traction are kept."},durationMs:440},{label:{pt:"Rankeando descobertas com maior chance de engajar",en:"Ranking discoveries with the highest chance to engage"},microMetric:{pt:"Modelo i6RecSys aprende em tempo real quais produtos convertem melhor neste tipo de sessão.",en:"The i6RecSys model learns in real time which products convert best in this session profile."},durationMs:520}],scenarioIntro:{pt:"Sem histórico, o modelo lê sinais desta sessão (device, hora, canal) e ancora em {anchorCat}.",en:"With no history, the model reads this session (device, hour, channel) and anchors on {anchorCat}."},categoryReading:{audio:{pt:"{name} sugere jornada de consumo pessoal â sessões anônimas parecidas nesta hora convertem em áudio + acessórios de proteção.",en:"{name} suggests a personal-consumption journey â similar anonymous sessions at this hour convert into audio + protection accessories."},peripherals:{pt:"{name} sinaliza intenção de setup â clusters anônimos semelhantes migram para periféricos complementares e conectividade.",en:"{name} signals a setup intent â similar anonymous clusters migrate to complementary peripherals and connectivity."},video:{pt:"{name} é sinal forte de intenção de compra alta â sessões anônimas com esse padrão exploram periféricos e alto ticket em paralelo.",en:"{name} is a strong high-intent signal â anonymous sessions with this pattern explore peripherals and high-ticket in parallel."},accessories:{pt:"{name} é entrada leve â clusters anônimos parecidos revelam interesse latente em categorias-âncora (áudio/periféricos).",en:"{name} is a light entry â similar anonymous clusters reveal latent interest in anchor categories (audio/peripherals)."}},recsRationale:{pt:"Embeddings de sessão (k={k}) posicionam {cats} no topo do ranking para {name} neste contexto.",en:"Session embeddings (k={k}) place {cats} at the top of the ranking for {name} in this context."}},"anon-fashion":{objective:{pt:"Descoberta · Look",en:"Discovery · Outfit"},features:[{label:{pt:"Lendo os sinais desta visita anônima",en:"Reading the signals from this anonymous visit"},microMetric:{pt:"Clima, região, horário e canal de entrada guiam a leitura da intenção.",en:"Weather, region, time and entry channel guide the intent reading."},durationMs:520},{label:{pt:"Encontrando visitas parecidas para inferir preferências",en:"Finding similar visits to infer preferences"},microMetric:{pt:"Embeddings de sessão aproximam esta visita de perfis de estilo similares.",en:"Session embeddings bring this visit close to similar style profiles."},durationMs:560},{label:{pt:"Inferindo o estilo e a paleta prováveis desta sessão",en:"Inferring the likely style and palette of this session"},microMetric:{pt:"Estilo inferido com confiança moderada, base para compor peças que combinam entre si.",en:"Style inferred with moderate confidence, a base to compose pieces that match each other."},durationMs:480},{label:{pt:"Compondo um look coerente com o contexto atual",en:"Composing an outfit consistent with the current context"},microMetric:{pt:"Outfit composer i6RecSys prioriza uma combinação alinhada ao clima, ao momento e ao item explorado.",en:"The i6RecSys outfit composer prioritizes a combination aligned to weather, moment and the explored item."},durationMs:540}],scenarioIntro:{pt:"Sem perfil, o modelo infere estilo pela sessão (clima, geo, hora) e ancora em {anchorCat}.",en:"Without a profile, the model infers style from the session (weather, geo, hour) and anchors on {anchorCat}."},categoryReading:{tops:{pt:"{name} indica intenção casual â estilo inferido sugere paleta neutra e caimento amplo para o restante do look.",en:"{name} indicates a casual intent â inferred style suggests neutral palette and relaxed fit across the outfit."},bottoms:{pt:"{name} define a silhueta â o composer explora tops leves e footwear versátil, coerentes com clima/geo atuais.",en:"{name} defines the silhouette â the composer explores light tops and versatile footwear aligned to current weather/geo."},outerwear:{pt:"{name} sinaliza necessidade de camadas â clima atual reforça peças estruturadas por baixo e footwear de contraste.",en:"{name}
3560 signals layering intent â current weather reinforces structured base pieces and contrasting footwear."},footwear:{pt:"{name} ancora o outfit â o composer infere estilo pelo tipo de calçado e propõe silhueta coerente.",en:"{name} anchors the outfit â the composer infers style from footwear type and proposes a coherent silhouette."},"fashion-accessories":{pt:"{name} inicia o styling â sessão anônima explora peças-base para consolidar o look em torno do acessório.",en:"{name} starts the styling â anonymous session explores base pieces to build the look around the accessory."}},recsRationale:{pt:"Similaridade comportamental (k={k}) sugere para {name} um look coerente: {cats}.",en:"Behavioral similarity (k={k}) suggests a coherent outfit for {name}: {cats}."}}};function Qj(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)>>>0;return t}function OIe(e,t){if(e.length===0)return"";if(e.length===1)return e[0];const n=t==="pt"?" e ":" and ";return e.slice(0,-1).join(", ")+n+e[e.length-1]}function IIe(e){const t=Qj(e.id);return String(260+t%100)}function MIe(e){return`${(2.4+Qj(e.id)%13/10).toFixed(1)}Ã`}function $Ie(e,t){const n=Qj(e.id);return String(t-6+n%13)}function FIe(e,t,n,r){var p,f;const a=QD[e],i=t.category[r],o=[];for(const g of n){const h=g.category[r];o.includes(h)||o.push(h)}const l=OIe(o,r),c=a.scenarioIntro[r].replace("{anchorCat}",i).replace("{events}",IIe(t)),u=((f=(p=a.categoryReading[t.categoryKey])==null?void 0:p[r])==null?void 0:f.replace("{name}",t.name[r]))??"",d=e==="anon-fashion"?24:32,m=a.recsRationale[r].replace("{name}",t.name[r]).replace("{cats}",l).replace("{mult}",MIe(t)).replace("{k}",$Ie(t,d));return[c,u,m].filter(Boolean).join(" ")}const RIe={pt:{header:"Personalização & Descoberta · i6RecSys",headerSubtitle:"Simule a jornada de recomendação em tempo real",pickScenarioTitle:"Escolha o cenário para simular",pickScenarioHint:"Selecione um contexto para iniciar a demo",userLogged:"Usuário logado",userAnon:"Usuário anônimo",verticalProducts:"Varejo · Produtos",verticalFashion:"Varejo · Moda",changeScenario:"Trocar cenário",backToCatalog:"â Voltar à vitrine",reasoningTitle:"Explicabilidade e raciocÃnio do modelo",reasoningSubtitle:"",reasoningIdle:"Aguardando produto",reasoningIdleHint:"Clique num produto à esquerda para o modelo começar",recsTitle:"Recomendações · também gostam",lookTitle:"Look completo recomendado",lookTotal:"Look completo por",rationaleLabel:"Por que estes itens",latencyLabel:"Latência",latencyHint:"abaixo da média de mercado",tapToExplore:"Clique num item para novo ciclo",objectiveLabel:"Objetivo",analyzing:"Analisandoâ¦",kpiTicketUplift:"Uplift no ticket",kpiCrossSell:"Propensão cross-sell",kpiConfidence:"Confiança"},en:{header:"Personalization & Discovery · i6RecSys",headerSubtitle:"Simulate the recommendation journey in real time",pickScenarioTitle:"Pick a scenario to simulate",pickScenarioHint:"Select a context to start the demo",userLogged:"Logged user",userAnon:"Anonymous user",verticalProducts:"Retail · Products",verticalFashion:"Retail · Fashion",changeScenario:"Change scenario",backToCatalog:"â Back to storefront",reasoningTitle:"Explainability and model reasoning",reasoningSubtitle:"",reasoningIdle:"Waiting for a product",reasoningIdleHint:"Tap a product on the left to start the model",recsTitle:"Recommendations · also viewed",lookTitle:"Recommended full outfit",lookTotal:"Complete look for",rationaleLabel:"Why these items",latencyLabel:"Latency",latencyHint:"below market average",tapToExplore:"Tap an item to run a new cycle",objectiveLabel:"Objective",analyzing:"Analyzingâ¦",kpiTicketUplift:"Ticket uplift",kpiCrossSell:"Cross-sell propensity",kpiConfidence:"Confidence"}},gd=(e,t)=>t==="pt"?`R$ ${e.toFixed(2).replace(".",",")}`:`$ ${e.toFixed(2)}`,DIe={"logged-products":{uplift:"+1.6Ã",crossSell:72,confidence:92},"logged-fashion":{uplift:"+1.8Ã",crossSell:74,confidence:90},"anon-products":{uplift:"+1.3Ã",crossSell:58,confidence:78},"anon-fashion":{uplift:"+1.4Ã",crossSell:61,confidence:76}},Yb=({label:e,value:t,highlight:n,trend:r})=>s.jsxs("div",{className:`rounded-lg border px-[1.8vmin] py-[1.5vmin] ${n?"border-[#F4845F]/50 bg-[#F4845F]/10":"border-white/10 bg-white/[0.03]"}`,children:[s.jsx("span",{className:"block text-[1.25vmin] tracking-[0.2em] uppercase font-semibold text-white/55 mb-[0.6vmin]",children:e}),s.jsxs("span",{className:`inline-flex items-center gap-[0.5vmin] text-[2.4vmin] font-bold ${n?"text-[#F4845F]":"text-white"}`,children:[r==="up"&&s.jsx(_p,{className:"w-[2vmin] h-[2vmin]"}),t]})]}),S5=({sku:e,lang:t,onClick:n,small:r})=>{const a=n?"button":"div";
3560return s.jsxs(a,{type:n?"button":void 0,onClick:n,className:`text-left rounded-xl border-2 transition-all bg-white/[0.03] border-white/10 ${n?"hover:border-[#F4845F]/60 hover:bg-[#F4845F]/[0.06] active:scale-[0.98]":""} ${r?"p-[1.1vmin]":"p-[1.6vmin]"}`,children:[s.jsx("div",{className:"aspect-[16/14] rounded-lg overflow-hidden bg-gradient-to-br from-white/10 to-white/[0.02] mb-[1vmin] flex items-center justify-center",children:s.jsx("img",{src:e.image,alt:"",loading:"lazy",className:"w-full h-full object-cover"})}),s.jsx("span",{className:`block ${r?"text-[1.05vmin]":"text-[1.3vmin]"} uppercase tracking-wider text-[#F4845F]/80 font-semibold mb-[0.3vmin]`,children:e.category[t]}),s.jsx("span",{className:`block ${r?"text-[1.35vmin]":"text-[1.65vmin]"} leading-tight text-white/90 font-semibold ${r?"min-h-[3vmin]":"min-h-[3.8vmin]"}`,children:e.name[t]}),s.jsx("span",{className:`block ${r?"text-[1.4vmin]":"text-[1.65vmin]"} text-white font-bold mt-[0.5vmin]`,children:gd(e.price,t)})]})},LIe=({lang:e})=>{const t=RIe[e],n=lx[e].results,[r,a]=S.useState("logged"),[i,o]=S.useState("products"),[l,c]=S.useState(null),[u,d]=S.useState(0),[m,p]=S.useState("list"),f=`${r}-${i}`,g=QD[f],h=TIe[i],v=S.useMemo(()=>!h||!l?null:h.skus.find(C=>C.id===l)??null,[h,l]),y=S.useMemo(()=>v?((18+Math.random()*22)/1e3).toFixed(2):"0.00",[l]);S.useEffect(()=>{if(m!=="training"||!g)return;d(0);const C=[];let E=0;return g.features.forEach((T,O)=>{E+=T.durationMs,C.push(setTimeout(()=>d(O+1),E))}),C.push(setTimeout(()=>p("pdp"),E+200)),()=>C.forEach(clearTimeout)},[m,g]);const x=C=>{c(C),d(0),p("training")},b=()=>{c(null),d(0),p("list")},w=(C,E)=>{a(C),o(E),c(null),d(0),p("list")};if(!g||!h)return null;const k=v?(i==="fashion"&&v.lookIds?v.lookIds:v.recIds).map(C=>h.skus.find(E=>E.id===C)).filter(Boolean):[],j=k.reduce((C,E)=>C+E.price,0)+((v==null?void 0:v.price)??0),A=v?FIe(f,v,k,e):"",P=DIe[f],_=[{v:"fashion",label:n.matrixFashion},{v:"products",label:n.matrixProducts}],N=[{u:"anon",label:t.userAnon,icon:s.jsx(i7,{className:"w-[2.2vmin] h-[2.2vmin] text-[#F4845F]"})},{u:"logged",label:t.userLogged,icon:s.jsx(o7,{className:"w-[2.2vmin] h-[2.2vmin] text-[#F4845F]"})}];return s.jsxs("div",{className:"relative rounded-3xl bg-gradient-to-br from-white/8 to-[#F4845F]/8 border border-[#F4845F]/30 p-[3vmin]",children:[s.jsx("div",{className:"flex items-center gap-[1.5vmin] mb-[2vmin]",children:s.jsxs("div",{children:[s.jsx("h4",{className:"text-[2.2vmin] font-bold text-white leading-tight",children:t.header}),s.jsx("p",{className:"text-[1.4vmin] text-white/60",children:t.headerSubtitle})]})}),s.jsx("span",{className:"block text-[1.6vmin] tracking-[0.25em] uppercase font-semibold text-[#F4845F] mb-[1.2vmin]",children:e==="pt"?"SELECIONE UMA CATEGORIA E TIPO DE CLIENTE":"SELECT A CATEGORY AND CUSTOMER TYPE"}),s.jsx("div",{className:"mb-[1.5vmin] grid grid-cols-2 gap-[1.2vmin]",children:_.map(C=>{const E=C.v==="fashion",T=E?"#F4845F":"#38BDF8",O=E?"text-[#F4845F]":"text-sky-300";return s.jsxs("div",{className:"flex items-center gap-[1.2vmin] rounded-2xl px-[1.4vmin] py-[0.9vmin] bg-white/[0.02] border border-white/5",children:[s.jsx("span",{className:`shrink-0 text-[1.35vmin] tracking-[0.22em] uppercase font-semibold ${O}`,style:{minWidth:"11vmin"},children:C.label}),s.jsx("div",{className:"flex flex-1 rounded-full p-[0.35vmin] bg-black/30 border border-white/10",role:"tablist",children:N.map(F=>{const D=r===F.u&&i===C.v;return s.jsx("button",{type:"button",role:"tab","aria-selected":D,onClick:()=>w(F.u,C.v),className:"flex-1 rounded-full px-[1.2vmin] py-[0.75vmin] text-[1.35vmin] font-medium tracking-wide transition-all duration-200 active:scale-[0.97]",style:D?{backgroundColor:T,color:"#0B1224",boxShadow:`0 0 0 1px ${T}, 0 4px 14px -4px ${T}80`}:{color:"rgba(255,255,255,0.85)",backgroundColor:"rgba(255,255,255,0.06)",boxShadow:`inset 0 0 0 1px ${T}55`},children:F.label},`${C.v}-${F.u}`)})})]},`row-${C.v}`)})}),s.jsxs("div",{className:"flex flex-col gap-[2vmin]",children:[s.jsx("div",{className:"rounded-2xl bg-[#0B1224] border border-white/10 overflow-hidden",children:s.jsxs("div",{className:"p-[2vmin]",children:[m==="list"&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex items-baseline justify-between mb-[1.5vmin]",children:s.jsxs("div",{children:[s.jsx("h5",{className:"text-[2vmin] font-bold text-white",children:h.title[e]}),s.jsx("p",{className:"text-[1.4vmin] text-white/60",children:h.subtitle[e]})]})}),s.jsx("div",{className:"grid grid-cols-3 gap-[1.2vmin]",children:h.skus.slice(0,6).map(C=>s.jsx(S5,{sku:C,lang:e,onClick:()=>x(C.id),small:!0},C.id))})]}),(m==="training"||m==="pdp")&&v&&s.jsxs("div",{className:"flex flex-col animate-fade-in",children:[i==="fashion"&&m==="pdp"?s.jsxs("div",{className:"grid grid-cols-[minmax(0,0.85fr)_minmax(0,1.7fr)] gap-[1.2vmin] items-stretch animate-fade-in",children:[s.jsx("div",{className:"rounded-2xl border-2 border-[#F4845F]/40 bg-white/[0.03] p-[1.6vmin] flex flex-col",children:s.jsxs("div",{className:"flex flex-col gap-[1vmin] items-center text-center w-full",children:[s.jsx("div",{className:"w-full aspect-square rounded-xl overflow-hidden bg-gradient-to-br from-white/10 to-white/[0.02]",children:s.jsx("img",{src:v.image,alt:"",className:"w-full h-full object-cover"})}),s.jsxs("div",{className:"w-full",children:[s.jsx("span",{className:"block text-[1.2vmin] uppercase tracking-wider text-[#F4845F]/80 font-semibold mb-[0.3vmin]",children:v.category[e]}),s.jsx("h5",{className:"text-[1.7vmin] leading-tight text-white font-bold mb-[0.5vmin]",children:v.name[e]}),s.jsx("span",{className:"block text-[2.2vmin] font-bold text-white leading-none",style:{textShadow:"0 0 20px rgba(244,132,95,0.4)"},children:gd(v.price,e)})]})]})}),s.jsxs("div",{className:"rounded-2xl border-2 border-[#F4845F]/40 bg-[#F4845F]/[0.06] p-[1.4vmin] flex flex-col",children:[s.jsxs("div",{className:"flex items-center justify-between mb-[0.8vmin]",children:[s.jsx("span",{className:"text-[1.35vmin] tracking-[0.22em] uppercase font-semibold text-[#F4845F]",children:t.lookTitle}),s.jsx("span",{className:"text-[1.2vmin] text-white/50",children:t.tapToExplore})]}),s.jsx("div",{className:"flex flex-col gap-[0.4vmin] flex-1",children:k.slice(0,3).map(C=>s.jsxs("button",{type:"button",onClick:()=>x(C.id),className:"w-full flex items-center gap-[1.2vmin] rounded-lg p-[0.4vmin] transition-all hover:bg-white/[0.05] active:scale-[0.99] text-left",children:[s.jsx("div",{className:"w-[5.5vmin] h-[5.5vmin] flex-shrink-0 rounded-md overflow-hidden bg-gradient-to-br from-white/10 to-white/[0.02]",children:s.jsx("img",{src:C.image,alt:"",className:"w-full h-full object-cover"})}),s.jsx("span",{className:"flex-1 min-w-0 text-[1.4vmin] leading-tight text-white/90 font-semibold truncate",children:C.name[e]}),s.jsx("span",{className:"flex-shrink-0 text-[1.5vmin] text-white font-bold tabular-nums",children:gd(C.price,e)})]},C.id))}),s.jsxs("div",{className:"mt-[0.6vmin] pt-[0.6vmin] border-t border-white/10 flex items-center justify-between",children:[s.jsx("span",{className:"text-[1.3vmin] text-white/80",children:t.lookTotal}),s.jsx("span",{className:"text-[1.8vmin] font-bold text-white tabular-nums",children:gd(j,e)})]})]})]}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"rounded-2xl border-2 border-[#F4845F]/40 bg-white/[0.03] p-[1.6vmin]",children:s.jsxs("div",{className:"flex gap-[1.5vmin] items-center",children:[s.jsx("div",{className:"w-[14vmin] h-[14vmin] flex-shrink-0 rounded-xl overflow-hidden bg-gradient-to-br from-white/10 to-white/[0.02]",children:s.jsx("img",{src:v.image,alt:"",className:"w-full h-full object-cover"})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("span",{className:"block text-[1.2vmin] uppercase tracking-wider text-[#F4845F]/80 font-semibold mb-[0.2vmin]",children:v.category[e]}),s.jsx("h5",{className:"text-[2vmin] leading-tight text-white font-bold mb-[0.4vmin]",children:v.name[e]}),s.jsx("span",{className:"block text-[2.4vmin] font-bold text-white leading-none",style:{textShadow:"0 0 20px rgba(244,132,95,0.4)"},children:gd(v.price,e)})]})]})}),m==="pdp"&&s.jsxs("div",{className:"mt-[1.5vmin] animate-fade-in",children:[s.jsxs("div",{className:"flex items-center justify-between mb-[0.8vmin]",children:[s.jsx("span",{className:"text-[1.35vmin] tracking-[0.22em] uppercase font-semibold text-[#F4845F]",children:t.recsTitle}),s.jsx("span",{className:"text-[1.2vmin] text-white/50",children:t.tapToExplore})]}),s.jsx("div",{className:"grid grid-cols-4 gap-[1vmin]",children:k.slice(0,4).map(C=>s.jsx(S5,{sku:C,lang:e,onClick:()=>x(C.id),small:!0},C.id))})]})]}),m==="pdp"&&s.jsxs("div",{className:"grid grid-cols-4 gap-[1vmin] mt-[1.5vmin] animate-fade-in items-stretch",children:[s.jsxs("button",{type:"button",onClick:b,className:_n("group gap-[1vmin] px-[1.5vmin] py-[1.8vmin] text-[1.55vmin] uppercase tracking-[0.14em]"),children:[s.jsx(Ws,{className:"w-[1.8vmin] h-[1.8vmin] transition-transform group-hover:-translate-x-[0.3vmin]",strokeWidth:2.5}),t.backToCatalog.replace(/^â\s*/,"")]}),s.jsx(Yb,{label:t.kpiTicketUplift,value:P.uplift,highlight:!0,trend:"up"}),s.jsx(Yb,{label:t.kpiCrossSell,value:`${P.crossSell}%`}),s.jsx(Yb,{label:t.kpiConfidence,value:`${P.confidence}%`})]})]})]})}),s.jsxs("div",{className:"rounded-2xl bg-[#0B1224] border border-white/10 p-[2vmin]",children:[s.jsx("div",{className:"flex items-center gap-[1.2vmin] mb-[1.4vmin]",children:s.jsxs("div",{children:[s.jsx("h4",{className:"text-[1.9vmin] font-bold text-white leading-tight",children:t.reasoningTitle}),t.reasoningSubtitle&&s.jsx("p",{className:"text-[1.35vmin] text-white/60",children:t.reasoningSubtitle})]})}),m==="list"?s.jsxs("div",{className:"flex items-center justify-center gap-[1.5vmin] py-[2vmin] text-center",children:[s.jsx("div",{className:"w-[5vmin] h-[5vmin] rounded-full border-2 border-dashed border-[#F4845F]/40 flex items-center justify-center",children:s.jsx(Un,{className:"w-[2.2vmin] h-[2.2vmin] text-[#F4845F]/60"})}),s.jsxs("div",{className:"text-left",children:[s.jsx("p",{className:"text-[1.7vmin] font-semibold text-white/80",children:t.reasoningIdle}),s.jsx("p",{className:"text-[1.3vmin] text-white/50",children:t.reasoningIdleHint})]})]}):s.jsxs(s.Fragment,{children:[m==="pdp"&&v&&s.jsxs("div",{className:"mb-[1.4vmin] rounded-xl border-2 border-[#F4845F]/60 bg-[#F4845F]/[0.08] px-[2vmin] py-[1.8vmin] animate-fade-in",children:[s.jsxs("div",{className:"flex items-center gap-[1vmin] mb-[0.8vmin]",children:[s.jsx(Un,{className:"w-[2.2vmin] h-[2.2vmin] text-[#F4845F]",strokeWidth:2.5}),s.jsx("span",{className:"text-[1.7vmin] tracking-[0.25em] uppercase font-bold text-[#F4845F]",children:t.rationaleLabel}),s.jsxs("span",{className:"ml-auto text-[1.15vmin] text-white/60 font-mono whitespace-nowrap",children:[t.latencyLabel,": ",y," s"]})]}),s.jsx("p",{className:"text-[2vmin] leading-relaxed text-white/95",children:A})]}),s.jsx("div",{className:"h-[2vmin] mb-[1vmin] flex items-center justify-center",children:u<g.features.length&&s.jsx("span",{className:"text-[1.2vmin] text-white/60 font-mono",children:g.features[u].microMetric[e]})}),s.jsxs("div",{className:"relative px-[2vmin] pb-[1vmin]",children:[s.jsx("div",{className:"absolute left-[3vmin] right-[3vmin] top-[1.9vmin] h-[0.3vmin] rounded-full bg-white/10"}),s.jsx("div",{className:"absolute left-[3vmin] top-[1.9vmin] h-[0.3vmin] rounded-full bg-[#F4845F] transition-all duration-500",style:{width:`calc((100% - 6vmin) * ${g.features.length>1?Math.min(u,g.features.length-1)/(g.features.length-1):0})`}}),s.jsx("div",{className:"relative grid",style:{gridTemplateColumns:`repeat(${g.features.length}, minmax(0,1fr))`},children:g.features.map((C,E)=>{const T=E<u?"done":E===u?"active":"idle";return s.jsxs("div",{className:"flex flex-col items-center gap-[0.8vmin] px-[0.5vmin]",children:[s.jsx("span",{className:`flex-shrink-0 w-[3.8vmin] h-[3.8vmin] rounded-full flex items-center justify-center text-[1.5vmin] font-bold border-2 transition-all ${T==="done"?"bg-[#F4845F] border-[#F4845F] text-white":T==="active"?"border-[#F4845F] text-[#F4845F] bg-[#F4845F]/15 animate-pulse":"border-white/25 text-white/50 bg-[#0B1224]"}`,children:T==="done"?s.jsx(ti,{className:"w-[1.8vmin] h-[1.8vmin]"}):E+1}),s.jsx("span",{className:`text-center text-[1.3vmin] leading-tight font-semibold ${T==="idle"?"text-white/45":"text-white/90"}`,children:C.label[e]}),s.jsx("span",{className:`text-center text-[1.1vmin] leading-tight font-mono ${T==="idle"?"text-white/30":"text-white/55"}`,children:C.microMetric[e]})]},E)})})]})]})]})]})]})},vh=[{id:"electronics",namePt:"Eletro portátil â linha A",nameEn:"Portable electronics â line A",categoryPt:"Eletrônicos",categoryEn:"Electronics",cagr:.18,seasonAmp:.55,seasonPeak:10,seasonProfile:[-.2,-.8,-.55,-.3,.1,-.25,.15,-.1,.35,.2,1,.75],promoMonths:[10,11,5],rupturedMonths:[10,22],accelLast:.28,channelMix:{digital:.71,physical:.29},base:4200,currentBias:"under",currentErrorPct:63.6,historicalAccuracyPct:36.4,meanErrorPct:61.8,stockoutPct:22.3,excessPct:6.4,i6ErrorPct:12.8,i6AccuracyPct:87.2,i6MeanErrorPct:13.5,i6StockoutPct:2.8,i6ExcessPct:2.1,accuratePastMonths:[3,15],promoNotePt:"Black Friday + Cyber Monday â pico esperado de +38% acima do baseline.",promoNoteEn:"Black Friday + Cyber Monday â expected +38% peak over baseline.",argumentPt
3560:"A tendência estrutural de +18% a.a. foi preservada, enquanto a sazonalidade de Black Friday e Natal foi isolada como pico próprio (com o calendário 2025, BF em 28/11) em vez de diluÃda na média. A esparsidade das rupturas de novembro foi tratada como dado censurado â não como queda de demanda â antes de o padrão ser aprendido.",argumentEn:"The structural +18% YoY trend was preserved, while Black Friday and Christmas seasonality was isolated as a peak of its own (using the 2025 calendar, BF on Nov 28) instead of being averaged out. Sparsity from November stockouts was handled as censored data â not as a demand drop â before the pattern was learned."},{id:"beverage",namePt:"Bebida sazonal â 2L",nameEn:"Seasonal beverage â 2L",categoryPt:"Bebidas",categoryEn:"Beverages",cagr:.08,seasonAmp:.42,seasonPeak:11,seasonProfile:[.85,.35,-.1,.15,-.55,-.9,-.6,-.2,.2,-.05,.55,1],promoMonths:[10,11],rupturedMonths:[4,16],accelLast:.14,channelMix:{digital:.32,physical:.68},base:12800,currentBias:"under",currentErrorPct:58.4,historicalAccuracyPct:42.8,meanErrorPct:57.2,stockoutPct:14.6,excessPct:11.9,i6ErrorPct:10.6,i6AccuracyPct:89.4,i6MeanErrorPct:11.2,i6StockoutPct:3.1,i6ExcessPct:3.6,accuratePastMonths:[8,19],promoNotePt:"Black Friday + campanha de verão â pico esperado de +18% sobre baseline.",promoNoteEn:"Black Friday + summer campaign â expected +18% peak over baseline.",argumentPt:"A tendência de +8% a.a. foi mantida sobre um Q4 forte, e a sazonalidade natural de dezembro foi separada da promo de nov/dez para não contaminar meses regulares. A esparsidade de maio/24 e maio/25 foi corrigida ao tratar a ruptura como demanda censurada (real ~2à o vendido).",argumentEn:"The +8% YoY trend was kept on top of a strong Q4, and December's natural seasonality was separated from the Nov/Dec promo to avoid contaminating regular months. Sparsity in May/24 and May/25 was corrected by treating the stockouts as censored demand (real ~2à sold)."},{id:"fashion",namePt:"Moda rápida â cápsula",nameEn:"Fast fashion â capsule",categoryPt:"Vestuário",categoryEn:"Apparel",cagr:.11,seasonAmp:.36,seasonPeak:5,seasonProfile:[-.25,.15,-.1,.45,1,.1,-.35,-.7,-.5,.2,.9,.25],promoMonths:[0,6],rupturedMonths:[8,20],accelLast:.18,channelMix:{digital:.58,physical:.42},base:5600,currentBias:"flat",currentErrorPct:60.3,historicalAccuracyPct:39.7,meanErrorPct:58.9,stockoutPct:17.2,excessPct:15.8,i6ErrorPct:9.3,i6AccuracyPct:90.7,i6MeanErrorPct:10.1,i6StockoutPct:3.4,i6ExcessPct:3.7,accuratePastMonths:[5,17],promoNotePt:"Liquidação de coleção â pico curto, sem projeção para o próximo drop.",promoNoteEn:"Collection clearance â short peak, no carryover to the next drop.",argumentPt:"O viés flat na tendência foi removido, e a sazonalidade dupla â inverno (jun/jul) e liquidação (jan/fev) â foi modelada como duas ondas independentes em vez de uma média única. A esparsidade por SKU foi tratada separadamente para ruptura e excesso, reconhecendo que faltam tamanhos-chave enquanto sobra cauda.",argumentEn:"The flat trend bias was removed, and the double seasonality â winter (Jun/Jul) and clearance (Jan/Feb) â was modeled as two independent waves instead of a single average. Sparsity at the SKU level was handled separately for stockout and excess, recognizing that key sizes run out while the tail piles up."}],zIe=["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],BIe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Zb=24,qIe=12,Xb=e=>{const t=Math.sin(e*12.9898)*43758.5453;return(t-Math.floor(t))*2-1},j5=(e,t,n,r)=>{const a=t==="digital"?e.channelMix.digital:t==="physical"?e.channelMix.physical:1,i=n==="sudeste"?.58:n==="sul"?.19:n==="nordeste"?.14:1,o=new Date,l=o.getFullYear(),c=o.getMonth(),u=Zb+qIe,d=[],m=Zb-1;for(let p=0;p<u;p++){const f=p-m,g=((c+f)%12+12)%12,h=l+Math.floor((c+f)/12),v=p<m,y=f/12,x=Math.pow(1+e.cagr,y+Zb/12),b=e.seasonProfile[g]??0,w=1+e.seasonAmp*b,k=e.promoMonths.includes(g)?.18:0,j=p>=m-2?e.accelLast*((p-(m-2))/6+.5):0,P=e.base*x*w*a*i*(1+k+j+Xb(p+e.base)*.05),_={key:`${h}-${String(g+1).padStart(2,"0")}`,labelPt:`${zIe[g]}/${String(h).slice(2)}`,labelEn:`${BIe[g]}/${String(h).slice(2)}`,history:null,currentFcst:null,i6Fcst:null,ciLow:null,ciHigh:null,trend:null,
3560season:null,promo:null,sparsityFix:null,hasPromo:e.promoMonths.includes(g)};if(v){const N=e.rupturedMonths.includes(p),C=e.accuratePastMonths.includes(p);_.history=Math.round(N?P*.15:P);const E=Xb(p+e.base+91),T=C?.035:.28+Math.abs(E)*.18,O=E>0?1:-1;_.currentFcst=Math.round(P*(1+O*T));const F=Xb(p+e.base+173),D=C?T+.022:.03+Math.abs(F)*.035,z=F>0?1:-1;_.i6Fcst=Math.round(P*(1+z*D))}else{const N=p-m;if(N>=r)continue;let C=1;e.currentBias==="under"?C=.83:e.currentBias==="over"&&(C=1.13);const E=1+e.seasonAmp*.55*b,T=e.base*x*E*a*i*C;_.currentFcst=Math.round(T*(1+k*.4));const O=P;_.i6Fcst=Math.round(O);const F=.06+.04*(N/r);_.ciLow=Math.round(O*(1-F)),_.ciHigh=Math.round(O*(1+F));const D=e.base*x*a*i,z=Math.max(e.seasonAmp,.14),R=D*z*b,B=D*k,I=e.rupturedMonths.length>0?D*.04:0;_.trend=Math.round(D),_.season=Math.round(R),_.promo=Math.round(B),_.sparsityFix=Math.round(I)}d.push(_)}return d},pi=[{labelPt:"Lendo histórico e variáveis comerciais",labelEn:"Reading history and commercial variables",microPt:"sell-in · sell-out · preço · promo · estoque · calendário · canal",microEn:"sell-in · sell-out · price · promo · stock · calendar · channel",durationMs:420},{labelPt:"Tratando esparsidade, outliers e perÃodos sem venda",labelEn:"Handling sparsity, outliers and no-sale periods",microPt:"ausência â ruptura â indisponibilidade de dados",microEn:"absence â stockout â missing data",durationMs:480},{labelPt:"Aprendendo a performance do PDV",labelEn:"Learning point-of-sale performance",microPt:"Giro, margem e ruptura sob comportamento contextual da loja.",microEn:"Turnover, margin and stockout under store contextual behavior.",durationMs:460},{labelPt:"Detectando tendência e sazonalidade",labelEn:"Detecting trend and seasonality",microPt:"ciclos · mudanças estruturais · efeitos recorrentes",microEn:"cycles · structural shifts · recurring effects",durationMs:460},{labelPt:"Selecionando o melhor comportamento preditivo por série",labelEn:"Selecting the best predictive behavior per series",microPt:"SKU à região à canal à loja à cliente",microEn:"SKU à region à channel à store à customer",durationMs:520},{labelPt:"Projetando demanda e intervalo de confiança",labelEn:"Projecting demand and confidence interval",microPt:"previsão granular para os próximos 12 meses",microEn:"granular forecast for the next 12 months",durationMs:380}],yh={pt:{objective:"OBJETIVO: EFICIÃNCIA DO SUPPLY",scenarioTitle:"Dashboard de planejamento",scenarioSubtitle:"Forecast atual · próximos 12 meses",reasoningTitle:"Explicabilidade e raciocÃnio do modelo",reasoningSubtitle:"",filters:{sku:"Produto",channel:"Canal",region:"Região",store:"Loja/PDV",horizon:"Horizonte",allStores:"Todas"},channelOptions:{total:"Total",digital:"Digital",physical:"FÃsico"},regionOptions:{total:"Total",sudeste:"Sudeste",sul:"Sul",nordeste:"Nordeste"},horizonOptions:{6:"6 meses",12:"12 meses"},kpi:{accuracy:"Acurácia",meanError:"Erro médio",stockout:"Ruptura",excess:"Excesso",volume:"Volume médio/mês"},compare:{before:"Atual",after:"i6",delta:"Î"},cta:"Executar forecast preditivo",running:"Rodando modelo...",legend:{history:"Histórico real",currentFcst:"Forecast atual",i6Fcst:"Forecast i6",ci:"Intervalo de confiança i6"},result:{title:"Forecast atual à Forecast i6",composition:"Composição da demanda projetada",compositionHint:"Clique em um mês para ver o breakdown",currentError:"Erro forecast atual",i6Error:"Erro backtest i6",projectedAcc:"Acurácia projetada",horizon:"Horizonte",trend:"Tendência",season:"Sazonalidade",promo:"Efeito promocional",promoNote:"Nota promocional",sparsityFix:"Correção de esparsidade",totalMonth:"Total do mês"},rationaleLabel:"POR QUE PROJETAMOS ESTA DEMANDA",latency:"Latência",latencyHint:"abaixo da média de mercado (~180 ms)",reset:"Restaurar Forecast Original"},en:{objective:"OBJECTIVE: SUPPLY EFFICIENCY",scenarioTitle:"Planning dashboard",scenarioSubtitle:"Current forecast · next 12 months",reasoningTitle:"Explainability and model reasoning",reasoningSubtitle:"",filters:{sku:"Product",channel:"Channel",region:"Region",
3560store:"Store/POS",horizon:"Horizon",allStores:"All"},channelOptions:{total:"Total",digital:"Digital",physical:"Physical"},regionOptions:{total:"Total",sudeste:"Southeast",sul:"South",nordeste:"Northeast"},horizonOptions:{6:"6 months",12:"12 months"},kpi:{accuracy:"Accuracy",meanError:"Mean error",stockout:"Stockout",excess:"Excess",volume:"Avg volume/month"},compare:{before:"Current",after:"i6",delta:"Î"},cta:"Run predictive forecast",running:"Running model...",legend:{history:"Actual history",currentFcst:"Current forecast",i6Fcst:"i6 forecast",ci:"i6 confidence interval"},result:{title:"Current forecast à i6 forecast",composition:"Projected demand composition",compositionHint:"Click a month to see the breakdown",currentError:"Current forecast error",i6Error:"i6 backtest error",projectedAcc:"Projected accuracy",horizon:"Horizon",trend:"Trend",season:"Seasonality",promo:"Promo effect",promoNote:"Promo note",sparsityFix:"Sparsity correction",totalMonth:"Month total"},rationaleLabel:"WHY WE PROJECTED THIS DEMAND",latency:"Latency",latencyHint:"below market average (~180 ms)",reset:"Restore Original Forecast"}},N2=(e,t)=>e.toLocaleString(t==="pt"?"pt-BR":"en-US",{maximumFractionDigits:0}),UIe=({lang:e})=>{const t=yh[e],[n,r]=S.useState(vh[0].id),[a,i]=S.useState("total"),[o,l]=S.useState("total"),[c,u]=S.useState(12),[d,m]=S.useState("planning"),[p,f]=S.useState(0),[g,h]=S.useState(null),v=S.useMemo(()=>vh.find(_=>_.id===n)??vh[0],[n]),y=S.useMemo(()=>j5(v,a,o,c),[v,a,o,c]),x=S.useMemo(()=>j5(v,"total","total",c),[v,c]),b=S.useMemo(()=>{const _=[];return x.forEach(N=>{N.history!==null&&_.push(N.history),N.currentFcst!==null&&_.push(N.currentFcst),N.i6Fcst!==null&&_.push(N.i6Fcst)}),Math.max(..._)*1.08},[x]),w=S.useMemo(()=>{const _=y.map(N=>N.history).filter(N=>N!==null);return _.length?Math.round(_.reduce((N,C)=>N+C,0)/_.length):0},[y]),k=S.useMemo(()=>d==="planning"?"0.00":((28+Math.random()*34)/1e3).toFixed(2),[d,v.id]);S.useEffect(()=>{h(null)},[n,a,o,c]),S.useEffect(()=>{if(d!=="running")return;f(0);const _=[];let N=0;return pi.forEach((C,E)=>{N+=C.durationMs,_.push(setTimeout(()=>f(E+1),N))}),_.push(setTimeout(()=>m("result"),N+240)),()=>_.forEach(clearTimeout)},[d]);const j=()=>{m("planning"),f(0),h(null)},A=y.filter(_=>_.i6Fcst!==null&&_.trend!==null),P=g?A.find(_=>_.key===g)??null:null;return s.jsxs("div",{className:"relative rounded-3xl bg-gradient-to-br from-white/8 to-[#F4845F]/8 border border-[#F4845F]/30 p-[3vmin]",children:[s.jsxs("div",{className:"flex flex-col gap-[2.4vmin]",children:[s.jsxs("div",{className:"rounded-2xl bg-[#0B1224] border border-white/10 overflow-hidden flex flex-col",children:[s.jsxs("div",{className:"flex items-baseline justify-between px-[2.5vmin] py-[1.6vmin] bg-white/[0.04] border-b border-white/10",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"text-[2.2vmin] font-bold text-white leading-tight",children:d==="result"?t.result.title:t.scenarioTitle}),s.jsx("p",{className:"text-[1.4vmin] text-white/60",children:d==="result"?`${c} ${e==="pt"?"meses":"months"}`:t.scenarioSubtitle})]}),s.jsx("span",{className:"text-[1.4vmin] tracking-[0.25em] uppercase font-semibold text-[#F4845F]",children:t.objective})]}),s.jsxs("div",{className:"p-[2.2vmin] flex flex-col gap-[1.5vmin]",children:[s.jsx(WIe,{lang:e,L:t,sku:v,channel:a,region:o,horizon:c,onSku:_=>r(_),onChannel:_=>i(_),onRegion:_=>l(_),onHorizon:_=>u(_),disabled:d==="running"}),s.jsx(VIe,{series:y,phase:d,lang:e,fixedMaxY:b}),d==="planning"&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-5 gap-[1vmin] mt-[0.5vmin]",children:[s.jsx(ad,{label:t.kpi.accuracy,value:`${v.historicalAccuracyPct.toFixed(1)}%`,warn:!0}),s.jsx(ad,{label:t.kpi.meanError,value:`${v.meanErrorPct.toFixed(1)}%`,warn:!0}),s.jsx(ad,{label:t.kpi.stockout,value:`${v.stockoutPct.toFixed(1)}%`,warn:!0}),s.jsx(ad,{label:t.kpi.excess,value:`${v.excessPct.toFixed(1)}%`,warn:!0}),s.jsx(ad,{label:t.kpi.volume,value:N2(w,e)})]}),s.jsx("button",{type:"button",onClick:()=>m("running"),className:"self-stretch min-h-[7vmin] rounded-2xl bg-[#F4845F] text-white font-bold text-[2vmin] tracking-wide hover:bg-[#F4845F]/90 active:scale-[0.99] transition-all shadow-[0_0_28px_rgba(244,132,95,0.35)]",children:t.cta})]}),d==="running"&&s.jsxs("div",{className:"rounded-2xl border border-[#F4845F]/40 bg-[#F4845F]/[0.08] px-[2vmin] py-[1.5vmin] flex items-center gap-[1.2vmin] animate-pulse",children:[s.jsx("span",{className:"w-[1.8vmin] h-[1.8vmin] rounded-full border-2 border-[#F4845F] border-t-transparent animate-spin"}),s.jsx("span",{className:"text-[1.6vmin] text-white/90 font-semibold",children:t.running})]}),d==="result"&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-4 gap-[1vmin]",children:[s.jsx(Bf,{label:t.kpi.accuracy,oldValue:v.historicalAccuracyPct,newValue:v.i6AccuracyPct,higherIsBetter:!0,L:t}),s.jsx(Bf,{label:t.kpi.meanError,oldValue:v.meanErrorPct,newValue:v.i6MeanErrorPct,L:t}),s.jsx(Bf,{label:t.kpi.stockout,oldValue:v.stockoutPct,newValue:v.i6StockoutPct,L:t}),s.jsx(Bf,{label:t.kpi.excess,oldValue:v.excessPct,newValue:v.i6ExcessPct,L:t})]}),P&&s.jsx(KIe,{point:P,sku:v,L:t,lang:e,onClose:()=>h(null)}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-baseline justify-between mb-[0.8vmin]",children:[s.jsx("span",{className:"text-[1.4vmin] font-semibold text-white/80 uppercase tracking-[0.2em]",children:t.result.composition}),s.jsx("span",{className:"text-[1.2vmin] text-white/50",children:t.result.compositionHint})]}),s.jsx(HIe,{series:y,lang:e,L:t,selectedKey:g,onSelect:_=>h(N=>N===_?null:_)})]})]})]})]}),s.jsxs("div",{className:"rounded-2xl bg-[#0B1224] border border-white/10 p-[2vmin]",children:[s.jsx("div",{className:"flex items-center gap-[1.2vmin] mb-[1.4vmin]",children:s.jsxs("div",{children:[s.jsx("h4",{className:"text-[1.9vmin] font-bold text-white leading-tight",children:t.reasoningTitle}),t.reasoningSubtitle&&s.jsx("p",{className:"text-[1.35vmin] text-white/60",children:t.reasoningSubtitle})]})}),d==="result"&&s.jsxs("div",{className:"kiosk-insight-card mb-[1.4vmin] rounded-xl border-2 border-[#F4845F]/60 bg-[#F4845F]/[0.08] px-[2vmin] py-[1.8vmin]",children:[s.jsxs("div",{className:"flex items-center gap-[1vmin] mb-[0.8vmin]",children:[s.jsx(Un,{className:"w-[2.2vmin] h-[2.2vmin] text-[#F4845F] kiosk-insight-sparkle",strokeWidth:2.5}),s.jsx("span",{className:"text-[1.7vmin] tracking-[0.25em] uppercase font-bold text-[#F4845F]",children:t.rationaleLabel}),s.jsxs("span",{className:"ml-auto text-[1.15vmin] text-white/60 font-mono whitespace-nowrap",children:[t.latency,": ",k," s"]})]}),s.jsx("p",{className:"text-[2vmin] leading-relaxed text-white/95",children:e==="pt"?v.argumentPt
3560:v.argumentEn})]}),s.jsx("div",{className:"h-[2vmin] mb-[1vmin] flex items-center justify-center",children:d==="running"&&p<pi.length&&s.jsx("span",{className:"text-[1.2vmin] text-white/60 font-mono",children:e==="pt"?pi[p].microPt:pi[p].microEn})}),s.jsxs("div",{className:"relative px-[2vmin] pb-[1vmin]",children:[s.jsx("div",{className:"absolute left-[3vmin] right-[3vmin] top-[1.9vmin] h-[0.3vmin] rounded-full bg-white/10"}),s.jsx("div",{className:"absolute left-[3vmin] top-[1.9vmin] h-[0.3vmin] rounded-full bg-[#F4845F] transition-all duration-500",style:{width:`calc((100% - 6vmin) * ${pi.length>1?Math.min(p,pi.length-1)/(pi.length-1):0})`}}),s.jsx("div",{className:"relative grid",style:{gridTemplateColumns:`repeat(${pi.length}, minmax(0,1fr))`},children:pi.map((_,N)=>{const C=d==="planning"?"idle":d==="running"?N<p?"done":N===p?"active":"idle":"done";return s.jsxs("div",{className:"flex flex-col items-center gap-[0.8vmin] px-[0.5vmin]",children:[s.jsx("span",{className:`flex-shrink-0 w-[3.8vmin] h-[3.8vmin] rounded-full flex items-center justify-center text-[1.5vmin] font-bold border-2 transition-all ${C==="done"?"bg-[#F4845F] border-[#F4845F] text-white":C==="active"?"border-[#F4845F] text-[#F4845F] bg-[#F4845F]/15 animate-pulse":"border-white/25 text-white/50 bg-[#0B1224]"}`,children:C==="done"?s.jsx(ti,{className:"w-[1.8vmin] h-[1.8vmin]"}):N+1}),s.jsx("span",{className:`text-center text-[1.3vmin] leading-tight font-semibold ${C==="idle"?"text-white/45":"text-white/90"}`,children:e==="pt"?_.labelPt:_.labelEn}),s.jsx("span",{className:`text-center text-[1.1vmin] leading-tight font-mono ${C==="idle"?"text-white/30":"text-white/55"}`,children:e==="pt"?_.microPt:_.microEn})]},N)})})]}),d==="result"&&s.jsx("button",{type:"button",onClick:j,className:_n("mt-[1.4vmin] w-full min-h-[6vmin] text-[1.6vmin]"),children:t.reset})]})]}),s.jsx("style",{children:` 3561 @keyframes kiosk-progress { from { width: 0% } to { width: 100% } } 3562 @keyframes kiosk-insight-in { 3563 0% { opacity: 0; transform: translateY(12px) scale(.94); } 3564 100% { opacity: 1; transform: translateY(0) scale(1); } 3565 } 3566 @keyframes kiosk-insight-glow { 3567 0%, 100% { box-shadow: 0 0 0 0 rgba(244,132,95,.35), 0 0 24px rgba(244,132,95,.25); border-color: rgba(244,132,95,.55); } 3568 50% { box-shadow: 0 0 0 6px rgba(244,132,95,.10), 0 0 40px rgba(244,132,95,.60); border-color: rgba(244,132,95,1); } 3569 } 3570 @keyframes kiosk-insight-sparkle { 3571 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 3572 50% { transform: scale(1.25) rotate(15deg); opacity: .85; } 3573 } 3574 .kiosk-insight-card { 3575 animation: kiosk-insight-in .5s ease-out .6s both, kiosk-insight-glow 2.4s ease-in-out .6s infinite; 3576 } 3577 .kiosk-insight-sparkle { animation: kiosk-insight-sparkle 1.8s ease-in-out infinite; } 3578 `})]})},WIe=({lang:e,L:t,sku:n,channel:r,region:a,horizon:i,onSku:o,onChannel:l,onRegion:c,onHorizon:u,disabled:d})=>s.jsxs("div",{className:"flex flex-col gap-[0.9vmin]",children:[s.jsx(Jb,{label:t.filters.sku,options:vh.map(m=>({id:m.id,label:e==="pt"?m.namePt:m.nameEn})),selectedId:n.id,onSelect:o,disabled:d}),s.jsxs("div",{className:"grid grid-cols-2 gap-[1vmin]",children:[s.jsx(Jb,{label:t.filters.channel,options:["total","digital","physical"].map(m=>({id:m,label:t.channelOptions[m]})),selectedId:r,onSelect:m=>l(m),disabled:d}),s.jsx(Jb,{label:t.filters.region,options:["total","sudeste","sul"].map(m=>({id:m,label:t.regionOptions[m]})),selectedId:a,onSelect:m=>c(m),disabled:d})]})]}),Jb=({label:e,options:t,selectedId:n,onSelect:r,disabled:a})=>s.jsxs("div",{className:"flex items-center gap-[1vmin]",children:[s.jsx("span",{className:"text-[1.15vmin] tracking-[0.2em] uppercase font-semibold text-[#F4845F] min-w-[8vmin]",children:e}),s.jsx("div",{className:"flex flex-wrap gap-[0.6vmin] flex-1",children:t.map(i=>{const o=i.id===n;return s.jsx("button",{type:"button",disabled:a,onClick:()=>r(i.id),className:`min-h-[4.6vmin] px-[1.6vmin] py-[0.9vmin] rounded-xl border-2 text-[1.35vmin] font-semibold transition active:scale-[0.97] ${o?"border-[#F4845F] bg-[#F4845F]/15 text-white shadow-[0_0_12px_rgba(244,132,95,0.25)]":"border-white/15 bg-white/[0.03] text-white/80 hover:border-[#F4845F]/60 hover:bg-[#F4845F]/[0.06]"} ${a?"opacity-50 cursor-not-allowed":""}`,children:i.label},i.id)})})]}),VIe=({series:e,phase:t,lang:n,fixedMaxY:r})=>{const d=r,m=0,p=e.length,f=k=>34+k/(p-1)*516,g=k=>14+(1-(k-m)/(d-m))*198,h=k=>{let j="",A=!1;return e.forEach((P,_)=>{const N=k(P);if(N===null){A=!1;return}j+=`${A?"L":"M"} ${f(_)} ${g(N)} `,A=!0}),j},v=h(k=>k.history),y=h(k=>
3578k.currentFcst),x=t==="result"?h(k=>k.i6Fcst):"",b=[0,.25,.5,.75,1].map(k=>m+(d-m)*k),w=e.map((k,j)=>({i:j,label:n==="pt"?k.labelPt:k.labelEn})).filter((k,j)=>j%3===0);return s.jsxs("div",{className:"rounded-xl bg-white/[0.02] border border-white/10 p-[1.4vmin]",children:[s.jsxs("svg",{viewBox:"0 0 560 240",preserveAspectRatio:"none",className:"w-full block",style:{width:"100%",height:131},children:[b.map((k,j)=>s.jsxs("g",{children:[s.jsx("line",{x1:34,x2:550,y1:g(k),y2:g(k),stroke:"rgba(255,255,255,0.08)",strokeDasharray:"2 3"}),s.jsx("text",{x:30,y:g(k)+3,textAnchor:"end",fontSize:"8",fill:"rgba(255,255,255,0.4)",children:k>=1e3?`${(k/1e3).toFixed(0)}k`:k.toFixed(0)})]},j)),s.jsx("path",{d:v,fill:"none",stroke:"rgba(255,255,255,0.85)",strokeWidth:"1.6"}),s.jsx("path",{d:y,fill:"none",stroke:"rgba(255,255,255,0.5)",strokeWidth:"1.4",strokeDasharray:"4 3"}),x&&s.jsx("path",{d:x,fill:"none",stroke:"#F4845F",strokeWidth:"2"}),w.map(k=>s.jsx("text",{x:f(k.i),y:232,textAnchor:"middle",fontSize:"7.5",fill:"rgba(255,255,255,0.5)",children:k.label},k.i))]}),s.jsxs("div",{className:"flex flex-wrap gap-[1.4vmin] mt-[0.8vmin] text-[1.15vmin] text-white/70",children:[s.jsx(Bd,{color:"rgba(255,255,255,0.85)",label:yh[n].legend.history}),s.jsx(Bd,{color:"rgba(255,255,255,0.5)",dashed:!0,label:yh[n].legend.currentFcst}),t==="result"&&s.jsx(Bd,{color:"#F4845F",label:yh[n].legend.i6Fcst})]})]})},Bd=({color:e,label:t,dashed:n,square:r})=>s.jsxs("span",{className:"inline-flex items-center gap-[0.5vmin]",children:[r?s.jsx("span",{style:{background:e},className:"w-[1.6vmin] h-[0.9vmin] rounded-sm inline-block"}):s.jsx("span",{className:"inline-block w-[1.8vmin] h-[0.35vmin] rounded-full",style:{background:e,borderTop:n?`2px dashed ${e}`:void 0,height:n?0:void 0}}),s.jsx("span",{children:t})]}),HIe=({series:e,L:t,lang:n,selectedKey:r,onSelect:a})=>{const i=e.filter(T=>T.trend!==null),o=620,l=220,c=44,u=14,d=18,m=34,p=l-d-m,g=i.map(T=>T.trend??0),h=i.map(T=>T.season??0),v=Math.max(...g,...h.map(T=>Math.max(0,T)),1),y=Math.min(0,...h.map(T=>Math.min(0,T))),x=v*1.15,b=y*1.2,w=x-b,k=(o-c-u)/i.length,j={trend:"#F4845F",season:"rgba(255,255,255,0.85)",promo:"#F4845F",zero:"rgba(255,255,255,0.25)"},A=T=>d+(1-(T-b)/w)*p,P=A(0),_=T=>c+k*T+k/2,N=g.map((T,O)=>`${O===0?"M":"L"} ${_(O)} ${A(T)}`).join(" "),C=h.map((T,O)=>`${O===0?"M":"L"} ${_(O)} ${A(T)}`).join(" "),E=[x,x*.5,0,b*.5,b].filter((T,O,F)=>F.indexOf(T)===O&&T>=b&&T<=x);return s.jsxs("div",{className:"rounded-xl bg-white/[0.02] border border-white/10 p-[1.4vmin]",children:[s.jsxs("svg",{viewBox:`0 0 ${o} ${l}`,preserveAspectRatio:"none",className:"w-full block",style:{width:"100%",height:116},children:[E.map((T,O)=>s.jsxs("g",{children:[s.jsx("line",{x1:c,x2:o-u,y1:A(T),y2:A(T),stroke:T===0?j.zero:"rgba(255,255,255,0.06)",strokeDasharray:T===0?void 0:"2 3",strokeWidth:1}),s.jsx("text",{x:c-6,y:A(T)+3,textAnchor:"end",fontSize:"8",fill:"rgba(255,255,255,0.45)",children:T===0?"0":`${T>0?"+":""}${Math.abs(T)>=1e3?`${(T/1e3).toFixed(0)}k`:T.toFixed(0)}`})]},O)),s.jsx("line",{x1:c,x2:o-u,y1:P,y2:P,stroke:j.zero,strokeWidth:1}),s.jsx("path",{d:N,fill:"none",stroke:j.trend,strokeWidth:2.2,strokeLinejoin:"round",strokeLinecap:"round",style:{filter:"drop-shadow(0 1px 3px rgba(244,132,95,0.35))"}}),s.jsx("path",{d:C,fill:"none",stroke:j.season,strokeWidth:1.8,strokeLinejoin:"round",strokeLinecap:"round"}),h.map((T,O)=>s.jsx("circle",{cx:_(O),cy:A(T),r:2.4,fill:j.season,style:{pointerEvents:"none"}},`season-mk-${O}`)),i.map((T,O)=>{if(!T.hasPromo)return null;const F=_(O),D=A(g[O])-10;return s.jsxs("g",{style:{pointerEvents:"none"},children:[s.jsx("circle",{cx:F,cy:D,r:5,fill:j.promo,stroke:"#0B1224",strokeWidth:1.4}),s.jsx("circle",{cx:F,cy:D,r:2.2,fill:"#fff"})]},`promo-${T.key}`)}),i.map((T,O)=>{const F=_(O),D=r===T.key;return s.jsxs("g",{className:"cursor-pointer",onClick:()=>a(T.key),children:[D&&s.jsx("rect",{x:F-k/2+2,y:d,width:k-4,height:p,fill:"rgba(244,132,95,0.10)",stroke:"#F4845F",strokeWidth:1.6,rx:4}),s.jsx("rect",{x:F-k/2,y:d,width:k,height:p+m-6,fill:"transparent"}),s.jsx("text",{x:F,y:l-10,textAnchor:"middle",fontSize:D?10.5:9,fill:D?"#F4845F":"rgba(255,255,255,0.6)",fontWeight:D?"bold":"normal",style:{pointerEvents:"none"},children:(n==="pt"?T.labelPt:T.labelEn).split("/")[0]})]},`hit-${T.key}`)})]}),s.jsxs("div",{className:"flex flex-wrap gap-[1.4vmin] mt-[0.8vmin] text-[1.2vmin] text-white/75",children:[s.jsx(Bd,{color:j.trend,label:t.result.trend}),s.jsx(Bd,{color:j.season,dashed:!0,label:t.result.season}),s.jsxs("span",{className:"inline-flex items-center gap-[0.5vmin]",children:[s.jsx("span",{className:"inline-block w-[1.4vmin] h-[1.4vmin] rounded-full",style:{background:j.promo,border:"1.5px solid #0B1224",boxShadow:"0 0 0 1px rgba(255,255,255,0.15)"}}),s.jsx("span",{children:t.result.promo})]})]})]})},KIe=({point:e,sku:t,L:n,lang:r,onClose:a})=>{const i=[{label:n.result.trend,value:e.trend??0},{label:n.result.season,value:e.season??0}],o=i.reduce((c,u)=>c+Math.max(0,u.value),0),l=e.hasPromo?r==="pt"?t.promoNotePt:t.promoNoteEn:null;return s.jsxs("div",{className:"rounded-xl border border-[#F4845F]/50 bg-[#F4845F]/[0.08] p-[1.4vmin] animate-fade-in",children:[s.jsxs("div",{className:"flex items-center justify-between mb-[0.8vmin]",children:[s.jsxs("span",{className:"text-[1.5vmin] font-bold text-white",children:[r==="pt"?e.labelPt:e.labelEn,s.jsxs("span",{className:"text-white/60 font-normal ml-[0.6vmin]",children:["· ",n.result.totalMonth,": ",N2(e.i6Fcst??0,r)]})]}),s.jsx("button",{type:"button",onClick:a,className:"text-[1.2vmin] text-white/60 hover:text-white uppercase tracking-wider",children:"â"})]}),s.jsx("div",{className:"grid grid-cols-2 gap-[0.6vmin]",children:i.map(c=>{const u=o>0?Math.max(0,c.value)/o*100:0;return s.jsxs("div",{className:"rounded-lg bg-white/[0.03] border border-white/10 p-[0.8vmin]",children:[s.jsx("span",{className:"block text-[0.95vmin] tracking-[0.15em] uppercase text-[#F4845F]/80 font-semibold mb-[0.2vmin] leading-tight",children:c.label}),s.jsxs("span",{className:"block text-[1.5vmin] font-bold text-white leading-none",children:[c.value>=0?"+":"",N2(c.value,r)]}),s.jsxs("span",{className:"block text-[1vmin] text-white/50 mt-[0.2vmin]",children:[u.toFixed(1),"%"]})]},c.label)})}),l&&s.jsxs("div",{className:"mt-[0.8vmin] rounded-lg bg-[#F4845F]/[0.15] border border-[#F4845F]/50 p-[0.9vmin]",children:[s.jsxs("span",{className:"block text-[0.95vmin] tracking-[0.18em] uppercase text-[#F4845F] font-bold mb-[0.3vmin]",children:["â
",n.result.promoNote]}),s.jsx("span",{className:"block text-[1.25vmin] text-white/90 leading-snug",children:l})]})]})},ad=({label:e,value:t,warn:n,highlight:r})=>s.jsxs("div",{className:`rounded-lg p-[1vmin] border ${r?"bg-[#F4845F]/10 border-[#F4845F]/50":n?"bg-white/[0.03] border-white/15":"bg-white/[0.03] border-white/10"}`,children:[s.jsx("span",{className:"block text-[1.05vmin] tracking-[0.18em] uppercase font-semibold text-[#F4845F] mb-[0.2vmin] leading-tight",children:e}),s.jsx("span",{className:`block text-[2vmin] font-bold leading-none ${n?"text-white/90":"text-[#F4845F]"}`,children:t})]}),Bf=({label:e,oldValue:t,newValue:n,higherIsBetter:r,L:a})=>{const i=r?(n-t)/Math.max(.01,t)*100:(t-n)/Math.max(.01,t)*100,o=i>0,l=o?r?"+":"â":r?"â":"+";return s.jsxs("div",{className:"rounded-lg px-[1vmin] py-[0.5vmin] border bg-white/[0.03] border-[#F4845F]/30",children:[s.jsx("span",{className:"block text-[1.05vmin] tracking-[0.18em] uppercase font-semibold text-[#F4845F] mb-[0.2vmin] leading-tight",children:e}),s.jsxs("div",{className:"flex items-baseline gap-[0.5vmin] whitespace-nowrap",children:[s.jsxs("span",{className:"text-[1.2vmin] text-white/40 line-through leading-none",children:[t.toFixed(1),"%"]}),s.jsxs("span",{className:"text-[1.7vmin] font-bold text-[#F4845F] leading-none",children:[n.toFixed(1),"%"]}),s.jsxs("span",{className:`text-[1.1vmin] font-bold leading-none ${o?"text-emerald-400":"text-red-400"}`,children:["[",l,Math.abs(i).toFixed(0),"%]"]})]})]})},C2=[{id:"whatsapp",labelPt:"WhatsApp",labelEn:"WhatsApp",short:"WA"},{id:"email",labelPt:"E-mail",labelEn:"Email",short:"E"},{id:"push",labelPt:"Push",labelEn:"Push",short:"P"},{id:"sms",labelPt:"SMS",labelEn:"SMS",short:"S"},{id:"phone",labelPt:"Telefone",labelEn:"Phone",short:"T"}],qd=(e,t)=>{var n,r;return(t==="pt"?(n=C2.find(a=>a.id===e))==null?void 0:n.labelPt:(r=C2.find(a=>a.id===e))==null?void 0:r.labelEn)??e},qf=[{id:"kit-cuidados",namePt:"Kit Cuidados Premium",nameEn:"Premium Care Kit",categoryPt:"Higiene & Beleza",categoryEn:"Personal Care & Beauty",audienceTotal:62400,baseConversion:8.4,bestChannel:"whatsapp",argumentsPt:["Clientes com aumento de 42% na frequência de compra da categoria nos últimos 30 dias e 3à mais engajamento com push segmentado.","Base com recompra de dermocosméticos crescendo 38% no último trimestre e resposta 2,4à maior a WhatsApp que a média da loja.","Clientes parecidos com quem converteu no último lançamento â 74% deles compraram na primeira semana da campanha.","Público concentrado nas lojas com maior giro da categoria e histórico de resposta rápida a ofertas de trade-up.","Recorte exclui quem foi impactado nos últimos 14 dias â reforça só quem responde bem a WhatsApp sem saturação.","Regiões com maior densidade de compradoras da categoria e picos de tráfego em lojas premium nos fins de semana."],argumentsEn:["Customers with a 42% increase in category purchase frequency over the last 30 days and 3à more engagement with segmented push.","Base with dermocosmetics repurchase growing 38% last quarter and 2.4à higher response to WhatsApp than the store average.","Customers similar to those who converted in the last launch â 74% of them purchased in the campaign's first week.","Audience concentrated in stores with the highest category turnover and a history of fast response to trade-up offers.","Selection excludes anyone contacted in the last 14 days â reinfor
3578ces only those who respond well to WhatsApp without saturation.","Regions with the highest density of category buyers and traffic peaks in premium stores on weekends."]},{id:"bebidas-sazonais",namePt:"Linha de Bebidas Sazonais",nameEn:"Seasonal Beverage Line",categoryPt:"Varejo Alimentar",categoryEn:"Grocery Retail",audienceTotal:84900,baseConversion:6.1,bestChannel:"push",argumentsPt:["Regiões com previsão de calor acima da média nos próximos 7 dias concentram 61% do consumo histórico da categoria â janela alinhada ao clima.","PDVs com estoque saudável e giro semanal crescente nas últimas 4 semanas â sem risco de ruptura após a ativação.","Clientes com compra da categoria em janela inferior a 14 dias respondem 2,6à mais a push que a base geral.","Base parecida com quem converteu em campanhas sazonais anteriores â mesmo perfil de frequência e ticket em bebidas.","Feriado prolongado na próxima semana em regiões-chave â histórico mostra aumento de 1,8à nas compras de combos."],argumentsEn:["Regions with above-average heat forecast for the next 7 days account for 61% of the category's historical consumption â a window aligned with the weather.","Stores with healthy stock and growing weekly turnover over the last 4 weeks â no stockout risk after the activation.","Customers who bought in the category within the last 14 days respond 2.6à more to push than the general base.","Base similar to those who converted in previous seasonal campaigns â same frequency and ticket profile in beverages.","Extended holiday next week in key regions â history shows a 1.8à increase in combo purchases."]},{id:"eletroportatil",namePt:"Eletroportátil de Cozinha",nameEn:"Kitchen Small Appliance",categoryPt:"Bens Duráveis",categoryEn:"Durable Goods",audienceTotal:41200,baseConversion:4.7,bestChannel:"email",argumentsPt:["Compradores de utensÃlios de cozinha nos últimos 60 dias com abertura de e-mail 3,1à acima da média â comportamento tÃpico de quem está completando a cozinha.","Clientes com ticket médio 2,1à superior à base geral e histórico de compra de bens duráveis com parcelamento.","Base parecida com quem comprou eletroportátil na última safra â mesma faixa de renda, mesma resposta a e-mail com prova social.",'Público com visitas recentes à vitrine de "casa & cozinha" e listas de desejos ativas há menos de 30 dias.',"Regiões metropolitanas com maior densidade de mudanças recentes â perfil clássico de reposição de eletroportáteis."],argumentsEn:["Buyers of kitchenware in the last 60 days with email open rates 3.1à above average â typical behavior of someone completing their kitchen.","Customers with average ticket 2.1à higher than the general base and a history of financed durable-goods purchases.","Base similar to those who bought a small appliance last season â same income bracket, same response to email with social proof.",'Audience with recent visits to the "home & kitchen" showcase and active wish lists less than 30 days old.',"Metro regions with a higher density of recent moves â a classic profile for appliance replacement."]},{id:"colecao-moda",namePt:"Coleção Moda Nova Temporada",nameEn:"New Season Fashion Collection",categoryPt:"Moda & Vestuário",categoryEn:"Fashion & Apparel",audienceTotal:96700,baseConversion:7.2,bestChannel:"push",argumentsPt:["Clientes parecidos com quem comprou na última coleção â mesmo estilo, mesma frequência â 71% converteram na campanha anterior.","Base com compras em moda a cada 45 dias em média e engajamento crescente com conteúdo de novidades no app.","Mudança de estação nas próximas 2 semanas em regiões-alvo â histórico mostra pico de 2,2à nas compras de coleção nova.","Público com alta resposta a push nos últimos 30 dias e adesão frequente a combos completos (peças por pedido +1,6Ã).","Recorte exclui clientes com devolução recente e reforça lojas com maior conversão em lançamentos anteriores."],argumentsEn:["Customers similar to those who bought in the last collection â same style, same frequency â 71% converted in the previous campaign.","Base with fas
3578hion purchases every 45 days on average and growing engagement with new-arrival content in the app.","Season change in the next 2 weeks in target regions â history shows a 2.2à spike in new-collection purchases.","Audience with high push response in the last 30 days and frequent adoption of full combos (items per order +1.6Ã).","Selection excludes customers with recent returns and reinforces stores with higher conversion in previous launches."]},{id:"cartao-fidelidade",namePt:"Cartão Fidelidade Premium",nameEn:"Premium Loyalty Card",categoryPt:"Financeiro / Loyalty",categoryEn:"Financial / Loyalty",audienceTotal:28500,baseConversion:5.3,bestChannel:"whatsapp",argumentsPt:["Base que já usa o programa de pontos 2à por mês e concentra compras nas lojas com maior ticket â perfil natural de upgrade.","Clientes com engajamento crescente em benefÃcios exclusivos nos últimos 90 dias e alta resposta a WhatsApp que push.","Público parecido com quem fez upgrade de cartão na safra anterior â mesma frequência de compra e mesma faixa de gasto mensal.","Regiões com maior densidade de clientes fiéis e histórico positivo de resposta a ofertas de benefÃcios ancorados.","Recorte prioriza quem responde a WhatsApp em janela de 48h â comportamento tÃpico de decisão rápida em ofertas de valor."],argumentsEn:["Base that already uses the points program 2à a month and concentrates purchases in the highest-ticket stores â a natural upgrade profile.","Customers with growing engagement in exclusive benefits over the last 90 days and higher response to WhatsApp than push.","Audience similar to those who upgraded their card last season â same purchase frequency and same monthly spend range.","Regions with a higher density of loyal customers and a positive history of response to benefit-anchored offers.","Selection prioritizes those who respond to WhatsApp within a 48h window â typical fast-decision behavior on value offers."]},{id:"seguro-garantia",namePt:"Seguro Extensão de Garantia",nameEn:"Extended Warranty Insurance",categoryPt:"Financeiro / Cross-sell",categoryEn:"Financial / Cross-sell",audienceTotal:33800,baseConversion:9.6,bestChannel:"phone",argumentsPt:["Clientes que compraram eletroportátil ou eletrônico nos últimos 30 dias â janela em que a decisão de proteger o produto é 4à mais aceita.","Base com histórico de atender chamadas comerciais e conversão alta em produtos financeiros ancorados a uma compra recente.","Público parecido com quem contratou garantia na safra anterior â mesmo perfil de ticket e mesma janela pós-compra.","Compradores em regiões com maior sinistralidade histórica de eletroportáteis â sensibilidade natural à proteção do produto.","Recorte prioriza clientes sem contato comercial nos últimos 14 dias â pressão baixa aumenta 1,9à a taxa de atendimento."],argumentsEn:["Customers who bought a small appliance or electronics in the last 30 days â a window in which the decision to protect the product is 4à more accepted.","Base with a history of answering sales calls and high conversion on financial products anchored to a recent purchase.","Audience similar to those who bought a warranty last season â same ticket profile and same post-purchase window.","Buyers in regions with higher historical claim rates for small appliances â natural sensitivity to product protection.","Selection prioritizes customers with no sales contact in the last 14 days â low pressure increases the answer rate by 1.9Ã."]}],fi=[{labelPt:"Lendo comportamento e histórico dos clientes",labelEn:"Reading customer behavior and history",microPt:"Compras, interações, recência, frequência e resposta a campanhas.",microEn:"Purchases, interactions, recency, frequency and campaign response.",durationMs:620},{labelPt:"Calculando propensão por cliente e produto",labelEn:"Calculating propensity per customer and product",microPt:"Estimando a probabilidade de cada cliente contratar a oferta selecionada.",microEn:"Estimating the probability of each customer taking the selected offer.",durationMs:780},{labelPt:"Identificando o canal de maior resposta",labelEn:"Identifying the highest-response channel",microPt:"Comparando WhatsApp, e-mail, push, SMS e telefone.",microEn:"Comparing WhatsApp, email, push, SMS and phone.",durationMs:540},{labelPt:"Aplicando elegibilidade e pressão comercial",labelEn:"Applying eligibility and contact pressure rules",microPt:"Consentimento, frequência de contato, restrições e campanhas recentes.",microEn:"Consent, contact frequency, restrictions and recent campaigns.",durationMs:660},{labelPt:"Priorizando audiência e régua de ativação",labelEn:"Prioritizing audience and activation cadence",microPt:"Ordenando clientes por potencial de conversão e eficiência de abordagem.",microEn:"Ranking customers by conversion potential and outreach efficie
3578ncy.",durationMs:520}],GIe={active90:.42,recurring:.28,crossSell:.34,full:1},QIe={"7d":.9,"14d":1,"30d":1.15},YIe=(e,t)=>{const n=[],r=a=>{n.includes(a)||n.push(a)};return t.includes(e.bestChannel)&&r(e.bestChannel),t.forEach(r),n.length||r(e.bestChannel),n},ZIe=(e,t,n,r,a)=>{const i=Math.round(e.audienceTotal*GIe[t]*QIe[n]),o=.16,l=.28,c=.34,u=YIe(e,r),d=(P,_)=>{const N=Math.min(_.length,3);if(N<=1)return[{channel:_[0],clients:P}];const E=(N===2?[.6,.4]:[.5,.3,.2]).slice(0,N).map(O=>Math.round(P*O)),T=P-E.reduce((O,F)=>O+F,0);return E[0]+=T,E.map((O,F)=>({channel:_[F],clients:O}))},m=Math.round(i*o),p=Math.round(i*l),f=Math.round(i*c),g=(a*31+e.baseConversion*17+r.length*7)%1e3,h=(P,_,N)=>{const C=(g*9301+N*49297)%233280/233280;return Math.round((P+C*(_-P))*10)/10},v=[{tier:"high",clients:m,propensityPct:h(83,92,11),channels:d(m,u)},{tier:"medium",clients:p,propensityPct:h(55,68,23),channels:d(p,u)},{tier:"future",clients:f,propensityPct:h(28,40,37),channels:d(f,u)}],y=v[0].clients+v[1].clients,x=(e.baseConversion*13+a*7)%100,b=Number((30+x/100*10+(r.length>=3?.8:0)).toFixed(1)),w=u[0],k=n==="7d"?"Próximas 48h":n==="14d"?"Próximos 5 dias":"Próximos 10 dias",j=n==="7d"?"Next 48h":n==="14d"?"Next 5 days":"Next 10 days",A={id:"CLI-"+(1e5+Math.floor(a*137+e.baseConversion*11)),namePt:"Cliente exemplo",nameEn:"Sample customer",topProductPt:e.namePt,topProductEn:e.nameEn,channel:w,momentPt:k,momentEn:j,factorsPt:[`Recência de compra em ${e.categoryPt.toLowerCase()} abaixo de 21 dias`,`Engajamento 3à acima da média com ofertas no canal ${qd(w,"pt")}`],factorsEn:[`Purchase recency in ${e.categoryEn.toLowerCase()} under 21 days`,`Engagement 3à above average with offers on the ${qd(w,"en")} channel`]};return{tiers:v,recommendedAudience:y,conversionPct:b,primaryChannel:w,pressurePt:"2 contatos em 7 dias",pressureEn:"2 contacts in 7 days",argumentPt:e.argumentsPt[a%e.argumentsPt.length],argumentEn:e.argumentsEn[a%e.argumentsEn.length],drill:A}},XIe={pt:{objective:"OBJETIVO: ENGAJAMENTO E CONVERSÃO",crm:{title:"CRM · Nova campanha",subtitle:"Configure a oferta e o público disponÃvel",product:"ESCOLHA UM PRODUTO OU OFERTA",audience:"Público disponÃvel",period:"PerÃodo da campanha",channels:"SELECIONE OS CANAIS DESEJADOS",cta:"Calcular melhor audiência",channelsHint:"Selecione um ou mais canais",eligible:"elegÃveis"},running:"Calculando audiênciaâ¦",result:{title:"Audiência priorizada",subtitle:"Ordenada por potencial de conversão",tableTier:"Faixa",tableClients:"Clientes",tablePropensity:"Propensão",tableChannel:"Canal recomendado",audience:"Audiência recomendada",audienceHint:"clientes",conversion:"Conversão potencial",channel:"Canal prioritário",pressure:"Pressão recomendada",drillCta:"EXPLORAR GRANULARIDADE POR CLIENTE",drillTitle:"Cliente priorizado",drillTopProduct:"Produto com maior propensão",drillChannel:"Canal recomendado",drillMoment:"Momento sugerido",drillFactors:"Fatores que sustentam o score",drillClose:"Fechar",reset:"Nova simulação",selectedProduct:"Produto selecionado"},tierLabels:{high:"Prioridade alta",medium:"Prioridade média",future:"Oportunidade futura"},reasoningTitle:"Explicabilidade e raciocÃnio do modelo",reasoningSubtitle:"",rationaleLabel:"Por que recomendamos esta audiência",latency:"Latência",latencyHint:"abaixo da média de mercado (~200 ms)"},en:{objective:"OBJECTIVE: ENGAGEMENT AND CONVERSION",crm:{title:"CRM · New campaign",subtitle:"Set up the offer and the available audience",product:"CHOOSE A PRODUCT OR OFFER",audience:"Available audience",period:"Campaign period",channels:"SELECT THE DESIRED CHANNELS",cta:"Calculate best audience",channelsHint:"Select one or more channels",eligible:"eligible"},running:"Calculating audienceâ¦",result:{title:"Prioritized audience",subtitle:"Ranked by conversion potential",tableTier:"Tier",tableClients:"Customers",tablePropensity:"Propensity",tableChannel:"Recommended channel",audience:"Recommended audience",audienceHint:"customers",conversion:"Potential conversion",channel:"Primary channel",pressure:"Recommended pressure",drillCta:"EXPLORE CUSTOMER-LEVEL GRANULARITY",drillTitle:"Prioritized customer",drillTopProduct:"Highest-propensity product",drillChannel:"Recommended channel",drillMoment:"Suggested moment",drillFactors:"Factors behind the score",drillClose:"Close",reset:"New simulation",selectedProduct:"Selected product"},tierLabels:{high:"High priority",medium:"Medium priority",future:"Future opportunity"},reasoningTitle:"Explainability and model reasoning",reasoningSubtitle:"",rationaleLabel:"Why we recommend this audie
3578nce",latency:"Latency",latencyHint:"below market average (~200 ms)"}},id=(e,t)=>e.toLocaleString(t==="pt"?"pt-BR":"en-US"),JIe=({lang:e})=>{const t=XIe[e],[n,r]=S.useState(qf[0].id),[a,i]=S.useState("active90"),[o,l]=S.useState("14d"),[c,u]=S.useState(["whatsapp","email","push"]),[d,m]=S.useState("setup"),[p,f]=S.useState(0),[g,h]=S.useState(0),[v,y]=S.useState(!1),x=S.useMemo(()=>qf.find(P=>P.id===n)??qf[0],[n]),b=c.length?c:["email"],w=S.useMemo(()=>ZIe(x,a,o,b,g),[x,a,o,b,g]),k=S.useMemo(()=>d!=="result"?"0.00":(42+x.baseConversion*2+c.length*1.7).toFixed(2),[d,x.id,c.length]);S.useEffect(()=>{if(d!=="running")return;f(0);const P=[];let _=0;return fi.forEach((N,C)=>{_+=N.durationMs,P.push(setTimeout(()=>f(C+1),_))}),P.push(setTimeout(()=>m("result"),_+260)),()=>P.forEach(clearTimeout)},[d]);const j=P=>{u(_=>_.includes(P)?_.filter(N=>N!==P):[..._,P])},A=()=>{m("setup"),f(0),y(!1),h(P=>P+1)};return s.jsxs("div",{className:"relative rounded-3xl bg-gradient-to-br from-white/8 to-[#F4845F]/8 border border-[#F4845F]/30 p-[3vmin]",children:[s.jsxs("div",{className:"flex flex-col gap-[2.4vmin]",children:[s.jsxs("div",{className:"rounded-2xl bg-[#0B1224] border border-white/10 overflow-hidden flex flex-col",children:[s.jsxs("div",{className:"flex items-baseline justify-between px-[2.5vmin] py-[1.6vmin] bg-white/[0.04] border-b border-white/10",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"text-[2.2vmin] font-bold text-white leading-tight",children:d==="result"?t.result.title:t.crm.title}),s.jsx("p",{className:"text-[1.4vmin] text-white/60",children:d==="result"?t.result.subtitle:t.crm.subtitle})]}),s.jsx("span",{className:"text-[1.4vmin] tracking-[0.25em] uppercase font-semibold text-[#F4845F]",children:t.objective})]}),s.jsxs("div",{className:"p-[2.2vmin] flex flex-col gap-[1.6vmin]",children:[d!=="result"&&s.jsxs(s.Fragment,{children:[s.jsx(P5,{title:t.crm.product,children:s.jsx("div",{className:"grid grid-cols-2 gap-[0.8vmin]",children:qf.map(P=>{const _=P.id===n,N=e==="pt"?P.namePt:P.nameEn,C=e==="pt"?P.categoryPt:P.categoryEn;return s.jsxs("button",{type:"button",disabled:d==="running",onClick:()=>r(P.id),className:`text-left rounded-xl border p-[1.3vmin] transition-all ${_?"border-[#F4845F] bg-[#F4845F]/10":"border-white/15 bg-white/[0.03] hover:border-white/30"}`,children:[s.jsx("div",{className:"text-[1.55vmin] font-semibold text-white leading-tight",children:N}),s.jsxs("div",{className:"text-[1.2vmin] text-white/55 mt-[0.3vmin]",children:[C," · ",id(P.audienceTotal,e)," ",t.crm.eligible]})]},P.id)})})}),s.jsx(P5,{title:t.crm.channels,hint:t.crm.channelsHint,children:s.jsx("div",{className:"flex flex-wrap gap-[0.6vmin]",children:C2.map(P=>{const _=c.includes(P.id);return s.jsx("button",{type:"button",disabled:d==="running",onClick:()=>j(P.id),className:`min-h-[4.4vmin] px-[1.4vmin] rounded-full border text-[1.4vmin] font-semibold transition-all ${_?"border-[#F4845F] bg-[#F4845F]/15 text-white":"border-white/20 bg-white/[0.03] text-white/70 hover:border-white/40"}`,children:e==="pt"?P.labelPt:P.labelEn},P.id)})})}),d==="setup"&&s.jsx("button",{type:"button",onClick:()=>m("running"),className:_n("self-stretch min-h-[7vmin] text-[2vmin] tracking-wide"),children:t.crm.cta}),d==="running"&&s.jsxs("div",{className:"rounded-2xl border border-[#F4845F]/40 bg-[#F4845F]/[0.08] px-[2vmin] py-[1.5vmin] flex items-center gap-[1.2vmin] animate-pulse",children:[s.jsx("span",{className:"w-[1.8vmin] h-[1.8vmin] rounded-full border-2 border-[#F4845F] border-t-transparent animate-spin"}),s.jsx("span",{className:"text-[1.6vmin] text-white/90 font-semibold",children:t.running})]})]}),d==="result"&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"rounded-xl border border-[#F4845F]/40 bg-[#F4845F]/[0.06] px-[1.6vmin] py-[1.2vmin]",children:[s.jsx("div",{className:"text-[1.15vmin] tracking-[0.25em] uppercase font-semibold text-[#F4845F] mb-[0.3vmin]",children:t.result.selectedProduct}),s.jsx("div",{className:"text-[1.9vmin] font-bold text-white leading-tight",children:e==="pt"?x.namePt:x.nameEn}
3578),s.jsxs("div",{className:"text-[1.3vmin] text-white/60 mt-[0.2vmin]",children:[e==="pt"?x.categoryPt:x.categoryEn," · ",id(x.audienceTotal,e)," ",t.crm.eligible]})]}),s.jsxs("div",{className:"rounded-xl border border-white/10 overflow-hidden",children:[s.jsxs("div",{className:"grid grid-cols-[1.6fr_1fr_0.9fr] px-[1.4vmin] py-[1vmin] bg-white/[0.05] text-[1.2vmin] uppercase tracking-[0.2em] font-semibold text-white/60",children:[s.jsx("span",{children:t.result.tableTier}),s.jsx("span",{className:"text-right",children:t.result.tableClients}),s.jsx("span",{className:"text-right",children:t.result.tablePropensity})]}),w.tiers.map((P,_)=>s.jsxs("div",{children:[s.jsxs("div",{className:"grid grid-cols-[1.6fr_1fr_0.9fr] px-[1.4vmin] py-[1.1vmin] items-center text-[1.55vmin] border-t border-white/10",children:[s.jsxs("span",{className:"flex items-center gap-[0.8vmin]",children:[s.jsx("span",{className:`w-[1vmin] h-[1vmin] rounded-full ${_===0?"bg-[#F4845F]":_===1?"bg-[#F4845F]/60":"bg-white/40"}`}),s.jsx("span",{className:"text-white/90 font-semibold",children:t.tierLabels[P.tier]})]}),s.jsx("span",{className:"text-right text-white font-mono",children:id(P.clients,e)}),s.jsxs("span",{className:"text-right text-white/90 font-mono",children:[P.propensityPct,"%"]})]}),P.tier!=="future"&&P.channels.map((N,C)=>s.jsxs("div",{className:"grid grid-cols-[1.6fr_1fr_0.9fr] px-[1.4vmin] py-[0.8vmin] items-center text-[1.4vmin] border-t border-white/5 bg-white/[0.02]",children:[s.jsxs("span",{className:"flex items-center gap-[0.6vmin] pl-[1.8vmin] text-white/70",children:[s.jsx("span",{className:"text-white/50",children:"â³"}),s.jsx("span",{children:qd(N.channel,e)})]}),s.jsx("span",{className:"text-right text-white/80 font-mono",children:id(N.clients,e)}),s.jsx("span",{})]},C))]},_))]}),s.jsxs("div",{className:"grid grid-cols-4 gap-[1vmin]",children:[s.jsx("button",{type:"button",onClick:A,className:_n("text-[1.5vmin] px-[1.4vmin] py-[1.2vmin]"),children:t.result.reset}),s.jsx(e0,{label:t.result.audience,value:id(w.recommendedAudience,e),hint:t.result.audienceHint,highlight:!0}),s.jsx(e0,{label:t.result.conversion,value:`${w.conversionPct}%`}),s.jsx(e0,{label:t.result.channel,value:qd(w.primaryChannel,e)})]}),s.jsx("button",{type:"button",onClick:()=>y(!0),className:_n("w-full min-h-[6vmin] text-[1.55vmin]"),children:t.result.drillCta})]})]})]}),s.jsxs("div",{className:"rounded-2xl bg-[#0B1224] border border-white/10 p-[2vmin]",children:[s.jsx("div",{className:"flex items-center gap-[1.2vmin] mb-[1.4vmin]",children:s.jsxs("div",{children:[s.jsx("h4",{className:"text-[1.9vmin] font-bold text-white leading-tight",children:t.reasoningTitle}),t.reasoningSubtitle&&s.jsx("p",{className:"text-[1.35vmin] text-white/60",children:t.reasoningSubtitle})]})}),d==="result"&&s.jsxs("div",{className:"mb-[1.4vmin] rounded-xl border-2 border-[#F4845F]/60 bg-[#F4845F]/[0.08] px-[2vmin] py-[1.8vmin] animate-fade-in",children:[s.jsxs("div",{className:"flex items-center gap-[1vmin] mb-[0.8vmin]",children:[s.jsx(Un,{className:"w-[2.2vmin] h-[2.2vmin] text-[#F4845F]",strokeWidth:2.5}),s.jsx("span",{className:"text-[1.7vmin] tracking-[0.25em] uppercase font-bold text-[#F4845F]",children:t.rationaleLabel}),s.jsxs("span",{className:"ml-auto text-[1.15vmin] text-white/60 font-mono",children:[t.latency,": ",k," ms"]})]}),s.jsx("p",{className:"text-[2vmin] leading-relaxed text-white/95",children:e==="pt"?w.argumentPt:w.argumentEn})]}),s.jsx("div",{className:"h-[2vmin] mb-[1vmin] flex items-center justify-center",children:d==="running"&&p<fi.length&&s.jsx("span",{className:"text-[1.2vmin] text-white/60 font-mono",children:e==="pt"?fi[p].microPt:fi[p].microEn})}),s.jsxs("div",{className:"relative px-[2vmin] pb-[1vmin]",children:[s.jsx("div",{className:"absolute left-[3vmin] right-[3vmin] top-[1.9vmin] h-[0.3vmin] rounded-full bg-white/10"}),s.jsx("div",{className:"absolute left-[3vmin] top-[1.9vmin] h-[0.3vmin] rounded-full bg-[#F4845F] transition-all duration-500",style:{width:`calc((100% - 6vmin) * ${fi.length>1?Math.min(p,fi.length-1)/(fi.length-1):0})`}}),s.jsx("div",{className:"relative grid",style:{gridTemplateColumns:`repeat(${fi.length}, minmax(0,1fr))`},children:fi.map((P,_)=>{const N=d==="setup"?"idle":d==="running"?_<p?"done":_===p?"active":"idle":"done";return s.jsxs("div",{className:"flex flex-col items-center gap-[0.8vmin] px-[0.5vmin]",children:[s.jsx("span",{className:`flex-shrink-0 w-[3.8vmin] h-[3.8vmin] rounded-full flex items-center justify-center text-[1.5vmin] font-bold border-2 transition-all ${N==="done"?"bg-[#F4845F] border-[#F4845F] text-white":N==="active"?"border-[#F4845F] text-[#F4845F] bg-[#F4845F]/15 animate-pulse":"border-white/25 text-white/50 bg-[#0B1224]"}`,children:N==="done"?s.jsx(ti,{className:"w-[1.8vmin] h-[1.8vmin]"}):_+1}),s.jsx("span",{className:`text-center text-[1.3vmin] leading-tight font-semibold ${N==="idle"?"text-white/45":"text-white/90"}`,children:e==="pt"?P.labelPt:P.labelEn}),s.jsx("span",{className:`text-center text-[1.1vmin] leading-tight font-mono ${N==="idle"?"text-white/30":"text-white/55"}`,children:e==="pt"?P.microPt:P.microEn})]},_)})})]})]})]}),v&&d==="result"&&s.jsx("div",{className:"absolute inset-0 z-20 flex items-center justify-center bg-[#0B1224]/85 backdrop-blur-sm rounded-3xl p-[3vmin]",children:s.jsxs("div",{className:"w-full max-w-[62vmin] rounded-2xl bg-[#0B1224] border-2 border-[#F4845F]/50 p-[2.4vmin] shadow-[0_0_60px_rgba(244,132,95,0.25)]",children:[s.jsxs("div",{className:"flex items-center justify-between mb-[1.6vmin]",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-[1.2vmin] tracking-[0.25em] uppercase font-semibold text-[#F4845F]",children:t.result.drillTitle}),s.jsx("h5",{className:"text-[2.4vmin] font-bold text-white leading-tight mt-[0.2vmin]",children:w.drill.id})]}),s.jsx("button",{type:"button",onClick:()=>y(!1),className:"w-[4.4vmin] h-[4.4vmin] rounded-full border border-white/20 bg-white/5 text-white/80 hover:text-white hover:border-white/40 flex items-center justify-center","aria-label":t.result.drillClose,children:s.jsx(Xc,{className:"w-[2vmin] h-[2vmin]"})})]}),s.jsxs("div",{className:"grid grid-cols-1 gap-[1vmin]",children:[s.jsx(t0,{label:t.result.drillTopProduct,value:e==="pt"?w.drill.topProductPt:w.drill.topProductEn}),s.jsx(t0,{label:t.result.drillChannel,value:qd(w.drill.channel,e)}),s.jsx(t0,{label:t.result.drillMoment,value:e==="pt"?w.drill.momentPt:w.drill.momentEn}),s.jsxs("div",{className:"rounded-xl bg-white/[0.04] border border-white/10 p-[1.4vmin]",children:[s.jsx("span",{className:"block text-[1.2vmin] tracking-[0.25em] uppercase font-semibold text-[#F4845F] mb-[0.8vmin]",children:t.result.drillFactors}),s.jsx("ul",{className:"flex flex-col gap-[0.6vmin]",children:(e==="pt"?w.drill.factorsPt:w.drill.factorsEn).map((P,_)=>s.jsxs("li",{className:"flex items-start gap-[0.8vmin] text-[1.5vmin] text-white/85 leading-snug",children:[s.jsx("span",{className:"mt-[0.7vmin] w-[0.7vmin] h-[0.7vmin] rounded-full bg-[#F4845F] flex-shrink-0"}),P]},_))})]})]}),s.jsx("button",{type:"button",onClick:()=>y(!1),className:_n("mt-[1.8vmin] w-full min-h-[6vmin] text-[1.55vmin]"),children:t.result.drillClose})]})})]})},P5=({title:e,hint:t,children:n})=>s.jsxs("div",{className:"rounded-xl bg-white/[0.03] border border-white/10 p-[1.4vmin]",children:[s.jsxs("div",{className:"flex items-baseline justify-between mb-[0.8vmin]",children:[s.jsx("span",{className:"text-[1.25vmin] tracking-[0.25em] uppercase font-semibold text-white/70",children:e}),t&&s.jsx("span",{className:"text-[1.15vmin] text-white/45",children:t})]}),n]}),e0=({label:e,value:t,hint:n,highlight:r})=>s.jsxs("div",{className:`rounded-xl p-[1.4vmin] border ${r?"bg-[#F4845F]/12 border-[#F4845F]/50":"bg-white/[0.04] border-white/10"}`,children:[s.jsx("span",{className:"block text-[1.15vmin] tracking-[0.25em] uppercase font-semibold text-[#F4845F] mb-[0.4vmin]",children:e}),s.jsxs("span",{className:"block text-[2.2vmin] font-bold text-white leading-tight",children:[t,n&&s.jsx("span",{className:"text-[1.3vmin] font-normal text-white/55 ml-[0.6vmin]",children:n})]})]}),t0=({label:e,value:t})=>s.jsxs("div",{className:"rounded-xl bg-white/[0.04] border border-white/10 px-[1.4vmin] py-[1vmin] flex items-baseline justify-between gap-[1vmin]",children:[s.jsx("span",{className:"text-[1.2vmin] tracking-[0.25em] uppercase font-semibold text-white/60",children:e}),s.jsx("span",{className:"text-[1.6vmin] text-white font-semibold text-right",children:t})]}
3578),Et=(e,t,n)=>e==="pt"?t:n,eMe={sul:{pt:"Sul",en:"South"},"sp-interior":{pt:"Interior de SP",en:"Inland São Paulo"},mg:{pt:"Minas Gerais",en:"Minas Gerais"}},hi={carlos:"Carlos",marina:"Marina",rafael:"Rafael"},tMe={clientA:{pt:"Cliente A",en:"Client A"},clientB:{pt:"Cliente B",en:"Client B"},clientC:{pt:"Cliente C",en:"Client C"}},ln=(e,t)=>eMe[e][t],n0=(e,t)=>tMe[e][t],nMe=e=>[{id:"all",label:Et(e,"Todas","All")},{id:"catA",label:Et(e,"Categoria A","Category A")},{id:"catB",label:Et(e,"Categoria B","Category B")},{id:"catC",label:Et(e,"Categoria C","Category C")}],rMe=[{id:"b300",label:"R$ 300 mil",value:300},{id:"b500",label:"R$ 500 mil",value:500},{id:"b700",label:"R$ 700 mil",value:700}],aMe=e=>[{id:"region",label:Et(e,"Região","Region")},{id:"rep",label:Et(e,"Vendedor","Sales rep")},{id:"client",label:Et(e,"Cliente","Client")},{id:"sku",label:"SKU"}],iMe=e=>[{label:Et(e,"Analisando performance do PDV","Analyzing point-of-sale performance"),micro:Et(e,"Giro, ruptura, positivação e execução no ponto de venda por SKU, cliente e vendedor.","Turnover, stockouts, distribution and execution at the point of sale by SKU, client and rep."),durationMs:900},{label:Et(e,"Projetando demanda futura","Projecting future demand"),micro:Et(e,"Demanda esperada por SKU, região e cliente considerando sazonalidade, calendário comercial e sinais contextuais.","Expected demand by SKU, region and client considering seasonality, the commercial calendar and contextual signals."),durationMs:850},{label:Et(e,"Projetando o potencial de crescimento","Projecting growth potential"),micro:Et(e,"Demanda capturável por região, SKU, cliente e vendedor â sem repetir o histórico.","Capturable demand by region, SKU, client and rep â without simply repeating history."),durationMs:900},{label:Et(e,"Identificando capacidade incremental","Identifying incremental capacity"),micro:Et(e,"Crescimento estrutural à oportunidade não explorada à meta acima do potencial real.","Structural growth à untapped opportunity à targets set above real potential."),durationMs:850},{label:Et(e,"Simulando esforço comercial e CAC","Simulating commercial effort and CAC"),micro:Et(e,"Investimento, contato e incentivo necessários por unidade incremental.","Investment, contact and incentive required per incremental unit."),durationMs:900},{label:Et(e,"Equilibrando crescimento e eficiência","Balancing growth and efficiency"),micro:Et(e,"Combinações região à SKU à cliente com maior potencial e CAC sustentável.","Region à SKU à client combinations with the highest potential and sustainable CAC."),durationMs:850}],oMe={pt:{objective:"OBJETIVO: CRESCIMENTO E EFICIÃNCIA COMERCIAL",setup:{title:"Dashboard de metas comerciais",subtitle:"Visão hierárquica por região, vendedor, cliente e SKU.",period:"PerÃodo da meta",region:"Região ou território",rep:"Equipe ou vendedor",portfolio:"Cliente ou carteira",category:"SKU ou categoria",budget:"Orçamento comercial disponÃvel",cta:"Calcular metas e investimento ideal"},running:"Calculando metas e alocando investimento...",reasoningTitle:"Explicabilidade e raciocÃnio do modelo",reasoningSubtitle:"",result:{title:"Meta atual à Meta preditiva",subtitle:"Navegue pela dimensão e clique em uma linha para ver a composição.",tableCurrent:"Meta atual",tableSuggested:"Meta sugerida",tablePotential:"Potencial",tableDelta:"Î vs. atual",allocationTitle:"Alocação recomendada de investimento comercial",allocationRegion:"Região",allocationGrowth:"Crescimento potencial",allocationCurrent:"Investimento atual",allocationSuggested:"Investimento sugerido",allocationCac:"CAC incremental",reset:"Nova simulação",newSimulation:"Nova simulação",mixTitle:"Por que esse mix / sortimento",kpiVolume:"Potencial incremental",kpiTotalTarget:"Meta total recomendada",kpiInvestment:"Investimento sugerido",kpiCac:"CAC adicional projetado",highlightsTitle:"Onde a IA aponta oportunidade",hRegions:"Regiões subexploradas",hClients:"Clientes com pressão excessiva",hSkus:"SKUs com maior oportunidade",hReps:"Vendedores com capacidade adicional",drillTitle:"Por que sugerimos esta meta",drillClose:"Fechar",drillFactors:"Fatores que sustentam a recomendação",rationaleLabel:"Insight da IA",ctaCalculate:"Calcular metas e investimento ideal"}},en:{objective:"OBJECTIVE: COMMERCIAL GROWTH AND EFFICIENCY",setup:{title:"Commercial targets dashboard",subtitle:"Hierarchical view by region, rep, client and SKU.",period:"Target period",regi
3578on:"Region or territory",rep:"Team or sales rep",portfolio:"Client or portfolio",category:"SKU or category",budget:"Available commercial budget",cta:"Calculate targets and ideal investment"},running:"Calculating targets and allocating investment...",reasoningTitle:"Explainability and model reasoning",reasoningSubtitle:"",result:{title:"Current target à Predictive target",subtitle:"Browse the dimension and click a row to see the breakdown.",tableCurrent:"Current target",tableSuggested:"Suggested target",tablePotential:"Potential",tableDelta:"Πvs. current",allocationTitle:"Recommended commercial investment allocation",allocationRegion:"Region",allocationGrowth:"Growth potential",allocationCurrent:"Current investment",allocationSuggested:"Suggested investment",allocationCac:"Incremental CAC",reset:"New simulation",newSimulation:"New simulation",mixTitle:"Why this mix / assortment",kpiVolume:"Incremental potential",kpiTotalTarget:"Recommended total target",kpiInvestment:"Suggested investment",kpiCac:"Projected additional CAC",highlightsTitle:"Where the AI sees opportunity",hRegions:"Underexplored regions",hClients:"Clients under excessive pressure",hSkus:"SKUs with the highest opportunity",hReps:"Reps with additional capacity",drillTitle:"Why we suggest this target",drillClose:"Close",drillFactors:"Factors supporting the recommendation",rationaleLabel:"AI insight",ctaCalculate:"Calculate targets and ideal investment"}}},sMe=e=>{let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return t>>>0},Ud=(e,t,n,r=0)=>{const a=sMe(e)%1e4/1e4,i=t+a*(n-t),o=Math.pow(10,r);return Math.round(i*o)/o},lMe=[{region:"Sul",regionId:"sul",rep:"Carlos",repId:"carlos",client:"Cliente A",clientTier:"key",sku:"SKU 01",category:"catA",volume:1400,currentTarget:800,currentInvestment:45,cac:11.5},{region:"Interior de SP",regionId:"sp-interior",rep:"Marina",repId:"marina",client:"Cliente B",clientTier:"key",sku:"SKU 04",category:"catB",volume:900,currentTarget:990,currentInvestment:42,cac:15},{region:"Minas Gerais",regionId:"mg",rep:"Rafael",repId:"rafael",client:"Cliente C",clientTier:"longtail",sku:"SKU 07",category:"catC",volume:450,currentTarget:850,currentInvestment:55,cac:22.5}],cMe={month:1,quarter:3,semester:6},uMe=e=>lMe.filter(t=>!(e.region!=="all"&&t.regionId!==e.region||e.rep!=="all"&&t.repId!==e.rep||e.portfolio!=="all"&&t.clientTier!==e.portfolio||e.category!=="all"&&t.category!==e.category)),dMe=(e,t,n,r)=>{const a=Ud(`${t}|pot|${e.client}|${e.sku}`,.05,.35,3),i=Math.round(e.volume*(1+a)*n),o=Ud(`${t}|cap|${e.client}|${e.sku}`,.85,.95,3),l=Math.min(.04,(r-300)/1e4),c=i*Math.min(.98,o+l),u=Math.round(c),d=Math.round(e.currentTarget*n),m=d===0?0:(u-d)/d*100,p=m>5?"up":m<-5?"down":"hold";return{potential:i,suggested:u,currentScaled:d,deltaPct:m,action:p}},mMe=e=>({region:[{id:"sul",label:ln("sul",e),regionId:"sul",volume:4200,currentTarget:2600,currentInvestment:130,cac:12},{id:"sp-interior",label:ln("sp-interior",e),regionId:"sp-interior",volume:3100,currentTarget:3050,currentInvestment:110,cac:15.2},{id:"mg",label:ln("mg",e),regionId:"mg",volume:1400,currentTarget:2500,currentInvestment:95,cac:22.4}],rep:[{id:"carlos",label:hi.carlos,sublabel:ln("sul",e),region:ln("sul",e),volume:1900,currentTarget:1100,currentInvestment:55,cac:11.5},{id:"marina",label:hi.marina,sublabel:ln("sp-interior",e),region:ln("sp-interior",e),volume:1250,currentTarget:1180,currentInvestment:48,cac:14.6},{id:"rafael",label:hi.rafael,sublabel:ln("mg",e),region:ln("mg",e),volume:620,currentTarget:1050,currentInvestment:60,cac:21}],client:[{id:"clientA",label:n0("clientA",e),sublabel:`${ln("sul",e)} · ${hi.carlos}`,region:ln("sul",e),rep:hi.carlos,volume:1400,currentTarget:800,currentInvestment:45,cac:11.5},{id:"clientB",label:n0("clientB",e),sublabel:`${ln("sp-interior",e)} · ${hi.marina}`,region:ln("sp-interior",e),rep:hi.marina,volume:900,currentTarget:990,currentInvestment:42,cac:15},{id:"clientC",label:n0("clientC",e),sublabel:`${ln("mg",e)} · ${hi.rafael}`,region:ln("mg",e),rep:hi.rafael,volume:450,currentTarget:850,currentInvestment:55,cac:22.5}],sku:[{id:"sku01",label:"SKU 01",sublabel:Et(e,"Categoria A","Category A"),category:"catA",volume:2100,currentTarget:1200,currentInvestment:62,cac:10.8},{id:"sku04",label:"SKU 04",sublabel:Et(e,"Categoria B","Category B"),category:"catB",volume:1500,currentTarget:1470,currentInvestment:52,cac:14.2},{id:"sku07",label:"SKU 07",sublabel:Et(e,"Categoria C","Category C"),category:"catC",volume:720,currentTarget:1300,currentInvestment:68,cac:20.5}]}),pMe=e=>{var z,R,B,I,H;const t=e.lang,n=`${e.period}
3578|${e.region}|${e.rep}|${e.portfolio}|${e.category}|${e.budget}|${e.argIndex}`,r=uMe(e),a=cMe[e.period],i=((z=rMe.find(q=>q.id===e.budget))==null?void 0:z.value)??500,o=r.map(q=>({r:q,m:dMe(q,n,a,i)})),l=mMe(t),c=q=>{const $=new Map;return l[q].forEach(X=>{const pe=Ud(`${n}|pot|${q}|${X.id}`,.05,.35,3),te=Math.round(X.volume*(1+pe)*a),de=Ud(`${n}|cap|${q}|${X.id}`,.85,.95,3),Q=Math.min(.04,(i-300)/1e4),K=Math.round(te*Math.min(.98,de+Q)),ee=Math.round(X.currentTarget*a),ce={region:X.region??X.label,regionId:X.regionId??"sp-interior",rep:X.rep??X.label,repId:"carlos",client:X.label,clientTier:"key",sku:X.label,category:X.category??"catA",volume:X.volume,currentTarget:X.currentTarget,currentInvestment:X.currentInvestment,cac:X.cac};$.set(X.label,{rows:[ce],current:ee,suggested:K,potential:te,currentInvestment:X.currentInvestment,region:X.region,rep:X.rep,category:X.category})}),$},u=c("region"),d=c("rep"),m=c("client"),p=c("sku"),f=(q,$)=>Array.from(q.entries()).map(([X,pe])=>{const te=pe.current===0?0:(pe.suggested-pe.current)/pe.current*100,de=te>5?"up":te<-5?"down":"hold";return{key:`${$}:${X}`,label:X,sublabel:$==="client"?`${pe.region} · ${pe.rep}`:$==="rep"?pe.region:$==="sku"?A5(pe.category,t):void 0,current:pe.current,suggested:pe.suggested,potential:pe.potential,deltaPct:te,action:de,raw:pe.rows}}).sort((X,pe)=>pe.suggested-X.suggested),g={region:f(u,"region"),rep:f(d,"rep"),client:f(m,"client"),sku:f(p,"sku")},h=i,v=(q,$)=>{const X=Array.from(q.entries()).map(([te,de])=>{const Q=Ud(`${n}|growth|${$}|${te}`,6,22,0),K=Math.max(0,de.suggested-de.current),ee=Q*Math.max(1,K);return{key:`${$}:${te}`,label:te,sublabel:$==="client"?`${de.region} · ${de.rep}`:$==="sku"?A5(de.category,t):void 0,growthPct:Q,incremental:K,currentInvestment:de.currentInvestment,score:ee}}),pe=X.reduce((te,de)=>te+de.score,0)||1;return X.map(te=>{const de=Math.round(te.score/pe*h),Q=te.incremental>0?de*1e3/te.incremental:0,K=de-te.currentInvestment,ee=te.currentInvestment===0?0:K/te.currentInvestment,ce=ee>.1?"up":ee<-.1?"down":"redistribute";return{key:te.key,label:te.label,sublabel:te.sublabel,growthPct:te.growthPct,currentInvestment:te.currentInvestment,suggestedInvestment:de,incrementalVolume:te.incremental,cac:Q,action:ce}}).sort((te,de)=>de.growthPct-te.growthPct)},y={region:v(u,"region"),rep:v(d,"rep"),client:v(m,"client"),sku:v(p,"sku")},x=y.region.map(q=>{var X;const $=(X=u.get(q.label))==null?void 0:X.rows[0];return{...q,region:q.label,regionId:($==null?void 0:$.regionId)??"sp-interior"}}),b=o.reduce((q,{m:$})=>q+$.currentScaled,0),w=o.reduce((q,{m:$})=>q+$.suggested,0);o.reduce((q,{m:$})=>q+$.potential,0);const k=Math.max(0,w-b),j=x.reduce((q,$)=>q+$.suggestedInvestment,0),A=k>0?j*1e3/k:0,P=x.filter(q=>q.action==="up").map(q=>q.region);x.filter(q=>q.action==="down").map(q=>q.region);const _=g.client.filter(q=>q.action==="down").slice(0,3).map(q=>q.label),N=g.sku.slice(0,3).map(q=>q.label),C=g.rep.slice(0,3).map(q=>q.label),E=((R=x[0])==null?void 0:R.region)??ln("sp-interior",t),T=((B=x[0])==null?void 0:B.cac.toFixed(1))??"12.0",O=((I=x[x.length-1])==null?void 0:I.region)??ln("mg",t),F=t==="pt"?T.replace(".",","):T,D=t==="pt"?{target:`Este cliente apresenta frequência de compra crescente, potencial adicional no SKU principal e capacidade de absorver aproximadamente ${gr(Math.round(k/Math.max(1,g.client.length)))} unidades acima da meta atual. O vendedor possui cobertura disponÃvel, e o investimento incremental necessário permanece dentro do limite de CAC definido.`,increase:`${E} combina crescimento projetado de demanda, baixa penetração dos SKUs prioritários e clientes com capacidade incremental. O aumento de investimento comercial apresenta melhor relação entre volume capturável (${F} de CAC) e custo do que as demais regiões analisadas.`,decrease:`A meta atual está acima do potencial projetado para clientes ${_[0]??"com baixa resposta"} e exigiria aumento desproporcional de investimento comercial. A redução evita pressão artificial sobre o vendedor e libera recursos para clientes e SKUs com maior capacidade de crescimento.`,redistribute:`Parte do orçamento está concentrada em ${O}, com baixa resposta incremental. A redistribuição para ${E} permite capturar mais volume com menor CAC, sem aumentar o investimento comercial total.`}:{target:`This client shows growing purchase frequency, additional potential on the main SKU, and the capacity to absorb roughly ${gr(Math.round(k/Math.max(1,g.client.length)))} units above the current target. The rep has available coverage, and the required incremental investment stays within the defined CAC limit.`,increase:`${E}
3578 combines projected demand growth, low penetration of priority SKUs and clients with incremental capacity. Increasing commercial investment here shows a better ratio between capturable volume (CAC of ${F}) and cost than the other regions analyzed.`,decrease:`The current target is above the projected potential for ${_[0]??"low-responding"} clients and would require a disproportionate increase in commercial investment. Reducing it avoids artificial pressure on the rep and frees up resources for clients and SKUs with greater growth capacity.`,redistribute:`Part of the budget is concentrated in ${O}, which shows low incremental response. Redistributing it to ${E} captures more volume at a lower CAC, without increasing total commercial investment.`};return{seed:n,rows:g.region,allocation:x,kpis:{incrementalVolume:k,totalTarget:w,suggestedInvestment:j,projectedCac:A},highlights:{regions:P.length?P:[E],clients:_.length?_:[((H=g.client[0])==null?void 0:H.label)??"â"],skus:N,reps:C},rationale:D,_allDims:g,_allAllocations:y}},fMe=e=>e._allDims,hMe=(e,t)=>e._allAllocations[t];function A5(e,t){var n;return((n=nMe(t).find(r=>r.id===e))==null?void 0:n.label)??e}const gr=e=>e.toLocaleString("pt-BR"),r0=e=>`R$ ${e.toLocaleString("pt-BR")} mil`,_5=e=>`R$ ${e.toFixed(2).replace(".",",")}`,ls="â",Yj={pt:{actionUp:"Aumentar",actionDown:"Reduzir",actionRedistribute:"Redistribuir",whyUp:"Por que aumentar",whyDown:"Por que reduzir",whyHold:"Por que manter",holdRationale:"A meta atual já está alinhada ao potencial projetado. A recomendação é manter o esforço comercial e monitorar a captura ao longo do perÃodo.",factorsUp:["Volume histórico consistente e frequência de compra crescente na dimensão selecionada.","Capacidade incremental de aproximadamente {delta} unidades acima da meta atual.","Folga de potencial ainda não capturada: {headroom} unidades.","Investimento incremental necessário permanece dentro do limite de CAC definido."],factorsDown:["Meta atual acima do potencial projetado â exigiria aumento desproporcional de investimento.","Redução libera {freed} unidades de pressão comercial.","Vendedor ou canal opera próximo do teto de cobertura razoável.","Recursos podem ser redirecionados para clientes/SKUs com maior capacidade de crescimento."],factorsHold:["Meta atual alinhada ao potencial projetado dentro do horizonte do perÃodo.","Cobertura e investimento sustentam a captura sem estressar o CAC.","Monitorar aceleração ou desaceleração de frequência de compra ao longo do ciclo."]},en:{actionUp:"Increase",actionDown:"Reduce",actionRedistribute:"Redistribute",whyUp:"Why increase",whyDown:"Why reduce",whyHold:"Why hold",holdRationale:"The current target is already aligned with the projected potential. The recommendation is to maintain commercial effort and monitor capture throughout the period.",factorsUp:["Consistent historical volume and growing purchase frequency in the selected dimension.","Incremental capacity of roughly {delta} units above the current target.","Untapped potential headroom: {headroom} units.","The required incremental investment stays within the defined CAC limit."],factorsDown:["The current target is above the projected potential â it would require a disproportionate increase in investment.","The reduction frees up {freed} units of commercial pressure.","The rep or channel is operating near a reasonable coverage ceiling.","Resources can be redirected to clients/SKUs with greater growth capacity."],factorsHold:["Current target aligned with the projected potential within the period horizon.","Coverage and investment sustain capture without straining CAC.","Monitor acceleration or deceleration of purchase frequency throughout the cycle."]}},gMe=({lang:e})=>{var j,A;const t=oMe[e],n=S.useMemo(()=>aMe(e),[e]),r=S.useMemo(()=>iMe(e),[e]),a=Yj[e],[i,o]=S.useState("region"),[l,c]=S.useState("setup"),[u,d]=S.useState(0),[m,p]=S.useState(0),[f,g]=S.useState(null),h=S.useMemo(()=>pMe({lang:e,period:"quarter",region:"all",rep:"all",portfolio:"all",category:"all",budget:"b500",argIndex:m}),[m,e]),y=S.useMemo(()=>fMe(h),[h])[i]??[],x=S.useMemo(()=>hMe(h,i),[h,i]);S.useEffect(()=>{if(l!=="running")return;d(0);const P=[];let _=0;return r.forEach((N,C)=>{_+=N.durationMs,P.push(setTimeout(()=>d(C+1),_))}),P.push(setTimeout(()=>c("result"),_+260)),()=>P.forEach(clearTimeout)},[l]);const b=()=>{c("setup"),d(0),g(null),p(P=>P+1)},w=l==="result",k=y.slice(0,6);return s.jsxs("div",{className:"relative rounded-3xl bg-gradient-to-br from-white/8 to-[#F4845F]/8 border border-[#F4845F]/30 p-[3vmin]",children:[s.jsxs("div",{className:"flex flex-col gap-[2.4vmin]",children:[s.jsxs("div",{className:"rounded-2xl bg-[#0B1224] border border-white/10 overflow-hidden flex flex-col",children:[s.jsxs("div",{className:"flex items-baseline justify-between px-[2.5vmin] py-[1.6vmin] bg-white/[0.04] border-b border-white/10 gap-[1vmin]",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"text-[2.2vmin] font-bold text-white leading-tight",children:t.result.title}),s.jsx("p",{className:"text-[1.4vmin] text-white/60",children:t.result.subtitle})]}),s.jsx("span",{className:"text-[1.4vmin] tracking-[0.25em] uppercase font-semibold text-[#F4845F] text-right",children:t.objective})]}),s.jsxs("div",{className:"p-[2.2vmin] flex flex-col gap-[1.5vmin]",children:[s.jsx("div",{className:"flex flex-wrap gap-[0.6vmin]",children:n.map(P=>{const _=P.id===i;return s.jsx("button",{type:"button",disabled:l==="running",onClick:()=>{o(P.id),g(null)},className:`min-h-[3.8vmin] px-[1.4vmin] rounded-full border text-[1.3vmin] font-semibold transition-all disabled:opacity-50 disabled:cursor-not-allowed ${_?"border-[#F4845F] bg-[#F4845F]/15 text-white":"border-white/20 bg-white/[0.03] text-white/70 hover:border-white/40"}`,children:P.label},P.id)})}),s.jsxs("div",{className:"rounded-xl border border-white/10 overflow-hidden",children:[s.jsxs("div",{className:"grid grid-cols-[1.4fr_1fr_1fr_1fr_0.8fr] gap-[0.6vmin] px-[1.4vmin] py-[1vmin] bg-white/[0.05] text-[1vmin] uppercase tracking-[0.18em] font-semibold text-white/60 leading-tight items-end min-h-[3vmin]",children:[s.jsx("span",{children:(j=n.find(P=>P.id===i))==null?void 0:j.label}),s.jsx("span",{className:"text-right",children:t.result.tableCurrent}),s.jsx("span",{className:"text-right",children:t.result.tableSuggested}),s.jsx("span",{className:"text-right",children:t.result.tablePotential}),s.jsx("span",{className:"text-right",children:t.result.tableDelta})]}),k.map(P=>{const _=w?"button":"div";return s.jsxs(_,{...w?{type:"button",onClick:()=>g(P)}:{},className:`w-full grid grid-cols-[1.4fr_1fr_1fr_1fr_0.8fr] px-[1.4vmin] py-[1.1vmin] items-center text-[1.4vmin] border-t border-white/10 text-left ${w?"hover:bg-white/[0.04] transition":""}`,children:[s.jsxs("span",{className:"text-white/90 font-semibold leading-tight",children:[P.label,P.sublabel&&s.jsx("span",{className:"block text-[1.1vmin] font-normal text-white/50",children:P.sublabel})]}),s.jsx("span",{className:"text-right text-white/80 font-mono",children:gr(P.current)}),s.jsx("span",{className:"text-right text-white font-mono font-semibold",children:w?gr(P.suggested):ls}),s.jsx("span",{className:"text-right text-white/70 font-mono",children:w?gr(P.potential):ls}),s.jsx("span",{className:`text-right font-mono font-semibold flex items-center justify-end gap-[0.4vmin] ${w?P.action==="up"?"text-[#4ade80]":P.action==="down"?"text-[#F4845F]":"text-white/60":"text-white/40"}`,children:w?s.jsxs(s.Fragment,{children:[P.action==="up"?s.jsx(Ck,{className:"w-[1.4vmin] h-[1.4vmin]"}):P.action==="down"?s.jsx(Uv,{className:"w-[1.4vmin] h-[1.4vmin]"}):s.jsx(BI,{className:"w-[1.4vmin] h-[1.4vmin]"}),P.deltaPct>0?"+":"",P.deltaPct.toFixed(0),"%"]}):ls})]},P.key)})]}),s.jsxs("div",{className:"rounded-xl border border-white/10 overflow-hidden",children:[s.jsx("div",{className:"px-[1.4vmin] py-[0.9vmin] bg-white/[0.05] flex items-baseline justify-between",children:s.jsx("span",{className:"text-[1.25vmin] tracking-[0.25em] uppercase font-semibold text-white/70",children:t.result.allocationTitle})}),s.jsxs("div",{className:"grid grid-cols-[1fr_0.9fr_0.9fr_0.9fr_0.9fr_0.9fr] gap-[0.6vmin] px-[1.4vmin] py-[0.8vmin] bg-white/[0.02] text-[0.95vmin] uppercase tracking-[0.16em] font-semibold text-white/55 border-t border-white/10 leading-tight items-end min-h-[3vmin]",children:[s.jsx("span",{children:(A=n.find(P=>P.id===i))==null?void 0:A.label}),s.jsx("span",{className:"text-right",children:t.result.allocationGrowth}),s.jsx("span",{className:"text-right",children:t.result.allocationCurrent}),s.jsx("span",{className:"text-right",children:t.result.allocationSuggested}),s.jsx("span",{className:"text-right",children:t.result.allocationCac}),s.jsx("span",{className:"text-right"})]}),x.map(P=>s.jsxs("div",{className:"grid grid-cols-[1fr_0.9fr_0.9fr_0.9fr_0.9fr_0.9fr] px-[1.4vmin] py-[1vmin] items-center text-[1.35vmin] border-t border-white/10",children:[s.jsxs("span",{className:"text-white/90 font-semibold leading-tight",children:[P.label,P.sublabel&&s.jsx("span",{className:"block text-[1.1vmin] font-normal text-white/50",children:P.sublabel})]}),s.jsx("span",{className:"text-right text-white font-mono",children:w?`+${P.growthPct}%`:ls}),s.jsx("span",{className:"text-right text-white/70 font-mono",children:r0(P.currentInvestment)}),s.jsx("span",{className:"text-right text-white font-mono font-semibold",children:w?r0(P.suggestedInvestment):ls}),s.jsx("span",{className:"text-right text-white/80 font-mono",children:w?_5(P.cac):ls}),s.jsx("span",{className:"text-right",children:w?s.jsx(yMe,{action:P.action,lang:e}):s.jsx("span",{className:"text-white/40 text-[1.2vmin]",children:ls})})]},P.key))]}),w&&s.jsxs("div",{className:"grid grid-cols-4 gap-[1vmin]",children:[s.jsx(Uf,{label:t.result.kpiVolume,value:`${gr(h.kpis.incrementalVolume)} un.`,highlight:!0}),s.jsx(Uf,{label:t.result.kpiTotalTarget,value:`${gr(h.kpis.totalTarget)} un.`}),s.jsx(Uf,{label:t.result.kpiInvestment,value:r0(h.kpis.suggestedInvestment)}),s.jsx(Uf,{label:t.result.kpiCac,value:_5(h.kpis.projectedCac)})]}),l==="setup"&&s.jsx("button",{type:"button",onClick:()=>c("running"),className:"self-stretch min-h-[7vmin] rounded-2xl bg-[#F4845F] text-white font-bold text-[2vmin] tracking-wide hover:bg-[#F4845F]/90 active:scale-[0.99] transition-all shadow-[0_0_28px_rgba(244,132,95,0.35)]",children:t.setup.cta}),l==="running"&&s.jsxs("div",{className:"rounded-2xl border border-[#F4845F]/40 bg-[#F4845F]/[0.08] px-[2vmin] py-[1.5vmin] flex items-center gap-[1.2vmin] animate-pulse",children:[s.jsx("span",{className:"w-[1.8vmin] h-[1.8vmin] rounded-full border-2 border-[#F4845F] border-t-transparent animate-spin"}),s.jsx("span",{className:"text-[1.6vmin] text-white/90 font-semibold",children:t.running})]})]})]}),s.jsxs("div",{className:"rounded-2xl bg-[#0B1224] border border-white/10 p-[2vmin]",children:[s.jsx("div",{className:"flex items-center gap-[1.2vmin] mb-[1.4vmin]",children:s.jsxs("div",{children:[s.jsx("h4",{className:"text-[1.9vmin] font-bold text-white leading-tight",children:t.reasoningTitle}),t.reasoningSubtitle&&s.jsx("p",{className:"text-[1.35vmin] text-white/60",children:t.reasoningSubtitle})]})}),l==="result"&&s.jsxs("div",{className:"kiosk-insight-card mb-[1.4vmin] rounded-xl border-2 border-[#F4845F]/60 bg-[#F4845F]/[0.08] px-[2vmin] py-[1.8vmin]",children:[s.jsxs("div",{className:"flex items-center gap-[1vmin] mb-[0.8vmin]",children:[s.jsx(Un,{className:"w-[2.2vmin] h-[2.2vmin] text-[#F4845F] kiosk-insight-sparkle",strokeWidth:2.5}),s.jsx("span",{className:"text-[1.7vmin] tracking-[0.25em] uppercase font-bold text-[#F4845F]",children:t.result.rationaleLabel})]}),s.jsx("p",{className:"text-[2vmin] leading-relaxed text-white/95",children:h.rationale.increase})]}),s.jsx("div",{className:"h-[2vmin] mb-[1vmin] flex items-center justify-center",children:l==="running"&&u<r.length&&s.jsx("span",{className:"text-[1.2vmin] text-white/60 font-mono",children:r[u].micro})}),s.jsxs("div",{className:"relative px-[2vmin] pb-[1vmin]",children:[s.jsx("div",{className:"absolute left-[3vmin] right-[3vmin] top-[1.9vmin] h-[0.3vmin] rounded-full bg-white/10"}),s.jsx("div",{className:"absolute left-[3vmin] top-[1.9vmin] h-[0.3vmin] rounded-full bg-[#F4845F] transition-all duration-500",style:{width:`calc((100% - 6vmin) * ${r.length>1?Math.min(u,r.length-1)/(r.length-1):0})`}}),s.jsx("div",{className:"relative grid",style:{gridTemplateColumns:`repeat(${r.length}, minmax(0,1fr))`},children:r.map((P,_)=>{const N=l==="setup"?"idle":l==="running"?_<u?"done":_===u?"active":"idle":"done";return s.jsxs("div",{className:"flex flex-col items-center gap-[0.8vmin] px-[0.5vmin]",children:[s.jsx("span",{className:`flex-shrink-0 w-[3.8vmin] h-[3.8vmin] rounded-full flex items-center justify-center text-[1.5vmin] font-bold border-2 transition-all ${N==="done"?"bg-[#F4845F] border-[#F4845F] text-white":N==="active"?"border-[#F4845F] text-[#F4845F] bg-[#F4845F]/15 animate-pulse":"border-white/25 text-white/50 bg-[#0B1224]"}`,children:N==="done"?s.jsx(ti,{className:"w-[1.8vmin] h-[1.8vmin]"}):_+1}),s.jsx("span",{className:`text-center text-[1.3vmin] leading-tight font-semibold ${N==="idle"?"text-white/45":"text-white/90"}`,children:P.label}),s.jsx("span",{className:`text-center text-[1.1vmin] leading-tight font-mono ${N==="idle"?"text-white/30":"text-white/55"}`,children:P.micro})]},_)})})]}),l==="result"&&s.jsx("button",{type:"button",onClick:b,className:_n("mt-[1.4vmin] w-full min-h-[6vmin] text-[1.6vmin]"),children:t.result.newSimulation})]})]}),s.jsx("style",{children:` 3579 @keyframes kiosk-progress { from { width: 0% } to { width: 100% } } 3580 @keyframes kiosk-insight-in { 3581 0% { opacity: 0; transform: translateY(12px) scale(.94); } 3582 100% { opacity: 1; transform: translateY(0) scale(1); } 3583 } 3584 @keyframes kiosk-insight-glow { 3585 0%, 100% { box-shadow: 0 0 0 0 rgba(244,132,95,.35), 0 0 24px rgba(244,132,95,.25); border-color: rgba(244,132,95,.55); } 3586 50% { box-shadow: 0 0 0 6px rgba(244,132,95,.10), 0 0 40px rgba(244,132,95,.60); border-color: rgba(244,132,95,1); } 3587 } 3588 @keyframes kiosk-insight-sparkle { 3589 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 3590 50% { transform: scale(1.25) rotate(15deg); opacity: .85; } 3591 } 3592 .kiosk-insight-card { 3593 animation: kiosk-insight-in .5s ease-out .6s both, kiosk-insight-glow 2.4s ease-in-out .6s infinite; 3594 } 3595 .kiosk-insight-sparkle { animation: kiosk-insight-sparkle 1.8s ease-in-out infinite; } 3596 `}),f&&l==="result"&&s.jsx("div",{className:"absolute inset-0 z-20 flex items-center justify-center bg-[#0B1224]/85 backdrop-blur-sm rounded-3xl p-[3vmin]",children:s.jsxs("div",{className:"w-full max-w-[70vmin] rounded-2xl bg-[#0B1224] border-2 border-[#F4845F]/50 p-[2.4vmin] shadow-[0_0_60px_rgba(244,132,95,0.25)]",children:[s.jsxs("div",{className:"flex items-center justify-between mb-[1.6vmin]",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-[1.2vmin] tracking-[0.25em] uppercase font-semibold text-[#F4845F]",children:t.result.drillTitle}),s.jsx("h5",{className:"text-[2.4vmin] font-bold text-white leading-tight mt-[0.2vmin]",children:f.label}),f.sublabel&&s.jsx("span",{className:"text-[1.3vmin] text-white/55",children:f.sublabel})]}),s.jsx("button",{type:"button",onClick:()=>g(null),className:"w-[4.4vmin] h-[4.4vmin] rounded-full border border-white/20 bg-white/5 text-white/80 hover:text-white hover:border-white/40 flex items-center justify-center","aria-label":t.result.drillClose,children:s.jsx(Xc,{className:"w-[2vmin] h-[2vmin]"})})]}),s.jsxs("div",{className:"grid grid-cols-3 gap-[1vmin] mb-[1.4vmin]",children:[s.jsx(a0,{label:t.result.tableCurrent,value:`${gr(f.current)} un.`}),s.jsx(a0,{label:t.result.tableSuggested,value:`${gr(f.suggested)} un.`,highlight:!0}),s.jsx(a0,{label:t.result.tablePotential,value:`${gr(f.potential)} un.`})]}),s.jsxs("div",{className:"rounded-xl bg-white/[0.04] border border-white/10 p-[1.4vmin] mb-[1.2vmin]",children:[s.jsx("span",{className:"block text-[1.15vmin] tracking-[0.25em] uppercase font-semibold text-[#F4845F] mb-[0.8vmin]",children:t.result.drillFactors}),s.jsx("ul",{className:"flex flex-col gap-[0.6vmin]",children:vMe(f,e).map((P,_)=>s.jsxs
3596("li",{className:"flex items-start gap-[0.8vmin] text-[1.45vmin] text-white/85 leading-snug",children:[s.jsx("span",{className:"mt-[0.7vmin] w-[0.7vmin] h-[0.7vmin] rounded-full bg-[#F4845F] flex-shrink-0"}),P]},_))})]}),s.jsxs("div",{className:"rounded-xl bg-[#F4845F]/12 border border-[#F4845F]/40 p-[1.4vmin] text-[1.35vmin] text-white/95 leading-relaxed",children:[s.jsx("span",{className:"block text-[1.1vmin] tracking-[0.25em] uppercase font-semibold text-[#F4845F] mb-[0.5vmin]",children:f.action==="down"?a.whyDown:f.action==="up"?a.whyUp:a.whyHold}),f.action==="down"?h.rationale.decrease:f.action==="up"?h.rationale.target:a.holdRationale]}),s.jsx("button",{type:"button",onClick:()=>g(null),className:"mt-[1.4vmin] w-full min-h-[5.4vmin] rounded-full border border-white/25 bg-white/[0.04] text-[1.45vmin] text-white/85 hover:text-white hover:border-white/50 transition",children:t.result.drillClose})]})})]})},vMe=(e,t)=>{const n=Yj[t],r=gr(Math.max(0,Math.round(e.suggested-e.current))),a=gr(Math.max(0,Math.round(e.potential-e.suggested))),i=gr(Math.max(0,Math.round(e.current-e.suggested)));return(e.action==="up"?n.factorsUp:e.action==="down"?n.factorsDown:n.factorsHold).map(l=>l.replace("{delta}",r).replace("{headroom}",a).replace("{freed}",i))},Uf=({label:e,value:t,highlight:n})=>s.jsxs("div",{className:`rounded-xl p-[1.3vmin] border ${n?"bg-[#F4845F]/12 border-[#F4845F]/50":"bg-white/[0.04] border-white/10"}`,children:[s.jsx("span",{className:"block text-[1.05vmin] tracking-[0.25em] uppercase font-semibold text-[#F4845F] mb-[0.4vmin]",children:e}),s.jsx("span",{className:"block text-[2vmin] font-bold text-white leading-tight",children:t})]}),yMe=({action:e,lang:t})=>{const n=Yj[t];return e==="up"?s.jsxs("span",{className:"inline-flex items-center gap-[0.4vmin] px-[0.9vmin] py-[0.3vmin] rounded-full text-[1.1vmin] font-bold bg-[#4ade80]/15 text-[#4ade80] border border-[#4ade80]/40",children:[s.jsx(Ck,{className:"w-[1.3vmin] h-[1.3vmin]"})," ",n.actionUp]}):e==="down"?s.jsxs("span",{className:"inline-flex items-center gap-[0.4vmin] px-[0.9vmin] py-[0.3vmin] rounded-full text-[1.1vmin] font-bold bg-[#F4845F]/15 text-[#F4845F] border border-[#F4845F]/40",children:[s.jsx(Uv,{className:"w-[1.3vmin] h-[1.3vmin]"})," ",n.actionDown]}):s.jsxs("span",{className:"inline-flex items-center gap-[0.4vmin] px-[0.9vmin] py-[0.3vmin] rounded-full text-[1.1vmin] font-bold bg-white/[0.06] text-white/85 border border-white/25",children:[s.jsx(WI,{className:"w-[1.3vmin] h-[1.3vmin]"})," ",n.actionRedistribute]})},a0=({label:e,value:t,highlight:n})=>s.jsxs("div",{className:`rounded-xl p-[1.2vmin] border ${n?"bg-[#F4845F]/12 border-[#F4845F]/50":"bg-white/[0.04] border-white/10"}`,children:[s.jsx("span",{className:"block text-[1.05vmin] tracking-[0.25em] uppercase font-semibold text-[#F4845F] mb-[0.3vmin]",children:e}),s.jsx("span",{className:"block text-[1.8vmin] font-bold text-white leading-tight",children:t})]}),xMe=[{id:"all",labelPt:"Todos",labelEn:"All",sublabelPt:"Rede consolidada",sublabelEn:"Consolidated network"},{id:"pdv-01",labelPt:"PDV #01427",labelEn:"POS #01427",sublabelPt:"Mercado Boa Vista â Centro",sublabelEn:"Mercado Boa Vista â Downtown"},{id:"pdv-02",labelPt:"PDV #02189",labelEn:"POS #02189",sublabelPt:"Empório do Bairro â Zona Sul",sublabelEn:"Empório do Bairro â South Zone"},{id:"pdv-03",labelPt:"PDV #03502",labelEn:"POS #03502",sublabelPt:"Rede Popular â Interior",sublabelEn:"Rede Popular â Countryside"}],bMe=[{id:"all",labelPt:"Todas",labelEn:"All"},{id:"sp-capital",labelPt:"SP Capital",labelEn:"SP Capital"},{id:"sp-interior",labelPt:"Interior de SP",labelEn:"SP Countryside"},{id:"mg",labelPt:"Minas Gerais",labelEn:"Minas Gerais"},{id:"sul",labelPt:"Sul",labelEn:"South"}],gi=[{labelPt:"Lendo vendas, estoque e mix atual do PDV",labelEn:"Reading sales, stock and current PDV mix",microPt:"Histórico de pedidos, sell-out, frequência e cobertura de estoque.",microEn:"Order history, sell-out, frequency and stock coverage.",durationMs:900},{labelPt:"Aprendendo a performance do PDV",labelEn:"Learning point-of-sale performance",microPt:"Giro, margem e ruptura sob comportamento contextual â clima, calendário, cluster e vizinhança.",microEn:"Turnover, margin and stockout under contextual behavior â weather, calendar, cluster and neighborhood.",durationMs:850},{labelPt:"Comparando o PDV com operações semelhantes",labelEn:"Comparing the PDV with similar operations",microPt:"Lojas com perfil, região e c
3596omportamento de compra equivalentes.",microEn:"Stores with equivalent profile, region and purchase behavior.",durationMs:850},{labelPt:"Estimando demanda e risco por SKU",labelEn:"Estimating demand and risk per SKU",microPt:"Potencial de venda, ruptura, excesso, giro e probabilidade de recompra.",microEn:"Sales potential, stockout, excess, turnover and repurchase probability.",durationMs:900},{labelPt:"Analisando inclusão, substituição e complementaridade",labelEn:"Analyzing inclusion, substitution and complementarity",microPt:"Produtos ausentes, redundantes ou com maior aderência ao perfil local.",microEn:"Missing, redundant or highly locally-adherent products.",durationMs:900},{labelPt:"Montando o pedido ideal sob restrições comerciais",labelEn:"Assembling the ideal order under commercial constraints",microPt:"Limite financeiro, capacidade, estoque, embalagem mÃnima e polÃtica.",microEn:"Financial limit, capacity, stock, minimum package and policy.",durationMs:900}],N5=[{sku:"SKU-8471",namePt:"Produto A â Café torrado premium 500g",nameEn:"Product A â Premium roasted coffee 500g",categoryPt:"Mercearia",categoryEn:"Groceries",action:"incluir",volume:12,delta:12,reasonPt:"SKU ausente no mix atual, mas presente em 78% dos PDVs do mesmo cluster com giro médio de 2.1x/semana. Demanda prevista de 14 un./ciclo, com margem 32% acima da média da categoria e cobertura projetada em 11 dias contra 15 do ciclo â inclusão complementa a cesta de café solúvel e filtro já positivados sem risco de excesso. Potencial estimado: R$ 2.184/ciclo.",reasonEn:"SKU absent from the current mix, but present in 78% of the PDVs in the same cluster with average turnover of 2.1x/week. Forecasted demand of 14 units/cycle, with margin 32% above the category average and projected coverage of 11 days against a 15-day cycle â inclusion complements the already-positivated instant coffee and filter basket without excess risk. Estimated potential: R$ 2,184/cycle.",turn:"2.1x/sem",coveragePt:"11 dias",coverageEn:"11 days",clusterPt:"78% dos PDVs",clusterEn:"78% of PDVs",potentialPt:"R$ 2.184/ciclo",potentialEn:"R$ 2,184/cycle",unitPrice:18.2,pdvScope:["pdv-01","pdv-02"]},{sku:"SKU-3120",namePt:"Produto B â Refrigerante lata 350ml",nameEn:"Product B â Soft drink can 350ml",categoryPt:"Bebidas",categoryEn:"Beverages",action:"aumentar",volume:48,delta:8,reasonPt:"Sell-out cresceu 18% nas últimas 4 semanas e PDVs pares vendem 22% mais volume deste SKU no perÃodo â tendência confirmada. Cobertura atual em 9 dias contra ciclo de 15 indica risco de ruptura. Giro de 3.4x/sem e embalagem mÃnima de 8 un. permitem a subida sem fracionar caixa. Ganho incremental estimado: R$ 468.",reasonEn:"Sell-out grew 18% over the last 4 weeks and peer PDVs sell 22% more volume of this SKU in the period â trend confirmed. Current coverage of 9 days against a 15-day cycle indicates stockout risk. Turnover of 3.4x/week and a minimum package of 8 units allow the increase without splitting a case. Estimated incremental gain: R$ 468.",turn:"3.4x/sem",coveragePt:"9 dias",coverageEn:"9 days",clusterPt:"92% dos PDVs",clusterEn:"92% of PDVs",potentialPt:"R$ 468 incremental",potentialEn:"R$ 468 incremental",unitPrice:3.9,pdvScope:["pdv-01","pdv-02","pdv-03"]},{sku:"SKU-5548",namePt:"Produto C â Sabão em pó 1kg (marca própria)",nameEn:"Product C â Powder detergent 1kg (private label)",categoryPt:"Higiene",categoryEn:"Hygiene",action:"substituir",volume:6,delta:6,reasonPt:"SKU atual com giro de 0.6x/sem â abaixo do piso saudável de 1.2x â e concorrendo diretamente com outro item da mesma função de shelf. Substituto tem margem lÃquida 4.8 p.p. superior, sell-out estável e libera R$ 620 de capital de giro realocável, sem abrir buraco de sortimento. Margem lÃquida projetada: R$ 312.",reasonEn:"Current SKU with turnover of 0.6x/week â below the healthy floor of 1.2x â and competing directly with another item in the same shelf function. The replacement has 4.8 p.p. higher net margin, stable sell-out and frees R$ 620 of reallocatable working c
3596apital, without opening an assortment gap. Projected net margin: R$ 312.",turn:"1.9x/sem",coveragePt:"13 dias",coverageEn:"13 days",clusterPt:"65% dos PDVs",clusterEn:"65% of PDVs",potentialPt:"R$ 312 margem lÃquida",potentialEn:"R$ 312 net margin",unitPrice:12.4,pdvScope:["pdv-01","pdv-03"]},{sku:"SKU-9902",namePt:"Produto D â Biscoito recheado 120g",nameEn:"Product D â Filled cookies 120g",categoryPt:"Mercearia",categoryEn:"Groceries",action:"reduzir",volume:14,delta:-10,reasonPt:"Cobertura em 28 dias contra 15 do ciclo indica excesso confirmado, com giro em queda de 24% nas últimas 3 semanas. Vencimento médio do estoque em 42 dias eleva risco de perda antes do próximo giro completo. Redução libera R$ 340 de capital para SKUs de maior retorno, sem comprometer presença no mix.",reasonEn:"Coverage of 28 days against a 15-day cycle indicates confirmed excess, with turnover down 24% over the last 3 weeks. Average stock expiry of 42 days raises the risk of loss before the next full turn. The reduction frees R$ 340 of capital for higher-return SKUs, without compromising presence in the mix.",turn:"0.9x/sem",coveragePt:"28 dias",coverageEn:"28 days",clusterPt:"54% dos PDVs",clusterEn:"54% of PDVs",potentialPt:"R$ 340 liberados",potentialEn:"R$ 340 freed",unitPrice:2.8,pdvScope:["pdv-02","pdv-03"]},{sku:"SKU-6631",namePt:"Produto E â Ãgua mineral 1,5L",nameEn:"Product E â Mineral water 1.5L",categoryPt:"Bebidas",categoryEn:"Beverages",action:"manter",volume:36,delta:0,reasonPt:"Giro de 2.4x/sem dentro da faixa saudável do cluster, cobertura em 14 dias alinhada ao ciclo de 15 e sell-out estável nas últimas 8 semanas. Sem sinal de canibalização com outros SKUs de bebidas â não há oportunidade de ganho relevante ao mexer neste item agora.",reasonEn:"Turnover of 2.4x/week within the cluster's healthy range, coverage of 14 days aligned with the 15-day cycle and stable sell-out over the last 8 weeks. No sign of cannibalization with other beverage SKUs â there is no relevant gain opportunity in touching this item now.",turn:"2.4x/sem",coveragePt:"14 dias",coverageEn:"14 days",clusterPt:"88% dos PDVs",clusterEn:"88% of PDVs",potentialPt:"Estável",potentialEn:"Stable",unitPrice:4.2,pdvScope:["pdv-01","pdv-02","pdv-03"]},{sku:"SKU-4408",namePt:"Produto F â Achocolatado em pó 400g",nameEn:"Product F â Chocolate powder drink 400g",categoryPt:"Mercearia",categoryEn:"Groceries",action:"incluir",volume:8,delta:8,reasonPt:"SKU
3596não positivado, presente em 71% dos PDVs pares com giro médio de 1.8x/sem. Alta complementaridade com leite integral e café â cesta compartilhada â e demanda prevista de 9 un./ciclo com cobertura projetada de 12 dias. Sem risco de canibalização, categoria sem substituto direto no mix. Potencial: R$ 1.256/ciclo.",reasonEn:"SKU not positivated, present in 71% of peer PDVs with average turnover of 1.8x/week. High complementarity with whole milk and coffee â shared basket â and forecasted demand of 9 units/cycle with projected coverage of 12 days. No cannibalization risk, category has no direct substitute in the mix. Potential: R$ 1,256/cycle.",turn:"1.8x/sem",coveragePt:"12 dias",coverageEn:"12 days",clusterPt:"71% dos PDVs",clusterEn:"71% of PDVs",potentialPt:"R$ 1.256/ciclo",potentialEn:"R$ 1,256/cycle",unitPrice:15.7,pdvScope:["pdv-01","pdv-02"]},{sku:"SKU-1177",namePt:"Produto G â Iogurte natural 170g",nameEn:"Product G â Plain yogurt 170g",categoryPt:"PerecÃveis",categoryEn:"Perishables",action:"aumentar",volume:30,delta:6,reasonPt:"Sell-out em aceleração de 14% nas últimas 4 semanas e cobertura em 8 dias â abaixo do ciclo de 15. Giro de 3.1x/sem, recompra semanal em 62% dos consumidores do cluster e vida útil de 21 dias permitem subida controlada sem risco de perda. Incremento estimado: R$ 198.",reasonEn:"Sell-out accelerating 14% over the last 4 weeks and coverage of 8 days â below the 15-day cycle. Turnover of 3.1x/week, weekly repurchase by 62% of the cluster's consumers and a 21-day shelf life allow a controlled increase without loss risk. Estimated increment: R$ 198.",turn:"3.1x/sem",coveragePt:"8 dias",coverageEn:"8 days",clusterPt:"84% dos PDVs",clusterEn:"84% of PDVs",potentialPt:"R$ 198 incremental",potentialEn:"R$ 198 incremental",unitPrice:3.3,pdvScope:["pdv-01","pdv-02"]},{sku:"SKU-2245",namePt:"Produto H â Detergente lÃquido 500ml",nameEn:"Product H â Liquid dish soap 500ml",categoryPt:"Higiene",categoryEn:"Hygiene",action:"substituir",volume:12,delta:12,reasonPt:"SKU substituÃdo com giro de 0.7x/sem â abaixo do piso saudável. Substituto tem margem 3.2 p.p. superior, sell-out estável e ocupa a mesma função de shelf â troca é neutra em cobertura. PDVs pares que fizeram a troca elevaram receita da categoria em 6%. Margem projetada: R$ 268.",reasonEn:"Replaced SKU with turnover of 0.7x/week â below the healthy floor. The replacement has 3.2 p.p. higher margin, stable sell-out and occupies the same shelf function â the swap is neutral on coverage. Peer PDVs that made the swap raised category revenue by 6%. Projected margin: R$ 268.",turn:"2.2x/sem",coveragePt:"14 dias",coverageEn:"14 days",clusterPt:"69% dos PDVs",clusterEn:"69% of PDVs",potentialPt:"R$ 268 margem",potentialEn:"R$ 268 margin",unitPrice:6.9,pdvScope:["pdv-02","pdv-03"]},{sku:"SKU-7714",namePt:"Produto I â Papel higiênico 12 rolos",nameEn:"Product I â Toilet paper 12 rolls",categoryPt:"Higiene",categoryEn:"Hygiene",action:"manter",volume:24,delta:0,reasonPt:"Giro de 1.6x/sem dentro da faixa saudável para item de alto tÃquete, cobertura em 15 dias alinhada ao ciclo e sell-out sem oscilação relevante nas últimas 6 semanas. Contribuição estável à cesta do PDV â sem sinal que justifique mexer no volume agora.",reasonEn:"Turnover of 1.6x/week within the healthy range for a high-ticket item, coverage of 15 days aligned with the cycle and sell-out with no relevant swings over the last 6 weeks. Stable contribution to the PDV basket â no signal that justifies changing volume now.",turn:"1.6x/sem",coveragePt:"15 dias",coverageEn:"15 days",clusterPt:"81% dos PDVs",clusterEn:"81% of PDVs",potentialPt:"Estável",potentialEn:"Stable",unitPrice:22.5,pdvScope:["pdv-01","pdv-02","pdv-03"]},{sku:"SKU-5560",namePt:"Produto J â Bolacha água e sal 200g",nameEn:"Product J â Water and salt crackers 200g",categoryPt:"Mercearia",categoryEn:"Groceries",action:"remover",volume:0,delta:-8,reasonPt:"Giro estruturalmente baixo de 0.4x/sem em 3 ciclos consecutivos, com sell-out em queda sustentada de 8% ao ciclo. SKU par no mix cobre a mesma função com giro 3x maior â remoção libera R$ 220 de capital realocável imediatamente sem abrir buraco de categoria.",reasonEn:"Structurally low turnover of 0.4x/week for 3 consecutive cycles, with sell-out down a sustained 8% per cycle. A peer SKU in the mix covers the same function with 3x higher turnover â removal immediately frees R$ 220 of reallocatable capital without opening a category gap.",turn:"0.4x/sem",coveragePt:"32 dias",coverageEn:"32 days",clusterPt:"38% dos PDVs",clusterEn:"38% of PDVs",potentialPt:"R$ 220 liberados",potentialEn:"R$ 220 freed",unitPrice:3.5,pdvScope:["pdv-01","pdv-03"]}],wMe={all:1,"pdv-01":.92,"pdv-02":1.08,"pdv-03":.78},kMe={all:1,"sp-capital":1.12,"sp-interior":.94,mg:.88,sul:1.02},SMe=(e,t)=>wMe[e]*kMe[t],jMe=(e,t)=>{const n=SMe(e,t);return{skus:Math.round(28*(.85+.15*n)),atRisk:Math.max(1,Math.round(4*(2-n))),lowTurn:Math.max(2,Math.round(7*(1.6-.6*n))),notPositivated:Math.max(2,Math.round(6*(1.8-.8*n))),stockUnits:Math.round(3840*n),recentSales30d:Math.round(12760*n),lastOrder:{units:Math.round(2180*n),value:Math.round(41230*n)}}},PMe=(e,t)=>{let n=e==="all"?N5:N5.filter(r=>r.pdvScope.includes(e));if(t!=="all"){const r=(t.length+t.charCodeAt(0))%n.length;n=n.filter((a,i)=>i!==r)}return n},AMe=e=>({keep:e.filter(t=>t.action==="manter").length+18,include:e.filter(t=>t.action==="incluir").length,substitute:e.filter(t=>t.action==="substituir").length,remove:e.filter(t=>t.action==="remover").length,increase:e.filter(t=>t.action==="aumentar").length+3}),_Me=(e,t)=>{const n=e.reduce((a,i)=>i.action==="incluir"?a+i.volume*i.unitPrice:i.action==="aumentar"?a+i.delta*i.unitPrice:i.action==="substituir"?a+i.volume*i.unitPrice*.4
3596:i.action==="reduzir"||i.action==="remover"?a-Math.abs(i.delta)*i.unitPrice*.5:a,0),r=Math.max(0,Math.round(n));return{incrementalOrder:r,potentialTicket:t.lastOrder.value+r,newPositivated:e.filter(a=>a.action==="incluir").length,ruptureReduction:Math.min(78,40+e.filter(a=>a.action!=="manter").length*4)}},NMe=(e,t)=>{e.filter(i=>i.action==="manter").length+18;const n=e.filter(i=>i.action==="incluir").length,r=e.filter(i=>i.action==="substituir").length,a=e.filter(i=>i.action==="remover").length;return t==="en"?`The model crossed turnover, coverage vs. cycle, recent sell-out and presence at the cluster's peer PDVs: ${n} inclusions came from SKUs absent in >70% of peers with healthy turnover; increases, from accelerating sell-out with coverage below the cycle; ${r} substitutions, from items below the turnover floor swapped for higher margin; ${a} removals and reductions, from excess coverage that freed capital. Respects financial limit, stock and minimum packaging.`:`O modelo cruzou giro, cobertura vs. ciclo, sell-out recente e presença nos PDVs pares do cluster: ${n} inclusões vieram de SKUs ausentes em >70% dos pares com giro saudável; aumentos, de sell-out acelerando com cobertura abaixo do ciclo; ${r} substituições, de itens abaixo do piso de giro trocados por margem superior; ${a} remoções e reduções, de cobertura excedente que liberou capital. Respeita limite financeiro, estoque e embalagens mÃnimas.`},i0=(e,t="pt")=>e.toLocaleString(t==="pt"?"pt-BR":"en-US"),o0=e=>e.toLocaleString("pt-BR",{style:"currency",currency:"BRL",maximumFractionDigits:0}),CMe={manter:{labelPt:"Manter",labelEn:"Keep",tone:"text-white/70 bg-white/[0.06] border-white/20"},incluir:{labelPt:"Incluir",labelEn:"Include",tone:"text-[#4ade80] bg-[#4ade80]/10 border-[#4ade80]/40"},aumentar:{labelPt:"Aumentar",labelEn:"Increase",tone:"text-[#60a5fa] bg-[#60a5fa]/10 border-[#60a5fa]/40"},substituir:{labelPt:"Substituir",labelEn:"Substitute",tone:"text-[#F4845F] bg-[#F4845F]/10 border-[#F4845F]/40"},reduzir:{labelPt:"Reduzir",labelEn:"Reduce",tone:"text-[#fbbf24] bg-[#fbbf24]/10 border-[#fbbf24]/40"},remover:{labelPt:"Remover",labelEn:"Remove",tone:"text-[#f87171] bg-[#f87171]/10 border-[#f87171]/40"}},EMe={objective:"OBJETIVO: MIX E PEDIDO",reasoningTitle:"Explicabilidade e raciocÃnio do modelo",reasoningSubtitle:"",setup:{title:"Portal de vendas B2B",subtitle:"Configure o PDV e a região para simular o próximo ciclo de abastecimento.",pdv:"Loja / PDV",region:"Região",contextTitle:"Contexto atual do PDV",contextMix:"Mix atual",contextStock:"Estoque disponÃvel",contextSales:"Vendas recentes (30d)",contextLast:"Ãltimo pedido",contextNotPos:"Não positivados",contextRupture:"Ruptura em curso",cta:"Gerar mix e pedido ideal"},running:"Processando mix e pedido idealâ¦",result:{title:"Mix e pedido ideal",subtitle:"Comparação, carrinho sugerido e justificativas.",filtersTitle:"Filtros ativos",currentTitle:"Mix atual",recommendedTitle:"Mix recomendado",recommendedHint:"Clique para ver o consolidado",currentSkus:"SKUs no mix",currentAtRisk:"Com risco de ruptura",currentLowTurn:"Com baixo giro",currentNotPos:"Oportunidades não positivadas",recKeep:"manter",recInclude:"incluir",recSubstitute:"substituir",recRemove:"remover",recIncrease:"aumentar volume",cartTitle:"Carrinho de pedido sugerido",cartHint:"Clique em um SKU para ver a justificativa.",colSku:"SKU",colAction:"Ação",colVolume:"Volume sugerido",kpiIncremental:"Pedido incremental",kpiTicket:"Ticket potencial",kpiNewPos:"Novos produtos positivados",kpiNewPosHint:"novos SKUs",kpiRupture:"Risco de ruptura reduzido",insightGeneralTitle:"Por que essa recomendação",insightSkuTitle:"Por que este SKU",newSimulation:"Nova simulação",drillTurn:"Giro",drillCoverage:"Cobertura",drillCluster:"Presença no cluster",drillPotential:"Potencial"}},TMe={objective:"OBJECTIVE: MIX AND ORDER",reasoningTitle:"Explainability and model reasoning",reasoningSubtitle:"",setup:{title:"B2B sales portal",subtitle:"Set up the PDV and region to simulate the next supply cycle.",pdv:"Store / PDV",region:"Region",contextTitle:"Current PDV context",contextMix:"Current mix",contextStock:"Available stock",contextSales:"Recent sales (30d)",contextLast:"Last order",contextNotPos:"Not positivated",contextRupture:"Ongoing stockout",cta:"Generate ideal mix and order"},running:"Processing ideal mix and orderâ¦",result:{title:"Ideal mix and order",subtitle:"Comparison, suggested cart and rationale.",filtersTitle:"Active filters",currentTitle:"Current mix",recommendedTitle:"Recommended mix",recommendedHint:"Click to see the consolidated view",currentSkus:"SKUs in the mix",currentAtRisk:"At stockout r
3596isk",currentLowTurn:"With low turnover",currentNotPos:"Not positivated opportunities",recKeep:"keep",recInclude:"include",recSubstitute:"substitute",recRemove:"remove",recIncrease:"increase volume",cartTitle:"Suggested order cart",cartHint:"Click a SKU to see the rationale.",colSku:"SKU",colAction:"Action",colVolume:"Suggested volume",kpiIncremental:"Incremental order",kpiTicket:"Potential ticket",kpiNewPos:"New products positivated",kpiNewPosHint:"new SKUs",kpiRupture:"Stockout risk reduced",insightGeneralTitle:"Why this recommendation",insightSkuTitle:"Why this SKU",newSimulation:"New simulation",drillTurn:"Turnover",drillCoverage:"Coverage",drillCluster:"Cluster presence",drillPotential:"Potential"}},OMe={pt:EMe,en:TMe},IMe="â",MMe={manter:s.jsx(BI,{className:"w-[1.3vmin] h-[1.3vmin]"}),incluir:s.jsx(ZB,{className:"w-[1.3vmin] h-[1.3vmin]"}),aumentar:s.jsx(Ck,{className:"w-[1.3vmin] h-[1.3vmin]"}),substituir:s.jsx(qI,{className:"w-[1.3vmin] h-[1.3vmin]"}),reduzir:s.jsx(Uv,{className:"w-[1.3vmin] h-[1.3vmin]"}),remover:s.jsx(Xc,{className:"w-[1.3vmin] h-[1.3vmin]"})},$Me=({lang:e})=>{const t=OMe[e],[n,r]=S.useState("all"),[a,i]=S.useState("all"),[o,l]=S.useState("setup"),[c,u]=S.useState(0),[d,m]=S.useState(null);S.useEffect(()=>{if(o!=="running")return;u(0);const k=[];let j=0;return gi.forEach((A,P)=>{j+=A.durationMs,k.push(setTimeout(()=>u(P+1),j))}),k.push(setTimeout(()=>l("result"),j+260)),()=>k.forEach(clearTimeout)},[o]);const p=()=>{l("setup"),u(0),m(null)},f=o==="result",g=S.useMemo(()=>jMe(n,a),[n,a]),h=S.useMemo(()=>PMe(n,a),[n,a]),v=S.useMemo(()=>AMe(h),[h]),y=S.useMemo(()=>_Me(h,g),[h,g]),x=S.useMemo(()=>NMe(h,e),[h,e]);S.useEffect(()=>{d&&!h.find(k=>k.sku===d.sku)&&m(null)},[h,d]);const b=xMe.map(k=>({value:k.id,label:e==="pt"?k.labelPt:k.labelEn})),w=bMe.map(k=>({value:k.id,label:e==="pt"?k.labelPt:k.labelEn}));return s.jsxs("div",{className:"relative rounded-3xl bg-gradient-to-br from-white/8 to-[#F4845F]/8 border border-[#F4845F]/30 p-[3vmin]",children:[s.jsxs("div",{className:"flex flex-col gap-[2.4vmin]",children:[s.jsxs("div",{className:"rounded-2xl bg-[#0B1224] border border-white/10 overflow-hidden flex flex-col",children:[s.jsxs("div",{className:"flex items-baseline justify-between px-[2.5vmin] py-[1.6vmin] bg-white/[0.04] border-b border-white/10 gap-[1vmin]",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"text-[2.2vmin] font-bold text-white leading-tight",children:f?t.result.title:t.setup.title}),s.jsx("p",{className:"text-[1.4vmin] text-white/60",children:f?t.result.subtitle:t.setup.subtitle})]}),s.jsx("span",{className:"text-[1.4vmin] tracking-[0.25em] uppercase font-semibold text-[#F4845F] text-right",children:t.objective})]}),s.jsxs("div",{className:"p-[2.2vmin] flex flex-col gap-[1.4vmin]",children:[!f&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-2 gap-[1vmin]",children:[s.jsx(Dr,{label:t.setup.pdv,value:n,onChange:k=>r(k),options:b}),s.jsx(Dr,{label:t.setup.region,value:a,onChange:k=>i(k),options:w})]}),s.jsxs("div",{className:"rounded-xl border border-white/10 bg-white/[0.03] p-[1.4vmin] flex flex-col gap-[1vmin]",children:[s.jsx("span",{className:"text-[1.15vmin] tracking-[0.25em] uppercase font-semibold text-[#F4845F]",children:t.setup.contextTitle}),s.jsxs("div",{className:"grid grid-cols-6 gap-[0.8vmin]",children:[s.jsx(bl,{label:t.setup.contextMix,value:`${g.skus} SKUs`}),s.jsx(bl,{label:t.setup.contextStock,value:`${i0(g.stockUnits,e)} un.`}),s.jsx(bl,{label:t.setup.contextSales,value:`${i0(g.recentSales30d,e)} un.`}),s.jsx(bl,{label:t.setup.contextLast,value:o0(g.lastOrder.value),hint:`${i0(g.lastOrder.units,e)} un.`}),s.jsx(bl,{label:t.setup.contextNotPos,value:`${g.notPositivated}`,tone:"warn"}),s.jsx(bl,{label:t.setup.contextRupture,value:`${g.atRisk}`,tone:"warn"})]})]})]}),f&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"rounded-xl border border-white/10 bg-white/[0.03] p-[1.2vmin] flex flex-col gap-[0.8vmin]",children:[s.jsx("span",{className:"text-[1.05vmin] tracking-[0.2em] uppercase font-semibold text-white/50",children:t.result.filtersTitle}),s.jsxs("div",{className:"grid grid-cols-2 gap-[1vmin]",children:[s.jsx(Dr,{label:t.setup.pdv,value:n,onChange:k=>r(k),options:b}),s.jsx(Dr,{label:t.setup.region,value:a,onChange:k=>i(k),options:w})]})]}),s.jsxs("div",{className:"grid grid-cols-[1fr_1.4fr] gap-[1.2vmin]",children:[s.jsxs("div",{className:"flex flex-col gap-[1vmin]",children:[s.jsxs("div",{className:"rounded-xl border border-white/10 bg-white/[0.03] p-[1.2vmin] flex flex-col gap-[0.7vmin]",children:[s.jsx("span",{className:"text-[1.1vmin] tracking-[0.25em] uppercase font-semibold text-white/60",children:t.result.currentTitle}),s.jsx(vi,{label:t.result.currentSkus,value:g.skus}),s.jsx(vi,{label:t.result.currentAtRisk,value:g.atRisk,tone:"warn"}),s.jsx(vi,{label:t.result.currentLowTurn,value:g.lowTurn,tone:"warn"}),s.jsx(vi,{label:t.result.currentNotPos,value:g.notPositivated,tone:"warn"})]}),s.jsxs("button",{type:"button",onClick:()=>m(null),className:`text-left rounded-xl border-2 p-[1.2vmin] flex flex-col gap-[0.7vmin] transition-all ${d?"border-[#F4845F]/50 bg-[#F4845F]/[0.05] hover:border-[#F4845F] hover:bg-[#F4845F]/[0.1] cursor-pointer":"border-[#F4845F] bg-[#F4845F]/[0.1] shadow-[0_0_16px_rgba(244,132,95,0.25)]"}`,children:[s.jsxs("div",{className:"flex items-baseline justify-between gap-[0.5vmin]",children:[s.jsx("span",{className:"text-[1.1vmin] tracking-[0.25em] uppercase font-semibold text-[#F4845F]",children:t.result.recommendedTitle}),d&&s.jsx("span",{className:"text-[1vmin] font-semibold text-[#F4845F]",children:t.result.recommendedHint})]}),s.jsx(vi,{label:t.result.recKeep,value:v.keep}),s.jsx(vi,{label:t.result.recInclude,value:v.include,tone:"good"}),s.jsx(vi,{label:t.result.recSubstitute,value:v.substitute,tone:"accent"}),s.jsx(vi,{label:t.result.recRemove,value:v.remove,tone:"bad"}
3596),s.jsx(vi,{label:t.result.recIncrease,value:v.increase,tone:"info"})]})]}),s.jsxs("div",{className:"rounded-xl border border-white/10 overflow-hidden flex flex-col",children:[s.jsxs("div",{className:"px-[1.4vmin] py-[0.9vmin] bg-white/[0.05] flex items-baseline justify-between border-b border-white/10",children:[s.jsx("span",{className:"text-[1.25vmin] tracking-[0.25em] uppercase font-semibold text-white/70",children:t.result.cartTitle}),s.jsx("span",{className:"text-[1.1vmin] font-semibold text-[#F4845F]",children:t.result.cartHint})]}),s.jsxs("div",{className:"grid grid-cols-[2fr_1fr_1fr] px-[1.4vmin] py-[0.7vmin] bg-white/[0.02] text-[1.1vmin] uppercase tracking-[0.18em] font-semibold text-white/55",children:[s.jsx("span",{children:t.result.colSku}),s.jsx("span",{className:"text-center",children:t.result.colAction}),s.jsx("span",{className:"text-right",children:t.result.colVolume})]}),s.jsx("div",{className:"max-h-[32vmin] overflow-y-auto",children:h.map(k=>{const j=CMe[k.action],A=(d==null?void 0:d.sku)===k.sku;return s.jsxs("button",{type:"button",onClick:()=>m(k),className:`w-full grid grid-cols-[2fr_1fr_1fr] px-[1.4vmin] py-[1vmin] items-center text-[1.35vmin] border-t border-white/10 text-left transition ${A?"bg-[#F4845F]/10":"hover:bg-white/[0.04]"}`,children:[s.jsxs("span",{className:"text-white/90 font-semibold leading-tight",children:[e==="pt"?k.namePt:k.nameEn,s.jsxs("span",{className:"block text-[1.05vmin] font-normal text-white/45",children:[k.sku," · ",e==="pt"?k.categoryPt:k.categoryEn]})]}),s.jsx("span",{className:"flex justify-center",children:s.jsxs("span",{className:`inline-flex items-center gap-[0.5vmin] px-[1vmin] py-[0.35vmin] rounded-full border text-[1.1vmin] font-semibold ${j.tone}`,children:[MMe[k.action],e==="pt"?j.labelPt:j.labelEn]})}),s.jsx("span",{className:"text-right text-white font-mono font-semibold",children:k.action==="remover"?IMe:k.delta!==0&&k.action!=="incluir"?`${k.delta>0?"+":""}${k.delta}`:k.volume})]},k.sku)})})]})]}),s.jsxs("div",{className:"grid grid-cols-4 gap-[1vmin]",children:[s.jsx(Wf,{label:t.result.kpiIncremental,value:o0(y.incrementalOrder),highlight:!0}),s.jsx(Wf,{label:t.result.kpiTicket,value:o0(y.potentialTicket)}),s.jsx(Wf,{label:t.result.kpiNewPos,value:`${y.newPositivated}`,hint:t.result.kpiNewPosHint}),s.jsx(Wf,{label:t.result.kpiRupture,value:`-${y.ruptureReduction}%`})]})]}),o==="setup"&&s.jsx("button",{type:"button",onClick:()=>l("running"),className:"self-stretch min-h-[7vmin] rounded-2xl bg-[#F4845F] text-white font-bold text-[2vmin] tracking-wide hover:bg-[#F4845F]/90 active:scale-[0.99] transition-all shadow-[0_0_28px_rgba(244,132,95,0.35)]",children:t.setup.cta}),o==="running"&&s.jsxs("div",{className:"rounded-2xl border border-[#F4845F]/40 bg-[#F4845F]/[0.08] px-[2vmin] py-[1.5vmin] flex items-center gap-[1.2vmin] animate-pulse",children:[s.jsx("span",{className:"w-[1.8vmin] h-[1.8vmin] rounded-full border-2 border-[#F4845F] border-t-transparent animate-spin"}),s.jsx("span",{className:"text-[1.6vmin] text-white/90 font-semibold",children:t.running})]})]})]}),s.jsxs("div",{className:"rounded-2xl bg-[#0B1224] border border-white/10 p-[2vmin]",children:[s.jsx("div",{className:"flex items-center gap-[1.2vmin] mb-[1.4vmin]",children:s.jsxs("div",{children:[s.jsx("h4",{className:"text-[1.9vmin] font-bold text-white leading-tight",children:t.reasoningTitle}),t.reasoningSubtitle&&s.jsx("p",{className:"text-[1.35vmin] text-white/60",children:t.reasoningSubtitle})]})}),f&&s.jsxs("div",{className:"kiosk-insight-card mb-[1.4vmin] rounded-xl border-2 border-[#F4845F]/60 bg-[#F4845F]/[0.08] px-[2vmin] py-[1.8vmin]",children:[s.jsxs("div",{className:"flex items-center gap-[1vmin] mb-[0.8vmin]",children:[s.jsx(Un,{className:"w-[2.2vmin] h-[2.2vmin] text-[#F4845F] kiosk-insight-sparkle",strokeWidth:2.5}),s.jsx("span",{className:"text-[1.7vmin] tracking-[0.25em] uppercase font-bold text-[#F4845F]",children:d?t.result.insightSkuTitle:t.result.insightGeneralTitle})]}),d?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"block text-[1.7vmin] font-semibold text-white mb-[0.6vmin] leading-tight",children:e==="pt"?d.namePt:d.nameEn}),s.jsx("p",{className:"text-[1.7vmin] leading-relaxed text-white/95 mb-[1vmin]",children:e==="pt"?d.reasonPt:d.reasonEn}),s.jsxs("div",{className:"grid grid-cols-4 gap-[0.8vmin]",children:[s.jsx(Vf,{label:t.result.drillTurn,value:d.turn}),s.jsx(Vf,{label:t.result.drillCoverage,value:e==="pt"?d.coveragePt:d.coverageEn}),s.jsx(Vf,{label:t.result.drillCluster,value:e==="pt"?d.clusterPt:d.clusterEn}),s.jsx(Vf,{label:t.result.drillPotential,value:e==="pt"?d.potentialPt:d.potentialEn})]})]}):s.jsx("p",{className:"text-[1.85vmin] leading-relaxed text-white/95",children:x})]}),s.jsx("div",{className:"h-[2vmin] mb-[1vmin] flex items-center justify-center",children:o==="running"&&c<gi.length&&s.jsx("span",{className:"text-[1.2vmin] text-white/60 font-mono",children:e==="pt"?gi[
3596c].microPt:gi[c].microEn})}),s.jsxs("div",{className:"relative px-[2vmin] pb-[1vmin]",children:[s.jsx("div",{className:"absolute left-[3vmin] right-[3vmin] top-[1.9vmin] h-[0.3vmin] rounded-full bg-white/10"}),s.jsx("div",{className:"absolute left-[3vmin] top-[1.9vmin] h-[0.3vmin] rounded-full bg-[#F4845F] transition-all duration-500",style:{width:`calc((100% - 6vmin) * ${gi.length>1?Math.min(c,gi.length-1)/(gi.length-1):0})`}}),s.jsx("div",{className:"relative grid",style:{gridTemplateColumns:`repeat(${gi.length}, minmax(0,1fr))`},children:gi.map((k,j)=>{const A=o==="setup"?"idle":o==="running"?j<c?"done":j===c?"active":"idle":"done";return s.jsxs("div",{className:"flex flex-col items-center gap-[0.8vmin] px-[0.5vmin]",children:[s.jsx("span",{className:`flex-shrink-0 w-[3.8vmin] h-[3.8vmin] rounded-full flex items-center justify-center text-[1.5vmin] font-bold border-2 transition-all ${A==="done"?"bg-[#F4845F] border-[#F4845F] text-white":A==="active"?"border-[#F4845F] text-[#F4845F] bg-[#F4845F]/15 animate-pulse":"border-white/25 text-white/50 bg-[#0B1224]"}`,children:A==="done"?s.jsx(ti,{className:"w-[1.8vmin] h-[1.8vmin]"}):j+1}),s.jsx("span",{className:`text-center text-[1.3vmin] leading-tight font-semibold ${A==="idle"?"text-white/45":"text-white/90"}`,children:e==="pt"?k.labelPt:k.labelEn}),s.jsx("span",{className:`text-center text-[1.1vmin] leading-tight font-mono ${A==="idle"?"text-white/30":"text-white/55"}`,children:e==="pt"?k.microPt:k.microEn})]},j)})})]}),f&&s.jsx("button",{type:"button",onClick:p,className:_n("mt-[1.4vmin] w-full min-h-[6vmin] text-[1.6vmin]"),children:t.result.newSimulation})]})]}),s.jsx("style",{children:` 3597 @keyframes kiosk-progress { from { width: 0% } to { width: 100% } } 3598 @keyframes kiosk-insight-in { 3599 0% { opacity: 0; transform: translateY(12px) scale(.94); } 3600 100% { opacity: 1; transform: translateY(0) scale(1); } 3601 } 3602 @keyframes kiosk-insight-glow { 3603 0%, 100% { box-shadow: 0 0 0 0 rgba(244,132,95,.35), 0 0 24px rgba(244,132,95,.25); border-color: rgba(244,132,95,.55); } 3604 50% { box-shadow: 0 0 0 6px rgba(244,132,95,.10), 0 0 40px rgba(244,132,95,.60); border-color: rgba(244,132,95,1); } 3605 } 3606 @keyframes kiosk-insight-sparkle { 3607 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 3608 50% { transform: scale(1.25) rotate(15deg); opacity: .85; } 3609 } 3610 .kiosk-insight-card { 3611 animation: kiosk-insight-in .5s ease-out .3s both, kiosk-insight-glow 2.4s ease-in-out .3s infinite; 3612 } 3613 .kiosk-insight-sparkle { animation: kiosk-insight-sparkle 1.8s ease-in-out infinite; } 3614 `})]})},bl=({label:e,value:t,hint:n,tone:r})=>s.jsxs("div",{className:`rounded-lg border p-[0.9vmin] flex flex-col gap-[0.2vmin] ${r==="warn"?"border-[#F4845F]/30 bg-[#F4845F]/[0.06]":"border-white/10 bg-white/[0.04]"}`,children:[s.jsx("span",{className:"text-[0.85vmin] tracking-[0.15em] uppercase font-semibold text-white/50 leading-tight",children:e}),s.jsx("span",{className:`text-[1.6vmin] font-bold leading-tight ${r==="warn"?"text-[#F4845F]":"text-white"}`,children:t}),n&&s.jsx("span",{className:"text-[1.05vmin] text-white/50",children:n})]}),vi=({label:e,value:t,tone:n})=>{const r=n==="warn"?"text-[#F4845F]":n==="good"?"text-[#4ade80]":n==="bad"?"text-[#f87171]":n==="accent"?"text-[#F4845F]":n==="info"?"text-[#60a5fa]":"text-white";return s.jsxs("div",{className:"flex items-center justify-between text-[1.3vmin]",children:[s.jsx("span",{className:"text-white/70",children:e}),s.jsx("span",{className:`font-mono font-bold ${r}`,children:t})]})},Wf=({label:e,value:t,hint:n,highlight:r})=>s.jsxs("div",{className:`rounded-xl border p-[1.2vmin] flex flex-col gap-[0.3vmin] ${r?"border-[#F4845F]/60 bg-[#F4845F]/[0.08]":"border-white/10 bg-white/[0.03]"}`,children:[s.jsx("span",{className:"text-[1vmin] tracking-[0.2em] uppercase font-semibold text-white/55 leading-tight",children:e}),s.jsx("span",{className:`text-[1.9vmin] font-bold leading-tight ${r?"text-[#F4845F]":"text-white"}`,children:t}),n&&s.jsx("span",{className:"text-[1.05vmin] text-white/55",children:n})]}),Vf=({label:e,value:t})=>s.jsxs("div",{className:"rounded-lg border border-white/10 bg-white/[0.03] p-[0.7vmin] flex flex-col",children:[s.jsx("span",{className:"text-[0.95vmin] tracking-[0.18em] uppercase font-semibold text-white/50 leading-tight",children:e}),s.jsx("span",{className:"text-[1.3vmin] font-bold text-white leading-tight",children:t})]}),FMe=({solution:e,labels:t,lang:n,companion:r,onSimulationClosed:a})=>{if(e.id==="price-to-conversion")return s.jsx(eo,{lang:n,solutionTitle:e.title,solutionTagline:e.tagline,resolve:e.resolve,entrega:e.entrega,impacto:e.impacto,labels:t,icon:lm,onSimulationClosed:a,children:s.jsx(zOe,{lang:n})});if(e.id==="price-to-margin")return s.jsx(eo,{lang:n,solutionTitle:e.title,solutionTagline:e.tagline,resolve:e.resolve,entrega:e.entrega,impacto:e.impacto,labels:t,icon:_p,onSimulationClosed:a,children:s.jsx(QOe,{lang:n})});if(e.id==="price-to-turnover")return s.jsx(eo,{lang:n,solutionTitle:e.title,solutionTagline:e.tagline,resolve:e.resolve,entrega:e.entrega,impacto:e.impacto,labels:t,icon:qB,onSimulationClosed:a,children:s.jsx(lIe,{lang:n})});if(e.id==="predictive-personalization"||e.id==="smart-discovery"){const i=n==="pt",o=i?"Personalização e Descoberta Preditiva":"Predictive Personalization and Discovery",l=i?"Antecipe a próxima melhor oferta para cada cliente, inclusive anônimos.":"Anticipate the next best offer for every customer, including anonymous ones.",c=(u,d)=>
3614[u,d].filter(Boolean).join(` 3615`);return s.jsx(eo,{lang:n,solutionTitle:o,solutionTagline:l,resolve:c(e.resolve,r==null?void 0:r.resolve),entrega:c(e.entrega,r==null?void 0:r.entrega),impacto:c(e.impacto,r==null?void 0:r.impacto),labels:t,icon:a7,onSimulationClosed:a,children:s.jsx(LIe,{lang:n})})}return e.id==="demand-forecasting"?s.jsx(eo,{lang:n,solutionTitle:e.title,solutionTagline:e.tagline,resolve:e.resolve,entrega:e.entrega,impacto:e.impacto,labels:t,icon:$B,onSimulationClosed:a,children:s.jsx(UIe,{lang:n})}):e.id==="predictive-campaign-targeting"?s.jsx(eo,{lang:n,solutionTitle:e.title,solutionTagline:e.tagline,resolve:e.resolve,entrega:e.entrega,impacto:e.impacto,labels:t,icon:GB,onSimulationClosed:a,children:s.jsx(JIe,{lang:n})}):e.id==="predictive-commercial-targets"?s.jsx(eo,{lang:n,solutionTitle:e.title,solutionTagline:e.tagline,resolve:e.resolve,entrega:e.entrega,impacto:e.impacto,labels:t,icon:lm,onSimulationClosed:a,children:s.jsx(gMe,{lang:n})}):e.id==="mix-assortment-order"?s.jsx(eo,{lang:n,solutionTitle:e.title,solutionTagline:e.tagline,resolve:e.resolve,entrega:e.entrega,impacto:e.impacto,labels:t,icon:FI,onSimulationClosed:a,children:s.jsx($Me,{lang:n})}):s.jsxs("div",{className:"rounded-3xl bg-gradient-to-br from-white/8 to-[#F4845F]/8 border border-[#F4845F]/30 p-[4vmin]",children:[s.jsxs("div",{className:"flex items-center gap-[2vmin] mb-[2.5vmin]",children:[s.jsx("span",{className:"w-[6vmin] h-[6vmin] rounded-xl bg-[#F4845F]/15 border border-[#F4845F]/40 flex items-center justify-center",children:s.jsx(Un,{className:"w-[3vmin] h-[3vmin] text-[#F4845F]"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-[3.4vmin] font-bold leading-tight text-white",children:e.title}),s.jsx("p",{className:"text-[2vmin] text-white/70",children:e.tagline})]})]}),s.jsxs("div",{className:"grid grid-cols-1 gap-[2vmin]",children:[s.jsx(s0,{label:t.resolve,value:e.resolve}),s.jsx(s0,{label:t.entrega,value:e.entrega}),s.jsx(s0,{label:t.impacto,value:e.impacto,highlight:!0})]})]})},s0=({label:e,value:t,highlight:n})=>s.jsxs("div",{className:`rounded-2xl p-[2.5vmin] border ${n?"bg-[#F4845F]/10 border-[#F4845F]/40":"bg-white/5 border-white/10"}`,children:[s.jsx("span",{className:"block text-[1.6vmin] tracking-[0.25em] uppercase font-semibold text-[#F4845F] mb-[0.6vmin]",children:e}),s.jsx("span",{className:"block text-[2.4vmin] leading-snug text-white/90",children:t})]}),YD=S.memo(({lang:e,content:t,solutionId:n})=>{const r=S8[e],a=cIe[n]??["pricing","mix"],[i,o]=S.useState(null),[l,c]=S.useState("idle"),[u,d]=S.useState(""),[m,p]=S.useState(!1),[f,g]=S.useState(""),[h,v]=S.useState(null),[y,x]=S.useState(!1),[b,w]=S.useState(!1),k=S.useRef(null),j=S.useCallback(_=>{o(_),c("typing"),p(!1),d("")},[]);S.useEffect(()=>{if(l!=="typing")return;const _=setTimeout(()=>{c("responding"),p(!0)},k8);return()=>clearTimeout(_)},[l]),S.useEffect(()=>{if(!y||!f)return;if(u.length<f.length){const N=setTimeout(()=>{d(f.slice(0,u.length+1))},w8);return()=>clearTimeout(N)}const _=setTimeout(()=>{w(!0),setTimeout(()=>{w(!1),x(!1),g(""),h&&(j(h),v(null))},400)},300);return()=>clearTimeout(_)},[y,u,f,h,j]),S.useEffect(()=>{m&&k.current&&setTimeout(()=>{var _;(_=k.current)==null||_.scrollIntoView({behavior:"smooth",block:"start"})},120)},[m]);const A=_=>{y||_===i&&l==="responding"||(o(_),c("idle"),p(!1),d(""),g(r.scenarios[_].question),v(_),x(!0))},P=i?r.scenarios[i]:null;return s.jsxs("section",{id:"kiosk-signal-intelliboard",className:"w-full",children:[s.jsxs("div",{className:"text-center mb-[3vmin]",children:[s.jsxs("div",{className:"inline-flex items-center gap-[1.2vmin] px-[2vmin] py-[0.8vmin] rounded-full bg-orange-500/15 border border-orange-500/30 text-orange-400 text-[1.5vmin] font-semibold tracking-[0.2em] uppercase mb-[1.5vmin]",children:[s.jsx(uw,{className:"w-[2vmin] h-[2vmin]"}),t.results.signalEyebrow]}),s.jsx("h3",{className:"text-white text-[3.2vmin] font-bold leading-tight",children:t.results.signalTitle}),s.jsx("p",{className:"text-white/60 text-[1.8vmin] mt-[1vmin] w-full max-w-none px-[2vmin]",children:t.results.signalSubtitle})]}),s.jsxs("div",{className:"mb-[2vmin]",children:[s.jsx("p",{className:"text-orange-400 text-[1.4vmin] font-semibold uppercase tracking-[0.25em] mb-[1.5vmin] text-center",children:t.results.signalPickHint}),s.jsx("div",{className:"grid grid-cols-1 gap-[2vmin]",children:a.map(_=>{const N=i===_;return s.jsx("button",{onClick:()=>A(_),disabled:y,className:`group relative text-left p-[2.5vmin] rounded-[2vmin] transition-all duration-300 min-h-[12vmin] active:scale-[0.98] ${N?"bg-gradient-to-br from-orange-500 to-orange-600 border-2 border-orange-400 shadow-[0_0_30px_rgba(249,115,22,0.4)]":"bg-white/5 border-2 border-white/10 hover:border-orange-500/50 hover:bg-white/10"}`,children:s.jsxs("div",{className:"flex items-start gap-[2vmin]",children:[s.jsx("div",{className:`flex-shrink-0 w-[5vmin] h-[5vmin] rounded-[1.2vmin] flex items-center justify-center ${N?"bg-white/20":"bg-orange-500/15"}`,children:s.jsx(RI,{className:`w-[3vmin] h-[3vmin] ${N?"text-white":"text-orange-400"}`})}),s.jsxs("div",{className:"flex-1",children:[s.jsx("div",{className:`text-[1.3vmin] font-semibold uppercase tracking-[0.2em] mb-[0.6vmin] ${N?"text-white/80":"text-orange-400"}
3615`,children:r.scenarios[_].label}),s.jsx("div",{className:`text-[2.2vmin] font-semibold leading-snug ${N?"text-white":"text-white/90"}`,children:r.scenarios[_].question})]})]})},_)})})]}),s.jsxs("div",{className:"rounded-[2vmin] shadow-2xl border border-white/10 overflow-hidden w-full min-w-0",children:[s.jsxs("div",{className:"flex items-center justify-between px-[3vmin] py-[2vmin]",style:{background:"linear-gradient(135deg, #0F1F36, #1E4A94, #0F1F36)"},children:[s.jsxs("div",{className:"flex items-center gap-[1vmin]",children:[s.jsx("span",{className:"text-orange-400 font-bold text-[3vmin] leading-none",children:"i6"}),s.jsx("span",{className:"text-white font-bold text-[2.6vmin] tracking-tight leading-none",children:"Intelliboard"})]}),s.jsxs("div",{className:"flex items-center gap-[1.5vmin]",children:[s.jsxs("div",{className:"text-right",children:[s.jsx("p",{className:"text-orange-400 text-[1.3vmin] font-semibold uppercase tracking-wide",children:"VIVARIS COMÃRCIO E VAREJO"}),s.jsx("p",{className:"text-white text-[1.5vmin] font-medium",children:"Leonardo Chaves"}),s.jsx("p",{className:"text-white/50 text-[1.3vmin]",children:"[email protected]"})]}),s.jsx("img",{src:tS,alt:"Leonardo Chaves",className:"h-[5vmin] w-[5vmin] rounded-full ring-2 ring-white/40 object-cover"})]})]}),s.jsxs("div",{className:"bg-white p-[3vmin] min-h-[35vmin] max-h-[80vmin] overflow-y-auto overflow-x-hidden w-full min-w-0",children:[!i&&s.jsx("div",{className:"h-full min-h-[30vmin] flex items-center justify-center text-center",children:s.jsxs("div",{children:[s.jsx(uw,{className:"w-[6vmin] h-[6vmin] text-orange-400 mx-auto mb-[1.5vmin] opacity-60"}),s.jsx("p",{className:"text-gray-400 text-[1.8vmin]",children:r.emptyState})]})}),i&&l==="typing"&&s.jsxs("div",{className:"flex items-center gap-[1.5vmin] text-gray-500 text-[1.7vmin]",children:[s.jsxs("div",{className:"flex gap-[0.5vmin]",children:[s.jsx("span",{className:"w-[1vmin] h-[1vmin] rounded-full bg-orange-500 animate-bounce",style:{animationDelay:"0ms"}}),s.jsx("span",{className:"w-[1vmin] h-[1vmin] rounded-full bg-orange-500 animate-bounce",style:{animationDelay:"150ms"}}),s.jsx("span",{className:"w-[1vmin] h-[1vmin] rounded-full bg-orange-500 animate-bounce",style:{animationDelay:"300ms"}})]}),s.jsx("span",{children:e==="pt"?"Analisando sinais preditivosâ¦":"Analyzing predictive signalsâ¦"})]}),i&&m&&P&&s.jsxs("div",{ref:k,className:"animate-fade-in w-full min-w-0",children:[s.jsx("h3",{className:"text-gray-900 font-bold text-[2.4vmin] mb-[1.5vmin]",children:P.title}),s.jsx("h4",{className:"text-orange-500 font-semibold text-[1.6vmin] mb-[0.8vmin] uppercase tracking-wider",children:r.executiveAnalysis}),s.jsx("p",{className:"text-gray-700 text-[1.8vmin] leading-relaxed mb-[2vmin] whitespace-pre-line",children:P.analysis}),i==="supply"&&"table"in P&&s.jsx(ev,{data:P.table}),i==="forecast"&&"chartData"in P&&s.jsx(cF,{data:P.chartData,note:P.chartNote,lang:e}),i==="pricing"&&"table"in P&&s.jsx(ev,{data:P.table}),i==="comercial"&&"comercialChart"in P&&s.jsx(uF,{data:P.comercialChart,lang:e}),i==="mix"&&"comparison"in P&&s.jsx(dF,{comparison:P.comparison}),i==="pdv"&&"barChartData"in P&&s.jsx(mF,{data:P.barChartData,note:P.barChartNote,lang:e}),i==="propensity"&&"productChart"in P&&s.jsx(pF,{data:P.productChart,note:P.productChartNote,lang:e}),i==="clusters"&&"clustersTable"in P&&s.jsx(fF,{table:P.clustersTable,detail:P.clustersDetail,lang:e}),i==="targetsPotential"&&"potentialTable"in P&&s.jsx(Obe,{data:P.potentialTable,lang:e}),i==="targetsRisk"&&"scatter"in P&&s.jsxs(s.Fragment,{children:[s.jsx(Mbe,{data:P.scatter,lang:e}),s.jsx($be,{data:P.riskTable})]}),i==="mixBehavior"&&"scatter"in P&&"pdvTable"in P&&s.jsxs(s.Fragment,{children:[s.jsx(Fbe,{data:P.scatter,lang:e}),s.jsx(Lbe,{data:P.pdvTable})]}),i==="mixGaps"&&"heatmap"in P&&s.jsxs(s.Fragment,{children:[s.jsx(zbe,{data:P.heatmap,lang:e}),s.jsx(Bbe,{data:P.gapsTable})]}),i==="marginOpportunities"&&"scatter"in P&&"skuTable"in P&&s.jsxs(s.Fragment,{children:[s.jsx(Ube,{data:P.scatter,lang:e}),s.jsx(Hbe,{data:P.skuTable})]}),i==="marginSignals"&&"signalsChart"in P&&s.jsxs(s.Fragment,{children:[s.jsx(Gbe,{data:P.signalsChart,lang:e}),s.jsx(Zbe,{data:P.signalsTable})]}),i==="turnoverRisk"&&"regionTable"in P&&s.jsxs(s.Fragment,{children:[s.jsx(Jbe,{data:P.regionTable,lang:e}),s.jsx(t0e,{data:P.signalsTable,lang:e})]}),i==="turnoverMarkdown"&&"markdownRuler"in P&&s.jsxs(s.Fragment,{children:[s.jsx(r0e,{data:P.markdownRuler,lang:e}),s.jsx(a0e,{data:P.skuTable,lang:e})]}),i==="personalizationBehavior"&&"behaviorMatrix"in P&&s.jsx(s0e,{data:P.behaviorMatrix,lang:e}),i==="personalizationRepurchase"&&"curveData"in P&&s.jsxs(s.Fragment,{children:[s.jsx(l0e,{data:P.curveData,window:P.curveWindow,peak:P.curvePeak,legend:P.curveLegend,lang:e}),s.jsx(u0e,{data:P.behaviorTable,lang:e})]}),i==="priceConversionFriction"&&"frictionHeatmap"in P&&s.jsxs(s.Fragment,{children:[s.jsx(d0e,{data:P.frictionHeatmap,lang:e}),s.jsx(m0e,{data:P.contextTable})]}),i==="priceConversionIncentiveNeed"&&"distribution"in P&&s.jsxs(s.Fragment,{children:[s.jsx(p0e,{data:P.distribution,lang:e}),s.jsx(f0e,{data:P.incentiveTable})]}),s.jsx("h4",{className:"text-orange-500 font-semibold text-[1.6vmin] mt-[2.5vmin] mb-[1vmin] uppercase tracking-wider",children:r.recommendedActions}),s.jsx("ol",{className:"space-y-[1vmin]",children:P.actions.map((_,N)=>s.jsxs("li",{className:"text-gray-700 text-[1.8vmin] flex gap-[1vmin] leading-relaxed",children:[s.jsxs("span",{className:"text-orange-500 font-bold flex-shrink-0",children:[N+1,"."]}),s.jsxs("span",{children:[s.jsx("strong",{className:"text-gray-900",children:_.bold})," ",_.text]})]},N))})]})]}),s.jsx("div",{className:"border-t border-gray-200 bg-gray-50/80 p-[2vmin]",children:s.jsxs("div",{className:"flex items-center gap-[1vmin]",children:[s.jsx("input",{type:"text",readOnly:!0,value:u,placeholder:r.placeholder,className:"flex-1 h-[6vmin] rounded-full border border-gray-200 bg-white px-[2.5vmin] text-[1.7vmin] text-gray-700 placeholder:text-gray-300 outline-none"}
3615),s.jsx("button",{type:"button",tabIndex:-1,className:`h-[6vmin] w-[6vmin] rounded-full bg-gradient-to-br from-orange-500 to-orange-600 text-white shadow-md flex items-center justify-center flex-shrink-0 transition-all ${b?"scale-125 ring-4 ring-orange-400/40":""}`,children:s.jsx(Ap,{className:"w-[2.4vmin] h-[2.4vmin]"})})]})})]})]})});YD.displayName="KioskSignalIntelliboard";const Zj="i6_kiosk_lead_queue",vv="i6_kiosk_lead_unconfirmed",yv=500,RMe=2e4,DMe=3,xh=[2*60*1e3,5*60*1e3,15*60*1e3];function LMe(){try{if(typeof crypto<"u"&&"randomUUID"in crypto)return crypto.randomUUID()}catch{}return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`}function Xj(e){try{const t=localStorage.getItem(e);if(!t)return[];const n=JSON.parse(t);return Array.isArray(n)?n:[]}catch{return[]}}function ZD(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch{}}function cx(){return Xj(Zj)}function XD(e){ZD(Zj,e)}function JD(){return cx().length}function zMe(){return Xj(vv)}function BMe(){try{localStorage.removeItem(Zj),localStorage.removeItem(vv)}catch{}}function xv(e){return e[b2]||""}function qMe(e){try{const t=cx(),n=xv(e);if(n&&t.some(a=>xv(a.fields)===n))return;t.push({id:LMe(),ts:new Date().toISOString(),attempts:1,nextAttemptAt:Date.now()+xh[0],fields:e});const r=t.length>yv?t.slice(t.length-yv):t;XD(r)}catch{}}function UMe(e){try{const t=Xj(vv),n=xv(e.fields);if(n&&t.some(r=>xv(r.fields)===n))return;t.push(e),ZD(vv,t.length>yv?t.slice(t.length-yv):t)}catch{}}function WMe(e){const t=new FormData;return Object.entries(e).forEach(([n,r])=>t.append(n,r)),t}async function eL(e){if(typeof navigator<"u"&&navigator.onLine===!1)return!1;const t=new AbortController,n=setTimeout(()=>t.abort(),RMe);try{return await fetch(ax,{method:"POST",mode:"no-cors",body:WMe(e),signal:t.signal}),!0}catch{return!1}finally{clearTimeout(n)}}let l0=!1;async function bh(){if(l0)return{sent:0,remaining:JD()};const e=cx();if(e.length===0)return{sent:0,remaining:0};if(typeof navigator<"u"&&navigator.onLine===!1)return{sent:0,remaining:e.length};l0=!0;let t=0;try{const n=Date.now(),r=[];for(const a of e){if(a.nextAttemptAt&&a.nextAttemptAt>n){r.push(a);continue}if(await eL(a.fields)){t+=1;continue}const o=a.attempts+1;if(o>=DMe){UMe({...a,attempts:o});continue}r.push({...a,attempts:o,nextAttemptAt:n+(xh[o-1]??xh[xh.length-1])})}return XD(r),{sent:t,remaining:r.length}}finally{l0=!1}}function VMe(e){return/[",\n\r]/.test(e)?`"${e.replace(/"/g,'""')}"`:e}function HMe(){const e=cx().map(m=>({item:m,status:"pending"})),t=zMe().map(m=>({item:m,status:"unconfirmed"})),n=[...e,...t],r=new Set;n.forEach(({item:m})=>Object.keys(m.fields).forEach(p=>r.add(p)));const a=["id","ts","status","attempts",...[...r].sort()],i=a.join(",")+` 3616`,o=n.map(({item:m,status:p})=>a.map(f=>f==="id"?m.id:f==="ts"?m.ts:f==="status"?p:f==="attempts"?String(m.attempts):m.fields[f]??"").map(VMe).join(",")).join(` 3617`),l=new Blob([i+o+(o?` 3618`:"")],{type:"text/csv;charset=utf-8"}),c=URL.createObjectURL(l),u=document.createElement("a"),d=new Date().toISOString().replace(/[:.]/g,"-");u.href=c,u.download=`kiosk-leads-pendentes-${d}.csv`,document.body.appendChild(u),u.click(),document.body.removeChild(u),URL.revokeObjectURL(c)}const KMe=zn.object({name:zn.string().trim().min(1).max(100),email:zn.string().trim().email().max(255),[Pa]:zn.string().max(0).optional().or(zn.literal(""))}),GMe=["predictive-personalization","smart-discovery","predictive-campaign-targeting"],QMe="insight:ebook-inteligencia-do-consumidor-orientada-a-decisao",YMe="03a13a3b-9b6b-4804-8c04-7418a04bd3c1",ZMe=["price-to-margin","price-to-conversion","price-to-turnover"],XMe="insight:ebook-pricing-orientado-a-resultados",JMe="a4012048-aa04-465b-b89a-7c7104d6fc18",e8e=["demand-forecasting","predictive-commercial-targets","mix-assortment-order"],t8e="insight:ebook-planejamento-preditivo-decisao",n8e="b098418a-7472-4d58-be7e-9c8e9e31dec8",r8e=({lang:e,content:t,route:n,solutionId:r,solutionTitle:a,ebookTitle:i})=>{const[o,l]=S.useState(!1),[c,u]=S.useState(!1),[d,m]=S.useState(!1),{register:p,handleSubmit:f,formState:{errors:g}}=rx({resolver:Hj(KMe)}),h=t.ebook,v=S.useCallback(async y=>{if(y[Pa]){u(!0);return}l(!0),m(!1);try{const x=iu(),b=["[Lead Kiosk eBook]",`Solução: ${a}`,`SolutionId: ${r}`,`eBook: ${i}`,`Idioma: ${e}`,"Origem: kiosk","",ny(x)].join(` 3619`),w={name:y.name,email:y.email,company:i,message:b,subscription:"i6-website",token:ix,...ry()};GMe.includes(r)&&(w.subscription=QMe,w.reason="kiosk-demo",w.insight_id=YMe,w.utm_source="kiosk",w.utm_medium="totem",w.utm_campaign="evento-forum-ecommerce-brasil-2026",w.user_agent="kiosk-app/1.0"),ZMe.includes(r)&&(w.subscription=XMe,w.reason="kiosk-demo",w.insight_id=JMe,w.utm_source="kiosk",w.utm_medium="totem",w.utm_campaign="evento-forum-ecommerce-brasil-2026",w.user_agent="kiosk-app/1.0"),e8e.includes(r)&&(w.subscription=t8e,w.reason="kiosk-demo",w.insight_id=n8e,w.utm_source="kiosk",w.utm_medium="totem",w.utm_campaign="evento-forum-ecommerce-brasil-2026",w.user_agent="kiosk-app/1.0");const k=ox(w,"kiosk-demo");await eL(k)||qMe(k),oa(ua.KIOSK_EBOOK_REQUESTED,{solution_id:r,language:e}),u(!0)}catch{u(!0)}finally{l(!1)}},[i,e,n,r,a]);return s.jsxs("div",{className:"w-full rounded-3xl border-2 border-[#F4845F] bg-gradient-to-br from-[#F4845F]/20 to-[#F4845F]/5 p-[4vmin] shadow-[0_0_40px_rgba(244,132,95,0.25)]",children:[s.jsxs("div",{className:"flex flex-col gap-[3vmin]",children:[s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"text-[1.7vmin] tracking-[0.3em] uppercase font-semibold text-[#F4845F] mb-[1vmin]",children:h.eyebrow}),s.jsx("h3",{className:"text-[3vmin] font-bold text-white leading-tight mb-[0.8vmin]",children:h.title(i)}),s.jsx("p",{className:"text-[2vmin] text-white/75",children:h.subtitle})]}),c?s.jsxs("div",{className:"flex-shrink-0 flex items-center gap-[2vmin] rounded-2xl bg-[#F4845F]/10 border-2 border-[#F4845F]/50 px-[3vmin] py-[2.5vmin]",children:[s.jsx(Vv,{className:"w-[5vmin] h-[5vmin] text-[#F4845F] flex-shrink-0"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-[2.2vmin] font-bold text-white leading-tight",children:h.successTitle}),s.jsx("p",{className:"text-[1.6vmin] text-white/70 leading-tight mt-[0.4vmin]",children:h.successBody})]})]}):s.jsxs("form",{onSubmit:f(v),className:"flex items-start gap-[1.5vmin] w-full",children:[s.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[s.jsx("input",{type:"text",placeholder:h.nameLabel,autoComplete:"name","aria-label":h.nameLabel,...p("name"),className:"w-full rounded-2xl bg-white/5 border-2 border-white/10 text-white text-[2vmin] px-[2.5vmin] py-[2.2vmin] focu
3619s:border-[#F4845F] focus:outline-none placeholder:text-white/40"}),g.name&&s.jsx("span",{className:"mt-[0.5vmin] text-[1.4vmin] text-[#F4845F]",children:h.invalidName})]}),s.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[s.jsx("input",{type:"email",placeholder:h.emailLabel,autoComplete:"email",inputMode:"email","aria-label":h.emailLabel,...p("email"),className:"w-full rounded-2xl bg-white/5 border-2 border-white/10 text-white text-[2vmin] px-[2.5vmin] py-[2.2vmin] focus:border-[#F4845F] focus:outline-none placeholder:text-white/40"}),g.email&&s.jsx("span",{className:"mt-[0.5vmin] text-[1.4vmin] text-[#F4845F]",children:h.invalidEmail})]}),s.jsx("input",{type:"text",tabIndex:-1,autoComplete:"off",...p(Pa),className:"hidden","aria-hidden":"true"}),s.jsx("button",{type:"submit",disabled:o,"aria-label":h.submit,className:_n("flex-shrink-0 h-[8vmin] px-[4vmin] text-[2.2vmin] disabled:opacity-60 gap-[1.5vmin]"),children:o?s.jsx(Ok,{className:"w-[3vmin] h-[3vmin] animate-spin"}):s.jsxs(s.Fragment,{children:[s.jsx(Ap,{className:"w-[2.6vmin] h-[2.6vmin]",strokeWidth:2.5}),s.jsx("span",{children:h.submit})]})})]})]}),d&&s.jsx("p",{className:"mt-[2vmin] text-[1.7vmin] text-[#F4845F] text-right",children:h.error})]})},a8e={en:s.jsxs("svg",{width:"20",height:"15",viewBox:"0 0 7410 3900","aria-hidden":!0,children:[s.jsx("rect",{width:"7410",height:"3900",fill:"#b22234"}),s.jsx("path",{d:"M0,450H7410m0,600H0m0,600H7410m0,600H0m0,600H7410m0,600H0",stroke:"#fff",strokeWidth:"300"}),s.jsx("rect",{width:"2964",height:"2100",fill:"#3c3b6e"})]}),pt:s.jsxs("svg",{width:"20",height:"14",viewBox:"0 0 720 504","aria-hidden":!0,children:[s.jsx("rect",{width:"720",height:"504",fill:"#009b3a"}),s.jsx("path",{d:"M360,42 L660,252 L360,462 L60,252 Z",fill:"#fedf00"}),s.jsx("circle",{cx:"360",cy:"252",r:"90",fill:"#002776"}),s.jsx("path",{d:"M280,252 Q315,222 360,232 Q405,222 440,252",fill:"none",stroke:"#fff",strokeWidth:"8"})]})},i8e=({lang:e,onChange:t})=>s.jsx("div",{className:"flex items-center gap-[0.8vmin]",children:["pt","en"].map(n=>s.jsxs("button",{type:"button",onClick:()=>t(n),"aria-label":n==="pt"?"Português":"English","aria-pressed":e===n,className:`flex items-center gap-[0.8vmin] px-[1.8vmin] py-[1.2vmin] rounded-full border text-[1.6vmin] font-semibold min-h-[6vmin] transition-colors ${e===n?"bg-[#F4845F]/20 border-[#F4845F]/60 text-[#F4845F]":"bg-transparent border-white/25 text-white/70"}`,children:[s.jsx("span",{className:"flex items-center",children:a8e[n]}),n.toUpperCase()]},n))}),o8e=2,wh="i6_kiosk_session",s8e=2*60*1e3,l8e=()=>{if(typeof window>"u")return null;try{const e=sessionStorage.getItem(wh);if(!e)return null;const t=JSON.parse(e);return!t||t.stage!=="quiz"&&t.stage!=="results"?null:t}catch{return null}},C5=e=>e==="pt"||e==="en",c8e=()=>{const e=S.useMemo(()=>l8e(),[]),{lang:t}=Wi(),n=au(),r=C5(t)?t:"pt";S.useEffect(()=>{C5(t)||n("/pt/demo",{replace:!0})},[t,n]);const a=C=>{C!==r&&n(`/${C}/demo`,{replace:!0})},[i,o]=S.useState((e==null?void 0:e.stage)??"attract"),[l,c]=S.useState((e==null?void 0:e.route)??null),[u,d]=S.useState((e==null?void 0:e.recommendedIds)??null),[m,p]=S.useState((e==null?void 0:e.selectedSolutionId)??null),[f,g]=S.useState((e==null?void 0:e.simulationCompleted)??{}),h=lx[r],v=Yo[r],y=S.useMemo(()=>{if(!u||u.length===0)return[];const C=new Map(v.solutions.map(E=>[E.id,E]));return u.map(E=>C.get(E)).filter(Boolean)},[u,v.solutions]),x=y.length>1,b=S.useMemo(()=>y.find(C=>C.id===m)??null,[y,m]),w=()=>{o("attract"),c(null),d(null),p(null),g({});try{sessionStorage.removeItem(wh)}catch{}};S.useEffect(()=>{try{if(i==="attract"){sessionStorage.removeItem(wh);return}const C={lang:r,stage:i,route:l,recommendedIds:u,selectedSolutionId:m,simulationCompleted:f};sessionStorage.setItem(wh,JSON.stringify(C))}catch{}},[r,i,l,u,m,f]),S.useEffect(()=>{bh();const C=()=>void bh();window.addEventListener("online",C);const E=window.setInterval(()=>void bh(),s8e);return()=>{window.removeEventListener("online",C),window.clearInterval(E)}},[]),S.useEffect(()=>{i==="results"&&y.length>0&&(m&&y.some(E=>E.id===m)||p(y[0].id),requestAnimationFrame(()=>{const E=document.getElementById("kiosk-solution-demo");E&&E.scrollIntoView({behavior:"smooth",block:"start"})}))},[i,y]);const k=()=>{oa(ua.KIOSK_SESSION_STARTED,{language:r}),o("quiz"),c(null),d(null),p(null)},j=C=>{if(l===null){const O=h.routing.options.find(F=>F.id===C);if(!(O!=null&&O.route))return;oa(ua.KIOSK_QUIZ_ANSWERED,{language:r,step:"q1",option_id:C,route:O.route}),c(O.route);return}const T=h.branches[l].options.find(O=>O.id===C);T!=null&&T.solutionIds&&(oa(ua.KIOSK_QUIZ_ANSWERED,{language:r,step:"q2",option_id:C,route:l}),oa(ua.KIOSK_QUIZ_COMPLETED,{language:r,route:l,solutions:T.solutionIds.join(",")}),d(T.solutionIds),o("results"))},A=C=>{p(C),oa(ua.KIOSK_SOLUTION_SELECTED,{solution_id:C,language:r}),requestAnimationFrame(()=>{const E=document.getElementById("kiosk-solution-demo");E&&E.scrollIntoView({behavior:"smooth",block:"start"})})},P=l?uIe[l][r]:"",_=l===null?h.routing:h.branches[l],N=l===null?0:1;return s.jsxs(s.Fragment,{children:[s.jsxs(Na,{children:[s.jsx("title",{children:r==="pt"?"infinity6 · Experiência Interativa":"infinity6 · Interactive Experience"}),s.jsx("meta",{name:"robots",content:"noindex,nofollow"}),s.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"})]}),s.jsxs(bOe,{inactivityMs:dIe,onInactive:w,active:i!=="attract",children:[s.jsx("div",{className:"fixed top-[2vmin] right-[2vmin] z-20",children:s.jsxs("div",{className:"relative flex items-center gap-[1.5vmin]",children:[s.jsx("div",{"aria-hidden":!0,
3619className:"absolute -inset-y-[0.8vmin] -inset-x-[1.2vmin] rounded-full bg-[#0B1224]/85 backdrop-blur-md ring-1 ring-white/10 shadow-[0_8px_30px_rgba(0,0,0,0.45)]"}),s.jsx("div",{className:"relative",children:s.jsx(i8e,{lang:r,onChange:a})}),i!=="attract"&&s.jsxs("button",{type:"button",onClick:w,className:"relative flex items-center gap-[1.2vmin] px-[2.4vmin] py-[1.2vmin] rounded-full bg-transparent border border-white/25 text-[1.8vmin] font-semibold text-white/90 min-h-[6vmin]",children:[s.jsx(UI,{className:"w-[2vmin] h-[2vmin]"}),h.footer.resetLabel]})]})}),i==="attract"&&s.jsx(TOe,{content:h,onStart:k}),i==="quiz"&&s.jsx(MOe,{question:_,stepIndex:N,totalSteps:o8e,progressLabel:h.progressLabel,continueCta:h.continueCta,onAnswer:j},l===null?"q1":`q2-${l}`),i==="results"&&s.jsxs("div",{className:"w-full max-w-[96vw] mx-auto px-[4vmin] pt-[10vmin] pb-[8vmin]",children:[s.jsxs("div",{className:"text-center mb-[5vmin]",children:[s.jsx("p",{className:"text-[1.7vmin] tracking-[0.35em] uppercase font-semibold text-[#F4845F] mb-[1.5vmin]",children:h.results.eyebrow}),s.jsx("h2",{className:"text-[4vmin] font-bold leading-tight mb-[1vmin]",children:x?h.results.tieTitle:h.results.title})]}),(()=>{const E=!!b&&["predictive-personalization","smart-discovery","predictive-campaign-targeting","demand-forecasting","predictive-commercial-targets","mix-assortment-order","price-to-margin","price-to-turnover","price-to-conversion"].includes(b.id),T=(b==null?void 0:b.id)==="predictive-personalization"?y.find(O=>O.id==="smart-discovery")??null:(b==null?void 0:b.id)==="smart-discovery"?y.find(O=>O.id==="predictive-personalization")??null:null;return s.jsxs(s.Fragment,{children:[!E&&s.jsxs(s.Fragment,{children:[s.jsx($Oe,{solutions:y,labels:v.labels,activeId:m,onSelect:A,highlightAll:x}),s.jsx("p",{className:"mt-[5vmin] text-center text-[2.2vmin] text-white/65",children:x?h.results.tieSubtitle:h.results.subtitle})]}),s.jsx("div",{id:"kiosk-solution-demo",className:`${E?"":"mt-[6vmin]"} flex flex-col gap-[4vmin] w-full min-w-0`,children:b?s.jsxs(s.Fragment,{children:[s.jsx(FMe,{solution:b,labels:v.labels,lang:r,companion:T,onSimulationClosed:E?()=>{g(O=>({...O,[b.id]:!0})),requestAnimationFrame(()=>{var O;(O=document.getElementById("kiosk-signal-intelliboard"))==null||O.scrollIntoView({behavior:"smooth",block:"start"})})}:void 0},b.id),(!E||f[b.id])&&s.jsxs(s.Fragment,{children:[s.jsx(YD,{lang:r,content:h,solutionId:b.id}),s.jsx(r8e,{lang:r,content:h,route:l,solutionId:b.id,solutionTitle:b.title,ebookTitle:P})]})]}):s.jsx("p",{className:"text-center text-[2.2vmin] text-white/50 py-[4vmin]",children:h.results.selectSolutionHint})})]})})(),s.jsx("p",{className:"text-center text-[1.6vmin] tracking-[0.3em] uppercase text-white/40 mt-[6vmin]",children:h.footer.tagline})]})]})]})},tL="i6_kiosk_events",u8e="i6-kiosk",d8e=1,Gc="events",E5=5e4;function m8e(){try{const e=localStorage.getItem(tL);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(Jj):[]}catch{return[]}}function Jj(e){const t=e;return!!t&&typeof t.id=="string"&&typeof t.event_key=="string"&&typeof t.ts=="string"}let Hf=null;function nL(){return Hf||(Hf=new Promise(e=>{try{if(typeof indexedDB>"u")return e(null);const t=indexedDB.open(u8e,d8e);t.onupgradeneeded=()=>{const n=t.result;n.objectStoreNames.contains(Gc)||n.createObjectStore(Gc,{keyPath:"id"}).createIndex("ts","ts")},t.onsuccess=()=>e(t.result),t.onerror=()=>e(null),t.onblocked=()=>e(null)}catch{e(null)}}),Hf)}async function p8e(){const e=await nL();return e?new Promise(t=>{try{const r=e.transaction(Gc,"readonly").objectStore(Gc).getAll();r.onsuccess=()=>t((r.result??[]).filter(Jj)),r.onerror=()=>t([])}catch{t([])}}):[]}async function f8e(){const e=await nL();if(e)return new Promise(t=>{try{const n=e.transaction(Gc,"readwrite");n.objectStore(Gc).clear(),n.oncomplete=()=>t(),n.onerror=()=>t()}catch{t()}})}
3619function h8e(e){const t=e.slice().sort((n,r)=>n.ts.localeCompare(r.ts));return t.length>E5?t.slice(t.length-E5):t}function g8e(e,t){const n=new Map;return[...e,...t].forEach(r=>{Jj(r)&&n.set(r.id,r)}),h8e([...n.values()])}async function v8e(){try{localStorage.removeItem(tL)}catch{}await f8e()}const T5="i6_kiosk_device_id";function O5(){try{if(typeof crypto<"u"&&"randomUUID"in crypto)return crypto.randomUUID()}catch{}return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`}let cs=null;function ux(){if(cs)return cs;try{const e=localStorage.getItem(T5);if(e)return cs=e,e;const t=`totem-${O5().slice(0,8)}`;return localStorage.setItem(T5,t),cs=t,t}catch{return cs=cs??`totem-${O5().slice(0,8)}`,cs}}const y8e=!1,x8e="i6_kiosk_last_sync";function b8e(){return 0}function w8e(){try{return localStorage.getItem(x8e)}catch{return null}}const k8e="i6_kiosk_last_auto_export";async function eP(){const[e,t]=[m8e(),await p8e()];return g8e(e,t)}function S8e(){v8e()}function j8e(e){return/[",\n\r]/.test(e)?`"${e.replace(/"/g,'""')}"`:e}function rL(e){const t=`id,event_key,ts,device_id 3620`,n=ux(),r=e.map(a=>[a.id,a.event_key,a.ts,n].map(j8e).join(",")).join(` 3621`);return t+r+(r?` 3622`:"")}function aL(e,t){try{const n=new Blob([t],{type:"text/csv;charset=utf-8"}),r=URL.createObjectURL(n),a=document.createElement("a");a.href=r,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(r)}catch{}}async function P8e(){const e=await eP(),t=new Date().toISOString().replace(/[:.]/g,"-");aL(`kiosk-events-${ux()}-${t}.csv`,rL(e))}function I5(e){const t=n=>String(n).padStart(2,"0");return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}`}async function A8e(e=new Date){const t=I5(e),n=(await eP()).filter(r=>{try{return I5(new Date(r.ts))===t}catch{return!1}});return aL(`kiosk-events-${ux()}-${t}.csv`,rL(n)),n.length}function _8e(){try{return localStorage.getItem(k8e)}catch{return null}}const c0="i6k-x3f8n2vqp7wm4jt-metrics",M5={all:"Desde o inÃcio",hour:"Ãltima hora",today:"Hoje","24h":"Ãltimas 24h","7d":"Ãltimos 7 dias","30d":"Ãltimos 30 dias"},$5={hour:"Por hora",day:"Por dia",week:"Por semana"};function N8e(e){const t=new Date;switch(e){case"all":return null;case"hour":return new Date(t.getTime()-60*60*1e3);case"today":{const n=new Date(t);return n.setHours(0,0,0,0),n}case"24h":return new Date(t.getTime()-24*60*60*1e3);case"7d":return new Date(t.getTime()-7*24*60*60*1e3);case"30d":return new Date(t.getTime()-30*24*60*60*1e3)}}function C8e(e,t){const n=new Date(e);if(t==="hour")return n.setMinutes(0,0,0),n.toISOString();if(t==="day")return n.setHours(0,0,0,0),n.toISOString();const r=(n.getDay()+6)%7;return n.setHours(0,0,0,0),n.setDate(n.getDate()-r),n.toISOString()}function E8e(e,t){const n=new Date(e);return t==="hour"?n.toLocaleString("pt-BR",{day:"2-digit",month:"2-digit",hour:"2-digit"}):n.toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit"})}function T8e(e){if(!e)return"nunca";try{return new Date(e).toLocaleString("pt-BR",{day:"2-digit",month:"2-digit",hour:"2-digit",minute:"2-digit"})}catch{return"nunca"}}function O8e(e){if(!e)return!0;const t=new Date(e).getTime();return Number.isNaN(t)||Date.now()-t>24*60*60*1e3}const Kf=({label:e,value:t})=>s.jsxs("div",{className:"rounded-lg border border-white/10 bg-white/5 px-3 py-2",children:[s.jsx("p",{className:"text-[10px] uppercase tracking-wider text-white/45",children:e}),s.jsx("p",{className:"text-white/85 font-semibold mt-1 break-all",children:t})]}),I8e=()=>{const{token:e}=Wi(),[t,n]=S.useState([]),[r,a]=S.useState("all"),[i,o]=S.useState("day"),[l,c]=S.useState(0),[u,d]=S.useState(0),[m,p]=S.useState(!1),[f,g]=S.useState(null),[h,v]=S.useState(0),[y,x]=S.useState(null),[b,w]=S.useState(null),[k,j]=S.useState(0),[A,P]=S.useState(null);S.useEffect(()=>{if(e!==c0)return;let Q=!0;return(async()=>{const K=await eP();Q&&(n(K.slice().reverse()),j((()=>{try{const ee=localStorage.getItem("i6_kiosk_events"),ce=ee?JSON.parse(ee):[];return Array.isArray(ce)?ce.length:0}catch{return 0}})()))})(),d(JD()),v(b8e()),x(w8e()),w(_8e()),()=>{Q=!1}},[e,l]);const _=async()=>{p(!0),g(null);try{const{sent:Q,remaining:K}=await bh();g(`${Q}
3622 enviado(s) · ${K} ainda pendente(s)`)}finally{p(!1),c(Q=>Q+1)}},N=()=>{window.confirm("Apagar os leads pendentes deste totem? Exporte o CSV antes.")&&(BMe(),c(Q=>Q+1))};S.useEffect(()=>{if(e!==c0)return;const Q=K=>{(K.key==="i6_kiosk_events"||K.key===null)&&c(ee=>ee+1)};return window.addEventListener("storage",Q),()=>window.removeEventListener("storage",Q)},[e]);const C=S.useMemo(()=>{const Q=N8e(r);if(!Q)return t;const K=Q.getTime();return t.filter(ee=>new Date(ee.ts).getTime()>=K)},[t,r]),E=S.useMemo(()=>{const Q=new Map;return C.forEach(K=>Q.set(K.event_key,(Q.get(K.event_key)??0)+1)),Q},[C]),T=E.get("kiosk:start")??0,O=[...E.entries()].filter(([Q])=>Q.startsWith("q2:")).reduce((Q,[,K])=>Q+K,0),F=[...E.entries()].filter(([Q])=>Q.startsWith("results:")).reduce((Q,[,K])=>Q+K,0),D=[...E.entries()].filter(([Q])=>Q.startsWith("ebook:")).reduce((Q,[,K])=>Q+K,0),z=T?(D/T*100).toFixed(1)+"%":"â",R=lx.pt,B=Yo.pt,I=R.routing.options.map(Q=>({name:Q.label,count:E.get(`q1:${Q.id}`)??0})),H=["growth","planning","pricing"].map(Q=>({route:Q,title:R.branches[Q].text,data:R.branches[Q].options.map(K=>({name:K.label,count:E.get(`q2:${K.id}`)??0}))})),q=B.solutions.map(Q=>({name:Q.title,count:E.get(`results:${Q.id}`)??0})).sort((Q,K)=>K.count-Q.count),$=["growth","planning","pricing"].map(Q=>({name:Q==="growth"?"Growth & Customer":Q==="planning"?"Demand & Supply":"Pricing & Margin",count:E.get(`ebook:${Q}`)??0})),pe=["supply","forecast","pricing","comercial","mix","pdv"].map(Q=>({name:Q,count:E.get(`signal:${Q}`)??0})),te=S.useMemo(()=>{const Q=new Map;
3622return C.forEach(K=>{const ee=C8e(K.ts,i);Q.set(ee,(Q.get(ee)??0)+1)}),[...Q.entries()].sort(([K],[ee])=>K.localeCompare(ee)).map(([K,ee])=>({name:E8e(K,i),count:ee}))},[C,i]);if(e!==c0)return s.jsx(Rn,{to:"/",replace:!0});const de=()=>{window.confirm("Apagar todos os eventos deste totem? Esta ação não pode ser desfeita.")&&(S8e(),c(Q=>Q+1))};return s.jsxs("div",{className:"min-h-screen bg-[#0B1224] text-white",children:[s.jsxs(Na,{children:[s.jsx("title",{children:"Kiosk Metrics · infinity6"}),s.jsx("meta",{name:"robots",content:"noindex,nofollow"})]}),s.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-10",children:[s.jsx("div",{className:"mb-6 rounded-xl border border-[#F4845F]/40 bg-[#F4845F]/10 px-4 py-3 text-sm text-white/80",children:"Coleta de métricas temporariamente desativada no /demo. O painel segue disponÃvel para quando religarmos o tracking."}),s.jsxs("header",{className:"flex items-baseline justify-between mb-4 flex-wrap gap-4",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-xs tracking-[0.3em] uppercase text-[#F4845F] font-semibold mb-1",children:"infinity6 · kiosk metrics"}),s.jsx("h1",{className:"text-3xl font-bold",children:"Dashboard de eventos"}),s.jsx("p",{className:"text-white/60 text-sm mt-1",children:`${C.length} eventos no recorte · ${t.length} totais neste totem`})]}),s.jsxs("div",{className:"flex gap-3 flex-wrap",children:[s.jsx("select",{value:r,onChange:Q=>a(Q.target.value),className:"bg-white/5 border border-white/10 rounded-lg px-3 py-2 text-sm",children:Object.keys(M5).map(Q=>s.jsx("option",{value:Q,className:"bg-[#0B1224]",children:M5[Q]},Q))}),s.jsx("select",{value:i,onChange:Q=>o(Q.target.value),className:"bg-white/5 border border-white/10 rounded-lg px-3 py-2 text-sm",children:Object.keys($5).map(Q=>s.jsx("option",{value:Q,className:"bg-[#0B1224]",children:$5[Q]},Q))}),s.jsx("button",{onClick:()=>void P8e(),className:"rounded-lg px-3 py-2 text-sm bg-[#F4845F] text-[#0B1224] font-semibold hover:brightness-110 transition",children:"Exportar CSV"}),s.jsx("button",{onClick:()=>void A8e(),className:"rounded-lg px-3 py-2 text-sm bg-white/5 border border-white/10 hover:bg-white/10 transition",children:"Exportar CSV do dia"}),s.jsx("button",{onClick:de,className:"rounded-lg px-3 py-2 text-sm bg-white/5 border border-white/10 hover:bg-white/10 transition",children:"Limpar eventos"})]})]}),s.jsxs("section",{className:"mb-8 rounded-2xl border border-white/10 bg-white/5 p-4",children:[s.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-6",children:[s.jsxs("div",{children:[s.jsx("h2",{className:"text-lg font-semibold text-white/90",children:"Saúde do armazenamento"}),s.jsx("p",{className:"text-xs text-white/60 mt-1 max-w-xl",children:"Os eventos são gravados em duas cópias locais independentes (localStorage e IndexedDB) e exportados automaticamente em CSV uma vez por dia. Nenhum banco de dados envolvido."}),A&&s.jsx("p",{className:"text-xs text-[#F4845F] mt-2",children:A})]}),s.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 text-xs",children:[s.jsx(Kf,{label:"Totem",value:ux()}),s.jsx(Kf,{label:"Eventos (união)",value:String(t.length)}),s.jsx(Kf,{label:"Ãltimo export automático",value:T8e(b)}),s.jsx(Kf,{label:"Cópia remota",value:"desligada"})]})]}),t.length>0&&k===0&&s.jsx("p",{className:"mt-4 rounded-lg border border-[#F4845F]/40 bg-[#F4845F]/10 px-3 py-2 text-xs text-[#F4845F]",children:"O localStorage deste navegador foi apagado â os eventos foram recuperados do IndexedDB. Desmarque âClear Cache / Clear WebStorage on Restartâ no Fully Kiosk."}),O8e(b)&&t.length>0&&s.jsx("p",{className:"mt-3 rounded-lg border border-white/15 bg-white/5 px-3 py-2 text-xs text-white/70",children:"O export automático não roda há mais de 24h. Exporte o CSV do dia manualmente por segurança."}),y8e]}),s.jsx("section",{className:"mb-10 rounded-2xl border border-white/10 bg-white/5 p-4",children:s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("h2",{className:"text-lg font-semibold text-white/90",children:"Leads de eBook pen
3622dentes de envio"}),s.jsx("p",{className:"text-xs text-white/60 mt-1",children:"Leads capturados quando a internet falhou. Ficam neste navegador até serem reenviados ao i6 HUB."}),f&&s.jsx("p",{className:"text-xs text-[#F4845F] mt-2",children:f})]}),s.jsxs("div",{className:"flex items-center gap-4 flex-wrap",children:[s.jsx("p",{className:"text-3xl font-bold text-[#F4845F]",children:u}),s.jsx("button",{onClick:_,disabled:m||u===0,className:"rounded-lg px-3 py-2 text-sm bg-[#F4845F] text-[#0B1224] font-semibold hover:brightness-110 transition disabled:opacity-40",children:m?"Reenviandoâ¦":"Reenviar pendentes"}),s.jsx("button",{onClick:()=>HMe(),disabled:u===0,className:"rounded-lg px-3 py-2 text-sm bg-white/5 border border-white/10 hover:bg-white/10 transition disabled:opacity-40",children:"Exportar leads (CSV)"}),s.jsx("button",{onClick:N,disabled:u===0,className:"rounded-lg px-3 py-2 text-sm bg-white/5 border border-white/10 hover:bg-white/10 transition disabled:opacity-40",children:"Limpar fila"})]})]})}),s.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-4 mb-10",children:[s.jsx(od,{label:"Sessões iniciadas",value:T}),s.jsx(od,{label:"Quizzes completos",value:O}),s.jsx(od,{label:"Soluções vistas",value:F}),s.jsx(od,{label:"eBooks enviados",value:D}),s.jsx(od,{label:"Conversão sessão â eBook",value:z})]}),s.jsx(wl,{title:"Timeline",children:s.jsx("div",{className:"h-72",children:s.jsx(Gr,{children:s.jsxs(oj,{data:te,children:[s.jsx(Yr,{stroke:"#ffffff10"}),s.jsx(sn,{dataKey:"name",stroke:"#ffffff60",fontSize:11}),s.jsx(Ht,{stroke:"#ffffff60",fontSize:11,allowDecimals:!1}),s.jsx(Mt,{contentStyle:{background:"#0B1224",border:"1px solid #ffffff20"}}),s.jsx(Ur,{type:"monotone",dataKey:"count",stroke:"#F4845F",strokeWidth:2,dot:!1})]})})})}),s.jsx(wl,{title:"Q1 · Roteamento por resultado prioritário",children:s.jsx(sd,{data:I})}),H.map(Q=>s.jsx(wl,{title:`Q2 · ${Q.route.toUpperCase()} â ${Q.title}`,children:s.jsx(sd,{data:Q.data})},Q.route)),s.jsx(wl,{title:"Soluções selecionadas (ranking)",children:s.jsx(sd,{data:q})}),s.jsx(wl,{title:"eBooks solicitados",children:s.jsx(sd,{data:$})}),s.jsx(wl,{title:"i6 Signal · perguntas clicadas",children:s.jsx(sd,{data:pe})})]})]})},od=({label:e,value:t})=>s.jsxs("div",{className:"rounded-2xl bg-white/5 border border-white/10 p-4",children:[s.jsx("p",{className:"text-xs text-white/60 uppercase tracking-wider mb-2",children:e}),s.jsx("p",{className:"text-3xl font-bold text-[#F4845F]",children:t})]}),wl=({title:e,children:t})=>s.jsxs("section",{className:"mb-10",children:[s.jsx("h2",{className:"text-lg font-semibold text-white/90 mb-3",children:e}),s.jsx("div",{className:"rounded-2xl bg-white/5 border border-white/10 p-4",children:t})]}),sd=({data:e})=>s.jsx("div",{className:"h-72",children:s.jsx(Gr,{children:s.jsxs(Dp,{data:e,layout:"vertical",margin:{left:20,right:20},children:[s.jsx(Yr,{stroke:"#ffffff10"}),s.jsx(sn,{type:"number",stroke:"#ffffff60",fontSize:11,allowDecimals:!1}),s.jsx(Ht,{type:"category",dataKey:"name",stroke:"#ffffff80",fontSize:11,width:220,tick:{fill:"#ffffffcc"}}),s.jsx(Mt,{contentStyle:{background:"#0B1224",border:"1px solid #ffffff20"}}),s.jsx(fn,{dataKey:"count",fill:"#F4845F",radius:[0,4,4,0]})]})})}),M8e=({size:e="md",className:t,text:n="Loading..."})=>{const r={sm:"w-4 h-4",md:"w-8 h-8",lg:"w-12 h-12"},a={sm:"text-sm",md:"text-base",lg:"text-lg"};return s.jsxs("div",{className:ct("flex flex-col items-center justify-center gap-2",t),children:[s.jsx("div",{className:ct("animate-spin rounded-full border-2 border-gray-300 border-t-orange-500",r[e]),role:"status","aria-label":"Loading"}),n&&s.jsx("span",{className:ct("text-gray-600",a[e]),children:n})]})},$8e="https://nknsoorwqvlyxfptnfzr.supabase.co/functions/v1/track-click",F8e=e=>{const[t,n]=S.useState({status:"loading",sendId:null,destinationUrl:null,landing:null});return S.useEffect(()=>{if(!e){n({status:"invalid",sendId:null,destinationUrl:null,landing:null});return}let r=!1;return(async()=>{try{const i=await fetch($8e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:e})});
3622if(!i.ok)throw new Error(`track-click ${i.status}`);const o=await i.json();if(r)return;if(o.destination_url){n({status:"redirect",sendId:o.send_id??null,destinationUrl:o.destination_url,landing:o.landing??null});return}n({status:"landing",sendId:o.send_id??null,destinationUrl:null,landing:o.landing??null})}catch{if(r)return;n({status:"invalid",sendId:null,destinationUrl:null,landing:null})}})(),()=>{r=!0}},[e]),t},R8e=["general","demo","partnership","support"],D8e=e=>{if(!e)return"";const t=e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").trim();return R8e.includes(t)?t:t.includes("parceria")||t.includes("partner")?"partnership":t.includes("demo")?"demo":t.includes("suporte")||t.includes("support")?"support":t.includes("geral")||t.includes("general")||t.includes("consulta")?"general":""},L8e={pt:{title:"Vamos transformar seus dados em decisões",subtitle:"Conte seu objetivo ou desafio estratégico â respondemos rápido.",redirecting:"Redirecionando..."},en:{title:"Let's turn your data into decisions",subtitle:"Tell us your strategic goal or challenge â we reply fast.",redirecting:"Redirecting..."}},z8e=()=>{const{token:e}=Wi(),{language:t}=be(),{status:n,sendId:r,destinationUrl:a,landing:i}=F8e(e),o=L8e[t];S.useEffect(()=>{n==="redirect"&&a&&window.location.replace(a)},[n,a]);const l=S.useMemo(()=>({name:(i==null?void 0:i.name)||"",email:(i==null?void 0:i.email)||"",company:"",subject:D8e(i==null?void 0:i.subject),message:(i==null?void 0:i.message)||""}),[i]),c=S.useMemo(()=>r?{outreach_send_id:r}:void 0,[r]),u=s.jsxs(Na,{children:[s.jsxs("title",{children:[(i==null?void 0:i.title)||o.title," | infinity6"]}),s.jsx("meta",{name:"robots",content:"noindex, nofollow"})]});return n==="loading"||n==="redirect"?s.jsxs(s.Fragment,{children:[u,s.jsxs("div",{className:"min-h-[60vh] flex flex-col items-center justify-center gap-4",children:[s.jsx(M8e,{}),n==="redirect"&&s.jsx("p",{className:"text-white/50 text-sm",children:o.redirecting})]})]}):s.jsxs(s.Fragment,{children:[u,s.jsx("section",{className:"pt-20 pb-2",children:s.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:s.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[s.jsx("h1",{className:"text-2xl sm:text-3xl lg:text-4xl font-bold text-white leading-tight",children:(i==null?void 0:i.title)||o.title}),s.jsx("p",{className:"mt-3 text-base text-white/60",children:(i==null?void 0:i.subtitle)||o.subtitle})]})})}),s.jsx(sj,{hideHeader:!0,compact:!0}),s.jsx("section",{className:"pt-8 pb-8",children:s.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:s.jsx("div",{className:"max-w-4xl mx-auto",children:s.jsx(Vj,{defaultValues:l,leadSource:"go-landing",extraFields:c,hideCompany:!0,hideSubject:!0,compact:!0},r||"generic")})})})]})};var iL=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(iL||{});class B8e{constructor(){Kn(this,"logLevel",1);Kn(this,"logs",[]);Kn(this,"maxLogs",1e3);Kn(this,"isDevelopment",!1)}setLogLevel(t){this.logLevel=t}log(t,n,r,a){if(!this.isDevelopment||t<this.logLevel)return;const i={timestamp:new Date().toISOString(),level:t,message:n,data:r,component:a};this.logs.push(i),this.logs.length>this.maxLogs&&this.logs.shift();const o={0:"color: #888;",1:"color: #0066cc;",2:"color: #ff9900;",3:"color: #cc0000;"},c=`%c[${{0:"DEBUG",1:"INFO",2:"WARN",3:"ERROR"}[t]}] ${a?`[${a}] `:""}${n}`;r?console.log(c,o[t],r):console.log(c,o[t])}debug(t,n,r){this.isDevelopment&&this.log(0,t,n,r)}info(t,n,r){this.isDevelopment&&this.log(1,t,n,r)}warn(t,n,r){this.isDevelopment&&this.log(2,t,n,r)}error(t,n,r){this.log(3,t,n,r)}getLogs(){return this.isDevelopment?[...this.logs]:[]}clearLogs(){this.isDevelopment&&(this.logs=[])}}const vp=new B8e;class q8e extends S.Component{constructor(n){super(n);Kn(this,"handleReset",()=>{this.setState({hasError:!1,error:void 0,errorInfo:void 0})});this.state={hasError:!1}}static getDerivedStateFromError(n){return{hasError:!0,error:n}}componentDidCatch(n,r){var a,i;vp.error("React Error Boundary caught an error",{message:n.message,stack:n.stack,componentStack:r.componentStack,timestamp:new Date().toISOString()},"ErrorBoundary"),(i=(a=this.props).onError)==null||i.call(a,n,r),this.setState({errorInfo:r})}render(){return this.state.hasError?this.props.fallback?this.props.fallback:s.jsx("div",{className:"min-h-screen flex items-center justify-center p-4",children:s.jsxs(Lp,{className:"max-w-md w-full p-6 text-center",children:[s.jsxs("div",{className:"mb-4",children:[s.jsx(n7,{className:"w-12 h-12 text-red-500 mx-auto mb-2"}),s.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-2",children:"Something went wrong"}),s.jsx("p",{className:"text-gray-600 mb-4",children:"We're sorry, but something unexpected happened. Please try refreshing the page."})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs(Dn,{onClick:this.handleReset,className:"w-full bg-gradient-to-r from-orange-500 to-orange-600 hover:from-orange-600 hover:to-orange-700",children:[s.jsx(XB,{className:"w-4 h-4 mr-2"}),"Try Again"]}),s.jsx(Dn,{variant:"outline",onClick:()=>window.location.reload(),className:"w-full",children:"Refresh Page"})]}),!1]})}):this.props.children}}const U8e=()=>{const[e,t]=S.useState(!1),[n,r]=S.useState([]),[a,i]=S.useState(iL.DEBUG);return S.useState(new Set),S.useEffect(()=>{if(!e)return;const o=setInterval(()=>{r(vp.getLogs())},1e3);return()=>clearInterval(o)},[e]),n.filter(o=>o.level>=a),null},W8e=()=>(iH(),null),V8e=new bW({defaultOptions:{queries:{retry:(e,t)=>(vp.warn("Query failed, retrying...",{failureCount:e,error:t.message},"ReactQuery"),e<3)},mutations:{onError:e=>{vp.error("Mutation error occurred",{message:e.message},"ReactQuery")}}}}),u0=()=>{const e=hn(),n=`/${a8()}${e.pathname==="/"?"":e.pathname}${e.search}${e.hash}`;return s.jsx(Rn,{to:n,replace:!0})},H8e=()=>{const{lang:e}=Wi(),t=hn();if(!Yk(e)){const n=a8(),r=t.pathname.replace(/^\/[^/]+/,"");return s.jsx(Rn,{to:`/${n}${r}${t.search}${t.hash}`,replace:!0})}return s.jsxs(GM,{children:[s.jsxs(mt,{element:s.jsx(_H,{}),children:[s.jsx(mt,{index:!0,element:s.jsx(m5e,{})}),s.jsx(mt,{path:"solutions",element:s.jsx(yF,{})}),s.jsx(mt,{path:"solutions/:slug",element:s.jsx(yOe,{})}),s.jsx(mt,{path:"our-ai",element:s.jsx(BD,{})}),s.jsx(mt,{path:"success-stories",element:s.jsx(OF,{})}),s.jsx(mt,{path:"success-stories/:slug",element:s.jsx(A4e,{})}),s.jsx(mt,{path:"contact",element:s.jsx(aD,{})}),s.jsx(mt,{path:"privacy-policy",element:s.jsx(uAe,{})}),s.jsx(mt,{path:"ethics-policy",element:s.jsx(dAe,{})}
3622),s.jsx(mt,{path:"cookie-settings",element:s.jsx(Rn,{to:"../?cookies=open",replace:!0})}),s.jsx(mt,{path:"insights",element:s.jsx(h5e,{})}),s.jsx(mt,{path:"insights/:slug",element:s.jsx(A2,{})}),s.jsx(mt,{path:"i6-intelligence",element:s.jsx(ETe,{})}),s.jsx(mt,{path:"i6-intelligence/:slug",element:s.jsx(ITe,{})}),s.jsx(mt,{path:"i6-blog",element:s.jsx(DTe,{})}),s.jsx(mt,{path:"i6-blog/:slug",element:s.jsx(A2,{})}),s.jsx(mt,{path:"go/:token",element:s.jsx(z8e,{})})]}),s.jsx(mt,{path:"*",element:s.jsx(mAe,{})})]})},K8e=()=>(vp.info("App initialized",{environment:"production",timestamp:new Date().toISOString(),userAgent:navigator.userAgent,viewport:{width:window.innerWidth,height:window.innerHeight}},"App"),s.jsx(q8e,{children:s.jsx(t8,{children:s.jsx(kW,{client:V8e,children:s.jsx(bV,{basename:"/",children:s.jsx(aH,{children:s.jsxs(EM,{children:[s.jsx(W7,{}),s.jsx(xq,{}),s.jsx(W8e,{}),s.jsxs(GM,{children:[s.jsx(mt,{path:"/:lang/demo",element:s.jsx(c8e,{})}),s.jsx(mt,{path:"/demo",element:s.jsx(u0,{})}),s.jsx(mt,{path:"/demo-metrics/:token",element:s.jsx(I8e,{})}),s.jsx(mt,{path:"/:lang/*",element:s.jsx(H8e,{})}),s.jsx(mt,{path:"/",element:s.jsx(u0,{})}),s.jsx(mt,{path:"*",element:s.jsx(u0,{})})]}),s.jsx(U8e,{})]})})})})})}));aI(document.getElementById("root")).render(s.jsx(K8e,{}));export{_a as A,MB as B,Ee as L,s as j,S as r,wt as u};
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.