(function(be){typeof define=="function"&&define.amd?define(be):be()})(function(){"use strict";var WF=Object.defineProperty,UF=Object.defineProperties;var KF=Object.getOwnPropertyDescriptors;var nc=Object.getOwnPropertySymbols;var jP=Object.prototype.hasOwnProperty,OP=Object.prototype.propertyIsEnumerable;var ym=Math.pow,gm=(be,Te,De)=>Te in be?WF(be,Te,{enumerable:!0,configurable:!0,writable:!0,value:De}):be[Te]=De,T=(be,Te)=>{for(var De in Te||(Te={}))jP.call(Te,De)&&gm(be,De,Te[De]);if(nc)for(var De of nc(Te))OP.call(Te,De)&&gm(be,De,Te[De]);return be},B=(be,Te)=>UF(be,KF(Te));var te=(be,Te)=>{var De={};for(var Lt in be)jP.call(be,Lt)&&Te.indexOf(Lt)<0&&(De[Lt]=be[Lt]);if(be!=null&&nc)for(var Lt of nc(be))Te.indexOf(Lt)<0&&OP.call(be,Lt)&&(De[Lt]=be[Lt]);return De};var X=(be,Te,De)=>gm(be,typeof Te!="symbol"?Te+"":Te,De);var Zu,$r;function be(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Te={exports:{}},De={},Lt={exports:{}},ee={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var xs=Symbol.for("react.element"),IP=Symbol.for("react.portal"),VP=Symbol.for("react.fragment"),zP=Symbol.for("react.strict_mode"),BP=Symbol.for("react.profiler"),HP=Symbol.for("react.provider"),WP=Symbol.for("react.context"),UP=Symbol.for("react.forward_ref"),KP=Symbol.for("react.suspense"),YP=Symbol.for("react.memo"),GP=Symbol.for("react.lazy"),vm=Symbol.iterator;function XP(e){return e===null||typeof e!="object"?null:(e=vm&&e[vm]||e["@@iterator"],typeof e=="function"?e:null)}var bm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xm=Object.assign,_m={};function gi(e,t,n){this.props=e,this.context=t,this.refs=_m,this.updater=n||bm}gi.prototype.isReactComponent={},gi.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")},gi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function wm(){}wm.prototype=gi.prototype;function rc(e,t,n){this.props=e,this.context=t,this.refs=_m,this.updater=n||bm}var ic=rc.prototype=new wm;ic.constructor=rc,xm(ic,gi.prototype),ic.isPureReactComponent=!0;var Sm=Array.isArray,Pm=Object.prototype.hasOwnProperty,sc={current:null},km={key:!0,ref:!0,__self:!0,__source:!0};function Cm(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Pm.call(t,r)&&!km.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,H=N[j];if(0>>1;ji(ie,U))vei(lt,ie)?(N[j]=lt,N[ve]=U,j=ve):(N[j]=ie,N[J]=U,j=J);else if(vei(lt,U))N[j]=lt,N[ve]=U,j=ve;else break e}}return V}function i(N,V){var U=N.sortIndex-V.sortIndex;return U!==0?U:N.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,f=3,h=!1,m=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(N){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=N)r(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function w(N){if(y=!1,b(N),!m)if(n(l)!==null)m=!0,R(S);else{var V=n(u);V!==null&&z(w,V.startTime-N)}}function S(N,V){m=!1,y&&(y=!1,p(M),M=-1),h=!0;var U=f;try{for(b(V),d=n(l);d!==null&&(!(d.expirationTime>V)||N&&!F());){var j=d.callback;if(typeof j=="function"){d.callback=null,f=d.priorityLevel;var H=j(d.expirationTime<=V);V=e.unstable_now(),typeof H=="function"?d.callback=H:d===n(l)&&r(l),b(V)}else r(l);d=n(l)}if(d!==null)var q=!0;else{var J=n(u);J!==null&&z(w,J.startTime-V),q=!1}return q}finally{d=null,f=U,h=!1}}var k=!1,$=null,M=-1,P=5,E=-1;function F(){return!(e.unstable_now()-EN||125j?(N.sortIndex=U,t(u,N),n(l)===null&&N===n(u)&&(y?(p(M),M=-1):y=!0,z(w,U-j))):(N.sortIndex=H,t(l,N),m||h||(m=!0,R(S))),N},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(N){var V=f;return function(){var U=f;f=V;try{return N.apply(this,arguments)}finally{f=U}}}})(Am),Dm.exports=Am;var ok=Dm.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ak=_,Pt=ok;function W(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}function rt(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var We={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){We[e]=new rt(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];We[t]=new rt(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){We[e]=new rt(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){We[e]=new rt(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){We[e]=new rt(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){We[e]=new rt(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){We[e]=new rt(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){We[e]=new rt(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){We[e]=new rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var cc=/[\-:]([a-z])/g;function dc(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(cc,dc);We[t]=new rt(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(cc,dc);We[t]=new rt(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(cc,dc);We[t]=new rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){We[e]=new rt(e,1,!1,e.toLowerCase(),null,!1,!1)}),We.xlinkHref=new rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){We[e]=new rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function fc(e,t,n,r){var i=We.hasOwnProperty(t)?We[t]:null;(i!==null?i.type!==0:r||!(2a||i[o]!==s[a]){var l=` `+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{xc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ss(e):""}function fk(e){switch(e.tag){case 5:return Ss(e.type);case 16:return Ss("Lazy");case 13:return Ss("Suspense");case 19:return Ss("SuspenseList");case 0:case 2:case 15:return e=_c(e.type,!1),e;case 11:return e=_c(e.type.render,!1),e;case 1:return e=_c(e.type,!0),e;default:return""}}function wc(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 bi:return"Fragment";case vi:return"Portal";case pc:return"Profiler";case hc:return"StrictMode";case gc:return"Suspense";case yc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case jm:return(e.displayName||"Context")+".Consumer";case Nm:return(e._context.displayName||"Context")+".Provider";case mc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vc:return t=e.displayName||null,t!==null?t:wc(e.type)||"Memo";case Un:t=e._payload,e=e._init;try{return wc(e(t))}catch(n){}}return null}function hk(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 wc(t);case 8:return t===hc?"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 Kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function pk(e){var t=Vm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.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 _a(e){e._valueTracker||(e._valueTracker=pk(e))}function zm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Vm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function wa(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Sc(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function Bm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kn(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 Hm(e,t){t=t.checked,t!=null&&fc(e,"checked",t,!1)}function Pc(e,t){Hm(e,t);var n=Kn(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")?kc(e,t.type,n):t.hasOwnProperty("defaultValue")&&kc(e,t.type,Kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wm(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 kc(e,t,n){(t!=="number"||wa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ps=Array.isArray;function xi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Sa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ks(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Cs={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},mk=["Webkit","ms","Moz","O"];Object.keys(Cs).forEach(function(e){mk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Cs[t]=Cs[e]})});function qm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Cs.hasOwnProperty(e)&&Cs[e]?(""+t).trim():t+"px"}function Qm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=qm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var gk=Se({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 Ec(e,t){if(t){if(gk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(62))}}function $c(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 Mc=null;function Dc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ac=null,_i=null,wi=null;function Zm(e){if(e=Gs(e)){if(typeof Ac!="function")throw Error(W(280));var t=e.stateNode;t&&(t=Ka(t),Ac(e.stateNode,e.type,t))}}function Jm(e){_i?wi?wi.push(e):wi=[e]:_i=e}function eg(){if(_i){var e=_i,t=wi;if(wi=_i=null,Zm(e),t)for(e=0;e>>=0,e===0?32:31-(Tk(e)/Ek|0)|0}var Ea=64,$a=4194304;function Ms(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 Ma(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=Ms(a):(s&=o,s!==0&&(r=Ms(s)))}else o=n&~i,o!==0?r=Ms(o):s!==0&&(r=Ms(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ds(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xt(t),e[t]=n}function Ak(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=Is),Eg=" ",$g=!1;function Mg(e,t){switch(e){case"keyup":return oC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ki=!1;function lC(e,t){switch(e){case"compositionend":return Dg(t);case"keypress":return t.which!==32?null:($g=!0,Eg);case"textInput":return e=t.data,e===Eg&&$g?null:e;default:return null}}function uC(e,t){if(ki)return e==="compositionend"||!qc&&Mg(e,t)?(e=wg(),Fa=Wc=Qn=null,ki=!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)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=Og(n)}}function Vg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zg(){for(var e=window,t=wa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch(r){n=!1}if(n)e=t.contentWindow;else break;t=wa(e.document)}return t}function Jc(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 vC(e){var t=zg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Vg(n.ownerDocument.documentElement,n)){if(r!==null&&Jc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Ig(n,s);var o=Ig(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>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=document.documentMode,Ci=null,ed=null,Hs=null,td=!1;function Bg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;td||Ci==null||Ci!==wa(r)||(r=Ci,"selectionStart"in r&&Jc(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}),Hs&&Bs(Hs,r)||(Hs=r,r=Ha(ed,"onSelect"),0Di||(e.current=hd[Di],hd[Di]=null,Di--)}function pe(e,t){Di++,hd[Di]=e.current,e.current=t}var tr={},Xe=er(tr),dt=er(!1),Rr=tr;function Ai(e,t){var n=e.type.contextTypes;if(!n)return tr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ft(e){return e=e.childContextTypes,e!=null}function Ya(){ge(dt),ge(Xe)}function ry(e,t,n){if(Xe.current!==tr)throw Error(W(168));pe(Xe,t),pe(dt,n)}function iy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(W(108,hk(e)||"Unknown",i));return Se({},n,r)}function Ga(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||tr,Rr=Xe.current,pe(Xe,e),pe(dt,dt.current),!0}function sy(e,t,n){var r=e.stateNode;if(!r)throw Error(W(169));n?(e=iy(e,t,Rr),r.__reactInternalMemoizedMergedChildContext=e,ge(dt),ge(Xe),pe(Xe,e)):ge(dt),pe(dt,n)}var Sn=null,Xa=!1,pd=!1;function oy(e){Sn===null?Sn=[e]:Sn.push(e)}function MC(e){Xa=!0,oy(e)}function nr(){if(!pd&&Sn!==null){pd=!0;var e=0,t=ce;try{var n=Sn;for(ce=1;e>=o,i-=o,Pn=1<<32-Xt(t)+i|n<M?(P=$,$=null):P=$.sibling;var E=f(p,$,b[M],w);if(E===null){$===null&&($=P);break}e&&$&&E.alternate===null&&t(p,$),g=s(E,g,M),k===null?S=E:k.sibling=E,k=E,$=P}if(M===b.length)return n(p,$),xe&&Nr(p,M),S;if($===null){for(;MM?(P=$,$=null):P=$.sibling;var F=f(p,$,E.value,w);if(F===null){$===null&&($=P);break}e&&$&&F.alternate===null&&t(p,$),g=s(F,g,M),k===null?S=F:k.sibling=F,k=F,$=P}if(E.done)return n(p,$),xe&&Nr(p,M),S;if($===null){for(;!E.done;M++,E=b.next())E=d(p,E.value,w),E!==null&&(g=s(E,g,M),k===null?S=E:k.sibling=E,k=E);return xe&&Nr(p,M),S}for($=r(p,$);!E.done;M++,E=b.next())E=h($,p,M,E.value,w),E!==null&&(e&&E.alternate!==null&&$.delete(E.key===null?M:E.key),g=s(E,g,M),k===null?S=E:k.sibling=E,k=E);return e&&$.forEach(function(C){return t(p,C)}),xe&&Nr(p,M),S}function x(p,g,b,w){if(typeof b=="object"&&b!==null&&b.type===bi&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case xa:e:{for(var S=b.key,k=g;k!==null;){if(k.key===S){if(S=b.type,S===bi){if(k.tag===7){n(p,k.sibling),g=i(k,b.props.children),g.return=p,p=g;break e}}else if(k.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Un&&fy(S)===k.type){n(p,k.sibling),g=i(k,b.props),g.ref=Xs(p,k,b),g.return=p,p=g;break e}n(p,k);break}else t(p,k);k=k.sibling}b.type===bi?(g=Wr(b.props.children,p.mode,w,b.key),g.return=p,p=g):(w=Sl(b.type,b.key,b.props,null,p.mode,w),w.ref=Xs(p,g,b),w.return=p,p=w)}return o(p);case vi:e:{for(k=b.key;g!==null;){if(g.key===k)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){n(p,g.sibling),g=i(g,b.children||[]),g.return=p,p=g;break e}else{n(p,g);break}else t(p,g);g=g.sibling}g=ff(b,p.mode,w),g.return=p,p=g}return o(p);case Un:return k=b._init,x(p,g,k(b._payload),w)}if(Ps(b))return m(p,g,b,w);if(ws(b))return y(p,g,b,w);Ja(p,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,g!==null&&g.tag===6?(n(p,g.sibling),g=i(g,b),g.return=p,p=g):(n(p,g),g=df(b,p.mode,w),g.return=p,p=g),o(p)):n(p,g)}return x}var Ni=hy(!0),py=hy(!1),el=er(null),tl=null,ji=null,xd=null;function _d(){xd=ji=tl=null}function wd(e){var t=el.current;ge(el),e._currentValue=t}function Sd(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 Oi(e,t){tl=e,xd=ji=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ht=!0),e.firstContext=null)}function Nt(e){var t=e._currentValue;if(xd!==e)if(e={context:e,memoizedValue:t,next:null},ji===null){if(tl===null)throw Error(W(308));ji=e,tl.dependencies={lanes:0,firstContext:e}}else ji=ji.next=e;return t}var jr=null;function Pd(e){jr===null?jr=[e]:jr.push(e)}function my(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Pd(t)):(n.next=i.next,i.next=n),t.interleaved=n,Cn(e,r)}function Cn(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 rr=!1;function kd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function gy(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 Tn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ir(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ne&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Cn(e,n)}return i=r.interleaved,i===null?(t.next=t,Pd(r)):(t.next=i.next,i.next=t),r.interleaved=t,Cn(e,n)}function nl(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,Ic(e,n)}}function yy(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=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};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,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 rl(e,t,n,r){var i=e.updateQueue;rr=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var d=i.baseState;o=0,c=u=l=null,a=s;do{var f=a.lane,h=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,y=a;switch(f=t,h=n,y.tag){case 1:if(m=y.payload,typeof m=="function"){d=m.call(h,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,f=typeof m=="function"?m.call(h,d,f):m,f==null)break e;d=Se({},d,f);break e;case 2:rr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,o|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Vr|=o,e.lanes=o,e.memoizedState=d}}function vy(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Md.transition;Md.transition={};try{e(!1),t()}finally{ce=n,Md.transition=r}}function jy(){return jt().memoizedState}function RC(e,t,n){var r=lr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Oy(e))Iy(t,n);else if(n=my(e,t,n,r),n!==null){var i=st();tn(n,e,r,i),Vy(n,t,r)}}function FC(e,t,n){var r=lr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Oy(e))Iy(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,qt(a,o)){var l=t.interleaved;l===null?(i.next=i,Pd(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch(u){}finally{}n=my(e,t,i,r),n!==null&&(i=st(),tn(n,e,r,i),Vy(n,t,r))}}function Oy(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function Iy(e,t){Js=ol=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ic(e,n)}}var ul={readContext:Nt,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useInsertionEffect:qe,useLayoutEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useMutableSource:qe,useSyncExternalStore:qe,useId:qe,unstable_isNewReconciler:!1},NC={readContext:Nt,useCallback:function(e,t){return un().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:$y,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,al(4194308,4,Ay.bind(null,t,e),n)},useLayoutEffect:function(e,t){return al(4194308,4,e,t)},useInsertionEffect:function(e,t){return al(4,2,e,t)},useMemo:function(e,t){var n=un();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=un();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=RC.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=un();return e={current:e},t.memoizedState=e},useState:Ty,useDebugValue:jd,useDeferredValue:function(e){return un().memoizedState=e},useTransition:function(){var e=Ty(!1),t=e[0];return e=LC.bind(null,e[1]),un().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,i=un();if(xe){if(n===void 0)throw Error(W(407));n=n()}else{if(n=t(),Ve===null)throw Error(W(349));Ir&30||wy(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,$y(Py.bind(null,r,s,e),[e]),r.flags|=2048,no(9,Sy.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=un(),t=Ve.identifierPrefix;if(xe){var n=kn,r=Pn;n=(r&~(1<<32-Xt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=eo++,0<\/script>",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[an]=t,e[Ys]=r,ov(e,t,!1,!1),t.stateNode=e;e:{switch(o=$c(n,r),n){case"dialog":me("cancel",e),me("close",e),i=r;break;case"iframe":case"object":case"embed":me("load",e),i=r;break;case"video":case"audio":for(i=0;iHi&&(t.flags|=128,r=!0,ro(s,!1),t.lanes=4194304)}else{if(!r)if(e=il(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ro(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!xe)return Qe(t),null}else 2*Ae()-s.renderingStartTime>Hi&&n!==1073741824&&(t.flags|=128,r=!0,ro(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ae(),t.sibling=null,n=Pe.current,pe(Pe,r?n&1|2:n&1),t):(Qe(t),null);case 22:case 23:return lf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Et&1073741824&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function WC(e,t){switch(gd(t),t.tag){case 1:return ft(t.type)&&Ya(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ii(),ge(dt),ge(Xe),$d(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Td(t),null;case 13:if(ge(Pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge(Pe),null;case 4:return Ii(),null;case 10:return wd(t.type._context),null;case 22:case 23:return lf(),null;case 24:return null;default:return null}}var hl=!1,Ze=!1,UC=typeof WeakSet=="function"?WeakSet:Set,Y=null;function zi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ee(e,t,r)}else n.current=null}function Xd(e,t,n){try{n()}catch(r){Ee(e,t,r)}}var uv=!1;function KC(e,t){if(ad=La,e=zg(),Jc(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 i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(w){n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(a=o+i),d!==s||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===i&&(a=o),f===s&&++c===r&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ld={focusedElem:e,selectionRange:n},La=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,x=m.memoizedState,p=t.stateNode,g=p.getSnapshotBeforeUpdate(t.elementType===t.type?y:Zt(t.type,y),x);p.__reactInternalSnapshotBeforeUpdate=g}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(W(163))}}catch(w){Ee(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return m=uv,uv=!1,m}function io(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&Xd(t,n,s)}i=i.next}while(i!==r)}}function pl(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 qd(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 cv(e){var t=e.alternate;t!==null&&(e.alternate=null,cv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[an],delete t[Ys],delete t[fd],delete t[EC],delete t[$C])),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 dv(e){return e.tag===5||e.tag===3||e.tag===4}function fv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dv(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 Qd(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=Ua));else if(r!==4&&(e=e.child,e!==null))for(Qd(e,t,n),e=e.sibling;e!==null;)Qd(e,t,n),e=e.sibling}function Zd(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(Zd(e,t,n),e=e.sibling;e!==null;)Zd(e,t,n),e=e.sibling}var Ue=null,Jt=!1;function sr(e,t,n){for(n=n.child;n!==null;)hv(e,t,n),n=n.sibling}function hv(e,t,n){if(on&&typeof on.onCommitFiberUnmount=="function")try{on.onCommitFiberUnmount(Ta,n)}catch(a){}switch(n.tag){case 5:Ze||zi(n,t);case 6:var r=Ue,i=Jt;Ue=null,sr(e,t,n),Ue=r,Jt=i,Ue!==null&&(Jt?(e=Ue,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ue.removeChild(n.stateNode));break;case 18:Ue!==null&&(Jt?(e=Ue,n=n.stateNode,e.nodeType===8?dd(e.parentNode,n):e.nodeType===1&&dd(e,n),Ns(e)):dd(Ue,n.stateNode));break;case 4:r=Ue,i=Jt,Ue=n.stateNode.containerInfo,Jt=!0,sr(e,t,n),Ue=r,Jt=i;break;case 0:case 11:case 14:case 15:if(!Ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Xd(n,t,o),i=i.next}while(i!==r)}sr(e,t,n);break;case 1:if(!Ze&&(zi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ee(n,t,a)}sr(e,t,n);break;case 21:sr(e,t,n);break;case 22:n.mode&1?(Ze=(r=Ze)||n.memoizedState!==null,sr(e,t,n),Ze=r):sr(e,t,n);break;default:sr(e,t,n)}}function pv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new UC),t.forEach(function(r){var i=tT.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function en(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=Ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*GC(r/1960))-r,10e?16:e,ar===null)var r=!1;else{if(e=ar,ar=null,bl=0,ne&6)throw Error(W(331));var i=ne;for(ne|=4,Y=e.current;Y!==null;){var s=Y,o=s.child;if(Y.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lAe()-tf?Br(e,0):ef|=n),mt(e,t)}function Tv(e,t){t===0&&(e.mode&1?(t=$a,$a<<=1,!($a&130023424)&&($a=4194304)):t=1);var n=st();e=Cn(e,t),e!==null&&(Ds(e,t,n),mt(e,n))}function eT(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Tv(e,n)}function tT(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(W(314))}r!==null&&r.delete(t),Tv(e,n)}var Ev;Ev=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||dt.current)ht=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ht=!1,BC(e,t,n);ht=!!(e.flags&131072)}else ht=!1,xe&&t.flags&1048576&&ay(t,Qa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;fl(e,t),e=t.pendingProps;var i=Ai(t,Xe.current);Oi(t,n),i=Ad(null,t,r,e,i,n);var s=Ld();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ft(r)?(s=!0,Ga(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,kd(t),i.updater=cl,t.stateNode=i,i._reactInternals=t,Id(t,r,e,n),t=Hd(null,t,r,!0,s,n)):(t.tag=0,xe&&s&&md(t),it(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(fl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=rT(r),e=Zt(r,e),i){case 0:t=Bd(null,t,r,e,n);break e;case 1:t=ev(null,t,r,e,n);break e;case 11:t=Xy(null,t,r,e,n);break e;case 14:t=qy(null,t,r,Zt(r.type,e),n);break e}throw Error(W(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Zt(r,i),Bd(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Zt(r,i),ev(e,t,r,i,n);case 3:e:{if(tv(t),e===null)throw Error(W(387));r=t.pendingProps,s=t.memoizedState,i=s.element,gy(e,t),rl(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Vi(Error(W(423)),t),t=nv(e,t,r,n,i);break e}else if(r!==i){i=Vi(Error(W(424)),t),t=nv(e,t,r,n,i);break e}else for(Tt=Jn(t.stateNode.containerInfo.firstChild),Ct=t,xe=!0,Qt=null,n=py(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fi(),r===i){t=En(e,t,n);break e}it(e,t,r,n)}t=t.child}return t;case 5:return by(t),e===null&&vd(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,ud(r,i)?o=null:s!==null&&ud(r,s)&&(t.flags|=32),Jy(e,t),it(e,t,o,n),t.child;case 6:return e===null&&vd(t),null;case 13:return rv(e,t,n);case 4:return Cd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ni(t,null,r,n):it(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Zt(r,i),Xy(e,t,r,i,n);case 7:return it(e,t,t.pendingProps,n),t.child;case 8:return it(e,t,t.pendingProps.children,n),t.child;case 12:return it(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,pe(el,r._currentValue),r._currentValue=o,s!==null)if(qt(s.value,o)){if(s.children===i.children&&!dt.current){t=En(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=Tn(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Sd(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(W(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Sd(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}it(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Oi(t,n),i=Nt(i),r=r(i),t.flags|=1,it(e,t,r,n),t.child;case 14:return r=t.type,i=Zt(r,t.pendingProps),i=Zt(r.type,i),qy(e,t,r,i,n);case 15:return Qy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Zt(r,i),fl(e,t),t.tag=1,ft(r)?(e=!0,Ga(t)):e=!1,Oi(t,n),By(t,r,i),Id(t,r,i,n),Hd(null,t,r,!0,e,n);case 19:return sv(e,t,n);case 22:return Zy(e,t,n)}throw Error(W(156,t.tag))};function $v(e,t){return lg(e,t)}function nT(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 It(e,t,n,r){return new nT(e,t,n,r)}function cf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rT(e){if(typeof e=="function")return cf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===mc)return 11;if(e===vc)return 14}return 2}function cr(e,t){var n=e.alternate;return n===null?(n=It(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 Sl(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")cf(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case bi:return Wr(n.children,i,s,t);case hc:o=8,i|=8;break;case pc:return e=It(12,n,t,i|2),e.elementType=pc,e.lanes=s,e;case gc:return e=It(13,n,t,i),e.elementType=gc,e.lanes=s,e;case yc:return e=It(19,n,t,i),e.elementType=yc,e.lanes=s,e;case Om:return Pl(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Nm:o=10;break e;case jm:o=9;break e;case mc:o=11;break e;case vc:o=14;break e;case Un:o=16,r=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=It(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function Wr(e,t,n,r){return e=It(7,e,r,t),e.lanes=n,e}function Pl(e,t,n,r){return e=It(22,e,r,t),e.elementType=Om,e.lanes=n,e.stateNode={isHidden:!1},e}function df(e,t,n){return e=It(6,e,null,t),e.lanes=n,e}function ff(e,t,n){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function iT(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Oc(0),this.expirationTimes=Oc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Oc(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function hf(e,t,n,r,i,s,o,a,l){return e=new iT(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=It(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},kd(s),e}function sT(e,t,n){var r=3e,isStatic:!1,reducedMotion:"never"});class cT extends _.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function dT({children:e,isPresent:t}){const n=_.useId(),r=_.useRef(null),i=_.useRef({width:0,height:0,top:0,left:0}),{nonce:s}=_.useContext(vf);return _.useInsertionEffect(()=>{const{width:o,height:a,top:l,left:u}=i.current;if(t||!r.current||!o||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return s&&(c.nonce=s),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${o}px !important; height: ${a}px !important; top: ${l}px !important; left: ${u}px !important; } `),()=>{document.head.removeChild(c)}},[t]),v.jsx(cT,{isPresent:t,childRef:r,sizeRef:i,children:_.cloneElement(e,{ref:r})})}const fT=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o})=>{const a=Dl(hT),l=_.useId(),u=_.useCallback(d=>{a.set(d,!0);for(const f of a.values())if(!f)return;r&&r()},[a,r]),c=_.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:u,register:d=>(a.set(d,!1),()=>a.delete(d))}),s?[Math.random(),u]:[n,u]);return _.useMemo(()=>{a.forEach((d,f)=>a.set(f,!1))},[n]),_.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),o==="popLayout"&&(e=v.jsx(dT,{isPresent:n,children:e})),v.jsx(Al.Provider,{value:c,children:e})};function hT(){return new Map}function jv(e=!0){const t=_.useContext(Al);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=_.useId();_.useEffect(()=>{e&&i(s)},[e]);const o=_.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const Ll=e=>e.key||"";function Ov(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const bf=typeof window!="undefined",xf=bf?_.useLayoutEffect:_.useEffect,pT=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1})=>{const[a,l]=jv(o),u=_.useMemo(()=>Ov(e),[e]),c=o&&!a?[]:u.map(Ll),d=_.useRef(!0),f=_.useRef(u),h=Dl(()=>new Map),[m,y]=_.useState(u),[x,p]=_.useState(u);xf(()=>{d.current=!1,f.current=u;for(let w=0;w{const S=Ll(w),k=o&&!a?!1:u===x||c.includes(S),$=()=>{if(h.has(S))h.set(S,!0);else return;let M=!0;h.forEach(P=>{P||(M=!1)}),M&&(b==null||b(),p(f.current),o&&(l==null||l()),r&&r())};return v.jsx(fT,{isPresent:k,initial:!d.current||n?void 0:!1,custom:k?void 0:t,presenceAffectsLayout:i,mode:s,onExitComplete:k?void 0:$,children:w},S)})})},ot=e=>e;let mT=ot,_f=ot;function wf(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ur=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Mn=e=>e*1e3,Dn=e=>e/1e3,gT={skipAnimations:!1,useManualTiming:!1};function yT(e){let t=new Set,n=new Set,r=!1,i=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){s.has(u)&&(l.schedule(u),e()),u(o)}const l={schedule:(u,c=!1,d=!1)=>{const h=d&&r?t:n;return c&&s.add(u),h.has(u)||h.add(u),u},cancel:u=>{n.delete(u),s.delete(u)},process:u=>{if(o=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,i&&(i=!1,l.process(u))}};return l}const Rl=["read","resolveKeyframes","update","preRender","render","postRender"],vT=40;function Iv(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Rl.reduce((p,g)=>(p[g]=yT(s),p),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=o,h=()=>{const p=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(p-i.timestamp,vT),1),i.timestamp=p,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},m=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Rl.reduce((p,g)=>{const b=o[g];return p[g]=(w,S=!1,k=!1)=>(n||m(),b.schedule(w,S,k)),p},{}),cancel:p=>{for(let g=0;gzv[e].some(n=>!!t[n])};function bT(e){for(const t in e)Ui[t]=T(T({},Ui[t]),e[t])}const xT=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Fl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||xT.has(e)}let Bv=e=>!Fl(e);function _T(e){e&&(Bv=t=>t.startsWith("on")?!Fl(t):e(t))}try{_T(require("@emotion/is-prop-valid").default)}catch(e){}function wT(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Bv(i)||n===!0&&Fl(i)||!t&&!Fl(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function ST(e){if(typeof Proxy=="undefined")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Nl=_.createContext({});function uo(e){return typeof e=="string"||Array.isArray(e)}function jl(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Pf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],kf=["initial",...Pf];function Ol(e){return jl(e.animate)||kf.some(t=>uo(e[t]))}function Hv(e){return!!(Ol(e)||e.variants)}function PT(e,t){if(Ol(e)){const{initial:n,animate:r}=e;return{initial:n===!1||uo(n)?n:void 0,animate:uo(r)?r:void 0}}return e.inherit!==!1?t:{}}function kT(e){const{initial:t,animate:n}=PT(e,_.useContext(Nl));return _.useMemo(()=>({initial:t,animate:n}),[Wv(t),Wv(n)])}function Wv(e){return Array.isArray(e)?e.join(" "):e}const CT=Symbol.for("motionComponentSymbol");function Ki(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function TT(e,t,n){return _.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ki(n)&&(n.current=r))},[t])}const Cf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Uv="data-"+Cf("framerAppearId"),{schedule:Tf,cancel:kj}=Iv(queueMicrotask,!1),Kv=_.createContext({});function ET(e,t,n,r,i){var s,o;const{visualElement:a}=_.useContext(Nl),l=_.useContext(Vv),u=_.useContext(Al),c=_.useContext(vf).reducedMotion,d=_.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,h=_.useContext(Kv);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&$T(d.current,n,i,h);const m=_.useRef(!1);_.useInsertionEffect(()=>{f&&m.current&&f.update(n,u)});const y=n[Uv],x=_.useRef(!!y&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,y))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,y)));return xf(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Tf.render(f.render),x.current&&f.animationState&&f.animationState.animateChanges())}),_.useEffect(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)===null||p===void 0||p.call(window,y)}),x.current=!1))}),f}function $T(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Yv(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&Ki(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function Yv(e){if(e)return e.options.allowProjection!==!1?e.projection:Yv(e.parent)}function MT({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var s,o;e&&bT(e);function a(u,c){let d;const f=B(T(T({},_.useContext(vf)),u),{layoutId:DT(u)}),{isStatic:h}=f,m=kT(u),y=r(u,h);if(!h&&bf){AT();const x=LT(f);d=x.MeasureLayout,m.visualElement=ET(i,y,f,t,x.ProjectionNode)}return v.jsxs(Nl.Provider,{value:m,children:[d&&m.visualElement?v.jsx(d,T({visualElement:m.visualElement},f)):null,n(i,u,TT(y,m.visualElement,c),y,h,m.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const l=_.forwardRef(a);return l[CT]=i,l}function DT({layoutId:e}){const t=_.useContext(yf).id;return t&&e!==void 0?t+"-"+e:e}function AT(e,t){_.useContext(Vv).strict}function LT(e){const{drag:t,layout:n}=Ui;if(!t&&!n)return{};const r=T(T({},t),n);return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const RT=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ef(e){return typeof e!="string"||e.includes("-")?!1:!!(RT.indexOf(e)>-1||/[A-Z]/u.test(e))}function Gv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function $f(e,t,n,r){if(typeof t=="function"){const[i,s]=Gv(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=Gv(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const Mf=e=>Array.isArray(e),FT=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),NT=e=>Mf(e)?e[e.length-1]||0:e,Je=e=>!!(e&&e.getVelocity);function Il(e){const t=Je(e)?e.get():e;return FT(t)?t.toValue():t}function jT({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:OT(r,i,s,e),renderState:t()};return n&&(o.onMount=a=>n(T({props:r,current:a},o)),o.onUpdate=a=>n(a)),o}const Xv=e=>(t,n)=>{const r=_.useContext(Nl),i=_.useContext(Al),s=()=>jT(e,t,r,i);return n?s():Dl(s)};function OT(e,t,n,r){const i={},s=r(e,{});for(const h in s)i[h]=Il(s[h]);let{initial:o,animate:a}=e;const l=Ol(e),u=Hv(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?a:o;if(d&&typeof d!="boolean"&&!jl(d)){const h=Array.isArray(d)?d:[d];for(let m=0;mt=>typeof t=="string"&&t.startsWith(e),Qv=qv("--"),IT=qv("var(--"),Df=e=>IT(e)?VT.test(e.split("/*")[0].trim()):!1,VT=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Zv=(e,t)=>t&&typeof e=="number"?t.transform(e):e,fn=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},co=B(T({},Gi),{transform:e=>fn(0,1,e)}),Vl=B(T({},Gi),{default:1}),fo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),dr=fo("deg"),hn=fo("%"),G=fo("px"),zT=fo("vh"),BT=fo("vw"),Jv=B(T({},hn),{parse:e=>hn.parse(e)/100,transform:e=>hn.transform(e*100)}),HT={borderWidth:G,borderTopWidth:G,borderRightWidth:G,borderBottomWidth:G,borderLeftWidth:G,borderRadius:G,radius:G,borderTopLeftRadius:G,borderTopRightRadius:G,borderBottomRightRadius:G,borderBottomLeftRadius:G,width:G,maxWidth:G,height:G,maxHeight:G,top:G,right:G,bottom:G,left:G,padding:G,paddingTop:G,paddingRight:G,paddingBottom:G,paddingLeft:G,margin:G,marginTop:G,marginRight:G,marginBottom:G,marginLeft:G,backgroundPositionX:G,backgroundPositionY:G},WT={rotate:dr,rotateX:dr,rotateY:dr,rotateZ:dr,scale:Vl,scaleX:Vl,scaleY:Vl,scaleZ:Vl,skew:dr,skewX:dr,skewY:dr,distance:G,translateX:G,translateY:G,translateZ:G,x:G,y:G,z:G,perspective:G,transformPerspective:G,opacity:co,originX:Jv,originY:Jv,originZ:G},eb=B(T({},Gi),{transform:Math.round}),Af=B(T(T({},HT),WT),{zIndex:eb,size:G,fillOpacity:co,strokeOpacity:co,numOctaves:eb}),UT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},KT=Yi.length;function YT(e,t,n){let r="",i=!0;for(let s=0;s({style:{},transform:{},transformOrigin:{},vars:{}}),nb=()=>B(T({},Ff()),{attrs:{}}),Nf=e=>typeof e=="string"&&e.toLowerCase()==="svg";function rb(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const ib=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function sb(e,t,n,r){rb(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(ib.has(i)?i:Cf(i),t.attrs[i])}const zl={};function ZT(e){Object.assign(zl,e)}function ob(e,{layout:t,layoutId:n}){return Kr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!zl[e]||e==="opacity")}function jf(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(Je(i[o])||t.style&&Je(t.style[o])||ob(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}function ab(e,t,n){const r=jf(e,t,n);for(const i in e)if(Je(e[i])||Je(t[i])){const s=Yi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}function JT(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch(n){t.dimensions={x:0,y:0,width:0,height:0}}}const lb=["x","y","width","height","cx","cy","r"],e2={useVisualState:Xv({scrapeMotionValuesFromProps:ab,createRenderState:nb,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(const a in i)if(Kr.has(a)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let a=0;a{JT(n,r),ae.render(()=>{Rf(r,i,Nf(n.tagName),e.transformTemplate),sb(n,r)})})}})},t2={useVisualState:Xv({scrapeMotionValuesFromProps:jf,createRenderState:Ff})};function ub(e,t,n){for(const r in t)!Je(t[r])&&!ob(r,n)&&(e[r]=t[r])}function n2({transformTemplate:e},t){return _.useMemo(()=>{const n=Ff();return Lf(n,t,e),Object.assign({},n.vars,n.style)},[t])}function r2(e,t){const n=e.style||{},r={};return ub(r,n,e),Object.assign(r,n2(e,t)),r}function i2(e,t){const n={},r=r2(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function s2(e,t,n,r){const i=_.useMemo(()=>{const s=nb();return Rf(s,t,Nf(r),e.transformTemplate),B(T({},s.attrs),{style:T({},s.style)})},[t]);if(e.style){const s={};ub(s,e.style,e),i.style=T(T({},s),i.style)}return i}function o2(e=!1){return(n,r,i,{latestValues:s},o)=>{const l=(Ef(n)?s2:i2)(r,s,o,n),u=wT(r,typeof n=="string",e),c=n!==_.Fragment?B(T(T({},u),l),{ref:i}):{},{children:d}=r,f=_.useMemo(()=>Je(d)?d.get():d,[d]);return _.createElement(n,B(T({},c),{children:f}))}}function a2(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s=Ef(r)?e2:t2,o=B(T({},s),{preloadedFeatures:e,useRender:o2(i),createVisualElement:t,Component:r});return MT(o)}}function cb(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rwindow.ScrollTimeline!==void 0);class l2{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(db()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class u2 extends l2{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Of(e,t){return e?e[t]||e.default||e:void 0}const If=2e4;function fb(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=If?1/0:t}function Vf(e){return typeof e=="function"}function hb(e,t){e.timeline=t,e.onfinish=null}const zf=e=>Array.isArray(e)&&typeof e[0]=="number",c2={linearEasing:void 0};function d2(e,t){const n=wf(e);return()=>{var r;return(r=c2[t])!==null&&r!==void 0?r:n()}}const Hl=d2(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),pb=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Bf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ho([0,.65,.55,1]),circOut:ho([.55,0,1,.45]),backIn:ho([.31,.01,.66,-.59]),backOut:ho([.33,1.53,.69,.99])};function gb(e,t){if(e)return typeof e=="function"&&Hl()?pb(e,t):zf(e)?ho(e):Array.isArray(e)?e.map(n=>gb(n,t)||Bf.easeOut):Bf[e]}const nn={x:!1,y:!1};function yb(){return nn.x||nn.y}function vb(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function bb(e,t){const n=vb(e),r=new AbortController,i=B(T({passive:!0},t),{signal:r.signal});return[n,i,()=>r.abort()]}function xb(e){return t=>{t.pointerType==="touch"||yb()||e(t)}}function f2(e,t,n={}){const[r,i,s]=bb(e,n),o=xb(a=>{const{target:l}=a,u=t(a);if(typeof u!="function"||!l)return;const c=xb(d=>{u(d),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,i)});return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const _b=(e,t)=>t?e===t?!0:_b(e,t.parentElement):!1,Hf=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,h2=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function p2(e){return h2.has(e.tagName)||e.tabIndex!==-1}const po=new WeakSet;function wb(e){return t=>{t.key==="Enter"&&e(t)}}function Wf(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const m2=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=wb(()=>{if(po.has(n))return;Wf(n,"down");const i=wb(()=>{Wf(n,"up")}),s=()=>Wf(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Sb(e){return Hf(e)&&!yb()}function g2(e,t,n={}){const[r,i,s]=bb(e,n),o=a=>{const l=a.currentTarget;if(!Sb(a)||po.has(l))return;po.add(l);const u=t(a),c=(h,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!Sb(h)||!po.has(l))&&(po.delete(l),typeof u=="function"&&u(h,{success:m}))},d=h=>{c(h,n.useGlobalTarget||_b(l,h.target))},f=h=>{c(h,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",f,i)};return r.forEach(a=>{!p2(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),a.addEventListener("focus",u=>m2(u,i),i)}),s}function y2(e){return e==="x"||e==="y"?nn[e]?null:(nn[e]=!0,()=>{nn[e]=!1}):nn.x||nn.y?null:(nn.x=nn.y=!0,()=>{nn.x=nn.y=!1})}const Pb=new Set(["width","height","top","left","right","bottom",...Yi]);let Wl;function v2(){Wl=void 0}const pn={now:()=>(Wl===void 0&&pn.set(ze.isProcessing||gT.useManualTiming?ze.timestamp:performance.now()),Wl),set:e=>{Wl=e,queueMicrotask(v2)}};function Uf(e,t){e.indexOf(t)===-1&&e.push(t)}function Kf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Yf{constructor(){this.subscriptions=[]}add(t){return Uf(this.subscriptions,t),()=>Kf(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s!isNaN(parseFloat(e));class x2{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=pn.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=pn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=b2(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Yf);const r=this.events[t].add(n);return t==="change"?()=>{r(),ae.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=pn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>kb)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,kb);return Gf(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function An(e,t){return new x2(e,t)}function _2(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,An(n))}function w2(e,t){let o=Bl(e,t)||{},{transitionEnd:r={},transition:i={}}=o,s=te(o,["transitionEnd","transition"]);s=T(T({},s),r);for(const a in s){const l=NT(s[a]);_2(e,a,l)}}function S2(e){return!!(Je(e)&&e.add)}function Xf(e,t){const n=e.getValue("willChange");if(S2(n))return n.add(t)}function Cb(e){return e.props[Uv]}const Tb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,P2=1e-7,k2=12;function C2(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=Tb(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>P2&&++aC2(s,0,1,e,n);return s=>s===0||s===1?s:Tb(i(s),t,r)}const Eb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,$b=e=>t=>1-e(1-t),Mb=mo(.33,1.53,.69,.99),qf=$b(Mb),Db=Eb(qf),Ab=e=>(e*=2)<1?.5*qf(e):.5*(2-Math.pow(2,-10*(e-1))),Qf=e=>1-Math.sin(Math.acos(e)),Lb=$b(Qf),Rb=Eb(Qf),Fb=e=>/^0[^.\s]+$/u.test(e);function T2(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Fb(e):!0}const go=e=>Math.round(e*1e5)/1e5,Zf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function E2(e){return e==null}const $2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Jf=(e,t)=>n=>!!(typeof n=="string"&&$2.test(n)&&n.startsWith(e)||t&&!E2(n)&&Object.prototype.hasOwnProperty.call(n,t)),Nb=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(Zf);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},M2=e=>fn(0,255,e),eh=B(T({},Gi),{transform:e=>Math.round(M2(e))}),Yr={test:Jf("rgb","red"),parse:Nb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+eh.transform(e)+", "+eh.transform(t)+", "+eh.transform(n)+", "+go(co.transform(r))+")"};function D2(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const th={test:Jf("#"),parse:D2,transform:Yr.transform},Xi={test:Jf("hsl","hue"),parse:Nb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+hn.transform(go(t))+", "+hn.transform(go(n))+", "+go(co.transform(r))+")"},et={test:e=>Yr.test(e)||th.test(e)||Xi.test(e),parse:e=>Yr.test(e)?Yr.parse(e):Xi.test(e)?Xi.parse(e):th.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Yr.transform(e):Xi.transform(e)},A2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function L2(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Zf))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(A2))===null||n===void 0?void 0:n.length)||0)>0}const jb="number",Ob="color",R2="var",F2="var(",Ib="${}",N2=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function yo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(N2,l=>(et.test(l)?(r.color.push(s),i.push(Ob),n.push(et.parse(l))):l.startsWith(F2)?(r.var.push(s),i.push(R2),n.push(l)):(r.number.push(s),i.push(jb),n.push(parseFloat(l))),++s,Ib)).split(Ib);return{values:n,split:a,indexes:r,types:i}}function Vb(e){return yo(e).values}function zb(e){const{split:t,types:n}=yo(e),r=t.length;return i=>{let s="";for(let o=0;otypeof e=="number"?0:e;function O2(e){const t=Vb(e);return zb(e)(t.map(j2))}const fr={test:L2,parse:Vb,createTransformer:zb,getAnimatableNone:O2},I2=new Set(["brightness","contrast","saturate","opacity"]);function V2(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Zf)||[];if(!r)return e;const i=n.replace(r,"");let s=I2.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const z2=/\b([a-z-]*)\(.*?\)/gu,nh=B(T({},fr),{getAnimatableNone:e=>{const t=e.match(z2);return t?t.map(V2).join(" "):e}}),B2=B(T({},Af),{color:et,backgroundColor:et,outlineColor:et,fill:et,stroke:et,borderColor:et,borderTopColor:et,borderRightColor:et,borderBottomColor:et,borderLeftColor:et,filter:nh,WebkitFilter:nh}),rh=e=>B2[e];function Bb(e,t){let n=rh(e);return n!==nh&&(n=fr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const H2=new Set(["auto","none","0"]);function W2(e,t,n){let r=0,i;for(;re===Gi||e===G,Wb=(e,t)=>parseFloat(e.split(", ")[t]),Ub=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Wb(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?Wb(s[1],e):0}},U2=new Set(["x","y","z"]),K2=Yi.filter(e=>!U2.has(e));function Y2(e){const t=[];return K2.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const qi={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Ub(4,13),y:Ub(5,14)};qi.translateX=qi.x,qi.translateY=qi.y;const Gr=new Set;let ih=!1,sh=!1;function Kb(){if(sh){const e=Array.from(Gr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Y2(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}sh=!1,ih=!1,Gr.forEach(e=>e.complete()),Gr.clear()}function Yb(){Gr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(sh=!0)})}function G2(){Yb(),Kb()}class oh{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Gr.add(this),ih||(ih=!0,ae.read(Yb),ae.resolveKeyframes(Kb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),X2=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function q2(e){const t=X2.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n!=null?n:r}`,i]}function Xb(e,t,n=1){const[r,i]=q2(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return Gb(o)?parseFloat(o):o}return Df(i)?Xb(i,t,n+1):i}const qb=e=>t=>t.test(e),Qb=[Gi,G,hn,dr,BT,zT,{test:e=>e==="auto",parse:e=>e}],Zb=e=>Qb.find(qb(e));class Jb extends oh{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const e0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(fr.test(e)||e==="0")&&!e.startsWith("url("));function Q2(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function Ul(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(J2),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const eE=40;class t0{constructor(l){var u=l,{autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop"}=u,a=te(u,["autoplay","delay","type","repeat","repeatDelay","repeatType"]);this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=pn.now(),this.options=T({autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o},a),this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>eE?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&G2(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=pn.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!Z2(t,r,i,s))if(o)this.options.duration=0;else{l&&l(Ul(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved=T({keyframes:t,finalKeyframe:n},c),this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Ce=(e,t,n)=>e+(t-e)*n;function ah(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function tE({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=ah(l,a,e+1/3),s=ah(l,a,e),o=ah(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Kl(e,t){return n=>n>0?t:e}const lh=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},nE=[th,Yr,Xi],rE=e=>nE.find(t=>t.test(e));function n0(e){const t=rE(e);if(!t)return!1;let n=t.parse(e);return t===Xi&&(n=tE(n)),n}const r0=(e,t)=>{const n=n0(e),r=n0(t);if(!n||!r)return Kl(e,t);const i=T({},n);return s=>(i.red=lh(n.red,r.red,s),i.green=lh(n.green,r.green,s),i.blue=lh(n.blue,r.blue,s),i.alpha=Ce(n.alpha,r.alpha,s),Yr.transform(i))},iE=(e,t)=>n=>t(e(n)),vo=(...e)=>e.reduce(iE),uh=new Set(["none","hidden"]);function sE(e,t){return uh.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function oE(e,t){return n=>Ce(e,t,n)}function ch(e){return typeof e=="number"?oE:typeof e=="string"?Df(e)?Kl:et.test(e)?r0:uE:Array.isArray(e)?i0:typeof e=="object"?et.test(e)?r0:aE:Kl}function i0(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>ch(s)(s,t[o]));return s=>{for(let o=0;o{for(const s in r)n[s]=r[s](i);return n}}function lE(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s{const n=fr.createTransformer(t),r=yo(e),i=yo(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?uh.has(e)&&!i.values.length||uh.has(t)&&!r.values.length?sE(e,t):vo(i0(lE(r,i),i.values),n):Kl(e,t)};function s0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ce(e,t,n):ch(e)(e,t)}const cE=5;function o0(e,t,n){const r=Math.max(t-cE,0);return Gf(n-e(r),t-r)}const $e={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},a0=.001;function dE({duration:e=$e.duration,bounce:t=$e.bounce,velocity:n=$e.velocity,mass:r=$e.mass}){let i,s,o=1-t;o=fn($e.minDamping,$e.maxDamping,o),e=fn($e.minDuration,$e.maxDuration,Dn(e)),o<1?(i=u=>{const c=u*o,d=c*e,f=c-n,h=dh(u,o),m=Math.exp(-d);return a0-f/h*m},s=u=>{const d=u*o*e,f=d*n+n,h=Math.pow(o,2)*Math.pow(u,2)*e,m=Math.exp(-d),y=dh(Math.pow(u,2),o);return(-i(u)+a0>0?-1:1)*((f-h)*m)/y}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-.001+c*d},s=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=hE(i,s,a);if(e=Mn(e),isNaN(l))return{stiffness:$e.stiffness,damping:$e.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const fE=12;function hE(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function gE(e){let t=T({velocity:$e.velocity,stiffness:$e.stiffness,damping:$e.damping,mass:$e.mass,isResolvedFromDuration:!1},e);if(!l0(e,mE)&&l0(e,pE))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*fn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t=B(T({},t),{mass:$e.mass,stiffness:i,damping:s})}else{const n=dE(e);t=B(T(T({},t),n),{mass:$e.mass}),t.isResolvedFromDuration=!0}return t}function u0(e=$e.visualDuration,t=$e.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=gE(B(T({},n),{velocity:-Dn(n.velocity||0)})),m=f||0,y=u/(2*Math.sqrt(l*c)),x=o-s,p=Dn(Math.sqrt(l/c)),g=Math.abs(x)<5;r||(r=g?$e.restSpeed.granular:$e.restSpeed.default),i||(i=g?$e.restDelta.granular:$e.restDelta.default);let b;if(y<1){const S=dh(p,y);b=k=>{const $=Math.exp(-y*p*k);return o-$*((m+y*p*x)/S*Math.sin(S*k)+x*Math.cos(S*k))}}else if(y===1)b=S=>o-Math.exp(-p*S)*(x+(m+p*x)*S);else{const S=p*Math.sqrt(y*y-1);b=k=>{const $=Math.exp(-y*p*k),M=Math.min(S*k,300);return o-$*((m+y*p*x)*Math.sinh(M)+S*x*Math.cosh(M))/S}}const w={calculatedDuration:h&&d||null,next:S=>{const k=b(S);if(h)a.done=S>=d;else{let $=0;y<1&&($=S===0?Mn(m):o0(b,S,k));const M=Math.abs($)<=r,P=Math.abs(o-k)<=i;a.done=M&&P}return a.value=a.done?o:k,a},toString:()=>{const S=Math.min(fb(w),If),k=pb($=>w.next(S*$).value,S,30);return S+"ms "+k}};return w}function c0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},h=M=>a!==void 0&&Ml,m=M=>a===void 0?l:l===void 0||Math.abs(a-M)-y*Math.exp(-M/r),b=M=>p+g(M),w=M=>{const P=g(M),E=b(M);f.done=Math.abs(P)<=u,f.value=f.done?p:E};let S,k;const $=M=>{h(f.value)&&(S=M,k=u0({keyframes:[f.value,m(f.value)],velocity:o0(b,M,f.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return $(0),{calculatedDuration:null,next:M=>{let P=!1;return!k&&S===void 0&&(P=!0,w(M),$(M)),S!==void 0&&M>=S?k.next(M-S):(!P&&w(M),f)}}}const yE=mo(.42,0,1,1),vE=mo(0,0,.58,1),d0=mo(.42,0,.58,1),bE=e=>Array.isArray(e)&&typeof e[0]!="number",f0={linear:ot,easeIn:yE,easeInOut:d0,easeOut:vE,circIn:Qf,circInOut:Rb,circOut:Lb,backIn:qf,backInOut:Db,backOut:Mb,anticipate:Ab},h0=e=>{if(zf(e)){_f(e.length===4);const[t,n,r,i]=e;return mo(t,n,r,i)}else if(typeof e=="string")return _f(f0[e]!==void 0),f0[e];return e};function xE(e,t,n){const r=[],i=n||s0,s=e.length-1;for(let o=0;ot[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=xE(t,r,i),l=a.length,u=c=>{if(o&&c1)for(;du(fn(e[0],e[s-1],c)):u}function _E(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ur(0,t,r);e.push(Ce(n,1,i))}}function m0(e){const t=[0];return _E(t,e.length-1),t}function wE(e,t){return e.map(n=>n*t)}function SE(e,t){return e.map(()=>t||d0).splice(0,e.length-1)}function Yl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=bE(r)?r.map(h0):h0(r),s={done:!1,value:t[0]},o=wE(n&&n.length===t.length?n:m0(t),e),a=p0(o,t,{ease:Array.isArray(i)?i:SE(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const PE=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ae.update(t,!0),stop:()=>dn(t),now:()=>ze.isProcessing?ze.timestamp:pn.now()}},kE={decay:c0,inertia:c0,tween:Yl,keyframes:Yl,spring:u0},CE=e=>e/100;class fh extends t0{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||oh,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(s,a,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,a=Vf(n)?n:kE[n]||Yl;let l,u;a!==Yl&&typeof t[0]!="number"&&(l=vo(CE,s0(t[0],t[1])),t=[0,100]);const c=a(B(T({},this.options),{keyframes:t}));s==="mirror"&&(u=a(B(T({},this.options),{keyframes:[...t].reverse(),velocity:-o}))),c.calculatedDuration===null&&(c.calculatedDuration=fb(c));const{calculatedDuration:d}=c,f=d+i,h=f*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:M}=this.options;return{done:!0,value:M[M.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return s.next(0);const{delay:f,repeat:h,repeatType:m,repeatDelay:y,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const p=this.currentTime-f*(this.speed>=0?1:-1),g=this.speed>=0?p<0:p>c;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let b=this.currentTime,w=s;if(h){const M=Math.min(this.currentTime,c)/d;let P=Math.floor(M),E=M%1;!E&&M>=1&&(E=1),E===1&&P--,P=Math.min(P,h+1),!!(P%2)&&(m==="reverse"?(E=1-E,y&&(E-=y/d)):m==="mirror"&&(w=o)),b=fn(0,1,E)*d}const S=g?{done:!1,value:l[0]}:w.next(b);a&&(S.value=a(S.value));let{done:k}=S;!g&&u!==null&&(k=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return $&&i!==void 0&&(S.value=Ul(l,this.options,i)),x&&x(S.value),$&&this.finish(),S}get duration(){const{resolved:t}=this;return t?Dn(t.calculatedDuration):0}get time(){return Dn(this.currentTime)}set time(t){t=Mn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Dn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=PE,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r!=null?r:this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const TE=new Set(["opacity","clipPath","filter","transform"]);function EE(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=gb(a,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const $E=wf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Gl=10,ME=2e4;function DE(e){return Vf(e.type)||e.type==="spring"||!mb(e.ease)}function AE(e,t){const n=new fh(B(T({},t),{keyframes:e,repeat:0,delay:0,isGenerator:!0}));let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&sthis.onKeyframesResolved(o,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof s=="string"&&Hl()&&LE(s)&&(s=g0[s]),DE(this.options)){const d=this.options,{onComplete:f,onUpdate:h,motionValue:m,element:y}=d,x=te(d,["onComplete","onUpdate","motionValue","element"]),p=AE(t,x);t=p.keyframes,t.length===1&&(t[1]=t[0]),r=p.duration,i=p.times,s=p.ease,o="keyframes"}const c=EE(a.owner.current,l,t,B(T({},this.options),{duration:r,times:i,ease:s}));return c.startTime=u!=null?u:this.calcStartTime(),this.pendingTimeline?(hb(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;a.set(Ul(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Dn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Dn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Mn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return ot;const{animation:r}=n;hb(r,t)}return ot}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const u=this.options,{motionValue:c,onUpdate:d,onComplete:f,element:h}=u,m=te(u,["motionValue","onUpdate","onComplete","element"]),y=new fh(B(T({},m),{keyframes:r,duration:i,type:s,ease:o,times:a,isGenerator:!0})),x=Mn(this.time);c.setWithVelocity(y.sample(x-Gl).value,y.sample(x).value,Gl)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return $E()&&r&&TE.has(r)&&!l&&!u&&!i&&s!=="mirror"&&o!==0&&a!=="inertia"}}const RE={type:"spring",stiffness:500,damping:25,restSpeed:10},FE=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),NE={type:"keyframes",duration:.8},jE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},OE=(e,{keyframes:t})=>t.length>2?NE:Kr.has(e)?e.startsWith("scale")?FE(t[1]):RE:jE;function IE(d){var f=d,{when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u}=f,c=te(f,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return!!Object.keys(c).length}const hh=(e,t,n,r={},i,s)=>o=>{const a=Of(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Mn(l);let c=B(T({keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity()},a),{delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i});IE(a)||(c=T(T({},c),OE(e,c))),c.duration&&(c.duration=Mn(c.duration)),c.repeatDelay&&(c.repeatDelay=Mn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!s&&t.get()!==void 0){const f=Ul(c.keyframes,a);if(f!==void 0)return ae.update(()=>{c.onUpdate(f),c.onComplete()}),new u2([])}return!s&&y0.supports(c)?new y0(c):new fh(c)};function VE({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function v0(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let d=t,{transition:o=e.getDefaultTransition(),transitionEnd:a}=d,l=te(d,["transition","transitionEnd"]);r&&(o=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const h=e.getValue(f,(s=e.latestValues[f])!==null&&s!==void 0?s:null),m=l[f];if(m===void 0||c&&VE(c,f))continue;const y=T({delay:n},Of(o||{},f));let x=!1;if(window.MotionHandoffAnimation){const g=Cb(e);if(g){const b=window.MotionHandoffAnimation(g,f,ae);b!==null&&(y.startTime=b,x=!0)}}Xf(e,f),h.start(hh(f,h,m,e.shouldReduceMotion&&Pb.has(f)?{type:!1}:y,e,x));const p=h.animation;p&&u.push(p)}return a&&Promise.all(u).then(()=>{ae.update(()=>{a&&w2(e,a)})}),u}function ph(e,t,n={}){var r;const i=Bl(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(v0(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=s;return zE(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[u,c]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>c())}else return Promise.all([o(),a(n.delay)])}function zE(e,t,n=0,r=0,i=1,s){const o=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(BE).forEach((u,c)=>{u.notify("AnimationStart",t),o.push(ph(u,t,B(T({},s),{delay:n+l(c)})).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function BE(e,t){return e.sortNodePosition(t)}function HE(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>ph(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=ph(e,t,n);else{const i=typeof t=="function"?Bl(e,t,n.custom):t;r=Promise.all(v0(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const WE=kf.length;function b0(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?b0(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>HE(e,n,r)))}function GE(e){let t=YE(e),n=x0(),r=!0;const i=l=>(u,c)=>{var d;const f=Bl(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const h=f,{transition:m,transitionEnd:y}=h,x=te(h,["transition","transitionEnd"]);u=T(T(T({},u),x),y)}return u};function s(l){t=l(e)}function o(l){const{props:u}=e,c=b0(e.parent)||{},d=[],f=new Set;let h={},m=1/0;for(let x=0;xm&&w,P=!1;const E=Array.isArray(b)?b:[b];let F=E.reduce(i(p),{});S===!1&&(F={});const{prevResolvedValues:C={}}=g,I=T(T({},C),F),A=z=>{M=!0,f.has(z)&&(P=!0,f.delete(z)),g.needsAnimating[z]=!0;const N=e.getValue(z);N&&(N.liveStyle=!1)};for(const z in I){const N=F[z],V=C[z];if(h.hasOwnProperty(z))continue;let U=!1;Mf(N)&&Mf(V)?U=!cb(N,V):U=N!==V,U?N!=null?A(z):f.add(z):N!==void 0&&f.has(z)?A(z):g.protectedKeys[z]=!0}g.prevProp=b,g.prevResolvedValues=F,g.isActive&&(h=T(T({},h),F)),r&&e.blockInitialAnimation&&(M=!1),M&&(!(k&&$)||P)&&d.push(...E.map(z=>({animation:z,options:{type:p}})))}if(f.size){const x={};f.forEach(p=>{const g=e.getBaseTarget(p),b=e.getValue(p);b&&(b.liveStyle=!0),x[p]=g!=null?g:null}),d.push({animation:x})}let y=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var h;return(h=f.animationState)===null||h===void 0?void 0:h.setActive(l,u)}),n[l].isActive=u;const d=o(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=x0(),r=!0}}}function XE(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!cb(t,e):!1}function Xr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function x0(){return{animate:Xr(!0),whileInView:Xr(),whileHover:Xr(),whileTap:Xr(),whileDrag:Xr(),whileFocus:Xr(),exit:Xr()}}class hr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class qE extends hr{constructor(t){super(t),t.animationState||(t.animationState=GE(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();jl(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let QE=0;class ZE extends hr{constructor(){super(...arguments),this.id=QE++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const JE={animation:{Feature:qE},exit:{Feature:ZE}};function bo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function xo(e){return{point:{x:e.pageX,y:e.pageY}}}const e$=e=>t=>Hf(t)&&e(t,xo(t));function _o(e,t,n,r){return bo(e,t,e$(n),r)}const _0=(e,t)=>Math.abs(e-t);function t$(e,t){const n=_0(e.x,t.x),r=_0(e.y,t.y);return Math.sqrt(ym(n,2)+ym(r,2))}class w0{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=gh(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=t$(d.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:m}=d,{timestamp:y}=ze;this.history.push(B(T({},m),{timestamp:y}));const{onStart:x,onMove:p}=this.handlers;f||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=mh(f,this.transformPagePoint),ae.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:h,onSessionEnd:m,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=gh(d.type==="pointercancel"?this.lastMoveEventInfo:mh(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,x),m&&m(d,x)},!Hf(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=xo(t),a=mh(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=ze;this.history=[B(T({},l),{timestamp:u})];const{onSessionStart:c}=n;c&&c(t,gh(a,this.history)),this.removeListeners=vo(_o(this.contextWindow,"pointermove",this.handlePointerMove),_o(this.contextWindow,"pointerup",this.handlePointerUp),_o(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),dn(this.updatePoint)}}function mh(e,t){return t?{point:t(e.point)}:e}function S0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function gh({point:e},t){return{point:e,delta:S0(e,P0(t)),offset:S0(e,n$(t)),velocity:r$(t,.1)}}function n$(e){return e[0]}function P0(e){return e[e.length-1]}function r$(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=P0(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Mn(t)));)n--;if(!r)return{x:0,y:0};const s=Dn(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const k0=1e-4,i$=1-k0,s$=1+k0,C0=.01,o$=0-C0,a$=0+C0;function $t(e){return e.max-e.min}function l$(e,t,n){return Math.abs(e-t)<=n}function T0(e,t,n,r=.5){e.origin=r,e.originPoint=Ce(t.min,t.max,e.origin),e.scale=$t(n)/$t(t),e.translate=Ce(n.min,n.max,e.origin)-e.originPoint,(e.scale>=i$&&e.scale<=s$||isNaN(e.scale))&&(e.scale=1),(e.translate>=o$&&e.translate<=a$||isNaN(e.translate))&&(e.translate=0)}function wo(e,t,n,r){T0(e.x,t.x,n.x,r?r.originX:void 0),T0(e.y,t.y,n.y,r?r.originY:void 0)}function E0(e,t,n){e.min=n.min+t.min,e.max=e.min+$t(t)}function u$(e,t,n){E0(e.x,t.x,n.x),E0(e.y,t.y,n.y)}function $0(e,t,n){e.min=t.min-n.min,e.max=e.min+$t(t)}function So(e,t,n){$0(e.x,t.x,n.x),$0(e.y,t.y,n.y)}function c$(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Ce(n,e,r.max):Math.min(e,n)),e}function M0(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function d$(e,{top:t,left:n,bottom:r,right:i}){return{x:M0(e.x,n,i),y:M0(e.y,t,r)}}function D0(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Ur(t.min,t.max-r,e.min):r>i&&(n=Ur(e.min,e.max-i,t.min)),fn(0,1,n)}function p$(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const yh=.35;function m$(e=yh){return e===!1?e=0:e===!0&&(e=yh),{x:A0(e,"left","right"),y:A0(e,"top","bottom")}}function A0(e,t,n){return{min:L0(e,t),max:L0(e,n)}}function L0(e,t){return typeof e=="number"?e:e[t]||0}const R0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qi=()=>({x:R0(),y:R0()}),F0=()=>({min:0,max:0}),Le=()=>({x:F0(),y:F0()});function Vt(e){return[e("x"),e("y")]}function N0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function g$({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function y$(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function vh(e){return e===void 0||e===1}function bh({scale:e,scaleX:t,scaleY:n}){return!vh(e)||!vh(t)||!vh(n)}function qr(e){return bh(e)||j0(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function j0(e){return O0(e.x)||O0(e.y)}function O0(e){return e&&e!=="0%"}function Xl(e,t,n){const r=e-n,i=t*r;return n+i}function I0(e,t,n,r,i){return i!==void 0&&(e=Xl(e,i,r)),Xl(e,n,r)+t}function xh(e,t=0,n=1,r,i){e.min=I0(e.min,t,n,r,i),e.max=I0(e.max,t,n,r,i)}function V0(e,{x:t,y:n}){xh(e.x,t.translate,t.scale,t.originPoint),xh(e.y,n.translate,n.scale,n.originPoint)}const z0=.999999999999,B0=1.0000000000001;function v$(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;az0&&(t.x=1),t.yz0&&(t.y=1)}function Zi(e,t){e.min=e.min+t,e.max=e.max+t}function H0(e,t,n,r,i=.5){const s=Ce(e.min,e.max,i);xh(e,t,n,s,r)}function Ji(e,t){H0(e.x,t.x,t.scaleX,t.scale,t.originX),H0(e.y,t.y,t.scaleY,t.scale,t.originY)}function W0(e,t){return N0(y$(e.getBoundingClientRect(),t))}function b$(e,t,n){const r=W0(e,n),{scroll:i}=t;return i&&(Zi(r.x,i.offset.x),Zi(r.y,i.offset.y)),r}const U0=({current:e})=>e?e.ownerDocument.defaultView:null,x$=new WeakMap;class _${constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Le(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(xo(c).point)},s=(c,d)=>{const{drag:f,dragPropagation:h,onDragStart:m}=this.getProps();if(f&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=y2(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Vt(x=>{let p=this.getAxisMotionValue(x).get()||0;if(hn.test(p)){const{projection:g}=this.visualElement;if(g&&g.layout){const b=g.layout.layoutBox[x];b&&(p=$t(b)*(parseFloat(p)/100))}}this.originPoint[x]=p}),m&&ae.postRender(()=>m(c,d)),Xf(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},o=(c,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:m,onDrag:y}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:x}=d;if(h&&this.currentDirection===null){this.currentDirection=w$(x),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),y&&y(c,d)},a=(c,d)=>this.stop(c,d),l=()=>Vt(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new w0(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:U0(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&ae.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!ql(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=c$(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&Ki(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=d$(i.layoutBox,n):this.constraints=!1,this.elastic=m$(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Vt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=p$(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ki(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=b$(r,i.root,this.visualElement.getTransformPagePoint());let o=f$(i.layout.layoutBox,s);if(n){const a=n(g$(o));this.hasMutatedConstraints=!!a,a&&(o=N0(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Vt(c=>{if(!ql(c,n,this.currentDirection))return;let d=l[c]||{};o&&(d={min:0,max:0});const f=i?200:1e6,h=i?40:1e7,m=T(T({type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10},s),d);return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Xf(this.visualElement,t),r.start(hh(t,r,0,n,this.visualElement,!1))}stopAnimation(){Vt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Vt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Vt(n=>{const{drag:r}=this.getProps();if(!ql(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-Ce(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ki(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Vt(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=h$({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Vt(o=>{if(!ql(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(Ce(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;x$.set(this.visualElement,this);const t=this.visualElement.current,n=_o(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Ki(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ae.read(r);const o=bo(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Vt(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=yh,dragMomentum:a=!0}=t;return B(T({},t),{drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a})}}function ql(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function w$(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class S$ extends hr{constructor(t){super(t),this.removeGroupControls=ot,this.removeListeners=ot,this.controls=new _$(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ot}unmount(){this.removeGroupControls(),this.removeListeners()}}const K0=e=>(t,n)=>{e&&ae.postRender(()=>e(t,n))};class P$ extends hr{constructor(){super(...arguments),this.removePointerDownListener=ot}onPointerDown(t){this.session=new w0(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:U0(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:K0(t),onStart:K0(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&ae.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=_o(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ql={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Y0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Po={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(G.test(e))e=parseFloat(e);else return e;const n=Y0(e,t.target.x),r=Y0(e,t.target.y);return`${n}% ${r}%`}},k$={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=fr.parse(e);if(i.length>5)return r;const s=fr.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=Ce(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class C$ extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;ZT(T$),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions(B(T({},s.options),{onExitComplete:()=>this.safeToRemove()}))),Ql.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||ae.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Tf.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function G0(e){const[t,n]=jv(),r=_.useContext(yf);return v.jsx(C$,B(T({},e),{layoutGroup:r,switchLayoutGroup:_.useContext(Kv),isPresent:t,safeToRemove:n}))}const T$={borderRadius:B(T({},Po),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Po,borderTopRightRadius:Po,borderBottomLeftRadius:Po,borderBottomRightRadius:Po,boxShadow:k$};function E$(e,t,n){const r=Je(e)?e:An(e);return r.start(hh("",r,t,n)),r.animation}function $$(e){return e instanceof SVGElement&&e.tagName!=="svg"}const M$=(e,t)=>e.depth-t.depth;class D${constructor(){this.children=[],this.isDirty=!1}add(t){Uf(this.children,t),this.isDirty=!0}remove(t){Kf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(M$),this.isDirty=!1,this.children.forEach(t)}}function A$(e,t){const n=pn.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(dn(r),e(s-t))};return ae.read(r,!0),()=>dn(r)}const X0=["TopLeft","TopRight","BottomLeft","BottomRight"],L$=X0.length,q0=e=>typeof e=="string"?parseFloat(e):e,Q0=e=>typeof e=="number"||G.test(e);function R$(e,t,n,r,i,s){i?(e.opacity=Ce(0,n.opacity!==void 0?n.opacity:1,F$(r)),e.opacityExit=Ce(t.opacity!==void 0?t.opacity:1,0,N$(r))):s&&(e.opacity=Ce(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;ort?1:n(Ur(e,t,r))}function ex(e,t){e.min=t.min,e.max=t.max}function zt(e,t){ex(e.x,t.x),ex(e.y,t.y)}function tx(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nx(e,t,n,r,i){return e-=t,e=Xl(e,1/n,r),i!==void 0&&(e=Xl(e,1/i,r)),e}function j$(e,t=0,n=1,r=.5,i,s=e,o=e){if(hn.test(t)&&(t=parseFloat(t),t=Ce(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Ce(s.min,s.max,r);e===s&&(a-=t),e.min=nx(e.min,t,n,a,i),e.max=nx(e.max,t,n,a,i)}function rx(e,t,[n,r,i],s,o){j$(e,t[n],t[r],t[i],t.scale,s,o)}const O$=["x","scaleX","originX"],I$=["y","scaleY","originY"];function ix(e,t,n,r){rx(e.x,t,O$,n?n.x:void 0,r?r.x:void 0),rx(e.y,t,I$,n?n.y:void 0,r?r.y:void 0)}function sx(e){return e.translate===0&&e.scale===1}function ox(e){return sx(e.x)&&sx(e.y)}function ax(e,t){return e.min===t.min&&e.max===t.max}function V$(e,t){return ax(e.x,t.x)&&ax(e.y,t.y)}function lx(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ux(e,t){return lx(e.x,t.x)&&lx(e.y,t.y)}function cx(e){return $t(e.x)/$t(e.y)}function dx(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class z${constructor(){this.members=[]}add(t){Uf(this.members,t),t.scheduleRender()}remove(t){if(Kf(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function B$(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:h,skewY:m}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),h&&(r+=`skewX(${h}deg) `),m&&(r+=`skewY(${m}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Qr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ko=typeof window!="undefined"&&window.MotionDebug!==void 0,_h=["","X","Y","Z"],H$={visibility:"hidden"},fx=1e3;let W$=0;function wh(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function hx(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Cb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ae,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&hx(r)}function px({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=W$++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ko&&(Qr.totalNodes=Qr.resolvedTargetDeltas=Qr.recalculatedProjection=0),this.nodes.forEach(Y$),this.nodes.forEach(Z$),this.nodes.forEach(J$),this.nodes.forEach(G$),ko&&window.MotionDebug.record(Qr)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=A$(f,250),Ql.hasAnimatedSinceResize&&(Ql.hasAnimatedSinceResize=!1,this.nodes.forEach(gx))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||iM,{onLayoutAnimationStart:x,onLayoutAnimationComplete:p}=c.getProps(),g=!this.targetLayout||!ux(this.targetLayout,m)||h,b=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||b||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,b);const w=B(T({},Of(y,"layout")),{onPlay:x,onComplete:p});(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else f||gx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,dn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(eM),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&hx(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const S=w/1e3;yx(d.x,o.x,S),yx(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(So(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),nM(this.relativeTarget,this.relativeTargetOrigin,f,S),b&&V$(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=Le()),zt(b,this.relativeTarget)),y&&(this.animationValues=c,R$(c,u,this.latestValues,S,g,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(dn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ae.update(()=>{Ql.hasAnimatedSinceResize=!0,this.currentAnimation=E$(0,fx,B(T({},o),{onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&wx(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Le();const d=$t(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const f=$t(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}zt(a,l),Ji(a,c),wo(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new z$),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&wh("z",o,u,this.animationValues);for(let c=0;c<_h.length;c++)wh(`rotate${_h[c]}`,o,u,this.animationValues),wh(`skew${_h[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}getProjectionStyles(o){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return H$;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Il(o==null?void 0:o.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=Il(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!qr(this.latestValues)&&(y.transform=c?c({},""):"none",this.hasProjected=!1),y}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),u.transform=B$(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:h,y:m}=this.projectionDelta;u.transformOrigin=`${h.origin*100}% ${m.origin*100}% 0`,d.animationValues?u.opacity=d===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const y in zl){if(f[y]===void 0)continue;const{correct:x,applyTo:p}=zl[y],g=u.transform==="none"?f[y]:x(f[y],d);if(p){const b=p.length;for(let w=0;w{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(mx),this.root.sharedNodes.clear()}}}function U$(e){e.updateLayout()}function K$(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?Vt(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],h=$t(f);f.min=r[d].min,f.max=f.min+h}):wx(s,n.layoutBox,r)&&Vt(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],h=$t(r[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const a=Qi();wo(a,r,n.layoutBox);const l=Qi();o?wo(l,e.applyTransform(i,!0),n.measuredBox):wo(l,r,n.layoutBox);const u=!ox(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const m=Le();So(m,n.layoutBox,f.layoutBox);const y=Le();So(y,r,h.layoutBox),ux(m,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Y$(e){ko&&Qr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function G$(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function X$(e){e.clearSnapshot()}function mx(e){e.clearMeasurements()}function q$(e){e.isLayoutDirty=!1}function Q$(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function gx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Z$(e){e.resolveTargetDelta()}function J$(e){e.calcProjection()}function eM(e){e.resetSkewAndRotation()}function tM(e){e.removeLeadSnapshot()}function yx(e,t,n){e.translate=Ce(t.translate,0,n),e.scale=Ce(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function vx(e,t,n,r){e.min=Ce(t.min,n.min,r),e.max=Ce(t.max,n.max,r)}function nM(e,t,n,r){vx(e.x,t.x,n.x,r),vx(e.y,t.y,n.y,r)}function rM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const iM={duration:.45,ease:[.4,0,.1,1]},bx=e=>typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),xx=bx("applewebkit/")&&!bx("chrome/")?Math.round:ot;function _x(e){e.min=xx(e.min),e.max=xx(e.max)}function sM(e){_x(e.x),_x(e.y)}function wx(e,t,n){return e==="position"||e==="preserve-aspect"&&!l$(cx(t),cx(n),.2)}function oM(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const aM=px({attachResizeListener:(e,t)=>bo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Sh={current:void 0},Sx=px({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Sh.current){const e=new aM({});e.mount(window),e.setOptions({layoutScroll:!0}),Sh.current=e}return Sh.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),lM={pan:{Feature:P$},drag:{Feature:S$,ProjectionNode:Sx,MeasureLayout:G0}};function Px(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&ae.postRender(()=>s(t,xo(t)))}class uM extends hr{mount(){const{current:t}=this.node;t&&(this.unmount=f2(t,n=>(Px(this.node,n,"Start"),r=>Px(this.node,r,"End"))))}unmount(){}}class cM extends hr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(n){t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=vo(bo(this.node.current,"focus",()=>this.onFocus()),bo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function kx(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&ae.postRender(()=>s(t,xo(t)))}class dM extends hr{mount(){const{current:t}=this.node;t&&(this.unmount=g2(t,n=>(kx(this.node,n,"Start"),(r,{success:i})=>kx(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ph=new WeakMap,kh=new WeakMap,fM=e=>{const t=Ph.get(e.target);t&&t(e)},hM=e=>{e.forEach(fM)};function pM(n){var r=n,{root:e}=r,t=te(r,["root"]);const i=e||document;kh.has(i)||kh.set(i,{});const s=kh.get(i),o=JSON.stringify(t);return s[o]||(s[o]=new IntersectionObserver(hM,T({root:e},t))),s[o]}function mM(e,t,n){const r=pM(t);return Ph.set(e,n),r.observe(e),()=>{Ph.delete(e),r.unobserve(e)}}const gM={some:0,all:1};class yM extends hr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:gM[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return mM(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver=="undefined")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(vM(t,n))&&this.startObserver()}unmount(){}}function vM({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const bM={inView:{Feature:yM},tap:{Feature:dM},focus:{Feature:cM},hover:{Feature:uM}},xM={layout:{ProjectionNode:Sx,MeasureLayout:G0}},Ch={current:null},Cx={current:!1};function _M(){if(Cx.current=!0,!!bf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ch.current=e.matches;e.addListener(t),t()}else Ch.current=!1}const wM=[...Qb,et,fr],SM=e=>wM.find(qb(e)),Tx=new WeakMap;function PM(e,t,n){for(const r in t){const i=t[r],s=n[r];if(Je(i))e.addValue(r,i);else if(Je(s))e.addValue(r,An(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,An(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Ex=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class kM{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=oh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=pn.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),Cx.current||_M(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ch.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Tx.delete(this.current),this.projection&&this.projection.unmount(),dn(this.notifyUpdate),dn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Kr.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ae.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ui){const n=Ui[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Le()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=An(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Gb(i)||Fb(i))?i=parseFloat(i):!SM(i)&&fr.test(n)&&(i=Bb(t,n)),this.setBaseTarget(t,Je(i)?i.get():i)),Je(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=$f(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Je(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Yf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class $x extends kM{constructor(){super(...arguments),this.KeyframeResolver=Jb}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Je(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function CM(e){return window.getComputedStyle(e)}class TM extends $x{constructor(){super(...arguments),this.type="html",this.renderInstance=rb}readValueFromInstance(t,n){if(Kr.has(n)){const r=rh(n);return r&&r.default||0}else{const r=CM(t),i=(Qv(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return W0(t,n)}build(t,n,r){Lf(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return jf(t,n,r)}}class EM extends $x{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Le}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Kr.has(n)){const r=rh(n);return r&&r.default||0}return n=ib.has(n)?n:Cf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return ab(t,n,r)}build(t,n,r){Rf(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){sb(t,n,r,i)}mount(t){this.isSVGTag=Nf(t.tagName),super.mount(t)}}const $M=(e,t)=>Ef(e)?new EM(t):new TM(t,{allowProjection:e!==_.Fragment}),MM=a2(T(T(T(T({},JE),bM),lM),xM),$M),Zr=ST(MM);function Mx(e,t,n){_.useInsertionEffect(()=>e.on(t,n),[e,t,n])}function Dx(e,t){let n;const r=()=>{const{currentTime:i}=t,o=(i===null?0:i.value)/100;n!==o&&e(o),n=o};return ae.update(r,!0),()=>dn(r)}const Zl=new WeakMap;let pr;function DM(e,t){if(t){const{inlineSize:n,blockSize:r}=t[0];return{width:n,height:r}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function AM({target:e,contentRect:t,borderBoxSize:n}){var r;(r=Zl.get(e))===null||r===void 0||r.forEach(i=>{i({target:e,contentSize:t,get size(){return DM(e,n)}})})}function LM(e){e.forEach(AM)}function RM(){typeof ResizeObserver!="undefined"&&(pr=new ResizeObserver(LM))}function FM(e,t){pr||RM();const n=vb(e);return n.forEach(r=>{let i=Zl.get(r);i||(i=new Set,Zl.set(r,i)),i.add(t),pr==null||pr.observe(r)}),()=>{n.forEach(r=>{const i=Zl.get(r);i==null||i.delete(t),i!=null&&i.size||pr==null||pr.unobserve(r)})}}const Jl=new Set;let Co;function NM(){Co=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};Jl.forEach(n=>n(t))},window.addEventListener("resize",Co)}function jM(e){return Jl.add(e),Co||NM(),()=>{Jl.delete(e),!Jl.size&&Co&&(Co=void 0)}}function OM(e,t){return typeof e=="function"?jM(e):FM(e,t)}const IM=50,Ax=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),VM=()=>({time:0,x:Ax(),y:Ax()}),zM={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Lx(e,t,n,r){const i=n[t],{length:s,position:o}=zM[t],a=i.current,l=n.time;i.current=e[`scroll${o}`],i.scrollLength=e[`scroll${s}`]-e[`client${s}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=Ur(0,i.scrollLength,i.current);const u=r-l;i.velocity=u>IM?0:Gf(i.current-a,u)}function BM(e,t,n){Lx(e,"x",t,n),Lx(e,"y",t,n),t.time=n}function HM(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const i=r.getBoundingClientRect();r=r.parentElement;const s=r.getBoundingClientRect();n.x+=i.left-s.left,n.y+=i.top-s.top}else if(r instanceof SVGGraphicsElement){const{x:i,y:s}=r.getBBox();n.x+=i,n.y+=s;let o=null,a=r.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=r.parentNode;r=o}else break;return n}const Th={start:0,center:.5,end:1};function Rx(e,t,n=0){let r=0;if(e in Th&&(e=Th[e]),typeof e=="string"){const i=parseFloat(e);e.endsWith("px")?r=i:e.endsWith("%")?e=i/100:e.endsWith("vw")?r=i/100*document.documentElement.clientWidth:e.endsWith("vh")?r=i/100*document.documentElement.clientHeight:e=i}return typeof e=="number"&&(r=t*e),n+r}const WM=[0,0];function UM(e,t,n,r){let i=Array.isArray(e)?e:WM,s=0,o=0;return typeof e=="number"?i=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?i=e.split(" "):i=[e,Th[e]?e:"0"]),s=Rx(i[0],n,r),o=Rx(i[1],t),s-o}const KM={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},YM={x:0,y:0};function GM(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function XM(e,t,n){const{offset:r=KM.All}=n,{target:i=e,axis:s="y"}=n,o=s==="y"?"height":"width",a=i!==e?HM(i,e):YM,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:GM(i),u={width:e.clientWidth,height:e.clientHeight};t[s].offset.length=0;let c=!t[s].interpolate;const d=r.length;for(let f=0;fqM(e,r.target,n),update:i=>{BM(e,n,i),(r.offset||r.target)&&XM(e,n,r)},notify:()=>t(n)}}const To=new WeakMap,Fx=new WeakMap,Eh=new WeakMap,Nx=e=>e===document.documentElement?window:e;function $h(e,r={}){var i=r,{container:t=document.documentElement}=i,n=te(i,["container"]);let s=Eh.get(t);s||(s=new Set,Eh.set(t,s));const o=VM(),a=QM(t,e,o,n);if(s.add(a),!To.has(t)){const u=()=>{for(const m of s)m.measure()},c=()=>{for(const m of s)m.update(ze.timestamp)},d=()=>{for(const m of s)m.notify()},f=()=>{ae.read(u,!1,!0),ae.read(c,!1,!0),ae.update(d,!1,!0)};To.set(t,f);const h=Nx(t);window.addEventListener("resize",f,{passive:!0}),t!==document.documentElement&&Fx.set(t,OM(t,f)),h.addEventListener("scroll",f,{passive:!0})}const l=To.get(t);return ae.read(l,!1,!0),()=>{var u;dn(l);const c=Eh.get(t);if(!c||(c.delete(a),c.size))return;const d=To.get(t);To.delete(t),d&&(Nx(t).removeEventListener("scroll",d),(u=Fx.get(t))===null||u===void 0||u(),window.removeEventListener("resize",d))}}function ZM({source:e,container:t,axis:n="y"}){e&&(t=e);const r={value:0},i=$h(s=>{r.value=s[n].progress*100},{container:t,axis:n});return{currentTime:r,cancel:i}}const Mh=new Map;function jx({source:e,container:t=document.documentElement,axis:n="y"}={}){e&&(t=e),Mh.has(t)||Mh.set(t,{});const r=Mh.get(t);return r[n]||(r[n]=db()?new ScrollTimeline({source:t,axis:n}):ZM({source:t,axis:n})),r[n]}function JM(e){return e.length===2}function Ox(e){return e&&(e.target||e.offset)}function eD(e,t){return JM(e)||Ox(t)?$h(n=>{e(n[t.axis].progress,n)},t):Dx(e,jx(t))}function tD(e,t){if(e.flatten(),Ox(t))return e.pause(),$h(n=>{e.time=e.duration*n[t.axis].progress},t);{const n=jx(t);return e.attachTimeline?e.attachTimeline(n,r=>(r.pause(),Dx(i=>{r.time=r.duration*i},n))):ot}}function nD(e,r={}){var i=r,{axis:t="y"}=i,n=te(i,["axis"]);const s=T({axis:t},n);return typeof e=="function"?eD(e,s):tD(e,s)}function Ix(e,t){mT(!!(!t||t.current))}const rD=()=>({scrollX:An(0),scrollY:An(0),scrollXProgress:An(0),scrollYProgress:An(0)});function Vx(i={}){var s=i,{container:e,target:t,layoutEffect:n=!0}=s,r=te(s,["container","target","layoutEffect"]);const o=Dl(rD);return(n?xf:_.useEffect)(()=>(Ix("target",t),Ix("container",e),nD((l,{x:u,y:c})=>{o.scrollX.set(u.current),o.scrollXProgress.set(u.progress),o.scrollY.set(c.current),o.scrollYProgress.set(c.progress)},B(T({},r),{container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0}))),[e,t,JSON.stringify(r.offset)]),o}const K=({children:e})=>{const[t,n]=_.useState(!1),[r,i]=_.useState(!0),s=_.useRef(null),{scrollXProgress:o}=Vx({container:s});return Mx(o,"change",a=>{n(a>0),i(a<1)}),v.jsxs("div",{className:"relative w-full rounded-2xl bg-white shadow mb-4",children:[v.jsx(Zr.div,{initial:{opacity:0},animate:{opacity:t?1:0},className:"scroll-fader absolute left-0 top-0 z-10 h-full w-[20px] bg-gradient-to-r from-[#ffffff] to-[#ffffff]/0 sm:visible md:visible lg:hidden xl:hidden"}),v.jsx(Zr.section,{ref:s,layoutScroll:!0,className:"simpletable--blade relative overflow-x-auto",children:v.jsx("div",{className:"simpletable__table table",style:{padding:0},children:v.jsx("table",{className:"table-auto border-collapse text-left",children:e})})}),v.jsx(Zr.div,{initial:{opacity:0},animate:{opacity:r?1:0},className:"scroll-fader absolute right-0 top-0 z-10 h-full w-[20px] bg-gradient-to-l from-[#ffffff] to-[#ffffff]/0 sm:visible md:visible lg:hidden xl:hidden"})]})},iD=({children:e})=>v.jsx("thead",{children:e}),sD=({children:e})=>v.jsx("tr",{role:"row",className:"last:bg-[#F1F3FB]",children:e}),oD=({children:e})=>v.jsx("td",{className:"inline-block min-w-[180px] items-start",role:"cell",children:e}),aD=({children:e})=>v.jsx("th",{className:"inline-block min-w-[180px] items-start font-semibold",role:"columnheader",children:e}),lD=({children:e})=>v.jsx("tbody",{children:e});K.Head=iD,K.Row=sD,K.Cell=oD,K.HeaderCell=aD,K.Body=lD;const mr=typeof document!="undefined"?Z.useLayoutEffect:()=>{};function Be(e){const t=_.useRef(null);return mr(()=>{t.current=e},[e]),_.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function uD(e){let[t,n]=_.useState(e),r=_.useRef(null),i=Be(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});mr(()=>{r.current&&i()});let s=Be(o=>{r.current=o(t),i()});return[t,s]}const Dh={prefix:String(Math.round(Math.random()*1e10)),current:0},zx=Z.createContext(Dh),cD=Z.createContext(!1);let dD=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Ah=new WeakMap;function fD(e=!1){let t=_.useContext(zx),n=_.useRef(null);if(n.current===null&&!e){var r,i;let s=(i=Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(s){let o=Ah.get(s);o==null?Ah.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==o.state&&(t.current=o.id,Ah.delete(s))}n.current=++t.current}return n.current}function hD(e){let t=_.useContext(zx);t===Dh&&!dD&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=fD(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function pD(e){let t=Z.useId(),[n]=_.useState(Bx()),r=n?"react-aria":`react-aria${Dh.prefix}`;return e||`${r}-${t}`}const mD=typeof Z.useId=="function"?pD:hD;function gD(){return!1}function yD(){return!0}function vD(e){return()=>{}}function Bx(){return typeof Z.useSyncExternalStore=="function"?Z.useSyncExternalStore(vD,gD,yD):_.useContext(cD)}let bD=!!(typeof window!="undefined"&&window.document&&window.document.createElement),gr=new Map;function Jr(e){let[t,n]=_.useState(e),r=_.useRef(null),i=mD(t),s=_.useCallback(o=>{r.current=o},[]);return bD&&(gr.has(i)&&!gr.get(i).includes(s)?gr.set(i,[...gr.get(i),s]):gr.set(i,[s])),mr(()=>{let o=i;return()=>{gr.delete(o)}},[i]),_.useEffect(()=>{let o=r.current;o&&(r.current=null,n(o))}),i}function xD(e,t){if(e===t)return e;let n=gr.get(e);if(n)return n.forEach(i=>i(t)),t;let r=gr.get(t);return r?(r.forEach(i=>i(e)),e):t}function Hx(e=[]){let t=Jr(),[n,r]=uD(t),i=_.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return mr(i,[t,i,...e]),n}function Lh(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Bt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},rn=e=>e&&"window"in e&&e.window===e?e:Bt(e).defaultView||window;function Wx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t=65&&i.charCodeAt(2)<=90?t[i]=Lh(s,o):(i==="className"||i==="UNSAFE_className")&&typeof s=="string"&&typeof o=="string"?t[i]=_D(s,o):i==="id"&&s&&o?t.id=xD(s,o):t[i]=o!==void 0?o:s}}return t}function wD(...e){return e.length===1&&e[0]?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}const SD=new Set(["id"]),PD=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),kD=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),CD=/^(data-.*)$/;function ei(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,s={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(SD.has(o)||n&&PD.has(o)||r&&kD.has(o)||i!=null&&i.has(o)||CD.test(o))&&(s[o]=e[o]);return s}function yr(e){if(TD())e.focus({preventScroll:!0});else{let t=ED(e);e.focus(),$D(t)}}let eu=null;function TD(){if(eu==null){eu=!1;try{document.createElement("div").focus({get preventScroll(){return eu=!0,!0}})}catch(e){}}return eu}function ED(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeighte.test(n.brand)))||e.test(window.navigator.userAgent)}function Rh(e){var t;return typeof window!="undefined"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function vr(e){let t=null;return()=>(t==null&&(t=e()),t)}const Eo=vr(function(){return Rh(/^Mac/i)}),Ux=vr(function(){return Rh(/^iPhone/i)}),Kx=vr(function(){return Rh(/^iPad/i)||Eo()&&navigator.maxTouchPoints>1}),Fh=vr(function(){return Ux()||Kx()}),MD=vr(function(){return tu(/AppleWebKit/i)&&!DD()}),DD=vr(function(){return tu(/Chrome/i)}),Nh=vr(function(){return tu(/Android/i)}),AD=vr(function(){return tu(/Firefox/i)}),LD=_.createContext({isNative:!0,open:ND,useHref:e=>e});function Yx(){return _.useContext(LD)}function RD(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function es(e,t,n=!0){var r,i;let{metaKey:s,ctrlKey:o,altKey:a,shiftKey:l}=t;AD()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Eo()?s=!0:o=!0);let u=MD()&&Eo()&&!Kx()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:o,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:s,ctrlKey:o,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});es.isOpening=n,yr(e),e.dispatchEvent(u),es.isOpening=!1}es.isOpening=!1;function FD(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function ND(e,t){FD(e,n=>es(n,t))}function jD(e){let t=Yx();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let ts=new Map,jh=new Set;function Gx(){if(typeof window=="undefined")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=ts.get(r.target);i||(i=new Set,ts.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=ts.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),ts.delete(r.target)),ts.size===0)){for(let s of jh)s();jh.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document!="undefined"&&(document.readyState!=="loading"?Gx():document.addEventListener("DOMContentLoaded",Gx));function Xx(e){requestAnimationFrame(()=>{ts.size===0?e():jh.add(e)})}function $o(){let e=_.useRef(new Map),t=_.useCallback((i,s,o,a)=>{let l=a!=null&&a.once?(...u)=>{e.current.delete(o),o(...u)}:o;e.current.set(o,{type:s,eventTarget:i,fn:l,options:a}),i.addEventListener(s,l,a)},[]),n=_.useCallback((i,s,o,a)=>{var l;let u=((l=e.current.get(o))===null||l===void 0?void 0:l.fn)||o;i.removeEventListener(s,u,a),e.current.delete(o)},[]),r=_.useCallback(()=>{e.current.forEach((i,s)=>{n(i.eventTarget,i.type,s,i.options)})},[n]);return _.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function OD(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Jr(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function ID(e){const t=_.useRef(null);return _.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}}),[e])}function qx(e,t){mr(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function VD(e,t,n,r){let i=Be(n),s=n==null;_.useEffect(()=>{if(s||!e.current)return;let o=e.current;return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[e,t,r,s,i])}function Oh(e){return e.mozInputSource===0&&e.isTrusted?!0:Nh()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function zD(e){return!Nh()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Ih(e,t,n){let r=_.useRef(t),i=Be(()=>{n&&n(r.current)});_.useEffect(()=>{var s;let o=e==null||(s=e.current)===null||s===void 0?void 0:s.form;return o==null||o.addEventListener("reset",i),()=>{o==null||o.removeEventListener("reset",i)}},[e,i])}function Vh(e,t,n){let[r,i]=_.useState(e||t),s=_.useRef(e!==void 0),o=e!==void 0;_.useEffect(()=>{let u=s.current;u!==o&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),s.current=o},[o]);let a=o?e:r,l=_.useCallback((u,...c)=>{let d=(f,...h)=>{n&&(Object.is(a,f)||n(f,...h)),o||(a=f)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((h,...m)=>{let y=u(o?a:h,...m);return d(y,...c),o?h:y})):(o||i(u),d(u,...c))},[o,a,n]);return[a,l]}function ns(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function nu(e,t){let n=e,r=t.toString(),i=r.indexOf("."),s=i>=0?r.length-i:0;if(s>0){let o=Math.pow(10,s);n=Math.round(n*o)/o}return n}function gt(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,s=nu(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&s>n&&(s=Math.floor(nu(n/r,r))*r):sn&&(s=t+Math.floor(nu((n-t)/r,r))*r),s=nu(s,r),s}const Qx=Symbol("default");function zh({values:e,children:t}){for(let[n,r]of e)t=Z.createElement(n.Provider,{value:r},t);return t}function Ln(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:s,defaultStyle:o,values:a}=e;return _.useMemo(()=>{let l,u,c;return typeof t=="function"?l=t(B(T({},a),{defaultClassName:i})):l=t,typeof n=="function"?u=n(B(T({},a),{defaultStyle:o||{}})):u=n,typeof r=="function"?c=r(B(T({},a),{defaultChildren:s})):r==null?c=s:c=r,{className:l!=null?l:i,style:u||o?T(T({},o),u):void 0,children:c!=null?c:s,"data-rac":""}},[t,n,r,i,s,o,a])}function Bh(e,t){let n=_.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=new Intl.ListFormat().format(Object.keys(n.slots).map(s=>`"${s}"`));if(!t&&!n.slots[Qx])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let i=t||Qx;if(!n.slots[i])throw new Error(`Invalid slot "${t}". Valid slot names are ${r}.`);return n.slots[i]}return n}function Rn(e,t,n){let l=Bh(n,e.slot)||{},{ref:i}=l,s=te(l,["ref"]),o=ID(_.useMemo(()=>wD(t,i),[t,i])),a=_e(s,e);return"style"in s&&s.style&&"style"in e&&e.style&&(typeof s.style=="function"||typeof e.style=="function"?a.style=u=>{let c=typeof s.style=="function"?s.style(u):s.style,d=T(T({},u.defaultStyle),c),f=typeof e.style=="function"?e.style(B(T({},u),{defaultStyle:d})):e.style;return T(T({},d),f)}:a.style=T(T({},s.style),e.style)),[a,o]}function Hh(){let[e,t]=_.useState(!0),n=_.useRef(!1),r=_.useCallback(i=>{n.current=!0,t(!!i)},[]);return mr(()=>{n.current||t(!1)},[]),[r,e]}function BD(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}if(typeof HTMLTemplateElement!="undefined"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const HD=_.createContext(!1);typeof DocumentFragment!="undefined"&&new DocumentFragment;function Zx(e){let t=(n,r)=>_.useContext(HD)?null:e(n,r);return t.displayName=e.displayName||e.name,_.forwardRef(t)}const ru=_.createContext({}),Jx=Zx(function(t,n){[t,n]=Rn(t,n,ru);let s=t,{elementType:r="label"}=s,i=te(s,["elementType"]);return Z.createElement(r,B(T({className:"react-aria-Label"},i),{ref:n}))});let rs="default",Wh="",iu=new WeakMap;function Uh(e){if(Fh()){if(rs==="default"){const t=Bt(e);Wh=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}rs="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(iu.set(e,e.style.userSelect),e.style.userSelect="none")}function Mo(e){if(Fh()){if(rs!=="disabled")return;rs="restoring",setTimeout(()=>{Xx(()=>{if(rs==="restoring"){const t=Bt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Wh||""),Wh="",rs="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&iu.has(e)){let t=iu.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),iu.delete(e)}}const e_=Z.createContext({register:()=>{}});e_.displayName="PressResponderContext";function WD(e,t){return t.get?t.get.call(e):t.value}function t_(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function UD(e,t){var n=t_(e,t,"get");return WD(e,n)}function KD(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function YD(e,t,n){KD(e,t),t.set(e,n)}function GD(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function n_(e,t,n){var r=t_(e,t,"set");return GD(e,r,n),n}function XD(e){let t=_.useContext(e_);if(t){let n=t,{register:r}=n,i=te(n,["register"]);e=_e(i,e),r()}return qx(t,e.ref),e}var su=new WeakMap;class ou{continuePropagation(){n_(this,su,!1)}get shouldStopPropagation(){return UD(this,su)}constructor(t,n,r,i){YD(this,su,{writable:!0,value:void 0}),n_(this,su,!0);var s;let o=(s=i==null?void 0:i.target)!==null&&s!==void 0?s:r.currentTarget;const a=o==null?void 0:o.getBoundingClientRect();let l,u=0,c,d=null;r.clientX!=null&&r.clientY!=null&&(c=r.clientX,d=r.clientY),a&&(c!=null&&d!=null?(l=c-a.left,u=d-a.top):(l=a.width/2,u=a.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=u}}const r_=Symbol("linkClicked");function qD(e){let M=XD(e),{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:s,isDisabled:o,isPressed:a,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d}=M,f=te(M,["onPress","onPressChange","onPressStart","onPressEnd","onPressUp","isDisabled","isPressed","preventFocusOnPress","shouldCancelOnPointerExit","allowTextSelectionOnPress","ref"]),[h,m]=_.useState(!1),y=_.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:x,removeAllGlobalListeners:p}=$o(),g=Be((P,E)=>{let F=y.current;if(o||F.didFirePressStart)return!1;let C=!0;if(F.isTriggeringEvent=!0,r){let I=new ou("pressstart",E,P);r(I),C=I.shouldStopPropagation}return n&&n(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,m(!0),C}),b=Be((P,E,F=!0)=>{let C=y.current;if(!C.didFirePressStart)return!1;C.ignoreClickAfterPress=!0,C.didFirePressStart=!1,C.isTriggeringEvent=!0;let I=!0;if(i){let A=new ou("pressend",E,P);i(A),I=A.shouldStopPropagation}if(n&&n(!1),m(!1),t&&F&&!o){let A=new ou("press",E,P);t(A),I&&(I=A.shouldStopPropagation)}return C.isTriggeringEvent=!1,I}),w=Be((P,E)=>{let F=y.current;if(o)return!1;if(s){F.isTriggeringEvent=!0;let C=new ou("pressup",E,P);return s(C),F.isTriggeringEvent=!1,C.shouldStopPropagation}return!0}),S=Be(P=>{let E=y.current;E.isPressed&&E.target&&(E.isOverTarget&&E.pointerType!=null&&b(Fn(E.target,P),E.pointerType,!1),E.isPressed=!1,E.isOverTarget=!1,E.activePointerId=null,E.pointerType=null,p(),c||Mo(E.target))}),k=Be(P=>{u&&S(P)}),$=_.useMemo(()=>{let P=y.current,E={onKeyDown(C){if(Yh(C.nativeEvent,C.currentTarget)&&C.currentTarget.contains(C.target)){var I;o_(C.target,C.key)&&C.preventDefault();let A=!0;if(!P.isPressed&&!C.repeat){P.target=C.currentTarget,P.isPressed=!0,A=g(C,"keyboard");let L=C.currentTarget,R=z=>{Yh(z,L)&&!z.repeat&&L.contains(z.target)&&P.target&&w(Fn(P.target,z),"keyboard")};x(Bt(C.currentTarget),"keyup",Lh(R,F),!0)}A&&C.stopPropagation(),C.metaKey&&Eo()&&((I=P.metaKeyEvents)===null||I===void 0||I.set(C.key,C.nativeEvent))}else C.key==="Meta"&&(P.metaKeyEvents=new Map)},onClick(C){if(!(C&&!C.currentTarget.contains(C.target))&&C&&C.button===0&&!P.isTriggeringEvent&&!es.isOpening){let I=!0;if(o&&C.preventDefault(),!P.ignoreClickAfterPress&&!P.ignoreEmulatedMouseEvents&&!P.isPressed&&(P.pointerType==="virtual"||Oh(C.nativeEvent))){!o&&!l&&yr(C.currentTarget);let A=g(C,"virtual"),L=w(C,"virtual"),R=b(C,"virtual");I=A&&L&&R}P.ignoreEmulatedMouseEvents=!1,P.ignoreClickAfterPress=!1,I&&C.stopPropagation()}}},F=C=>{var I;if(P.isPressed&&P.target&&Yh(C,P.target)){var A;o_(C.target,C.key)&&C.preventDefault();let R=C.target;b(Fn(P.target,C),"keyboard",P.target.contains(R)),p(),C.key!=="Enter"&&Kh(P.target)&&P.target.contains(R)&&!C[r_]&&(C[r_]=!0,es(P.target,C,!1)),P.isPressed=!1,(A=P.metaKeyEvents)===null||A===void 0||A.delete(C.key)}else if(C.key==="Meta"&&(!((I=P.metaKeyEvents)===null||I===void 0)&&I.size)){var L;let R=P.metaKeyEvents;P.metaKeyEvents=void 0;for(let z of R.values())(L=P.target)===null||L===void 0||L.dispatchEvent(new KeyboardEvent("keyup",z))}};if(typeof PointerEvent!="undefined"){E.onPointerDown=L=>{if(L.button!==0||!L.currentTarget.contains(L.target))return;if(zD(L.nativeEvent)){P.pointerType="virtual";return}Xh(L.currentTarget)&&L.preventDefault(),P.pointerType=L.pointerType;let R=!0;if(!P.isPressed){P.isPressed=!0,P.isOverTarget=!0,P.activePointerId=L.pointerId,P.target=L.currentTarget,!o&&!l&&yr(L.currentTarget),c||Uh(P.target),R=g(L,P.pointerType);let z=L.target;"releasePointerCapture"in z&&z.releasePointerCapture(L.pointerId),x(Bt(L.currentTarget),"pointerup",C,!1),x(Bt(L.currentTarget),"pointercancel",A,!1)}R&&L.stopPropagation()},E.onMouseDown=L=>{L.currentTarget.contains(L.target)&&L.button===0&&(Xh(L.currentTarget)&&L.preventDefault(),L.stopPropagation())},E.onPointerUp=L=>{!L.currentTarget.contains(L.target)||P.pointerType==="virtual"||L.button===0&&w(L,P.pointerType||L.pointerType)},E.onPointerEnter=L=>{L.pointerId===P.activePointerId&&P.target&&!P.isOverTarget&&P.pointerType!=null&&(P.isOverTarget=!0,g(Fn(P.target,L),P.pointerType))},E.onPointerLeave=L=>{L.pointerId===P.activePointerId&&P.target&&P.isOverTarget&&P.pointerType!=null&&(P.isOverTarget=!1,b(Fn(P.target,L),P.pointerType,!1),k(L))};let C=L=>{L.pointerId===P.activePointerId&&P.isPressed&&L.button===0&&P.target&&(P.target.contains(L.target)&&P.pointerType!=null?b(Fn(P.target,L),P.pointerType):P.isOverTarget&&P.pointerType!=null&&b(Fn(P.target,L),P.pointerType,!1),P.isPressed=!1,P.isOverTarget=!1,P.activePointerId=null,P.pointerType=null,p(),c||Mo(P.target),"ontouchend"in P.target&&L.pointerType!=="mouse"&&x(P.target,"touchend",I,{once:!0}))},I=L=>{s_(L.currentTarget)&&L.preventDefault()},A=L=>{S(L)};E.onDragStart=L=>{L.currentTarget.contains(L.target)&&S(L)}}else{E.onMouseDown=A=>{if(A.button!==0||!A.currentTarget.contains(A.target))return;if(Xh(A.currentTarget)&&A.preventDefault(),P.ignoreEmulatedMouseEvents){A.stopPropagation();return}P.isPressed=!0,P.isOverTarget=!0,P.target=A.currentTarget,P.pointerType=Oh(A.nativeEvent)?"virtual":"mouse",!o&&!l&&yr(A.currentTarget),g(A,P.pointerType)&&A.stopPropagation(),x(Bt(A.currentTarget),"mouseup",C,!1)},E.onMouseEnter=A=>{if(!A.currentTarget.contains(A.target))return;let L=!0;P.isPressed&&!P.ignoreEmulatedMouseEvents&&P.pointerType!=null&&(P.isOverTarget=!0,L=g(A,P.pointerType)),L&&A.stopPropagation()},E.onMouseLeave=A=>{if(!A.currentTarget.contains(A.target))return;let L=!0;P.isPressed&&!P.ignoreEmulatedMouseEvents&&P.pointerType!=null&&(P.isOverTarget=!1,L=b(A,P.pointerType,!1),k(A)),L&&A.stopPropagation()},E.onMouseUp=A=>{A.currentTarget.contains(A.target)&&!P.ignoreEmulatedMouseEvents&&A.button===0&&w(A,P.pointerType||"mouse")};let C=A=>{if(A.button===0){if(P.isPressed=!1,p(),P.ignoreEmulatedMouseEvents){P.ignoreEmulatedMouseEvents=!1;return}P.target&&Gh(A,P.target)&&P.pointerType!=null?b(Fn(P.target,A),P.pointerType):P.target&&P.isOverTarget&&P.pointerType!=null&&b(Fn(P.target,A),P.pointerType,!1),P.isOverTarget=!1}};E.onTouchStart=A=>{if(!A.currentTarget.contains(A.target))return;let L=QD(A.nativeEvent);if(!L)return;P.activePointerId=L.identifier,P.ignoreEmulatedMouseEvents=!0,P.isOverTarget=!0,P.isPressed=!0,P.target=A.currentTarget,P.pointerType="touch",!o&&!l&&yr(A.currentTarget),c||Uh(P.target),g(br(P.target,A),P.pointerType)&&A.stopPropagation(),x(rn(A.currentTarget),"scroll",I,!0)},E.onTouchMove=A=>{if(!A.currentTarget.contains(A.target))return;if(!P.isPressed){A.stopPropagation();return}let L=i_(A.nativeEvent,P.activePointerId),R=!0;L&&Gh(L,A.currentTarget)?!P.isOverTarget&&P.pointerType!=null&&(P.isOverTarget=!0,R=g(br(P.target,A),P.pointerType)):P.isOverTarget&&P.pointerType!=null&&(P.isOverTarget=!1,R=b(br(P.target,A),P.pointerType,!1),k(br(P.target,A))),R&&A.stopPropagation()},E.onTouchEnd=A=>{if(!A.currentTarget.contains(A.target))return;if(!P.isPressed){A.stopPropagation();return}let L=i_(A.nativeEvent,P.activePointerId),R=!0;L&&Gh(L,A.currentTarget)&&P.pointerType!=null?(w(br(P.target,A),P.pointerType),R=b(br(P.target,A),P.pointerType)):P.isOverTarget&&P.pointerType!=null&&(R=b(br(P.target,A),P.pointerType,!1)),R&&A.stopPropagation(),P.isPressed=!1,P.activePointerId=null,P.isOverTarget=!1,P.ignoreEmulatedMouseEvents=!0,P.target&&!c&&Mo(P.target),p()},E.onTouchCancel=A=>{A.currentTarget.contains(A.target)&&(A.stopPropagation(),P.isPressed&&S(br(P.target,A)))};let I=A=>{P.isPressed&&A.target.contains(P.target)&&S({currentTarget:P.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};E.onDragStart=A=>{A.currentTarget.contains(A.target)&&S(A)}}return E},[x,o,l,p,c,S,k,b,g,w]);return _.useEffect(()=>()=>{var P;c||Mo((P=y.current.target)!==null&&P!==void 0?P:void 0)},[c]),{isPressed:a||h,pressProps:_e(f,$)}}function Kh(e){return e.tagName==="A"&&e.hasAttribute("href")}function Yh(e,t){const{key:n,code:r}=e,i=t,s=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof rn(i).HTMLInputElement&&!a_(i,n)||i instanceof rn(i).HTMLTextAreaElement||i.isContentEditable)&&!((s==="link"||!s&&Kh(i))&&n!=="Enter")}function QD(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function i_(e,t){const n=e.changedTouches;for(let r=0;rt.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Gh(e,t){let n=t.getBoundingClientRect(),r=ZD(e);return JD(n,r)}function Xh(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function s_(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Kh(e)}function o_(e,t){return e instanceof HTMLInputElement?!a_(e,t):s_(e)}const eA=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function a_(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":eA.has(e.type)}class tA{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function l_(e){let t=_.useRef({isFocused:!1,observer:null});mr(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Be(r=>{e==null||e(r)});return _.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,s=o=>{t.current.isFocused=!1,i.disabled&&n(new tA("blur",o)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function qh(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const s=_.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),o=l_(s),a=_.useCallback(l=>{const u=Bt(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),i&&i(!0),o(l))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?a:void 0,onBlur:!t&&(r||i)?s:void 0}}}let ti=null,Qh=new Set,Do=new Map,ni=!1,Zh=!1;const nA={Tab:!0,Escape:!0};function au(e,t){for(let n of Qh)n(e,t)}function rA(e){return!(e.metaKey||!Eo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function lu(e){ni=!0,rA(e)&&(ti="keyboard",au("keyboard",e))}function Ht(e){ti="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ni=!0,au("pointer",e))}function u_(e){Oh(e)&&(ni=!0,ti="virtual")}function c_(e){e.target===window||e.target===document||(!ni&&!Zh&&(ti="virtual",au("virtual",e)),ni=!1,Zh=!1)}function d_(){ni=!1,Zh=!0}function Jh(e){if(typeof window=="undefined"||Do.get(rn(e)))return;const t=rn(e),n=Bt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ni=!0,r.apply(this,arguments)},n.addEventListener("keydown",lu,!0),n.addEventListener("keyup",lu,!0),n.addEventListener("click",u_,!0),t.addEventListener("focus",c_,!0),t.addEventListener("blur",d_,!1),typeof PointerEvent!="undefined"?(n.addEventListener("pointerdown",Ht,!0),n.addEventListener("pointermove",Ht,!0),n.addEventListener("pointerup",Ht,!0)):(n.addEventListener("mousedown",Ht,!0),n.addEventListener("mousemove",Ht,!0),n.addEventListener("mouseup",Ht,!0)),t.addEventListener("beforeunload",()=>{f_(e)},{once:!0}),Do.set(t,{focus:r})}const f_=(e,t)=>{const n=rn(e),r=Bt(e);t&&r.removeEventListener("DOMContentLoaded",t),Do.has(n)&&(n.HTMLElement.prototype.focus=Do.get(n).focus,r.removeEventListener("keydown",lu,!0),r.removeEventListener("keyup",lu,!0),r.removeEventListener("click",u_,!0),n.removeEventListener("focus",c_,!0),n.removeEventListener("blur",d_,!1),typeof PointerEvent!="undefined"?(r.removeEventListener("pointerdown",Ht,!0),r.removeEventListener("pointermove",Ht,!0),r.removeEventListener("pointerup",Ht,!0)):(r.removeEventListener("mousedown",Ht,!0),r.removeEventListener("mousemove",Ht,!0),r.removeEventListener("mouseup",Ht,!0)),Do.delete(n))};function iA(e){const t=Bt(e);let n;return t.readyState!=="loading"?Jh(e):(n=()=>{Jh(e)},t.addEventListener("DOMContentLoaded",n)),()=>f_(e,n)}typeof document!="undefined"&&iA();function h_(){return ti!=="pointer"}function sA(){return ti}function p_(e){ti=e,au(e,null)}const oA=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function aA(e,t,n){var r;const i=typeof window!="undefined"?rn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,s=typeof window!="undefined"?rn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window!="undefined"?rn(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window!="undefined"?rn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!oA.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof s||(n==null?void 0:n.target)instanceof o&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof a&&!nA[n.key])}function lA(e,t,n){Jh(),_.useEffect(()=>{let r=(i,s)=>{aA(!!(n!=null&&n.isTextInput),i,s)&&e(h_())};return Qh.add(r),()=>{Qh.delete(r)}},t)}function ep(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,s=_.useRef({isFocusWithin:!1}),o=_.useCallback(u=>{s.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(s.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,s]),a=l_(o),l=_.useCallback(u=>{!s.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),s.current.isFocusWithin=!0,a(u))},[r,i,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:o}}}let uu=!1,tp=0;function np(){uu=!0,setTimeout(()=>{uu=!1},50)}function m_(e){e.pointerType==="touch"&&np()}function uA(){if(typeof document!="undefined")return typeof PointerEvent!="undefined"?document.addEventListener("pointerup",m_):document.addEventListener("touchend",np),tp++,()=>{tp--,!(tp>0)&&(typeof PointerEvent!="undefined"?document.removeEventListener("pointerup",m_):document.removeEventListener("touchend",np))}}function Ao(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[s,o]=_.useState(!1),a=_.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;_.useEffect(uA,[]);let{hoverProps:l,triggerHoverEnd:u}=_.useMemo(()=>{let c=(h,m)=>{if(a.pointerType=m,i||m==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let y=h.currentTarget;a.target=y,t&&t({type:"hoverstart",target:y,pointerType:m}),n&&n(!0),o(!0)},d=(h,m)=>{if(a.pointerType="",a.target=null,m==="touch"||!a.isHovered)return;a.isHovered=!1;let y=h.currentTarget;r&&r({type:"hoverend",target:y,pointerType:m}),n&&n(!1),o(!1)},f={};return typeof PointerEvent!="undefined"?(f.onPointerEnter=h=>{uu&&h.pointerType==="mouse"||c(h,h.pointerType)},f.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&d(h,h.pointerType)}):(f.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},f.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!uu&&c(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},f.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&d(h,"mouse")}),{hoverProps:f,triggerHoverEnd:d}},[t,n,r,i,a]);return _.useEffect(()=>{i&&u({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:l,isHovered:s}}function g_(e){if(!e)return;let t=!0;return n=>{let r=B(T({},n),{preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}});e(r),t&&n.stopPropagation()}}function y_(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:g_(e.onKeyDown),onKeyUp:g_(e.onKeyUp)}}}function v_(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=_.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:s,removeGlobalListener:o}=$o(),a=Be((c,d,f,h)=>{f===0&&h===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:d,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey})),n==null||n({type:"move",pointerType:d,deltaX:f,deltaY:h,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey}))}),l=Be((c,d)=>{Mo(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:d,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey}))});return{moveProps:_.useMemo(()=>{let c={},d=()=>{Uh(),i.current.didMove=!1};if(typeof PointerEvent=="undefined"){let h=p=>{if(p.button===0){var g,b,w,S;a(p,"mouse",p.pageX-((w=(g=i.current.lastPosition)===null||g===void 0?void 0:g.pageX)!==null&&w!==void 0?w:0),p.pageY-((S=(b=i.current.lastPosition)===null||b===void 0?void 0:b.pageY)!==null&&S!==void 0?S:0)),i.current.lastPosition={pageX:p.pageX,pageY:p.pageY}}},m=p=>{p.button===0&&(l(p,"mouse"),o(window,"mousemove",h,!1),o(window,"mouseup",m,!1))};c.onMouseDown=p=>{p.button===0&&(d(),p.stopPropagation(),p.preventDefault(),i.current.lastPosition={pageX:p.pageX,pageY:p.pageY},s(window,"mousemove",h,!1),s(window,"mouseup",m,!1))};let y=p=>{let g=[...p.changedTouches].findIndex(({identifier:$})=>$===i.current.id);if(g>=0){var b,w;let{pageX:$,pageY:M}=p.changedTouches[g];var S,k;a(p,"touch",$-((S=(b=i.current.lastPosition)===null||b===void 0?void 0:b.pageX)!==null&&S!==void 0?S:0),M-((k=(w=i.current.lastPosition)===null||w===void 0?void 0:w.pageY)!==null&&k!==void 0?k:0)),i.current.lastPosition={pageX:$,pageY:M}}},x=p=>{[...p.changedTouches].findIndex(({identifier:b})=>b===i.current.id)>=0&&(l(p,"touch"),i.current.id=null,o(window,"touchmove",y),o(window,"touchend",x),o(window,"touchcancel",x))};c.onTouchStart=p=>{if(p.changedTouches.length===0||i.current.id!=null)return;let{pageX:g,pageY:b,identifier:w}=p.changedTouches[0];d(),p.stopPropagation(),p.preventDefault(),i.current.lastPosition={pageX:g,pageY:b},i.current.id=w,s(window,"touchmove",y,!1),s(window,"touchend",x,!1),s(window,"touchcancel",x,!1)}}else{let h=y=>{if(y.pointerId===i.current.id){var x,p;let w=y.pointerType||"mouse";var g,b;a(y,w,y.pageX-((g=(x=i.current.lastPosition)===null||x===void 0?void 0:x.pageX)!==null&&g!==void 0?g:0),y.pageY-((b=(p=i.current.lastPosition)===null||p===void 0?void 0:p.pageY)!==null&&b!==void 0?b:0)),i.current.lastPosition={pageX:y.pageX,pageY:y.pageY}}},m=y=>{if(y.pointerId===i.current.id){let x=y.pointerType||"mouse";l(y,x),i.current.id=null,o(window,"pointermove",h,!1),o(window,"pointerup",m,!1),o(window,"pointercancel",m,!1)}};c.onPointerDown=y=>{y.button===0&&i.current.id==null&&(d(),y.stopPropagation(),y.preventDefault(),i.current.lastPosition={pageX:y.pageX,pageY:y.pageY},i.current.id=y.pointerId,s(window,"pointermove",h,!1),s(window,"pointerup",m,!1),s(window,"pointercancel",m,!1))}}let f=(h,m,y)=>{d(),a(h,"keyboard",m,y),l(h,"keyboard")};return c.onKeyDown=h=>{switch(h.key){case"Left":case"ArrowLeft":h.preventDefault(),h.stopPropagation(),f(h,-1,0);break;case"Right":case"ArrowRight":h.preventDefault(),h.stopPropagation(),f(h,1,0);break;case"Up":case"ArrowUp":h.preventDefault(),h.stopPropagation(),f(h,0,-1);break;case"Down":case"ArrowDown":h.preventDefault(),h.stopPropagation(),f(h,0,1);break}},c},[i,s,o,a,l])}}function cA(e,t){let{onScroll:n,isDisabled:r}=e,i=_.useCallback(s=>{s.ctrlKey||(s.preventDefault(),s.stopPropagation(),n&&n({deltaX:s.deltaX,deltaY:s.deltaY}))},[n]);VD(t,"wheel",r?void 0:i)}function dA(e){const t=Bt(e);if(sA()==="virtual"){let n=t.activeElement;Xx(()=>{t.activeElement===n&&e.isConnected&&yr(e)})}else yr(e)}function cu(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=_.useRef({isFocused:!1,isFocusVisible:t||h_()}),[s,o]=_.useState(!1),[a,l]=_.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=_.useCallback(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),c=_.useCallback(h=>{i.current.isFocused=h,o(h),u()},[u]);lA(h=>{i.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:d}=qh({isDisabled:r,onFocusChange:c}),{focusWithinProps:f}=ep({isDisabled:!r,onFocusWithinChange:c});return{isFocused:s,isFocusVisible:a,focusProps:r?f:d}}let fA=Z.createContext(null);function hA(e){let t=_.useContext(fA)||{};qx(t,e);let i=t,{ref:n}=i;return te(i,["ref"])}function rp(e,t){let{focusProps:n}=qh(e),{keyboardProps:r}=y_(e),i=_e(n,r),s=hA(t),o=e.isDisabled?{}:s,a=_.useRef(e.autoFocus);return _.useEffect(()=>{a.current&&t.current&&dA(t.current),a.current=!1},[t]),{focusableProps:_e(B(T({},i),{tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0}),o)}}function pA(e,t){let p=e,{elementType:n="a",onPress:r,onPressStart:i,onPressEnd:s,onClick:o,isDisabled:a}=p,l=te(p,["elementType","onPress","onPressStart","onPressEnd","onClick","isDisabled"]),u={};n!=="a"&&(u={role:"link",tabIndex:a?void 0:0});let{focusableProps:c}=rp(e,t),{pressProps:d,isPressed:f}=qD({onPress:r,onPressStart:i,onPressEnd:s,isDisabled:a,ref:t}),h=ei(l,{labelable:!0}),m=_e(c,d),y=Yx(),x=jD(e);return{isPressed:f,linkProps:_e(h,x,B(T(T({},m),u),{"aria-disabled":a||void 0,"aria-current":e["aria-current"],onClick:g=>{var b;(b=d.onClick)===null||b===void 0||b.call(d,g),o&&(o(g),console.warn("onClick is deprecated, please use onPress")),!y.isNative&&g.currentTarget instanceof HTMLAnchorElement&&g.currentTarget.href&&!g.isDefaultPrevented()&&RD(g.currentTarget,g)&&e.href&&(g.preventDefault(),y.open(g.currentTarget,g,e.href,e.routerOptions))}}))}}const mA=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),gA=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function yA(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return mA.has(n.script)}let t=e.split("-")[0];return gA.has(t)}const vA=Symbol.for("react-aria.i18n.locale");function b_(){let e=typeof window!="undefined"&&window[vA]||typeof navigator!="undefined"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:yA(e)?"rtl":"ltr"}}let ip=b_(),Lo=new Set;function x_(){ip=b_();for(let e of Lo)e(ip)}function bA(){let e=Bx(),[t,n]=_.useState(ip);return _.useEffect(()=>(Lo.size===0&&window.addEventListener("languagechange",x_),Lo.add(n),()=>{Lo.delete(n),Lo.size===0&&window.removeEventListener("languagechange",x_)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const xA=Z.createContext(null);function Ro(){let e=bA();return _.useContext(xA)||e}const _A=Symbol.for("react-aria.i18n.locale"),wA=Symbol.for("react-aria.i18n.strings");let is;class du{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=SA(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window=="undefined")return null;let n=window[_A];if(is===void 0){let i=window[wA];if(!i)return null;is={};for(let s in i)is[s]=new du({[n]:i[s]},n)}let r=is==null?void 0:is[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function SA(e,t,n="en-US"){if(t[e])return t[e];let r=PA(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function PA(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const __=new Map,w_=new Map;class kA{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let s=this.locale+":"+r,o=__.get(s);o||(o=new Intl.PluralRules(this.locale,{type:r}),__.set(s,o));let a=o.select(t);return i=n[a]||n.other,typeof i=="function"?i():i}number(t){let n=w_.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),w_.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const S_=new WeakMap;function CA(e){let t=S_.get(e);return t||(t=new du(e),S_.set(e,t)),t}function TA(e,t){return t&&du.getGlobalDictionaryForPackage(t)||CA(e)}function P_(e,t){let{locale:n}=Ro(),r=TA(e,t);return _.useMemo(()=>new kA(n,r),[n,r])}let sp=new Map,op=!1;try{op=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch(e){}let fu=!1;try{fu=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch(e){}const k_={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class hu{format(t){let n="";if(!op&&this.options.signDisplay!=null?n=$A(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!fu){var r;let{unit:i,unitDisplay:s="short",locale:o}=this.resolvedOptions();if(!i)return n;let a=(r=k_[i])===null||r===void 0?void 0:r[s];n+=a[o]||a.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(s=>B(T({},s),{source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(s=>B(T({},s),{source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!op&&this.options.signDisplay!=null&&(t=B(T({},t),{signDisplay:this.options.signDisplay})),!fu&&this.options.style==="unit"&&(t=B(T({},t),{style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay})),t}constructor(t,n={}){this.numberFormatter=EA(t,n),this.options=n}}function EA(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!fu){var r;let{unit:o,unitDisplay:a="short"}=t;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=k_[o])===null||r===void 0)&&r[a]))throw new Error(`Unsupported unit ${o} with unitDisplay = ${a}`);t=B(T({},t),{style:"decimal"})}let i=e+(t?Object.entries(t).sort((o,a)=>o[0]0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),s=e.format(n),o=i.replace(s,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(s,"!!!").replace(o,"+").replace("!!!",s)}else return e.format(n)}}const MA=new RegExp("^.*\\(.*\\).*$"),DA=["latn","arab","hanidec","deva","beng"];class C_{parse(t){return ap(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return ap(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return ap(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const T_=new Map;function ap(e,t,n){let r=E_(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of DA)if(i!==r.options.numberingSystem){let s=E_(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(s.isValidPartialNumber(n))return s}}return r}function E_(e,t){let n=e+(t?Object.entries(t).sort((i,s)=>i[0]-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,s;let o=B(T({},this.options),{style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((s=this.options.maximumFractionDigits)!==null&&s!==void 0?s:0)+2,20)});return new C_(this.locale,o).parse(new hu(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&MA.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=pu(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=pu(t,"."," ")),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=pu(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=RA(t,this.formatter,this.options,n);var r,i;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const $_=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),LA=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function RA(e,t,n,r){var i,s,o,a;let l=new Intl.NumberFormat(e,B(T({},n),{minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"})),u=l.formatToParts(-10000.111),c=l.formatToParts(10000.111),d=LA.map(E=>l.formatToParts(E));var f;let h=(f=(i=u.find(E=>E.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&f!==void 0?f:"-",m=(s=c.find(E=>E.type==="plusSign"))===null||s===void 0?void 0:s.value;!m&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(m="+");let x=(o=new Intl.NumberFormat(e,B(T({},n),{minimumFractionDigits:2,maximumFractionDigits:2})).formatToParts(.001).find(E=>E.type==="decimal"))===null||o===void 0?void 0:o.value,p=(a=u.find(E=>E.type==="group"))===null||a===void 0?void 0:a.value,g=u.filter(E=>!$_.has(E.type)).map(E=>M_(E.value)),b=d.flatMap(E=>E.filter(F=>!$_.has(F.type)).map(F=>M_(F.value))),w=[...new Set([...g,...b])].sort((E,F)=>F.length-E.length),S=w.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${w.join("|")}|[\\p{White_Space}]`,"gu"),k=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),$=new Map(k.map((E,F)=>[E,F])),M=new RegExp(`[${k.join("")}]`,"g");return{minusSign:h,plusSign:m,decimal:x,group:p,literals:S,numeral:M,index:E=>String($.get(E))}}function pu(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function M_(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function lp(e={}){let{locale:t}=Ro();return _.useMemo(()=>new hu(t,e),[t,e])}const D_=7e3;let Wt=null;function FA(e,t="assertive",n=D_){Wt?Wt.announce(e,t,n):(Wt=new jA,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest!="undefined")?Wt.announce(e,t,n):setTimeout(()=>{Wt!=null&&Wt.isAttached()&&(Wt==null||Wt.announce(e,t,n))},100))}function NA(e){Wt&&Wt.clear(e)}class jA{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=D_){var i,s;if(!this.node)return;let o=document.createElement("div");typeof t=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",t["aria-labelledby"])):o.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(o):(s=this.politeLog)===null||s===void 0||s.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document!="undefined"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const A_={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},L_=B(T({},A_),{customError:!0,valid:!1}),Fo={isInvalid:!1,validationDetails:A_,validationErrors:[]},OA=_.createContext({}),up="__formValidationState"+Date.now();function R_(e){if(e[up]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:s}=e[up];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:s}}return IA(e)}function IA(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:s,validate:o,validationBehavior:a="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:L_}:null,u=_.useMemo(()=>{if(!o||i==null)return null;let E=VA(o,i);return F_(E)},[o,i]);s!=null&&s.validationDetails.valid&&(s=void 0);let c=_.useContext(OA),d=_.useMemo(()=>r?Array.isArray(r)?r.flatMap(E=>cp(c[E])):cp(c[r]):[],[c,r]),[f,h]=_.useState(c),[m,y]=_.useState(!1);c!==f&&(h(c),y(!1));let x=_.useMemo(()=>F_(m?[]:d),[m,d]),p=_.useRef(Fo),[g,b]=_.useState(Fo),w=_.useRef(Fo),S=()=>{if(!k)return;$(!1);let E=u||s||p.current;dp(E,w.current)||(w.current=E,b(E))},[k,$]=_.useState(!1);return _.useEffect(S),{realtimeValidation:l||x||u||s||Fo,displayValidation:a==="native"?l||x||g:l||x||u||s||g,updateValidation(E){a==="aria"&&!dp(g,E)?b(E):p.current=E},resetValidation(){let E=Fo;dp(E,w.current)||(w.current=E,b(E)),a==="native"&&$(!1),y(!0)},commitValidation(){a==="native"&&$(!0),y(!0)}}}function cp(e){return e?Array.isArray(e)?e:[e]:[]}function VA(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return cp(n)}return[]}function F_(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:L_}:null}function dp(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function zA(e,t,n){let{validationBehavior:r,focus:i}=e;mr(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(HA(n.current))}});let s=Be(()=>{t.resetValidation()}),o=Be(l=>{var u;t.displayValidation.isInvalid||t.commitValidation();let c=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!l.defaultPrevented&&n&&c&&WA(c)===n.current){var d;i?i():(d=n.current)===null||d===void 0||d.focus(),p_("keyboard")}l.preventDefault()}),a=Be(()=>{t.commitValidation()});_.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let u=l.form;return l.addEventListener("invalid",o),l.addEventListener("change",a),u==null||u.addEventListener("reset",s),()=>{l.removeEventListener("invalid",o),l.removeEventListener("change",a),u==null||u.removeEventListener("reset",s)}},[n,o,a,s,r])}function BA(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function HA(e){return{isInvalid:!e.validity.valid,validationDetails:BA(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function WA(e){for(let t=0;t{let j=(r-n)/10;return j=gt(j,0,j+s,s),Math.max(j,s)},[s,r,n]),l=_.useCallback(j=>j==null?void 0:j.map((H,q)=>{let J=q===0?n:j[q-1],ie=q===j.length-1?r:j[q+1];return gt(H,J,ie,s)}),[n,r,s]),u=_.useMemo(()=>l(j_(e.value)),[e.value]),c=_.useMemo(()=>{var j;return l((j=j_(e.defaultValue))!==null&&j!==void 0?j:[n])},[e.defaultValue,n]),d=O_(e.value,e.defaultValue,e.onChange),f=O_(e.value,e.defaultValue,e.onChangeEnd);const[h,m]=Vh(u,c,d),[y,x]=_.useState(new Array(h.length).fill(!1)),p=_.useRef(new Array(h.length).fill(!0)),[g,b]=_.useState(void 0),w=_.useRef(h),S=_.useRef(y);let k=j=>{w.current=j,m(j)},$=j=>{S.current=j,x(j)};function M(j){return(j-n)/(r-n)}function P(j){return j===0?n:h[j-1]}function E(j){return j===h.length-1?r:h[j+1]}function F(j){return p.current[j]}function C(j,H){p.current[j]=H}function I(j,H){if(t||!F(j))return;const q=P(j),J=E(j);H=gt(H,q,J,s);let ie=N_(w.current,j,H);k(ie)}function A(j,H){if(t||!F(j))return;H&&(w.current=h);const q=S.current[j];S.current=N_(S.current,j,H),$(S.current),q&&!S.current.some(Boolean)&&f(w.current)}function L(j){return i.format(j)}function R(j,H){I(j,N(H))}function z(j){return Math.round((j-n)/s)*s+n}function N(j){const H=j*(r-n)+n;return ns(z(H),n,r)}function V(j,H=1){let q=Math.max(H,s);I(j,gt(h[j]+q,n,r,s))}function U(j,H=1){let q=Math.max(H,s);I(j,gt(h[j]-q,n,r,s))}return{values:h,getThumbValue:j=>h[j],setThumbValue:I,setThumbPercent:R,isThumbDragging:j=>y[j],setThumbDragging:A,focusedThumb:g,setFocusedThumb:b,getThumbPercent:j=>M(h[j]),getValuePercent:M,getThumbValueLabel:j=>L(h[j]),getFormattedValue:L,getThumbMinValue:P,getThumbMaxValue:E,getPercentValue:N,isThumbEditable:F,setThumbEditable:C,incrementThumb:V,decrementThumb:U,step:s,pageSize:a,orientation:o,isDisabled:t}}function N_(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function j_(e){if(e!=null)return Array.isArray(e)?e:[e]}function O_(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}function qA(e){let{minValue:t,maxValue:n,step:r,formatOptions:i,value:s,defaultValue:o=NaN,onChange:a,locale:l,isDisabled:u,isReadOnly:c}=e;s===null&&(s=NaN),s!==void 0&&!isNaN(s)&&(r!==void 0&&!isNaN(r)?s=gt(s,t,n,r):s=ns(s,t,n)),isNaN(o)||(r!==void 0&&!isNaN(r)?o=gt(o,t,n,r):o=ns(o,t,n));let[d,f]=Vh(s,isNaN(o)?NaN:o,a),[h,m]=_.useState(()=>isNaN(d)?"":new hu(l,i).format(d)),y=_.useMemo(()=>new C_(l,i),[l,i]),x=_.useMemo(()=>y.getNumberingSystem(h),[y,h]),p=_.useMemo(()=>new hu(l,B(T({},i),{numberingSystem:x})),[l,i,x]),g=_.useMemo(()=>p.resolvedOptions(),[p]),b=_.useCallback(H=>isNaN(H)||H===null?"":p.format(H),[p]),w=R_(B(T({},e),{value:d})),S=r!==void 0&&!isNaN(r)?r:1;g.style==="percent"&&(r===void 0||isNaN(r))&&(S=.01);let[k,$]=_.useState(d),[M,P]=_.useState(l),[E,F]=_.useState(i);(!Object.is(d,k)||l!==M||i!==E)&&(m(b(d)),$(d),P(l),F(i));let C=_.useMemo(()=>y.parse(h),[y,h]),I=()=>{if(!h.length){f(NaN),m(s===void 0?"":b(d));return}if(isNaN(C)){m(b(d));return}let H;r===void 0||isNaN(r)?H=ns(C,t,n):H=gt(C,t,n,r),H=y.parse(b(H)),f(H),m(b(s===void 0?H:d))},A=(H,q=0)=>{let J=C;if(isNaN(J)){let ie=isNaN(q)?0:q;return gt(ie,t,n,S)}else{let ie=gt(J,t,n,S);return H==="+"&&ie>J||H==="-"&&ie{let H=A("+",t);H===d&&m(b(H)),f(H),w.commitValidation()},R=()=>{let H=A("-",n);H===d&&m(b(H)),f(H),w.commitValidation()},z=()=>{n!=null&&(f(gt(n,t,n,S)),w.commitValidation())},N=()=>{t!=null&&(f(t),w.commitValidation())},V=_.useMemo(()=>!u&&!c&&(isNaN(C)||n===void 0||isNaN(n)||gt(C,t,n,S)>C||hp("+",C,S)<=n),[u,c,t,n,S,C]),U=_.useMemo(()=>!u&&!c&&(isNaN(C)||t===void 0||isNaN(t)||gt(C,t,n,S)=t),[u,c,t,n,S,C]),j=H=>y.isValidPartialNumber(H,t,n);return B(T({},w),{validate:j,increment:L,incrementToMax:z,decrement:R,decrementToMin:N,canIncrement:V,canDecrement:U,minValue:t,maxValue:n,numberValue:C,setNumberValue:f,setInputValue:m,inputValue:h,commit:I})}function hp(e,t,n){let r=e==="+"?t+n:t-n;if(t%1!==0||n%1!==0){const i=t.toString().split("."),s=n.toString().split("."),o=i[1]&&i[1].length||0,a=s[1]&&s[1].length||0,l=Math.pow(10,Math.max(o,a));t=Math.round(t*l),n=Math.round(n*l),r=e==="+"?t+n:t-n,r/=l}return r}const I_={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function QA(e={}){let{style:t,isFocusable:n}=e,[r,i]=_.useState(!1),{focusWithinProps:s}=ep({isDisabled:!n,onFocusWithinChange:a=>i(a)}),o=_.useMemo(()=>r?t:t?T(T({},I_),t):I_,[r]);return{visuallyHiddenProps:B(T({},s),{style:o})}}function ZA(e){let a=e,{children:t,elementType:n="div",isFocusable:r,style:i}=a,s=te(a,["children","elementType","isFocusable","style"]),{visuallyHiddenProps:o}=QA(e);return Z.createElement(n,_e(s,o),t)}const pp=new WeakMap;function mp(e,t){let n=pp.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function JA(e,t,n){let{labelProps:r,fieldProps:i}=fp(e),s=e.orientation==="vertical";var o;pp.set(t,{id:(o=r.id)!==null&&o!==void 0?o:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:a}=Ro(),{addGlobalListener:l,removeGlobalListener:u}=$o();const c=_.useRef(null),d=a==="rtl",f=_.useRef(null),{moveProps:h}=v_({onMoveStart(){f.current=null},onMove({deltaX:p,deltaY:g}){if(!n.current)return;let{height:b,width:w}=n.current.getBoundingClientRect(),S=s?b:w;f.current==null&&c.current!=null&&(f.current=t.getThumbPercent(c.current)*S);let k=s?g:p;if((s||d)&&(k=-k),f.current+=k,c.current!=null&&n.current){const $=ns(f.current/S,0,1);t.setThumbPercent(c.current,$)}},onMoveEnd(){c.current!=null&&(t.setThumbDragging(c.current,!1),c.current=null)}});let m=_.useRef(void 0),y=(p,g,b,w)=>{if(n.current&&!e.isDisabled&&t.values.every((S,k)=>!t.isThumbDragging(k))){let{height:S,width:k,top:$,left:M}=n.current.getBoundingClientRect(),P=s?S:k,I=((s?w:b)-(s?$:M))/P;(a==="rtl"||s)&&(I=1-I);let A=t.getPercentValue(I),L,R=t.values.findIndex(z=>A-z<0);if(R===0)L=R;else if(R===-1)L=t.values.length-1;else{let z=t.values[R-1],N=t.values[R];Math.abs(z-A)=0&&t.isThumbEditable(L)?(p.preventDefault(),c.current=L,t.setFocusedThumb(L),m.current=g,t.setThumbDragging(c.current,!0),t.setThumbValue(L,A),l(window,"mouseup",x,!1),l(window,"touchend",x,!1),l(window,"pointerup",x,!1)):c.current=null}},x=p=>{var g,b;((b=p.pointerId)!==null&&b!==void 0?b:(g=p.changedTouches)===null||g===void 0?void 0:g[0].identifier)===m.current&&(c.current!=null&&(t.setThumbDragging(c.current,!1),c.current=null),u(window,"mouseup",x,!1),u(window,"touchend",x,!1),u(window,"pointerup",x,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var p;(p=document.getElementById(mp(t,0)))===null||p===void 0||p.focus(),p_("keyboard")}),{labelProps:r,groupProps:T({role:"group"},i),trackProps:_e({onMouseDown(p){p.button!==0||p.altKey||p.ctrlKey||p.metaKey||y(p,void 0,p.clientX,p.clientY)},onPointerDown(p){p.pointerType==="mouse"&&(p.button!==0||p.altKey||p.ctrlKey||p.metaKey)||y(p,p.pointerId,p.clientX,p.clientY)},onTouchStart(p){y(p,p.changedTouches[0].identifier,p.changedTouches[0].clientX,p.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},h),outputProps:{htmlFor:t.values.map((p,g)=>mp(t,g)).join(" "),"aria-live":"off"}}}function e3(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:s,trackRef:o,inputRef:a,orientation:l=t.orientation,name:u}=e,c=e.isDisabled||t.isDisabled,d=l==="vertical",{direction:f}=Ro(),{addGlobalListener:h,removeGlobalListener:m}=$o(),y=pp.get(t);var x;const{labelProps:p,fieldProps:g}=fp(B(T({},e),{id:mp(t,n),"aria-labelledby":`${y.id} ${(x=e["aria-labelledby"])!==null&&x!==void 0?x:""}`.trim()})),b=t.values[n],w=_.useCallback(()=>{a.current&&yr(a.current)},[a]),S=t.focusedThumb===n;_.useEffect(()=>{S&&w()},[S,w]);let k=f==="rtl",$=_.useRef(null),{keyboardProps:M}=y_({onKeyDown(R){let{getThumbMaxValue:z,getThumbMinValue:N,decrementThumb:V,incrementThumb:U,setThumbValue:j,setThumbDragging:H,pageSize:q}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(R.key)){R.continuePropagation();return}switch(R.preventDefault(),H(n,!0),R.key){case"PageUp":U(n,q);break;case"PageDown":V(n,q);break;case"Home":j(n,N(n));break;case"End":j(n,z(n));break}H(n,!1)}}),{moveProps:P}=v_({onMoveStart(){$.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:R,deltaY:z,pointerType:N,shiftKey:V}){const{getThumbPercent:U,setThumbPercent:j,decrementThumb:H,incrementThumb:q,step:J,pageSize:ie}=t;if(!o.current)return;let{width:ve,height:lt}=o.current.getBoundingClientRect(),fi=d?lt:ve;if($.current==null&&($.current=U(n)*fi),N==="keyboard")R>0&&k||R<0&&!k||z>0?H(n,V?ie:J):q(n,V?ie:J);else{let Wn=d?z:R;(d||k)&&(Wn=-Wn),$.current+=Wn,j(n,ns($.current/fi,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!c);const{focusableProps:E}=rp(_e(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),a);let F=_.useRef(void 0),C=R=>{w(),F.current=R,t.setThumbDragging(n,!0),h(window,"mouseup",I,!1),h(window,"touchend",I,!1),h(window,"pointerup",I,!1)},I=R=>{var z,N;((N=R.pointerId)!==null&&N!==void 0?N:(z=R.changedTouches)===null||z===void 0?void 0:z[0].identifier)===F.current&&(w(),t.setThumbDragging(n,!1),m(window,"mouseup",I,!1),m(window,"touchend",I,!1),m(window,"pointerup",I,!1))},A=t.getThumbPercent(n);(d||f==="rtl")&&(A=1-A);let L=c?{}:_e(M,P,{onMouseDown:R=>{R.button!==0||R.altKey||R.ctrlKey||R.metaKey||C()},onPointerDown:R=>{R.button!==0||R.altKey||R.ctrlKey||R.metaKey||C(R.pointerId)},onTouchStart:R=>{C(R.changedTouches[0].identifier)}});return Ih(a,b,R=>{t.setThumbValue(n,R)}),{inputProps:_e(E,g,{type:"range",tabIndex:c?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:b,name:u,disabled:c,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":s||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[y["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[y["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:R=>{t.setThumbValue(n,parseFloat(R.target.value))}}),thumbProps:B(T({},L),{style:{position:"absolute",[d?"top":"left"]:`${A*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}}),labelProps:p,isDragging:t.isThumbDragging(n),isDisabled:c,isFocused:S}}function t3(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:s=!1,type:o="text",validationBehavior:a="aria"}=e,[l,u]=Vh(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=rp(e,t),d=R_(B(T({},e),{value:l})),{isInvalid:f,validationErrors:h,validationDetails:m}=d.displayValidation,{labelProps:y,fieldProps:x,descriptionProps:p,errorMessageProps:g}=UA(B(T({},e),{isInvalid:f,errorMessage:e.errorMessage||h})),b=ei(e,{labelable:!0});const w={type:o,pattern:e.pattern};return Ih(t,l,u),zA(e,d,t),_.useEffect(()=>{if(t.current instanceof rn(t.current).HTMLTextAreaElement){let S=t.current;Object.defineProperty(S,"defaultValue",{get:()=>S.value,set:()=>{},configurable:!0})}},[t]),{labelProps:y,inputProps:_e(b,n==="input"?w:void 0,T(T({disabled:r,readOnly:s,required:i&&a==="native","aria-required":i&&a==="aria"||void 0,"aria-invalid":f||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:S=>u(S.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput},c),x)),descriptionProps:p,errorMessageProps:g,isInvalid:f,validationErrors:h,validationDetails:m}}function V_(){return typeof window!="undefined"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function n3(e,t,n){let r=Be(f=>{let h=n.current;if(!h)return;let m=null;switch(f.inputType){case"historyUndo":case"historyRedo":return;case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":m=h.value.slice(0,h.selectionStart)+h.value.slice(h.selectionEnd);break;case"deleteContentForward":m=h.selectionEnd===h.selectionStart?h.value.slice(0,h.selectionStart)+h.value.slice(h.selectionEnd+1):h.value.slice(0,h.selectionStart)+h.value.slice(h.selectionEnd);break;case"deleteContentBackward":m=h.selectionEnd===h.selectionStart?h.value.slice(0,h.selectionStart-1)+h.value.slice(h.selectionStart):h.value.slice(0,h.selectionStart)+h.value.slice(h.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":m=h.value.slice(h.selectionStart);break;default:f.data!=null&&(m=h.value.slice(0,h.selectionStart)+f.data+h.value.slice(h.selectionEnd));break}(m==null||!t.validate(m))&&f.preventDefault()});_.useEffect(()=>{if(!V_()||!n.current)return;let f=n.current;return f.addEventListener("beforeinput",r,!1),()=>{f.removeEventListener("beforeinput",r,!1)}},[n,r]);let i=V_()?null:f=>{let h=f.target.value.slice(0,f.target.selectionStart)+f.data+f.target.value.slice(f.target.selectionEnd);t.validate(h)||f.preventDefault()},d=t3(e,n),{labelProps:s,inputProps:o,descriptionProps:a,errorMessageProps:l}=d,u=te(d,["labelProps","inputProps","descriptionProps","errorMessageProps"]),c=_.useRef(null);return T({inputProps:_e(o,{onBeforeInput:i,onCompositionStart(){let{value:f,selectionStart:h,selectionEnd:m}=n.current;c.current={value:f,selectionStart:h,selectionEnd:m}},onCompositionEnd(){if(n.current&&!t.validate(n.current.value)){let{value:f,selectionStart:h,selectionEnd:m}=c.current;n.current.value=f,n.current.setSelectionRange(h,m),t.setInputValue(f)}}}),labelProps:s,descriptionProps:a,errorMessageProps:l},u)}var z_={};z_={Empty:"فارغ"};var B_={};B_={Empty:"Изпразни"};var H_={};H_={Empty:"Prázdné"};var W_={};W_={Empty:"Tom"};var U_={};U_={Empty:"Leer"};var K_={};K_={Empty:"Άδειο"};var Y_={};Y_={Empty:"Empty"};var G_={};G_={Empty:"Vacío"};var X_={};X_={Empty:"Tühjenda"};var q_={};q_={Empty:"Tyhjä"};var Q_={};Q_={Empty:"Vide"};var Z_={};Z_={Empty:"ריק"};var J_={};J_={Empty:"Prazno"};var e1={};e1={Empty:"Üres"};var t1={};t1={Empty:"Vuoto"};var n1={};n1={Empty:"空"};var r1={};r1={Empty:"비어 있음"};var i1={};i1={Empty:"Tuščias"};var s1={};s1={Empty:"Tukšs"};var o1={};o1={Empty:"Tom"};var a1={};a1={Empty:"Leeg"};var l1={};l1={Empty:"Pusty"};var u1={};u1={Empty:"Vazio"};var c1={};c1={Empty:"Vazio"};var d1={};d1={Empty:"Gol"};var f1={};f1={Empty:"Не заполнено"};var h1={};h1={Empty:"Prázdne"};var p1={};p1={Empty:"Prazen"};var m1={};m1={Empty:"Prazno"};var g1={};g1={Empty:"Tomt"};var y1={};y1={Empty:"Boş"};var v1={};v1={Empty:"Пусто"};var b1={};b1={Empty:"空"};var x1={};x1={Empty:"空白"};var _1={};_1={"ar-AE":z_,"bg-BG":B_,"cs-CZ":H_,"da-DK":W_,"de-DE":U_,"el-GR":K_,"en-US":Y_,"es-ES":G_,"et-EE":X_,"fi-FI":q_,"fr-FR":Q_,"he-IL":Z_,"hr-HR":J_,"hu-HU":e1,"it-IT":t1,"ja-JP":n1,"ko-KR":r1,"lt-LT":i1,"lv-LV":s1,"nb-NO":o1,"nl-NL":a1,"pl-PL":l1,"pt-BR":u1,"pt-PT":c1,"ro-RO":d1,"ru-RU":f1,"sk-SK":h1,"sl-SI":p1,"sr-SP":m1,"sv-SE":g1,"tr-TR":y1,"uk-UA":v1,"zh-CN":b1,"zh-TW":x1};function r3(e){return e&&e.__esModule?e.default:e}function i3(e){const t=_.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:s,isDisabled:o,isReadOnly:a,isRequired:l,onIncrement:u,onIncrementPage:c,onDecrement:d,onDecrementPage:f,onDecrementToMin:h,onIncrementToMax:m}=e;const y=P_(r3(_1),"@react-aria/spinbutton"),x=()=>clearTimeout(t.current);_.useEffect(()=>()=>x(),[]);let p=F=>{if(!(F.ctrlKey||F.metaKey||F.shiftKey||F.altKey||a))switch(F.key){case"PageUp":if(c){F.preventDefault(),c==null||c();break}case"ArrowUp":case"Up":u&&(F.preventDefault(),u==null||u());break;case"PageDown":if(f){F.preventDefault(),f==null||f();break}case"ArrowDown":case"Down":d&&(F.preventDefault(),d==null||d());break;case"Home":h&&(F.preventDefault(),h==null||h());break;case"End":m&&(F.preventDefault(),m==null||m());break}},g=_.useRef(!1),b=()=>{g.current=!0},w=()=>{g.current=!1},S=r===""?y.format("Empty"):(r||`${n}`).replace("-","−");_.useEffect(()=>{g.current&&(NA("assertive"),FA(S,"assertive"))},[S]);const k=Be(F=>{x(),u==null||u(),t.current=window.setTimeout(()=>{(s===void 0||isNaN(s)||n===void 0||isNaN(n)||n{x(),d==null||d(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&$(60)},F)});let M=F=>{F.preventDefault()},{addGlobalListener:P,removeAllGlobalListeners:E}=$o();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":S,"aria-valuemin":i,"aria-valuemax":s,"aria-disabled":o||void 0,"aria-readonly":a||void 0,"aria-required":l||void 0,onKeyDown:p,onFocus:b,onBlur:w},incrementButtonProps:{onPressStart:()=>{k(400),P(window,"contextmenu",M)},onPressEnd:()=>{x(),E()},onFocus:b,onBlur:w},decrementButtonProps:{onPressStart:()=>{$(400),P(window,"contextmenu",M)},onPressEnd:()=>{x(),E()},onFocus:b,onBlur:w}}}var w1={};w1={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var S1={};S1={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var P1={};P1={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var k1={};k1={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var C1={};C1={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var T1={};T1={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var E1={};E1={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var $1={};$1={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var M1={};M1={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var D1={};D1={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var A1={};A1={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var L1={};L1={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var R1={};R1={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var F1={};F1={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var N1={};N1={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var j1={};j1={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var O1={};O1={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var I1={};I1={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var V1={};V1={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var z1={};z1={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var B1={};B1={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var H1={};H1={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var W1={};W1={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var U1={};U1={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var K1={};K1={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var Y1={};Y1={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var G1={};G1={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var X1={};X1={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var q1={};q1={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var Q1={};Q1={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var Z1={};Z1={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var J1={};J1={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var ew={};ew={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var tw={};tw={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"};var nw={};nw={"ar-AE":w1,"bg-BG":S1,"cs-CZ":P1,"da-DK":k1,"de-DE":C1,"el-GR":T1,"en-US":E1,"es-ES":$1,"et-EE":M1,"fi-FI":D1,"fr-FR":A1,"he-IL":L1,"hr-HR":R1,"hu-HU":F1,"it-IT":N1,"ja-JP":j1,"ko-KR":O1,"lt-LT":I1,"lv-LV":V1,"nb-NO":z1,"nl-NL":B1,"pl-PL":H1,"pt-BR":W1,"pt-PT":U1,"ro-RO":K1,"ru-RU":Y1,"sk-SK":G1,"sl-SI":X1,"sr-SP":q1,"sv-SE":Q1,"tr-TR":Z1,"uk-UA":J1,"zh-CN":ew,"zh-TW":tw};function s3(e){return e&&e.__esModule?e.default:e}function o3(e,t,n){let mi=e,{id:r,decrementAriaLabel:i,incrementAriaLabel:s,isDisabled:o,isReadOnly:a,isRequired:l,minValue:u,maxValue:c,autoFocus:d,label:f,formatOptions:h,onBlur:m=()=>{},onFocus:y,onFocusChange:x,onKeyDown:p,onKeyUp:g,description:b,errorMessage:w,isWheelDisabled:S}=mi,k=te(mi,["id","decrementAriaLabel","incrementAriaLabel","isDisabled","isReadOnly","isRequired","minValue","maxValue","autoFocus","label","formatOptions","onBlur","onFocus","onFocusChange","onKeyDown","onKeyUp","description","errorMessage","isWheelDisabled"]),{increment:$,incrementToMax:M,decrement:P,decrementToMin:E,numberValue:F,inputValue:C,commit:I,commitValidation:A}=t;const L=P_(s3(nw),"@react-aria/numberfield");let R=Jr(r),{focusProps:z}=qh({onBlur(){I()}}),N=lp(h),V=_.useMemo(()=>N.resolvedOptions(),[N]),U=lp(B(T({},h),{currencySign:void 0})),j=_.useMemo(()=>isNaN(F)?"":U.format(F),[U,F]),{spinButtonProps:H,incrementButtonProps:q,decrementButtonProps:J}=i3({isDisabled:o,isReadOnly:a,isRequired:l,maxValue:c,minValue:u,onIncrement:$,onIncrementToMax:M,onDecrement:P,onDecrementToMin:E,value:F,textValue:j}),[ie,ve]=_.useState(!1),{focusWithinProps:lt}=ep({isDisabled:o,onFocusWithinChange:ve}),fi=_.useCallback(ct=>{Math.abs(ct.deltaY)<=Math.abs(ct.deltaX)||(ct.deltaY>0?$():ct.deltaY<0&&P())},[P,$]);cA({onScroll:fi,isDisabled:S||o||a||!ie},n);var ms;let hi=((ms=V.maximumFractionDigits)!==null&&ms!==void 0?ms:0)>0,da=t.minValue===void 0||isNaN(t.minValue)||t.minValue<0,bn="numeric";Ux()?da?bn="text":hi&&(bn="decimal"):Nh()&&(da?bn="numeric":hi&&(bn="decimal"));let Ju=ct=>{t.validate(ct)&&t.setInputValue(ct)},gs=ei(e),fa=_.useCallback(ct=>{ct.key==="Enter"?(I(),A()):ct.continuePropagation()},[I,A]),{isInvalid:pi,validationErrors:ec,validationDetails:fe}=t.displayValidation,{labelProps:ha,inputProps:Mr,descriptionProps:tc,errorMessageProps:ys}=n3(B(T(T({},k),gs),{name:void 0,label:f,autoFocus:d,isDisabled:o,isReadOnly:a,isRequired:l,validate:void 0,[up]:t,value:C,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:R,type:"text",inputMode:bn,onChange:Ju,onBlur:m,onFocus:y,onFocusChange:x,onKeyDown:_.useMemo(()=>Lh(fa,p),[fa,p]),onKeyUp:g,description:b,errorMessage:w}),t,n);Ih(n,t.numberValue,t.setNumberValue);let pa=_e(H,z,Mr,{role:null,"aria-roledescription":Fh()?null:L.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});e.validationBehavior==="native"&&(pa["aria-required"]=void 0);let Gt=ct=>{var ga;document.activeElement!==n.current&&(ct.pointerType==="mouse"?(ga=n.current)===null||ga===void 0||ga.focus():ct.target.focus())},vs=e["aria-label"]||(typeof e.label=="string"?e.label:""),wt;vs||(wt=e.label!=null?ha.id:e["aria-labelledby"]);let ma=Jr(),se=Jr(),At=_e(q,{"aria-label":s||L.format("increase",{fieldLabel:vs}).trim(),id:wt&&!s?ma:null,"aria-labelledby":wt&&!s?`${ma} ${wt}`:null,"aria-controls":R,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:Gt}),ut=_e(J,{"aria-label":i||L.format("decrease",{fieldLabel:vs}).trim(),id:wt&&!i?se:null,"aria-labelledby":wt&&!i?`${se} ${wt}`:null,"aria-controls":R,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:Gt});return{groupProps:B(T({},lt),{role:"group","aria-disabled":o,"aria-invalid":pi?"true":void 0}),labelProps:ha,inputProps:pa,incrementButtonProps:At,decrementButtonProps:ut,errorMessageProps:ys,descriptionProps:tc,isInvalid:pi,validationErrors:ec,validationDetails:fe}}const a3=_.createContext({}),rw=_.createContext({}),l3=_.forwardRef(function(t,n){[t,n]=Rn(t,n,rw);let s=t,{elementType:r="span"}=s,i=te(s,["elementType"]);return Z.createElement(r,B(T({className:"react-aria-Text"},i),{ref:n}))}),gp=_.createContext(null),u3=_.forwardRef(function(t,n){let r=_.useContext(gp);return r!=null&&r.isInvalid?Z.createElement(c3,B(T({},t),{ref:n})):null}),c3=_.forwardRef((e,t)=>{let n=_.useContext(gp),r=ei(e),i=Ln(B(T({},e),{defaultClassName:"react-aria-FieldError",defaultChildren:n.validationErrors.length===0?void 0:n.validationErrors.join(" "),values:n}));return i.children==null?null:Z.createElement(l3,B(T(T({slot:"errorMessage"},r),i),{ref:t}))}),d3=_.createContext(null),iw=_.createContext({}),f3=_.forwardRef(function(t,n){[t,n]=Rn(t,n,iw);let p=t,{isDisabled:r,isInvalid:i,onHoverStart:s,onHoverChange:o,onHoverEnd:a}=p,l=te(p,["isDisabled","isInvalid","onHoverStart","onHoverChange","onHoverEnd"]),{hoverProps:u,isHovered:c}=Ao({onHoverStart:s,onHoverChange:o,onHoverEnd:a,isDisabled:r}),{isFocused:d,isFocusVisible:f,focusProps:h}=cu({within:!0});r!=null||(r=!!t["aria-disabled"]&&t["aria-disabled"]!=="false"),i!=null||(i=!!t["aria-invalid"]&&t["aria-invalid"]!=="false");let m=Ln(B(T({},t),{values:{isHovered:c,isFocusWithin:d,isFocusVisible:f,isDisabled:r,isInvalid:i},defaultClassName:"react-aria-Group"}));var y,x;return Z.createElement("div",B(T(T({},_e(l,h,u)),m),{ref:n,role:(y=t.role)!==null&&y!==void 0?y:"group",slot:(x=t.slot)!==null&&x!==void 0?x:void 0,"data-focus-within":d||void 0,"data-hovered":c||void 0,"data-focus-visible":f||void 0,"data-disabled":r||void 0,"data-invalid":i||void 0}),m.children)}),sw=_.createContext({});let h3=e=>{let s=e,{onHoverStart:t,onHoverChange:n,onHoverEnd:r}=s;return te(s,["onHoverStart","onHoverChange","onHoverEnd"])};const p3=Zx(function(t,n){[t,n]=Rn(t,n,sw);let{hoverProps:r,isHovered:i}=Ao(t),{isFocused:s,isFocusVisible:o,focusProps:a}=cu({isTextInput:!0,autoFocus:t.autoFocus}),l=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",u=Ln(B(T({},t),{values:{isHovered:i,isFocused:s,isFocusVisible:o,isDisabled:t.disabled||!1,isInvalid:l},defaultClassName:"react-aria-Input"}));return Z.createElement("input",B(T(T({},_e(h3(t),a,r)),u),{ref:n,"data-focused":s||void 0,"data-disabled":t.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":o||void 0,"data-invalid":l||void 0}))}),m3=_.createContext(null),g3=_.forwardRef(function(t,n){[t,n]=Rn(t,n,m3);let r=t.href&&!t.isDisabled?"a":"span",{linkProps:i,isPressed:s}=pA(B(T({},t),{elementType:r}),n),{hoverProps:o,isHovered:a}=Ao(t),{focusProps:l,isFocused:u,isFocusVisible:c}=cu(),d=Ln(B(T({},t),{defaultClassName:"react-aria-Link",values:{isCurrent:!!t["aria-current"],isDisabled:t.isDisabled||!1,isPressed:s,isHovered:a,isFocused:u,isFocusVisible:c}}));return Z.createElement(r,B(T({ref:n,slot:t.slot||void 0},_e(d,i,o,l)),{"data-focused":u||void 0,"data-hovered":a||void 0,"data-pressed":s||void 0,"data-focus-visible":c||void 0,"data-current":!!t["aria-current"]||void 0,"data-disabled":t.isDisabled||void 0}),d.children)}),y3=_.createContext(null),mu=_.createContext(null),yp=_.createContext(null),ow=_.createContext(null),v3=_.forwardRef(function(t,n){[t,n]=Rn(t,n,y3);let r=_.useRef(null),i=lp(t.formatOptions),s=XA(B(T({},t),{numberFormatter:i})),[o,a]=Hh(),{groupProps:l,trackProps:u,labelProps:c,outputProps:d}=JA(B(T({},t),{label:a}),s,r),f=Ln(B(T({},t),{values:{orientation:s.orientation,isDisabled:s.isDisabled,state:s},defaultClassName:"react-aria-Slider"})),h=ei(t);return delete h.id,Z.createElement(zh,{values:[[mu,s],[yp,B(T({},u),{ref:r})],[ow,d],[ru,B(T({},c),{ref:o})]]},Z.createElement("div",B(T(T(T({},h),l),f),{ref:n,slot:t.slot||void 0,"data-orientation":s.orientation,"data-disabled":s.isDisabled||void 0})))}),b3=_.forwardRef(function(t,n){[t,n]=Rn(t,n,ow);let u=t,{children:r,style:i,className:s}=u,o=te(u,["children","style","className"]),a=_.useContext(mu),l=Ln({className:s,style:i,children:r,defaultChildren:a.getThumbValueLabel(0),defaultClassName:"react-aria-SliderOutput",values:{orientation:a.orientation,isDisabled:a.isDisabled,state:a}});return Z.createElement("output",B(T(T({},o),l),{ref:n,"data-orientation":a.orientation||void 0,"data-disabled":a.isDisabled||void 0}))}),x3=_.forwardRef(function(t,n){[t,n]=Rn(t,n,yp);let r=_.useContext(mu),d=t,{onHoverStart:i,onHoverEnd:s,onHoverChange:o}=d,a=te(d,["onHoverStart","onHoverEnd","onHoverChange"]),{hoverProps:l,isHovered:u}=Ao({onHoverStart:i,onHoverEnd:s,onHoverChange:o}),c=Ln(B(T({},t),{defaultClassName:"react-aria-SliderTrack",values:{orientation:r.orientation,isDisabled:r.isDisabled,isHovered:u,state:r}}));return Z.createElement("div",B(T(T({},_e(a,l)),c),{ref:n,"data-hovered":u||void 0,"data-orientation":r.orientation||void 0,"data-disabled":r.isDisabled||void 0}))}),_3=_.forwardRef(function(t,n){let{inputRef:r=null}=t,i=_.useContext(mu),{ref:s}=Bh(yp),{index:o=0}=t,a=_.useRef(null),l=r||a,[u,c]=Hh(),{thumbProps:d,inputProps:f,labelProps:h,isDragging:m,isFocused:y,isDisabled:x}=e3(B(T({},t),{index:o,trackRef:s,inputRef:l,label:c}),i),{focusProps:p,isFocusVisible:g}=cu(),{hoverProps:b,isHovered:w}=Ao(t),S=Ln(B(T({},t),{defaultClassName:"react-aria-SliderThumb",values:{state:i,isHovered:w,isDragging:m,isFocused:y,isFocusVisible:g,isDisabled:x}})),k=ei(t);return delete k.id,Z.createElement("div",B(T(T({},_e(k,d,b)),S),{ref:n,style:T(T({},d.style),S.style),"data-hovered":w||void 0,"data-dragging":m||void 0,"data-focused":y||void 0,"data-focus-visible":g||void 0,"data-disabled":x||void 0}),Z.createElement(ZA,null,Z.createElement("input",T({ref:l},_e(f,p)))),Z.createElement(zh,{values:[[ru,B(T({},h),{ref:u})]]},S.children))}),w3=_.createContext(null),S3=_.createContext(null),P3=_.forwardRef(function(t,n){[t,n]=Rn(t,n,w3);let{validationBehavior:r}=Bh(d3)||{};var i,s;let o=(s=(i=t.validationBehavior)!==null&&i!==void 0?i:r)!==null&&s!==void 0?s:"native",{locale:a}=Ro(),l=qA(B(T({},t),{locale:a,validationBehavior:o})),u=_.useRef(null),[c,d]=Hh(),k=o3(B(T({},BD(t)),{label:d,validationBehavior:o}),l,u),{labelProps:f,groupProps:h,inputProps:m,incrementButtonProps:y,decrementButtonProps:x,descriptionProps:p,errorMessageProps:g}=k,b=te(k,["labelProps","groupProps","inputProps","incrementButtonProps","decrementButtonProps","descriptionProps","errorMessageProps"]),w=Ln(B(T({},t),{values:{state:l,isDisabled:t.isDisabled||!1,isInvalid:b.isInvalid||!1},defaultClassName:"react-aria-NumberField"})),S=ei(t);return delete S.id,Z.createElement(zh,{values:[[S3,l],[iw,h],[sw,B(T({},m),{ref:u})],[ru,B(T({},f),{ref:c})],[a3,{slots:{increment:y,decrement:x}}],[rw,{slots:{description:p,errorMessage:g}}],[gp,b]]},Z.createElement("div",B(T(T({},S),w),{ref:n,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":b.isInvalid||void 0})),t.name&&Z.createElement("input",{type:"hidden",name:t.name,value:isNaN(l.numberValue)?"":l.numberValue}))});function vp(){const e={id:"",name:"",position:"",source:"",variant:"",state:"",type:""},t=document.getElementById("wps-agentforce-roi");if(!t)return e;const n=t.closest('[data-blade-name="sf/open"]');if(!n)return e;const r={};return Array.from(n.attributes).forEach(i=>{if(i.name.startsWith("data-blade-")){const s=i.name.replace("data-blade-","");r[s]=i.value}}),T(T({},e),r)}const k3=e=>{if(!e)return 0;const t=e.closest(".input-panel");if(!t)return 0;const n=Array.from(t.querySelectorAll(".input-container")),r=e.closest(".input-container");return r?n.indexOf(r)+1:0},aw=(e,t,n)=>{let r=null;const i=vp();typeof e=="number"?r=document.querySelectorAll(`[data-input-name="${t}"]`)[0]:r=e.target;const s=k3(r),o={event:"custEv_contentClick",blade:{id:i.id,name:"sf/marquee/agentforce-inputs",position:i.position,source:"www",variant:"marquee",state:"rendered",type:"blade",module:{id:"",name:t,type:r?"input field":"slider",position:s,link:{text:"",url:"",type:"",internalDriver:""}}}};window.dataLayer&&window.dataLayer.push(T({},o))};function sn(o){var a=o,{label:e,description:t,errorMessage:n,info:r,inputName:i}=a,s=te(a,["label","description","errorMessage","info","inputName"]);return v.jsx(P3,B(T({},s),{children:v.jsxs("div",{className:"flex flex-col gap-2 input-container",children:[v.jsx(Jx,{className:"font-sans text-sm font-bold leading-tight text-neutral-700",children:e}),v.jsx(f3,{children:v.jsx(p3,{id:e,className:"w-full rounded border border-[#747474] p-2 text-lg focus:outline-none focus:ring-2 focus:ring-blue-500",onChange:l=>aw(l,i),"data-input-name":i})}),v.jsx(u3,{className:"font-sans text-sm leading-tight text-red-600",children:n})]})}))}function xr({label:e,info:t,value:n,onChange:r,maxValue:i,minValue:s,prefix:o,suffix:a,step:l,inputName:u}){return v.jsx("div",{className:"flex justify-center input-container",children:v.jsxs(v3,{value:n,onChange:c=>{r(c),aw(c,u)},className:"w-full",maxValue:i!=null?i:100,minValue:s!=null?s:0,step:l!=null?l:1,"data-input-name":u,children:[v.jsx("div",{className:"flex font-sans text-sm font-bold leading-tight text-neutral-700",children:v.jsx(Jx,{className:"flex-1",children:e})}),v.jsxs("div",{className:"mt-6 flex gap-4",children:[v.jsx(x3,{className:"relative flex h-7 w-full",children:({state:c})=>v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"slider-track absolute top-[50%] h-1 w-full translate-y-[-50%] rounded-full bg-[#929292]"}),v.jsx("div",{className:"text-right font-sans text-sm font-bold leading-tight text-[#5867E8]",style:{position:"absolute",left:c.getThumbPercent(0)*100+"%",bottom:"20px",transform:"translate(-50%, -50%)",touchAction:"none"},children:v.jsx(b3,{})}),v.jsx("div",{className:"absolute top-[50%] h-1 translate-y-[-50%] rounded-full bg-[#5867E8]",style:{width:c.getThumbPercent(0)*100+"%"}}),v.jsx(_3,{className:"top-[50%] h-7 w-7 cursor-grab rounded-full border border-2 border-solid border-[#5867E8] bg-white shadow-lg outline-none ring-blue-600 transition active:cursor-grabbing focus-visible:ring-2 dragging:bg-gray-200"})]})}),v.jsx("div",{className:"font-sans text-lg font-normal leading-7 tracking-tight text-neutral-900",children:"%"})]})]})})}/*! * @kurkle/color v0.3.4 * https://github.com/kurkle/color#readme * (c) 2024 Jukka Kurkela * Released under the MIT License */function No(e){return e+.5|0}const _r=(e,t,n)=>Math.max(Math.min(e,n),t);function jo(e){return _r(No(e*2.55),0,255)}function wr(e){return _r(No(e*255),0,255)}function Nn(e){return _r(No(e/2.55)/100,0,1)}function lw(e){return _r(No(e*100),0,100)}const Ut={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},bp=[..."0123456789ABCDEF"],C3=e=>bp[e&15],T3=e=>bp[(e&240)>>4]+bp[e&15],gu=e=>(e&240)>>4===(e&15),E3=e=>gu(e.r)&&gu(e.g)&&gu(e.b)&&gu(e.a);function $3(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Ut[e[1]]*17,g:255&Ut[e[2]]*17,b:255&Ut[e[3]]*17,a:t===5?Ut[e[4]]*17:255}:(t===7||t===9)&&(n={r:Ut[e[1]]<<4|Ut[e[2]],g:Ut[e[3]]<<4|Ut[e[4]],b:Ut[e[5]]<<4|Ut[e[6]],a:t===9?Ut[e[7]]<<4|Ut[e[8]]:255})),n}const M3=(e,t)=>e<255?t(e):"";function D3(e){var t=E3(e)?C3:T3;return e?"#"+t(e.r)+t(e.g)+t(e.b)+M3(e.a,t):void 0}const A3=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function uw(e,t,n){const r=t*Math.min(n,1-n),i=(s,o=(s+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function L3(e,t,n){const r=(i,s=(i+e/60)%6)=>n-n*t*Math.max(Math.min(s,4-s,1),0);return[r(5),r(3),r(1)]}function R3(e,t,n){const r=uw(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function F3(e,t,n,r,i){return e===i?(t-n)/r+(t.5?c/(2-s-o):c/(s+o),l=F3(n,r,i,c,s),l=l*60+.5),[l|0,u||0,a]}function _p(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(wr)}function wp(e,t,n){return _p(uw,e,t,n)}function N3(e,t,n){return _p(R3,e,t,n)}function j3(e,t,n){return _p(L3,e,t,n)}function cw(e){return(e%360+360)%360}function O3(e){const t=A3.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?jo(+t[5]):wr(+t[5]));const i=cw(+t[2]),s=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?r=N3(i,s,o):t[1]==="hsv"?r=j3(i,s,o):r=wp(i,s,o),{r:r[0],g:r[1],b:r[2],a:n}}function I3(e,t){var n=xp(e);n[0]=cw(n[0]+t),n=wp(n),e.r=n[0],e.g=n[1],e.b=n[2]}function V3(e){if(!e)return;const t=xp(e),n=t[0],r=lw(t[1]),i=lw(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${Nn(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const dw={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},fw={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function z3(){const e={},t=Object.keys(fw),n=Object.keys(dw);let r,i,s,o,a;for(r=0;r>16&255,s>>8&255,s&255]}return e}let yu;function B3(e){yu||(yu=z3(),yu.transparent=[0,0,0,0]);const t=yu[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const H3=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function W3(e){const t=H3.exec(e);let n=255,r,i,s;if(t){if(t[7]!==r){const o=+t[7];n=t[8]?jo(o):_r(o*255,0,255)}return r=+t[1],i=+t[3],s=+t[5],r=255&(t[2]?jo(r):_r(r,0,255)),i=255&(t[4]?jo(i):_r(i,0,255)),s=255&(t[6]?jo(s):_r(s,0,255)),{r,g:i,b:s,a:n}}}function U3(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Nn(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Sp=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,ss=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function K3(e,t,n){const r=ss(Nn(e.r)),i=ss(Nn(e.g)),s=ss(Nn(e.b));return{r:wr(Sp(r+n*(ss(Nn(t.r))-r))),g:wr(Sp(i+n*(ss(Nn(t.g))-i))),b:wr(Sp(s+n*(ss(Nn(t.b))-s))),a:e.a+n*(t.a-e.a)}}function vu(e,t,n){if(e){let r=xp(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=wp(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function hw(e,t){return e&&Object.assign(t||{},e)}function pw(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=wr(e[3]))):(t=hw(e,{r:0,g:0,b:0,a:1}),t.a=wr(t.a)),t}function Y3(e){return e.charAt(0)==="r"?W3(e):O3(e)}class Oo{constructor(t){if(t instanceof Oo)return t;const n=typeof t;let r;n==="object"?r=pw(t):n==="string"&&(r=$3(t)||B3(t)||Y3(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=hw(this._rgb);return t&&(t.a=Nn(t.a)),t}set rgb(t){this._rgb=pw(t)}rgbString(){return this._valid?U3(this._rgb):void 0}hexString(){return this._valid?D3(this._rgb):void 0}hslString(){return this._valid?V3(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let s;const o=n===s?.5:n,a=2*o-1,l=r.a-i.a,u=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;s=1-u,r.r=255&u*r.r+s*i.r+.5,r.g=255&u*r.g+s*i.g+.5,r.b=255&u*r.b+s*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=K3(this._rgb,t._rgb,n)),this}clone(){return new Oo(this.rgb)}alpha(t){return this._rgb.a=wr(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=No(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return vu(this._rgb,2,t),this}darken(t){return vu(this._rgb,2,-t),this}saturate(t){return vu(this._rgb,1,t),this}desaturate(t){return vu(this._rgb,1,-t),this}rotate(t){return I3(this._rgb,t),this}}/*! * Chart.js v4.4.7 * https://www.chartjs.org * (c) 2024 Chart.js Contributors * Released under the MIT License */function jn(){}const G3=(()=>{let e=0;return()=>e++})();function le(e){return e==null}function Fe(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function re(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Kt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function mn(e,t){return Kt(e)?e:t}function oe(e,t){return typeof e=="undefined"?t:e}const X3=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function he(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function ue(e,t,n,r){let i,s,o;if(Fe(e))for(s=e.length,i=0;ie,x:e=>e.x,y:e=>e.y};function Z3(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function J3(e){const t=Z3(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function os(e,t){return(gw[t]||(gw[t]=J3(t)))(e)}function Pp(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Vo=e=>typeof e!="undefined",Sr=e=>typeof e=="function",yw=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function eL(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const He=Math.PI,at=2*He,_u=Number.POSITIVE_INFINITY,tL=He/180,Ye=He/2,ri=He/4,vw=He*2/3,kp=Math.log10,Pr=Math.sign;function wu(e,t,n){return Math.abs(e-t)i-s).pop(),t}function Su(e){return!isNaN(parseFloat(e))&&isFinite(e)}function rL(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function iL(e,t,n){let r,i,s;for(r=0,i=e.length;rl&&u=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function Cp(e,t,n){n=n||(o=>e[o]1;)s=i+r>>1,n(s)?i=s:r=s;return{lo:i,hi:r}}const Tp=(e,t,n,r)=>Cp(e,n,r?i=>{const s=e[i][t];return se[i][t]Cp(e,n,r=>e[r][t]>=n);function uL(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{const r="_onData"+Pp(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...s){const o=i.apply(this,s);return e._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...s)}),o}})})}function Pw(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(Sw.forEach(s=>{delete e[s]}),delete e._chartjs)}function kw(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const Cw=function(){return typeof window=="undefined"?function(e){return e()}:window.requestAnimationFrame}();function Tw(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,Cw.call(window,()=>{r=!1,e.apply(t,n)}))}}function dL(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const Ep=e=>e==="start"?"left":e==="end"?"right":"center",tt=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,fL=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t,Pu=e=>e===0||e===1,Ew=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*at/n)),$w=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*at/n)+1,zo={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Ye)+1,easeOutSine:e=>Math.sin(e*Ye),easeInOutSine:e=>-.5*(Math.cos(He*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Pu(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Pu(e)?e:Ew(e,.075,.3),easeOutElastic:e=>Pu(e)?e:$w(e,.075,.3),easeInOutElastic(e){return Pu(e)?e:e<.5?.5*Ew(e*2,.1125,.45):.5+.5*$w(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-zo.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?zo.easeInBounce(e*2)*.5:zo.easeOutBounce(e*2-1)*.5+.5};function Mw(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Dw(e){return Mw(e)?e:new Oo(e)}function $p(e){return Mw(e)?e:new Oo(e).saturate(.5).darken(.1).hexString()}const hL=["x","y","borderWidth","radius","tension"],pL=["color","borderColor","backgroundColor"];function mL(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:pL},numbers:{type:"number",properties:hL}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function gL(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Aw=new Map;function yL(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Aw.get(n);return r||(r=new Intl.NumberFormat(e,t),Aw.set(n,r)),r}function Lw(e,t,n){return yL(t,n).format(e)}const Rw={values(e){return Fe(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,s=e;if(n.length>1){const u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(i="scientific"),s=vL(e,n)}const o=kp(Math.abs(s)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Lw(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(kp(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?Rw.numeric.call(this,e,t,n):""}};function vL(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Fw={formatters:Rw};function bL(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Fw.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const ai=Object.create(null),Mp=Object.create(null);function Bo(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>$p(i.backgroundColor),this.hoverBorderColor=(r,i)=>$p(i.borderColor),this.hoverColor=(r,i)=>$p(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Dp(this,t,n)}get(t){return Bo(this,t)}describe(t,n){return Dp(Mp,t,n)}override(t,n){return Dp(ai,t,n)}route(t,n,r,i){const s=Bo(this,t),o=Bo(this,r),a="_"+n;Object.defineProperties(s,{[a]:{value:s[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],u=o[i];return re(l)?Object.assign({},u,l):oe(l,u)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var Me=new xL({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[mL,gL,bL]);function _L(e){return!e||le(e.size)||le(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Nw(e,t,n,r,i){let s=t[i];return s||(s=t[i]=e.measureText(i).width,n.push(i)),s>r&&(r=s),r}function li(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function jw(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Ap(e,t,n,r){Ow(e,t,n,r,null)}function Ow(e,t,n,r,i){let s,o,a,l,u,c,d,f;const h=t.pointStyle,m=t.rotation,y=t.radius;let x=(m||0)*tL;if(h&&typeof h=="object"&&(s=h.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(x),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),e.restore();return}if(!(isNaN(y)||y<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,y,0,0,at):e.arc(n,r,y,0,at),e.closePath();break;case"triangle":c=i?i/2:y,e.moveTo(n+Math.sin(x)*c,r-Math.cos(x)*y),x+=vw,e.lineTo(n+Math.sin(x)*c,r-Math.cos(x)*y),x+=vw,e.lineTo(n+Math.sin(x)*c,r-Math.cos(x)*y),e.closePath();break;case"rectRounded":u=y*.516,l=y-u,o=Math.cos(x+ri)*l,d=Math.cos(x+ri)*(i?i/2-u:l),a=Math.sin(x+ri)*l,f=Math.sin(x+ri)*(i?i/2-u:l),e.arc(n-d,r-a,u,x-He,x-Ye),e.arc(n+f,r-o,u,x-Ye,x),e.arc(n+d,r+a,u,x,x+Ye),e.arc(n-f,r+o,u,x+Ye,x+He),e.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*y,c=i?i/2:l,e.rect(n-c,r-l,2*c,2*l);break}x+=ri;case"rectRot":d=Math.cos(x)*(i?i/2:y),o=Math.cos(x)*y,a=Math.sin(x)*y,f=Math.sin(x)*(i?i/2:y),e.moveTo(n-d,r-a),e.lineTo(n+f,r-o),e.lineTo(n+d,r+a),e.lineTo(n-f,r+o),e.closePath();break;case"crossRot":x+=ri;case"cross":d=Math.cos(x)*(i?i/2:y),o=Math.cos(x)*y,a=Math.sin(x)*y,f=Math.sin(x)*(i?i/2:y),e.moveTo(n-d,r-a),e.lineTo(n+d,r+a),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o);break;case"star":d=Math.cos(x)*(i?i/2:y),o=Math.cos(x)*y,a=Math.sin(x)*y,f=Math.sin(x)*(i?i/2:y),e.moveTo(n-d,r-a),e.lineTo(n+d,r+a),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o),x+=ri,d=Math.cos(x)*(i?i/2:y),o=Math.cos(x)*y,a=Math.sin(x)*y,f=Math.sin(x)*(i?i/2:y),e.moveTo(n-d,r-a),e.lineTo(n+d,r+a),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o);break;case"line":o=i?i/2:Math.cos(x)*y,a=Math.sin(x)*y,e.moveTo(n-o,r-a),e.lineTo(n+o,r+a);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(x)*(i?i/2:y),r+Math.sin(x)*y);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Lp(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&s.strokeColor!=="";let l,u;for(e.save(),e.font=i.string,wL(e,s),l=0;l+e||0;function Np(e,t){const n={},r=re(t),i=r?Object.keys(t):t,s=re(e)?r?o=>oe(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of i)n[o]=EL(s(o));return n}function Iw(e){return Np(e,{top:"y",right:"x",bottom:"y",left:"x"})}function as(e){return Np(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Mt(e){const t=Iw(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Ge(e,t){e=e||{},t=t||Me.font;let n=oe(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=oe(e.style,t.style);r&&!(""+r).match(CL)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:oe(e.family,t.family),lineHeight:TL(oe(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:oe(e.weight,t.weight),string:""};return i.string=_L(i),i}function we(e,t,n,r){let i,s,o;for(i=0,s=e.length;in&&a===0?0:a+l;return{min:o(r,-Math.abs(s)),max:o(i,s)}}function ls(e,t){return Object.assign(Object.create(e),t)}function jp(e,t=[""],n,r,i=()=>e[0]){const s=n||e;typeof r=="undefined"&&(r=Ww("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:s,_fallback:r,_getTarget:i,override:a=>jp([a,...e],t,s,r)};return new Proxy(o,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return zw(a,l,()=>jL(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return Uw(a).includes(l)},ownKeys(a){return Uw(a)},set(a,l,u){const c=a._storage||(a._storage=i());return a[l]=c[l]=u,delete a._keys,!0}})}function us(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Vw(e,r),setContext:s=>us(e,s,n,r),override:s=>us(e.override(s),t,n,r)};return new Proxy(i,{deleteProperty(s,o){return delete s[o],delete e[o],!0},get(s,o,a){return zw(s,o,()=>DL(s,o,a))},getOwnPropertyDescriptor(s,o){return s._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(s,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(s,o,a){return e[o]=a,delete s[o],!0}})}function Vw(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:Sr(n)?n:()=>n,isIndexable:Sr(r)?r:()=>r}}const ML=(e,t)=>e?e+Pp(t):t,Op=(e,t)=>re(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function zw(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function DL(e,t,n){const{_proxy:r,_context:i,_subProxy:s,_descriptors:o}=e;let a=r[t];return Sr(a)&&o.isScriptable(t)&&(a=AL(t,a,e,n)),Fe(a)&&a.length&&(a=LL(t,a,e,o.isIndexable)),Op(t,a)&&(a=us(a,i,s&&s[t],o)),a}function AL(e,t,n,r){const{_proxy:i,_context:s,_subProxy:o,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(s,o||r);return a.delete(e),Op(e,l)&&(l=Ip(i._scopes,i,e,l)),l}function LL(e,t,n,r){const{_proxy:i,_context:s,_subProxy:o,_descriptors:a}=n;if(typeof s.index!="undefined"&&r(e))return t[s.index%t.length];if(re(t[0])){const l=t,u=i._scopes.filter(c=>c!==l);t=[];for(const c of l){const d=Ip(u,i,e,c);t.push(us(d,s,o&&o[e],a))}}return t}function Bw(e,t,n){return Sr(e)?e(t,n):e}const RL=(e,t)=>e===!0?t:typeof e=="string"?os(t,e):void 0;function FL(e,t,n,r,i){for(const s of t){const o=RL(n,s);if(o){e.add(o);const a=Bw(o._fallback,n,i);if(typeof a!="undefined"&&a!==n&&a!==r)return a}else if(o===!1&&typeof r!="undefined"&&n!==r)return null}return!1}function Ip(e,t,n,r){const i=t._rootScopes,s=Bw(t._fallback,n,r),o=[...e,...i],a=new Set;a.add(r);let l=Hw(a,o,n,s||n,r);return l===null||typeof s!="undefined"&&s!==n&&(l=Hw(a,o,s,l,r),l===null)?!1:jp(Array.from(a),[""],i,s,()=>NL(t,n,r))}function Hw(e,t,n,r,i){for(;n;)n=FL(e,t,n,r,i);return n}function NL(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return Fe(i)&&re(n)?n:i||{}}function jL(e,t,n,r){let i;for(const s of t)if(i=Ww(ML(s,e),n),typeof i!="undefined")return Op(e,i)?Ip(n,r,e,i):i}function Ww(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r!="undefined")return r}}function Uw(e){let t=e._keys;return t||(t=e._keys=OL(e._scopes)),t}function OL(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}function Vp(){return typeof window!="undefined"&&typeof document!="undefined"}function zp(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Cu(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const Tu=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function IL(e,t){return Tu(e).getPropertyValue(t)}const VL=["top","right","bottom","left"];function ui(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const s=VL[i];r[s]=parseFloat(e[t+"-"+s+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const zL=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function BL(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:s}=r;let o=!1,a,l;if(zL(i,s,e.target))a=i,l=s;else{const u=t.getBoundingClientRect();a=r.clientX-u.left,l=r.clientY-u.top,o=!0}return{x:a,y:l,box:o}}function ci(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=Tu(n),s=i.boxSizing==="border-box",o=ui(i,"padding"),a=ui(i,"border","width"),{x:l,y:u,box:c}=BL(e,n),d=o.left+(c&&a.left),f=o.top+(c&&a.top);let{width:h,height:m}=t;return s&&(h-=o.width+a.width,m-=o.height+a.height),{x:Math.round((l-d)/h*n.width/r),y:Math.round((u-f)/m*n.height/r)}}function HL(e,t,n){let r,i;if(t===void 0||n===void 0){const s=e&&zp(e);if(!s)t=e.clientWidth,n=e.clientHeight;else{const o=s.getBoundingClientRect(),a=Tu(s),l=ui(a,"border","width"),u=ui(a,"padding");t=o.width-u.width-l.width,n=o.height-u.height-l.height,r=Cu(a.maxWidth,s,"clientWidth"),i=Cu(a.maxHeight,s,"clientHeight")}}return{width:t,height:n,maxWidth:r||_u,maxHeight:i||_u}}const Eu=e=>Math.round(e*10)/10;function WL(e,t,n,r){const i=Tu(e),s=ui(i,"margin"),o=Cu(i.maxWidth,e,"clientWidth")||_u,a=Cu(i.maxHeight,e,"clientHeight")||_u,l=HL(e,t,n);let{width:u,height:c}=l;if(i.boxSizing==="content-box"){const f=ui(i,"border","width"),h=ui(i,"padding");u-=h.width+f.width,c-=h.height+f.height}return u=Math.max(0,u-s.width),c=Math.max(0,r?u/r:c-s.height),u=Eu(Math.min(u,o,l.maxWidth)),c=Eu(Math.min(c,a,l.maxHeight)),u&&!c&&(c=Eu(u/2)),(t!==void 0||n!==void 0)&&r&&l.height&&c>l.height&&(c=l.height,u=Eu(Math.floor(c*r))),{width:u,height:c}}function Kw(e,t,n){const r=t||1,i=Math.floor(e.height*r),s=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==s?(e.currentDevicePixelRatio=r,o.height=i,o.width=s,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const UL=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Vp()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(t){}return e}();function Yw(e,t){const n=IL(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const KL=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},YL=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function cs(e,t,n){return e?KL(t,n):YL()}function Gw(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function Xw(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}/*! * Chart.js v4.4.7 * https://www.chartjs.org * (c) 2024 Chart.js Contributors * Released under the MIT License */class GL{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const s=n.listeners[i],o=n.duration;s.forEach(a=>a({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=Cw.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const s=r.items;let o=s.length-1,a=!1,l;for(;o>=0;--o)l=s[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),a=!0):(s[o]=s[s.length-1],s.pop());a&&(i.draw(),this._notify(i,r,t,"progress")),s.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=s.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var On=new GL;const qw="transparent",XL={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=Dw(e||qw),i=r.valid&&Dw(t||qw);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class qL{constructor(t,n,r,i){const s=n[r];i=we([t.to,i,s,t.from]);const o=we([t.from,s,i]);this._active=!0,this._fn=t.fn||XL[t.type||typeof o],this._easing=zo[t.easing]||zo.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],s=r-this._start,o=this._duration-s;this._start=r,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=we([t.to,n,i,t.from]),this._from=we([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,s=this._from,o=this._loop,a=this._to;let l;if(this._active=s!==a&&(o||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(s,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i{const s=t[i];if(!re(s))return;const o={};for(const a of n)o[a]=s[a];(Fe(s.properties)&&s.properties||[i]).forEach(a=>{(a===i||!r.has(a))&&r.set(a,o)})})}_animateOptions(t,n){const r=n.options,i=ZL(t,r);if(!i)return[];const s=this._createAnimations(i,r);return r.$shared&&QL(t.options.$animations,r).then(()=>{t.options=r},()=>{}),s}_createAnimations(t,n){const r=this._properties,i=[],s=t.$animations||(t.$animations={}),o=Object.keys(n),a=Date.now();let l;for(l=o.length-1;l>=0;--l){const u=o[l];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(t,n));continue}const c=n[u];let d=s[u];const f=r.get(u);if(d)if(f&&d.active()){d.update(f,c,a);continue}else d.cancel();if(!f||!f.duration){t[u]=c;continue}s[u]=d=new qL(f,t,u,c),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return On.add(this._chart,r),!0}}function QL(e,t){const n=[],r=Object.keys(t);for(let i=0;i0||!n&&s<0)return i.index}return null}function nS(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:s,vScale:o,index:a}=r,l=s.axis,u=o.axis,c=n4(s,o,r),d=t.length;let f;for(let h=0;hn[r].axis===t).shift()}function s4(e,t){return ls(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function o4(e,t,n){return ls(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Wo(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const s=i._stacks;if(!s||s[r]===void 0||s[r][n]===void 0)return;delete s[r][n],s[r]._visualValues!==void 0&&s[r]._visualValues[n]!==void 0&&delete s[r]._visualValues[n]}}}const Wp=e=>e==="reset"||e==="none",rS=(e,t)=>t?e:Object.assign({},e),a4=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Jw(n,!0),values:null};class Uo{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Bp(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Wo(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,f,h,m)=>d==="x"?f:d==="r"?m:h,s=n.xAxisID=oe(r.xAxisID,Hp(t,"x")),o=n.yAxisID=oe(r.yAxisID,Hp(t,"y")),a=n.rAxisID=oe(r.rAxisID,Hp(t,"r")),l=n.indexAxis,u=n.iAxisID=i(l,s,o,a),c=n.vAxisID=i(l,o,s,a);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Pw(this._data,this),t._stacked&&Wo(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(re(n)){const i=this._cachedMeta;this._data=t4(n,i)}else if(r!==n){if(r){Pw(r,this);const i=this._cachedMeta;Wo(i),i._parsed=[]}n&&Object.isExtensible(n)&&cL(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const s=n._stacked;n._stacked=Bp(n.vScale,n),n.stack!==r.stack&&(i=!0,Wo(n),n.stack=r.stack),this._resyncElements(t),(i||s!==n._stacked)&&(nS(this,n._parsed),n._stacked=Bp(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:s,_stacked:o}=r,a=s.axis;let l=t===0&&n===i.length?!0:r._sorted,u=t>0&&r._parsed[t-1],c,d,f;if(this._parsing===!1)r._parsed=i,r._sorted=!0,f=i;else{Fe(i[t])?f=this.parseArrayData(r,i,t,n):re(i[t])?f=this.parseObjectData(r,i,t,n):f=this.parsePrimitiveData(r,i,t,n);const h=()=>d[a]===null||u&&d[a]y||d=0;--f)if(!m()){this.updateRangeFromParsed(u,t,h,l);break}}return u}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,s,o;for(i=0,s=n.length;i=0&&tthis.getContext(r,i,n),y=u.resolveNamedOptions(f,h,m,d);return y.$shared&&(y.$shared=l,s[o]=Object.freeze(rS(y,l))),y}_resolveAnimations(t,n,r){const i=this.chart,s=this._cachedDataOpts,o=`animation-${n}`,a=s[o];if(a)return a;let l;if(i.options.animation!==!1){const c=this.chart.config,d=c.datasetAnimationScopeKeys(this._type,n),f=c.getOptionScopes(this.getDataset(),d);l=c.createResolver(f,this.getContext(t,r,n))}const u=new Qw(i,l&&l.animations);return l&&l._cacheable&&(s[o]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Wp(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,s=this.getSharedOptions(r),o=this.includeOptions(n,s)||s!==i;return this.updateSharedOptions(s,n,r),{sharedOptions:s,includeOptions:o}}updateElement(t,n,r,i){Wp(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!Wp(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const s=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(s)||s})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[a,l,u]of this._syncList)this[a](l,u);this._syncList=[];const i=r.length,s=n.length,o=Math.min(s,i);o&&this.parse(0,o),s>i?this._insertElements(i,s-i,t):s{for(u.length+=n,a=u.length-1;a>=o;a--)u[a]=u[a-n]};for(l(s),a=t;ai-s))}return e._cache.$bar}function u4(e){const t=e.iScale,n=l4(t,e.type);let r=t._length,i,s,o,a;const l=()=>{o===32767||o===-32768||(Vo(a)&&(r=Math.min(r,Math.abs(o-a)||r)),a=o)};for(i=0,s=n.length;i0?i[e-1]:null,a=eMath.abs(a)&&(l=a,u=o),t[n.axis]=u,t._custom={barStart:l,barEnd:u,start:i,end:s,min:o,max:a}}function iS(e,t,n,r){return Fe(e)?f4(e,t,n,r):t[n.axis]=n.parse(e,r),t}function sS(e,t,n,r){const i=e.iScale,s=e.vScale,o=i.getLabels(),a=i===s,l=[];let u,c,d,f;for(u=n,c=n+r;u=n?1:-1)}function p4(e){let t,n,r,i,s;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.basec.controller.options.grouped),s=r.options.stacked,o=[],a=this._cachedMeta.controller.getParsed(n),l=a&&a[r.axis],u=c=>{const d=c._parsed.find(h=>h[r.axis]===l),f=d&&d[c.vScale.axis];if(le(f)||isNaN(f))return!0};for(const c of i)if(!(n!==void 0&&u(c))&&((s===!1||o.indexOf(c.stack)===-1||s===void 0&&c.stack===void 0)&&o.push(c.stack),c.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),s=n!==void 0?i.indexOf(n):-1;return s===-1?i.length-1:s}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let s,o;for(s=0,o=n.data.length;s{l[o]&&l[o](t[n],i)&&(s.push({element:l,datasetIndex:u,index:c}),a=a||l.inRange(t.x,t.y,i))}),r&&!a?[]:s}var S4={evaluateInteractionItems:Ko,modes:{index(e,t,n,r){const i=ci(t,e),s=n.axis||"x",o=n.includeInvisible||!1,a=n.intersect?Yp(e,i,s,r,o):Gp(e,i,s,!1,r,o),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{const c=a[0].index,d=u.data[c];d&&!d.skip&&l.push({element:d,datasetIndex:u.index,index:c})}),l):[]},dataset(e,t,n,r){const i=ci(t,e),s=n.axis||"xy",o=n.includeInvisible||!1;let a=n.intersect?Yp(e,i,s,r,o):Gp(e,i,s,!1,r,o);if(a.length>0){const l=a[0].datasetIndex,u=e.getDatasetMeta(l).data;a=[];for(let c=0;cn.pos===t)}function cS(e,t){return e.filter(n=>uS.indexOf(n.pos)===-1&&n.box.axis===t)}function Go(e,t){return e.sort((n,r)=>{const i=t?r:n,s=t?n:r;return i.weight===s.weight?i.index-s.index:i.weight-s.weight})}function P4(e){const t=[];let n,r,i,s,o,a;for(n=0,r=(e||[]).length;nu.box.fullSize),!0),r=Go(Yo(t,"left"),!0),i=Go(Yo(t,"right")),s=Go(Yo(t,"top"),!0),o=Go(Yo(t,"bottom")),a=cS(t,"x"),l=cS(t,"y");return{fullSize:n,leftAndTop:r.concat(s),rightAndBottom:i.concat(l).concat(o).concat(a),chartArea:Yo(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:s.concat(o).concat(a)}}function dS(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function fS(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function E4(e,t,n,r){const{pos:i,box:s}=n,o=e.maxPadding;if(!re(i)){n.size&&(e[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?s.height:s.width),n.size=d.size/d.count,e[i]+=n.size}s.getPadding&&fS(o,s.getPadding());const a=Math.max(0,t.outerWidth-dS(o,e,"left","right")),l=Math.max(0,t.outerHeight-dS(o,e,"top","bottom")),u=a!==e.w,c=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:u,other:c}:{same:c,other:u}}function $4(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function M4(e,t){const n=t.maxPadding;function r(i){const s={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{s[o]=Math.max(t[o],n[o])}),s}return r(e?["left","right"]:["top","bottom"])}function Xo(e,t,n,r){const i=[];let s,o,a,l,u,c;for(s=0,o=e.length,u=0;s{typeof y.beforeLayout=="function"&&y.beforeLayout()});const c=l.reduce((y,x)=>x.box.options&&x.box.options.display===!1?y:y+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/c,hBoxMaxHeight:o/2}),f=Object.assign({},i);fS(f,Mt(r));const h=Object.assign({maxPadding:f,w:s,h:o,x:i.left,y:i.top},i),m=C4(l.concat(u),d);Xo(a.fullSize,h,d,m),Xo(l,h,d,m),Xo(u,h,d,m)&&Xo(l,h,d,m),$4(h),hS(a.leftAndTop,h,d,m),h.x+=h.w,h.y+=h.h,hS(a.rightAndBottom,h,d,m),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},ue(a.chartArea,y=>{const x=y.box;Object.assign(x,e.chartArea),x.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class pS{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class D4 extends pS{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Du="$chartjs",A4={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},mS=e=>e===null||e==="";function L4(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[Du]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",mS(i)){const s=Yw(e,"width");s!==void 0&&(e.width=s)}if(mS(r))if(e.style.height==="")e.height=e.width/(t||2);else{const s=Yw(e,"height");s!==void 0&&(e.height=s)}return e}const gS=UL?{passive:!0}:!1;function R4(e,t,n){e&&e.addEventListener(t,n,gS)}function F4(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,gS)}function N4(e,t){const n=A4[e.type]||e.type,{x:r,y:i}=ci(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function Au(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function j4(e,t,n){const r=e.canvas,i=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||Au(a.addedNodes,r),o=o&&!Au(a.removedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function O4(e,t,n){const r=e.canvas,i=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||Au(a.removedNodes,r),o=o&&!Au(a.addedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const qo=new Map;let yS=0;function vS(){const e=window.devicePixelRatio;e!==yS&&(yS=e,qo.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function I4(e,t){qo.size||window.addEventListener("resize",vS),qo.set(e,t)}function V4(e){qo.delete(e),qo.size||window.removeEventListener("resize",vS)}function z4(e,t,n){const r=e.canvas,i=r&&zp(r);if(!i)return;const s=Tw((a,l)=>{const u=i.clientWidth;n(a,l),u{const l=a[0],u=l.contentRect.width,c=l.contentRect.height;u===0&&c===0||s(u,c)});return o.observe(i),I4(e,s),o}function Xp(e,t,n){n&&n.disconnect(),t==="resize"&&V4(e)}function B4(e,t,n){const r=e.canvas,i=Tw(s=>{e.ctx!==null&&n(N4(s,e))},e);return R4(r,t,i),i}class H4 extends pS{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(L4(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[Du])return!1;const r=n[Du].initial;["height","width"].forEach(s=>{const o=r[s];le(o)?n.removeAttribute(s):n.setAttribute(s,o)});const i=r.style||{};return Object.keys(i).forEach(s=>{n.style[s]=i[s]}),n.width=n.width,delete n[Du],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),o={attach:j4,detach:O4,resize:z4}[n]||B4;i[n]=o(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:Xp,detach:Xp,resize:Xp}[n]||F4)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return WL(t,n,r,i)}isAttached(t){const n=t&&zp(t);return!!(n&&n.isConnected)}}function W4(e){return!Vp()||typeof OffscreenCanvas!="undefined"&&e instanceof OffscreenCanvas?D4:H4}let kr=(Zu=class{constructor(){X(this,"x");X(this,"y");X(this,"active",!1);X(this,"options");X(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Su(this.x)&&Su(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(s=>{i[s]=r[s]&&r[s].active()?r[s]._to:this[s]}),i}},X(Zu,"defaults",{}),X(Zu,"defaultRoutes"),Zu);function U4(e,t){const n=e.options.ticks,r=K4(e),i=Math.min(n.maxTicksLimit||r,r),s=n.major.enabled?G4(t):[],o=s.length,a=s[0],l=s[o-1],u=[];if(o>i)return X4(t,u,s,o/i),u;const c=Y4(s,t,i);if(o>0){let d,f;const h=o>1?Math.round((l-a)/(o-1)):null;for(Lu(t,u,c,le(h)?0:a-h,a),d=0,f=o-1;di)return l}return Math.max(i,1)}function G4(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,bS=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,xS=(e,t)=>Math.min(t||e,e);function _S(e,t){const n=[],r=e.length/t,i=e.length;let s=0;for(;so+a)))return l}function J4(e,t){ue(e,n=>{const r=n.gc,i=r.length/2;let s;if(i>t){for(s=0;sr?r:n,r=i&&n>r?n:r,{min:mn(n,mn(r,n)),max:mn(r,mn(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){he(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:s,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=$L(this,s,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=s||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const c=this._getLabelSizes(),d=c.widest.width,f=c.highest.height,h=yt(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/r:h/(r-1),d+6>a&&(a=h/(r-(t.offset?.5:1)),l=this.maxHeight-Qo(t.grid)-n.padding-wS(t.title,this.chart.options.font),u=Math.sqrt(d*d+f*f),o=sL(Math.min(Math.asin(yt((c.highest.height+6)/a,-1,1)),Math.asin(yt(l/u,-1,1))-Math.asin(yt(f/u,-1,1)))),o=Math.max(i,Math.min(s,o))),this.labelRotation=o}afterCalculateLabelRotation(){he(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){he(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:s}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const l=wS(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=Qo(s)+l):(t.height=this.maxHeight,t.width=Qo(s)+l),r.display&&this.ticks.length){const{first:u,last:c,widest:d,highest:f}=this._getLabelSizes(),h=r.padding*2,m=ii(this.labelRotation),y=Math.cos(m),x=Math.sin(m);if(a){const p=r.mirror?0:x*d.width+y*f.height;t.height=Math.min(this.maxHeight,t.height+p+h)}else{const p=r.mirror?0:y*d.width+x*f.height;t.width=Math.min(this.maxWidth,t.width+p+h)}this._calculatePadding(u,c,x,y)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:s,padding:o},position:a}=this.options,l=this.labelRotation!==0,u=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const c=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,h=0;l?u?(f=i*t.width,h=r*n.height):(f=r*t.height,h=i*n.width):s==="start"?h=n.width:s==="end"?f=t.width:s!=="inner"&&(f=t.width/2,h=n.width/2),this.paddingLeft=Math.max((f-c+o)*this.width/(this.width-c),0),this.paddingRight=Math.max((h-d+o)*this.width/(this.width-d),0)}else{let c=n.height/2,d=t.height/2;s==="start"?(c=0,d=t.height):s==="end"&&(c=n.height,d=0),this.paddingTop=c+o,this.paddingBottom=d+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){he(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:o[P]||0,height:a[P]||0});return{first:M(0),last:M(n-1),widest:M(k),highest:M($),widths:o,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return aL(this._alignToPixels?li(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&ta*i?a/r:l/i:l*i0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:s,position:o,border:a}=i,l=s.offset,u=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=Qo(s),h=[],m=a.setContext(this.getContext()),y=m.display?m.width:0,x=y/2,p=function(R){return li(r,R,y)};let g,b,w,S,k,$,M,P,E,F,C,I;if(o==="top")g=p(this.bottom),$=this.bottom-f,P=g-x,F=p(t.top)+x,I=t.bottom;else if(o==="bottom")g=p(this.top),F=t.top,I=p(t.bottom)-x,$=g+x,P=this.top+f;else if(o==="left")g=p(this.right),k=this.right-f,M=g-x,E=p(t.left)+x,C=t.right;else if(o==="right")g=p(this.left),E=t.left,C=p(t.right)-x,k=g+x,M=this.left+f;else if(n==="x"){if(o==="center")g=p((t.top+t.bottom)/2+.5);else if(re(o)){const R=Object.keys(o)[0],z=o[R];g=p(this.chart.scales[R].getPixelForValue(z))}F=t.top,I=t.bottom,$=g+x,P=$+f}else if(n==="y"){if(o==="center")g=p((t.left+t.right)/2);else if(re(o)){const R=Object.keys(o)[0],z=o[R];g=p(this.chart.scales[R].getPixelForValue(z))}k=g-x,M=k-f,E=t.left,C=t.right}const A=oe(i.ticks.maxTicksLimit,d),L=Math.max(1,Math.ceil(d/A));for(b=0;b0&&(ve-=J/2);break}j={left:ve,top:ie,width:J+H.width,height:q+H.height,color:L.backdropColor}}x.push({label:w,font:P,textOffset:C,options:{rotation:y,color:z,strokeColor:N,strokeWidth:V,textAlign:U,textBaseline:I,translation:[S,k],backdrop:j}})}return x}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-ii(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:s}}=this.options,o=this._getLabelSizes(),a=t+s,l=o.widest.width;let u,c;return n==="left"?i?(c=this.right+s,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c+=l)):(c=this.right-a,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c=this.left)):n==="right"?i?(c=this.left+s,r==="near"?u="right":r==="center"?(u="center",c-=l/2):(u="left",c-=l)):(c=this.left+a,r==="near"?u="left":r==="center"?(u="center",c+=l/2):(u="right",c=this.right)):u="right",{textAlign:u,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:s,height:o}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,s,o),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(s=>s.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,o;const a=(l,u,c)=>{!c.width||!c.color||(r.save(),r.lineWidth=c.width,r.strokeStyle=c.color,r.setLineDash(c.borderDash||[]),r.lineDashOffset=c.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(u.x,u.y),r.stroke(),r.restore())};if(n.display)for(s=0,o=i.length;s{this.draw(s)}}]:[{z:r,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let s,o;for(s=0,o=n.length;s{const r=n.split("."),i=r.pop(),s=[e].concat(r).join("."),o=t[n].split("."),a=o.pop(),l=o.join(".");Me.route(s,i,l,a)})}function o5(e){return"id"in e&&"defaults"in e}class a5{constructor(){this.controllers=new Ru(Uo,"datasets",!0),this.elements=new Ru(kr,"elements"),this.plugins=new Ru(Object,"plugins"),this.scales=new Ru(ds,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const s=r||this._getRegistryForType(i);r||s.isForType(i)||s===this.plugins&&i.id?this._exec(t,s,i):ue(i,o=>{const a=r||this._getRegistryForType(o);this._exec(t,a,o)})})}_exec(t,n,r){const i=Pp(t);he(r["before"+i],[],r),n[t](r),he(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;ns.filter(a=>!o.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function u5(e){const t={},n=[],r=Object.keys(yn.plugins.items);for(let s=0;s1&&SS(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function PS(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function g5(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return PS(e,"x",n[0])||PS(e,"y",n[0])}return{}}function y5(e,t){const n=ai[e.type]||{scales:{}},r=t.scales||{},i=qp(e.type,t),s=Object.create(null);return Object.keys(r).forEach(o=>{const a=r[o];if(!re(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=Qp(o,a,g5(o,e),Me.scales[a.type]),u=p5(l,i),c=n.scales||{};s[o]=Io(Object.create(null),[{axis:l},a,c[l],c[u]])}),e.data.datasets.forEach(o=>{const a=o.type||e.type,l=o.indexAxis||qp(a,t),c=(ai[a]||{}).scales||{};Object.keys(c).forEach(d=>{const f=h5(d,l),h=o[f+"AxisID"]||f;s[h]=s[h]||Object.create(null),Io(s[h],[{axis:f},r[h],c[d]])})}),Object.keys(s).forEach(o=>{const a=s[o];Io(a,[Me.scales[a.type],Me.scale])}),s}function kS(e){const t=e.options||(e.options={});t.plugins=oe(t.plugins,{}),t.scales=y5(e,t)}function CS(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function v5(e){return e=e||{},e.data=CS(e.data),kS(e),e}const TS=new Map,ES=new Set;function Fu(e,t){let n=TS.get(e);return n||(n=t(),TS.set(e,n),ES.add(n)),n}const Zo=(e,t,n)=>{const r=os(t,n);r!==void 0&&e.add(r)};class b5{constructor(t){this._config=v5(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=CS(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),kS(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Fu(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Fu(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Fu(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Fu(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:s}=this,o=this._cachedScopes(t,r),a=o.get(n);if(a)return a;const l=new Set;n.forEach(c=>{t&&(l.add(t),c.forEach(d=>Zo(l,t,d))),c.forEach(d=>Zo(l,i,d)),c.forEach(d=>Zo(l,ai[s]||{},d)),c.forEach(d=>Zo(l,Me,d)),c.forEach(d=>Zo(l,Mp,d))});const u=Array.from(l);return u.length===0&&u.push(Object.create(null)),ES.has(n)&&o.set(n,u),u}chartOptionScopes(){const{options:t,type:n}=this;return[t,ai[n]||{},Me.datasets[n]||{},{type:n},Me,Mp]}resolveNamedOptions(t,n,r,i=[""]){const s={$shared:!0},{resolver:o,subPrefixes:a}=$S(this._resolverCache,t,i);let l=o;if(_5(o,n)){s.$shared=!1,r=Sr(r)?r():r;const u=this.createResolver(t,r,a);l=us(o,r,u)}for(const u of n)s[u]=l[u];return s}createResolver(t,n,r=[""],i){const{resolver:s}=$S(this._resolverCache,t,r);return re(n)?us(s,n,void 0,i):s}}function $S(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let s=r.get(i);return s||(s={resolver:jp(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,s)),s}const x5=e=>re(e)&&Object.getOwnPropertyNames(e).some(t=>Sr(e[t]));function _5(e,t){const{isScriptable:n,isIndexable:r}=Vw(e);for(const i of t){const s=n(i),o=r(i),a=(o||s)&&e[i];if(s&&(Sr(a)||x5(a))||o&&Fe(a))return!0}return!1}var w5="4.4.7";const S5=["top","bottom","left","right","chartArea"];function MS(e,t){return e==="top"||e==="bottom"||S5.indexOf(e)===-1&&t==="x"}function DS(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function AS(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),he(n&&n.onComplete,[e],t)}function P5(e){const t=e.chart,n=t.options.animation;he(n&&n.onProgress,[e],t)}function LS(e){return Vp()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Nu={},RS=e=>{const t=LS(e);return Object.values(Nu).filter(n=>n.canvas===t).pop()};function k5(e,t,n){const r=Object.keys(e);for(const i of r){const s=+i;if(s>=t){const o=e[i];delete e[i],(n>0||s>t)&&(e[s+n]=o)}}}function C5(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function ju(e,t,n){return e.options.clip?e[n]:t[n]}function T5(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:ju(n,t,"left"),right:ju(n,t,"right"),top:ju(r,t,"top"),bottom:ju(r,t,"bottom")}:t}let Ou=($r=class{static register(...t){yn.add(...t),FS()}static unregister(...t){yn.remove(...t),FS()}constructor(t,n){const r=this.config=new b5(n),i=LS(t),s=RS(i);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||W4(i)),this.platform.updateConfig(r);const a=this.platform.acquireContext(i,o.aspectRatio),l=a&&a.canvas,u=l&&l.height,c=l&&l.width;if(this.id=G3(),this.ctx=a,this.canvas=l,this.width=c,this.height=u,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new l5,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=dL(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],Nu[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}On.listen(this,"complete",AS),On.listen(this,"progress",P5),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:s}=this;return le(t)?n&&s?s:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return yn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Kw(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return jw(this.canvas,this.ctx),this}stop(){return On.stop(this),this}resize(t,n){On.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,s=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,n,s),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Kw(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),he(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};ue(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((o,a)=>(o[a]=!1,o),{});let s=[];n&&(s=s.concat(Object.keys(n).map(o=>{const a=n[o],l=Qp(o,a),u=l==="r",c=l==="x";return{options:a,dposition:u?"chartArea":c?"bottom":"left",dtype:u?"radialLinear":c?"category":"linear"}}))),ue(s,o=>{const a=o.options,l=a.id,u=Qp(l,a),c=oe(a.type,o.dtype);(a.position===void 0||MS(a.position,u)!==MS(o.dposition))&&(a.position=o.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===c)d=r[l];else{const f=yn.getScale(c);d=new f({id:l,type:c,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(a,t)}),ue(i,(o,a)=>{o||delete r[a]}),ue(r,o=>{Yt.configure(this,o,o.options),Yt.addBox(this,o)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,s)=>i.index-s.index),r>n){for(let i=n;in.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(s=>s===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let u=0,c=this.data.datasets.length;u{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(DS("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){ue(this.scales,t=>{Yt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!yw(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:s}of n){const o=r==="_removeElements"?-s:s;k5(t,i,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=s=>new Set(t.filter(o=>o[0]===s).map((o,a)=>a+","+o.splice(1).join(","))),i=r(0);for(let s=1;ss.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Yt.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],ue(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,s)=>{i._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,s=T5(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(i&&Rp(n,{left:r.left===!1?0:s.left-r.left,right:r.right===!1?this.width:s.right+r.right,top:r.top===!1?0:s.top-r.top,bottom:r.bottom===!1?this.height:s.bottom+r.bottom}),t.controller.draw(),i&&Fp(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return Lp(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const s=S4.modes[n];return typeof s=="function"?s(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(s=>s&&s._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=ls(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",s=this.getDatasetMeta(t),o=s.controller._resolveAnimations(void 0,i);Vo(n)?(s.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),o.update(s,{visible:r}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),On.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,s,o),t[s]=o},i=(s,o,a)=>{s.offsetX=o,s.offsetY=a,this._eventHandler(s)};ue(this.options.events,s=>r(s,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,u)=>{n.addEventListener(this,l,u),t[l]=u},i=(l,u)=>{t[l]&&(n.removeEventListener(this,l,u),delete t[l])},s=(l,u)=>{this.canvas&&this.resize(l,u)};let o;const a=()=>{i("attach",a),this.attached=!0,this.resize(),r("resize",s),r("detach",o)};o=()=>{this.attached=!1,i("resize",s),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():o()}unbindEvents(){ue(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},ue(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let s,o,a,l;for(n==="dataset"&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=t.length;a{const a=this.getDatasetMeta(s);if(!a)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:a.data[o],index:o}});!bu(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,s=(l,u)=>l.filter(c=>!u.some(d=>c.datasetIndex===d.datasetIndex&&c.index===d.index)),o=s(n,t),a=r?t:s(t,n);o.length&&this.updateHoverStyle(o,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const s=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(s||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:s}=this,o=n,a=this._getActiveElements(t,i,r,o),l=eL(t),u=C5(t,this._lastEvent,r,l);r&&(this._lastEvent=null,he(s.onHover,[t,a,this],this),l&&he(s.onClick,[t,a,this],this));const c=!bu(a,i);return(c||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=u,c}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,i)}},X($r,"defaults",Me),X($r,"instances",Nu),X($r,"overrides",ai),X($r,"registry",yn),X($r,"version",w5),X($r,"getChart",RS),$r);function FS(){return ue(Ou.instances,e=>e._plugins.invalidate())}function E5(e,t,n){const{startAngle:r,pixelMargin:i,x:s,y:o,outerRadius:a,innerRadius:l}=t;let u=i/a;e.beginPath(),e.arc(s,o,a,r-u,n+u),l>i?(u=i/l,e.arc(s,o,l,n+u,r-u,!0)):e.arc(s,o,i,n+Ye,r-Ye),e.closePath(),e.clip()}function $5(e){return Np(e,["outerStart","outerEnd","innerStart","innerEnd"])}function M5(e,t,n,r){const i=$5(e.options.borderRadius),s=(n-t)/2,o=Math.min(s,r*t/2),a=l=>{const u=(n-Math.min(s,l))*r/2;return yt(l,0,Math.min(s,u))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:yt(i.innerStart,0,o),innerEnd:yt(i.innerEnd,0,o)}}function fs(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Iu(e,t,n,r,i,s){const{x:o,y:a,startAngle:l,pixelMargin:u,innerRadius:c}=t,d=Math.max(t.outerRadius+r+n-u,0),f=c>0?c+r+n+u:0;let h=0;const m=i-l;if(r){const L=c>0?c-r:0,R=d>0?d-r:0,z=(L+R)/2,N=z!==0?m*z/(z+r):m;h=(m-N)/2}const y=Math.max(.001,m*d-n/He)/d,x=(m-y)/2,p=l+x+h,g=i-x-h,{outerStart:b,outerEnd:w,innerStart:S,innerEnd:k}=M5(t,f,d,g-p),$=d-b,M=d-w,P=p+b/$,E=g-w/M,F=f+S,C=f+k,I=p+S/F,A=g-k/C;if(e.beginPath(),s){const L=(P+E)/2;if(e.arc(o,a,d,P,L),e.arc(o,a,d,L,E),w>0){const V=fs(M,E,o,a);e.arc(V.x,V.y,w,E,g+Ye)}const R=fs(C,g,o,a);if(e.lineTo(R.x,R.y),k>0){const V=fs(C,A,o,a);e.arc(V.x,V.y,k,g+Ye,A+Math.PI)}const z=(g-k/f+(p+S/f))/2;if(e.arc(o,a,f,g-k/f,z,!0),e.arc(o,a,f,z,p+S/f,!0),S>0){const V=fs(F,I,o,a);e.arc(V.x,V.y,S,I+Math.PI,p-Ye)}const N=fs($,p,o,a);if(e.lineTo(N.x,N.y),b>0){const V=fs($,P,o,a);e.arc(V.x,V.y,b,p-Ye,P)}}else{e.moveTo(o,a);const L=Math.cos(P)*d+o,R=Math.sin(P)*d+a;e.lineTo(L,R);const z=Math.cos(E)*d+o,N=Math.sin(E)*d+a;e.lineTo(z,N)}e.closePath()}function D5(e,t,n,r,i){const{fullCircles:s,startAngle:o,circumference:a}=t;let l=t.endAngle;if(s){Iu(e,t,n,r,l,i);for(let u=0;u=at||y,p=oi(a,c+h,d+h);return x&&p}getCenterPoint(n){const{x:r,y:i,startAngle:s,endAngle:o,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:c}=this.options,d=(s+o)/2,f=(a+l+c+u)/2;return{x:r+Math.cos(d)*f,y:i+Math.sin(d)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:i}=this,s=(r.offset||0)/4,o=(r.spacing||0)/2,a=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=i>at?Math.floor(i/at):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*s,Math.sin(l)*s);const u=1-Math.sin(Math.min(He,i||0)),c=s*u;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,D5(n,this,c,o,a),A5(n,this,c,o,a),n.restore()}}X(Jo,"id","arc"),X(Jo,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),X(Jo,"defaultRoutes",{backgroundColor:"backgroundColor"}),X(Jo,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function NS(e,t,n,r){const i=e.options,{[n]:s}=e.getProps([n],r);return Math.abs(t-s){let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},O5=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class IS extends kr{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=he(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=Ge(r.font),s=i.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=OS(r,s);let u,c;n.font=i.string,this.isHorizontal()?(u=this.maxWidth,c=this._fitRows(o,s,a,l)+10):(c=this.maxHeight,u=this._fitCols(o,i,a,l)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:s,maxWidth:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],u=this.lineWidths=[0],c=i+a;let d=t;s.textAlign="left",s.textBaseline="middle";let f=-1,h=-c;return this.legendItems.forEach((m,y)=>{const x=r+n/2+s.measureText(m.text).width;(y===0||u[u.length-1]+x+2*a>o)&&(d+=c,u[u.length-(y>0?0:1)]=0,h+=c,f++),l[y]={left:0,top:h,row:f,width:x,height:i},u[u.length-1]+=x+a}),d}_fitCols(t,n,r,i){const{ctx:s,maxHeight:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],u=this.columnSizes=[],c=o-t;let d=a,f=0,h=0,m=0,y=0;return this.legendItems.forEach((x,p)=>{const{itemWidth:g,itemHeight:b}=I5(r,n,s,x,i);p>0&&h+b+2*a>c&&(d+=f+a,u.push({width:f,height:h}),m+=f+a,y++,f=h=0),l[p]={left:m,top:h,col:y,width:g,height:b},f=Math.max(f,g),h+=b+a}),d+=f,u.push({width:f,height:h}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:s}}=this,o=cs(s,this.left,this.width);if(this.isHorizontal()){let a=0,l=tt(r,this.left+i,this.right-this.lineWidths[a]);for(const u of n)a!==u.row&&(a=u.row,l=tt(r,this.left+i,this.right-this.lineWidths[a])),u.top+=this.top+t+i,u.left=o.leftForLtr(o.x(l),u.width),l+=u.width+i}else{let a=0,l=tt(r,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const u of n)u.col!==a&&(a=u.col,l=tt(r,this.top+t+i,this.bottom-this.columnSizes[a].height)),u.top=l,u.left+=this.left+i,u.left=o.leftForLtr(o.x(u.left),u.width),l+=u.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Rp(t,this),this._draw(),Fp(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:s,labels:o}=t,a=Me.color,l=cs(t.rtl,this.left,this.width),u=Ge(o.font),{padding:c}=o,d=u.size,f=d/2;let h;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;const{boxWidth:m,boxHeight:y,itemHeight:x}=OS(o,d),p=function(k,$,M){if(isNaN(m)||m<=0||isNaN(y)||y<0)return;i.save();const P=oe(M.lineWidth,1);if(i.fillStyle=oe(M.fillStyle,a),i.lineCap=oe(M.lineCap,"butt"),i.lineDashOffset=oe(M.lineDashOffset,0),i.lineJoin=oe(M.lineJoin,"miter"),i.lineWidth=P,i.strokeStyle=oe(M.strokeStyle,a),i.setLineDash(oe(M.lineDash,[])),o.usePointStyle){const E={radius:y*Math.SQRT2/2,pointStyle:M.pointStyle,rotation:M.rotation,borderWidth:P},F=l.xPlus(k,m/2),C=$+f;Ow(i,E,F,C,o.pointStyleWidth&&m)}else{const E=$+Math.max((d-y)/2,0),F=l.leftForLtr(k,m),C=as(M.borderRadius);i.beginPath(),Object.values(C).some(I=>I!==0)?ku(i,{x:F,y:E,w:m,h:y,radius:C}):i.rect(F,E,m,y),i.fill(),P!==0&&i.stroke()}i.restore()},g=function(k,$,M){Ho(i,M.text,k,$+x/2,u,{strikethrough:M.hidden,textAlign:l.textAlign(M.textAlign)})},b=this.isHorizontal(),w=this._computeTitleHeight();b?h={x:tt(s,this.left+c,this.right-r[0]),y:this.top+c+w,line:0}:h={x:this.left+c,y:tt(s,this.top+w+c,this.bottom-n[0].height),line:0},Gw(this.ctx,t.textDirection);const S=x+c;this.legendItems.forEach((k,$)=>{i.strokeStyle=k.fontColor,i.fillStyle=k.fontColor;const M=i.measureText(k.text).width,P=l.textAlign(k.textAlign||(k.textAlign=o.textAlign)),E=m+f+M;let F=h.x,C=h.y;l.setWidth(this.width),b?$>0&&F+E+c>this.right&&(C=h.y+=S,h.line++,F=h.x=tt(s,this.left+c,this.right-r[h.line])):$>0&&C+S>this.bottom&&(F=h.x=F+n[h.line].width+c,h.line++,C=h.y=tt(s,this.top+w+c,this.bottom-n[h.line].height));const I=l.x(F);if(p(I,C,k),F=fL(P,F+m+f,b?F+E:this.right,t.rtl),g(l.x(F),C,k),b)h.x+=E+c;else if(typeof k.text!="string"){const A=u.lineHeight;h.y+=VS(k,A)+c}else h.y+=S}),Xw(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Ge(n.font),i=Mt(n.padding);if(!n.display)return;const s=cs(t.rtl,this.left,this.width),o=this.ctx,a=n.position,l=r.size/2,u=i.top+l;let c,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),c=this.top+u,d=tt(t.align,d,this.right-f);else{const m=this.columnSizes.reduce((y,x)=>Math.max(y,x.height),0);c=u+tt(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}const h=tt(a,d,d+f);o.textAlign=s.textAlign(Ep(a)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,Ho(o,n.text,h,c,r)}_computeTitleHeight(){const t=this.options.title,n=Ge(t.font),r=Mt(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,s;if(oi(t,this.left,this.right)&&oi(n,this.top,this.bottom)){for(s=this.legendHitBoxes,r=0;rs.length>o.length?s:o)),t+n.size/2+r.measureText(i).width}function z5(e,t,n){let r=e;return typeof t.text!="string"&&(r=VS(t,n)),r}function VS(e,t){const n=e.text?e.text.length:0;return t*n}function B5(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var H5={id:"legend",_element:IS,start(e,t,n){const r=e.legend=new IS({ctx:e.ctx,options:n,chart:e});Yt.configure(e,r,n),Yt.addBox(e,r)},stop(e){Yt.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Yt.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:s,useBorderRadius:o,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const u=l.controller.getStyle(n?0:void 0),c=Mt(u.borderWidth);return{text:t[l.index].label,fillStyle:u.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:u.borderColor,pointStyle:r||u.pointStyle,rotation:u.rotation,textAlign:i||u.textAlign,borderRadius:o&&(a||u.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class zS extends kr{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=Fe(r.text)?r.text.length:1;this._padding=Mt(r.padding);const s=i*Ge(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:s,options:o}=this,a=o.align;let l=0,u,c,d;return this.isHorizontal()?(c=tt(a,r,s),d=n+t,u=s-r):(o.position==="left"?(c=r+t,d=tt(a,i,n),l=He*-.5):(c=s-t,d=tt(a,n,i),l=He*.5),u=i-n),{titleX:c,titleY:d,maxWidth:u,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=Ge(n.font),s=r.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:l,rotation:u}=this._drawArgs(s);Ho(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:u,textAlign:Ep(n.align),textBaseline:"middle",translation:[o,a]})}}function W5(e,t){const n=new zS({ctx:e.ctx,options:t,chart:e});Yt.configure(e,n,t),Yt.addBox(e,n),e.titleBlock=n}var U5={id:"title",_element:zS,start(e,t,n){W5(e,n)},stop(e){const t=e.titleBlock;Yt.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Yt.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ta={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,s=0;for(t=0,n=e.length;ta+l)/r.size,y:i/s}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,s,o,a;for(s=0,o=e.length;s-1?e.split(` `):e}function K5(e,t){const{element:n,datasetIndex:r,index:i}=t,s=e.getDatasetMeta(r).controller,{label:o,value:a}=s.getLabelAndValue(i);return{chart:e,label:o,parsed:s.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:a,dataset:s.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function BS(e,t){const n=e.chart.ctx,{body:r,footer:i,title:s}=e,{boxWidth:o,boxHeight:a}=t,l=Ge(t.bodyFont),u=Ge(t.titleFont),c=Ge(t.footerFont),d=s.length,f=i.length,h=r.length,m=Mt(t.padding);let y=m.height,x=0,p=r.reduce((w,S)=>w+S.before.length+S.lines.length+S.after.length,0);if(p+=e.beforeBody.length+e.afterBody.length,d&&(y+=d*u.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),p){const w=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;y+=h*w+(p-h)*l.lineHeight+(p-1)*t.bodySpacing}f&&(y+=t.footerMarginTop+f*c.lineHeight+(f-1)*t.footerSpacing);let g=0;const b=function(w){x=Math.max(x,n.measureText(w).width+g)};return n.save(),n.font=u.string,ue(e.title,b),n.font=l.string,ue(e.beforeBody.concat(e.afterBody),b),g=t.displayColors?o+2+t.boxPadding:0,ue(r,w=>{ue(w.before,b),ue(w.lines,b),ue(w.after,b)}),g=0,n.font=c.string,ue(e.footer,b),n.restore(),x+=m.width,{width:x,height:y}}function Y5(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function G5(e,t,n,r){const{x:i,width:s}=r,o=n.caretSize+n.caretPadding;if(e==="left"&&i+s+o>t.width||e==="right"&&i-s-o<0)return!0}function X5(e,t,n,r){const{x:i,width:s}=n,{width:o,chartArea:{left:a,right:l}}=e;let u="center";return r==="center"?u=i<=(a+l)/2?"left":"right":i<=s/2?u="left":i>=o-s/2&&(u="right"),G5(u,e,t,n)&&(u="center"),u}function HS(e,t,n){const r=n.yAlign||t.yAlign||Y5(e,n);return{xAlign:n.xAlign||t.xAlign||X5(e,t,n,r),yAlign:r}}function q5(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function Q5(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function WS(e,t,n,r){const{caretSize:i,caretPadding:s,cornerRadius:o}=e,{xAlign:a,yAlign:l}=n,u=i+s,{topLeft:c,topRight:d,bottomLeft:f,bottomRight:h}=as(o);let m=q5(t,a);const y=Q5(t,l,u);return l==="center"?a==="left"?m+=u:a==="right"&&(m-=u):a==="left"?m-=Math.max(c,f)+i:a==="right"&&(m+=Math.max(d,h)+i),{x:yt(m,0,r.width-t.width),y:yt(y,0,r.height-t.height)}}function zu(e,t,n){const r=Mt(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function US(e){return vn([],In(e))}function Z5(e,t,n){return ls(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function KS(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const YS={beforeTitle:jn,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex{const o={before:[],lines:[],after:[]},a=KS(r,s);vn(o.before,In(vt(a,"beforeLabel",this,s))),vn(o.lines,vt(a,"label",this,s)),vn(o.after,In(vt(a,"afterLabel",this,s))),i.push(o)}),i}getAfterBody(t,n){return US(vt(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=vt(r,"beforeFooter",this,t),s=vt(r,"footer",this,t),o=vt(r,"afterFooter",this,t);let a=[];return a=vn(a,In(i)),a=vn(a,In(s)),a=vn(a,In(o)),a}_createItems(t){const n=this._active,r=this.chart.data,i=[],s=[],o=[];let a=[],l,u;for(l=0,u=n.length;lt.filter(c,d,f,r))),t.itemSort&&(a=a.sort((c,d)=>t.itemSort(c,d,r))),ue(a,c=>{const d=KS(t.callbacks,c);i.push(vt(d,"labelColor",this,c)),s.push(vt(d,"labelPointStyle",this,c)),o.push(vt(d,"labelTextColor",this,c))}),this.labelColors=i,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=a,a}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let s,o=[];if(!i.length)this.opacity!==0&&(s={opacity:0});else{const a=ta[r.position].call(this,i,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const l=this._size=BS(this,r),u=Object.assign({},a,l),c=HS(this.chart,r,u),d=WS(r,u,c,this.chart);this.xAlign=c.xAlign,this.yAlign=c.yAlign,s={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const s=this.getCaretPosition(t,r,i);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:s}=this,{caretSize:o,cornerRadius:a}=r,{topLeft:l,topRight:u,bottomLeft:c,bottomRight:d}=as(a),{x:f,y:h}=t,{width:m,height:y}=n;let x,p,g,b,w,S;return s==="center"?(w=h+y/2,i==="left"?(x=f,p=x-o,b=w+o,S=w-o):(x=f+m,p=x+o,b=w-o,S=w+o),g=x):(i==="left"?p=f+Math.max(l,c)+o:i==="right"?p=f+m-Math.max(u,d)-o:p=this.caretX,s==="top"?(b=h,w=b-o,x=p-o,g=p+o):(b=h+y,w=b+o,x=p+o,g=p-o),S=b),{x1:x,x2:p,x3:g,y1:b,y2:w,y3:S}}drawTitle(t,n,r){const i=this.title,s=i.length;let o,a,l;if(s){const u=cs(r.rtl,this.x,this.width);for(t.x=zu(this,r.titleAlign,r),n.textAlign=u.textAlign(r.titleAlign),n.textBaseline="middle",o=Ge(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,l=0;lg!==0)?(t.beginPath(),t.fillStyle=s.multiKeyBackground,ku(t,{x:y,y:m,w:u,h:l,radius:p}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),ku(t,{x,y:m+1,w:u-2,h:l-2,radius:p}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(y,m,u,l),t.strokeRect(y,m,u,l),t.fillStyle=o.backgroundColor,t.fillRect(x,m+1,u-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:s,bodyAlign:o,displayColors:a,boxHeight:l,boxWidth:u,boxPadding:c}=r,d=Ge(r.bodyFont);let f=d.lineHeight,h=0;const m=cs(r.rtl,this.x,this.width),y=function(M){n.fillText(M,m.x(t.x+h),t.y+f/2),t.y+=f+s},x=m.textAlign(o);let p,g,b,w,S,k,$;for(n.textAlign=o,n.textBaseline="middle",n.font=d.string,t.x=zu(this,x,r),n.fillStyle=r.bodyColor,ue(this.beforeBody,y),h=a&&x!=="right"?o==="center"?u/2+c:u+2+c:0,w=0,k=i.length;w0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,s=r&&r.y;if(i||s){const o=ta[t.position].call(this,this._active,this._eventPosition);if(!o)return;const a=this._size=BS(this,t),l=Object.assign({},o,this._size),u=HS(n,t,l),c=WS(t,l,u,n);(i._to!==c.x||s._to!==c.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},s={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=Mt(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=r,this.drawBackground(s,t,i,n),Gw(t,n.textDirection),s.y+=o.top,this.drawTitle(s,t,n),this.drawBody(s,t,n),this.drawFooter(s,t,n),Xw(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:a,index:l})=>{const u=this.chart.getDatasetMeta(a);if(!u)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:u.data[l],index:l}}),s=!bu(r,i),o=this._positionChanged(i,n);(s||o)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,s=this._active||[],o=this._getActiveElements(t,s,n,r),a=this._positionChanged(o,t),l=n||!bu(o,s)||a;return l&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const s=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const o=this.chart.getElementsAtEventForMode(t,s.mode,s,r);return s.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:r,caretY:i,options:s}=this,o=ta[s.position].call(this,t,n);return o!==!1&&(r!==o.x||i!==o.y)}}X(em,"positioners",ta);var J5={id:"tooltip",_element:em,positioners:ta,afterInit(e,t,n){n&&(e.tooltip=new em({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",B(T({},n),{cancelable:!0}))===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:YS},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const eR=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function tR(e,t,n,r){const i=e.indexOf(t);if(i===-1)return eR(e,t,n,r);const s=e.lastIndexOf(t);return i!==s?n:i}const nR=(e,t)=>e===null?null:yt(Math.round(e),0,t);function GS(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}X(tm,"id","category"),X(tm,"defaults",{ticks:{callback:GS}});function rR(e,t){const n=[],{bounds:i,step:s,min:o,max:a,precision:l,count:u,maxTicks:c,maxDigits:d,includeBounds:f}=e,h=s||1,m=c-1,{min:y,max:x}=t,p=!le(o),g=!le(a),b=!le(u),w=(x-y)/(d+1);let S=bw((x-y)/m/h)*h,k,$,M,P;if(S<1e-14&&!p&&!g)return[{value:y},{value:x}];P=Math.ceil(x/S)-Math.floor(y/S),P>m&&(S=bw(P*S/m/h)*h),le(l)||(k=Math.pow(10,l),S=Math.ceil(S*k)/k),i==="ticks"?($=Math.floor(y/S)*S,M=Math.ceil(x/S)*S):($=y,M=x),p&&g&&s&&rL((a-o)/s,S/1e3)?(P=Math.round(Math.min((a-o)/S,c)),S=(a-o)/P,$=o,M=a):b?($=p?o:$,M=g?a:M,P=u-1,S=(M-$)/P):(P=(M-$)/S,wu(P,Math.round(P),S/1e3)?P=Math.round(P):P=Math.ceil(P));const E=Math.max(xw(S),xw($));k=Math.pow(10,le(l)?E:l),$=Math.round($*k)/k,M=Math.round(M*k)/k;let F=0;for(p&&(f&&$!==o?(n.push({value:o}),$a)break;n.push({value:C})}return g&&f&&M!==a?n.length&&wu(n[n.length-1].value,a,XS(a,w,e))?n[n.length-1].value=a:n.push({value:a}):(!g||M===a)&&n.push({value:M}),n}function XS(e,t,{horizontal:n,minRotation:r}){const i=ii(r),s=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/s,o)}class iR extends ds{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return le(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:s}=this;const o=l=>i=n?i:l,a=l=>s=r?s:l;if(t){const l=Pr(i),u=Pr(s);l<0&&u<0?a(0):l>0&&u>0&&o(0)}if(i===s){let l=s===0?1:Math.abs(s*.05);a(s+l),t||o(i-l)}this.min=i,this.max=s}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},s=this._range||this,o=rR(i,s);return t.bounds==="ticks"&&iL(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Lw(t,this.chart.options.locale,this.options.ticks.format)}}class nm extends iR{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Kt(t)?t:0,this.max=Kt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=ii(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,s.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}X(nm,"id","linear"),X(nm,"defaults",{ticks:{callback:Fw.formatters.numeric}});const Bu={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},bt=Object.keys(Bu);function qS(e,t){return e-t}function QS(e,t){if(le(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:s}=e._parseOpts;let o=t;return typeof r=="function"&&(o=r(o)),Kt(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i==="week"&&(Su(s)||s===!0)?n.startOf(o,"isoWeek",s):n.startOf(o,i)),+o)}function ZS(e,t,n,r){const i=bt.length;for(let s=bt.indexOf(e);s=bt.indexOf(n);s--){const o=bt[s];if(Bu[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return bt[n?bt.indexOf(n):0]}function oR(e){for(let t=bt.indexOf(e)+1,n=bt.length;t=t?n[r]:n[i];e[s]=!0}}function aR(e,t,n,r){const i=e._adapter,s=+i.startOf(t[0].value,r),o=t[t.length-1].value;let a,l;for(a=s;a<=o;a=+i.add(a,1,r))l=n[a],l>=0&&(t[l].major=!0);return t}function eP(e,t,n){const r=[],i={},s=t.length;let o,a;for(o=0;o+t.value))}initOffsets(t=[]){let n=0,r=0,i,s;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,s=this.getDecimalForValue(t[t.length-1]),t.length===1?r=s:r=(s-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=yt(n,0,o),r=yt(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,s=i.time,o=s.unit||ZS(s.minUnit,n,r,this._getLabelCapacity(n)),a=oe(i.ticks.stepSize,1),l=o==="week"?s.isoWeekday:!1,u=Su(l)||l===!0,c={};let d=n,f,h;if(u&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,u?"day":o),t.diff(r,n,o)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+o);const m=i.ticks.source==="data"&&this.getDataTimestamps();for(f=d,h=0;f+y)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,s=this._unit,o=n||i[s];return this._adapter.format(t,o)}_tickFormatFunction(t,n,r,i){const s=this.options,o=s.ticks.callback;if(o)return he(o,[t,n,r],this);const a=s.time.displayFormats,l=this._unit,u=this._majorUnit,c=l&&a[l],d=u&&a[u],f=r[n],h=u&&d&&f&&f.major;return this._adapter.format(t,i||(h?d:c))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Tp(e,"pos",t)),{pos:s,time:a}=e[r],{pos:o,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Tp(e,"time",t)),{time:s,pos:a}=e[r],{time:o,pos:l}=e[i]);const u=o-s;return u?a+(l-a)*(t-s)/u:a}class tP extends Hu{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Wu(n,this.min),this._tableRange=Wu(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],s=[];let o,a,l,u,c;for(o=0,a=t.length;o=n&&u<=r&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,a=i.length;oi-s)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(Wu(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Wu(this._table,r*this._tableRange+this._minPos,!0)}}X(tP,"id","timeseries"),X(tP,"defaults",Hu.defaults);const nP="label";function rP(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function lR(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function iP(e,t){e.labels=t}function sP(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:nP;const r=[];e.datasets=t.map(i=>{const s=e.datasets.find(o=>o[n]===i[n]);return!s||!i.data||r.includes(s)?T({},i):(r.push(s),Object.assign(s,i),s)})}function uR(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nP;const n={labels:[],datasets:[]};return iP(n,e.labels),sP(n,e.datasets,t),n}function cR(e,t){const p=e,{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:s,type:o,data:a,options:l,plugins:u=[],fallbackContent:c,updateMode:d}=p,f=te(p,["height","width","redraw","datasetIdKey","type","data","options","plugins","fallbackContent","updateMode"]),h=_.useRef(null),m=_.useRef(null),y=()=>{h.current&&(m.current=new Ou(h.current,{type:o,data:uR(a,s),options:l&&T({},l),plugins:u}),rP(t,m.current))},x=()=>{rP(t,null),m.current&&(m.current.destroy(),m.current=null)};return _.useEffect(()=>{!i&&m.current&&l&&lR(m.current,l)},[i,l]),_.useEffect(()=>{!i&&m.current&&iP(m.current.config.data,a.labels)},[i,a.labels]),_.useEffect(()=>{!i&&m.current&&a.datasets&&sP(m.current.config.data,a.datasets,s)},[i,a.datasets]),_.useEffect(()=>{m.current&&(i?(x(),setTimeout(y)):m.current.update(d))},[i,l,a.labels,a.datasets,d]),_.useEffect(()=>{m.current&&(x(),setTimeout(y))},[o]),_.useEffect(()=>(y(),()=>x()),[]),Z.createElement("canvas",T({ref:h,role:"img",height:n,width:r},f),c)}const dR=_.forwardRef(cR);function fR(e,t){return Ou.register(t),_.forwardRef((n,r)=>Z.createElement(dR,B(T({},n),{ref:r,type:e})))}const hR=fR("bar",$u);/*! * chartjs-plugin-datalabels v2.2.0 * https://chartjs-plugin-datalabels.netlify.app * (c) 2017-2022 chartjs-plugin-datalabels contributors * Released under the MIT license */var oP=function(){if(typeof window!="undefined"){if(window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;if(e)return(e.deviceXDPI||1)/(e.logicalXDPI||1)}return 1}(),na={toTextLines:function(e){var t=[],n;for(e=[].concat(e);e.length;)n=e.pop(),typeof n=="string"?t.unshift.apply(t,n.split(` `)):Array.isArray(n)?e.push.apply(e,n):le(e)||t.unshift(""+n);return t},textSize:function(e,t,n){var r=[].concat(t),i=r.length,s=e.font,o=0,a;for(e.font=n.string,a=0;an.right&&(r|=lP),tn.bottom&&(r|=uP),r}function gR(e,t){for(var n=e.x0,r=e.y0,i=e.x1,s=e.y1,o=Uu(n,r,t),a=Uu(i,s,t),l,u,c;!(!(o|a)||o&a);)l=o||a,l&cP?(u=n+(i-n)*(t.top-r)/(s-r),c=t.top):l&uP?(u=n+(i-n)*(t.bottom-r)/(s-r),c=t.bottom):l&lP?(c=r+(s-r)*(t.right-n)/(i-n),u=t.right):l&aP&&(c=r+(s-r)*(t.left-n)/(i-n),u=t.left),l===o?(n=u,r=c,o=Uu(n,r,t)):(i=u,s=c,a=Uu(i,s,t));return{x0:n,x1:i,y0:r,y1:s}}function Ku(e,t){var n=t.anchor,r=e,i,s;return t.clamp&&(r=gR(r,t.area)),n==="start"?(i=r.x0,s=r.y0):n==="end"?(i=r.x1,s=r.y1):(i=(r.x0+r.x1)/2,s=(r.y0+r.y1)/2),pR(i,s,e.vx,e.vy,t.align)}var Yu={arc:function(e,t){var n=(e.startAngle+e.endAngle)/2,r=Math.cos(n),i=Math.sin(n),s=e.innerRadius,o=e.outerRadius;return Ku({x0:e.x+r*s,y0:e.y+i*s,x1:e.x+r*o,y1:e.y+i*o,vx:r,vy:i},t)},point:function(e,t){var n=rm(e,t.origin),r=n.x*e.options.radius,i=n.y*e.options.radius;return Ku({x0:e.x-r,y0:e.y-i,x1:e.x+r,y1:e.y+i,vx:n.x,vy:n.y},t)},bar:function(e,t){var n=rm(e,t.origin),r=e.x,i=e.y,s=0,o=0;return e.horizontal?(r=Math.min(e.x,e.base),s=Math.abs(e.base-e.x)):(i=Math.min(e.y,e.base),o=Math.abs(e.base-e.y)),Ku({x0:r,y0:i+o,x1:r+s,y1:i,vx:n.x,vy:n.y},t)},fallback:function(e,t){var n=rm(e,t.origin);return Ku({x0:e.x,y0:e.y,x1:e.x+(e.width||0),y1:e.y+(e.height||0),vx:n.x,vy:n.y},t)}},Vn=na.rasterize;function yR(e){var t=e.borderWidth||0,n=e.padding,r=e.size.height,i=e.size.width,s=-i/2,o=-r/2;return{frame:{x:s-n.left-t,y:o-n.top-t,w:i+n.width+t*2,h:r+n.height+t*2},text:{x:s,y:o,w:i,h:r}}}function vR(e,t){var n=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!n)return null;if(n.xCenter!==void 0&&n.yCenter!==void 0)return{x:n.xCenter,y:n.yCenter};var r=n.getBasePixel();return e.horizontal?{x:r,y:null}:{x:null,y:r}}function bR(e){return e instanceof Jo?Yu.arc:e instanceof Vu?Yu.point:e instanceof ea?Yu.bar:Yu.fallback}function xR(e,t,n,r,i,s){var o=Math.PI/2;if(s){var a=Math.min(s,i/2,r/2),l=t+a,u=n+a,c=t+r-a,d=n+i-a;e.moveTo(t,u),lr.x+r.w+n*2||e.y>r.y+r.h+n*2)},intersects:function(e){var t=this._points(),n=e._points(),r=[Gu(t[0],t[1]),Gu(t[0],t[3])],i,s,o;for(this._rotation!==e._rotation&&r.push(Gu(n[0],n[1]),Gu(n[0],n[3])),i=0;i=0;--n)for(i=e[n].$layout,r=n-1;r>=0&&i._visible;--r)s=e[r].$layout,s._visible&&i._box.intersects(s._box)&&t(i,s);return e}function ER(e){var t,n,r,i,s,o,a;for(t=0,n=e.length;tl.getProps([u],!0)[u]}),s=r.geometry(),o=pP(a,r.model(),s),i._box.update(o,s,r.rotation()));return TR(e,function(l,u){var c=l._hidable,d=u._hidable;c&&d||d?u._visible=!1:c&&(l._visible=!1)})}var ia={prepare:function(e){var t=[],n,r,i,s,o;for(n=0,i=e.length;n=0;--n)if(r=e[n].$layout,r&&r._visible&&r._box.contains(t))return e[n];return null},draw:function(e,t){var n,r,i,s,o,a;for(n=0,r=t.length;n{const l=()=>{s(window.innerWidth)};return window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)}},[]);const o={labels:e.slice(0,4).map(l=>l.year),datasets:[{label:D.oblroi_resultsTable_human_cost,data:e.slice(0,4).map(l=>l.serviceRepCost),backgroundColor:"#F0F3FC"},{label:D.oblroi_resultsTable_agentforce_investment,data:e.slice(0,4).map(l=>l.cost),backgroundColor:"#4864D2"},{label:D.oblroi_resultsTable_your_savings,data:e.slice(0,4).map(l=>l.savings),backgroundColor:"#C8D4F8"}]},a={indexAxis:"y",plugins:{title:{display:!1,text:"Stacked Bar Chart"},legend:{position:"bottom",labels:{color:"#000000",font:{size:12,family:"Salesforce Sans"}}},tooltip:{enabled:!1},datalabels:{display:!(i<768),color:"#3651C0",anchor:"middle",font:{weight:"bold",size:i<1024?10:16},align:"middle",formatter:(l,u)=>u.dataset.label===D.oblroi_resultsTable_your_savings&&l!==0?new Intl.NumberFormat(r,{style:"currency",currency:n,maximumFractionDigits:0}).format(l):null}},elements:{bar:{borderRadius:0,barPercentage:1}},responsive:!0,maintainAspectRatio:!1,scales:{x:{stacked:!0,grid:{display:!0,drawTicks:!0,color:"#fff",tickColor:"#D9D9D9"},title:{display:!0,text:D.oblroi_resultsTableAnnualCost,color:"#333",align:"start",padding:{top:10,bottom:10},font:{size:12,family:"Salesforce Sans"}},suggestedMax:0},y:{stacked:!0,grid:{display:!1}}}};return v.jsx(hR,{data:o,options:a,"aria-label":t})}var gP=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,_t=e=>!e||typeof e!="object"||Object.keys(e).length===0,jR=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function yP(e,t){e.forEach(function(n){Array.isArray(n)?yP(n,t):t.push(n)})}function vP(e){let t=[];return yP(e,t),t}var bP=(...e)=>vP(e).filter(Boolean),xP=(e,t)=>{let n={},r=Object.keys(e),i=Object.keys(t);for(let s of r)if(i.includes(s)){let o=e[s],a=t[s];typeof o=="object"&&typeof a=="object"?n[s]=xP(o,a):Array.isArray(o)||Array.isArray(a)?n[s]=bP(a,o):n[s]=a+" "+o}else n[s]=e[s];for(let s of i)r.includes(s)||(n[s]=t[s]);return n},_P=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();const sm="-",OR=e=>{const t=VR(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(sm);return a[0]===""&&a.length!==1&&a.shift(),wP(a,t)||IR(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},wP=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?wP(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(sm);return(o=t.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},SP=/^\[(.+)\]$/,IR=e=>{if(SP.test(e)){const t=SP.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},VR=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return BR(Object.entries(e.classGroups),n).forEach(([s,o])=>{om(o,r,s,t)}),r},om=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:PP(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(zR(i)){om(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{om(o,PP(t,s),n,r)})})},PP=(e,t)=>{let n=e;return t.split(sm).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},zR=e=>e.isThemeGetter,BR=(e,t)=>t?e.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[t+o,a])):s);return[n,i]}):e,HR=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,o)=>{n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}},kP="!",WR=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],s=t.length,o=a=>{const l=[];let u=0,c=0,d;for(let x=0;xc?d-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:y}};return n?a=>n({className:a,parseClassName:o}):o},UR=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},KR=e=>T({cache:HR(e.cacheSize),parseClassName:WR(e)},OR(e)),YR=/\s+/,GR=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=[],o=e.trim().split(YR);let a="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}=n(u);let m=!!h,y=r(m?f.substring(0,h):f);if(!y){if(!m){a=u+(a.length>0?" "+a:a);continue}if(y=r(f),!y){a=u+(a.length>0?" "+a:a);continue}m=!1}const x=UR(c).join(":"),p=d?x+kP:x,g=p+y;if(s.includes(g))continue;s.push(g);const b=i(y,m);for(let w=0;w0?" "+a:a)}return a};function XR(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rd(c),e());return n=KR(u),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=GR(l,n);return i(l,c),c}return function(){return s(XR.apply(null,arguments))}}const ye=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},TP=/^\[(?:([a-z-]+):)?(.+)\]$/i,qR=/^\d+\/\d+$/,QR=new Set(["px","full","screen"]),ZR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,JR=/\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$/,eF=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,tF=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nF=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zn=e=>hs(e)||QR.has(e)||qR.test(e),Tr=e=>ps(e,"length",cF),hs=e=>!!e&&!Number.isNaN(Number(e)),lm=e=>ps(e,"number",hs),sa=e=>!!e&&Number.isInteger(Number(e)),rF=e=>e.endsWith("%")&&hs(e.slice(0,-1)),Q=e=>TP.test(e),Er=e=>ZR.test(e),iF=new Set(["length","size","percentage"]),sF=e=>ps(e,iF,EP),oF=e=>ps(e,"position",EP),aF=new Set(["image","url"]),lF=e=>ps(e,aF,fF),uF=e=>ps(e,"",dF),oa=()=>!0,ps=(e,t,n)=>{const r=TP.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},cF=e=>JR.test(e)&&!eF.test(e),EP=()=>!1,dF=e=>tF.test(e),fF=e=>nF.test(e),um=()=>{const e=ye("colors"),t=ye("spacing"),n=ye("blur"),r=ye("brightness"),i=ye("borderColor"),s=ye("borderRadius"),o=ye("borderSpacing"),a=ye("borderWidth"),l=ye("contrast"),u=ye("grayscale"),c=ye("hueRotate"),d=ye("invert"),f=ye("gap"),h=ye("gradientColorStops"),m=ye("gradientColorStopPositions"),y=ye("inset"),x=ye("margin"),p=ye("opacity"),g=ye("padding"),b=ye("saturate"),w=ye("scale"),S=ye("sepia"),k=ye("skew"),$=ye("space"),M=ye("translate"),P=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",Q,t],C=()=>[Q,t],I=()=>["",zn,Tr],A=()=>["auto",hs,Q],L=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],R=()=>["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"],N=()=>["start","end","center","between","around","evenly","stretch"],V=()=>["","0",Q],U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>[hs,Q];return{cacheSize:500,separator:":",theme:{colors:[oa],spacing:[zn,Tr],blur:["none","",Er,Q],brightness:j(),borderColor:[e],borderRadius:["none","","full",Er,Q],borderSpacing:C(),borderWidth:I(),contrast:j(),grayscale:V(),hueRotate:j(),invert:V(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[rF,Tr],inset:F(),margin:F(),opacity:j(),padding:C(),saturate:j(),scale:j(),sepia:V(),skew:j(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",Q]}],container:["container"],columns:[{columns:[Er]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"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:[...L(),Q]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",sa,Q]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Q]}],grow:[{grow:V()}],shrink:[{shrink:V()}],order:[{order:["first","last","none",sa,Q]}],"grid-cols":[{"grid-cols":[oa]}],"col-start-end":[{col:["auto",{span:["full",sa,Q]},Q]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[oa]}],"row-start-end":[{row:["auto",{span:[sa,Q]},Q]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Q]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[$]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[$]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Q,t]}],"min-w":[{"min-w":[Q,t,"min","max","fit"]}],"max-w":[{"max-w":[Q,t,"none","full","min","max","fit","prose",{screen:[Er]},Er]}],h:[{h:[Q,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Q,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Q,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Q,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Er,Tr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",lm]}],"font-family":[{font:[oa]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Q]}],"line-clamp":[{"line-clamp":["none",hs,lm]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",zn,Q]}],"list-image":[{"list-image":["none",Q]}],"list-style-type":[{list:["none","disc","decimal",Q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[p]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...R(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",zn,Tr]}],"underline-offset":[{"underline-offset":["auto",zn,Q]}],"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:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q]}],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",Q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[p]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...L(),oF]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",sF]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lF]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[p]}],"border-style":[{border:[...R(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[p]}],"divide-style":[{divide:R()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...R()]}],"outline-offset":[{"outline-offset":[zn,Q]}],"outline-w":[{outline:[zn,Tr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[p]}],"ring-offset-w":[{"ring-offset":[zn,Tr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Er,uF]}],"shadow-color":[{shadow:[oa]}],opacity:[{opacity:[p]}],"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:[l]}],"drop-shadow":[{"drop-shadow":["","none",Er,Q]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[p]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"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",Q]}],duration:[{duration:j()}],ease:[{ease:["linear","in","out","in-out",Q]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",Q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[sa,Q]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Q]}],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",Q]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Q]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[zn,Tr,lm]}],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"]}}},hF=(e,{cacheSize:t,prefix:n,separator:r,experimentalParseClassName:i,extend:s={},override:o={}})=>{aa(e,"cacheSize",t),aa(e,"prefix",n),aa(e,"separator",r),aa(e,"experimentalParseClassName",i);for(const a in o)pF(e[a],o[a]);for(const a in s)mF(e[a],s[a]);return e},aa=(e,t,n)=>{n!==void 0&&(e[t]=n)},pF=(e,t)=>{if(t)for(const n in t)aa(e,n,t[n])},mF=(e,t)=>{if(t)for(const n in t){const r=t[n];r!==void 0&&(e[n]=(e[n]||[]).concat(r))}},gF=(e,...t)=>typeof e=="function"?am(um,e,...t):am(()=>hF(um(),e),...t),yF=am(um);var vF={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},$P=e=>e||void 0,la=(...e)=>$P(vP(e).filter(Boolean).join(" ")),cm=null,Bn={},dm=!1,ua=(...e)=>t=>t.twMerge?((!cm||dm)&&(dm=!1,cm=_t(Bn)?yF:gF(B(T({},Bn),{extend:T({theme:Bn.theme,classGroups:Bn.classGroups,conflictingClassGroupModifiers:Bn.conflictingClassGroupModifiers,conflictingClassGroups:Bn.conflictingClassGroups},Bn.extend)}))),$P(cm(la(e)))):la(e),MP=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=la(e[n],t[n]):e[n]=t[n];return e},bF=(e,t)=>{let{extend:n=null,slots:r={},variants:i={},compoundVariants:s=[],compoundSlots:o=[],defaultVariants:a={}}=e,l=T(T({},vF),t),u=n!=null&&n.base?la(n.base,e==null?void 0:e.base):e==null?void 0:e.base,c=n!=null&&n.variants&&!_t(n.variants)?xP(i,n.variants):i,d=n!=null&&n.defaultVariants&&!_t(n.defaultVariants)?T(T({},n.defaultVariants),a):a;!_t(l.twMergeConfig)&&!jR(l.twMergeConfig,Bn)&&(dm=!0,Bn=l.twMergeConfig);let f=_t(n==null?void 0:n.slots),h=_t(r)?{}:T({base:la(e==null?void 0:e.base,f&&(n==null?void 0:n.base))},r),m=f?h:MP(T({},n==null?void 0:n.slots),_t(h)?{base:e==null?void 0:e.base}:h),y=_t(n==null?void 0:n.compoundVariants)?s:bP(n==null?void 0:n.compoundVariants,s),x=g=>{if(_t(c)&&_t(r)&&f)return ua(u,g==null?void 0:g.class,g==null?void 0:g.className)(l);if(y&&!Array.isArray(y))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof y}`);if(o&&!Array.isArray(o))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof o}`);let b=(C,I,A=[],L)=>{let R=A;if(typeof I=="string")R=R.concat(_P(I).split(" ").map(z=>`${C}:${z}`));else if(Array.isArray(I))R=R.concat(I.reduce((z,N)=>z.concat(`${C}:${N}`),[]));else if(typeof I=="object"&&typeof L=="string"){for(let z in I)if(I.hasOwnProperty(z)&&z===L){let N=I[z];if(N&&typeof N=="string"){let V=_P(N);R[L]?R[L]=R[L].concat(V.split(" ").map(U=>`${C}:${U}`)):R[L]=V.split(" ").map(U=>`${C}:${U}`)}else Array.isArray(N)&&N.length>0&&(R[L]=N.reduce((V,U)=>V.concat(`${C}:${U}`),[]))}}return R},w=(C,I=c,A=null,L=null)=>{var R;let z=I[C];if(!z||_t(z))return null;let N=(R=L==null?void 0:L[C])!=null?R:g==null?void 0:g[C];if(N===null)return null;let V=gP(N),U=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,j=d==null?void 0:d[C],H=[];if(typeof V=="object"&&U)for(let[ie,ve]of Object.entries(V)){let lt=z[ve];if(ie==="initial"){j=ve;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(ie)||(H=b(ie,lt,H,A))}let q=V!=null&&typeof V!="object"?V:gP(j),J=z[q||"false"];return typeof H=="object"&&typeof A=="string"&&H[A]?MP(H,J):H.length>0?(H.push(J),H):J},S=()=>c?Object.keys(c).map(C=>w(C,c)):null,k=(C,I)=>{if(!c||typeof c!="object")return null;let A=new Array;for(let L in c){let R=w(L,c,C,I),z=C==="base"&&typeof R=="string"?R:R&&R[C];z&&(A[A.length]=z)}return A},$={};for(let C in g)g[C]!==void 0&&($[C]=g[C]);let M=(C,I)=>{var A;let L=typeof(g==null?void 0:g[C])=="object"?{[C]:(A=g[C])==null?void 0:A.initial}:{};return T(T(T(T({},d),$),L),I)},P=(C=[],I)=>{let A=[];for(let L of C){let R=L,{class:z,className:N}=R,V=te(R,["class","className"]);let U=!0;for(let[j,H]of Object.entries(V)){let q=M(j,I);if(Array.isArray(H)){if(!H.includes(q[j])){U=!1;break}}else if(q[j]!==H){U=!1;break}}U&&(z&&A.push(z),N&&A.push(N))}return A},E=C=>{let I=P(y,C);if(!Array.isArray(I))return I;let A={};for(let L of I)if(typeof L=="string"&&(A.base=ua(A.base,L)(l)),typeof L=="object")for(let[R,z]of Object.entries(L))A[R]=ua(A[R],z)(l);return A},F=C=>{if(o.length<1)return null;let I={};for(let A of o){let L=A,{slots:R=[],class:z,className:N}=L,V=te(L,["slots","class","className"]);if(!_t(V)){let U=!0;for(let j of Object.keys(V)){let H=M(j,C)[j];if(H===void 0||(Array.isArray(V[j])?!V[j].includes(H):V[j]!==H)){U=!1;break}}if(!U)continue}for(let U of R)I[U]=I[U]||[],I[U].push([z,N])}return I};if(!_t(r)||!f){let C={};if(typeof m=="object"&&!_t(m))for(let I of Object.keys(m))C[I]=A=>{var L,R;return ua(m[I],k(I,A),((L=E(A))!=null?L:[])[I],((R=F(A))!=null?R:[])[I],A==null?void 0:A.class,A==null?void 0:A.className)(l)};return C}return ua(u,S(),P(y),g==null?void 0:g.class,g==null?void 0:g.className)(l)},p=()=>{if(!(!c||typeof c!="object"))return Object.keys(c)};return x.variantKeys=p(),x.extend=n,x.base=u,x.slots=m,x.variants=c,x.defaultVariants=d,x.compoundSlots=o,x.compoundVariants=y,x};const xF=bF({base:"w-full px-8 py-3 min-h-[52px] rounded text-center font-sans font-bold tracking-tight flex items-center justify-center",variants:{color:{primary:"bg-sfprimary text-white hover:bg-sfnavy",secondary:"border-2 border-sfprimary bg-white text-sfprimary hover:bg-sfprimary hover:text-white"},size:{sm:"text-sm leading-none",md:"text-base leading-none",lg:"px-8 py-5 text-lg leading-none"}},compoundVariants:[{size:["sm","md"],class:""}]}),_F=(e,t)=>{const n=e.target;let r=0,i=n.previousElementSibling;for(;i;)r++,i=i.previousElementSibling;const s=vp(),o={event:"custEv_contentClick",blade:{id:s.id,name:"sf/marquee/agentforce",position:s.position,source:"www",variant:"marquee",state:"rendered",type:"blade",module:{id:s.id,name:n.innerText,type:"cta",position:r+1,link:{text:n.innerText,url:n.getAttribute("href"),type:`${t} cta`,internalDriver:""}}}};window.dataLayer&&window.dataLayer.push(T({},o))},ca=({children:e,url:t,target:n,variant:r="primary",size:i="md"})=>v.jsx(v.Fragment,{children:v.jsx(g3,{onPress:s=>{_F(s,r)},href:t,target:n,className:xF({size:i,color:r==="text"?"secondary":r}),children:e})});function wF({currentRegion:e,locale:t,currentCurrency:n,agentforcePrice:r,copySource:i,totalSavings:s,validRegionPaths:o,onRegionChange:a,grandTotal:l}){return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"bg-purple-900 py-2 text-sm font-semibold text-white",children:v.jsxs("div",{className:"mx-auto flex max-w-3xl items-center justify-between gap-2",children:[v.jsxs("span",{children:["Region: ",v.jsx("span",{className:"text-gray-300",children:e})]}),v.jsxs("span",{children:["Locale: ",v.jsx("span",{className:"text-gray-300",children:t})]}),v.jsxs("span",{children:["Currency: ",v.jsx("span",{className:"text-gray-300",children:n})]}),v.jsxs("span",{children:["Agentforce cost: ",v.jsx("span",{className:"text-gray-300",children:r})]}),v.jsxs("span",{children:["Copy source: ",v.jsx("span",{className:"text-gray-300",children:i})]}),v.jsxs("span",{children:["grandTotal ",v.jsx("span",{className:"text-gray-300",children:l})]})]})}),v.jsx("div",{className:"bg-purple-800 py-2 text-sm font-semibold text-white",children:v.jsxs("div",{className:"mx-auto flex max-w-3xl items-center justify-between",children:[v.jsx("span",{children:"region switcher:"}),o.map(u=>v.jsx("button",{onClick:()=>a(u),className:"underline",children:u},u))]})})]})}const SF=Z.createContext(void 0),Dt=({children:e})=>{const[t]=_.useState(new Map),n=Z.useRef(1),r=_.useCallback(i=>(t.has(i)||(t.set(i,n.current),n.current+=1),t.get(i)),[t]);return v.jsx(SF.Provider,{value:{registerItem:r},children:v.jsx("div",{children:e})})},PF=({defaultOpen:e=!1,children:t,onToggle:n})=>{const[r,i]=_.useState(e),s=_.useRef(null),o=()=>{var c;i(d=>{const f=!d;return n&&n(f),f});const a=s.current?Array.from(((c=s.current.parentElement)==null?void 0:c.children)||[]).filter(d=>d.classList.contains("accordion-item")).indexOf(s.current)+1:1,l=vp(),u={event:"custEv_contentClick",blade:{id:l.id,name:"sf/marquee/agentforce-selector",position:l.position,source:"www",variant:"marquee",state:"rendered",type:"blade",module:{id:`accordion-item-${a}`,name:`roi-${a===1?"service":a===2?"coach":"sdr"}-toggle`,type:"toggle",position:a,link:{text:"",url:"",type:"",internalDriver:""}}}};window.dataLayer&&window.dataLayer.push(T({},u))};return v.jsx("div",{ref:s,className:"accordion-item",children:Z.Children.map(t,a=>{if(Z.isValidElement(a)){if(a.type===DP)return Z.cloneElement(a,{isOpen:r,onClick:o});if(a.type===AP)return Z.cloneElement(a,{isOpen:r})}return a})})},DP=({children:e,onClick:t,isOpen:n})=>v.jsx("button",{onClick:t,className:`flex w-full flex-col py-6 ${n?"rounded-t-2xl":"mb-8 rounded-2xl"} border border-neutral-200 bg-white px-8 hover:bg-neutral-50`,children:v.jsxs("div",{className:"flex items-center gap-8",children:[v.jsxs("div",{className:"relative h-6 w-10",children:[v.jsx("div",{className:`absolute left-0 top-0 h-6 w-10 rounded-full ${n?"bg-sky-600":"bg-neutral-400"}`}),v.jsx("div",{className:`absolute top-[2px] h-5 w-5 rounded-full bg-white ${n?"left-[18px]":"left-[2px]"}`})]}),v.jsx("div",{className:"w-full",children:e})]})}),AP=({children:e,isOpen:t})=>v.jsx(pT,{children:t?v.jsx(Zr.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{duration:.3}},exit:{height:0,opacity:0},className:"mb-8 flex w-full flex-col items-start justify-start gap-4 rounded-b-2xl border border-t-0 border-neutral-200 bg-neutral-200/25 p-2 shadow lg:flex-row md:gap-8 md:p-8",children:e}):null});Dt.Item=PF,Dt.Header=DP,Dt.Panel=AP;const LP={1:"1-service",2:"2-sales",3:"3-sdr"},kF=({setCurrentStep:e,setEnabledWizard:t,currentStep:n,nextCopy:r,backCopy:i,resultsCopy:s,skipCopy:o})=>{const a=LP[n],l=(u,c)=>{const d={event:"custEv_contentClick",blade:{name:"sf/marquee/agentforce-roi-wizard",position:"",module:{name:a,link:{url:"",text:c,elementType:"text"}}}};console.log("eventDetails",d),window.dataLayer&&window.dataLayer.push(T({},d))};return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"mt-8",children:n<3?v.jsx("button",{onClick:()=>e(u=>u+1),className:"flex min-h-[52px] w-full items-center justify-center rounded bg-sfprimary px-8 py-3 text-center font-sans font-bold tracking-tight text-white hover:bg-sfnavy",children:r}):v.jsx("button",{onClick:()=>t(!1),className:"flex min-h-[52px] w-full items-center justify-center rounded bg-sfprimary px-8 py-3 text-center font-sans font-bold tracking-tight text-white hover:bg-sfnavy",children:s})}),v.jsxs("div",{className:"mt-4 flex items-center justify-between",children:[n>1?v.jsx("button",{onClick:()=>{e(u=>u-1),l("back","Back")},className:"font-bold text-sfprimary underline hover:text-sfnavy hover:no-underline",children:i}):null,v.jsx("button",{onClick:()=>{t(!1),l("skip","Skip Survey")},className:"ml-auto font-bold text-sfprimary underline hover:text-sfnavy hover:no-underline",children:o})]})]})},fm=({enabledCalc:e,calcName:t,handleAnswer:n,currentStep:r,stepCopy:i,selectAgentsCopy:s,completeSurveyCopy:o,agentTypeCoach:a,questionCopy:l,questionYesCopy:u,questionYesDetailCopy:c,questionNoCopy:d,questionNoDetailCopy:f})=>{const h=LP[r],m=y=>{const x={event:"custEv_contentClick",blade:{name:"sf/marquee/agentforce-initial-questions",position:"",module:{name:y,link:{url:"",text:y,elementType:"button"}}}};console.log("eventDetails",x),window.dataLayer&&window.dataLayer.push(T({},x))};return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"text-center text-sm",children:[i," ",r," of 3"]}),v.jsx("h2",{className:"mb-0 text-center text-xl text-sky-950",children:s}),r===1?v.jsx("p",{className:"text-center",children:o}):null,v.jsx("div",{className:"flex justify-center",children:v.jsx(Zr.span,{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},className:"inline-flex items-center rounded-full bg-[#F0F3FC] px-3 py-1 text-sm text-sky-950",children:v.jsx("strong",{children:a})})}),v.jsx(Zr.p,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},className:"mx-auto mb-8 w-full text-center text-xl sm:w-8/12",children:l}),v.jsxs("button",{onClick:()=>{n(t,!0),m(`${h}-yes`)},className:`flex items-center justify-between gap-4 rounded-lg px-6 py-5 shadow-md transition-all ${e?"ring-2 ring-[#0176D3] hover:ring-2 hover:ring-sky-950":"ring-1 ring-[#e6e6e6] hover:bg-[#EAF5FE] hover:ring-1 hover:ring-[#0176D3] focus:bg-[#EAF5FE] focus:ring-[#0176D3] focus:ring-offset-4"}`,"aria-description":u+" - "+c,children:[v.jsx("div",{className:"flex flex-col",children:v.jsx("p",{className:"text-left text-lg",children:v.jsx("strong",{children:u})})}),v.jsx("div",{children:e?v.jsx("div",{className:"h-3 w-3 rounded-full bg-[#0176D3] ring-1 ring-[#0176D3] ring-offset-4"}):v.jsx("div",{className:"h-3 w-3 rounded-full bg-white ring-1 ring-[#747474] ring-offset-4"})})]}),v.jsxs("button",{onClick:()=>{n(t,!1),m(`${h}-no`)},className:`flex items-center justify-between gap-4 rounded-lg px-6 py-5 shadow-md transition-all ${e?"ring-1 ring-[#e6e6e6] hover:bg-[#EAF5FE] hover:ring-1 hover:ring-[#0176D3] focus:bg-[#EAF5FE] focus:ring-[#0176D3] focus:ring-offset-4":"ring-2 ring-[#0176D3] hover:ring-2 hover:ring-sky-950"}`,"aria-description":d+" - "+f,children:[v.jsx("div",{className:"flex flex-col",children:v.jsx("p",{className:"text-left text-lg",children:v.jsx("strong",{children:d})})}),v.jsx("div",{children:e?v.jsx("div",{className:"h-3 w-3 rounded-full bg-white ring-1 ring-[#747474] ring-offset-4"}):v.jsx("div",{className:"h-3 w-3 rounded-full bg-[#0176D3] ring-1 ring-[#0176D3] ring-offset-4"})})]})]})};function RP(e,t,n){var c;const r=new Intl.NumberFormat(t,{style:"currency",currency:n,currencyDisplay:"narrowSymbol",minimumFractionDigits:0,maximumFractionDigits:0}).format(e<0?0:e),o=((c=new Intl.NumberFormat(t,{style:"currency",currency:n,currencyDisplay:"narrowSymbol"}).formatToParts(e).find(d=>d.type==="currency"))==null?void 0:c.value)||"",l=new Intl.NumberFormat(t,{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:0}).format(e<0?0:e);return{formattedNumber:r,symbol:n==="AUD"?"AU$":o,number:l}}const de=({value:e,locale:t="en-US",currency:n="USD"})=>{const{formattedNumber:r,symbol:i,number:s}=RP(e,t,n);return`${i}${s}`},CF=({value:e,locale:t="en-US",currency:n="USD"})=>{const{formattedNumber:r,symbol:i,number:s}=RP(e,t,n);return v.jsxs("span",{className:"flex items-start justify-center text-center",children:[v.jsx("span",{className:"flex-start items-start text-display-5 sm:text-display-3 mr-2",children:i}),v.jsx("span",{children:s})]})},TF=({value:e,currency:t,locale:n,totalCopy:r,withAgentforceCopy:i,inactiveCopy:s,salesCoachCopy:o,sdrCopy:a,serviceCopy:l,salesCoachResults:u,sdrResults:c,serviceResults:d,enabledCalcs:f})=>{const[h,m]=_.useState(!0),[y,x]=_.useState(window.innerWidth),[p,g]=_.useState(0),[b,w]=_.useState(73),[S,k]=_.useState(56),{scrollY:$}=Vx();Mx($,"change",E=>{const F=$.getPrevious(),C=$.getVelocity(),I=230;F!==void 0&&FE&&p850&&p850?m(!1):m(!0)});const M=()=>{x(window.innerWidth)};_.useEffect(()=>{typeof window!="undefined"&&window.addEventListener("resize",M,!1)},[]);const P={background:"linear-gradient(90deg, #0529C1 0%, #B302FC 100%)",backgroundImage:` url('https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/12/bg-mointain-sticky-left_9e6e57.png'), url('https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/12/bg-mointain-sticky-right_82471e.png'), linear-gradient(90deg, #0529C1 0%, #B302FC 100%) `,backgroundPosition:"left -15px top, right top 15px, 0 0",backgroundSize:"250px auto, 320px auto, cover",backgroundRepeat:"no-repeat, no-repeat, no-repeat",zIndex:999};return v.jsxs(Zr.div,{variants:{visible:{y:y>1280?b:S},hidden:{y:"-100%"}},initial:"hidden",animate:h?"hidden":"visible",style:P,transition:{duration:.3,ease:[.45,.14,.1,.97]},className:"fixed top-0 flex max-h-[92px] min-h-[60px] w-full items-stretch justify-center gap-2 p-2 text-white shadow-2xl sm:min-h-[92px]",children:[v.jsxs("div",{className:"flex flex-col gap-0 sm:flex-row sm:gap-2",children:[v.jsx("div",{className:"text-md inline-flex items-center justify-center font-display",children:r}),v.jsx("div",{className:"inline-flex min-w-[150px] items-center justify-center font-display text-3xl",children:v.jsx(de,{value:e,currency:t,locale:n})})]}),v.jsx("div",{className:"visible inline-flex items-center justify-center pl-2 text-sm max-sm:hidden",children:i}),v.jsxs("div",{className:"flew-row flex gap-3",children:[v.jsx("div",{className:"visible inline-flex items-center justify-center gap-2 rounded-lg ring-inset max-sm:hidden",children:v.jsxs("div",{className:"flex flex-col items-center justify-start gap-1",children:[v.jsx("h6",{className:`rounded-full px-3 py-1 text-center font-sans text-sm font-bold leading-tight ${f.serviceAgent?"bg-white text-[#753ADE]":"bg-white/10"}`,children:l}),v.jsx("p",{className:"font-sans text-base leading-normal tracking-tight",children:f.serviceAgent?v.jsx(de,{value:d,currency:t,locale:n}):s})]})}),v.jsx("div",{className:"text-md visible inline-flex items-center justify-center font-display max-sm:hidden",children:"+"}),v.jsx("div",{className:"visible inline-flex items-center justify-center gap-2 rounded-lg max-sm:hidden md:min-h-16",children:v.jsxs("div",{className:"flex flex-col items-center justify-start gap-1",children:[v.jsx("h6",{className:`rounded-full px-3 py-1 text-center font-sans text-sm font-bold leading-tight ${f.salesCoach?"bg-white text-[#753ADE]":"bg-white/10"}`,children:o}),v.jsx("p",{className:"font-sans text-base leading-normal tracking-tight",children:f.salesCoach?v.jsx(de,{value:u,currency:t,locale:n}):s})]})}),v.jsx("div",{className:"text-md visible inline-flex items-center justify-center font-display max-sm:hidden",children:"+"}),v.jsx("div",{className:"visible inline-flex items-center justify-center gap-2 max-sm:hidden",children:v.jsxs("div",{className:"flex flex-col items-center justify-start gap-1",children:[v.jsx("h6",{className:`rounded-full px-3 py-1 text-center font-sans text-sm font-bold leading-tight ${f.sdrAgent?"bg-white text-[#753ADE]":"bg-white/10"}`,children:a}),v.jsx("p",{className:"font-sans text-base leading-normal tracking-tight",children:f.sdrAgent?v.jsx(de,{value:c,currency:t,locale:n}):s})]})})]})]})},Xu=({text1:e,text2:t,text3:n})=>v.jsxs("p",{className:"my-8 font-sans text-xs font-normal leading-[18px] tracking-tight text-black",children:[e,t&&v.jsxs(v.Fragment,{children:[v.jsx("br",{}),v.jsx("br",{}),t]}),n&&v.jsxs(v.Fragment,{children:[v.jsx("br",{}),v.jsx("br",{}),n]})]}),hm=({headline:e,item1:t,item2:n,item3:r})=>v.jsxs("div",{className:"flex w-full flex-col gap-6 pl-4",children:[v.jsx("h3",{className:"font-display text-xl font-semibold leading-7 text-sky-950",children:e}),v.jsxs("ul",{className:"ml-8 list-disc font-sans text-lg font-normal leading-7 tracking-tight text-neutral-900",children:[v.jsx("li",{children:t}),n&&v.jsx("li",{children:n}),r&&v.jsx("li",{children:r})]})]}),EF=({salesCoachResults:e,sdrResults:t,serviceResults:n,enabledCalculators:r,grandTotal:i,currency:s,locale:o})=>v.jsxs("div",{className:"bg-white h-[100vh] w-[100vw]",children:[v.jsx("h1",{children:"PDF Report"}),r.serviceAgent&&v.jsxs("div",{children:[v.jsx("h2",{children:"Service Agent Results"}),v.jsxs("p",{children:["Total Savings:"," ",v.jsx(de,{value:n.totalSavings,currency:s,locale:o})]})]}),r.salesCoach&&v.jsxs("div",{children:[v.jsx("h2",{children:"Sales Coach Results"}),v.jsxs("p",{children:["Three Year Net Benefit:"," ",v.jsx(de,{value:e.threeYearNetBenefit,currency:s,locale:o})]})]}),r.sdrAgent&&v.jsxs("div",{children:[v.jsx("h2",{children:"SDR Results"}),v.jsxs("p",{children:["Three Year Net Benefit:"," ",v.jsx(de,{value:t.threeYearNetBenefit,currency:s,locale:o})]})]}),v.jsxs("h2",{children:["Grand Total:"," ",v.jsx(de,{value:i,currency:s,locale:o})]}),v.jsxs("h2",{children:["Currency: ",s]}),v.jsxs("h2",{children:["Locale: ",o]})]}),$F=({eyebrow:e,header:t,headerBottom:n})=>v.jsxs("section",{className:"max-w-[1280px] text-center md:max-w-[540px] lg:max-w-[768px]",children:[v.jsxs("h1",{className:"text-4xl text-sky-950 lg:text-5xl",children:[v.jsx("span",{className:"text-indigo-700",children:e}),v.jsx("br",{}),t]}),v.jsx("h2",{className:"mb-10 text-xl text-sky-950 md:mb-16 lg:text-2xl",children:n})]}),MF=()=>v.jsxs("div",{className:"relative mx-auto h-[200px] w-full sm:h-[300px]",style:{backgroundImage:` url('https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/12/bg-mointain-sticky-left_9e6e57.png'), url('https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/12/bg-mointain-sticky-right_82471e.png') `,backgroundPosition:"left -45px top, right top 45px, 0 0",backgroundRepeat:"no-repeat, no-repeat, no-repeat"},children:[v.jsx("div",{className:"masked-contour absolute inset-x-0 bottom-0 z-0 mx-auto -mb-[2px] w-full",children:v.jsx("img",{src:"https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/10/contour.svg",alt:"",className:"w-full"})}),v.jsx("div",{className:"data-dust-left absolute left-0 top-[-50px] z-10 sm:top-[-450px]",children:v.jsx("img",{src:"https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/10/DataDust.svg",alt:"",className:"w-auto max-sm:w-[250px]"})}),v.jsx("div",{className:"data-dust-right visible absolute right-0 top-[-80px] z-10 max-lg:hidden",children:v.jsx("img",{src:"https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/10/DataDust-2.svg",alt:""})}),v.jsx("div",{className:"astro-agentforce absolute bottom-[-20px] right-0 z-20 sm:right-[10%]",children:v.jsx("img",{src:"https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/10/astro-bot.png",alt:"",className:"w-[200px] sm:w-[260px]"})}),v.jsx("div",{className:"einstein-agentforce absolute bottom-[-40px] left-[13%] z-20",children:v.jsx("img",{src:"https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/10/einstein-bot.png",alt:"",className:"w-[200px] sm:w-[260px]"})}),v.jsx("div",{className:"appy-agentforce absolute bottom-[-20px] left-[3%] z-20",children:v.jsx("img",{src:"https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/10/appy-bot.png",alt:"",className:"w-[80px] sm:w-[180px]"})})]}),DF=({children:e})=>v.jsxs("div",{className:"bg-agentforce-light",children:[v.jsx("div",{className:"flex min-h-screen flex-col items-center justify-center px-4 pb-10 pt-10 md:pt-16",children:e}),v.jsx(MF,{})]}),AF=({children:e})=>v.jsx("section",{className:"container z-20 mx-auto mb-8 flex flex-col gap-8 p-0 md:max-w-[540px] md:flex-col lg:max-w-[768px] xl:max-w-[1280px] xl:flex-row 2xl:max-w-[1440px]",children:v.jsxs("div",{className:"relative flex w-full flex-col self-start overflow-hidden rounded-2xl bg-white p-6 pt-8 shadow-lg md:p-8 xl:flex-1 ",children:[v.jsx("div",{className:"absolute inset-0 top-0 h-2 w-full",style:{background:"linear-gradient(90deg, #02BEC7 -12.85%, #1E1D80 26.7%, #7B00E1 95.81%, #DC32EC 129.59%)"}}),e]})}),LF=(e,t)=>{var r,i;const n=document.querySelector('[data-component="table"]');n&&(n.querySelectorAll("tbody tr").forEach(o=>{var l,u;const a=o.querySelectorAll("td");if(a.length===2){const c=(l=a[0].textContent)==null?void 0:l.trim(),d=(u=a[1].textContent)==null?void 0:u.trim();c&&d&&e.hasOwnProperty(c)&&(e[c]=d)}}),t("Table")),n&&new URLSearchParams(window.location.search).get("showTable")!=="true"&&((r=document.querySelector('[data-blade-name="sf/simpletable"]'))==null||r.remove(),(i=document.querySelector('[data-blade-name="sf/simpletable"]'))==null||i.remove())},qu={ap:"USD",au:"AUD",in:"USD",ca:"USD",eu:"EUR",uk:"GBP",de:"EUR",fr:"EUR",jp:"JPY",br:"USD",es:"EUR",it:"EUR",nl:"EUR",mx:"USD",kr:"USD",se:"SEK",th:"USD",tw:"USD","fr-ca":"USD",us:"USD"},Hn={USD:2,AUD:2.8,EUR:2,GBP:1.6,JPY:240,SEK:20},Qu={in:"en-IN",au:"en-AU",ca:"en-CA",uk:"en-GB",se:"sv-SE",th:"th-TH",kr:"ko-KR",tw:"zh-TW",de:"de-DE",fr:"fr-FR",jp:"ja-JP",it:"it-IT",es:"es-ES",nl:"nl-NL",mx:"es-MX","fr-ca":"fr-CA"},FP=Object.keys(Qu);function pm(e){const t=qu[e],n=Hn[t],r=Qu[e];return{currentCurrency:t,agentforcePrice:n,locale:r}}function RF(e){const{serviceEmployees:t,costPerEmployee:n,conversationsPerDay:r,serviceAgentCases:i,currentRegion:s}=e,o=pm(s),a=t*n,l=r*t*260,c=75*t*12,d=i,f=i-i*.3,h=f-f*.3,m=l*o.agentforcePrice*(h/100),y=l*o.agentforcePrice*(f/100),x=l*o.agentforcePrice*(d/100),p=m+y+x,g=a*3,b=a*(1-h/100),w=a*(1-f/100),S=a*(1-d/100),k=b+w+S,$=(a+c)*(1-h/100),M=(a+c)*(1-f/100),P=(a+c)*(1-d/100),E=$+M+P,F=Math.max(a+c-$-m,0),C=Math.max(a+c-M-y,0),I=Math.max(a+c-P-x,0),A=F+C+I,L=A/g*100;return{totalHumanCost:a,totalAnnualConversations:l,totalLicenseCost:c,costYear1:m,costYear2:y,costYear3:x,costTotal:p,costTotalAsIs:g,humanCostSavingsTotal:k,serviceRepCostTotal:E,totalSavings:A,totalSavingsPercentage:L,yearOne:h,yearTwo:f,yearThree:d,conversationsYear1:l*(h/100),conversationsYear2:l*(f/100),conversationsYear3:l*(d/100),humanCostSavingsYear1:b,humanCostSavingsYear2:w,humanCostSavingsYear3:S,serviceRepCostYear1:$,serviceRepCostYear2:M,serviceRepCostYear3:P,netSavingsYear1:F,netSavingsYear2:C,netSavingsYear3:I,currentCurrency:o.currentCurrency,locale:o.locale}}const FF=40,NF=50,jF=.25;function OF(e){const t=FF,n=NF,r=jF,i=pm(e.currentRegion),s={yearThree:e.yearThreeTargetPercentage,yearTwo:e.yearThreeTargetPercentage*.7,yearOne:e.yearThreeTargetPercentage*.3};function o(x){const p=t*e.timeSpentOnLeadProspecting*r,g=e.numberOfSalesReps*n*p,b=g/(t*n),w=b*e.averageSalesRepSalary,S=e.numberOfSalesReps*n*e.leadsPerRepPerWeek,k=e.unengagedLeadsPerYear*x,$=k*e.leadConversionRate*e.averageDealSize*e.opportunityCloseRate*e.grossMargin,M=S+k,P=M*i.agentforcePrice,E=w+$,F=E-P;return{productivityImprovement:r,hoursSavedPerRepWeek:p,totalHoursSavedAnnually:g,fullTimeEquivalentSavings:b,productivityBenefits:w,totalLeadsTouchedByDigitalSdr:S,percentLeadsProspected:x,increasedLeadsFromProspecting:k,benefitsFromQualifiedLeads:$,totalLeadsProcessed:M,totalAgentforceCosts:P,totalAgentforceBenefits:E,netBenefit:F}}const a=o(s.yearTwo*.4),l=o(s.yearTwo),u=o(s.yearThree),c=Math.max(a.productivityBenefits+a.benefitsFromQualifiedLeads+l.productivityBenefits+l.benefitsFromQualifiedLeads+u.productivityBenefits+u.benefitsFromQualifiedLeads,0),d=a.totalAgentforceCosts+l.totalAgentforceCosts+u.totalAgentforceCosts,f=Math.max((c-d)/d,0),h=Math.max(c-d,0),m=[{year:"Year 1",netBenefit:Math.max(a.netBenefit,0),productivityBenefits:a.productivityBenefits,benefitsFromQualifiedLeads:a.benefitsFromQualifiedLeads,totalAgentforceCosts:a.totalAgentforceCosts,totalAgentforceBenefits:a.totalAgentforceBenefits},{year:"Year 2",netBenefit:Math.max(l.netBenefit,0),productivityBenefits:l.productivityBenefits,benefitsFromQualifiedLeads:l.benefitsFromQualifiedLeads,totalAgentforceCosts:l.totalAgentforceCosts,totalAgentforceBenefits:l.totalAgentforceBenefits},{year:"Year 3",netBenefit:Math.max(u.netBenefit,0),productivityBenefits:u.productivityBenefits,benefitsFromQualifiedLeads:u.benefitsFromQualifiedLeads,totalAgentforceCosts:u.totalAgentforceCosts,totalAgentforceBenefits:u.totalAgentforceBenefits}],y=`[[${m[0].year},${m[0].productivityBenefits},${m[0].totalAgentforceCosts},${m[0].netBenefit}], [${m[1].year},${m[1].productivityBenefits},${m[1].totalAgentforceCosts},${m[1].netBenefit}], [${m[2].year},${m[2].productivityBenefits},${m[2].totalAgentforceCosts},${m[2].netBenefit}], ["Total",${c},${d},${h}]]`;return{threeYearTotalBenefits:c,threeYearTotalCosts:d,threeYearROI:f,threeYearNetBenefit:h,tableData:m,yearOne:a,yearTwo:l,yearThree:u,locale:i.locale,currentCurrency:i.currentCurrency,threeYearProductivityBenefits:a.productivityBenefits+l.productivityBenefits+u.productivityBenefits,threeYearBenefitsFromQualifiedLeads:a.benefitsFromQualifiedLeads+l.benefitsFromQualifiedLeads+u.benefitsFromQualifiedLeads,tableDataString:y}}const NP="agentforce_roi_state";function IF(e){try{localStorage.setItem(NP,JSON.stringify(e))}catch(t){console.error("Error saving state to localStorage:",t)}}function VF(){try{const e=localStorage.getItem(NP);return e?JSON.parse(e):null}catch(e){return console.error("Error loading state from localStorage:",e),null}}function zF(e){const r=pm(e.currentRegion),i=e.yearThreeProductivityTarget/100,s={yearOne:i*.5,yearTwo:i*.7,yearThree:i};function o(x){const p=40*e.timeSpentOnCoaching*x,g=e.numberOfSalesManagers*50*p,b=Math.ceil(g/(40*50)),w=b*e.averageSalesManagerSalary,S=e.numberOfSalesManagers*e.coachingConversationsPerWeek*50,k=S*r.agentforcePrice;return{productivityImprovement:x,hoursSavedPerManagerWeek:p,totalHoursSavedAnnually:g,fullTimeEquivalentSavings:b,productivityBenefits:w,totalAgentforceConversations:S,totalAgentforceInvestment:k}}const a=o(s.yearOne),l=o(s.yearTwo),u=o(s.yearThree),c=Math.max(0,a.productivityBenefits+l.productivityBenefits+u.productivityBenefits),d=Math.max(0,a.totalAgentforceInvestment+l.totalAgentforceInvestment+u.totalAgentforceInvestment),f=Math.max(0,(c-d)/d),h=Math.max(0,c-d),m=[{year:"Year 1",productivityBenefits:a.productivityBenefits,totalAgentforceInvestment:a.totalAgentforceInvestment,netBenefit:Math.max(0,a.productivityBenefits-a.totalAgentforceInvestment)},{year:"Year 2",productivityBenefits:l.productivityBenefits,totalAgentforceInvestment:l.totalAgentforceInvestment,netBenefit:Math.max(0,l.productivityBenefits-l.totalAgentforceInvestment)},{year:"Year 3",productivityBenefits:u.productivityBenefits,totalAgentforceInvestment:u.totalAgentforceInvestment,netBenefit:Math.max(0,u.productivityBenefits-u.totalAgentforceInvestment)}],y=`[[${m[0].year},${m[0].productivityBenefits},${m[0].totalAgentforceInvestment},${m[0].netBenefit}], [${m[1].year},${m[1].productivityBenefits},${m[1].totalAgentforceInvestment},${m[1].netBenefit}], [${m[2].year},${m[2].productivityBenefits},${m[2].totalAgentforceInvestment},${m[2].netBenefit}], ["Total",${c},${d},${h}]]`;return{tableData:m,threeYearTotalBenefits:c,threeYearTotalInvestment:d,threeYearNetBenefit:h,threeYearROI:f,yearOne:a,yearTwo:l,yearThree:u,locale:r.locale,currentCurrency:r.currentCurrency,tableDataString:y}}function BF({appDebug:e,appPhaseTwo:t,appReport:n}){const[r,i]=_.useState("us"),[s,o]=_.useState("USD"),[a,l]=_.useState(2),[u,c]=_.useState("JSON"),[d,f]=_.useState(""),[h,m]=_.useState("en-US"),[y,x]=_.useState(()=>new URLSearchParams(window.location.search)),[p,g]=_.useState(()=>Number(y.get("serviceEmployees"))||20),[b,w]=_.useState(()=>Number(y.get("costPerEmployee"))||5e4),[S,k]=_.useState(()=>Number(y.get("conversationsPerDay"))||20),[$,M]=_.useState(()=>Number(y.get("serviceAgentCases"))||50),[P,E]=_.useState(()=>Number(y.get("numberOfSalesManagers"))||40),[F,C]=_.useState(()=>Number(y.get("timeSpentOnCoaching"))||.4),[I,A]=_.useState(()=>Number(y.get("averageSalesManagerSalary"))||1e5),[L,R]=_.useState(()=>Number(y.get("coachingConversationsPerWeek"))||40),[z,N]=_.useState(()=>Number(y.get("yearThreeProductivityTarget"))||30),[V,U]=_.useState(()=>Number(y.get("numberOfSalesReps"))||200),[j,H]=_.useState(()=>Number(y.get("timeSpentOnLeadProspecting"))||.3),[q,J]=_.useState(()=>Number(y.get("averageSalesRepSalary"))||5e4),[ie,ve]=_.useState(()=>Number(y.get("leadsPerRepPerWeek"))||20),[lt,fi]=_.useState(()=>Number(y.get("unengagedLeadsPerYear"))||2e5),[Wn,ms]=_.useState(()=>Number(y.get("leadConversionRate"))||.2),[hi,da]=_.useState(()=>Number(y.get("averageDealSize"))||1e3),[bn,Ju]=_.useState(()=>Number(y.get("opportunityCloseRate"))||.1),[gs,fa]=_.useState(()=>Number(y.get("grossMargin"))||.2),[pi,ec]=_.useState(()=>Number(y.get("yearThreeTargetPercentage"))||.8),[fe,ha]=_.useState({serviceAgent:!0,salesCoach:!0,sdrAgent:!0}),[Mr,tc]=_.useState(0),[ys,pa]=_.useState(!0),[Gt,vs]=_.useState(1);_.useEffect(()=>{const O=VF();O&&(g(O.serviceAgent.serviceEmployees),w(O.serviceAgent.costPerEmployee),k(O.serviceAgent.conversationsPerDay),M(O.serviceAgent.serviceAgentCases),E(O.salesCoach.numberOfSalesManagers),C(O.salesCoach.timeSpentOnCoaching),A(O.salesCoach.averageSalesManagerSalary),R(O.salesCoach.coachingConversationsPerWeek),N(O.salesCoach.yearThreeProductivityTarget),U(O.sdr.numberOfSalesReps),H(O.sdr.timeSpentOnLeadProspecting),J(O.sdr.averageSalesRepSalary),ve(O.sdr.leadsPerRepPerWeek),fi(O.sdr.unengagedLeadsPerYear),ms(O.sdr.leadConversionRate),da(O.sdr.averageDealSize),Ju(O.sdr.opportunityCloseRate),fa(O.sdr.grossMargin),ec(O.sdr.yearThreeTargetPercentage),ha(O.enabledCalculators),vs(O.currentStep),pa(!O.wizardComplete),tc(O.grandTotal))},[]),_.useEffect(()=>{IF({serviceAgent:{serviceEmployees:p,costPerEmployee:b,conversationsPerDay:S,serviceAgentCases:$,currentRegion:r},salesCoach:{numberOfSalesManagers:P,timeSpentOnCoaching:F,averageSalesManagerSalary:I,coachingConversationsPerWeek:L,yearThreeProductivityTarget:z,currentRegion:r},sdr:{numberOfSalesReps:V,timeSpentOnLeadProspecting:j,averageSalesRepSalary:q,leadsPerRepPerWeek:ie,unengagedLeadsPerYear:lt,leadConversionRate:Wn,averageDealSize:hi,opportunityCloseRate:bn,grossMargin:gs,yearThreeTargetPercentage:pi,currentRegion:r},enabledCalculators:fe,currentStep:Gt,wizardComplete:!ys,currentRegion:r,locale:h,grandTotal:Mr})},[p,b,S,$,P,F,I,L,z,V,j,q,ie,lt,Wn,hi,bn,gs,pi,fe,Gt,ys,r,h,Mr]);const wt=(O,bs)=>{ha(HF=>B(T({},HF),{[O]:bs}))};_.useEffect(()=>{LF(D,c)},[]);const ma=O=>{i(O),m(Qu[O]),o(qu[O]);const bs=qu[O];l(Hn[bs]),w(25e3*Hn[bs]),A(5e4*Hn[bs]),J(5e4*Hn[bs])};_.useEffect(()=>{const O=window.location.pathname.split("/")[1];(O.length===2&&FP.includes(O)||O==="fr-ca")&&(f(O),ma(O))},[]),_.useEffect(()=>{if(h!=="en-US"&&r){const O=qu[r];m(Qu[r]),o(O),l(Hn[O]),w(25e3*Hn[O]),A(5e4*Hn[O]),J(5e4*Hn[O])}},[r]);const se=RF({serviceEmployees:p,costPerEmployee:b,conversationsPerDay:S,serviceAgentCases:$,currentRegion:r}),At=zF({numberOfSalesManagers:P,timeSpentOnCoaching:F,averageSalesManagerSalary:I,coachingConversationsPerWeek:L,yearThreeProductivityTarget:z,currentRegion:r}),ut=OF({numberOfSalesReps:V,timeSpentOnLeadProspecting:j,averageSalesRepSalary:q,leadsPerRepPerWeek:ie,unengagedLeadsPerYear:lt,leadConversionRate:Wn,averageDealSize:hi,opportunityCloseRate:bn,grossMargin:gs,yearThreeTargetPercentage:pi,currentRegion:r});_.useEffect(()=>{const O=(fe.serviceAgent?se.totalSavings:0)+(fe.salesCoach?At.threeYearNetBenefit:0)+(fe.sdrAgent?ut.threeYearNetBenefit:0);tc(O)},[se,At,ut,fe]);const mi=[{year:D.oblroi_chart_year_0,serviceRepCost:Math.max(0,se.totalHumanCost),cost:0,savings:0},{year:D.oblroi_chart_year_1,serviceRepCost:Math.max(0,se.serviceRepCostYear1),cost:Math.max(0,se.costYear1),savings:Math.max(0,se.netSavingsYear1)},{year:D.oblroi_chart_year_2,serviceRepCost:Math.max(0,se.serviceRepCostYear2),cost:Math.max(0,se.costYear2),savings:Math.max(0,se.netSavingsYear2)},{year:D.oblroi_chart_year_3,serviceRepCost:Math.max(0,se.serviceRepCostYear3),cost:Math.max(0,se.costYear3),savings:Math.max(0,se.netSavingsYear3)},{year:D.oblroi_chart_total,serviceRepCost:Math.max(0,se.serviceRepCostTotal),cost:Math.max(0,se.costTotal),savings:Math.max(0,se.totalSavings)}],ct=`${D.oblroi_service_agent_handling} ${Math.round($)}${D.oblroi_conversations} $${Math.round(se.totalSavings)} ${D.oblroi_over_years}`,ga=`${D.oblroi_chart_intro} $${Math.round(se.serviceRepCostYear1)} ${D.oblroi_chart_human_cost}, $${Math.round(se.costYear1)} ${D.oblroi_chart_agentforce_cost} $${Math.round(se.netSavingsYear1)} ${D.oblroi_chart_net_savings} ${D.oblroi_chart_year_1} $${Math.round(se.serviceRepCostYear2)} ${D.oblroi_chart_human_cost}, $${Math.round(se.costYear2)} ${D.oblroi_chart_agentforce_cost} $${Math.round(se.netSavingsYear2)} ${D.oblroi_chart_net_savings} ${D.oblroi_chart_in} ${D.oblroi_chart_year_2} . $${Math.round(se.serviceRepCostYear3)} ${D.oblroi_chart_human_cost}, $${Math.round(se.costYear3)} ${D.oblroi_chart_agentforce_cost} $${Math.round(se.netSavingsYear3)} ${D.oblroi_chart_net_savings} ${D.oblroi_chart_in} ${D.oblroi_chart_year_3} .`,Oe={service:{serviceEmployees:"service-service-employees",costPerEmployee:"service-cost-per-employee",conversationsPerDay:"service-conversations-per-day",serviceAgentCases:"service-automation-percent"},coach:{numberOfSalesManagers:"coach-manager-count",timeSpentOnCoaching:"coach-time-spent",yearThreeProductivityTarget:"coach-productivity-target",averageSalesManagerSalary:"coach-manager-salary",coachingConversationsPerWeek:"coach-weekly-conversations"},sdr:{numberOfSalesReps:"sdr-rep-count",timeSpentOnLeadProspecting:"sdr-prospecting-time",averageSalesRepSalary:"sdr-rep-salary",leadsPerRepPerWeek:"sdr-weekly-leads",unengagedLeadsPerYear:"sdr-unengaged-leads",leadConversionRate:"sdr-conversion-rate",averageDealSize:"sdr-deal-size",opportunityCloseRate:"sdr-close-rate",grossMargin:"sdr-margin",yearThreeTargetPercentage:"sdr-year3-target"}};return n?v.jsx(EF,{salesCoachResults:At,sdrResults:ut,serviceResults:se,enabledCalculators:fe,grandTotal:Mr,currency:s,locale:h}):v.jsxs(v.Fragment,{children:[(e||new URLSearchParams(window.location.search).get("debug")==="true")&&v.jsx(wF,{currentRegion:r,locale:h,currentCurrency:s,agentforcePrice:a,copySource:u,totalSavings:se.totalSavings,validRegionPaths:FP,onRegionChange:ma,grandTotal:Mr}),v.jsxs(DF,{children:[v.jsx($F,{eyebrow:D.oblroi_headerEyebrow,header:D.oblroi_header,headerBottom:D.oblroi_headerBottom}),ys?v.jsx("section",{className:"z-20 mx-auto mb-8 flex w-full max-w-[1280px] flex-col gap-8 p-0 sm:w-1/2 md:max-w-[540px] md:flex-col lg:max-w-[768px] xl:max-w-[1280px] 2xl:max-w-[1440px]",children:v.jsxs("div",{className:"relative flex w-full flex-col gap-3 self-start overflow-hidden rounded-2xl bg-white p-6 pt-12 shadow-lg sm:px-10 xl:flex-1",children:[v.jsx("div",{className:"absolute inset-0 top-0 h-2 w-full",style:{background:"linear-gradient(90deg, #02BEC7 -12.85%, #1E1D80 26.7%, #7B00E1 95.81%, #DC32EC 129.59%)"}}),Gt===1?v.jsx(fm,{enabledCalc:fe.serviceAgent,calcName:"serviceAgent",handleAnswer:wt,currentStep:Gt,stepCopy:D.oblroi_wizard_step,selectAgentsCopy:D.oblroi_wizard_select_agents,completeSurveyCopy:D.oblroi_wizard_complete_survey,agentTypeCoach:D.oblroi_agent_type_service,questionCopy:D.oblroi_wizard_question_3,questionYesCopy:D.oblroi_wizard_question_yes,questionNoCopy:D.oblroi_wizard_question_no}):null,Gt===2?v.jsx(fm,{enabledCalc:fe.salesCoach,calcName:"salesCoach",handleAnswer:wt,currentStep:Gt,stepCopy:D.oblroi_wizard_step,selectAgentsCopy:D.oblroi_wizard_select_agents,completeSurveyCopy:D.oblroi_wizard_complete_survey,agentTypeCoach:D.oblroi_agent_type_coach,questionCopy:D.oblroi_wizard_question_1,questionYesCopy:D.oblroi_wizard_question_yes,questionNoCopy:D.oblroi_wizard_question_no}):null,Gt===3?v.jsx(fm,{enabledCalc:fe.sdrAgent,calcName:"sdrAgent",handleAnswer:wt,currentStep:Gt,stepCopy:D.oblroi_wizard_step,selectAgentsCopy:D.oblroi_wizard_select_agents,completeSurveyCopy:D.oblroi_wizard_complete_survey,agentTypeCoach:D.oblroi_agent_type_sdr,questionCopy:D.oblroi_wizard_question_2,questionYesCopy:D.oblroi_wizard_question_yes,questionNoCopy:D.oblroi_wizard_question_no}):null,v.jsx(kF,{setCurrentStep:vs,setEnabledWizard:pa,currentStep:Gt,nextCopy:D.oblroi_wizard_next,backCopy:D.oblroi_wizard_back,resultsCopy:D.oblroi_wizard_view_results,skipCopy:D.oblroi_wizard_skip})]})}):null,t&&ys===!1&&v.jsxs(v.Fragment,{children:[fe.salesCoach||fe.sdrAgent||fe.serviceAgent?v.jsx(TF,{value:Mr,currency:s,locale:h,totalCopy:D.oblroi_sticky_total_copy,withAgentforceCopy:D.oblroi_sticky_withAgentforce_copy,inactiveCopy:D.oblroi_sticky_inactive_copy,salesCoachResults:At.threeYearNetBenefit,sdrResults:ut.threeYearNetBenefit,serviceResults:se.totalSavings,salesCoachCopy:D.oblroi_agent_type_coach,sdrCopy:D.oblroi_agent_type_sdr,serviceCopy:D.oblroi_agent_type_service,enabledCalcs:fe}):null,v.jsxs(AF,{children:[v.jsxs("div",{className:"inline-flex w-full flex-col items-center justify-start",children:[fe.salesCoach||fe.sdrAgent||fe.serviceAgent?v.jsxs(v.Fragment,{children:[v.jsx("h2",{className:"mb-4 max-w-lg text-center font-display text-2xl leading-9 text-sfnavy sm:text-2xl sm:leading-10",children:D.oblroi_resultsHeadline}),v.jsx("div",{className:"mb-4 text-center text-display-2 font-semibold sm:text-display-1",children:v.jsx("div",{style:{background:"linear-gradient(90deg, #02BEC7 -12.85%, #1E1D80 26.7%, #7B00E1 95.81%, #DC32EC 129.59%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",WebkitTextStrokeWidth:"1",WebkitTextStrokeColor:"#8E55E4",fontFeatureSettings:'"liga" off, "clig" off',accentColor:"#8E55E4"},children:v.jsx(CF,{value:Mr,currency:s,locale:h})})}),v.jsx("p",{className:"mb-1 font-sans text-base font-normal leading-normal tracking-tight text-sky-950",children:D.oblroi_sticky_active_copy}),v.jsxs("div",{className:"mb-4 flex w-full flex-col justify-center gap-3 md:flex-row",children:[v.jsx("div",{className:"inline-flex items-start justify-center gap-2",children:v.jsxs("div",{className:"inline-flex flex-row items-center justify-start gap-1 md:flex-col",children:[v.jsx("h6",{className:`rounded-full px-3 py-1 text-center font-sans text-sm font-bold leading-tight ${fe.serviceAgent?"bg-[#F0F3FC]":"bg-[#F0F3FC]/50 text-sky-950/50"}`,children:D.oblroi_agent_type_service_short}),v.jsx("p",{className:"font-sans text-base leading-normal tracking-tight text-sky-950",children:fe.serviceAgent?v.jsx(de,{value:se.totalSavings,currency:s,locale:h}):D.oblroi_sticky_inactive_copy})]})}),v.jsx("div",{className:"text-md visible inline-flex items-center justify-center font-display max-sm:hidden",children:"+"}),v.jsx("div",{className:"inline-flex items-start justify-center gap-2",children:v.jsxs("div",{className:"inline-flex flex-row items-center justify-start gap-1 md:flex-col",children:[v.jsx("h6",{className:`rounded-full px-3 py-1 text-center font-sans text-sm font-bold leading-tight ${fe.salesCoach?"bg-[#F0F3FC]":"bg-[#F0F3FC]/50 text-sky-950/50"}`,children:D.oblroi_agent_type_coach_short}),v.jsx("p",{className:"font-sans text-base leading-normal tracking-tight text-sky-950",children:fe.salesCoach?v.jsx(de,{value:At.threeYearNetBenefit,currency:s,locale:h}):D.oblroi_sticky_inactive_copy})]})}),v.jsx("div",{className:"text-md visible inline-flex items-center justify-center font-display max-sm:hidden",children:"+"}),v.jsx("div",{className:"inline-flex items-start justify-center gap-2",children:v.jsxs("div",{className:"inline-flex flex-row items-center justify-start gap-1 md:flex-col",children:[v.jsx("h6",{className:`rounded-full px-3 py-1 text-center font-sans text-sm font-bold leading-tight ${fe.sdrAgent?"bg-[#F0F3FC]":"bg-[#F0F3FC]/50 text-sky-950/50"}`,children:D.oblroi_agent_type_sdr_short}),v.jsx("p",{className:"font-sans text-base leading-normal tracking-tight text-sky-950",children:fe.sdrAgent?v.jsx(de,{value:ut.threeYearNetBenefit,currency:s,locale:h}):D.oblroi_sticky_inactive_copy})]})})]}),v.jsx("div",{className:"mb-5 font-sans text-xl font-bold leading-[30px] tracking-tight text-neutral-900",children:D.oblroi_resultsDescription}),v.jsxs("div",{className:"mb-8 flex w-full flex-col gap-4 md:w-1/2 md:flex-row",children:[h==="en-US"&&r?v.jsx(ca,{variant:"primary",url:`${window.location.origin}${d?`/${d}`:""}/form/agentforce/roi-calculator-download/?pb=1`,target:"_blank",children:"Download report"}):v.jsx(ca,{url:`${window.location.origin}${d?`/${d}`:""}/form/agentforce/contact-us/?d=pb`,target:"_blank",variant:"primary",children:D.oblroi_cta1Label}),v.jsx(ca,{variant:"secondary",url:`${window.location.origin}${d?`/${d}`:""}/agentforce`,children:D.oblroi_cta2Label})]})]}):v.jsxs("div",{className:"mb-5 text-center",children:[v.jsx("h3",{className:"pb-2 font-display text-xl font-semibold text-sky-950",children:D.oblroi_no_calculators_headline}),v.jsx("p",{className:"pt-2 font-sans text-base text-neutral-700",children:D.oblroi_no_calculators_description}),v.jsxs("div",{className:"flex w-full flex-col items-center justify-center gap-10 pt-6 font-display text-sky-950 md:flex-row",children:[v.jsx("div",{className:"w-full p-4 sm:min-w-[200px] sm:max-w-[250px]",children:D.oblroi_service_marketing_headline}),v.jsx("div",{className:"w-full p-4 sm:min-w-[200px] sm:max-w-[250px]",children:D.oblroi_sdr_marketing_headline}),v.jsx("div",{className:"w-full p-4 sm:min-w-[200px] sm:max-w-[250px]",children:D.oblroi_coach_marketing_headline})]}),v.jsx("div",{className:"my-6 flex",children:v.jsxs("div",{className:"mx-auto flex w-full flex-col gap-4 md:flex-row",children:[v.jsx("div",{className:"w-full",children:v.jsx(ca,{url:`${window.location.origin}${d?`/${d}`:""}/form/agentforce/contact-us/?d=pb`,target:"_blank",variant:"primary",children:D.oblroi_cta1Label})}),v.jsx("div",{className:"w-full",children:v.jsx(ca,{variant:"secondary",url:`${window.location.origin}${d?`/${d}`:""}/agentforce`,children:D.oblroi_cta2Label})})]})})]}),v.jsx("p",{className:"mb-8 font-sans text-sm font-normal leading-normal tracking-tight text-neutral-700",children:D.oblroi_calculator_toggle_info}),v.jsx("div",{role:"region",id:"agentforce-savings-info",className:"sr-only","aria-live":"polite","aria-atomic":"true",children:ct})]}),v.jsxs(Dt,{children:[v.jsxs(Dt.Item,{defaultOpen:fe.serviceAgent,onToggle:O=>wt("serviceAgent",O),children:[v.jsx(Dt.Header,{children:v.jsxs("div",{className:"flex items-center gap-4 pt-1",children:[v.jsxs("h5",{className:"font-display text-xl font-semibold leading-normal text-sky-950 hover:text-sky-900",children:[D.oblroi_agent_type_service," "]}),v.jsx("p",{className:"hidden font-sans text-base font-normal leading-normal tracking-tight text-neutral-900 md:block",children:D.oblroi_service_description})]})}),v.jsxs(Dt.Panel,{children:[v.jsx(mm,{children:v.jsxs("div",{className:"flex w-full flex-col gap-6",children:[v.jsxs("p",{className:"font-sans text-sm font-normal leading-tight text-neutral-700",children:["(",D.oblroi_form_required,")"]}),v.jsx(sn,{label:D.oblroi_service_employees_label,info:D.oblroi_service_employees_info,value:p,inputName:Oe.service.serviceEmployees,minValue:1,maxValue:1e5,formatOptions:{maximumFractionDigits:0},onChange:O=>isNaN(O)?g(1):g(Number(O)),validationBehavior:"native",errorMessage:D.oblroi_error_service_employees,isRequired:!0}),v.jsx(sn,{label:D.oblroi_service_cost_per_employee_label,info:D.oblroi_service_cost_per_employee_info,value:b,inputName:Oe.service.costPerEmployee,minValue:1,maxValue:1e6,formatOptions:{style:"currency",currency:s||"USD",maximumFractionDigits:0},onChange:O=>isNaN(O)?w(0):w(Number(O)),validationBehavior:"native",errorMessage:D.oblroi_error_cost_per_employee,isRequired:!0}),v.jsx(sn,{label:D.oblroi_service_conversations_per_day_label,info:D.oblroi_service_conversations_per_day_info,value:S,inputName:Oe.service.conversationsPerDay,formatOptions:{maximumFractionDigits:0},onChange:O=>isNaN(O)?k(1):k(Number(O)),validationBehavior:"native",errorMessage:D.oblroi_error_conversations_handled,minValue:1,isRequired:!0}),v.jsx(xr,{label:D.oblroi_service_automation_percent_label,info:D.oblroi_service_automation_percent_info,value:$,inputName:Oe.service.serviceAgentCases,onChange:M,maxValue:100,minValue:1,suffix:"%",step:1})]})}),v.jsxs("div",{className:"flex w-full flex-col gap-6",children:[v.jsxs(K,{children:[v.jsx(K.Head,{children:v.jsxs(K.Row,{children:[v.jsx(K.HeaderCell,{children:" "}),v.jsx(K.HeaderCell,{children:D.oblroi_chart_year_1}),v.jsx(K.HeaderCell,{children:D.oblroi_chart_year_2}),v.jsx(K.HeaderCell,{children:D.oblroi_chart_year_3}),v.jsx(K.HeaderCell,{children:D.oblroi_chart_total})]})}),v.jsxs(K.Body,{children:[v.jsxs(K.Row,{children:[v.jsx(K.HeaderCell,{children:D.oblroi_resultsTable_human_cost}),mi.slice(1).map(O=>v.jsx(K.Cell,{children:v.jsx(de,{value:O.serviceRepCost,currency:s,locale:h})},O.year))]}),v.jsxs(K.Row,{children:[v.jsxs(K.HeaderCell,{children:[D.oblroi_resultsTable_agentforce_investment,"*"]}),mi.slice(1).map(O=>v.jsx(K.Cell,{children:v.jsx(de,{value:O.cost,currency:s,locale:h})},O.year))]}),v.jsxs(K.Row,{children:[v.jsx(K.HeaderCell,{children:D.oblroi_resultsTable_your_savings}),mi.slice(1).map(O=>v.jsx(K.Cell,{children:v.jsx(de,{value:O.savings,currency:s,locale:h})},O.year))]})]})]}),e&&v.jsx("div",{className:"flex min-h-[400px] w-full flex-row",children:v.jsx(NR,{data:mi,ariaLabel:ga,currency:s,locale:h})}),v.jsx(hm,{headline:D.oblroi_service_marketing_headline,item1:D.oblroi_service_marketing_item1,item2:D.oblroi_service_marketing_item2,item3:D.oblroi_service_marketing_item3}),v.jsx(Xu,{text1:D.oblroi_service_legalDisclaimer_1,text2:D.oblroi_service_legalDisclaimer_2})]})]})]}),v.jsxs(Dt.Item,{defaultOpen:fe.salesCoach,onToggle:O=>wt("salesCoach",O),children:[v.jsx(Dt.Header,{children:v.jsxs("div",{className:"flex items-center gap-4 pt-1",children:[v.jsxs("h5",{className:"text-left font-display text-xl font-semibold leading-normal text-sky-950 hover:text-sky-900",children:[D.oblroi_agent_type_coach," "]}),v.jsx("p",{className:"hidden text-left font-sans text-base font-normal leading-normal tracking-tight text-neutral-900 md:block",children:D.oblroi_coach_description})]})}),v.jsxs(Dt.Panel,{children:[v.jsx(mm,{children:v.jsxs("div",{className:"flex w-full flex-col gap-6",children:[v.jsxs("p",{className:"font-sans text-sm font-normal leading-tight text-neutral-700",children:["(",D.oblroi_form_required,")"]}),v.jsx(sn,{label:D.oblroi_coach_manager_count_label,info:D.oblroi_coach_manager_count_info,value:P,inputName:Oe.coach.numberOfSalesManagers,onChange:O=>E(Number(O)),minValue:1,maxValue:1e3,formatOptions:{maximumFractionDigits:0},isRequired:!0}),v.jsx(xr,{label:D.oblroi_coach_time_spent_label,info:D.oblroi_coach_time_spent_info,value:F*100,onChange:O=>C(O/100),maxValue:100,minValue:1,suffix:"%",step:1,inputName:Oe.coach.timeSpentOnCoaching}),v.jsx(xr,{label:D.oblroi_coach_productivity_target_label,info:D.oblroi_coach_productivity_target_info,value:z,onChange:N,maxValue:100,minValue:1,suffix:"%",step:1,inputName:Oe.coach.yearThreeProductivityTarget}),v.jsx(sn,{label:D.oblroi_coach_manager_salary_label,info:D.oblroi_coach_manager_salary_info,value:I,minValue:1,onChange:O=>A(Number(O)),formatOptions:{style:"currency",currency:s,maximumFractionDigits:0},isRequired:!0,inputName:Oe.coach.averageSalesManagerSalary}),v.jsx(sn,{label:D.oblroi_coach_weekly_conversations_label,info:D.oblroi_coach_weekly_conversations_info,value:L,onChange:O=>R(Number(O)),minValue:1,maxValue:100,formatOptions:{maximumFractionDigits:0},isRequired:!0,inputName:Oe.coach.coachingConversationsPerWeek})]})}),v.jsxs("div",{className:"flex w-full flex-col gap-6",children:[v.jsxs(K,{children:[v.jsx(K.Head,{children:v.jsxs(K.Row,{children:[v.jsx(K.HeaderCell,{children:" "}),v.jsx(K.HeaderCell,{children:D.oblroi_chart_year_1}),v.jsx(K.HeaderCell,{children:D.oblroi_chart_year_2}),v.jsx(K.HeaderCell,{children:D.oblroi_chart_year_3}),v.jsx(K.HeaderCell,{children:D.oblroi_chart_total})]})}),v.jsxs(K.Body,{children:[v.jsxs(K.Row,{children:[v.jsx(K.HeaderCell,{children:D.oblroi_results_table_productivity}),At.tableData.map(O=>v.jsx(K.Cell,{children:v.jsx(de,{value:O.productivityBenefits,currency:s,locale:h})},O.year)),v.jsx(K.Cell,{children:v.jsx(de,{value:At.threeYearTotalBenefits,currency:s,locale:h})})]}),v.jsxs(K.Row,{children:[v.jsx(K.HeaderCell,{children:D.oblroi_resultsTable_agentforce_investment}),At.tableData.map(O=>v.jsx(K.Cell,{children:v.jsx(de,{value:O.totalAgentforceInvestment,currency:s,locale:h})},O.year)),v.jsx(K.Cell,{children:v.jsx(de,{value:At.threeYearTotalInvestment,currency:s,locale:h})})]}),v.jsxs(K.Row,{children:[v.jsx(K.HeaderCell,{children:D.oblroi_results_table_net_benefit}),At.tableData.map(O=>v.jsx(K.Cell,{children:v.jsx(de,{value:O.netBenefit,currency:s,locale:h})},O.year)),v.jsx(K.Cell,{children:v.jsx(de,{value:At.threeYearNetBenefit,currency:s,locale:h})})]})]})]}),v.jsx(hm,{headline:D.oblroi_coach_marketing_headline,item1:D.oblroi_coach_marketing_item1,item2:D.oblroi_coach_marketing_item2,item3:D.oblroi_coach_marketing_item3}),v.jsx(Xu,{text1:D.oblroi_coach_legalDisclaimer_1,text2:D.oblroi_coach_legalDisclaimer_2,text3:D.oblroi_coach_legalDisclaimer_3})]})]})]}),v.jsxs(Dt.Item,{defaultOpen:fe.sdrAgent,onToggle:O=>wt("sdrAgent",O),children:[v.jsx(Dt.Header,{children:v.jsxs("div",{className:"flex items-center gap-4 pt-1",children:[v.jsx("h5",{className:"font-display text-xl font-semibold text-sky-950 hover:text-sky-900",children:D.oblroi_agent_type_sdr}),v.jsx("p",{className:"hidden font-sans text-base font-normal leading-normal tracking-tight text-neutral-900 md:block",children:D.oblroi_sdr_description})]})}),v.jsxs(Dt.Panel,{children:[v.jsx(mm,{children:v.jsxs("div",{className:"flex w-full flex-col gap-6",children:[v.jsxs("p",{className:"font-sans text-sm font-normal leading-tight text-neutral-700",children:["(",D.oblroi_form_required,")"]}),v.jsx(sn,{label:D.oblroi_sdr_rep_count_label,info:D.oblroi_sdr_rep_count_info,value:V,inputName:Oe.sdr.numberOfSalesReps,onChange:O=>U(Number(O)),minValue:1,maxValue:1e4,formatOptions:{maximumFractionDigits:0},isRequired:!0}),v.jsx(xr,{label:D.oblroi_sdr_prospecting_time_label,info:D.oblroi_sdr_prospecting_time_info,value:j*100,onChange:O=>H(O/100),maxValue:100,minValue:1,suffix:"%",step:1,inputName:Oe.sdr.timeSpentOnLeadProspecting}),v.jsx(sn,{label:D.oblroi_sdr_rep_salary_label,info:D.oblroi_sdr_rep_salary_info,value:q,minValue:1,onChange:O=>J(Number(O)),formatOptions:{style:"currency",currency:s,maximumFractionDigits:0},isRequired:!0,inputName:Oe.sdr.averageSalesRepSalary}),v.jsx(sn,{label:D.oblroi_sdr_weekly_leads_label,info:D.oblroi_sdr_weekly_leads_info,value:ie,onChange:O=>ve(Number(O)),minValue:1,maxValue:1e3,formatOptions:{maximumFractionDigits:0},isRequired:!0,inputName:Oe.sdr.leadsPerRepPerWeek}),v.jsx(sn,{label:D.oblroi_sdr_unengaged_leads_label,info:D.oblroi_sdr_unengaged_leads_info,value:lt,onChange:O=>fi(Number(O)),minValue:0,formatOptions:{maximumFractionDigits:0},isRequired:!0,inputName:Oe.sdr.unengagedLeadsPerYear}),v.jsx(xr,{label:D.oblroi_sdr_year3_target_label,info:D.oblroi_sdr_year3_target_info,value:pi*100,onChange:O=>ec(O/100),maxValue:100,minValue:1,suffix:"%",step:1,inputName:Oe.sdr.yearThreeTargetPercentage}),v.jsx(xr,{label:D.oblroi_sdr_conversion_rate_label,info:D.oblroi_sdr_conversion_rate_info,value:Wn*100,onChange:O=>ms(O/100),maxValue:100,minValue:1,suffix:"%",step:1,inputName:Oe.sdr.leadConversionRate}),v.jsx(sn,{label:D.oblroi_sdr_deal_size_label,info:D.oblroi_sdr_deal_size_info,value:hi,minValue:1,onChange:O=>da(Number(O)),formatOptions:{style:"currency",currency:s,maximumFractionDigits:0},isRequired:!0,inputName:Oe.sdr.averageDealSize}),v.jsx(xr,{label:D.oblroi_sdr_close_rate_label,info:D.oblroi_sdr_close_rate_info,value:bn*100,onChange:O=>Ju(O/100),maxValue:100,minValue:1,suffix:"%",step:1,inputName:Oe.sdr.opportunityCloseRate}),v.jsx(xr,{label:D.oblroi_sdr_margin_label,info:D.oblroi_sdr_margin_info,value:gs*100,onChange:O=>fa(O/100),maxValue:100,minValue:1,suffix:"%",step:1,inputName:Oe.sdr.grossMargin})]})}),v.jsxs("div",{className:"flex w-full flex-col gap-6",children:[v.jsxs(K,{children:[v.jsx(K.Head,{children:v.jsxs(K.Row,{children:[v.jsx(K.HeaderCell,{children:" "}),v.jsx(K.HeaderCell,{children:D.oblroi_chart_year_1}),v.jsx(K.HeaderCell,{children:D.oblroi_chart_year_2}),v.jsx(K.HeaderCell,{children:D.oblroi_chart_year_3}),v.jsx(K.HeaderCell,{children:D.oblroi_chart_total})]})}),v.jsxs(K.Body,{children:[v.jsxs(K.Row,{children:[v.jsx(K.HeaderCell,{children:D.oblroi_results_table_productivity}),ut.tableData.map(O=>v.jsx(K.Cell,{children:v.jsx(de,{value:O.productivityBenefits,currency:s,locale:h})},O.year)),v.jsx(K.Cell,{children:v.jsx(de,{value:ut.threeYearProductivityBenefits,currency:s,locale:h})})]}),v.jsxs(K.Row,{children:[v.jsx(K.HeaderCell,{children:D.oblroi_results_table_qualified_leads}),ut.tableData.map(O=>v.jsx(K.Cell,{children:v.jsx(de,{value:O.benefitsFromQualifiedLeads,currency:s,locale:h})},O.year)),v.jsx(K.Cell,{children:v.jsx(de,{value:ut.threeYearBenefitsFromQualifiedLeads,currency:s,locale:h})})]}),v.jsxs(K.Row,{children:[v.jsx(K.HeaderCell,{children:D.oblroi_resultsTable_agentforce_investment}),ut.tableData.map(O=>v.jsx(K.Cell,{children:v.jsx(de,{value:O.totalAgentforceCosts,currency:s,locale:h})},O.year)),v.jsx(K.Cell,{children:v.jsx(de,{value:ut.threeYearTotalCosts,currency:s,locale:h})})]}),v.jsxs(K.Row,{children:[v.jsx(K.HeaderCell,{children:D.oblroi_results_table_net_benefit}),ut.tableData.map(O=>v.jsx(K.Cell,{children:v.jsx(de,{value:O.netBenefit,currency:s,locale:h})},O.year)),v.jsx(K.Cell,{children:v.jsx(de,{value:ut.threeYearNetBenefit,currency:s,locale:h})})]})]})]}),v.jsx(hm,{headline:D.oblroi_sdr_marketing_headline,item1:D.oblroi_sdr_marketing_item1,item2:D.oblroi_sdr_marketing_item2,item3:D.oblroi_sdr_marketing_item3}),v.jsx(Xu,{text1:D.oblroi_sdr_legalDisclaimer_1,text2:D.oblroi_sdr_legalDisclaimer_2,text3:D.oblroi_sdr_legalDisclaimer_3})]})]})]})]}),v.jsx(Xu,{text1:D.oblroi_all_legalDisclaimer,text2:D.oblroi_all_legalDisclaimer_2})]})]})]})]})}const mm=({children:e})=>v.jsx("div",{className:"input-panel w-full gap-2 self-start rounded border border-neutral-200 bg-white p-4 shadow lg:w-1/4",children:e});document.querySelectorAll("[id^='wps-agentforce-roi']").forEach(e=>{const t=e.dataset||{};lc.createRoot(e).render(v.jsx(Z.StrictMode,{children:v.jsx(BF,T({},t))}))})});