vendor: 4,234 bytes, lines 1-17
1var vV=Object.defineProperty;var xV=(e,t,n)=>t in e?vV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var wV=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var se=(e,t,n)=>xV(e,typeof t!="symbol"?t+"":t,n);var Ike=wV((br,vr)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();function i3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vb={exports:{}},nd={};/** 2 * @license React 3 * react-jsx-runtime.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var KT;function SV(){if(KT)return nd;KT=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,i){var o=null;if(i!==void 0&&(o=""+i),a.key!==void 0&&(o=""+a.key),"key"in a){i={};for(var c in a)c!=="key"&&(i[c]=a[c])}else i=a;return a=i.ref,{$$typeof:e,type:r,key:o,ref:a!==void 0?a:null,props:i}}return nd.Fragment=t,nd.jsx=n,nd.jsxs=n,nd}var QT;function AV(){return QT||(QT=1,vb.exports=SV()),vb.exports}var w=AV(),xb={exports:{}},je={};/** 10 * @license React 11 * react.production.js 12 * 13 * Copyright (c) Meta Platforms, Inc. and affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var ZT;function MV(){if(ZT)return je;ZT=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),g=Symbol.iterator;function y(z){return z===null||typeof z!="object"?null:(z=g&&z[g]||z["@@iterator"],typeof z=="function"?z:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,A={};function M(z,Z,re){this.props=z,this.context=Z,this.refs=A,this.updater=re||x}M.prototype.isReactComponent={},M.prototype.setState=function(z,Z){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,Z,"setState")},M.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function C(){}C.prototype=M.prototype;function R(z,Z,re){this.props=z,this.context=Z,this.refs=A,this.updater=re||x}var L=R.prototype=new C;L.constructor=R,S(L,M.prototype),L.isPureReactComponent=!0;var N=Array.isArray;function O(){}var $={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function j(z,Z,re){var ue=re.ref;return{$$typeof:e,type:z,key:Z,ref:ue!==void 0?ue:null,props:re}}function _(z,Z){return j(z.type,Z,z.props)}function P(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function U(z){var Z={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(re){return Z[re]})}var W=/\/+/g;function q(z,Z){return typeof z=="object"&&z!==null&&z.key!=null?U(""+z.key):Z.toString(36)}function ne(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(O,O):(z.status="pending",z.then(function(Z){z.status==="pending"&&(z.status="fulfilled",z.value=Z)},function(Z){z.status==="pending"&&(z.status="rejected",z.reason=Z)}
vendor: 18,673 bytes, lines 17-43
17)),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function B(z,Z,re,ue,me){var ve=typeof z;(ve==="undefined"||ve==="boolean")&&(z=null);var Ce=!1;if(z===null)Ce=!0;else switch(ve){case"bigint":case"string":case"number":Ce=!0;break;case"object":switch(z.$$typeof){case e:case t:Ce=!0;break;case m:return Ce=z._init,B(Ce(z._payload),Z,re,ue,me)}}if(Ce)return me=me(z),Ce=ue===""?"."+q(z,0):ue,N(me)?(re="",Ce!=null&&(re=Ce.replace(W,"$&/")+"/"),B(me,Z,re,"",function(ke){return ke})):me!=null&&(P(me)&&(me=_(me,re+(me.key==null||z&&z.key===me.key?"":(""+me.key).replace(W,"$&/")+"/")+Ce)),Z.push(me)),1;Ce=0;var Oe=ue===""?".":ue+":";if(N(z))for(var fe=0;fe<z.length;fe++)ue=z[fe],ve=Oe+q(ue,fe),Ce+=B(ue,Z,re,ve,me);else if(fe=y(z),typeof fe=="function")for(z=fe.call(z),fe=0;!(ue=z.next()).done;)ue=ue.value,ve=Oe+q(ue,fe++),Ce+=B(ue,Z,re,ve,me);else if(ve==="object"){if(typeof z.then=="function")return B(ne(z),Z,re,ue,me);throw Z=String(z),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return Ce}function G(z,Z,re){if(z==null)return z;var ue=[],me=0;return B(z,ue,"","",function(ve){return Z.call(re,ve,me++)}),ue}function F(z){if(z._status===-1){var Z=z._result;Z=Z(),Z.then(function(re){(z._status===0||z._status===-1)&&(z._status=1,z._result=re)},function(re){(z._status===0||z._status===-1)&&(z._status=2,z._result=re)}),z._status===-1&&(z._status=0,z._result=Z)}if(z._status===1)return z._result.default;throw z._result}var ee=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},he={map:G,forEach:function(z,Z,re){G(z,function(){Z.apply(this,arguments)},re)},count:function(z){var Z=0;return G(z,function(){Z++}),Z},toArray:function(z){return G(z,function(Z){return Z})||[]},only:function(z){if(!P(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return je.Activity=p,je.Children=he,je.Component=M,je.Fragment=n,je.Profiler=a,je.PureComponent=R,je.StrictMode=r,je.Suspense=u,je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,je.__COMPILER_RUNTIME={__proto__:null,c:function(z){return $.H.useMemoCache(z)}},je.cache=function(z){return function(){return z.apply(null,arguments)}},je.cacheSignal=function(){return null},je.cloneElement=function(z,Z,re){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var ue=S({},z.props),me=z.key;if(Z!=null)for(ve in Z.key!==void 0&&(me=""+Z.key),Z)!T.call(Z,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&Z.ref===void 0||(ue[ve]=Z[ve]);var ve=arguments.length-2;if(ve===1)ue.children=re;else if(1<ve){for(var Ce=Array(ve),Oe=0;Oe<ve;Oe++)Ce[Oe]=arguments[Oe+2];ue.children=Ce}return j(z.type,me,ue)},je.createContext=function(z){return z={$$typeof:o,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:i,_context:z},z},je.createElement=function(z,Z,re){var ue,me={},ve=null;if(Z!=null)for(ue in Z.key!==void 0&&(ve=""+Z.key),Z)T.call(Z,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(me[ue]=Z[ue]);var Ce=arguments.length-2;if(Ce===1)me.children=re;else if(1<Ce){for(var Oe=Array(Ce),fe=0;fe<Ce;fe++)Oe[fe]=arguments[fe+2];me.children=Oe}if(z&&z.defaultProps)for(ue in Ce=z.defaultProps,Ce)me[ue]===void 0&&(me[ue]=Ce[ue]);return j(z,ve,me)},je.createRef=function(){return{current:null}},je.forwardRef=function(z){return{$$typeof:c,render:z}},je.isValidElement=P,je.lazy=function(z){return{$$typeof:m,_payload:{_status:-1,_result:z},_init:F}},je.memo=function(z,Z){return{$$typeof:f,type:z,compare:Z===void 0?null:Z}},je.startTransition=function(z){var Z=$.T,re={};$.T=re;try{var ue=z(),me=$.S;me!==null&&me(re,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(O,ee)}catch(ve){ee(ve)}finally{Z!==null&&re.types!==null&&(Z.types=re.types),$.T=Z}},je.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},je.use=function(z){return $.H.use(z)},je.useActionState=function(z,Z,re){return $.H.useActionState(z,Z,re)},je.useCallback=function(z,Z){return $.H.useCallback(z,Z)},je.useContext=function(z){return $.H.useContext(z)},je.useDebugValue=function(){},je.useDeferredValue=function(z,Z){return $.H.useDeferredValue(z,Z)},je.useEffect=function(z,Z){return $.H.useEffect(z,Z)},je.useEffectEvent=function(z){return $.H.useEffectEvent(z)},je.useId=function(){return $.H.useId()},je.useImperativeHandle=function(z,Z,re){return $.H.useImperativeHandle(z,Z,re)},je.useInsertionEffect=function(z,Z){return $.H.useInsertionEffect(z,Z)},je.useLayoutEffect=function(z,Z){return $.H.useLayoutEffect(z,Z)},je.useMemo=function(z,Z){return $.H.useMemo(z,Z)},je.useOptimistic=function(z,Z){return $.H.useOptimistic(z,Z)},je.useReducer=function(z,Z,re){return $.H.useReducer(z,Z,re)},je.useRef=function(z){return $.H.useRef(z)},je.useState=function(z){return $.H.useState(z)},je.useSyncExternalStore=function(z,Z,re){return $.H.useSyncExternalStore(z,Z,re)},je.useTransition=function(){return $.H.useTransition()},je.version="19.2.8",je}var JT;function N1(){return JT||(JT=1,xb.exports=MV()),xb.exports}var E=N1();const bd=i3(E);var wb={exports:{}},rd={},Sb={exports:{}},Ab={};/** 18 * @license React 19 * scheduler.production.js 20 * 21 * Copyright (c) Meta Platforms, Inc. and affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var ek;function TV(){return ek||(ek=1,(function(e){function t(B,G){var F=B.length;B.push(G);e:for(;0<F;){var ee=F-1>>>1,he=B[ee];if(0<a(he,G))B[ee]=G,B[F]=he,F=ee;else break e}}function n(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var G=B[0],F=B.pop();if(F!==G){B[0]=F;e:for(var ee=0,he=B.length,z=he>>>1;ee<z;){var Z=2*(ee+1)-1,re=B[Z],ue=Z+1,me=B[ue];if(0>a(re,F))ue<he&&0>a(me,re)?(B[ee]=me,B[ue]=F,ee=ue):(B[ee]=re,B[Z]=F,ee=Z);else if(ue<he&&0>a(me,F))B[ee]=me,B[ue]=F,ee=ue;else break e}}return G}function a(B,G){var F=B.sortIndex-G.sortIndex;return F!==0?F:B.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,c=o.now();e.unstable_now=function(){return o.now()-c}}var u=[],f=[],m=1,p=null,g=3,y=!1,x=!1,S=!1,A=!1,M=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function L(B){for(var G=n(f);G!==null;){if(G.callback===null)r(f);else if(G.startTime<=B)r(f),G.sortIndex=G.expirationTime,t(u,G);else break;G=n(f)}}function N(B){if(S=!1,L(B),!x)if(n(u)!==null)x=!0,O||(O=!0,U());else{var G=n(f);G!==null&&ne(N,G.startTime-B)}}var O=!1,$=-1,T=5,j=-1;function _(){return A?!0:!(e.unstable_now()-j<T)}function P(){if(A=!1,O){var B=e.unstable_now();j=B;var G=!0;try{e:{x=!1,S&&(S=!1,C($),$=-1),y=!0;var F=g;try{t:{for(L(B),p=n(u);p!==null&&!(p.expirationTime>B&&_());){var ee=p.callback;if(typeof ee=="function"){p.callback=null,g=p.priorityLevel;var he=ee(p.expirationTime<=B);if(B=e.unstable_now(),typeof he=="function"){p.callback=he,L(B),G=!0;break t}p===n(u)&&r(u),L(B)}else r(u);p=n(u)}if(p!==null)G=!0;else{var z=n(f);z!==null&&ne(N,z.startTime-B),G=!1}}break e}finally{p=null,g=F,y=!1}G=void 0}}finally{G?U():O=!1}}}var U;if(typeof R=="function")U=function(){R(P)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,q=W.port2;W.port1.onmessage=P,U=function(){q.postMessage(null)}}else U=function(){M(P,0)};function ne(B,G){$=M(function(){B(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.callback=null},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(B){switch(g){case 1:case 2:case 3:var G=3;break;default:G=g}var F=g;g=G;try{return B()}finally{g=F}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(B,G){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var F=g;g=B;try{return G()}finally{g=F}},e.unstable_scheduleCallback=function(B,G,F){var ee=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?ee+F:ee):F=ee,B){case 1:var he=-1;break;case 2:he=250;break;case 5:he=1073741823;break;case 4:he=1e4;break;default:he=5e3}return he=F+he,B={id:m++,callback:G,priorityLevel:B,startTime:F,expirationTime:he,sortIndex:-1},F>ee?(B.sortIndex=F,t(f,B),n(u)===null&&B===n(f)&&(S?(C($),$=-1):S=!0,ne(N,F-ee))):(B.sortIndex=he,t(u,B),x||y||(x=!0,O||(O=!0,U()))),B},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(B){var G=g;return function(){var F=g;g=G;try{return B.apply(this,arguments)}finally{g=F}}}})(Ab)),Ab}var tk;function kV(){return tk||(tk=1,Sb.exports=TV()),Sb.exports}var Mb={exports:{}},Tn={};/** 26 * @license React 27 * react-dom.production.js 28 * 29 * Copyright (c) Meta Platforms, Inc. and affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var nk;function EV(){if(nk)return Tn;nk=1;var e=N1();function t(u){var f="https://react.dev/errors/"+u;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+u+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(u,f,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:p==null?null:""+p,children:u,containerInfo:f,implementation:m}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(u,f){if(u==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return Tn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Tn.createPortal=function(u,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return i(u,f,null,m)},Tn.flushSync=function(u){var f=o.T,m=r.p;try{if(o.T=null,r.p=2,u)return u()}finally{o.T=f,r.p=m,r.d.f()}},Tn.preconnect=function(u,f){typeof u=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(u,f))},Tn.prefetchDNS=function(u){typeof u=="string"&&r.d.D(u)},Tn.preinit=function(u,f){if(typeof u=="string"&&f&&typeof f.as=="string"){var m=f.as,p=c(m,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,y=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?r.d.S(u,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:y}):m==="script"&&r.d.X(u,{crossOrigin:p,integrity:g,fetchPriority:y,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Tn.preinitModule=function(u,f){if(typeof u=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var m=c(f.as,f.crossOrigin);r.d.M(u,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(u)},Tn.preload=function(u,f){if(typeof u=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var m=f.as,p=c(m,f.crossOrigin);r.d.L(u,m,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},Tn.preloadModule=function(u,f){if(typeof u=="string")if(f){var m=c(f.as,f.crossOrigin);r.d.m(u,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(u)},Tn.requestFormReset=function(u){r.d.r(u)},Tn.unstable_batchedUpdates=function(u,f){return u(f)},Tn.useFormState=function(u,f,m){return o.H.useFormState(u,f,m)},Tn.useFormStatus=function(){return o.H.useHostTransitionStatus()},Tn.version="19.2.8",Tn}var rk;function s3(){if(rk)return Mb.exports;rk=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Mb.exports=EV(),Mb.exports}/** 34 * @license React 35 * react-dom-client.production.js 36 * 37 * Copyright (c) Meta Platforms, Inc. and affiliates. 38 * 39 * This source code is licensed under the MIT license found in the 40 * LICENSE file in the root directory of this source tree. 41 */var ak;function CV(){if(ak)return rd;ak=1;var e=kV(),t=N1(),n=s3();function r(s){var l="https://react.dev/errors/"+s;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)l+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+s+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function i(s){var l=s,d=s;if(s.alternate)for(;l.return;)l=l.return;else{s=l;do l=s,(l.flags&4098)!==0&&(d=l.return),s=l.return;while(s)}return l.tag===3?d:null}function o(s){if(s.tag===13){var l=s.memoizedState;if(l===null&&(s=s.alternate,s!==null&&(l=s.memoizedState)),l!==null)return l.dehydrated}return null}function c(s){if(s.tag===31){var l=s.memoizedState;if(l===null&&(s=s.alternate,s!==null&&(l=s.memoizedState)),l!==null)return l.dehydrated}return null}function u(s){if(i(s)!==s)throw Error(r(188))}function f(s){var l=s.alternate;if(!l){if(l=i(s),l===null)throw Error(r(188));return l!==s?null:s}for(var d=s,h=l;;){var b=d.return;if(b===null)break;var v=b.alternate;if(v===null){if(h=b.return,h!==null){d=h;continue}break}if(b.child===v.child){for(v=b.child;v;){if(v===d)return u(b),s;if(v===h)return u(b),l;v=v.sibling}throw Error(r(188))}if(d.return!==h.return)d=b,h=v;else{for(var k=!1,D=b.child;D;){if(D===d){k=!0,d=b,h=v;break}if(D===h){k=!0,h=b,d=v;break}D=D.sibling}if(!k){for(D=v.child;D;){if(D===d){k=!0,d=v,h=b;break}if(D===h){k=!0,h=v,d=b;break}D=D.sibling}if(!k)throw Error(r(189))}}if(d.alternate!==h)throw Error(r(190))}if(d.tag!==3)throw Error(r(188));return d.stateNode.current===d?s:l}function m(s){var l=s.tag;if(l===5||l===26||l===27||l===6)return s;for(s=s.child;s!==null;){if(l=m(s),l!==null)return l;s=s.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),R=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),_=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function U(s){return s===null||typeof s!="object"?null:(s=P&&s[P]||s["@@iterator"],typeof s=="function"?s:null)}var W=Symbol.for("react.client.reference");function q(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===W?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case S:return"Fragment";case M:return"Profiler";case A:return"StrictMode";case N:return"Suspense";case O:return"SuspenseList";case j:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case x:return"Portal";case R:return s.displayName||"Context";case C:return(s._context.displayName||"Context")+".Consumer";case L:var l=s.render;return s=s.displayName,s||(s=l.displayName||l.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case $:return l=s.displayName||null,l!==null?l:q(s.type)||"Memo";case T:l=s._payload,s=s._init;try{return q(s(l))}catch{}}return null}var ne=Array.isArray,B=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},ee=[],he=-1;function z(s){return{current:s}}function Z(s){0>he||(s.current=ee[he],ee[he]=null,he--)}function re(s,l){he++,ee[he]=s.current,s.current=l}var ue=z(null),me=z(null),ve=z(null),Ce=z(null);function Oe(s,l){switch(re(ve,l),re(me,s),re(ue,null),l.nodeType){case 9:case 11:s=(s=l.documentElement)&&(s=s.namespaceURI)?vT(s):0;break;default:if(s=l.tagName,l=l.namespaceURI)l=vT(l),s=xT(l,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}Z(ue),re(ue,s)}function fe(){Z(ue),Z(me),Z(ve)}function ke(s){s.memoizedState!==null&&re(Ce,s);var l=ue.current,d=xT(l,s.type);l!==d&&(re(me,s),re(ue,d))}function Re(s){me.current===s&&(Z(ue),Z(me)),Ce.current===s&&(Z(Ce),Zu._currentValue=F)}var ce,Tt;function Ne(s){if(ce===void 0)try{throw Error()}catch(d){var l=d.stack.trim().match(/\n( *(at )?)/);ce=l&&l[1]||"",Tt=-1<d.stack.indexOf(` 42 at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return` 43`+ce+s+Tt}var bt=!1;function rt(s,l){if(!s||bt)return"";bt=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(l){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(J){var Q=J}Reflect.construct(s,[],ie)}else{try{ie.call()}catch(J){Q=J}s.call(ie.prototype)}}else{try{throw Error()}catch(J){Q=J}(ie=s())&&typeof ie.catch=="function"&&ie.catch(function(){})}}
vendor: 6,475 bytes, lines 43-48
43catch(J){if(J&&Q&&typeof J.stack=="string")return[J.stack,Q.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=h.DetermineComponentFrameRoot(),k=v[0],D=v[1];if(k&&D){var V=k.split(` 44`),K=D.split(` 45`);for(b=h=0;h<V.length&&!V[h].includes("DetermineComponentFrameRoot");)h++;for(;b<K.length&&!K[b].includes("DetermineComponentFrameRoot");)b++;if(h===V.length||b===K.length)for(h=V.length-1,b=K.length-1;1<=h&&0<=b&&V[h]!==K[b];)b--;for(;1<=h&&0<=b;h--,b--)if(V[h]!==K[b]){if(h!==1||b!==1)do if(h--,b--,0>b||V[h]!==K[b]){var te=` 46`+V[h].replace(" at new "," at ");return s.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",s.displayName)),te}while(1<=h&&0<=b);break}}}finally{bt=!1,Error.prepareStackTrace=d}return(d=s?s.displayName||s.name:"")?Ne(d):""}function jt(s,l){switch(s.tag){case 26:case 27:case 5:return Ne(s.type);case 16:return Ne("Lazy");case 13:return s.child!==l&&l!==null?Ne("Suspense Fallback"):Ne("Suspense");case 19:return Ne("SuspenseList");case 0:case 15:return rt(s.type,!1);case 11:return rt(s.type.render,!1);case 1:return rt(s.type,!0);case 31:return Ne("Activity");default:return""}}function Kt(s){try{var l="",d=null;do l+=jt(s,d),d=s,s=s.return;while(s);return l}catch(h){return` 47Error generating stack: `+h.message+` 48`+h.stack}}var js=Object.prototype.hasOwnProperty,Oi=e.unstable_scheduleCallback,Os=e.unstable_cancelCallback,on=e.unstable_shouldYield,ly=e.unstable_requestPaint,Mn=e.unstable_now,cy=e.unstable_getCurrentPriorityLevel,Kf=e.unstable_ImmediatePriority,Qf=e.unstable_UserBlockingPriority,da=e.unstable_NormalPriority,du=e.unstable_LowPriority,Zf=e.unstable_IdlePriority,cl=e.log,fu=e.unstable_setDisableYieldValue,_s=null,Nn=null;function Cr(s){if(typeof cl=="function"&&fu(s),Nn&&typeof Nn.setStrictMode=="function")try{Nn.setStrictMode(_s,s)}catch{}}var jn=Math.clz32?Math.clz32:dl,uy=Math.log,ul=Math.LN2;function dl(s){return s>>>=0,s===0?32:31-(uy(s)/ul|0)|0}var Is=256,Ur=262144,fa=4194304;function Gr(s){var l=s&42;if(l!==0)return l;switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return s&261888;case 262144:case 524288:case 1048576:case 2097152:return s&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function fl(s,l,d){var h=s.pendingLanes;if(h===0)return 0;var b=0,v=s.suspendedLanes,k=s.pingedLanes;s=s.warmLanes;var D=h&134217727;return D!==0?(h=D&~v,h!==0?b=Gr(h):(k&=D,k!==0?b=Gr(k):d||(d=D&~s,d!==0&&(b=Gr(d))))):(D=h&~v,D!==0?b=Gr(D):k!==0?b=Gr(k):d||(d=h&~s,d!==0&&(b=Gr(d)))),b===0?0:l!==0&&l!==b&&(l&v)===0&&(v=b&-b,d=l&-l,v>=d||v===32&&(d&4194048)!==0)?l:b}function Bs(s,l){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&l)===0}function hu(s,l){switch(s){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mu(){var s=fa;return fa<<=1,(fa&62914560)===0&&(fa=4194304),s}function zs(s){for(var l=[],d=0;31>d;d++)l.push(s);return l}function Vs(s,l){s.pendingLanes|=l,l!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function dy(s,l,d,h,b,v){var k=s.pendingLanes;s.pendingLanes=d,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=d,s.entangledLanes&=d,s.errorRecoveryDisabledLanes&=d,s.shellSuspendCounter=0;var D=s.entanglements,V=s.expirationTimes,K=s.hiddenUpdates;for(d=k&~d;0<d;){var te=31-jn(d),ie=1<<te;D[te]=0,V[te]=-1;var Q=K[te];if(Q!==null)for(K[te]=null,te=0;te<Q.length;te++){var J=Q[te];J!==null&&(J.lane&=-536870913)}d&=~ie}h!==0&&Jf(s,h,0),v!==0&&b===0&&s.tag!==0&&(s.suspendedLanes|=v&~(k&~l))}function Jf(s,l,d){s.pendingLanes|=l,s.suspendedLanes&=~l;var h=31-jn(l);s.entangledLanes|=l,s.entanglements[h]=s.entanglements[h]|1073741824|d&261930}function eh(s,l){var d=s.entangledLanes|=l;for(s=s.entanglements;d;){var h=31-jn(d),b=1<<h;b&l|s[h]&l&&(s[h]|=l),d&=~b}}function th(s,l){var d=l&-l;return d=(d&42)!==0?1:le(d),(d&(s.suspendedLanes|l))!==0?0:d}function le(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:s=128;break;case 268435456:s=134217728;break;default:s=0}return s}function ye(s){return s&=-s,2<s?8<s?(s&134217727)!==0?32:268435456:8:2}function Ge(){var s=G.p;return s!==0?s:(s=window.event,s===void 0?32:HT(s.type))}function He(s,l){var d=G.p;try{return G.p=s,l()}finally{G.p=d}}var ze=Math.random().toString(36).slice(2),Le="__reactFiber$"+ze,vt="__reactProps$"+ze,sr="__reactContainer$"+ze,Qa="__reactEvents$"+ze,Za="__reactListeners$"+ze,Yr="__reactHandles$"+ze,Ja="__reactResources$"+ze,Ps="__reactMarker$"+ze;function hl(s){delete s[Le],delete s[vt],delete s[Qa],delete s[Za],delete s[Yr]}function ei(s){var l=s[Le];if(l)return l;for(var d=s.parentNode;d;){if(l=d[sr]||d[Le]){if(d=l.alternate,l.child!==null||d!==null&&d.child!==null)for(s=ET(s);s!==null;){if(d=s[Le])return d;s=ET(s)}return l}s=d,d=s.parentNode}return null}function pn(s){if(s=s[Le]||s[sr]){var l=s.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return s}return null}function Gn(s){var l=s.tag;if(l===5||l===26||l===27||l===6)return s.stateNode;throw Error(r(33))}function Wr(s){var l=s[Ja];return l||(l=s[Ja]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Vt(s){s[Ps]=!0}var xt=new Set,Ze={};function Pt(s,l){gn(s,l),gn(s+"Capture",l)}function gn(s,l){for(Ze[s]=l,s=0;s<l.length;s++)xt.add(l[s])}var $s=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
vendor: 6,765 bytes, line 48
48037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ti={},_i={};function ml(s){return js.call(_i,s)?!0:js.call(ti,s)?!1:$s.test(s)?_i[s]=!0:(ti[s]=!0,!1)}function yn(s,l,d){if(ml(l))if(d===null)s.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":s.removeAttribute(l);return;case"boolean":var h=l.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){s.removeAttribute(l);return}}s.setAttribute(l,""+d)}}function Ct(s,l,d){if(d===null)s.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(l);return}s.setAttribute(l,""+d)}}function $t(s,l,d,h){if(h===null)s.removeAttribute(d);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(d);return}s.setAttributeNS(l,d,""+h)}}function On(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function dA(s){var l=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function fB(s,l,d){var h=Object.getOwnPropertyDescriptor(s.constructor.prototype,l);if(!s.hasOwnProperty(l)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var b=h.get,v=h.set;return Object.defineProperty(s,l,{configurable:!0,get:function(){return b.call(this)},set:function(k){d=""+k,v.call(this,k)}}),Object.defineProperty(s,l,{enumerable:h.enumerable}),{getValue:function(){return d},setValue:function(k){d=""+k},stopTracking:function(){s._valueTracker=null,delete s[l]}}}}function fy(s){if(!s._valueTracker){var l=dA(s)?"checked":"value";s._valueTracker=fB(s,l,""+s[l])}}function fA(s){if(!s)return!1;var l=s._valueTracker;if(!l)return!0;var d=l.getValue(),h="";return s&&(h=dA(s)?s.checked?"true":"false":s.value),s=h,s!==d?(l.setValue(s),!0):!1}function nh(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var hB=/[\n"\\]/g;function Rr(s){return s.replace(hB,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function hy(s,l,d,h,b,v,k,D){s.name="",k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?s.type=k:s.removeAttribute("type"),l!=null?k==="number"?(l===0&&s.value===""||s.value!=l)&&(s.value=""+On(l)):s.value!==""+On(l)&&(s.value=""+On(l)):k!=="submit"&&k!=="reset"||s.removeAttribute("value"),l!=null?my(s,k,On(l)):d!=null?my(s,k,On(d)):h!=null&&s.removeAttribute("value"),b==null&&v!=null&&(s.defaultChecked=!!v),b!=null&&(s.checked=b&&typeof b!="function"&&typeof b!="symbol"),D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?s.name=""+On(D):s.removeAttribute("name")}function hA(s,l,d,h,b,v,k,D){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(s.type=v),l!=null||d!=null){if(!(v!=="submit"&&v!=="reset"||l!=null)){fy(s);return}d=d!=null?""+On(d):"",l=l!=null?""+On(l):d,D||l===s.value||(s.value=l),s.defaultValue=l}h=h??b,h=typeof h!="function"&&typeof h!="symbol"&&!!h,s.checked=D?s.checked:!!h,s.defaultChecked=!!h,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(s.name=k),fy(s)}function my(s,l,d){l==="number"&&nh(s.ownerDocument)===s||s.defaultValue===""+d||(s.defaultValue=""+d)}function pl(s,l,d,h){if(s=s.options,l){l={};for(var b=0;b<d.length;b++)l["$"+d[b]]=!0;for(d=0;d<s.length;d++)b=l.hasOwnProperty("$"+s[d].value),s[d].selected!==b&&(s[d].selected=b),b&&h&&(s[d].defaultSelected=!0)}else{for(d=""+On(d),l=null,b=0;b<s.length;b++){if(s[b].value===d){s[b].selected=!0,h&&(s[b].defaultSelected=!0);return}l!==null||s[b].disabled||(l=s[b])}l!==null&&(l.selected=!0)}}function mA(s,l,d){if(l!=null&&(l=""+On(l),l!==s.value&&(s.value=l),d==null)){s.defaultValue!==l&&(s.defaultValue=l);return}s.defaultValue=d!=null?""+On(d):""}function pA(s,l,d,h){if(l==null){if(h!=null){if(d!=null)throw Error(r(92));if(ne(h)){if(1<h.length)throw Error(r(93));h=h[0]}d=h}d==null&&(d=""),l=d}d=On(l),s.defaultValue=d,h=s.textContent,h===d&&h!==""&&h!==null&&(s.value=h),fy(s)}function gl(s,l){if(l){var d=s.firstChild;if(d&&d===s.lastChild&&d.nodeType===3){d.nodeValue=l;return}}s.textContent=l}var mB=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function gA(s,l,d){var h=l.indexOf("--")===0;d==null||typeof d=="boolean"||d===""?h?s.setProperty(l,""):l==="float"?s.cssFloat="":s[l]="":h?s.setProperty(l,d):typeof d!="number"||d===0||mB.has(l)?l==="float"?s.cssFloat=d:s[l]=(""+d).trim():s[l]=d+"px"}function yA(s,l,d){if(l!=null&&typeof l!="object")throw Error(r(62));if(s=s.style,d!=null){for(var h in d)!d.hasOwnProperty(h)||l!=null&&l.hasOwnProperty(h)||(h.indexOf("--")===0?s.setProperty(h,""):h==="float"?s.cssFloat="":s[h]="");for(var b in l)h=l[b],l.hasOwnProperty(b)&&d[b]!==h&&gA(s,b,h)}else for(var v in l)l.hasOwnProperty(v)&&gA(s,v,l[v])}function py(s){if(s.indexOf("-")===-1)return!1;switch(s){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 pB=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
48dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),gB=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function rh(s){return gB.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}function ni(){}var gy=null;function yy(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var yl=null,bl=null;function bA(s){var l=pn(s);if(l&&(s=l.stateNode)){var d=s[vt]||null;e:switch(s=l.stateNode,l.type){case"input":if(hy(s,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name),l=d.name,d.type==="radio"&&l!=null){for(d=s;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll('input[name="'+Rr(""+l)+'"][type="radio"]'),l=0;l<d.length;l++){var h=d[l];if(h!==s&&h.form===s.form){var b=h[vt]||null;if(!b)throw Error(r(90));hy(h,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(l=0;l<d.length;l++)h=d[l],h.form===s.form&&fA(h)}break e;case"textarea":mA(s,d.value,d.defaultValue);break e;case"select":l=d.value,l!=null&&pl(s,!!d.multiple,l,!1)}}}var by=!1;function vA(s,l,d){if(by)return s(l,d);by=!0;try{var h=s(l);return h}finally{if(by=!1,(yl!==null||bl!==null)&&(Uh(),yl&&(l=yl,s=bl,bl=yl=null,bA(l),s)))for(l=0;l<s.length;l++)bA(s[l])}}function pu(s,l){var d=s.stateNode;if(d===null)return null;var h=d[vt]||null;if(h===null)return null;d=h[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(s=s.type,h=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!h;break e;default:s=!1}if(s)return null;if(d&&typeof d!="function")throw Error(r(231,l,typeof d));return d}var ri=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vy=!1;if(ri)try{var gu={};Object.defineProperty(gu,"passive",{get:function(){vy=!0}}),window.addEventListener("test",gu,gu),window.removeEventListener("test",gu,gu)}catch{vy=!1}var Ii=null,xy=null,ah=null;function xA(){if(ah)return ah;
vendor: 3,122 bytes, line 48
48var s,l=xy,d=l.length,h,b="value"in Ii?Ii.value:Ii.textContent,v=b.length;for(s=0;s<d&&l[s]===b[s];s++);var k=d-s;for(h=1;h<=k&&l[d-h]===b[v-h];h++);return ah=b.slice(s,1<h?1-h:void 0)}function ih(s){var l=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&l===13&&(s=13)):s=l,s===10&&(s=13),32<=s||s===13?s:0}function sh(){return!0}function wA(){return!1}function Yn(s){function l(d,h,b,v,k){this._reactName=d,this._targetInst=b,this.type=h,this.nativeEvent=v,this.target=k,this.currentTarget=null;for(var D in s)s.hasOwnProperty(D)&&(d=s[D],this[D]=d?d(v):v[D]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?sh:wA,this.isPropagationStopped=wA,this}return p(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=sh)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=sh)},persist:function(){},isPersistent:sh}),l}var Fs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},oh=Yn(Fs),yu=p({},Fs,{view:0,detail:0}),yB=Yn(yu),wy,Sy,bu,lh=p({},yu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:My,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==bu&&(bu&&s.type==="mousemove"?(wy=s.screenX-bu.screenX,Sy=s.screenY-bu.screenY):Sy=wy=0,bu=s),wy)},movementY:function(s){return"movementY"in s?s.movementY:Sy}}),SA=Yn(lh),bB=p({},lh,{dataTransfer:0}),vB=Yn(bB),xB=p({},yu,{relatedTarget:0}),Ay=Yn(xB),wB=p({},Fs,{animationName:0,elapsedTime:0,pseudoElement:0}),SB=Yn(wB),AB=p({},Fs,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),MB=Yn(AB),TB=p({},Fs,{data:0}),AA=Yn(TB),kB={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},EB={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},CB={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function RB(s){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(s):(s=CB[s])?!!l[s]:!1}function My(){return RB}var LB=p({},yu,{key:function(s){if(s.key){var l=kB[s.key]||s.key;if(l!=="Unidentified")return l}return s.type==="keypress"?(s=ih(s),s===13?"Enter":String.fromCharCode(s)):s.type==="
48keydown"||s.type==="keyup"?EB[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:My,charCode:function(s){return s.type==="keypress"?ih(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?ih(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),DB=Yn(LB),NB=p({},lh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),MA=Yn(NB),jB=p({},yu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:My}),OB=Yn(jB),_B=p({},Fs,{propertyName:0,elapsedTime:0,pseudoElement:0}),IB=Yn(_B),BB=p({},lh,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),zB=Yn(BB),VB=p({},Fs,{newState:0,oldState:0}),PB=Yn(VB),$B=[9,13,27,32],Ty=ri&&"CompositionEvent"in window,vu=null;ri&&"documentMode"in document&&(vu=document.documentMode);var FB=ri&&"TextEvent"in window&&!vu,TA=ri&&(!Ty||vu&&8<vu&&11>=vu),kA=" ",EA=!1;function CA(s,l){switch(s){case"keyup":return $B.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function RA(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var vl=!1;function HB(s,l){switch(s){case"compositionend":return RA(l);case"keypress":return l.which!==32?null:(EA=!0,kA);case"textInput":return s=l.data,s===kA&&EA?null:s;default:return null}}function UB(s,l){if(vl)return s==="compositionend"||!Ty&&CA(s,l)?(s=xA(),ah=xy=Ii=null,vl=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return TA&&l.locale!=="ko"?null:l.data;default:return null}}var GB={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function LA(s){var l=s&&s.nodeName&&s.nodeName.toLowerCase();return l==="input"?!!GB[s.type]:l==="textarea"}function DA(s,l,d,h){yl?bl?bl.push(h):bl=[h]:yl=h,l=Qh(l,"onChange"),0<l.length&&(d=new oh("onChange","change",null,d,h),s.push({event:d,listeners:l}))}var xu=null,wu=null;function YB(s){hT(s,0)}function ch(s){var l=Gn(s);if(fA(l))return s}function NA(s,l){if(s==="change")return l}var jA=!1;if(ri){var ky;if(ri){var Ey="oninput"in document;if(!Ey){var OA=document.createElement("div");OA.setAttribute("oninput","return;"),Ey=typeof OA.oninput=="function"}ky=Ey}else ky=!1;jA=ky&&(!document.documentMode||9<document.documentMode)}function _A(){xu&&(xu.detachEvent("onpropertychange",IA),wu=xu=null)}function IA(s){if(s.propertyName==="value"&&ch(wu)){var l=[];DA(l,wu,s,yy(s)),vA(YB,l)}}function WB(s,l,d){s==="focusin"?(_A(),xu=l,wu=d,xu.attachEvent("onpropertychange",IA)):s==="focusout"&&_A()}function qB(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return ch(wu)}function XB(s,l){if(s==="click")return ch(l)}function KB(s,l){if(s==="input"||s==="change")return ch(l)}function QB(s,l){return s===l&&(s!==0||1/s===1/l)||s!==s&&l!==l}var or=typeof Object.is=="function"?Object.is:QB;function Su(s,l){if(or(s,l))return!0;if(typeof s!="object"||s===null||typeof l!="object"||l===null)return!1;var d=Object.keys(s),h=Object.keys(l);if(d.length!==h.length)return!1;for(h=0;h<d.length;h++){var b=d[h];if(!js.call(l,b)||!or(s[b],l[b]))return!1}return!0}function BA(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function zA(s,l){var d=BA(s);s=0;for(var h;d;){if(d.nodeType===3){if(h=s+d.textContent.length,s<=l&&h>=l)return{node:d,offset:l-s};s=h}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=BA(d)}}function VA(s,l){return s&&l?s===l?!0:s&&s.nodeType===3?!1:l&&l.nodeType===3?VA(s,l.parentNode):"contains"in s?s.contains(l):s.compareDocumentPosition?!!(s.compareDocumentPosition(l)&16):!1:!1}function PA(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var l=nh(s.document);l instanceof s.HTMLIFrameElement;){try{var d=typeof l.contentWindow.location.href=="string"}catch{d=!1}if(d)s=l.contentWindow;else break;l=nh(s.document)}return l}function Cy(s){var l=s&&s.nodeName&&s.nodeName.toLowerCase();return l&&(l==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||l==="textarea"||s.contentEditable==="true")}var ZB=ri&&"documentMode"in document&&11>=document.documentMode,xl=null,Ry=null,Au=null,Ly=!1;function $A(s,l,d){var h=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;Ly||xl==null||xl!==nh(h)||(h=xl,"selectionStart"in h&&Cy(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focu
vendor: 22,307 bytes, line 48
48sNode:h.focusNode,focusOffset:h.focusOffset}),Au&&Su(Au,h)||(Au=h,h=Qh(Ry,"onSelect"),0<h.length&&(l=new oh("onSelect","select",null,l,d),s.push({event:l,listeners:h}),l.target=xl)))}function Hs(s,l){var d={};return d[s.toLowerCase()]=l.toLowerCase(),d["Webkit"+s]="webkit"+l,d["Moz"+s]="moz"+l,d}var wl={animationend:Hs("Animation","AnimationEnd"),animationiteration:Hs("Animation","AnimationIteration"),animationstart:Hs("Animation","AnimationStart"),transitionrun:Hs("Transition","TransitionRun"),transitionstart:Hs("Transition","TransitionStart"),transitioncancel:Hs("Transition","TransitionCancel"),transitionend:Hs("Transition","TransitionEnd")},Dy={},FA={};ri&&(FA=document.createElement("div").style,"AnimationEvent"in window||(delete wl.animationend.animation,delete wl.animationiteration.animation,delete wl.animationstart.animation),"TransitionEvent"in window||delete wl.transitionend.transition);function Us(s){if(Dy[s])return Dy[s];if(!wl[s])return s;var l=wl[s],d;for(d in l)if(l.hasOwnProperty(d)&&d in FA)return Dy[s]=l[d];return s}var HA=Us("animationend"),UA=Us("animationiteration"),GA=Us("animationstart"),JB=Us("transitionrun"),ez=Us("transitionstart"),tz=Us("transitioncancel"),YA=Us("transitionend"),WA=new Map,Ny="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ny.push("scrollEnd");function qr(s,l){WA.set(s,l),Pt(l,[s])}var uh=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)},Lr=[],Sl=0,jy=0;function dh(){for(var s=Sl,l=jy=Sl=0;l<s;){var d=Lr[l];Lr[l++]=null;var h=Lr[l];Lr[l++]=null;var b=Lr[l];Lr[l++]=null;var v=Lr[l];if(Lr[l++]=null,h!==null&&b!==null){var k=h.pending;k===null?b.next=b:(b.next=k.next,k.next=b),h.pending=b}v!==0&&qA(d,b,v)}}function fh(s,l,d,h){Lr[Sl++]=s,Lr[Sl++]=l,Lr[Sl++]=d,Lr[Sl++]=h,jy|=h,s.lanes|=h,s=s.alternate,s!==null&&(s.lanes|=h)}function Oy(s,l,d,h){return fh(s,l,d,h),hh(s)}function Gs(s,l){return fh(s,null,null,l),hh(s)}function qA(s,l,d){s.lanes|=d;var h=s.alternate;h!==null&&(h.lanes|=d);for(var b=!1,v=s.return;v!==null;)v.childLanes|=d,h=v.alternate,h!==null&&(h.childLanes|=d),v.tag===22&&(s=v.stateNode,s===null||s._visibility&1||(b=!0)),s=v,v=v.return;return s.tag===3?(v=s.stateNode,b&&l!==null&&(b=31-jn(d),s=v.hiddenUpdates,h=s[b],h===null?s[b]=[l]:h.push(l),l.lane=d|536870912),v):null}function hh(s){if(50<Gu)throw Gu=0,H0=null,Error(r(185));for(var l=s.return;l!==null;)s=l,l=s.return;return s.tag===3?s.stateNode:null}var Al={};function nz(s,l,d,h){this.tag=s,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lr(s,l,d,h){return new nz(s,l,d,h)}function _y(s){return s=s.prototype,!(!s||!s.isReactComponent)}function ai(s,l){var d=s.alternate;return d===null?(d=lr(s.tag,l,s.key,s.mode),d.elementType=s.elementType,d.type=s.type,d.stateNode=s.stateNode,d.alternate=s,s.alternate=d):(d.pendingProps=l,d.type=s.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=s.flags&65011712,d.childLanes=s.childLanes,d.lanes=s.lanes,d.child=s.child,d.memoizedProps=s.memoizedProps,d.memoizedState=s.memoizedState,d.updateQueue=s.updateQueue,l=s.dependencies,d.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},d.sibling=s.sibling,d.index=s.index,d.ref=s.ref,d.refCleanup=s.refCleanup,d}function XA(s,l){s.flags&=65011714;var d=s.alternate;return d===null?(s.childLanes=0,s.lanes=l,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=d.childLanes,s.lanes=d.lanes,s.child=d.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=d.memoizedProps,s.memoizedState=d.memoizedState,s.updateQueue=d.updateQueue,s.type=d.type,l=d.dependencies,s.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),s}function mh(s,l,d,h,b,v){var k=0;if(h=s,typeof s=="function")_y(s)&&(k=1);else if(typeof s=="string")k=oV(s,d,ue.current)?26:s==="html"||s==="head"||s==="body"?27:5;else e:switch(s){case j:return s=lr(31,d,l,b),s.elementType=j,s.lanes=v,s;case S:return Ys(d.children,b,v,l);case A:k=8,b|=24;break;case M:return s=lr(12,d,l,b|2),s.elementType=M,s.lanes=v,s;case N:return s=lr(13,d,l,b),s.elementType=N,s.lanes=v,s;case O:return s=lr(19,d,l,b),s.elementType=O,s.lanes=v,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case R:k=10;break e;case C:k=9;break e;case L:k=11;break e;case $:k=14;break e;case T:k=16,h=null;break e}k=29,d=Error(r(130,s===null?"null":typeof s,"")),h=null}return l=lr(k,d,l,b),l.elementType=s,l.type=h,l.lanes=v,l}function Ys(s,l,d,h){return s=lr(7,s,h,l),s.lanes=d,s}function Iy(s,l,d){return s=lr(6,s,null,l),s.lanes=d,s}function KA(s){var l=lr(18,null,null,0);return l.stateNode=s,l}function By(s,l,d){return l=lr(4,s.children!==null?s.children:[],s.key,l),l.lanes=d,l.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},l}var QA=new WeakMap;function Dr(s,l){if(typeof s=="object"&&s!==null){var d=QA.get(s);return d!==void 0?d:(l={value:s,source:l,stack:Kt(l)},QA.set(s,l),l)}return{value:s,source:l,stack:Kt(l)}}var Ml=[],Tl=0,ph=null,Mu=0,Nr=[],jr=0,Bi=null,ha=1,ma="";function ii(s,l){Ml[Tl++]=Mu,Ml[Tl++]=ph,ph=s,Mu=l}function ZA(s,l,d){Nr[jr++]=ha,Nr[jr++]=ma,Nr[jr++]=Bi,Bi=s;var h=ha;s=ma;var b=32-jn(h)-1;h&=~(1<<b),d+=1;var v=32-jn(l)+b;if(30<v){var k=b-b%5;v=(h&(1<<k)-1).toString(32),h>>=k,b-=k,ha=1<<32-jn(l)+b|d<<b|h,ma=v+s}else ha=1<<v|d<<b|h,ma=s}function zy(s){s.return!==null&&(ii(s,1),ZA(s,1,0))}function Vy(s){for(;s===ph;)ph=Ml[--Tl],Ml[Tl]=null,Mu=Ml[--Tl],Ml[Tl]=null;for(;s===Bi;)Bi=Nr[--jr],Nr[jr]=null,ma=Nr[--jr],Nr[jr]=null,ha=Nr[--jr],Nr[jr]=null}function JA(s,l){Nr[jr++]=ha,Nr[jr++]=ma,Nr[jr++]=Bi,ha=l.id,ma=l.overflow,Bi=s}var bn=null,wt=null,Ue=!1,zi=null,Or=!1,Py=Error(r(519));function Vi(s){var l=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Tu(Dr(l,s)),Py}function e2(s){var l=s.stateNode,d=s.type,h=s.memoizedProps;switch(l[Le]=s,l[vt]=h,d){case"dialog":Pe("cancel",l),Pe("close",l);break;case"iframe":case"object":case"embed":Pe("load",l);break;case"video":case"audio":for(d=0;d<Wu.length;d++)Pe(Wu[d],l);break;case"source":Pe("error",l);break;case"img":case"image":case"link":Pe("error",l),Pe("load",l);break;case"details":Pe("toggle",l);break;case"input":Pe("invalid",l),hA(l,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0);break;case"select":Pe("invalid",l);break;case"textarea":Pe("invalid",l),pA(l,h.value,h.defaultValue,h.children)}d=h.children,typeof d!="string"&&typeof d!="number"&&typeof d!="bigint"||l.textContent===""+d||h.suppressHydrationWarning===!0||yT(l.textContent,d)?(h.popover!=null&&(Pe("beforetoggle",l),Pe("toggle",l)),h.onScroll!=null&&Pe("scroll",l),h.onScrollEnd!=null&&Pe("scrollend",l),h.onClick!=null&&(l.onclick=ni),l=!0):l=!1,l||Vi(s,!0)}function t2(s){for(bn=s.return;bn;)switch(bn.tag){case 5:case 31:case 13:Or=!1;return;case 27:case 3:Or=!0;return;default:bn=bn.return}}function kl(s){if(s!==bn)return!1;if(!Ue)return t2(s),Ue=!0,!1;var l=s.tag,d;if((d=l!==3&&l!==27)&&((d=l===5)&&(d=s.type,d=!(d!=="form"&&d!=="button")||ab(s.type,s.memoizedProps)),d=!d),d&&wt&&Vi(s),t2(s),l===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));wt=kT(s)}else if(l===31){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));wt=kT(s)}else l===27?(l=wt,Ji(s.type)?(s=cb,cb=null,wt=s):wt=l):wt=bn?Ir(s.stateNode.nextSibling):null;return!0}function Ws(){wt=bn=null,Ue=!1}function $y(){var s=zi;return s!==null&&(Kn===null?Kn=s:Kn.push.apply(Kn,s),zi=null),s}function Tu(s){zi===null?zi=[s]:zi.push(s)}var Fy=z(null),qs=null,si=null;function Pi(s,l,d){re(Fy,l._currentValue),l._currentValue=d}function oi(s){s._currentValue=Fy.current,Z(Fy)}function Hy(s,l,d){for(;s!==null;){var h=s.alternate;if((s.childLanes&l)!==l?(s.childLanes|=l,h!==null&&(h.childLanes|=l)):h!==null&&(h.childLanes&l)!==l&&(h.childLanes|=l),s===d)break;s=s.return}}function Uy(s,l,d,h){var b=s.child;for(b!==null&&(b.return=s);b!==null;){var v=b.dependencies;if(v!==null){var k=b.child;v=v.firstContext;e:for(;v!==null;){var D=v;v=b;for(var V=0;V<l.length;V++)if(D.context===l[V]){v.lanes|=d,D=v.alternate,D!==null&&(D.lanes|=d),Hy(v.return,d,s),h||(k=null);break e}v=D.next}}else if(b.tag===18){if(k=b.return,k===null)throw Error(r(341));k.lanes|=d,v=k.alternate,v!==null&&(v.lanes|=d),Hy(k,d,s),k=null}else k=b.child;if(k!==null)k.return=b;else for(k=b;k!==null;){if(k===s){k=null;break}if(b=k.sibling,b!==null){b.return=k.return,k=b;break}k=k.return}b=k}}function El(s,l,d,h){s=null;for(var b=l,v=!1;b!==null;){if(!v){if((b.flags&524288)!==0)v=!0;else if((b.flags&262144)!==0)break}if(b.tag===10){var k=b.alternate;if(k===null)throw Error(r(387));if(k=k.memoizedProps,k!==null){var D=b.type;or(b.pendingProps.value,k.value)||(s!==null?s.push(D):s=[D])}}else if(b===Ce.current){if(k=b.alternate,k===null)throw Error(r(387));k.memoizedState.memoizedState!==b.memoizedState.memoizedState&&(s!==null?s.push(Zu):s=[Zu])}b=b.return}s!==null&&Uy(l,s,d,h),l.flags|=262144}function gh(s){for(s=s.firstContext;s!==null;){if(!or(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function Xs(s){qs=s,si=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function vn(s){return n2(qs,s)}function yh(s,l){return qs===null&&Xs(s),n2(s,l)}function n2(s,l){var d=l._currentValue;if(l={context:l,memoizedValue:d,next:null},si===null){if(s===null)throw Error(r(308));si=l,s.dependencies={lanes:0,firstContext:l},s.flags|=524288}else si=si.next=l;return d}var rz=typeof AbortController<"u"?AbortController:function(){var s=[],l=this.signal={aborted:!1,addEventListener:function(d,h){s.push(h)}};this.abort=function(){l.aborted=!0,s.forEach(function(d){return d()})}},az=e.unstable_scheduleCallback,iz=e.unstable_NormalPriority,Qt={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gy(){return{controller:new rz,data:new Map,refCount:0}}function ku(s){s.refCount--,s.refCount===0&&az(iz,function(){s.controller.abort()})}var Eu=null,Yy=0,Cl=0,Rl=null;function sz(s,l){if(Eu===null){var d=Eu=[];Yy=0,Cl=X0(),Rl={status:"pending",value:void 0,then:function(h){d.push(h)}}}return Yy++,l.then(r2,r2),l}function r2(){if(--Yy===0&&Eu!==null){Rl!==null&&(Rl.status="fulfilled");var s=Eu;Eu=null,Cl=0,Rl=null;for(var l=0;l<s.length;l++)(0,s[l])()}}function oz(s,l){var d=[],h={status:"pending",value:null,reason:null,then:function(b){d.push(b)}};return s.then(function(){h.status="fulfilled",h.value=l;for(var b=0;b<d.length;b++)(0,d[b])(l)},function(b){for(h.status="rejected",h.reason=b,b=0;b<d.length;b++)(0,d[b])(void 0)}),h}var a2=B.S;B.S=function(s,l){$M=Mn(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&sz(s,l),a2!==null&&a2(s,l)};var Ks=z(null);function Wy(){var s=Ks.current;return s!==null?s:ht.pooledCache}function bh(s,l){l===null?re(Ks,Ks.current):re(Ks,l.pool)}function i2(){var s=Wy();return s===null?null:{parent:Qt._currentValue,pool:s}}var Ll=Error(r(460)),qy=Error(r(474)),vh=Error(r(542)),xh={then:function(){}};function s2(s){return s=s.status,s==="fulfilled"||s==="rejected"}function o2(s,l,d){switch(d=s[d],d===void 0?s.push(l):d!==l&&(l.then(ni,ni),l=d),l.status){case"fulfilled":return l.value;case"rejected":throw s=l.reason,c2(s),s;default:if(typeof l.status=="string")l.then(ni,ni);else{if(s=ht,s!==null&&100<s.shellSuspendCounter)throw Error(r(482));s=l,s.status="pending",s.then(function(h){if(l.status==="pending"){var b=l;b.status="fulfilled",b.value=h}},function(h){if(l.status==="pending"){var b=l;b.status="rejected",b.reason=h}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw s=l.reason,c2(s),s}throw Zs=l,Ll}}function Qs(s){try{var l=s._init;return l(s._payload)}catch(d){throw d!==null&&typeof d=="object"&&typeof d.then=="function"?(Zs=d,Ll):d}}var Zs=null;function l2(){if(Zs===null)throw Error(r(459));var s=Zs;return Zs=null,s}function c2(s){if(s===Ll||s===vh)throw Error(r(483))}var Dl=null,Cu=0;function wh(s){var l=Cu;return Cu+=1,Dl===null&&(Dl=[]),o2(Dl,s,l)}function Ru(s,l){l=l.props.ref,s.ref=l!==void 0?l:null}function Sh(s,l){throw l.$$typeof===g?Error(r(525)):(s=Object.prototype.toString.call(l),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":s)))}function u2(s){function l(Y,H){if(s){var X=Y.deletions;X===null?(Y.deletions=[H],Y.flags|=16):X.push(H)}}function d(Y,H){if(!s)return null;for(;H!==null;)l(Y,H),H=H.sibling;return null}function h(Y){for(var H=new Map;Y!==null;)Y.key!==null?H.set(Y.key,Y):H.set(Y.index,Y),Y=Y.sibling;return H}function b(Y,H){return Y=ai(Y,H),Y.index=0,Y.sibling=null,Y}function v(Y,H,X){return Y.index=X,s?(X=Y.alternate,X!==null?(X=X.index,X<H?(Y.flags|=67108866,H):X):(Y.flags|=67108866,H)):(Y.flags|=1048576,H)}function k(Y){return s&&Y.alternate===null&&(Y.flags|=67108866),Y}function D(Y,H,X,ae){return H===null||H.tag!==6?(H=Iy(X,Y.mode,ae),H.return=Y,H):(H=b(H,X),H.return=Y,H)}function V(Y,H,X,ae){var Te=X.type;return Te===S?te(Y,H,X.props.children,ae,X.key):H!==null&&(H.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===T&&Qs(Te)===H.type)?(H=b(H,X.props),Ru(H,X),H.return=Y,H):(H=mh(X.type,X.key,X.props,null,Y.mode,ae),Ru(H,X),H.return=Y,H)}function K(Y,H,X,ae){return H===null||H.tag!==4||H.stateNode.containerInfo!==X.containerInfo||H.stateNode.implementation!==X.implementation?(H=By(X,Y.mode,ae),H.return=Y,H):(H=b(H,X.children||[]),H.return=Y,H)}function te(Y,H,X,ae,Te){return H===null||H.tag!==7?(H=Ys(X,Y.mode,ae,Te),H.return=Y,H):(H=b(H,X),H.return=Y,H)}function ie(Y,H,X){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return H=Iy(""+H,Y.mode,X),H.return=Y,H;if(typeof H=="object"&&H!==null){switch(H.$$typeof){case y:return X=mh(H.type,H.key,H.props,null,Y.mode,X),Ru(X,H),X.return=Y,X;case x:return H=By(H,Y.mode,X),H.return=Y,H;case T:return H=Qs(H),ie(Y,H,X)}if(ne(H)||U(H))return H=Ys(H,Y.mode,X,null),H.return=Y,H;if(typeof H.then=="function")return ie(Y,wh(H),X);if(H.$$typeof===R)return ie(Y,yh(Y,H),X);Sh(Y,H)}return null}function Q(Y,H,X,ae){var Te=H!==null?H.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return Te!==null?null:D(Y,H,""+X,ae);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case y:return X.key===Te?V(Y,H,X,ae):null;case x:return X.key===Te?K(Y,H,X,ae):null;case T:return X=Qs(X),Q(Y,H,X,ae)}if(ne(X)||U(X))return Te!==null?null:te(Y,H,X,ae,null);if(typeof X.then=="function")return Q(Y,H,wh(X),ae);if(X.$$typeof===R)return Q(Y,H,yh(Y,X),ae);Sh(Y,X)}return null}function J(Y,H,X,ae,Te){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return Y=Y.get(X)||null,D(H,Y,""+ae,Te);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case y:return Y=Y.get(ae.key===null?X:ae.key)||null,V(H,Y,ae,Te);case x:return Y=Y.get(ae.key===null?X:ae.key)||null,K(H,Y,ae,Te);case T:return ae=Qs(ae),J(Y,H,X,ae,Te)}if(ne(ae)||U(ae))return Y=Y.get(X)||null,te(H,Y,ae,Te,null);if(typeof ae.then=="function")return J(Y,H,X,wh(ae),Te);if(ae.$$typeof===R)return J(Y,H,X,yh(H,ae),Te);Sh(H,ae)}return null}function xe(Y,H,X,ae){for(var Te=null,qe=null,Me=H,Ie=H=0,Fe=null;Me!==null&&Ie<X.length;Ie++){Me.index>Ie?(Fe=Me,Me=null):Fe=Me.sibling;var Xe=Q(Y,Me,X[Ie],ae);if(Xe===null){Me===null&&(Me=Fe);break}s&&Me&&Xe.alternate===null&&l(Y,Me),H=v(Xe,H,Ie),qe===null?Te=Xe:qe.sibling=Xe,qe=Xe,Me=Fe}if(Ie===X.length)return d(Y,Me),Ue&&ii(Y,Ie),Te;if(Me===null){for(;Ie<X.length;Ie++)Me=ie(Y,X[Ie],ae),Me!==null&&(H=v(Me,H,Ie),qe===null?Te=Me:qe.sibling=Me,qe=Me);return Ue&&ii(Y,Ie),Te}for(Me=h(Me);Ie<X.length;Ie++)Fe=J(Me,Y,Ie,X[Ie],ae),Fe!==null&&(s&&Fe.alternate!==null&&Me.delete(Fe.key===null?Ie:Fe.key),H=v(Fe,H,Ie),qe===null?Te=Fe:qe.sibling=Fe,qe=Fe);return s&&Me.forEach(function(as){return l(Y,as)}),Ue&&ii(Y,Ie),Te}function Ee(Y,H,X,ae){if(X==null)throw Error(r(151));for(var Te=null,qe=null,Me=H,Ie=H=0,Fe=null,Xe=X.next();Me!==null&&!Xe.done;Ie++,Xe=X.next()){Me.index>Ie?(Fe=Me,Me=null):Fe=Me.sibling;var as=Q(Y,Me,Xe.value,ae);if(as===null){Me===null&&(Me=Fe);break}s&&Me&&as.alternate===null&&l(Y,Me),H=v(as,H,Ie),qe===null?Te=as:qe.sibling=as,qe=as,Me=Fe}if(Xe.done)return d(Y,Me),Ue&&ii(Y,Ie),Te;if(Me===null){for(;!Xe.done;Ie++,Xe=X.next())Xe=ie(Y,Xe.value,ae),Xe!==null&&(H=v(Xe,H,Ie),qe===null?Te=Xe:qe.sibling=Xe,qe=Xe);return Ue&&ii(Y,Ie),Te}for(Me=h(Me);!Xe.done;Ie++,Xe=X.next())Xe=J(Me,Y,Ie,Xe.value,ae),Xe!==null&&(s&&Xe.alternate!==null&&Me.delete(Xe.key===null?Ie:Xe.key),H=v(Xe,H,Ie),qe===null?Te=Xe:qe.sibling=Xe,qe=Xe);return s&&Me.forEach(function(bV){return l(Y,bV)}),Ue&&ii(Y,Ie),Te}function ut(Y,H,X,ae){if(typeof X=="object"&&X!==null&&X.type===S&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case y:e:{for(var Te=X.key;H!==null;){if(H.key===Te){if(Te=X.type,Te===S){if(H.tag===7){d(Y,H.sibling),ae=b(H,X.props.children),ae.return=Y,Y=ae;break e}}else if(H.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===T&&Qs(Te)===H.type){d(Y,H.sibling),ae=b(H,X.props),Ru(ae,X),ae.return=Y,Y=ae;break e}d(Y,H);break}else l(Y,H);H=H.sibling}X.type===S?(ae=Ys(X.props.children,Y.mode,ae,X.key),ae.return=Y,Y=ae):(ae=mh(X.type,X.key,X.props,null,Y.mode,ae),Ru(ae,X),ae.return=Y,Y=ae)}return k(Y);case x:e:{for(Te=X.key;H!==null;){if(H.key===Te)if(H.tag===4&&H.stateNode.containerInfo===X.containerInfo&&H.stateNode.implementation===X.implementation){d(Y,H.sibling),ae=b(H,X.children||[]),ae.return=Y,Y=ae;break e}else{d(Y,H);break}else l(Y,H);H=H.sibling}ae=By(X,Y.mode,ae),ae.return=Y,Y=ae}return k(Y);case T:return X=Qs(X),ut(Y,H,X,ae)}if(ne(X))return xe(Y,H,X,ae);if(U(X)){if(Te=U(X),typeof Te!="function")throw Error(r(150));return X=Te.call(X),Ee(Y,H,X,ae)}if(typeof X.then=="function")return ut(Y,H,wh(X),ae);if(X.$$typeof===R)return ut(Y,H,yh(Y,X),ae);Sh(Y,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,H!==null&&H.tag===6?(d(Y,H.sibling),ae=b(H,X),ae.return=Y,Y=ae):(d(Y,H),ae=Iy(X,Y.mode,ae),ae.return=Y,Y=ae),k(Y)):d(Y,H)}return function(Y,H,X,ae){try{Cu=0;var Te=ut(Y,H,X,ae);return Dl=null,Te}catch(Me){if(Me===Ll||Me===vh)throw Me;var qe=lr(29,Me,null,Y.mode);return qe.lanes=ae,qe.return=Y,qe}finally{}}}var Js=u2(!0),d2=u2(!1),$i=!1;function Xy(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ky(s,l){s=s.updateQueue,l.updateQueue===s&&(l.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function Fi(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function Hi(s,l,d){var h=s.updateQueue;if(h===null)return null;if(h=h.shared,(Je&2)!==0){var b=h.pending;return b===null?l.next=l:(l.next=b.next,b.next=l),h.pending=l,l=hh(s),qA(s,null,d),l}return fh(s,h,l,d),hh(s)}function Lu(s,l,d){if(l=l.updateQueue,l!==null&&(l=l.shared,(d&4194048)!==0)){var h=l.lanes;h&=s.pendingLanes,d|=h,l.lanes=d,eh(s,d)}}function Qy(s,l){var d=s.updateQueue,h=s.alternate;if(h!==null&&(h=h.updateQueue,d===h)){var b=null,v=null;if(d=d.firstBaseUpdate,d!==null){do{var k={lane:d.lane,tag:d.tag,payload:d.payload,callback:null,next:null};v===null?b=v=k:v=v.next=k,d=d.next}while(d!==null);v===null?b=v=l:v=v.next=l}else b=v=l;d={baseState:h.baseState,firstBaseUpdate:b,lastBaseUpdate:v,shared:h.shared,callbacks:h.callbacks},s.updateQueue=d;return}s=d.lastBaseUpdate,s===null?d.firstBaseUpdate=l:s.next=l,d.lastBaseUpdate=l}var Zy=!1;function Du(){if(Zy){var s=Rl;if(s!==null)throw s}}function Nu(s,l,d,h){Zy=!1;var b=s.updateQueue;$i=!1;var v=b.firstBaseUpdate,k=b.lastBaseUpdate,D=b.shared.pending;if(D!==null){b.shared.pending=null;var V=D,K=V.next;V.next=null,k===null?v=K:k.next=K,k=V;var te=s.alternate;te!==null&&(te=te.updateQueue,D=te.lastBaseUpdate,D!==k&&(D===null?te.firstBaseUpdate=K:D.next=K,te.lastBaseUpdate=V))}if(v!==null){var ie=b.baseState;k=0,te=K=V=null,D=v;do{var Q=D.lane&-536870913,J=Q!==D.lane;if(J?($e&Q)===Q:(h&Q)===Q){Q!==0&&Q===Cl&&(Zy=!0),te!==null&&(te=te.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});e:{var xe=s,Ee=D;Q=l;var ut=d;switch(Ee.tag){case 1:if(xe=Ee.payload,typeof xe=="function"){ie=xe.call(ut,ie,Q);break e}ie=xe;break e;case 3:xe.flags=xe.flags&-65537|128;case 0:if(xe=Ee.payload,Q=typeof xe=="function"?xe.call(ut,ie,Q):xe,Q==null)break e;ie=p({},ie,Q);break e;case 2:$i=!0}}Q=D.callback,Q!==null&&(s.flags|=64,J&&(s.flags|=8192),J=b.callbacks,J===null?b.callbacks=[Q]:J.push(Q))}else J={lane:Q,tag:D.tag,payload:D.payload,callback:D.callback,next:null},te===null?(K=te=J,V=ie):te=te.next=J,k|=Q;if(D=D.next,D===null){if(D=b.shared.pending,D===null)break;J=D,D=J.next,J.next=null,b.lastBaseUpdate=J,b.shared.pending=null}}while(!0);te===null&&(V=ie),b.baseState=V,b.firstBaseUpdate=K,b.lastBaseUpdate=te,v===null&&(b.shared.lanes=0),qi|=k,s.lanes=k,s.memoizedState=ie}}function f2(s,l){if(typeof s!="function")throw Error(r(191,s));s.call(l)}function h2(s,l){var d=s.callbacks;
vendor: 4,097 bytes, line 48
48if(d!==null)for(s.callbacks=null,s=0;s<d.length;s++)f2(d[s],l)}var Nl=z(null),Ah=z(0);function m2(s,l){s=gi,re(Ah,s),re(Nl,l),gi=s|l.baseLanes}function Jy(){re(Ah,gi),re(Nl,Nl.current)}function e0(){gi=Ah.current,Z(Nl),Z(Ah)}var cr=z(null),_r=null;function Ui(s){var l=s.alternate;re(Ft,Ft.current&1),re(cr,s),_r===null&&(l===null||Nl.current!==null||l.memoizedState!==null)&&(_r=s)}function t0(s){re(Ft,Ft.current),re(cr,s),_r===null&&(_r=s)}function p2(s){s.tag===22?(re(Ft,Ft.current),re(cr,s),_r===null&&(_r=s)):Gi()}function Gi(){re(Ft,Ft.current),re(cr,cr.current)}function ur(s){Z(cr),_r===s&&(_r=null),Z(Ft)}var Ft=z(0);function Mh(s){for(var l=s;l!==null;){if(l.tag===13){var d=l.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||ob(d)||lb(d)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===s)break;for(;l.sibling===null;){if(l.return===null||l.return===s)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var li=0,_e=null,lt=null,Zt=null,Th=!1,jl=!1,eo=!1,kh=0,ju=0,Ol=null,lz=0;function Ot(){throw Error(r(321))}function n0(s,l){if(l===null)return!1;for(var d=0;d<l.length&&d<s.length;d++)if(!or(s[d],l[d]))return!1;return!0}function r0(s,l,d,h,b,v){return li=v,_e=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,B.H=s===null||s.memoizedState===null?Z2:b0,eo=!1,v=d(h,b),eo=!1,jl&&(v=y2(l,d,h,b)),g2(s),v}function g2(s){B.H=Iu;var l=lt!==null&<.next!==null;if(li=0,Zt=lt=_e=null,Th=!1,ju=0,Ol=null,l)throw Error(r(300));s===null||Jt||(s=s.dependencies,s!==null&&gh(s)&&(Jt=!0))}function y2(s,l,d,h){_e=s;var b=0;do{if(jl&&(Ol=null),ju=0,jl=!1,25<=b)throw Error(r(301));if(b+=1,Zt=lt=null,s.updateQueue!=null){var v=s.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}B.H=J2,v=l(d,h)}while(jl);return v}function cz(){var s=B.H,l=s.useState()[0];return l=typeof l.then=="function"?Ou(l):l,s=s.useState()[0],(lt!==null?lt.memoizedState:null)!==s&&(_e.flags|=1024),l}function a0(){var s=kh!==0;return kh=0,s}function i0(s,l,d){l.updateQueue=s.updateQueue,l.flags&=-2053,s.lanes&=~d}function s0(s){if(Th){for(s=s.memoizedState;s!==null;){var l=s.queue;l!==null&&(l.pending=null),s=s.next}Th=!1}li=0,Zt=lt=_e=null,jl=!1,ju=kh=0,Ol=null}function _n(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zt===null?_e.memoizedState=Zt=s:Zt=Zt.next=s,Zt}function Ht(){if(lt===null){var s=_e.alternate;s=s!==null?s.memoizedState:null}else s=lt.next;var l=Zt===null?_e.memoizedState:Zt.next;if(l!==null)Zt=l,lt=s;else{if(s===null)throw _e.alternate===null?Error(r(467)):Error(r(310));lt=s,s={memoizedState:lt.memoizedState,baseState:lt.baseState,baseQueue:lt.baseQueue,queue:lt.queue,next:null},Zt===null?_e.memoizedState=Zt=s:Zt=Zt.next=s}return Zt}function Eh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ou(s){var l=ju;return ju+=1,Ol===null&&(Ol=[]),s=o2(Ol,s,l),l=_e,(Zt===null?l.memoizedState:Zt.next)===null&&(l=l.alternate,B.H=l===null||l.memoizedState===null?Z2:b0),s}function Ch(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return Ou(s);if(s.$$typeof===R)return vn(s)}throw Error(r(438,String(s)))}function o0(s){var l=null,d=_e.updateQueue;if(d!==null&&(l=d.memoCache),l==null){var h=_e.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(l={data:h.data.map(function(b){return b.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),d===null&&(d=Eh(),_e.updateQueue=d),d.memoCache=l,d=l.data[l.index],d===void 0)for(d=l.data[l.index]=Array(s),h=0;h<s;h++)d[h]=_;return l.index++,d}function ci(s,l){return typeof l=="function"?l(s):l}function Rh(s){var l=Ht();return l0(l,lt,s)}function l0(s,l,d){var h=s.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=d;var b=s.baseQueue,v=h.pending;if(v!==null){if(b!==null){var k=b.next;
vendor: 18,019 bytes, line 48
48b.next=v.next,v.next=k}l.baseQueue=b=v,h.pending=null}if(v=s.baseState,b===null)s.memoizedState=v;else{l=b.next;var D=k=null,V=null,K=l,te=!1;do{var ie=K.lane&-536870913;if(ie!==K.lane?($e&ie)===ie:(li&ie)===ie){var Q=K.revertLane;if(Q===0)V!==null&&(V=V.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),ie===Cl&&(te=!0);else if((li&Q)===Q){K=K.next,Q===Cl&&(te=!0);continue}else ie={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},V===null?(D=V=ie,k=v):V=V.next=ie,_e.lanes|=Q,qi|=Q;ie=K.action,eo&&d(v,ie),v=K.hasEagerState?K.eagerState:d(v,ie)}else Q={lane:ie,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},V===null?(D=V=Q,k=v):V=V.next=Q,_e.lanes|=ie,qi|=ie;K=K.next}while(K!==null&&K!==l);if(V===null?k=v:V.next=D,!or(v,s.memoizedState)&&(Jt=!0,te&&(d=Rl,d!==null)))throw d;s.memoizedState=v,s.baseState=k,s.baseQueue=V,h.lastRenderedState=v}return b===null&&(h.lanes=0),[s.memoizedState,h.dispatch]}function c0(s){var l=Ht(),d=l.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=s;var h=d.dispatch,b=d.pending,v=l.memoizedState;if(b!==null){d.pending=null;var k=b=b.next;do v=s(v,k.action),k=k.next;while(k!==b);or(v,l.memoizedState)||(Jt=!0),l.memoizedState=v,l.baseQueue===null&&(l.baseState=v),d.lastRenderedState=v}return[v,h]}function b2(s,l,d){var h=_e,b=Ht(),v=Ue;if(v){if(d===void 0)throw Error(r(407));d=d()}else d=l();var k=!or((lt||b).memoizedState,d);if(k&&(b.memoizedState=d,Jt=!0),b=b.queue,f0(w2.bind(null,h,b,s),[s]),b.getSnapshot!==l||k||Zt!==null&&Zt.memoizedState.tag&1){if(h.flags|=2048,_l(9,{destroy:void 0},x2.bind(null,h,b,d,l),null),ht===null)throw Error(r(349));v||(li&127)!==0||v2(h,l,d)}return d}function v2(s,l,d){s.flags|=16384,s={getSnapshot:l,value:d},l=_e.updateQueue,l===null?(l=Eh(),_e.updateQueue=l,l.stores=[s]):(d=l.stores,d===null?l.stores=[s]:d.push(s))}function x2(s,l,d,h){l.value=d,l.getSnapshot=h,S2(l)&&A2(s)}function w2(s,l,d){return d(function(){S2(l)&&A2(s)})}function S2(s){var l=s.getSnapshot;s=s.value;try{var d=l();return!or(s,d)}catch{return!0}}function A2(s){var l=Gs(s,2);l!==null&&Qn(l,s,2)}function u0(s){var l=_n();if(typeof s=="function"){var d=s;if(s=d(),eo){Cr(!0);try{d()}finally{Cr(!1)}}}return l.memoizedState=l.baseState=s,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:s},l}function M2(s,l,d,h){return s.baseState=d,l0(s,lt,typeof h=="function"?h:ci)}function uz(s,l,d,h,b){if(Nh(s))throw Error(r(485));if(s=l.action,s!==null){var v={payload:b,action:s,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(k){v.listeners.push(k)}};B.T!==null?d(!0):v.isTransition=!1,h(v),d=l.pending,d===null?(v.next=l.pending=v,T2(l,v)):(v.next=d.next,l.pending=d.next=v)}}function T2(s,l){var d=l.action,h=l.payload,b=s.state;if(l.isTransition){var v=B.T,k={};B.T=k;try{var D=d(b,h),V=B.S;V!==null&&V(k,D),k2(s,l,D)}catch(K){d0(s,l,K)}finally{v!==null&&k.types!==null&&(v.types=k.types),B.T=v}}else try{v=d(b,h),k2(s,l,v)}catch(K){d0(s,l,K)}}function k2(s,l,d){d!==null&&typeof d=="object"&&typeof d.then=="function"?d.then(function(h){E2(s,l,h)},function(h){return d0(s,l,h)}):E2(s,l,d)}function E2(s,l,d){l.status="fulfilled",l.value=d,C2(l),s.state=d,l=s.pending,l!==null&&(d=l.next,d===l?s.pending=null:(d=d.next,l.next=d,T2(s,d)))}function d0(s,l,d){var h=s.pending;if(s.pending=null,h!==null){h=h.next;do l.status="rejected",l.reason=d,C2(l),l=l.next;while(l!==h)}s.action=null}function C2(s){s=s.listeners;for(var l=0;l<s.length;l++)(0,s[l])()}function R2(s,l){return l}function L2(s,l){if(Ue){var d=ht.formState;if(d!==null){e:{var h=_e;if(Ue){if(wt){t:{for(var b=wt,v=Or;b.nodeType!==8;){if(!v){b=null;break t}if(b=Ir(b.nextSibling),b===null){b=null;break t}}v=b.data,b=v==="F!"||v==="F"?b:null}if(b){wt=Ir(b.nextSibling),h=b.data==="F!";break e}}Vi(h)}h=!1}h&&(l=d[0])}}return d=_n(),d.memoizedState=d.baseState=l,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:R2,lastRenderedState:l},d.queue=h,d=X2.bind(null,_e,h),h.dispatch=d,h=u0(!1),v=y0.bind(null,_e,!1,h.queue),h=_n(),b={state:l,dispatch:null,action:s,pending:null},h.queue=b,d=uz.bind(null,_e,b,v,d),b.dispatch=d,h.memoizedState=s,[l,d,!1]}function D2(s){var l=Ht();return N2(l,lt,s)}function N2(s,l,d){if(l=l0(s,l,R2)[0],s=Rh(ci)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var h=Ou(l)}catch(k){throw k===Ll?vh:k}else h=l;l=Ht();var b=l.queue,v=b.dispatch;return d!==l.memoizedState&&(_e.flags|=2048,_l(9,{destroy:void 0},dz.bind(null,b,d),null)),[h,v,s]}function dz(s,l){s.action=l}function j2(s){var l=Ht(),d=lt;if(d!==null)return N2(l,d,s);Ht(),l=l.memoizedState,d=Ht();var h=d.queue.dispatch;return d.memoizedState=s,[l,h,!1]}function _l(s,l,d,h){return s={tag:s,create:d,deps:h,inst:l,next:null},l=_e.updateQueue,l===null&&(l=Eh(),_e.updateQueue=l),d=l.lastEffect,d===null?l.lastEffect=s.next=s:(h=d.next,d.next=s,s.next=h,l.lastEffect=s),s}function O2(){return Ht().memoizedState}function Lh(s,l,d,h){var b=_n();_e.flags|=s,b.memoizedState=_l(1|l,{destroy:void 0},d,h===void 0?null:h)}function Dh(s,l,d,h){var b=Ht();h=h===void 0?null:h;var v=b.memoizedState.inst;lt!==null&&h!==null&&n0(h,lt.memoizedState.deps)?b.memoizedState=_l(l,v,d,h):(_e.flags|=s,b.memoizedState=_l(1|l,v,d,h))}function _2(s,l){Lh(8390656,8,s,l)}function f0(s,l){Dh(2048,8,s,l)}function fz(s){_e.flags|=4;var l=_e.updateQueue;if(l===null)l=Eh(),_e.updateQueue=l,l.events=[s];else{var d=l.events;d===null?l.events=[s]:d.push(s)}}function I2(s){var l=Ht().memoizedState;return fz({ref:l,nextImpl:s}),function(){if((Je&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}function B2(s,l){return Dh(4,2,s,l)}function z2(s,l){return Dh(4,4,s,l)}function V2(s,l){if(typeof l=="function"){s=s();var d=l(s);return function(){typeof d=="function"?d():l(null)}}if(l!=null)return s=s(),l.current=s,function(){l.current=null}}function P2(s,l,d){d=d!=null?d.concat([s]):null,Dh(4,4,V2.bind(null,l,s),d)}function h0(){}function $2(s,l){var d=Ht();l=l===void 0?null:l;var h=d.memoizedState;return l!==null&&n0(l,h[1])?h[0]:(d.memoizedState=[s,l],s)}function F2(s,l){var d=Ht();l=l===void 0?null:l;var h=d.memoizedState;if(l!==null&&n0(l,h[1]))return h[0];if(h=s(),eo){Cr(!0);try{s()}finally{Cr(!1)}}return d.memoizedState=[h,l],h}function m0(s,l,d){return d===void 0||(li&1073741824)!==0&&($e&261930)===0?s.memoizedState=l:(s.memoizedState=d,s=HM(),_e.lanes|=s,qi|=s,d)}function H2(s,l,d,h){return or(d,l)?d:Nl.current!==null?(s=m0(s,d,h),or(s,l)||(Jt=!0),s):(li&42)===0||(li&1073741824)!==0&&($e&261930)===0?(Jt=!0,s.memoizedState=d):(s=HM(),_e.lanes|=s,qi|=s,l)}function U2(s,l,d,h,b){var v=G.p;G.p=v!==0&&8>v?v:8;var k=B.T,D={};B.T=D,y0(s,!1,l,d);try{var V=b(),K=B.S;if(K!==null&&K(D,V),V!==null&&typeof V=="object"&&typeof V.then=="function"){var te=oz(V,h);_u(s,l,te,hr(s))}else _u(s,l,h,hr(s))}catch(ie){_u(s,l,{then:function(){},status:"rejected",reason:ie},hr())}finally{G.p=v,k!==null&&D.types!==null&&(k.types=D.types),B.T=k}}function hz(){}function p0(s,l,d,h){if(s.tag!==5)throw Error(r(476));var b=G2(s).queue;U2(s,b,l,F,d===null?hz:function(){return Y2(s),d(h)})}function G2(s){var l=s.memoizedState;if(l!==null)return l;l={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:F},next:null};var d={};return l.next={memoizedState:d,baseState:d,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:d},next:null},s.memoizedState=l,s=s.alternate,s!==null&&(s.memoizedState=l),l}function Y2(s){var l=G2(s);l.next===null&&(l=s.alternate.memoizedState),_u(s,l.next.queue,{},hr())}function g0(){return vn(Zu)}function W2(){return Ht().memoizedState}function q2(){return Ht().memoizedState}function mz(s){for(var l=s.return;l!==null;){switch(l.tag){case 24:case 3:var d=hr();s=Fi(d);var h=Hi(l,s,d);h!==null&&(Qn(h,l,d),Lu(h,l,d)),l={cache:Gy()},s.payload=l;return}l=l.return}}function pz(s,l,d){var h=hr();d={lane:h,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Nh(s)?K2(l,d):(d=Oy(s,l,d,h),d!==null&&(Qn(d,s,h),Q2(d,l,h)))}function X2(s,l,d){var h=hr();_u(s,l,d,h)}function _u(s,l,d,h){var b={lane:h,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null};if(Nh(s))K2(l,b);else{var v=s.alternate;if(s.lanes===0&&(v===null||v.lanes===0)&&(v=l.lastRenderedReducer,v!==null))try{var k=l.lastRenderedState,D=v(k,d);if(b.hasEagerState=!0,b.eagerState=D,or(D,k))return fh(s,l,b,0),ht===null&&dh(),!1}catch{}finally{}if(d=Oy(s,l,b,h),d!==null)return Qn(d,s,h),Q2(d,l,h),!0}return!1}function y0(s,l,d,h){if(h={lane:2,revertLane:X0(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},Nh(s)){if(l)throw Error(r(479))}else l=Oy(s,d,h,2),l!==null&&Qn(l,s,2)}function Nh(s){var l=s.alternate;return s===_e||l!==null&&l===_e}function K2(s,l){jl=Th=!0;var d=s.pending;d===null?l.next=l:(l.next=d.next,d.next=l),s.pending=l}function Q2(s,l,d){if((d&4194048)!==0){var h=l.lanes;h&=s.pendingLanes,d|=h,l.lanes=d,eh(s,d)}}var Iu={readContext:vn,use:Ch,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useLayoutEffect:Ot,useInsertionEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useSyncExternalStore:Ot,useId:Ot,useHostTransitionStatus:Ot,useFormState:Ot,useActionState:Ot,useOptimistic:Ot,useMemoCache:Ot,useCacheRefresh:Ot};Iu.useEffectEvent=Ot;var Z2={readContext:vn,use:Ch,useCallback:function(s,l){return _n().memoizedState=[s,l===void 0?null:l],s},useContext:vn,useEffect:_2,useImperativeHandle:function(s,l,d){d=d!=null?d.concat([s]):null,Lh(4194308,4,V2.bind(null,l,s),d)},useLayoutEffect:function(s,l){return Lh(4194308,4,s,l)},useInsertionEffect:function(s,l){Lh(4,2,s,l)},useMemo:function(s,l){var d=_n();l=l===void 0?null:l;var h=s();if(eo){Cr(!0);try{s()}finally{Cr(!1)}}return d.memoizedState=[h,l],h},useReducer:function(s,l,d){var h=_n();if(d!==void 0){var b=d(l);if(eo){Cr(!0);try{d(l)}finally{Cr(!1)}}}else b=l;return h.memoizedState=h.baseState=b,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:b},h.queue=s,s=s.dispatch=pz.bind(null,_e,s),[h.memoizedState,s]},useRef:function(s){var l=_n();return s={current:s},l.memoizedState=s},useState:function(s){s=u0(s);var l=s.queue,d=X2.bind(null,_e,l);return l.dispatch=d,[s.memoizedState,d]},useDebugValue:h0,useDeferredValue:function(s,l){var d=_n();return m0(d,s,l)},useTransition:function(){var s=u0(!1);return s=U2.bind(null,_e,s.queue,!0,!1),_n().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,l,d){var h=_e,b=_n();if(Ue){if(d===void 0)throw Error(r(407));d=d()}else{if(d=l(),ht===null)throw Error(r(349));($e&127)!==0||v2(h,l,d)}b.memoizedState=d;var v={value:d,getSnapshot:l};return b.queue=v,_2(w2.bind(null,h,v,s),[s]),h.flags|=2048,_l(9,{destroy:void 0},x2.bind(null,h,v,d,l),null),d},useId:function(){var s=_n(),l=ht.identifierPrefix;if(Ue){var d=ma,h=ha;d=(h&~(1<<32-jn(h)-1)).toString(32)+d,l="_"+l+"R_"+d,d=kh++,0<d&&(l+="H"+d.toString(32)),l+="_"}else d=lz++,l="_"+l+"r_"+d.toString(32)+"_";return s.memoizedState=l},useHostTransitionStatus:g0,useFormState:L2,useActionState:L2,useOptimistic:function(s){var l=_n();l.memoizedState=l.baseState=s;var d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=d,l=y0.bind(null,_e,!0,d),d.dispatch=l,[s,l]},useMemoCache:o0,useCacheRefresh:function(){return _n().memoizedState=mz.bind(null,_e)},useEffectEvent:function(s){var l=_n(),d={impl:s};return l.memoizedState=d,function(){if((Je&2)!==0)throw Error(r(440));return d.impl.apply(void 0,arguments)}}},b0={readContext:vn,use:Ch,useCallback:$2,useContext:vn,useEffect:f0,useImperativeHandle:P2,useInsertionEffect:B2,useLayoutEffect:z2,useMemo:F2,useReducer:Rh,useRef:O2,useState:function(){return Rh(ci)},useDebugValue:h0,useDeferredValue:function(s,l){var d=Ht();return H2(d,lt.memoizedState,s,l)},useTransition:function(){var s=Rh(ci)[0],l=Ht().memoizedState;return[typeof s=="boolean"?s:Ou(s),l]},useSyncExternalStore:b2,useId:W2,useHostTransitionStatus:g0,useFormState:D2,useActionState:D2,useOptimistic:function(s,l){var d=Ht();return M2(d,lt,s,l)},useMemoCache:o0,useCacheRefresh:q2};b0.useEffectEvent=I2;var J2={readContext:vn,use:Ch,useCallback:$2,useContext:vn,useEffect:f0,useImperativeHandle:P2,useInsertionEffect:B2,useLayoutEffect:z2,useMemo:F2,useReducer:c0,useRef:O2,useState:function(){return c0(ci)},useDebugValue:h0,useDeferredValue:function(s,l){var d=Ht();return lt===null?m0(d,s,l):H2(d,lt.memoizedState,s,l)},useTransition:function(){var s=c0(ci)[0],l=Ht().memoizedState;return[typeof s=="boolean"?s:Ou(s),l]},useSyncExternalStore:b2,useId:W2,useHostTransitionStatus:g0,useFormState:j2,useActionState:j2,useOptimistic:function(s,l){var d=Ht();return lt!==null?M2(d,lt,s,l):(d.baseState=s,[s,d.queue.dispatch])},useMemoCache:o0,useCacheRefresh:q2};J2.useEffectEvent=I2;function v0(s,l,d,h){l=s.memoizedState,d=d(h,l),d=d==null?l:p({},l,d),s.memoizedState=d,s.lanes===0&&(s.updateQueue.baseState=d)}var x0={enqueueSetState:function(s,l,d){s=s._reactInternals;var h=hr(),b=Fi(h);b.payload=l,d!=null&&(b.callback=d),l=Hi(s,b,h),l!==null&&(Qn(l,s,h),Lu(l,s,h))},enqueueReplaceState:function(s,l,d){s=s._reactInternals;var h=hr(),b=Fi(h);b.tag=1,b.payload=l,d!=null&&(b.callback=d),l=Hi(s,b,h),l!==null&&(Qn(l,s,h),Lu(l,s,h))},enqueueForceUpdate:function(s,l){s=s._reactInternals;var d=hr(),h=Fi(d);h.tag=2,l!=null&&(h.callback=l),l=Hi(s,h,d),l!==null&&(Qn(l,s,d),Lu(l,s,d))}};function eM(s,l,d,h,b,v,k){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(h,v,k):l.prototype&&l.prototype.isPureReactComponent?!Su(d,h)||!Su(b,v):!0}function tM(s,l,d,h){s=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(d,h),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(d,h),l.state!==s&&x0.enqueueReplaceState(l,l.state,null)}function to(s,l){var d=l;if("ref"in l){d={};for(var h in l)h!=="ref"&&(d[h]=l[h])}if(s=s.defaultProps){d===l&&(d=p({},d));for(var b in s)d[b]===void 0&&(d[b]=s[b])}return d}function nM(s){uh(s)}function rM(s){console.error(s)}function aM(s){uh(s)}function jh(s,l){try{var d=s.onUncaughtError;d(l.value,{componentStack:l.stack})}catch(h){setTimeout(function(){throw h})}}function iM(s,l,d){try{var h=s.onCaughtError;h(d.value,{componentStack:d.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function w0(s,l,d){return d=Fi(d),d.tag=3,d.payload={element:null},d.callback=function(){jh(s,l)},d}function sM(s){return s=Fi(s),s.tag=3,s}function oM(s,l,d,h){var b=d.type.getDerivedStateFromError;if(typeof b=="function"){var v=h.value;s.payload=function(){return b(v)},s.callback=function(){iM(l,d,h)}}var k=d.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(s.callback=function(){iM(l,d,h),typeof b!="function"&&(Xi===null?Xi=new Set([this]):Xi.add(this));var D=h.stack;this.componentDidCatch(h.value,{componentStack:D!==null?D:""})})}function gz(s,l,d,h,b){if(d.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(l=d.alternate,l!==null&&El(l,d,b,!0),d=cr.current,d!==null){switch(d.tag){case 31:case 13:return _r===null?Gh():d.alternate===null&&_t===0&&(_t=3),d.flags&=-257,d.flags|=65536,d.lanes=b,h===xh?d.flags|=16384:(l=d.updateQueue,l===null?d.updateQueue=new Set([h]):l.add(h),Y0(s,h,b)),!1;case 22:return d.flags|=65536,h===xh?d.flags|=16384:(l=d.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([h])},d.updateQueue=l):(d=l.retryQueue,d===null?l.retryQueue=new Set([h]):d.add(h)),Y0(s,h,b)),!1}throw Error(r(435,d.tag))}return Y0(s,h,b),Gh(),!1}if(Ue)return l=cr.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=b,h!==Py&&(s=Error(r(422),{cause:h}),Tu(Dr(s,d)))):(h!==Py&&(l=Error(r(423),{cause:h}),Tu(Dr(l,d))),s=s.current.alternate,s.flags|=65536,b&=-b,s.lanes|=b,h=Dr(h,d),b=w0(s.stateNode,h,b),Qy(s,b),_t!==4&&(_t=2)),!1;var v=Error(r(520),{cause:h});if(v=Dr(v,d),Uu===null?Uu=[v]:Uu.push(v),_t!==4&&(_t=2),l===null)return!0;h=Dr(h,d),d=l;do{switch(d.tag){case 3:return d.flags|=65536,s=b&-b,d.lanes|=s,s=w0(d.stateNode,h,s),Qy(d,s),!1;case 1:if(l=d.type,v=d.stateNode,(d.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Xi===null||!Xi.has(v))))return d.flags|=65536,b&=-b,d.lanes|=b,b=sM(b),oM(b,s,d,h),Qy(d,b),!1}d=d.return}while(d!==null);return!1}var S0=Error(r(461)),Jt=!1;function xn(s,l,d,h){l.child=s===null?d2(l,null,d,h):Js(l,s.child,d,h)}function lM(s,l,d,h,b){d=d.render;var v=l.ref;if("ref"in h){var k={};for(var D in h)D!=="ref"&&(k[D]=h[D])}else k=h;return Xs(l),h=r0(s,l,d,k,v,b),D=a0(),s!==null&&!Jt?(i0(s,l,b),ui(s,l,b)):(Ue&&D&&zy(l),l.flags|=1,xn(s,l,h,b),l.child)}function cM(s,l,d,h,b){if(s===null){var v=d.type;return typeof v=="function"&&!_y(v)&&v.defaultProps===void 0&&d.compare===null?(l.tag=15,l.type=v,uM(s,l,v,h,b)):(s=mh(d.type,null,h,l,l.mode,b),s.ref=l.ref,s.return=l,l.child=s)}if(v=s.child,!L0(s,b)){var k=v.memoizedProps;if(d=d.compare,d=d!==null?d:Su,d(k,h)&&s.ref===l.ref)return ui(s,l,b)}return l.flags|=1,s=ai(v,h),s.ref=l.ref,s.return=l,l.child=s}function uM(s,l,d,h,b){if(s!==null){var v=s.memoizedProps;if(Su(v,h)&&s.ref===l.ref)if(Jt=!1,l.pendingProps=h=v,L0(s,b))(s.flags&131072)!==0&&(Jt=!0);else return l.lanes=s.lanes,ui(s,l,b)}return A0(s,l,d,h,b)}function dM(s,l,d,h){var b=h.children,v=s!==null?s.memoizedState:null;if(s===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.mode==="hidden"){if((l.flags&128)!==0){if(v=v!==null?v.baseLanes|d:d,s!==null){for(h=l.child=s.child,b=0;h!==null;
vendor: 10,610 bytes, line 48
48)b=b|h.lanes|h.childLanes,h=h.sibling;h=b&~v}else h=0,l.child=null;return fM(s,l,v,d,h)}if((d&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},s!==null&&bh(l,v!==null?v.cachePool:null),v!==null?m2(l,v):Jy(),p2(l);else return h=l.lanes=536870912,fM(s,l,v!==null?v.baseLanes|d:d,d,h)}else v!==null?(bh(l,v.cachePool),m2(l,v),Gi(),l.memoizedState=null):(s!==null&&bh(l,null),Jy(),Gi());return xn(s,l,b,d),l.child}function Bu(s,l){return s!==null&&s.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function fM(s,l,d,h,b){var v=Wy();return v=v===null?null:{parent:Qt._currentValue,pool:v},l.memoizedState={baseLanes:d,cachePool:v},s!==null&&bh(l,null),Jy(),p2(l),s!==null&&El(s,l,h,!0),l.childLanes=b,null}function Oh(s,l){return l=Ih({mode:l.mode,children:l.children},s.mode),l.ref=s.ref,s.child=l,l.return=s,l}function hM(s,l,d){return Js(l,s.child,null,d),s=Oh(l,l.pendingProps),s.flags|=2,ur(l),l.memoizedState=null,s}function yz(s,l,d){var h=l.pendingProps,b=(l.flags&128)!==0;if(l.flags&=-129,s===null){if(Ue){if(h.mode==="hidden")return s=Oh(l,h),l.lanes=536870912,Bu(null,s);if(t0(l),(s=wt)?(s=TT(s,Or),s=s!==null&&s.data==="&"?s:null,s!==null&&(l.memoizedState={dehydrated:s,treeContext:Bi!==null?{id:ha,overflow:ma}:null,retryLane:536870912,hydrationErrors:null},d=KA(s),d.return=l,l.child=d,bn=l,wt=null)):s=null,s===null)throw Vi(l);return l.lanes=536870912,null}return Oh(l,h)}var v=s.memoizedState;if(v!==null){var k=v.dehydrated;if(t0(l),b)if(l.flags&256)l.flags&=-257,l=hM(s,l,d);else if(l.memoizedState!==null)l.child=s.child,l.flags|=128,l=null;else throw Error(r(558));else if(Jt||El(s,l,d,!1),b=(d&s.childLanes)!==0,Jt||b){if(h=ht,h!==null&&(k=th(h,d),k!==0&&k!==v.retryLane))throw v.retryLane=k,Gs(s,k),Qn(h,s,k),S0;Gh(),l=hM(s,l,d)}else s=v.treeContext,wt=Ir(k.nextSibling),bn=l,Ue=!0,zi=null,Or=!1,s!==null&&JA(l,s),l=Oh(l,h),l.flags|=4096;return l}return s=ai(s.child,{mode:h.mode,children:h.children}),s.ref=l.ref,l.child=s,s.return=l,s}function _h(s,l){var d=l.ref;if(d===null)s!==null&&s.ref!==null&&(l.flags|=4194816);else{if(typeof d!="function"&&typeof d!="object")throw Error(r(284));(s===null||s.ref!==d)&&(l.flags|=4194816)}}function A0(s,l,d,h,b){return Xs(l),d=r0(s,l,d,h,void 0,b),h=a0(),s!==null&&!Jt?(i0(s,l,b),ui(s,l,b)):(Ue&&h&&zy(l),l.flags|=1,xn(s,l,d,b),l.child)}function mM(s,l,d,h,b,v){return Xs(l),l.updateQueue=null,d=y2(l,h,d,b),g2(s),h=a0(),s!==null&&!Jt?(i0(s,l,v),ui(s,l,v)):(Ue&&h&&zy(l),l.flags|=1,xn(s,l,d,v),l.child)}function pM(s,l,d,h,b){if(Xs(l),l.stateNode===null){var v=Al,k=d.contextType;typeof k=="object"&&k!==null&&(v=vn(k)),v=new d(h,v),l.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=x0,l.stateNode=v,v._reactInternals=l,v=l.stateNode,v.props=h,v.state=l.memoizedState,v.refs={},Xy(l),k=d.contextType,v.context=typeof k=="object"&&k!==null?vn(k):Al,v.state=l.memoizedState,k=d.getDerivedStateFromProps,typeof k=="function"&&(v0(l,d,k,h),v.state=l.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(k=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),k!==v.state&&x0.enqueueReplaceState(v,v.state,null),Nu(l,h,v,b),Du(),v.state=l.memoizedState),typeof v.componentDidMount=="function"&&(l.flags|=4194308),h=!0}else if(s===null){v=l.stateNode;var D=l.memoizedProps,V=to(d,D);v.props=V;var K=v.context,te=d.contextType;k=Al,typeof te=="object"&&te!==null&&(k=vn(te));var ie=d.getDerivedStateFromProps;te=typeof ie=="function"||typeof v.getSnapshotBeforeUpdate=="function",D=l.pendingProps!==D,te||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(D||K!==k)&&tM(l,v,h,k),$i=!1;var Q=l.memoizedState;v.state=Q,Nu(l,h,v,b),Du(),K=l.memoizedState,D||Q!==K||$i?(typeof ie=="function"&&(v0(l,d,ie,h),K=l.memoizedState),(V=$i||eM(l,d,V,h,Q,K,k))?(te||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(l.flags|=4194308)):(typeof v.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=h,l.memoizedState=K),v.props=h,v.state=K,v.context=k,h=V):(typeof v.componentDidMount=="function"&&(l.flags|=4194308),h=!1)}else{v=l.stateNode,Ky(s,l),k=l.memoizedProps,te=to(d,k),v.props=te,ie=l.pendingProps,Q=v.context,K=d.contextType,V=Al,typeof K=="object"&&K!==null&&(V=vn(K)),D=d.getDerivedStateFromProps,(K=typeof D=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(k!==ie||Q!==V)&&tM(l,v,h,V),$i=!1,Q=l.memoizedState,v.state=Q,Nu(l,h,v,b),Du();var J=l.memoizedState;k!==ie||Q!==J||$i||s!==null&&s.dependencies!==null&&gh(s.dependencies)?(typeof D=="function"&&(v0(l,d,D,h),J=l.memoizedState),(te=$i||eM(l,d,te,h,Q,J,V)||s!==null&&s.dependencies!==null&&gh(s.dependencies))?(K||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(h,J,V),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(h,J,V)),typeof v.componentDidUpdate=="function"&&(l.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof v.componentDidUpdate!="function"||k===s.memoizedProps&&Q===s.memoizedState||(l.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||k===s.memoizedProps&&Q===s.memoizedState||(l.flags|=1024),l.memoizedProps=h,l.memoizedState=J),v.props=h,v.state=J,v.context=V,h=te):(typeof v.componentDidUpdate!="function"||k===s.memoizedProps&&Q===s.memoizedState||(l.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||k===s.memoizedProps&&Q===s.memoizedState||(l.flags|=1024),h=!1)}return v=h,_h(s,l),h=(l.flags&128)!==0,v||h?(v=l.stateNode,d=h&&typeof d.getDerivedStateFromError!="function"?null:v.render(),l.flags|=1,s!==null&&h?(l.child=Js(l,s.child,null,b),l.child=Js(l,null,d,b)):xn(s,l,d,b),l.memoizedState=v.state,s=l.child):s=ui(s,l,b),s}function gM(s,l,d,h){return Ws(),l.flags|=256,xn(s,l,d,h),l.child}var M0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function T0(s){return{baseLanes:s,cachePool:i2()}}function k0(s,l,d){return s=s!==null?s.childLanes&~d:0,l&&(s|=fr),s}function yM(s,l,d){var h=l.pendingProps,b=!1,v=(l.flags&128)!==0,k;if((k=v)||(k=s!==null&&s.memoizedState===null?!1:(Ft.current&2)!==0),k&&(b=!0,l.flags&=-129),k=(l.flags&32)!==0,l.flags&=-33,s===null){if(Ue){if(b?Ui(l):Gi(),(s=wt)?(s=TT(s,Or),s=s!==null&&s.data!=="&"?s:null,s!==null&&(l.memoizedState={dehydrated:s,treeContext:Bi!==null?{id:ha,overflow:ma}:null,retryLane:536870912,hydrationErrors:null},d=KA(s),d.return=l,l.child=d,bn=l,wt=null)):s=null,s===null)throw Vi(l);return lb(s)?l.lanes=32:l.lanes=536870912,null}var D=h.children;return h=h.fallback,b?(Gi(),b=l.mode,D=Ih({mode:"hidden",children:D},b),h=Ys(h,b,d,null),D.return=l,h.return=l,D.sibling=h,l.child=D,h=l.child,h.memoizedState=T0(d),h.childLanes=k0(s,k,d),l.memoizedState=M0,Bu(null,h)):(Ui(l),E0(l,D))}var V=s.memoizedState;if(V!==null&&(D=V.dehydrated,D!==null)){if(v)l.flags&256?(Ui(l),l.flags&=-257,l=C0(s,l,d)):l.memoizedState!==null?(Gi(),l.child=s.child,l.flags|=128,l=null):(Gi(),D=h.fallback,b=l.mode,h=Ih({mode:"visible",children:h.children},b),D=Ys(D,b,d,null),D.flags|=2,h.return=l,D.return=l,h.sibling=D,l.child=h,Js(l,s.child,null,d),h=l.child,h.memoizedState=T0(d),h.childLanes=k0(s,k,d),l.memoizedState=M0,l=Bu(null,h));else if(Ui(l),lb(D)){if(k=D.nextSibling&&D.nextSibling.dataset,k)var K=k.dgst;k=K,h=Error(r(419)),h.stack="",h.digest=k,Tu({value:h,source:null,stack:null}),l=C0(s,l,d)}else if(Jt||El(s,l,d,!1),k=(d&s.childLanes)!==0,Jt||k){if(k=ht,k!==null&&(h=th(k,d),h!==0&&h!==V.retryLane))throw V.retryLane=h,Gs(s,h),Qn(k,s,h),S0;ob(D)||Gh(),l=C0(s,l,d)}else ob(D)?(l.flags|=192,l.child=s.child,l=null):(s=V.treeContext,wt=Ir(D.nextSibling),bn=l,Ue=!0,zi=null,Or=!1,s!==null&&JA(l,s),l=E0(l,h.children),l.flags|=4096);return l}return b?(Gi(),D=h.fallback,b=l.mode,V=s.child,K=V.sibling,h=ai(V,{mode:"hidden",children:h.children}),h.subtreeFlags=V.subtreeFlags&65011712,K!==null?D=ai(K,D):(D=Ys(D,b,d,null),D.flags|=2),D.return=l,h.return=l,h.sibling=D,l.child=h,Bu(null,h),h=l.child,D=s.child.memoizedState,D===null?D=T0(d):(b=D.cachePool,b!==null?(V=Qt._currentValue,b=b.parent!==V?{parent:V,pool:V}:b):b=i2(),D={baseLanes:D.baseLanes|d,cachePool:b}),h.memoizedState=D,h.childLanes=k0(s,k,d),l.memoizedState=M0,Bu(s.child,h)):(Ui(l),d=s.child,s=d.sibling,d=ai(d,{mode:"visible",children:h.children}),d.return=l,d.sibling=null,s!==null&&(k=l.deletions,k===null?(l.deletions=[s],l.flags|=16):k.push(s)),l.child=d,l.memoizedState=null,d)}function E0(s,l){return l=Ih({mode:"visible",children:l},s.mode),l.return=s,s.child=l}function Ih(s,l){return s=lr(22,s,null,l),s.lanes=0,s}function C0(s,l,d){return Js(l,s.child,null,d),s=E0(l,l.pendingProps.children),s.flags|=2,l.memoizedState=null,s}function bM(s,l,d){s.lanes|=l;var h=s.alternate;h!==null&&(h.lanes|=l),Hy(s.return,l,d)}function R0(s,l,d,h,b,v){var k=s.memoizedState;k===null?s.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:h,tail:d,tailMode:b,treeForkCount:v}:(k.isBackwards=l,k.rendering=null,k.renderingStartTime=0,k.last=h,k.tail=d,k.tailMode=b,k.treeForkCount=v)}function vM(s,l,d){var h=l.pendingProps,b=h.revealOrder,v=h.tail;h=h.children;var k=Ft.current,D=(k&2)!==0;if(D?(k=k&1|2,l.flags|=128):k&=1,re(Ft,k),xn(s,l,h,d),h=Ue?Mu:0,!D&&s!==null&&(s.flags&128)!==0)e:for(s=l.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&bM(s,d,l);else if(s.tag===19)bM(s,d,l);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===l)break e;for(;s.sibling===null;){if(s.return===null||s.return===l)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}switch(b){case"forwards":for(d=l.child,b=null;d!==null;)s=d.alternate,s!==null&&Mh(s)===null&&(b=d),d=d.sibling;d=b,d===null?(b=l.child,l.child=null):(b=d.sibling,d.sibling=null),R0(l,!1,b,d,v,h);break;case"backwards":case"unstable_legacy-backwards":for(d=null,b=l.child,l.child=null;b!==null;){if(s=b.alternate,s!==null&&Mh(s)===null){l.child=b;break}s=b.sibling,b.sibling=d,d=b,b=s}R0(l,!0,d,null,v,h);break;
vendor: 6,178 bytes, line 48
48case"together":R0(l,!1,null,null,void 0,h);break;default:l.memoizedState=null}return l.child}function ui(s,l,d){if(s!==null&&(l.dependencies=s.dependencies),qi|=l.lanes,(d&l.childLanes)===0)if(s!==null){if(El(s,l,d,!1),(d&l.childLanes)===0)return null}else return null;if(s!==null&&l.child!==s.child)throw Error(r(153));if(l.child!==null){for(s=l.child,d=ai(s,s.pendingProps),l.child=d,d.return=l;s.sibling!==null;)s=s.sibling,d=d.sibling=ai(s,s.pendingProps),d.return=l;d.sibling=null}return l.child}function L0(s,l){return(s.lanes&l)!==0?!0:(s=s.dependencies,!!(s!==null&&gh(s)))}function bz(s,l,d){switch(l.tag){case 3:Oe(l,l.stateNode.containerInfo),Pi(l,Qt,s.memoizedState.cache),Ws();break;case 27:case 5:ke(l);break;case 4:Oe(l,l.stateNode.containerInfo);break;case 10:Pi(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,t0(l),null;break;case 13:var h=l.memoizedState;if(h!==null)return h.dehydrated!==null?(Ui(l),l.flags|=128,null):(d&l.child.childLanes)!==0?yM(s,l,d):(Ui(l),s=ui(s,l,d),s!==null?s.sibling:null);Ui(l);break;case 19:var b=(s.flags&128)!==0;if(h=(d&l.childLanes)!==0,h||(El(s,l,d,!1),h=(d&l.childLanes)!==0),b){if(h)return vM(s,l,d);l.flags|=128}if(b=l.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),re(Ft,Ft.current),h)break;return null;case 22:return l.lanes=0,dM(s,l,d,l.pendingProps);case 24:Pi(l,Qt,s.memoizedState.cache)}return ui(s,l,d)}function xM(s,l,d){if(s!==null)if(s.memoizedProps!==l.pendingProps)Jt=!0;else{if(!L0(s,d)&&(l.flags&128)===0)return Jt=!1,bz(s,l,d);Jt=(s.flags&131072)!==0}else Jt=!1,Ue&&(l.flags&1048576)!==0&&ZA(l,Mu,l.index);switch(l.lanes=0,l.tag){case 16:e:{var h=l.pendingProps;if(s=Qs(l.elementType),l.type=s,typeof s=="function")_y(s)?(h=to(s,h),l.tag=1,l=pM(null,l,s,h,d)):(l.tag=0,l=A0(null,l,s,h,d));else{if(s!=null){var b=s.$$typeof;if(b===L){l.tag=11,l=lM(null,l,s,h,d);break e}else if(b===$){l.tag=14,l=cM(null,l,s,h,d);break e}}throw l=q(s)||s,Error(r(306,l,""))}}return l;case 0:return A0(s,l,l.type,l.pendingProps,d);case 1:return h=l.type,b=to(h,l.pendingProps),pM(s,l,h,b,d);case 3:e:{if(Oe(l,l.stateNode.containerInfo),s===null)throw Error(r(387));h=l.pendingProps;var v=l.memoizedState;b=v.element,Ky(s,l),Nu(l,h,null,d);var k=l.memoizedState;if(h=k.cache,Pi(l,Qt,h),h!==v.cache&&Uy(l,[Qt],d,!0),Du(),h=k.element,v.isDehydrated)if(v={element:h,isDehydrated:!1,cache:k.cache},l.updateQueue.baseState=v,l.memoizedState=v,l.flags&256){l=gM(s,l,h,d);break e}else if(h!==b){b=Dr(Error(r(424)),l),Tu(b),l=gM(s,l,h,d);break e}else{switch(s=l.stateNode.containerInfo,s.nodeType){case 9:s=s.body;break;default:s=s.nodeName==="HTML"?s.ownerDocument.body:s}for(wt=Ir(s.firstChild),bn=l,Ue=!0,zi=null,Or=!0,d=d2(l,null,h,d),l.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling}else{if(Ws(),h===b){l=ui(s,l,d);break e}xn(s,l,h,d)}l=l.child}return l;case 26:return _h(s,l),s===null?(d=DT(l.type,null,l.pendingProps,null))?l.memoizedState=d:Ue||(d=l.type,s=l.pendingProps,h=Zh(ve.current).createElement(d),h[Le]=l,h[vt]=s,wn(h,d,s),Vt(h),l.stateNode=h):l.memoizedState=DT(l.type,s.memoizedProps,l.pendingProps,s.memoizedState),null;case 27:return ke(l),s===null&&Ue&&(h=l.stateNode=CT(l.type,l.pendingProps,ve.current),bn=l,Or=!0,b=wt,Ji(l.type)?(cb=b,wt=Ir(h.firstChild)):wt=b),xn(s,l,l.pendingProps.children,d),_h(s,l),s===null&&(l.flags|=4194304),l.child;case 5:return s===null&&Ue&&((b=h=wt)&&(h=qz(h,l.type,l.pendingProps,Or),h!==null?(l.stateNode=h,bn=l,wt=Ir(h.firstChild),Or=!1,b=!0):b=!1),b||Vi(l)),ke(l),b=l.type,v=l.pendingProps,k=s!==null?s.memoizedProps:null,h=v.children,ab(b,v)?h=null:k!==null&&ab(b,k)&&(l.flags|=32),l.memoizedState!==null&&(b=r0(s,l,cz,null,null,d),Zu._currentValue=b),_h(s,l),xn(s,l,h,d),l.child;case 6:return s===null&&Ue&&((s=d=wt)&&(d=Xz(d,l.pendingProps,Or),d!==null?(l.stateNode=d,bn=l,wt=null,s=!0):s=!1),s||Vi(l)),null;case 13:return yM(s,l,d);case 4:return Oe(l,l.stateNode.containerInfo),h=l.pendingProps,s===null?l.child=Js(l,null,h,d):xn(s,l,h,d),l.child;case 11:return lM(s,l,l.type,l.pendingProps,d);case 7:return xn(s,l,l.pendingProps,d),l.child;case 8:return xn(s,l,l.pendingProps.children,d),l.child;case 12:return xn(s,l,l.pendingProps.children,d),l.child;case 10:return h=l.pendingProps,Pi(l,l.type,h.value),xn(s,l,h.children,d),l.child;case 9:return b=l.type._context,h=l.pendingProps.children,Xs(l),b=vn(b),h=h(b),l.flags|=1,xn(s,l,h,d),l.child;case 14:return cM(s,l,l.type,l.pendingProps,d);case 15:return uM(s,l,l.type,l.pendingProps,d);case 19:return vM(s,l,d);case 31:return yz(s,l,d);case 22:return dM(s,l,d,l.pendingProps);case 24:return Xs(l),h=vn(Qt),s===null?(b=Wy(),b===null&&(b=ht,v=Gy(),b.pooledCache=v,v.refCount++,v!==null&&(b.pooledCacheLanes|=d),b=v),l.memoizedState={parent:h,cache:b},Xy(l),Pi(l,Qt,b)):((s.lanes&d)!==0&&(Ky(s,l),Nu(l,null,null,d),Du()),b=s.memoizedState,v=l.memoizedState,b.parent!==h?(b={parent:h,cache:h},l.memoizedState=b,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=b),Pi(l,Qt,h)):(h=v.cache,Pi(l,Qt,h),h!==b.cache&&Uy(l,[Qt],d,!0))),xn(s,l,l.pendingProps.children,d),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function di(s){s.flags|=4}function D0(s,l,d,h,b){if((l=(s.mode&32)!==0)&&(l=!1),l){if(s.flags|=16777216,(b&335544128)===b)if(s.stateNode.complete)s.flags|=8192;else if(WM())s.flags|=8192;else throw Zs=xh,qy}else s.flags&=-16777217}function wM(s,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)s.flags&=-16777217;else if(s.flags|=16777216,!IT(l))if(WM())s.flags|=8192;else throw Zs=xh,qy}function Bh(s,l){l!==null&&(s.flags|=4),s.flags&16384&&(l=s.tag!==22?mu():536870912,s.lanes|=l,Vl|=l)}function zu(s,l){if(!Ue)switch(s.tailMode){case"hidden":l=s.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?s.tail=null:d.sibling=null;break;case"collapsed":d=s.tail;for(var h=null;d!==null;)d.alternate!==null&&(h=d),d=d.sibling;h===null?l||s.tail===null?s.tail=null:s.tail.sibling=null:h.sibling=null}}function St(s){var l=s.alternate!==null&&s.alternate.child===s.child,d=0,h=0;if(l)for(var b=s.child;b!==null;)d|=b.lanes|b.childLanes,h|=b.subtreeFlags&65011712,h|=b.flags&65011712,b.return=s,b=b.
vendor: 3,620 bytes, line 48
48sibling;else for(b=s.child;b!==null;)d|=b.lanes|b.childLanes,h|=b.subtreeFlags,h|=b.flags,b.return=s,b=b.sibling;return s.subtreeFlags|=h,s.childLanes=d,l}function vz(s,l,d){var h=l.pendingProps;switch(Vy(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return St(l),null;case 1:return St(l),null;case 3:return d=l.stateNode,h=null,s!==null&&(h=s.memoizedState.cache),l.memoizedState.cache!==h&&(l.flags|=2048),oi(Qt),fe(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(s===null||s.child===null)&&(kl(l)?di(l):s===null||s.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,$y())),St(l),null;case 26:var b=l.type,v=l.memoizedState;return s===null?(di(l),v!==null?(St(l),wM(l,v)):(St(l),D0(l,b,null,h,d))):v?v!==s.memoizedState?(di(l),St(l),wM(l,v)):(St(l),l.flags&=-16777217):(s=s.memoizedProps,s!==h&&di(l),St(l),D0(l,b,s,h,d)),null;case 27:if(Re(l),d=ve.current,b=l.type,s!==null&&l.stateNode!=null)s.memoizedProps!==h&&di(l);else{if(!h){if(l.stateNode===null)throw Error(r(166));return St(l),null}s=ue.current,kl(l)?e2(l):(s=CT(b,h,d),l.stateNode=s,di(l))}return St(l),null;case 5:if(Re(l),b=l.type,s!==null&&l.stateNode!=null)s.memoizedProps!==h&&di(l);else{if(!h){if(l.stateNode===null)throw Error(r(166));return St(l),null}if(v=ue.current,kl(l))e2(l);else{var k=Zh(ve.current);switch(v){case 1:v=k.createElementNS("http://www.w3.org/2000/svg",b);break;case 2:v=k.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;default:switch(b){case"svg":v=k.createElementNS("http://www.w3.org/2000/svg",b);break;case"math":v=k.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;case"script":v=k.createElement("div"),v.innerHTML="<script><\/script>",v=v.removeChild(v.firstChild);break;case"select":v=typeof h.is=="string"?k.createElement("select",{is:h.is}):k.createElement("select"),h.multiple?v.multiple=!0:h.size&&(v.size=h.size);break;default:v=typeof h.is=="string"?k.createElement(b,{is:h.is}):k.createElement(b)}}v[Le]=l,v[vt]=h;e:for(k=l.child;k!==null;){if(k.tag===5||k.tag===6)v.appendChild(k.stateNode);else if(k.tag!==4&&k.tag!==27&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===l)break e;for(;k.sibling===null;){if(k.return===null||k.return===l)break e;k=k.return}k.sibling.return=k.return,k=k.sibling}l.stateNode=v;e:switch(wn(v,b,h),b){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&di(l)}}return St(l),D0(l,l.type,s===null?null:s.memoizedProps,l.pendingProps,d),null;case 6:if(s&&l.stateNode!=null)s.memoizedProps!==h&&di(l);else{if(typeof h!="string"&&l.stateNode===null)throw Error(r(166));if(s=ve.current,kl(l)){if(s=l.stateNode,d=l.memoizedProps,h=null,b=bn,b!==null)switch(b.tag){case 27:case 5:h=b.memoizedProps}s[Le]=l,s=!!(s.nodeValue===d||h!==null&&h.suppressHydrationWarning===!0||yT(s.nodeValue,d)),s||Vi(l,!0)}else s=Zh(s).createTextNode(h),s[Le]=l,l.stateNode=s}return St(l),null;case 31:if(d=l.memoizedState,s===null||s.memoizedState!==null){if(h=kl(l),d!==null){if(s===null){if(!h)throw Error(r(318));if(s=l.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(557));s[Le]=l}else Ws(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;St(l),s=!1}else d=$y(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=d),s=!0;if(!s)return l.flags&256?(ur(l),l):(ur(l),null);if((l.flags&128)!==0)throw Error(r(558))}return St(l),null;case 13:if(h=l.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(b=kl(l),h!==null&&h.dehydrated!==null){if(s===null){if(!b)throw Error(r(318));
vendor: 23,409 bytes, line 48
48if(b=l.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(r(317));b[Le]=l}else Ws(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;St(l),b=!1}else b=$y(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=b),b=!0;if(!b)return l.flags&256?(ur(l),l):(ur(l),null)}return ur(l),(l.flags&128)!==0?(l.lanes=d,l):(d=h!==null,s=s!==null&&s.memoizedState!==null,d&&(h=l.child,b=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(b=h.alternate.memoizedState.cachePool.pool),v=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(v=h.memoizedState.cachePool.pool),v!==b&&(h.flags|=2048)),d!==s&&d&&(l.child.flags|=8192),Bh(l,l.updateQueue),St(l),null);case 4:return fe(),s===null&&J0(l.stateNode.containerInfo),St(l),null;case 10:return oi(l.type),St(l),null;case 19:if(Z(Ft),h=l.memoizedState,h===null)return St(l),null;if(b=(l.flags&128)!==0,v=h.rendering,v===null)if(b)zu(h,!1);else{if(_t!==0||s!==null&&(s.flags&128)!==0)for(s=l.child;s!==null;){if(v=Mh(s),v!==null){for(l.flags|=128,zu(h,!1),s=v.updateQueue,l.updateQueue=s,Bh(l,s),l.subtreeFlags=0,s=d,d=l.child;d!==null;)XA(d,s),d=d.sibling;return re(Ft,Ft.current&1|2),Ue&&ii(l,h.treeForkCount),l.child}s=s.sibling}h.tail!==null&&Mn()>Fh&&(l.flags|=128,b=!0,zu(h,!1),l.lanes=4194304)}else{if(!b)if(s=Mh(v),s!==null){if(l.flags|=128,b=!0,s=s.updateQueue,l.updateQueue=s,Bh(l,s),zu(h,!0),h.tail===null&&h.tailMode==="hidden"&&!v.alternate&&!Ue)return St(l),null}else 2*Mn()-h.renderingStartTime>Fh&&d!==536870912&&(l.flags|=128,b=!0,zu(h,!1),l.lanes=4194304);h.isBackwards?(v.sibling=l.child,l.child=v):(s=h.last,s!==null?s.sibling=v:l.child=v,h.last=v)}return h.tail!==null?(s=h.tail,h.rendering=s,h.tail=s.sibling,h.renderingStartTime=Mn(),s.sibling=null,d=Ft.current,re(Ft,b?d&1|2:d&1),Ue&&ii(l,h.treeForkCount),s):(St(l),null);case 22:case 23:return ur(l),e0(),h=l.memoizedState!==null,s!==null?s.memoizedState!==null!==h&&(l.flags|=8192):h&&(l.flags|=8192),h?(d&536870912)!==0&&(l.flags&128)===0&&(St(l),l.subtreeFlags&6&&(l.flags|=8192)):St(l),d=l.updateQueue,d!==null&&Bh(l,d.retryQueue),d=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(d=s.memoizedState.cachePool.pool),h=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==d&&(l.flags|=2048),s!==null&&Z(Ks),null;case 24:return d=null,s!==null&&(d=s.memoizedState.cache),l.memoizedState.cache!==d&&(l.flags|=2048),oi(Qt),St(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function xz(s,l){switch(Vy(l),l.tag){case 1:return s=l.flags,s&65536?(l.flags=s&-65537|128,l):null;case 3:return oi(Qt),fe(),s=l.flags,(s&65536)!==0&&(s&128)===0?(l.flags=s&-65537|128,l):null;case 26:case 27:case 5:return Re(l),null;case 31:if(l.memoizedState!==null){if(ur(l),l.alternate===null)throw Error(r(340));Ws()}return s=l.flags,s&65536?(l.flags=s&-65537|128,l):null;case 13:if(ur(l),s=l.memoizedState,s!==null&&s.dehydrated!==null){if(l.alternate===null)throw Error(r(340));Ws()}return s=l.flags,s&65536?(l.flags=s&-65537|128,l):null;case 19:return Z(Ft),null;case 4:return fe(),null;case 10:return oi(l.type),null;case 22:case 23:return ur(l),e0(),s!==null&&Z(Ks),s=l.flags,s&65536?(l.flags=s&-65537|128,l):null;case 24:return oi(Qt),null;case 25:return null;default:return null}}function SM(s,l){switch(Vy(l),l.tag){case 3:oi(Qt),fe();break;case 26:case 27:case 5:Re(l);break;case 4:fe();break;case 31:l.memoizedState!==null&&ur(l);break;case 13:ur(l);break;case 19:Z(Ft);break;case 10:oi(l.type);break;case 22:case 23:ur(l),e0(),s!==null&&Z(Ks);break;case 24:oi(Qt)}}function Vu(s,l){try{var d=l.updateQueue,h=d!==null?d.lastEffect:null;if(h!==null){var b=h.next;d=b;do{if((d.tag&s)===s){h=void 0;var v=d.create,k=d.inst;h=v(),k.destroy=h}d=d.next}while(d!==b)}}catch(D){ot(l,l.return,D)}}function Yi(s,l,d){try{var h=l.updateQueue,b=h!==null?h.lastEffect:null;if(b!==null){var v=b.next;h=v;do{if((h.tag&s)===s){var k=h.inst,D=k.destroy;if(D!==void 0){k.destroy=void 0,b=l;var V=d,K=D;try{K()}catch(te){ot(b,V,te)}}}h=h.next}while(h!==v)}}catch(te){ot(l,l.return,te)}}function AM(s){var l=s.updateQueue;if(l!==null){var d=s.stateNode;try{h2(l,d)}catch(h){ot(s,s.return,h)}}}function MM(s,l,d){d.props=to(s.type,s.memoizedProps),d.state=s.memoizedState;try{d.componentWillUnmount()}catch(h){ot(s,l,h)}}function Pu(s,l){try{var d=s.ref;if(d!==null){switch(s.tag){case 26:case 27:case 5:var h=s.stateNode;break;case 30:h=s.stateNode;break;default:h=s.stateNode}typeof d=="function"?s.refCleanup=d(h):d.current=h}}catch(b){ot(s,l,b)}}function pa(s,l){var d=s.ref,h=s.refCleanup;if(d!==null)if(typeof h=="function")try{h()}catch(b){ot(s,l,b)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof d=="function")try{d(null)}catch(b){ot(s,l,b)}else d.current=null}function TM(s){var l=s.type,d=s.memoizedProps,h=s.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":d.autoFocus&&h.focus();break e;case"img":d.src?h.src=d.src:d.srcSet&&(h.srcset=d.srcSet)}}catch(b){ot(s,s.return,b)}}function N0(s,l,d){try{var h=s.stateNode;Fz(h,s.type,d,l),h[vt]=l}catch(b){ot(s,s.return,b)}}function kM(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&Ji(s.type)||s.tag===4}function j0(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||kM(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&Ji(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function O0(s,l,d){var h=s.tag;if(h===5||h===6)s=s.stateNode,l?(d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d).insertBefore(s,l):(l=d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d,l.appendChild(s),d=d._reactRootContainer,d!=null||l.onclick!==null||(l.onclick=ni));else if(h!==4&&(h===27&&Ji(s.type)&&(d=s.stateNode,l=null),s=s.child,s!==null))for(O0(s,l,d),s=s.sibling;s!==null;)O0(s,l,d),s=s.sibling}function zh(s,l,d){var h=s.tag;if(h===5||h===6)s=s.stateNode,l?d.insertBefore(s,l):d.appendChild(s);else if(h!==4&&(h===27&&Ji(s.type)&&(d=s.stateNode),s=s.child,s!==null))for(zh(s,l,d),s=s.sibling;s!==null;)zh(s,l,d),s=s.sibling}function EM(s){var l=s.stateNode,d=s.memoizedProps;try{for(var h=s.type,b=l.attributes;b.length;)l.removeAttributeNode(b[0]);wn(l,h,d),l[Le]=s,l[vt]=d}catch(v){ot(s,s.return,v)}}var fi=!1,en=!1,_0=!1,CM=typeof WeakSet=="function"?WeakSet:Set,ln=null;function wz(s,l){if(s=s.containerInfo,nb=im,s=PA(s),Cy(s)){if("selectionStart"in s)var d={start:s.selectionStart,end:s.selectionEnd};else e:{d=(d=s.ownerDocument)&&d.defaultView||window;var h=d.getSelection&&d.getSelection();if(h&&h.rangeCount!==0){d=h.anchorNode;var b=h.anchorOffset,v=h.focusNode;h=h.focusOffset;try{d.nodeType,v.nodeType}catch{d=null;break e}var k=0,D=-1,V=-1,K=0,te=0,ie=s,Q=null;t:for(;;){for(var J;ie!==d||b!==0&&ie.nodeType!==3||(D=k+b),ie!==v||h!==0&&ie.nodeType!==3||(V=k+h),ie.nodeType===3&&(k+=ie.nodeValue.length),(J=ie.firstChild)!==null;)Q=ie,ie=J;for(;;){if(ie===s)break t;if(Q===d&&++K===b&&(D=k),Q===v&&++te===h&&(V=k),(J=ie.nextSibling)!==null)break;ie=Q,Q=ie.parentNode}ie=J}d=D===-1||V===-1?null:{start:D,end:V}}else d=null}d=d||{start:0,end:0}}else d=null;for(rb={focusedElem:s,selectionRange:d},im=!1,ln=l;ln!==null;)if(l=ln,s=l.child,(l.subtreeFlags&1028)!==0&&s!==null)s.return=l,ln=s;else for(;ln!==null;){switch(l=ln,v=l.alternate,s=l.flags,l.tag){case 0:if((s&4)!==0&&(s=l.updateQueue,s=s!==null?s.events:null,s!==null))for(d=0;d<s.length;d++)b=s[d],b.ref.impl=b.nextImpl;break;case 11:case 15:break;case 1:if((s&1024)!==0&&v!==null){s=void 0,d=l,b=v.memoizedProps,v=v.memoizedState,h=d.stateNode;try{var xe=to(d.type,b);s=h.getSnapshotBeforeUpdate(xe,v),h.__reactInternalSnapshotBeforeUpdate=s}catch(Ee){ot(d,d.return,Ee)}}break;case 3:if((s&1024)!==0){if(s=l.stateNode.containerInfo,d=s.nodeType,d===9)sb(s);else if(d===1)switch(s.nodeName){case"HEAD":case"HTML":case"BODY":sb(s);break;default:s.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(r(163))}if(s=l.sibling,s!==null){s.return=l.return,ln=s;break}ln=l.return}}function RM(s,l,d){var h=d.flags;switch(d.tag){case 0:case 11:case 15:mi(s,d),h&4&&Vu(5,d);break;case 1:if(mi(s,d),h&4)if(s=d.stateNode,l===null)try{s.componentDidMount()}catch(k){ot(d,d.return,k)}else{var b=to(d.type,l.memoizedProps);l=l.memoizedState;try{s.componentDidUpdate(b,l,s.__reactInternalSnapshotBeforeUpdate)}catch(k){ot(d,d.return,k)}}h&64&&AM(d),h&512&&Pu(d,d.return);break;case 3:if(mi(s,d),h&64&&(s=d.updateQueue,s!==null)){if(l=null,d.child!==null)switch(d.child.tag){case 27:case 5:l=d.child.stateNode;break;case 1:l=d.child.stateNode}try{h2(s,l)}catch(k){ot(d,d.return,k)}}break;case 27:l===null&&h&4&&EM(d);case 26:case 5:mi(s,d),l===null&&h&4&&TM(d),h&512&&Pu(d,d.return);break;case 12:mi(s,d);break;case 31:mi(s,d),h&4&&NM(s,d);break;case 13:mi(s,d),h&4&&jM(s,d),h&64&&(s=d.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(d=Lz.bind(null,d),Kz(s,d))));break;case 22:if(h=d.memoizedState!==null||fi,!h){l=l!==null&&l.memoizedState!==null||en,b=fi;var v=en;fi=h,(en=l)&&!v?pi(s,d,(d.subtreeFlags&8772)!==0):mi(s,d),fi=b,en=v}break;case 30:break;default:mi(s,d)}}function LM(s){var l=s.alternate;l!==null&&(s.alternate=null,LM(l)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(l=s.stateNode,l!==null&&hl(l)),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}var kt=null,Wn=!1;function hi(s,l,d){for(d=d.child;d!==null;)DM(s,l,d),d=d.sibling}function DM(s,l,d){if(Nn&&typeof Nn.onCommitFiberUnmount=="function")try{Nn.onCommitFiberUnmount(_s,d)}catch{}switch(d.tag){case 26:en||pa(d,l),hi(s,l,d),d.memoizedState?d.memoizedState.count--:d.stateNode&&(d=d.stateNode,d.parentNode.removeChild(d));break;case 27:en||pa(d,l);var h=kt,b=Wn;Ji(d.type)&&(kt=d.stateNode,Wn=!1),hi(s,l,d),Xu(d.stateNode),kt=h,Wn=b;break;case 5:en||pa(d,l);case 6:if(h=kt,b=Wn,kt=null,hi(s,l,d),kt=h,Wn=b,kt!==null)if(Wn)try{(kt.nodeType===9?kt.body:kt.nodeName==="HTML"?kt.ownerDocument.body:kt).removeChild(d.stateNode)}catch(v){ot(d,l,v)}else try{kt.removeChild(d.stateNode)}catch(v){ot(d,l,v)}break;case 18:kt!==null&&(Wn?(s=kt,AT(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,d.stateNode),Wl(s)):AT(kt,d.stateNode));break;case 4:h=kt,b=Wn,kt=d.stateNode.containerInfo,Wn=!0,hi(s,l,d),kt=h,Wn=b;break;case 0:case 11:case 14:case 15:Yi(2,d,l),en||Yi(4,d,l),hi(s,l,d);break;case 1:en||(pa(d,l),h=d.stateNode,typeof h.componentWillUnmount=="function"&&MM(d,l,h)),hi(s,l,d);break;case 21:hi(s,l,d);break;case 22:en=(h=en)||d.memoizedState!==null,hi(s,l,d),en=h;break;default:hi(s,l,d)}}function NM(s,l){if(l.memoizedState===null&&(s=l.alternate,s!==null&&(s=s.memoizedState,s!==null))){s=s.dehydrated;try{Wl(s)}catch(d){ot(l,l.return,d)}}}function jM(s,l){if(l.memoizedState===null&&(s=l.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{Wl(s)}catch(d){ot(l,l.return,d)}}function Sz(s){switch(s.tag){case 31:case 13:case 19:var l=s.stateNode;return l===null&&(l=s.stateNode=new CM),l;case 22:return s=s.stateNode,l=s._retryCache,l===null&&(l=s._retryCache=new CM),l;default:throw Error(r(435,s.tag))}}function Vh(s,l){var d=Sz(s);l.forEach(function(h){if(!d.has(h)){d.add(h);var b=Dz.bind(null,s,h);h.then(b,b)}})}function qn(s,l){var d=l.deletions;if(d!==null)for(var h=0;h<d.length;h++){var b=d[h],v=s,k=l,D=k;e:for(;D!==null;){switch(D.tag){case 27:if(Ji(D.type)){kt=D.stateNode,Wn=!1;break e}break;case 5:kt=D.stateNode,Wn=!1;break e;case 3:case 4:kt=D.stateNode.containerInfo,Wn=!0;break e}D=D.return}if(kt===null)throw Error(r(160));DM(v,k,b),kt=null,Wn=!1,v=b.alternate,v!==null&&(v.return=null),b.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)OM(l,s),l=l.sibling}var Xr=null;function OM(s,l){var d=s.alternate,h=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:qn(l,s),Xn(s),h&4&&(Yi(3,s,s.return),Vu(3,s),Yi(5,s,s.return));break;case 1:qn(l,s),Xn(s),h&512&&(en||d===null||pa(d,d.return)),h&64&&fi&&(s=s.updateQueue,s!==null&&(h=s.callbacks,h!==null&&(d=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=d===null?h:d.concat(h))));break;case 26:var b=Xr;if(qn(l,s),Xn(s),h&512&&(en||d===null||pa(d,d.return)),h&4){var v=d!==null?d.memoizedState:null;if(h=s.memoizedState,d===null)if(h===null)if(s.stateNode===null){e:{h=s.type,d=s.memoizedProps,b=b.ownerDocument||b;t:switch(h){case"title":v=b.getElementsByTagName("title")[0],(!v||v[Ps]||v[Le]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=b.createElement(h),b.head.insertBefore(v,b.querySelector("head > title"))),wn(v,h,d),v[Le]=s,Vt(v),h=v;break e;case"link":var k=OT("link","href",b).get(h+(d.href||""));if(k){for(var D=0;D<k.length;D++)if(v=k[D],v.getAttribute("href")===(d.href==null||d.href===""?null:d.href)&&v.getAttribute("rel")===(d.rel==null?null:d.rel)&&v.getAttribute("title")===(d.title==null?null:d.title)&&v.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){k.splice(D,1);break t}}v=b.createElement(h),wn(v,h,d),b.head.appendChild(v);break;case"meta":if(k=OT("meta","content",b).get(h+(d.content||""))){for(D=0;D<k.length;D++)if(v=k[D],v.getAttribute("content")===(d.content==null?null:""+d.content)&&v.getAttribute("name")===(d.name==null?null:d.name)&&v.getAttribute("property")===(d.property==null?null:d.property)&&v.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&v.getAttribute("charset")===(d.charSet==null?null:d.charSet)){k.splice(D,1);break t}}v=b.createElement(h),wn(v,h,d),b.head.appendChild(v);break;default:throw Error(r(468,h))}v[Le]=s,Vt(v),h=v}s.stateNode=h}else _T(b,s.type,s.stateNode);else s.stateNode=jT(b,h,s.memoizedProps);else v!==h?(v===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):v.count--,h===null?_T(b,s.type,s.stateNode):jT(b,h,s.memoizedProps)):h===null&&s.stateNode!==null&&N0(s,s.memoizedProps,d.memoizedProps)}break;case 27:qn(l,s),Xn(s),h&512&&(en||d===null||pa(d,d.return)),d!==null&&h&4&&N0(s,s.memoizedProps,d.memoizedProps);break;case 5:if(qn(l,s),Xn(s),h&512&&(en||d===null||pa(d,d.return)),s.flags&32){b=s.stateNode;try{gl(b,"")}catch(xe){ot(s,s.return,xe)}}h&4&&s.stateNode!=null&&(b=s.memoizedProps,N0(s,b,d!==null?d.memoizedProps:b)),h&1024&&(_0=!0);break;case 6:if(qn(l,s),Xn(s),h&4){if(s.stateNode===null)throw Error(r(162));h=s.memoizedProps,d=s.stateNode;try{d.nodeValue=h}catch(xe){ot(s,s.return,xe)}}break;case 3:if(tm=null,b=Xr,Xr=Jh(l.containerInfo),qn(l,s),Xr=b,Xn(s),h&4&&d!==null&&d.memoizedState.isDehydrated)try{Wl(l.containerInfo)}catch(xe){ot(s,s.return,xe)}_0&&(_0=!1,_M(s));break;case 4:h=Xr,Xr=Jh(s.stateNode.containerInfo),qn(l,s),Xn(s),Xr=h;break;case 12:qn(l,s),Xn(s);break;case 31:qn(l,s),Xn(s),h&4&&(h=s.updateQueue,h!==null&&(s.updateQueue=null,Vh(s,h)));break;case 13:qn(l,s),Xn(s),s.child.flags&8192&&s.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&($h=Mn()),h&4&&(h=s.updateQueue,h!==null&&(s.updateQueue=null,Vh(s,h)));break;case 22:b=s.memoizedState!==null;var V=d!==null&&d.memoizedState!==null,K=fi,te=en;if(fi=K||b,en=te||V,qn(l,s),en=te,fi=K,Xn(s),h&8192)e:for(l=s.stateNode,l._visibility=b?l._visibility&-2:l._visibility|1,b&&(d===null||V||fi||en||no(s)),d=null,l=s;;){if(l.tag===5||l.tag===26){if(d===null){V=d=l;try{if(v=V.stateNode,b)k=v.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{D=V.stateNode;var ie=V.memoizedProps.style,Q=ie!=null&&ie.hasOwnProperty("display")?ie.display:null;D.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(xe){ot(V,V.return,xe)}}}else if(l.tag===6){if(d===null){V=l;try{V.stateNode.nodeValue=b?"":V.memoizedProps}catch(xe){ot(V,V.return,xe)}}}else if(l.tag===18){if(d===null){V=l;try{var J=V.stateNode;b?MT(J,!0):MT(V.stateNode,!1)}catch(xe){ot(V,V.return,xe)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===s)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===s)break e;for(;l.sibling===null;){if(l.return===null||l.return===s)break e;d===l&&(d=null),l=l.return}d===l&&(d=null),l.sibling.return=l.return,l=l.sibling}h&4&&(h=s.updateQueue,h!==null&&(d=h.retryQueue,d!==null&&(h.retryQueue=null,Vh(s,d))));break;case 19:qn(l,s),Xn(s),h&4&&(h=s.updateQueue,h!==null&&(s.updateQueue=null,Vh(s,h)));break;case 30:break;case 21:break;default:qn(l,s),Xn(s)}}function Xn(s){var l=s.flags;if(l&2){try{for(var d,h=s.return;h!==null;){if(kM(h)){d=h;break}h=h.return}if(d==null)throw Error(r(160));switch(d.tag){case 27:var b=d.stateNode,v=j0(s);zh(s,v,b);break;case 5:var k=d.stateNode;d.flags&32&&(gl(k,""),d.flags&=-33);var D=j0(s);zh(s,D,k);break;case 3:case 4:var V=d.stateNode.containerInfo,K=j0(s);O0(s,K,V);break;default:throw Error(r(161))}}catch(te){ot(s,s.return,te)}s.flags&=-3}l&4096&&(s.flags&=-4097)}function _M(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var l=s;_M(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),s=s.sibling}}function mi(s,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)RM(s,l.alternate,l),l=l.sibling}function no(s){for(s=s.child;s!==null;){var l=s;switch(l.tag){case 0:case 11:case 14:case 15:Yi(4,l,l.return),no(l);break;case 1:pa(l,l.return);var d=l.stateNode;typeof d.componentWillUnmount=="function"&&MM(l,l.return,d),no(l);break;case 27:Xu(l.stateNode);case 26:case 5:pa(l,l.return),no(l);break;case 22:l.memoizedState===null&&no(l);break;case 30:no(l);break;default:no(l)}s=s.sibling}}function pi(s,l,d){for(d=d&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var h=l.alternate,b=s,v=l,k=v.flags;switch(v.tag){case 0:case 11:case 15:pi(b,v,d),Vu(4,v);break;case 1:if(pi(b,v,d),h=v,b=h.stateNode,typeof b.componentDidMount=="function")try{b.componentDidMount()}catch(K){ot(h,h.return,K)}if(h=v,b=h.updateQueue,b!==null){var D=h.stateNode;try{var V=b.shared.hiddenCallbacks;if(V!==null)for(b.shared.hiddenCallbacks=null,b=0;b<V.length;b++)f2(V[b],D)}catch(K){ot(h,h.return,K)}}d&&k&64&&AM(v),Pu(v,v.return);break;case 27:EM(v);case 26:case 5:pi(b,v,d),d&&h===null&&k&4&&TM(v),Pu(v,v.return);break;case 12:pi(b,v,d);break;case 31:pi(b,v,d),d&&k&4&&NM(b,v);break;case 13:pi(b,v,d),d&&k&4&&jM(b,v);break;case 22:v.memoizedState===null&&pi(b,v,d),Pu(v,v.return);break;case 30:break;default:pi(b,v,d)}l=l.sibling}}function I0(s,l){var d=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(d=s.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==d&&(s!=null&&s.refCount++,d!=null&&ku(d))}function B0(s,l){s=null,l.alternate!==null&&(s=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==s&&(l.refCount++,s!=null&&ku(s))}function Kr(s,l,d,h){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)IM(s,l,d,h),l=l.sibling}function IM(s,l,d,h){var b=l.flags;switch(l.tag){case 0:case 11:case 15:Kr(s,l,d,h),b&2048&&Vu(9,l);break;case 1:Kr(s,l,d,h);break;case 3:Kr(s,l,d,h),b&2048&&(s=null,l.alternate!==null&&(s=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==s&&(l.refCount++,s!=null&&ku(s)));break;case 12:if(b&2048){Kr(s,l,d,h),s=l.stateNode;try{var v=l.memoizedProps,k=v.id,D=v.onPostCommit;typeof D=="function"&&D(k,l.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(V){ot(l,l.return,V)}}else Kr(s,l,d,h);break;case 31:Kr(s,l,d,h);break;case 13:Kr(s,l,d,h);break;case 23:break;case 22:v=l.stateNode,k=l.alternate,l.memoizedState!==null?v._visibility&2?Kr(s,l,d,h):$u(s,l):v._visibility&2?Kr(s,l,d,h):(v._visibility|=2,Il(s,l,d,h,(l.subtreeFlags&10256)!==0||!1)),b&2048&&I0(k,l);break;case 24:Kr(s,l,d,h),b&2048&&B0(l.alternate,l);break;default:Kr(s,l,d,h)}}function Il(s,l,d,h,b){for(b=b&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var v=s,k=l,D=d,V=h,K=k.flags;switch(k.tag){case 0:case 11:case 15:Il(v,k,D,V,b),Vu(8,k);break;case 23:break;case 22:var te=k.stateNode;k.memoizedState!==null?te._visibility&2?Il(v,k,D,V,b):$u(v,k):(te._visibility|=2,Il(v,k,D,V,b)),b&&K&2048&&I0(k.alternate,k);break;case 24:Il(v,k,D,V,b),b&&K&2048&&B0(k.alternate,k);break;default:Il(v,k,D,V,b)}l=l.sibling}}function $u(s,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var d=s,h=l,b=h.flags;switch(h.tag){case 22:$u(d,h),b&2048&&I0(h.alternate,h);break;case 24:$u(d,h),b&2048&&B0(h.alternate,h);break;default:$u(d,h)}l=l.sibling}}var Fu=8192;function Bl(s,l,d){if(s.subtreeFlags&Fu)for(s=s.child;s!==null;)BM(s,l,d),s=s.sibling}function BM(s,l,d){switch(s.tag){case 26:Bl(s,l,d),s.flags&Fu&&s.memoizedState!==null&&lV(d,Xr,s.memoizedState,s.memoizedProps);break;case 5:Bl(s,l,d);break;case 3:case 4:var h=Xr;Xr=Jh(s.stateNode.containerInfo),Bl(s,l,d),Xr=h;break;case 22:s.memoizedState===null&&(h=s.alternate,h!==null&&h.memoizedState!==null?(h=Fu,Fu=16777216,Bl(s,l,d),Fu=h):Bl(s,l,d));break;default:Bl(s,l,d)}}function zM(s){var l=s.alternate;if(l!==null&&(s=l.child,s!==null)){l.child=null;do l=s.sibling,s.sibling=null,s=l;while(s!==null)}}function Hu(s){var l=s.deletions;if((s.flags&16)!==0){if(l!==null)for(var d=0;d<l.length;d++){var h=l[d];ln=h,PM(h,s)}zM(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)VM(s),s=s.sibling}function VM(s){switch(s.tag){case 0:case 11:case 15:Hu(s),s.flags&2048&&Yi(9,s,s.return);break;case 3:Hu(s);break;case 12:Hu(s);break;case 22:var l=s.stateNode;s.memoizedState!==null&&l._visibility&2&&(s.return===null||s.return.tag!==13)?(l._visibility&=-3,Ph(s)):Hu(s);break;default:Hu(s)}}function Ph(s){var l=s.deletions;if((s.flags&16)!==0){if(l!==null)for(var d=0;d<l.length;d++){var h=l[d];ln=h,PM(h,s)}zM(s)}for(s=s.child;s!==null;){switch(l=s,l.tag){case 0:case 11:case 15:Yi(8,l,l.return),Ph(l);break;case 22:d=l.stateNode,d._visibility&2&&(d._visibility&=-3,Ph(l));break;default:Ph(l)}s=s.sibling}}function PM(s,l){for(;ln!==null;){var d=ln;switch(d.tag){case 0:case 11:case 15:Yi(8,d,l);break;case 23:case 22:if(d.memoizedState!==null&&d.memoizedState.cachePool!==null){var h=d.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:ku(d.memoizedState.cache)}if(h=d.child,h!==null)h.return=d,ln=h;else e:for(d=s;ln!==null;){h=ln;var b=h.sibling,v=h.return;if(LM(h),h===d){ln=null;break e}if(b!==null){b.return=v,ln=b;break e}ln=v}}}var Az={getCacheForType:function(s){var l=vn(Qt),d=l.data.get(s);return d===void 0&&(d=s(),l.data.set(s,d)),d},cacheSignal:function(){return vn(Qt).controller.signal}},Mz=typeof WeakMap=="function"?WeakMap:Map,Je=0,ht=null,Ve=null,$e=0,st=0,dr=null,Wi=!1,zl=!1,z0=!1,gi=0,_t=0,qi=0,ro=0,V0=0,fr=0,Vl=0,Uu=null,Kn=null,P0=!1,$h=0,$M=0,Fh=1/0,Hh=null,Xi=null,an=0,Ki=null,Pl=null,yi=0,$0=0,F0=null,FM=null,Gu=0,H0=null;function hr(){return(Je&2)!==0&&$e!==0?$e&-$e:B.T!==null?X0():Ge()}function HM(){if(fr===0)if(($e&536870912)===0||Ue){var s=Ur;Ur<<=1,(Ur&3932160)===0&&(Ur=262144),fr=s}else fr=536870912;return s=cr.current,s!==null&&(s.flags|=32),fr}function Qn(s,l,d){(s===ht&&(st===2||st===9)||s.cancelPendingCommit!==null)&&($l(s,0),Qi(s,$e,fr,!1)),Vs(s,d),((Je&2)===0||s!==ht)&&(s===ht&&((Je&2)===0&&(ro|=d),_t===4&&Qi(s,$e,fr,!1)),ga(s))}function UM(s,l,d){if((Je&6)!==0)throw Error(r(327));var h=!d&&(l&127)===0&&(l&s.expiredLanes)===0||Bs(s,l),b=h?Ez(s,l):G0(s,l,!0),v=h;do{if(b===0){zl&&!h&&Qi(s,l,0,!1);break}
vendor: 16,221 bytes, line 48
48else{if(d=s.current.alternate,v&&!Tz(d)){b=G0(s,l,!1),v=!1;continue}if(b===2){if(v=l,s.errorRecoveryDisabledLanes&v)var k=0;else k=s.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){l=k;e:{var D=s;b=Uu;var V=D.current.memoizedState.isDehydrated;if(V&&($l(D,k).flags|=256),k=G0(D,k,!1),k!==2){if(z0&&!V){D.errorRecoveryDisabledLanes|=v,ro|=v,b=4;break e}v=Kn,Kn=b,v!==null&&(Kn===null?Kn=v:Kn.push.apply(Kn,v))}b=k}if(v=!1,b!==2)continue}}if(b===1){$l(s,0),Qi(s,l,0,!0);break}e:{switch(h=s,v=b,v){case 0:case 1:throw Error(r(345));case 4:if((l&4194048)!==l)break;case 6:Qi(h,l,fr,!Wi);break e;case 2:Kn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(b=$h+300-Mn(),10<b)){if(Qi(h,l,fr,!Wi),fl(h,0,!0)!==0)break e;yi=l,h.timeoutHandle=wT(GM.bind(null,h,d,Kn,Hh,P0,l,fr,ro,Vl,Wi,v,"Throttled",-0,0),b);break e}GM(h,d,Kn,Hh,P0,l,fr,ro,Vl,Wi,v,null,-0,0)}}break}while(!0);ga(s)}function GM(s,l,d,h,b,v,k,D,V,K,te,ie,Q,J){if(s.timeoutHandle=-1,ie=l.subtreeFlags,ie&8192||(ie&16785408)===16785408){ie={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ni},BM(l,v,ie);var xe=(v&62914560)===v?$h-Mn():(v&4194048)===v?$M-Mn():0;if(xe=cV(ie,xe),xe!==null){yi=v,s.cancelPendingCommit=xe(JM.bind(null,s,l,v,d,h,b,k,D,V,te,ie,null,Q,J)),Qi(s,v,k,!K);return}}JM(s,l,v,d,h,b,k,D,V)}function Tz(s){for(var l=s;;){var d=l.tag;if((d===0||d===11||d===15)&&l.flags&16384&&(d=l.updateQueue,d!==null&&(d=d.stores,d!==null)))for(var h=0;h<d.length;h++){var b=d[h],v=b.getSnapshot;b=b.value;try{if(!or(v(),b))return!1}catch{return!1}}if(d=l.child,l.subtreeFlags&16384&&d!==null)d.return=l,l=d;else{if(l===s)break;for(;l.sibling===null;){if(l.return===null||l.return===s)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Qi(s,l,d,h){l&=~V0,l&=~ro,s.suspendedLanes|=l,s.pingedLanes&=~l,h&&(s.warmLanes|=l),h=s.expirationTimes;for(var b=l;0<b;){var v=31-jn(b),k=1<<v;h[v]=-1,b&=~k}d!==0&&Jf(s,d,l)}function Uh(){return(Je&6)===0?(Yu(0),!1):!0}function U0(){if(Ve!==null){if(st===0)var s=Ve.return;else s=Ve,si=qs=null,s0(s),Dl=null,Cu=0,s=Ve;for(;s!==null;)SM(s.alternate,s),s=s.return;Ve=null}}function $l(s,l){var d=s.timeoutHandle;d!==-1&&(s.timeoutHandle=-1,Gz(d)),d=s.cancelPendingCommit,d!==null&&(s.cancelPendingCommit=null,d()),yi=0,U0(),ht=s,Ve=d=ai(s.current,null),$e=l,st=0,dr=null,Wi=!1,zl=Bs(s,l),z0=!1,Vl=fr=V0=ro=qi=_t=0,Kn=Uu=null,P0=!1,(l&8)!==0&&(l|=l&32);var h=s.entangledLanes;if(h!==0)for(s=s.entanglements,h&=l;0<h;){var b=31-jn(h),v=1<<b;l|=s[b],h&=~v}return gi=l,dh(),d}function YM(s,l){_e=null,B.H=Iu,l===Ll||l===vh?(l=l2(),st=3):l===qy?(l=l2(),st=4):st=l===S0?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,dr=l,Ve===null&&(_t=1,jh(s,Dr(l,s.current)))}function WM(){var s=cr.current;return s===null?!0:($e&4194048)===$e?_r===null:($e&62914560)===$e||($e&536870912)!==0?s===_r:!1}function qM(){var s=B.H;return B.H=Iu,s===null?Iu:s}function XM(){var s=B.A;return B.A=Az,s}function Gh(){_t=4,Wi||($e&4194048)!==$e&&cr.current!==null||(zl=!0),(qi&134217727)===0&&(ro&134217727)===0||ht===null||Qi(ht,$e,fr,!1)}function G0(s,l,d){var h=Je;Je|=2;var b=qM(),v=XM();(ht!==s||$e!==l)&&(Hh=null,$l(s,l)),l=!1;var k=_t;e:do try{if(st!==0&&Ve!==null){var D=Ve,V=dr;switch(st){case 8:U0(),k=6;break e;case 3:case 2:case 9:case 6:cr.current===null&&(l=!0);var K=st;if(st=0,dr=null,Fl(s,D,V,K),d&&zl){k=0;break e}break;default:K=st,st=0,dr=null,Fl(s,D,V,K)}}kz(),k=_t;break}catch(te){YM(s,te)}while(!0);return l&&s.shellSuspendCounter++,si=qs=null,Je=h,B.H=b,B.A=v,Ve===null&&(ht=null,$e=0,dh()),k}function kz(){for(;Ve!==null;)KM(Ve)}function Ez(s,l){var d=Je;Je|=2;var h=qM(),b=XM();ht!==s||$e!==l?(Hh=null,Fh=Mn()+500,$l(s,l)):zl=Bs(s,l);e:do try{if(st!==0&&Ve!==null){l=Ve;var v=dr;t:switch(st){case 1:st=0,dr=null,Fl(s,l,v,1);break;case 2:case 9:if(s2(v)){st=0,dr=null,QM(l);break}l=function(){st!==2&&st!==9||ht!==s||(st=7),ga(s)},v.then(l,l);break e;case 3:st=7;break e;case 4:st=5;break e;case 7:s2(v)?(st=0,dr=null,QM(l)):(st=0,dr=null,Fl(s,l,v,7));break;case 5:var k=null;switch(Ve.tag){case 26:k=Ve.memoizedState;case 5:case 27:var D=Ve;if(k?IT(k):D.stateNode.complete){st=0,dr=null;var V=D.sibling;if(V!==null)Ve=V;else{var K=D.return;K!==null?(Ve=K,Yh(K)):Ve=null}break t}}st=0,dr=null,Fl(s,l,v,5);break;case 6:st=0,dr=null,Fl(s,l,v,6);break;case 8:U0(),_t=6;break e;default:throw Error(r(462))}}Cz();break}catch(te){YM(s,te)}while(!0);return si=qs=null,B.H=h,B.A=b,Je=d,Ve!==null?0:(ht=null,$e=0,dh(),_t)}function Cz(){for(;Ve!==null&&!on();)KM(Ve)}function KM(s){var l=xM(s.alternate,s,gi);s.memoizedProps=s.pendingProps,l===null?Yh(s):Ve=l}function QM(s){var l=s,d=l.alternate;switch(l.tag){case 15:case 0:l=mM(d,l,l.pendingProps,l.type,void 0,$e);break;case 11:l=mM(d,l,l.pendingProps,l.type.render,l.ref,$e);break;case 5:s0(l);default:SM(d,l),l=Ve=XA(l,gi),l=xM(d,l,gi)}s.memoizedProps=s.pendingProps,l===null?Yh(s):Ve=l}function Fl(s,l,d,h){si=qs=null,s0(l),Dl=null,Cu=0;var b=l.return;try{if(gz(s,b,l,d,$e)){_t=1,jh(s,Dr(d,s.current)),Ve=null;return}}catch(v){if(b!==null)throw Ve=b,v;_t=1,jh(s,Dr(d,s.current)),Ve=null;return}l.flags&32768?(Ue||h===1?s=!0:zl||($e&536870912)!==0?s=!1:(Wi=s=!0,(h===2||h===9||h===3||h===6)&&(h=cr.current,h!==null&&h.tag===13&&(h.flags|=16384))),ZM(l,s)):Yh(l)}function Yh(s){var l=s;do{if((l.flags&32768)!==0){ZM(l,Wi);return}s=l.return;var d=vz(l.alternate,l,gi);if(d!==null){Ve=d;return}if(l=l.sibling,l!==null){Ve=l;return}Ve=l=s}while(l!==null);_t===0&&(_t=5)}function ZM(s,l){do{var d=xz(s.alternate,s);if(d!==null){d.flags&=32767,Ve=d;return}if(d=s.return,d!==null&&(d.flags|=32768,d.subtreeFlags=0,d.deletions=null),!l&&(s=s.sibling,s!==null)){Ve=s;return}Ve=s=d}while(s!==null);_t=6,Ve=null}function JM(s,l,d,h,b,v,k,D,V){s.cancelPendingCommit=null;do Wh();while(an!==0);if((Je&6)!==0)throw Error(r(327));if(l!==null){if(l===s.current)throw Error(r(177));if(v=l.lanes|l.childLanes,v|=jy,dy(s,d,v,k,D,V),s===ht&&(Ve=ht=null,$e=0),Pl=l,Ki=s,yi=d,$0=v,F0=b,FM=h,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,Nz(da,function(){return aT(),null})):(s.callbackNode=null,s.callbackPriority=0),h=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||h){h=B.T,B.T=null,b=G.p,G.p=2,k=Je,Je|=4;try{wz(s,l,d)}finally{Je=k,G.p=b,B.T=h}}an=1,eT(),tT(),nT()}}function eT(){if(an===1){an=0;var s=Ki,l=Pl,d=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||d){d=B.T,B.T=null;var h=G.p;G.p=2;var b=Je;Je|=4;try{OM(l,s);var v=rb,k=PA(s.containerInfo),D=v.focusedElem,V=v.selectionRange;if(k!==D&&D&&D.ownerDocument&&VA(D.ownerDocument.documentElement,D)){if(V!==null&&Cy(D)){var K=V.start,te=V.end;if(te===void 0&&(te=K),"selectionStart"in D)D.selectionStart=K,D.selectionEnd=Math.min(te,D.value.length);else{var ie=D.ownerDocument||document,Q=ie&&ie.defaultView||window;if(Q.getSelection){var J=Q.getSelection(),xe=D.textContent.length,Ee=Math.min(V.start,xe),ut=V.end===void 0?Ee:Math.min(V.end,xe);!J.extend&&Ee>ut&&(k=ut,ut=Ee,Ee=k);var Y=zA(D,Ee),H=zA(D,ut);if(Y&&H&&(J.rangeCount!==1||J.anchorNode!==Y.node||J.anchorOffset!==Y.offset||J.focusNode!==H.node||J.focusOffset!==H.offset)){var X=ie.createRange();X.setStart(Y.node,Y.offset),J.removeAllRanges(),Ee>ut?(J.addRange(X),J.extend(H.node,H.offset)):(X.setEnd(H.node,H.offset),J.addRange(X))}}}}for(ie=[],J=D;J=J.parentNode;)J.nodeType===1&&ie.push({element:J,left:J.scrollLeft,top:J.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;D<ie.length;D++){var ae=ie[D];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}im=!!nb,rb=nb=null}finally{Je=b,G.p=h,B.T=d}}s.current=l,an=2}}function tT(){if(an===2){an=0;var s=Ki,l=Pl,d=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||d){d=B.T,B.T=null;var h=G.p;G.p=2;var b=Je;Je|=4;try{RM(s,l.alternate,l)}finally{Je=b,G.p=h,B.T=d}}an=3}}function nT(){if(an===4||an===3){an=0,ly();var s=Ki,l=Pl,d=yi,h=FM;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?an=5:(an=0,Pl=Ki=null,rT(s,s.pendingLanes));var b=s.pendingLanes;if(b===0&&(Xi=null),ye(d),l=l.stateNode,Nn&&typeof Nn.onCommitFiberRoot=="function")try{Nn.onCommitFiberRoot(_s,l,void 0,(l.current.flags&128)===128)}catch{}if(h!==null){l=B.T,b=G.p,G.p=2,B.T=null;try{for(var v=s.onRecoverableError,k=0;k<h.length;k++){var D=h[k];v(D.value,{componentStack:D.stack})}}finally{B.T=l,G.p=b}}(yi&3)!==0&&Wh(),ga(s),b=s.pendingLanes,(d&261930)!==0&&(b&42)!==0?s===H0?Gu++:(Gu=0,H0=s):Gu=0,Yu(0)}}function rT(s,l){(s.pooledCacheLanes&=l)===0&&(l=s.pooledCache,l!=null&&(s.pooledCache=null,ku(l)))}function Wh(){return eT(),tT(),nT(),aT()}function aT(){if(an!==5)return!1;var s=Ki,l=$0;$0=0;var d=ye(yi),h=B.T,b=G.p;try{G.p=32>d?32:d,B.T=null,d=F0,F0=null;var v=Ki,k=yi;if(an=0,Pl=Ki=null,yi=0,(Je&6)!==0)throw Error(r(331));var D=Je;if(Je|=4,VM(v.current),IM(v,v.current,k,d),Je=D,Yu(0,!1),Nn&&typeof Nn.onPostCommitFiberRoot=="function")try{Nn.onPostCommitFiberRoot(_s,v)}catch{}return!0}finally{G.p=b,B.T=h,rT(s,l)}}function iT(s,l,d){l=Dr(d,l),l=w0(s.stateNode,l,2),s=Hi(s,l,2),s!==null&&(Vs(s,2),ga(s))}function ot(s,l,d){if(s.tag===3)iT(s,s,d);else for(;l!==null;){if(l.tag===3){iT(l,s,d);break}else if(l.tag===1){var h=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Xi===null||!Xi.has(h))){s=Dr(d,s),d=sM(2),h=Hi(l,d,2),h!==null&&(oM(d,h,l,s),Vs(h,2),ga(h));break}}l=l.return}}function Y0(s,l,d){var h=s.pingCache;if(h===null){h=s.pingCache=new Mz;var b=new Set;h.set(l,b)}else b=h.get(l),b===void 0&&(b=new Set,h.set(l,b));b.has(d)||(z0=!0,b.add(d),s=Rz.bind(null,s,l,d),l.then(s,s))}function Rz(s,l,d){var h=s.pingCache;h!==null&&h.delete(l),s.pingedLanes|=s.suspendedLanes&d,s.warmLanes&=~d,ht===s&&($e&d)===d&&(_t===4||_t===3&&($e&62914560)===$e&&300>Mn()-$h?(Je&2)===0&&$l(s,0):V0|=d,Vl===$e&&(Vl=0)),ga(s)}function sT(s,l){l===0&&(l=mu()),s=Gs(s,l),s!==null&&(Vs(s,l),ga(s))}function Lz(s){var l=s.memoizedState,d=0;l!==null&&(d=l.retryLane),sT(s,d)}function Dz(s,l){var d=0;switch(s.tag){case 31:case 13:var h=s.stateNode,b=s.memoizedState;b!==null&&(d=b.retryLane);break;case 19:h=s.stateNode;break;case 22:h=s.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(l),sT(s,d)}function Nz(s,l){return Oi(s,l)}var qh=null,Hl=null,W0=!1,Xh=!1,q0=!1,Zi=0;function ga(s){s!==Hl&&s.next===null&&(Hl===null?qh=Hl=s:Hl=Hl.next=s),Xh=!0,W0||(W0=!0,Oz())}function Yu(s,l){if(!q0&&Xh){q0=!0;do for(var d=!1,h=qh;h!==null;){if(s!==0){var b=h.pendingLanes;if(b===0)var v=0;else{var k=h.suspendedLanes,D=h.pingedLanes;v=(1<<31-jn(42|s)+1)-1,v&=b&~(k&~D),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(d=!0,uT(h,v))}else v=$e,v=fl(h,h===ht?v:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(v&3)===0||Bs(h,v)||(d=!0,uT(h,v));h=h.next}while(d);q0=!1}}function jz(){oT()}function oT(){Xh=W0=!1;var s=0;Zi!==0&&Uz()&&(s=Zi);for(var l=Mn(),d=null,h=qh;h!==null;){var b=h.next,v=lT(h,l);v===0?(h.next=null,d===null?qh=b:d.next=b,b===null&&(Hl=d)):(d=h,(s!==0||(v&3)!==0)&&(Xh=!0)),h=b}an!==0&&an!==5||Yu(s),Zi!==0&&(Zi=0)}function lT(s,l){for(var d=s.suspendedLanes,h=s.pingedLanes,b=s.expirationTimes,v=s.pendingLanes&-62914561;0<v;){var k=31-jn(v),D=1<<k,V=b[k];V===-1?((D&d)===0||(D&h)!==0)&&(b[k]=hu(D,l)):V<=l&&(s.expiredLanes|=D),v&=~D}if(l=ht,d=$e,d=fl(s,s===l?d:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),h=s.callbackNode,d===0||s===l&&(st===2||st===9)||s.cancelPendingCommit!==null)return h!==null&&h!==null&&Os(h),s.callbackNode=null,s.callbackPriority=0;if((d&3)===0||Bs(s,d)){if(l=d&-d,l===s.callbackPriority)return l;switch(h!==null&&Os(h),ye(d)){case 2:case 8:d=Qf;break;case 32:d=da;break;case 268435456:d=Zf;break;default:d=da}return h=cT.bind(null,s),d=Oi(d,h),s.callbackPriority=l,s.callbackNode=d,l}return h!==null&&h!==null&&Os(h),s.callbackPriority=2,s.callbackNode=null,2}function cT(s,l){if(an!==0&&an!==5)return s.callbackNode=null,s.callbackPriority=0,null;var d=s.callbackNode;if(Wh()&&s.callbackNode!==d)return null;var h=$e;return h=fl(s,s===ht?h:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),h===0?null:(UM(s,h,l),lT(s,Mn()),s.callbackNode!=null&&s.callbackNode===d?cT.bind(null,s):null)}function uT(s,l){if(Wh())return null;UM(s,l,!0)}function Oz(){Yz(function(){(Je&6)!==0?Oi(Kf,jz):oT()})}function X0(){if(Zi===0){var s=Cl;s===0&&(s=Is,Is<<=1,(Is&261888)===0&&(Is=256)),Zi=s}return Zi}function dT(s){return s==null||typeof s=="symbol"||typeof s=="boolean"?null:typeof s=="function"?s:rh(""+s)}function fT(s,l){var d=l.ownerDocument.createElement("input");return d.name=l.name,d.value=l.value,s.id&&d.setAttribute("form",s.id),l.parentNode.insertBefore(d,l),s=new FormData(s),d.parentNode.removeChild(d),s}function _z(s,l,d,h,b){if(l==="submit"&&d&&d.stateNode===b){var v=dT((b[vt]||null).action),k=h.submitter;k&&(l=(l=k[vt]||null)?dT(l.formAction):k.getAttribute("formAction"),l!==null&&(v=l,k=null));var D=new oh("action","action",null,h,b);s.push({event:D,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(Zi!==0){var V=k?fT(b,k):new FormData(b);p0(d,{pending:!0,data:V,method:b.method,action:v},null,V)}}else typeof v=="function"&&(D.preventDefault(),V=k?fT(b,k):new FormData(b),p0(d,{pending:!0,data:V,method:b.method,action:v},v,V))},currentTarget:b}]})}}for(var K0=0;K0<Ny.length;K0++){var Q0=Ny[K0],Iz=Q0.toLowerCase(),Bz=Q0[0].toUpperCase()+Q0.slice(1);qr(Iz,"on"+Bz)}qr(HA,"onAnimationEnd"),qr(UA,"onAnimationIteration"),qr(GA,"onAnimationStart"),qr("dblclick","onDoubleClick"),qr("focusin","onFocus"),qr("focusout","onBlur"),qr(JB,"onTransitionRun"),qr(ez,"onTransitionStart"),qr(tz,"onTransitionCancel"),qr(YA,"onTransitionEnd"),gn("onMouseEnter",["mouseout","mouseover"]),gn("onMouseLeave",["mouseout","mouseover"]),gn("onPointerEnter",["pointerout","pointerover"]),gn("onPointerLeave",["pointerout","pointerover"]),Pt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),zz=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Wu));function hT(s,l){l=(l&4)!==0;for(var d=0;d<s.length;d++){var h=s[d],b=h.event;h=h.listeners;e:{var v=void 0;if(l)for(var k=h.length-1;0<=k;k--){var D=h[k],V=D.instance,K=D.currentTarget;if(D=D.listener,V!==v&&b.isPropagationStopped())break e;v=D,b.currentTarget=K;try{v(b)}catch(te){uh(te)}b.currentTarget=null,v=V}else for(k=0;k<h.length;k++){if(D=h[k],V=D.instance,K=D.currentTarget,D=D.listener,V!==v&&b.isPropagationStopped())break e;v=D,b.currentTarget=K;try{v(b)}catch(te){uh(te)}b.currentTarget=null,v=V}}}}function Pe(s,l){var d=l[Qa];d===void 0&&(d=l[Qa]=new Set);var h=s+"__bubble";d.has(h)||(mT(l,s,2,!1),d.add(h))}function Z0(s,l,d){var h=0;l&&(h|=4),mT(d,s,h,l)}var Kh="_reactListening"+Math.random().toString(36).slice(2);function J0(s){if(!s[Kh]){s[Kh]=!0,xt.forEach(function(d){d!=="selectionchange"&&(zz.has(d)||Z0(d,!1,s),Z0(d,!0,s))});var l=s.nodeType===9?s:s.ownerDocument;l===null||l[Kh]||(l[Kh]=!0,Z0("selectionchange",!1,l))}}function mT(s,l,d,h){switch(HT(l)){case 2:var b=fV;break;case 8:b=hV;break;default:b=mb}d=b.bind(null,l,d,s),b=void 0,!vy||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(b=!0),h?b!==void 0?s.addEventListener(l,d,{capture:!0,passive:b}):s.addEventListener(l,d,!0):b!==void 0?s.addEventListener(l,d,{passive:b}):s.addEventListener(l,d,!1)}function eb(s,l,d,h,b){var v=h;if((l&1)===0&&(l&2)===0&&h!==null)e:for(;;){if(h===null)return;var k=h.tag;if(k===3||k===4){var D=h.stateNode.containerInfo;
vendor: 2,687 bytes, line 48
48if(D===b)break;if(k===4)for(k=h.return;k!==null;){var V=k.tag;if((V===3||V===4)&&k.stateNode.containerInfo===b)return;k=k.return}for(;D!==null;){if(k=ei(D),k===null)return;if(V=k.tag,V===5||V===6||V===26||V===27){h=v=k;continue e}D=D.parentNode}}h=h.return}vA(function(){var K=v,te=yy(d),ie=[];e:{var Q=WA.get(s);if(Q!==void 0){var J=oh,xe=s;switch(s){case"keypress":if(ih(d)===0)break e;case"keydown":case"keyup":J=DB;break;case"focusin":xe="focus",J=Ay;break;case"focusout":xe="blur",J=Ay;break;case"beforeblur":case"afterblur":J=Ay;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=SA;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=vB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=OB;break;case HA:case UA:case GA:J=SB;break;case YA:J=IB;break;case"scroll":case"scrollend":J=yB;break;case"wheel":J=zB;break;case"copy":case"cut":case"paste":J=MB;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=MA;break;case"toggle":case"beforetoggle":J=PB}var Ee=(l&4)!==0,ut=!Ee&&(s==="scroll"||s==="scrollend"),Y=Ee?Q!==null?Q+"Capture":null:Q;Ee=[];for(var H=K,X;H!==null;){var ae=H;if(X=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||X===null||Y===null||(ae=pu(H,Y),ae!=null&&Ee.push(qu(H,ae,X))),ut)break;H=H.return}0<Ee.length&&(Q=new J(Q,xe,null,d,te),ie.push({event:Q,listeners:Ee}))}}if((l&7)===0){e:{if(Q=s==="mouseover"||s==="pointerover",J=s==="mouseout"||s==="pointerout",Q&&d!==gy&&(xe=d.relatedTarget||d.fromElement)&&(ei(xe)||xe[sr]))break e;if((J||Q)&&(Q=te.window===te?te:(Q=te.ownerDocument)?Q.defaultView||Q.parentWindow:window,J?(xe=d.relatedTarget||d.toElement,J=K,xe=xe?ei(xe):null,xe!==null&&(ut=i(xe),Ee=xe.tag,xe!==ut||Ee!==5&&Ee!==27&&Ee!==6)&&(xe=null)):(J=null,xe=K),J!==xe)){if(Ee=SA,ae="onMouseLeave",Y="onMouseEnter",H="mouse",(s==="pointerout"||s==="pointerover")&&(Ee=MA,ae="onPointerLeave",Y="onPointerEnter",H="pointer"),ut=J==null?Q:Gn(J),X=xe==null?Q:Gn(xe),Q=new Ee(ae,H+"leave",J,d,te),Q.target=ut,Q.relatedTarget=X,ae=null,ei(te)===K&&(Ee=new Ee(Y,H+"enter",xe,d,te),Ee.target=X,Ee.relatedTarget=ut,ae=Ee),ut=ae,J&&xe)t:{for(Ee=Vz,Y=J,H=xe,X=0,ae=Y;ae;ae=Ee(ae))X++;ae=0;for(var Te=H;Te;Te=Ee(Te))ae++;for(;0<X-ae;)Y=Ee(Y),X--;for(;0<ae-X;)H=Ee(H),ae--;for(;X--;){if(Y===H||H!==null&&Y===H.alternate){Ee=Y;break t}Y=Ee(Y),H=Ee(H)}Ee=null}else Ee=null;J!==null&&pT(ie,Q,J,Ee,!1),xe!==null&&ut!==null&&pT(ie,ut,xe,Ee,!0)}}
vendor: 5,203 bytes, lines 48-49
48e:{if(Q=K?Gn(K):window,J=Q.nodeName&&Q.nodeName.toLowerCase(),J==="select"||J==="input"&&Q.type==="file")var qe=NA;else if(LA(Q))if(jA)qe=KB;else{qe=qB;var Me=WB}else J=Q.nodeName,!J||J.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?K&&py(K.elementType)&&(qe=NA):qe=XB;if(qe&&(qe=qe(s,K))){DA(ie,qe,d,te);break e}Me&&Me(s,Q,K),s==="focusout"&&K&&Q.type==="number"&&K.memoizedProps.value!=null&&my(Q,"number",Q.value)}switch(Me=K?Gn(K):window,s){case"focusin":(LA(Me)||Me.contentEditable==="true")&&(xl=Me,Ry=K,Au=null);break;case"focusout":Au=Ry=xl=null;break;case"mousedown":Ly=!0;break;case"contextmenu":case"mouseup":case"dragend":Ly=!1,$A(ie,d,te);break;case"selectionchange":if(ZB)break;case"keydown":case"keyup":$A(ie,d,te)}var Ie;if(Ty)e:{switch(s){case"compositionstart":var Fe="onCompositionStart";break e;case"compositionend":Fe="onCompositionEnd";break e;case"compositionupdate":Fe="onCompositionUpdate";break e}Fe=void 0}else vl?CA(s,d)&&(Fe="onCompositionEnd"):s==="keydown"&&d.keyCode===229&&(Fe="onCompositionStart");Fe&&(TA&&d.locale!=="ko"&&(vl||Fe!=="onCompositionStart"?Fe==="onCompositionEnd"&&vl&&(Ie=xA()):(Ii=te,xy="value"in Ii?Ii.value:Ii.textContent,vl=!0)),Me=Qh(K,Fe),0<Me.length&&(Fe=new AA(Fe,s,null,d,te),ie.push({event:Fe,listeners:Me}),Ie?Fe.data=Ie:(Ie=RA(d),Ie!==null&&(Fe.data=Ie)))),(Ie=FB?HB(s,d):UB(s,d))&&(Fe=Qh(K,"onBeforeInput"),0<Fe.length&&(Me=new AA("onBeforeInput","beforeinput",null,d,te),ie.push({event:Me,listeners:Fe}),Me.data=Ie)),_z(ie,s,K,d,te)}hT(ie,l)})}function qu(s,l,d){return{instance:s,listener:l,currentTarget:d}}function Qh(s,l){for(var d=l+"Capture",h=[];s!==null;){var b=s,v=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||v===null||(b=pu(s,d),b!=null&&h.unshift(qu(s,b,v)),b=pu(s,l),b!=null&&h.push(qu(s,b,v))),s.tag===3)return h;s=s.return}return[]}function Vz(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function pT(s,l,d,h,b){for(var v=l._reactName,k=[];d!==null&&d!==h;){var D=d,V=D.alternate,K=D.stateNode;if(D=D.tag,V!==null&&V===h)break;D!==5&&D!==26&&D!==27||K===null||(V=K,b?(K=pu(d,v),K!=null&&k.unshift(qu(d,K,V))):b||(K=pu(d,v),K!=null&&k.push(qu(d,K,V)))),d=d.return}k.length!==0&&s.push({event:l,listeners:k})}var Pz=/\r\n?/g,$z=/\u0000|\uFFFD/g;function gT(s){return(typeof s=="string"?s:""+s).replace(Pz,` 49`).replace($z,"")}function yT(s,l){return l=gT(l),gT(s)===l}function ct(s,l,d,h,b,v){switch(d){case"children":typeof h=="string"?l==="body"||l==="textarea"&&h===""||gl(s,h):(typeof h=="number"||typeof h=="bigint")&&l!=="body"&&gl(s,""+h);break;case"className":Ct(s,"class",h);break;case"tabIndex":Ct(s,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":Ct(s,d,h);break;case"style":yA(s,h,v);break;case"data":if(l!=="object"){Ct(s,"data",h);break}case"src":case"href":if(h===""&&(l!=="a"||d!=="href")){s.removeAttribute(d);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){s.removeAttribute(d);break}h=rh(""+h),s.setAttribute(d,h);break;case"action":case"formAction":if(typeof h=="function"){s.setAttribute(d,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof v=="function"&&(d==="formAction"?(l!=="input"&&ct(s,l,"name",b.name,b,null),ct(s,l,"formEncType",b.formEncType,b,null),ct(s,l,"formMethod",b.formMethod,b,null),ct(s,l,"formTarget",b.formTarget,b,null)):(ct(s,l,"encType",b.encType,b,null),ct(s,l,"method",b.method,b,null),ct(s,l,"target",b.target,b,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){s.removeAttribute(d);break}h=rh(""+h),s.setAttribute(d,h);break;case"onClick":h!=null&&(s.onclick=ni);break;case"onScroll":h!=null&&Pe("scroll",s);break;case"onScrollEnd":h!=null&&Pe("scrollend",s);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(d=h.__html,d!=null){if(b.children!=null)throw Error(r(60));s.innerHTML=d}}break;case"multiple":s.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":s.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){s.removeAttribute("xlink:href");break}d=rh(""+h),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",d);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?s.setAttribute(d,""+h):s.removeAttribute(d);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?s.setAttribute(d,""):s.removeAttribute(d);break;case"capture":case"download":h===!0?s.setAttribute(d,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?s.setAttribute(d,h):s.removeAttribute(d);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?s.setAttribute(d,h):s.removeAttribute(d);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?s.removeAttribute(d):s.setAttribute(d,h);break;case"popover":Pe("beforetoggle",s),Pe("toggle",s),yn(s,"popover",h);break;case"xlinkActuate":$t(s,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":$t(s,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":$t(s,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":$t(s,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":$t(s,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":$t(s,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":$t(s,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":$t(s,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":$t(s,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":yn(s,"is",h);break;case"innerText":case"textContent":break;default:(!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(d=pB.get(d)||d,yn(s,d,h))}}function tb(s,l,d,h,b,v){switch(d){case"style":yA(s,h,v);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(d=h.__html,d!=null){if(b.children!=null)throw Error(r(60));s.innerHTML=d}}break;case"children":typeof h=="string"?gl(s,h):(typeof h=="number"||typeof h=="bigint")&&gl(s,""+h);break;case"onScroll":h!=null&&Pe("scroll",s);break;case"onScrollEnd":h!=null&&Pe("scrollend",s);break;case"onClick":h!=null&&(s.onclick=ni);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ze.hasOwnProperty(d))e:{if(d[0]==="o"&&d[1]==="n"&&(b=d.endsWith("Capture"),l=d.slice(2,b?d.length-7:void 0),v=s[vt]||null,v=v!=null?v[d]:null,typeof v=="function"&&s.removeEventListener(l,v,b),typeof h=="function")){typeof v!="function"&&v!==null&&(d in s?s[d]=null:s.hasAttribute(d)&&s.removeAttribute(d)),s.addEventListener(l,h,b);break e}d in s?s[d]=h:h===!0?s.setAttribute(d,""):yn(s,d,h)}}}function wn(s,l,d){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pe("error",s),Pe("load",s);var h=!1,b=!1,v;for(v in d)if(d.hasOwnProperty(v)){var k=d[v];if(k!=null)switch(v){case"src":h=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:ct(s,l,v,k,d,null)}}b&&ct(s,l,"srcSet",d.srcSet,d,null),h&&ct(s,l,"src",d.src,d,null);return;case"input":Pe("invalid",s);var D=v=k=b=null,V=null,K=null;for(h in d)if(d.hasOwnProperty(h)){var te=d[h];if(te!=null)switch(h){case"name":b=te;break;case"type":k=te;break;case"checked":V=te;break;case"defaultChecked":K=te;break;case"value":v=te;break;case"defaultValue":D=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(r(137,l));break;default:ct(s,l,h,te,d,null)}}hA(s,v,D,V,K,k,b,!1);return;case"select":Pe("invalid",s),h=k=v=null;for(b in d)if(d.hasOwnProperty(b)&&(D=d[b],D!=null))switch(b){case"value":v=D;break;case"defaultValue":k=D;break;case"multiple":h=D;default:ct(s,l,b,D,d,null)}l=v,d=k,s.multiple=!!h,l!=null?pl(s,!!h,l,!1):d!=null&&pl(s,!!h,d,!0);return;case"textarea":Pe("invalid",s),v=b=h=null;for(k in d)if(d.hasOwnProperty(k)&&(D=d[k],D!=null))switch(k){case"value":h=D;break;case"defaultValue":b=D;break;case"children":v=D;break;case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(91));break;default:ct(s,l,k,D,d,null)}pA(s,h,b,v);return;
vendor: 6,601 bytes, line 49
49case"option":for(V in d)if(d.hasOwnProperty(V)&&(h=d[V],h!=null))switch(V){case"selected":s.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:ct(s,l,V,h,d,null)}return;case"dialog":Pe("beforetoggle",s),Pe("toggle",s),Pe("cancel",s),Pe("close",s);break;case"iframe":case"object":Pe("load",s);break;case"video":case"audio":for(h=0;h<Wu.length;h++)Pe(Wu[h],s);break;case"image":Pe("error",s),Pe("load",s);break;case"details":Pe("toggle",s);break;case"embed":case"source":case"link":Pe("error",s),Pe("load",s);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in d)if(d.hasOwnProperty(K)&&(h=d[K],h!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:ct(s,l,K,h,d,null)}return;default:if(py(l)){for(te in d)d.hasOwnProperty(te)&&(h=d[te],h!==void 0&&tb(s,l,te,h,d,void 0));return}}for(D in d)d.hasOwnProperty(D)&&(h=d[D],h!=null&&ct(s,l,D,h,d,null))}function Fz(s,l,d,h){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,v=null,k=null,D=null,V=null,K=null,te=null;for(J in d){var ie=d[J];if(d.hasOwnProperty(J)&&ie!=null)switch(J){case"checked":break;case"value":break;case"defaultValue":V=ie;default:h.hasOwnProperty(J)||ct(s,l,J,null,h,ie)}}for(var Q in h){var J=h[Q];if(ie=d[Q],h.hasOwnProperty(Q)&&(J!=null||ie!=null))switch(Q){case"type":v=J;break;case"name":b=J;break;case"checked":K=J;break;case"defaultChecked":te=J;break;case"value":k=J;break;case"defaultValue":D=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(r(137,l));break;default:J!==ie&&ct(s,l,Q,J,h,ie)}}hy(s,k,D,V,K,te,v,b);return;case"select":J=k=D=Q=null;for(v in d)if(V=d[v],d.hasOwnProperty(v)&&V!=null)switch(v){case"value":break;case"multiple":J=V;default:h.hasOwnProperty(v)||ct(s,l,v,null,h,V)}for(b in h)if(v=h[b],V=d[b],h.hasOwnProperty(b)&&(v!=null||V!=null))switch(b){case"value":Q=v;break;case"defaultValue":D=v;break;case"multiple":k=v;default:v!==V&&ct(s,l,b,v,h,V)}l=D,d=k,h=J,Q!=null?pl(s,!!d,Q,!1):!!h!=!!d&&(l!=null?pl(s,!!d,l,!0):pl(s,!!d,d?[]:"",!1));return;case"textarea":J=Q=null;for(D in d)if(b=d[D],d.hasOwnProperty(D)&&b!=null&&!h.hasOwnProperty(D))switch(D){case"value":break;case"children":break;default:ct(s,l,D,null,h,b)}for(k in h)if(b=h[k],v=d[k],h.hasOwnProperty(k)&&(b!=null||v!=null))switch(k){case"value":Q=b;break;case"defaultValue":J=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:b!==v&&ct(s,l,k,b,h,v)}mA(s,Q,J);return;case"option":for(var xe in d)if(Q=d[xe],d.hasOwnProperty(xe)&&Q!=null&&!h.hasOwnProperty(xe))switch(xe){case"selected":s.selected=!1;break;default:ct(s,l,xe,null,h,Q)}for(V in h)if(Q=h[V],J=d[V],h.hasOwnProperty(V)&&Q!==J&&(Q!=null||J!=null))switch(V){case"selected":s.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:ct(s,l,V,Q,h,J)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ee in d)Q=d[Ee],d.hasOwnProperty(Ee)&&Q!=null&&!h.hasOwnProperty(Ee)&&ct(s,l,Ee,null,h,Q);for(K in h)if(Q=h[K],J=d[K],h.hasOwnProperty(K)&&Q!==J&&(Q!=null||J!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(r(137,l));break;default:ct(s,l,K,Q,h,J)}return;default:if(py(l)){for(var ut in d)Q=d[ut],d.hasOwnProperty(ut)&&Q!==void 0&&!h.hasOwnProperty(ut)&&tb(s,l,ut,void 0,h,Q);for(te in h)Q=h[te],J=d[te],!h.hasOwnProperty(te)||Q===J||Q===void 0&&J===void 0||tb(s,l,te,Q,h,J);return}}for(var Y in d)Q=d[Y],d.hasOwnProperty(Y)&&Q!=null&&!h.hasOwnProperty(Y)&&ct(s,l,Y,null,h,Q);for(ie in h)Q=h[ie],J=d[ie],!h.hasOwnProperty(ie)||Q===J||Q==null&&J==null||ct(s,l,ie,Q,h,J)}function bT(s){switch(s){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Hz(){if(typeof performance.getEntriesByType=="function"){for(var s=0,l=0,d=performance.getEntriesByType("resource"),h=0;h<d.length;h++){var b=d[h],v=b.transferSize,k=b.initiatorType,D=b.duration;if(v&&D&&bT(k)){for(k=0,D=b.responseEnd,h+=1;h<d.length;h++){var V=d[h],K=V.startTime;if(K>D)break;var te=V.transferSize,ie=V.initiatorType;te&&bT(ie)&&(V=V.responseEnd,k+=te*(V<D?1:(D-K)/(V-K)))}if(--h,l+=8*(v+k)/(b.duration/1e3),s++,10<s)break}}if(0<s)return l/s/1e6}return navigator.connection&&(s=navigator.connection.downlink,typeof s=="number")?s:5}var nb=null,rb=null;function Zh(s){return s.nodeType===9?s:s.ownerDocument}function vT(s){switch(s){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function xT(s,l){if(s===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return s===1&&l==="foreignObject"?0:s}function ab(s,l){return s==="textarea"||s==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var ib=null;function Uz(){var s=window.event;return s&&s.type==="popstate"?s===ib?!1:(ib=s,!0):(ib=null,!1)}var wT=typeof setTimeout=="function"?setTimeout:void 0,Gz=typeof clearTimeout=="function"?clearTimeout:void 0,ST=typeof Promise=="function"?Promise:void 0,Yz=typeof queueMicrotask=="function"?queueMicrotask:typeof ST<"u"?function(s){return ST.resolve(null).then(s).catch(Wz)}:wT;function Wz(s){setTimeout(function(){throw s})}function Ji(s){return s==="head"}function AT(s,l){var d=l,h=0;do{var b=d.nextSibling;if(s.removeChild(d),b&&b.nodeType===8)if(d=b.data,d==="/$"||d==="/&"){if(h===0){s.removeChild(b),Wl(l);return}h--}else if(d==="$"||d==="$?"||d==="$~"||d==="$!"||d==="&")h++;else if(d==="html")Xu(s.ownerDocument.documentElement);else if(d==="head"){d=s.ownerDocument.head,Xu(d);for(var v=d.firstChild;v;){var k=v.nextSibling,D=v.nodeName;v[Ps]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&v.rel.toLowerCase()==="stylesheet"||d.removeChild(v),v=k}}else d==="body"&&Xu(s.ownerDocument.body);d=b}while(d);Wl(l)}function MT(s,l){var d=s;s=0;do{var h=d.nextSibling;if(d.nodeType===1?l?(d._stashedDisplay=d.style.display,d.style.display="none"):(d.style.display=d._stashedDisplay||"",d.getAttribute("style")===""&&d.removeAttribute("style")):d.nodeType===3&&(l?(d._stashedText=d.nodeValue,d.nodeValue=""):d.nodeValue=d._stashedText||""),h&&h.nodeType===8)if(d=h.data,d==="/$"){if(s===0)break;s--}else d!=="$"&&d!=="$?"&&d!=="$~"&&d!=="$!"||s++;d=h}while(d)}
vendor: 12,336 bytes, line 49
49function sb(s){var l=s.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var d=l;switch(l=l.nextSibling,d.nodeName){case"HTML":case"HEAD":case"BODY":sb(d),hl(d);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(d.rel.toLowerCase()==="stylesheet")continue}s.removeChild(d)}}function qz(s,l,d,h){for(;s.nodeType===1;){var b=d;if(s.nodeName.toLowerCase()!==l.toLowerCase()){if(!h&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(h){if(!s[Ps])switch(l){case"meta":if(!s.hasAttribute("itemprop"))break;return s;case"link":if(v=s.getAttribute("rel"),v==="stylesheet"&&s.hasAttribute("data-precedence"))break;if(v!==b.rel||s.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||s.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||s.getAttribute("title")!==(b.title==null?null:b.title))break;return s;case"style":if(s.hasAttribute("data-precedence"))break;return s;case"script":if(v=s.getAttribute("src"),(v!==(b.src==null?null:b.src)||s.getAttribute("type")!==(b.type==null?null:b.type)||s.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&v&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(l==="input"&&s.type==="hidden"){var v=b.name==null?null:""+b.name;if(b.type==="hidden"&&s.getAttribute("name")===v)return s}else return s;if(s=Ir(s.nextSibling),s===null)break}return null}function Xz(s,l,d){if(l==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!d||(s=Ir(s.nextSibling),s===null))return null;return s}function TT(s,l){for(;s.nodeType!==8;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!l||(s=Ir(s.nextSibling),s===null))return null;return s}function ob(s){return s.data==="$?"||s.data==="$~"}function lb(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState!=="loading"}function Kz(s,l){var d=s.ownerDocument;if(s.data==="$~")s._reactRetry=l;else if(s.data!=="$?"||d.readyState!=="loading")l();else{var h=function(){l(),d.removeEventListener("DOMContentLoaded",h)};d.addEventListener("DOMContentLoaded",h),s._reactRetry=h}}function Ir(s){for(;s!=null;s=s.nextSibling){var l=s.nodeType;if(l===1||l===3)break;if(l===8){if(l=s.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return s}var cb=null;function kT(s){s=s.nextSibling;for(var l=0;s;){if(s.nodeType===8){var d=s.data;if(d==="/$"||d==="/&"){if(l===0)return Ir(s.nextSibling);l--}else d!=="$"&&d!=="$!"&&d!=="$?"&&d!=="$~"&&d!=="&"||l++}s=s.nextSibling}return null}function ET(s){s=s.previousSibling;for(var l=0;s;){if(s.nodeType===8){var d=s.data;if(d==="$"||d==="$!"||d==="$?"||d==="$~"||d==="&"){if(l===0)return s;l--}else d!=="/$"&&d!=="/&"||l++}s=s.previousSibling}return null}function CT(s,l,d){switch(l=Zh(d),s){case"html":if(s=l.documentElement,!s)throw Error(r(452));return s;case"head":if(s=l.head,!s)throw Error(r(453));return s;case"body":if(s=l.body,!s)throw Error(r(454));return s;default:throw Error(r(451))}}function Xu(s){for(var l=s.attributes;l.length;)s.removeAttributeNode(l[0]);hl(s)}var Br=new Map,RT=new Set;function Jh(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var bi=G.d;G.d={f:Qz,r:Zz,D:Jz,C:eV,L:tV,m:nV,X:aV,S:rV,M:iV};function Qz(){var s=bi.f(),l=Uh();return s||l}function Zz(s){var l=pn(s);l!==null&&l.tag===5&&l.type==="form"?Y2(l):bi.r(s)}var Ul=typeof document>"u"?null:document;function LT(s,l,d){var h=Ul;if(h&&typeof l=="string"&&l){var b=Rr(l);b='link[rel="'+s+'"][href="'+b+'"]',typeof d=="string"&&(b+='[crossorigin="'+d+'"]'),RT.has(b)||(RT.add(b),s={rel:s,crossOrigin:d,href:l},h.querySelector(b)===null&&(l=h.createElement("link"),wn(l,"link",s),Vt(l),h.head.appendChild(l)))}}function Jz(s){bi.D(s),LT("dns-prefetch",s,null)}function eV(s,l){bi.C(s,l),LT("preconnect",s,l)}function tV(s,l,d){bi.L(s,l,d);var h=Ul;if(h&&s&&l){var b='link[rel="preload"][as="'+Rr(l)+'"]';l==="image"&&d&&d.imageSrcSet?(b+='[imagesrcset="'+Rr(d.imageSrcSet)+'"]',typeof d.imageSizes=="string"&&(b+='[imagesizes="'+Rr(d.imageSizes)+'"]')):b+='[href="'+Rr(s)+'"]';var v=b;switch(l){case"style":v=Gl(s);break;case"script":v=Yl(s)}Br.has(v)||(s=p({rel:"preload",href:l==="image"&&d&&d.imageSrcSet?void 0:s,as:l},d),Br.set(v,s),h.querySelector(b)!==null||l==="style"&&h.querySelector(Ku(v))||l==="script"&&h.querySelector(Qu(v))||(l=h.createElement("link"),wn(l,"link",s),Vt(l),h.head.appendChild(l)))}}function nV(s,l){bi.m(s,l);var d=Ul;if(d&&s){var h=l&&typeof l.as=="string"?l.as:"script",b='link[rel="modulepreload"][as="'+Rr(h)+'"][href="'+Rr(s)+'"]',v=b;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Yl(s)}if(!Br.has(v)&&(s=p({rel:"modulepreload",href:s},l),Br.set(v,s),d.querySelector(b)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(d.querySelector(Qu(v)))return}h=d.createElement("link"),wn(h,"link",s),Vt(h),d.head.appendChild(h)}}}function rV(s,l,d){bi.S(s,l,d);var h=Ul;if(h&&s){var b=Wr(h).hoistableStyles,v=Gl(s);l=l||"default";var k=b.get(v);if(!k){var D={loading:0,preload:null};if(k=h.querySelector(Ku(v)))D.loading=5;else{s=p({rel:"stylesheet",href:s,"data-precedence":l},d),(d=Br.get(v))&&ub(s,d);var V=k=h.createElement("link");Vt(V),wn(V,"link",s),V._p=new Promise(function(K,te){V.onload=K,V.onerror=te}),V.addEventListener("load",function(){D.loading|=1}),V.addEventListener("error",function(){D.loading|=2}),D.loading|=4,em(k,l,h)}k={type:"stylesheet",instance:k,count:1,state:D},b.set(v,k)}}}function aV(s,l){bi.X(s,l);var d=Ul;if(d&&s){var h=Wr(d).hoistableScripts,b=Yl(s),v=h.get(b);v||(v=d.querySelector(Qu(b)),v||(s=p({src:s,async:!0},l),(l=Br.get(b))&&db(s,l),v=d.createElement("script"),Vt(v),wn(v,"link",s),d.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},h.set(b,v))}}function iV(s,l){bi.M(s,l);var d=Ul;if(d&&s){var h=Wr(d).hoistableScripts,b=Yl(s),v=h.get(b);v||(v=d.querySelector(Qu(b)),v||(s=p({src:s,async:!0,type:"module"},l),(l=Br.get(b))&&db(s,l),v=d.createElement("script"),Vt(v),wn(v,"link",s),d.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},h.set(b,v))}}function DT(s,l,d,h){var b=(b=ve.current)?Jh(b):null;if(!b)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof d.precedence=="string"&&typeof d.href=="string"?(l=Gl(d.href),d=Wr(b).hoistableStyles,h=d.get(l),h||(h={type:"style",instance:null,count:0,state:null},d.set(l,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(d.rel==="stylesheet"&&typeof d.href=="string"&&typeof d.precedence=="string"){s=Gl(d.href);var v=Wr(b).hoistableStyles,k=v.get(s);if(k||(b=b.ownerDocument||b,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(s,k),(v=b.querySelector(Ku(s)))&&!v._p&&(k.instance=v,k.state.loading=5),Br.has(s)||(d={rel:"preload",as:"style",href:d.href,crossOrigin:d.crossOrigin,integrity:d.integrity,media:d.media,hrefLang:d.hrefLang,referrerPolicy:d.referrerPolicy},Br.set(s,d),v||sV(b,s,d,k.state))),l&&h===null)throw Error(r(528,""));return k}if(l&&h!==null)throw Error(r(529,""));return null;case"script":return l=d.async,d=d.src,typeof d=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Yl(d),d=Wr(b).hoistableScripts,h=d.get(l),h||(h={type:"script",instance:null,count:0,state:null},d.set(l,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function Gl(s){return'href="'+Rr(s)+'"'}function Ku(s){return'link[rel="stylesheet"]['+s+"]"}function NT(s){return p({},s,{"data-precedence":s.precedence,precedence:null})}function sV(s,l,d,h){s.querySelector('link[rel="preload"][as="style"]['+l+"]")?h.loading=1:(l=s.createElement("link"),h.preload=l,l.addEventListener("load",function(){return h.loading|=1}),l.addEventListener("error",function(){return h.loading|=2}),wn(l,"link",d),Vt(l),s.head.appendChild(l))}function Yl(s){return'[src="'+Rr(s)+'"]'}function Qu(s){return"script[async]"+s}function jT(s,l,d){if(l.count++,l.instance===null)switch(l.type){case"style":var h=s.querySelector('style[data-href~="'+Rr(d.href)+'"]');if(h)return l.instance=h,Vt(h),h;var b=p({},d,{"data-href":d.href,"data-precedence":d.precedence,href:null,precedence:null});return h=(s.ownerDocument||s).createElement("style"),Vt(h),wn(h,"style",b),em(h,d.precedence,s),l.instance=h;case"stylesheet":b=Gl(d.href);var v=s.querySelector(Ku(b));if(v)return l.state.loading|=4,l.instance=v,Vt(v),v;h=NT(d),(b=Br.get(b))&&ub(h,b),v=(s.ownerDocument||s).createElement("link"),Vt(v);var k=v;return k._p=new Promise(function(D,V){k.onload=D,k.onerror=V}),wn(v,"link",h),l.state.loading|=4,em(v,d.precedence,s),l.instance=v;case"script":return v=Yl(d.src),(b=s.querySelector(Qu(v)))?(l.instance=b,Vt(b),b):(h=d,(b=Br.get(v))&&(h=p({},d),db(h,b)),s=s.ownerDocument||s,b=s.createElement("script"),Vt(b),wn(b,"link",h),s.head.appendChild(b),l.instance=b);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(h=l.instance,l.state.loading|=4,em(h,d.precedence,s));return l.instance}function em(s,l,d){for(var h=d.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=h.length?h[h.length-1]:null,v=b,k=0;k<h.length;k++){var D=h[k];if(D.dataset.precedence===l)v=D;else if(v!==b)break}v?v.parentNode.insertBefore(s,v.nextSibling):(l=d.nodeType===9?d.head:d,l.insertBefore(s,l.firstChild))}function ub(s,l){s.crossOrigin==null&&(s.crossOrigin=l.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=l.referrerPolicy),s.title==null&&(s.title=l.title)}function db(s,l){s.crossOrigin==null&&(s.crossOrigin=l.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=l.referrerPolicy),s.integrity==null&&(s.integrity=l.integrity)}var tm=null;function OT(s,l,d){if(tm===null){var h=new Map,b=tm=new Map;b.set(d,h)}else b=tm,h=b.get(d),h||(h=new Map,b.set(d,h));if(h.has(s))return h;for(h.set(s,null),d=d.getElementsByTagName(s),b=0;b<d.length;b++){var v=d[b];if(!(v[Ps]||v[Le]||s==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var k=v.getAttribute(l)||"";k=s+k;var D=h.get(k);D?D.push(v):h.set(k,[v])}}return h}function _T(s,l,d){s=s.ownerDocument||s,s.head.insertBefore(d,l==="title"?s.querySelector("head > title"):null)}function oV(s,l,d){if(d===1||l.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return s=l.disabled,typeof l.precedence=="string"&&s==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function IT(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}function lV(s,l,d,h){if(d.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(d.state.loading&4)===0){if(d.instance===null){var b=Gl(h.href),v=l.querySelector(Ku(b));if(v){l=v._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(s.count++,s=nm.bind(s),l.then(s,s)),d.state.loading|=4,d.instance=v,Vt(v);return}v=l.ownerDocument||l,h=NT(h),(b=Br.get(b))&&ub(h,b),v=v.createElement("link"),Vt(v);var k=v;k._p=new Promise(function(D,V){k.onload=D,k.onerror=V}),wn(v,"link",h),d.instance=v}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(d,l),(l=d.state.preload)&&(d.state.loading&3)===0&&(s.count++,d=nm.bind(s),l.addEventListener("load",d),l.addEventListener("error",d))}}var fb=0;function cV(s,l){return s.stylesheets&&s.count===0&&am(s,s.stylesheets),0<s.count||0<s.imgCount?function(d){var h=setTimeout(function(){if(s.stylesheets&&am(s,s.stylesheets),s.unsuspend){var v=s.unsuspend;s.unsuspend=null,v()}},6e4+l);0<s.imgBytes&&fb===0&&(fb=62500*Hz());var b=setTimeout(function(){if(s.waitingForImages=!1,s.count===0&&(s.stylesheets&&am(s,s.stylesheets),s.unsuspend)){var v=s.unsuspend;s.unsuspend=null,v()}},(s.imgBytes>fb?50:800)+l);return s.unsuspend=d,function(){s.unsuspend=null,clearTimeout(h),clearTimeout(b)}}:null}
vendor: 8,321 bytes, line 49
49function nm(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)am(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var rm=null;function am(s,l){s.stylesheets=null,s.unsuspend!==null&&(s.count++,rm=new Map,l.forEach(uV,s),rm=null,nm.call(s))}function uV(s,l){if(!(l.state.loading&4)){var d=rm.get(s);if(d)var h=d.get(null);else{d=new Map,rm.set(s,d);for(var b=s.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<b.length;v++){var k=b[v];(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")&&(d.set(k.dataset.precedence,k),h=k)}h&&d.set(null,h)}b=l.instance,k=b.getAttribute("data-precedence"),v=d.get(k)||h,v===h&&d.set(null,b),d.set(k,b),this.count++,h=nm.bind(this),b.addEventListener("load",h),b.addEventListener("error",h),v?v.parentNode.insertBefore(b,v.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(b,s.firstChild)),l.state.loading|=4}}var Zu={$$typeof:R,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function dV(s,l,d,h,b,v,k,D,V){this.tag=1,this.containerInfo=s,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=zs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zs(0),this.hiddenUpdates=zs(null),this.identifierPrefix=h,this.onUncaughtError=b,this.onCaughtError=v,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=V,this.incompleteTransitions=new Map}function BT(s,l,d,h,b,v,k,D,V,K,te,ie){return s=new dV(s,l,d,k,V,K,te,ie,D),l=1,v===!0&&(l|=24),v=lr(3,null,null,l),s.current=v,v.stateNode=s,l=Gy(),l.refCount++,s.pooledCache=l,l.refCount++,v.memoizedState={element:h,isDehydrated:d,cache:l},Xy(v),s}function zT(s){return s?(s=Al,s):Al}function VT(s,l,d,h,b,v){b=zT(b),h.context===null?h.context=b:h.pendingContext=b,h=Fi(l),h.payload={element:d},v=v===void 0?null:v,v!==null&&(h.callback=v),d=Hi(s,h,l),d!==null&&(Qn(d,s,l),Lu(d,s,l))}function PT(s,l){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var d=s.retryLane;s.retryLane=d!==0&&d<l?d:l}}function hb(s,l){PT(s,l),(s=s.alternate)&&PT(s,l)}function $T(s){if(s.tag===13||s.tag===31){var l=Gs(s,67108864);l!==null&&Qn(l,s,67108864),hb(s,67108864)}}function FT(s){if(s.tag===13||s.tag===31){var l=hr();l=le(l);var d=Gs(s,l);d!==null&&Qn(d,s,l),hb(s,l)}}var im=!0;function fV(s,l,d,h){var b=B.T;B.T=null;var v=G.p;try{G.p=2,mb(s,l,d,h)}finally{G.p=v,B.T=b}}function hV(s,l,d,h){var b=B.T;B.T=null;var v=G.p;try{G.p=8,mb(s,l,d,h)}finally{G.p=v,B.T=b}}function mb(s,l,d,h){if(im){var b=pb(h);if(b===null)eb(s,l,h,sm,d),UT(s,h);else if(pV(b,s,l,d,h))h.stopPropagation();else if(UT(s,h),l&4&&-1<mV.indexOf(s)){for(;b!==null;){var v=pn(b);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var k=Gr(v.pendingLanes);if(k!==0){var D=v;for(D.pendingLanes|=2,D.entangledLanes|=2;k;){var V=1<<31-jn(k);D.entanglements[1]|=V,k&=~V}ga(v),(Je&6)===0&&(Fh=Mn()+500,Yu(0))}}break;case 31:case 13:D=Gs(v,2),D!==null&&Qn(D,v,2),Uh(),hb(v,2)}if(v=pb(h),v===null&&eb(s,l,h,sm,d),v===b)break;b=v}b!==null&&h.stopPropagation()}else eb(s,l,h,null,d)}}function pb(s){return s=yy(s),gb(s)}var sm=null;function gb(s){if(sm=null,s=ei(s),s!==null){var l=i(s);if(l===null)s=null;else{var d=l.tag;if(d===13){if(s=o(l),s!==null)return s;s=null}else if(d===31){if(s=c(l),s!==null)return s;s=null}else if(d===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;s=null}else l!==s&&(s=null)}}return sm=s,null}function HT(s){switch(s){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(cy()){case Kf:return 2;case Qf:return 8;case da:case du:return 32;case Zf:return 268435456;default:return 32}default:return 32}}var yb=!1,es=null,ts=null,ns=null,Ju=new Map,ed=new Map,rs=[],mV="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function UT(s,l){switch(s){case"focusin":case"focusout":es=null;break;case"dragenter":case"dragleave":ts=null;break;case"mouseover":case"mouseout":ns=null;break;case"pointerover":case"pointerout":Ju.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":ed.delete(l.pointerId)}}function td(s,l,d,h,b,v){return s===null||s.nativeEvent!==v?(s={blockedOn:l,domEventName:d,eventSystemFlags:h,nativeEvent:v,targetContainers:[b]},l!==null&&(l=pn(l),l!==null&&$T(l)),s):(s.eventSystemFlags|=h,l=s.targetContainers,b!==null&&l.indexOf(b)===-1&&l.push(b),s)}function pV(s,l,d,h,b){switch(l){case"focusin":return es=td(es,s,l,d,h,b),!0;case"dragenter":return ts=td(ts,s,l,d,h,b),!0;case"mouseover":return ns=td(ns,s,l,d,h,b),!0;case"pointerover":var v=b.pointerId;return Ju.set(v,td(Ju.get(v)||null,s,l,d,h,b)),!0;case"gotpointercapture":return v=b.pointerId,ed.set(v,td(ed.get(v)||null,s,l,d,h,b)),!0}return!1}function GT(s){var l=ei(s.target);if(l!==null){var d=i(l);if(d!==null){if(l=d.tag,l===13){if(l=o(d),l!==null){s.blockedOn=l,He(s.priority,function(){FT(d)});return}}else if(l===31){if(l=c(d),l!==null){s.blockedOn=l,He(s.priority,function(){FT(d)});return}}else if(l===3&&d.stateNode.current.memoizedState.isDehydrated){s.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}s.blockedOn=null}function om(s){if(s.blockedOn!==null)return!1;for(var l=s.targetContainers;0<l.length;){var d=pb(s.nativeEvent);if(d===null){d=s.nativeEvent;var h=new d.constructor(d.type,d);gy=h,d.target.dispatchEvent(h),gy=null}else return l=pn(d),l!==null&&$T(l),s.blockedOn=d,!1;l.shift()}return!0}function YT(s,l,d){om(s)&&d.delete(l)}function gV(){yb=!1,es!==null&&om(es)&&(es=null),ts!==null&&om(ts)&&(ts=null),ns!==null&&om(ns)&&(ns=null),Ju.forEach(YT),ed.forEach(YT)}function lm(s,l){s.blockedOn===l&&(s.blockedOn=null,yb||(yb=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,gV)))}var cm=null;function WT(s){cm!==s&&(cm=s,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){cm===s&&(cm=null);for(var l=0;l<s.length;l+=3){var d=s[l],h=s[l+1],b=s[l+2];if(typeof h!="function"){if(gb(h||d)===null)continue;break}var v=pn(d);v!==null&&(s.splice(l,3),l-=3,p0(v,{pending:!0,data:b,method:d.method,action:h},h,b))}}))}function Wl(s){function l(V){return lm(V,s)}es!==null&&lm(es,s),ts!==null&&lm(ts,s),ns!==null&&lm(ns,s),Ju.forEach(l),ed.forEach(l);for(var d=0;d<rs.length;d++){var h=rs[d];h.blockedOn===s&&(h.blockedOn=null)}for(;0<rs.length&&(d=rs[0],d.blockedOn===null);)GT(d),d.blockedOn===null&&rs.shift();if(d=(s.ownerDocument||s).$$reactFormReplay,d!=null)for(h=0;h<d.length;h+=3){var b=d[h],v=d[h+1],k=b[vt]||null;if(typeof v=="function")k||WT(d);else if(k){var D=null;if(v&&v.hasAttribute("formAction")){if(b=v,k=v[vt]||null)D=k.formAction;else if(gb(b)!==null)continue}else D=k.action;typeof D=="function"?d[h+1]=D:(d.splice(h,3),h-=3),WT(d)}}}
49function qT(){function s(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(k){return b=k})},focusReset:"manual",scroll:"manual"})}function l(){b!==null&&(b(),b=null),h||setTimeout(d,20)}function d(){if(!h&&!navigation.transition){var v=navigation.currentEntry;v&&v.url!=null&&navigation.navigate(v.url,{state:v.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var h=!1,b=null;return navigation.addEventListener("navigate",s),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(d,100),function(){h=!0,navigation.removeEventListener("navigate",s),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),b!==null&&(b(),b=null)}}}function bb(s){this._internalRoot=s}um.prototype.render=bb.prototype.render=function(s){var l=this._internalRoot;if(l===null)throw Error(r(409));var d=l.current,h=hr();VT(d,h,s,l,null,null)},um.prototype.unmount=bb.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var l=s.containerInfo;VT(s.current,2,null,s,null,null),Uh(),l[sr]=null}};function um(s){this._internalRoot=s}um.prototype.unstable_scheduleHydration=function(s){if(s){var l=Ge();s={blockedOn:null,target:s,priority:l};for(var d=0;d<rs.length&&l!==0&&l<rs[d].priority;d++);rs.splice(d,0,s),d===0&>(s)}};var XT=t.version;if(XT!=="19.2.8")throw Error(r(527,XT,"19.2.8"));G.findDOMNode=function(s){var l=s._reactInternals;if(l===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=f(l),s=s!==null?m(s):null,s=s===null?null:s.stateNode,s};var yV={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var dm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!dm.isDisabled&&dm.supportsFiber)try{_s=dm.inject(yV),Nn=dm}catch{}}return rd.createRoot=function(s,l){if(!a(s))throw Error(r(299));var d=!1,h="",b=nM,v=rM,k=aM;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(h=l.identifierPrefix),l.onUncaughtError!==void 0&&(b=l.onUncaughtError),l.onCaughtError!==void 0&&(v=l.onCaughtError),l.onRecoverableError!==void 0&&(k=l.onRecoverableError)),l=BT(s,1,!1,null,null,d,h,null,b,v,k,qT),s[sr]=l.current,J0(s),new bb(l)},rd.hydrateRoot=function(s,l,d){if(!a(s))throw Error(r(299));var h=!1,b="",v=nM,k=rM,D=aM,V=null;return d!=null&&(d.unstable_strictMode===!0&&(h=!0),d.identifierPrefix!==void 0&&(b=d.identifierPrefix),d.onUncaughtError!==void 0&&(v=d.onUncaughtError),d.onCaughtError!==void 0&&(k=d.onCaughtError),d.onRecoverableError!==void 0&&(D=d.onRecoverableError),d.formState!==void 0&&(V=d.formState)),l=BT(s,1,!0,l,d??null,h,b,V,v,k,D,qT),l.context=zT(null),d=l.current,h=hr(),h=le(h),b=Fi(h),b.callback=null,Hi(d,b,h),d=h,l.current.lanes=d,Vs(l,d),ga(l),s[sr]=l.current,J0(s),new um(l)},rd.version="19.2.8",rd}var ik;function RV(){if(ik)return wb.exports;ik=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),wb.exports=CV(),wb.exports}var LV=RV();const sk={fftSize:2048,targetFps:24,analyserSmoothing:.8,numBars:48,minFreq:20,peakHoldMs:450,peakDecayPerSec:220,heatmapRows:40,heatmapIntervalMs:100,ridgeHeight:.16,ridgeTop:.1,ridgeBottom:.88,waveformPoints:512,triggerEnabled:!0,oscilloscopeChannel:"mix",vectorscopePoints:256,trailLength:6,correlationFftSize:1024,correlationSmoothing:.25,constellationIntervalMs:600,peakMinMagnitude:46,peakMaxFreq:5e3,maxPeaks:14,maxHarmonicNumber:8,harmonicTolerance:.045,chargeStrength:320,linkDistance:.24,loudnessPoints:300,loudnessGain:4};function DV(){const[e,t]=E.useState(sk),n=E.useRef(e);n.current=e;const r=E.useCallback((i,o)=>{t(c=>c[i]===o?c:{...c,[i]:o})},[]),a=E.useCallback(i=>{t(o=>({...o,[i]:sk[i]}))},[]);return{settings:e,settingsRef:n,setSetting:r,resetSetting:a}}const ql=128,lp=[{name:"Sub-bass",low:20,high:60},{name:"Bass",low:60,high:250},{name:"Low-mid",low:250,high:500},{name:"Mid",low:500,high:2e3},{name:"High-mid",low:2e3,high:4e3},{name:"Presence",low:4e3,high:6e3},{name:"Brilliance",low:6e3,high:2e4}],NV=lp.map(e=>e.name),Wv=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],ok="default";function jV(e){if(e instanceof DOMException){if(e.name==="NotAllowedError"||e.name==="SecurityError")return"Microphone access was denied.";if(e.name==="NotFoundError")return"No microphone was found on this device.";if(e.name==="NotReadableError")return"The microphone is already in use by another application."}return"Could not access the microphone."}function ad(e,t){return e.length===t?e:Array.from({length:t},(n,r)=>e[r]??0)}function OV(e,t,n,r,a,i,o){const c=n/2,u=[];for(let f=2;f<t-2;f++){const m=e[f];if(m<i||m<=e[f-1]||m<=e[f+1])continue;const p=f/t*c;p<r||p>a||u.push({freq:p,magnitude:m})}return u.sort((f,m)=>m.magnitude-f.magnitude),u.slice(0,o)}function lk(e){return`${Math.round(e)}Hz`}function _V(e,t,n){const r=[...e].sort((i,o)=>i.freq-o.freq),a=[];for(let i=0;i<r.length;i++)for(let o=i+1;o<r.length;o++){const c=r[o].freq/r[i].freq,u=Math.round(c);u<2||u>t||Math.abs(c-u)/u>n||a.push({source:lk(r[i].freq),target:lk(r[o].freq),value:(r[i].magnitude+r[o].magnitude)/2})}return a}function ck(e,t){return Array.from({length:e},()=>new Array(t).fill(0))}function IV(e,t,n,r){const a=t/2,i=Math.log10(r),o=Math.log10(a),c=[];let u=0;for(let f=0;f<n;f++){const m=Math.pow(10,i+(f+1)/n*(o-i));let p=Math.round(m/a*e);p=Math.min(Math.max(p,u+1),e);const g=[];for(let y=u;y<p;y++)g.push(y);c.push(g),u=p}return c}function BV(e,t){const n=t/2;return lp.map(({low:r,high:a})=>{const i=Math.max(0,Math.floor(r/n*e)),o=Math.min(e,Math.ceil(Math.min(a,n)/n*e)),c=[];for(let u=i;
49u<Math.max(o,i+1);u++)c.push(u);return c})}function zV(e,t,n){const r=t/2,a=Array.from({length:12},()=>[]);for(let i=1;i<e;i++){const o=i/e*r;if(o<n)continue;const c=69+12*Math.log2(o/440),u=(Math.round(c)%12+12)%12;a[u].push(i)}return a}function VV(e){return e>=1e3?`${(e/1e3).toFixed(e>=1e4?0:1)}kHz`:`${Math.round(e)}Hz`}function PV(e,t,n){const r=n/2;return e.map(a=>{if(a.length===0)return"";const i=a[Math.floor(a.length/2)];return VV(i/t*r)})}async function uk(e,t){const r=await(await fetch(e)).arrayBuffer(),a=new AudioContext;let i;try{i=await a.decodeAudioData(r)}finally{a.close()}const o=i.getChannelData(0),c=Math.max(1,Math.floor(o.length/t)),u=new Array(t);for(let f=0;f<t;f++){const m=f*c,p=Math.min(o.length,m+c);let g=0;for(let y=m;y<p;y++)g+=o[y]*o[y];u[f]=p>m?Math.sqrt(g/(p-m)):0}return u}function $V(){const{settings:e,settingsRef:t,setSetting:n,resetSetting:r}=DV(),a=E.useRef(null),i=E.useRef(null),o=E.useRef(null),c=E.useRef(null),u=E.useRef(null),f=E.useRef(null),m=E.useRef(null),p=E.useRef(null),g=E.useRef(null),y=E.useRef(null),x=E.useRef(null),S=E.useRef(null),A=E.useRef(null),M=E.useRef(0),C=E.useRef(null),R=E.useRef(null),L=E.useRef(null),N=E.useRef(null),O=E.useRef(0),$=E.useRef(0),T=E.useRef(0),j=E.useRef(new Array(e.numBars).fill(0)),_=E.useRef(new Array(e.numBars).fill(0)),P=E.useRef(0),U=E.useRef(null),[W,q]=E.useState(!1),[ne,B]=E.useState(0),[G,F]=E.useState(0),[ee,he]=E.useState(1),[z,Z]=E.useState(null),[re,ue]=E.useState(()=>new Array(e.numBars).fill(0)),[me,ve]=E.useState(()=>new Array(e.numBars).fill(0)),[Ce,Oe]=E.useState(()=>ck(e.heatmapRows,e.numBars)),[fe,ke]=E.useState(()=>new Array(e.waveformPoints).fill(ql)),[Re,ce]=E.useState(0),[Tt,Ne]=E.useState(()=>new Array(lp.length).fill(0)),[bt,rt]=E.useState(()=>new Array(e.loudnessPoints).fill(0)),[jt,Kt]=E.useState(()=>new Array(Wv.length).fill(0)),[js,Oi]=E.useState(0),[Os,on]=E.useState(()=>new Array(e.vectorscopePoints).fill(0).map(()=>({left:0,right:0}))),[ly,Mn]=E.useState([]),[cy,Kf]=E.useState(()=>Array.from({length:e.numBars},(le,ye)=>`b${ye}`)),[Qf,da]=E.useState(null),[du,Zf]=E.useState("file"),[cl,fu]=E.useState(!1),[_s,Nn]=E.useState([]),[Cr,jn]=E.useState(ok),uy=E.useMemo(()=>bt.map(le=>Math.min(255,le*255*e.loudnessGain)),[bt,e.loudnessGain]),ul=E.useCallback(()=>{const le=o.current,ye=i.current;if(!le||!ye)return;const{numBars:Ge,minFreq:He}=t.current;p.current=new Uint8Array(new ArrayBuffer(le.frequencyBinCount)),g.current=new Uint8Array(new ArrayBuffer(le.fftSize));const ze=IV(le.frequencyBinCount,ye.sampleRate,Ge,He);C.current=ze,R.current=BV(le.frequencyBinCount,ye.sampleRate),L.current=zV(le.frequencyBinCount,ye.sampleRate,He),Kf(PV(ze,le.frequencyBinCount,ye.sampleRate)),ue(Le=>ad(Le,Ge)),j.current=ad(j.current,Ge),_.current=ad(_.current,Ge),ve(Le=>ad(Le,Ge)),Oe(Le=>Le.map(vt=>ad(vt,Ge)))},[t]),dl=E.useCallback(()=>{if(!i.current){const le=new AudioContext,ye=le.createAnalyser();ye.fftSize=t.current.fftSize,ye.smoothingTimeConstant=t.current.analyserSmoothing;const Ge=le.createChannelSplitter(2),He=le.createAnalyser(),ze=le.createAnalyser();He.fftSize=t.current.correlationFftSize,ze.fftSize=t.current.correlationFftSize;const Le=le.createGain();Le.gain.value=0,Ge.connect(He,0),Ge.connect(ze,1),He.connect(Le),ze.connect(Le),Le.connect(le.destination),i.current=le,o.current=ye,c.current=Ge,y.current=He,x.current=ze,S.current=new Float32Array(new ArrayBuffer(He.fftSize*4)),A.current=new Float32Array(new ArrayBuffer(ze.fftSize*4)),ce(le.sampleRate),ul()}i.current.state==="suspended"&&i.current.resume()},[ul,t]),Is=E.useCallback(()=>{var Le;const le=i.current,ye=o.current,Ge=c.current,He=a.current;if(!le||!ye||!Ge||!He)return;u.current||(u.current=le.createMediaElementSource(He)),(Le=m.current)==null||Le.disconnect();const ze=u.current;ze.disconnect(),ze.connect(ye),ze.connect(Ge),ze.connect(le.destination)},[]),Ur=E.useCallback(async()=>{var le;if((le=navigator.mediaDevices)!=null&&le.enumerateDevices)try{const ye=await navigator.mediaDevices.enumerateDevices();Nn(ye.filter(Ge=>Ge.kind==="audioinput"))}catch{}},[]),fa=E.useCallback(()=>{var le,ye;
49(le=f.current)==null||le.getTracks().forEach(Ge=>Ge.stop()),f.current=null,(ye=m.current)==null||ye.disconnect(),m.current=null,fu(!1)},[]),Gr=E.useCallback(async le=>{var vt,sr,Qa;const ye=a.current;ye&&!ye.paused&&ye.pause(),da(null),dl();const Ge=i.current,He=o.current,ze=c.current;if(!Ge||!He||!ze)return;const Le=le??Cr;try{const Za=await navigator.mediaDevices.getUserMedia({audio:Le&&Le!==ok?{deviceId:{exact:Le}}:!0});(vt=f.current)==null||vt.getTracks().forEach(Ja=>Ja.stop()),(sr=m.current)==null||sr.disconnect(),(Qa=u.current)==null||Qa.disconnect();const Yr=Ge.createMediaStreamSource(Za);Yr.connect(He),Yr.connect(ze),f.current=Za,m.current=Yr,fu(!0),Ur()}catch(Za){fu(!1),da(jV(Za))}},[dl,Ur,Cr]),fl=E.useCallback(le=>{jn(le),cl&&Gr(le)},[cl,Gr]),Bs=E.useCallback(le=>{var ye;le!==du&&(le==="mic"?(ye=a.current)==null||ye.pause():fa(),Zf(le))},[du,fa]);E.useEffect(()=>{Ur();const le=navigator.mediaDevices;if(le!=null&&le.addEventListener)return le.addEventListener("devicechange",Ur),()=>le.removeEventListener("devicechange",Ur)},[Ur]),E.useEffect(()=>()=>{var le;(le=f.current)==null||le.getTracks().forEach(ye=>ye.stop())},[]),E.useEffect(()=>{const le=o.current;le&&(le.fftSize!==e.fftSize&&(le.fftSize=e.fftSize),ul())},[e.fftSize,e.numBars,e.minFreq,ul]),E.useEffect(()=>{o.current&&(o.current.smoothingTimeConstant=e.analyserSmoothing)},[e.analyserSmoothing]),E.useEffect(()=>{const le=y.current,ye=x.current;!le||!ye||(le.fftSize=e.correlationFftSize,ye.fftSize=e.correlationFftSize,S.current=new Float32Array(new ArrayBuffer(le.fftSize*4)),A.current=new Float32Array(new ArrayBuffer(ye.fftSize*4)))},[e.correlationFftSize]),E.useEffect(()=>{Oe(le=>{var ze;const ye=e.heatmapRows;if(le.length===ye)return le;const Ge=((ze=le[0])==null?void 0:ze.length)??t.current.numBars;return le.length>ye?le.slice(le.length-ye):[...Array.from({length:ye-le.length},()=>new Array(Ge).fill(0)),...le]})},[e.heatmapRows,t]),E.useEffect(()=>{if(!U.current)return;const le=++P.current;uk(U.current,e.loudnessPoints).then(ye=>{P.current===le&&rt(ye)}).catch(()=>{})},[e.loudnessPoints]);const hu=E.useCallback(le=>{var Vt;N.current=requestAnimationFrame(hu);const ye=t.current,Ge=1e3/ye.targetFps;if(le-O.current<Ge)return;const He=O.current===0?Ge:le-O.current;O.current=le;const ze=o.current,Le=p.current,vt=C.current;if(!ze||!Le||!vt)return;ze.getByteFrequencyData(Le);const sr=vt.map(xt=>{if(xt.length===0)return 0;let Ze=0;for(const Pt of xt)Ze+=Le[Pt];return Ze/xt.length});ue(sr);const Qa=R.current;if(Qa){const xt=Qa.map(Ze=>{if(Ze.length===0)return 0;let Pt=0;for(const gn of Ze)Pt+=Le[gn];return Pt/Ze.length});Ne(xt)}const Za=L.current;if(Za){const xt=Za.map(Ze=>{if(Ze.length===0)return 0;let Pt=0;for(const gn of Ze)Pt+=Le[gn];return Pt/Ze.length});Kt(xt)}if(le-T.current>=ye.constellationIntervalMs){T.current=le;const xt=(Vt=i.current)==null?void 0:Vt.sampleRate;if(xt){const Ze=OV(Le,ze.frequencyBinCount,xt,ye.minFreq,ye.peakMaxFreq,ye.peakMinMagnitude,ye.maxPeaks);Mn(_V(Ze,ye.maxHarmonicNumber,ye.harmonicTolerance))}}const Yr=j.current,Ja=_.current,Ps=sr.map((xt,Ze)=>(xt>=Yr[Ze]?(Yr[Ze]=xt,Ja[Ze]=ye.peakHoldMs):Ja[Ze]>0?Ja[Ze]=Math.max(0,Ja[Ze]-He):Yr[Ze]=Math.max(xt,Yr[Ze]-ye.peakDecayPerSec*He/1e3),Yr[Ze]));ve(Ps);const hl=y.current,ei=x.current,pn=S.current,Gn=A.current;if(hl&&ei&&pn&&Gn){hl.getFloatTimeDomainData(pn),ei.getFloatTimeDomainData(Gn);let xt=0,Ze=0,Pt=0;for(let yn=0;yn<pn.length;yn++){const Ct=pn[yn],$t=Gn[yn];xt+=Ct*$t,Ze+=Ct*Ct,Pt+=$t*$t}const gn=Math.sqrt(Ze*Pt),$s=gn>1e-6?Math.max(-1,Math.min(1,xt/gn)):M.current;M.current+=($s-M.current)*ye.correlationSmoothing,Oi(M.current);const ti=ye.vectorscopePoints,_i=Math.max(1,Math.floor(pn.length/ti)),ml=new Array(ti);for(let yn=0;yn<ti;yn++){const Ct=yn*_i;ml[yn]={left:pn[Ct]??0,right:Gn[Ct]??0}}on(ml)}const Wr=g.current;if(Wr){ze.getByteTimeDomainData(Wr);const xt=ye.oscilloscopeChannel,Ze=xt==="left"&&pn!==null&&pn.length>0,Pt=xt==="right"&&Gn!==null&&Gn.length>0,gn=Ze?pn.length:Pt?Gn.length:Wr.length,$s=Ct=>Ze?Math.max(0,Math.min(255,Math.round(pn[Ct]*127+128))):Pt?Math.max(0,Math.min(255,Math.round(Gn[Ct]*127+128))):Wr[Ct]??ql;let ti=0;if(ye.triggerEnabled){let Ct=$s(0);for(let $t=1;$t<gn;$t++){const On=$s($t);if(Ct<ql&&On>=ql){ti=$t;break}Ct=On}}const _i=ye.waveformPoints,ml=Math.max(1,Math.floor(gn/_i)),yn=new Array(_i);for(let Ct=0;Ct<_i;Ct++){const $t=ti+Ct*ml;yn[Ct]=$t<gn?$s($t):ql}ke(yn)}le-$.current>=ye.heatmapIntervalMs&&($.current=le,Oe(xt=>[...xt.slice(1),sr]))},[t]),mu=W||cl;E.useEffect(()=>(mu?(O.current=0,$.current=0,T.current=0,N.current=requestAnimationFrame(hu)):N.current!==null&&(cancelAnimationFrame(N.current),N.current=null),()=>{N.current!==null&&(cancelAnimationFrame(N.current),N.current=null)}),[mu,hu]);const zs=E.useCallback((le,ye)=>{const Ge=a.current;if(!Ge)return;Ge.src=le,U.current=le,Z(ye),da(null);const He=t.current;ue(new Array(He.numBars).fill(0)),Oe(ck(He.heatmapRows,He.numBars)),ke(new Array(He.waveformPoints).fill(ql)),Ne(new Array(lp.length).fill(0)),Kt(new Array(Wv.length).fill(0)),M.current=0,Oi(0),on(new Array(He.vectorscopePoints).fill(0).map(()=>({left:0,right:0}
49))),Mn([]),j.current=new Array(He.numBars).fill(0),_.current=new Array(He.numBars).fill(0),ve(new Array(He.numBars).fill(0)),rt(new Array(He.loudnessPoints).fill(0));const ze=++P.current;uk(le,He.loudnessPoints).then(Le=>{P.current===ze&&rt(Le)}).catch(()=>{})},[t]),Vs=E.useCallback(le=>{zs(URL.createObjectURL(le),le.name)},[zs]),dy=E.useCallback(async()=>{var le;fa(),dl(),Is();try{await((le=a.current)==null?void 0:le.play())}catch(ye){da(ye instanceof Error?ye.message:"Playback failed")}},[fa,dl,Is]),Jf=E.useCallback(()=>{var le;(le=a.current)==null||le.pause()},[]),eh=E.useCallback(le=>{a.current&&(a.current.currentTime=le)},[]),th=E.useCallback(le=>{he(le),a.current&&(a.current.volume=le)},[]);return E.useEffect(()=>{const le=a.current;if(!le)return;const ye=()=>q(!0),Ge=()=>q(!1),He=()=>q(!1),ze=()=>B(le.duration||0),Le=()=>F(le.currentTime),vt=()=>da("Could not load/play this audio file.");return le.addEventListener("play",ye),le.addEventListener("pause",Ge),le.addEventListener("ended",He),le.addEventListener("loadedmetadata",ze),le.addEventListener("timeupdate",Le),le.addEventListener("error",vt),()=>{le.removeEventListener("play",ye),le.removeEventListener("pause",Ge),le.removeEventListener("ended",He),le.removeEventListener("loadedmetadata",ze),le.removeEventListener("timeupdate",Le),le.removeEventListener("error",vt)}},[]),{audioRef:a,isPlaying:W,duration:ne,currentTime:G,volume:ee,fileName:z,bars:re,peaks:me,heatmap:Ce,waveform:fe,sampleRate:Re,bandLevels:Tt,loudnessHistory:uy,chromaLevels:jt,phaseCorrelation:js,vectorscope:Os,constellationEdges:ly,binLabels:cy,error:Qf,numBars:e.numBars,settings:e,setSetting:n,resetSetting:r,sourceMode:du,setSourceMode:Bs,isMicActive:cl,inputDevices:_s,selectedDeviceId:Cr,selectDevice:fl,startMic:Gr,stopMic:fa,loadFile:Vs,loadUrl:zs,play:dy,pause:Jf,seek:eh,setVolume:th}}function Nt(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Ut(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function rg(e,t){const n=Nt(e);return isNaN(t)?Ut(e,NaN):(t&&n.setDate(n.getDate()+t),n)}const o3=6048e5,FV=864e5,HV=6e4,UV=36e5,GV=1e3;let YV={};function hf(){return YV}function ps(e,t){var c,u,f,m;const n=hf(),r=(t==null?void 0:t.weekStartsOn)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((m=(f=n.locale)==null?void 0:f.options)==null?void 0:m.weekStartsOn)??0,a=Nt(e),i=a.getDay(),o=(i<r?7:0)+i-r;return a.setDate(a.getDate()-o),a.setHours(0,0,0,0),a}function Lc(e){return ps(e,{weekStartsOn:1})}function WV(e){const t=Nt(e),n=t.getFullYear(),r=Ut(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=Lc(r),i=Ut(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const o=Lc(i);return t.getTime()>=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function dk(e){const t=Nt(e);return t.setHours(0,0,0,0),t}function cp(e){const t=Nt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function qV(e,t){const n=dk(e),r=dk(t),a=+n-cp(n),i=+r-cp(r);return Math.round((a-i)/FV)}function XV(e){const t=WV(e),n=Ut(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Lc(n)}function KV(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function xr(e){if(!KV(e)&&typeof e!="number")return!1;const t=Nt(e);return!isNaN(Number(t))}function l3(e,t){const n=Nt(e),r=Nt(t),a=fk(n,r),i=Math.abs(qV(n,r));n.setDate(n.getDate()-a*i);const o=+(fk(n,r)===-a),c=a*(i-o);return c===0?0:c}function fk(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}const QV={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ZV=(e,t,n)=>{let r;const a=QV[e];
vendor: 7,395 bytes, line 49
49return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Tb(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const JV={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},eP={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},tP={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},nP={date:Tb({formats:JV,defaultWidth:"full"}),time:Tb({formats:eP,defaultWidth:"full"}),dateTime:Tb({formats:tP,defaultWidth:"full"})},rP={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},aP=(e,t,n,r)=>rP[e];function id(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):o;a=e.formattingValues[c]||e.formattingValues[o]}else{const o=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[c]||e.values[o]}const i=e.argumentCallback?e.argumentCallback(t):t;return a[i]}}const iP={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},sP={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},oP={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},lP={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},cP={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},uP={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},dP=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},fP={ordinalNumber:dP,era:id({values:iP,defaultWidth:"wide"}),quarter:id({values:sP,defaultWidth:"wide",argumentCallback:e=>e-1}),month:id({values:oP,defaultWidth:"wide"}),day:id({values:lP,defaultWidth:"wide"}),dayPeriod:id({values:cP,defaultWidth:"wide",formattingValues:uP,defaultFormattingWidth:"wide"})};function sd(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;const o=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?mP(c,p=>p.test(o)):hP(c,p=>p.test(o));let f;f=e.valueCallback?e.valueCallback(u):u,f=n.valueCallback?n.valueCallback(f):f;const m=t.slice(o.length);return{value:f,rest:m}}}function hP(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function mP(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function pP(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const c=t.slice(a.length);return{value:o,rest:c}}}const gP=/^(\d+)(th|st|nd|rd)?/i,yP=/\d+/i,bP={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},vP={any:[/^b/i,/^(a|c)/i]},xP={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},wP={any:[/1/i,/2/i,/3/i,/4/i]},SP={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},AP={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},MP={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},TP={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},kP={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},EP={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},CP={ordinalNumber:pP({matchPattern:gP,parsePattern:yP,valueCallback:e=>parseInt(e,10)}),era:sd({matchPatterns:bP,defaultMatchWidth:"wide",parsePatterns:vP,defaultParseWidth:"any"}),quarter:sd({matchPatterns:xP,defaultMatchWidth:"wide",parsePatterns:wP,defaultParseWidth:"any",valueCallback:e=>e+1}),month:sd({matchPatterns:SP,defaultMatchWidth:"wide",parsePatterns:AP,defaultParseWidth:"any"}),day:sd({matchPatterns:MP,defaultMatchWidth:"wide",parsePatterns:TP,defaultParseWidth:"any"}),dayPeriod:sd({matchPatterns:kP,defaultMatchWidth:"any",parsePatterns:EP,defaultParseWidth:"any"})},RP={code:"en-US",formatDistance:ZV,formatLong:nP,formatRelative:aP,localize:fP,match:CP,options:{weekStartsOn:0,firstWeekContainsDate:1}};function LP(e){const t=Nt(e),n=+Lc(t)-+XV(t);return Math.round(n/o3)+1}function c3(e,t){var m,p,g,y;const n=Nt(e),r=n.getFullYear(),a=hf(),i=(t==null?void 0:t.firstWeekContainsDate)??((p=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??a.firstWeekContainsDate??((y=(g=a.locale)==null?void 0:g.options)==null?void 0:y.firstWeekContainsDate)??1,o=Ut(e,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);const c=ps(o,t),u=Ut(e,0);u.setFullYear(r,0,i),u.setHours(0,0,0,0);const f=ps(u,t);return n.getTime()>=c.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function DP(e,t){var c,u,f,m;const n=hf(),r=(t==null?void 0:t.firstWeekContainsDate)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((m=(f=n.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??1,a=c3(e,t),i=Ut(e,0);return i.setFullYear(a,0,r),i.setHours(0,0,0,0),ps(i,t)}function NP(e,t){const n=Nt(e),r=+ps(n,t)-+DP(n,t);return Math.round(r/o3)+1}const hk=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},u3=(e,t)=>
vendor: 11,366 bytes, line 49
49{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},jP=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return hk(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",hk(r,t)).replace("{{time}}",u3(a,t))},mk={p:u3,P:jP},OP=/^D+$/,_P=/^Y+$/,IP=["D","DD","YY","YYYY"];function BP(e){return OP.test(e)}function zP(e){return _P.test(e)}function pk(e,t,n){const r=VP(e,t,n);if(console.warn(r),IP.includes(e))throw new RangeError(r)}function VP(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function PP(){return Object.assign({},hf())}function $P(e){let n=Nt(e).getDay();return n===0&&(n=7),n}function FP(e,t){const n=Nt(e),r=Nt(t);return+n<+r}function HP(e,t){const n=t instanceof Date?Ut(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}const UP=10;class d3{constructor(){se(this,"subPriority",0)}validate(t,n){return!0}}class GP extends d3{constructor(t,n,r,a,i){super(),this.value=t,this.validateValue=n,this.setValue=r,this.priority=a,i&&(this.subPriority=i)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,r){return this.setValue(t,n,this.value,r)}}class YP extends d3{constructor(){super(...arguments);se(this,"priority",UP);se(this,"subPriority",-1)}set(n,r){return r.timestampIsSet?n:Ut(n,HP(n,Date))}}let nt=class{run(t,n,r,a){const i=this.parse(t,n,r,a);return i?{setter:new GP(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,n,r){return!0}};class WP extends nt{constructor(){super(...arguments);se(this,"priority",140);se(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,a){switch(r){case"G":case"GG":case"GGG":return a.era(n,{width:"abbreviated"})||a.era(n,{width:"narrow"});case"GGGGG":return a.era(n,{width:"narrow"});case"GGGG":default:return a.era(n,{width:"wide"})||a.era(n,{width:"abbreviated"})||a.era(n,{width:"narrow"})}}set(n,r,a){return r.era=a,n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}}const Gt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ta={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Yt(e,t){return e&&{value:t(e.value),rest:e.rest}}function Dt(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function ka(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const r=n[1]==="+"?1:-1,a=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(a*UV+i*HV+o*GV),rest:t.slice(n[0].length)}}function f3(e){return Dt(Gt.anyDigitsSigned,e)}function zt(e,t){switch(e){case 1:return Dt(Gt.singleDigit,t);case 2:return Dt(Gt.twoDigits,t);case 3:return Dt(Gt.threeDigits,t);case 4:return Dt(Gt.fourDigits,t);default:return Dt(new RegExp("^\\d{1,"+e+"}"),t)}}function up(e,t){switch(e){case 1:return Dt(Gt.singleDigitSigned,t);case 2:return Dt(Gt.twoDigitsSigned,t);case 3:return Dt(Gt.threeDigitsSigned,t);case 4:return Dt(Gt.fourDigitsSigned,t);default:return Dt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function j1(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function h3(e,t){const n=t>0,r=n?t:1-t;let a;if(r<=50)a=e||100;else{const i=r+50,o=Math.trunc(i/100)*100,c=e>=i%100;a=e+o-(c?100:0)}return n?a:1-a}function m3(e){return e%400===0||e%4===0&&e%100!==0}class qP extends nt{constructor(){super(...arguments);se(this,"priority",130);se(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,a){const i=o=>({year:o,isTwoDigitYear:r==="yy"});switch(r){case"y":return Yt(zt(4,n),i);case"yo":return Yt(a.ordinalNumber(n,{unit:"year"}),i);default:return Yt(zt(r.length,n),i)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,a){const i=n.getFullYear();if(a.isTwoDigitYear){const c=h3(a.year,i);return n.setFullYear(c,0,1),n.setHours(0,0,0,0),n}const o=!("era"in r)||r.era===1?a.year:1-a.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class XP extends nt{constructor(){super(...arguments);se(this,"priority",130);se(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,a){const i=o=>({year:o,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Yt(zt(4,n),i);case"Yo":return Yt(a.ordinalNumber(n,{unit:"year"}),i);default:return Yt(zt(r.length,n),i)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,a,i){const o=c3(n,i);if(a.isTwoDigitYear){const u=h3(a.year,o);return n.setFullYear(u,0,i.firstWeekContainsDate),n.setHours(0,0,0,0),ps(n,i)}const c=!("era"in r)||r.era===1?a.year:1-a.year;return n.setFullYear(c,0,i.firstWeekContainsDate),n.setHours(0,0,0,0),ps(n,i)}}class KP extends nt{constructor(){super(...arguments);se(this,"priority",130);se(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return up(r==="R"?4:r.length,n)}set(n,r,a){const i=Ut(n,0);return i.setFullYear(a,0,4),i.setHours(0,0,0,0),Lc(i)}}class QP extends nt{constructor(){super(...arguments);se(this,"priority",130);se(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return up(r==="u"?4:r.length,n)}set(n,r,a){return n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}}class ZP extends nt{constructor(){super(...arguments);se(this,"priority",120);se(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,a){switch(r){case"Q":case"QQ":return zt(r.length,n);case"Qo":return a.ordinalNumber(n,{unit:"quarter"});case"QQQ":return a.quarter(n,{width:"abbreviated",context:"formatting"})||a.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(n,{width:"wide",context:"formatting"})||a.quarter(n,{width:"abbreviated",context:"formatting"})||a.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,a){return n.setMonth((a-1)*3,1),n.setHours(0,0,0,0),n}}class JP extends nt{constructor(){super(...arguments);se(this,"priority",120);se(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,a){switch(r){case"q":case"qq":return zt(r.length,n);case"qo":return a.ordinalNumber(n,{unit:"quarter"});case"qqq":return a.quarter(n,{width:"abbreviated",context:"standalone"})||a.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(n,{width:"wide",context:"standalone"})||a.quarter(n,{width:"abbreviated",context:"standalone"})||a.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,a){return n.setMonth((a-1)*3,1),n.setHours(0,0,0,0),n}}class e$ extends nt{constructor(){super(...arguments);se(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);se(this,"priority",110)}parse(n,r,a){const i=o=>o-1;switch(r){case"M":return Yt(Dt(Gt.month,n),i);case"MM":return Yt(zt(2,n),i);case"Mo":return Yt(a.ordinalNumber(n,{unit:"month"}),i);case"MMM":return a.month(n,{width:"abbreviated",context:"formatting"})||a.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(n,{width:"wide",context:"formatting"})||a.month(n,{width:"abbreviated",context:"formatting"})||a.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,a){return n.setMonth(a,1),n.setHours(0,0,0,0),n}}class t$ extends nt{constructor(){super(...arguments);se(this,"priority",110);se(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,a){const i=o=>o-1;switch(r){case"L":return Yt(Dt(Gt.month,n),i);case"LL":return Yt(zt(2,n),i);case"Lo":return Yt(a.ordinalNumber(n,{unit:"month"}),i);case"LLL":return a.month(n,{width:"abbreviated",context:"standalone"})||a.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(n,{width:"wide",context:"standalone"})||a.month(n,{width:"abbreviated",context:"standalone"})||a.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,a){return n.setMonth(a,1),n.setHours(0,0,0,0),n}}function n$(e,t,n){const r=Nt(e),a=NP(r,n)-t;return r.setDate(r.getDate()-a*7),r}class r$ extends nt{constructor(){super(...arguments);se(this,"priority",100);se(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,a){switch(r){case"w":return Dt(Gt.week,n);case"wo":return a.ordinalNumber(n,{unit:"week"});default:return zt(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,a,i){return ps(n$(n,a,i),i)}}function a$(e,t){const n=Nt(e),r=LP(n)-t;return n.setDate(n.getDate()-r*7),n}class i$ extends nt{constructor(){super(...arguments);se(this,"priority",100);se(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,a){switch(r){case"I":return Dt(Gt.week,n);case"Io":return a.ordinalNumber(n,{unit:"week"});default:return zt(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,a){return Lc(a$(n,a))}}const s$=[31,28,31,30,31,30,31,31,30,31,30,31],o$=[31,29,31,30,31,30,31,31,30,31,30,31];class l$ extends nt{constructor(){super(...arguments);se(this,"priority",90);se(this,"subPriority",1);se(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,a){switch(r){case"d":return Dt(Gt.date,n);case"do":return a.ordinalNumber(n,{unit:"date"});default:return zt(r.length,n)}}validate(n,r){const a=n.getFullYear(),i=m3(a),o=n.getMonth();return i?r>=1&&r<=o$[o]:r>=1&&r<=s$[o]}set(n,r,a){return n.setDate(a),n.setHours(0,0,0,0),n}}class c$ extends nt{constructor(){super(...arguments);se(this,"priority",90);se(this,"subpriority",1);se(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,a){switch(r){case"D":case"DD":return Dt(Gt.dayOfYear,n);case"Do":return a.ordinalNumber(n,{unit:"date"});default:return zt(r.length,n)}}validate(n,r){const a=n.getFullYear();return m3(a)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,a){return n.setMonth(0,a),n.setHours(0,0,0,0),n}}
vendor: 10,806 bytes, line 49
49function O1(e,t,n){var p,g,y,x;const r=hf(),a=(n==null?void 0:n.weekStartsOn)??((g=(p=n==null?void 0:n.locale)==null?void 0:p.options)==null?void 0:g.weekStartsOn)??r.weekStartsOn??((x=(y=r.locale)==null?void 0:y.options)==null?void 0:x.weekStartsOn)??0,i=Nt(e),o=i.getDay(),u=(t%7+7)%7,f=7-a,m=t<0||t>6?t-(o+f)%7:(u+f)%7-(o+f)%7;return rg(i,m)}class u$ extends nt{constructor(){super(...arguments);se(this,"priority",90);se(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,a){switch(r){case"E":case"EE":case"EEE":return a.day(n,{width:"abbreviated",context:"formatting"})||a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(n,{width:"wide",context:"formatting"})||a.day(n,{width:"abbreviated",context:"formatting"})||a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,a,i){return n=O1(n,a,i),n.setHours(0,0,0,0),n}}class d$ extends nt{constructor(){super(...arguments);se(this,"priority",90);se(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,a,i){const o=c=>{const u=Math.floor((c-1)/7)*7;return(c+i.weekStartsOn+6)%7+u};switch(r){case"e":case"ee":return Yt(zt(r.length,n),o);case"eo":return Yt(a.ordinalNumber(n,{unit:"day"}),o);case"eee":return a.day(n,{width:"abbreviated",context:"formatting"})||a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"});case"eeeee":return a.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(n,{width:"wide",context:"formatting"})||a.day(n,{width:"abbreviated",context:"formatting"})||a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,a,i){return n=O1(n,a,i),n.setHours(0,0,0,0),n}}class f$ extends nt{constructor(){super(...arguments);se(this,"priority",90);se(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,a,i){const o=c=>{const u=Math.floor((c-1)/7)*7;return(c+i.weekStartsOn+6)%7+u};switch(r){case"c":case"cc":return Yt(zt(r.length,n),o);case"co":return Yt(a.ordinalNumber(n,{unit:"day"}),o);case"ccc":return a.day(n,{width:"abbreviated",context:"standalone"})||a.day(n,{width:"short",context:"standalone"})||a.day(n,{width:"narrow",context:"standalone"});case"ccccc":return a.day(n,{width:"narrow",context:"standalone"});case"cccccc":return a.day(n,{width:"short",context:"standalone"})||a.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(n,{width:"wide",context:"standalone"})||a.day(n,{width:"abbreviated",context:"standalone"})||a.day(n,{width:"short",context:"standalone"})||a.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,a,i){return n=O1(n,a,i),n.setHours(0,0,0,0),n}}function h$(e,t){const n=Nt(e),r=$P(n),a=t-r;return rg(n,a)}class m$ extends nt{constructor(){super(...arguments);se(this,"priority",90);se(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,a){const i=o=>o===0?7:o;switch(r){case"i":case"ii":return zt(r.length,n);case"io":return a.ordinalNumber(n,{unit:"day"});case"iii":return Yt(a.day(n,{width:"abbreviated",context:"formatting"})||a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"}),i);case"iiiii":return Yt(a.day(n,{width:"narrow",context:"formatting"}),i);case"iiiiii":return Yt(a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"}),i);case"iiii":default:return Yt(a.day(n,{width:"wide",context:"formatting"})||a.day(n,{width:"abbreviated",context:"formatting"})||a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"}),i)}}validate(n,r){return r>=1&&r<=7}set(n,r,a){return n=h$(n,a),n.setHours(0,0,0,0),n}}class p$ extends nt{constructor(){super(...arguments);se(this,"priority",80);se(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,a){switch(r){case"a":case"aa":case"aaa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"})||a.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})||a.dayPeriod(n,{width:"abbreviated",context:"formatting"})||a.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,a){return n.setHours(j1(a),0,0,0),n}}class g$ extends nt{constructor(){super(...arguments);se(this,"priority",80);se(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,a){switch(r){case"b":case"bb":case"bbb":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"})||a.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})||a.dayPeriod(n,{width:"abbreviated",context:"formatting"})||a.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,a){return n.setHours(j1(a),0,0,0),n}}class y$ extends nt{constructor(){super(...arguments);se(this,"priority",80);se(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,a){switch(r){case"B":case"BB":case"BBB":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"})||a.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})||a.dayPeriod(n,{width:"abbreviated",context:"formatting"})||a.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,a){return n.setHours(j1(a),0,0,0),n}}class b$ extends nt{constructor(){super(...arguments);se(this,"priority",70);se(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,a){switch(r){case"h":return Dt(Gt.hour12h,n);case"ho":return a.ordinalNumber(n,{unit:"hour"});default:return zt(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,a){const i=n.getHours()>=12;return i&&a<12?n.setHours(a+12,0,0,0):!i&&a===12?n.setHours(0,0,0,0):n.setHours(a,0,0,0),n}}class v$ extends nt{constructor(){super(...arguments);se(this,"priority",70);se(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,a){switch(r){case"H":return Dt(Gt.hour23h,n);case"Ho":return a.ordinalNumber(n,{unit:"hour"});default:return zt(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,a){return n.setHours(a,0,0,0),n}}class x$ extends nt{constructor(){super(...arguments);se(this,"priority",70);se(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,a){switch(r){case"K":return Dt(Gt.hour11h,n);case"Ko":return a.ordinalNumber(n,{unit:"hour"});default:return zt(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,a){return n.getHours()>=12&&a<12?n.setHours(a+12,0,0,0):n.setHours(a,0,0,0),n}}class w$ extends nt{constructor(){super(...arguments);se(this,"priority",70);se(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,a){switch(r){case"k":return Dt(Gt.hour24h,n);case"ko":return a.ordinalNumber(n,{unit:"hour"});default:return zt(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,a){const i=a<=24?a%24:a;return n.setHours(i,0,0,0),n}}class S$ extends nt{constructor(){super(...arguments);se(this,"priority",60);se(this,"incompatibleTokens",["t","T"])}parse(n,r,a){switch(r){case"m":return Dt(Gt.minute,n);case"mo":return a.ordinalNumber(n,{unit:"minute"});default:return zt(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,a){return n.setMinutes(a,0,0),n}}class A$ extends nt{constructor(){super(...arguments);se(this,"priority",50);se(this,"incompatibleTokens",["t","T"])}parse(n,r,a){switch(r){case"s":return Dt(Gt.second,n);case"so":return a.ordinalNumber(n,{unit:"second"});default:return zt(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,a){return n.setSeconds(a,0),n}}class M$ extends nt{constructor(){super(...arguments);se(this,"priority",30);se(this,"incompatibleTokens",["t","T"])}parse(n,r){const a=i=>Math.trunc(i*Math.pow(10,-r.length+3));return Yt(zt(r.length,n),a)}set(n,r,a){return n.setMilliseconds(a),n}}class T$ extends nt{constructor(){super(...arguments);se(this,"priority",10);se(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return ka(Ta.basicOptionalMinutes,n);case"XX":return ka(Ta.basic,n);case"XXXX":return ka(Ta.basicOptionalSeconds,n);case"XXXXX":return ka(Ta.extendedOptionalSeconds,n);case"XXX":default:return ka(Ta.extended,n)}}set(n,r,a){return r.timestampIsSet?n:Ut(n,n.getTime()-cp(n)-a)}}class k$ extends nt{constructor(){super(...arguments);se(this,"priority",10);se(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return ka(Ta.basicOptionalMinutes,n);case"xx":return ka(Ta.basic,n);case"xxxx":return ka(Ta.basicOptionalSeconds,n);case"xxxxx":return ka(Ta.extendedOptionalSeconds,n);case"xxx":default:return ka(Ta.extended,n)}}set(n,r,a){return r.timestampIsSet?n:Ut(n,n.getTime()-cp(n)-a)}}class E$ extends nt{constructor(){super(...arguments);se(this,"priority",40);se(this,"incompatibleTokens","*")}parse(n){return f3(n)}set(n,r,a){return[Ut(n,a*1e3),{timestampIsSet:!0}]}}class C$ extends nt{constructor(){super(...arguments);se(this,"priority",20);se(this,"incompatibleTokens","*")}parse(n){return f3(n)}set(n,r,a){return[Ut(n,a),{timestampIsSet:!0}]}}const R$={G:new WP,y:new qP,Y:new XP,R:new KP,u:new QP,Q:new ZP,q:new JP,M:new e$,L:new t$,w:new r$,I:new i$,d:new l$,D:new c$,E:new u$,e:new d$,c:new f$,i:new m$,a:new p$,b:new g$,B:new y$,h:new b$,H:new v$,K:new x$,k:new w$,m:new S$,s:new A$,S:new M$,X:new T$,x:new k$,t:new E$,T:new C$},L$=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,N$=/^'([^]*?)'?$/,j$=/''/g,O$=/\S/,_$=/[a-zA-Z]/;function Fd(e,t,n,r){var S,A,M,C;const a=PP(),i=a.locale??RP,o=a.firstWeekContainsDate??((A=(S=a.locale)==null?void 0:S.options)==null?void 0:A.firstWeekContainsDate)??1,c=a.weekStartsOn??((C=(M=a.locale)==null?void 0:M.options)==null?void 0:C.weekStartsOn)??0;if(t==="")return e===""?Nt(n):Ut(n,NaN);const u={firstWeekContainsDate:o,weekStartsOn:c,locale:i},f=[new YP],m=t.match(D$).map(R=>{const L=R[0];if(L in mk){const N=mk[L];return N(R,i.formatLong)}return R}).join("").match(L$),p=[];for(let R of m){zP(R)&&pk(R,t,e),BP(R)&&pk(R,t,e);const L=R[0],N=R$[L];if(N){const{incompatibleTokens:O}=N;if(Array.isArray(O)){const T=p.find(j=>O.includes(j.token)||j.token===L);
49if(T)throw new RangeError(`The format string mustn't contain \`${T.fullToken}\` and \`${R}\` at the same time`)}else if(N.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${R}\` and any other token at the same time`);p.push({token:L,fullToken:R});const $=N.run(e,R,i.match,u);if(!$)return Ut(n,NaN);f.push($.setter),e=$.rest}else{if(L.match(_$))throw new RangeError("Format string contains an unescaped latin alphabet character `"+L+"`");if(R==="''"?R="'":L==="'"&&(R=I$(R)),e.indexOf(R)===0)e=e.slice(R.length);else return Ut(n,NaN)}}if(e.length>0&&O$.test(e))return Ut(n,NaN);const g=f.map(R=>R.priority).sort((R,L)=>L-R).filter((R,L,N)=>N.indexOf(R)===L).map(R=>f.filter(L=>L.priority===R).sort((L,N)=>N.subPriority-L.subPriority)).map(R=>R[0]);let y=Nt(n);if(isNaN(y.getTime()))return Ut(n,NaN);const x={};for(const R of g){if(!R.validate(y,u))return Ut(n,NaN);const L=R.set(y,x,u);Array.isArray(L)?(y=L[0],Object.assign(x,L[1])):y=L}return Ut(n,y)}function I$(e){return e.match(N$)[1].replace(j$,"'")}function B$(e,t){const n=+Nt(e),[r,a]=[+Nt(t.start),+Nt(t.end)].sort((i,o)=>i-o);return n>=r&&n<=a}var p3=typeof global=="object"&&global&&global.Object===Object&&global,z$=typeof self=="object"&&self&&self.Object===Object&&self,Pa=p3||z$||Function("return this")(),Dc=Pa.Symbol,g3=Object.prototype,V$=g3.hasOwnProperty,P$=g3.toString,od=Dc?Dc.toStringTag:void 0;function $$(e){var t=V$.call(e,od),n=e[od];try{e[od]=void 0;var r=!0}catch{}var a=P$.call(e);return r&&(t?e[od]=n:delete e[od]),a}var F$=Object.prototype,H$=F$.toString;function U$(e){return H$.call(e)}var G$="[object Null]",Y$="[object Undefined]",gk=Dc?Dc.toStringTag:void 0;function $o(e){return e==null?e===void 0?Y$:G$:gk&&gk in Object(e)?$$(e):U$(e)}function gs(e){return e!=null&&typeof e=="object"}var W$="[object Symbol]";function q$(e){return typeof e=="symbol"||gs(e)&&$o(e)==W$}var Nc=Array.isArray,X$=/\s/;function K$(e){for(var t=e.length;t--&&X$.test(e.charAt(t)););return t}var Q$=/^\s+/;function Z$(e){return e&&e.slice(0,K$(e)+1).replace(Q$,"")}function Ri(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var yk=NaN,J$=/^[-+]0x[0-9a-f]+$/i,e7=/^0b[01]+$/i,t7=/^0o[0-7]+$/i,n7=parseInt;function Hm(e){if(typeof e=="number")return e;if(q$(e))return yk;if(Ri(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ri(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Z$(e);var n=e7.test(e);return n||t7.test(e)?n7(e.slice(2),n?2:8):J$.test(e)?yk:+e}var bk=1/0,r7=17976931348623157e292;function a7(e){if(!e)return e===0?e:0;if(e=Hm(e),e===bk||e===-bk){var t=e<0?-1:1;return t*r7}return e===e?e:0}function i7(e){var t=a7(e),n=t%1;return t===t?n?t-n:t:0}function y3(e){return e}var s7="[object AsyncFunction]",o7="[object Function]",l7="[object GeneratorFunction]",c7="[object Proxy]";function _1(e){if(!Ri(e))return!1;var t=$o(e);return t==o7||t==l7||t==s7||t==c7}var kb=Pa["__core-js_shared__"],vk=(function(){var e=/[^.]+$/.exec(kb&&kb.keys&&kb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function u7(e){return!!vk&&vk in e}var d7=Function.prototype,f7=d7.toString;function Fo(e){if(e!=null){try{return f7.call(e)}catch{}try{return e+""}catch{}}return""}var h7=/[\\^$.*+?()[\]{}|]/g,m7=/^\[object .+?Constructor\]$/,p7=Function.prototype,g7=Object.prototype,y7=p7.toString,b7=g7.hasOwnProperty,v7=RegExp("^"+y7.call(b7).replace(h7,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function x7(e){if(!Ri(e)||u7(e))return!1;var t=_1(e)?v7:m7;return t.test(Fo(e))}function w7(e,t){return e==null?void 0:e[t]}function Ho(e,t){var n=w7(e,t);return x7(n)?n:void 0}var qv=Ho(Pa,"WeakMap"),xk=Object.create,S7=(function(){function e(){}return function(t){if(!Ri(t))return{};if(xk)return xk(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function A7(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function M7(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var T7=800,k7=16,E7=Date.now;function C7(e){var t=0,n=0;return function(){var r=E7(),a=k7-(r-n);if(n=r,a>0){if(++t>=T7)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function R7(e){return function(){return e}}var dp=(function(){try{var e=Ho(Object,"defineProperty");return e({},"",{}),e}catch{}})(),L7=dp?function(e,t){return dp(e,"toString",{configurable:!0,enumerable:!1,value:R7(t),writable:!0})}:y3,D7=C7(L7),N7=9007199254740991,j7=/^(?:0|[1-9]\d*)$/;function b3(e,t){var n=typeof e;return t=t??N7,!!t&&(n=="number"||n!="symbol"&&j7.test(e))&&e>-1&&e%1==0&&e<t}function I1(e,t,n){t=="__proto__"&&dp?dp(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function mf(e,t){return e===t||e!==e&&t!==t}var O7=Object.prototype,_7=O7.hasOwnProperty;function I7(e,t,n){var r=e[t];(!(_7.call(e,t)&&mf(r,n))||n===void 0&&!(t in e))&&I1(e,t,n)}function B7(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var c=t[i],u=void 0;u===void 0&&(u=e[c]),a?I1(n,c,u):I7(n,c,u)}return n}var wk=Math.max;function z7(e,t,n){return t=wk(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=wk(r.length-t,0),o=Array(i);++a<i;)o[a]=r[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=r[a];return c[t]=n(o),A7(e,this,c)}}function V7(e,t){return D7(z7(e,t,y3),e+"")}var P7=9007199254740991;function v3(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=P7}function ag(e){return e!=null&&v3(e.length)&&!_1(e)}function $7(e,t,n){if(!Ri(n))return!1;var r=typeof t;return(r=="number"?ag(n)&&b3(t,n.length):r=="string"&&t in n)?mf(n[t],e):!1}function F7(e){return V7(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&$7(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var c=n[r];c&&e(t,c,r,i)}return t})}var H7=Object.prototype;function B1(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||H7;return e===n}function U7(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var G7="[object Arguments]";function Sk(e){return gs(e)&&$o(e)==G7}var x3=Object.prototype,Y7=x3.hasOwnProperty,W7=x3.propertyIsEnumerable,Xv=Sk((function(){return arguments}
vendor: 8,244 bytes, line 49
49)())?Sk:function(e){return gs(e)&&Y7.call(e,"callee")&&!W7.call(e,"callee")};function q7(){return!1}var w3=typeof br=="object"&&br&&!br.nodeType&&br,Ak=w3&&typeof vr=="object"&&vr&&!vr.nodeType&&vr,X7=Ak&&Ak.exports===w3,Mk=X7?Pa.Buffer:void 0,K7=Mk?Mk.isBuffer:void 0,fp=K7||q7,Q7="[object Arguments]",Z7="[object Array]",J7="[object Boolean]",eF="[object Date]",tF="[object Error]",nF="[object Function]",rF="[object Map]",aF="[object Number]",iF="[object Object]",sF="[object RegExp]",oF="[object Set]",lF="[object String]",cF="[object WeakMap]",uF="[object ArrayBuffer]",dF="[object DataView]",fF="[object Float32Array]",hF="[object Float64Array]",mF="[object Int8Array]",pF="[object Int16Array]",gF="[object Int32Array]",yF="[object Uint8Array]",bF="[object Uint8ClampedArray]",vF="[object Uint16Array]",xF="[object Uint32Array]",At={};At[fF]=At[hF]=At[mF]=At[pF]=At[gF]=At[yF]=At[bF]=At[vF]=At[xF]=!0;At[Q7]=At[Z7]=At[uF]=At[J7]=At[dF]=At[eF]=At[tF]=At[nF]=At[rF]=At[aF]=At[iF]=At[sF]=At[oF]=At[lF]=At[cF]=!1;function wF(e){return gs(e)&&v3(e.length)&&!!At[$o(e)]}function SF(e){return function(t){return e(t)}}var S3=typeof br=="object"&&br&&!br.nodeType&&br,kd=S3&&typeof vr=="object"&&vr&&!vr.nodeType&&vr,AF=kd&&kd.exports===S3,Eb=AF&&p3.process,Tk=(function(){try{var e=kd&&kd.require&&kd.require("util").types;return e||Eb&&Eb.binding&&Eb.binding("util")}catch{}})(),kk=Tk&&Tk.isTypedArray,z1=kk?SF(kk):wF,MF=Object.prototype,TF=MF.hasOwnProperty;function A3(e,t){var n=Nc(e),r=!n&&Xv(e),a=!n&&!r&&fp(e),i=!n&&!r&&!a&&z1(e),o=n||r||a||i,c=o?U7(e.length,String):[],u=c.length;for(var f in e)(t||TF.call(e,f))&&!(o&&(f=="length"||a&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||b3(f,u)))&&c.push(f);return c}function M3(e,t){return function(n){return e(t(n))}}var kF=M3(Object.keys,Object),EF=Object.prototype,CF=EF.hasOwnProperty;function RF(e){if(!B1(e))return kF(e);var t=[];for(var n in Object(e))CF.call(e,n)&&n!="constructor"&&t.push(n);return t}function LF(e){return ag(e)?A3(e):RF(e)}function DF(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var NF=Object.prototype,jF=NF.hasOwnProperty;function OF(e){if(!Ri(e))return DF(e);var t=B1(e),n=[];for(var r in e)r=="constructor"&&(t||!jF.call(e,r))||n.push(r);return n}function T3(e){return ag(e)?A3(e,!0):OF(e)}var Hd=Ho(Object,"create");function _F(){this.__data__=Hd?Hd(null):{},this.size=0}function IF(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var BF="__lodash_hash_undefined__",zF=Object.prototype,VF=zF.hasOwnProperty;function PF(e){var t=this.__data__;if(Hd){var n=t[e];return n===BF?void 0:n}return VF.call(t,e)?t[e]:void 0}var $F=Object.prototype,FF=$F.hasOwnProperty;function HF(e){var t=this.__data__;return Hd?t[e]!==void 0:FF.call(t,e)}var UF="__lodash_hash_undefined__";function GF(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Hd&&t===void 0?UF:t,this}function Co(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Co.prototype.clear=_F;Co.prototype.delete=IF;Co.prototype.get=PF;Co.prototype.has=HF;Co.prototype.set=GF;function YF(){this.__data__=[],this.size=0}function ig(e,t){for(var n=e.length;n--;)if(mf(e[n][0],t))return n;return-1}var WF=Array.prototype,qF=WF.splice;function XF(e){var t=this.__data__,n=ig(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():qF.call(t,n,1),--this.size,!0}function KF(e){var t=this.__data__,n=ig(t,e);return n<0?void 0:t[n][1]}function QF(e){return ig(this.__data__,e)>-1}function ZF(e,t){var n=this.__data__,r=ig(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Di(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Di.prototype.clear=YF;Di.prototype.delete=XF;Di.prototype.get=KF;Di.prototype.has=QF;Di.prototype.set=ZF;var Ud=Ho(Pa,"Map");function JF(){this.size=0,this.__data__={hash:new Co,map:new(Ud||Di),string:new Co}}function e9(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function sg(e,t){var n=e.__data__;return e9(t)?n[typeof t=="string"?"string":"hash"]:n.map}function t9(e){var t=sg(this,e).delete(e);return this.size-=t?1:0,t}function n9(e){return sg(this,e).get(e)}function r9(e){return sg(this,e).has(e)}function a9(e,t){var n=sg(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Uo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Uo.prototype.clear=JF;Uo.prototype.delete=t9;Uo.prototype.get=n9;Uo.prototype.has=r9;Uo.prototype.set=a9;function i9(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var k3=M3(Object.getPrototypeOf,Object),s9="[object Object]",o9=Function.prototype,l9=Object.prototype,E3=o9.toString,c9=l9.hasOwnProperty,u9=E3.call(Object);function d9(e){if(!gs(e)||$o(e)!=s9)return!1;var t=k3(e);if(t===null)return!0;var n=c9.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&E3.call(n)==u9}function f9(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}function pf(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=Hm(n),n=n===n?n:0),t!==void 0&&(t=Hm(t),t=t===t?t:0),f9(Hm(e),t,n)}function h9(){this.__data__=new Di,this.size=0}function m9(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function p9(e){return this.__data__.get(e)}function g9(e){return this.__data__.has(e)}var y9=200;function b9(e,t){var n=this.__data__;if(n instanceof Di){var r=n.__data__;if(!Ud||r.length<y9-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Uo(r)}return n.set(e,t),this.size=n.size,this}function ki(e){var t=this.__data__=new Di(e);this.size=t.size}ki.prototype.clear=h9;ki.prototype.delete=m9;ki.prototype.get=p9;ki.prototype.has=g9;ki.prototype.set=b9;var C3=typeof br=="object"&&br&&!br.nodeType&&br,Ek=C3&&typeof vr=="object"&&vr&&!vr.nodeType&&vr,v9=Ek&&Ek.exports===C3,Ck=v9?Pa.Buffer:void 0;Ck&&Ck.allocUnsafe;function x9(e,t){return e.slice()}function w9(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}function S9(){return[]}var A9=Object.prototype,M9=A9.propertyIsEnumerable,Rk=Object.getOwnPropertySymbols,T9=Rk?function(e){return e==null?[]:(e=Object(e),w9(Rk(e),function(t){return M9.call(e,t)}))}:S9;function k9(e,t,n){var r=t(e);return Nc(e)?r:i9(r,n(e))}function Lk(e){return k9(e,LF,T9)}var Kv=Ho(Pa,"DataView"),Qv=Ho(Pa,"Promise"),Zv=Ho(Pa,"Set"),Dk="[object Map]",E9="[object Object]",Nk="[object Promise]",jk="[object Set]",Ok="[object WeakMap]",_k="[object DataView]",C9=Fo(Kv),R9=Fo(Ud),L9=Fo(Qv),D9=Fo(Zv),N9=Fo(qv),ls=$o;(Kv&&ls(new Kv(new ArrayBuffer(1)))!=_k||Ud&&ls(new Ud)!=Dk||Qv&&ls(Qv.resolve())!=Nk||Zv&&ls(new Zv)!=jk||qv&&ls(new qv)!=Ok)&&(ls=function(e){var t=$o(e),n=t==E9?e.constructor:void 0,r=n?Fo(n):"";if(r)switch(r){case C9:return _k;case R9:return Dk;case L9:return Nk;case D9:return jk;case N9:return Ok}return t});var hp=Pa.Uint8Array;function j9(e){var t=new e.constructor(e.byteLength);return new hp(t).set(new hp(e)),t}function O9(e,t){var n=j9(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}function _9(e){return typeof e.constructor=="function"&&!B1(e)?S7(k3(e)):{}}var I9="__lodash_hash_undefined__";function B9(e){return this.__data__.set(e,I9),this}function z9(e){return this.__data__.has(e)}function mp(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Uo;++t<n;)this.add(e[t])}mp.prototype.add=mp.prototype.push=B9;mp.prototype.has=z9;function V9(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function P9(e,t){return e.has(t)}var $9=1,F9=2;function R3(e,t,n,r,a,i){var o=n&$9,c=e.length,u=t.length;if(c!=u&&!(o&&u>c))return!1;var f=i.get(e),m=i.get(t);if(f&&m)return f==t&&m==e;var p=-1,g=!0,y=n&F9?new mp:void 0;for(i.set(e,t),i.set(t,e);++p<c;){var x=e[p],S=t[p];if(r)var A=o?r(S,x,p,t,e,i):r(x,S,p,e,t,i);if(A!==void 0){if(A)continue;g=!1;break}if(y){if(!V9(t,function(M,C){if(!P9(y,C)&&(x===M||a(x,M,n,r,i)))return y.push(C)})){g=!1;break}}else if(!(x===S||a(x,S,n,r,i))){g=!1;break}}return i.delete(e),i.delete(t),g}function H9(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}
vendor: 2,031 bytes, line 49
49),n}function U9(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var G9=1,Y9=2,W9="[object Boolean]",q9="[object Date]",X9="[object Error]",K9="[object Map]",Q9="[object Number]",Z9="[object RegExp]",J9="[object Set]",eH="[object String]",tH="[object Symbol]",nH="[object ArrayBuffer]",rH="[object DataView]",Ik=Dc?Dc.prototype:void 0,Cb=Ik?Ik.valueOf:void 0;function aH(e,t,n,r,a,i,o){switch(n){case rH:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case nH:return!(e.byteLength!=t.byteLength||!i(new hp(e),new hp(t)));case W9:case q9:case Q9:return mf(+e,+t);case X9:return e.name==t.name&&e.message==t.message;case Z9:case eH:return e==t+"";case K9:var c=H9;case J9:var u=r&G9;if(c||(c=U9),e.size!=t.size&&!u)return!1;var f=o.get(e);if(f)return f==t;r|=Y9,o.set(e,t);var m=R3(c(e),c(t),r,a,i,o);return o.delete(e),m;case tH:if(Cb)return Cb.call(e)==Cb.call(t)}return!1}var iH=1,sH=Object.prototype,oH=sH.hasOwnProperty;function lH(e,t,n,r,a,i){var o=n&iH,c=Lk(e),u=c.length,f=Lk(t),m=f.length;if(u!=m&&!o)return!1;for(var p=u;p--;){var g=c[p];if(!(o?g in t:oH.call(t,g)))return!1}var y=i.get(e),x=i.get(t);if(y&&x)return y==t&&x==e;var S=!0;i.set(e,t),i.set(t,e);for(var A=o;++p<u;){g=c[p];var M=e[g],C=t[g];if(r)var R=o?r(C,M,g,t,e,i):r(M,C,g,e,t,i);if(!(R===void 0?M===C||a(M,C,n,r,i):R)){S=!1;break}A||(A=g=="constructor")}if(S&&!A){var L=e.constructor,N=t.constructor;L!=N&&"constructor"in e&&"constructor"in t&&!(typeof L=="function"&&L instanceof L&&typeof N=="function"&&N instanceof N)&&(S=!1)}return i.delete(e),i.delete(t),S}var cH=1,Bk="[object Arguments]",zk="[object Array]",fm="[object Object]",uH=Object.prototype,Vk=uH.hasOwnProperty;function dH(e,t,n,r,a,i){var o=Nc(e),c=Nc(t),u=o?zk:ls(e),f=c?zk:ls(t);u=u==Bk?fm:u,f=f==Bk?fm:f;var m=u==fm,p=f==fm,g=u==f;if(g&&fp(e)){if(!fp(t))return!1;o=!0,m=!1}if(g&&!m)return i||(i=new ki),o||z1(e)?R3(e,t,n,r,a,i):aH(e,t,u,n,r,a,i);if(!(n&cH)){var y=m&&Vk.call(e,"__wrapped__"),x=p&&Vk.call(t,"__wrapped__");
49if(y||x){var S=y?e.value():e,A=x?t.value():t;return i||(i=new ki),a(S,A,n,r,i)}}return g?(i||(i=new ki),lH(e,t,n,r,a,i)):!1}function L3(e,t,n,r,a){return e===t?!0:e==null||t==null||!gs(e)&&!gs(t)?e!==e&&t!==t:dH(e,t,n,r,L3,a)}function fH(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),c=o.length;c--;){var u=o[++a];if(n(i[u],u,i)===!1)break}return t}}var hH=fH();function Jv(e,t,n){(n!==void 0&&!mf(e[t],n)||n===void 0&&!(t in e))&&I1(e,t,n)}function mH(e){return gs(e)&&ag(e)}function ex(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function pH(e){return B7(e,T3(e))}function gH(e,t,n,r,a,i,o){var c=ex(e,n),u=ex(t,n),f=o.get(u);if(f){Jv(e,n,f);return}var m=i?i(c,u,n+"",e,t,o):void 0,p=m===void 0;if(p){var g=Nc(u),y=!g&&fp(u),x=!g&&!y&&z1(u);m=u,g||y||x?Nc(c)?m=c:mH(c)?m=M7(c):y?(p=!1,m=x9(u)):x?(p=!1,m=O9(u)):m=[]:d9(u)||Xv(u)?(m=c,Xv(c)?m=pH(c):(!Ri(c)||_1(c))&&(m=_9(u))):p=!1}p&&(o.set(u,m),a(m,u,r,i,o),o.delete(u)),Jv(e,n,m)}function D3(e,t,n,r,a){e!==t&&hH(t,function(i,o){if(a||(a=new ki),Ri(i))gH(e,t,o,n,D3,r,a);else{var c=r?r(ex(e,o),i,o+"",e,t,a):void 0;c===void 0&&(c=i),Jv(e,o,c)}},T3)}function og(e,t){return L3(e,t)}function yH(e){return typeof e=="number"&&e==i7(e)}var Go=F7(function(e,t,n){D3(e,t,n)}),Yo=e=>e.length>0;function de(e){return e!=null}function Ro(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}var N3="\0graphy\0_",mt=e=>`${N3}${e}`,jc={x:mt("constantX")},Ed={bar:mt("barSeriesLabel"),line:mt("lineSeriesLabel")},Lo={count:mt("count"),mean:mt("mean"),sum:mt("sum")},pt={group:mt("group")},oe={x:mt("x"),y:mt("y"),xMin:mt("xMin"),xMax:mt("xMax"),yMin:mt("yMin"),yMax:mt("yMax"),yRaw:mt("yRaw")},V1={role:mt("stackRole")},Wc={color:mt("color"),size:mt("size"),alpha:mt("alpha"),strokeWidth:mt("strokeWidth"),lineType:mt("lineType")},hm={y:mt("ruleY"),x:mt("ruleX")},bH=new Set(Object.values(Lo)),vH=e=>mt(`scaled_${e}`),j3=e=>e.startsWith(N3),xH=e=>bH.has(e);function wH(e){const{numeric:t,categorical:n,temporal:r}=e.groupVariableNamesByType();return r[0]??n[0]??t[0]??""}function O3(e,t){const{categorical:n,temporal:r}=e.groupVariableNamesByType(),a=[...n,...r];return t===""||a.includes(t)?a:[t,...a]}function P1(e){const t=pe(e.x);return t===null||t===jc.x?"":t}function pe(e){return de(e)?typeof e=="string"?e:"variable"in e?e.variable:null:null}function Sr(e){if(!(!de(e)||typeof e=="string")&&"value"in e)return e.value}function SH(e,t){return[...new Set([...Object.keys(e),...Object.keys(t)])].every(n=>Pk(e[n])===Pk(t[n]))}function Pk(e){const t=pe(e);if(t!==null)return`variable:${t}`;const n=Sr(e);return n===void 0?"":n===null?"value:null":n instanceof Date?`value:date:${n.getTime()}`:`value:${typeof n}:${n}`}var Ar=e=>e instanceof Date&&xr(e),AH=e=>Ar(e)||e===null,lg=e=>typeof e=="string",Et=e=>typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e),MH=e=>Et(e)||e===null,_3="en-GB",$1=class extends Error{constructor(t){super(t.message,t.cause!==void 0?{cause:t.cause}:void 0),this.name=new.target.name,this.code=t.code,this.context=t.context,this.suggestion=t.suggestion}},tr=class extends $1{constructor(t){super(t),this.kind="user-input"}},Be=class extends $1{constructor(t){super({...t,code:t.code??"INTERNAL_INVARIANT"}),this.kind="internal"}},F1=e=>e.type==="lookup",TH=e=>e.type==="text",qc=e=>e.type==="date"||e.type==="datetime"||e.type==="year"||e.type==="month_year"||e.type==="month"||e.type==="day_month"||e.type==="weekly_date_range"||e.type==="weekly_date_range_with_year"||e.type==="quarter"||e.type==="time",I3=e=>e.type==="decimal"||e.type==="integer"||e.type==="percentage"||e.type==="duration"||e.type==="currency",B3=e=>e.type==="currency",z3=e=>e.type==="month"||e.type==="day_month"||e.type==="weekly_date_range",V3=e=>{if(F1(e))return V3(e.fallback);if(qc(e))return"temporal";if(I3(e))return"numeric";if(TH(e))return"categorical";throw new Be({message:`No data type found for value format: ${e.type}`})},Cd=e=>F1(e)?e.fallback:e,P3=class{constructor(){this.currentYear=new Date().getUTCFullYear(),this.previousDate=null,this.previousYear=null}incrementYearIfNeeded(t){this.previousYear===null?this.previousYear=t.getUTCFullYear():this.previousDate!==null&&FP(new Date(this.currentYear,t.getUTCMonth(),t.getUTCDate()),new Date(this.currentYear,this.previousDate.getUTCMonth(),this.previousDate.getUTCDate()))&&this.previousYear++;const n=new Date(t.getTime());return n.setUTCFullYear(this.previousYear),this.previousDate=n,n}},Rd={k:1e3,m:1e6,b:1e9,t:1e12},H1=["k","m","b","t"],kH=new RegExp(`^-?(\\d{1,3}(,\\d{3})*|\\d+)\\.?\\d*(${H1.join("|")})?$`,"i"),EH=/^-?\d{1,3}(?:,\d{3})*(?:\.\d+)?%?$/,Do=e=>e===null||e instanceof Date||Array.isArray(e)||typeof e=="boolean"?!1:typeof e=="string"?kH.test(e)&&!Number.isNaN(Number(e.replace(new RegExp(`[,${H1.join("")}]`,"gi"),""))):!Number.isNaN(Number(e)),$3=e=>Do(e)?!0:typeof e=="string"?EH.test(e):!1,CH=/^\d{4}-\d{2}-\d{2}(T|\s)\d{1,2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|\+00:00)?$/,RH=/^\s*(19\d{2}|2[01]\d{2})\s*$/,LH=[[/\bJan\b/i,"January"],[/\bFeb\b/i,"February"],[/\bMar\b/i,"March"],[/\bApr\b/i,"April"],[/\bJun\b/i,"June"],[/\bJul\b/i,"July"],[/\bAug\b/i,"August"],[/\bSept?\b/i,"September"],[/\bOct\b/i,"October"],[/\bNov\b/i,"November"],[/\bDec\b/i,"December"]],DH={"en-US":"MDY","en-GB":"DMY","pt-PT":"DMY",ar:"DMY"},F3=["/","-","."," "],$k=[["d","M","yy"],["d","MM","yy"],["d","MMMM","yy"],["dd","M","yy"],["dd","MM","yy"],["dd","MMMM","yy"],["do","MMMM","yy"],["d","M","yyyy"],["d","MM","yyyy"],["d","MMMM","yyyy"],["dd","M","yyyy"],["dd","MM","yyyy"],["dd","MMMM","yyyy"],["do","MMMM","yyyy"]],Fk=[["M","d","yy"],["M","dd","yy"],["MM","d","yy"],["MM","dd","yy"],["MMMM","d","yy"],["MMMM","dd","yy"],["MMMM","do","yy"],["M","d","yyyy"],["M","dd","yyyy"],["MM","d","yyyy"],["MM","dd","yyyy"],["MMMM","d","yyyy"],["MMMM","dd","yyyy"],["MMMM","do","yyyy"]],Hk=[["yyyy","M","d"],["yyyy","M","dd"],["yyyy","MM","d"],["yyyy","MM","dd"],["yyyy","MMMM","d"],["yyyy","MMMM","dd"],["yyyy","MMMM","do"]],H3=[["d","MMMM"],["dd","MMMM"],["do","MMMM"],["MMMM","d"],["MMMM","dd"],["MMMM","do"]],NH=[{dateFormat:"MMMM d, yyyy",type:"date"},{dateFormat:"MMMM dd, yyyy",type:"date"},{dateFormat:"MMMM do, yyyy",type:"date"},{dateFormat:"yyyy-MM",type:"month_year"}],U3=1900,G3=2199,jH=3,OH=6,_H=5,IH=1,BH=28,zH=/\s*[ââ]\s*|\s-\s/,VH=e=>typeof e=="number"?Number.isNaN(e)?!1:e>=U3&&e<=G3:typeof e=="string"?RH.test(e):!1,Y3=(e,t)=>
49{const n=Gd(e);return Do(n)?FH(n):typeof n=="string"?!!W3(n)||cg(n)&&xr(new Date(n)):xr(n)},Gd=e=>{if(typeof e!="string")return e;let t=e;for(const[n,r]of LH)t=t.replace(n,r);return t},W3=(e,t=_3)=>{const n=Gd(e);return cg(n)?{type:"datetime"}:X3(t).find(r=>!qc(r)||r.type==="month"&&n.length<jH?!1:r.dateFormat&&xr(Fd(n,r.dateFormat,new Date)))},cg=e=>CH.test(e.trim()),q3=e=>{if(e instanceof Date)return xr(e)?e:null;if(typeof e!="string"||!cg(e))return null;const t=new Date(e.trim());return xr(t)?t:null},PH=(e,t=_3)=>{const[n,r]=e.split(zH);if(!n||!r)return;const a=Gd(n).trim(),i=Gd(r).trim();return $H(t).find(o=>{if(!qc(o)||!o.dateFormat)return!1;const c=Fd(a,o.dateFormat,new Date),u=Fd(i,o.dateFormat,new Date);if(!xr(c)||!xr(u))return!1;const f=new P3,m=f.incrementYearIfNeeded(c),p=f.incrementYearIfNeeded(u),g=l3(p,m);return B$(new Date(m.getFullYear(),IH,BH),{start:m,end:p})&&g===_H?!0:g===OH})},X3=e=>{const t={date:K3(e),year:[["yyyy"]],day_month:H3,month_year:[["MMMM","yyyy"],["yyyy","MMMM"]],month:[["MMMM"]],quarter:[["QQQ","yyyy"],["yyyy","QQQ"]]};return[...NH,...Object.entries(t).flatMap(([n,r])=>r.flatMap(a=>F3.map(i=>({dateFormat:a.join(i),type:n}))))]},K3=e=>DH[e]==="MDY"?[...Fk,...$k,...Hk]:[...$k,...Fk,...Hk],$H=e=>{const t={weekly_date_range:H3,weekly_date_range_with_year:K3(e)};return Object.entries(t).flatMap(([n,r])=>r.flatMap(a=>F3.map(i=>({dateFormat:a.join(i),type:n}))))},FH=e=>{const t=Number(e);if(!yH(t))return!1;const n=new Date(t),r=new Date(t*1e3),a=i=>xr(i)&&i.getFullYear()>=U3&&i.getFullYear()<=G3;return a(n)||a(r)},Q3={$:"usd","£":"gbp","â¬":"eur","Â¥":"jpy","â¹":"inr","â±":"php",P:"php","â©":"krw","âª":"ils","â«":"vnd","â½":"rub","฿":"thb",R$:"brl",Rp:"idr",RM:"myr","â¦":"ngn",zÅ:"pln","âº":"try",kr:"dkk",Fr:"chf",R:"zar","د.Ø¥":"aed","ï·¼":"sar",Ch$:"clp",NT$:"twd",HK$:"hkd",S$:"sgd",A$:"aud",C$:"cad",NZ$:"nzd",MX$:"mxn"},Z3=e=>{if(typeof e=="string"){const t=J3(e);return t.length?Do(t):!1}return Do(e)},HH=e=>{const t=eD(e),n=t?Q3[t]:void 0;if(!n)throw new Be({message:"Could not get currency ISO"});return n},J3=e=>{const t=eD(e);let n=e;if(t){const r=e.indexOf(t);r===0?n=e.slice(t.length):r===e.length-t.length?n=e.slice(0,e.length-t.length):e[0]==="-"&&r===1&&(n=`-${e.slice(t.length+1)}`)}return Do(n)?n.split(",").join(""):""},eD=e=>Object.keys(Q3).sort((t,n)=>n.length-t.length).find(t=>e.includes(t)),tD=e=>{const t=Object.entries(e);return!t.length||!t.some(([,n])=>!gf(n))},gf=e=>typeof e=="string"&&e.trim()===""||e===void 0||e===null||e==="-",UH=/\s*[ââ]\s*|\s-\s/,U1=(e,t,n)=>{if(gf(e))return null;switch(t.type){case"decimal":case"integer":case"duration":return rD(e);case"percentage":return GH(e);case"currency":return YH(e);case"datetime":case"date":case"year":case"month_year":case"month":case"day_month":case"quarter":case"time":return nD(e,t.dateFormat,n);case"weekly_date_range":case"weekly_date_range_with_year":return WH(e,t.dateFormat,n);case"text":return qH(e);case"lookup":throw new Be({message:"Cannot parse: lookup value formats are produced by transforms, not raw input"});default:throw new Be({message:`Unhandled value format: ${t.type}`})}},nD=(e,t,n)=>{if(e instanceof Date)return xr(e)?e:null;const r=Gd(String(e).trim());if(r.length===0)return null;const a=new Date;if(t){const o=Fd(r,t,a);return xr(o)?Rb(o):null}for(const o of X3(n)){if(!qc(o)||!o.dateFormat)continue;const c=Fd(r,o.dateFormat,a);if(xr(c))return Rb(c)}const i=new Date(r);return Y3(i)?cg(r)?i:Rb(i):null},rD=e=>{if(typeof e=="number")return Number.isNaN(e)?null:e;if(typeof e!="string")return null;let t=e.trim();if(!Do(t))return null;let n=1;for(const r of H1)if(new RegExp(`${r}$`,"i").test(t)){n=Rd[r],t=t.slice(0,-1);break}return Number(t.split(",").join(""))*n},GH=e=>{if(typeof e=="number")return Number.isNaN(e)?null:e;if(typeof e!="string")return null;const t=e.trim();if(!$3(t))return null;const n=Number(t.replace(/%/g,"").replace(/,/g,""))/100;return Number.isNaN(n)?null:n},YH=e=>{if(typeof e=="number")return Number.isNaN(e)?null:e;if(typeof e!="string")return null;const t=e.trim();return Z3(t)?rD(J3(t)):null},WH=(e,t,n)=>{var o,c;const r=String(e).trim().split(UH),[a,i]=[(o=r[0])==null?void 0:o.trim(),(c=r[1])==null?void 0:c.trim()];return!a||!i?null:nD(a,t,n)},qH=e=>String(e).trim(),Rb=e=>new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())),XH=()=>{let e=null;return Object.assign((n,r)=>{if(e&&iD(e.args,n))return e.out;const a=r();return e={args:n,out:a},a},{stats:{hits:0,misses:0},reset:()=>{e=null}})},aD=()=>{const e=new WeakMap;return Object.assign((n,r,a)=>{const i=e.get(n);if(i)for(let c=0;c<i.length;c+=1){const u=i[c];if(u&&iD(u.args,r))return c>0&&(i.splice(c,1),i.unshift(u)),u.out}const o=a();return i?(i.unshift({args:r,out:o}),i.length>16&&(i.length=16)):e.set(n,[{args:r,out:o}]),o},{stats:{hits:0,misses:0}})},KH=(...e)=>e.reduce((t,n)=>({hits:t.hits+n.hits,misses:t.misses+n.misses}),{hits:0,misses:0}),iD=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return!1;return!0},xs=class{constructor(){this.memo=aD(),this.singletonKey={}}get stats(){return this.memo.stats}compile(t){return this.memo(this.key(t),this.dependencies(t),()=>this.run(t))}key(t){return this.singletonKey}},yt=e=>(Array.isArray(e)?e:[e]).map(t=>t instanceof Date?t.toISOString():String(t??"<null>")).join("\0"),un=(e,t)=>e===t?!0:Ar(e)&&Ar(t)?e.getTime()===t.getTime():!1,QH=new Set(["count","sum","mean","median"]);function sD(e,t){return QH.has(e)?"numeric":t}
49function oD(e,t,n){const r=(n==null?void 0:n.length)??t.length;if(e==="count")return r;if(e==="median"||e==="mode"){const o=[];for(let c=0;c<r;c++){const u=Lb(t,n,c);Db(u)&&o.push(u)}return o.length===0?null:e==="median"?eU(o):tU(o)}if(e==="sum"||e==="mean"){let o=0,c=0;for(let u=0;u<r;u++){const f=Lb(t,n,u);Db(f)&&(o++,c+=Number(f))}return o===0?null:e==="sum"?c:c/o}const a=e==="min"?-1:1;let i=null;for(let o=0;o<r;o++){const c=Lb(t,n,o);Db(c)&&(i===null||ZH(c,i)===a)&&(i=c)}return i}var Lb=(e,t,n)=>e[(t==null?void 0:t[n])??n]??null,Db=e=>e!==null&&!(typeof e=="number"&&Number.isNaN(e)),ZH=(e,t)=>e===null||t===null?0:e<t?-1:e>t?1:0,JH=e=>e instanceof Date?e.getTime():e??null;function eU(e){const t=e.map(Number).sort((i,o)=>i-o);if(t.length===1)return t[0]??0;const n=(t.length-1)/2,r=Math.floor(n),a=t[r]??0;return a+((t[r+1]??a)-a)*(n-r)}function tU(e){const t=new Map;for(const a of e){const i=JH(a),o=t.get(i);o===void 0?t.set(i,{value:a,count:1}):o.count++}let n=null,r=0;for(const{value:a,count:i}of t.values())i>r&&(r=i,n=a);return n}var nU=e=>e==null||typeof e=="number"&&Number.isNaN(e),rU=e=>e instanceof Date?e.getTime():e??null,tx=class ss{constructor(t,n,r,a=null){this.rowShape=null,this.names=t,this.columns=n,this.rowCount=r,this.source=a}get columnCount(){return this.names.length}static from(t){var r;const n=Object.entries(t);return new ss(n.map(([a])=>a),new Map(n),((r=n[0])==null?void 0:r[1].length)??0)}columnNames(){return[...this.names]}hasColumn(t){return this.names.includes(t)}values(t){const n=this.columns.get(t);if(n!==void 0)return n;if(this.source===null||!this.names.includes(t))return;const r=this.source.table.values(t);if(r===void 0)return;const{indices:a}=this.source,i=new Array(a.length);for(let o=0;o<a.length;o++)i[o]=r[a[o]??0]??null;return this.columns.set(t,i),this.columns.size===this.names.length&&(this.source=null),i}assign(t,n){const r=this.gathered(),a=new Map(r.columns);a.set(t,n);const i=r.names.includes(t)?[...r.names]:[...r.names,t];return new ss(i,a,r.names.length===0?n.length:r.rowCount)}select(t){const n=t.filter(a=>this.names.includes(a)),r=new Map;for(const a of n){const i=this.columns.get(a);i!==void 0&&r.set(a,i)}return new ss(n,r,this.rowCount,this.source)}rename(t,n){const r=this.gathered(),a=new Map;for(const i of r.names){const o=r.columns.get(i);o!==void 0&&a.set(i===t?n:i,o)}return new ss(r.names.map(i=>i===t?n:i),a,r.rowCount)}take(t){const n=this.source===null?{table:this,indices:t}:{table:this.source.table,indices:t.map(r=>{var a;return((a=this.source)==null?void 0:a.indices[r])??0})};return new ss(this.names,new Map,t.length,n)}sortedIndices(t,n){const r=this.values(t);if(r===void 0)return Array.from({length:this.rowCount},(c,u)=>u);const a=[],i=[];for(let c=0;c<this.rowCount;c++)(nU(r[c])?a:i).push(c);const o=n==="asc"?1:-1;return i.sort((c,u)=>{const f=r[c],m=r[u];return f<m?-o:f>m?o:0}),a.length===0?i:n==="asc"?[...a,...i]:[...i,...a]}partition(t){const n=t.map(i=>this.values(i)).filter(i=>i!==void 0),r=n.length===1?n[0]:void 0,a=new Map;if(r!==void 0){for(let i=0;i<this.rowCount;i++){const o=rU(r[i]),c=a.get(o);c===void 0?a.set(o,{key:yt(r[i]??null),indices:[i]}):c.indices.push(i)}return[...a.values()]}for(let i=0;i<this.rowCount;i++){const o=yt(n.map(u=>u[i])),c=a.get(o);c===void 0?a.set(o,{key:o,indices:[i]}):c.indices.push(i)}return[...a.values()]}fold(t,n,r){var g;const a=this.names.filter(y=>!t.includes(y)),i=this.rowCount*t.length,o=a.map(y=>({name:y,source:this.values(y)??[],repeated:new Array(i)})),c=t.map(y=>this.values(y)??[]),u=new Array(i),f=new Array(i);let m=0;for(let y=0;y<this.rowCount;y++)for(let x=0;x<t.length;x++,m++){for(const S of o)S.repeated[m]=S.source[y]??null;u[m]=t[x]??"",f[m]=((g=c[x])==null?void 0:g[y])??null}const p=new Map;for(const{name:y,repeated:x}of o)p.set(y,x);return p.set(n,u),p.set(r,f),new ss([...a,n,r],p,i)}objectAt(t){var o;const{names:n,arrays:r,template:a}=this.rowShape??this.resolveRowShape(),i={...a};for(let c=0;c<n.length;c++)i[n[c]??""]=((o=r[c])==null?void 0:o[t])??null;return i}*[Symbol.iterator](){for(let t=0;t<this.rowCount;t++)yield this.objectAt(t)}resolveRowShape(){const t={};for(const n of this.names)t[n]=null;return this.rowShape={names:this.names,arrays:this.names.map(n=>this.values(n)??[]),template:t},this.rowShape}gathered(){if(this.source===null)return this;for(const t of this.names)this.values(t);return new ss(this.names,new Map(this.columns),this.rowCount)}},nx="value",Ld={numeric:{type:"decimal"},categorical:{type:"text"},temporal:{type:"datetime"}},Uk={eq:(e,t)=>
49e===t,neq:(e,t)=>e!==t,gt:(e,t)=>e!==null&&t!==null&&e>t,gte:(e,t)=>e!==null&&t!==null&&e>=t,lt:(e,t)=>e!==null&&t!==null&&e<t,lte:(e,t)=>e!==null&&t!==null&&e<=t},Gk=e=>e===null?null:e instanceof Date?e.getTime():new Date(e).getTime(),lD=(e,t)=>e==="count"?{type:"integer"}:t,cD=(e,t,n)=>{const r=e.values(t);if(r!==void 0)return r;if(n==="count")return new Array(e.rowCount);throw new Be({message:`Variable '${t}' not defined`})},fs=class mr{constructor(t={}){const{table:n,variableMetadata:r}=this.parseVariableMap(t);this.table=n,this.variableMetadata=r}static fromTrusted(t,n){const r=Object.create(mr.prototype);return r.table=t,r.variableMetadata=n,r}size(){return this.table.rowCount}getVariableNames(){return this.table.columnNames()}hasVariable(t){return this.table.hasColumn(t)}addVariable(t,n,r,a){if(this.table.columnCount>0&&r.length!==this.size())throw new Be({message:`Variable '${t}' has ${r.length} values, expected ${this.size()}`});const i={...this.variableMetadata,[t]:{type:n,valueFormat:this.resolveAddedVariableFormat(t,n,a)}},o=this.normalizeRawValues(n,r),c=this.table.assign(t,o);return mr.fromTrusted(c,i)}addConstantVariable(t,n,r,a){const i={...this.variableMetadata,[t]:{type:n,valueFormat:this.resolveAddedVariableFormat(t,n,a),constant:{value:r}}},[o=null]=this.normalizeRawValues(n,[r]),c=this.table.assign(t,new Array(this.size()).fill(o));return mr.fromTrusted(c,i)}getConstant(t){var n;return(n=this.variableMetadata[t])==null?void 0:n.constant}deriveVariable(t,n,r,a){const i=Array.from({length:this.size()},(o,c)=>r(this.table.objectAt(c)));return this.addVariable(t,n,i,a)}deriveVariableFrom(t,n,r,a,i){const o=this.hasVariable(t)?this.getValues(t).map(a):Array.from({length:this.size()},()=>a(null));return this.addVariable(n,r,o,i)}renameVariable(t,n){const r=this.variableMetadata[t];if(!r)throw new Be({message:`Variable ${t} not defined`});const a=this.table.rename(t,n),{[t]:i,...o}=this.variableMetadata,c={...o,[n]:r};return mr.fromTrusted(a,c)}selectVariables(...t){const n=this.table.select(t),r=Object.fromEntries(Object.entries(this.variableMetadata).filter(([a])=>t.includes(a)));return mr.fromTrusted(n,r)}getType(t){const n=this.variableMetadata[t];if(!n)throw new Be({message:`Variable ${t} not defined`});return n.type}getValueFormat(t){const n=this.variableMetadata[t];if(!n)throw new Be({message:`Variable ${t} not defined`});return n.valueFormat}groupVariableNamesByType(){const t={numeric:[],categorical:[],temporal:[]};for(const[n,{type:r}]of Object.entries(this.variableMetadata))t[r].push(n);return t}getValues(t,n){if(!this.hasVariable(t))throw new Be({message:`Variable '${t}' not defined`});const r=this.getType(t);if((n==null?void 0:n.type)!==void 0&&r!==n.type)throw new Be({message:`Variable '${t}' has type '${r}', expected '${n.type}'`});let a=this.table.values(t)??[];return n!=null&&n.distinct&&(a=this.getDistinctValues(r,a)),n!=null&&n.skipNulls&&(a=this.skipNulls(a)),a}filter(t,n,r){if(this.hasVariable(t)&&this.getType(t)==="temporal")return this.filterByTimestamp(t,n,r);const a=Uk[n],i=this.table.values(t)??[],o=[];for(let c=0;c<i.length;c++)a(i[c]??null,r)&&o.push(c);return mr.fromTrusted(this.table.take(o),this.variableMetadata)}filterByMask(t){if(t.length!==this.size())throw new Be({message:`Row mask length ${t.length} does not match dataset size ${this.size()}`});const n=[];for(let r=0;r<t.length;r++)t[r]===1&&n.push(r);return mr.fromTrusted(this.table.take(n),this.variableMetadata)}orderBy(t,n="asc"){const r=this.table.take(this.table.sortedIndices(t,n));return mr.fromTrusted(r,this.variableMetadata)}getAt(t){return t<0||t>=this.size()?null:this.table.objectAt(t)}getFirst(){return this.getAt(0)}getLast(){return this.getAt(this.size()-1)}findLast(t){for(let n=this.size()-1;n>=0;n--){const r=this.table.objectAt(n);if(t(r))return r}return null}groupBy(...t){return new aU(t,this.table,this.variableMetadata)}rollup(t){const n=tx.from(Object.fromEntries(Object.entries(t).map(([a,{variableName:i,aggregation:o}])=>[a,[oD(o,cD(this.table,i,o))]]))),r={};for(const[a,{variableName:i,aggregation:o}]of Object.entries(t)){const c=this.variableMetadata[i],u=(c==null?void 0:c.type)??"numeric",f=(c==null?void 0:c.valueFormat)??Ld[u];r[a]={type:sD(o,u),valueFormat:lD(o,f)}}return mr.fromTrusted(n,r)}reshapeFromWideToLong({keep:t,reshape:n,keyName:r="key",valueName:a=nx}={}
49){const{numeric:i,categorical:o,temporal:c}=this.groupVariableNamesByType(),u=t??[...o,...c],f=n??i.filter(g=>!u.includes(g));if(u.includes(r)||u.includes(a))throw new tr({code:"INVALID_DATA_SHAPE",message:`The variables to keep includes the variables '${r}' or '${a}' to create the key and value variables`});if(f.length===0){const g={};for(const y of u){const x=this.variableMetadata[y];x&&(g[y]={type:x.type,values:[],valueFormat:x.valueFormat})}return g[r]={type:"categorical",values:[],valueFormat:{type:"text"}},g[a]={type:"numeric",values:[],valueFormat:{type:"decimal"}},new mr(g)}if(f.filter(g=>{var y;return((y=this.variableMetadata[g])==null?void 0:y.type)!=="numeric"}).length>0)throw new tr({code:"INVALID_DATA_SHAPE",message:"Only numeric variables can be reshaped"});const m=this.table.select([...u,...f]).fold(f,r,a),p={};for(const g of u){const y=this.variableMetadata[g];y&&(p[g]=y)}return p[r]={type:"categorical",valueFormat:{type:"text"}},p[a]={type:"numeric",valueFormat:iU(this.variableMetadata,f,r)},mr.fromTrusted(m,p)}print(){console.table(this.variableMetadata),console.table([...this.table])}[Symbol.iterator](){return this.table[Symbol.iterator]()}filterByTimestamp(t,n,r){const a=Uk[n],i=Gk(r),o=this.getValues(t,{type:"temporal"}),c=[];for(let u=0;u<o.length;u++)a(Gk(o[u]??null),i)&&c.push(u);return mr.fromTrusted(this.table.take(c),this.variableMetadata)}resolveAddedVariableFormat(t,n,r){if(r!==void 0)return r;const a=this.variableMetadata[t];return a?a.valueFormat:Ld[n]}parseVariableMap(t){const n={},r={};for(const[a,{type:i,values:o,valueFormat:c}]of Object.entries(t))n[a]=o,r[a]={type:i,valueFormat:c??Ld[i]};return{table:tx.from(n),variableMetadata:r}}normalizeRawValues(t,n){switch(t){case"numeric":return n.map(r=>typeof r!="number"||Number.isNaN(r)?null:r);case"categorical":return n.map(r=>typeof r!="string"?null:r);case"temporal":return n.map(r=>!(r instanceof Date)||!xr(r)?null:r);default:throw new Be({message:`Cannot normalize raw value of unknown type: ${t}`})}}skipNulls(t){return t.filter(n=>n!==null)}getDistinctValues(t,n){const r=t==="temporal",a=new Set,i=[];for(const o of n){const c=r&&o instanceof Date?o.getTime():o;a.has(c)||(a.add(c),i.push(o))}return i}},aU=class{constructor(t,n,r){this.groupedBy=t,this.table=n,this.variableMetadata=r}forEach(t){this.table.partition(this.groupedBy).forEach(({key:n,indices:r},a)=>{t(fs.fromTrusted(this.table.take(r),this.variableMetadata),n,a)})}rollup(t){const n=this.table.partition(this.groupedBy),r={};for(const i of this.groupedBy){const o=this.table.values(i)??[];r[i]=n.map(({indices:c})=>o[c[0]??0]??null)}const a=Object.fromEntries(this.groupedBy.map(i=>{const o=this.variableMetadata[i],c=(o==null?void 0:o.type)??"categorical";return[i,{type:c,valueFormat:(o==null?void 0:o.valueFormat)??Ld[c]}]}));for(const[i,{variableName:o,aggregation:c}]of Object.entries(t)){const u=cD(this.table,o,c);r[i]=n.map(({indices:g})=>oD(c,u,g));const f=this.variableMetadata[o],m=(f==null?void 0:f.type)??"numeric",p=(f==null?void 0:f.valueFormat)??Ld[m];a[i]={type:sD(c,m),valueFormat:lD(c,p)}}return fs.fromTrusted(tx.from(r),a)}};function iU(e,t,n){const r=t.map(c=>{var u;return((u=e[c])==null?void 0:u.valueFormat)??{type:"decimal"}}),[a,...i]=r;if(!a)return{type:"decimal"};for(const c of r)if(c.type==="lookup")throw new tr({code:"INVALID_DATA_SHAPE",message:"Cannot reshape: a source column has a lookup format and lookups cannot nest"});if(i.every(c=>og(c,a))||a.type==="lookup")return a;const o={};for(const[c,u]of t.entries()){const f=yt([u]),m=r[c];m&&m.type!=="lookup"&&(o[f]=m)}return{type:"lookup",byVariable:n,cases:o,fallback:a}}var Xc=class{constructor(t){this.label=t,this.items=new Map}register(t,n){return this.items.set(t,n),this}get(t){if(!this.items.has(t)){const n=[...this.items.keys()].map(r=>`'${r}'`).join(", ");throw new tr({code:"UNKNOWN_REGISTERED_TYPE",message:`Unknown ${this.label}: '${t}' (available: ${n})`,context:{kind:this.label,requested:t,available:[...this.items.keys()]},suggestion:`Register a custom ${this.label} named '${t}' in the \`plugins\` array, or use one of: ${n}.`})}return this.items.get(t)}getAll(){return[...this.items.values()]}has(t){return this.items.has(t)}},sU=(e,t)=>{const n=typeof e=="string"?e.trim():e;if(Do(n))return{type:"decimal"};const r=typeof n=="string"&&W3(n,t);return r||typeof n=="string"&&PH(n,t)||(Y3(e)?{type:"date"}:$3(e)?{type:"percentage"}
49:Z3(e)&&typeof e=="string"?{type:"currency",iso:HH(e)}:{type:"text"})},oU={type:"year",dateFormat:"yyyy"},lU=e=>{var i,o;const t=((i=e._metadata)==null?void 0:i.parsingLocale)??"en-GB",n={},r=fU(e),a=uU(e);for(const[c,u]of e.columns.entries()){if((o=u._metadata)!=null&&o.isHidden)continue;const f=r.get(u.key);if(gf(f))continue;const m=c===a?oU:sU(f,t),p=V3(m);n[u.key]=dU(u.key,e.rows,m,p,t)}return new fs(n)},cU=class extends xs{dependencies(e){return[e]}run(e){return lU(e)}},uU=e=>{const t=hU(e.rows,5);return e.columns.findIndex(n=>{const r=t.map(a=>a[n.key]).filter(a=>!gf(a));return r.length>=2&&r.every(VH)})},dU=(e,t,n,r,a)=>({type:r,values:t.reduce((i,o)=>(tD(o)||i.push(U1(o[e],n,a)),i),[]),valueFormat:n}),fU=e=>{const t=new Map,n=new Set(e.columns.map(r=>r.key));for(const r of e.rows){for(const a of n){const i=r[a];gf(i)||(t.set(a,i),n.delete(a))}if(n.size===0)break}return t},hU=(e,t)=>{const n=[];for(const r of e)if(tD(r)||n.push(r),n.length===t)return n;return n},mU=class{constructor(){this.transformType="aggregate"}apply(t,n){const{options:r}=n,a={};for(const i of r.operations)a[i.as]={variableName:i.variableName,aggregation:i.op};return t.groupBy(...r.groupby).rollup(a)}},pU=class{constructor(){this.transformType="constant"}apply(t,n){const{options:r}=n;return t.addConstantVariable(r.variableName,r.type,r.value)}getIntroducedVariables(t){const{options:n}=t;return[n.variableName]}},gU=class{constructor(){this.transformType="filter"}apply(t,n){const{options:r}=n;return t.filter(r.variableName,r.operator,r.value)}},yU=class{constructor(){this.transformType="reshape"}apply(t,n){const{options:r}=n;return t.reshapeFromWideToLong({keep:r.keep,reshape:r.reshape,keyName:r.keyName,valueName:r.valueName})}getIntroducedVariables(t){const{options:n}=t;return[n.keyName??"key"]}},bU=class{constructor(){this.transformType="sort"}apply(t,n){const{options:r}=n;return t.orderBy(r.variableName,r.direction??"asc")}},vU=[new mU,new pU,new gU,new yU,new bU],G1=class extends Xc{constructor(){super("transform");for(const t of vU)this.register(t.transformType,t)}},Y1=["#B399FE","#FC7E91","#33B6E0","#FFC849","#25CDA5","#FA9B65","#D93C95","#845FD8","#3F8EEB","#58C8D8","#F35074","#6EA0DA"],zr={red:"#E83562",orange:"#F38650",yellow:"#FBBC30",green:"#31FCB4",cyan:"#40F8FF",blue:"#279EFF",purple:"#B399FD",dark_purple:"#6D48D2",plum:"#C82184",pink:"#FC8497"},xU=[zr.purple,zr.dark_purple],wU=[zr.purple,zr.pink,zr.yellow,zr.blue,zr.red,zr.cyan,zr.orange,zr.plum,zr.green,zr.dark_purple],Zr={green:"#B2DDC9",cyan:"#A2D5E2",blue:"#AAC4FF",purple:"#B2A4FF",plum:"#DCA8C7",pink:"#FFCCD3",red:"#FFADAD",orange:"#FFDEB4",yellow:"#FDF7C3"},SU=[Zr.green,Zr.purple,Zr.red,Zr.cyan,Zr.pink,Zr.blue,Zr.orange,Zr.plum,Zr.yellow],rx={grey900:"#1c1917",grey800:"#292524",grey700:"#44403c",grey600:"#57534e",grey500:"#78716c",grey400:"#a8a29e",grey300:"#d6d3d1",grey200:"#e7e5e4",grey100:"#f5f5f4",grey50:"#fafaf9",red900:"#7f1d1d",red800:"#991b1b",red700:"#b91c1c",red600:"#dc2626",red500:"#ef4444",red400:"#f87171",red300:"#fca5a5",red200:"#fecaca",red100:"#fee2e2",red50:"#fef2f2",orange900:"#7c2d12",orange800:"#9a3412",orange700:"#c2410c",orange600:"#ea580c",orange500:"#f97316",orange400:"#fb923c",orange300:"#fdba74",orange200:"#fed7aa",orange100:"#ffedd5",orange50:"#fff7ed",yellow900:"#553B0C",yellow800:"#6F4B08",yellow700:"#8D6300",yellow600:"#BD8A00",yellow500:"#E5B400",yellow400:"#FFC800",yellow300:"#FBDA2B",yellow200:"#FEED72",yellow100:"#FEF8B4",yellow50:"#FEFCE2",green900:"#064e3b",green800:"#065f46",green700:"#047857",green600:"#059669",green500:"#10b981",green400:"#34d399",green300:"#6ee7b7",green200:"#a7f3d0",green100:"#d1fae5",green50:"#ecfdf5",cyan900:"#164e63",cyan800:"#155e75",cyan700:"#0e7490",cyan600:"#0891B2",cyan500:"#06b6d4",cyan400:"#22d3ee",cyan300:"#67e8f9",cyan200:"#a5f3fc",cyan100:"#cffafe",cyan50:"#ecfeff",blue900:"#1e3a8a",blue800:"#1e40af",blue700:"#1d4ed8",blue600:"#2563eb",blue500:"#3b82f6",blue400:"#60a5fa",blue300:"#93c5fd",blue200:"#bfdbfe",blue100:"#dbeafe",blue50:"#eff6ff",purple900:"#4c1d95",purple800:"#5b21b6",purple700:"#6d28d9",purple600:"#7c3aed",purple500:"#8b5cf6",purple400:"#a78bfa",purple300:"#c4b5fd",purple200:"#ddd6fe",purple100:"#ede9fe",purple50:"#f5f3ff",pink900:"#751A5E",pink800:"#8F1972",pink700:"#AF1C8A",pink600:"#D326A8",pink500:"#E845BF",pink400:"#F979D9",pink300:"#FCABE8",pink200:"#FED0F3",pink100:"#FFE8F9",pink50:"#FFF4FC"},AU=[rx.grey200,Zr.green,Zr.red,rx.grey200],Yk={dark:{1:[500],2:[600,400],3:[600,400,200],4:[600,500,300,100],5:[700,600,400,200,50],6:[600,500,400,300,200,100],7:[600,500,400,300,200,100,50],default:[700,600,500,400,300,200,100,50]},light:{1:[600],2:[700,500],3:[800,600,400],4:[800,600,400,300],5:[800,700,600,500,400],6:[800,700,600,500,400,300],7:[900,800,700,600,500,400,300],default:[900,800,700,600,500,400,300,200]}},yr={cyan:"#22D3EE",pink:"#F377EF",purple:"#6528F7",red:"#FB2576",orange:"#FF9300",yellow:"#FBFF00",green:"#06FF00",blue:"#0079FF"},mm=[yr.cyan,yr.pink,yr.purple,yr.red,yr.orange,yr.yellow,yr.green,yr.blue],MU=[yr.cyan,yr.green,yr.red,yr.cyan],pm={start:"#84D1FC",positive:"#84FC89",negative:"#FC8497",total:"#84D1FC"},TU=[pm.start,pm.positive,pm.negative,pm.total],va={transform:"linear",reverse:!1,nice:!0,zero:!1,domainMin:null,domainMax:null,
49scheme:null,interpolate:"lab",domainMid:null},Wk={size:[4,20],alpha:[.1,1],strokeWidth:[1,4]},gm={domainMin:null,domainMax:null,nice:!1,reverse:!1},So={range:null,domain:null,padding:.1,reverse:!1},qk={palette:{type:"default"}};function kU(e,t="light",n){return((n!==void 0?Yk[t][n]:void 0)??Yk[t].default).map(r=>rx[`${e}${r}`])}function EU(e){const t=mm.indexOf(yr[e]);return t<=0?mm:[...mm.slice(t),...mm.slice(0,t)]}function CU(e,t){switch(e.type){case"default":return Y1;case"graphy":return e.variant==="waterfall"?TU:wU;case"pastel":return e.variant==="waterfall"?AU:SU;case"neon":return e.variant==="waterfall"?MU:EU(e.base);case"mono":return kU(e.base,e.variant??"light",t);case"custom":return e.colors}}function RU(e,t){if(!t)return e;const n=[...e];for(const[r,a]of Object.entries(t)){const i=Number(r);if(!Number.isInteger(i)||i<1)continue;const o=i-1;o<n.length&&(n[o]=a)}return n}function LU(e,t,n,r){var o;if(!t)return;const a=(n==null?void 0:n.type)==="custom"?r[n.id]:void 0,i={};for(const[c,u]of Object.entries(t)){const f=Number(c);if(!(!Number.isInteger(f)||f<1)){if(u.hex!==void 0){i[f]=u.hex;continue}if(u.id!==void 0){const m=(o=a==null?void 0:a.find(p=>p.id===u.id))==null?void 0:o.hex;m!==void 0?i[f]=m:e.diagnostics.addWarning({code:"PALETTE_NOT_FOUND",message:`Palette override at slot ${f} with id '${u.id}' did not resolve against the active palette â falling back to palette color.`,context:{requested:u.id,available:(a==null?void 0:a.map(p=>p.id))??[]},suggestion:"Define the override id in the active custom palette, or use a hex value instead."})}}}return Object.keys(i).length>0?i:void 0}function DU(e,t,n){if(!t)return qk.palette;if(t.type==="custom"){const r=n[t.id];if(!r)return e.diagnostics.addWarning({code:"PALETTE_NOT_FOUND",message:`Custom palette with id "${t.id}" not found â falling back to the default palette.`,context:{requested:t.id,available:Object.keys(n)},suggestion:"Register the palette in customPalettes, or reference an existing palette id."}),qk.palette;const a=r.map(i=>i.hex);return{type:"custom",id:t.id,colors:a}}return t}function Cn(e,t={}){const n=t;return{type:"scale",scaledAesthetic:e,scaleType:"continuous",transform:t.transform,reverse:t.reverse,nice:t.nice,zero:t.zero,clamp:t.clamp,domainMin:t.domainMin??null,domainMax:t.domainMax??null,range:t.range,scheme:n.scheme??null,interpolate:n.interpolate,domainMid:n.domainMid??null,symmetric:n.symmetric}}function Um(e,t={}){return{type:"scale",scaledAesthetic:e,scaleType:"datetime",domainMin:t.domainMin??null,domainMax:t.domainMax??null,nice:t.nice,reverse:t.reverse,clamp:t.clamp}}function Jn(e,t={}){return{type:"scale",scaledAesthetic:e,scaleType:"discrete",range:t.range,domain:t.domain??null,padding:t.padding,reverse:t.reverse}}function vd(e,t={}){return{type:"scale",scaledAesthetic:e,scaleType:"identity"}}function xc(e,t){return{type:"scale",scaledAesthetic:e,scaleType:"inferred",options:t}}function W1(e,t={}){return{type:"scale",scaledAesthetic:e,scaleType:"palette",palette:t.palette,overrides:t.overrides}}var uD=["none","xs","sm","md","lg","xl","full"],rn={point:jU,line:OU,area:_U,bar:IU,rule:BU,tile:zU},NU=e=>typeof e=="string"&&uD.includes(e);function Wo(e,t){return{type:"layer",id:t.id,geom:e,mapping:t.aes,stat:t.stat,params:t.params,position:t.position,yScaleType:t.yScaleType,transforms:t.transforms,interactive:t.interactive,dataLabels:t.dataLabels}}function jU(e={}){return Wo("point",e)}function OU(e={}){return Wo("line",e)}function _U(e={}){return Wo("area",e)}function IU(e={}){return Wo("bar",e)}function BU(e={}){return Wo("rule",e)}function zU(e={}){return Wo("tile",e)}var q1=["observation","category","aggregate"],X1=["inside","outside"],dD=["top","right","bottom","left"],fD=["heading","label","value","primaryRow"],hD=["dimmed","hovered"],No=e=>typeof e=="object"&&e!==null&&typeof e.light=="string"&&typeof e.dark=="string",ax=e=>typeof e=="object"&&e!==null&&typeof e.token=="string";function $a(e){return{type:"styles",...e}}function cn(e){return{token:e}}var Xl=e=>{const t={...(e==null?void 0:e.where)===void 0?{}:{where:e.where},...(e==null?void 0:e.state)===void 0?{}:{state:e.state}};return{...(e==null?void 0:e.id)===void 0?{}:{id:e.id},...Object.keys(t).length===0?{}:{when:t}}},ao=e=>(e==null?void 0:e.layer)===void 0?{}:{layer:e.layer},Ke=e=>(e==null?void 0:e.id)===void 0?{}:{id:e.id}
49,ge={geom:Object.assign((e,t)=>({...Xl(t),select:{target:"geom",...ao(t)},declarations:e}),{bar:(e,t)=>({...Xl(t),select:{target:"geom",kind:"bar",...ao(t)},declarations:e}),line:(e,t)=>({...Xl(t),select:{target:"geom",kind:"line",...ao(t)},declarations:e}),area:(e,t)=>({...Xl(t),select:{target:"geom",kind:"area",...ao(t)},declarations:e}),point:(e,t)=>({...Xl(t),select:{target:"geom",kind:"point",...ao(t)},declarations:e}),rule:Object.assign((e,t)=>({...Xl(t),select:{target:"geom",kind:"rule",...ao(t)},declarations:e}),{label:(e,t)=>({...Ke(t),select:{target:"ruleLabel",...ao(t)},declarations:e})})}),panelBorder:Object.assign((e,t)=>({...Ke(t),select:{target:"panelBorder"},declarations:e}),{top:(e,t)=>({...Ke(t),select:{target:"panelBorder",edge:"top"},declarations:e}),right:(e,t)=>({...Ke(t),select:{target:"panelBorder",edge:"right"},declarations:e}),bottom:(e,t)=>({...Ke(t),select:{target:"panelBorder",edge:"bottom"},declarations:e}),left:(e,t)=>({...Ke(t),select:{target:"panelBorder",edge:"left"},declarations:e})}),gridLine:Object.assign((e,t)=>({...Ke(t),select:{target:"gridLine"},declarations:e}),{x:(e,t)=>({...Ke(t),select:{target:"gridLine",axis:"x"},declarations:e}),y:(e,t)=>({...Ke(t),select:{target:"gridLine",axis:"y"},declarations:e})}),tickLine:Object.assign((e,t)=>({...Ke(t),select:{target:"tickLine"},declarations:e}),{x:(e,t)=>({...Ke(t),select:{target:"tickLine",axis:"x"},declarations:e}),y:(e,t)=>({...Ke(t),select:{target:"tickLine",axis:"y"},declarations:e})}),axisLabel:Object.assign((e,t)=>({...Ke(t),select:{target:"axisLabel"},declarations:e}),{x:(e,t)=>({...Ke(t),select:{target:"axisLabel",axis:"x"},declarations:e}),y:(e,t)=>({...Ke(t),select:{target:"axisLabel",axis:"y"},declarations:e})}),tickLabel:Object.assign((e,t)=>({...Ke(t),select:{target:"tickLabel"},declarations:e}),{x:(e,t)=>({...Ke(t),select:{target:"tickLabel",axis:"x"},declarations:e}),y:(e,t)=>({...Ke(t),select:{target:"tickLabel",axis:"y"},declarations:e})}),dataLabel:Object.assign((e,t)=>({...Ke(t),select:{target:"dataLabel"},declarations:e}),{observation:Object.assign((e,t)=>({...Ke(t),select:{target:"dataLabel",role:"observation"},declarations:e}),{inside:(e,t)=>({...Ke(t),select:{target:"dataLabel",role:"observation",position:"inside"},declarations:e}),outside:(e,t)=>({...Ke(t),select:{target:"dataLabel",role:"observation",position:"outside"},declarations:e})}),category:Object.assign((e,t)=>({...Ke(t),select:{target:"dataLabel",role:"category"},declarations:e}),{inside:(e,t)=>({...Ke(t),select:{target:"dataLabel",role:"category",position:"inside"},declarations:e}),outside:(e,t)=>({...Ke(t),select:{target:"dataLabel",role:"category",position:"outside"},declarations:e})}),aggregate:(e,t)=>({...Ke(t),select:{target:"dataLabel",role:"aggregate"},declarations:e})}),graph:(e,t)=>({...Ke(t),select:{target:"graph"},declarations:e}),tooltip:Object.assign((e,t)=>({...Ke(t),select:{target:"tooltip"},declarations:e}),{heading:(e,t)=>({...Ke(t),select:{target:"tooltip",part:"heading"},declarations:e}),label:(e,t)=>({...Ke(t),select:{target:"tooltip",part:"label"},declarations:e}),value:(e,t)=>({...Ke(t),select:{target:"tooltip",part:"value"},declarations:e}),primaryRow:(e,t)=>({...Ke(t),select:{target:"tooltip",part:"primaryRow"},declarations:e})})},K1=Y1[0],VU=Object.freeze({light:"#1D2129",dark:"#FFFFFF"}),yf="#ffffff",mD=.4,pD=Object.freeze({light:"rgba(29, 33, 41, 0.1)",dark:"rgba(255, 255, 255, 0.1)"}),PU=pD,$U=Object.freeze({light:"#FFFFFF",dark:"#1A1A1A"}),FU=Object.freeze({light:"#000000",dark:"#FFFFFF"}),HU=Object.freeze({light:"rgba(0, 0, 0, 0.6)",dark:"rgba(255, 255, 255, 0.8)"}),UU=.3,GU={geomColor:K1,ruleColor:VU,pointBorderColor:"#ffffff",hoverAffordanceColor:yf,gridLineColor:pD,tickLineColor:PU,graphBackground:$U,textPrimary:FU,textSecondary:HU,tooltipBackground:{light:"#FFFFFF",dark:"#353535"},tooltipBorderColor:{light:"rgba(29, 33, 41, 0.1)",dark:"#494949"},tooltipPrimaryRow:{light:"#F0F0F0",dark:"#494949"}},gD=[ge.geom({color:cn("geomColor"),alpha:1}),ge.geom.bar({borderRadius:"sm",borderWidth:1}),ge.geom.line({strokeWidth:2,lineType:"solid"}),ge.geom.area({alpha:UU,strokeWidth:2,lineType:"solid",strokeAlpha:1}),ge.geom.point({size:8,borderColor:cn("pointBorderColor"),borderWidth:1}),ge.geom.rule({color:cn("ruleColor"),strokeWidth:1,lineType:"dashed"}),ge.geom({alpha:mD},{state:"dimmed"}),ge.geom.point({borderColor:cn("hoverAffordanceColor")},{state:"hovered"}),ge.geom.bar({borderColor:cn("hoverAffordanceColor")},{state:"hovered"}),ge.gridLine({color:cn("gridLineColor"),strokeWidth:1,lineType:"dashed"}),ge.tickLine({color:cn("tickLineColor"),strokeWidth:1,lineType:"solid",length:6}),ge.panelBorder({color:cn("gridLineColor"),strokeWidth:1,lineType:"dashed",borderRadius:8}
49),ge.graph({background:cn("graphBackground"),borderWidth:0,borderRadius:8}),ge.axisLabel({fontSize:12,fontWeight:500,lineHeight:1,textColor:cn("textPrimary")}),ge.tickLabel({fontSize:12,fontWeight:500,lineHeight:1,textColor:cn("textSecondary"),offset:10}),ge.geom.rule.label({fontSize:11,fontWeight:500,lineHeight:1}),ge.dataLabel({fontSize:11,fontWeight:500,lineHeight:1,textColor:cn("textPrimary"),paddingInline:6,paddingBlock:2,borderRadius:4}),ge.dataLabel.aggregate({fontWeight:600,paddingInline:4,background:{light:"#FFFFFF",dark:"#000000"},borderColor:{light:"#CCCCCC",dark:"#494949"},borderWidth:1}),ge.dataLabel.observation.inside({textColor:"#FFFFFF"}),ge.dataLabel.category.inside({textColor:"#FFFFFF"}),ge.dataLabel.observation.outside({background:{light:"rgba(0, 0, 0, 0.1)",dark:"rgba(255, 255, 255, 0.1)"}}),ge.dataLabel.category.outside({background:{light:"rgba(0, 0, 0, 0.1)",dark:"rgba(255, 255, 255, 0.1)"}}),ge.tooltip({background:cn("tooltipBackground"),borderColor:cn("tooltipBorderColor"),borderWidth:1,borderRadius:6,paddingBlock:8,paddingInline:10,shadow:{offsetX:0,offsetY:4,blur:12,color:"rgba(0, 0, 0, 0.18)"}}),ge.tooltip.heading({fontSize:12,fontWeight:500,lineHeight:1.3,textColor:cn("textPrimary")}),ge.tooltip.label({fontSize:14,fontWeight:500,lineHeight:1.43,textColor:cn("textSecondary")}),ge.tooltip.value({fontSize:14,fontWeight:500,lineHeight:1.43,textColor:cn("textPrimary")}),ge.tooltip.primaryRow({background:cn("tooltipPrimaryRow")})];for(const e of gD){Object.freeze(e.select);for(const t of Object.values(e.declarations))typeof t=="object"&&Object.freeze(t);Object.freeze(e.declarations),e.when!==void 0&&Object.freeze(e.when),Object.freeze(e)}var pp=Object.freeze({tokens:Object.freeze(GU),defaults:Object.freeze(gD),overrides:Object.freeze([])}),yD=["grouped-bars","stacked-bars","lines"],Q1={"grouped-bars":"dodge","stacked-bars":"stack",lines:null},bD=e=>e==="identity"?"grouped-bars":yD.find(t=>Q1[t]===e)??null,Z1={cartesian:(e={})=>({type:"coord",coordType:"cartesian",params:e}),flip:(e={})=>({type:"coord",coordType:"flip",params:e}),polar:(e={})=>({type:"coord",coordType:"polar",params:e})},Bt={x:Object.assign(e=>xc("x",e),{continuous:e=>Cn("x",e),discrete:e=>Jn("x",e),datetime:e=>Um("x",e),log:e=>Cn("x",{...e,transform:"log"}),sqrt:e=>Cn("x",{...e,transform:"sqrt"})}),y:Object.assign(e=>xc("y",e),{continuous:e=>Cn("y",e),discrete:e=>Jn("y",e),datetime:e=>Um("y",e),log:e=>Cn("y",{...e,transform:"log"}),sqrt:e=>Cn("y",{...e,transform:"sqrt"})}),ySecondary:Object.assign(e=>xc("ySecondary",e),{continuous:e=>Cn("ySecondary",e),discrete:e=>Jn("ySecondary",e),datetime:e=>Um("ySecondary",e),log:e=>Cn("ySecondary",{...e,transform:"log"}),sqrt:e=>Cn("ySecondary",{...e,transform:"sqrt"})}),color:{continuous:e=>Cn("color",e),discrete:e=>Jn("color",e),palette:e=>W1("color",e)},size:{continuous:e=>Cn("size",e),discrete:e=>Jn("size",e),identity:e=>vd("size",e)},alpha:{continuous:e=>Cn("alpha",e),discrete:e=>Jn("alpha",e),identity:e=>vd("alpha",e)},strokeWidth:{continuous:e=>Cn("strokeWidth",e),discrete:e=>Jn("strokeWidth",e),identity:e=>vd("strokeWidth",e)},lineType:{discrete:e=>Jn("lineType",e),identity:e=>vd("lineType",e)}},ug={identity:WU,count:qU,smooth:YU,mean:XU,sum:KU};function YU(e){return{type:"smooth",method:e.method,order:e.order,bandwidth:e.bandwidth}}function WU(){return{type:"identity"}}function qU(){return{type:"count"}}function XU(){return{type:"mean"}}function KU(){return{type:"sum"}}var bf={reshape:QU,filter:ZU,sort:JU,aggregate:eG,constant:tG};function QU(e={}){return{type:"transform",transformType:"reshape",options:e}}function ZU(e){return{type:"transform",transformType:"filter",options:e}}function JU(e){return{type:"transform",transformType:"sort",options:e}}function eG(e){return{type:"transform",transformType:"aggregate",options:e}}function tG(e){return{type:"transform",transformType:"constant",options:e}}function nG(e){var r;const t=(r=e.layout)==null?void 0:r.gaps;if(t===void 0)return e;const n={};for(const a of Object.keys(t)){const i=t[a];i!==void 0&&(n[a]=typeof i=="number"?{after:i}:i)}return{...e,layout:{...e.layout,gaps:n}}}function Fa(e){return{type:"config",config:nG(e)}}function cc(e,t,n){return Math.min(Math.max(e,n),t)}
49class xd extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}function Ao(e){if(typeof e!="string")throw new xd(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=uG.test(e)?iG(e):e;const n=sG.exec(t);if(n){const o=Array.from(n).slice(1);return[...o.slice(0,3).map(c=>parseInt(Yd(c,2),16)),parseInt(Yd(o[3]||"f",2),16)/255]}const r=oG.exec(t);if(r){const o=Array.from(r).slice(1);return[...o.slice(0,3).map(c=>parseInt(c,16)),parseInt(o[3]||"ff",16)/255]}const a=lG.exec(t);if(a){const o=Array.from(a).slice(1);return[...o.slice(0,3).map(c=>parseInt(c,10)),parseFloat(o[3]||"1")]}const i=cG.exec(t);if(i){const[o,c,u,f]=Array.from(i).slice(1).map(parseFloat);if(cc(0,100,c)!==c)throw new xd(e);if(cc(0,100,u)!==u)throw new xd(e);return[...dG(o,c,u),Number.isNaN(f)?1:f]}throw new xd(e)}function rG(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const Xk=e=>parseInt(e.replace(/_/g,""),36),aG="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=Xk(t.substring(0,3)),r=Xk(t.substring(3)).toString(16);let a="";for(let i=0;i<6-r.length;i++)a+="0";return e[n]=`${a}${r}`,e},{});function iG(e){const t=e.toLowerCase().trim(),n=aG[rG(t)];if(!n)throw new xd(e);return`#${n}`}const Yd=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),sG=new RegExp(`^#${Yd("([a-f0-9])",3)}([a-f0-9])?$`,"i"),oG=new RegExp(`^#${Yd("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),lG=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Yd(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),cG=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,uG=/^[a-z]+$/i,Kk=e=>Math.round(e*255),dG=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(Kk);const a=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),o=i*(1-Math.abs(a%2-1));let c=0,u=0,f=0;a>=0&&a<1?(c=i,u=o):a>=1&&a<2?(c=o,u=i):a>=2&&a<3?(u=i,f=o):a>=3&&a<4?(u=o,f=i):a>=4&&a<5?(c=o,f=i):a>=5&&a<6&&(c=i,f=o);const m=r-i/2,p=c+m,g=u+m,y=f+m;return[p,g,y].map(Kk)};function Qk(e){if(e==="transparent")return 0;function t(i){const o=i/255;return o<=.04045?o/12.92:Math.pow((o+.055)/1.055,2.4)}const[n,r,a]=Ao(e);return .2126*t(n)+.7152*t(r)+.0722*t(a)}function ix(e,t){const n=Qk(e),r=Qk(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function vD(e,t,n,r){return`rgba(${cc(0,255,e).toFixed()}, ${cc(0,255,t).toFixed()}, ${cc(0,255,n).toFixed()}, ${parseFloat(cc(0,1,r).toFixed(3))})`}function fG(e,t,n){const r=(N,O)=>O===3?N:N/255,[a,i,o,c]=Ao(e).map(r),[u,f,m,p]=Ao(t).map(r),g=p-c,y=n*2-1,S=((y*g===-1?y:y+g/(1+y*g))+1)/2,A=1-S,M=(a*A+u*S)*255,C=(i*A+f*S)*255,R=(o*A+m*S)*255,L=p*n+c*(1-n);return vD(M,C,R,L)}function hG(e,t){const[n,r,a,i]=Ao(e);return vD(n,r,a,i-t)}function mG(e,t){return hG(e,-1)}var Nb=new Date,jb=new Date;function $n(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=function(i){return e(i=new Date(+i)),i},a.ceil=function(i){return e(i=new Date(i-1)),t(i,1),e(i),i},a.round=function(i){var o=a(i),c=a.ceil(i);return i-o<c-i?o:c},a.offset=function(i,o){return t(i=new Date(+i),o==null?1:Math.floor(o)),i},a.range=function(i,o,c){var u=[],f;if(i=a.ceil(i),c=c==null?1:Math.floor(c),!(i<o)||!(c>0))return u;do u.push(f=new Date(+i)),t(i,c),e(i);while(f<i&&i<o);return u}
49,a.filter=function(i){return $n(function(o){if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,c){if(o>=o)if(c<0)for(;++c<=0;)for(;t(o,-1),!i(o););else for(;--c>=0;)for(;t(o,1),!i(o););})},n&&(a.count=function(i,o){return Nb.setTime(+i),jb.setTime(+o),e(Nb),e(jb),Math.floor(n(Nb,jb))},a.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?function(o){return r(o)%i===0}:function(o){return a.count(0,o)%i===0}):a}),a}var gp=$n(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});gp.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?$n(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):gp};gp.range;const go=1e3,Ai=go*60,yo=Ai*60,jo=yo*24,J1=jo*7,Zk=jo*30,Ob=jo*365;var uc=$n(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*go)},function(e,t){return(t-e)/go},function(e){return e.getUTCSeconds()});uc.range;var ew=$n(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ai)/jo,e=>e.getDate()-1);ew.range;function qo(e){return $n(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ai)/J1})}var xD=qo(0),yp=qo(1),pG=qo(2),gG=qo(3),Oc=qo(4),yG=qo(5),bG=qo(6);xD.range;yp.range;pG.range;gG.range;Oc.range;yG.range;bG.range;var Oo=$n(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Oo.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:$n(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};Oo.range;var tw=$n(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Ai)},function(e,t){return(t-e)/Ai},function(e){return e.getUTCMinutes()});tw.range;var dg=$n(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*yo)},function(e,t){return(t-e)/yo},function(e){return e.getUTCHours()});dg.range;var Kc=$n(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/jo},function(e){return e.getUTCDate()-1});Kc.range;function Xo(e){return $n(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/J1})}var fg=Xo(0),Wd=Xo(1),vG=Xo(2),xG=Xo(3),_c=Xo(4),wG=Xo(5),SG=Xo(6);fg.range;Wd.range;vG.range;xG.range;_c.range;wG.range;SG.range;var hg=$n(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});hg.range;var Oa=$n(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Oa.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:$n(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};Oa.range;function AG(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function MG(e){let t=e,n=e;e.length===1&&(t=(o,c)=>e(o)-c,n=TG(e));function r(o,c,u,f){for(u==null&&(u=0),f==null&&(f=o.length);u<f;){const m=u+f>>>1;n(o[m],c)<0?u=m+1:f=m}return u}function a(o,c,u,f){for(u==null&&(u=0),f==null&&(f=o.length);u<f;){const m=u+f>>>1;n(o[m],c)>0?f=m:u=m+1}return u}function i(o,c,u,f){u==null&&(u=0),f==null&&(f=o.length);const m=r(o,c,u,f-1);return m>u&&t(o[m-1],c)>-t(o[m],c)?m-1:m}return{left:r,center:i,right:a}}function TG(e){return(t,n)=>AG(e(t),n)}var kG=Math.sqrt(50),EG=Math.sqrt(10),CG=Math.sqrt(2);function Jk(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),a=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/a;return i>=kG?a*=10:i>=EG?a*=5:i>=CG&&(a*=2),t<e?-a:a}function RG(e,t,n,r,a,i){const o=[[uc,1,go],[uc,5,5*go],[uc,15,15*go],[uc,30,30*go],[i,1,Ai],[i,5,5*Ai],[i,15,15*Ai],[i,30,30*Ai],[a,1,yo],[a,3,3*yo],[a,6,6*yo],[a,12,12*yo],[r,1,jo],[r,2,2*jo],[n,1,J1],[t,1,Zk],[t,3,3*Zk],[e,1,Ob]];function c(f,m,p){const g=m<f;g&&([f,m]=[m,f]);const y=p&&typeof p.range=="function"?p:u(f,m,p),x=y?y.range(f,+m+1):[];return g?x.reverse():x}function u(f,m,p){const g=Math.abs(m-f)/p,y=MG(([,,A])=>A).right(o,g);if(y===o.length)return e.every(Jk(f/Ob,m/Ob,p));if(y===0)return gp.every(Math.max(Jk(f,m,p),1));const[x,S]=o[g/o[y-1][2]<o[y][2]/g?y-1:y];return x.every(S)}return[c,u]}const[LG,DG]=RG(Oa,hg,fg,Kc,dg,tw);function ys(e,t){return NG(e)||jG(e,t)||OG()}function NG(e){if(Array.isArray(e))return e}function jG(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o=e[Symbol.iterator](),c;!(r=(c=o.next()).done)&&(n.push(c.value),!(t&&n.length===t));r=!0);}catch(u){a=!0,i=u}finally{try{!r&&o.return!=null&&o.return()}finally{if(a)throw i}}return n}
49function OG(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function nw(e,t,n,r){e=e.filter(function(x,S){var A=t(x,S),M=n(x,S);return A!=null&&isFinite(A)&&M!=null&&isFinite(M)}),r&&e.sort(function(x,S){return t(x)-t(S)});for(var a=e.length,i=new Float64Array(a),o=new Float64Array(a),c=0,u=0,f,m,p,g=0;g<a;)p=e[g],i[g]=f=+t(p,g,e),o[g]=m=+n(p,g,e),++g,c+=(f-c)/g,u+=(m-u)/g;for(var y=0;y<a;++y)i[y]-=c,o[y]-=u;return[i,o,c,u]}function Ko(e,t,n,r){for(var a=0,i=0,o=e.length;i<o;i++){var c=e[i],u=+t(c,i,e),f=+n(c,i,e);u!=null&&isFinite(u)&&f!=null&&isFinite(f)&&r(u,f,a++)}}function Qc(e,t,n,r,a){var i=0,o=0;return Ko(e,t,n,function(c,u){var f=u-a(c),m=u-r;i+=f*f,o+=m*m}),1-i/o}function eE(e){return Math.atan2(e[1][1]-e[0][1],e[1][0]-e[0][0])*180/Math.PI}function _G(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}function vf(e,t,n){for(var r=Math.log(t-e)*Math.LOG10E+1|0,a=1*Math.pow(10,-r/2-1),i=1e4,o=[u(e),u(t)],c=0;f(o)&&c<i;);return o;function u(m){return[m,n(m)]}function f(m){c++;for(var p=m.length,g=!1,y=0;y<p-1;y++){var x=m[y],S=m[y+1],A=_G([x,S]),M=u(A[0]),C=eE([x,A]),R=eE([x,M]),L=Math.abs(C-R);L>a&&(m.splice(y+1,0,M),g=!0)}return g}}function xf(e,t,n,r){var a=r-e*e,i=Math.abs(a)<1e-24?0:(n-e*t)/a,o=t-i*e;return[o,i]}function IG(){var e=function(i){return i[0]},t=function(i){return i[1]},n;function r(a){var i=0,o=0,c=0,u=0,f=0,m=0,p=n?+n[0]:1/0,g=n?+n[1]:-1/0;Ko(a,e,t,function(R,L){var N=Math.log(L),O=R*L;++i,o+=(L-o)/i,u+=(O-u)/i,m+=(R*O-m)/i,c+=(L*N-c)/i,f+=(O*N-f)/i,n||(R<p&&(p=R),R>g&&(g=R))});var y=xf(u/o,c/o,f/o,m/o),x=ys(y,2),S=x[0],A=x[1];S=Math.exp(S);var M=function(L){return S*Math.exp(A*L)},C=vf(p,g,M);return C.a=S,C.b=A,C.predict=M,C.rSquared=Qc(a,e,t,o,M),C}return r.domain=function(a){return arguments.length?(n=a,r):n},r.x=function(a){return arguments.length?(e=a,r):e},r.y=function(a){return arguments.length?(t=a,r):t},r}function wD(){var e=function(i){return i[0]},t=function(i){return i[1]},n;function r(a){var i=0,o=0,c=0,u=0,f=0,m=n?+n[0]:1/0,p=n?+n[1]:-1/0;Ko(a,e,t,function(C,R){++i,o+=(C-o)/i,c+=(R-c)/i,u+=(C*R-u)/i,f+=(C*C-f)/i,n||(C<m&&(m=C),C>p&&(p=C))});var g=xf(o,c,u,f),y=ys(g,2),x=y[0],S=y[1],A=function(R){return S*R+x},M=[[m,A(m)],[p,A(p)]];return M.a=S,M.b=x,M.predict=A,M.rSquared=Qc(a,e,t,c,A),M}return r.domain=function(a){return arguments.length?(n=a,r):n},r.x=function(a){return arguments.length?(e=a,r):e},r.y=function(a){return arguments.length?(t=a,r):t},r}function BG(e){e.sort(function(n,r){return n-r});var t=e.length/2;return t%1===0?(e[t-1]+e[t])/2:e[Math.floor(t)]}var tE=2,nE=1e-12;function zG(){var e=function(i){return i[0]},t=function(i){return i[1]},n=.3;function r(a){for(var i=nw(a,e,t,!0),o=ys(i,4),c=o[0],u=o[1],f=o[2],m=o[3],p=c.length,g=Math.max(2,~~(n*p)),y=new Float64Array(p),x=new Float64Array(p),S=new Float64Array(p).fill(1),A=-1;++A<=tE;){for(var M=[0,g-1],C=0;C<p;++C){for(var R=c[C],L=M[0],N=M[1],O=R-c[L]>c[N]-R?L:N,$=0,T=0,j=0,_=0,P=0,U=1/Math.abs(c[O]-R||1),W=L;W<=N;++W){var q=c[W],ne=u[W],B=VG(Math.abs(R-q)*U)*S[W],G=q*B;$+=B,T+=G,j+=ne*B,_+=ne*G,P+=q*G}var F=xf(T/$,j/$,_/$,P/$),ee=ys(F,2),he=ee[0],z=ee[1];y[C]=he+z*R,x[C]=Math.abs(u[C]-y[C]),PG(c,C+1,M)}if(A===tE)break;var Z=BG(x);if(Math.abs(Z)<nE)break;for(var re=0,ue,me;re<p;++re)ue=x[re]/(6*Z),S[re]=ue>=1?nE:(me=1-ue*ue)*me}return $G(c,y,f,m)}return r.bandwidth=function(a){return arguments.length?(n=a,r):n},r.x=function(a){return arguments.length?(e=a,r):e},r.y=function(a){return arguments.length?(t=a,r):t},r}function VG(e){return(e=1-e*e*e)*e*e}function PG(e,t,n){var r=e[t],a=n[0],i=n[1]+1;if(!(i>=e.length))for(;t>a&&e[i]-r<=r-e[a];)n[0]=++a,n[1]=i,++i}function $G(e,t,n,r){for(var a=e.length,i=[],o=0,c=0,u=[],f;o<a;++o)f=e[o]+n,u[0]===f?u[1]+=(t[o]-u[1])/++c:(c=0,u[1]+=r,u=[f,t[o]],i.push(u));return u[1]+=r,i}function FG(){var e=function(o){return o[0]},t=function(o){return o[1]},n=Math.E,r;function a(i){var o=0,c=0,u=0,f=0,m=0,p=r?+r[0]:1/0,g=r?+r[1]:-1/0,y=Math.log(n);Ko(i,e,t,function(L,N){var O=Math.log(L)/y;++o,c+=(O-c)/o,u+=(N-u)/o,f+=(O*N-f)/o,m+=(O*O-m)/o,r||(L<p&&(p=L),L>g&&(g=L))});var x=xf(c,u,f,m),S=ys(x,2),A=S[0],M=S[1],C=function(N){return M*Math.log(N)/y+A},R=vf(p,g,C);return R.a=M,R.b=A,R.predict=C,R.rSquared=Qc(i,e,t,u,C),R}return a.domain=function(i){return arguments.length?(r=i,a):r},a.x=function(i){return arguments.length?(e=i,a):e},a.y=function(i){return arguments.length?(t=i,a):t},a.base=function(i){return arguments.length?(n=i,a):n},a}function SD(){var e=function(i){return i[0]},t=function(i){return i[1]},n;function r(a){var i=nw(a,e,t),o=ys(i,4),c=o[0],u=o[1],f=o[2],m=o[3],p=c.length,g=0,y=0,x=0,S=0,A=0,M,C,R,L;for(M=0;M<p;)C=c[M],R=u[M++],L=C*C,g+=(L-g)/M,y+=(L*C-y)/M,x+=(L*L-x)/M,S+=(C*R-S)/M,A+=(L*R-A)/M;var N=0,O=0,$=n?+n[0]:1/0,T=n?+n[1]:-1/0;Ko(a,e,t,function(B,G){O++,N+=(G-N)/O,n||(B<$&&($=B),B>T&&(T=B))});var j=x-g*g,_=g*j-y*y,P=(A*g-S*y)/_,U=(S*j-A*y)/_,W=-P*g,q=function(G){return G=G-f,P*G*G+U*G+W+m},ne=vf($,T,q);return ne.a=P,ne.b=U-2*P*f,ne.c=W-U*f+P*f*f+m,ne.predict=q,ne.rSquared=Qc(a,e,t,N,q),ne}return r.domain=function(a){return arguments.length?(n=a,r):n},r.x=function(a){return arguments.length?(e=a,r):e},r.y=function(a){return arguments.length?(t=a,r):t},r}function HG(){var e=function(o){return o[0]},t=function(o){return o[1]},n=3,r;function a(i){if(n===1){var o=wD().x(e).y(t).domain(r)(i);return o.coefficients=[o.b,o.a],delete o.a,delete o.b,o}if(n===2){var c=SD().x(e).y(t).domain(r)(i);return c.coefficients=[c.c,c.b,c.a],delete c.a,delete c.b,delete c.c,c}var u=nw(i,e,t),f=ys(u,4),m=f[0],p=f[1],g=f[2],y=f[3],x=m.length,S=[],A=[],M=n+1,C=0,R=0,L=r?+r[0]:1/0,N=r?+r[1]:-1/0;Ko(i,e,t,function(q,ne){++R,C+=(ne-C)/R,r||(q<L&&(L=q),q>N&&(N=q))});var O,$,T,j,_;
49for(O=0;O<M;++O){for(T=0,j=0;T<x;++T)j+=Math.pow(m[T],O)*p[T];for(S.push(j),_=new Float64Array(M),$=0;$<M;++$){for(T=0,j=0;T<x;++T)j+=Math.pow(m[T],O+$);_[$]=j}A.push(_)}A.push(S);var P=GG(A),U=function(ne){ne-=g;var B=y+P[0]+P[1]*ne+P[2]*ne*ne;for(O=3;O<M;++O)B+=P[O]*Math.pow(ne,O);return B},W=vf(L,N,U);return W.coefficients=UG(M,P,-g,y),W.predict=U,W.rSquared=Qc(i,e,t,C,U),W}return a.domain=function(i){return arguments.length?(r=i,a):r},a.x=function(i){return arguments.length?(e=i,a):e},a.y=function(i){return arguments.length?(t=i,a):t},a.order=function(i){return arguments.length?(n=i,a):n},a}function UG(e,t,n,r){var a=Array(e),i,o,c,u;for(i=0;i<e;++i)a[i]=0;for(i=e-1;i>=0;--i)for(c=t[i],u=1,a[i]+=c,o=1;o<=i;++o)u*=(i+1-o)/o,a[i-o]+=c*Math.pow(n,o)*u;return a[0]+=r,a}function GG(e){var t=e.length-1,n=[],r,a,i,o,c;for(r=0;r<t;++r){for(o=r,a=r+1;a<t;++a)Math.abs(e[r][a])>Math.abs(e[r][o])&&(o=a);for(i=r;i<t+1;++i)c=e[i][r],e[i][r]=e[i][o],e[i][o]=c;for(a=r+1;a<t;++a)for(i=t;i>=r;i--)e[i][a]-=e[i][r]*e[r][a]/e[r][r]}for(a=t-1;a>=0;--a){for(c=0,i=a+1;i<t;++i)c+=e[i][a]*n[i];n[a]=(e[t][a]-c)/e[a][a]}return n}function YG(){var e=function(i){return i[0]},t=function(i){return i[1]},n;function r(a){var i=0,o=0,c=0,u=0,f=0,m=0,p=n?+n[0]:1/0,g=n?+n[1]:-1/0;Ko(a,e,t,function(R,L){var N=Math.log(R),O=Math.log(L);++i,o+=(N-o)/i,c+=(O-c)/i,u+=(N*O-u)/i,f+=(N*N-f)/i,m+=(L-m)/i,n||(R<p&&(p=R),R>g&&(g=R))});var y=xf(o,c,u,f),x=ys(y,2),S=x[0],A=x[1];S=Math.exp(S);var M=function(L){return S*Math.pow(L,A)},C=vf(p,g,M);return C.a=S,C.b=A,C.predict=M,C.rSquared=Qc(a,e,t,m,M),C}return r.domain=function(a){return arguments.length?(n=a,r):n},r.x=function(a){return arguments.length?(e=a,r):e},r.y=function(a){return arguments.length?(t=a,r):t},r}function Gm(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function WG(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function AD(e){let t,n,r;e.length!==2?(t=Gm,n=(c,u)=>Gm(e(c),u),r=(c,u)=>e(c)-u):(t=e===Gm||e===WG?e:qG,n=e,r=e);function a(c,u,f=0,m=c.length){if(f<m){if(t(u,u)!==0)return m;do{const p=f+m>>>1;n(c[p],u)<0?f=p+1:m=p}while(f<m)}return f}function i(c,u,f=0,m=c.length){if(f<m){if(t(u,u)!==0)return m;do{const p=f+m>>>1;n(c[p],u)<=0?f=p+1:m=p}while(f<m)}return f}function o(c,u,f=0,m=c.length){const p=a(c,u,f,m-1);return p>f&&r(c[p-1],u)>-r(c[p],u)?p-1:p}return{left:a,center:o,right:i}}function qG(){return 0}function XG(e){return e===null?NaN:+e}const KG=AD(Gm),QG=KG.right;AD(XG).center;class rE extends Map{constructor(t,n=eY){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(aE(this,t))}has(t){return super.has(aE(this,t))}set(t,n){return super.set(ZG(this,t),n)}delete(t){return super.delete(JG(this,t))}}function aE({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function ZG({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function JG({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function eY(e){return e!==null&&typeof e=="object"?e.valueOf():e}const tY=Math.sqrt(50),nY=Math.sqrt(10),rY=Math.sqrt(2);function bp(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=tY?10:i>=nY?5:i>=rY?2:1;let c,u,f;return a<0?(f=Math.pow(10,-a)/o,c=Math.round(e*f),u=Math.round(t*f),c/f<e&&++c,u/f>t&&--u,f=-f):(f=Math.pow(10,a)*o,c=Math.round(e/f),u=Math.round(t/f),c*f<e&&++c,u*f>t&&--u),u<c&&.5<=n&&n<2?bp(e,t,n*2):[c,u,f]}function sx(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,o]=r?bp(t,e,n):bp(e,t,n);if(!(i>=a))return[];const c=i-a+1,u=new Array(c);if(r)if(o<0)for(let f=0;f<c;++f)u[f]=(i-f)/-o;else for(let f=0;f<c;++f)u[f]=(i-f)*o;else if(o<0)for(let f=0;f<c;++f)u[f]=(a+f)/-o;else for(let f=0;f<c;++f)u[f]=(a+f)*o;return u}function ox(e,t,n){return t=+t,e=+e,n=+n,bp(e,t,n)[2]}function aY(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?ox(t,e,n):ox(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function iY(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r<a;)i[r]=e+r*n;return i}function Zc(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}
vendor: 12,456 bytes, line 49
49const iE=Symbol("implicit");function mg(){var e=new rE,t=[],n=[],r=iE;function a(i){let o=e.get(i);if(o===void 0){if(r!==iE)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new rE;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return mg(t,n).unknown(r)},Zc.apply(a,arguments),a}function rw(){var e=mg().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,o,c=!1,u=0,f=0,m=.5;delete e.unknown;function p(){var g=t().length,y=a<r,x=y?a:r,S=y?r:a;i=(S-x)/Math.max(1,g-u+f*2),c&&(i=Math.floor(i)),x+=(S-x-i*(g-u))*m,o=i*(1-u),c&&(x=Math.round(x),o=Math.round(o));var A=iY(g).map(function(M){return x+i*M});return n(y?A.reverse():A)}return e.domain=function(g){return arguments.length?(t(g),p()):t()},e.range=function(g){return arguments.length?([r,a]=g,r=+r,a=+a,p()):[r,a]},e.rangeRound=function(g){return[r,a]=g,r=+r,a=+a,c=!0,p()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(g){return arguments.length?(c=!!g,p()):c},e.padding=function(g){return arguments.length?(u=Math.min(1,f=+g),p()):u},e.paddingInner=function(g){return arguments.length?(u=Math.min(1,g),p()):u},e.paddingOuter=function(g){return arguments.length?(f=+g,p()):f},e.align=function(g){return arguments.length?(m=Math.max(0,Math.min(1,g)),p()):m},e.copy=function(){return rw(t(),[r,a]).round(c).paddingInner(u).paddingOuter(f).align(m)},Zc.apply(p(),arguments)}function wf(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function pg(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Qo(){}var qd=.7,vp=1/qd,wc="\\s*([+-]?\\d+)\\s*",Xd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",La="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",sY=/^#([0-9a-f]{3,8})$/,oY=new RegExp(`^rgb\\(${wc},${wc},${wc}\\)$`),lY=new RegExp(`^rgb\\(${La},${La},${La}\\)$`),cY=new RegExp(`^rgba\\(${wc},${wc},${wc},${Xd}\\)$`),uY=new RegExp(`^rgba\\(${La},${La},${La},${Xd}\\)$`),dY=new RegExp(`^hsl\\(${Xd},${La},${La}\\)$`),fY=new RegExp(`^hsla\\(${Xd},${La},${La},${Xd}\\)$`),sE={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};wf(Qo,Kd,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:oE,formatHex:oE,formatHex8:hY,formatHsl:mY,formatRgb:lE,toString:lE});function oE(){return this.rgb().formatHex()}function hY(){return this.rgb().formatHex8()}function mY(){return TD(this).formatHsl()}function lE(){return this.rgb().formatRgb()}function Kd(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=sY.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?cE(t):n===3?new Ln(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ym(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ym(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=oY.exec(e))?new Ln(t[1],t[2],t[3],1):(t=lY.exec(e))?new Ln(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=cY.exec(e))?ym(t[1],t[2],t[3],t[4]):(t=uY.exec(e))?ym(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=dY.exec(e))?fE(t[1],t[2]/100,t[3]/100,1):(t=fY.exec(e))?fE(t[1],t[2]/100,t[3]/100,t[4]):sE.hasOwnProperty(e)?cE(sE[e]):e==="transparent"?new Ln(NaN,NaN,NaN,0):null}function cE(e){return new Ln(e>>16&255,e>>8&255,e&255,1)}function ym(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ln(e,t,n,r)}function MD(e){return e instanceof Qo||(e=Kd(e)),e?(e=e.rgb(),new Ln(e.r,e.g,e.b,e.opacity)):new Ln}function xp(e,t,n,r){return arguments.length===1?MD(e):new Ln(e,t,n,r??1)}function Ln(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}wf(Ln,xp,pg(Qo,{brighter(e){return e=e==null?vp:Math.pow(vp,e),new Ln(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?qd:Math.pow(qd,e),new Ln(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ln(Mo(this.r),Mo(this.g),Mo(this.b),wp(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:uE,formatHex:uE,formatHex8:pY,formatRgb:dE,toString:dE}));function uE(){return`#${bo(this.r)}${bo(this.g)}${bo(this.b)}`}function pY(){return`#${bo(this.r)}${bo(this.g)}${bo(this.b)}${bo((isNaN(this.opacity)?1:this.opacity)*255)}`}function dE(){const e=wp(this.opacity);return`${e===1?"rgb(":"rgba("}${Mo(this.r)}, ${Mo(this.g)}, ${Mo(this.b)}${e===1?")":`, ${e})`}`}function wp(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Mo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function bo(e){return e=Mo(e),(e<16?"0":"")+e.toString(16)}function fE(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new na(e,t,n,r)}function TD(e){if(e instanceof na)return new na(e.h,e.s,e.l,e.opacity);if(e instanceof Qo||(e=Kd(e)),!e)return new na;if(e instanceof na)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,c=i-a,u=(i+a)/2;return c?(t===i?o=(n-r)/c+(n<r)*6:n===i?o=(r-t)/c+2:o=(t-n)/c+4,c/=u<.5?i+a:2-i-a,o*=60):c=u>0&&u<1?0:o,new na(o,c,u,e.opacity)}function lx(e,t,n,r){return arguments.length===1?TD(e):new na(e,t,n,r??1)}function na(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}wf(na,lx,pg(Qo,{brighter(e){return e=e==null?vp:Math.pow(vp,e),new na(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?qd:Math.pow(qd,e),new na(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new Ln(_b(e>=240?e-240:e+120,a,r),_b(e,a,r),_b(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new na(hE(this.h),bm(this.s),bm(this.l),wp(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=wp(this.opacity);return`${e===1?"hsl(":"hsla("}${hE(this.h)}, ${bm(this.s)*100}%, ${bm(this.l)*100}%${e===1?")":`, ${e})`}`}}));function hE(e){return e=(e||0)%360,e<0?e+360:e}function bm(e){return Math.max(0,Math.min(1,e||0))}function _b(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const gY=Math.PI/180,yY=180/Math.PI,Sp=18,kD=.96422,ED=1,CD=.82521,RD=4/29,Sc=6/29,LD=3*Sc*Sc,bY=Sc*Sc*Sc;function DD(e){if(e instanceof Da)return new Da(e.l,e.a,e.b,e.opacity);if(e instanceof Mi)return ND(e);e instanceof Ln||(e=MD(e));var t=Vb(e.r),n=Vb(e.g),r=Vb(e.b),a=Ib((.2225045*t+.7168786*n+.0606169*r)/ED),i,o;return t===n&&n===r?i=o=a:(i=Ib((.4360747*t+.3850649*n+.1430804*r)/kD),o=Ib((.0139322*t+.0971045*n+.7141733*r)/CD)),new Da(116*a-16,500*(i-a),200*(a-o),e.opacity)}function cx(e,t,n,r){return arguments.length===1?DD(e):new Da(e,t,n,r??1)}function Da(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}wf(Da,cx,pg(Qo,{brighter(e){return new Da(this.l+Sp*(e??1),this.a,this.b,this.opacity)},darker(e){return new Da(this.l-Sp*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=kD*Bb(t),e=ED*Bb(e),n=CD*Bb(n),new Ln(zb(3.1338561*t-1.6168667*e-.4906146*n),zb(-.9787684*t+1.9161415*e+.033454*n),zb(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function Ib(e){return e>bY?Math.pow(e,1/3):e/LD+RD}function Bb(e){return e>Sc?e*e*e:LD*(e-RD)}function zb(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Vb(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function vY(e){if(e instanceof Mi)return new Mi(e.h,e.c,e.l,e.opacity);if(e instanceof Da||(e=DD(e)),e.a===0&&e.b===0)return new Mi(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*yY;return new Mi(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ux(e,t,n,r){return arguments.length===1?vY(e):new Mi(e,t,n,r??1)}function Mi(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function ND(e){if(isNaN(e.h))return new Da(e.l,0,0,e.opacity);var t=e.h*gY;return new Da(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}wf(Mi,ux,pg(Qo,{brighter(e){return new Mi(this.h,this.c,this.l+Sp*(e??1),this.opacity)},darker(e){return new Mi(this.h,this.c,this.l-Sp*(e??1),this.opacity)},rgb(){return ND(this).rgb()}}));function xY(e,t,n,r,a){var i=e*e,o=i*e;return((1-3*e+3*i-o)*t+(4-6*i+3*o)*n+(1+3*e+3*i-3*o)*r+o*a)/6}function wY(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),a=e[r],i=e[r+1],o=r>0?e[r-1]:2*a-i,c=r<t-1?e[r+2]:2*i-a;return xY((n-r/t)*t,o,a,i,c)}}const gg=e=>()=>e;function jD(e,t){return function(n){return e+n*t}}function SY(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function OD(e,t){var n=t-e;return n?jD(e,n>180||n<-180?n-360*Math.round(n/360):n):gg(isNaN(e)?t:e)}function AY(e){return(e=+e)==1?Vr:function(t,n){return n-t?SY(t,n,e):gg(isNaN(t)?n:t)}}function Vr(e,t){var n=t-e;return n?jD(e,n):gg(isNaN(e)?t:e)}const dx=(function e(t){var n=AY(t);function r(a,i){var o=n((a=xp(a)).r,(i=xp(i)).r),c=n(a.g,i.g),u=n(a.b,i.b),f=Vr(a.opacity,i.opacity);return function(m){return a.r=o(m),a.g=c(m),a.b=u(m),a.opacity=f(m),a+""}}return r.gamma=e,r})(1);function MY(e){return function(t){var n=t.length,r=new Array(n),a=new Array(n),i=new Array(n),o,c;for(o=0;o<n;++o)c=xp(t[o]),r[o]=c.r||0,a[o]=c.g||0,i[o]=c.b||0;return r=e(r),a=e(a),i=e(i),c.opacity=1,function(u){return c.r=r(u),c.g=a(u),c.b=i(u),c+""}}}var TY=MY(wY);function kY(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=e[a]*(1-i)+t[a]*i;return r}}function EY(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function CY(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),o;for(o=0;o<r;++o)a[o]=yg(e[o],t[o]);for(;o<n;
vendor: 14,410 bytes, line 49
49++o)i[o]=t[o];return function(c){for(o=0;o<r;++o)i[o]=a[o](c);return i}}function RY(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Ap(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function LY(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=yg(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var fx=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Pb=new RegExp(fx.source,"g");function DY(e){return function(){return e}}function NY(e){return function(t){return e(t)+""}}function jY(e,t){var n=fx.lastIndex=Pb.lastIndex=0,r,a,i,o=-1,c=[],u=[];for(e=e+"",t=t+"";(r=fx.exec(e))&&(a=Pb.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),c[o]?c[o]+=i:c[++o]=i),(r=r[0])===(a=a[0])?c[o]?c[o]+=a:c[++o]=a:(c[++o]=null,u.push({i:o,x:Ap(r,a)})),n=Pb.lastIndex;return n<t.length&&(i=t.slice(n),c[o]?c[o]+=i:c[++o]=i),c.length<2?u[0]?NY(u[0].x):DY(t):(t=u.length,function(f){for(var m=0,p;m<t;++m)c[(p=u[m]).i]=p.x(f);return c.join("")})}function yg(e,t){var n=typeof t,r;return t==null||n==="boolean"?gg(t):(n==="number"?Ap:n==="string"?(r=Kd(t))?(t=r,dx):jY:t instanceof Kd?dx:t instanceof Date?RY:EY(t)?kY:Array.isArray(t)?CY:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?LY:Ap)(e,t)}function OY(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function _Y(e){return function(t,n){var r=e((t=lx(t)).h,(n=lx(n)).h),a=Vr(t.s,n.s),i=Vr(t.l,n.l),o=Vr(t.opacity,n.opacity);return function(c){return t.h=r(c),t.s=a(c),t.l=i(c),t.opacity=o(c),t+""}}}const IY=_Y(OD);function BY(e,t){var n=Vr((e=cx(e)).l,(t=cx(t)).l),r=Vr(e.a,t.a),a=Vr(e.b,t.b),i=Vr(e.opacity,t.opacity);return function(o){return e.l=n(o),e.a=r(o),e.b=a(o),e.opacity=i(o),e+""}}function zY(e){return function(t,n){var r=e((t=ux(t)).h,(n=ux(n)).h),a=Vr(t.c,n.c),i=Vr(t.l,n.l),o=Vr(t.opacity,n.opacity);return function(c){return t.h=r(c),t.c=a(c),t.l=i(c),t.opacity=o(c),t+""}}}const VY=zY(OD);function mE(e,t){t===void 0&&(t=e,e=yg);for(var n=0,r=t.length-1,a=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(a,a=t[++n]);return function(o){var c=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return i[c](o-c)}}function PY(e){return function(){return e}}function $Y(e){return+e}var pE=[0,1];function Ca(e){return e}function hx(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:PY(isNaN(t)?NaN:.5)}function FY(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function HY(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=hx(a,r),i=n(o,i)):(r=hx(r,a),i=n(i,o)),function(c){return i(r(c))}}function UY(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)a[o]=hx(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(c){var u=QG(e,c,1,r)-1;return i[u](a[u](c))}}function bg(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function aw(){var e=pE,t=pE,n=yg,r,a,i,o=Ca,c,u,f;function m(){var g=Math.min(e.length,t.length);return o!==Ca&&(o=FY(e[0],e[g-1])),c=g>2?UY:HY,u=f=null,p}function p(g){return g==null||isNaN(g=+g)?i:(u||(u=c(e.map(r),t,n)))(r(o(g)))}return p.invert=function(g){return o(a((f||(f=c(t,e.map(r),Ap)))(g)))},p.domain=function(g){return arguments.length?(e=Array.from(g,$Y),m()):e.slice()},p.range=function(g){return arguments.length?(t=Array.from(g),m()):t.slice()},p.rangeRound=function(g){return t=Array.from(g),n=OY,m()},p.clamp=function(g){return arguments.length?(o=g?!0:Ca,m()):o!==Ca},p.interpolate=function(g){return arguments.length?(n=g,m()):n},p.unknown=function(g){return arguments.length?(i=g,p):i},function(g,y){return r=g,a=y,m()}}function _D(){return aw()(Ca,Ca)}function GY(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Mp(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ic(e){return e=Mp(Math.abs(e)),e?e[1]:NaN}function YY(e,t){return function(n,r){for(var a=n.length,i=[],o=0,c=e[0],u=0;a>0&&c>0&&(u+c+1>r&&(c=Math.max(1,r-u)),i.push(n.substring(a-=c,a+c)),!((u+=c+1)>r));)c=e[o=(o+1)%e.length];return i.reverse().join(t)}}function WY(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var qY=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Qd(e){if(!(t=qY.exec(e)))throw new Error("invalid format: "+e);var t;return new iw({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Qd.prototype=iw.prototype;function iw(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}iw.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function XY(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var Tp;function KY(e,t){var n=Mp(e,t);if(!n)return Tp=void 0,e.toPrecision(t);var r=n[0],a=n[1],i=a-(Tp=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Mp(e,Math.max(0,t+i-1))[0]}function gE(e,t){var n=Mp(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const yE={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:GY,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>gE(e*100,t),r:gE,s:KY,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function bE(e){return e}var vE=Array.prototype.map,xE=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function QY(e){var t=e.grouping===void 0||e.thousands===void 0?bE:YY(vE.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?bE:WY(vE.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"â":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function f(p,g){p=Qd(p);var y=p.fill,x=p.align,S=p.sign,A=p.symbol,M=p.zero,C=p.width,R=p.comma,L=p.precision,N=p.trim,O=p.type;O==="n"?(R=!0,O="g"):yE[O]||(L===void 0&&(L=12),N=!0,O="g"),(M||y==="0"&&x==="=")&&(M=!0,y="0",x="=");var $=(g&&g.prefix!==void 0?g.prefix:"")+(A==="$"?n:A==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),T=(A==="$"?r:/[%p]/.test(O)?o:"")+(g&&g.suffix!==void 0?g.suffix:""),j=yE[O],_=/[defgprs%]/.test(O);L=L===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,L)):Math.max(0,Math.min(20,L));function P(U){var W=$,q=T,ne,B,G;if(O==="c")q=j(U)+q,U="";else{U=+U;var F=U<0||1/U<0;if(U=isNaN(U)?u:j(Math.abs(U),L),N&&(U=XY(U)),F&&+U==0&&S!=="+"&&(F=!1),W=(F?S==="("?S:c:S==="-"||S==="("?"":S)+W,q=(O==="s"&&!isNaN(U)&&Tp!==void 0?xE[8+Tp/3]:"")+q+(F&&S==="("?")":""),_){for(ne=-1,B=U.length;++ne<B;)if(G=U.charCodeAt(ne),48>G||G>57){q=(G===46?a+U.slice(ne+1):U.slice(ne))+q,U=U.slice(0,ne);break}}}R&&!M&&(U=t(U,1/0));var ee=W.length+U.length+q.length,he=ee<C?new Array(C-ee+1).join(y):"";switch(R&&M&&(U=t(he+U,he.length?C-q.length:1/0),he=""),x){case"<":U=W+U+q+he;break;case"=":U=W+he+U+q;break;case"^":U=he.slice(0,ee=he.length>>1)+W+U+q+he.slice(ee);break;default:U=he+W+U+q;break}return i(U)}return P.toString=function(){return p+""},P}function m(p,g){var y=Math.max(-8,Math.min(8,Math.floor(Ic(g)/3)))*3,x=Math.pow(10,-y),S=f((p=Qd(p),p.type="f",p),{suffix:xE[8+y/3]});return function(A){return S(x*A)}}return{format:f,formatPrefix:m}}var vm,sw,ID;ZY({thousands:",",grouping:[3],currency:["$",""]});function ZY(e){return vm=QY(e),sw=vm.format,ID=vm.formatPrefix,vm}function JY(e){return Math.max(0,-Ic(Math.abs(e)))}function eW(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ic(t)/3)))*3-Ic(Math.abs(e)))}function tW(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ic(t)-Ic(e))+1}function nW(e,t,n,r){var a=aY(e,t,n),i;switch(r=Qd(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=eW(a,o))&&(r.precision=i),ID(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=tW(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=JY(a))&&(r.precision=i-(r.type==="%")*2);break}}return sw(r)}function BD(e){var t=e.domain;return e.ticks=function(n){var r=t();return sx(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return nW(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],c=r[i],u,f,m=10;for(c<o&&(f=o,o=c,c=f,f=a,a=i,i=f);m-- >0;){if(f=ox(o,c,n),f===u)return r[a]=o,r[i]=c,t(r);if(f>0)o=Math.floor(o/f)*f,c=Math.ceil(c/f)*f;else if(f<0)o=Math.ceil(o*f)/f,c=Math.floor(c*f)/f;else break;u=f}return e},e}function Ym(){var e=_D();return e.copy=function(){return bg(e,Ym())},Zc.apply(e,arguments),BD(e)}function zD(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return i<a&&(o=n,n=r,r=o,o=a,a=i,i=o),e[n]=t.floor(a),e[r]=t.ceil(i),e}function wE(e){return Math.log(e)}function SE(e){return Math.exp(e)}function rW(e){return-Math.log(-e)}function aW(e){return-Math.exp(-e)}function iW(e){return isFinite(e)?+("1e"+e):e<0?0:e}function sW(e){return e===10?iW:e===Math.E?Math.exp:t=>Math.pow(e,t)}function oW(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function AE(e){return(t,n)=>-e(-t,n)}function lW(e){const t=e(wE,SE),n=t.domain;let r=10,a,i;function o(){return a=oW(r),i=sW(r),n()[0]<0?(a=AE(a),i=AE(i),e(rW,aW)):e(wE,SE),t}return t.base=function(c){return arguments.length?(r=+c,o()):r},t.domain=function(c){return arguments.length?(n(c),o()):n()},t.ticks=c=>{const u=n();let f=u[0],m=u[u.length-1];const p=m<f;p&&([f,m]=[m,f]);let g=a(f),y=a(m),x,S;const A=c==null?10:+c;let M=[];if(!(r%1)&&y-g<A){if(g=Math.floor(g),y=Math.ceil(y),f>0){for(;g<=y;++g)for(x=1;x<r;++x)if(S=g<0?x/i(-g):x*i(g),!(S<f)){if(S>m)break;M.push(S)}}else for(;g<=y;++g)for(x=r-1;x>=1;--x)if(S=g>0?x/i(-g):x*i(g),!(S<f)){if(S>m)break;M.push(S)}M.length*2<A&&(M=sx(f,m,A))}else M=sx(g,y,Math.min(y-g,A)).map(i);return p?M.reverse():M},t.tickFormat=(c,u)=>{if(c==null&&(c=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=Qd(u)).precision==null&&(u.trim=!0),u=sw(u)),c===1/0)return u;const f=Math.max(1,r*c/t.ticks().length);return m=>{let p=m/i(Math.round(a(m)));return p*r<r-.5&&(p*=r),p<=f?u(m):""}},t.nice=()=>n(zD(n(),{floor:c=>i(Math.floor(a(c))),ceil:c=>i(Math.ceil(a(c)))})),t}function VD(){const e=lW(aw()).domain([1,10]);return e.copy=()=>bg(e,VD()).base(e.base()),Zc.apply(e,arguments),e}function ME(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function cW(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function uW(e){return e<0?-e*e:e*e}function dW(e){var t=e(Ca,Ca),n=1;function r(){return n===1?e(Ca,Ca):n===.5?e(cW,uW):e(ME(n),ME(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},BD(t)}function PD(){var e=dW(aw());return e.copy=function(){return bg(e,PD()).exponent(e.exponent())},Zc.apply(e,arguments),e}function fW(){return PD.apply(null,arguments).exponent(.5)}function $b(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Fb(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ld(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function hW(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,c=e.months,u=e.shortMonths,f=cd(a),m=ud(a),p=cd(i),g=ud(i),y=cd(o),x=ud(o),S=cd(c),A=ud(c),M=cd(u),C=ud(u),R={a:G,A:F,b:ee,B:he,c:null,d:LE,e:LE,f:IW,g:YW,G:qW,H:jW,I:OW,j:_W,L:$D,m:BW,M:zW,p:z,q:Z,Q:jE,s:OE,S:VW,u:PW,U:$W,V:FW,w:HW,W:UW,x:null,X:null,y:GW,Y:WW,Z:XW,"%":NE},L={a:re,A:ue,b:me,B:ve,c:null,d:DE,e:DE,f:JW,g:cq,G:dq,H:KW,I:QW,j:ZW,L:HD,m:eq,M:tq,p:Ce,q:Oe,Q:jE,s:OE,S:nq,u:rq,U:aq,V:iq,w:sq,W:oq,x:null,X:null,y:lq,Y:uq,Z:fq,"%":NE},N={a:_,A:P,b:U,B:W,c:q,d:CE,e:CE,f:RW,g:EE,G:kE,H:RE,I:RE,j:TW,L:CW,m:MW,M:kW,p:j,q:AW,Q:DW,s:NW,S:EW,u:bW,U:vW,V:xW,w:yW,W:wW,x:ne,X:B,y:EE,Y:kE,Z:SW,"%":LW};R.x=O(n,R),R.X=O(r,R),R.c=O(t,R),L.x=O(n,L),L.X=O(r,L),L.c=O(t,L);function O(fe,ke){return function(Re){var ce=[],Tt=-1,Ne=0,bt=fe.length,rt,jt,Kt;for(Re instanceof Date||(Re=new Date(+Re));++Tt<bt;)fe.charCodeAt(Tt)===37&&(ce.push(fe.slice(Ne,Tt)),(jt=TE[rt=fe.charAt(++Tt)])!=null?rt=fe.charAt(++Tt):jt=rt==="e"?" ":"0",(Kt=ke[rt])&&(rt=Kt(Re,jt)),ce.push(rt),Ne=Tt+1);return ce.push(fe.slice(Ne,Tt)),ce.join("")}}function $(fe,ke){return function(Re){var ce=ld(1900,void 0,1),Tt=T(ce,fe,Re+="",0),Ne,bt;if(Tt!=Re.length)return null;if("Q"in ce)return new Date(ce.Q);if("s"in ce)return new Date(ce.s*1e3+("L"in ce?ce.L:0));if(ke&&!("Z"in ce)&&(ce.Z=0),"p"in ce&&(ce.H=ce.H%12+ce.p*12),ce.m===void 0&&(ce.m="q"in ce?ce.q:0),"V"in ce){if(ce.V<1||ce.V>53)return null;"w"in ce||(ce.w=1),"Z"in ce?(Ne=Fb(ld(ce.y,0,1)),bt=Ne.getUTCDay(),Ne=bt>4||bt===0?Wd.ceil(Ne):Wd(Ne),Ne=Kc.offset(Ne,(ce.V-1)*7),ce.y=Ne.getUTCFullYear(),ce.m=Ne.getUTCMonth(),ce.d=Ne.getUTCDate()+(ce.w+6)%7):(Ne=$b(ld(ce.y,0,1)),bt=Ne.getDay(),Ne=bt>4||bt===0?yp.ceil(Ne):yp(Ne),Ne=ew.offset(Ne,(ce.V-1)*7),ce.y=Ne.getFullYear(),ce.m=Ne.getMonth(),ce.d=Ne.getDate()+(ce.w+6)%7)}else("W"in ce||"U"in ce)&&("w"in ce||(ce.w="u"in ce?ce.u%7:"W"in ce?1:0),bt="Z"in ce?Fb(ld(ce.y,0,1)).getUTCDay():$b(ld(ce.y,0,1)).getDay(),ce.m=0,ce.d="W"
vendor: 6,571 bytes, line 49
49in ce?(ce.w+6)%7+ce.W*7-(bt+5)%7:ce.w+ce.U*7-(bt+6)%7);return"Z"in ce?(ce.H+=ce.Z/100|0,ce.M+=ce.Z%100,Fb(ce)):$b(ce)}}function T(fe,ke,Re,ce){for(var Tt=0,Ne=ke.length,bt=Re.length,rt,jt;Tt<Ne;){if(ce>=bt)return-1;if(rt=ke.charCodeAt(Tt++),rt===37){if(rt=ke.charAt(Tt++),jt=N[rt in TE?ke.charAt(Tt++):rt],!jt||(ce=jt(fe,Re,ce))<0)return-1}else if(rt!=Re.charCodeAt(ce++))return-1}return ce}function j(fe,ke,Re){var ce=f.exec(ke.slice(Re));return ce?(fe.p=m.get(ce[0].toLowerCase()),Re+ce[0].length):-1}function _(fe,ke,Re){var ce=y.exec(ke.slice(Re));return ce?(fe.w=x.get(ce[0].toLowerCase()),Re+ce[0].length):-1}function P(fe,ke,Re){var ce=p.exec(ke.slice(Re));return ce?(fe.w=g.get(ce[0].toLowerCase()),Re+ce[0].length):-1}function U(fe,ke,Re){var ce=M.exec(ke.slice(Re));return ce?(fe.m=C.get(ce[0].toLowerCase()),Re+ce[0].length):-1}function W(fe,ke,Re){var ce=S.exec(ke.slice(Re));return ce?(fe.m=A.get(ce[0].toLowerCase()),Re+ce[0].length):-1}function q(fe,ke,Re){return T(fe,t,ke,Re)}function ne(fe,ke,Re){return T(fe,n,ke,Re)}function B(fe,ke,Re){return T(fe,r,ke,Re)}function G(fe){return o[fe.getDay()]}function F(fe){return i[fe.getDay()]}function ee(fe){return u[fe.getMonth()]}function he(fe){return c[fe.getMonth()]}function z(fe){return a[+(fe.getHours()>=12)]}function Z(fe){return 1+~~(fe.getMonth()/3)}function re(fe){return o[fe.getUTCDay()]}function ue(fe){return i[fe.getUTCDay()]}function me(fe){return u[fe.getUTCMonth()]}function ve(fe){return c[fe.getUTCMonth()]}function Ce(fe){return a[+(fe.getUTCHours()>=12)]}function Oe(fe){return 1+~~(fe.getUTCMonth()/3)}return{format:function(fe){var ke=O(fe+="",R);return ke.toString=function(){return fe},ke},parse:function(fe){var ke=$(fe+="",!1);return ke.toString=function(){return fe},ke},utcFormat:function(fe){var ke=O(fe+="",L);return ke.toString=function(){return fe},ke},utcParse:function(fe){var ke=$(fe+="",!0);return ke.toString=function(){return fe},ke}}}var TE={"-":"",_:" ",0:"0"},mn=/^\s*\d+/,mW=/^%/,pW=/[\\^$*+?|[\]().{}]/g;function Qe(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function gW(e){return e.replace(pW,"\\$&")}function cd(e){return new RegExp("^(?:"+e.map(gW).join("|")+")","i")}function ud(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function yW(e,t,n){var r=mn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function bW(e,t,n){var r=mn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function vW(e,t,n){var r=mn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function xW(e,t,n){var r=mn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function wW(e,t,n){var r=mn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function kE(e,t,n){var r=mn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function EE(e,t,n){var r=mn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function SW(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function AW(e,t,n){var r=mn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function MW(e,t,n){var r=mn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function CE(e,t,n){var r=mn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function TW(e,t,n){var r=mn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function RE(e,t,n){var r=mn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function kW(e,t,n){var r=mn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function EW(e,t,n){var r=mn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function CW(e,t,n){var r=mn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function RW(e,t,n){var r=mn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function LW(e,t,n){var r=mW.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function DW(e,t,n){var r=mn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function NW(e,t,n){var r=mn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function LE(e,t){return Qe(e.getDate(),t,2)}function jW(e,t){return Qe(e.getHours(),t,2)}function OW(e,t){return Qe(e.getHours()%12||12,t,2)}function _W(e,t){return Qe(1+ew.count(Oo(e),e),t,3)}function $D(e,t){return Qe(e.getMilliseconds(),t,3)}function IW(e,t){return $D(e,t)+"000"}function BW(e,t){return Qe(e.getMonth()+1,t,2)}function zW(e,t){return Qe(e.getMinutes(),t,2)}function VW(e,t){return Qe(e.getSeconds(),t,2)}function PW(e){var t=e.getDay();return t===0?7:t}function $W(e,t){return Qe(xD.count(Oo(e)-1,e),t,2)}function FD(e){var t=e.getDay();return t>=4||t===0?Oc(e):Oc.ceil(e)}function FW(e,t){return e=FD(e),Qe(Oc.count(Oo(e),e)+(Oo(e).getDay()===4),t,2)}function HW(e){return e.getDay()}function UW(e,t){return Qe(yp.count(Oo(e)-1,e),t,2)}function GW(e,t){return Qe(e.getFullYear()%100,t,2)}function YW(e,t){return e=FD(e),Qe(e.getFullYear()%100,t,2)}function WW(e,t){return Qe(e.getFullYear()%1e4,t,4)}function qW(e,t){var n=e.getDay();return e=n>=4||n===0?Oc(e):Oc.ceil(e),Qe(e.getFullYear()%1e4,t,4)}function XW(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Qe(t/60|0,"0",2)+Qe(t%60,"0",2)}function DE(e,t){return Qe(e.getUTCDate(),t,2)}function KW(e,t){return Qe(e.getUTCHours(),t,2)}function QW(e,t){return Qe(e.getUTCHours()%12||12,t,2)}function ZW(e,t){return Qe(1+Kc.count(Oa(e),e),t,3)}function HD(e,t){return Qe(e.getUTCMilliseconds(),t,3)}function JW(e,t){return HD(e,t)+"000"}function eq(e,t){return Qe(e.getUTCMonth()+1,t,2)}function tq(e,t){return Qe(e.getUTCMinutes(),t,2)}function nq(e,t){return Qe(e.getUTCSeconds(),t,2)}function rq(e){var t=e.getUTCDay();return t===0?7:t}function aq(e,t){return Qe(fg.count(Oa(e)-1,e),t,2)}function UD(e){var t=e.getUTCDay();return t>=4||t===0?_c(e):_c.ceil(e)}function iq(e,t){return e=UD(e),Qe(_c.count(Oa(e),e)+(Oa(e).getUTCDay()===4),t,2)}function sq(e){return e.getUTCDay()}function oq(e,t){return Qe(Wd.count(Oa(e)-1,e),t,2)}function lq(e,t){return Qe(e.getUTCFullYear()%100,t,2)}function cq(e,t){return e=UD(e),Qe(e.getUTCFullYear()%100,t,2)}function uq(e,t){return Qe(e.getUTCFullYear()%1e4,t,4)}function dq(e,t){var n=e.getUTCDay();return e=n>=4||n===0?_c(e):_c.ceil(e),Qe(e.getUTCFullYear()%1e4,t,4)}function fq(){return"+0000"}function NE(){return"%"}function jE(e){return+e}function OE(e){return Math.floor(+e/1e3)}var Kl,GD;hq({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
49ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function hq(e){return Kl=hW(e),Kl.format,Kl.parse,GD=Kl.utcFormat,Kl.utcParse,Kl}function mq(e){return new Date(e)}function pq(e){return e instanceof Date?+e:+new Date(+e)}function YD(e,t,n,r,a,i,o,c,u,f){var m=_D(),p=m.invert,g=m.domain,y=f(".%L"),x=f(":%S"),S=f("%I:%M"),A=f("%I %p"),M=f("%a %d"),C=f("%b %d"),R=f("%B"),L=f("%Y");function N(O){return(u(O)<O?y:c(O)<O?x:o(O)<O?S:i(O)<O?A:r(O)<O?a(O)<O?M:C:n(O)<O?R:L)(O)}return m.invert=function(O){return new Date(p(O))},m.domain=function(O){return arguments.length?g(Array.from(O,pq)):g().map(mq)},m.ticks=function(O){var $=g();return e($[0],$[$.length-1],O??10)},m.tickFormat=function(O,$){return $==null?N:f($)},m.nice=function(O){var $=g();return(!O||typeof O.range!="function")&&(O=t($[0],$[$.length-1],O??10)),O?g(zD($,O)):m},m.copy=function(){return bg(m,YD(e,t,n,r,a,i,o,c,u,f))},m}function gq(){return Zc.apply(YD(LG,DG,Oa,hg,fg,Kc,dg,tw,uc,GD).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ir(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const Ha=e=>TY(e[e.length-1]);var yq=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(ir);const bq=Ha(yq);var vq=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(ir);const xq=Ha(vq);var wq=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(ir);const Sq=Ha(wq);var Aq=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(ir);const Mq=Ha(Aq);var Tq=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(ir);const kq=Ha(Tq);var Eq=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(ir);const Cq=Ha(Eq);var Rq=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(ir);const Lq=Ha(Rq);var Dq=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(ir);const Nq=Ha(Dq);var jq=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(ir);const Oq=Ha(jq);var _q=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(ir);const Iq=Ha(_q);function Bq(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+
49Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}function zq(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function vg(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const Vq=vg(ir("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var Pq=vg(ir("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),$q=vg(ir("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e
490966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Fq=vg(ir("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),Wm={exports:{}},Hq=Wm.exports,_E;function Uq(){return _E||(_E=1,(function(e){(function(t){var n=Object.assign||function(T){for(var j,_=1;_<arguments.length;_++){j=arguments[_];for(var P in j)M(j,P)&&(T[P]=j[P])}return T},r=Array.isArray||function(T){return Object.prototype.toString.call(T)==="[object Array]"},a=u(["ÏÏÏνοÏ","ÏÏÏνια"],["μήναÏ","μήνεÏ"],["εβδομάδα","εβδομάδεÏ"],["μÎÏα","μÎÏεÏ"],["ÏÏα","ÏÏεÏ"],["λεÏÏÏ","λεÏÏά"],["δεÏ
ÏεÏÏλεÏÏο","δεÏ
ÏεÏÏλεÏÏα"],["ÏιλιοÏÏÏ ÏοÏ
δεÏ
ÏεÏολÎÏÏοÏ
","ÏιλιοÏÏά ÏοÏ
δεÏ
ÏεÏολÎÏÏοÏ
"],","),i={af:u(["jaar","jaar"],["maand","maande"],["week","weke"],["dag","dae"],["uur","ure"],["minuut","minute"],["sekonde","sekondes"],["millisekonde","millisekondes"],","),am:o("áááµ","áá","á³áááµ","áá","á°ááµ","á°áá","á°á¨ááµ","ááá°á¨ááµ"),ar:n(o(function(T){return["Ø³ÙØ©","Ø³ÙØªØ§Ù","سÙÙØ§Øª"][g(T)]},function(T){return["Ø´ÙØ±","Ø´ÙØ±Ø§Ù","Ø£Ø´ÙØ±"][g(T)]},function(T){return["Ø£Ø³Ø¨ÙØ¹","Ø£Ø³Ø¨ÙØ¹ÙÙ","Ø£Ø³Ø§Ø¨ÙØ¹"][g(T)]},function(T){return["ÙÙÙ
","ÙÙÙ
ÙÙ","Ø£ÙØ§Ù
"][g(T)]},function(T){return["ساعة","ساعتÙÙ","ساعات"][g(T)]},function(T){return["دÙÙÙØ©","دÙÙÙØªØ§Ù","Ø¯ÙØ§Ø¦Ù"][g(T)]},function(T){return["ثاÙÙØ©","ثاÙÙØªØ§Ù","Ø«ÙØ§ÙÙ"][g(T)]},function(T){return["جزء Ù
Ù Ø§ÙØ«Ø§ÙÙØ©","جزآ٠Ù
Ù Ø§ÙØ«Ø§ÙÙØ©","أجزاء Ù
Ù Ø§ÙØ«Ø§ÙÙØ©"][g(T)]},","),{delimiter:" ï» ",_hideCountIf2:!0,_digitReplacements:["Û°","Ù¡","Ù¢","Ù£","Ù¤","Ù¥","Ù¦","Ù§","Ù¨","Ù©"]}),bg:p(["години","година","години"],["меÑеÑа","меÑеÑ","меÑеÑа"],["ÑедмиÑи","ÑедмиÑа","ÑедмиÑи"],["дни","ден","дни"],["ÑаÑа","ÑаÑ","ÑаÑа"],["минÑÑи","минÑÑа","минÑÑи"],["ÑекÑнди","ÑекÑнда","ÑекÑнди"],["милиÑекÑнди","милиÑекÑнда","милиÑекÑнди"]),bn:o("বà¦à¦°","মাস","সপà§à¦¤à¦¾à¦¹","দিন","à¦à¦¨à§à¦à¦¾","মিনিà¦","সà§à¦à§à¦¨à§à¦¡","মিলিসà§à¦à§à¦¨à§à¦¡"),ca:u(["any","anys"],["mes","mesos"],["setmana","setmanes"],["dia","dies"],["hora","hores"],["minut","minuts"],["segon","segons"],["milisegon","milisegons"],","),ckb:o("ساڵ","Ù
اÙÚ¯","ÙÛÙØªÛ","ÚÛÚ","کاÚÛØ±","Ø®ÙÙÛÚ©","ÚØ±Ú©Û","Ù
ÛÙÛ ÚØ±Ú©Û","."),cs:o(function(T){return["rok","roku","roky","let"][x(T)]},function(T){return["mÄsÃc","mÄsÃce","mÄsÃce","mÄsÃců"][x(T)]},function(T){return["týden","týdne","týdny","týdnů"][x(T)]},function(T){return["den","dne","dny","dnÃ"][x(T)]},function(T){return["hodina","hodiny","hodiny","hodin"][x(T)]},function(T){return["minuta","minuty","minuty","minut"][x(T)]},function(T){return["sekunda","sekundy","sekundy","sekund"][x(T)]},function(T){return["milisekunda","milisekundy","milisekundy","milisekund"][x(T)]},","),cy:o("flwyddyn","mis","wythnos","diwrnod","awr","munud","eiliad","milieiliad"),da:u(["Ã¥r","Ã¥r"],["mÃ¥ned","mÃ¥neder"],["uge","uger"],["dag","dage"],["time","timer"],["minut","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),de:u(["Jahr","Jahre"],["Monat","Monate"],["Woche","Wochen"],["Tag","Tage"],["Stunde","Stunden"],["Minute","Minuten"],["Sekunde","Sekunden"],["Millisekunde","Millisekunden"],","),el:a,en:u(["year","years"],["month","months"],["week","weeks"],["day","days"],["hour","hours"],["minute","minutes"],["second","seconds"],["millisecond","milliseconds"]),eo:u(["jaro","jaroj"],["monato","monatoj"],["semajno","semajnoj"],["tago","tagoj"],["horo","horoj"],["minuto","minutoj"],["sekundo","sekundoj"],["milisekundo","milisekundoj"],","),es:u(["año","años"],["mes","meses"],["semana","semanas"],["dÃa","dÃas"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milisegundo","milisegundos"],","),et:u(["aasta","aastat"],["kuu","kuud"],["nädal","nädalat"],["päev","päeva"],["tund","tundi"],["minut","minutit"],["sekund","sekundit"],["millisekund","millisekundit"],","),eu:o("urte","hilabete","aste","egun","ordu","minutu","segundo","milisegundo",","),fa:o("ساÙ","Ù
اÙ","ÙÙØªÙ","Ø±ÙØ²","ساعت","دÙÛÙÙ","ثاÙÛÙ","Ù
ÛÙÛ Ø«Ø§ÙÛÙ"),fi:u(["vuosi","vuotta"],["kuukausi","kuukautta"],["viikko","viikkoa"],["päivä","päivää"],["tunti","tuntia"],["minuutti","minuuttia"],["sekunti","sekuntia"],["millisekunti","millisekuntia"],","),fo:u(["ár","ár"],["mánaður","mánaðir"],["vika","vikur"],["dagur","dagar"],["tÃmi","tÃmar"],["minuttur","minuttir"],["sekund","sekund"],["millisekund","millisekund"],","),fr:o(function(T){return"an"+(T>=2?"s":"")},"mois",function(T){return"semaine"+(T>=2?"s":"")},function(T){return"jour"+(T>=2?"s":"")},function(T){return"heure"+(T>=2?"s":"")},function(T){return"minute"+(T>=2?"s":"")},function(T){return"seconde"+(T>=2?"s":"")},function(T){return"milliseconde"+(T>=2?"s":"")},","),gr:a,he:u(["×©× ×","×©× ××"],["×××ש","×××ש××"],["ש×××¢","ש×××¢×ת"],["×××","××××"],["שע×","שע×ת"],["××§×","××§×ת"],["×©× ××","×©× ××ת"],["×××××©× ×××","×××××©× ××ת"]),hr:o(function(T){return T%10===2||T%10===3||T%10===4?"godine":"godina"},function(T){return T===1?"mjesec":T===2||T===3||T===4?"mjeseca":"mjeseci"},function(T){return T%10===1&&T!==11?"tjedan":"tjedna"},c(["dan","dana"]),function(T){return T===1?"sat":T===2||T===3||T===4?"sata":"sati"},function(T){var j=T%10;return(j===2||j===3||j===4)&&(T<10||T>14)?"minute":"minuta"},function(T){var j=T%10;return j===5||Math.floor(T)===T&&T>=10&&T<=19?"sekundi":j===1?"sekunda":j===2||j===3||j===4?"sekunde":"sekundi"},function(T){return T===1?"milisekunda":T%10===2||T%10===3||T%10===4?"milisekunde":"milisekundi"},","),hi:o("साल",c(["महà¥à¤¨à¤¾","महà¥à¤¨à¥"]),c(["हà¥à¥à¤¤à¤¾","हफà¥à¤¤à¥"]),"दिन",c(["à¤à¤à¤à¤¾","à¤à¤à¤à¥"]),"मिनà¤","सà¥à¤à¤à¤¡","मिलà¥à¤¸à¥à¤à¤à¤¡"),hu:o("év","hónap","hét","nap","óra","perc","másodperc","ezredmásodperc",","),id:o("tahun","bulan","minggu","hari","jam","menit","detik","milidetik"),is:u(["ár","ár"],["mánuður","mánuðir"],["vika","vikur"],["dagur","dagar"],["klukkutÃmi","klukkutÃmar"],["mÃnúta","mÃnútur"],["sekúnda","sekúndur"],["millisekúnda","millisekúndur"]),it:u(["anno","anni"],["mese","mesi"],["settimana","settimane"],["giorno","giorni"],["ora","ore"],["minuto","minuti"],["secondo","secondi"],["millisecondo","millisecondi"],","),ja:o("å¹´","ã¶æ","é±é","æ¥","æé","å","ç§","ããªç§"),km:o("áááá¶á","áá","ááááá¶á á","áááá","áááá
49","áá¶áá¸","áá·áá¶áá¸","áá·áááá¸áá·áá¶áá¸"),kn:u(["ವರà³à²·","ವರà³à²·à²à²³à³"],["ತಿà²à²à²³à³","ತಿà²à²à²³à³à²à²³à³"],["ವಾರ","ವಾರà²à²³à³"],["ದಿನ","ದಿನà²à²³à³"],["à²à²à²à³","à²à²à²à³à²à²³à³"],["ನಿಮಿಷ","ನಿಮಿಷà²à²³à³"],["ಸà³à²à³à²à²¡à³","ಸà³à²à³à²à²¡à³à²à²³à³"],["ಮಿಲಿಸà³à²à³à²à²¡à³","ಮಿಲಿಸà³à²à³à²à²¡à³à²à²³à³"]),ko:o("ë
","ê°ì","주ì¼","ì¼","ìê°","ë¶","ì´","ë°ë¦¬ ì´"),ku:o("sal","meh","hefte","roj","seet","deqe","saniye","mîlîçirk",","),lo:o("àºàºµ","à»àºàº·àºàº","àºàº²àºàº´àº","ມືà»","àºàº»à»àº§à»àº¡àº","àºàº²àºàºµ","ວິàºàº²àºàºµ","ມິàºàº¥àº´àº§àº´àºàº²àºàºµ",","),lt:o(function(T){return T%10===0||T%100>=10&&T%100<=20?"metų":"metai"},function(T){return["mÄnuo","mÄnesiai","mÄnesių"][S(T)]},function(T){return["savaitÄ","savaitÄs","savaiÄių"][S(T)]},function(T){return["diena","dienos","dienų"][S(T)]},function(T){return["valanda","valandos","valandų"][S(T)]},function(T){return["minutÄ","minutÄs","minuÄių"][S(T)]},function(T){return["sekundÄ","sekundÄs","sekundžių"][S(T)]},function(T){return["milisekundÄ","milisekundÄs","milisekundžių"][S(T)]},","),lv:o(function(T){return A(T)?"gads":"gadi"},function(T){return A(T)?"mÄnesis":"mÄneÅ¡i"},function(T){return A(T)?"nedÄļa":"nedÄļas"},function(T){return A(T)?"diena":"dienas"},function(T){return A(T)?"stunda":"stundas"},function(T){return A(T)?"minÅ«te":"minÅ«tes"},function(T){return A(T)?"sekunde":"sekundes"},function(T){return A(T)?"milisekunde":"milisekundes"},","),mk:u(["година","години"],["меÑеÑ","меÑеÑи"],["недела","недели"],["ден","дена"],["ÑаÑ","ÑаÑа"],["минÑÑа","минÑÑи"],["ÑекÑнда","ÑекÑнди"],["милиÑекÑнда","милиÑекÑнди"],","),mn:o("жил","ÑаÑ","долоо Ñ
оног","өдөÑ","Ñаг","минÑÑ","ÑекÑнд","миллиÑекÑнд"),mr:o(c(["वरà¥à¤·","वरà¥à¤·à¥"]),c(["महिना","महिनà¥"]),c(["à¤à¤ वडा","à¤à¤ वडà¥"]),"दिवस","तास",c(["मिनिà¤","मिनिà¤à¥"]),"सà¥à¤à¤à¤¦","मिलिसà¥à¤à¤à¤¦"),ms:o("tahun","bulan","minggu","hari","jam","minit","saat","milisaat"),nl:u(["jaar","jaar"],["maand","maanden"],["week","weken"],["dag","dagen"],["uur","uur"],["minuut","minuten"],["seconde","seconden"],["milliseconde","milliseconden"],","),nn:u(["Ã¥r","Ã¥r"],["mÃ¥nad","mÃ¥nader"],["veke","veker"],["dag","dagar"],["time","timar"],["minutt","minutt"],["sekund","sekund"],["millisekund","millisekund"],","),no:u(["Ã¥r","Ã¥r"],["mÃ¥ned","mÃ¥neder"],["uke","uker"],["dag","dager"],["time","timer"],["minutt","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),pl:o(function(T){return["rok","roku","lata","lat"][y(T)]},function(T){return["miesiÄ
c","miesiÄ
ca","miesiÄ
ce","miesiÄcy"][y(T)]},function(T){return["tydzieÅ","tygodnia","tygodnie","tygodni"][y(T)]},function(T){return["dzieÅ","dnia","dni","dni"][y(T)]},function(T){return["godzina","godziny","godziny","godzin"][y(T)]},function(T){return["minuta","minuty","minuty","minut"][y(T)]},function(T){return["sekunda","sekundy","sekundy","sekund"][y(T)]},function(T){return["milisekunda","milisekundy","milisekundy","milisekund"][y(T)]},","),pt:u(["ano","anos"],["mês","meses"],["semana","semanas"],["dia","dias"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milissegundo","milissegundos"],","),ro:o(f("an","ani","de ani"),f("lunÄ","luni","de luni"),f("sÄptÄmânÄ","sÄptÄmâni","de sÄptÄmâni"),f("zi","zile","de zile"),f("orÄ","ore","de ore"),f("minut","minute","de minute"),f("secundÄ","secunde","de secunde"),f("milisecundÄ","milisecunde","de milisecunde"),","),ru:p(["леÑ","год","года"],["меÑÑÑев","меÑÑÑ","меÑÑÑа"],["неделÑ","неделÑ","недели"],["дней","денÑ","днÑ"],["ÑаÑов","ÑаÑ","ÑаÑа"],["минÑÑ","минÑÑа","минÑÑÑ"],["ÑекÑнд","ÑекÑнда","ÑекÑндÑ"],["миллиÑекÑнд","миллиÑекÑнда","миллиÑекÑндÑ"]),sq:o(c(["vit","vjet"]),"muaj","javë","ditë","orë",function(T){return"minut"+(T===1?"ë":"a")},function(T){return"sekond"+(T===1?"ë":"a")},function(T){return"milisekond"+(T===1?"ë":"a")},","),sr:p(["години","година","године"],["меÑеÑи","меÑеÑ","меÑеÑа"],["недеÑи","недеÑа","недеÑе"],["дани","дан","дана"],["ÑаÑи","ÑаÑ","ÑаÑа"],["минÑÑа","минÑÑ","минÑÑа"],["ÑекÑнди","ÑекÑнда","ÑекÑнде"],["милиÑекÑнди","милиÑекÑнда","милиÑекÑнде"]),sr_Latn:p(["godini","godina","godine"],["meseci","mesec","meseca"],["nedelji","nedelja","nedelje"],["dani","dan","dana"],["sati","sat","sata"],["minuta","minut","minuta"],["sekundi","sekunda","sekunde"],["milisekundi","milisekunda","milisekunde"]),ta:u(["வரà¯à®à®®à¯","à®à®£à¯à®à¯à®à®³à¯"],["மாதமà¯","மாதà®à¯à®à®³à¯"],["வாரமà¯","வாரà®à¯à®à®³à¯"],["நாளà¯","நாà®à¯à®à®³à¯"],["மணி","மணிநà¯à®°à®®à¯"],["நிமிà®à®®à¯","நிமிà®à®à¯à®à®³à¯"],["வினாà®à®¿","வினாà®à®¿à®à®³à¯"],["மிலà¯à®²à®¿ விநாà®à®¿","மிலà¯à®²à®¿ விநாà®à®¿à®à®³à¯"]),te:u(["à°¸à°à°µà°¤à±à°¸à°°à°","à°¸à°à°µà°¤à±à°¸à°°à°¾à°²"],["à°¨à±à°²","à°¨à±à°²à°²"],["వారà°","వారాలà±"],["à°°à±à°à±","à°°à±à°à±à°²à±"],["à°à°à°","à°à°à°à°²à±"],["నిమిషà°","నిమిషాలà±"],["à°¸à±à°à°¨à±","à°¸à±à°à°¨à±à°²à±"],["మిలà±à°²à±à°¸à±à°à°¨à±","మిలà±à°²à±à°¸à±à°à°¨à±à°²à±"]),uk:p(["ÑокÑв","ÑÑк","Ñоки"],["мÑÑÑÑÑв","мÑÑÑÑÑ","мÑÑÑÑÑ"],["ÑижнÑв","ÑижденÑ","ÑижнÑ"],["днÑв","денÑ","днÑ"],["годин","година","години"],["Ñ
вилин","Ñ
вилина","Ñ
вилини"],["ÑекÑнд","ÑекÑнда","ÑекÑнди"],["мÑлÑÑекÑнд","мÑлÑÑекÑнда","мÑлÑÑекÑнди"]),ur:o("ساÙ",c(["Ù
ÛÛÙÛ","Ù
ÛÛÙÛ"]),c(["ÛÙØªÛ","ÛÙØªÛ"]),"دÙ",c(["Ú¯Ú¾ÙÙ¹Û","Ú¯Ú¾ÙÙ¹Û"]),"Ù
ÙÙ¹","سÛÚ©ÙÚ","Ù
ÙÛ Ø³ÛÚ©ÙÚ"),sk:o(function(T){return["rok","roky","roky","rokov"][x(T)]},function(T){return["mesiac","mesiace","mesiace","mesiacov"][x(T)]}
49,function(T){return["týždeÅ","týždne","týždne","týždÅov"][x(T)]},function(T){return["deÅ","dni","dni","dnÃ"][x(T)]},function(T){return["hodina","hodiny","hodiny","hodÃn"][x(T)]},function(T){return["minúta","minúty","minúty","minút"][x(T)]},function(T){return["sekunda","sekundy","sekundy","sekúnd"][x(T)]},function(T){return["milisekunda","milisekundy","milisekundy","milisekúnd"][x(T)]},","),sl:o(function(T){return T%10===1?"leto":T%100===2?"leti":T%100===3||T%100===4||Math.floor(T)!==T&&T%100<=5?"leta":"let"},function(T){return T%10===1?"mesec":T%100===2||Math.floor(T)!==T&&T%100<=5?"meseca":T%10===3||T%10===4?"mesece":"mesecev"},function(T){return T%10===1?"teden":T%10===2||Math.floor(T)!==T&&T%100<=4?"tedna":T%10===3||T%10===4?"tedne":"tednov"},function(T){return T%100===1?"dan":"dni"},function(T){return T%10===1?"ura":T%100===2?"uri":T%10===3||T%10===4||Math.floor(T)!==T?"ure":"ur"},function(T){return T%10===1?"minuta":T%10===2?"minuti":T%10===3||T%10===4||Math.floor(T)!==T&&T%100<=4?"minute":"minut"},function(T){return T%10===1?"sekunda":T%100===2?"sekundi":T%100===3||T%100===4||Math.floor(T)!==T?"sekunde":"sekund"},function(T){return T%10===1?"milisekunda":T%100===2?"milisekundi":T%100===3||T%100===4||Math.floor(T)!==T?"milisekunde":"milisekund"},","),sv:u(["Ã¥r","Ã¥r"],["mÃ¥nad","mÃ¥nader"],["vecka","veckor"],["dag","dagar"],["timme","timmar"],["minut","minuter"],["sekund","sekunder"],["millisekund","millisekunder"],","),sw:n(u(["mwaka","miaka"],["mwezi","miezi"],["wiki","wiki"],["siku","masiku"],["saa","masaa"],["dakika","dakika"],["sekunde","sekunde"],["milisekunde","milisekunde"]),{_numberFirst:!0}),tr:o("yıl","ay","hafta","gün","saat","dakika","saniye","milisaniye",","),th:o("à¸à¸µ","à¹à¸à¸·à¸à¸","สัà¸à¸à¸²à¸«à¹","วัà¸","à¸à¸±à¹à¸§à¹à¸¡à¸","à¸à¸²à¸à¸µ","วิà¸à¸²à¸à¸µ","มิลลิวิà¸à¸²à¸à¸µ"),uz:o("yil","oy","hafta","kun","soat","minut","sekund","millisekund"),uz_CYR:o("йил","ой","ҳаÑÑа","кÑн","ÑоаÑ","минÑÑ","ÑекÑнд","миллиÑекÑнд"),vi:o("nÄm","tháng","tuần","ngà y","giá»","phút","giây","mili giây",","),zh_CN:o("å¹´","个æ","å¨","天","å°æ¶","åé","ç§","毫ç§"),zh_TW:o("å¹´","åæ","å¨","天","å°æ","åé","ç§","毫ç§")};function o(T,j,_,P,U,W,q,ne,B){var G={y:T,mo:j,w:_,d:P,h:U,m:W,s:q,ms:ne};return B&&(G.decimal=B),G}function c(T){return function(j){return j===1?T[0]:T[1]}}function u(T,j,_,P,U,W,q,ne,B){return o(c(T),c(j),c(_),c(P),c(U),c(W),c(q),c(ne),B)}function f(T,j,_){return function(P){if(P===1)return T;if(Math.floor(P)!==P||P===0)return j;var U=P%100;return U>=1&&U<=19?j:_}}function m(T){return function(j){return Math.floor(j)!==j?T[2]:j%100>=5&&j%100<=20||j%10>=5&&j%10<=9||j%10===0?T[0]:j%10===1?T[1]:j>1?T[2]:T[1]}}function p(T,j,_,P,U,W,q,ne){return o(m(T),m(j),m(_),m(P),m(U),m(W),m(q),m(ne),",")}function g(T){return T===2?1:T>2&&T<11?2:0}function y(T){return T===1?0:Math.floor(T)!==T?1:T%10>=2&&T%10<=4&&!(T%100>10&&T%100<20)?2:3}function x(T){return T===1?0:Math.floor(T)!==T?1:T%10>=2&&T%10<=4&&T%100<10?2:3}function S(T){return T%10===1&&T%100!==11?0:Math.floor(T)!==T||T%10>=2&&T%100>20||T%10>=2&&T%100<10?1:2}function A(T){return T%10===1&&T%100!==11}function M(T,j){return Object.prototype.hasOwnProperty.call(T,j)}function C(T){var j=[T.language];if(M(T,"fallbacks"))if(r(T.fallbacks)&&T.fallbacks.length)j=j.concat(T.fallbacks);else throw new Error("fallbacks must be an array with at least one element");for(var _=0;_<j.length;_++){var P=j[_];if(M(T.languages,P))return T.languages[P];if(M(i,P))return i[P]}throw new Error("No language found.")}function R(T,j,_){var P=T.unitName,U=T.unitCount,W=_.spacer,q=_.maxDecimalPoints,ne;typeof _.decimal=="string"?ne=_.decimal:typeof j.decimal=="string"?ne=j.decimal:ne=".";var B;"digitReplacements"in _?B=_.digitReplacements:"_digitReplacements"in j&&(B=j._digitReplacements);var G,F=q===void 0?U:Math.floor(U*Math.pow(10,q))/Math.pow(10,q),ee=F.toString();if(j._hideCountIf2&&U===2)G="",W="";else if(B){G="";for(var he=0;he<ee.length;he++){var z=ee[he];if(z===".")G+=ne;else{var Z=Number(z),re=B[Z];G+=re===void 0?z:re}}}else G=ee.replace(".",ne);var ue=j[P],me;return typeof ue=="function"?me=ue(U):me=ue,j._numberFirst?me+W+G:G+W+me}function L(T,j){var _,P,U,W,q=j.units,ne=j.unitMeasures,B=typeof j.largest=="number"?j.largest:1/0;if(!q.length)return[];var G={};for(W=T,P=0;P<q.length;P++){_=q[P];var F=ne[_],ee=P===q.length-1;U=ee?W/F:Math.floor(W/F),G[_]=U,W-=U*F}if(j.round){var he=B;for(P=0;P<q.length;P++)if(_=q[P],U=G[_],U!==0&&(he--,he===0)){for(var z=P+1;z<q.length;z++){var Z=q[z],re=G[Z];G[_]=G[_]+re*ne[Z]/ne[_],G[Z]=0}break}for(P=q.length-1;P>=0;P--)if(_=q[P],U=G[_],U!==0){var ue=Math.round(U);if(G[_]=ue,P===0)break;var me=q[P-1],ve=ne[me],Ce=Math.floor(ue*ne[_]/ve);if(Ce)G[me]=G[me]+Ce,G[_]=0;else break}}var Oe=[];for(P=0;P<q.length&&Oe.length<B;P++)_=q[P],U=G[_],U&&Oe.push({unitName:_,unitCount:U});return Oe}function N(T,j){var _=C(j);if(!T.length){var P=j.units,U=P[P.length-1];return R({unitName:U,unitCount:0},_,j)}var W=j.conjunction,q=j.serialComma,ne;M(j,"delimiter")?ne=j.delimiter:M(_,"delimiter")?ne=_.delimiter:ne=", ";for(var B=[],G=0;G<T.length;
vendor: 4,297 bytes, line 49
49G++)B.push(R(T[G],_,j));return!W||T.length===1?B.join(ne):T.length===2?B.join(W):B.slice(0,-1).join(ne)+(q?",":"")+W+B.slice(-1)}function O(T){var j=(function(P,U){P=Math.abs(P);var W=n({},j,U||{}),q=L(P,W);return N(q,W)});return n(j,{language:"en",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},T)}var $=n(O({}),{getSupportedLanguages:function(){var j=[];for(var _ in i)M(i,_)&&_!=="gr"&&j.push(_);return j},humanizer:O});e.exports?e.exports=$:t.humanizeDuration=$})(Hq)})(Wm)),Wm.exports}var Gq=Uq();const Yq=i3(Gq);function gt(e){return function(){return e}}const IE=Math.abs,kn=Math.atan2,io=Math.cos,Wq=Math.max,Hb=Math.min,ya=Math.sin,dc=Math.sqrt,Rn=1e-12,Zd=Math.PI,kp=Zd/2,qq=2*Zd;function Xq(e){return e>1?0:e<-1?Zd:Math.acos(e)}function BE(e){return e>=1?kp:e<=-1?-kp:Math.asin(e)}const mx=Math.PI,px=2*mx,uo=1e-6,Kq=px-uo;function WD(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Qq(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return WD;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;a<i;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}let Zq=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?WD:Qq(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,i,o){this._append`C${+t},${+n},${+r},${+a},${this._x1=+i},${this._y1=+o}`}arcTo(t,n,r,a,i){if(t=+t,n=+n,r=+r,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,c=this._y1,u=r-t,f=a-n,m=o-t,p=c-n,g=m*m+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(g>uo)if(!(Math.abs(p*u-f*m)>uo)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let y=r-o,x=a-c,S=u*u+f*f,A=y*y+x*x,M=Math.sqrt(S),C=Math.sqrt(g),R=i*Math.tan((mx-Math.acos((S+g-A)/(2*M*C)))/2),L=R/C,N=R/M;Math.abs(L-1)>uo&&this._append`L${t+L*m},${n+L*p}`,this._append`A${i},${i},0,0,${+(p*y>m*x)},${this._x1=t+N*u},${this._y1=n+N*f}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let c=r*Math.cos(a),u=r*Math.sin(a),f=t+c,m=n+u,p=1^o,g=o?a-i:i-a;this._x1===null?this._append`M${f},${m}`:(Math.abs(this._x1-f)>uo||Math.abs(this._y1-m)>uo)&&this._append`L${f},${m}`,r&&(g<0&&(g=g%px+px),g>Kq?this._append`A${r},${r},0,1,${p},${t-c},${n-u}A${r},${r},0,1,${p},${this._x1=f},${this._y1=m}`:g>uo&&this._append`A${r},${r},0,${+(g>=mx)},${p},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}};function ow(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Zq(t)}function Jq(e){return e.innerRadius}function eX(e){return e.outerRadius}function tX(e){return e.startAngle}function nX(e){return e.endAngle}function rX(e){return e&&e.padAngle}function aX(e,t,n,r,a,i,o,c){var u=n-e,f=r-t,m=o-a,p=c-i,g=p*u-m*f;if(!(g*g<Rn))return g=(m*(t-i)-p*(e-a))/g,[e+g*u,t+g*f]}function xm(e,t,n,r,a,i,o){var c=e-n,u=t-r,f=(o?i:-i)/dc(c*c+u*u),m=f*u,p=-f*c,g=e+m,y=t+p,x=n+m,S=r+p,A=(g+x)/2,M=(y+S)/2,C=x-g,R=S-y,L=C*C+R*R,N=a-i,O=g*S-x*y,$=(R<0?-1:1)*dc(Wq(0,N*N*L-O*O)),T=(O*R-C*$)/L,j=(-O*C-R*$)/L,_=(O*R+C*$)/L,P=(-O*C+R*$)/L,U=T-A,W=j-M,q=_-A,ne=P-M;return U*U+W*W>q*q+ne*ne&&(T=_,j=P),{cx:T,cy:j,x01:-m,y01:-p,x11:T*(a/N-1),y11:j*(a/N-1)}}function iX(){var e=Jq,t=eX,n=gt(0),r=null,a=tX,i=nX,o=rX,c=null,u=ow(f);function f(){var m,p,g=+e.apply(this,arguments),y=+t.apply(this,arguments),x=a.apply(this,arguments)-kp,S=i.apply(this,arguments)-kp,A=IE(S-x),M=S>x;if(c||(c=m=u()),y<g&&(p=y,y=g,g=p),!(y>Rn))c.moveTo(0,0);else if(A>qq-Rn)c.moveTo(y*io(x),y*ya(x)),c.arc(0,0,y,x,S,!M),g>Rn&&(c.moveTo(g*io(S),g*ya(S)),c.arc(0,0,g,S,x,M));else{var C=x,R=S,L=x,N=S,O=A,$=A,T=o.apply(this,arguments)/2,j=T>
vendor: 4,084 bytes, line 49
49Rn&&(r?+r.apply(this,arguments):dc(g*g+y*y)),_=Hb(IE(y-g)/2,+n.apply(this,arguments)),P=_,U=_,W,q;if(j>Rn){var ne=BE(j/g*ya(T)),B=BE(j/y*ya(T));(O-=ne*2)>Rn?(ne*=M?1:-1,L+=ne,N-=ne):(O=0,L=N=(x+S)/2),($-=B*2)>Rn?(B*=M?1:-1,C+=B,R-=B):($=0,C=R=(x+S)/2)}var G=y*io(C),F=y*ya(C),ee=g*io(N),he=g*ya(N);if(_>Rn){var z=y*io(R),Z=y*ya(R),re=g*io(L),ue=g*ya(L),me;if(A<Zd)if(me=aX(G,F,re,ue,z,Z,ee,he)){var ve=G-me[0],Ce=F-me[1],Oe=z-me[0],fe=Z-me[1],ke=1/ya(Xq((ve*Oe+Ce*fe)/(dc(ve*ve+Ce*Ce)*dc(Oe*Oe+fe*fe)))/2),Re=dc(me[0]*me[0]+me[1]*me[1]);P=Hb(_,(g-Re)/(ke-1)),U=Hb(_,(y-Re)/(ke+1))}else P=U=0}$>Rn?U>Rn?(W=xm(re,ue,G,F,y,U,M),q=xm(z,Z,ee,he,y,U,M),c.moveTo(W.cx+W.x01,W.cy+W.y01),U<_?c.arc(W.cx,W.cy,U,kn(W.y01,W.x01),kn(q.y01,q.x01),!M):(c.arc(W.cx,W.cy,U,kn(W.y01,W.x01),kn(W.y11,W.x11),!M),c.arc(0,0,y,kn(W.cy+W.y11,W.cx+W.x11),kn(q.cy+q.y11,q.cx+q.x11),!M),c.arc(q.cx,q.cy,U,kn(q.y11,q.x11),kn(q.y01,q.x01),!M))):(c.moveTo(G,F),c.arc(0,0,y,C,R,!M)):c.moveTo(G,F),!(g>Rn)||!(O>Rn)?c.lineTo(ee,he):P>Rn?(W=xm(ee,he,z,Z,g,-P,M),q=xm(G,F,re,ue,g,-P,M),c.lineTo(W.cx+W.x01,W.cy+W.y01),P<_?c.arc(W.cx,W.cy,P,kn(W.y01,W.x01),kn(q.y01,q.x01),!M):(c.arc(W.cx,W.cy,P,kn(W.y01,W.x01),kn(W.y11,W.x11),!M),c.arc(0,0,g,kn(W.cy+W.y11,W.cx+W.x11),kn(q.cy+q.y11,q.cx+q.x11),M),c.arc(q.cx,q.cy,P,kn(q.y11,q.x11),kn(q.y01,q.x01),!M))):c.arc(0,0,g,N,L,M)}if(c.closePath(),m)return c=null,m+""||null}return f.centroid=function(){var m=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,p=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-Zd/2;return[io(p)*m,ya(p)*m]},f.innerRadius=function(m){return arguments.length?(e=typeof m=="function"?m:gt(+m),f):e},f.outerRadius=function(m){return arguments.length?(t=typeof m=="function"?m:gt(+m),f):t},f.cornerRadius=function(m){return arguments.length?(n=typeof m=="function"?m:gt(+m),f):n},f.padRadius=function(m){return arguments.length?(r=m==null?null:typeof m=="function"?m:gt(+m),f):r},f.startAngle=function(m){return arguments.length?(a=typeof m=="function"?m:gt(+m),f):a},f.endAngle=function(m){return arguments.length?(i=typeof m=="function"?m:gt(+m),f):i},f.padAngle=function(m){return arguments.length?(o=typeof m=="function"?m:gt(+m),f):o},f.context=function(m){return arguments.length?(c=m??null,f):c},f}function qD(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function XD(e){this._context=e}XD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function lw(e){return new XD(e)}function KD(e){return e[0]}function QD(e){return e[1]}function cw(e,t){var n=gt(!0),r=null,a=lw,i=null,o=ow(c);e=typeof e=="function"?e:e===void 0?KD:gt(e),t=typeof t=="function"?t:t===void 0?QD:gt(t);function c(u){var f,m=(u=qD(u)).length,p,g=!1,y;for(r==null&&(i=a(y=o())),f=0;f<=m;++f)!(f<m&&n(p=u[f],f,u))===g&&((g=!g)?i.lineStart():i.lineEnd()),g&&i.point(+e(p,f,u),+t(p,f,u));if(y)return i=null,y+""||null}return c.x=function(u){return arguments.length?(e=typeof u=="function"?u:gt(+u),c):e},c.y=function(u){return arguments.length?(t=typeof u=="function"?u:gt(+u),c):t},c.defined=function(u){return arguments.length?(n=typeof u=="function"?u:gt(!!u),c):n},c.curve=function(u){return arguments.length?(a=u,r!=null&&(i=a(r)),c):a},c.context=function(u){return arguments.length?(u==null?r=i=null:i=a(r=u),c):r},c}function ZD(e,t,n){var r=null,a=gt(!0),i=null,o=lw,c=null,u=ow(f);e=typeof e=="function"?e:e===void 0?KD:gt(+e),t=typeof t=="function"?t:gt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?QD:gt(+n);function f(p){var g,y,x,S=(p=qD(p)).length,A,M=!1,C,R=new Array(S),L=new Array(S);for(i==null&&(c=o(C=u())),g=0;g<=S;++g){if(!(g<S&&a(A=p[g],g,p))===M)if(M=!M)y=g,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),x=g-1;x>=y;
49--x)c.point(R[x],L[x]);c.lineEnd(),c.areaEnd()}M&&(R[g]=+e(A,g,p),L[g]=+t(A,g,p),c.point(r?+r(A,g,p):R[g],n?+n(A,g,p):L[g]))}if(C)return c=null,C+""||null}function m(){return cw().defined(a).curve(o).context(i)}return f.x=function(p){return arguments.length?(e=typeof p=="function"?p:gt(+p),r=null,f):e},f.x0=function(p){return arguments.length?(e=typeof p=="function"?p:gt(+p),f):e},f.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:gt(+p),f):r},f.y=function(p){return arguments.length?(t=typeof p=="function"?p:gt(+p),n=null,f):t},f.y0=function(p){return arguments.length?(t=typeof p=="function"?p:gt(+p),f):t},f.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:gt(+p),f):n},f.lineX0=f.lineY0=function(){return m().x(e).y(t)},f.lineY1=function(){return m().x(e).y(n)},f.lineX1=function(){return m().x(r).y(t)},f.defined=function(p){return arguments.length?(a=typeof p=="function"?p:gt(!!p),f):a},f.curve=function(p){return arguments.length?(o=p,i!=null&&(c=o(i)),f):o},f.context=function(p){return arguments.length?(p==null?i=c=null:c=o(i=p),f):i},f}function zE(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function uw(e,t){this._context=e,this._k=(1-t)/6}uw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:zE(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:zE(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(r){return new uw(r,t)}return n.tension=function(r){return e(+r)},n})(0);function sX(e,t,n){var r=e._x1,a=e._y1,i=e._x2,o=e._y2;if(e._l01_a>Rn){var c=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*c-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,a=(a*c-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Rn){var f=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,m=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*f+e._x1*e._l23_2a-t*e._l12_2a)/m,o=(o*f+e._y1*e._l23_2a-n*e._l12_2a)/m}e._context.bezierCurveTo(r,a,i,o,e._x2,e._y2)}function JD(e,t){this._context=e,this._alpha=t}JD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:sX(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const oX=(function e(t){function n(r){return t?new JD(r,t):new uw(r,0)}return n.alpha=function(r){return e(+r)},n})(.5),Ei=11102230246251565e-32,En=134217729,lX=(3+8*Ei)*Ei;function Ub(e,t,n,r,a){let i,o,c,u,f=t[0],m=r[0],p=0,g=0;m>f==m>-f?(i=f,f=t[++p]):(i=m,m=r[++g]);let y=0;if(p<e&&g<n)for(m>f==m>-f?(o=f+i,c=i-(o-f),f=t[++p]):(o=m+i,c=i-(o-m),m=r[++g]),i=o,c!==0&&(a[y++]=c);p<e&&g<n;)m>f==m>-f?(o=i+f,u=o-i,c=i-(o-u)+(f-u),f=t[++p]):(o=i+m,u=o-i,c=i-(o-u)+(m-u),m=r[++g]),i=o,c!==0&&(a[y++]=c);for(;p<e;)o=i+f,u=o-i,c=i-(o-u)+(f-u),f=t[++p],i=o,c!==0&&(a[y++]=c);for(;g<n;)o=i+m,u=o-i,c=i-(o-u)+(m-u),m=r[++g],i=o,c!==0&&(a[y++]=c);return(i!==0||y===0)&&(a[y++]=i),y}function cX(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function Sf(e){return new Float64Array(e)}const uX=(3+16*Ei)*Ei,dX=(2+12*Ei)*Ei,fX=(9+64*Ei)*Ei*Ei,Ql=Sf(4),VE=Sf(8),PE=Sf(12),$E=Sf(16),In=Sf(4);function hX(e,t,n,r,a,i,o){let c,u,f,m,p,g,y,x,S,A,M,C,R,L,N,O,$,T;const j=e-a,_=n-a,P=t-i,U=r-i;L=j*U,g=En*j,y=g-(g-j),x=j-y,g=En*U,S=g-(g-U),A=U-S,N=x*A-(L-y*S-x*S-y*A),O=P*_,g=En*P,y=g-(g-P),x=P-y,g=En*_,S=g-(g-_),A=_-S,$=x*A-(O-y*S-x*S-y*A),M=N-$,p=N-M,Ql[0]=N-(M+
vendor: 14,993 bytes, line 49
49p)+(p-$),C=L+M,p=C-L,R=L-(C-p)+(M-p),M=R-O,p=R-M,Ql[1]=R-(M+p)+(p-O),T=C+M,p=T-C,Ql[2]=C-(T-p)+(M-p),Ql[3]=T;let W=cX(4,Ql),q=dX*o;if(W>=q||-W>=q||(p=e-j,c=e-(j+p)+(p-a),p=n-_,f=n-(_+p)+(p-a),p=t-P,u=t-(P+p)+(p-i),p=r-U,m=r-(U+p)+(p-i),c===0&&u===0&&f===0&&m===0)||(q=fX*o+lX*Math.abs(W),W+=j*m+U*c-(P*f+_*u),W>=q||-W>=q))return W;L=c*U,g=En*c,y=g-(g-c),x=c-y,g=En*U,S=g-(g-U),A=U-S,N=x*A-(L-y*S-x*S-y*A),O=u*_,g=En*u,y=g-(g-u),x=u-y,g=En*_,S=g-(g-_),A=_-S,$=x*A-(O-y*S-x*S-y*A),M=N-$,p=N-M,In[0]=N-(M+p)+(p-$),C=L+M,p=C-L,R=L-(C-p)+(M-p),M=R-O,p=R-M,In[1]=R-(M+p)+(p-O),T=C+M,p=T-C,In[2]=C-(T-p)+(M-p),In[3]=T;const ne=Ub(4,Ql,4,In,VE);L=j*m,g=En*j,y=g-(g-j),x=j-y,g=En*m,S=g-(g-m),A=m-S,N=x*A-(L-y*S-x*S-y*A),O=P*f,g=En*P,y=g-(g-P),x=P-y,g=En*f,S=g-(g-f),A=f-S,$=x*A-(O-y*S-x*S-y*A),M=N-$,p=N-M,In[0]=N-(M+p)+(p-$),C=L+M,p=C-L,R=L-(C-p)+(M-p),M=R-O,p=R-M,In[1]=R-(M+p)+(p-O),T=C+M,p=T-C,In[2]=C-(T-p)+(M-p),In[3]=T;const B=Ub(ne,VE,4,In,PE);L=c*m,g=En*c,y=g-(g-c),x=c-y,g=En*m,S=g-(g-m),A=m-S,N=x*A-(L-y*S-x*S-y*A),O=u*f,g=En*u,y=g-(g-u),x=u-y,g=En*f,S=g-(g-f),A=f-S,$=x*A-(O-y*S-x*S-y*A),M=N-$,p=N-M,In[0]=N-(M+p)+(p-$),C=L+M,p=C-L,R=L-(C-p)+(M-p),M=R-O,p=R-M,In[1]=R-(M+p)+(p-O),T=C+M,p=T-C,In[2]=C-(T-p)+(M-p),In[3]=T;const G=Ub(B,PE,4,In,$E);return $E[G-1]}function wm(e,t,n,r,a,i){const o=(t-i)*(n-a),c=(e-a)*(r-i),u=o-c,f=Math.abs(o+c);return Math.abs(u)>=uX*f?u:-hX(e,t,n,r,a,i,f)}const FE=Math.pow(2,-52),Sm=new Uint32Array(512);class Ep{static from(t,n=bX,r=vX){const a=t.length,i=new Float64Array(a*2);for(let o=0;o<a;o++){const c=t[o];i[2*o]=n(c),i[2*o+1]=r(c)}return new Ep(i)}constructor(t){const n=t.length>>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.trianglesLen=0,this._cx=0,this._cy=0,this._hullStart=0,this.hull=this._triangles,this.triangles=this._triangles,this.halfedges=this._halfedges,this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:a,_hullHash:i}=this,o=t.length>>1;let c=1/0,u=1/0,f=-1/0,m=-1/0;for(let j=0;j<o;j++){const _=t[2*j],P=t[2*j+1];_<c&&(c=_),P<u&&(u=P),_>f&&(f=_),P>m&&(m=P),this._ids[j]=j}const p=(c+f)/2,g=(u+m)/2;let y=0,x=0,S=0;for(let j=0,_=1/0;j<o;j++){const P=Gb(p,g,t[2*j],t[2*j+1]);P<_&&(y=j,_=P)}const A=t[2*y],M=t[2*y+1];for(let j=0,_=1/0;j<o;j++){if(j===y)continue;const P=Gb(A,M,t[2*j],t[2*j+1]);P<_&&P>0&&(x=j,_=P)}let C=t[2*x],R=t[2*x+1],L=1/0;for(let j=0;j<o;j++){if(j===y||j===x)continue;const _=gX(A,M,C,R,t[2*j],t[2*j+1]);_<L&&(S=j,L=_)}let N=t[2*S],O=t[2*S+1];if(L===1/0){for(let P=0;P<o;P++)this._dists[P]=t[2*P]-t[0]||t[2*P+1]-t[1];fc(this._ids,this._dists,0,o-1);const j=new Uint32Array(o);let _=0;for(let P=0,U=-1/0;P<o;P++){const W=this._ids[P],q=this._dists[W];q>U&&(j[_++]=W,U=q)}this.hull=j.subarray(0,_),this.triangles=new Uint32Array(0),this.halfedges=new Int32Array(0);return}if(wm(A,M,C,R,N,O)<0){const j=x,_=C,P=R;x=S,C=N,R=O,S=j,N=_,O=P}const $=yX(A,M,C,R,N,O);this._cx=$.x,this._cy=$.y;for(let j=0;j<o;j++)this._dists[j]=Gb(t[2*j],t[2*j+1],$.x,$.y);fc(this._ids,this._dists,0,o-1),this._hullStart=y;let T=3;r[y]=n[S]=x,r[x]=n[y]=S,r[S]=n[x]=y,a[y]=0,a[x]=1,a[S]=2,i.fill(-1),i[this._hashKey(A,M)]=y,i[this._hashKey(C,R)]=x,i[this._hashKey(N,O)]=S,this.trianglesLen=0,this._addTriangle(y,x,S,-1,-1,-1);for(let j=0,_=0,P=0;j<this._ids.length;j++){const U=this._ids[j],W=t[2*U],q=t[2*U+1];if(j>0&&Math.abs(W-_)<=FE&&Math.abs(q-P)<=FE||(_=W,P=q,U===y||U===x||U===S))continue;let ne=0;for(let he=0,z=this._hashKey(W,q);he<this._hashSize&&(ne=i[(z+he)%this._hashSize],!(ne!==-1&&ne!==r[ne]));he++);ne=n[ne];let B=ne,G;for(;G=r[B],wm(W,q,t[2*B],t[2*B+1],t[2*G],t[2*G+1])>=0;)if(B=G,B===ne){B=-1;break}if(B===-1)continue;let F=this._addTriangle(B,U,r[B],-1,-1,a[B]);a[U]=this._legalize(F+2),a[B]=F,T++;let ee=r[B];for(;G=r[ee],wm(W,q,t[2*ee],t[2*ee+1],t[2*G],t[2*G+1])<0;)F=this._addTriangle(ee,U,G,a[U],-1,a[ee]),a[U]=this._legalize(F+2),r[ee]=ee,T--,ee=G;if(B===ne)for(;G=n[B],wm(W,q,t[2*G],t[2*G+1],t[2*B],t[2*B+1])<0;)F=this._addTriangle(G,U,B,-1,a[B],a[G]),this._legalize(F+2),a[G]=F,r[B]=B,T--,B=G;this._hullStart=n[U]=B,r[B]=n[ee]=U,r[U]=ee,i[this._hashKey(W,q)]=U,i[this._hashKey(t[2*B],t[2*B+1])]=B}this.hull=new Uint32Array(T);for(let j=0,_=this._hullStart;j<T;j++)this.hull[j]=_,_=r[_];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(mX(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:r,coords:a}=this;let i=0,o=0;for(;;){const c=r[t],u=t-t%3;if(o=u+(t+2)%3,c===-1){if(i===0)break;t=Sm[--i];continue}const f=c-c%3,m=u+(t+1)%3,p=f+(c+2)%3,g=n[o],y=n[t],x=n[m],S=n[p];if(pX(a[2*g],a[2*g+1],a[2*y],a[2*y+1],a[2*x],a[2*x+1],a[2*S],a[2*S+1])){n[t]=S,n[c]=g;const M=r[p];if(M===-1){let R=this._hullStart;do{if(this._hullTri[R]===p){this._hullTri[R]=t;break}R=this._hullPrev[R]}while(R!==this._hullStart)}this._link(t,M),this._link(c,r[o]),this._link(o,p);const C=f+(c+1)%3;i<Sm.length&&(Sm[i++]=C)}else{if(i===0)break;t=Sm[--i]}}return o}_link(t,n){this._halfedges[t]=n,n!==-1&&(this._halfedges[n]=t)}_addTriangle(t,n,r,a,i,o){const c=this.trianglesLen;return this._triangles[c]=t,this._triangles[c+1]=n,this._triangles[c+2]=r,this._link(c,a),this._link(c+1,i),this._link(c+2,o),this.trianglesLen+=3,c}}function mX(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function Gb(e,t,n,r){const a=e-n,i=t-r;return a*a+i*i}function pX(e,t,n,r,a,i,o,c){const u=e-o,f=t-c,m=n-o,p=r-c,g=a-o,y=i-c,x=u*u+f*f,S=m*m+p*p,A=g*g+y*y;return u*(p*A-S*y)-f*(m*A-S*g)+x*(m*y-p*g)<0}function gX(e,t,n,r,a,i){const o=n-e,c=r-t,u=a-e,f=i-t,m=o*o+c*c,p=u*u+f*f,g=.5/(o*f-c*u),y=(f*m-c*p)*g,x=(o*p-u*m)*g;return y*y+x*x}function yX(e,t,n,r,a,i){const o=n-e,c=r-t,u=a-e,f=i-t,m=o*o+c*c,p=u*u+f*f,g=.5/(o*f-c*u),y=e+(f*m-c*p)*g,x=t+(o*p-u*m)*g;return{x:y,y:x}}function fc(e,t,n,r){if(r-n<=20)for(let a=n+1;a<=r;a++){const i=e[a],o=t[i];let c=a-1;for(;c>=n&&t[e[c]]>o;)e[c+1]=e[c--];e[c+1]=i}else{const a=n+r>>1;let i=n+1,o=r;dd(e,a,i),t[e[n]]>t[e[r]]&&dd(e,n,r),t[e[i]]>t[e[r]]&&dd(e,i,r),t[e[n]]>t[e[i]]&&dd(e,n,i);const c=e[i],u=t[c];for(;;){do i++;while(t[e[i]]<u);do o--;while(t[e[o]]>u);if(o<i)break;dd(e,i,o)}e[n+1]=e[o],e[o]=c,r-i+1>=o-n?(fc(e,t,i,r),fc(e,t,n,o-1)):(fc(e,t,n,o-1),fc(e,t,i,r))}}function dd(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function bX(e){return e[0]}function vX(e){return e[1]}const HE=1e-6;class vo{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const a=t+r,i=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${a},${i}`:(Math.abs(this._x1-a)>HE||Math.abs(this._y1-i)>HE)&&(this._+="L"+a+","+i),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=a},${this._y1=i}`)}rect(t,n,r,a){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+a}h${-r}Z`}value(){return this._||null}}class gx{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class xX{constructor(t,[n,r,a,i]=[0,0,960,500]){if(!((a=+a)>=(n=+n))||!((i=+i)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=a,this.xmin=n,this.ymax=i,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:a}=this;let i,o;const c=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let S=0,A=0,M=r.length,C,R;S<M;S+=3,A+=2){const L=r[S]*2,N=r[S+1]*2,O=r[S+2]*2,$=t[L],T=t[L+1],j=t[N],_=t[N+1],P=t[O],U=t[O+1],W=j-$,q=_-T,ne=P-$,B=U-T,G=(W*B-q*ne)*2;if(Math.abs(G)<1e-9){if(i===void 0){i=o=0;for(const ee of n)i+=t[ee*2],o+=t[ee*2+1];i/=n.length,o/=n.length}const F=1e9*Math.sign((i-$)*B-(o-T)*ne);C=($+P)/2-F*B,R=(T+U)/2+F*ne}else{const F=1/G,ee=W*W+q*q,he=ne*ne+B*B;C=$+(B*ee-q*he)*F,R=T+(W*he-ne*ee)*F}c[A]=C,c[A+1]=R}let u=n[n.length-1],f,m=u*4,p,g=t[2*u],y,x=t[2*u+1];a.fill(0);for(let S=0;S<n.length;++S)u=n[S],f=m,p=g,y=x,m=u*4,g=t[2*u],x=t[2*u+1],a[f+2]=a[m]=y-x,a[f+3]=a[m+1]=g-p}render(t){const n=t==null?t=new vo:void 0,{delaunay:{halfedges:r,inedges:a,hull:i},circumcenters:o,vectors:c}=this;if(i.length<=1)return null;for(let m=0,p=r.length;m<p;++m){const g=r[m];if(g<m)continue;const y=Math.floor(m/3)*2,x=Math.floor(g/3)*2,S=o[y],A=o[y+1],M=o[x],C=o[x+1];this._renderSegment(S,A,M,C,t)}let u,f=i[i.length-1];for(let m=0;m<i.length;++m){u=f,f=i[m];const p=Math.floor(a[f]/3)*2,g=o[p],y=o[p+1],x=u*4,S=this._project(g,y,c[x+2],c[x+3]);S&&this._renderSegment(g,y,S[0],S[1],t)}return n&&n.value()}renderBounds(t){const n=t==null?t=new vo:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(t,n){const r=n==null?n=new vo:void 0,a=this._clip(t);if(a===null||!a.length)return;n.moveTo(a[0],a[1]);let i=a.length;for(;a[0]===a[i-2]&&a[1]===a[i-1]&&i>1;)i-=2;for(let o=2;o<i;o+=2)(a[o]!==a[o-2]||a[o+1]!==a[o-1])&&n.lineTo(a[o],a[o+1]);return n.closePath(),r&&r.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,r=t.length/2;n<r;++n){const a=this.cellPolygon(n);a&&(a.index=n,yield a)}}cellPolygon(t){const n=new gx;return this.renderCell(t,n),n.value()}_renderSegment(t,n,r,a,i){let o;const c=this._regioncode(t,n),u=this._regioncode(r,a);c===0&&u===0?(i.moveTo(t,n),i.lineTo(r,a)):(o=this._clipSegment(t,n,r,a,c,u))&&(i.moveTo(o[0],o[1]),i.lineTo(o[2],o[3]))}contains(t,n,r){return n=+n,n!==n||(r=+r,r!==r)?!1:this.delaunay._step(t,n,r)===t}*neighbors(t){const n=this._clip(t);if(n)for(const r of this.delaunay.neighbors(t)){const a=this._clip(r);if(a){e:for(let i=0,o=n.length;i<o;i+=2)for(let c=0,u=a.length;c<u;c+=2)if(n[i]===a[c]&&n[i+1]===a[c+1]&&n[(i+2)%o]===a[(c+u-2)%u]&&n[(i+3)%o]===a[(c+u-1)%u]){yield r;break e}}}}_cell(t){const{circumcenters:n,delaunay:{inedges:r,halfedges:a,triangles:i}}=this,o=r[t];if(o===-1)return null;const c=[];let u=o;do{const f=Math.floor(u/3);if(c.push(n[f*2],n[f*2+1]),u=u%3===2?u-2:u+1,i[u]!==t)break;u=a[u]}while(u!==o&&u!==-1);return c}_clip(t){if(t===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const n=this._cell(t);if(n===null)return null;const{vectors:r}=this,a=t*4;return this._simplify(r[a]||r[a+1]?this._clipInfinite(t,n,r[a],r[a+1],r[a+2],r[a+3]):this._clipFinite(t,n))}_clipFinite(t,n){const r=n.length;let a=null,i,o,c=n[r-2],u=n[r-1],f,m=this._regioncode(c,u),p,g=0;for(let y=0;y<r;y+=2)if(i=c,o=u,c=n[y],u=n[y+1],f=m,m=this._regioncode(c,u),f===0&&m===0)p=g,g=0,a?a.push(c,u):a=[c,u];else{let x,S,A,M,C;if(f===0){if((x=this._clipSegment(i,o,c,u,f,m))===null)continue;[S,A,M,C]=x}else{if((x=this._clipSegment(c,u,i,o,m,f))===null)continue;[M,C,S,A]=x,p=g,g=this._edgecode(S,A),p&&g&&this._edge(t,p,g,a,a.length),a?a.push(S,A):a=[S,A]}p=g,g=this._edgecode(M,C),p&&g&&this._edge(t,p,g,a,a.length),a?a.push(M,C):a=[M,C]}if(a)p=g,g=this._edgecode(a[0],a[1]),p&&g&&this._edge(t,p,g,a,a.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return a}_clipSegment(t,n,r,a,i,o){const c=i<o;for(c&&([t,n,r,a,i,o]=[r,a,t,n,o,i]);;){if(i===0&&o===0)return c?[r,a,t,n]:[t,n,r,a];if(i&o)return null;let u,f,m=i||o;m&8?(u=t+(r-t)*(this.ymax-n)/(a-n),f=this.ymax):m&4?(u=t+(r-t)*(this.ymin-n)/(a-n),f=this.ymin):m&2?(f=n+(a-n)*(this.xmax-t)/(r-t),u=this.xmax):(f=n+(a-n)*(this.xmin-t)/(r-t),u=this.xmin),i?(t=u,n=f,i=this._regioncode(t,n)):(r=u,a=f,o=this._regioncode(r,a))}}_clipInfinite(t,n,r,a,i,o){let c=Array.from(n),u;if((u=this._project(c[0],c[1],r,a))&&c.unshift(u[0],u[1]),(u=this._project(c[c.length-2],c[c.length-1],i,o))&&c.push(u[0],u[1]),c=this._clipFinite(t,c))for(let f=0,m=c.length,p,g=this._edgecode(c[m-2],c[m-1]);f<m;f+=2)p=g,g=this._edgecode(c[f],c[f+1]),p&&g&&(f=this._edge(t,p,g,c,f),m=c.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(c=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return c}_edge(t,n,r,a,i){for(;n!==r;){let o,c;switch(n){case 5:n=4;continue;case 4:n=6,o=this.xmax,c=this.ymin;break;case 6:n=2;continue;case 2:n=10,o=this.xmax,c=this.ymax;break;case 10:n=8;continue;case 8:n=9,o=this.xmin,c=this.ymax;break;case 9:n=1;continue;case 1:n=5,o=this.xmin,c=this.ymin;break}(a[i]!==o||a[i+1]!==c)&&this.contains(t,o,c)&&(a.splice(i,0,o,c),i+=2)}return i}_project(t,n,r,a){let i=1/0,o,c,u;if(a<0){if(n<=this.ymin)return null;(o=(this.ymin-n)/a)<i&&(u=this.ymin,c=t+(i=o)*r)}else if(a>0){if(n>=this.ymax)return null;(o=(this.ymax-n)/a)<i&&(u=this.ymax,c=t+(i=o)*r)}if(r>0){if(t>=this.xmax)return null;(o=(this.xmax-t)/r)<i&&(c=this.xmax,u=n+(i=o)*a)}else if(r<0){if(t<=this.xmin)return null;(o=(this.xmin-t)/r)<i&&(c=this.xmin,u=n+(i=o)*a)}return[c,u]}_edgecode(t,n){return(t===this.xmin?1:t===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(t,n){return(t<this.xmin?1:t>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let n=0;n<t.length;n+=2){const r=(n+2)%t.length,a=(n+4)%t.length;(t[n]===t[r]&&t[r]===t[a]||t[n+1]===t[r+1]&&t[r+1]===t[a+1])&&(t.splice(r,2),n-=2)}t.length||(t=null)}return t}}const wX=2*Math.PI,Zl=Math.pow;function SX(e){return e[0]}function AX(e){return e[1]}function MX(e){const{triangles:t,coords:n}=e;for(let r=0;r<t.length;r+=3){const a=2*t[r],i=2*t[r+1],o=2*t[r+2];if((n[o]-n[a])*(n[i+1]-n[a+1])-(n[i]-n[a])*(n[o+1]-n[a+1])>1e-10)return!1}return!0}function TX(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class dw{static from(t,n=SX,r=AX,a){return new dw("length"in t?kX(t,n,r,a):Float64Array.from(EX(t,n,r,a)))}constructor(t){this._delaunator=new Ep(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&MX(t)){this.collinear=Int32Array.from({length:n.length/2},(g,y)=>y).sort((g,y)=>n[2*g]-n[2*y]||n[2*g+1]-n[2*y+1]);const u=this.collinear[0],f=this.collinear[this.collinear.length-1],m=[n[2*u],n[2*u+1],n[2*f],n[2*f+1]],p=1e-8*Math.hypot(m[3]-m[1],m[2]-m[0]);for(let g=0,y=n.length/2;g<y;++g){const x=TX(n[2*g],n[2*g+1],p);
49n[2*g]=x[0],n[2*g+1]=x[1]}this._delaunator=new Ep(n)}else delete this.collinear;const r=this.halfedges=this._delaunator.halfedges,a=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),c=this._hullIndex.fill(-1);for(let u=0,f=r.length;u<f;++u){const m=i[u%3===2?u-2:u+1];(r[u]===-1||o[m]===-1)&&(o[m]=u)}for(let u=0,f=a.length;u<f;++u)c[a[u]]=u;a.length<=2&&a.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=a[0],o[a[0]]=1,a.length===2&&(o[a[1]]=0,this.triangles[1]=a[1],this.triangles[2]=a[1]))}voronoi(t){return new xX(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:a,halfedges:i,triangles:o,collinear:c}=this;if(c){const p=c.indexOf(t);p>0&&(yield c[p-1]),p<c.length-1&&(yield c[p+1]);return}const u=n[t];if(u===-1)return;let f=u,m=-1;do{if(yield m=o[f],f=f%3===2?f-2:f+1,o[f]!==t)return;if(f=i[f],f===-1){const p=r[(a[t]+1)%r.length];p!==m&&(yield p);return}}while(f!==u)}find(t,n,r=0){if(t=+t,t!==t||(n=+n,n!==n))return-1;const a=r;let i;for(;(i=this._step(r,t,n))>=0&&i!==r&&i!==a;)r=i;return i}_step(t,n,r){const{inedges:a,hull:i,_hullIndex:o,halfedges:c,triangles:u,points:f}=this;if(a[t]===-1||!f.length)return(t+1)%(f.length>>1);let m=t,p=Zl(n-f[t*2],2)+Zl(r-f[t*2+1],2);const g=a[t];let y=g;do{let x=u[y];const S=Zl(n-f[x*2],2)+Zl(r-f[x*2+1],2);if(S<p&&(p=S,m=x),y=y%3===2?y-2:y+1,u[y]!==t)break;if(y=c[y],y===-1){if(y=i[(o[t]+1)%i.length],y!==x&&Zl(n-f[y*2],2)+Zl(r-f[y*2+1],2)<p)return y;break}}while(y!==g);return m}render(t){const n=t==null?t=new vo:void 0,{points:r,halfedges:a,triangles:i}=this;for(let o=0,c=a.length;o<c;++o){const u=a[o];if(u<o)continue;const f=i[o]*2,m=i[u]*2;t.moveTo(r[f],r[f+1]),t.lineTo(r[m],r[m+1])}return this.renderHull(t),n&&n.value()}renderPoints(t,n){n===void 0&&(!t||typeof t.moveTo!="function")&&(n=t,t=null),n=n==null?2:+n;const r=t==null?t=new vo:void 0,{points:a}=this;for(let i=0,o=a.length;i<o;i+=2){const c=a[i],u=a[i+1];t.moveTo(c+n,u),t.arc(c,u,n,0,wX)}return r&&r.value()}renderHull(t){const n=t==null?t=new vo:void 0,{hull:r,points:a}=this,i=r[0]*2,o=r.length;t.moveTo(a[i],a[i+1]);for(let c=1;c<o;++c){const u=2*r[c];t.lineTo(a[u],a[u+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new gx;return this.renderHull(t),t.value()}renderTriangle(t,n){const r=n==null?n=new vo:void 0,{points:a,triangles:i}=this,o=i[t*=3]*2,c=i[t+1]*2,u=i[t+2]*2;return n.moveTo(a[o],a[o+1]),n.lineTo(a[c],a[c+1]),n.lineTo(a[u],a[u+1]),n.closePath(),r&&r.value()}*trianglePolygons(){const{triangles:t}=this;for(let n=0,r=t.length/3;n<r;++n)yield this.trianglePolygon(n)}trianglePolygon(t){const n=new gx;return this.renderTriangle(t,n),n.value()}}function kX(e,t,n,r){const a=e.length,i=new Float64Array(a*2);for(let o=0;o<a;++o){const c=e[o];i[o*2]=t.call(r,c,o,e),i[o*2+1]=n.call(r,c,o,e)}return i}function*EX(e,t,n,r){let a=0;for(const i of e)yield t.call(r,i,a,e),yield n.call(r,i,a,e),++a}typeof window<"u"&&(window.__GRAPHY_SDK__??(window.__GRAPHY_SDK__={}),window.__GRAPHY_SDK__.vizEngine="1.8.1-beta.1787584545684");var CX=1e6;function Ra(e){return String(Math.round(e*CX))}var UE="#FFFFFF",Yb="#1A1A1A",eN=e=>{try{return ix(e,UE)>ix(e,Yb)?UE:Yb}catch{return Yb}},RX=(e,t)=>{try{if(e===void 0){const[,,,r]=Ao(t);return r>=1?t:void 0}const[,,,n]=Ao(e);return n>=1?e:Ao(t)[3]<1?void 0:fG(t,mG(e,1),n)}catch{return}},GE=0;function Fn(){return GE+=1,`${Math.random().toString(36).slice(2,6)}${GE.toString(36)}`}function it(e){return e[oe.x]}function et(e){return e[oe.y]}function Fr(e){return e[oe.xMin]}function Mr(e){return e[oe.xMax]}function Pn(e){return e[oe.yMin]}function hn(e){return e[oe.yMax]}function tN(e){return e[oe.yRaw]}var LX={xMin:0,xMax:1,yMin:0,yMax:1},yx=(e,t)=>{if(t.type==="polar")return null;const n=Fr(e)??it(e),r=Mr(e)??it(e),a=Pn(e)??et(e),i=hn(e)??et(e);return n===null||r===null||a===null||i===null?null:{xMin:n,xMax:r,yMin:a,yMax:i}},Af=(e,t)=>{const n=(e.xMin+e.xMax)/2,r=(e.yMin+e.yMax)/2;switch(t){case"top":return{x:n,y:e.yMax};case"bottom":return{x:n,y:e.yMin};case"left":return{x:e.xMin,y:r};case"right":return{x:e.xMax,y:r};case"top-left":return{x:e.xMin,y:e.yMax};case"top-right":return{x:e.xMax,y:e.yMax};case"bottom-left":return{x:e.xMin,y:e.yMin};case"bottom-right":return{x:e.xMax,y:e.yMin};default:return{x:n,y:r}}},fw=e=>Af(LX,e),DX=["stack","dodge","identity","fill"],nN=["solid","dashed","dotted"],NX=e=>nN.includes(e);function rr(e){return e==="stack"||e==="fill"}var Zo=(e,t)=>{const n=Sr(t);if(n!==void 0)return()=>n;const r=pe(t);return de(r)?a=>{const i=a[r];if(i===void 0)return null;switch(e.getType(r)){case"numeric":return Et(i)?i:null;case"categorical":return lg(i)?i:null;case"temporal":return Ar(i)?i:null;default:return null}}:()=>null},xg=(e,t)=>
49Zo(e,t.x),rN=(e,t)=>Zo(e,t.y),jX=(e,t)=>Zo(e,t.color),YE={variable:oe.yRaw};function hw(e,t){return rr(e)?YE:t.y??YE}function Mf(e){return Zo(e.data,hw(e.position,e.mapping))}var mw=e=>{const t=pe(e.mapping.x);return t!==null&&t!==jc.x?t:pt.group},aN=e=>OX(e)?pe(e.mapping.y):null,iN=e=>aN(e)===null?null:Mf(e),sN=e=>e.spatialKind!=="cells",OX=e=>e.spatialKind==="points"||e.spatialKind==="cells",bx=(e,t)=>e.yScaleType===t.yScaleType&&vx(e.valueFormat)===vx(t.valueFormat),WE=e=>`${e.yScaleType} y axis, ${vx(e.valueFormat)}`,vx=e=>e.type==="currency"?`${e.type}:${e.iso}`:e.type,qm=(e,t,n)=>{const r=U1(e,t,n);return r!==null||!qc(t)?r:q3(e)},_X=(e,t)=>{const n=Cd(e.data.getValueFormat(mw(e))),r=aN(e);return a=>({...a,anchorValue:qm(a.anchorValue,n,t),...a.groupValue!==void 0&&{groupValue:qm(a.groupValue,Cd(e.data.getValueFormat(pt.group)),t)},...a.crossValue!==void 0&&r!==null&&{crossValue:qm(a.crossValue,Cd(e.data.getValueFormat(r)),t)}})};function xx(e){return e instanceof $1?{severity:"error",kind:e.kind,code:e.code,message:e.message,...e.context!==void 0?{context:e.context}:{},...e.suggestion!==void 0?{suggestion:e.suggestion}:{}}:{severity:"error",kind:"internal",code:"INTERNAL_INVARIANT",message:e instanceof Error?e.message:String(e)}}function qt(e,t){return lN(e,t)}function Mt(e,t){for(const n of Object.keys(t)){const r=t[n];if(r!==void 0&&r!==e[n])return{...e,...t}}return e}function oN(e,t,n){if(e[t]===n)return e;const r=[...e];return r[t]=n,r}function Jc(e,t){let n=null;for(const[r,a]of e.entries()){const i=t(a,r);if(i===a){n==null||n.push(i);continue}n??(n=e.slice(0,r)),n.push(i)}return n??e}function lN(e,t){let n=!1;const r={...e};for(const[a,i]of Object.entries(t)){const o=e[a];if(Ro(i)&&Ro(o)){const c=lN(o,i);c!==o&&(r[a]=c,n=!0)}else i!==void 0&&i!==o&&(r[a]=i,n=!0)}return n?r:e}function wg(e){return{pipe:t=>{const n=t(e);return wg({...e,...n})},result:()=>e}}
49var IX=(e,t)=>{if(!F1(e))return e;const n=t[e.byVariable];return n===void 0?e.fallback:e.cases[yt(n)]??e.fallback};function Jd(e,t){return e==="x"?t.x:t.y}function pw(e,t){return e==="x"?t.y:t.x}function BX(e,t){return{main:Jd(e,t),cross:pw(e,t)}}function qE(e,t){return e==="x"?{x:t.main,y:t.cross}:{x:t.cross,y:t.main}}var Ua=e=>e[pt.group],zX=e=>{const t=mw(e),n=iN(e),r=sN(e)&&t!==pt.group;return a=>{const i=a[t]??null;if(i===null)return null;const o=n===null?null:n(a);if(n!==null&&o===null)return null;const c=r?Ua(a)??null:null;return{layerId:e.id,anchorValue:i,...o!==null&&{crossValue:o},...c!==null&&{groupValue:c}}}},Bc=(e,t)=>e>=0&&e<=1&&t>=0&&t<=1,VX={type:"decimal"};function cN(e){return e.length>0&&e.every(t=>t.data.size()===0)}function gw(e,t){return t!==null&&e.data.hasVariable(t)?e.data.getValueFormat(t):VX}function PX(e){return gw(e,pe(e.mapping.y))}function uN({geom:e,position:t,mapping:n,purpose:r}){var a;return((a=e.resolveValueSource)==null?void 0:a.call(e,n,r))??hw(t,n)}function dN(e,t){const n=uN({geom:t,position:e.position,mapping:e.mapping,purpose:"measurement"}),r=pe(n),a=r===oe.yRaw?pe(e.mapping.y):r;return{read:Zo(e.data,n),valueFormat:gw(e,a)}}var $X=e=>{const t=mw(e),n=iN(e),r=sN(e);return(a,i)=>!un(a[t]??null,i.anchorValue)||!(n===null||i.crossValue===void 0||un(n(a),i.crossValue))?!1:!r||i.groupValue===void 0?!0:un(Ua(a),i.groupValue)},FX=e=>{const t=pe(e.mapping.y),n=Mf(e);return(r,a)=>t!==null&&a===t?n(r):r[a]??null},HX=["lt","lte","gt","gte","range"],UX={highlight:{subject:"Highlight predicate",effect:"dropping this highlight"},"selection-anchor":{subject:"Selection anchor predicate",effect:"dropping this annotation"},"style-rule":{subject:"Style rule predicate",effect:"dropping this rule"}},Si=()=>!1,Jl=()=>!0;function yw(e,t){return{hasVariable:n=>e.data.hasVariable(n),getType:n=>e.data.getType(n),getValueFormat:n=>e.data.getValueFormat(n),readValue:FX(e),parsingLocale:t}}function Ac(e,t){if("and"in e){const n=e.and.map(r=>Ac(r,t)).filter(r=>r!==Jl);return n.includes(Si)?Si:n.length===0?Jl:r=>{for(const a of n)if(!a(r))return!1;return!0}}if("or"in e){const n=e.or.map(r=>Ac(r,t)).filter(r=>r!==Si);return n.includes(Jl)?Jl:n.length===0?Si:r=>{for(const a of n)if(a(r))return!0;return!1}}if("not"in e){const n=Ac(e.not,t);return n===Si?Jl:n===Jl?Si:r=>!n(r)}return YX(e,t)}function Mc(e,t,n="highlight"){return"and"in e?e.and.flatMap(r=>Mc(r,t,n)):"or"in e?e.or.flatMap(r=>Mc(r,t,n)):"not"in e?Mc(e.not,t,n):GX(e,t,n)}function GX(e,t,n){const{subject:r,effect:a}=UX[n];if(!t.hasVariable(e.variable))return[{code:"UNKNOWN_VARIABLE",message:`${r} references unknown variable '${e.variable}' â ${a}.`,context:{variableName:e.variable},suggestion:`Map '${e.variable}' in the layer or correct the variable name in the predicate.`}];const i=WX(e);
49return i!==null&&t.getType(e.variable)==="categorical"?[{code:"INVALID_PREDICATE_OPERATOR",message:`${r} uses ordering operator '${i}' on categorical variable '${e.variable}' â ${a}. Use 'eq' or 'oneOf' instead.`,context:{variableName:e.variable},suggestion:"Use 'eq' or 'oneOf' for categorical variables."}]:[]}function YX(e,t){if(!t.hasVariable(e.variable))return Si;const n=Cd(t.getValueFormat(e.variable)),r=a=>qm(a,n,t.parsingLocale);if("eq"in e){const a=r(e.eq);return i=>un(t.readValue(i,e.variable),a)}if("oneOf"in e){const a=e.oneOf.map(r);return i=>{const o=t.readValue(i,e.variable);for(const c of a)if(un(o,c))return!0;return!1}}if("lt"in e){const a=r(e.lt);return i=>ec(t.readValue(i,e.variable),a)==="less"}if("lte"in e){const a=r(e.lte);return i=>{const o=ec(t.readValue(i,e.variable),a);return o==="less"||o==="equal"}}if("gt"in e){const a=r(e.gt);return i=>ec(t.readValue(i,e.variable),a)==="greater"}if("gte"in e){const a=r(e.gte);return i=>{const o=ec(t.readValue(i,e.variable),a);return o==="greater"||o==="equal"}}if("range"in e){const[a,i]=e.range,o=r(a),c=r(i);return u=>{const f=t.readValue(u,e.variable),m=ec(f,o),p=ec(f,c);return m==="incomparable"||p==="incomparable"?!1:(m==="greater"||m==="equal")&&(p==="less"||p==="equal")}}return Si}function WX(e){for(const t of HX)if(t in e)return t;return null}function ec(e,t){if(e===null||t===null)return"incomparable";if(Ar(e)&&Ar(t)){const n=e.getTime(),r=t.getTime();return n<r?"less":n>r?"greater":"equal"}return Et(e)&&Et(t)?e<t?"less":e>t?"greater":"equal":"incomparable"}var qX=(e,t,n,r,a,i)=>{const o=hN(e,t,n.predicate,r,a,i);if(o===null)return null;const c=fN(n.padding),u=c===null?QX(o,n.padding):o,f={x:u.xMin,y:u.yMin,width:Math.max(0,u.xMax-u.xMin),height:Math.max(0,u.yMax-u.yMin)};return c===null?f:{...f,defer:c}},XX=(e,t,n,r,a,i)=>{const o=hN(e,t,n.predicate,r,a,i);return o===null?null:Af(o,n.align)},fN=e=>e===void 0||typeof e=="number"||e.unit!=="px"?null:{type:"px-offset",x:e.x??0,y:e.y??0},hN=(e,t,n,r,a,i)=>{if(t.has(n))return t.get(n)??null;let o=null,c=!1;const u=new Map;for(const f of r){const m=Mc(n,f.data,"selection-anchor");if(m.length>0){for(const y of m)u.set(`${y.code}:${y.message}`,y);continue}c=!0;const{resolveAnchorBox:p}=e.geomRegistry.get(f.geom);if(p===void 0)continue;const g=Ac(n,yw(f,i));if(g!==Si)for(const y of f.data){if(!g(y))continue;const x=p(y,a);x!==null&&(o=o===null?x:KX(o,x))}}if(!c)for(const f of u.values())e.diagnostics.addWarning(f);return t.set(n,o),o},KX=(e,t)=>({xMin:Math.min(e.xMin,t.xMin),xMax:Math.max(e.xMax,t.xMax),yMin:Math.min(e.yMin,t.yMin),yMax:Math.max(e.yMax,t.yMax)}),QX=(e,t)=>{if(t===void 0)return e;const{x:n=0,y:r=0}=typeof t=="number"?{x:t,y:t}:t;return{xMin:e.xMin-n,xMax:e.xMax+n,yMin:e.yMin-r,yMax:e.yMax+r}},Cp=(e,t,n)=>{var a;const r=eK(e,t,n);return r===null?null:((a=r.defer)==null?void 0:a.type)==="annotation-ref"?r:tK(r,t.offset,e.coordSystem)},mN=(e,t)=>t.anchorType==="selection"?qX(e.container,e.selectionBoxCache,t,e.layers,e.coordSystem,e.parsingLocale):t.anchorType==="annotation"?{x:0,y:0,width:0,height:0,defer:{type:"annotation-ref",ref:t.ref,align:"center"}}:{x:t.x,y:1-t.y-t.height,width:t.width,height:t.height},bw=(e,t,n)=>{var r;return((r=wx(e,t,n))==null?void 0:r.point)??null},wx=({container:e,layers:t,coordSystem:n,parsingLocale:r},a,i)=>{for(const o of t){const c=e.geomRegistry.get(o.geom),{resolveAnchorPosition:u}=c;if(u===void 0||a.layerId!==void 0&&o.id!==a.layerId||a.layerId===void 0&&!o.interactive)continue;const f=dN(o,c),m=$X(o),p=zX(o),g=_X(o,r)(a);let y=-1;for(const x of o.data){if(y+=1,!m(x,g))continue;const S=u(x,{coordSystem:n,position:o.position,purpose:i,align:a.align});if(S===null)continue;const A=JX(o,x,f);if(A===null)continue;const M=p(x);if(M!==null)return{point:{...S,...A,observationIndex:y,anchor:a.align===void 0?M:{...M,align:a.align}},layerId:o.id}}}return null},ZX=(e,t)=>{const{layers:n,coordSystem:r,scales:a,parsingLocale:i}=e;if(r.type!=="cartesian")return null;const o=a.x,c=a.y;if(o===void 0||c===void 0||o.kind!=="position"||c.kind!=="position")return null;const u=KE(t.x,"x",n,i),f=KE(t.y,"y",n,i);if(u===null||f===null)return null;const m=o.map(u),p=c.map(f);if(!Bc(m,p))return null;const g=XE(m,o,nK(e)),y=XE(p,c),x=qE(r.mainAxis,{main:g.min,cross:y.min}),S=qE(r.mainAxis,{main:g.max,cross:y.max});return Af({xMin:x.x,xMax:S.x,yMin:x.y,yMax:S.y},t.align??"center")},JX=(e,t,n)=>{const r=n.read(t);return Et(r)?{geom:e.geom,measurementValue:r,valueFormat:IX(n.valueFormat,t),yScaleType:e.yScaleType}:null},eK=(e,t,n)=>{switch(t.anchorType){case"panel":return{x:t.x,y:1-t.y};case"axis":return ZX(e,t);case"selection":return XX(e.container,e.selectionBoxCache,t,e.layers,e.coordSystem,e.parsingLocale);case"annotation":return{x:0,y:0,defer:{type:"annotation-ref",ref:t.ref,align:t.align??"center",offset:t.offset}};case"observation":return bw(e,rK(t),n)}},tK=(e,t,n)=>{if(t===void 0||n.type==="polar")return e;const r=fN(t);return r!==null?{...e,defer:r}:{...e,x:e.x+(t.x??0),y:e.y-(t.y??0)}},XE=(e,t,n=1)=>{const{bandwidth:r}=t;if(r===null||r<=0)return{min:e,max:e};const a=r*n/2;return{min:e-a,max:e+a}},nK=({container:e,layers:t,coordSystem:n})=>{var a,i;let r=0;for(const o of t){const c=(i=(a=e.geomRegistry.get(o.geom)).resolveBandFraction)==null?void 0:i.call(a,o.params,n);c!==void 0&&(r=Math.max(r,c))}return r>0?r:1},rK=e=>
49({layerId:e.layerId,anchorValue:e.anchorValue,groupValue:e.groupValue,crossValue:e.crossValue,align:e.align}),KE=(e,t,n,r)=>{for(const a of n){const i=pe(a.mapping[t]);if(!(i===null||i===jc.x))return U1(e,Cd(a.data.getValueFormat(i)),r)}return e},aK=class extends xs{constructor(t){super(),this.container=t}dependencies(t){return[t.annotations,t.layers,t.coordSystem,t.scales.x,t.scales.y,t.config.parsingLocale]}run(t){const{annotations:n,layers:r,coordSystem:a,scales:i,config:o}=t,c={container:this.container,layers:r,coordSystem:a,scales:i,selectionBoxCache:new Map,parsingLocale:o.parsingLocale},u={differenceArrows:pK(c,n.differenceArrows),shapes:lK(c,n.shapes),arrows:uK(c,n.arrows),textAnnotations:dK(c,n.textAnnotations),images:cK(c,n.images),stickers:fK(c,n.stickers),pinnedNumbers:hK(c,n.pinnedNumbers),comments:mK(c,n.comments)};return iK(this.container,u),sK(this.container,u),u}},Na=(e,t,n,r)=>{e.diagnostics.addWarning({code:"ANNOTATION_ANCHOR_UNRESOLVED",message:`Annotation "${n}" (${t}) ${r} â dropping this annotation.`,context:{annotationId:n,kind:t},suggestion:"Check that the anchor points at data, an axis value or a panel position that exists."})},iK=(e,t)=>{const n=new Set;for(const r of Object.values(t))for(const{id:a}of r){if(n.has(a)){e.diagnostics.addWarning({code:"ANNOTATION_DUPLICATE_ID",message:`More than one annotation carries id "${a}" â references to it resolve to the first, and the rest cannot be addressed.`,context:{annotationId:a},suggestion:"Give each annotation its own id."});continue}n.add(a)}},sK=(e,t)=>{const n=new Set;for(const r of Object.values(t))for(const a of r)n.add(a.id);for(const{id:r,ref:a}of oK(t))n.has(a)||e.diagnostics.addWarning({code:"ANNOTATION_REF_NOT_FOUND",message:`Annotation "${r}" references id "${a}", whose annotation could not be anchored and was dropped.`,context:{annotationId:r,ref:a},suggestion:"Fix the anchor on the target annotation or point this reference at one that resolves."})},oK=e=>{const t=[],n=(r,a)=>{var i;((i=a.defer)==null?void 0:i.type)==="annotation-ref"&&t.push({id:r,ref:a.defer.ref})};for(const r of e.shapes)n(r.id,r.region);for(const r of e.images)n(r.id,r.region);for(const r of e.arrows)n(r.id,r.start),n(r.id,r.end);for(const r of e.textAnnotations)n(r.id,r.at);for(const r of e.stickers)n(r.id,r.at);return t},lK=(e,t)=>{const n=[];for(const r of t){const a=mN(e,r.region);if(a===null){Na(e.container,"shape",r.id,"has a region anchor that resolves to nothing");continue}n.push({id:r.id,kind:r.kind,zOrder:r.zOrder,region:a,fillColor:r.fillColor,fillOpacity:r.fillOpacity,strokeWidth:r.strokeWidth,strokeColor:r.strokeColor})}return n},cK=(e,t)=>{const n=[];for(const r of t){const a=mN(e,r.region);if(a===null){Na(e.container,"image",r.id,"has a region anchor that resolves to nothing");continue}n.push({id:r.id,src:r.src,zOrder:r.zOrder,region:a,fit:r.fit,opacity:r.opacity})}return n},uK=(e,t)=>{const n=[];for(const r of t){const a=Cp(e,r.start,"pin"),i=Cp(e,r.end,"pin");if(a===null||i===null){Na(e.container,"arrow",r.id,`has ${pN(a,i)} resolving to nothing`);continue}n.push({id:r.id,start:a,end:i,color:r.color,thickness:r.thickness,startArrowheadStyle:r.startArrowheadStyle,endArrowheadStyle:r.endArrowheadStyle,lineStyle:r.lineStyle,hasStickerStyle:r.hasStickerStyle})}return n},dK=(e,t)=>{const n=[];for(const r of t){const a=Cp(e,r.at,"pin");if(a===null){Na(e.container,"text",r.id,"has a point anchor that resolves to nothing");continue}n.push({id:r.id,content:r.content,at:a,width:r.width,align:r.align,backgroundColor:r.backgroundColor,backgroundColorStyle:r.backgroundColorStyle})}return n},fK=(e,t)=>{const n=[];for(const r of t){const a=Cp(e,r.at,"pin");if(a===null){Na(e.container,"sticker",r.id,"has a point anchor that resolves to nothing");continue}n.push({id:r.id,at:a,sticker:r.sticker})}return n},hK=(e,t)=>{const n=[];for(const r of t){const a=bw(e,r.at,"pin");if(a===null){Na(e.container,"pinnedNumber",r.id,"matches no observation");continue}n.push({id:r.id,at:a})}return n},mK=(e,t)=>{const n=[];for(const r of t){const a=bw(e,r.at,"pin");if(a===null){Na(e.container,"comment",r.id,"matches no observation");continue}n.push({id:r.id,at:a,content:r.content})}return n},pK=(e,t)=>{if(e.coordSystem.type!=="cartesian"){for(const r of t)Na(e.container,"differenceArrow",r.id,"needs a cartesian coord system");return[]}const n=[];for(const r of t){const a=wx(e,r.start,"value"),i=wx(e,r.end,"value");if(a===null||i===null){Na(e.container,"differenceArrow",r.id,`has ${pN(a,i)} matching no observation`);continue}if(a.layerId===i.layerId&&a.point.observationIndex===i.point.observationIndex){Na(e.container,"differenceArrow",r.id,"has both ends on the same observation");continue}gK(e,r,a.point,i.point),n.push({id:r.id,start:a.point,end:i.point,ownColor:r.color,size:r.size,label:r.label,labelCrossPosition:r.labelCrossPosition})}return n},pN=(e,t)=>e===null&&t===null?"start and end anchors":e===null?"a start anchor":"an end anchor",gK=(e,t,n,r)=>{bx(n,r)||e.container.diagnostics.addWarning({code:"INCOMPARABLE_ARROW_ENDPOINTS",message:`Difference arrow "${t.id}" measures between endpoints on different bases, so its label reports a quantity that does not exist.`,context:{annotationId:t.id,expected:WE(n),actual:WE(r)},suggestion:"Point both ends at observations sharing one y scale and one unit, or label the arrow as a proportion."})};function yK(e,t="kind"){const n=new Map;n.set(t,[]);for(const a of e)for(const i of a.observations)for(const o of Object.keys(i))n.has(o)||n.set(o,[]);for(const a of e)for(const i of a.observations)for(const[o,c]of n)c.push(o===t?a.kind:i[o]??null);const r={};for(const[a,i]of n)r[a]={type:gN(i),values:i};return new fs(r)}function gN(e){const t=Array.isArray(e)?e:[e];for(const n of t)if(n!==null)return typeof n=="number"?"numeric":n instanceof Date?"temporal":"categorical";return"categorical"}var bK=class extends xs{dependencies(e){return[e.data,e.mapping]}run(e){let t=e.data,n=e.mapping;n.x===""&&(t=t.addConstantVariable(jc.x,"categorical",""),n={...n,x:jc.x});for(const r of Object.keys(n)){const a=Sr(n[r]);if(a===void 0)continue;const i=mt(`const_${r}`);t=t.addConstantVariable(i,gN(a),a),n={...n,[r]:i}}return{data:t,mapping:n}}}
49,Jo=class{constructor(){this.perLayerMemo=aD(),this.listMemo=XH()}get stats(){return KH(this.perLayerMemo.stats,this.listMemo.stats)}compile(t){const n=this.dependencies(t),r=t.layers.map(a=>this.perLayerMemo(a,n,()=>this.compileLayer(a,t)));return this.listMemo(r,()=>r)}},vK=class extends xs{constructor(e){super(),this.registry=e}dependencies(e){return[e.coordSpec,e.scales,e.layers]}run(e){return this.registry.get(e.coordSpec.coordType).setup(e)}},xK=class extends Jo{constructor(e){super(),this.registry=e}dependencies(e){return[e.coordSpec,e.coordSystem]}compileLayer(e,t){const[n]=this.registry.get(t.coordSpec.coordType).transform({coordSpec:t.coordSpec,coordSystem:t.coordSystem,layers:[e]});if(!n)throw new Be({message:`CoordCompiler: strategy '${t.coordSpec.coordType}' did not return a transformed layer`});return n}},wK=class{constructor(e){this.setupStage=new vK(e),this.transformStage=new xK(e)}get setupStats(){return this.setupStage.stats}get transformStats(){return this.transformStage.stats}setup(e){return this.setupStage.compile(e)}transform(e){return this.transformStage.compile(e)}},SK=class{constructor(){this.coordType="cartesian"}setup(e){if(e.coordSpec.coordType!=="cartesian")throw new Be({message:`Invalid coordinate type: ${e.coordSpec.coordType}`});return{coordSystem:{type:"cartesian",mainAxis:"x",axisMapping:{x:{position:"bottom",geometry:"linear"},y:{position:"right",geometry:"linear"}}},scales:e.scales}}transform(e){return e.layers}},AK=class{constructor(){this.coordType="flip"}setup(e){if(e.coordSpec.coordType!=="flip")throw new Be({message:`Invalid coordinate type: ${e.coordSpec.coordType}`});return{coordSystem:{type:"cartesian",mainAxis:"y",axisMapping:{x:{position:"left",geometry:"linear"},y:{position:"bottom",geometry:"linear"}}},scales:TK(e.scales,e.layers)}}transform(e){return e.layers.map(t=>EK(t))}},MK=[[oe.x,oe.y],[oe.xMin,oe.yMin],[oe.xMax,oe.yMax]],QE=mt("flipSwap"),TK=(e,t)=>kK(t)?e.map(n=>n.scaledAesthetic!=="x"||n.scaleType!=="continuous"&&n.scaleType!=="datetime"&&n.scaleType!=="discrete"?n:{...n,reverse:!n.reverse}):e,kK=e=>{for(const t of e){const n=pe(t.mapping.x);if(!n||!t.data.hasVariable(n))continue;const r=t.data.getType(n);if(r==="categorical"||r==="temporal")return!0}return!1},EK=e=>{let t=e.data;for(const[n,r]of MK){const a=t.hasVariable(n),i=t.hasVariable(r);a&&i?t=t.renameVariable(n,QE).renameVariable(r,n).renameVariable(QE,r):a?t=t.renameVariable(n,r):i&&(t=t.renameVariable(r,n))}return{...e,data:t}},hs=Math.PI*2,CK=8,RK=1e-9,vw=(e,t)=>Math.abs(t-e)>=hs-RK,ef=e=>(e%hs+hs)%hs,yN=(e,t,n)=>{if(vw(t,n))return!0;const r=ef(n-t);return ef(e-t)<=r},Rp=(e,t)=>{const n=Math.abs(ef(e)-ef(t));return Math.min(n,hs-n)},bN=(e,t,n)=>e*hs+t+n,Lp=(e,t)=>({x:t*Math.sin(e),y:t*Math.cos(e)}),LK=(e,t)=>({angle:ef(Math.atan2(e,t)),radius:Math.hypot(e,t)}),vN=(e,t)=>{const n=e.x-.5,r=e.y-.5;return{x:t>=1?n*2*t:n*2,y:t>=1?r*2:r*2/t}},xw=(e,t)=>{const{x:n,y:r}=vN(e,t);return LK(n,r)};function xN(e){const t=new Set,n=[];for(const r of e){const a=r instanceof Date?r.getTime():String(r);t.has(a)||(t.add(a),n.push(r))}return n}var wN=(e,t)=>xN(t.domain!==null&&t.domain.length>0?t.domain:e),DK=class{constructor(){this.coordType="polar"}setup(e){if(e.coordSpec.coordType!=="polar")throw new Be({message:`Invalid coordinate type: ${e.coordSpec.coordType}`});const{params:t}=e.coordSpec,n=t.startAngle*(Math.PI/180),r=OK(t,e.scales,e.layers),a=IK(t,e.scales,e.layers);return{coordSystem:{type:"polar",axisMapping:t.theta==="x"?{x:{position:"bottom",geometry:"circular"},y:{position:"left",geometry:"radial"}}:{x:{position:"left",geometry:"radial"},y:{position:"bottom",geometry:"circular"}},innerRadius:t.innerRadius,startAngle:n,spokeRotation:r,bandAxis:a},scales:e.scales}}transform(e){if(e.coordSpec.coordType!=="polar")throw new Be({message:`Invalid coordinate type: ${e.coordSpec.coordType}`});if(e.coordSystem.type!=="polar")throw new Be({message:"PolarCoord.transform received a non-polar coord system"});const{params:t}=e.coordSpec,{startAngle:n,spokeRotation:r}=e.coordSystem,a=jK(n,r),i=BK(t);return e.layers.map(o=>zK(t.theta==="y"?VK(o):o,a,i))}},NK=[[oe.x,oe.y],[oe.xMin,oe.yMin],[oe.xMax,oe.yMax]];function jK(e,t){return n=>bN(n,e,t)}function OK(e,t,n){const r=t.find(i=>i.scaledAesthetic===e.theta);if(r===void 0||r.scaleType!=="discrete")return 0;const a=_K(r,e,n);return a===0?0:-Math.PI/a}
49function _K(e,t,n){const r=[];for(const a of n){const i=pe(a.mapping[t.theta]);if(!(i===null||!a.data.hasVariable(i)))for(const o of a.data.getValues(i))r.push(o)}return wN(r,e).length}function IK(e,t,n){var i;if(e.theta==="x")return"x";const r=((i=t.find(o=>o.scaledAesthetic==="x"))==null?void 0:i.scaleType)==="discrete",a=n.some(o=>o.position==="fill");return r&&!a?"y":null}function BK(e){const{innerRadius:t}=e;return n=>t+n*(1-t)}function zK(e,t,n){let r=e.data;return r=tc(r,oe.x,t),r=tc(r,oe.xMin,t),r=tc(r,oe.xMax,t),r=tc(r,oe.y,n),r=tc(r,oe.yMin,n),r=tc(r,oe.yMax,n),{...e,data:r}}function tc(e,t,n){if(!e.hasVariable(t))return e;const r=e.getValues(t,{type:"numeric"}).map(a=>a===null?null:n(a));return e.addVariable(t,"numeric",r)}function VK(e){let t=e.data;for(const[n,r]of NK){const a=t.hasVariable(n),i=t.hasVariable(r);if(!a&&!i)continue;const o=a?t.getValues(n):null,c=i?t.getValues(r):null;o&&(t=t.addVariable(r,"numeric",o)),c&&(t=t.addVariable(n,"numeric",c))}return{...e,data:t}}var PK=class extends Xc{constructor(){super("coord"),this.register("cartesian",new SK),this.register("flip",new AK),this.register("polar",new DK)}},$K=new Set(["min","max","scalar"]),FK={x:{min:oe.xMin,max:oe.xMax},y:{min:oe.yMin,max:oe.yMax}};function HK(e){const t=new Set;for(const n of e)n.role==="point"?t.add(n.axis):(n.role==="min"||n.role==="max")&&de(n.aes)&&t.add(n.aes);return[...t]}function UK(e){const t=new Set;for(const n of e)n.role==="point"&&t.add(n.axis),de(n.aes)&&t.add(n.aes);return[...t]}function GK(e,t,n){let r=e;for(const a of t){if(a.role!=="min"&&a.role!=="max"||!de(a.aes))continue;const i=FK[a.axis][a.role];if(r.hasVariable(i))continue;const o=pe(n[a.aes]);!de(o)||!r.hasVariable(o)||(r=r.addVariable(i,"numeric",r.getValues(o,{type:"numeric"})))}return r}var YK=class{constructor(e){this.container=e}compile(e,t){const n=this.container.geomRegistry.get(e),r=n.compile(t),a={...t.mapping,...r.mapping};return{...r,data:GK(r.data,n.positionRoles,a)}}},Tf=["x","y"],SN=new Set(["x","y","ySecondary"]),Sg=new Set(["color","size","alpha","strokeWidth","lineType"]),el=e=>SN.has(e),ww=e=>Sg.has(e),AN=e=>el(e)||ww(e);function tl(e){return e==="secondary"?"ySecondary":"y"}function MN(e,t){return e==="y"?tl(t):"x"}function Wt(e){return e==="ySecondary"?"y":e}var kf=(e,t)=>{if(de(t.group)){const a=pe(t.group);if(a!==null)return[a]}const n=new Set([pe(t.x),pe(t.y)].filter(de)),r=new Set;for(const a of Sg){const i=pe(t[a]);de(i)&&(n.has(i)||e.hasVariable(i)&&e.getType(i)==="categorical"&&r.add(i))}return[...r]},Sw=(e,t)=>e.hasVariable(pt.group)?e.getValues(pt.group,{distinct:!0,skipNulls:!0}).length>1:kf(e,t).some(n=>e.getValues(n,{distinct:!0,skipNulls:!0}).length>1),WK=class{compute({data:e,mapping:t}){const n=kf(e,t);if(n.length===0)return{data:e.addConstantVariable(pt.group,"categorical",null)};const r=e.size(),a=n.map(o=>e.getValues(o)),i=new Array(r);for(let o=0;o<r;o++)i[o]=yt(a.map(c=>c[o]));return{data:e.addVariable(pt.group,"categorical",i)}}},qK=e=>{if(e===void 0)return{};const t={};for(const n of e.columns)n.label!==void 0&&(t[n.key]=n.label);return t},XK=(e,t,n)=>{const r=_o(t,"color");return r===null?{}:((e==null?void 0:e.columns)??[]).some(a=>a.key===r)?{}:n};function _o(e,t){const n=Wt(t);for(const r of TN(t,e)){const a=pe(r.mapping[n]);if(de(a))return a}return null}var Ag=(e,t)=>e===null?null:t[e]??e,KK=(e,t)=>e===null?null:t[String(e)]??null,Io=({layers:e,scaleType:t,variableName:n})=>{if(n===null)return Wb(t);for(const r of e){if(!r.data.hasVariable(n))continue;const a=r.data.getValueFormat(n),i=a.type==="lookup"?a.fallback:a;return ZK(i,t)?i:Wb(t)}return Wb(t)},QK=(e,t)=>t!=="y"&&t!=="ySecondary"?!1:TN(t,e).some(n=>n.position==="fill");function TN(e,t){return e==="ySecondary"?t.filter(n=>n.yScaleType==="secondary"):e==="y"?t.filter(n=>n.yScaleType==="primary"):t}var Wb=e=>{switch(e){case"continuous":return{type:"decimal"};case"datetime":return{type:"date"};case"discrete":case"palette":case"identity":return{type:"text"}}},ZK=(e,t)=>{switch(t){case"continuous":return I3(e);case"datetime":return qc(e);case"discrete":case"palette":case"identity":return!0}},JK=[{unit:"year",step:1e3},{unit:"year",step:100},{unit:"year",step:50},{unit:"year",step:20},{unit:"year",step:10},{unit:"year",step:5},{unit:"year",step:2},{unit:"year",step:1},{unit:"month",step:6},{unit:"month",step:3},{unit:"month",step:2},{unit:"month",step:1},{unit:"week",step:2},{unit:"week",step:1},{unit:"day",step:2},{unit:"day",step:1},{unit:"hour",step:12},{unit:"hour",step:6},{unit:"hour",step:3}],ZE={year:0,quarter:1,month:2,week:3,day:4,hour:5},nc=40,eQ=(e,t,n)=>{const r=n.unit==="quarter"?n.step*3:n.step;return aQ(n.unit).range(e,new Date(t.valueOf()+1),r)},tQ=({unit:e,step:t,start:n,stop:r})=>{const a=l3(r,n);switch(e){case"hour":return 24*a/t>nc;case"day":return a/t>nc;case"week":return a/(7*t)>nc;case"month":return a/(30*t)>nc;case"quarter":return a/(90*t)>nc;case"year":return a/(365*t)>nc}},nQ=(e,t)=>{const n=!z3(t);switch(e.unit){case"year":return n?{type:"year"}:{type:"month"};case"quarter":return{type:"quarter"};case"month":return n?{type:"month_year"}:{type:"month"};case"week":return n?{type:"weekly_date_range_with_year"}:{type:"weekly_date_range"};case"day":return n?{type:"date"}:{type:"day_month"};case"hour":return n?{type:"datetime"}:{type:"time"}}},rQ=(e,t)=>{const n=iQ(t);return n===null?!1:ZE[e]>ZE[n]},aQ=e=>{switch(e){case"hour":return dg;case"day":return Kc;case"week":return Wd;case"month":case"quarter":return hg;case"year":return Oa}},iQ=e=>{switch(e.type){case"year":return"year";case"quarter":return"quarter";case"month_year":case"month":return"month";case"weekly_date_range":case"weekly_date_range_with_year":return"week";case"date":case"day_month":case"datetime":return"day";case"time":return"hour";default:return null}}
49,kN={left:"right",right:"left",top:"bottom",bottom:"top"},sQ={x:!0,y:!0,ySecondary:!1},oQ=20,JE=new Set(["top","bottom"]),lQ={type:"percentage"};function cQ(e,t){const{scales:n,config:r,layers:a,coordSystem:i,variableLabels:o,geomRegistry:c}=e;if(cN(a))return[];if(i.type==="polar"&&i.bandAxis===null)return[];const u=fQ(c,a,i.type,r),f=new Set(t.map(g=>g.position)),m=mQ(EN(r.axes.y.position,i.axisMapping.y.position),f),p=[];for(const g of SN){const y=n[g];if(!de(y)||y.kind!=="position")continue;const x=uQ({scaleAestheticKey:g,scale:y,config:r,layers:a,axisMapping:i.axisMapping,resolvedYPosition:m,gridOverrides:u,variableLabels:o});p.push(x)}return p}function uQ(e){const{scaleAestheticKey:t,scale:n,config:r,layers:a,axisMapping:i,resolvedYPosition:o,gridOverrides:c,variableLabels:u}=e,{axisConfig:f,position:m,geometry:p}=hQ(t,r,i,o),g=_o(a,t),y=QK(a,t)?lQ:Io({layers:a,scaleType:n.spec.scaleType,variableName:g});return{scaleAestheticKey:t,position:m,geometry:p,label:dQ(f,g,u),isVisible:f.isVisible,tickCandidates:gQ(n,y,f.ticks.mode),valueFormat:y,tickMode:f.ticks.mode,ticksVisible:f.ticks.isVisible,gridVisible:pQ(f,c,t),scaleType:n.spec.scaleType,bandwidth:n.bandwidth??void 0}}function dQ(e,t,n){return e.label?e.label:t?n[t]??null:null}function fQ(e,t,n,r){const a=t.flatMap(c=>{const u=e.get(c.geom).grid[n];return u?[u]:[]}),i=a.some(c=>c.hideGridX),o=a.some(c=>c.hideGridY);return{x:{gridVisible:eC(i,r.axes.x.grid.isVisible)},y:{gridVisible:eC(o,r.axes.y.grid.isVisible)}}}function eC(e,t){if(e&&t===null)return!1}function hQ(e,t,n,r){switch(e){case"x":return{axisConfig:t.axes[e],position:EN(t.axes[e].position,n[e].position),geometry:n.x.geometry};case"y":return{axisConfig:t.axes[e],position:r,geometry:n.y.geometry};case"ySecondary":{const a=kN[r],i=Go({isVisible:t.axes.y.isVisible,label:null,position:a,grid:t.axes.y.grid,ticks:t.axes.y.ticks},t.axes.ySecondary);return{axisConfig:i,position:i.position,geometry:n.y.geometry}}}}function EN(e,t){return JE.has(e)===JE.has(t)?e:t}function mQ(e,t){return t.has(e)?kN[e]:e}function pQ(e,t,n){const{gridVisible:r}=n==="x"?t.x:t.y;return r??e.grid.isVisible??sQ[n]}var gQ=(e,t,n)=>{const r=e.spec.scaleType==="continuous"||e.spec.scaleType==="datetime";if(n==="edges"&&r){const a=bQ(e);if(a)return[a]}if(e.spec.scaleType==="continuous"){const a=new Set,i=[];for(let o=1;o<=oQ;o++){const c=e.generateTicks({count:o}),u=yt(c);a.has(u)||(a.add(u),i.push({ticks:c.map(f=>zc(e,f))}))}return i}return e.spec.scaleType==="datetime"?yQ(e,t):[{ticks:e.generateTicks().map(a=>zc(e,a))}]},yQ=(e,t)=>{const[n,r]=e.domain;if(!Ar(n)||!Ar(r))return[{ticks:e.generateTicks().map(c=>zc(e,c))}];const a=new Set,i=[],o=(c,u)=>{if(c.length===0)return;const f=yt(c);a.has(f)||(a.add(f),i.push({ticks:c.map(m=>zc(e,m)),valueFormat:u}))};for(const c of JK)tQ({...c,start:n,stop:r})||rQ(c.unit,t)||o(e.generateTicks({interval:c}),nQ(c,t));return o(e.generateTicks({atInputs:!0})),i.sort((c,u)=>c.ticks.length-u.ticks.length),i},bQ=e=>{const{domain:t}=e,n=t[0],r=t.at(-1);return!de(n)||!de(r)||yt([n])===yt([r])?null:{ticks:[zc(e,n),zc(e,r)]}},zc=(e,t)=>({value:t,position:e.map(t)});function CN({scale:e,aesthetics:t,layers:n}){const r=vQ({layers:n,aesthetics:t}),a=RN({layers:n,aesthetics:t});return e.domain.map(i=>({value:i,geom:r(i),owner:a(i)}))}function vQ({layers:e,aesthetics:t}){const n=RN({layers:e,aesthetics:t}),r=e.find(i=>t.some(o=>de(i.mapping[o]))),a=r?r.geom:"bar";return i=>{const o=n(i);return o?o.layer.geom:a}}function RN({layers:e,aesthetics:t,layerFilter:n}){const r=new Map;for(const[a,i]of e.entries()){if(n&&!n(i))continue;const o=t.find(u=>de(i.mapping[u]));if(o===void 0)continue;const c=pe(i.mapping[o]);if(!(c===null||!i.data.hasVariable(c)))for(const u of i.data.getValues(c,{distinct:!0})){const f=yt(u);r.has(f)||r.set(f,{layer:i,layerIndex:a})}}return a=>r.get(yt(a))}var Aw=e=>{if(e.kind==="identity")return!1;const t=e.spec.scaleType;return t!=="continuous"&&t!=="datetime"};function xQ({scales:e,layers:t,valueLabels:n}){const r=e.color;if(r===void 0||!Aw(r))return[];if(!t.some(c=>de(c.mapping.color)))return[];const a=_o(t,"color");
49if(LN({colorVariableName:a,xVariableName:_o(t,"x"),mapsColorAcrossMultipleLayers:SQ(t)>1,isMergedWithAnotherAesthetic:wQ(e,t,a)}))return[];const i=r.spec.scaleType,o=t.findIndex(c=>de(c.mapping.color));return CN({scale:r,aesthetics:["color"],layers:t}).map(({value:c,geom:u,owner:f})=>{const m=(f==null?void 0:f.layerIndex)??o,p=t[m],g=p?pe(p.mapping.color):null;return{value:c,color:String(r.map(c)),geom:u,layerIndex:m,valueFormat:Io({layers:p?[p]:t,scaleType:i,variableName:g}),label:KK(c,n)}})}var LN=({colorVariableName:e,xVariableName:t,mapsColorAcrossMultipleLayers:n,isMergedWithAnotherAesthetic:r})=>r?!1:e===null||j3(e)?!n:t!==null&&e===t;function wQ(e,t,n){if(n===null)return!1;for(const r of Sg){if(r==="color")continue;const a=e[r];if(!(a===void 0||!Aw(a))&&_o(t,r)===n)return!0}return!1}var SQ=e=>e.filter(t=>de(t.mapping.color)).length;function DN(e,t){return e.get(t.geom).summaries.perGroupHeadline===!0}function AQ(e,t,n,r){var i;const a=n.findIndex(o=>DN(e,o));return a===-1?[]:t.length<2?[{value:null,swatch:null,layerIndex:a,groupLabelFormat:{type:"text"},label:Ag(pe((i=n[a])==null?void 0:i.mapping.y),r)}]:t.map(o=>({value:o.value,swatch:{color:o.color,geom:o.geom},layerIndex:o.layerIndex,groupLabelFormat:o.valueFormat,label:o.label}))}function tC(e,t,n){if(n===null||t===null)return[...e];const r=yt(n);return e.filter((a,i)=>yt(t[i]??null)===r)}var MQ=e=>e==="none"?"first":e,TQ=(e,t)=>{switch(t){case"total":{const{sum:n,count:r}=nC(e);return r===0?null:n}case"average":{const{sum:n,count:r}=nC(e);return r===0?null:n/r}case"current":return e.at(-1)??null}},kQ=(e,t)=>{if(e.length<2)return null;const n=e.at(-1),r=t==="previous"?e.at(-2):e.at(0);return n===void 0||r===void 0||n.cross===null||r.cross===null||r.cross===0?null:{variation:(n.cross-r.cross)/r.cross,against:r.main}},nC=e=>e.reduce((t,n)=>n===null?t:{sum:t.sum+n,count:t.count+1},{sum:0,count:0});function EQ(e){const{config:t,coordSystem:n}=e,r=t.headline.show;return r==="none"||r==="conversion"?null:n.type==="polar"?CQ(e,r):RQ(e,r)}function CQ(e,t){var c;if(t!=="total")return null;const{scales:n,layers:r}=e,a=r.find(u=>u.summary.grandTotal!==void 0);if(a===void 0)return null;const i=a.summary.grandTotal;if(i===void 0)return null;const o=pe(a.mapping.y);return o===null?null:{kind:"grandTotal",value:i,valueFormat:Io({layers:[a],scaleType:((c=n.y)==null?void 0:c.spec.scaleType)??"continuous",variableName:o})}}function RQ(e,t){const{config:n,scales:r,layers:a,variableLabels:i,colorGroups:o,geomRegistry:c}=e;if(!a.some(m=>DN(c,m)))return null;const u=AQ(c,o,a,i);if(u.length===0)return null;const f=u.map(m=>LQ({group:m,show:t,compareWith:n.headline.compareWith,layers:a,scales:r})).filter(m=>m!==null);return f.length===0?null:{kind:"perGroup",items:f}}function LQ({group:e,show:t,compareWith:n,layers:r,scales:a}){var R;const i=r[e.layerIndex];if(i===void 0)return null;const o=pe(i.mapping.y);if(o===null||t==="total"&&i.position==="fill")return null;const c=pe(i.mapping.x),u=pe(i.mapping.color),f=i.yScaleType==="secondary"?a.ySecondary:a.y,m=Io({layers:[i],scaleType:(f==null?void 0:f.spec.scaleType)??"continuous",variableName:o}),p=jQ(i.data,c),g=Io({layers:[i],scaleType:p?"datetime":((R=a.x)==null?void 0:R.spec.scaleType)??"discrete",variableName:c}),y=OQ(i.data,c),x=y.getValues(o,{type:"numeric"}),S=c!==null?y.getValues(c):[],A=u!==null?y.getValues(u):null,M=tC(x,A,e.value),C=tC(S,A,e.value);return{value:e.value,swatch:e.swatch,aggregate:TQ(M,t),valueFormat:m,groupLabelFormat:e.groupLabelFormat,mainValueFormat:g,label:e.label,observationLabel:DQ(t,p,C),comparison:NQ(t,n,p,C,M)}}function DQ(e,t,n){if(e==="current"){const i=n.at(-1);return i===void 0?null:{kind:"point",value:i}}if(!t)return null;const r=n.at(0),a=n.at(-1);return r===void 0||a===void 0?null:{kind:"range",from:r,to:a}}function NQ(e,t,n,r,a){return e!=="current"||!n?null:kQ(r.map((i,o)=>({main:i,cross:a[o]??null})),MQ(t))}function jQ(e,t){return t!==null&&e.hasVariable(t)&&e.getType(t)==="temporal"}function OQ(e,t){return t===null||!["numeric","temporal"].includes(e.getType(t))?e:e.orderBy(t)}function Ga(e,...t){return e?t.includes(e.geom):!1}function An(e,t){return e.find(n=>n.id===t)}function nl(e,...t){return e.find(n=>t.includes(n.geom))}function NN(e,t){return e.interactive?!1:t.some(n=>n!==e&&SH(n.mapping,e.mapping))}function jN(e){const t=e.filter(n=>!NN(n,e));return t.length>0?t:e}
49function _Q({legendPosition:e,coordSystem:t,layers:n}){var a;if(e!=="right"||t.type!=="cartesian"||t.mainAxis!=="x")return!1;const r=jN(n);return r.length===1&&((a=r[0])==null?void 0:a.supportsDirectLabels)===!0}var IQ=3;function BQ({scales:e,config:t,layers:n,coordSystem:r,variableLabels:a,colorGroups:i,geomRegistry:o}){if(t.legend.position==="none")return{drawn:[],position:"none"};const c=new Map(i.map(A=>[yt(A.value),A])),u=GQ($Q({scales:e,layers:n})),f=_o(n,"x"),m=u.map(A=>{if(HQ(A,f,n))return null;const M=WQ({group:A,variableLabels:a,layers:n,colorGroupsByValue:c});return M.items.length===0?null:{group:A,built:M}}).filter(de),p=zQ(m),g=jN(n),y=JQ(o,t.legend.position,p,g,r);if(m.length===0)return{drawn:[],position:y};if(t.legend.position==="auto"&&ZQ(o,p,g,r))return{drawn:[],position:y};const x=eZ(t.legend.display,{legendPosition:y,coordSystem:r,layers:n}),S=x==="direct"?aZ(g[0]):null;return{drawn:m.map(({built:A})=>VQ(A,{position:y,display:x,align:t.legend.align},S)),position:y}}function zQ(e){return e.reduce((t,{group:n,built:r})=>t+(n.some(a=>a.guideType!=="discrete")?1:r.items.length),0)}function VQ(e,t,n){const{position:r,display:a}=t,i=PQ(t.align,r);return a!=="direct"||n===null?{...e,position:r,display:a,align:i}:{...e,position:r,display:a,align:i,items:e.items.map(o=>({...o,normalizedY:n.get(String(o.value))??null}))}}function PQ(e,t){return e!=="auto"?e:t==="top"||t==="bottom"?"start":"center"}function $Q(e){const{scales:t,layers:n}=e,r=[];for(const a of Sg){const i=t[a];if(i===void 0||i.kind==="identity"||!FQ(a,n))continue;const o=_o(n,a),c=rZ(a,i);r.push({scaleAestheticKey:a,scale:i,variableName:o,guideType:c})}return r}function FQ(e,t){const n=Wt(e);return t.some(r=>de(r.mapping[n]))}function HQ(e,t,n){const[r]=e;return r.scaleAestheticKey!=="color"?!1:LN({colorVariableName:r.variableName,xVariableName:t,mapsColorAcrossMultipleLayers:UQ(r.scaleAestheticKey,n),isMergedWithAnotherAesthetic:e.length>1})}function UQ(e,t){const n=Wt(e);return t.filter(r=>de(r.mapping[n])).length>1}function GQ(e){const t=new Map;for(const n of e){const r=nZ(n),a=t.get(r);a?a.push(n):t.set(r,[n])}return[...t.values()]}function YQ(e,t,n){if(t==="lineType"){e.lineType=n;return}if(t==="color"){e.color=String(n);return}e[t]=n}function WQ({group:e,variableLabels:t,layers:n,colorGroupsByValue:r}){const a=e[0],i=e.map(u=>Wt(u.scaleAestheticKey)),o=CN({scale:a.scale,aesthetics:i,layers:n}),c=Io({layers:n,scaleType:a.scale.spec.scaleType,variableName:a.variableName});return{aesthetics:e.map(u=>u.scaleAestheticKey),title:Ag(a.variableName,t),items:o.map(u=>qQ(u,e,i,c,r))}}function qQ(e,t,n,r,a){const i={};for(const c of t)YQ(i,c.scaleAestheticKey,c.scale.map(e.value));const o=KQ(e,t,n,r,a);return{value:e.value,label:XQ(t,e,a),visual:i,normalizedY:null,geom:e.geom,valueFormat:o}}function XQ(e,t,n){var r;return e[0].scaleAestheticKey!=="color"?null:((r=n.get(yt(t.value)))==null?void 0:r.label)??null}function KQ(e,t,n,r,a){var c,u;if(t[0].scaleAestheticKey==="color")return((c=a.get(yt(e.value)))==null?void 0:c.valueFormat)??r;const i=(u=e.owner)==null?void 0:u.layer,o=QQ(i,n);return i===void 0||o===null?r:Io({layers:[i],scaleType:t[0].scale.spec.scaleType,variableName:o})}function QQ(e,t){if(e===void 0)return null;for(const n of t){const r=e.mapping[n];if(r===void 0)continue;const a=pe(r);if(a!==null)return a}return null}function ZQ(e,t,n,r){if(t>1)return!1;const a=r.type==="polar";return n.some(i=>e.get(i.geom).legend.suppressWhenSingleItem||a)}function JQ(e,t,n,r,a){if(t!=="auto")return t;if(a.type==="polar")return"top";let i=!1,o=!1,c=!1;for(const f of r){const{sidePlacement:m}=e.get(f.geom).legend;m==="whenCrowded"&&(i=!0),m==="whenStackedVertical"&&(o=!0,rr(f.position)&&(c=!0))}const u=n>=IQ;return i&&o?"top":i?u?"right":"top":c?tZ(a)?"top":u?"right":"top":"top"}function eZ(e,t){return e==="pill"?"pill":_Q(t)?"direct":"pill"}function tZ(e){return e.type==="cartesian"&&e.mainAxis==="y"}function nZ(e){const t=e.scale.domain.map(yt);return JSON.stringify([e.variableName,e.guideType,...t])}function rZ(e,t){return Aw(t)?"discrete":`continuous:${e}`}function aZ(e){if(!e)return new Map;const t=new Map;
49return e.data.groupBy(pt.group).forEach(n=>{const r=n.findLast(u=>de(hn(u))||de(et(u)));if(!r)return;const a=Ua(r);if(!de(a))return;const i=Pn(r),o=hn(r)??et(r);if(!de(o))return;const c=de(i)?(i+o)/2:o;t.set(String(a),c)}),t}var iZ=class extends xs{constructor(t){super(),this.container=t}dependencies(t){return[t.scales,t.config.axes,t.config.legend,t.config.headline,t.layers,t.coordSystem,t.originalData]}run(t){const n=qK(t.originalData),r=xQ({scales:t.scales,layers:t.layers,valueLabels:XK(t.originalData,t.layers,n)}),a={scales:t.scales,config:t.config,layers:t.layers,coordSystem:t.coordSystem,variableLabels:n,colorGroups:r,geomRegistry:this.container.geomRegistry},i=EQ(a),o=BQ(a),c={...o,drawn:sZ(i,o.drawn)};return{axes:cQ(a,c.drawn),legends:c,headline:i,colorGroups:r,variableLabels:n}}},sZ=(e,t)=>(e==null?void 0:e.kind)!=="perGroup"||t.some(n=>n.display==="direct")?t:[],oZ=e=>yt([Ua(e)]),Mw=(e,t)=>yt([t!==null?e[t]??null:null]),rC=(e,t,n)=>{switch(e){case"series":return oZ(t);case"x-value":return Mw(t,n)}},lZ={bar:"observation-rerender",rule:null,line:"overlay-anchor",area:"overlay-anchor",point:"overlay-anchor",tile:"observation-rerender"};function cZ(e){const t=lZ[e]??null;return t===null?null:{strategy:t,composition:ON()}}function ON(){return{isDimmed:!1,matchedLayer:null,overlayCandidates:[]}}var uZ=class extends Jo{constructor(e){super(),this.container=e}dependencies(e){return[e.highlights,e.config.parsingLocale]}compileLayer(e,t){const n=e.highlight;if(n===null)return e;const r=t.highlights.filter(({layerId:i})=>i===void 0||i===e.id);if(r.length===0)return e;const a=dZ({layer:e,highlights:r,parsingLocale:t.config.parsingLocale,strategy:n.strategy,container:this.container});return{...e,highlight:{...n,composition:a}}}};function dZ({layer:e,highlights:t,parsingLocale:n,strategy:r,container:a}){const i=t.filter(j=>{const _=Mc(j.predicate,e.data);for(const P of _)a.diagnostics.addWarning({...P,message:`${P.message} Dropping this highlight.`});return _.length===0}),o=pe(e.mapping.x),c=yw(e,n),u=i.map(j=>({predicate:Ac(j.predicate,c),scope:j.scope})),f=u.some(({scope:j})=>j==="series"),m=u.some(({scope:j})=>j==="x-value"),p=r==="overlay-anchor",g=e.data.size(),y=f?new Array(g):null,x=m?new Array(g):null,S=p?new Array(g):null,A=new Uint8Array(g),M=new Set,C=new Set;let R=!1,L=0;for(const j of e.data){let _,P;y!==null&&(_=rC("series",j,o),y[L]=_),x!==null&&(P=rC("x-value",j,o),x[L]=P),S!==null&&(S[L]=j);for(const{predicate:U,scope:W}of u)if(U(j))switch(W){case"series":_!==void 0&&M.add(_);break;case"x-value":P!==void 0&&C.add(P);break;case"data-point":A[L]=1,R=!0;break}L++}if(M.size===0&&C.size===0&&!R)return ON();const N=new Uint8Array(g),O=[];let $=0;for(let j=0;j<g;j++){const _=y==null?void 0:y[j],P=x==null?void 0:x[j],U=_!==void 0&&M.has(_),W=P!==void 0&&C.has(P),q=A[j]===1;if(r==="observation-rerender")(U||q||W)&&(N[j]=1,$++);else if(U)N[j]=1,$++;else if(q||W){const ne=S==null?void 0:S[j];ne!==void 0&&O.push({observation:ne,observationIndex:j})}}const T=$>0?{...e,data:e.data.filterByMask(N)}:null;return{isDimmed:(r==="observation-rerender"||M.size>0)&&T!==null,matchedLayer:T,overlayCandidates:O}}var fZ=mt("__ungrouped__");function hZ(e){const t=e.getVariableNames().filter(a=>e.getType(a)==="temporal"&&z3(e.getValueFormat(a)));if(t.length===0)return e;const n=e.getValues(pt.group,{type:"categorical"});let r=e;for(const a of t){const i=r.getValues(a,{type:"temporal"}),o=new Map,c=i.map((u,f)=>{if(u===null)return null;const m=n[f]??fZ;let p=o.get(m);return p||(p=new P3,o.set(m,p)),p.incrementYearIfNeeded(u)});r=r.addVariable(a,"temporal",c)}return r}var mZ=()=>({defaults:[],overrides:[],warnings:[]}),pZ=class extends Jo{constructor(e,t,n,r,a,i){super(),this.container=e,this.transformCompiler=t,this.statCompiler=n,this.groupCompiler=r,this.geomCompiler=a,this.positionAdjusterCompiler=i}dependencies(e){return[e.data,e.mapping,aC(e),e.coords.coordType]}compileLayer(e,t){return this.runLayerPipeline({layer:e,data:this.transformCompiler.compile({data:t.data,transforms:e.transforms}),effectiveMapping:{...t.mapping,...e.mapping},xScaleIsDiscrete:aC(t),coordType:t.coords.coordType})}runLayerPipeline({layer:e,data:t,effectiveMapping:n,xScaleIsDiscrete:r,coordType:a}){var c;const i=wg({data:t,mapping:n}).pipe(({data:u,mapping:f})=>{const m=this.statCompiler.compute(e.stat,{data:u,mapping:f,xScaleIsDiscrete:r});return{data:m.data,mapping:{...f,...m.mapping}}}).pipe(({data:u,mapping:f})=>({data:this.groupCompiler.compute({data:u,mapping:f}).data,mapping:f})).pipe(({data:u,mapping:f})=>({data:hZ(u),mapping:f})).pipe(({data:u,mapping:f})=>{const m=this.geomCompiler.compile(e.geom,{data:u,mapping:f,params:e.params,coordType:a});return{data:m.data,mapping:{...f,...m.mapping}}}).pipe(({data:u,mapping:f})=>{const m=this.positionAdjusterCompiler.adjust(e.position,{data:u,mapping:f});return{data:m.data,mapping:{...f,...m.mapping}}}).result(),o=this.container.geomRegistry.get(e.geom);return{...i,id:e.id,geom:e.geom,position:e.position,yScaleType:e.yScaleType,params:e.params,interactive:e.interactive,dataLabels:e.dataLabels,summary:{},spatialKind:o.spatialKind,identityKey:o.identityKey,tooltip:o.tooltip,supportsDirectLabels:((c=o.legend.directLabelSupport)==null?void 0:c[e.position])===!0,highlight:cZ(e.geom),styles:mZ()}}};function aC(e){return e.scales.some(t=>t.scaledAesthetic==="x"&&t.scaleType==="discrete")}function _N(e,t){const[n]=t;if(n){for(const r of t)e.addError(r);throw new tr(n)}}function Sx(e,t){var i;const n=IN(e,t),r={};for(const{layer:o,scaleConstraints:c,crossAxis:u}of n)c.zeroBaseline===!0&&(r[u]={nice:(((i=r[u])==null?void 0:i.nice)??!0)&&o.position!=="fill"});const a=n.find(({scaleConstraints:o})=>o.discreteCrossAxis===!0);return{discreteAxis:n.some(({scaleConstraints:o})=>o.discreteMainAxis===!0)?"x":null,discreteCrossAxis:(a==null?void 0:a.crossAxis)??null,bandedAxes:yZ(n),zeroAxes:r,bandPadding:bZ(n),inferredColor:n.some(({scaleConstraints:o})=>o.inferredColor===!0)}}function gZ(e,t){const n=IN(e,t);for(const r of n){if(r.scaleConstraints.discreteCrossAxis!==!0)continue;const a=n.find(i=>i.scaleConstraints.zeroBaseline===!0&&i.crossAxis===r.crossAxis);if(a!==void 0)return{crossAxis:r.crossAxis,banded:iC(r),zeroAnchored:iC(a)}}return null}var iC=({layer:e,index:t})=>({layerId:e.id,layerIndex:t,geom:e.geom});function IN(e,t){const n=[];return t.forEach((r,a)=>{if(!e.has(r.geom))return;const{scaleConstraints:i}=e.get(r.geom);i!==void 0&&n.push({layer:r,index:a,scaleConstraints:i,crossAxis:tl(r.yScaleType)})}),n}function yZ(e){const t=new Set;for(const n of e)if(n.scaleConstraints.discreteCrossAxis===!0)for(const r of BN(n))t.add(r);return[...t]}function bZ(e){const t={};for(const n of e){const r=n.scaleConstraints.bandPadding;if(r!==void 0)for(const a of BN(n)){const i=t[a];t[a]=i===void 0?r:Math.min(i,r)}}return t}function BN({scaleConstraints:e,crossAxis:t}){return e.discreteCrossAxis!==!0?["x"]:e.discreteMainAxis===!0?["x",t]:[t]}var vZ=new Set(["label","group"]),xZ=class{constructor(e,t,n,r){this.container=e,this.transformCompiler=t,this.statRegistry=n,this.layerCompiler=r}get stats(){return this.layerCompiler.stats}compile(e){this.checkPreCompile(e);const t=this.layerCompiler.compile(e);return this.checkPostCompile(t),t}checkPreCompile(e){const t=[];
49e.layers.forEach((n,r)=>{const a=this.transformCompiler.compile({data:e.data,transforms:n.transforms}),i={...e.mapping,...n.mapping},o={layerId:n.id,layerIndex:r,geom:n.geom,position:n.position,stat:n.stat,effectiveMapping:i,data:a,coordType:e.coords.coordType,dataLabels:n.dataLabels};t.push(...this.validateLayer(o));const c=[...this.collectUndeclaredAesthetics(o),...this.collectPanelJustifyWarnings(o)];for(const u of c)this.container.diagnostics.addWarning(u)}),t.push(...this.validateSharedScaleDemands(e.layers)),_N(this.container.diagnostics,t)}checkPostCompile(e){cN(e)&&this.container.diagnostics.addWarning({code:"EMPTY_DATASET",message:"No data to plot â every layer resolved to zero observations.",suggestion:"Check the dataset has rows and that transforms (filters, joins) are not removing them all."})}validateLayer(e){return[...this.validateRequiredAesthetics(e),...this.validateVariableExistence(e),...this.validatePositionalAestheticTypes(e),...this.validateGeomMapping(e),...this.validateCoordSupport(e),...this.validateSupportedPosition(e)]}collectPanelJustifyWarnings({geom:e,effectiveMapping:t,data:n,layerIndex:r,coordType:a,dataLabels:i}){const{justify:o,showDataLabels:c}=i;if(!c||o!=="panel-start"&&o!=="panel-end")return[];if(a==="polar"||!this.container.geomRegistry.get(e).isComposite)return[];if(!Sw(n,t))return[];const u=o==="panel-end"?"end":"start";return[{code:"DATA_LABEL_PLACEMENT_COERCED",message:`Multiple ${e} groups would all pin their labels to the same panel edge; justify '${o}' will render as '${u}'.`,context:{layerIndex:r,expected:u,actual:o},suggestion:`Use justify '${u}' for this layer.`}]}validateRequiredAesthetics({layerId:e,layerIndex:t,geom:n,stat:r,effectiveMapping:a}){const i=[],{positionRoles:o,aesthetics:c}=this.container.geomRegistry.get(n),u=[...HK(o),...c.filter(p=>p.required).map(p=>p.name)],{computedVariables:f}=this.statRegistry.get(r.type),m=f;for(const p of u)m.has(p)||de(a[p])||i.push({code:"MISSING_AESTHETIC",message:`Layer '${e}': geom '${n}' requires aesthetic '${p}'`,context:{layerIndex:t,aesthetic:p}});return i}validateVariableExistence({layerId:e,layerIndex:t,geom:n,stat:r,effectiveMapping:a,data:i}){const o=[],{computedVariables:c}=this.statRegistry.get(r.type),{derivedVariables:u}=this.container.geomRegistry.get(n),f=c,m=new Set(u);for(const[p,g]of Object.entries(a)){if(f.has(p))continue;const y=pe(g);y===null||y===""||m.has(y)||i.hasVariable(y)||o.push({code:"UNKNOWN_VARIABLE",message:`Layer '${e}': aesthetic '${p}' references variable '${y}' which does not exist in the dataset`,context:{layerIndex:t,aesthetic:p,variableName:y}})}return o}validatePositionalAestheticTypes({layerId:e,layerIndex:t,geom:n,stat:r,effectiveMapping:a,data:i}){const{positionRoles:o}=this.container.geomRegistry.get(n),{computedVariables:c}=this.statRegistry.get(r.type),u=c,f=[];for(const m of o){if(!$K.has(m.role)||!de(m.aes)||u.has(m.aes)||m.role==="scalar"&&m.aes===m.axis)continue;const p=pe(a[m.aes]);if(p===null||!i.hasVariable(p))continue;const g=i.getType(p);g!=="numeric"&&f.push({code:"INCOMPATIBLE_TYPE",message:`Layer '${e}': aesthetic '${m.aes}' must be numeric, but variable '${p}' is ${g}`,context:{layerIndex:t,aesthetic:m.aes,variableName:p,variableType:g},suggestion:this.suggestNumericAestheticFix(m.aes,m.axis,a,i)})}return f}suggestNumericAestheticFix(e,t,n,r){const a=t==="y"?"x":"y";if(e===t){const i=pe(n[a]);if(i!==null&&r.hasVariable(i)&&r.getType(i)==="numeric")return`Swap the '${a}' and '${t}' mappings so the numeric variable is on '${t}'. Add coord.flip() to orient the graph horizontally.`}return`Map '${e}' to a numeric variable.`}validateGeomMapping({layerId:e,layerIndex:t,geom:n,stat:r,effectiveMapping:a}){const{validateMapping:i}=this.container.geomRegistry.get(n);if(i===void 0)return[];const{computedVariables:o}=this.statRegistry.get(r.type);return i({mapping:a,computedVariables:o}).map(c=>({...c,message:`Layer '${e}': ${c.message}`,context:{...c.context,layerIndex:t}}))}validateSharedScaleDemands(e){const t=gZ(this.container.geomRegistry,e);if(t===null)return[];const{crossAxis:n,banded:r,zeroAnchored:a}=t;return[{code:"CONFLICTING_SCALE_DEMANDS",message:`Layer '${r.layerId}' (geom '${r.geom}') needs '${n}' to be a band scale, but layer '${a.layerId}' (geom '${a.geom}') needs it to be a value axis anchored at zero. One scale cannot be both.`,context:{aesthetic:n,layerId:r.layerId,layerIndex:r.layerIndex},suggestion:"Drop one of the layers, or move one onto the secondary y axis with 'yScaleType'."}]}validateCoordSupport({layerId:e,layerIndex:t,geom:n,coordType:r}){const{supportedCoordTypes:a}=this.container.geomRegistry.get(n);return a.includes(r)?[]:[{code:"UNSUPPORTED_COORD",message:`Layer '${e}': geom '${n}' is not supported under ${r} coords`,context:{layerIndex:t}}]}validateSupportedPosition({layerId:e,layerIndex:t,geom:n,position:r}){const{supportedPositions:a}=this.container.geomRegistry.get(n);return a.includes(r)?[]:[{code:"UNSUPPORTED_POSITION",message:`Layer '${e}': geom '${n}' does not support the '${r}' position`,context:{layerIndex:t},suggestion:`Use one of: ${a.join(", ")}.`}]}collectUndeclaredAesthetics({layerId:e,layerIndex:t,geom:n,stat:r,effectiveMapping:a}){const{positionRoles:i,aesthetics:o}=this.container.geomRegistry.get(n),{computedVariables:c}=this.statRegistry.get(r.type),u=new Set([...UK(i),...o.map(g=>g.name)]),f=vZ,m=c,p=[];for(const g of Object.keys(a))de(a[g])&&(u.has(g)||f.has(g)||m.has(g)||p.push({code:"UNDECLARED_AESTHETIC",message:`Layer '${e}': geom '${n}' does not declare aesthetic '${g}'; the mapping is ignored`,context:{layerIndex:t,aesthetic:g}}));return p}},Ya=class{constructor(){this.positionRoles=[],this.identityKey="x-group",this.defaultPosition="identity",this.supportedPositions=DX,this.defaultInteractive=!0,this.aesthetics=[],this.derivedVariables=[],this.highlightStrategy="overlay-anchor",this.supportedCoordTypes=["cartesian","flip"],this.spatialKind="points",this.grid={},this.legend={},this.dataLabelCoordTypes=[],this.isComposite=!1,this.tooltip=[],this.summaries={}}resolveParams(t){return Go({},this.defaultParams,t.params)}},Tw=(e,t)=>{const n=pe(t.x);return!n||!["numeric","temporal"].includes(e.getType(n))?e:e.orderBy(n,"asc")},kw=(e,{coordSystem:t})=>{if(t.type==="polar")return null;const n=it(e),r=et(e);return!Et(n)||!Et(r)?null:{x:n,y:r}},wZ=class extends Ya{constructor(...e){super(...e),this.type="area",this.supportedCoordTypes=["cartesian","polar","flip"],this.defaultParams={interpolate:"linear",missingValues:"zero"},this.defaultPosition="stack",this.positionRoles=[{axis:"x",role:"point",valueKind:"value"},{axis:"y",role:"min",valueKind:"value"},{axis:"y",role:"max",valueKind:"value",aes:"y"}],this.aesthetics=[{kind:"visual",name:"color"},{kind:"visual",name:"strokeWidth"},{kind:"visual",name:"lineType"},{kind:"visual",name:"alpha"}],this.summaries={perGroupHeadline:!0},this.dataLabels={cartesian:{offset:8},flip:{offset:8}},this.dataLabelCoordTypes=["cartesian","flip"],this.isComposite=!0,this.legend={suppressWhe
49nSingleItem:!0,sidePlacement:"whenCrowded",directLabelSupport:{stack:!0,dodge:!0,identity:!0,fill:!0}},this.spatialKind="buckets",this.resolveAnchorPosition=kw}resolveParams(e){const t=super.resolveParams(e);return t.missingValues==="gap"?{...t,missingValues:"zero"}:t}compile({data:e,mapping:t}){return e=Tw(e,t),e.hasVariable(oe.yMin)||(e=e.addConstantVariable(oe.yMin,"numeric",0)),{data:e,mapping:{}}}},SZ=.7,AZ=.1,MZ=.03,TZ=.05,zN=e=>e[V1.role]??"solo",kZ=class extends Ya{constructor(...e){super(...e),this.type="bar",this.defaultParams={},this.defaultPosition="dodge",this.positionRoles=[{axis:"x",role:"point",valueKind:"value"},{axis:"y",role:"min",valueKind:"value"},{axis:"y",role:"max",valueKind:"value",aes:"y"}],this.aesthetics=[{kind:"visual",name:"color"},{kind:"visual",name:"alpha"}],this.summaries={grandTotal:!0,stackTotals:!0,perGroupHeadline:!0},this.grid={cartesian:{hideGridX:!0},flip:{hideGridX:!0}},this.legend={suppressWhenSingleItem:!0,sidePlacement:"whenStackedVertical",directLabelSupport:{stack:!0,fill:!0}},this.scaleConstraints={discreteMainAxis:!0,zeroBaseline:!0},this.dataLabels={polar:{format:"percentage"}},this.dataLabelCoordTypes=["cartesian","flip","polar"],this.highlightStrategy="observation-rerender",this.supportedCoordTypes=["cartesian","polar","flip"],this.spatialKind="rects",this.resolveAnchorBox=yx,this.resolveDataLabelDefaults=t=>rr(t)?{justify:"center"}:{},this.resolveBandFraction=(t,n)=>sC(t,n.type),this.resolveAnchorPosition=(t,{coordSystem:n,position:r,purpose:a,align:i})=>{if(n.type==="polar")return EZ(t);if(i!==void 0){const p=yx(t,n);return p===null?null:Af(p,i)}const o=rr(r),c={isSolo:!o||zN(t)==="solo",isNegative:o&&CZ(t),purpose:a};if(n.mainAxis==="x"){const p=Fr(t),g=Mr(t),y=oC({lowerBound:Pn(t),upperBound:hn(t)??et(t),options:c});return p===null||g===null||y===null?null:{x:(p+g)/2,y}}const u=Pn(t),f=hn(t),m=oC({lowerBound:Fr(t),upperBound:Mr(t)??it(t),options:c});return u===null||f===null||m===null?null:{x:m,y:(u+f)/2}}}resolveParams(e){const{width:t,...n}=super.resolveParams(e),r=this.resolveWidthParam(t,e.diagnostics);return{...n,...r!==void 0&&{width:r}}}compile({data:e,mapping:t,params:n,coordType:r}){const a=sC(n,r);e=Tw(e,t),e.hasVariable(oe.yMin)||(e=e.addConstantVariable(oe.yMin,"numeric",0));const i=a/2;return e=e.addConstantVariable(oe.xMin,"numeric",-i).addConstantVariable(oe.xMax,"numeric",i),{data:e,mapping:{}}}resolveWidthParam(e,t){if(e===void 0)return;const n=typeof e=="number"&&Number.isFinite(e)?e:null;if(n!==null&&n>0&&n<=1)return n;const r=n!==null&&n>1?1:void 0;return t==null||t.addWarning({code:"INVALID_GEOM_PARAM",message:`Bar width must be a fraction in (0, 1], got ${String(e)}; falling back to ${r??"the default band"}.`,context:{geom:this.type,param:"width",expected:"0 < width <= 1",actual:n??String(e)},suggestion:"Set params.width to a fraction of the category band in (0, 1]."}),r}},sC=({width:e},t)=>e!==void 0?e:t==="polar"?1:SZ,EZ=e=>{const t=Fr(e),n=Mr(e),r=Pn(e),a=hn(e);if(t===null||n===null||r===null||a===null)return null;const i=(t+n)/2,o=(r+a)/2;return{x:.5+.5*o*Math.sin(i),y:.5-.5*o*Math.cos(i)}},CZ=e=>{const t=tN(e);return Et(t)&&t<0},oC=e=>{const{lowerBound:t,upperBound:n,options:r}=e,a=r.isNegative?t:n;if(a===null)return null;if(r.purpose==="value"||r.isSolo)return a;const i=r.isNegative?n:t;return i===null?null:(i+a)/2},RZ=class extends Ya{constructor(...e){super(...e),this.type="line",this.supportedCoordTypes=["cartesian","polar","flip"],this.defaultParams={interpolate:"linear",missingValues:"gap"},this.positionRoles=[{axis:"x",role:"point",valueKind:"value"},{axis:"y",role:"point",valueKind:"value"}],this.aesthetics=[{kind:"visual",name:"color"},{kind:"visual",name:"strokeWidth"},{kind:"visual",name:"lineType"},{kind:"visual",name:"alpha"}],this.summaries={perGroupHeadline:!0},this.dataLabels={cartesian:{offset:8},flip:{offset:8}},this.dataLabelCoordTypes=["cartesian","flip"],this.isComposite=!0,this.legend={suppressWhenSingleItem:!0,sidePlacement:"whenCrowded",directLabelSupport:{stack:!0,dodge:!0,identity:!0,fill:!0}},this.spatialKind="buckets",this.resolveAnchorBox=yx,this.resolveAnchorPosition=kw}compile(e){return{data:Tw(e.data,e.mapping),mapping:{}}}},LZ=class extends Ya{constructor(...e){super(...e),this.type="point",this.supportedCoordTypes=["cartesian","polar","flip"],this.defaultParams={},this.positionRoles=[{axis:"x",role:"point",valueKind:"value"},{axis:"y",role:"point",valueKind:"value"}],this.aesthetics=[{kind:"visual",name:"color"},{kind:"visual",name:"size"},{kind:"visual",name:"alpha"}],this.summaries={perGroupHeadline:!0},this.dataLabelCoordTypes=["cartesian","flip"],this.resolveAnchorPosition=kw,this.resolveValueSource=(t,n)=>{if(n!=="label")return null;const r=pe(t.size);return r!==null?{variable:r}:null}}compile({data:e}){return{data:e,mapping:{}}}},DZ=class extends Ya{constructor(...e){super(...e),this.type="rule",this.defaultParams={labelPosition:"start"},this.defaultInteractive=!1,this.positionRoles=[{axis:"y",role:"scalar",valueKind:"value",aes:"y"},{axis:"x",role:"scalar",valueKind:"value",aes:"x"}],this.highlightStrategy=null,this.spatialKind="noop",this.validateMapping=({mapping:t,computedVariables:n})=>{const r=n.has("x")||Et(Sr(t.x)),a=n.has("y")||Et(Sr(t.y));return r&&a?[{code:"INVALID_RULE_MAPPING",message:"rule geom requires exactly one of 'x' or 'y', both were provided"}
49]:!r&&!a?[{code:"INVALID_RULE_MAPPING",message:"rule geom requires a numeric value on 'x' or 'y'"}]:[]}}compile({data:e,mapping:t}){const n=lC(t.y,e);if(n!==null)return{data:new fs({[hm.y]:{type:"numeric",values:[n.value],valueFormat:n.sourceFormat}}),mapping:{y:hm.y,x:void 0}};const r=lC(t.x,e);return r!==null?{data:new fs({[hm.x]:{type:"numeric",values:[r.value],valueFormat:r.sourceFormat}}),mapping:{x:hm.x,y:void 0}}:{data:new fs,mapping:{x:void 0,y:void 0}}}},lC=(e,t)=>{const n=Sr(e);if(Et(n))return{value:n,sourceFormat:void 0};const r=pe(e);if(r===null||!xH(r)||!t.hasVariable(r))return null;const[a]=t.getValues(r);return Et(a)?{value:a,sourceFormat:t.getValueFormat(r)}:null},NZ=e=>{const t=pe(e.color);return t!==null?{variable:t}:null},jZ=class extends Ya{constructor(...e){super(...e),this.type="tile",this.defaultParams={},this.positionRoles=[{axis:"x",role:"point",valueKind:"value"},{axis:"x",role:"min",valueKind:"value"},{axis:"x",role:"max",valueKind:"value"},{axis:"y",role:"point",valueKind:"value"},{axis:"y",role:"min",valueKind:"value"},{axis:"y",role:"max",valueKind:"value"}],this.supportedPositions=["identity"],this.supportedCoordTypes=["cartesian"],this.aesthetics=[{kind:"visual",name:"color",required:!0}],this.scaleConstraints={discreteMainAxis:!0,discreteCrossAxis:!0,bandPadding:0,inferredColor:!0},this.grid={cartesian:{hideGridX:!0,hideGridY:!0}},this.legend={suppressWhenSingleItem:!1},this.dataLabels={cartesian:{showDataLabels:!0}},this.dataLabelCoordTypes=["cartesian"],this.highlightStrategy="observation-rerender",this.spatialKind="cells",this.identityKey="x-y",this.tooltip=[{aes:"color"}],this.resolveValueSource=NZ,this.resolveAnchorPosition=t=>{const n=Fr(t),r=Mr(t),a=Pn(t),i=hn(t);return n===null||r===null||a===null||i===null?null:{x:(n+r)/2,y:(a+i)/2}}}compile({data:e}){return{data:e.addConstantVariable(oe.xMin,"numeric",-.5).addConstantVariable(oe.xMax,"numeric",.5).addConstantVariable(oe.yMin,"numeric",-.5).addConstantVariable(oe.yMax,"numeric",.5),mapping:{}}}},OZ=[new kZ,new LZ,new RZ,new wZ,new DZ,new jZ],Mg=class extends Xc{constructor(){super("geom");for(const t of OZ)this.register(t.type,t)}},eu=class{compute(t){return t.data.size()===0?{data:t.data,mapping:{}}:this.computeStat(t)}},_Z=class extends eu{constructor(...e){super(...e),this.type="count",this.computedVariables=new Set(["y"])}computeStat({data:e,mapping:t}){const n=pe(t.x);if(!de(n))throw new tr({code:"MISSING_STAT_VARIABLE",message:"'x' variable is required for 'count' stat",context:{aesthetic:"x"},suggestion:"Map a variable to 'x' when using the 'count' stat."});if(pe(t.y)!==null)throw new tr({code:"CONFLICTING_STAT_MAPPING",message:"Cannot map 'y' variable together with 'count' stat",context:{aesthetic:"y"},suggestion:"Remove the 'y' mapping; the 'count' stat computes it."});const r=[...new Set([n,...kf(e,t)])];return{data:e.groupBy(...r).rollup({[Lo.count]:{variableName:n,aggregation:"count"}}),mapping:{y:Lo.count}}}},IZ=class extends eu{constructor(...e){super(...e),this.type="identity",this.computedVariables=new Set}computeStat({data:e}){return{data:e,mapping:{}}}},BZ=class extends eu{constructor(...e){super(...e),this.type="mean",this.computedVariables=new Set(["y"])}computeStat({data:e,mapping:t}){const n=pe(t.y);if(!de(n))throw new tr({code:"MISSING_STAT_VARIABLE",message:"'y' variable is required for 'mean' stat",context:{aesthetic:"y"},suggestion:"Map a numeric variable to 'y' when using the 'mean' stat."});return{data:e.rollup({[Lo.mean]:{variableName:n,aggregation:"mean"}}),mapping:{y:Lo.mean}}}},zZ=2,VN=1440*60*1e3,VZ=class extends eu{constructor(...e){super(...e),this.type="smooth",this.computedVariables=new Set}computeStat({data:e,mapping:t,spec:n,xScaleIsDiscrete:r}){if(n.type!=="smooth")throw new Be({message:`SmoothStat received a spec of type '${n.type}'`});const a=pe(t.x),i=pe(t.y);if(!de(a))throw new tr({code:"MISSING_STAT_VARIABLE",message:"'x' variable is required for 'smooth' stat",context:{aesthetic:"x"},suggestion:"Map a variable to 'x' when using the 'smooth' stat."});if(!de(i))throw new tr({code:"MISSING_STAT_VARIABLE",message:"'y' variable is required for 'smooth' stat",context:{aesthetic:"y"},suggestion:"Map a numeric variable to 'y' when using the 'smooth' stat."});const o=e.getType(a),c=e.getType(i);if(c!=="numeric")throw new tr({code:"INCOMPATIBLE_TYPE",message:`'smooth' stat requires a numeric 'y' (got '${c}' for variable '${i}')`,context:{aesthetic:"y",variableName:i,variableType:c}});const u=kf(e,t),f=YZ(a,o,i,u,e);return u.length===0?cC({data:e,xVariable:a,xType:o,yVariable:i,spec:n,output:f,groupObservation:{},xScaleIsDiscrete:r}):e.groupBy(...u).forEach(m=>{const p=WZ(m,u);cC({data:m,xVariable:a,xType:o,yVariable:i,spec:n,output:f,groupObservation:p,xScaleIsDiscrete:r})}),{data:f.build(),mapping:{}}}},cC=({data:e,xVariable:t,xType:n,yVariable:r,spec:a,output:i,groupObservation:o,xScaleIsDiscrete:c})=>{const{observations:u,temporalOrigin:f}=PZ({data:e,xVariable:t,yVariable:r,xType:n});u.length<zZ||(c?GZ({observations:u,spec:a,output:i,groupObservation:o}):HZ({observations:u,xType:n,temporalOrigin:f,spec:a,output:i,groupObservation:o}))},PZ=({data:e,xVariable:t,yVariable:n,xType:r})=>{const a=e.getValues(t),i=e.getValues(n,{type:"numeric"}),o=r==="temporal"?$Z(a):null,c=[],u=new Map;for(let f=0;f<a.length;f++){const m=a[f],p=i[f];
49if(!de(m)||!de(p)||!Number.isFinite(p))continue;const g=FZ({xValue:m,xType:r,categoryRank:u,temporalOrigin:o});g!==null&&c.push({x:g,y:p,originalX:m})}return{observations:c,temporalOrigin:o}},$Z=e=>{let t=null;for(const n of e){if(!Ar(n))continue;const r=n.getTime();(t===null||r<t)&&(t=r)}return t},FZ=({xValue:e,xType:t,categoryRank:n,temporalOrigin:r})=>{switch(t){case"numeric":return!Et(e)||!Number.isFinite(e)?null:e;case"temporal":{if(!Ar(e))return null;const a=e.getTime();return r===null?a:(a-r)/VN+1}case"categorical":{if(!lg(e))return null;const a=n.get(e);if(a!==void 0)return a;const i=n.size+1;return n.set(e,i),i}default:throw new Be({message:`Unexpected xType: ${t}`})}},HZ=({observations:e,xType:t,temporalOrigin:n,spec:r,output:a,groupObservation:i})=>{const o=PN(r,e);for(const[c,u]of o){if(!Number.isFinite(c)||!Number.isFinite(u))continue;const f=t==="temporal"?UZ(c,n):c;a.push({x:f,y:u,groupObservation:i})}},UZ=(e,t)=>t===null?new Date(e):new Date((e-1)*VN+t),GZ=({observations:e,spec:t,output:n,groupObservation:r})=>{const a=new Map;for(const c of e)a.has(c.x)||a.set(c.x,c.originalX);const i=[...a.keys()].sort((c,u)=>c-u);if(t.method==="loess"){const c=PN(t,e),u=new Map;for(const[f,m]of c)Number.isFinite(m)&&(u.has(f)||u.set(f,m));for(const f of i){const m=u.get(f),p=a.get(f);m===void 0||p===void 0||n.push({x:p,y:m,groupObservation:r})}return}const o=$N(t,e);for(const c of i){const u=a.get(c),f=o.predict(c);u===void 0||!Number.isFinite(f)||n.push({x:u,y:f,groupObservation:r})}},PN=(e,t)=>e.method==="loess"?zG().x(n=>n.x).y(n=>n.y).bandwidth(e.bandwidth)(t):$N(e,t),$N=(e,t)=>{const n=a=>a.x,r=a=>a.y;switch(e.method){case"linear":return wD().x(n).y(r)(t);case"exponential":return IG().x(n).y(r)(t);case"logarithmic":return FG().x(n).y(r)(t);case"quadratic":return SD().x(n).y(r)(t);case"power":return YG().x(n).y(r)(t);case"polynomial":return HG().x(n).y(r).order(e.order)(t);case"loess":throw new Be({message:"'loess' does not expose a 'predict' function"})}},YZ=(e,t,n,r,a)=>{const i=[],o=[],c=Object.fromEntries(r.map(u=>[u,[]]));return{push:({x:u,y:f,groupObservation:m})=>{var p;i.push(u),o.push(f);for(const g of r)(p=c[g])==null||p.push(m[g]??null)},build:()=>{const u={[e]:{type:t,values:i,valueFormat:a.getValueFormat(e)},[n]:{type:"numeric",values:o,valueFormat:a.getValueFormat(n)}};for(const f of r)u[f]={type:a.getType(f),values:c[f]??[],valueFormat:a.getValueFormat(f)};return new fs(u)}}},WZ=(e,t)=>{const n={};for(const r of t)n[r]=e.getValues(r)[0]??null;return n},qZ=class extends eu{constructor(...e){super(...e),this.type="sum",this.computedVariables=new Set(["y"])}computeStat({data:e,mapping:t}){const n=pe(t.y);if(!de(n))throw new tr({code:"MISSING_STAT_VARIABLE",message:"'y' variable is required for 'sum' stat",context:{aesthetic:"y"},suggestion:"Map a numeric variable to 'y' when using the 'sum' stat."});const r=pe(t.x),a=[...new Set([...r===null?[]:[r],...kf(e,t)])];return{data:e.groupBy(...a).rollup({[Lo.sum]:{variableName:n,aggregation:"sum"}}),mapping:{y:Lo.sum}}}},XZ=[new IZ,new _Z,new VZ,new BZ,new qZ],KZ=class extends Xc{constructor(){super("stat");for(const e of XZ)this.register(e.type,e)}};function QZ({geoms:e,stats:t,transforms:n}){const r=new Mg,a=new KZ,i=new G1;for(const o of e)r.register(o.type,o);for(const o of t)a.register(o.type,o);for(const o of n)i.register(o.transformType,o);return{geomRegistry:r,statRegistry:a,transformRegistry:i}}function Ew(e){if("definition"in e)return e.definition;if(HN(e)||UN(e)||GN(e))return e}function FN(e){const t=[],n=[],r=[];for(const a of e){const i=Ew(a);i&&(HN(i)?t.push(i):UN(i)?n.push(i):GN(i)&&r.push(i))}return{geoms:t,stats:n,transforms:r,warnings:[...qb("geom",t,a=>a.type),...qb("stat",n,a=>a.type),...qb("transform",r,a=>a.transformType),...ZZ(t),...JZ(t)]}}function ZZ(e){const t=[];for(const n of e)n.spatialKind==="render-hit-test"&&(n.identityKey!=="x-group"&&n.identityKey!=="x-y"||t.push({code:"RENDER_HIT_TEST_IDENTITY",message:`The render-hit-test geom '${n.type}' uses the position-derived '${n.identityKey}' identity, which has no meaning for render-owned geometry; its hover lookup will be empty.`,context:{kind:"geom",requested:n.type},suggestion:"Declare 'identityKey' as a column the geom owns (`{ variable: '<column>' }`) or 'index', so a hit-test result resolves to an observation."}));return t}function JZ(e){const t=[];for(const n of e)n.spatialKind!=="cells"||!n.supportedCoordTypes.includes("polar")||t.push({code:"SPATIAL_KIND_COORD_UNSUPPORTED",message:`The geom '${n.type}' declares polar support, but its 'cells' hit-test shape has no polar projection; its observations will not respond to hover under polar coords.`,context:{kind:"geom",requested:n.type},suggestion:"Drop 'polar' from 'supportedCoordTypes', or declare 'rects' as the spatial kind so a bandless polar layer hit-tests as an enclosure."});return t}function qb(e,t,n){const r=new Map;for(const i of t){const o=n(i),c=r.get(o);c?c.add(i):r.set(o,new Set([i]))}const a=[];for(const[i,o]of r)o.size<2||a.push({code:"DUPLICATE_REGISTERED_TYPE",message:`Multiple plugins register the ${e} '${i}' (${o.size} definitions); the last in the array wins.`,context:{kind:e,requested:i},suggestion:`Remove the duplicate ${e} plugin(s) named '${i}', or rename them so each registers a distinct ${e}.`});return a}var HN=e=>e instanceof Ya,UN=e=>e instanceof eu,GN=e=>"transformType"in e&&typeof e.apply=="function",eJ=class{constructor(e){this.registry=e}adjust(e,t){return this.registry.get(e).adjust(t)}},Tg=class{},tJ=class extends Tg{constructor(...e){super(...e),this.type="dodge"}adjust({data:e,mapping:t}){if(!pe(t.x))return{data:e,mapping:{}};const n=e.getValues(pt.group,{type:"categorical",distinct:!0,skipNulls:!0});if(n.length===0)return{data:e,mapping:{}};const r=e.size(),a=e.getValues(pt.group,{type:"categorical"}),i=nJ(e)??[-.7/2,.7/2],o=n.length>1?AZ:0,c=rw().domain(n.map(String)).range(i).paddingInner(o).paddingOuter(0),u=c.bandwidth(),f=new Array(r).fill(null),m=new Array(r).fill(null);for(let p=0;p<r;p++){const g=a[p];if(!de(g))continue;const y=c(String(g));de(y)&&(f[p]=y,m[p]=y+u)}return{data:e.addVariable(oe.xMin,"numeric",f).addVariable(oe.xMax,"numeric",m),mapping:{}}}},nJ=e=>{var r,a;const t=(r=e.getConstant(oe.xMin))==null?void 0:r.value,n=(a=e.getConstant(oe.xMax))==null?void 0:a.value;return typeof t!="number"||typeof n!="number"?null:[t,n]},uC=mt("__ungrouped__"),YN=(e,t)=>{const n=pe(t.x),r=pe(t.y);if(!n||!r)return null;const a=e.getValues(pt.group,{type:"categorical",distinct:!0,skipNulls:!0}),i=a.length===0,o=i?[uC]:a,c=e.getValues(n),u=e.getValues(r,{type:"numeric"}),f=e.getValues(pt.group,{type:"categorical"}),m=e.size(),p=new Map;for(let g=0;g<m;g++){const y=yt(c[g]??null),x=f[g],S=i?uC:x;if(!de(S))continue;let A=p.get(y);A||(A=new Map,p.set(y,A));let M=A.get(S);M||(M=[],A.set(S,M)),M.push(g)}return{yValues:u,observationIndicesByXAndGroup:p,uniqueGroupKeys:o,observationCount:m}},WN=(e,t,n,r)=>{const a=new Array(r).fill(null);for(const[,i]of n){const o=[];let c=-1,u=1/0,f=-1/0,m=-1,p=1/0,g=-1/0;for(const y of i.values())for(const x of y){const S=e[x],A=t[x];!de(S)||!de(A)||(o.push(x),(S<u||S===u&&A>f)&&(c=x,u=S,f=A),(A>g||A===g&&S<p)&&(m=x,p=S,g=A))}for(const y of o)a[y]=rJ(y===c,y===m)}return a},rJ=(e,t)=>
49e&&t?"solo":e?"floor":t?"ceiling":"middle",aJ=class extends Tg{constructor(...e){super(...e),this.type="fill"}adjust({data:e,mapping:t}){const n=YN(e,t);if(n===null)return{data:e,mapping:{}};const{yValues:r,observationIndicesByXAndGroup:a,uniqueGroupKeys:i,observationCount:o}=n,c=[...r],u=new Array(o).fill(0);for(const[,m]of a){let p=0,g=0;for(const S of i){const A=m.get(S);if(A!==void 0)for(const M of A){const C=r[M];C!=null&&(C>=0?p+=C:g-=C)}}let y=0,x=0;for(const S of i){const A=m.get(S);if(A!==void 0)for(const M of A){const C=r[M];if(C===void 0)continue;if(C===null){u[M]=null,c[M]=null;continue}const R=C>=0?p:g;if(R===0){u[M]=0,c[M]=0;continue}const L=C/R;C>=0?(u[M]=y,c[M]=y+=L):(c[M]=x,u[M]=x+=L)}}}const f=WN(u,c,a,o);return{data:e.addVariable(oe.yMin,"numeric",u).addVariable(oe.yMax,"numeric",c).addVariable(oe.yRaw,"numeric",r).addVariable(V1.role,"categorical",f),mapping:{}}}},iJ=class extends Tg{constructor(...e){super(...e),this.type="identity"}adjust({data:e}){return{data:e,mapping:{}}}},sJ=class extends Tg{constructor(...e){super(...e),this.type="stack"}adjust({data:e,mapping:t}){const n=YN(e,t);if(n===null)return{data:e,mapping:{}};const{yValues:r,observationIndicesByXAndGroup:a,uniqueGroupKeys:i,observationCount:o}=n,c=[...r],u=new Array(o).fill(0);for(const[,g]of a){let y=0,x=0;for(const S of i){const A=g.get(S);if(A!==void 0)for(const M of A){const C=r[M];if(C!==void 0){if(C===null){u[M]=null,c[M]=null;continue}C>=0?(u[M]=y,c[M]=y+=C):(c[M]=x,u[M]=x+=C)}}}}const f=WN(u,c,a,o);let m=e.addVariable(oe.yMin,"numeric",u).addVariable(oe.yMax,"numeric",c).addVariable(oe.yRaw,"numeric",r).addVariable(V1.role,"categorical",f);const p=pe(t.y);return p!==null&&(m=m.addVariable(p,"numeric",c)),{data:m,mapping:{}}}},oJ=class extends Xc{constructor(){super("position"),this.register("identity",new iJ),this.register("stack",new sJ),this.register("fill",new aJ),this.register("dodge",new tJ)}},lJ=class{map({data:e,layer:t,getPositionScale:n,geomRegistry:r}){let a=e;const i=r.get(t.geom);for(const o of i.positionRoles){if(o.role!=="scalar"||!de(o.aes)||ww(o.aes))continue;const c=pe(t.mapping[o.aes]);if(!de(c)||!a.hasVariable(c))continue;const u=n(MN(o.axis,t.yScaleType));if(!u)continue;const f=a.getValues(c,{type:"numeric"}).map(m=>de(m)?u.map(m):null);a=a.addVariable(vH(o.aes),"numeric",f)}return a}},cJ=class{map({data:e,layer:t,getPositionScale:n}){const r=pe(t.mapping.x),a=n("x");if(!r||!a)return e;const i=e.getValues(r).map(o=>de(o)?a.map(o):null);return e.addVariable(oe.x,"numeric",i)}},uJ=class{map({data:e,getPositionScale:t}){const n=t("x");if(!(n!=null&&n.bandwidth)||!e.hasVariable(oe.x)||!e.hasVariable(oe.xMin)||!e.hasVariable(oe.xMax))return e;const r="reverse"in n.spec&&n.spec.reverse===!0,a=e.getValues(oe.x,{type:"numeric"}),i=e.getValues(oe.xMin,{type:"numeric"}),o=e.getValues(oe.xMax,{type:"numeric"}),c=e.size(),u=new Array(c),f=new Array(c);for(let m=0;m<c;m++){const p=a[m],g=i[m],y=o[m];if(de(p)&&de(g)&&de(y)){const x=r?-y:g,S=r?-g:y;u[m]=p+x*n.bandwidth,f[m]=p+S*n.bandwidth}else u[m]=null,f[m]=null}return e.addVariable(oe.xMin,"numeric",u).addVariable(oe.xMax,"numeric",f)}},dJ=class{map({data:e,layer:t,getPositionScale:n}){const r=pe(t.mapping.y),a=n(tl(t.yScaleType));if(!r||!a)return e;const i=e.getValues(r).map(o=>de(o)?a.map(o):null);return e.addVariable(oe.y,"numeric",i)}},fJ=class{map({data:e,layer:t,getPositionScale:n}){const r=n(tl(t.yScaleType));if(!r||!e.hasVariable(oe.yMin)||!e.hasVariable(oe.yMax))return e;const a=r.bandwidth,i=de(a)&&e.hasVariable(oe.y)?hJ(e,r,a):mJ(e,r);return e.addVariable(oe.yMin,"numeric",i.min).addVariable(oe.yMax,"numeric",i.max)}};function hJ(e,t,n){const r=e.getValues(oe.y,{type:"numeric"}),a=e.getValues(oe.yMin,{type:"numeric"}),i=e.getValues(oe.yMax,{type:"numeric"}),o="reverse"in t.spec&&t.spec.reverse===!0,c=e.size(),u=qN(c);for(let f=0;f<c;f++){const m=r[f],p=a[f],g=i[f];!de(m)||!de(p)||!de(g)||(u.min[f]=m+(o?-g:p)*n,u.max[f]=m+(o?-p:g)*n)}return u}function mJ(e,t){const n=e.getValues(oe.yMin,{type:"numeric"}),r=e.getValues(oe.yMax,{type:"numeric"}),a=e.size(),i=qN(a);for(let o=0;o<a;o++){const c=n[o],u=r[o];!de(c)||!de(u)||(i.min[o]=t.map(c),i.max[o]=t.map(u))}return i}function qN(e){return{min:new Array(e).fill(null),max:new Array(e).fill(null)}}var pJ=[new cJ,new dJ,new uJ,new fJ,new lJ];function gJ(e,t){const n=e[t];return(n==null?void 0:n.kind)==="position"?n:null}var yJ=class extends Jo{constructor(e,t=pJ){super(),this.container=e,this.mappers=t}dependencies(e){return[e.scales.x,e.scales.y,e.scales.ySecondary]}compileLayer(e,t){const n=a=>gJ(t.scales,a);let r=e.data;for(const a of this.mappers)r=a.map({data:r,layer:e,getPositionScale:n,geomRegistry:this.container.geomRegistry});return{...e,data:r}}},bJ=class extends xs{constructor(e,t){super(),this.container=e,this.registry=t}dependencies(e){return[e.layers,e.scales]}run(e){this.validateScaleTypeCompatibility(e);const t=new Map;for(const a of e.scales)t.set(a.scaledAesthetic,a);const n=this.collectValues(e.layers,t),r={};for(const[a,i]of t){const o=n.get(a)??[];r[a]=this.registry.get(i.scaleType).compile(i,o)}return r}validateScaleTypeCompatibility(e){const t=[];for(const n of e.scales){const{compatibleDataTypes:r}=this.registry.get(n.scaleType),a=Wt(n.scaledAesthetic),i=e.layers.find(u=>de(u.mapping[a]));if(!i)continue;const o=pe(i.mapping[a]);if(!de(o)||!i.data.hasVariable(o))continue;const c=i.data.getType(o);if(r.includes(c)||t.push({code:"INCOMPATIBLE_TYPE",message:`Scale '${n.scaledAesthetic}' (${n.scaleType}) is incompatible with variable '${o}' (${c})`,context:{aesthetic:a,variableName:o,scaleType:n.scaleType,variableType:c}}),n.scaledAesthetic==="lineType"&&c!=="categorical"){const u=c==="temporal"?"Bucket the variable into categorical periods (e.g. quarter, year) first.":"Bin the variable into categorical buckets first.";
49t.push({code:"INCOMPATIBLE_TYPE",message:`Scale 'lineType' is discrete-only and cannot be mapped to ${c} variable '${o}'. ${u}`,context:{aesthetic:a,variableName:o,scaleType:n.scaleType,variableType:c},suggestion:u})}}_N(this.container.diagnostics,t)}collectValues(e,t){var r;const n=new Map;for(const a of e){const i=this.resolveCustomPositionalAxes(a);for(const[o,c]of Object.entries(a.mapping)){if(!de(c))continue;const u=o==="y"?tl(a.yScaleType):o,f=i.get(o)??(AN(u)?u:void 0);if(!de(f)||!t.has(f))continue;const m=(r=t.get(f))==null?void 0:r.scaleType,p=this.resolveVariables(o,c,a.data,m);this.collectFromVariables(a.data,p,f,n)}}return n}resolveCustomPositionalAxes(e){const t=new Map,n=this.container.geomRegistry.get(e.geom);for(const r of n.positionRoles)r.role!=="scalar"||!de(r.aes)||ww(r.aes)||t.set(r.aes,MN(r.axis,e.yScaleType));return t}resolveVariables(e,t,n,r){if(e==="y"&&r!=="discrete"&&this.hasPositionAdjustedY(n))return[oe.yMin,oe.yMax];const a=pe(t);return!a||!n.hasVariable(a)?[]:[a]}hasPositionAdjustedY(e){return e.hasVariable(oe.yMin)&&e.hasVariable(oe.yMax)}collectFromVariables(e,t,n,r){if(t.length===0)return;let a=[];for(const o of t)a=a.concat(e.getValues(o));const i=r.get(n);r.set(n,i?i.concat(a):a)}},vJ=["RdBu","BrBG","PuOr","Spectral"],xJ={"red-blue":"RdBu","brown-teal":"BrBG","purple-orange":"PuOr",spectral:"Spectral"},wJ=new Set(vJ.map(e=>e.toLowerCase()));function XN(e){const t=e.toLowerCase(),n=xJ[t];return n?n.toLowerCase():t}function SJ(e){return wJ.has(XN(e))}var AJ={rgb:dx,lab:BY,hcl:VY,hsl:IY},MJ={viridis:Vq,magma:Pq,inferno:$q,plasma:Fq,cividis:Bq,turbo:zq,blues:kq,greens:Cq,greys:Lq,oranges:Iq,purples:Nq,reds:Oq,rdbu:Sq,brbg:bq,puor:xq,spectral:Mq};function TJ(e){const t=kJ(e);return e.reverse?n=>t(1-n):t}function kJ(e){const t=AJ[e.interpolate];if(e.range&&e.range.length>=2)return mE(t,e.range.map(n=>String(n)));if(e.scheme){const n=MJ[XN(e.scheme)];if(n)return n}return mE(t,[...xU])}var Ef=class{createPositionScale(t,n){return{kind:"position",aesthetic:Wt(t.scaledAesthetic),spec:t,...n}}createVisualScale(t,n){return{kind:"visual",aesthetic:Wt(t.scaledAesthetic),spec:t,...n}}},EJ=class extends Ef{constructor(e){super(),this.container=e,this.compatibleDataTypes=["numeric"]}compile(e,t){if(e.scaleType!=="continuous")throw new Be({message:"ContinuousScale.compile received non-continuous spec"});const n=el(e.scaledAesthetic),r=e.scaledAesthetic==="color",a=this.computeDataDomain(t,e);return r?this.buildColorScale(a,e):n?this.buildPositionScale(a,e):this.buildVisualScale(a,e)}computeDataDomain(e,t){let n=1/0,r=-1/0;for(const a of e)typeof a=="number"&&(a<n&&(n=a),a>r&&(r=a));return n===1/0?[0,0]:(t.zero&&(n>0&&(n=0),r<0&&(r=0)),[n,r])}createD3Scale(e,t,n){let r=[n.domainMin??e[0],n.domainMax??e[1]];const a=n.transform==="log"&&CJ(r);n.transform==="log"&&!a&&this.container.diagnostics.addWarning({code:"INCOMPATIBLE_SCALE_DOMAIN",message:`Log scale on '${n.scaledAesthetic}' needs a strictly positive or negative domain, but the domain is [${e[0]}, ${e[1]}] â rendering a linear scale instead.`,context:{aesthetic:Wt(n.scaledAesthetic),scaleType:n.scaleType,actual:e},suggestion:"Filter out non-positive values or set a positive domainMin so the log scale can apply."});const i=a?VD():n.transform==="sqrt"?fW():Ym();n.nice&&!a&&(r=i.copy().domain(r).nice().domain());const o=n.domainMin??r[0],c=n.domainMax??r[1];return i.domain([o,c]).range(t).clamp(n.clamp)}buildPositionScale(e,t){const n=t.reverse?[1,0]:[0,1],r=this.createD3Scale(e,n,t);return this.createPositionScale(t,{map:r,domain:r.domain(),bandwidth:null,generateTicks:a=>a&&"count"in a?r.ticks(a.count):r.ticks()})}buildVisualScale(e,t){const n=RJ(t.range)??[0,1],r=t.reverse?[n[1],n[0]]:n,a=this.createD3Scale(e,r,t);return this.createVisualScale(t,{map:a,domain:a.domain(),generateTicks:i=>i&&"count"in i?a.ticks(i.count):a.ticks()})}buildColorScale(e,t){const n=TJ(t),r=t.domainMid;if(r!==null){const[a,i]=this.resolveColorDomain(e,t);if(r>a&&r<i){const[o,c]=this.symmetrizeDomain([a,i],t,r);return this.buildDivergingColorScale([o,r,c],t,n)}}return this.buildSequentialColorScale(e,t,n)}buildSequentialColorScale(e,t,n){const r=this.createD3Scale(e,[0,1],t),a=i=>typeof i!="number"||!Number.isFinite(i)?null:n(r(i));return this.createVisualScale(t,{map:a,domain:r.domain(),generateTicks:i=>i&&"count"in i?r.ticks(i.count):r.ticks()})}buildDivergingColorScale(e,t,n){const r=Ym().domain(e).range([0,.5,1]).clamp(t.clamp),a=i=>typeof i!="number"||!Number.isFinite(i)?null:n(r(i));return this.createVisualScale(t,{map:a,domain:e,generateTicks:i=>i&&"count"in i?r.ticks(i.count):r.ticks()})}resolveColorDomain(e,t){let n=t.domainMin??e[0],r=t.domainMax??e[1];if(t.nice){const a=Ym().domain([n,r]).nice().domain();n=t.domainMin??a[0],r=t.domainMax??a[1]}return[n,r]}symmetrizeDomain(e,t,n){if(!t.symmetric)return e;const r=Math.max(Math.abs(e[0]-n),Math.abs(e[1]-n));return[t.domainMin??n-r,t.domainMax??n+r]}},CJ=e=>{const[t,n]=e;return t>0&&n>0||t<0&&n<0};function RJ(e){if(!e)return null;const[t,n]=e;return typeof t=="number"&&typeof n=="number"?[t,n]:null}
49var LJ=class extends Ef{constructor(...e){super(...e),this.compatibleDataTypes=["temporal"]}compile(e,t){if(e.scaleType!=="datetime")throw new Be({message:"DatetimeScale.compile received non-datetime spec"});const n=el(e.scaledAesthetic),r=this.computeDataDomain(t);if(!n)throw new tr({code:"INCOMPATIBLE_TYPE",message:"Datetime scale is not supported for non-position aesthetics",context:{aesthetic:e.scaledAesthetic},suggestion:"Use a continuous or discrete scale for non-position aesthetics (color, size, alpha, strokeWidth)."});return this.buildScale(r,e,this.collectInputDates(t))}collectInputDates(e){const t=new Set,n=[];for(const r of e){if(!(r instanceof Date))continue;const a=r.getTime();t.has(a)||(t.add(a),n.push(r))}return n.sort((r,a)=>r.getTime()-a.getTime()),n}computeDataDomain(e){let t=1/0,n=-1/0;for(const r of e){if(!(r instanceof Date))continue;const a=r.getTime();a<t&&(t=a),a>n&&(n=a)}return t===1/0?[]:[new Date(t),new Date(n)]}createD3Scale(e,t,n){const r=DJ(e)?e:[],a=gq().domain(r).range(t).clamp(n.clamp);if(n.nice&&a.nice(),de(n.domainMin)||de(n.domainMax)){const[i,o]=a.domain();i!==void 0&&o!==void 0&&a.domain([n.domainMin??i,n.domainMax??o])}return a}buildScale(e,t,n){const r=t.reverse?[1,0]:[0,1],a=this.createD3Scale(e,r,t),[i,o]=a.domain(),c=i&&o?n.filter(u=>u>=i&&u<=o):[];return this.createPositionScale(t,{map:a,domain:a.domain(),bandwidth:null,generateTicks:u=>u&&"atInputs"in u?c:u&&"interval"in u?i&&o?eQ(i,o,u.interval):[]:a.ticks(u==null?void 0:u.count)})}},DJ=e=>e.length===2&&Ar(e[0])&&Ar(e[1]),NJ=class extends Ef{constructor(...e){super(...e),this.compatibleDataTypes=["categorical","numeric","temporal"]}compile(e,t){if(e.scaleType!=="discrete")throw new Be({message:"DiscreteScale.compile received non-discrete spec"});const n=el(e.scaledAesthetic),r=wN(t,e);return n?this.buildPositionScale(r,e):this.buildVisualScale(r,e)}buildPositionScale(e,t){const n=e.map(String),r=t.padding??So.padding,a=t.reverse?[1,0]:[0,1],i=rw().domain(n).range(a).paddingInner(r).paddingOuter(r/2),o=i.bandwidth()/2;return this.createPositionScale(t,{map:c=>(i(String(c))??NaN)+o,domain:e,bandwidth:i.bandwidth(),generateTicks:()=>[...e]})}buildVisualScale(e,t){const n=e.map(String),r=t.range&&t.range.length>0?mg().domain(n).range(t.range).unknown(t.range[0]):null;return this.createVisualScale(t,{map:a=>{const i=String(a);return r?r(i):i},domain:e,generateTicks:()=>e})}},jJ=class extends Ef{constructor(...e){super(...e),this.compatibleDataTypes=["numeric","categorical","temporal"]}compile(e){if(e.scaleType!=="identity")throw new Be({message:"IdentityScale.compile received non-identity spec"});return{kind:"identity",aesthetic:Wt(e.scaledAesthetic),spec:e,map:t=>t,domain:[],generateTicks:()=>[]}}},OJ=class extends Ef{constructor(...e){super(...e),this.compatibleDataTypes=["categorical","temporal","numeric"]}compile(e,t){if(e.scaleType!=="palette")throw new Be({message:"PaletteScale.compile received non-palette spec"});const n=xN(t),r=CU(e.palette,n.length),a=RU(r.length>0?r:[...Y1],e.overrides),i=mg().domain(n.map(String)).range(a).unknown(a[0]);return this.createVisualScale(e,{map:o=>i(String(o)),domain:n,generateTicks:()=>n})}},_J=class extends Xc{constructor(e){super("scale"),this.register("continuous",new EJ(e)),this.register("discrete",new NJ),this.register("datetime",new LJ),this.register("identity",new jJ),this.register("palette",new OJ)}},Xb={color:null,size:"small",labelCrossPosition:.5},rc={kind:"rectangle",zOrder:"foreground",fillColor:"transparent",fillOpacity:1,strokeWidth:1,strokeColor:null},Kb={zOrder:"foreground",fit:"contain",opacity:1},IJ={x:8,y:8,unit:"px"},Qb={align:"center",backgroundColor:null,backgroundColorStyle:"opaque"},ac={color:null,thickness:"medium",startArrowheadStyle:"none",endArrowheadStyle:"line-arrow",lineStyle:"solid",hasStickerStyle:!1},BJ={top:{x:0,y:-1},bottom:{x:0,y:1},left:{x:-1,y:0},right:{x:1,y:0},"top-left":{x:-1,y:-1},"top-right":{x:1,y:-1},"bottom-left":{x:-1,y:1},"bottom-right":{x:1,y:1}}
49,zJ=(e,t,n)=>{const r=VJ(e,t),a=FJ(r);return{differenceArrows:(r.differenceArrows??[]).map(i=>UJ(e,i,n)).filter(de),shapes:(r.shapes??[]).map(i=>qJ(e,i,a)).filter(de),arrows:(r.arrows??[]).map(i=>QJ(e,i,n,a)).filter(de),textAnnotations:(r.textAnnotations??[]).map(i=>HJ(e,i,n,a)).filter(de),stickers:(r.stickers??[]).map(i=>GJ(e,i,n,a)).filter(de),images:(r.images??[]).map(i=>XJ(e,i,a)).filter(de),pinnedNumbers:(r.pinnedNumbers??[]).map(i=>YJ(e,i,n)).filter(de),comments:(r.comments??[]).map(i=>WJ(e,i,n)).filter(de)}},VJ=(e,t)=>{var a,i,o,c,u,f,m,p;if(t===void 0)return{};if(!PJ(t))return t;const n=new Set,r=g=>g.id===void 0?g:n.has(g.id)?(e.diagnostics.addWarning({code:"ANNOTATION_DUPLICATE_ID",message:`More than one annotation declares id "${g.id}" â giving this one a generated id, so references to "${g.id}" point at the first.`,context:{annotationId:g.id},suggestion:"Give each annotation its own id."}),{...g,id:Fn()}):(n.add(g.id),g);return{differenceArrows:(a=t.differenceArrows)==null?void 0:a.map(g=>r(g)),shapes:(i=t.shapes)==null?void 0:i.map(g=>r(g)),arrows:(o=t.arrows)==null?void 0:o.map(g=>r(g)),textAnnotations:(c=t.textAnnotations)==null?void 0:c.map(g=>r(g)),images:(u=t.images)==null?void 0:u.map(g=>r(g)),stickers:(f=t.stickers)==null?void 0:f.map(g=>r(g)),pinnedNumbers:(m=t.pinnedNumbers)==null?void 0:m.map(g=>r(g)),comments:(p=t.comments)==null?void 0:p.map(g=>r(g))}},PJ=e=>{const t=new Set;for(const n of $J(e))if(n.id!==void 0){if(t.has(n.id))return!0;t.add(n.id)}return!1},$J=e=>[...e.differenceArrows??[],...e.shapes??[],...e.arrows??[],...e.textAnnotations??[],...e.images??[],...e.stickers??[],...e.pinnedNumbers??[],...e.comments??[]],FJ=e=>{const t=new Set,n=[e.differenceArrows,e.shapes,e.arrows,e.textAnnotations,e.images,e.stickers,e.pinnedNumbers,e.comments];for(const r of n)for(const a of r??[])a.id!==void 0&&t.add(a.id);return t},Cw=(e,t,n,r)=>{if(n.has(t))return!0;const a=r===void 0?"An annotation":`Annotation "${r}"`;return e.diagnostics.addWarning({code:"ANNOTATION_REF_NOT_FOUND",message:`${a} references id "${t}" but no annotation declares that id â dropping this annotation.`,context:{ref:t,...r!==void 0?{annotationId:r}:{}},suggestion:"Reference the explicit id of another annotation in the same spec, or set an id on the target."}),!1},HJ=(e,t,n,r)=>{const a=Dp(e,t.at,n,r,t.id);return a===null?null:{id:t.id??Fn(),content:t.content,at:a,width:t.width,align:t.align??Qb.align,backgroundColor:t.backgroundColor??Qb.backgroundColor,backgroundColorStyle:t.backgroundColorStyle??Qb.backgroundColorStyle}},UJ=(e,t,n)=>{const r=tf(e,t.start,n),a=tf(e,t.end,n);return r===null||a===null?null:{id:t.id??Fn(),start:r,end:a,label:t.label,color:t.color??Xb.color,size:t.size??Xb.size,labelCrossPosition:t.labelCrossPosition??Xb.labelCrossPosition}},tf=(e,t,n)=>{const r=t.align!==void 0?{align:t.align}:{};return t.layerId===void 0?{anchorValue:t.anchorValue,groupValue:t.groupValue,crossValue:t.crossValue,...r}:n.some(a=>a.id===t.layerId)?{layerId:t.layerId,anchorValue:t.anchorValue,groupValue:t.groupValue,crossValue:t.crossValue,...r}:(e.diagnostics.addWarning({code:"UNKNOWN_LAYER_ID",message:`Annotation references layerId "${t.layerId}", which no layer carries â dropping this annotation.`,context:{layerId:t.layerId,available:n.map(a=>a.id)},suggestion:"Reference an existing layer id, or omit layerId to anchor against the data directly."}),null)},Dp=(e,t,n,r,a)=>{if(t.anchorType==="annotation")return Cw(e,t.ref,r,a)?t:null;if(t.anchorType==="panel"||t.anchorType==="axis"||t.anchorType==="selection")return t;const i=tf(e,t,n);return i===null?null:{anchorType:"observation",...i,...t.offset!==void 0?{offset:t.offset}:{}}},GJ=(e,t,n,r)=>{const a=Dp(e,t.at,n,r,t.id);return a===null?null:{id:t.id??Fn(),at:a,sticker:t.sticker}},YJ=(e,t,n)=>{const r=tf(e,t.at,n);return r===null?null:{id:t.id??Fn(),at:r}},WJ=(e,t,n)=>{const r=tf(e,t.at,n);return r===null?null:{id:t.id??Fn(),at:r,content:t.content}},qJ=(e,t,n)=>t.region.anchorType==="annotation"&&!Cw(e,t.region.ref,n,t.id)?null:{id:t.id??Fn(),kind:t.kind??rc.kind,zOrder:t.zOrder??rc.zOrder,region:KJ(t.region),fillColor:t.fillColor===void 0?rc.fillColor:t.fillColor,fillOpacity:t.fillOpacity??rc.fillOpacity,strokeWidth:t.strokeWidth??rc.strokeWidth,strokeColor:t.strokeColor??rc.strokeColor},XJ=(e,t,n)=>t.region.anchorType==="annotation"&&!Cw(e,t.region.ref,n,t.id)?null:{
49id:t.id??Fn(),src:t.src,zOrder:t.zOrder??Kb.zOrder,region:t.region,fit:t.fit??Kb.fit,opacity:t.opacity??Kb.opacity},KJ=e=>e.anchorType!=="selection"||e.padding!==void 0?e:{...e,padding:IJ},dC=e=>{if(e.anchorType==="panel"||e.anchorType==="axis"||e.offset!==void 0||e.align===void 0)return e;const t=BJ[e.align];return t===void 0?e:{...e,offset:{x:t.x*4,y:t.y*4,unit:"px"}}},QJ=(e,t,n,r)=>{const a=Dp(e,t.start,n,r,t.id),i=Dp(e,t.end,n,r,t.id);return a===null||i===null?null:{id:t.id??Fn(),start:dC(a),end:dC(i),color:t.color??ac.color,thickness:t.thickness??ac.thickness,startArrowheadStyle:t.startArrowheadStyle??ac.startArrowheadStyle,endArrowheadStyle:t.endArrowheadStyle??ac.endArrowheadStyle,lineStyle:t.lineStyle??ac.lineStyle,hasStickerStyle:t.hasStickerStyle??ac.hasStickerStyle}},ZJ={parsingLocale:"en-US",legend:{position:"auto",display:"auto",align:"auto"},axes:{x:{isVisible:!0,label:null,position:"bottom",grid:{isVisible:null},ticks:{isVisible:!0,mode:"auto"}},y:{isVisible:!0,label:null,position:"right",grid:{isVisible:null},ticks:{isVisible:!1,mode:"auto"}}},panel:{overflow:{dataLabels:{x:"inside",y:"inside"},differenceArrows:{x:"outside",y:"outside"}}},headline:{show:"none",compareWith:"none",size:"auto",position:"above"},numberFormat:{decimals:"auto",abbreviation:"auto"},content:{title:null,isTitleVisible:!0,subtitle:null,isSubtitleVisible:!0,caption:null,isCaptionVisible:!1,source:null,isSourceVisible:!1,brandMark:{enabled:!1,placement:"footer",variant:"full"},isBrandMarkVisible:!1},appearance:{textScale:1},layout:{padding:null,gaps:{}}};function JJ(e){const t=Go({},ZJ,e);return t.content=eee(t.content,e==null?void 0:e.content),t}var eee=(e,t)=>{var a;const n=((a=t==null?void 0:t.brandMark)==null?void 0:a.enabled)??(t==null?void 0:t.isBrandMarkVisible)??e.brandMark.enabled,r={...e.brandMark,enabled:n};return{...e,brandMark:r,isBrandMarkVisible:n}},tee={xLimits:null,yLimits:null},Xm={theta:"x",startAngle:0,innerRadius:0};function Ax(e){var r,a,i;const t=e??{type:"coord",coordType:"cartesian"},n=Go({},tee,t.params??{});switch(t.coordType){case"cartesian":case"flip":return{...t,params:n};case"polar":return{...t,params:{...n,theta:((r=t.params)==null?void 0:r.theta)??Xm.theta,startAngle:((a=t.params)==null?void 0:a.startAngle)??Xm.startAngle,innerRadius:pf(((i=t.params)==null?void 0:i.innerRadius)??Xm.innerRadius,0,1)}}}}function nee(e,t,n){const r=[];for(const a of t){if(a.layerId!==void 0&&!n.some(i=>i.id===a.layerId)){e.diagnostics.addWarning({code:"UNKNOWN_LAYER_ID",message:`Highlight references layerId "${a.layerId}", which no layer carries â dropping this highlight.`,context:{layerId:a.layerId,available:n.map(i=>i.id)},suggestion:"Reference an existing layer id, or omit layerId to apply the highlight across all layers."});continue}r.push({type:"highlight",id:a.id??Fn(),predicate:a.predicate,scope:a.scope??"data-point",...a.layerId!==void 0?{layerId:a.layerId}:{}})}return r}var ree=class{constructor(){this.diagnostics=[],this.persistent=[]}addWarning(e,t={}){const n={...e,severity:"warning",kind:"user-input"};t.persistent?this.persistent.push(n):this.diagnostics.push(n)}addError(e){this.diagnostics.push({...e,severity:"error",kind:"user-input"})}reset(){this.diagnostics=[]}drain(){const e=this.persistent.length===0?this.diagnostics:[...this.persistent,...this.diagnostics];if(e.length===0)return{errors:[],warnings:[]};const t=fC(e.filter(r=>r.severity==="error")),n=fC(e.filter(r=>r.severity==="warning"));return this.diagnostics=[],{errors:t,warnings:n}}},aee=class{constructor(e,t){this.sink=e,this.baseContext=t}addWarning(e,t){this.sink.addWarning(this.stampBaseContext(e),t)}addError(e){this.sink.addError(this.stampBaseContext(e))}stampBaseContext(e){const t=e.context??{};return{...e,context:{...t,...this.baseContext}}}};function fC(e){const t=new Set;return e.filter(n=>{const r=JSON.stringify(n);return t.has(r)?!1:(t.add(r),!0)})}var iee={showDataLabels:!1,format:"absolute",showStackTotals:!1,showCategoryLabels:!1,labelSource:{variable:oe.yRaw},position:"auto",justify:"end",align:"center",offset:4,categoryPosition:"inside",categoryJustify:"start",categoryAlign:"center",categoryOffset:4};function KN(e,t){const n=e??t,r=typeof n=="string"?n:n.type;if(r==="smooth"){const a=typeof n=="string"?void 0:n;return{type:"smooth",method:(a==null?void 0:a.method)??"linear",order:(a==null?void 0:a.order)??3,bandwidth:(a==null?void 0:a.bandwidth)??.3}}return{type:r}}function rl(e,t,n,r,a,i){const o=a!==void 0&&i!==void 0?new aee(a,{layerIndex:i}):a,c=e.get(r.geom),u=r.position??c.defaultPosition,f=lee({dataLabels:uee(e,t,r,u,n),geom:c,position:u,coordType:n,diagnostics:o});return oee({diagnostics:o,coordType:n,geom:c,position:u,dataLabels:f}),{id:r.id??Fn(),type:r.type,geom:r.geom,mapping:r.mapping??{}
49,stat:KN(r.stat,"identity"),position:u,yScaleType:r.yScaleType??"primary",params:c.resolveParams({params:r.params,diagnostics:o}),transforms:r.transforms??[],interactive:r.interactive??c.defaultInteractive,dataLabels:f}}function see(e,t,n,r,a){const i=r.map((o,c)=>rl(e,t,n,o,a,c));return ZN(e,i)}var QN=(e,t,n,r)=>r.label!==void 0?r.label:uN({geom:e.get(t),position:n,mapping:r,purpose:"label"}),ZN=(e,t)=>{const n=new Set;for(const r of t)r.position==="fill"&&n.add(r.yScaleType);return n.size===0?t:Jc(t,r=>{if(!n.has(r.yScaleType)||!e.has(r.geom)||!e.get(r.geom).positionRoles.some(o=>o.axis==="y"&&o.role==="scalar"))return r;const a=Sr(r.mapping.y);if(!Et(a))return r;const i=pf(a,0,1);return i===a?r:{...r,mapping:{...r.mapping,y:{value:i}}}})},oee=({diagnostics:e,coordType:t,geom:n,position:r,dataLabels:a})=>{if(e===void 0)return;const i=n.type==="bar"&&t==="polar",o=n.type==="bar"&&t!=="polar";if(a.showDataLabels&&!n.dataLabelCoordTypes.includes(t)){e.addWarning({code:"DATA_LABELS_UNSUPPORTED",message:`Data labels are not supported for geom '${n.type}' under '${t}' coords; none will render.`,suggestion:"Turn off showDataLabels for this layer."});return}a.showDataLabels&&a.position==="outside"&&o&&rr(r)&&e.addWarning({code:"DATA_LABEL_PLACEMENT_COERCED",message:"Stacked bar segments only place data labels inside; position 'outside' will render as 'inside'.",context:{expected:"inside",actual:"outside"},suggestion:"Use position 'inside' or 'auto', or enable showStackTotals for a label above the stack."}),a.showStackTotals&&!(o&&r==="stack")&&e.addWarning({code:"DATA_LABEL_SETTING_IGNORED",message:"showStackTotals only applies to stacked cartesian bars; it will be ignored.",suggestion:"Turn off showStackTotals, or use a bar geom with position 'stack'."}),a.showCategoryLabels&&a.showDataLabels&&!i&&e.addWarning({code:"DATA_LABEL_SETTING_IGNORED",message:"showCategoryLabels only applies to polar bars (pie / donut); it will be ignored.",suggestion:"Turn off showCategoryLabels for this layer."})},lee=({dataLabels:e,geom:t,position:n,coordType:r,diagnostics:a})=>{const{justify:i,showDataLabels:o}=e;if(i!=="panel-start"&&i!=="panel-end")return e;const c=cee(t,n,r);if(c===null)return e;const u=i==="panel-end"?"end":"start";return o&&(a==null||a.addWarning({code:"DATA_LABEL_PLACEMENT_COERCED",message:`${c}; justify '${i}' will render as '${u}'.`,context:{expected:u,actual:i},suggestion:`Use justify '${u}' for this layer.`})),{...e,justify:u}},cee=(e,t,n)=>n==="polar"?"Panel-edge anchors do not apply under polar coords":e.type==="bar"&&rr(t)?"Stacked bar segments would all pin their labels to the same panel edge":null,uee=(e,t,n,r,a)=>{var u,f;const i={...t,...n.mapping},o=QN(e,n.geom,r,i),c=e.get(n.geom);return{...Go({},iee,((u=c.resolveDataLabelDefaults)==null?void 0:u.call(c,r))??{},((f=c.dataLabels)==null?void 0:f[a])??{},n.dataLabels??{}),labelSource:o}},JN={x:"position",y:"position",ySecondary:"position",color:"color-range",size:"continuous-range",alpha:"continuous-range",strokeWidth:"continuous-range",lineType:"discrete-only"},dee={numeric:{position:"continuous","color-range":"continuous","continuous-range":"continuous","discrete-only":"discrete"},categorical:{position:"discrete","color-range":"palette","continuous-range":"discrete","discrete-only":"discrete"},temporal:{position:"datetime","color-range":"continuous","continuous-range":"continuous","discrete-only":"discrete"}};function ej(e,t){const{data:n,layers:r,mapping:a,customPalettes:i}=t;return{container:e,data:n,layers:r,mapping:a,customPalettes:i,demands:Sx(e.geomRegistry,r)}}function Rw(e,t){switch(t.scaleType){case"inferred":return Rw(e,pee(e,t));case"continuous":{const n=JN[t.scaledAesthetic],r=n==="continuous-range"&&t.scaledAesthetic in Wk?Wk[t.scaledAesthetic]:null,a=t.scaledAesthetic==="size"&&n==="continuous-range"?"sqrt":va.transform;return{type:t.type,scaledAesthetic:t.scaledAesthetic,scaleType:t.scaleType,transform:t.transform??a,reverse:t.reverse??va.reverse,nice:t.nice??va.nice,zero:t.zero??va.zero,clamp:t.clamp??n!=="position",domainMin:t.domainMin??va.domainMin,domainMax:t.domainMax??va.domainMax,range:t.range??r??null,scheme:gee(e.container,t),interpolate:t.interpolate??va.interpolate,domainMid:t.domainMid??va.domainMid,symmetric:t.symmetric??de(t.domainMid)}}case"datetime":return{type:t.type,scaledAesthetic:t.scaledAesthetic,scaleType:t.scaleType,domainMin:t.domainMin??gm.domainMin,domainMax:t.domainMax??gm.domainMax,nice:t.nice??gm.nice,reverse:t.reverse??gm.reverse,clamp:t.clamp??!1};case"discrete":return Mx(t,e.demands);case"palette":return{type:t.type,scaledAesthetic:t.scaledAesthetic,scaleType:t.scaleType,palette:DU(e.container,t.palette,e.customPalettes),overrides:LU(e.container,t.overrides,t.palette,e.customPalettes)};case"identity":return{type:t.type,scaledAesthetic:t.scaledAesthetic,scaleType:t.scaleType};default:throw new Be({message:`Unknown scale type: ${t.scaleType}`})}}function fee(e,t){const{scales:n,layers:r,coords:a}=t,i=ej(e,t),o=vee(bee(n,r),i.demands),c=new Map;for(const f of o)c.set(f.scaledAesthetic,f);const u=[...c.values()].map(f=>{const m=hee(i,f);return Rw(i,m)});return a.coordType==="polar"?u.map(tj):u}function Mx(e,t){const n=t==null?void 0:t.bandPadding[e.scaledAesthetic];return{type:e.type,scaledAesthetic:e.scaledAesthetic,scaleType:e.scaleType,range:e.range??So.range,domain:e.domain??So.domain,padding:e.padding??n??So.padding,reverse:e.reverse??mee(e.scaledAesthetic,t)}}var tj=e=>e.scaleType==="discrete"?{...e,padding:0}:e;function hee(e,t){return t.scaleType==="inferred"||t.scaleType==="discrete"||!e.demands.bandedAxes.includes(t.scaledAesthetic)?t:(e.container.diagnostics.addWarning({code:"UNSUPPORTED_SCALE_TYPE",message:`A geom drawn on '${t.scaledAesthetic}' needs it to be a band scale, but the spec declares a '${t.scaleType}' one; the band wins.`,context:{aesthetic:Wt(t.scaledAesthetic),scaleType:t.scaleType},suggestion:`Declare '${t.scaledAesthetic}' as a discrete scale, or omit it and let the geom's band be inferred.`}),Jn(t.scaledAesthetic,{..."reverse"in t&&t.reverse!==void 0&&{reverse:t.reverse}}))}function mee(e,t){return e===(t==null?void 0:t.discreteCrossAxis)?!0:So.reverse}function pee({data:e,layers:t,mapping:n,demands:r},a){const i=Wt(a.scaledAesthetic),o=a.scaledAesthetic==="ySecondary"?yee(t,n):n[i];if(a.scaledAesthetic===r.discreteAxis||a.scaledAesthetic===r.discreteCrossAxis)return Jn(a.scaledAesthetic,a.options);const c=r.zeroAxes[a.scaledAesthetic];if(c!==void 0){const p=a.options;return Cn(a.scaledAesthetic,{...p,zero:!0,...!c.nice&&{nice:!1}})}const u=pe(o);if(!de(u)||!e.hasVariable(u))return Cn(a.scaledAesthetic,a.options);const f=e.getType(u),m=JN[a.scaledAesthetic];switch(dee[f][m]){case"discrete":return Jn(a.scaledAesthetic,a.options);case"palette":return W1(a.scaledAesthetic);case"datetime":return Um(a.scaledAesthetic,a.options);case"continuous":return Cn(a.scaledAesthetic,a.options);default:return vd(a.scaledAesthetic)}}function gee(e,t){const n=t.scheme??va.scheme;return n===null?null:de(t.range)?(e.diagnostics.addWarning({code:"CONFLICTING_COLOR_RAMP",message:`The color scale sets both a 'scheme' ('${n}') and an explicit 'range'; the range wins and the scheme is ignored.`,context:{aesthetic:Wt(t.scaledAesthetic),scaleType:t.scaleType},suggestion:"Set either a scheme or a range, not both."}),null):(!de(t.domainMid)&&SJ(n)&&e.diagnostics.addWarning({code:"DIVERGING_SCHEME_WITHOUT_MIDPOINT",message:`The color scale uses a diverging scheme ('${n}') without 'domainMid', so its neutral colour lands at the data midpoint rather than a meaningful centre.`,context:{aesthetic:Wt(t.scaledAesthetic),scaleType:t.scaleType,actual:n},suggestion:"Set 'domainMid' (e.g. 0) to centre the neutral colour."}),n)}function yee(e,t){const n=e.find(r=>r.yScaleType==="secondary");return n?n.mapping.y??t.y:t.y}function bee(e,t){return!t.some(n=>n.yScaleType==="secondary")||e.some(n=>n.scaledAesthetic==="ySecondary")?e:[...e,xc("ySecondary")]}function vee(e,t){return e.some(n=>
49n.scaledAesthetic==="color")?e:[...e,t.inferredColor?xc("color"):W1("color")]}var xee=e=>{const t=new Set;e!==void 0&&nj(e,t,new Set);const n={tokens:{},defaults:[],overrides:[]};for(const r of t)Object.assign(n.tokens,r.tokens),n.defaults.push(...r.defaults??[]),n.overrides.push(...r.overrides??[]);return n},nj=(e,t,n)=>{if(!n.has(e)){n.add(e);for(const r of e.extends??[])nj(r,t,n);t.delete(e),t.add(e),n.delete(e)}};function wee(e,t,n){const r=Ax(t.coords),a=see(e.geomRegistry,t.mapping,r.coordType,t.layers,e.diagnostics),i=fee(e,{data:t.data,scales:t.scales,layers:a,mapping:t.mapping,coords:r,customPalettes:n}),o=JJ(t.config),c=nee(e,t.highlights,a),u=zJ(e,t.annotations,a),f=xee(t.styles);return{data:t.data,mapping:t.mapping,layers:a,scales:i,transforms:t.transforms,highlights:c,styles:f,annotations:u,coords:r,config:o}}var See=class{constructor(t){this.container=t}compile({input:t,dataset:n,customPalettes:r}){return wee(this.container,{...t,data:n},r)}},Aee=class{constructor(t){this.registry=t}compute(t,n){return this.registry.get(t.type).compute({data:n.data,mapping:n.mapping,spec:t,xScaleIsDiscrete:n.xScaleIsDiscrete})}},Mee=class extends Jo{constructor(t){super(),this.container=t}compile(t){const n=super.compile(t);for(const r of zee(t.styles,n))this.container.diagnostics.addWarning(r);for(const r of Vee(t.styles))this.container.diagnostics.addWarning(r);for(const r of Pee(t.styles))this.container.diagnostics.addWarning(r);for(const r of n)for(const a of r.styles.warnings)this.container.diagnostics.addWarning(a);return n}dependencies(t){return[t.styles,t.config.parsingLocale]}compileLayer(t,n){const r=$ee({layer:t,layerIndex:n.layers.indexOf(t),styles:n.styles,parsingLocale:n.config.parsingLocale});return{...t,styles:r}}},hc={color:"color",alpha:"unitInterval",saturation:"unitInterval"},rj={bar:{...hc,borderRadius:"radiusToken",borderColor:"color",borderWidth:"pixels"},line:{...hc,strokeWidth:"pixels",lineType:"lineType",fillAlpha:"unitInterval"},area:{...hc,strokeWidth:"pixels",lineType:"lineType",strokeAlpha:"unitInterval"},point:{...hc,size:"pixels",borderColor:"color",borderWidth:"pixels"},rule:{color:"color",strokeWidth:"pixels",lineType:"lineType"}},hC=1,mC=1e3,Tee="'none' or a shadow object { offsetX, offsetY, blur, color }",Am={color:"color",strokeWidth:"pixels",lineType:"lineType"},Mm={fontFamily:"fontFamily",fontSize:"pixels",fontWeight:"fontWeight",lineHeight:"multiplier",textColor:"color"},fo={panelBorder:{...Am,borderRadius:"pixels"},panelBorderEdge:Am,gridLine:Am,tickLine:{...Am,length:"pixels"},axisLabel:Mm,tickLabel:{...Mm,offset:"pixels"},ruleLabel:{fontFamily:"fontFamily",fontSize:"pixels",fontWeight:"fontWeight",lineHeight:"multiplier"},dataLabel:{...Mm,paddingInline:"pixels",paddingBlock:"pixels",background:"color",borderColor:"color",borderWidth:"pixels",borderRadius:"pixels"},graph:{background:"color",borderColor:"color",borderWidth:"pixels",borderRadius:"pixels",fontFamily:"fontFamily"},tooltip:{background:"color",borderColor:"color",borderWidth:"pixels",borderRadius:"pixels",paddingInline:"pixels",paddingBlock:"pixels",shadow:"shadow"},tooltipText:Mm,tooltipPrimaryRow:{background:"color"}},kee=new Set([...Object.keys(hc),...Object.values(rj).flatMap(e=>Object.keys(e??{})),...Object.values(fo).flatMap(e=>Object.keys(e))]),aj=["geom","panelBorder","gridLine","tickLine","axisLabel","tickLabel","ruleLabel","dataLabel","graph","tooltip"],Eee=new Set(["gridLine","tickLine","axisLabel","tickLabel"]),Cee=class extends xs{constructor(t){super(),this.container=t}compile(t){const n=super.compile(t);for(const r of n.warnings)this.container.diagnostics.addWarning(r);return n}dependencies(t){return[t.styles]}run(t){return Ree(t.styles)}},Ree=e=>{const t=[],n={...pp.tokens,...e.tokens},r={panelBorder:{defaults:[],overrides:[]},gridLine:{defaults:[],overrides:[]},tickLine:{defaults:[],overrides:[]},axisLabel:{defaults:[],overrides:[]},tickLabel:{defaults:[],overrides:[]},ruleLabel:{defaults:[],overrides:[]},dataLabel:{defaults:[],overrides:[]},graph:{defaults:[],overrides:[]},tooltip:{defaults:[],overrides:[]},warnings:t},a=(i,o,c,u)=>{if(kg(i))return;const f=i.id===void 0?{}:{styleEntryId:i.id},m=i.select.target;if(!Lee(i)){t.push({code:"INVALID_STYLE_RULE",message:`Style ${c} targets unknown '${String(m)}'.`,context:{param:"target",actual:String(m),...f},suggestion:`Set 'target' to one of ${aj.map(y=>`'${y}'`).join(", ")}.`});return}if(i.when!==void 0){t.push({code:"INVALID_STYLE_RULE",message:`Style ${c} ignored: chrome entries take no conditions.`,context:{param:"when",...f}
49,suggestion:"Remove the 'when' clause â chrome is chart-scoped, with no observations or states."});return}const p=i.select;if(p.target==="panelBorder"){const y=p.edge;if(y!==void 0&&!Nee(y)){t.push({code:"INVALID_STYLE_RULE",message:`Style ${c} addresses unknown edge '${String(y)}'.`,context:{param:"edge",actual:String(y),...f},suggestion:`Set 'edge' to one of ${dD.map(x=>`'${x}'`).join(", ")}.`});return}}if(Eee.has(p.target)){const y=p.axis;if(y!==void 0&&!Iee(y)){t.push({code:"INVALID_STYLE_RULE",message:`Style ${c} addresses unknown axis '${String(y)}'.`,context:{param:"axis",actual:String(y),...f},suggestion:`Set 'axis' to one of ${Tf.map(x=>`'${x}'`).join(", ")}.`});return}}if(p.target==="ruleLabel"){const y=p.layer;if(y!==void 0&&typeof y!="string"){t.push({code:"INVALID_STYLE_RULE",message:`Style ${c} addresses an invalid layer ${Vc(y)}.`,context:{param:"layer",actual:Vc(y),...f},suggestion:"Set 'layer' to the id of a rule layer in the spec, or omit it to address every rule label."});return}}if(p.target==="tooltip"){const y=p.part;if(y!==void 0&&!_ee(y)){t.push({code:"INVALID_STYLE_RULE",message:`Style ${c} addresses unknown part '${String(y)}'.`,context:{param:"part",actual:String(y),...f},suggestion:`Set 'part' to one of ${fD.map(x=>`'${x}'`).join(", ")}, or omit it to address the box.`});return}}if(p.target==="dataLabel"){const y=p.role;if(y!==void 0&&!jee(y)){t.push({code:"INVALID_STYLE_RULE",message:`Style ${c} addresses unknown role '${String(y)}'.`,context:{param:"role",actual:String(y),...f},suggestion:`Set 'role' to one of ${q1.map(S=>`'${S}'`).join(", ")}.`});return}const x=p.position;if(x!==void 0){if(!Oee(x)){t.push({code:"INVALID_STYLE_RULE",message:`Style ${c} addresses unknown position '${String(x)}'.`,context:{param:"position",actual:String(x),...f},suggestion:`Set 'position' to one of ${X1.map(S=>`'${S}'`).join(", ")}.`});return}if(y===void 0||y==="aggregate"){t.push({code:"INVALID_STYLE_RULE",message:`Style ${c} addresses a position without a positionable role.`,context:{param:"position",actual:String(x),...f},suggestion:"Set 'role' to 'observation' or 'category', or remove 'position'."});return}}}const g=Lw({declarations:i.declarations,vocabulary:Dee(p),tokens:n,location:c,origin:u,warnings:t});Object.keys(g).length!==0&&r[p.target][o].push({select:p,declarations:g,origin:u})};return pp.defaults.forEach((i,o)=>{a(i,"defaults",`builtin[${o}]`,{list:"builtin"})}),e.defaults.forEach((i,o)=>{a(i,"defaults",`defaults[${o}]`,{list:"defaults",index:o,...i.id===void 0?{}:{id:i.id}})}),e.overrides.forEach((i,o)=>{a(i,"overrides",`overrides[${o}]`,{list:"overrides",index:o,...i.id===void 0?{}:{id:i.id}})}),r},kg=e=>e.select.target==="geom",Lee=e=>{const t=e.select.target;return t!=="geom"&&aj.includes(t)},ij=e=>(e!==void 0?rj[e]:void 0)??hc,Dee=e=>e.target==="panelBorder"?e.edge===void 0?fo.panelBorder:fo.panelBorderEdge:e.target==="tooltip"?e.part===void 0?fo.tooltip:e.part==="primaryRow"?fo.tooltipPrimaryRow:fo.tooltipText:fo[e.target],Nee=e=>typeof e=="string"&&dD.includes(e),jee=e=>typeof e=="string"&&q1.includes(e),Oee=e=>typeof e=="string"&&X1.includes(e),_ee=e=>typeof e=="string"&&fD.includes(e),Iee=e=>typeof e=="string"&&Tf.includes(e),Bee=(e,t,n)=>{const r=[];return pp.defaults.forEach((a,i)=>{var f;if(!kg(a))return;const o=a.select.kind;if(o!==void 0&&o!==e)return;const c={list:"builtin"},u=Lw({declarations:a.declarations,vocabulary:ij(o),tokens:t,location:`builtin[${i}]`,origin:c,warnings:n});Object.keys(u).length!==0&&r.push({declarations:u,...((f=a.when)==null?void 0:f.state)===void 0?{}:{state:a.when.state},origin:c})}),r},sj=(e,t)=>{e.defaults.forEach((n,r)=>t(n,"defaults",r)),e.overrides.forEach((n,r)=>t(n,"overrides",r))},zee=(e,t)=>{const n=new Set(t.map(a=>a.id)),r=[];return sj(e,(a,i,o)=>{const c=a.select;if(c.target!=="geom"&&c.target!=="ruleLabel")return;const u=c.layer;u===void 0||typeof u!="string"||n.has(u)||r.push({code:"INVALID_STYLE_RULE",message:`Style ${i}[${o}] targets unknown layer '${u}'.`,context:{param:"layer",actual:u,...a.id===void 0?{}:{styleEntryId:a.id}},suggestion:"Set 'layer' to the id of a layer in the spec."})}),r},Vee=e=>{const t=[];return sj(e,(n,r,a)=>{var o;if(!kg(n))return;const i=(o=n.when)==null?void 0:o.state;i===void 0||oj(i)||t.push({code:"INVALID_STYLE_RULE",message:`Style ${r}[${a}] scopes to unknown state '${i}'.`,context:{param:"state",actual:String(i),...n.id===void 0?{}:{styleEntryId:n.id}},suggestion:`Set 'state' to one of ${hD.map(c=>`'${c}'`).join(", ")}.`})}),t},oj=e=>hD.includes(e),Pee=e=>{const t=[];for(const[n,r]of Object.entries(e.tokens))lj(r)||t.push({code:"INVALID_STYLE_RULE",message:`Style token '${n}
49' has an invalid value: ${Vc(r)}.`,context:{param:"tokens",actual:Vc(r)},suggestion:`Set '${n}' to a non-empty color string or a { light, dark } pair of colors.`});return t},lj=e=>typeof e=="string"?e.trim().length>0:No(e)&&e.light.trim().length>0&&e.dark.trim().length>0,so=e=>typeof e=="number"&&Number.isFinite(e),Vc=e=>typeof e=="object"&&e!==null?JSON.stringify(e):String(e),$ee=e=>{const{layer:t,layerIndex:n,styles:r,parsingLocale:a}=e,i=yw(t,a),o=[],c={...pp.tokens,...r.tokens},u=(f,m)=>{const p=[];return f.forEach((g,y)=>{var R,L;if(!kg(g))return;const x=g.select.kind;if(x!==void 0&&x!==t.geom||g.select.layer!==void 0&&g.select.layer!==t.id)return;const S=(R=g.when)==null?void 0:R.state;if(S!==void 0&&!oj(S))return;const A={list:m,index:y,...g.id===void 0?{}:{id:g.id}},M=(L=g.when)==null?void 0:L.where;if(M!==void 0){const N=Mc(M,t.data,"style-rule");if(N.length>0){for(const O of N)o.push({...O,code:"INVALID_STYLE_RULE",message:`Style ${m}[${y}]: ${O.message}`,context:{...O.context,layerIndex:n,...g.id===void 0?{}:{styleEntryId:g.id}}});return}}const C=Lw({declarations:g.declarations,vocabulary:ij(x),tokens:c,location:`${m}[${y}]`,origin:A,warnings:o});Object.keys(C).length!==0&&p.push({declarations:C,...M===void 0?{}:{matches:Ac(M,i)},...S===void 0?{}:{state:S},origin:A})}),p};return{defaults:[...Bee(t.geom,c,o),...u(r.defaults,"defaults")],overrides:u(r.overrides,"overrides"),warnings:o}},Lw=e=>{const{declarations:t,vocabulary:n,tokens:r,location:a,origin:i,warnings:o}=e,c={},u=i.list==="builtin"||i.id===void 0?{}:{styleEntryId:i.id},f=(y,x)=>{c[y]=x},m=(y,x,S)=>{o.push({code:"INVALID_STYLE_RULE",message:`Style ${a} declaration '${y}' ignored: expected ${x}, got ${Vc(S)}.`,context:{param:y,expected:x,actual:Vc(S),...u},suggestion:`Set '${y}' to ${x}.`})},p=(y,x)=>{if(typeof x=="string"){if(x.trim().length>0)return x;m(y,"a non-empty color string",x);return}if(ax(x)){const S=r[x.token];if(S===void 0){o.push({code:"INVALID_STYLE_RULE",message:`Style ${a} declaration '${y}' ignored: unknown token '${x.token}'.`,context:{param:y,actual:x.token,...u},suggestion:`Declare '${x.token}' in the stylesheet's tokens.`});return}return lj(S)?typeof S=="string"?S:{light:S.light,dark:S.dark}:void 0}if(No(x)&&x.light.trim().length>0&&x.dark.trim().length>0)return{light:x.light,dark:x.dark};m(y,"a non-empty color string, a { light, dark } pair, or a token(...) reference",x)},g=y=>{const x=kee.has(y);o.push({code:"INVALID_STYLE_RULE",message:`Style ${a} declaration '${y}' ignored: ${x?"not in this entry's vocabulary":"not a style property"}.`,context:{param:y,...u},suggestion:x?`Declare '${y}' on an entry whose kind supports it (e.g. style.geom.bar).`:`Remove the unknown declaration '${y}'.`})};for(const y of Object.keys(t)){const x=t[y];if(x===void 0)continue;const S=n[y];if(S===void 0){g(y);continue}switch(S){case"color":{const A=p(y,x);A!==void 0&&f(y,A);break}case"unitInterval":so(x)&&x>=0&&x<=1?f(y,x):m(y,"a number in [0, 1]",x);break;case"pixels":so(x)&&x>=0?f(y,x):m(y,"a non-negative number of pixels",x);break;case"radiusToken":NU(x)?f(y,x):m(y,`one of ${uD.map(A=>`'${A}'`).join(", ")}`,x);break;case"lineType":NX(x)?f(y,x):m(y,`one of ${nN.map(A=>`'${A}'`).join(", ")}`,x);break;case"fontFamily":typeof x=="string"&&x.trim().length>0?f(y,x):m(y,"a non-empty CSS font-family list",x);break;case"fontWeight":so(x)&&x>=hC&&x<=mC?f(y,x):m(y,`a number in [${hC}, ${mC}]`,x);break;case"multiplier":so(x)&&x>0?f(y,x):m(y,"a positive multiple of the font size",x);break;case"shadow":{if(x==="none"){f(y,x);break}const A=x;if(!so(A.offsetX)||!so(A.offsetY)||!so(A.blur)||A.blur<0){m(y,Tee,x);break}const M=p(y,A.color);M!==void 0&&f(y,{offsetX:A.offsetX,offsetY:A.offsetY,blur:A.blur,color:M});break}}}return c},Fee=({layer:e})=>{if(e.position==="stack")return;const t=pe(e.mapping.y);if(t===null)return;let n=0,r=0;for(const a of e.data){const i=a[t];Et(i)&&(n+=i,r+=Math.abs(i))}return{grandTotal:n,absoluteGrandTotal:r}},Hee=({layer:e})=>{if(e.position!=="stack")return;const t=pe(e.mapping.x);if(t===null||!e.data.hasVariable(oe.yMin)||!e.data.hasVariable(oe.yMax))return;const n=new Map;for(const a of e.data){const i=a[t],o=Pn(a),c=hn(a),u=Fr(a),f=Mr(a),m=tN(a);if(!de(i)||!de(o)||!de(c)||!de(u)||!de(f)||!de(m))continue;const p=m>=0;if(Math.abs(m)===0)continue;const g=Mw(a,t),y={yMin:o,yMax:c},x=n.get(g);if(x===void 0){n.set(g,{total:m,topPositive:p?y:null,bottomNegative:p?null:y,anchorXMin:u,anchorXMax:f});continue}x.total+=m,p?(x.topPositive===null||c>x.topPositive.yMax)&&(x.topPositive=y):(x.bottomNegative===null||o<x.bottomNegative.yMin)&&(x.bottomNegative=y)}const r=[];for(const[a,i]of n){const o=i.topPositive??i.bottomNegative;o!==null&&r.push({xKey:a,total:i.total,anchor:{xMin:i.anchorXMin,xMax:i.anchorXMax,yMin:o.yMin,yMax:o.yMax,direction:i.topPositive!==null?"positive":"negative"}})}return r},Uee=class extends Jo{constructor(e){super(),this.container=e}dependencies(){return[]}compileLayer(e){const t=this.container.geomRegistry.get(e.geom),n={};if(t.summaries.stackTotals){const r=Hee({layer:e});r!==void 0&&(n.stackTotals=r)}if(t.summaries.grandTotal){const r=Fee({layer:e});r!==void 0&&(n.grandTotal=r.grandTotal,n.absoluteGrandTotal=r.absoluteGrandTotal)}return{...e,summary:n}}},cj=class extends xs{constructor(t){super(),this.registry=t}key(t){return t.data}dependencies(t){return[t.transforms]}run(t){return t.transforms.reduce((n,r)=>this.registry.get(r.transformType).apply(n,r),t.data)}},pC={color:"categorical",size:"numeric",alpha:"numeric",strokeWidth:"numeric",lineType:"categorical"},Gee=["color","size","alpha","strokeWidth","lineType"],Yee=class extends Jo{depen
49dencies(e){return Gee.map(t=>e.scales[t])}compileLayer(e,t){let n=e.data;const r=Object.entries(Wc);for(const[a,i]of r){const o=Sr(e.mapping[a]);if(o!==void 0){n=n.addConstantVariable(i,pC[a],o);continue}const c=pe(e.mapping[a]),u=t.scales[a];!c||!u||u.kind!=="visual"||(n=n.deriveVariableFrom(c,i,pC[a],Wee(u)))}return{...e,data:n}}},Wee=e=>t=>de(t)?e.map(t):null;function uj(e=new Mg){return{diagnostics:new ree,geomRegistry:e}}var qee=class{constructor(e,t,n,r,a,i,o,c,u,f,m,p,g,y,x,S){this.container=e,this.dataCompiler=t,this.specCompiler=n,this.transformCompiler=r,this.constantMappingCompiler=a,this.layerPhasedCompiler=i,this.scaleCompiler=o,this.coordCompiler=c,this.positionMapperCompiler=u,this.visualMapperCompiler=f,this.guideCompiler=m,this.summariseCompiler=p,this.stylesCompiler=g,this.chromeStylesCompiler=y,this.highlightsCompiler=x,this.annotationsCompiler=S,this.lastCompile=null,this.lastDiagnostics=null,this.lastData=void 0,this.stages=[{name:"data",getStats:()=>this.dataCompiler.stats},{name:"transform",getStats:()=>this.transformCompiler.stats},{name:"constantMapping",getStats:()=>this.constantMappingCompiler.stats},{name:"layer",getStats:()=>this.layerPhasedCompiler.stats},{name:"coordSetup",getStats:()=>this.coordCompiler.setupStats},{name:"scale",getStats:()=>this.scaleCompiler.stats},{name:"positionMapper",getStats:()=>this.positionMapperCompiler.stats},{name:"visualMapper",getStats:()=>this.visualMapperCompiler.stats},{name:"coordTransform",getStats:()=>this.coordCompiler.transformStats},{name:"summarise",getStats:()=>this.summariseCompiler.stats},{name:"guide",getStats:()=>this.guideCompiler.stats},{name:"styles",getStats:()=>this.stylesCompiler.stats},{name:"chromeStyles",getStats:()=>this.chromeStylesCompiler.stats},{name:"highlights",getStats:()=>this.highlightsCompiler.stats},{name:"annotations",getStats:()=>this.annotationsCompiler.stats}]}compile(e){try{const t=this.runCompile(()=>(this.lastData=e.data,this.runPipeline({spec:this.specCompiler.compile({input:e.input,customPalettes:e.customPalettes??{},dataset:this.dataCompiler.compile(e.data)})})));return this.toOkResult(t)}catch(t){return this.toErrorResult(t)}}recompile(e){try{const t=this.runCompile(()=>e.data===void 0?this.runPipeline({spec:e.spec}):(this.lastData=e.data,this.runPipeline({spec:Mt(e.spec,{data:this.dataCompiler.compile(e.data)})})));return this.toOkResult(t)}catch(t){return this.toErrorResult(t)}}getCacheStats(){const e={};for(const{name:t,getStats:n}of this.stages)e[t]={...n()};return e}getLastCompile(){return this.lastCompile}getDiagnostics(){return this.lastDiagnostics}runCompile(e){this.container.diagnostics.reset();const t=this.trackCompile(e);return this.lastDiagnostics=this.container.diagnostics.drain(),t}toOkResult(e){var t;return{ok:!0,compiled:e,warnings:((t=this.lastDiagnostics)==null?void 0:t.warnings)??[]}}toErrorResult(e){const t=this.container.diagnostics.drain();return this.lastDiagnostics=t,{ok:!1,errors:t.errors.length>0?t.errors:[xx(e)],warnings:t.warnings}}trackCompile(e){return e()}runPipeline({spec:e}){return{...wg({spec:e}).pipe(({spec:t})=>({spec:Mt(t,{data:this.transformCompiler.compile({data:t.data,transforms:t.transforms})})})).pipe(({spec:t})=>{const n=this.constantMappingCompiler.compile({data:t.data,mapping:t.mapping});return{spec:Mt(t,{data:n.data,mapping:n.mapping})}}).pipe(({spec:t})=>({layers:this.layerPhasedCompiler.compile({data:t.data,layers:t.layers,mapping:t.mapping,coords:t.coords,scales:t.scales})})).pipe(({spec:t,layers:n})=>this.coordCompiler.setup({coordSpec:t.coords,scales:t.scales,layers:n})).pipe(({layers:t,scales:n})=>({scales:this.scaleCompiler.compile({layers:t,scales:n})})).pipe(({spec:t})=>({config:t.config})).pipe(({layers:t,scales:n})=>({layers:this.positionMapperCompiler.compile({layers:t,scales:n})})).pipe(({layers:t,scales:n})=>({layers:this.visualMapperCompiler.compile({layers:t,scales:n})})).pipe(({spec:t,layers:n,coordSystem:r})=>({layers:this.coordCompiler.transform({coordSpec:t.coords,coordSystem:r,layers:n})})).pipe(({layers:t})=>({layers:this.summariseCompiler.compile({layers:t})})).pipe(({spec:t,scales:n,layers:r,coordSystem:a})=>({guides:this.guideCompiler.compile({scales:n,config:t.config,layers:r,coordSystem:a,originalData:this.lastData})})).pipe(({spec:t,layers:n})=>({layers:this.stylesCompiler.compile({layers:n,styles:t.styles,config:t.config})})).pipe(({spec:t})=>({chrome:this.chromeStylesCompiler.compile({styles:t.styles})})).pipe(({spec:t,layers:n})=>({layers:this.highlightsCompiler.compile({layers:n,highlights:t.highlights,config:t.config})})).pipe(({spec:t,layers:n,coordSystem:r,scales:a})=>({annotations:this.annotationsCompiler.compile({annotations:t.annotations,layers:n,coordSystem:r,scales:a,config:t.config})})).result(),spec:e}}},Xee=({plugins:e=[]}={})=>{const t=FN(e),{geomRegistry:n,statRegistry:r,transformRegistry:a}=QZ(t),i=uj(n),o=new _J(i),c=new cj(a);for(const u of t.warnings)i.diagnostics.addWarning(u,{persistent:!0});return new qee(i,new cU,new See(i),c,new bK,new xZ(i,c,r,new pZ(i,c,new Aee(r),new WK,new YK(i),new eJ(new oJ))),new bJ(i,o),new wK(new PK),new yJ(i),new Yee,new iZ(i),new Uee(i),new Mee
49(i),new Cee(i),new uZ(i),new aK(i))};function Wa(...e){let t={},n;const[r,...a]=e;de(r)&&!Kee(r)?(t=r,n=a):n=e;const i={mapping:t,layers:[],scales:[],transforms:[],highlights:[],config:{}};return n.reduce((o,c)=>dj(o,c),i)}function qa(e,...t){return t.reduce((n,r)=>dj(n,r),e)}function Kee(e){return typeof e=="object"&&e!==null&&"type"in e}function dj(e,t){switch(t.type){case"scale":return{...e,scales:[...e.scales,t]};case"coord":return{...e,coords:t};case"config":return{...e,config:Go({},e.config,t.config)};case"layer":return{...e,layers:[...e.layers,t]};case"transform":return{...e,transforms:[...e.transforms,t]};case"mapping":return{...e,mapping:{...e.mapping,...t.mapping}};case"highlight":return{...e,highlights:[...e.highlights,t]};case"styles":return{...e,styles:e.styles===void 0?t:{...t,extends:[e.styles,...t.extends??[]]}};case"annotation":return Qee(e,t);default:throw new Be({message:`Unknown spec item type: ${t.type}`})}}function Qee(e,t){const n={...e.annotations};switch(t.kind){case"differenceArrow":n.differenceArrows=[...n.differenceArrows??[],t.annotation];break;case"shape":n.shapes=[...n.shapes??[],t.annotation];break;case"arrow":n.arrows=[...n.arrows??[],t.annotation];break;case"text":n.textAnnotations=[...n.textAnnotations??[],t.annotation];break;case"image":n.images=[...n.images??[],t.annotation];break;case"sticker":n.stickers=[...n.stickers??[],t.annotation];break;case"pinnedNumber":n.pinnedNumbers=[...n.pinnedNumbers??[],t.annotation];break;case"comment":n.comments=[...n.comments??[],t.annotation];break;default:throw new Error(`Unknown annotation kind: ${t.kind}`)}return{...e,annotations:n}}function Zee(e){const t=(e==null?void 0:e.plugins)??[],n=ete(t);return{geom:{...rn,...n.geom},stat:{...ug,...n.stat},transform:{...bf,...n.transform},scale:Bt,coord:Z1,createSpec:Wa,pipe:qa,plugins:t}}var Jee=e=>(t={})=>Wo(e,t);function ete(e){const{geoms:t,stats:n,transforms:r}=FN(e),a={};for(const c of t)a[c.type]=Jee(c.type);const i={};for(const c of n)i[c.type]=()=>({type:c.type});const o={};for(const c of r)o[c.transformType]=u=>({type:"transform",transformType:c.transformType,options:u==null?void 0:u.options});return{geom:a,stat:i,transform:o}}var tte={header:{after:10,before:0},headline:{after:4,before:0},topLegend:{after:8,before:0},topAxisLabel:{after:8,before:0},topAxis:{after:0,before:0},bottomAxis:{after:4,before:0},bottomAxisLabel:{after:16,before:0},bottomLegend:{after:10,before:16},footer:{after:0,before:16}},nte={leftLegend:{after:10,before:0},leftAxis:{after:4,before:0},rightAxis:{after:10,before:4}},Zb="â¦",fj=(e,t,n)=>{if(t<=0||e.length===0)return"";if(n(e)<=t)return e;if(n(Zb)>t)return"";let r=0,a=e.length-1,i=0;for(;r<=a;){const o=r+a>>>1;n(e.slice(0,o)+Zb)<=t?(i=o,r=o+1):a=o-1}return e.slice(0,i)+Zb},Hn={timeZone:"UTC"},Dn=e=>t=>{if(!Ar(t))return"â";try{return e(t)}catch{return"n/a"}},ws=e=>t=>Et(t)?e(t):"â",Dw=e=>t=>lg(t)?t:"â",rte=Yq.humanizer({language:"en",spacer:"",delimiter:" ",languages:{en:{y:()=>"y",mo:()=>"mo",w:()=>"w",d:()=>"d",h:()=>"h",m:()=>"m",s:()=>"s",ms:()=>"ms"}}}),hj=({valueFormat:e,locale:t,numberFormat:n,intlOptions:r})=>ws(a=>{const i=typeof n.decimals=="number"?n.decimals:2,o=Ow(a,i),{base:c,suffix:u}=jw(a,n.abbreviation),f={...o,...B3(e)?{style:"currency",currencyDisplay:"narrowSymbol",currency:e.iso}:{},...r};return`${Intl.NumberFormat(t,f).format(c)}${u}`}),mj=({locale:e,numberFormat:t,intlOptions:n})=>ws(r=>{const{base:a,suffix:i}=jw(r,t.abbreviation),o={...Ow(a,t.decimals),...n};return`${Intl.NumberFormat(e,o).format(a)}${i}`}),Nw=e=>ws(t=>rte(t)),pj=({locale:e,intlOptions:t})=>ws(n=>Intl.NumberFormat(e,{maximumFractionDigits:0,...t}).format(n)),gj=({locale:e,numberFormat:t,intlOptions:n})=>ws(r=>{const a=Ow(r,t.decimals);return Intl.NumberFormat(e,{...a,...n,style:"percent"}).format(r)}),jw=(e,t="none")=>{switch(t){case"none":return{base:e,suffix:""};case"auto":{const n=ate(e);return jw(e,n)}default:return{base:e/Rd[t],suffix:t}}},Ow=(e,t)=>{if(typeof t=="number")return{minimumFractionDigits:t,maximumFractionDigits:t};const n=Math.ceil(Math.log10(Math.abs(e))),r=n>=3?0:n===2?1:2;return{minimumFractionDigits:t==="auto"?0:r,maximumFractionDigits:r}},ate=e=>{const t=Math.abs(e);return t>=Rd.b?"b":t>=Rd.m?"m":t>=Rd.k?"k":"none"},ite=({locale:e,intlOptions:t})=>Dn(n=>Intl.DateTimeFormat(e,{dateStyle:"medium",...Hn,...t}).format(n)),ste=({locale:e,intlOptions:t})=>Dn(n=>{const r=Intl.DateTimeFormat(e,{dateStyle:"medium",timeStyle:"medium",...Hn,...t}).formatToParts(n);return ote(r.map(lte))}),yj=({locale:e,intlOptions:t})=>Dn(n=>Intl.DateTimeFormat(e,{day:"numeric",month:"long",...Hn,...t}).format(n)),bj=({locale:e,intlOptions:t})=>Dn(n=>Intl.DateTimeFormat(e,{month:"long",...Hn,...t}).format(n)),_w=({locale:e,intlOptions:t})=>Dn(n=>Intl.DateTimeFormat(e,{month:"short",year:"numeric",...Hn,...t}).format(n)),Iw=e=>Dn(t=>`Q${Math.floor(t.getUTCMonth()/3)+1} ${t.getUTCFullYear()}`),vj=({locale:e,intlOptions:t})=>Dn(n=>{const r=rg(n,6);return Intl.DateTimeFormat(e,{day:"numeric",month:"long",...Hn,...t,year:void 0}).formatRange(n,r)}),xj=({locale:e,intlOptions:t})=>Dn(n=>{const r=rg(n,6);return Intl.DateTimeFormat(e,{dateStyle:"medium",...Hn,...t}).formatRange(n,r)}),Bw=({locale:e,intlOptions:t})=>Dn(n=>Intl.DateTimeFormat(e,{year:"numeric",...Hn,...t}).format(n)),wj=({locale:e,intlOptions:t})=>Dn(n=>Intl.DateTimeFormat(e,{timeStyle:"short",...Hn,...t}).format(n)),ote=e=>e.map(t=>t.value).join(""),lte=e=>e.type!=="literal"||e.value!==", "?e:{type:"literal",value:" ⢠"},gC=1e3,cte=({valueFormat:e,locale:t,tickValues:n,intlOptions:r})=>ws(a=>{const i={...Vw(a,n),notation:"compact",...B3(e)?{style:"currency",currencyDisplay:"narrowSymbol",currency:e.iso}:{},...r};return zw(a,t,i)}),ute=({locale:e,tickValues:t,intlOptions:n})=>ws(r=>{const a={...Vw(r,t),notation:"compact",...n};return zw(r,e,a)}),dte=({locale:e,tickValues:t,intlOptions:n})=>ws(r=>{const a={...Vw(r,t),notation:"compact",...n,style:"percent"};return zw(r,e,a)}),zw=(e,t,n)=>Intl.NumberFormat(t,n).formatToParts(e).map(r=>r.type==="compact"?r.value.toLowerCase():r.value).join(""),Sj=e=>Math.abs(e)>gC?Sj(e/gC):Number.isInteger(e),fte=e=>{if(e.length<2)return!1;const[t,n]=e;return typeof t!="number"||typeof n!="number"?!1:Math.abs(n-t)<1},Vw=(e,t)=>Sj(e)?{minimumFractionDigits:0,maximumFractionDigits:0}:fte(t)?{minimumFractionDigits:0,maximumFractionDigits:4}:{minimumFractionDigits:0,maximumFractionDigits:1},hte=({locale:e,intlOptions:t})=>Dn(n=>Intl.DateTimeFormat(e,{day:"numeric",month:"short",...Hn,...t}).format(n)),mte=({locale:e,intlOptions:t})=>Dn(n=>Intl.DateTimeFormat(e,{month:"short",...Hn,...t}).format(n)),pte=({locale:e,intlOptions:t})=>Dn(n=>Intl.DateTimeFormat(e,{day:"numeric",month:"short",...Hn,...t}).format(n)),gte=({locale:e,intlOptions:t})=>Dn(n=>Intl.DateTimeFormat(e,{timeStyle:"short",...Hn,...t}).format(n)),Pw=e=>{const{valueFormat:t}=e;switch(t.type){case"currency":return cte(e);case"date":case"datetime":return hte(e);case"day_month":case"weekly_date_range":case"weekly_date_range_with_year":return pte(e);case"decimal":case"integer":return ute(e);case"duration":return Nw();case"month":return mte(e);case"month_year":return _w(e);case"percentage":return dte(e);case"quarter":return Iw();case"text":return Dw();case"time":return gte(e);case"year":return Bw(e);case"lookup":return Pw({...e,valueFormat:t.fallback});default:throw new Be({message:`Unhandled value format: ${t.type}`})}},yte=.9,bte=1/3,vte=1/4,xte=e=>e.formattedAxis.position==="top"||e.formattedAxis.position==="bottom"?wte(e):Ste(e),wte=({formattedAxis:e,bandwidthPx:t,panelRect:n,measureLabel:r})=>{const{widths:a,maxWidth:i,maxHeight:o}
49=Aj(e.ticks,r),c=Ate(e.ticks,n.width),u=c*yte;if(i<=u)return{...e,labelRotation:0,labelMaxWidthPx:null};if(c>=50){const m=kx(u);return{...e,ticks:Tx(e.ticks,a,m,r),labelRotation:0,labelMaxWidthPx:m}}if(o+8>t)return{...e,ticks:[],labelRotation:0,labelMaxWidthPx:null};const f=kx(n.height*bte);return{...e,ticks:Tx(e.ticks,a,f,r),labelRotation:-90,labelMaxWidthPx:f}},Ste=({formattedAxis:e,bandwidthPx:t,panelRect:n,measureLabel:r})=>{const{widths:a,maxWidth:i,maxHeight:o}=Aj(e.ticks,r);if(o>t)return{...e,ticks:[],labelRotation:0,labelMaxWidthPx:null};const c=kx(n.width*vte);return i<=c?{...e,labelRotation:0,labelMaxWidthPx:null}:{...e,ticks:Tx(e.ticks,a,c,r),labelRotation:0,labelMaxWidthPx:c}},Ate=(e,t)=>{const n=e[0],r=e[1];return n===void 0||r===void 0?t:Math.abs(r.position-n.position)*t},Aj=(e,t)=>{const n=[];let r=0,a=0;for(const i of e){const{width:o,height:c}=t(i.formattedLabel);n.push(o),o>r&&(r=o),c>a&&(a=c)}return{widths:n,maxWidth:r,maxHeight:a}},Tx=(e,t,n,r)=>{const a=i=>r(i).width;return e.map((i,o)=>(t[o]??0)<=n?i:{...i,formattedLabel:fj(i.formattedLabel,n,a)})},kx=e=>Math.max(0,Math.floor(e)),Mte=(e,t,n,r)=>{if(e.length===0)return!0;const a=t==="top"||t==="bottom",i=a?60:40;let o=n-(e.length-1)*i;for(const c of e){const{width:u,height:f}=r(c);if(o-=a?u:f,o<0)return!1}return!0},Tte=({axis:e,availableSpacePx:t,measureLabel:n,resolveFormatter:r})=>{const{tickCandidates:a,position:i}=e;if(a.length===0)return[];const o=new Map,c=p=>{const g=o.get(p);if(g)return g;const y=a[p],x=y?kte(y.ticks,r(y)):[];return o.set(p,x),x};let u=0,f=a.length-1,m=-1;for(;u<=f;){const p=u+f>>>1;Mte(c(p).map(g=>g.formattedLabel),i,t,n)?(m=p,u=p+1):f=p-1}return m>=0?c(m):c(0)},kte=(e,t)=>e.map(n=>({...n,formattedLabel:t(n.value)})),yC=.5,Cf=e=>({x:0,y:0,width:e.width,height:e.height}),$w=e=>e==="panel-end"?"end":e==="panel-start"?"start":e,Rf=({box:e,panel:t,frame:n,placement:r,justify:a,align:i,offset:o,alignOffset:c,labelWidth:u,labelHeight:f})=>{const m=a==="panel-start"||a==="panel-end",p=(n.valueAxis==="x"?e.height:e.width)===0,g={anchor:Cte(a,n.valueDirectionSign),placement:m?"inside":r,offset:o},y={anchor:Rte(i),placement:p?r:"inside",offset:p?c??o:0},x=m?t:e,S=n.valueAxis==="x"?x:e,A=n.valueAxis==="y"?x:e,M=n.valueAxis==="x"?g:y,C=n.valueAxis==="x"?y:g,R=vC(M,{min:S.x,max:S.x+S.width,halfExtent:u/2}),L=vC(C,{min:A.y,max:A.y+A.height,halfExtent:f/2});return{x:R,y:L,position:Ete(e,R,L,u,f)}},bC=(e,t,n,r)=>n-r>=e-yC&&n+r<=t+yC,Ete=(e,t,n,r,a)=>{if(e.width===0&&e.height===0)return"outside";const i=e.width===0||bC(e.x,e.x+e.width,t,r/2),o=e.height===0||bC(e.y,e.y+e.height,n,a/2);return i&&o?"inside":"outside"},Cte=(e,t)=>e==="center"?"center":(e==="end"||e==="panel-end")==(t===1)?"max":"min",Rte=e=>e==="center"?"center":e==="start"?"min":"max",vC=({anchor:e,placement:t,offset:n},{min:r,max:a,halfExtent:i})=>{if(e==="center")return(r+a)/2;if(t==="inside"&&r===a)return r;const o=n+i;return e==="min"?t==="inside"?r+o:r-o:t==="inside"?a-o:a+o},Lte=(e,t,n,r,a)=>{const i=t??e,o=1-Math.max(e,i);return{box:{x:n*r,y:o*a,width:0,height:Math.abs(e-i)*a},frame:{valueAxis:"y",valueDirectionSign:e>=i?-1:1}}},Dte=e=>{const t=[];if(!e.layer.dataLabels.showDataLabels)return t;const{offset:n}=e.layer.dataLabels,r=jte(e.layer);for(const a of e.layer.data){const i=it(a),o=hn(a)??et(a);if(i===null||o===null||!Bc(i,o))continue;const c=e.formatLabel(a);if(c==="")continue;const{width:u,height:f}=e.measureDataLabel("observation","outside",c),{box:m,frame:p}=Lte(o,Pn(a),i,e.panelRect.width,e.panelRect.height),g=Rf({box:m,panel:Cf(e.panelRect),frame:p,...r,offset:n,labelWidth:u,labelHeight:f});t.push({layerId:e.layer.id,x:g.x,y:g.y,text:c,width:u,height:f,isRotated:!1,target:"observation",position:"outside"})}return t},Nte={place:Dte,getPercentageValueStrategy:e=>e.position==="fill"?"fill":rr(e.position)?"stack":"none"},jte=e=>{const{position:t,justify:n,align:r}=e.dataLabels;return t==="auto"?{placement:"outside",justify:"end",align:"center"}:{placement:t,justify:Sw(e.data,e.mapping)?$w(n):n,align:r}},Fw=(e,t,n)=>{const r={},a=i=>{const o=r[i];if(o!==void 0)return o;const{width:c,height:u}=e(t,i,n),f={width:c,height:u};return r[i]=f,f};return{get inside(){return a("inside")},get outside(){return a("outside")}}},Tm=6,Ote=e=>{const t=[],n=rr(e.layer.position),r=e.coordSystem.mainAxis==="y";if(e.layer.dataLabels.showDataLabels){const{entries:a,shouldRotate:i}=Ite({layer:e.layer,mainAxis:e.coordSystem.mainAxis,panelRect:e.panelRect,measureDataLabel:e.measureDataLabel,formatLabel:e.formatLabel,isFlipped:r});for(const o of a){const c=e.layer.dataLabels.position==="auto"?Vte({mainAxis:e.coordSystem.mainAxis,isStacked:n,isNegativeBar:o.isNegative,shouldRotate:i,bounds:o.bounds,boxes:o.boxes,panelWidth:e.panelRect.width,panelHeight:e.panelRect.height,offset:e.layer.dataLabels.offset}):Pte(e.layer.dataLabels,e.coordSystem.mainAxis,n,o,Cf(e.panelRect));if(c===null)continue;const u=o.boxes[c.position];t.push({layerId:e.layer.id,x:c.x,y:c.y,text:o.text,width:u.width,height:u.height,isRotated:c.isRotated,target:"observation",position:c.position})}}if(e.layer.dataLabels.showCategoryLabels)for(const a of $te(e,n))t.push(a);if(e.layer.dataLabels.showStackTotals){const a=Gte({layer:e.layer,mainAxis:e.coordSystem.mainAxis,panelRect:e.panelRect,measureDataLabel:e.measureDataLabel,formatAbsolute:e.formatAbsolute});for(const i of a)t.push(i)}return t},_te={place:Ote,getPercentageValueStrategy:e=>e.position==="fill"?"fill":rr(e.position)?"stack":"absoluteGrandTotal"},Ite=({layer:e,mainAxis:t,panelRect:n,measureDataLabel:r,formatLabel:a,isFlipped:i})=>{const o=[];let c=!1;const u=e.dataLabels.position==="auto",f=pe(e.mapping.y);for(const m of e.data){const p=Tj(t,m);if(p===null)continue;const g=a(m);if(g==="")continue;const y=Fw(r,"observation",g),x=Hw(p,n);u&&y.inside.width>x.width&&(c=!0);const S=f===null?null:m[f],A=Et(S)&&S<0;o.push({isNegative:A,text:g,boxes:y,bounds:x})}return{entries:o,shouldRotate:!i&&c}},Hw=(e,t)=>({x:e.x*t.width,y:e.y*t.height,width:e.width*t.width,height:e.height*t.height}),Mj=(e,t,n,r,a)=>{if(e==="x"){let c=1-a,u=a-r;return u<0&&(c+=u,u=-u),{x:t,y:c,width:n-t,height:u}}let i=t,o=n-t;return o<0&&(i+=o,o=-o),{x:i,y:1-a,width:o,height:a-r}},Tj=(e,t)=>{const n=Fr(t),r=Mr(t),a=Pn(t),i=hn(t)??et(t);return n===null||r===null||a===null||i===null?null:Mj(e,n,r,a,i)},Bte=(e,t)=>
49{const{xMin:n,xMax:r,yMin:a,yMax:i}=t.anchor;return Mj(e,n,r,a,i)},zte=(e,t)=>e==="x"?t?"bottom":"top":t?"left":"right",Ex=(e,t,n)=>n?{width:t,height:e}:{width:e,height:t},Vte=e=>e.isStacked?Fte({bounds:e.bounds,box:e.boxes.inside,isRotated:e.shouldRotate}):Ute({edge:zte(e.mainAxis,e.isNegativeBar),bounds:e.bounds,boxes:e.boxes,isRotated:e.shouldRotate,panelWidth:e.panelWidth,panelHeight:e.panelHeight,offset:e.offset}),kj=(e,t)=>e==="x"?{valueAxis:"y",valueDirectionSign:t?1:-1}:{valueAxis:"x",valueDirectionSign:t?-1:1},Pte=(e,t,n,r,a)=>{if(e.position==="auto")return null;const i=n&&e.position==="outside"?"inside":e.position,o=r.boxes[i],c=Rf({box:r.bounds,panel:a,frame:kj(t,r.isNegative),placement:i,justify:e.justify,align:e.align,offset:e.offset,labelWidth:o.width,labelHeight:o.height});return{x:c.x,y:c.y,isRotated:!1,position:c.position}},$te=(e,t)=>{const n=[],{categoryPosition:r,categoryJustify:a,categoryAlign:i,categoryOffset:o}=e.layer.dataLabels,c=t&&r==="outside"?"inside":r,u=e.coordSystem.mainAxis,f=Cf(e.panelRect),m=pe(e.layer.mapping.y);for(const p of e.layer.data){const g=Tj(u,p);if(g===null)continue;const y=e.formatCategory(p);if(y===null||y==="")continue;const x=Fw(e.measureDataLabel,"category",y),S=x[c],A=Hw(g,e.panelRect),M=m===null?null:p[m],C=Et(M)&&M<0,R=Rf({box:A,panel:f,frame:kj(u,C),placement:c,justify:a,align:i,offset:o,labelWidth:S.width,labelHeight:S.height}),L=x[R.position];n.push({layerId:e.layer.id,x:R.x,y:R.y,text:y,width:L.width,height:L.height,isRotated:!1,target:"category",position:R.position})}return n},Fte=({bounds:e,box:t,isRotated:n})=>{const r=Ex(t.width,t.height,n);return r.width>e.width||r.height>e.height?null:{x:e.x+e.width/2,y:e.y+e.height/2,isRotated:n,position:"inside"}},Hte=(e,t,n,r)=>{switch(e){case"top":return{edgeCoord:t.y,outwardSign:-1,panelExtent:r};case"bottom":return{edgeCoord:t.y+t.height,outwardSign:1,panelExtent:r};case"left":return{edgeCoord:t.x,outwardSign:-1,panelExtent:n};case"right":return{edgeCoord:t.x+t.width,outwardSign:1,panelExtent:n}}},Ute=({edge:e,bounds:t,boxes:n,isRotated:r,panelWidth:a,panelHeight:i,offset:o})=>{const c=e==="top"||e==="bottom",u=t.x+t.width/2,f=t.y+t.height/2,m=c?t.height:t.width,p=c?t.width:t.height,{edgeCoord:g,outwardSign:y,panelExtent:x}=Hte(e,t,a,i),S=Ex(n.inside.width,n.inside.height,r),A=c?S.height:S.width,M=c?S.width:S.height;if(A+o<m){if(M>p)return null;if(r)return{x:u,y:f,isRotated:!0,position:"inside"};const N=g-y*(A/2+o);return{...c?{x:u,y:N}:{x:N,y:f},isRotated:!1,position:"inside"}}const C=Ex(n.outside.width,n.outside.height,r),R=(c?C.height:C.width)/2,L=g+y*(R+o);return L-R<0||L+R>x?null:{...c?{x:u,y:L}:{x:L,y:f},isRotated:r,position:"outside"}},Gte=({layer:e,mainAxis:t,panelRect:n,measureDataLabel:r,formatAbsolute:a})=>{const i=[],o=e.summary.stackTotals;if(o===void 0||o.length===0)return i;const c=t==="y";for(const u of o){const f=Hw(Bte(t,u),n),m=a(u.total),{width:p,height:g}=r("aggregate","outside",m),y=u.anchor.direction==="positive";let x,S;c?(x=y?f.x+f.width+Tm+p/2:f.x-Tm-p/2,S=f.y+f.height/2):(x=f.x+f.width/2,S=y?f.y-Tm-g/2:f.y+f.height+Tm+g/2),i.push({layerId:e.id,x,y:S,text:m,width:p,height:g,isRotated:!1,target:"aggregate",position:"outside"})}return i},Yte=e=>{const t=[];if(!e.layer.dataLabels.showDataLabels)return t;const{offset:n}=e.layer.dataLabels,r=qte(e.layer);for(const a of e.layer.data){const i=it(a),o=et(a);if(i===null||o===null||!Bc(i,o))continue;const c=e.formatLabel(a);if(c==="")continue;const{width:u,height:f}=e.measureDataLabel("observation","outside",c),m=Rf({box:{x:i*e.panelRect.width,y:(1-o)*e.panelRect.height,width:0,height:0},panel:Cf(e.panelRect),frame:{valueAxis:"y",valueDirectionSign:-1},...r,offset:n,labelWidth:u,labelHeight:f});
49t.push({layerId:e.layer.id,x:m.x,y:m.y,text:c,width:u,height:f,isRotated:!1,target:"observation",position:m.position})}return t},Wte={place:Yte,getPercentageValueStrategy:()=>"none"},qte=e=>{const{position:t,justify:n,align:r}=e.dataLabels;return t==="auto"?{placement:"outside",justify:"end",align:"center"}:{placement:t,justify:Sw(e.data,e.mapping)?$w(n):n,align:r}};function Lf(e){return e[Wc.color]}function Uw(e){return e[Wc.alpha]}function Gw(e){return e[Wc.size]}function xC(e){return e[Wc.strokeWidth]}function Xte(e){return e[Wc.lineType]}var Kte={color:Lf,alpha:Uw,strokeWidth:xC,lineType:Xte,size:Gw,borderWidth:xC},al=(e={})=>{const t=e.colorScheme??"light",n=new WeakMap,r=new WeakMap;return{geomReaders:a=>{const i=n.get(a);if(i!==void 0)return i;const o=Jte(a.styles,t);return n.set(a,o),o},chromeReaders:a=>{const i=r.get(a);if(i!==void 0)return i;const o=Qte(a,t);return r.set(a,o),o},explain:(a,i,o,c)=>{if(c!==void 0){const p=wd(a.styles.overrides,i,o,c,t);if(p!==void 0)return{value:p.value,tier:"override",origin:p.origin,state:c};const g=wd(a.styles.defaults,i,o,c,t);if(g!==void 0)return{value:g.value,tier:"default",origin:g.origin,state:c}}const u=wd(a.styles.overrides,i,o,void 0,t);if(u!==void 0)return{value:u.value,tier:"override",origin:u.origin};const f=Ej(i,o);if(f!==void 0)return{value:f,tier:"data"};const m=wd(a.styles.defaults,i,o,void 0,t);return m!==void 0?{value:m.value,tier:"default",origin:m.origin}:{value:void 0,tier:"unresolved"}}}},Qte=(e,t)=>{const n=(u,f)=>{const m=p=>wC(u.overrides,p,f)??wC(u.defaults,p,f);return{get:p=>{var y;const g=(y=m(p))==null?void 0:y.declarations[p];if(g!==void 0)return Zte(g,t)},getSource:p=>{const g=m(p);return g===void 0?"unresolved":g.origin.list==="builtin"?"builtin":"authored"}}},r=u=>n(e.panelBorder,f=>{const m=f.select.target==="panelBorder"?f.select.edge:void 0;return m===void 0||m===u}),a=u=>f=>n(e[u],m=>m.select.target!==u?!1:m.select.axis===void 0||m.select.axis===f),i=u=>n(e.ruleLabel,f=>f.select.target!=="ruleLabel"?!1:f.select.layer===void 0||f.select.layer===u),o=(u,f)=>n(e.dataLabel,m=>m.select.target!=="dataLabel"||m.select.role!==void 0&&m.select.role!==u?!1:m.select.position===void 0||m.select.position===f),c=u=>n(e.tooltip,f=>f.select.target==="tooltip"&&f.select.part===u);return{panelBorder:r,gridLine:a("gridLine"),tickLine:a("tickLine"),axisLabel:a("axisLabel"),tickLabel:a("tickLabel"),ruleLabel:i,dataLabel:o,graph:n(e.graph,()=>!0),tooltip:{box:c(void 0),heading:c("heading"),label:c("label"),value:c("value"),primaryRow:c("primaryRow")}}},wC=(e,t,n)=>{for(let r=e.length-1;r>=0;r--){const a=e[r];if(!(a===void 0||!n(a))&&a.declarations[t]!==void 0)return a}},Zte=(e,t)=>
49{if(No(e))return e[t];if(typeof e=="object"&&"offsetX"in e){const{offsetX:n,offsetY:r,blur:a,color:i}=e;return{offsetX:n,offsetY:r,blur:a,color:No(i)?i[t]:i}}return e},Jte=(e,t)=>({get:(n,r,a)=>{if(a!==void 0){const c=km(e.overrides,n,r,a,t);if(c!==void 0)return c;const u=km(e.defaults,n,r,a,t);if(u!==void 0)return u}const i=km(e.overrides,n,r,void 0,t);if(i!==void 0)return i;const o=Ej(n,r);return o!==void 0?o:km(e.defaults,n,r,void 0,t)}}),km=(e,t,n,r,a)=>{var i;return(i=wd(e,t,n,r,a))==null?void 0:i.value},wd=(e,t,n,r,a)=>{for(let i=e.length-1;i>=0;i--){const o=e[i];if(o===void 0||o.state!==r)continue;const c=o.declarations[t];if(c!==void 0&&ene(o,n))return{value:tne(c,a),origin:o.origin}}},ene=(e,t)=>e.matches===void 0?!0:t!==void 0&&e.matches(t),tne=(e,t)=>No(e)?e[t]:e,Ej=(e,t)=>{const n=Kte[e];if(!(n===void 0||t===void 0))return n(t)??void 0},nne=e=>{const t=[];if(!e.layer.dataLabels.showDataLabels)return t;const{offset:n}=e.layer.dataLabels,r=ane(e.layer),a=r.justify==="panel-start"||r.justify==="panel-end",i=al().geomReaders(e.layer);for(const o of e.layer.data){const c=it(o),u=et(o);if(c===null||u===null||!Bc(c,u))continue;const f=e.formatLabel(o);if(f==="")continue;const{width:m,height:p}=e.measureDataLabel("observation","outside",f),g=i.get("size",o)/2,y=Rf({box:{x:c*e.panelRect.width,y:(1-u)*e.panelRect.height,width:0,height:0},panel:Cf(e.panelRect),frame:{valueAxis:"y",valueDirectionSign:-1},...r,offset:a?n:n+g,alignOffset:n+g,labelWidth:m,labelHeight:p});t.push({layerId:e.layer.id,x:y.x,y:y.y,text:f,width:m,height:p,isRotated:!1,target:"observation",position:y.position})}return t},rne={place:nne,getPercentageValueStrategy:()=>"none"},ane=e=>{const{position:t,justify:n,align:r}=e.dataLabels;return t==="auto"?{placement:"outside",justify:"end",align:"center"}:{placement:t,justify:n,align:r}},ine=e=>{const t=Fr(e),n=Mr(e),r=Pn(e),a=hn(e);if(t===null||n===null||r===null||a===null)return null;const i=Math.min(t,n),o=Math.abs(n-t),c=Math.max(r,a),u=Math.abs(a-r);return{x:i,y:1-c,width:o,height:u}},Yw=e=>{const t=ine(e);if(!t)return null;const n=t.width*MZ,r=t.height*TZ;return{x:t.x+n,y:t.y+r,width:t.width-n*2,height:t.height-r*2}},SC=4,sne=e=>{const t=[];if(!e.layer.dataLabels.showDataLabels)return t;const n=al().geomReaders(e.layer);for(const r of e.layer.data){const a=Yw(r);if(a===null||!Lf(r))continue;const i=e.formatLabel(r);if(i==="")continue;const{width:o,height:c}=e.measureDataLabel("observation","inside",i),u=a.width*e.panelRect.width,f=a.height*e.panelRect.height;o+SC>u||c+SC>f||t.push({layerId:e.layer.id,x:(a.x+a.width/2)*e.panelRect.width,y:(a.y+a.height/2)*e.panelRect.height,text:i,width:o,height:c,isRotated:!1,target:"observation",position:"inside",backdropColor:n.get("color",r)})}return t},one={place:sne,getPercentageValueStrategy:()=>"none"};function Df(e){return{startAngle:e[oe.xMin],endAngle:e[oe.xMax]}}function tu(e){return{innerRadius:e[oe.yMin],outerRadius:e[oe.yMax]??e[oe.y]}}var lne=" · ",Jb=2,nf=(e,t,n,r)=>{const a=Math.abs(e==="radial"?Math.sin(t):Math.cos(t)),i=Math.abs(e==="radial"?Math.cos(t):Math.sin(t));return a*(n/2)+i*(r/2)},cne=({wedge:e,labelRadius:t,labelAngle:n,labelWidth:r,labelHeight:a})=>{const i=nf("radial",n,r,a);if(!(t-i>=e.innerRadiusPx-Jb&&t+i<=e.outerRadiusPx+Jb)||t<=0)return!1;const o=Math.abs(e.endAngle-e.startAngle)/2,c=nf("tangential",n,r,a)/t,u=Jb/t;return Math.abs(n-e.midAngle)+c<=o+u},une=({x:e,y:t,labelWidth:n,labelHeight:r,panelRect:a})=>e-n/2>=0&&e+n/2<=a.width&&t-r/2>=0&&t+r/2<=a.height,dne=({wedge:e,position:t,offset:n,labelWidth:r,labelHeight:a})=>t==="inside"?{labelRadius:(e.innerRadiusPx+e.outerRadiusPx)/2,labelAngle:e.midAngle,position:"inside"}:{labelRadius:e.outerRadiusPx+n+nf("radial",e.midAngle,r,a),labelAngle:e.midAngle,position:"outside"},fne=({wedge:e,placement:t,justify:n,align:r,offset:a,labelWidth:i,labelHeight:o})=>{const c=r==="start"?e.startAngle:r==="end"?e.endAngle:e.midAngle,u=a+nf("radial",c,i,o);let f;if(n==="center")f=(e.innerRadiusPx+e.outerRadiusPx)/2;else if(n==="end")f=t==="inside"?e.outerRadiusPx-u:e.outerRadiusPx+u;else if(t==="inside")f=e.innerRadiusPx+u;else{const p=e.innerRadiusPx-u;f=p>=0?p:e.innerRadiusPx+u}let m=c;if(r!=="center"&&f>0){const p=nf("tangential",c,i,o)/f;m=c+(r==="start"?1:-1)*p}
49return{labelRadius:f,labelAngle:m,position:cne({wedge:e,labelRadius:f,labelAngle:m,labelWidth:i,labelHeight:o})?"inside":"outside"}},hne=e=>{const t=[];if(!e.layer.dataLabels.showDataLabels)return t;const{position:n,justify:r,align:a,offset:i,showCategoryLabels:o}=e.layer.dataLabels,c=e.coordSystem.bandAxis==="y"?"inside":"outside",u=e.panelRect.width/2,f=e.panelRect.height/2,m=Math.min(e.panelRect.width,e.panelRect.height)/2;for(const p of e.layer.data){const{startAngle:g,endAngle:y}=Df(p),{innerRadius:x,outerRadius:S}=tu(p);if(g===null||y===null||S===null)continue;const A=e.formatLabel(p);if(A==="")continue;const M=o?e.formatCategory(p):null,C=M===null?A:`${M}${lne}${A}`,R={startAngle:g,endAngle:y,midAngle:(g+y)/2,innerRadiusPx:(x??0)*m,outerRadiusPx:S*m};let L,N;if(n==="auto"){const T=e.measureDataLabel("observation",c,C);N={width:T.width,height:T.height},L=dne({wedge:R,position:c,offset:i,labelWidth:N.width,labelHeight:N.height})}else{const T=Fw(e.measureDataLabel,"observation",C),j=T[n];L=fne({wedge:R,placement:n,justify:$w(r),align:a,offset:i,labelWidth:j.width,labelHeight:j.height}),N=T[L.position]}const O=u+Math.sin(L.labelAngle)*L.labelRadius,$=f-Math.cos(L.labelAngle)*L.labelRadius;n==="auto"&&!une({x:O,y:$,labelWidth:N.width,labelHeight:N.height,panelRect:e.panelRect})||t.push({layerId:e.layer.id,x:O,y:$,text:C,width:N.width,height:N.height,isRotated:!1,target:"observation",position:L.position})}return t},mne={place:hne,getPercentageValueStrategy:()=>"absoluteGrandTotal"},pne=e=>{const t=dn({...e,valueFormat:e.valueFormat.fallback}),n={};for(const[a,i]of Object.entries(e.valueFormat.cases))n[a]=dn({...e,valueFormat:i});const r=e.valueFormat.byVariable;return(a,i)=>{if(i===void 0||i[r]===void 0)return t(a);const o=yt(i[r]),c=n[o];return c!==void 0?c(a,i):t(a)}},dn=e=>{switch(e.valueFormat.type){case"currency":return hj(e);case"date":return ite(e);case"datetime":return ste(e);case"day_month":return yj(e);case"decimal":return mj(e);case"duration":return Nw();case"integer":return pj(e);case"month":return bj(e);case"month_year":return _w(e);case"percentage":return gj(e);case"quarter":return Iw();case"text":return Dw();case"weekly_date_range":return vj(e);case"weekly_date_range_with_year":return xj(e);case"year":return Bw(e);case"time":return wj(e);case"lookup":return pne({...e,valueFormat:e.valueFormat});default:{const t=e.valueFormat;throw new Be({message:`Unhandled value format: ${t.type}`})}}};function Ww({layer:e,numberFormat:t,locale:n}){return dn({valueFormat:PX(e),locale:n,numberFormat:t})}var gne=(e,t)=>{const n=pe(t.x);return n!==null&&n!==jc.x?{read:xg(e,t),variable:n}:{read:Ua,variable:pt.group}},Cj=({layer:e,coordSystem:t,axes:n,numberFormat:r,panelRect:a,measureDataLabel:i,formattingLocale:o,percentageValueStrategy:c})=>{const u=Ww({layer:e,numberFormat:r,locale:o});return{layer:e,coordSystem:t,panelRect:a,measureDataLabel:i,formatLabel:wne({layer:e,numberFormat:r,axes:n,locale:o,absoluteFormatter:u,percentageValueStrategy:c}),formatAbsolute:u,formatCategory:yne({layer:e,numberFormat:r,locale:o})}},yne=({layer:e,numberFormat:t,locale:n})=>{const{read:r,variable:a}=gne(e.data,e.mapping),i=dn({valueFormat:e.data.hasVariable(a)?e.data.getValueFormat(a):{type:"text"},locale:n,numberFormat:t});return o=>{const c=r(o);return c===null?null:i(c,o)}},bne=(e,t)=>{switch(t){case"stack":return vne(e);case"fill":return xne(e);case"absoluteGrandTotal":return()=>e.summary.absoluteGrandTotal??null;case"none":return()=>null}},vne=e=>{const t=pe(e.mapping.x);let n=null,r=!1;return a=>{const i=e.summary.stackTotals;if(i===void 0||i.length===0||t===null)return null;if(!r){n=new Map;for(const u of i)n.set(u.xKey,u);r=!0}if(a[t]==null)return null;const c=n==null?void 0:n.get(Mw(a,t));return c===void 0?null:c.total}},xne=e=>{const t=Mf(e);return n=>{const r=Pn(n),a=hn(n);if(!Et(r)||!Et(a))return null;const i=Math.abs(a-r);if(i===0)return null;const o=t(n);return Et(o)?o/i:null}},wne=({layer:e,numberFormat:t,axes:n,locale:r,absoluteFormatter:a,percentageValueStrategy:i})=>{const o=Zo(e.data,e.dataLabels.labelSource),c=bne(e,i),u=Sne({layer:e,numberFormat:t,axes:n,locale:r,absoluteFormatter:a}),f=dn({valueFormat:{type:"percentage"},locale:r,numberFormat:t}),m=e.dataLabels.format==="percentage"&&Rj(e);return p=>{const g=o(p);if(g===null)return"";if(!m||!Et(g))return u(g,p);const y=c(p);return y===null||y===0?u(g,p):f(g/y)}},Sne=({layer:e,numberFormat:t,axes:n,locale:r,absoluteFormatter:a})=>{const i=e.dataLabels.labelSource,o=pe(i);if(o!==null){if(Rj(e))return a;const c=Ane(e,n,t,r,o);if(c!==null)return c}return dn({valueFormat:Mne(e.data,i),locale:r,numberFormat:t})},Rj=e=>{const t=pe(e.dataLabels.labelSource);return t===null?!1:t===pe(hw(e.position,e.mapping))},Ane=(e,t,n,r,a)=>{const i=pe(e.mapping.x);if(i===null||i!==a)return null;const o=t.find(c=>c.scaleAestheticKey==="x");return o===void 0?null:dn({valueFormat:o.valueFormat,locale:r,numberFormat:n})},Mne=(e,t)=>{const n=Sr(t);if(n!==void 0)return MH(n)?{type:"decimal"}:AH(n)?{type:"date"}:{type:"text"};const r=pe(t);return r===null||!e.hasVariable(r)?{type:"text"}:e.getValueFormat(r)},Lj={bar:{cartesian:_te,polar:mne},line:{cartesian:Wte},point:{cartesian:rne},area:{cartesian:Nte},tile:{cartesian:one}},Tne=({layers:e,coordSystem:t,axes:n,numberFormat:r,parsingLocale:a,panelRect:i,measureDataLabel:o,formattingLocale:c,plotBottomY:u,isFooterChromeReserved:f})=>{var y;const m=[],p=c??a,g=t.type;for(const x of e){if(!x.dataLabels.showDataLabels&&!x.dataLabels.showStackTotals&&!x.dataLabels.showCategoryLabels)continue;const S=x.geom,A=(y=Lj[S])==null?void 0:y[g];if(A===void 0)continue;const M=Cj({layer:x,coordSystem:t,axes:n,numberFormat:r,panelRect:i,measureDataLabel:o,formattingLocale:p,percentageValueStrategy:A.getPercentageValueStrategy(x)}),C=A.place(M);for(const R of C)kne(R,g,u,f)||m.push(R)}return{labels:m}},kne=(e,t,n,r)=>t==="polar"&&r&&e.position==="outside"&&e.y+e.height/2>n;function*Ene({layers:e,coordSystem:t,axes:n,numberFormat:r,panelRect:a,measureDataLabel:i,locale:o}){var c;if(!(t.type!=="cartesian"||a.width<=0||a.height<=0))for(const u of e){if(!u.dataLabels.showDataLabels&&!u.dataLabels.showStackTotals)continue;const f=(c=Lj[u.geom])==null?void 0:c.cartesian;if(f===void 0)continue;const m=Cj({layer:u,coordSystem:t,axes:n,numberFormat:r,panelRect:a,measureDataLabel:i,formattingLocale:o,percentageValueStrategy:f.getPercentageValueStrategy(u)});for(const p of f.place(m))yield{x:a.x+p.x-p.width/2,y:a.y+p.y-p.height/2,width:p.width,height:p.height}}}var ev={abbreviation:"none",decimals:"auto"},Cne=({locale:e,kind:t,startValue:n,endValue:r,valueFormat:a})=>{if(n===null||r===null)return"n/a";switch(t){case"absolute-difference":return dn({valueFormat:a,locale:e,numberFormat:ev,intlOptions:{signDisplay:"always"}})(r-n);case"relative-difference":{const i=r-n;if(i===0)return"0%";const o=i/n;return o===Number.POSITIVE_INFINITY?"â":o===Number.NEGATIVE_INFINITY?"-â":dn({valueFormat:{type:"percentage"},locale:e,numberFormat:ev,intlOptions:{signDisplay:"always"}})(o)}case"proportion":{if(r-n===0)return"=";const i=r/n;return i===Number.POSITIVE_INFINITY?"â":i===Number.NEGATIVE_INFINITY?"-â":`${dn({valueFormat:{type:"decimal"},locale:e,numberFormat:ev,intlOptions:{maximumFractionDigits:1}})(i)}x`}}},tv=6,nv=6,rv=15,av=5,iv=15,Dj=(e,t)=>{switch(e){case"small":return{arrowStartGap:tv,arrowEndGap:nv,offsetFromHigherObservation:rv,arrowheadSize:av,curveRadius:iv,strokeWidth:2,labelLineHeight:12*t,labelPaddingX:6,labelPaddingY:3,labelStrokeWidth:1,labelFontWeight:500};case"medium":return{arrowStartGap:tv*1.5,arrowEndGap:nv*1.5,offsetFromHigherObservation:rv*1.25,arrowheadSize:av*1.5,curveRadius:iv*1.25,strokeWidth:3,labelLineHeight:16*t,labelPaddingX:8,labelPaddingY:4,labelStrokeWidth:1.5,labelFontWeight:500};case"large":return{arrowStartGap:tv*2,arrowEndGap:nv*2,offsetFromHigherObservation:rv*1.75,arrowheadSize:av*2.5,
49curveRadius:iv*1.5,strokeWidth:5,labelLineHeight:20*t,labelPaddingX:10,labelPaddingY:5,labelStrokeWidth:2,labelFontWeight:600}}},Rne=(e,t,n,r)=>{const a=r.offsetFromHigherObservation+r.arrowheadSize+r.arrowEndGap;return e?Math.max(t.x,n.x)+a:Math.min(t.y,n.y)-a},Lne=(e,t,n,{arrowStartGap:r,arrowEndGap:a,curveRadius:i})=>{const o={x:e.x,y:e.y-r},c={x:e.x,y:n},u={x:t.x,y:n},f={x:t.x,y:t.y-a},m=t.x>e.x?1:-1;return` 50 M ${o.x} ${o.y} 51 L ${c.x} ${c.y+i} 52 Q ${c.x} ${c.y} ${c.x+m*i} ${c.y} 53 L ${u.x-m*i} ${u.y} 54 Q ${u.x} ${u.y} ${u.x} ${u.y+i} 55 L ${f.x} ${f.y} 56 `},Dne=(e,t,n,{arrowStartGap:r,arrowEndGap:a,curveRadius:i})=>{const o={x:e.x+r,y:e.y},c={x:n,y:e.y},u={x:n,y:t.y},f={x:t.x+a,y:t.y},m=t.y>e.y?1:-1;return` 57 M ${o.x} ${o.y} 58 L ${c.x-i} ${c.y} 59 Q ${c.x} ${c.y} ${c.x} ${c.y+m*i} 60 L ${u.x} ${u.y-m*i} 61 Q ${u.x} ${u.y} ${u.x-i} ${u.y} 62 L ${f.x} ${f.y} 63 `},Nne=(e,t,{arrowEndGap:n,arrowheadSize:r})=>e?` 64 M ${t.x+n+r} ${t.y-r} 65 L ${t.x+n} ${t.y} 66 L ${t.x+n+r} ${t.y+r} 67 `:` 68 M ${t.x-r} ${t.y-n-r} 69 L ${t.x} ${t.y-n} 70 L ${t.x+r} ${t.y-n-r} 71 `,jne=(e,t,n,r,a,i=.5)=>e?{x:r,y:Math.min(t.y,n.y)+i*a}:{x:Math.min(t.x,n.x)+i*a,y:r},One=(e,t,n)=>Math.abs(e?t.y-n.y:t.x-n.x),Nj=({arrow:e,mainAxis:t,panelWidth:n,panelHeight:r,textScale:a,locale:i})=>{const o=t==="y",c={x:e.start.x*n,y:(1-e.start.y)*r},u={x:e.end.x*n,y:(1-e.end.y)*r},f=Dj(e.size,a),m=Rne(o,c,u,f),p=(o?Dne:Lne)(c,u,m,f),g=Nne(o,u,f),y=jne(o,c,u,m,One(o,c,u),e.labelCrossPosition),x=Cne({locale:i,kind:e.label,startValue:e.start.measurementValue,endValue:e.end.measurementValue,valueFormat:e.start.valueFormat});return{id:e.id,start:c,end:u,linePath:p,arrowheadPath:g,labelPosition:y,labelText:x,strokeWidth:f.strokeWidth,labelLineHeight:f.labelLineHeight,labelPaddingX:f.labelPaddingX,labelPaddingY:f.labelPaddingY,labelStrokeWidth:f.labelStrokeWidth,labelFontWeight:f.labelFontWeight}};function*_ne({annotations:e,mainAxis:t,panelRect:n,textScale:r,locale:a,measureLabel:i}){for(const o of e.differenceArrows){if(!Bc(o.start.x,o.start.y)||!Bc(o.end.x,o.end.y))continue;const c=Nj({arrow:o,mainAxis:t,panelWidth:n.width,panelHeight:n.height,textScale:r,locale:a}),u=i(c.labelText,o.size).width+2*c.labelPaddingX,f=c.labelLineHeight+2*c.labelPaddingY;yield{x:n.x+c.labelPosition.x-u/2,y:n.y+c.labelPosition.y-f/2,width:u,height:f}}}var Ine=e=>{const t=e.padding,n=AC(e.rows,(t==null?void 0:t.top)??0,(t==null?void 0:t.bottom)??0),r=AC(e.cols,(t==null?void 0:t.left)??0,(t==null?void 0:t.right)??0);return{rows:n.tracks,cols:r.tracks,placements:Pne(e.placements,n.nameToIndex,r.nameToIndex),width:e.containerSize.width,height:e.containerSize.height}},Bne=e=>{const t=MC(e.rows,e.height),n=MC(e.cols,e.width),r=TC(t),a=TC(n),i=new Map;for(const o of e.placements){const c=o.rowSpan??1,u=o.colSpan??1,f=a[o.col]??0,m=r[o.row]??0,p=kC(n,o.col,u),g=kC(t,o.row,c);i.set(o.name,{x:f,y:m,width:Math.max(0,p),height:Math.max(0,g)})}return i},AC=(e,t,n)=>{var o,c;const r=[],a=new Map;t>0&&r.push({type:"fixed",pixels:t});let i=0;for(let u=0;u<e.length;u++){const f=e[u];if(!f)continue;Cx(f)&&i>0&&(r.push({type:"fixed",pixels:i}),i=0),a.set(f.name,r.length),r.push(zne(f));const m=Vne(e,u);if(Cx(f)&&m){const p=((o=f.gaps)==null?void 0:o.after)??0,g=((c=m.gaps)==null?void 0:c.before)??0;p>=g?p>0&&r.push({type:"fixed",pixels:p}):i=g}}return n>0&&r.push({type:"fixed",pixels:n}),{tracks:r,nameToIndex:a}},zne=e=>typeof e.size=="number"?{type:"fixed",pixels:e.size}:{type:"flex",weight:e.size.flex},Cx=e=>typeof e.size=="number"?e.size>0:e.size.flex>0,Vne=(e,t)=>{for(let n=t+1;n<e.length;n++){const r=e[n];if(r&&Cx(r))return r}},Pne=(e,t,n)=>{const r=[];for(const a of e){const i=t.get(a.row),o=n.get(a.col);if(i===void 0||o===void 0)continue;const c=a.rowEnd!==void 0?t.get(a.rowEnd):i,u=a.colEnd!==void 0?n.get(a.colEnd):o;c===void 0||u===void 0||r.push({name:a.name,row:i,col:o,rowSpan:Math.max(1,c-i+1),colSpan:Math.max(1,u-o+1)})}return r},MC=(e,t)=>{let n=0,r=0;for(const i of e)i.type==="fixed"?n+=i.pixels:r+=i.weight;const a=Math.max(0,t-n);return e.map(i=>i.type==="fixed"?i.pixels:r===0?0:i.weight/r*a)},TC=e=>{const t=new Array(e.length);let n=0;for(let r=0;r<e.length;r++)t[r]=n,n+=e[r]??0;return t},kC=(e,t,n)=>{let r=0;const a=Math.min(t+n,e.length);for(let i=t;i<a;i++)r+=e[i]??0;return r},Pc={top:0,right:0,bottom:0,left:0},jj={outer:Pc,inner:Pc},$ne={top:24,right:24,bottom:24,left:24},Fne=(e,t,n,r=Pc,a=jj,i=$ne,o={})=>{const c={top:a.inner.top+r.top,right:a.inner.right+r.right,bottom:a.inner.bottom+r.bottom,left:a.inner.left+r.left},u=n.axes.top>0||n.axesLabels.top>0?n.axesLabels.top:Math.max(n.axesLabels.top,n.axesLabels.left,n.axesLabels.right),f=EC(tte,o),m=EC(nte,o);return Ine({rows:[{name:"header",size:t.headerSize.height,gaps:f.header},{name:"topLegend",size:n.legends.top,gaps:f.topLegend},{name:"headline",size:n.headline,gaps:f.headline},{name:"topAxisLabel",size:u,gaps:f.topAxisLabel},{name:"topAxis",size:n.axes.top,gaps:f.topAxis},{name:"topPanelOuter",size:a.outer.top},{name:"topPanelInner",size:c.top},{name:"panel",size:{flex:1}},{name:"bottomPanelInner",size:c.bottom},{name:"bottomPanelOuter",size:a.outer.bottom},{name:"bottomAxis",size:n.axes.bottom,gaps:f.bottomAxis},{name:"bottomAxisLabel",size:n.axesLabels.bottom,gaps:f.bottomAxisLabel},{name:"bottomLegend",size:n.legends.bottom,gaps:f.bottomLegend},{name:"footer",size:t.footerSize.height,gaps:f.footer}],cols:[{name:"leftLegend",size:n.legends.left,gaps:m.leftLegend},{name:"leftAxis",size:n.axes.left,gaps:m.leftAxis},{name:"leftPanelOuter",size:a.outer.left},{name:"leftPanelInner",size:c.left},{name:"panel",size:{flex:1}},{name:"rightPanelInner",size:c.right},{name:"rightPanelOuter",size:a.outer.right},{name:"rightAxis",size:n.axes.right,gaps:m.rightAxis},{name:"rightLegend",size:n.legends.right}],placements:[{name:"header",row:"header",col:"leftLegend",colEnd:"rightLegend"},{name:"headline",row:"headline",col:"leftLegend",colEnd:"rightLegend"},{name:"footer",row:"footer",col:"leftLegend",colEnd:"rightLegend"},{name:"plot",row:"topAxisLabel",rowEnd:"bottomAxisLabel",col:"leftAxis",colEnd:"rightAxis"},{name:"panelFrame",row:"topPanelInner",rowEnd:"bottomPanelInner",col:"leftPanelInner",colEnd:"rightPanelInner"},{name:"panel",row:"panel",col:"panel"},...Une(n.axes),...Gne(n.axesLabels,n.axes),...Yne(n.legends)],containerSize:e,padding:i})},Hne=(e,t)=>de(t)?typeof t=="number"?{before:e.before,after:sv(t,e.after)}:{before:sv(t.before,e.before),after:sv(t.after,e.after)}:e,sv=(e,t)=>typeof e=="number"&&Number.isFinite(e)?e:t,EC=(e,t)=>{const n={};
71for(const r of Object.keys(e))n[r]=Hne(e[r],t[r]);return n},Une=e=>{const t=[];return e.top>0&&t.push({name:"topAxis",row:"topAxis",col:"panel"}),e.bottom>0&&t.push({name:"bottomAxis",row:"bottomAxis",col:"panel"}),e.left>0&&t.push({name:"leftAxis",row:"panel",col:"leftAxis"}),e.right>0&&t.push({name:"rightAxis",row:"panel",col:"rightAxis"}),t},Gne=(e,t)=>{const n=[];return e.top>0||t.top>0?(e.top>0&&n.push({name:"topAxisLabel",row:"topAxisLabel",col:"panel"}),e.left>0&&n.push({name:"leftAxisLabel",row:"topAxis",col:"leftAxis"}),e.right>0&&n.push({name:"rightAxisLabel",row:"topAxis",col:"rightAxis"})):(e.left>0&&n.push({name:"leftAxisLabel",row:"topAxisLabel",col:"leftAxis"}),e.right>0&&n.push({name:"rightAxisLabel",row:"topAxisLabel",col:"rightAxis"})),e.bottom>0&&n.push({name:"bottomAxisLabel",row:"bottomAxisLabel",col:"panel"}),n},Yne=e=>{const t=[];return e.top>0&&t.push({name:"topLegend",row:"topLegend",col:"leftAxis",colEnd:"rightAxis"}),e.bottom>0&&t.push({name:"bottomLegend",row:"bottomLegend",col:"leftAxis",colEnd:"rightAxis"}),e.left>0&&t.push({name:"leftLegend",row:"panel",col:"leftLegend"}),e.right>0&&t.push({name:"rightLegend",row:"panel",col:"rightLegend"}),t},Wne=class{constructor(t){this.outer={...Pc},this.inner={...Pc},this.currentPanelRect=t}resolve(){return{outer:{...this.outer},inner:{...this.inner}}}add(t,n){const r=this.computeEdgeOverflow(t,8),a=this.computeEdgeOverflow(t,0);this.growEdge("left",n.x,r.left,a.left),this.growEdge("right",n.x,r.right,a.right),this.growEdge("top",n.y,r.top,a.top),this.growEdge("bottom",n.y,r.bottom,a.bottom)}computeEdgeOverflow(t,n){const r=this.currentPanelRect;return{top:Math.max(Math.ceil(r.y+n-t.y),0),right:Math.max(Math.ceil(t.x+t.width-(r.x+r.width-n)),0),bottom:Math.max(Math.ceil(t.y+t.height-(r.y+r.height-n)),0),left:Math.max(Math.ceil(r.x+n-t.x),0)}}growEdge(t,n,r,a){n!=="none"&&(n==="outside"?a>0&&(this.outer[t]=Math.max(this.outer[t],a)):r>0&&(this.inner[t]=Math.max(this.inner[t],r)))}},qne=["top","right","bottom","left"],ov=(e,t)=>{const n={};for(const r of qne){const a=e.get(`${r}${t}`);a&&(n[r]=a)}return n};function CC(e,t){return e.top===t.top&&e.right===t.right&&e.bottom===t.bottom&&e.left===t.left}var Rx=["large","medium","small"],Xne=({size:e,availableWidth:t,measureStripWidth:n})=>{if(e!=="auto")return e;for(const r of Rx)if(n(r)<=t)return r;return"small"},Kne=({size:e,availableWidth:t,measureStripWidth:n})=>{const r=e==="auto"?0:Rx.indexOf(e);for(const a of Rx.slice(r))if(n(a)<=t)return a;return null},Qne=({itemWidths:e,gap:t,availableWidth:n})=>{let r=0,a=0;for(const i of e){const o=a===0?i:r+t+i;if(o>n)break;r=o,a+=1}return a},Zne=({headline:e,containerSize:t,measurer:n})=>{if(Oj(e))return 0;const r=_j(e,t.width,n);return n.measureHeadline(e.formatted,r).height},Jne=({headline:e,layout:t,containerSize:n,measurer:r,itemGap:a})=>{if(Oj(e)){const c=ere(t.panel,e.innerRadius),u=Kne({size:e.size,availableWidth:c.width,measureStripWidth:Ij(e,r)});return u===null?null:{rect:c,resolvedSize:u,visibleItemCount:1}}const i=_j(e,n.width,r);if(e.formatted.kind!=="perGroup")return{rect:t.headline,resolvedSize:i,visibleItemCount:1};const o=Qne({itemWidths:r.measureHeadlineItemWidths(e.formatted,i),gap:a,availableWidth:t.headline.width});return o===0?null:{rect:t.headline,resolvedSize:i,visibleItemCount:o}},Oj=e=>e.formatted.kind==="grandTotal"&&e.position==="center"&&e.innerRadius>0,ere=(e,t)=>{const n=t*(Math.min(e.width,e.height)/2)*Math.SQRT2,r=e.x+e.width/2,a=e.y+e.height/2;return{x:r-n/2,y:a-n/2,width:n,height:n}},_j=(e,t,n)=>Xne({size:e.size,availableWidth:t,measureStripWidth:Ij(e,n)}),Ij=(e,t)=>n=>t.measureHeadline(e.formatted,n).width,ic={x:0,y:0,width:0,height:0},tre="0000",nre=3,fd=e=>typeof e=="number"&&Number.isFinite(e)?e:24,rre=e=>e.plot.y+e.plot.height-e.panel.y,are=e=>{if(typeof e=="object"&&e!==null)return{top:fd(e.top),right:fd(e.right),bottom:fd(e.bottom),left:fd(e.left)};const t=fd(e);return{top:t,right:t,bottom:t,left:t}},ire=class{constructor(e){this.measurer=e}compile(e){return wg({axes:e.axes,numberFormat:e.numberFormat,formattedLegends:e.formattedLegends,containerSize:e.containerSize,externalMeasurements:e.externalMeasurements,panelOverflow:jj,panelBorder:e.panelBorder??Pc,headline:e.headline,locale:e.formattingLocale??e.parsingLocale,padding:are(e.layout.padding),gaps:e.layout.gaps}).pipe(({axes:t,numberFormat:n,locale:r})=>({axisBundles:t.map(a=>({axis:a,resolveFormatter:sre(a,r,n),formatted:this.seedAxis(a)}))})).pipe(({axisBundles:t,formattedLegends:n,containerSize:r,externalMeasurements:a,panelOverflow:i,panelBorder:o,headline:c,padding:u,gaps:f})=>({layout:this.resolveLayout({axes:t.map(m=>m.formatted),formattedLegends:n,containerSize:r,externalMeasurements:a,panelOverflow:i,panelBorder:o,headline:c,padding:u,gaps:f})})).pipe(({axisBundles:t,layout:n})=>({axisBundles:t.map(r=>RC(r.axis.position)?{...r,formatted:this.finalizeAxis(r.axis,r.resolveFormatter,n.panelFrame)}:r)}
71)).pipe(({axisBundles:t,formattedLegends:n,containerSize:r,externalMeasurements:a,panelOverflow:i,panelBorder:o,headline:c,padding:u,gaps:f})=>({layout:this.resolveLayout({axes:t.map(m=>m.formatted),formattedLegends:n,containerSize:r,externalMeasurements:a,panelOverflow:i,panelBorder:o,headline:c,padding:u,gaps:f})})).pipe(({axisBundles:t,layout:n})=>({formattedAxes:t.map(r=>RC(r.axis.position)?r.formatted:this.finalizeAxis(r.axis,r.resolveFormatter,n.panelFrame))})).pipe(({formattedAxes:t,formattedLegends:n,containerSize:r,externalMeasurements:a,panelOverflow:i,panelBorder:o,headline:c,padding:u,gaps:f})=>({layout:this.resolveLayout({axes:t,formattedLegends:n,containerSize:r,externalMeasurements:a,panelOverflow:i,panelBorder:o,headline:c,padding:u,gaps:f})})).pipe(({formattedAxes:t,formattedLegends:n,containerSize:r,externalMeasurements:a,layout:i,panelOverflow:o,panelBorder:c,headline:u,locale:f,padding:m,gaps:p})=>({formattedAxes:t,layout:this.settlePanelOverflow({input:e,layout:i,formattedAxes:t,formattedLegends:n,containerSize:r,externalMeasurements:a,panelOverflow:o,panelBorder:c,headline:u,locale:f,padding:m,gaps:p})})).pipe(({formattedAxes:t,layout:n})=>{const r=this.applyPolarPanelInset(e,t,n);return{formattedAxes:t,layout:r,plotBottomY:rre(r)}}).result()}measurePanelOverflow(e,t,n,r){var o;if(!e.overflowStrategy||((o=e.coordSystem)==null?void 0:o.type)!=="cartesian")return r;const a=new Wne(t);if(e.annotations&&e.overflowStrategy.differenceArrows)for(const c of _ne({annotations:e.annotations,mainAxis:e.coordSystem.mainAxis,panelRect:t,textScale:e.textScale??1,locale:n,measureLabel:this.measurer.measureDifferenceArrowLabel}))a.add(c,e.overflowStrategy.differenceArrows);if(e.layers&&e.layers.length>0&&e.overflowStrategy.dataLabels)for(const c of Ene({layers:e.layers,coordSystem:e.coordSystem,axes:e.axes,numberFormat:e.numberFormat,panelRect:t,measureDataLabel:this.measurer.measureDataLabel,locale:n}))a.add(c,e.overflowStrategy.dataLabels);const i=a.resolve();return CC(i.inner,r.inner)&&CC(i.outer,r.outer)?r:i}settlePanelOverflow({input:e,layout:t,formattedAxes:n,formattedLegends:r,containerSize:a,externalMeasurements:i,panelOverflow:o,panelBorder:c,headline:u,locale:f,padding:m,gaps:p}){let g=t,y=o;for(let x=0;x<nre;x++){const S=this.measurePanelOverflow(e,g.panelFrame,f,y);if(S===y)break;y=S,g=this.resolveLayout({axes:n,formattedLegends:r,containerSize:a,externalMeasurements:i,panelOverflow:S,panelBorder:c,headline:u,padding:m,gaps:p})}return g}applyPolarPanelInset(e,t,n){var c;if(((c=e.coordSystem)==null?void 0:c.type)!=="polar")return n;const r=this.measurePolarRimInset(t),{panel:a}=n,i=a.width-r.horizontal*2,o=a.height-r.vertical*2;return i<=0||o<=0?LC(n,a,0,0):LC(n,a,r.horizontal,r.vertical)}measurePolarRimInset(e){const t=e.find(i=>i.geometry==="circular");if(!t)return{horizontal:0,vertical:0};const n=Wt(t.scaleAestheticKey);let r=0,a=0;for(const i of t.ticks){const o=this.measurer.measureTickLabel(i.formattedLabel,n);r=Math.max(r,o.width),a=Math.max(a,o.height)}return r===0?{horizontal:0,vertical:0}:{horizontal:r+8,vertical:a+8}}seedAxis(e){const{tickCandidates:t,...n}=e;return{...n,ticks:[{value:0,position:0,formattedLabel:tre}],labelRotation:0,labelMaxWidthPx:null}}finalizeAxis(e,t,n){const r=e.position==="top"||e.position==="bottom"?n.width:n.height,a=Wt(e.scaleAestheticKey),i=m=>this.measurer.measureTickLabel(m,a),o=Tte({axis:e,availableSpacePx:r,measureLabel:i,resolveFormatter:t}),{tickCandidates:c,...u}=e,f={...u,ticks:o,labelRotation:0,labelMaxWidthPx:null};return e.geometry!=="linear"?f:e.scaleType==="discrete"&&e.bandwidth!==void 0?xte({formattedAxis:f,bandwidthPx:e.bandwidth*r,panelRect:n,measureLabel:i}):f}resolveLayout({axes:e,formattedLegends:t,containerSize:n,externalMeasurements:r,panelOverflow:a,panelBorder:i,headline:o,padding:c,gaps:u}){const f=Bne(Fne(n,r,this.measureGuides(e,t,o,n),i,a,c,u));return{header:f.get("header")??ic,headline:f.get("headline")??ic,footer:f.get("footer")??ic,plot:f.get("plot")??ic,panelFrame:f.get("panelFrame")??ic,panel:f.get("panel")??ic,axes:ov(f,"Axis"),axisLabels:ov(f,"AxisLabel"),legends:ov(f,"Legend")}}measureGuides(e,t,n,r){const a={top:0,right:0,bottom:0,left:0},i={top:0,right:0,bottom:0,left:0};for(const c of e)c.isVisible&&c.geometry==="linear"&&(a[c.position]=this.measurer.measureAxis(c),c.label!==null&&(i[c.position]=this.measurer.measureAxisLabel(c)));const o={top:0,right:0,bottom:0,left:0};for(const c of t)o[c.position]=this.measurer.measureLegend(c);return{axes:a,axesLabels:i,legends:o,headline:this.measureHeadlineBand(n,r)}}measureHeadlineBand(e,t){return e===void 0?0:Zne({headline:e,containerSize:t,measurer:this.measurer})}},RC=e=>e==="left"||e==="right",LC=(e,t,n,r)=>{const a=t.width-n*2,i=t.height-r*2,o=Math.min(a,i);return{...e,panel:{x:t.x+n+(a-o)/2,y:t.y+r+(i-o)/2,width:o,height:o}}}
71,sre=(e,t,n)=>{const r=e.tickCandidates.flatMap(i=>i.ticks.map(o=>o.value)),a=new WeakMap;return i=>{const o=a.get(i);if(o)return o;const c=Pw({valueFormat:i.valueFormat??e.valueFormat,locale:t,numberFormat:n,tickValues:r});return a.set(i,c),c}},ore=(e=[])=>{const t=lre(e);return{resolve:(n,r,a)=>{var i,o;return t.has(n)?((o=(i=t.get(n)).resolveAnchorPosition)==null?void 0:o.call(i,r,a))??null:null},hasCapability:n=>t.has(n)&&t.get(n).resolveAnchorPosition!==void 0,createLayerMeasurement:n=>t.has(n.geom)?dN(n,t.get(n.geom)):null}},lre=e=>{const t=new Mg;for(const n of e){const r=Ew(n);r instanceof Ya&&t.register(r.type,r)}return t};function aa(e){return 1-e}var be=e=>`${Number.parseFloat((e*100).toFixed(4))}%`,cre=(e,t,n)=>{if(n.type!=="polar")return{x:e.x*t.width,y:aa(e.y)*t.height};const r=Math.min(t.width,t.height),a=(t.width-r)/2,i=(t.height-r)/2;return{x:a+e.x*r,y:i+e.y*r}},ure=class{constructor(e,t,n,r){this.annotations=e,this.panelRect=t,this.coordSystem=n,this.measuredBoxes=r,this.index=null,this.boxes=new Map,this.resolvingStack=[],this.cyclic=new Set,this.missingRefs=new Set}cyclicIds(){return[...this.cyclic]}missingRefIds(){return[...this.missingRefs]}resolvePoint(e){if(e.defer===void 0)return e;const t=this.coordSystem.type==="polar";if(e.defer.type==="px-offset"){if(t)return Em(e);const{x:o,y:c}=Lx(e.defer,this.panelRect);return Em({...e,x:e.x+o,y:e.y-c})}if(t)return null;const n=this.boxOf(e.defer.ref);if(n===null)return null;const r=Af(n,e.defer.align),{x:a,y:i}=dre(r,e.defer.offset,this.panelRect);return{x:a,y:i}}resolveRegion(e){if(e.defer===void 0)return e;const t=this.coordSystem.type==="polar";if(e.defer.type==="px-offset"){if(t)return Em(e);const{x:i,y:o}=Lx(e.defer,this.panelRect);return Em({...e,x:e.x-i,y:e.y-o,width:Math.max(0,e.width+2*i),height:Math.max(0,e.height+2*o)})}if(t)return null;const n=this.boxOf(e.defer.ref);if(n===null)return null;const r=n.xMax-n.xMin,a=n.yMax-n.yMin;return r<=0||a<=0?null:{x:n.xMin,y:n.yMin,width:r,height:a}}getTargetIndex(){if(this.index!==null)return this.index;const{annotations:e}=this,t=new Map,n=(r,a)=>{t.has(r)||t.set(r,a)};for(const r of e.shapes)n(r.id,{kind:"shape",annotation:r});for(const r of e.images)n(r.id,{kind:"image",annotation:r});for(const r of e.arrows)n(r.id,{kind:"arrow",annotation:r});for(const r of e.textAnnotations)n(r.id,{kind:"text",annotation:r});for(const r of e.stickers)n(r.id,{kind:"sticker",annotation:r});for(const r of e.differenceArrows)n(r.id,{kind:"differenceArrow",annotation:r});for(const r of e.pinnedNumbers)n(r.id,{kind:"pinnedNumber",annotation:r});for(const r of e.comments)n(r.id,{kind:"comment",annotation:r});return this.index=t,t}boxOf(e){const t=this.boxes.get(e);if(t!==void 0)return t;const n=this.resolvingStack.indexOf(e);if(n!==-1){for(const i of this.resolvingStack.slice(n))this.cyclic.add(i);return null}const r=this.getTargetIndex().get(e);if(r===void 0)return this.missingRefs.add(e),null;this.resolvingStack.push(e);const a=this.deriveBox(e,r);return this.resolvingStack.pop(),this.boxes.set(e,a),a}deriveBox(e,t){var n;switch(t.kind){case"shape":case"image":{const r=this.resolveRegion(t.annotation.region);return r===null?null:fre(r)}case"arrow":{const r=this.resolvePoint(t.annotation.start),a=this.resolvePoint(t.annotation.end);return r===null||a===null?null:DC(r,a)}case"text":{const r=this.resolvePoint(t.annotation.at);if(r===null)return null;const a=(n=this.measuredBoxes)==null?void 0:n.get(e);if(a===void 0||a.height<=0||this.panelRect.height<=0)return null;const i=t.annotation.width,o=a.height/this.panelRect.height,c=fw(t.annotation.align),u=r.x-c.x*i,f=r.y+(1-c.y)*o;return{xMin:u,xMax:u+i,yMin:f-o,yMax:f}}case"sticker":{const r=this.resolvePoint(t.annotation.at);return r===null?null:NC(r)}case"differenceArrow":return DC(t.annotation.start,t.annotation.end);case"pinnedNumber":case"comment":return NC(t.annotation.at)}}},Lx=(e,t)=>({x:t.width>0?e.x/t.width:0,y:t.height>0?e.y/t.height:0}),dre=(e,t,n)=>{if(t===void 0)return e;const r=t.x??0,a=t.y??0;if(t.unit==="px"){const{x:i,y:o}=Lx({x:r,y:a},n);return{x:e.x+i,y:e.y-o}}return{x:e.x+r,y:e.y-a}},fre=e=>({xMin:e.x,xMax:e.x+e.width,yMin:e.y,yMax:e.y+e.height}),DC=(e,t)=>({xMin:Math.min(e.x,t.x),xMax:Math.max(e.x,t.x),yMin:Math.min(e.y,t.y),yMax:Math.max(e.y,t.y)}),NC=e=>({xMin:e.x,xMax:e.x,yMin:e.y,yMax:e.y}),Em=e=>{const t={...e};return delete t.defer,t},hre=e=>{const{annotations:t,panelRect:n,coordSystem:r,measuredBoxes:a,onCycle:i,onMissingRef:o}=e;if(!mre(t))return t;const c=new ure(t,n,r,a),u={...t,shapes:hd(t.shapes,p=>p.region.defer!==void 0,p=>{const g=c.resolveRegion(p.region);return g===null?null:{...p,region:g}}),images:hd(t.images,p=>p.region.defer!==void 0,p=>{const g=c.resolveRegion(p.region);return g===null?null:{...p,region:g}}),arrows:hd(t.arrows,p=>p.start.defer!==void 0||p.end.defer!==void 0,p=>{const g=c.resolvePoint(p.start),y=c.resolvePoint(p.end);return g===null||y===null?null:{...p,start:g,end:y}}),textAnnotations:hd(t.textAnnotations,p=>p.at.defer!==void 0,p=>{const g=c.resolvePoint(p.at);return g===null?null:{...p,at:g}}),stickers:hd(t.stickers,p=>
71p.at.defer!==void 0,p=>{const g=c.resolvePoint(p.at);return g===null?null:{...p,at:g}})},f=c.cyclicIds();f.length>0&&(i==null||i(f));const m=c.missingRefIds();return m.length>0&&(o==null||o(m)),u},hd=(e,t,n)=>e.some(t)?e.flatMap(r=>{if(!t(r))return[r];const a=n(r);return a===null?[]:[a]}):e,mre=e=>e.shapes.some(t=>t.region.defer!==void 0)||e.images.some(t=>t.region.defer!==void 0)||e.arrows.some(t=>t.start.defer!==void 0||t.end.defer!==void 0)||e.textAnnotations.some(t=>t.at.defer!==void 0)||e.stickers.some(t=>t.at.defer!==void 0),pre=800,jC=400,gre={thin:{strokeWidth:{minValue:1.5,targetValue:2},arrowheadLength:{minValue:7,targetValue:8}},medium:{strokeWidth:{minValue:3,targetValue:4},arrowheadLength:{minValue:14,targetValue:16}},thick:{strokeWidth:{minValue:6,targetValue:8},arrowheadLength:{minValue:28,targetValue:32}}},yre=e=>Math.max(1,(e-jC)/(pre-jC)+1),bre=(e,t)=>{const n=yre(t),r=gre[e];return{strokeWidth:Math.min(r.strokeWidth.targetValue,r.strokeWidth.minValue*n),arrowheadLength:Math.min(r.arrowheadLength.targetValue,r.arrowheadLength.minValue*n)}},Cm=Math.PI/4,Dx=1.5,vre=({startX:e,startY:t,endX:n,endY:r})=>`M ${e} ${t} L ${n} ${r}`,OC=(e,t,n)=>{if(n<=0)return"";const{startX:r,startY:a,endX:i,endY:o}=t,c=e==="start"?r:i,u=e==="start"?a:o,f=e==="start"?Math.atan2(a-o,r-i):Math.atan2(o-a,i-r);return`M ${c} ${u} L ${c-n*Math.cos(f-Cm)} ${u-n*Math.sin(f-Cm)} M ${c} ${u} L ${c-n*Math.cos(f+Cm)} ${u-n*Math.sin(f+Cm)}`},xre=(e,t)=>e==="solid"?null:`${t*Dx} ${t*Dx*2}`,wre=(e,t)=>
71t?e*Dx:0,Sre=64,Are=({arrow:e,panelWidth:t,panelHeight:n})=>{const r={startX:e.start.x*t,startY:(1-e.start.y)*n,endX:e.end.x*t,endY:(1-e.end.y)*n};if(r.startX===r.endX&&r.startY===r.endY)return null;const{strokeWidth:a,arrowheadLength:i}=bre(e.thickness,t),o=Math.hypot(r.endX-r.startX,r.endY-r.startY),c=Mre(i,o),u=e.startArrowheadStyle==="line-arrow",f=e.endArrowheadStyle==="line-arrow",m=u||f?c*Math.sin(Math.PI/4):0;return{id:e.id,linePath:vre(r),startArrowheadPath:u?OC("start",r,c):"",endArrowheadPath:f?OC("end",r,c):"",color:e.color,strokeWidth:a,dashArray:xre(e.lineStyle,a),hasStickerStyle:e.hasStickerStyle,startX:r.startX,startY:r.startY,endX:r.endX,endY:r.endY,dashOffset:wre(a,u),arrowheadExtent:m}},Mre=(e,t)=>Math.min(e,t*e/Sre);function Tre(e,t){const n=new Map;if(!t||t.kind!=="visual"||t.domain.length<=1)return n;for(const r of e){if(r.geom!=="rule"||r.stat.type!=="mean")continue;const a=r.transforms.find(p=>p.transformType==="filter"&&p.options.operator==="eq"),i=pe(r.mapping.y);let o,c,u;if((a==null?void 0:a.transformType)==="filter"&&typeof a.options.value=="string")o="color",c=a.options.variableName,u=a.options.value;else if(i!==null)o="y",c=i,u=i;else continue;const f=kre(e,o,c);if(f===null)continue;const m=t.map(u);lg(m)&&n.set(r.id,{geom:f.geom,color:m})}return n}function kre(e,t,n){let r=null;for(const a of e)if(a.geom!=="rule"&&(r===null&&(r=a),pe(a.mapping[t])===n))return a;return r}var Bj=(e,t)=>({x:e.x/t.width,y:1-e.y/t.height}),Ere=0,Cre=(e,t)=>
71e.filter(n=>n.inView).map(n=>({shape:{kind:"rect",rect:n.miniRect},cursor:Bj(n.anchorPx,t),tooltip:{kind:"pinned",point:n.anchorPx,placement:n.placement,annotationId:n.id},priority:Ere})),Rre=9,Lre=e=>typeof e=="string"?e:zj(e),zj=e=>e.text!==void 0?e.text:e.content?e.content.map(zj).join(""):"",_C={top:"bottom",bottom:"top",right:"left",left:"right"};function Dre(e,t,n){return n.type==="polar"?Ore(e,t):n.mainAxis==="y"?["right","left","top","bottom"]:["top","bottom","right","left"]}function Nx(e,t,n){const{width:r,height:a}=n;switch(t){case"top":return{x:e.x-r/2,y:e.y-9-a,width:r,height:a};case"bottom":return{x:e.x-r/2,y:e.y+9,width:r,height:a};case"right":return{x:e.x+9,y:e.y-a/2,width:r,height:a};case"left":return{x:e.x-9-r,y:e.y-a/2,width:r,height:a}}}function IC(e,t){return e.x>=0&&e.y>=0&&e.x+e.width<=t.width&&e.y+e.height<=t.height}function Nre(e,t){return{...t,x:Math.max(0,Math.min(t.x,e.width-t.width)),y:Math.max(0,Math.min(t.y,e.height-t.height))}}function jre(e,t,n=2){return e.x<t.x+t.width-n&&e.x+e.width>t.x+n&&e.y<t.y+t.height-n&&e.y+e.height>t.y+n}function Ore(e,t){const n=e.x-t.width/2,r=e.y-t.height/2,a=n>=0?"right":"left",i=r>=0?"bottom":"top",[o,c]=Math.abs(n)>=Math.abs(r)?[a,i]:[i,a];return[o,_C[o],c,_C[c]]}function _re(e){const{pinnedNumbers:t,comments:n,panelRect:r,coordSystem:a,measurer:i,formatPinnedNumber:o}=e,c=[...t.map(m=>{const{id:p,at:g}=m;return BC(p,"pinned-number",g,o(m),i,r,a)}),...n.map(({id:m,at:p,content:g})=>BC(m,"comment",p,Lre(g),i,r,a))];c.sort((m,p)=>m.anchorPx.x-p.anchorPx.x||m.anchorPx.y-p.anchorPx.y);const u=[],f=[];for(const m of c){if(!m.inView){u.push(zC(r,m,"top"));continue}const p=zC(r,m,Bre(r,m,a,f));u.push(p),f.push(p.miniRect)}return u}function BC(e,t,n,r,a,i,o){const c=cre(n,i,o);return{id:e,kind:t,anchor:n,anchorPx:c,mini:a(t,r),inView:Ire(c,i)}}function Ire(e,t){return e.x>=-8&&e.y>=-8&&e.x<=t.width+8&&e.y<=t.height+8}function Bre(e,t,n,r){const a=Dre(t.anchorPx,e,n);for(const i of a){const o=Nx(t.anchorPx,i,t.mini);if(IC(o,e)&&!r.some(c=>jre(o,c)))return i}for(const i of a)if(IC(Nx(t.anchorPx,i,t.mini),e))return i;return"top"}function zC(e,t,n){return{id:t.id,kind:t.kind,anchorPx:t.anchorPx,placement:n,miniRect:Nre(e,Nx(t.anchorPx,n,t.mini)),text:t.mini.text,inView:t.inView}}var zre=({labelPosition:e,measuredTextWidth:t,labelLineHeight:n,labelPaddingX:r,labelPaddingY:a})=>{const i=t+2*r,o=n+2*a;return{x:e.x-i/2,y:e.y-o/2,width:i,height:o}},Vre=(e,t,n,r)=>e!==null?e:t.anchor.layerId!==n.anchor.layerId||!un(t.anchor.groupValue??null,n.anchor.groupValue??null)||r.start===void 0||r.start!==r.end?null:r.start,Pre=100,$re=({items:e,containerHeight:t,labelHeight:n})=>{const r=e.map(u=>{const f=(1-u.normalizedY)*t;return{anchorY:f,y:f,payload:u.payload}}).sort((u,f)=>u.y-f.y),a=n/2;let i=!1,o=!0,c=0;for(;o;){o=!1,c++;for(let u=0;u<r.length-1;u++){const f=r[u],m=r[u+1];if(!f||!m)continue;const p=f.y+a,g=m.y-a;if(p>g){o=!0,i=!0;const y=(p-g)/2+1;f.y-=y,m.y+=y,f.y<0&&(f.y=0),m.y>t&&(m.y=t)}}if(c>Pre)break}return{placements:r.filter(u=>u.y>=0&&u.y<=t).map(u=>({y:u.y,anchorY:u.anchorY,payload:u.payload})),hasOverlap:i}},Fre=(e,t)=>{if(t.kind==="circle"){const r=e.x-t.center.x,a=e.y-t.center.y;return r*r+a*a<=t.radius*t.radius}const{rect:n}=t;return e.x>=n.x&&e.x<=n.x+n.width&&e.y>=n.y&&e.y<=n.y+n.height},VC=(e,t)=>{for(const n of t)if(Fre(e,n.shape))return n;return null},Hre=e=>{const t=[];for(const n of e.values())t.push(...n);return t.sort((n,r)=>r.priority-n.priority)},Ure=(e,t)=>e===t?!0:e.length!==t.length?!1:e.every((n,r)=>Gre(n,t[r])),Gre=(e,t)=>t===void 0?!1:e.priority===t.priority&&e.cursor.x===t.cursor.x&&e.cursor.y===t.cursor.y&&Yre(e.shape,t.shape)&&Wre(e.tooltip,t.tooltip),Yre=(e,t)=>{if(e.kind!==t.kind)return!1;if(e.kind==="circle"){const r=t;return e.center.x===r.center.x&&e.center.y===r.center.y&&e.radius===r.radius}const{rect:n}=t;return e.rect.x===n.x&&e.rect.y===n.y&&e.rect.width===n.width&&e.rect.height===n.height},Wre=(e,t)=>{if(e.kind!==t.kind)return!1;if(e.kind==="cursor")return!0;const n=t;return e.point.x===n.point.x&&e.point.y===n.point.y&&e.placement===n.placement&&e.annotationId===n.annotationId},qre=(e,t)=>
71e===t?!0:e===null||t===null?!1:e.center.x===t.center.x&&e.center.y===t.center.y&&e.radius===t.radius&&Xre(e.target,t.target),Xre=(e,t)=>e.kind===t.kind&&e.cursor.x===t.cursor.x&&e.cursor.y===t.cursor.y,Kre=(e,t)=>e.layerId===t.layerId&&un(e.anchorValue,t.anchorValue)&&un(e.groupValue??null,t.groupValue??null)&&un(e.crossValue??null,t.crossValue??null),Qre=(e,t)=>{const n=e.find(a=>a.id===t.anchor.layerId);if(n===void 0)return null;const r=n.data.getAt(t.observationIndex);return r===null?null:{layer:n,observation:r}};function Zre({numberFormat:e,locale:t}){const n=new Map;return r=>{let a=n.get(r.valueFormat);return a??(a=dn({valueFormat:r.valueFormat,locale:t,numberFormat:e})),n.set(r.valueFormat,a),a(r.measurementValue)}}var Jre=({headline:e,show:t,numberFormat:n,parsingLocale:r,formattingLocale:a,t:i})=>{if(e===null)return null;const o=a??r;return e.kind==="grandTotal"?eae(e,o,n):tae(e,t,o,n,i)},eae=(e,t,n)=>({kind:"grandTotal",value:dn({valueFormat:e.valueFormat,locale:t,numberFormat:n})(e.value)}),tae=(e,t,n,r,a)=>{const i=dn({valueFormat:{type:"percentage"},locale:n,numberFormat:r}),o=e.items.length>1;return{kind:"perGroup",items:e.items.map(c=>{const u=dn({valueFormat:c.valueFormat,locale:n,numberFormat:r}),f=dn({valueFormat:c.groupLabelFormat,locale:n,numberFormat:r}),m=Pw({valueFormat:c.mainValueFormat,locale:n,numberFormat:r,tickValues:[]}),p=c.label??f(c.value);return{swatch:c.swatch,label:iae(t,o,p,a),value:c.aggregate===null?null:u(c.aggregate),observationLabel:aae(c.observationLabel,m),comparison:nae(c.comparison,m,i,a)}})}},nae=(e,t,n,r)=>e===null?null:{direction:rae(e.variation),percentage:n(Math.abs(e.variation)),reference:r("graph.headlineMetrics.comparisonReference",{value:t(e.against)})},rae=e=>e>0?"up":e<0?"down":"flat",aae=(e,t)=>e===null?null:e.kind==="point"?t(e.value):`${t(e.from)} â ${t(e.to)}`,iae=(e,t,n,r)=>{switch(e){case"total":return r("graph.headlineMetrics.total",{value:n});case"average":return t?r("graph.headlineMetrics.averageShort",{value:n}):r("graph.headlineMetrics.averageLong",{value:n});case"current":case"conversion":case"none":return n}},sae=({legends:e,numberFormat:t,parsingLocale:n,formattingLocale:r})=>{const a=r??n;return e.map(i=>oae(i,a,t))},oae=(e,t,n)=>({...e,items:e.items.map(r=>{const a=dn({valueFormat:r.valueFormat,locale:t,numberFormat:n});return{...r,formattedLabel:r.label??a(r.value)}})});function Vj(e,t){return e.axes.find(n=>n.scaleAestheticKey===t)??null}var lae=({guides:e,numberFormat:t,layer:n,locale:r})=>{var c;const a=n.data.getFirst();if(!a)return null;const i=n.mapping.y!==void 0,o=(i?rN:xg)(n.data,n.mapping)(a);return o===null?null:dn({valueFormat:((c=Vj(e,i?tl(n.yScaleType):"x"))==null?void 0:c.valueFormat)??{type:"decimal"},locale:r,numberFormat:t})(o)},Pj=e=>{const{value:t,observationLabel:n,comparison:r,swatch:a,label:i}=e;return[{role:"valueRow",gap:4,segments:lv([Rm("value","value",t??"â"),Rm("observation","label",n)])},{role:"trendRow",gap:4,ariaLabel:r===null?void 0:fae(r),segments:lv([uae(r),dae(r),Rm("trendReference","label",(r==null?void 0:r.reference)??null)])},{role:"groupRow",gap:4,segments:lv([cae(a),Rm("label","label",i)])}].filter(o=>o.segments.length>0)},Rm=(e,t,n)=>n===null?null:{kind:"text",textRole:e,fontRole:t,text:n},cae=e=>e===null?null:{kind:"swatch",swatch:e,size:12},uae=e=>e===null?null:{kind:"trendArrow",direction:e.direction,size:12},dae=e=>e===null?null:{kind:"text",textRole:"trendPercentage",fontRole:"label",text:e.percentage,trendDirection:e.direction},fae=e=>{switch(e.direction){case"up":return`Increased ${e.percentage} ${e.reference}`;case"down":return`Decreased ${e.percentage} ${e.reference}`;case"flat":return`No change ${e.reference}`}},lv=e=>e.filter(t=>t!==null),qw=e=>e==="catmull-rom"?oX:lw,nu=e=>{switch(e){case"dashed":return"8 4";case"dotted":return"2 2";case"solid":return}},$j=(e,t)=>{const n=qw(t.interpolate),r=ZD().curve(n),a=cw().curve(n);if(e.mainAxis==="y"){const i=u=>aa(et(u)??0),o=u=>Fr(u)??0,c=u=>Mr(u)??it(u)??0;r.y(i).x0(o).x1(c),a.y(i).x(c)}else{const i=u=>it(u)??0,o=u=>aa(Pn(u)??0),c=u=>aa(hn(u)??et(u)??0);r.x(i).y0(o).y1(c),a.x(i).y(c)}if(t.missingValues==="gap"){const i=o=>it(o)!==null&&et(o)!==null;r.defined(i),a.defined(i)}return{lineGenerator:a,areaGenerator:r}},Fj=(e,t)=>t!=="connect"?e:e.filter(n=>it(n)!==null&&et(n)!==null),Hj={none:0,xs:2,sm:4,md:8,lg:12,xl:16},Xw=e=>{if(e.borderRadius==="full"){const{width:t,height:n}=e.bounds;return(e.mainAxis==="x"?t:n)/2}return Hj[e.borderRadius??"sm"]},hae=e=>{const t=Xw(e);return e.borderRadius==="full"?e.mainAxis==="x"?{rx:t}:{ry:t}:{rx:t}},Nf=e=>({outlineWidth:e*2,separatorWidth:e,insetOffset:e/2}),Ss=(e,t)=>{const n=Fr(t),r=Mr(t),a=Pn(t),i=hn(t)??et(t);if(n===null||r===null||a===null||i===null)return null;if(e==="x"){let u=1-i,f=i-a;return f<0&&(u+=f,f=-f),{x:n,y:u,width:r-n,height:f}}let o=n,c=r-n;return c<0&&(o+=c,c=-c),{x:o,y:1-i,width:c,height:i-a}},Eg=(e,t)=>
71e==="x"?`${Ra(t.x)}-${Ra(t.width)}`:`${Ra(t.y)}-${Ra(t.height)}`,Uj=e=>{let t=1/0,n=1/0,r=-1/0,a=-1/0;for(const i of e)i.x<t&&(t=i.x),i.y<n&&(n=i.y),i.x+i.width>r&&(r=i.x+i.width),i.y+i.height>a&&(a=i.y+i.height);return{x:t,y:n,width:r-t,height:a-n}},Gj=e=>{const t=cw().x(n=>it(n)??0).y(n=>aa(et(n)??0)).curve(qw(e.interpolate));return e.missingValues==="gap"&&t.defined(Wj),t},mae=e=>{const t=ZD().x(n=>it(n)??0).y0(()=>1).y1(n=>aa(et(n)??0)).curve(qw(e.interpolate));return e.missingValues==="gap"&&t.defined(Wj),t},Yj=(e,t)=>t!=="connect"?e:e.filter(n=>it(n)!==null&&et(n)!==null),Wj=e=>it(e)!==null&&et(e)!==null,qj=iX().cornerRadius(e=>e.cornerRadius??0);qj.digits(8);var pae=200,Bo=e=>qj(e)??void 0,Xj=(e,t)=>e==="full"?Math.max(0,t)/2:Hj[e??"sm"]/pae,Cg=(e,t)=>e==="x"?`${Ra(t.startAngle)}-${Ra(t.endAngle)}`:e==="y"?`${Ra(t.innerRadius)}-${Ra(t.outerRadius)}`:"sweep",gae=e=>{let t=1/0,n=-1/0,r=1/0,a=-1/0;for(const i of e)t=Math.min(t,i.startAngle,i.endAngle),n=Math.max(n,i.startAngle,i.endAngle),r=Math.min(r,i.innerRadius,i.outerRadius),a=Math.max(a,i.innerRadius,i.outerRadius);return{startAngle:t,endAngle:n,innerRadius:r,outerRadius:a}},yae=(e,t)=>e==="solid"?[]:e==="dotted"?[0,t*2]:[t*2,t*3],Tr=(e,t,n)=>{const r=xg(e,t);return a=>{const i=Ua(a)??"default",o=r(a);return`${n}-${i}${o!==null&&o!==""?`-${o}`:""}`}},bae=(e,t,n)=>{const r=xg(e,t),a=rN(e,t),i=new Map;return o=>{const c=r(o),u=a(o),f=c!==null&&c!==""&&u!==null&&u!==""?`${n}-${c}-${u}`:`${n}-cell`,m=i.get(f)??0;return i.set(f,m+1),m===0?f:`${f}#${m}`}};function Kw(e,t,n){return Math.hypot(e*n,t)}function Np(e,t,n){return e<t?t-e:e>n?e-n:0}function As(e,t,{shortCircuitOnZero:n=!1}={}){let r=e[0],a=t(r);if(n&&a===0)return r;for(let i=1;i<e.length;i+=1){const o=e[i];if(o===void 0)continue;const c=t(o);if(n&&c===0)return o;c<a&&(r=o,a=c)}return r}function vae(e,t,n,r){if(e.points.length===0)return null;const a=e.delaunay;if(!a)return null;const i=a.find(t.x*n,t.y,r??void 0),o=e.points[i];return o?{hit:{anchored:!0,layerId:e.layerId,pointIndex:o.pointIndex,observationIndex:o.observationIndex,x:o.x,y:o.y,observation:o.observation},index:e,distance:Kw(o.x-t.x,o.y-t.y,n)}:null}function xae(e,t){if(e.points.length===0||!e.delaunay||e.delaunayAspectRatio===null)return null;const n=e.delaunay.find(t.x*e.delaunayAspectRatio,t.y);return e.points[n]??null}function Kj(e,t){return Qw(e.buckets,t,n=>n.main)}function wae(e,t){return Qw(e.bands,t,n=>n.bandCenter)}function Qj(e,t){return Qw(e.columns,t,n=>n.mainMid)}function Qw(e,t,n){if(e.length===0)return null;let r=0,a=e.length;for(;r<a;){const c=r+a>>>1,u=e[c];u&&n(u)<t?r=c+1:a=c}const i=e[r-1],o=e[r];return i?o&&Math.abs(n(o)-t)<Math.abs(n(i)-t)?o:i:o??null}function Sae(e,t){return{group:Aae(e),related:Eae(e,t)}}function Aae(e){switch(e.kind){case"buckets":{const t=e.match.index;return rr(t.position)?Mae(t.layerId,e.match.bucket,e.match.hit.pointIndex):[]}case"banded":{const{index:t,column:n,hit:r}=e.match;return rr(t.position)?Tae(t.layerId,n,r.pointIndex):kae(t.bands,t.layerId,n,r.pointIndex)}case"points":case"enclosure":case"render-hit-test":return[]}}function Mae(e,t,n){const r=[];for(const a of t.entries)a.pointIndex!==n&&r.push({anchored:!0,layerId:e,pointIndex:a.pointIndex,x:a.x,y:a.y,observation:a.observation});return r}function Tae(e,t,n){const r=[];for(const a of t.rects)a.pointIndex!==n&&r.push(Zw(e,a));return r}function kae(e,t,n,r){const a=e.find(o=>o.columns.includes(n));if(!a)return[];const i=[];for(const o of a.columns)for(const c of o.rects)c.pointIndex!==r&&i.push(Zw(t,c));return i}function Eae(e,t){const n=new Map;if(e.kind==="render-hit-test"||e.kind==="enclosure")return n;const r=e.match.index,a=r.projection==="polar";for(const i of t){if(i.layerId!==r.layerId){a||Rae(n,i,e.match.hit);continue}e.kind==="buckets"&&(rr(i.position)||i.kind==="buckets"&&Cae(n,i.layerId,e.match.bucket,e.match.hit.pointIndex))}return n}function Cae(e,t,n,r){for(const a of n.entries)a.pointIndex!==r&&Km(e,t).push({anchored:!0,layerId:t,pointIndex:a.pointIndex,x:a.x,y:a.y,observation:a.observation})}function Rae(e,t,n){switch(t.kind){case"buckets":{const r=Kj(t,Jd(t.mainAxis,n));if(!r)return;const a=Km(e,t.layerId);for(const i of r.entries)a.push({anchored:!0,layerId:t.layerId,pointIndex:i.pointIndex,x:i.x,y:i.y,observation:i.observation});return}case"banded":{const r=wae(t,Jd(t.mainAxis,n));if(!r)return;const a=Km(e,t.layerId);for(const i of r.columns)for(const o of i.rects)a.push(Zw(t.layerId,o));return}case"points":{const r=xae(t,n);if(!r)return;Km(e,t.layerId).push({anchored:!0,layerId:t.layerId,pointIndex:r.pointIndex,observationIndex:r.observationIndex,x:r.x,y:r.y,observation:r.observation});return}case"enclosure":return;case"noop":return;case"render-hit-test":return}}function Km(e,t){let n=e.get(t);return n||(n=[],e.set(t,n)),n}function Zw(e,t){return{anchored:!0,layerId:e,pointIndex:t.pointIndex,x:(t.xMin+t.xMax)/2,y:(t.yMin+t.yMax)/2,observation:t.observation}}function Zj(e,t,n){const{columns:r,bands:a}=Lae(e,t);return{kind:"banded",layerId:e.id,geom:e.geom,position:e.position,projection:n,mainAxis:t,columns:r,bands:a}}function Lae(e,t){const n=Dae(e,t);n.sort((c,u)=>c.mainMid-u.mainMid);const r=new Map,a=new Map;for(const c of n){const u=Ra(c.mainMid);let f=r.get(u);if(!f){f={mainMid:c.mainMid,rects:[]},r.set(u,f);const m=Ra(c.bandCenter);let p=a.get(m);p||(p={bandCenter:c.bandCenter,columns:[]},a.set(m,p)),p.columns.push(f)}f.rects.push(c.entry)}const i=[...r.values()].sort((c,u)=>c.mainMid-u.mainMid),o=[...a.values()].sort((c,u)=>c.bandCenter-u.bandCenter);for(const c of o)c.columns.sort((u,f)=>u.mainMid-f.mainMid);return{columns:i,bands:o}}function Dae(e,t){const n=e.data;if(n.size()===0)return[];if(!(n.hasVariable(oe.xMin)&&n.hasVariable(oe.xMax)&&n.hasVariable(oe.yMin)&&n.hasVariable(oe.yMax)))return[];const r=n.getValues(oe.xMin,{type:"numeric"}),a=n.getValues(oe.xMax,{type:"numeric"}),i=n.getValues(oe.yMin,{type:"numeric"}),o=n.getValues(oe.yMax,{type:"numeric"}),c=t==="y",u=c?oe.y:oe.x,f=n.hasVariable(u)?n.getValues(u,{type:"numeric"}):null,m=[];let p=0;for(const g of n){const y=r[p],x=a[p],S=i[p],A=o[p];if(!de(y)||!de(x)||!de(S)||!de(A)){p++;continue}const M=c?(S+A)/2:(y+x)/2,C=(f==null?void 0:f[p])??M;m.push({mainMid:M,bandCenter:C,entry:{pointIndex:p,xMin:Math.min(y,x),xMax:Math.max(y,x),yMin:Math.min(S,A),yMax:Math.max(S,A),observation:g}}),p++}return m}var Nae=1e-9;
71function Jj(e,t,n){const r=jae(e,t);r.sort((i,o)=>i.main-o.main);const a=[];for(const i of r){const o=a[a.length-1];o&&Math.abs(o.main-i.main)<=Nae?o.entries.push(i.entry):a.push({main:i.main,entries:[i.entry]})}return{kind:"buckets",layerId:e.id,geom:e.geom,position:e.position,projection:n,mainAxis:t,buckets:a}}function jae(e,t){const n=e.data;if(n.size()===0)return[];const r=n.hasVariable(oe.x),a=n.hasVariable(oe.y);if(!r||!a)return[];const i=n.getValues(oe.x,{type:"numeric"}),o=n.getValues(oe.y,{type:"numeric"}),c=t==="y",u=c?oe.xMin:oe.yMin,f=c?oe.xMax:oe.yMax,m=rr(e.position),p=m?n.getValues(u,{type:"numeric"}):null,g=m?n.getValues(f,{type:"numeric"}):null,y=n.hasVariable(pt.group)?n.getValues(pt.group,{type:"categorical"}):null,x=[];let S=0;for(const A of n){const M=i[S],C=o[S];if(!de(M)||!de(C)){S+=1;continue}const R=(y==null?void 0:y[S])??null,L=c?C:M;if(m){const N=p==null?void 0:p[S],O=g==null?void 0:g[S];if(!de(N)||!de(O)){S+=1;continue}const $=c?O:M,T=c?C:O;x.push({main:L,entry:{isStacked:m,pointIndex:S,x:$,y:T,stackMin:N,stackMax:O,groupKey:R,observation:A}})}else x.push({main:L,entry:{isStacked:m,pointIndex:S,x:M,y:C,groupKey:R,observation:A}});S+=1}return x}function e4(e,t){return{kind:"enclosure",layerId:e.id,geom:e.geom,position:e.position,projection:t,cells:Oae(e,t)}}function Oae(e,t){const n=e.data;if(n.size()===0)return[];const r=[oe.xMin,oe.xMax,oe.yMin,oe.yMax];for(const p of r)if(!n.hasVariable(p))return[];const a=n.getValues(oe.xMin,{type:"numeric"}),i=n.getValues(oe.xMax,{type:"numeric"}),o=n.getValues(oe.yMin,{type:"numeric"}),c=n.getValues(oe.yMax,{type:"numeric"}),u=t==="cartesian",f=[];let m=0;for(const p of n){const g=a[m],y=i[m],x=o[m],S=c[m];if(!de(g)||!de(y)||!de(x)||!de(S)){m++;continue}if(u&&!Lf(p)){m++;continue}f.push({pointIndex:m,xMin:g,xMax:y,yMin:x,yMax:S,observation:p}),m++}return f}function jx(e){return{kind:"noop",layerId:e.id,geom:e.geom,position:e.position,projection:"cartesian"}}function _ae(e,t){const n={kind:"points",layerId:e.id,geom:e.geom,position:e.position,projection:"cartesian",points:n4(e),delaunay:null,delaunayAspectRatio:null};return t4(n,t),n}function Iae(e){const t=n4(e).map(n=>{const r=Lp(n.x,n.y);return{...n,unitX:r.x,unitY:r.y}});return{kind:"points",layerId:e.id,geom:e.geom,position:e.position,projection:"polar",points:t,delaunay:null,delaunayAspectRatio:null}}function t4(e,t){e.delaunay&&e.delaunayAspectRatio===t||(e.delaunay=dw.from(e.points,n=>n.x*t,n=>n.y),e.delaunayAspectRatio=t)}function n4(e){const t=e.data;if(t.size()===0)return[];if(!t.hasVariable(oe.x)||!t.hasVariable(oe.y))return[];const n=t.getValues(oe.x,{type:"numeric"}),r=t.getValues(oe.y,{type:"numeric"}),a=[];let i=0;for(const o of t){const c=n[i],u=r[i];de(c)&&de(u)&&a.push({pointIndex:a.length,observationIndex:i,x:c,y:u,observation:o}),i+=1}return a}function r4(e){return{kind:"render-hit-test",layerId:e.id,geom:e.geom,position:e.position,projection:"cartesian",byKey:Bae(e)}}function a4(e,t){return{anchored:!1,layerId:e,pointIndex:t.pointIndex,observation:t.observation}}function Bae(e){const t=e.identityKey,n=new Map;if(typeof t=="object"){let r=0;for(const a of e.data){const i=a[t.variable];de(i)&&n.set(yt(i),{pointIndex:r,observation:a}),r+=1}return n}if(t==="index"){let r=0;for(const a of e.data)n.set(String(r),{pointIndex:r,observation:a}),r+=1}return n}
71function PC(e,t,n){return t.type==="polar"?zae(e,t.bandAxis):Vae(e,t.mainAxis,n)}function zae(e,t){switch(e.spatialKind){case"points":return Iae(e);case"buckets":return Jj(e,"x","polar");case"rects":return t===null?e4(e,"polar"):Zj(e,t,"polar");case"cells":return jx(e);case"noop":return jx(e);case"render-hit-test":return r4(e);default:{const n=e.spatialKind;throw new Be({message:`buildPolarLayerIndex: unhandled spatialKind ${String(n)}`})}}}function Vae(e,t,n){switch(e.spatialKind){case"points":return _ae(e,n);case"buckets":return Jj(e,t,"cartesian");case"rects":return Zj(e,t,"cartesian");case"cells":return e4(e,"cartesian");case"noop":return jx(e);case"render-hit-test":return r4(e);default:{const r=e.spatialKind;throw new Be({message:`buildCartesianLayerIndex: unhandled spatialKind ${String(r)}`})}}}function Pae(e,t,n){if(e.columns.length===0)return null;const r=Qj(e,Jd(e.mainAxis,t)),a=(r==null?void 0:r.rects)??[];if(!r||!Yo(a))return null;const i=rr(e.position)?$ae(a,t,e.mainAxis):Fae(a,t,n);return{hit:{anchored:!0,layerId:e.layerId,pointIndex:i.pointIndex,x:(i.xMin+i.xMax)/2,y:(i.yMin+i.yMax)/2,observation:i.observation},index:e,column:r,distance:i4(i,t,n)}}function $ae(e,t,n){const r=pw(n,t);return As(e,a=>Hae(a,n,r),{shortCircuitOnZero:!0})}function Fae(e,t,n){return As(e,r=>i4(r,t,n))}function i4(e,t,n){return Kw(Np(t.x,e.xMin,e.xMax),Np(t.y,e.yMin,e.yMax),n)}function Hae(e,t,n){return Np(n,t==="x"?e.yMin:e.xMin,t==="x"?e.yMax:e.xMax)}function Uae(e,t,n){if(e.buckets.length===0)return null;const{main:r,cross:a}=BX(e.mainAxis,t),i=Kj(e,r),o=(i==null?void 0:i.entries)??[];if(!i||!Yo(o))return null;const c=s4(o,a,e.mainAxis);return{hit:{anchored:!0,layerId:e.layerId,pointIndex:c.pointIndex,x:c.x,y:c.y,observation:c.observation},index:e,bucket:i,distance:Kw(c.x-t.x,c.y-t.y,n)}}function s4(e,t,n){return As(e,r=>Math.abs(pw(n,r)-t))}function Gae(e,t){if(e.cells.length===0)return null;for(const n of e.cells)if(!(t.x<n.xMin||t.x>n.xMax)&&!(t.y<n.yMin||t.y>n.yMax))return{hit:{anchored:!0,layerId:e.layerId,pointIndex:n.pointIndex,x:(n.xMin+n.xMax)/2,y:(n.yMin+n.yMax)/2,observation:n.observation},index:e};return null}function Yae(e,t,n){if(e.columns.length===0)return null;const{angle:r,radius:a}=xw(t,n),i=e.mainAxis==="x",o=i?Wae(e.columns,r):Qj(e,a),c=(o==null?void 0:o.rects)??[];if(!o||!Yo(c))return null;const u=i?qae(c,a):Xae(c,r);return{hit:{anchored:!0,layerId:e.layerId,pointIndex:u.pointIndex,x:(u.xMin+u.xMax)/2,y:(u.yMin+u.yMax)/2,observation:u.observation},index:e,column:o,distance:0}}function Wae(e,t){return Yo(e)?As(e,n=>Rp(t,n.mainMid)):null}function qae(e,t){return As(e,n=>Np(t,n.yMin,n.yMax),{shortCircuitOnZero:!0})}function Xae(e,t){return As(e,n=>yN(t,n.xMin,n.xMax)?0:Math.min(Rp(t,n.xMin),Rp(t,n.xMax)),{shortCircuitOnZero:!0})}function Kae(e,t,n){if(e.buckets.length===0)return null;const{angle:r,radius:a}=xw(t,n),i=Qae(e.buckets,r),o=(i==null?void 0:i.entries)??[];if(!i||!Yo(o))return null;const c=s4(o,a,e.mainAxis);return{hit:{anchored:!0,layerId:e.layerId,pointIndex:c.pointIndex,x:c.x,y:c.y,observation:c.observation},index:e,bucket:i,distance:0}}function Qae(e,t){return Yo(e)?As(e,n=>Rp(n.main,t)):null}function Zae(e,t,n){if(e.cells.length===0)return null;const{angle:r,radius:a}=xw(t,n);for(const i of e.cells)if(!(a<i.yMin||a>i.yMax)&&yN(r,i.xMin,i.xMax))return{hit:{anchored:!0,layerId:e.layerId,pointIndex:i.pointIndex,x:(i.xMin+i.xMax)/2,y:(i.yMin+i.yMax)/2,observation:i.observation},index:e};return null}function Jae(e,t,n){if(!Yo(e.points))return null;const{x:r,y:a}=vN(t,n),i=As(e.points,o=>$C(o,r,a));return{hit:{anchored:!0,layerId:e.layerId,pointIndex:i.pointIndex,observationIndex:i.observationIndex,x:i.x,y:i.y,observation:i.observation},index:e,distance:Math.sqrt($C(i,r,a))}}function $C(e,t,n){const r=e.unitX??Lp(e.x,e.y).x,a=e.unitY??Lp(e.x,e.y).y,i=r-t,o=a-n;return i*i+o*o}var eie=.05;function tie({layers:e,cursor:t,aspectRatio:n,warmStarts:r,hitTesters:a}){const i={match:null,distance:Number.POSITIVE_INFINITY},o={match:null,distance:Number.POSITIVE_INFINITY};for(const c of e){if(c.kind==="render-hit-test"){const f=iie(c,t,a);if(f)return{kind:"render-hit-test",match:f};continue}if(c.projection==="polar"){const f=aie(c,t,n);if(f)return f;continue}const u=rie({layer:c,cursor:t,aspectRatio:n,warmStarts:r});if(u){if(u.kind==="banded"||u.kind==="enclosure"){const f=u.kind==="banded"?u.match.distance:0;f<i.distance&&(i.match=u,i.distance=f);continue}u.match.distance<o.distance&&(o.match=u,o.distance=u.match.distance)}}return nie({containment:i,continuous:o})}function nie({containment:e,continuous:t}){return e.match&&t.match?t.distance<=e.distance+eie?t.match:e.match:e.match??t.match}
71function rie({layer:e,cursor:t,aspectRatio:n,warmStarts:r}){switch(e.kind){case"buckets":{const a=Uae(e,t,n);return a?{kind:"buckets",match:a}:null}case"banded":{const a=Pae(e,t,n);return a?{kind:"banded",match:a}:null}case"points":{const a=vae(e,t,n,r.get(e.layerId)??null);return a?{kind:"points",match:a}:null}case"enclosure":{const a=Gae(e,t);return a?{kind:"enclosure",match:a}:null}case"noop":return null}}function aie(e,t,n){switch(e.kind){case"enclosure":{const r=Zae(e,t,n);return r?{kind:"enclosure",match:r}:null}case"points":{const r=Jae(e,t,n);return r?{kind:"points",match:r}:null}case"buckets":{const r=Kae(e,t,n);return r?{kind:"buckets",match:r}:null}case"banded":{const r=Yae(e,t,n);return r?{kind:"banded",match:r}:null}case"noop":case"render-hit-test":return null}}function iie(e,t,n){const r=n.get(e.layerId);if(!r)return null;const a=r({x:t.x,y:1-t.y});if(!a)return null;const i=e.byKey.get(a.key);return i?{hit:a4(e.layerId,i)}:null}var gr={primary:null,group:[],related:new Map},sie=1,oie=class{constructor({layers:e,coordSystem:t}){this.layerIndexes=[],this.layerRefs=[],this.aspectRatio=sie,this.warmStarts=new Map,this.cachedState=gr,this.cachedKey=null,this.nonInteractiveLayerIds=new Set,this.hitTesters=new Map,this.cachedByKeyId=null,this.cachedByKeyState=gr,this.layerIndexes=e.map(n=>PC(n,t,this.aspectRatio)),this.layerRefs=e.map(n=>FC(n,t)),this.nonInteractiveLayerIds=HC(e)}update({layers:e,coordSystem:t}){const n=new Map;for(let i=0;i<this.layerIndexes.length;i+=1){const o=this.layerIndexes[i],c=this.layerRefs[i];!o||!c||n.set(o.layerId,{index:o,ref:c})}const r=[],a=[];for(const i of e){const o=n.get(i.id),c=FC(i,t);if(o!==void 0&&lie(o.ref,c)){r.push(o.index),a.push(o.ref);continue}this.warmStarts.delete(i.id),r.push(PC(i,t,this.aspectRatio)),a.push(c)}for(const i of this.warmStarts.keys())e.some(o=>o.id===i)||this.warmStarts.delete(i);this.layerIndexes=r,this.layerRefs=a,this.nonInteractiveLayerIds=HC(e),this.invalidateCache()}setViewport(e){this.aspectRatio=e.width/e.height;for(const t of this.layerIndexes)t.kind==="points"&&t.projection==="cartesian"&&t4(t,this.aspectRatio)}query(e){if(this.layerIndexes.length===0)return gr;const t=this.nonInteractiveLayerIds.size===0?this.layerIndexes:this.layerIndexes.filter(c=>!this.nonInteractiveLayerIds.has(c.layerId)),n=tie({layers:t,aspectRatio:this.aspectRatio,warmStarts:this.warmStarts,hitTesters:this.hitTesters,cursor:e});if(!n)return this.invalidateCache(),gr;const r=n.match.hit;this.warmStarts.set(r.layerId,r.pointIndex);const a=`${r.layerId}:${r.pointIndex}`;if(this.cachedKey===a)return this.cachedState;const{group:i,related:o}=Sae(n,t);return this.cachedKey=a,this.cachedState={primary:r,group:i,related:o},this.cachedState}registerHitTester(e,t){this.hitTesters.set(e,t)}unregisterHitTester(e){this.hitTesters.delete(e)}resolveHoverByKey(e,t){if(this.nonInteractiveLayerIds.has(e))return gr;const n=this.layerIndexes.find(i=>i.layerId===e);if(!n||n.kind!=="render-hit-test")return gr;const r=n.byKey.get(t);if(!r)return gr;const a=`${e}:${t}`;return this.cachedByKeyId===a?this.cachedByKeyState:(this.cachedByKeyId=a,this.cachedByKeyState={primary:a4(e,r),group:[],related:new Map},this.cachedByKeyState)}invalidateCache(){this.cachedKey=null,this.cachedState=gr,this.cachedByKeyId=null,this.cachedByKeyState=gr}};function FC(e,t){return{data:e.data,geom:e.geom,position:e.position,coord:t}}function HC(e){const t=new Set;for(const n of e)n.interactive||t.add(n.id);return t}function lie(e,t){return e.data===t.data&&e.geom===t.geom&&e.position===t.position&&e.coord===t.coord}var cie=Math.PI*2;function uie(e,t){const n=Jd(e.mainAxis,t);if(e.mainAxis==="y"){const a=be(aa(n));return{x1:0,x2:"100%",y1:a,y2:a}}const r=be(n);return{x1:r,x2:r,y1:0,y2:"100%"}}function die(e,t,n){var c,u;const r=e.mainAxis==="y"?et(n.observation):it(n.observation);if(r===null)return null;const a=e.mainAxis==="y"?mie(n):hie(n),i=((u=((c=t.x)==null?void 0:c.kind)==="position"?t.x:null)==null?void 0:u.bandwidth)??a;if(i===null||i<=0)return null;const o=i/2;return e.mainAxis==="y"?{x:0,y:be(aa(r+o)),width:"100%",height:be(i)}:{x:be(r-o),y:0,width:be(i),height:"100%"}}function fie(e,t){if(e.bandAxis===null)return null;if(e.bandAxis==="x"){const a=Fr(t.observation),i=Mr(t.observation);return a===null||i===null?null:{startAngle:a,endAngle:i,innerRadius:e.innerRadius,outerRadius:1}}const n=Pn(t.observation),r=hn(t.observation);return n===null||r===null?null:{startAngle:e.startAngle,endAngle:e.startAngle+cie,innerRadius:n,outerRadius:r}}function hie(e){const t=Fr(e.observation),n=Mr(e.observation);return t===null||n===null?null:n-t}function mie(e){const t=Pn(e.observation),n=hn(e.observation);return t===null||n===null?null:n-t}var Rg=.5,pie=.3,gie=.4,yie=10,bie=({layer:e,coordSystem:t,scales:n,options:r})=>e.data.size()===0?null:e.spatialKind==="rects"?t.type==="cartesian"?xie(e,t,n,r):wie(e,t,r):e.spatialKind==="buckets"&&t.type==="cartesian"?Mie(e,t,r):e.spatialKind==="cells"?Aie(e,r):e.spatialKind==="points"?Sie(e,r):null,vie=e=>{if(e.spatialKind==="buckets"){let t=0;
71return e.data.groupBy(pt.group).forEach(()=>{t+=1}),t}return e.data.size()},xie=(e,t,n,r)=>({type:"grow",layerId:e.id,durationSeconds:Rg*r.durationScale,baseline:Tie(e,t,n),growAxis:t.mainAxis==="x"?"y":"x",delayByKey:r.stagger?kie(e,t.mainAxis,r):{}}),wie=(e,t,n)=>{const r=t.bandAxis==="x"?"radius":"angle";return{type:"grow",layerId:e.id,durationSeconds:Rg*n.durationScale,growAxis:r,baseline:r==="radius"?t.innerRadius:t.startAngle,delayByKey:r==="radius"&&n.stagger?Rie(e,t,n):{}}},Sie=(e,t)=>({type:"grow",layerId:e.id,durationSeconds:Rg*t.durationScale,growAxis:"size",baseline:0,delayByKey:t.stagger?Eie(e,t):{}}),Aie=(e,t)=>({type:"fade",layerId:e.id,durationSeconds:pie*t.durationScale}),Mie=(e,t,n)=>({type:"wipe",layerId:e.id,durationSeconds:Rg*n.durationScale,axis:t.mainAxis}),Tie=(e,t,n)=>{const r=t.mainAxis==="x"?1:0,a=n[tl(e.yScaleType)];if(!a||a.kind!=="position")return r;const i=a.map(0);if(!Number.isFinite(i))return r;const o=Math.min(1,Math.max(0,i));return t.mainAxis==="x"?1-o:o},kie=(e,t,n)=>{const r=Tr(e.data,e.mapping,e.id),a=new Map;for(const i of e.data){const o=Ss(t,i);if(!o)continue;const c=Eg(t,o),u=r(i),f=a.get(c);f?f.keys.push(u):a.set(c,{position:t==="x"?o.x:o.y,keys:[u]})}return Jw([...a.values()],n)},Eie=(e,t)=>{const n=Tr(e.data,e.mapping,e.id),r=[];for(const a of e.data){const i=Cie(a,t.staggerOrder);i!==null&&r.push({position:i,keys:[n(a)]})}return Jw(r,t)},Cie=(e,t)=>{if(t==="main-axis")return it(e);const n=Gw(e)??it(e);return n===null?null:t==="value-descending"?-n:n},Rie=(e,t,n)=>{const r=Tr(e.data,e.mapping,e.id),a=new Map;for(const i of e.data){const{startAngle:o,endAngle:c}=Df(i),{innerRadius:u,outerRadius:f}=tu(i);if(o===null||c===null||u===null||f===null)continue;const m=Cg(t.bandAxis,{startAngle:o,endAngle:c,innerRadius:u,outerRadius:f}),p=r(i),g=a.get(m);g?g.keys.push(p):a.set(m,{position:o,keys:[p]})}return Jw([...a.values()],n)},Jw=(e,t)=>{const n={};if(e.length===0)return n;const r=[...e].sort((c,u)=>c.position-u.position),a=Math.ceil(r.length/yie),i=Math.ceil(r.length/a),o=gie*t.durationScale/i;return r.forEach((c,u)=>{const f=Math.floor(u/a)*o;for(const m of c.keys)n[m]=f}),n},sc=["top","right","bottom","left"],UC={top:"topLeft",right:"topRight",bottom:"bottomRight",left:"bottomLeft"},Lie={top:"topRight",right:"bottomRight",bottom:"bottomLeft",left:"topLeft"},Die={topLeft:["left","top"],topRight:["top","right"],bottomRight:["right","bottom"],bottomLeft:["bottom","left"]},Nie=(e,t)=>{const{edges:n,borderRadius:r}=e,a=Math.max(0,Math.min(r,t.width/2,t.height/2)),i=u=>{const[f,m]=Die[u];return a>0&&n[f].strokeWidth>0&&n[m].strokeWidth>0},o=Oie(t,a),c=_ie(t,a,i);return Iie(n).map(u=>({lineType:n[u.firstEdge].lineType,strokeWidth:n[u.firstEdge].strokeWidth,color:n[u.firstEdge].color,segments:Bie(u,o,c,i)}))},jie=e=>({top:e.edges.top.strokeWidth,right:e.edges.right.strokeWidth,bottom:e.edges.bottom.strokeWidth,left:e.edges.left.strokeWidth}),Oie=(e,t)=>{const{x:n,y:r,width:a,height:i}=e;return{topLeft:{cx:n+t,cy:r+t,startAngle:Math.PI,endAngle:Math.PI*1.5,radius:t},topRight:{cx:n+a-t,cy:r+t,startAngle:Math.PI*1.5,endAngle:Math.PI*2,radius:t},bottomRight:{cx:n+a-t,cy:r+i-t,startAngle:0,endAngle:Math.PI*.5,radius:t},bottomLeft:{cx:n+t,cy:r+i-t,startAngle:Math.PI*.5,endAngle:Math.PI,radius:t}}},_ie=(e,t,n)=>{const{x:r,y:a,width:i,height:o}=e,c=u=>n(u)?t:0;return{top:{start:{x:r+c("topLeft"),y:a},end:{x:r+i-c("topRight"),y:a}},right:{start:{x:r+i,y:a+c("topRight")},end:{x:r+i,y:a+o-c("bottomRight")}},bottom:{start:{x:r+i-c("bottomRight"),y:a+o},end:{x:r+c("bottomLeft"),y:a+o}},left:{start:{x:r,y:a+o-c("bottomLeft")},end:{x:r,y:a+c("topLeft")}}}},Iie=e=>{const t=o=>e[o].strokeWidth>0,n=(o,c)=>{const u=(sc.indexOf(o)+c+sc.length)%sc.length;return sc[u]},r=o=>{const c=n(o,-1);return!t(c)||e[c].lineType!==e[o].lineType||e[c].strokeWidth!==e[o].strokeWidth||e[c].color!==e[o].color},a=sc.filter(t);if(a.length===0)return[];const i=a.filter(r);return i.length===0?[{firstEdge:"top",edges:[...sc],isClosed:!0}]:i.map(o=>{const c=[o];for(let u=n(o,1);t(u)&&!r(u);u=n(u,1))c.push(u);return{firstEdge:o,edges:c,isClosed:!1}
71})},Bie=(e,t,n,r)=>{const a=(p,g,y)=>({type:"arc",cx:p.cx,cy:p.cy,radius:p.radius,startAngle:g,endAngle:y}),i=p=>(p.startAngle+p.endAngle)/2,o=[],c=e.firstEdge,u=e.edges[e.edges.length-1],f=UC[c];if(!e.isClosed&&r(f)){const p=t[f],g=i(p),y=zie(p,g);o.push({type:"move",x:y.x,y:y.y}),o.push(a(p,g,p.endAngle))}else o.push({type:"move",x:n[c].start.x,y:n[c].start.y});o.push({type:"line",x:n[c].end.x,y:n[c].end.y});for(const p of e.edges.slice(1)){const g=UC[p];if(r(g)){const y=t[g];o.push(a(y,y.startAngle,y.endAngle))}o.push({type:"line",x:n[p].end.x,y:n[p].end.y})}const m=Lie[u];if(e.isClosed){if(r(m)){const p=t[m];o.push(a(p,p.startAngle,p.endAngle))}o.push({type:"close"})}else if(r(m)){const p=t[m];o.push(a(p,p.startAngle,i(p)))}return o},zie=(e,t)=>({x:e.cx+e.radius*Math.cos(t),y:e.cy+e.radius*Math.sin(t)}),Vie=/^(?:https?:|mailto:)/i,eS=e=>{if(typeof e!="string")return!1;const t=e.replace(/^[\x00-\x20]+/,"");return t.length===0?!1:Vie.test(t)},Pie=({locale:e,intlOptions:t})=>Dn(n=>Intl.DateTimeFormat(e,{day:"numeric",month:"long",year:"numeric",weekday:"long",...Hn,...t}).format(n)),$ie=({locale:e,intlOptions:t})=>Dn(n=>{const r=n.getUTCSeconds()!==0;return Intl.DateTimeFormat(e,{day:"2-digit",month:"short",year:"numeric",weekday:"short",hour:"2-digit",minute:"2-digit",second:r?"2-digit":void 0,...Hn,...t}).format(n)}),jp=e=>{const{valueFormat:t}=e;switch(t.type){case"currency":return hj(e);case"date":return Pie(e);case"datetime":return $ie(e);case"day_month":return yj(e);case"decimal":return mj(e);case"duration":return Nw();case"integer":return pj(e);case"month":return bj(e);case"month_year":return _w(e);case"percentage":return gj(e);case"quarter":return Iw();case"text":return Dw();case"time":return wj(e);case"weekly_date_range":return vj(e);case"weekly_date_range_with_year":return xj(e);case"year":return Bw(e);case"lookup":return jp({...e,valueFormat:t.fallback});default:throw new Be({message:`Unhandled value format: ${t.type}`})}},Fie=({layers:e,coordSystem:t,scales:n,guides:r,numberFormat:a,parsingLocale:i,hover:o,colorScheme:c,formattingLocale:u,comments:f,activeCalloutId:m})=>{const{primary:p}=o;if(p===null)return null;const g=u??i,y=Hie(f,m);return{header:y===null?Uie({layers:e,coordSystem:t,guides:r,primary:p,locale:g,numberFormat:a}):null,rows:Gie({layers:e,scales:n,guides:r,hover:o,locale:g,numberFormat:a,colorScheme:c}),comment:y}};function Hie(e,t){var n;return e===void 0||t===null||t===void 0?null:((n=e.find(r=>r.id===t))==null?void 0:n.content)??null}function Uie(e){if(e.coordSystem.type!=="cartesian")return null;const t=Vj(e.guides,"x");if(!t)return null;const n=e.layers.find(i=>i.id===e.primary.layerId);if(!n)return null;const r=pe(n.mapping.x);if(!de(r))return null;const a=e.primary.observation[r];return de(a)?jp({valueFormat:t.valueFormat,locale:e.locale,numberFormat:e.numberFormat})(a):null}function Gie(e){const t=[],n=e.scales.color??null,r=al({colorScheme:e.colorScheme}),a=Xie({guides:e.guides,locale:e.locale,numberFormat:e.numberFormat});for(const i of e.layers){const o=Wie(i,e.hover);if(o.length===0)continue;const c=o[0];if(i.tooltip.length>0&&c){t.push(...Yie(i,c,e.guides,r.geomReaders(i),{locale:e.locale,numberFormat:e.numberFormat}));continue}const u=jX(i.data,i.mapping),f=qie(o,i,n,u),m=Ww({layer:i,numberFormat:e.numberFormat,locale:e.locale}),p=Kie(e.guides,i),g=Mf(i),y=i.mapping.color!==void 0,x=r.geomReaders(i);for(const S of f){const A=y?u(S.observation):null,M=x.get("color",S.observation),C=x.get("lineType",S.observation)??"solid",R=y&&A!==null?a(A):p,L=g(S.observation),N=L===null?"":m(L,S.observation);t.push({swatchColor:M,geom:i.geom,swatchLineType:C,label:R,value:N,isPrimary:S===e.hover.primary,key:`${S.layerId}:${S.pointIndex}`})}}return t}function Yie(e,t,n,r,a){return e.tooltip.map(i=>{const o=e.mapping[i.aes],c=pe(o),u=Zo(e.data,o)(t.observation),f=dn({valueFormat:gw(e,c),locale:a.locale,numberFormat:a.numberFormat});return{swatchColor:i.aes==="color"?r.get("color",t.observation):null,geom:e.geom,swatchLineType:"solid",label:i.key??Ag(c,n.variableLabels)??"",value:u===null?"":f(u,t.observation),isPrimary:!1,key:`${t.layerId}:${t.pointIndex}:${i.aes}`}})}function Wie(e,t){const n=[];return t.primary!==null&&t.primary.layerId===e.id&&n.push(t.primary,...t.group),n.push(...t.related.get(e.id)??[]),n}function qie(e,t,n,r){if(n===null||t.mapping.color===void 0)return e;const a=new Map;return n.domain.forEach((i,o)=>{a.set(yt(i),o)}),e.map((i,o)=>{const c=r(i.observation),u=c===null?null:yt(c);return{hit:i,originalIndex:o,rank:u===null?Number.POSITIVE_INFINITY:a.get(u)??Number.POSITIVE_INFINITY}}).sort((i,o)=>i.rank===o.rank?i.originalIndex-o.originalIndex:i.rank-o.rank).map(i=>i.hit)}function Xie({guides:e,locale:t,numberFormat:n}){const r=new Map(e.colorGroups.map(i=>[yt(i.value),{label:i.label,format:jp({valueFormat:i.valueFormat,locale:t,numberFormat:n})}])),a=jp({valueFormat:{type:"text"},locale:t,numberFormat:n});return i=>{const o=r.get(yt(i));return o===void 0?a(i):o.label??o.format(i)}}function Kie(e,t){return Ag(pe(t.mapping.y),e.variableLabels)??""}function Lm(e,t,n=0){const r=e[t];return typeof r=="number"&&Number.isFinite(r)?r:n}function md(e,t,n=""){const r=e[t];return typeof r=="string"?r:n}var o4=e=>({edges:{top:mc(e.panelBorder("top")),right:mc(e.panelBorder("right")),bottom:mc(e.panelBorder("bottom")),left:mc(e.panelBorder("left"))},borderRadius:e.panelBorder().get("borderRadius")}),Ox=(e,t)=>mc(e.gridLine(t)),Qie=(e,t)=>{const n=e.tickLine(t);return{...mc(n),length:n.get("length")}},l4=e=>{const t=e.graph.get("borderColor");return{background:e.graph.get("background"),...t===void 0?{}:{borderColor:t},borderWidth:e.graph.get("borderWidth"),borderRadius:e.graph.get("borderRadius")}},tS=e=>{if(e==="dashed")return"2 3";if(e==="dotted")return"1 3"},mc=e=>({color:e.get("color"),strokeWidth:e.get("strokeWidth"),lineType:e.get("lineType")}),c4=e=>e.fontSize*e.lineHeight,jf=(e,t)=>
71({family:e.fontFamily??t,size:e.fontSize,weight:e.fontWeight}),To=(e,t,n)=>({fontFamily:e.get("fontFamily")??n,fontSize:e.get("fontSize")*t,fontWeight:e.get("fontWeight"),lineHeight:e.get("lineHeight"),textColor:e.get("textColor")}),Zie=(e,t,n)=>To(e.axisLabel(t),n,e.graph.get("fontFamily")),Jie=(e,t,n)=>{const r=e.tickLabel(t);return{...To(r,n,e.graph.get("fontFamily")),offset:r.get("offset")}},ese=(e,t,n,r)=>{const a=e.dataLabel(t,n),i=a.get("background"),o=a.get("borderColor"),c=a.get("borderWidth");return{...To(a,r,e.graph.get("fontFamily")),paddingInline:a.get("paddingInline"),paddingBlock:a.get("paddingBlock"),borderRadius:a.get("borderRadius"),isTextColorAuthored:a.getSource("textColor")==="authored",...i===void 0?{}:{background:i},...o===void 0?{}:{borderColor:o},...c===void 0?{}:{borderWidth:c}}},tse=(e,t,n)=>{const r=To(e.ruleLabel(t),n,e.graph.get("fontFamily"));return{fontFamily:r.fontFamily,fontSize:r.fontSize,fontWeight:r.fontWeight,lineHeight:r.lineHeight}},nse=(e,t)=>{const n=e.tooltip.box,r=e.graph.get("fontFamily");return{box:{background:n.get("background"),borderColor:n.get("borderColor"),borderWidth:n.get("borderWidth"),borderRadius:n.get("borderRadius"),paddingInline:n.get("paddingInline"),paddingBlock:n.get("paddingBlock"),shadow:n.get("shadow")},heading:To(e.tooltip.heading,t,r),label:To(e.tooltip.label,t,r),value:To(e.tooltip.value,t,r),primaryRow:{background:e.tooltip.primaryRow.get("background")}}},Lg={differenceArrow:"differenceArrows",shape:"shapes",arrow:"arrows",text:"textAnnotations",image:"images",sticker:"stickers",pinnedNumber:"pinnedNumbers",comment:"comments"},rse={differenceArrow(e){return{type:"annotation",kind:"differenceArrow",annotation:e}},shape(e){return{type:"annotation",kind:"shape",annotation:e}},arrow(e){return{type:"annotation",kind:"arrow",annotation:e}},text(e){return{type:"annotation",kind:"text",annotation:e}},image(e){return{type:"annotation",kind:"image",annotation:e}},sticker(e){return{type:"annotation",kind:"sticker",annotation:e}},pinnedNumber(e){return{type:"annotation",kind:"pinnedNumber",annotation:e}},comment(e){return{type:"annotation",kind:"comment",annotation:e}}},ase=Object.keys(Lg),ise=e=>Object.hasOwn(Lg,e),ru=(e,t)=>{for(const n of ase){const r=sse(e,n,t);if(r)return r}return null},Of=(e,t)=>e[Lg[t]],nS=(e,t,n)=>({...e,[Lg[t]]:n}),u4=(e,t)=>{const n=Of(e,t.kind);return nS(e,t.kind,[...n.slice(0,t.index),...n.slice(t.index+1)])},sse=(e,t,n)=>{const r=Of(e,t),a=r.findIndex(o=>o.id===n),i=r[a];return i===void 0?null:{kind:t,index:a,annotation:i}},ose=["sticker","pinnedNumber","comment","image"],d4=e=>{switch(e.kind){case"pinnedNumber":case"comment":return e.annotation.at;case"sticker":return e.annotation.at.anchorType==="observation"?dse(e.annotation.at):null;default:return null}},lse=(e,t)=>e.layerId===t.layerId&&un(e.anchorValue,t.anchorValue)&&un(e.groupValue??null,t.groupValue??null)&&un(e.crossValue??null,t.crossValue??null),cse=(e,t,n=use)=>{const r=n(t);for(const a of ose){const i=Of(e,a),o=i.findIndex(u=>{const f=d4({kind:a,annotation:u});if(f===null)return!1;const m=n(f);return lse(m,r)}),c=i[o];if(c!==void 0)return{kind:a,index:o,annotation:c}}return null},use=e=>({...e,anchorValue:cv(e.anchorValue),...e.groupValue!==void 0&&{groupValue:cv(e.groupValue)},...e.crossValue!==void 0&&{crossValue:cv(e.crossValue)}}),cv=e=>q3(e)??e,dse=e=>({layerId:e.layerId,anchorValue:e.anchorValue,groupValue:e.groupValue,crossValue:e.crossValue,align:e.align}),fse={x:!0,y:!0,label:!0,color:!0,size:!0,alpha:!0,group:!0,strokeWidth:!0,lineType:!0},hse=e=>Object.hasOwn(fse,e),rS=(e,t)=>"and"in e?"and"in t&&GC(e.and,t.and):"or"in e?"or"in t&&GC(e.or,t.or):"not"in e?"not"in t&&rS(e.not,t.not):mse(t)&&e.variable===t.variable&&pse(e,t),mse=e=>"variable"in e,GC=(e,t)=>e.length===t.length&&e.every((n,r)=>{const a=t[r];return a!==void 0&&rS(n,a)}),pse=(e,t)=>"eq"in e?"eq"in t&&un(e.eq,t.eq):"oneOf"in e?"oneOf"in t&&YC(e.oneOf,t.oneOf):"lt"in e?"lt"in t&&un(e.lt,t.lt):"lte"in e?"lte"in t&&un(e.lte,t.lte):"gt"in e?"gt"in t&&un(e.gt,t.gt):"gte"in e?"gte"in t&&un(e.gte,t.gte):"range"in t&&YC(e.range,t.range),YC=(e,t)=>e.length===t.length&&e.every((n,r)=>un(n,t[r]??null)),gse=e=>e.find(t=>t.geom==="rule"&&t.stat.type==="identity"&&(Et(Sr(t.mapping.y))||Et(Sr(t.mapping.x)))),yse=e=>e.find(t=>t.geom==="line"&&t.stat.type==="smooth"),bse=e=>e.find(t=>t.geom==="rule"&&t.stat.type==="mean");function vse(e){return{mapping:e.mapping,layers:e.layers,scales:e.scales.map(xse),transforms:e.transforms,highlights:e.highlights,annotations:e.annotations,coords:e.coords,config:e.config}}function xse(e){return e.scaleType==="palette"?wse(e):e}function wse(e){return{...e,palette:Sse(e.palette),overrides:Ase(e.overrides)}}function Sse(e){return e.type==="custom"?{type:"custom",id:e.id}:e}function Ase(e){if(!e)return;const t={};for(const[n,r]of Object.entries(e))t[Number(n)]={hex:r};return t}var aS=(e,t)=>{const n=f4(e,t);return n===-1?void 0:e[n]},f4=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(r!==void 0&&iS(r,t))return n}return-1},iS=(e,t)=>{var n,r,a,i;return Tse(e.select,t.select)&&((n=e.when)==null?void 0:n.state)===((r=t.when)==null?void 0:r.state)&&kse((a=e.when)==null?void 0:a.where,(i=t.when)==null?void 0:i.where)},Mse=(e,t)=>[...new Set([...Object.keys(e),...Object.keys(t)])].every(n=>Ese(e[n],t[n])),Tc=(e,t)=>({select:{target:"geom",kind:e,layer:t}}),h4=e=>e.select.target==="geom",Dg=(e,t)=>
71{const n=aS(e,t);if(!(n===void 0||!h4(n)))return n.declarations},Tse=(e,t)=>{const n=e,r=t;return[...new Set([...Object.keys(e),...Object.keys(t)])].every(a=>n[a]===r[a])},kse=(e,t)=>e===void 0||t===void 0?e===t:rS(e,t),Ese=(e,t)=>e===t?!0:No(e)?No(t)&&e.light===t.light&&e.dark===t.dark:ax(e)?ax(t)&&e.token===t.token:!1;function Se(e){return{id:e.id??Fn(),timestamp:e.timestamp??Date.now(),description:e.description,author:e.author??"unknown"}}function $c(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((n,r)=>$c(n,t[r]));if(Ro(e)&&Ro(t)){const n=Object.keys(e).filter(a=>e[a]!==void 0),r=Object.keys(t).filter(a=>t[a]!==void 0);return n.length===r.length&&n.every(a=>$c(e[a],t[a]))}return!1}var m4=class{constructor(t,n={}){this.type="remove-annotation",this.params=t,this.metadata=Se({...n,description:"Remove annotation"})}get target(){return{kind:"annotation",id:this.params.id}}apply(t){const n=ru(t.annotations,this.params.id);if(!n)return null;const{kind:r,index:a,annotation:i}=n;return{spec:Mt(t,{annotations:u4(t.annotations,n)}),revert:new p4({kind:r,annotation:i,index:a},this.metadata)}}},Cse={type:"remove-annotation",deserialize:(e,t)=>new m4(e,t)},p4=class g4{constructor(t,n={}){this.type="add-annotation",this.params={kind:t.kind,annotation:{...t.annotation,id:t.annotation.id??Fn()},...t.index!==void 0&&{index:t.index}},this.metadata=Se({...n,description:"Add annotation"})}get target(){return{kind:"annotation",id:this.params.annotation.id}}apply(t){const{kind:n,annotation:r,index:a}=this.params;if(!ise(n)||ru(t.annotations,r.id))return null;const i=Lse(t.annotations,{kind:n,annotation:r}),o=i===null?t.annotations:u4(t.annotations,i),c=Of(o,n),u=a??c.length,f=Math.min(Math.max(u,0),c.length);return{spec:Mt(t,{annotations:nS(o,n,[...c.slice(0,f),r,...c.slice(f)])}),revert:i===null?new m4({id:r.id},this.metadata):new g4({kind:i.kind,annotation:i.annotation,index:i.index},this.metadata)}}},Rse={type:"add-annotation",deserialize:(e,t)=>new p4({kind:e.kind,annotation:e.annotation,index:e.index},t)},Lse=(e,t)=>{const n=d4(t);return n===null?null:cse(e,n)},Dse=e=>y4(e)!==null,Nse=(e,t)=>{const n=y4(e);if(n===null)return null;const r=_se(n.points,t);return r.x===0&&r.y===0?null:n.createPatch(r)},y4=e=>{const t=Ose[e.kind];return t===null?null:t(e.annotation)},WC=(e,t)=>e.anchorType!=="panel"?null:{points:[_x(e,e.offset)],createPatch:n=>t({...e,x:e.x+n.x,y:e.y+n.y})},qC=(e,t)=>e.anchorType!=="panel"?null:{points:[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y+e.height}],createPatch:n=>t({...e,x:e.x+n.x,y:e.y+n.y})},jse=(e,t)=>e.anchorType!=="panel"||t.anchorType!=="panel"?null:{points:[_x(e,e.offset),_x(t,t.offset)],createPatch:n=>({start:{...e,x:e.x+n.x,y:e.y+n.y},end:{...t,x:t.x+n.x,y:t.y+n.y}})},Ose={text:e=>WC(e.at,t=>({at:t})),sticker:e=>WC(e.at,t=>({at:t})),shape:e=>qC(e.region,t=>({region:t})),image:e=>qC(e.region,t=>({region:t})),arrow:e=>jse(e.start,e.end),differenceArrow:null,pinnedNumber:null,comment:null},_x=(e,t)=>t===void 0||t.unit==="px"?{x:e.x,y:e.y}:{x:e.x+(t.x??0),y:e.y+(t.y??0)},_se=(e,t)=>({x:XC(e.map(n=>n.x),t.x),y:XC(e.map(n=>n.y),t.y)}),XC=(e,t)=>{if(!Number.isFinite(t))return 0;const n=Math.min(-Math.min(...e),0),r=Math.max(1-Math.max(...e),0);return!Number.isFinite(n)||!Number.isFinite(r)?0:pf(t,n,r)},b4=(e,t,n)=>{const r=t.annotation;if(!zse(r,n))return null;const a=Of(e.annotations,t.kind),i=Ise(t.annotation,n),o=[...a.slice(0,t.index),i,...a.slice(t.index+1)];return{spec:Mt(e,{annotations:nS(e.annotations,t.kind,o)}),inverse:Bse(r,n)}},Ise=(e,t)=>{const n=new Set(Object.entries(t).filter(([,r])=>r===void 0).map(([r])=>r));return Object.fromEntries(Object.entries({...e,...t}).filter(([r])=>!n.has(r)))},Bse=(e,t)=>{const n={};for(const r of Object.keys(t))n[r]=e[r];return n},zse=(e,t)=>Object.entries(t).some(([n,r])=>!Object.is(e[n],r)),v4=class x4{constructor(t,n={}){this.type="update-annotation",this.params=t,this.metadata=Se({...n,description:"Update annotation"})}get target(){return{kind:"annotation",id:this.params.id}}apply(t){const{kind:n,id:r,patch:a}=this.params,i=ru(t.annotations,r);if(i===null||i.kind!==n)return null;
71const o=b4(t,i,a);return o===null?null:{spec:o.spec,revert:new x4({kind:n,id:r,patch:o.inverse},this.metadata)}}},Vse={type:"update-annotation",deserialize:(e,t)=>new v4(e,t)},Pse=class{constructor(e,t={}){this.type="move-annotation",this.params={id:e.id,translation:{x:e.translation.x,y:e.translation.y}},this.metadata=Se({...t,description:"Move annotation"})}get target(){return{kind:"annotation",id:this.params.id}}apply(e){const t=ru(e.annotations,this.params.id);if(t===null)return null;const n=Nse(t,this.params.translation);if(n===null)return null;const r=b4(e,t,n);return r===null?null:{spec:r.spec,revert:new v4({kind:t.kind,id:t.annotation.id,patch:r.inverse},this.metadata)}}},$se={type:"move-annotation",deserialize:(e,t)=>new Pse(e,t)},Fse=["cartesian","polar","flip"],ar=new Mg,Hse=e=>ar.has(e)?ar.get(e):null,w4=new G1,Use=new cj(w4),sS=e=>{const t=e.transforms.every(n=>w4.has(n.transformType));return e.transforms.length===0||!t?e.data:Use.compile({data:e.data,transforms:e.transforms})};function oS(e,t){const n=t.some(i=>i.yScaleType==="secondary"),r=e.find(i=>i.scaledAesthetic==="ySecondary");if(!n)return r===void 0?e:e.filter(i=>i!==r);if(r!==void 0)return e;const a=e.find(i=>i.scaledAesthetic==="y");return a===void 0?e:[...e,{...a,scaledAesthetic:"ySecondary"}]}function _f(e,t){return e.scales.find(n=>n.scaledAesthetic===t)}function If(e,t,n){const r=e.scales.findIndex(a=>a.scaledAesthetic===t);return r===-1?e:Mt(e,{scales:oN(e.scales,r,n)})}function Bf(e){const t=e.replace(/([A-Z])/g," $1").toLowerCase();return t.charAt(0).toUpperCase()+t.slice(1)}function Ix(e,t,n){const r=Rw(ej(uj(ar),{data:sS(e),layers:e.layers,mapping:n,customPalettes:{}}),xc(t));return e.coords.coordType==="polar"?tj(r):r}var Gse=class S4{constructor(t,n={}){this.type="set-chart-type",this.target={kind:"coords"},this.params=t,this.metadata=Se({...n,description:eoe(t)})}apply(t){const n="previous"in this.params?this.params.previous:toe(t,this.params);if(n===null)return null;const r=Mt(t,n);return r===t?null:{spec:r,revert:new S4({previous:{coords:t.coords,layers:t.layers,scales:t.scales,mapping:t.mapping}},this.metadata)}}},Yse={type:"set-chart-type",deserialize:(e,t)=>new Gse(e,t)},A4={type:"sum"},Wse={type:"identity"},qse=["bar","line","area","point","tile"],M4="tile",Xse=["y","color"],Kse=Object.values(Ed),Ng=e=>e.coordType==="cartesian"&&"comboType"in e&&yD.includes(e.comboType),Qse=e=>{if(e.coords.coordType!=="cartesian")return null;const t=e.layers.filter(Ms);return Zse(t)===null?null:t},Zse=e=>{const t=e.at(-1);if(e.length<2||(t==null?void 0:t.geom)!=="line")return null;const n=e.slice(0,-1);if(n.every(a=>a.geom==="line"))return Jse(e)?"lines":null;if(!n.every(a=>a.geom==="bar"))return null;const[r]=n;return r===void 0||!n.every(a=>a.position===r.position)?null:bD(r.position)},Jse=e=>e.some(t=>t.yScaleType==="secondary"||Op(t))||new Set(e.map(t=>pe(t.mapping.y))).size>1,eoe=e=>"previous"in e?"Restore the previous chart type":Ng(e)?`Set chart type to a ${e.comboType} combo`:`Set chart type to ${e.position} ${e.geom} in ${e.coordType} coords`,toe=(e,t)=>{const n=moe(e,t);if(n===null)return null;const r=Ng(t)?roe(n,t):noe(n,t,e);return r===null||n===e?r:{...r,scales:voe({...e,...r},r.scales)}},noe=(e,t,n)=>{if(Ng(t)||!xoe(t))return null;const r={...e,layers:I4(e.layers)},a=Aoe(r.layers.filter(Ms),t),i=z4(r.coords,t),o=C4(r,t),c=_4({...r,mapping:o},t,a,o!==r.mapping);return{coords:i,layers:c,scales:oS(V4(n,c,i.coordType),c),mapping:o}},roe=(e,t)=>{const n=soe(e,t.comboType);if(n===null)return null;const r={...e,layers:n},a=Moe(n.filter(Ms),t.comboType),i=z4(r.coords,t),o=C4(r,t),c=_4({...r,mapping:o},t,a,o!==r.mapping),u=aoe(e)?c:ioe(c);return{coords:i,layers:u,scales:oS(V4(e,u,i.coordType),u),mapping:o}},aoe=e=>Qse(e)!==null,ioe=e=>{const t=e.filter(Ms).at(-1);return t===void 0||t.yScaleType==="secondary"?e:e.map(n=>n.id===t.id?{...n,yScaleType:"secondary"}:n)},soe=(e,t)=>{const n=e.layers.filter(Ms);if(n.length>=2)return e.layers;const[r]=n;return r===void 0?null:ooe(e,r)?loe(e,r):uoe(e,r,t)},ooe=(e,t)=>{const n=pe(t.mapping.color??e.mapping.color);return n!==null&&n!==""},loe=(e,t)=>{const[n]=coe(e,t);if(n===void 0)return null;const r=rl(ar,e.mapping,e.coords.coordType,{type:"layer",id:T4(n,new Set(e.layers.map(a=>a.id))),geom:"line",stat:A4,...E4(n,Ed.line)});return e.layers.flatMap(a=>a.id===t.id?[a,r]:[a])},lS=(e,t)=>{const n=zf(e);return t.filter(r=>r!==n)},coe=(e,t)=>{const n=pe(t.mapping.y??e.mapping.y);return lS(e,e.data.groupVariableNamesByType().numeric).filter(r=>r!==n)},zf=e=>P1(e.mapping)||wH(e.data),uoe=(e,t,n)=>{const{numeric:r}=e.data.groupVariableNamesByType(),a=lS(e,r),i=a.at(-1);if(a.length<2||i===void 0)return null;const o=O3(e.data,zf(e)),c=Q1[n]===null?Ed.line:Ed.bar,u=doe(t,KC(a.slice(0,-1),o,c)),f=rl(ar,e.mapping,e.coords.coordType,{type:"layer",id:T4(i,new Set(e.layers.map(m=>m.id))),geom:"line",stat:t.stat,...KC([i],o,Ed.line)});return e.layers.flatMap(m=>m.id===t.id?[u,f]:[m])},T4=(e,t)=>{const n=`line:${e}`;let r=n;for(let a=2;t.has(r);a+=1)r=`${n}:${a}`;return r},KC=(e,t,n)=>{const[r]=e;return e.length===1&&r!==void 0?E4(r,n):k4(e,t)},k4=(e,t)=>
71({mapping:{y:nx,color:"key"},transforms:[bf.reshape({keep:t,reshape:e,keyName:"key",valueName:nx})]}),E4=(e,t)=>({mapping:{y:e,color:t},transforms:[bf.constant({variableName:t,type:"categorical",value:e})]}),doe=(e,t)=>({...e,mapping:{...e.mapping,...t.mapping},transforms:[...e.transforms,...t.transforms]}),C4=(e,t)=>{const n=P1(e.mapping),r=R4(t)?"":zf(e);return r===n?e.mapping:{...e.mapping,x:r}},R4=e=>e.coordType==="polar"&&e.theta==="y",foe=e=>!Ng(e)&&e.geom===M4,hoe=e=>e.layers.filter(Ms).some(t=>t.geom===M4),moe=(e,t)=>{const n=foe(t);return n===hoe(e)?e:n?poe({...e,layers:I4(e.layers)}):goe(e)??e},poe=e=>{const t=D4(e);if(t===null)return null;const n=yoe(e,t)===null?boe(e,t):N4(e,t);return n===null?null:L4(e,t,n)},goe=e=>{const t=D4(e);if(t===null)return null;const n=N4(e,t);return n===null?null:L4(e,t,n)},L4=(e,t,n)=>({...e,mapping:n.mapping,layers:e.layers.map(r=>r===t?n.layer:r)}),D4=e=>{const t=e.layers.filter(Ms);return t.length===1?t[0]??null:null},N4=(e,t)=>{const n={...e.mapping,...t.mapping};return n.y===void 0||n.color===void 0?null:{mapping:{...e.mapping,y:n.color,color:n.y},layer:j4(t)}},j4=e=>{if(e.mapping.y===void 0&&e.mapping.color===void 0)return e;const{y:t,color:n,...r}=e.mapping;return{...e,mapping:r}},yoe=(e,t)=>{const n={...e.mapping,...t.mapping},r=pe(n.color),a=pe(n.y);if(r===null||r===""||a===null||a===""||r===zf(e))return null;const i=sS(e);return i.hasVariable(r)&&i.getType(r)==="numeric"?null:r},boe=(e,t)=>{const n=lS(e,e.data.groupVariableNamesByType().numeric);if(n.length<2)return null;const r=O3(e.data,zf(e)),a=k4(n,r),i=j4(t);return{mapping:{...e.mapping,y:a.mapping.color,color:a.mapping.y},layer:{...i,transforms:[...i.transforms,...a.transforms]}}},voe=(e,t)=>Xse.reduce((n,r)=>{const a=Ix(e,r,e.mapping);return n.some(i=>i.scaledAesthetic===r)?Jc(n,i=>i.scaledAesthetic===r?a:i):[...n,a]},t),xoe=e=>Fse.includes(e.coordType)&&O4(e.geom)&&woe(e)&&(e.coordType!=="polar"||Number.isFinite(e.innerRadius)),woe=({geom:e,coordType:t,position:n})=>{const{supportedCoordTypes:r,supportedPositions:a}=ar.get(e);return r.includes(t)&&a.includes(n)},O4=e=>qse.includes(e),Ms=e=>O4(e.geom)&&!Soe(e.stat),Soe=e=>{switch(e.type){case"smooth":return!0;case"identity":case"count":case"mean":case"sum":return!1;default:return!0}},Aoe=(e,{geom:t,position:n})=>{const r={geom:t,position:n};return new Map(e.map(a=>[a.id,r]))},Moe=(e,t)=>{const n={geom:"line",position:"identity"},r=Q1[t],a=e.map((i,o)=>r===null||o===e.length-1?[i.id,n]:[i.id,{geom:"bar",position:Toe(i,t,r)}]);return new Map(a)},Toe=(e,t,n)=>e.geom!=="bar"||Op(e)?n:bD(e.position)===t?e.position:n,_4=(e,t,n,r)=>{const a=e.coords.coordType!==t.coordType;return ZN(ar,Jc(e.layers,i=>{const o=n.get(i.id);if(o===void 0)return i;const c=koe(i.stat,e.coords,t);return a||r||i.geom!==o.geom||i.position!==o.position||c!==i.stat?Coe(e,{...i,stat:c},t.coordType,o):i}))},koe=(e,t,n)=>R4(n)?e.type==="identity"?A4:e:Eoe(t)&&e.type==="sum"?Wse:e,Eoe=e=>e.coordType==="polar"&&e.params.theta==="y",Coe=(e,t,n,{geom:r,position:a})=>{const i={geom:t.geom===r,coordType:e.coords.coordType===n,position:t.position===a},{labelSource:o,format:c,offset:u,justify:f,...m}=t.dataLabels;return{...rl(ar,e.mapping,n,{type:"layer",id:t.id,geom:r,mapping:t.mapping,stat:t.stat,position:a,params:i.geom?t.params:void 0,yScaleType:t.yScaleType,transforms:t.transforms,interactive:t.interactive,dataLabels:{...m,...i.coordType&&{format:c},...i.geom&&i.coordType&&{offset:u},...i.geom&&i.position&&{justify:f}}}),stat:t.stat}},I4=e=>{const t=e.filter(Ms);if(t.length<2||!e.some(Op))return e;const[n]=t;return e.flatMap(r=>r===n?[Roe(r)]:Op(r)?[]:[r])},Op=e=>B4(e)!==null,B4=e=>{const t=e.transforms.at(-1);return(t==null?void 0:t.transformType)==="reshape"?t.options.keyName==="key"?t:null:(t==null?void 0:t.transformType)!=="constant"?null:Kse.includes(t.options.variableName)?t:null},Roe=e=>{var i;const t=B4(e);if(t===null)return e;const{color:n,...r}=e.mapping,a=t.transformType==="reshape"?(i=t.options.reshape)==null?void 0:i[0]:void 0;return{...e,mapping:a===void 0?r:{...r,y:a},transforms:e.transforms.slice(0,-1)}},z4=(e,t)=>{const n=Loe(e,t);return og(n,e)?e:n},Loe=(e,t)=>{const n={xLimits:e.params.xLimits,yLimits:e.params.yLimits};if(t.coordType!=="polar")return Ax({type:"coord",coordType:t.coordType,params:n});const r=e.coordType==="polar"?e.params:Xm;return Ax({type:"coord",coordType:"polar",params:{...n,theta:t.theta,startAngle:r.startAngle,innerRadius:t.
71innerRadius}})},V4=(e,t,n)=>{const r=Sx(ar,t),a=Sx(ar,e.layers),i=e.coords.coordType==="polar";return Jc(e.scales,o=>{const c=Doe(o,r,a),u=Noe(c,r,a);return Ooe(u,n,i)})},Doe=(e,t,n)=>{if(e.scaleType==="discrete"){const a=t.bandPadding[e.scaledAesthetic];return a===void 0||e.padding===a?e:{...e,padding:a}}if(e.scaledAesthetic===t.discreteAxis)return Mx(Jn(e.scaledAesthetic,{..."reverse"in e&&{reverse:e.reverse}}),t);if(e.scaledAesthetic===t.discreteCrossAxis)return Mx(Jn(e.scaledAesthetic),t);const r=t.zeroAxes[e.scaledAesthetic];if(r!==void 0&&e.scaleType==="continuous"){const a=joe(e.nice,r,n.zeroAxes[e.scaledAesthetic]);return e.zero&&e.nice===a?e:{...e,zero:!0,nice:a}}return e},Noe=(e,t,n)=>{if(e.scaleType!=="discrete"||!el(e.scaledAesthetic))return e;const r=t.bandPadding[e.scaledAesthetic];if(r===n.bandPadding[e.scaledAesthetic])return e;const a=r??So.padding;return e.padding===a?e:{...e,padding:a}},joe=(e,t,n)=>t.nice===((n==null?void 0:n.nice)??!0)?e:t.nice?va.nice:!1,Ooe=(e,t,n)=>{if(e.scaleType!=="discrete"||!el(e.scaledAesthetic))return e;if(t==="polar")return e.padding===0?e:{...e,padding:0};if(!n)return e;const{padding:r}=So;return e.padding===r?e:{...e,padding:r}},_oe=class P4{constructor(t,n={}){this.type="set-mapping",this.params=t,this.target={kind:"mapping",aesthetic:t.aesthetic},this.metadata=Se({...n,description:zoe(t)})}apply(t){const n="previous"in this.params?this.params.previous:Voe(t,this.params);if(n===null)return null;const r=Mt(t,n);return r===t?null:{spec:r,revert:new P4({aesthetic:this.params.aesthetic,previous:{mapping:t.mapping,scales:t.scales,layers:t.layers}},this.metadata)}}},Ioe={type:"set-mapping",deserialize:(e,t)=>new _oe(e,t)},Boe=(e,t)=>{const n=pe(e[t]);return n===null||n===""||j3(n)?null:n},$4=e=>e===""?null:e,zoe=e=>{if("previous"in e)return`Restore the previous ${e.aesthetic} mapping`;const t=$4(e.variable);return t===null?`Clear the ${e.aesthetic} mapping`:`Map ${e.aesthetic} to ${t}`},Voe=(e,{aesthetic:t,variable:n})=>{if(!hse(t))return null;const r=$4(n),a=$oe(e.mapping,t,r);return a===e.mapping?null:{mapping:a,scales:Hoe(e,t,a,r),layers:Poe(e.layers,a)}},Poe=(e,t)=>Jc(e,n=>{const r={...t,...n.mapping};if(r.label===void 0&&Hse(n.geom)===null)return n;const a=QN(ar,n.geom,n.position,r);return og(a,n.dataLabels.labelSource)?n:{...n,dataLabels:{...n.dataLabels,labelSource:a}}}),$oe=(e,t,n)=>n===null?Foe(e,t):Boe(e,t)===n?e:{...e,[t]:n},Foe=(e,t)=>{if(t==="x")return P1(e)===""?e:{...e,x:""};const n=e[t];if(n===void 0||pe(n)==="")return e;const r={};for(const[a,i]of Object.entries(e))a!==t&&(r[a]=i);return r},Hoe=(e,t,n,r)=>{if(!AN(t))return e.scales;let a=e.scales;for(const i of Uoe(e,t))a=Yoe(e,a,i,n,r);return a},Uoe=(e,t)=>t==="y"&&Goe(e.layers)?["y","ySecondary"]:[t],Goe=e=>{const t=e.find(n=>n.yScaleType==="secondary");return t!==void 0&&t.mapping.y===void 0},Yoe=(e,t,n,r,a)=>{const i=t.find(c=>c.scaledAesthetic===n);if(i===void 0)return a===null?t:[...t,Ix(e,n,r)];if(a===null&&!el(n)||a!==null&&!sS(e).hasVariable(a))return t;const o=Ix(e,n,r);return Woe(i,o)?t:Jc(t,c=>c.scaledAesthetic===n?o:c)},Woe=(e,t)=>e.scaleType===t.scaleType||QC(e)&&QC(t),QC=e=>e.scaleType==="discrete"||e.scaleType==="palette",qoe=class F4{constructor(t,n={}){this.type="set-appearance-text-scale",this.target={kind:"appearance"},this.params=t,this.metadata=Se({...n,description:`Set text scale to ${t.textScale}`})}apply(t){const n=t.config.appearance.textScale;return n===this.params.textScale?null:{spec:qt(t,{config:{appearance:{textScale:this.params.textScale}}}),revert:new F4({textScale:n},this.metadata)}}},Xoe={type:"set-appearance-text-scale",deserialize:(e,t)=>new qoe(e,t)},cS=e=>e==="both"?["x","y"]:[e],H4=e=>e==="both"?"the":`${e} axis`;function uS(e,t){return jg(e)?e[t]:e}function Koe(e,t){return e.config.axes[t]??{}}function Qoe(e,t,n){if(t!=="ySecondary")return qt(e,{config:{axes:{[t]:n}}});const r=e.config.axes.ySecondary,a=U4(r,n);if(a===r)return e;const i={...e.config.axes,ySecondary:a};return a===void 0&&delete i.ySecondary,Mt(e,{config:Mt(e.config,{axes:i})})}function jg(e){return Ro(e)&&"x"in e&&"y"in e}function U4(e,t){const n={};let r=!1;for(const a of new Set([...Object.keys(e??{}),...Object.keys(t)])){const i=e==null?void 0:e[a],o=a in t?Zoe(i,t[a]):i;o!==i&&(r=!0),o!==void 0&&(n[a]=o)}return r?Object.keys(n).length>0?n:void 0:e}function Zoe(e,t){return Ro(t)?U4(Ro(e)?e:void 0,t):t}var Joe=class G4{constructor(t,n={}){this.type="set-axis-label",this.params=t,this.metadata=Se({...n,description:`Set ${t.axis} axis label to ${tle(t.label)}`})}get target(){return{kind:"axis",axis:this.params.axis}}apply(t){const{axis:n,label:r}=this.params,a=Koe(t,n).label;if(a===r)return null;const i=Qoe(t,n,{label:r});return i===t?null:{spec:i,revert:new G4(n==="ySecondary"?{axis:n,label:a}:{axis:n,label:a??null},this.metadata)}}},ele={type:"set-axis-label",deserialize:(e,t)=>
71new Joe(e,t)};function tle(e){return e===void 0?"(inherited)":e??"(none)"}var nle=class Y4{constructor(t,n={}){this.type="set-axis-position",this.params=t,this.metadata=Se({...n,description:`Set ${t.axis} axis position to ${t.position}`})}get target(){return{kind:"axis",axis:this.params.axis}}apply(t){const{axis:n,position:r}=this.params,a=t.config.axes[n].position;return a===r?null:{spec:qt(t,{config:{axes:{[n]:{position:r}}}}),revert:new Y4({axis:n,position:a},this.metadata)}}},rle={type:"set-axis-position",deserialize:(e,t)=>new nle(e,t)},ale=class W4{constructor(t,n={}){this.type="set-axis-tick-mode",this.params=t,this.metadata=Se({...n,description:`Set ${t.axis} axis tick mode to ${t.tickMode}`})}get target(){return{kind:"axis",axis:this.params.axis}}apply(t){const{axis:n,tickMode:r}=this.params,a=t.config.axes[n].ticks.mode;return a===r?null:{spec:qt(t,{config:{axes:{[n]:{ticks:{mode:r}}}}}),revert:new W4({axis:n,tickMode:a},this.metadata)}}},ile={type:"set-axis-tick-mode",deserialize:(e,t)=>new ale(e,t)},sle=class q4{constructor(t,n={}){this.type="set-axis-ticks-visibility",this.params=t,this.metadata=Se({...n,description:`Set ${t.axis} axis ticks visibility to ${t.isVisible}`})}get target(){return{kind:"axis",axis:this.params.axis}}apply(t){const{axis:n,isVisible:r}=this.params,a=t.config.axes[n].ticks.isVisible;return a===r?null:{spec:qt(t,{config:{axes:{[n]:{ticks:{isVisible:r}}}}}),revert:new q4({axis:n,isVisible:a},this.metadata)}}},ole={type:"set-axis-ticks-visibility",deserialize:(e,t)=>new sle(e,t)},lle=class X4{constructor(t,n={}){this.type="set-axis-visibility",this.params=t,this.metadata=Se({...n,description:`Set ${t.axis} axis visibility to ${t.isVisible}`})}get target(){return{kind:"axis",axis:this.params.axis}}apply(t){const{axis:n,isVisible:r}=this.params,a=t.config.axes[n].isVisible;return a===r?null:{spec:qt(t,{config:{axes:{[n]:{isVisible:r}}}}),revert:new X4({axis:n,isVisible:a},this.metadata)}}},cle={type:"set-axis-visibility",deserialize:(e,t)=>new lle(e,t)},ule=class K4{constructor(t,n={}){this.type="set-content-caption",this.target={kind:"content",part:"caption"},this.params=t,this.metadata=Se({...n,description:"Set chart caption"})}apply(t){const n=t.config.content.caption;return n===this.params.caption?null:{spec:qt(t,{config:{content:{caption:this.params.caption}}}),revert:new K4({caption:n},this.metadata)}}},dle={type:"set-content-caption",deserialize:(e,t)=>new ule(e,t)},fle=class Q4{constructor(t,n={}){var r,a;this.type="set-content-source",this.target={kind:"content",part:"source"},this.params=t,this.metadata=Se({...n,description:`Set content source to ${((r=t.source)==null?void 0:r.label)??((a=t.source)==null?void 0:a.url)??"(none)"}`})}apply(t){const n=t.config.content.source;if($c(n,this.params.source))return null;const r=Mt(t.config.content,{source:this.params.source});return{spec:Mt(t,{config:Mt(t.config,{content:r})}),revert:new Q4({source:n},this.metadata)}}},hle={type:"set-content-source",deserialize:(e,t)=>new fle(e,t)},mle=class Z4{constructor(t,n={}){this.type="set-content-subtitle",this.target={kind:"content",part:"subtitle"},this.params=t,this.metadata=Se({...n,description:"Set chart subtitle"})}apply(t){const n=t.config.content.subtitle;return n===this.params.subtitle?null:{spec:qt(t,{config:{content:{subtitle:this.params.subtitle}}}),revert:new Z4({subtitle:n},this.metadata)}}},ple={type:"set-content-subtitle",deserialize:(e,t)=>new mle(e,t)},gle=class J4{constructor(t,n={}){this.type="set-content-title",this.target={kind:"content",part:"title"},this.params=t,this.metadata=Se({...n,description:"Set chart title"})}apply(t){const n=t.config.content.title;return n===this.params.title?null:{spec:qt(t,{config:{content:{title:this.params.title}}}),revert:new J4({title:n},this.metadata)}}},yle={type:"set-content-title",deserialize:(e,t)=>new gle(e,t)},il=class Qm{constructor(t,n={}){this.type="set-style-rule",this.params=t,this.metadata=Se({...n,description:t.rule.declarations===null?"Remove style rule":"Set style rule"})}get target(){const{list:t,rule:n}=this.params;return{kind:"styleRule",list:t,select:n.select,...n.when===void 0?{}:{when:n.when}}}apply(t){const{list:n,rule:r,index:a}=this.params,i=t.styles[n],o=f4(i,r),c=o===-1?void 0:i[o],{declarations:u}=r;if(u===null){if(c===void 0)return null;const x=new Qm({list:n,rule:c,index:o},this.metadata),S=i.filter(A=>!iS(A,r));return{spec:uv(t,n,S),revert:x}}if(c!==void 0){if(Mse(c.declarations,u))return null;const x={...c,declarations:u},S=new Qm({list:n,rule:c,index:o},this.metadata),A=i.map(M=>M===c?x:M);return{spec:uv(t,n,A),revert:S}}const f=a??i.length,m=Math.min(Math.max(f,0),i.length),p={...r,declarations:u},g=[...i.slice(0,m),p,...i.slice(m)],y=new Qm({list:n,rule:{...r,declarations:null}},this.metadata);return{spec:uv(t,n,g),revert:y}}},ble=e=>{const{rule:t}=e;if(t==null)throw new tr({code:"INVALID_STYLE_RULE",message:"Command 'set-style-rule' is missing its 'rule'.",suggestion:"Send the entry's 'select' (and 'when') with 'declarations: null' to remove it."})},vle={type:"set-style-rule",deserialize:(e,t)=>
71(ble(e),new il(e,t))},uv=(e,t,n)=>Mt(e,{styles:{...e.styles,[t]:n}}),xle="dashed",wle=1,e6=(e,t,n,r)=>{const a=Sle(t,n),i=Mle(e,a,r);let o=e,c=!1;for(const u of a){const f=kle(o,u,r,Tle(r,Ale(n,u)));f!==null&&(o=f,c=!0)}return c?{spec:o,previous:i}:null},Sle=(e,t)=>e==="both"&&!jg(t)?[void 0]:cS(e),Ale=(e,t)=>t===void 0?jg(e)?e.x:e:uS(e,t),Mle=(e,t,n)=>t.length===1?dv(e,t[0],n):{x:dv(e,"x",n),y:dv(e,"y",n)},dv=(e,t,n)=>{var r;return((r=t6(e.styles.overrides,t))==null?void 0:r[n])??null},Tle=(e,t)=>t===null||e==="lineType"&&t===xle||e==="strokeWidth"&&t===wle?null:t,kle=(e,t,n,r)=>{var i;const a=t6(e.styles.overrides,t);return((a==null?void 0:a[n])??null)===r?null:((i=new il({list:"overrides",rule:Rle(t,Cle(a,n,r))}).apply(e))==null?void 0:i.spec)??null},Ele=e=>e.select.target==="gridLine",t6=(e,t)=>{const n=aS(e,{select:t===void 0?{target:"gridLine"}:{target:"gridLine",axis:t}});if(!(n===void 0||!Ele(n)))return n.declarations},Cle=(e,t,n)=>{const{[t]:r,...a}=e??{};return n!==null?{...a,[t]:n}:Object.keys(a).length===0?null:a},Rle=(e,t)=>t===null?e===void 0?{select:{target:"gridLine"},declarations:null}:{select:{target:"gridLine",axis:e},declarations:null}:e===void 0?ge.gridLine(t):e==="x"?ge.gridLine.x(t):ge.gridLine.y(t),Lle=class n6{constructor(t,n={}){this.type="set-grid-line-style",this.params=t,this.metadata=Se({...n,description:`Set ${H4(t.axis)} grid line style to ${Nle(t)}`})}get target(){return{kind:"grid",axis:this.params.axis}}apply(t){const{axis:n,lineStyle:r}=this.params,a=e6(t,n,r,"lineType");return a===null?null:{spec:a.spec,revert:new n6({axis:n,lineStyle:a.previous},this.metadata)}}},Dle={type:"set-grid-line-style",deserialize:(e,t)=>new Lle(e,t)},Nle=({axis:e,lineStyle:t})=>{const n=cS(e).map(r=>uS(t,r)??"(theme)");return[...new Set(n)].join(" and ")},jle={type:"set-grid-line-width",deserialize:(e,t)=>new Ole(e,t)},Ole=class r6{constructor(t,n={}){this.type="set-grid-line-width";const r=_le(t.lineWidth);this.params={...t,lineWidth:r},this.metadata=Se({...n,description:`Set ${H4(t.axis)} grid line width to ${Ile(t.axis,r)}`})}get target(){return{kind:"grid",axis:this.params.axis}}apply(t){const{axis:n,lineWidth:r}=this.params,a=e6(t,n,r,"strokeWidth");return a===null?null:{spec:a.spec,revert:new r6({axis:n,lineWidth:a.previous},this.metadata)}}},_le=e=>jg(e)?{x:fv(e.x),y:fv(e.y)}:fv(e),fv=e=>e===null||!Number.isFinite(e)?null:Math.max(0,e),Ile=(e,t)=>{const n=cS(e).map(r=>uS(t,r)??"(theme)");return[...new Set(n)].join(" and ")},Ble=class a6{constructor(t,n={}){this.type="set-grid-visibility",this.params=t,this.metadata=Se({...n,description:`Set ${t.axis} axis grid visibility to ${t.isVisible??"(auto)"}`})}get target(){return{kind:"grid",axis:this.params.axis}}apply(t){const{axis:n,isVisible:r}=this.params,a=t.config.axes[n].grid.isVisible;return a===r?null:{spec:qt(t,{config:{axes:{[n]:{grid:{isVisible:r}}}}}),revert:new a6({axis:n,isVisible:a},this.metadata)}}},zle={type:"set-grid-visibility",deserialize:(e,t)=>new Ble(e,t)},Vle=class i6{constructor(t,n={}){this.type="set-headline-compare-with",this.target={kind:"headline"},this.params=t,this.metadata=Se({...n,description:`Set headline compare with to ${t.compareWith}`})}apply(t){const n=t.config.headline.compareWith;return n===this.params.compareWith?null:{spec:qt(t,{config:{headline:{compareWith:this.params.compareWith}}}),revert:new i6({compareWith:n},this.metadata)}}},Ple={type:"set-headline-compare-with",deserialize:(e,t)=>new Vle(e,t)},$le=class s6{constructor(t,n={}){this.type="set-headline-position",this.target={kind:"headline"},this.params=t,this.metadata=Se({...n,description:`Set headline position to ${t.position}`})}apply(t){const n=t.config.headline.position;return n===this.params.position?null:{spec:qt(t,{config:{headline:{position:this.params.position}}}),revert:new s6({position:n},this.metadata)}}},Fle={type:"set-headline-position",deserialize:(e,t)=>new $le(e,t)},Hle=class o6{constructor(t,n={}){this.type="set-headline-show",this.target={kind:"headline"},this.params=t,this.metadata=Se({...n,description:`Set headline show to ${t.show}`})}apply(t){const n=t.config.headline.show;return n===this.params.show?null:{spec:qt(t,{config:{headline:{show:this.params.show}}}),revert:new o6({show:n},this.metadata)}}},Ule={type:"set-headline-show",deserialize:(e,t)=>
71new Hle(e,t)},Gle=class l6{constructor(t,n={}){this.type="set-headline-size",this.target={kind:"headline"},this.params=t,this.metadata=Se({...n,description:`Set headline size to ${t.size}`})}apply(t){const n=t.config.headline.size;return n===this.params.size?null:{spec:qt(t,{config:{headline:{size:this.params.size}}}),revert:new l6({size:n},this.metadata)}}},Yle={type:"set-headline-size",deserialize:(e,t)=>new Gle(e,t)},Wle={type:"set-highlight-dim-style",deserialize:(e,t)=>new qle(e,t)},qle=class{constructor(e,t={}){this.type="set-highlight-dim-style",this.params=e,this.metadata=Se({...t,description:`Set highlight style to ${e.dimStyle}`})}get target(){return{kind:"appearance"}}apply(e){return Kle(e)===this.params.dimStyle?null:new il({list:"overrides",rule:Qle(this.params.dimStyle)},this.metadata).apply(e)||null}},Xle={select:{target:"geom"},when:{state:"dimmed"}},Kle=e=>{var n;const t=aS(e.styles.overrides,Xle);return((n=t!==void 0&&h4(t)?t.declarations:void 0)==null?void 0:n.saturation)===0?"desaturate":"dim"},Qle=e=>e==="desaturate"?ge.geom({saturation:0,alpha:.6},{state:"dimmed"}):ge.geom({alpha:mD},{state:"dimmed"}),Zle=class c6{constructor(t,n={}){this.type="set-legend-align",this.target={kind:"legend"},this.params=t,this.metadata=Se({...n,description:`Set legend align to ${t.align}`})}apply(t){const n=t.config.legend.align;return n===this.params.align?null:{spec:qt(t,{config:{legend:{align:this.params.align}}}),revert:new c6({align:n},this.metadata)}}},Jle={type:"set-legend-align",deserialize:(e,t)=>new Zle(e,t)},ece=class u6{constructor(t,n={}){this.type="set-legend-display",this.target={kind:"legend"},this.params=t,this.metadata=Se({...n,description:`Set legend display to ${t.display}`})}apply(t){const n=t.config.legend.display;return n===this.params.display?null:{spec:qt(t,{config:{legend:{display:this.params.display}}}),revert:new u6({display:n},this.metadata)}}},tce={type:"set-legend-display",deserialize:(e,t)=>new ece(e,t)},nce=class d6{constructor(t,n={}){this.type="set-legend-position",this.target={kind:"legend"},this.params=t,this.metadata=Se({...n,description:`Set legend position to ${t.position}`})}apply(t){const n=t.config.legend.position;return n===this.params.position?null:{spec:qt(t,{config:{legend:{position:this.params.position}}}),revert:new d6({position:n},this.metadata)}}},rce={type:"set-legend-position",deserialize:(e,t)=>new nce(e,t)},ace=class f6{constructor(t,n={}){this.type="set-number-format-abbreviation",this.target={kind:"numberFormat"},this.params=t,this.metadata=Se({...n,description:`Set number format abbreviation to ${t.abbreviation}`})}apply(t){const n=t.config.numberFormat.abbreviation;return n===this.params.abbreviation?null:{spec:qt(t,{config:{numberFormat:{abbreviation:this.params.abbreviation}}}),revert:new f6({abbreviation:n},this.metadata)}}},ice={type:"set-number-format-abbreviation",deserialize:(e,t)=>new ace(e,t)},sce=class h6{constructor(t,n={}){this.type="set-number-format-decimals",this.target={kind:"numberFormat"},this.params=t,this.metadata=Se({...n,description:`Set number format decimals to ${t.decimals}`})}apply(t){const n=t.config.numberFormat.decimals;return n===this.params.decimals?null:{spec:qt(t,{config:{numberFormat:{decimals:this.params.decimals}}}),revert:new h6({decimals:n},this.metadata)}}},oce={type:"set-number-format-decimals",deserialize:(e,t)=>new sce(e,t)},lce=class m6{constructor(t,n={}){this.type="toggle-content-visibility",this.params=t,this.metadata=Se({...n,description:`Set ${t.slot} visibility to ${t.isVisible}`})}get target(){return{kind:"content",part:this.params.slot}}apply(t){const{slot:n,isVisible:r}=this.params,a=uce(n);if(!a)return null;const i=t.config.content[a];return i===r?null:{spec:qt(t,{config:{content:{[a]:r}}}),revert:new m6({slot:n,isVisible:i},this.metadata)}}},cce={type:"toggle-content-visibility",deserialize:(e,t)=>new lce(e,t)},ZC={title:"isTitleVisible",subtitle:"isSubtitleVisible",caption:"isCaptionVisible",source:"isSourceVisible"};function uce(e){return Object.hasOwn(ZC,e)?ZC[e]:void 0}var dce=class p6{constructor(t,n={}){this.type="set-coord-limits",this.target={kind:"coords"},this.params=t,this.metadata=Se({...n,description:"Set coordinate limits"})}apply(t){const{xLimits:n,yLimits:r}=this.params,a=t.coords.params,i={xLimits:n!==void 0?n:a.xLimits,yLimits:r!==void 0?r:a.yLimits};if($c(i.xLimits,a.xLimits)&&$c(i.yLimits,a.yLimits))return null;const o={};n!==void 0&&(o.xLimits=a.xLimits),r!==void 0&&(o.yLimits=a.yLimits);const c=new p6(o,this.metadata);return{spec:Mt(t,{coords:hce(t.coords,i)}),revert:c}}},fce={type:"set-coord-limits",deserialize:(e,t)=>
71new dce(e,t)};function hce(e,t){switch(e.coordType){case"cartesian":return{...e,params:{...e.params,...t}};case"flip":return{...e,params:{...e.params,...t}};case"polar":return{...e,params:{...e.params,...t}}}}var mce=class g6{constructor(t,n={}){this.type="set-polar-inner-radius",this.target={kind:"coords"},this.params={innerRadius:pf(t.innerRadius,0,1)},this.metadata=Se({...n,description:`Set polar inner radius to ${this.params.innerRadius}`})}apply(t){const n=t.coords;if(n.coordType!=="polar")return null;const r=n.params.innerRadius;return r===this.params.innerRadius?null:{spec:Mt(t,{coords:{...n,params:{...n.params,innerRadius:this.params.innerRadius}}}),revert:new g6({innerRadius:r},this.metadata)}}},pce={type:"set-polar-inner-radius",deserialize:(e,t)=>new mce(e,t)},gce={type:"set-polar-start-angle",deserialize:(e,t)=>new yce(e,t)},yce=class y6{constructor(t,n={}){this.type="set-polar-start-angle",this.target={kind:"coords"},this.params={startAngle:JC(t.startAngle)},this.metadata=Se({...n,description:`Set polar start angle to ${this.params.startAngle}`})}apply(t){const n=t.coords;if(n.coordType!=="polar")return null;const r=n.params.startAngle;return JC(r)===this.params.startAngle?null:{spec:Mt(t,{coords:{...n,params:{...n.params,startAngle:this.params.startAngle}}}),revert:new y6({startAngle:r},this.metadata)}}},hv=360,JC=e=>(e%hv+hv)%hv,b6=class{constructor(t,n={}){this.type="remove-highlight",this.params=t,this.metadata=Se({...n,description:"Remove highlight"})}get target(){return{kind:"highlight",id:this.params.id}}apply(t){const n=t.highlights.find(o=>o.id===this.params.id);if(!n)return null;const r=t.highlights.indexOf(n),a=t.highlights.filter(o=>o!==n),i=new v6({predicate:n.predicate,id:n.id,scope:n.scope,layerId:n.layerId,index:r},this.metadata);return{spec:Mt(t,{highlights:a}),revert:i}}},bce={type:"remove-highlight",deserialize:(e,t)=>new b6(e,t)},v6=class{constructor(t,n={}){this.type="add-highlight",this.params={...t,id:t.id??Fn(),scope:t.scope??"data-point"},this.metadata=Se({...n,description:"Add highlight"})}get target(){return{kind:"highlight",id:this.params.id}}apply(t){const{predicate:n,id:r,scope:a,layerId:i,index:o}=this.params;if(t.highlights.some(p=>p.id===r))return null;const c=new b6({id:r},this.metadata),u={type:"highlight",id:r,predicate:n,scope:a,...i!==void 0&&{layerId:i}},f=o??t.highlights.length,m=Math.min(Math.max(f,0),t.highlights.length);return{spec:Mt(t,{highlights:[...t.highlights.slice(0,m),u,...t.highlights.slice(m)]}),revert:c}}},vce={type:"add-highlight",deserialize:(e,t)=>new v6(e,t)};function dS(e,t){return{...e,params:{...e.params,...t}}}function Og(e,t){return{...e,dataLabels:{...e.dataLabels,...t}}}function fS(e,t){return Mt(e,{layers:[...e.layers,t]})}function kr(e,t,n){const r=e.layers.findIndex(a=>a.id===t);return r===-1?e:Mt(e,{layers:oN(e.layers,r,n)})}function _g(e,t){const n=e.layers.findIndex(r=>
71r.id===t);return n===-1||e.layers.length<=1?e:Mt(e,{layers:e.layers.filter((r,a)=>a!==n)})}var x6=class{constructor(t,n={}){this.type="remove-layer",this.params=t,this.metadata=Se({...n,description:"Remove layer"})}get target(){return{kind:"layer",layerId:this.params.layerId}}apply(t){const n=t.layers.findIndex(i=>i.id===this.params.layerId),r=t.layers[n];if(r===void 0)return null;const a=_g(t,this.params.layerId);return a===t?null:{spec:a,revert:new w6({layer:r,index:n},this.metadata)}}},xce={type:"remove-layer",deserialize:(e,t)=>new x6(e,t)},w6=class{constructor(t,n={}){this.type="add-layer",this.params={layer:{...t.layer,id:t.layer.id??Fn()},...t.index!==void 0&&{index:t.index}},this.metadata=Se({...n,description:`Add ${this.params.layer.geom} layer`})}get target(){return{kind:"layer",layerId:this.params.layer.id}}apply(t){const{layer:n,index:r}=this.params;if(t.layers.some(o=>o.id===n.id))return null;const a=r??t.layers.length,i=Math.min(Math.max(a,0),t.layers.length);return{spec:Mt(t,{layers:[...t.layers.slice(0,i),n,...t.layers.slice(i)]}),revert:new x6({layerId:n.id},this.metadata)}}},wce={type:"add-layer",deserialize:(e,t)=>new w6(e,t)},Sce=class S6{constructor(t,n={}){this.type="set-bar-border-radius",this.params=t,this.metadata=Se({...n,description:`Set bar border radius to ${t.borderRadius??"(themed)"}`})}get target(){return{kind:"layer",layerId:this.params.layerId}}apply(t){const{layerId:n,borderRadius:r}=this.params;if(!Ga(An(t.layers,n),"bar"))return null;const a=Tc("bar",n),i=Dg(t.styles.overrides,a),o=(i==null?void 0:i.borderRadius)??null;if(o===r)return null;const c=new il({list:"overrides",rule:{...a,declarations:Mce(i,r)}}).apply(t);if(!c)return null;const u=new S6({layerId:n,borderRadius:o},this.metadata);return{spec:c.spec,revert:u}}},Ace={type:"set-bar-border-radius",deserialize:(e,t)=>new Sce(e,t)},Mce=(e,t)=>{const{borderRadius:n,...r}=e??{};return t!==null?{...r,borderRadius:t}:Object.keys(r).length===0?null:r},Tce={type:"set-bar-width",deserialize:(e,t)=>new Ece(e,t)},kce=.05,Ece=class A6{constructor(t,n={}){this.type="set-bar-width";const r=t.width===void 0?void 0:pf(t.width,kce,1);this.params={...t,width:r},this.metadata=Se({...n,description:r===void 0?"Reset bar width":`Set bar width to ${r}`})}get target(){return{kind:"layer",layerId:this.params.layerId}}apply(t){if(this.params.width!==void 0&&!Number.isFinite(this.params.width))return null;const n=this.params.layerId?An(t.layers,this.params.layerId):nl(t.layers,"bar");if(!Ga(n,"bar"))return null;const r=n.params.width;return r===this.params.width?null:{spec:kr(t,n.id,dS(n,{width:this.params.width})),revert:new A6({layerId:n.id,width:r},this.metadata)}}},Cce=class M6{constructor(t,n={}){this.type="set-data-labels-format",this.params=t,this.metadata=Se({...n,description:`Set data labels format to ${t.format}`})}get target(){return{kind:"layer",layerId:this.params.layerId}}apply(t){const n=this.params.layerId?An(t.layers,this.params.layerId):t.layers[0];if(!n)return null;const r=n.dataLabels.format;return r===this.params.format?null:{spec:kr(t,n.id,Og(n,{format:this.params.format})),revert:new M6({layerId:n.id,format:r},this.metadata)}}},Rce={type:"set-data-labels-format",deserialize:(e,t)=>new Cce(e,t)},Lce=class T6{constructor(t,n={}){this.type="set-layer-position",this.params=t,this.metadata=Se({...n,description:`Set layer position to ${t.position}`})}get target(){return{kind:"layer",layerId:this.params.layerId}}apply(t){const n=this.params.layerId?An(t.layers,this.params.layerId):nl(t.layers,"bar","area");if(!n)return null;const r=n.position;return r===this.params.position?null:{spec:kr(t,n.id,{...n,position:this.params.position}),revert:new T6({layerId:n.id,position:r},this.metadata)}}},Dce={type:"set-layer-position",deserialize:(e,t)=>new Lce(e,t)},Nce=class k6{constructor(t,n={}){this.type="set-layer-stat";const r=KN(t.stat,"identity");this.params={...t.layerId!==void 0&&{layerId:t.layerId},stat:r},this.metadata=Se({...n,description:`Set layer stat to ${r.type}`})}get target(){return{kind:"layer",layerId:this.params.layerId}}apply(t){const n=this.params.layerId?An(t.layers,this.params.layerId):t.layers[0];if(!n)return null;const r=n.stat;return Oce(r,this.params.stat)?null:{spec:kr(t,n.id,{...n,stat:this.params.stat}),revert:new k6({layerId:n.id,stat:r},this.metadata)}}},jce={type:"set-layer-stat",deserialize:(e,t)=>
71new Nce(e,t)},Oce=(e,t)=>{if(e.type!==t.type)return!1;const n=e,r=t,a=new Set([...Object.keys(n),...Object.keys(r)]);for(const i of a)if(!Object.is(n[i],r[i]))return!1;return!0},_ce=class E6{constructor(t,n={}){this.type="set-layer-y-scale-type",this.params=t,this.metadata=Se({...n,description:`Set layer to ${t.yScaleType} y axis`})}get target(){return{kind:"layer",layerId:this.params.layerId}}apply(t){const n=this.params.layerId?An(t.layers,this.params.layerId):t.layers[0];if(!n)return null;const r=n.yScaleType;if(r===this.params.yScaleType)return null;const a=kr(t,n.id,{...n,yScaleType:this.params.yScaleType});return{spec:Mt(a,{scales:oS(a.scales,a.layers)}),revert:new E6({layerId:n.id,yScaleType:r},this.metadata)}}},Ice={type:"set-layer-y-scale-type",deserialize:(e,t)=>new _ce(e,t)},Bce=class C6{constructor(t,n={}){this.type="set-line-interpolation",this.params=t,this.metadata=Se({...n,description:`Set line interpolation to ${t.interpolate}`})}get target(){return{kind:"layer",layerId:this.params.layerId}}apply(t){const n=this.params.layerId?An(t.layers,this.params.layerId):nl(t.layers,"line","area");if(!Ga(n,"line","area"))return null;const r=n.params.interpolate;return r===this.params.interpolate?null:{spec:kr(t,n.id,dS(n,{interpolate:this.params.interpolate})),revert:new C6({layerId:n.id,interpolate:r},this.metadata)}}},zce={type:"set-line-interpolation",deserialize:(e,t)=>new Bce(e,t)},Vce=class R6{constructor(t,n={}){this.type="set-line-missing-values",this.params=t,this.metadata=Se({...n,description:`Set missing values handling to ${t.missingValues}`})}get target(){return{kind:"layer",layerId:this.params.layerId}}apply(t){const n=this.params.layerId?An(t.layers,this.params.layerId):nl(t.layers,"line","area");if(!Ga(n,"line","area"))return null;const r=n.params.missingValues;return r===this.params.missingValues?null:{spec:kr(t,n.id,dS(n,{missingValues:this.params.missingValues})),revert:new R6({layerId:n.id,missingValues:r},this.metadata)}}},Pce={type:"set-line-missing-values",deserialize:(e,t)=>new Vce(e,t)},$ce=class L6{constructor(t,n={}){this.type="set-line-width",this.params=t,this.metadata=Se({...n,description:`Set line width to ${t.lineWidth??"(themed)"}`})}get target(){return{kind:"layer",layerId:this.params.layerId}}apply(t){const{layerId:n,lineWidth:r}=this.params,a=An(t.layers,n);if(!Ga(a,"line","area"))return null;const i=Dg(t.styles.overrides,Tc(a.geom,n)),o=(i==null?void 0:i.strokeWidth)??null;if(o===r)return null;const c=Hce(i,r),u=new il({list:"overrides",rule:a.geom==="area"?{...Tc("area",n),declarations:c}:{...Tc("line",n),declarations:c}}).apply(t);return u?{spec:u.spec,revert:new L6({layerId:n,lineWidth:o},this.metadata)}:null}},Fce={type:"set-line-width",deserialize:(e,t)=>new $ce(e,t)},Hce=(e,t)=>{const{strokeWidth:n,...r}=e??{};return t!==null?{...r,strokeWidth:t}:Object.keys(r).length===0?null:r},Uce=class D6{constructor(t,n={}){this.type="set-point-size",this.params=t,this.metadata=Se({...n,description:`Set point size to ${t.size??"(themed)"}`})}get target(){return{kind:"layer",layerId:this.params.layerId}}apply(t){const{layerId:n,size:r}=this.params;if(!Ga(An(t.layers,n),"point"))return null;const a=Tc("point",n),i=Dg(t.styles.overrides,a),o=(i==null?void 0:i.size)??null;if(o===r)return null;const c=new il({list:"overrides",rule:{...a,declarations:Yce(i,r)}}).apply(t);return c?{spec:c.spec,revert:new D6({layerId:n,size:o},this.metadata)}:null}},Gce={type:"set-point-size",deserialize:(e,t)=>new Uce(e,t)},Yce=(e,t)=>{const{size:n,...r}=e??{};return t!==null?{...r,size:t}:Object.keys(r).length===0?null:r},Wce=class N6{constructor(t,n={}){this.type="set-rule-label",this.params=t,this.metadata=Se({...n,description:"Set reference line label"})}get target(){return{kind:"layer",layerId:this.params.layerId}}apply(t){const n=this.params.layerId?An(t.layers,this.params.layerId):nl(t.layers,"rule");if(!Ga(n,"rule"))return null;const r=n.params.label,a=this.params.label??void 0;if(r===a)return null;const i=a===void 0?Object.fromEntries(Object.entries(n.params).filter(([o])=>o!=="label")):{...n.params,label:a};return{spec:kr(t,n.id,{...n,params:i}),revert:new N6({layerId:n.id,label:r??null},this.metadata)}}},qce={type:"set-rule-label",deserialize:(e,t)=>
71new Wce(e,t)},Xce=class j6{constructor(t,n={}){this.type="set-rule-value",this.params=t,this.metadata=Se({...n,description:`Set reference line to ${t.value}`})}get target(){return{kind:"layer",layerId:this.params.layerId}}apply(t){const n=this.params.layerId?An(t.layers,this.params.layerId):nl(t.layers,"rule");if(!Ga(n,"rule"))return null;const r=typeof Sr(n.mapping.y)=="number"?"y":"x",a=Sr(n.mapping[r]);if(typeof a!="number"||a===this.params.value)return null;const i={...n.mapping,[r]:{value:this.params.value}};return{spec:kr(t,n.id,{...n,mapping:i}),revert:new j6({layerId:n.id,value:a},this.metadata)}}},Kce={type:"set-rule-value",deserialize:(e,t)=>new Xce(e,t)},Qce={type:"set-stat-line",deserialize:(e,t)=>new Zce(e,t)},Zce=class O6{constructor(t,n={}){this.type="set-stat-line",this.params=t,this.metadata=Se({...n,description:iue(t.line)})}get target(){var t;return{kind:"layer",layerId:((t=this.params.removedLayer)==null?void 0:t.id)??this.params.layerId}}apply(t){const n=eue(t),r=this.buildStatLine(t,(n==null?void 0:n.line)===this.params.line?n.layer.id:void 0);if(this.params.line!=="none"&&r===null||n===void 0&&r===null||n!==void 0&&r!==null&&aue(n.layer,r))return null;const a=new O6({line:(n==null?void 0:n.line)??"none",...n!==void 0&&{removedLayer:n.layer},...n===void 0&&r!==null&&{layerId:r.id}},this.metadata);if(n!==void 0&&r!==null&&n.line===this.params.line)return{spec:kr(t,n.layer.id,r),revert:a};const i=n===void 0?t:_g(t,n.layer.id);return r===null&&i===t?null:{spec:r===null?i:fS(i,r),revert:a}}buildStatLine(t,n){if(this.params.line==="none")return null;if(this.params.removedLayer!==void 0)return this.params.removedLayer;const r=this.params.line==="trend"?tue(this.params):nue(t,this.params);if(r===null)return null;const a=rl(ar,t.mapping,t.coords.coordType,r);return n===void 0?a:{...a,id:n}}},Jce="linear",eue=e=>{const t=yse(e.layers);if(t!==void 0)return{line:"trend",layer:t};const n=bse(e.layers);if(n!==void 0)return{line:"average",layer:n}},tue=({method:e})=>rn.line({aes:{lineType:{value:"dashed"}},stat:ug.smooth({method:e??Jce}),interactive:!1}),nue=(e,{group:t,label:n})=>{const r=rue(e),a=pe((r==null?void 0:r.mapping.y)??e.mapping.y);if(a===null)return null;const i=pe((r==null?void 0:r.mapping.color)??e.mapping.color),o=i!==null&&t!==void 0;return rn.rule({aes:{y:a,color:void 0,group:void 0,lineType:void 0},stat:ug.mean(),transforms:o?[bf.filter({variableName:i,operator:"eq",value:t})]:[],params:{labelPosition:e.coords.coordType==="flip"?"end":"start",...n!==void 0&&{label:n}},yScaleType:r==null?void 0:r.yScaleType,interactive:!1})},rue=e=>e.layers.find(t=>t.geom!=="rule"&&t.stat.type!=="smooth"),aue=(e,t)=>og({...e,id:""},{...t,id:""}),iue=e=>e==="none"?"Hide stat line":`Show ${e} line`,sue=class _6{constructor(t,n={}){this.type="toggle-category-labels",this.params=t,this.metadata=Se({...n,description:`${t.showCategoryLabels?"Show":"Hide"} category labels`})}get target(){return{kind:"layer",layerId:this.params.layerId}}apply(t){const n=this.params.layerId?An(t.layers,this.params.layerId):t.layers[0];if(!n)return null;const r=n.dataLabels.showCategoryLabels;return r===this.params.showCategoryLabels?null:{spec:kr(t,n.id,Og(n,{showCategoryLabels:this.params.showCategoryLabels})),revert:new _6({layerId:n.id,showCategoryLabels:r},this.metadata)}}},oue={type:"toggle-category-labels",deserialize:(e,t)=>new sue(e,t)},lue=class I6{constructor(t,n={}){this.type="toggle-data-labels",this.params=t,this.metadata=Se({...n,description:`${t.showDataLabels?"Show":"Hide"} data labels`})}get target(){return{kind:"layer",layerId:this.params.layerId}}apply(t){const n=this.params.layerId?An(t.layers,this.params.layerId):t.layers[0];if(!n)return null;const r=n.dataLabels.showDataLabels;return r===this.params.showDataLabels?null:{spec:kr(t,n.id,Og(n,{showDataLabels:this.params.showDataLabels})),revert:new I6({layerId:n.id,showDataLabels:r},this.metadata)}}},cue={type:"toggle-data-labels",deserialize:(e,t)=>new lue(e,t)},uue={type:"toggle-goal-line",deserialize:(e,t)=>new due(e,t)},due=class Bx{constructor(t,n={}){this.type="toggle-goal-line",this.params=t,this.metadata=Se({...n,description:`${t.showGoalLine?"Show":"Hide"} goal line`})}get target(){var t;return{kind:"layer",layerId:((t=this.params.removedLayer)==null?void 0:t.id)??this.params.layerId}}apply(t){const n=gse(t.layers);if(!this.params.showGoalLine){if(n===void 0)return null;const a=_g(t,n.id);return a===t?null:{spec:a,revert:new Bx({showGoalLine:!0,removedLayer:n},this.metadata)}}if(n!==void 0)return null;const r=this.params.removedLayer??this.buildGoalLine(t);return{spec:fS(t,r),revert:new Bx({showGoalLine:!1,layerId:r.id},this.metadata)}}buildGoalLine(t){const n=t.coords.coordType==="flip"?"end":"start";return rl(ar,t.mapping,t.coords.coordType,rn.rule({aes:{y:{value:this.params.value??fue}},params:{labelPosition:n,...this.params.label!==void 0&&{label:this.params.label}},interactive:!1}))}},fue=0,hue={type:"toggle-line-fill",deserialize:(e,t)=>
71new mue(e,t)},mue=class B6{constructor(t,n={}){this.type="toggle-line-fill",this.params=t,this.metadata=Se({...n,description:`Set line fill to ${t.showFill}`})}get target(){return{kind:"layer",layerId:this.params.layerId}}apply(t){const{layerId:n,showFill:r,fillAlpha:a}=this.params;if(!Ga(An(t.layers,n),"line"))return null;const i=Tc("line",n),o=Dg(t.styles.overrides,i),c=o==null?void 0:o.fillAlpha,u=c!==void 0;if(u===r)return null;const f=new il({list:"overrides",rule:{...i,declarations:gue(o,r?a??pue:null)}}).apply(t);if(!f)return null;const m=new B6({layerId:n,showFill:u,...c===void 0?{}:{fillAlpha:c}},this.metadata);return{spec:f.spec,revert:m}}},pue=.2,gue=(e,t)=>{const{fillAlpha:n,...r}=e??{};return t!==null?{...r,fillAlpha:t}:Object.keys(r).length===0?null:r},yue={type:"toggle-line-points",deserialize:(e,t)=>new bue(e,t)},bue=class zx{constructor(t,n={}){this.type="toggle-line-points",this.params=t,this.metadata=Se({...n,description:`${t.showPoints?"Show":"Hide"} points`})}get target(){return{kind:"layer",layerId:this.params.layerId}}apply(t){const n=this.params.layerId?An(t.layers,this.params.layerId):nl(t.layers,"line","area");return Ga(n,"line","area")?this.params.showPoints?this.addPointLayer(t,n):this.removePointLayer(t,n):null}addPointLayer(t,n){return this.findAssociatedPointLayer(t,n)?null:{spec:fS(t,this.params.removedLayer??rl(ar,t.mapping,t.coords.coordType,rn.point({aes:{...n.mapping},position:n.position,yScaleType:n.yScaleType,transforms:[...n.transforms],interactive:!1}))),revert:new zx({layerId:n.id,showPoints:!1},this.metadata)}}removePointLayer(t,n){const r=this.findAssociatedPointLayer(t,n);return r?{spec:_g(t,r.id),revert:new zx({layerId:n.id,showPoints:!0,removedLayer:r},this.metadata)}:null}findAssociatedPointLayer(t,n){return t.layers.find(r=>r.geom!=="point"?!1:NN(r,[n]))}},vue=class z6{constructor(t,n={}){this.type="toggle-stack-totals",this.params=t,this.metadata=Se({...n,description:`${t.showStackTotals?"Show":"Hide"} stack totals`})}get target(){return{kind:"layer",layerId:this.params.layerId}}apply(t){const n=this.params.layerId?An(t.layers,this.params.layerId):t.layers[0];if(!n)return null;const r=n.dataLabels.showStackTotals;return r===this.params.showStackTotals?null:{spec:kr(t,n.id,Og(n,{showStackTotals:this.params.showStackTotals})),revert:new z6({layerId:n.id,showStackTotals:r},this.metadata)}}},xue={type:"toggle-stack-totals",deserialize:(e,t)=>new vue(e,t)},wue=class V6{constructor(t,n={}){this.type="set-scale-domain",this.params=t,this.metadata=Se({...n,description:`Set ${Bf(t.scaledAesthetic)} scale domain`})}get target(){return{kind:"scale",aesthetic:this.params.scaledAesthetic}}apply(t){const n=_f(t,this.params.scaledAesthetic);if(!n||n.scaleType!=="continuous"&&n.scaleType!=="datetime")return null;const r={min:n.domainMin??null,max:n.domainMax??null},a=this.params.domainMin===void 0?r.min:this.params.domainMin,i=this.params.domainMax===void 0?r.max:this.params.domainMax;if(a===r.min&&i===r.max)return null;const o={...n,...this.params.domainMin!==void 0&&{domainMin:this.params.domainMin},...this.params.domainMax!==void 0&&{domainMax:this.params.domainMax}},c=If(t,this.params.scaledAesthetic,o),u={scaledAesthetic:this.params.scaledAesthetic};return this.params.domainMin!==void 0&&(u.domainMin=r.min),this.params.domainMax!==void 0&&(u.domainMax=r.max),{spec:c,revert:new V6(u,this.metadata)}}},Sue={type:"set-scale-domain",deserialize:(e,t)=>new wue(e,t)},Aue=class P6{constructor(t,n={}){this.type="set-scale-palette",this.params=t,this.metadata=Se({...n,description:`Set ${Bf(t.scaledAesthetic)} palette`})}get target(){return{kind:"scale",aesthetic:this.params.scaledAesthetic}}apply(t){const n=_f(t,this.params.scaledAesthetic);return(n==null?void 0:n.scaleType)!=="palette"||$c(n.palette,this.params.palette)?null:{spec:If(t,this.params.scaledAesthetic,{...n,scaledAesthetic:this.params.scaledAesthetic,palette:this.params.palette}),revert:new P6({scaledAesthetic:this.params.scaledAesthetic,palette:n.palette},this.metadata)}}},Mue={type:"set-scale-palette",deserialize:(e,t)=>new Aue(e,t)},Tue=class $6{constructor(t,n={}){this.type="set-scale-reverse",this.params=t,this.metadata=Se({...n,description:`Set ${Bf(t.scaledAesthetic)} scale reverse to ${t.reverse}`})}get target(){return{kind:"scale",aesthetic:this.params.scaledAesthetic}}apply(t){const n=_f(t,this.params.scaledAesthetic);if(!n||!Eue(n))return null;const r=n.reverse;return r===this.params.reverse?null:{spec:If(t,this.params.scaledAesthetic,{...n,reverse:this.params.reverse}),revert:new $6({scaledAesthetic:this.params.scaledAesthetic,reverse:r},this.metadata)}}},kue={type:"set-scale-reverse",deserialize:(e,t)=>
71new Tue(e,t)};function Eue(e){return e.scaleType==="continuous"||e.scaleType==="datetime"||e.scaleType==="discrete"}var Cue=class F6{constructor(t,n={}){this.type="set-scale-transform",this.params=t,this.metadata=Se({...n,description:`Set ${Bf(t.scaledAesthetic)} scale transform to ${t.transform}`})}get target(){return{kind:"scale",aesthetic:this.params.scaledAesthetic}}apply(t){const n=_f(t,this.params.scaledAesthetic);if(!n||n.scaleType!=="continuous")return null;const r=n.transform;return r===this.params.transform?null:{spec:If(t,this.params.scaledAesthetic,{...n,transform:this.params.transform}),revert:new F6({scaledAesthetic:this.params.scaledAesthetic,transform:r},this.metadata)}}},Rue={type:"set-scale-transform",deserialize:(e,t)=>new Cue(e,t)},Lue=class H6{constructor(t,n={}){this.type="set-scale-zero",this.params=t,this.metadata=Se({...n,description:`Set ${Bf(t.scaledAesthetic)} scale zero to ${t.zero}`})}get target(){return{kind:"scale",aesthetic:this.params.scaledAesthetic}}apply(t){const n=_f(t,this.params.scaledAesthetic);if(!n||n.scaleType!=="continuous")return null;const r=n.zero;return r===this.params.zero?null:{spec:If(t,this.params.scaledAesthetic,{...n,zero:this.params.zero}),revert:new H6({scaledAesthetic:this.params.scaledAesthetic,zero:r},this.metadata)}}},Due={type:"set-scale-zero",deserialize:(e,t)=>new Lue(e,t)},Nue=class{constructor(){this.descriptors=new Map}register(e){if(this.descriptors.has(e.type))throw new Be({message:`CommandRegistry: descriptor for type '${e.type}' is already registered`});this.descriptors.set(e.type,e)}serialize(e){return{type:e.type,params:e.params,metadata:e.metadata}}deserialize(e){return this.getDescriptor(e.type).deserialize(e.params,e.metadata)}getRegisteredTypes(){return[...this.descriptors.keys()]}getDescriptor(e){const t=this.descriptors.get(e);if(!t)throw new Be({message:`CommandRegistry: no descriptor registered for type '${e}'`});return t}},Ae=new Nue;Ae.register(Yse);Ae.register(Ioe);Ae.register(wce);Ae.register(xce);Ae.register(Rce);Ae.register(Dce);Ae.register(jce);Ae.register(Ice);Ae.register(zce);Ae.register(Fce);Ae.register(Ace);Ae.register(Tce);Ae.register(Gce);Ae.register(Pce);Ae.register(qce);Ae.register(Kce);Ae.register(Qce);Ae.register(oue);Ae.register(cue);Ae.register(uue);Ae.register(hue);Ae.register(yue);Ae.register(xue);Ae.register(Sue);Ae.register(Mue);Ae.register(kue);Ae.register(Rue);Ae.register(Due);Ae.register(Xoe);Ae.register(ele);Ae.register(ile);Ae.register(rle);Ae.register(ole);Ae.register(cle);Ae.register(dle);Ae.register(hle);Ae.register(ple);Ae.register(yle);Ae.register(Dle);Ae.register(jle);Ae.register(zle);Ae.register(Ple);Ae.register(Fle);Ae.register(Ule);Ae.register(Yle);Ae.register(Wle);Ae.register(Jle);Ae.register(tce);Ae.register(rce);Ae.register(ice);Ae.register(oce);Ae.register(cce);Ae.register(vce);Ae.register(bce);Ae.register(vle);Ae.register(Rse);Ae.register(Cse);Ae.register(Vse);Ae.register($se);Ae.register(fce);Ae.register(pce);Ae.register(gce);var jue=class{constructor(e={}){this.undoStack=[],this.redoStack=[],this.listeners=new Set,this.isEmitting=!1,this.cachedSnapshot=null,this.hasOpenRun=!1,this.maxHistorySize=e.maxHistorySize??100}apply(e,t,n,r={}){return this.withReentrancyGuard(()=>{const a=r.transient??!1,i=(f,m)=>n?m:f,o=e.apply(t);if(!o)return a||(this.hasOpenRun=!1),i(t,null);const c=(n==null?void 0:n({spec:o.spec,command:e}))??null,u=c?c.adopted:o.spec;return u?(this.push(e,u,o.revert,a),i(u,(c==null?void 0:c.value)??null)):(a||(this.hasOpenRun=!1),i(t,(c==null?void 0:c.value)??null))})}seal(){return this.withReentrancyGuard(()=>this.hasOpenRun?(this.hasOpenRun=!1,this.emit({type:"seal"}),!0):!1)}undo(e,t){return this.withReentrancyGuard(()=>{const n=this.undoStack[this.undoStack.length-1];if(!n)return null;const r=this.step(n,e,t);return r?r.adopted?(this.undoStack.pop(),this.redoStack.push({command:n.command,revert:r.revert}),this.hasOpenRun=!1,this.emit({type:"undo",command:n.command,spec:r.adopted}),t?r.value:{spec:r.adopted,command:n.command}):r.value:null})}redo(e,t){return this.withReentrancyGuard(()=>{const n=this.redoStack[this.redoStack.length-1];if(!n)return null;const r=this.step(n,e,t);return r?r.adopted?(this.redoStack.pop(),this.undoStack.push({command:n.command,revert:r.revert}
71),this.hasOpenRun=!1,this.emit({type:"redo",command:n.command,spec:r.adopted}),t?r.value:{spec:r.adopted,command:n.command}):r.value:null})}clear(){this.withReentrancyGuard(()=>{this.hasOpenRun=!1,!(this.undoStack.length===0&&this.redoStack.length===0)&&(this.undoStack=[],this.redoStack=[],this.emit({type:"clear"}))})}getSnapshot(){var e,t;return this.cachedSnapshot||(this.cachedSnapshot={canUndo:this.undoStack.length>0,canRedo:this.redoStack.length>0,undoDescription:((e=this.undoStack[this.undoStack.length-1])==null?void 0:e.command.metadata.description)??null,redoDescription:((t=this.redoStack[this.redoStack.length-1])==null?void 0:t.command.metadata.description)??null,undoStack:eR(this.undoStack),redoStack:eR(this.redoStack)}),this.cachedSnapshot}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}step(e,t,n){const r=e.revert.apply(t);if(!r)return null;const a=(n==null?void 0:n({spec:r.spec,command:e.command}))??null;return{adopted:a?a.adopted:r.spec,revert:r.revert,value:(a==null?void 0:a.value)??null}}push(e,t,n,r){const a=this.undoStack.length-1,i=this.undoStack[a],o=this.hasOpenRun&&i!==void 0&&_ue(i.command,e);if(r&&o){this.undoStack[a]={command:e,revert:i.revert},this.cachedSnapshot=null;return}this.undoStack.push({command:e,revert:n}),this.undoStack.length>this.maxHistorySize&&this.undoStack.shift(),this.hasOpenRun=r,this.redoStack=[],this.emit({type:"apply",command:e,spec:t})}withReentrancyGuard(e){if(this.isEmitting)throw new Be({message:"CommandStack: cannot call apply/undo/redo/clear from within a listener"});this.isEmitting=!0;try{return e()}finally{this.isEmitting=!1}}emit(e){this.cachedSnapshot=null;for(const t of this.listeners)try{t(e)}catch(n){console.error("CommandStack listener error:",n)}}},Oue=Object.freeze([]),_ue=(e,t)=>
71{if(e.type!==t.type||e.target.kind!==t.target.kind)return!1;const n=e.target,r=t.target;for(const a of new Set([...Object.keys(n),...Object.keys(r)]))if(!Object.is(n[a],r[a]))return!1;return!0},eR=e=>e.length===0?Oue:e.map(t=>t.command.metadata),Iue=(e,t)=>{if(e===t)return!0;if(e===null||t===null)return!1;switch(e.kind){case"annotation":return t.kind==="annotation"&&e.id===t.id;case"highlight":return t.kind==="highlight"&&e.id===t.id;case"styleRule":return t.kind==="styleRule"&&e.list===t.list&&iS(e,t);case"content":return t.kind==="content"&&e.part===t.part;case"axis":return t.kind==="axis"&&e.axis===t.axis;case"grid":return t.kind==="grid"&&e.axis===t.axis;case"layer":return t.kind==="layer"&&e.layerId===t.layerId;case"observation":return t.kind==="observation"&&e.layerId===t.layerId&&e.index===t.index;case"mapping":return t.kind==="mapping"&&e.aesthetic===t.aesthetic;case"scale":return t.kind==="scale"&&e.aesthetic===t.aesthetic;case"legend":case"coords":case"appearance":case"headline":case"numberFormat":return e.kind===t.kind;default:throw new Be({message:`Unhandled edit target kind: ${e.kind}`})}},Bue=class{constructor(e){this.history=e,this.frame=null}open(e){this.frame=e}clear(){this.frame=null}close(){const e=this.history.seal(),t=this.frame;return this.frame=null,e?t:null}},zue=class{constructor(e){this.compiler=e,this.history=new jue,this.current=null,this.last=null,this.hostInput=null,this.run=new Bue(this.history)}get compiled(){return this.current}compile(e){return this.last=e,this.hostInput=e.input,this.absorb(this.compiler.compile(e))}update(e){const t=this.last,n=!t||e.input!==this.hostInput&&e.input!==t.input,r=!t||e.data!==t.data,a=!t||e.customPalettes!==t.customPalettes;if(this.hostInput=e.input,!n&&!r&&!a)return null;let i=null;n?this.run.close():i=this.closeAndConvert();const o=this.last,c=o&&!n?o.input:e.input;this.last={input:c,data:e.data,customPalettes:e.customPalettes};const u=this.current,f=n||a||!u?this.absorb(this.compiler.compile({input:c,data:e.data,customPalettes:e.customPalettes})):this.absorb(this.compiler.recompile({spec:u.spec,data:e.data}));return n&&f.ok&&this.history.clear(),{result:f,inputChanged:n,...i&&{sealedInput:i.input}}}applyCommand(e,t={}){const n=t.transient??!1,r=[];if(!n){const u=this.sealNotification(!1);u&&r.push(u)}const{current:a,last:i,history:o}=this;if(!a||!i)return r;const c=o.apply(e,a.spec,({spec:u})=>{const f=this.commit(u,i,n,e);return{adopted:f.ok?f.compiled.spec:null,value:f}},t);
71return c&&r.push(this.renderedNotification(c,e,n)),r}seal(){const e=this.sealNotification(!0);return e?[e]:[]}undo(){return this.stepHistory((e,t)=>this.history.undo(e,t))}redo(){return this.stepHistory((e,t)=>this.history.redo(e,t))}stepHistory(e){const{current:t,last:n}=this;if(!t||!n)return[];const r=e(t.spec,({spec:a,command:i})=>{const o=this.commit(a,n);return{adopted:o.ok?o.compiled.spec:null,value:{result:o,command:i}}});return r?[this.renderedNotification(r.result,r.command,!1)]:[]}renderedNotification(e,t,n){return e.ok?n?{compiled:e.compiled}:{compiled:e.compiled,result:e,command:t,...e.input&&{input:e.input}}:{errors:e.errors}}sealNotification(e){const t=this.closeAndConvert();return t?{result:t.result,input:t.input,...e&&{command:t.command}}:null}closeAndConvert(){const e=this.run.close(),{current:t,last:n}=this;return!t||!n||!e?null:{input:this.recordCompiledInput(t.spec,n),result:e.result,command:e.command}}commit(e,t,n=!1,r=null){const a=this.compiler.recompile({spec:e});if(!a.ok)return{ok:!1,errors:a.errors};if(this.current=a.compiled,n&&r){const o={ok:!0,compiled:a.compiled,warnings:a.warnings};return this.run.open({result:o,command:r}),o}this.run.clear();const i=this.recordCompiledInput(a.compiled.spec,t);return{ok:!0,compiled:a.compiled,warnings:a.warnings,input:i}}recordCompiledInput(e,t){const n=vse(e);return this.last={input:n,data:t.data,customPalettes:t.customPalettes},n}absorb(e){return e.ok&&(this.current=e.compiled),e}},cs={thin:100,hairline:100,extraLight:200,ultraLight:200,light:300,normal:400,regular:400,medium:500,semiBold:600,demiBold:600,bold:700,extraBold:800,ultraBold:800,black:900,heavy:900,extraBlack:950,ultraBlack:950},Vue=e=>{const t=e.style??"normal",n=e.weight??500,r=e.family.includes(",")?e.family:`'${e.family}'`;return`${t} ${n} ${e.size}px ${r}`},U6=e=>typeof e!="string"?e??500:cs[e],Pue="\0",tR=class{constructor(e){this.inner=e,this.cache=new Map}measureText(e,t){const n=this.getCacheKey(e,t),r=this.cache.get(n);if(r)return r;const a=this.inner.measureText(e,t);return this.cache.set(n,a),a}getCacheKey(e,t){return[t.family,t.size,U6(t.weight),t.style??"normal",e].join(Pue)}},$ue={" ":.25,"!":.27,'"':.36,"#":.6,$:.56,"%":.78,"&":.66,"'":.21,"(":.31,")":.31,"*":.44,"+":.56,",":.22,"-":.36,".":.22,"/":.35,0:.56,1:.56,2:.56,3:.56,4:.56,5:.56,6:.56,7:.56,8:.56,9:.56,":":.22,";":.22,"<":.56,"=":.56,">":.56,"?":.46,"@":.88,A:.63,B:.63,C:.65,D:.69,E:.56,F:.53,G:.7,H:.7,I:.26,J:.44,K:.62,L:.53,M:.84,N:.7,O:.73,P:.6,Q:.73,R:.62,S:.56,T:.56,U:.69,V:.6,W:.88,X:.58,Y:.56,Z:.58,"[":.29,"\\":.35,"]":.29,"^":.56,_:.44,"`":.33,a:.53,b:.58,c:.48,d:.58,e:.54,f:.31,g:.56,h:.57,i:.23,j:.23,k:.52,l:.23,m:.87,n:.57,o:.57,p:.58,q:.58,r:.35,s:.45,t:.34,u:.57,v:.49,w:.74,x:.49,y:.49,z:.46,"{":.33,"|":.26,"}":.33,"~":.56},Fue=1.05,Hue=.84,Uue=.21,Gue=class{measureText(e,t){let n=0;for(const i of e)n+=($ue[i]??.55)*t.size;U6(t.weight)>=cs.semiBold&&(n*=Fue);const r=Hue*t.size,a=Uue*t.size;return{width:n,height:r+a,ascent:r,descent:a}}},I={white:"var(--graphy-white)",black:"var(--graphy-black)",transparent:"var(--graphy-transparent)",grey100:"var(--graphy-grey-100)",grey95:"var(--graphy-grey-95)",grey90:"var(--graphy-grey-90)",grey85:"var(--graphy-grey-85)",grey80:"var(--graphy-grey-80)",grey75:"var(--graphy-grey-75)",grey70:"var(--graphy-grey-70)",grey60:"var(--graphy-grey-60)",grey50:"var(--graphy-grey-50)",grey0:"var(--graphy-grey-0)",greyGradient80:"var(--graphy-grey-gradient-80)",green60:"var(--graphy-green-60)",green50:"var(--graphy-green-50)",red60:"var(--graphy-red-60)",red50:"var(--graphy-red-50)",amber70:"var(--graphy-amber-70)",amber50:"var(--graphy-amber-50)",amber40:"var(--graphy-amber-40)",amber30:"var(--graphy-amber-30)",blue80:"var(--graphy-blue-80)",blue60:"var(--graphy-blue-60)",purple50:"var(--graphy-purple-50)",purple30:"var(--graphy-purple-30)",brand:"var(--graphy-brand)",success:"var(--graphy-success)",warning:"var(--graphy-warning)",alert:"var(--graphy-alert)",textPrimary:"var(--graphy-text-primary)",textSecondary:"var(--graphy-text-secondary)",textDisabled:"var(--graphy-text-disabled)",iconPrimary:"var(--graphy-icon-primary)",iconSecondary:"var(--graphy-icon-secondary)",iconStickerBackgroun
71d:"var(--graphy-icon-sticker-background)",border100:"var(--graphy-border-100)",border50:"var(--graphy-border-50)",border10:"var(--graphy-border-10)",sunkenBackground:"var(--graphy-sunken-background)",defaultBackground:"var(--graphy-default-background)",raisedBackground:"var(--graphy-raised-background)",overlayBackground:"var(--graphy-overlay-background)",overlayBorderGradient:"var(--graphy-overlay-border-gradient)",graphBackground:"var(--graphy-graph-background)",gridLineColor:"var(--graphy-grid-line-color)",axisTickColor:"var(--graphy-axis-tick-color)",originLineColor:"var(--graphy-origin-line-color)",legendBackground:"var(--graphy-legend-background)",legendBorderColor:"var(--graphy-legend-border-color)",legendFocusOutlineColor:"var(--graphy-legend-focus-outline-color)",legendTextColor:"var(--graphy-legend-text-color)",dimmedSeriesLabelTextColor:"var(--graphy-dimmed-series-label-text-color)",dimmedSeriesLabelLineColor:"var(--graphy-dimmed-series-label-line-color)",trendNegativeColor:"var(--graphy-trend-negative-color)",trendPositiveColor:"var(--graphy-trend-positive-color)",trendNeutralColor:"var(--graphy-trend-neutral-color)",defaultAnnotationArrowStroke:"var(--graphy-default-annotation-arrow-stroke)",defaultAnnotationShapeFill:"var(--graphy-default-annotation-shape-fill)",arrowAnnotationStickerOutlineColor:"var(--graphy-arrow-annotation-sticker-outline-color)",arrowAnnotationStickerOutlineColorInverse:"var(--graphy-arrow-annotation-sticker-outline-color-inverse)",annotationFrameBorderColor:"var(--graphy-annotation-frame-border-color)",editMenuTriggerIconColor:"var(--graphy-edit-menu-trigger-icon-color)",heatmapEmptyTileBackground:"var(--graphy-heatmap-empty-tile-background)",gridLineWidth:"var(--graphy-grid-line-width)",tooltipBorderRadius:"var(--graphy-tooltip-border-radius)",tooltipPaddingBlock:"var(--graphy-tooltip-padding-block)",tooltipPaddingInline:"var(--graphy-tooltip-padding-inline)",tooltipRowGap:"var(--graphy-tooltip-row-gap)",tooltipShadow:"var(--graphy-tooltip-shadow)",editorControlHeight:"var(--graphy-editor-control-height)",legendItemGap:"var(--graphy-legend-item-gap)",legendSwatchGap:"var(--graphy-legend-swatch-gap)",legendSwatchWidth:"var(--graphy-legend-swatch-width)",legendSwatchHeight:"var(--graphy-legend-swatch-height)",legendPillPaddingInline:"var(--graphy-legend-pill-padding-inline)",legendPillPaddingBlock:"var(--graphy-legend-pill-padding-block)",legendPillBorderWidth:"var(--graphy-legend-pill-border-width)",headlineRowGap:"var(--graphy-headline-row-gap)",headlineItemGap:"var(--graphy-headline-item-gap)",canvasDefault:"var(--graphy-canvas-default)",canvasBlue:"var(--graphy-canvas-blue)",canvasCyan:"var(--graphy-canvas-cyan)",canvasGreen:"var(--graphy-canvas-green)",canvasYellow:"var(--graphy-canvas-yellow)",canvasOrange:"var(--graphy-canvas-orange)",canvasRed:"var(--graphy-canvas-red)",canvasPink:"var(--graphy-canvas-pink)",canvasPurple:"var(--graphy-canvas-purple)",canvasGray:"var(--graphy-canvas-gray)",canvasInverse:"var(--graphy-canvas-inverse)",elevationXs:"var(--graphy-elevation-xs)",elevationSm:"var(--graphy-elevation-sm)",elevationMd:"var(--graphy-elevation-md)",elevationLg:"var(--graphy-elevation-lg)",radiiXs:"var(--graphy-radii-xs)",radiiSm:"var(--graphy-radii-sm)",radiiMd:"var(--graphy-radii-md)",radiiLg:"var(--graphy-radii-lg)",spaceXxs:"var(--graphy-space-xxs)",spaceXs:"var(--graphy-space-xs)",spaceSm:"var(--graphy-space-sm)",spaceMd:"var(--graphy-space-md)",spaceLg:"var(--graphy-space-lg)",spaceXl:"var(--graphy-space-xl)",zIndexToolbar:"var(--graphy-z-index-toolbar)",zIndexToolbarTooltip:"var(--graphy-z-index-toolbar-tooltip)",zIndexToolbarPopover:"var(--graphy-z-index-toolbar-popover)",zIndexEditorPopover:"var(--graphy-z-index-editor-popover)",toolbarBackgroundColor:"var(--graphy-toolbar-background-color)",toolbarButtonBackgroundColor:"var(--graphy-toolbar-button-background-color)",toolbarButtonBackgroundColorHovered:"var(--graphy-toolbar-button-background-color-hovered)",toolbarButtonBackgroundColorSelected:"var(--graphy-toolbar-button-background-color-selected)",toolbarSeparatorColor:"var(--graphy-toolbar-separator-color)",tooltipBackgroun
71d:"var(--graphy-tooltip-background)",tooltipBorderColor:"var(--graphy-tooltip-border-color)",tooltipValueTextColor:"var(--graphy-tooltip-value-text-color)",hoverGuideLineColor:"var(--graphy-hover-guide-line-color)",hoverGuideFillColor:"var(--graphy-hover-guide-fill-color)",fontFamilyDefault:"var(--graphy-font-family-default)",fontFamilyHeading:"var(--graphy-font-family-heading)",fontWeightRegular:"var(--graphy-font-weight-regular)",fontWeightMedium:"var(--graphy-font-weight-medium)",fontWeightSemibold:"var(--graphy-font-weight-semibold)",fontWeightBold:"var(--graphy-font-weight-bold)",fontWeightExtraBold:"var(--graphy-font-weight-extra-bold)",fontWeightBlack:"var(--graphy-font-weight-black)",textScale:"var(--graphy-text-scale)",fontSizeXxs:"var(--graphy-font-size-xxs)",fontSizeXs:"var(--graphy-font-size-xs)",fontSizeSm:"var(--graphy-font-size-sm)",fontSizeMd:"var(--graphy-font-size-md)",fontSizeLg:"var(--graphy-font-size-lg)",fontSizeXl:"var(--graphy-font-size-xl)",fontLineHeightXxs:"var(--graphy-font-line-height-xxs)",fontLineHeightXs:"var(--graphy-font-line-height-xs)",fontLineHeightSm:"var(--graphy-font-line-height-sm)",fontLineHeightMd:"var(--graphy-font-line-height-md)",fontLineHeightLg:"var(--graphy-font-line-height-lg)",fontLineHeightXl:"var(--graphy-font-line-height-xl)",fontSizeEditorBody:"var(--graphy-font-size-editor-body)",fontSizeHeadingSm:"var(--graphy-font-size-heading-sm)",fontSizeHeadingMd:"var(--graphy-font-size-heading-md)",fontSizeHeadingLg:"var(--graphy-font-size-heading-lg)",fontLineHeightEditorBody:"var(--graphy-font-line-height-editor-body)",fontLineHeightHeadingSm:"var(--graphy-font-line-height-heading-sm)",fontLineHeightHeadingMd:"var(--graphy-font-line-height-heading-md)",fontLineHeightHeadingLg:"var(--graphy-font-line-height-heading-lg)",fontLegendLabel:"var(--graphy-font-legend-label)",fontSeriesLabel:"var(--graphy-font-series-label)",fontTooltipFooter:"var(--graphy-font-tooltip-footer)",fontJumboTooltipLabel:"var(--graphy-font-jumbo-tooltip-label)",fontJumboTooltip:"var(--graphy-font-jumbo-tooltip)",fontMiniTooltipLabel:"var(--graphy-font-mini-tooltip-label)",fontMiniTooltipFooter:"var(--graphy-font-mini-tooltip-footer)",fontTooltipCaption:"var(--graphy-font-tooltip-caption)",fontTooltipCaptionSmall:"var(--graphy-font-tooltip-caption-small)",fontTrendTag:"var(--graphy-font-trend-tag)",fontTrendTagSmall:"var(--graphy-font-trend-tag-small)",fontPieLabel:"var(--graphy-font-pie-label)",fontPieChartTotal:"var(--graphy-font-pie-chart-total)",fontDifferenceArrowSmall:"var(--graphy-font-difference-arrow-small)",fontDifferenceArrowMedium:"var(--graphy-font-difference-arrow-medium)",fontDifferenceArrowLarge:"var(--graphy-font-difference-arrow-large)",fontButton:"var(--graphy-font-button)",fontInput:"var(--graphy-font-input)",fontInputLabel:"var(--graphy-font-input-label)",fontSelectLabel:"var(--graphy-font-select-label)",fontSelectDescription:"var(--graphy-font-select-description)",fontColorSelectLabel:"var(--graphy-font-color-select-label)",fontMenuTitle:"var(--graphy-font-menu-title)",fontMenuGroupTitle:"var(--graphy-font-menu-group-title)",fontMenuItemLabel:"var(--graphy-font-menu-item-label)",fontMenuItemLabelSecondary:"var(--graphy-font-menu-item-label-secondary)",fontUITooltip:"var(--graphy-font-uitooltip)",fontUITooltipSecondary:"var(--graphy-font-uitooltip-secondary)",fontErrorBoundaryTitle:"var(--graphy-font-error-boundary-title)",fontErrorBoundaryMessage:"var(--graphy-font-error-boundary-message)",fontTableCell:"var(--graphy-font-table-cell)",fontTableHeaderCell:"var(--graphy-font-table-header-cell)",fontSourceLabel:"var(--graphy-font-source-label)",fontSourceLink:"var(--graphy-font-source-link)",fontTextEditorH1:"var(--graphy-font-text-editor-h1)",fontTextEditorH2:"var(--graphy-font-text-editor-h2)",fontTextEditorH3:"var(--graphy-font-text-editor-h3)",fontTextEditorH6:"var(--graphy-font-text-editor-h6)",fontTextEditorBody:"var(--graphy-font-text-editor-body)",fontTextEditorLink:"var(--graphy-font-text-editor-link)",fontHighlightModeTitle:"var(--graphy-font-highlight-mode-title)",fontHighlightModeSubtitle:"var(--graphy-font-highlight-mode-subtitle)",fontEditorControl
71Label:"var(--graphy-font-editor-control-label)",fontEditorControlValue:"var(--graphy-font-editor-control-value)",fontEditorSectionTitle:"var(--graphy-font-editor-section-title)",fontEditorCaption:"var(--graphy-font-editor-caption)"},G6=`var(--typography-chart-font-family, ${I.fontFamilyDefault})`,Ig=`'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 72'Cantarell', 'Helvetica Neue', 'NotoSansArabic', 'NotoSansJP', 'NotoSansSC', 'NotoSansKR', 'NotoSerifKR', sans-serif, 'Apple Color Emoji', 'NotoColorEmoji'`,Yue=Ig,ho={regular:cs.regular,medium:cs.medium,semibold:cs.semiBold,bold:cs.bold,extraBold:cs.extraBold,black:cs.black},ea={xxs:1,xs:1.1,sm:1.2,md:1.4,lg:1.6,xl:2,editorBody:1.5,headingSm:1.8,headingMd:2.2,headingLg:2.8},ta={xxs:1,xs:1,sm:1.3,md:1.43,lg:1,xl:1,editorBody:1.47,headingSm:1.25,headingMd:1.41,headingLg:1.29},Bg={fontLegendLabel:{weight:"fontWeightMedium",size:"fontSizeSm",lineHeight:"fontLineHeightSm"}},Y6=G6,mv=`var(--typography-chart-heading-font-family, ${I.fontFamilyHeading})`,Wue=e=>e in Bg,que=(e,t)=>
72{var a,i;const n=Bg[e],r=De(((a=t.weight)==null?void 0:a.toString())??I[n.weight],t.size===void 0?I[n.size]:`${t.size.value}${t.size.unit}`,((i=t.lineHeight)==null?void 0:i.toString())??I[n.lineHeight],t.family??Y6);return t.style===void 0||t.style==="normal"?r:`${t.style} ${r}`},Aa=e=>`${e}em`,W6={textScale:"1",fontFamilyDefault:Ig,fontFamilyHeading:Yue,fontWeightRegular:ho.regular.toString(),fontWeightMedium:ho.medium.toString(),fontWeightSemibold:ho.semibold.toString(),fontWeightBold:ho.bold.toString(),fontWeightExtraBold:ho.extraBold.toString(),fontWeightBlack:ho.black.toString(),fontSizeXxs:Aa(ea.xxs),fontSizeXs:Aa(ea.xs),fontSizeSm:Aa(ea.sm),fontSizeMd:Aa(ea.md),fontSizeLg:Aa(ea.lg),fontSizeXl:Aa(ea.xl),fontLineHeightXxs:ta.xxs.toString(),fontLineHeightXs:ta.xs.toString(),fontLineHeightSm:ta.sm.toString(),fontLineHeightMd:ta.md.toString(),fontLineHeightLg:ta.lg.toString(),fontLineHeightXl:ta.xl.toString()},q6={fontSizeEditorBody:Aa(ea.editorBody),fontSizeHeadingSm:Aa(ea.headingSm),fontSizeHeadingMd:Aa(ea.headingMd),fontSizeHeadingLg:Aa(ea.headingLg),fontLineHeightEditorBody:ta.editorBody.toString(),fontLineHeightHeadingSm:ta.headingSm.toString(),fontLineHeightHeadingMd:ta.headingMd.toString(),fontLineHeightHeadingLg:ta.headingLg.toString()},De=(e,t,n,r=Y6)=>`${e} ${t}/${n} ${r}`,Xue=({weight:e,size:t,lineHeight:n})=>De(I[e],I[t],I[n]),X6={fontLegendLabel:Xue(Bg.fontLegendLabel),fontSeriesLabel:De(I.fontWeightSemibold,I.fontSizeSm,I.fontLineHeightSm),fontTooltipFooter:De(I.fontWeightRegular,I.fontSizeSm,I.fontLineHeightSm),fontJumboTooltipLabel:De(I.fontWeightRegular,I.fontSizeSm,I.fontLineHeightSm),fontJumboTooltip:De(I.fontWeightMedium,I.fontSizeHeadingMd,I.fontLineHeightHeadingMd),fontMiniTooltipLabel:De(I.fontWeightMedium,I.fontSizeSm,I.fontLineHeightSm),fontMiniTooltipFooter:De(I.fontWeightRegular,I.fontSizeSm,I.fontLineHeightSm),fontTooltipCaption:De(I.fontWeightMedium,I.fontSizeSm,I.fontLineHeightSm),fontTooltipCaptionSmall:De(I.fontWeightMedium,I.fontSizeXxs,I.fontLineHeightXxs),fontUITooltip:De(I.fontWeightMedium,I.fontSizeMd,I.fontLineHeightMd),fontUITooltipSecondary:De(I.fontWeightMedium,I.fontSizeSm,I.fontLineHeightSm),fontTrendTag:De(I.fontWeightMedium,I.fontSizeMd,I.fontLineHeightMd),fontTrendTagSmall:De(I.fontWeightMedium,I.fontSizeXs,I.fontLineHeightXs),fontPieLabel:De(I.fontWeightMedium,I.fontSizeXs,I.fontLineHeightXs),fontPieChartTotal:De(I.fontWeightBold,I.fontSizeHeadingLg,I.fontLineHeightHeadingLg),fontDifferenceArrowSmall:De(I.fontWeightMedium,I.fontSizeSm,I.fontLineHeightSm),fontDifferenceArrowMedium:De(I.fontWeightMedium,I.fontSizeLg,I.fontLineHeightLg),fontDifferenceArrowLarge:De(I.fontWeightSemibold,I.fontSizeXl,I.fontLineHeightXl),fontButton:De(I.fontWeightMedium,I.fontSizeMd,I.fontLineHeightMd),fontInput:De(I.fontWeightMedium,I.fontSizeMd,I.fontLineHeightMd),fontInputLabel:De(I.fontWeightMedium,I.fontSizeXxs,I.fontLineHeightXxs),fontSelectLabel:De(I.fontWeightMedium,I.fontSizeMd,I.fontLineHeightMd),fontSelectDescription:De(I.fontWeightMedium,I.fontSizeSm,I.fontLineHeightSm),fontColorSelectLabel:De(I.fontWeightMedium,I.fontSizeSm,I.fontLineHeightSm),fontMenuTitle:De(I.fontWeightSemibold,I.fontSizeMd,I.fontLineHeightMd),fontMenuGroupTitle:De(I.fontWeightMedium,I.fontSizeSm,I.fontLineHeightSm),fontMenuItemLabel:De(I.fontWeightMedium,I.fontSizeMd,I.fontLineHeightMd),fontMenuItemLabelSecondary:De(I.fontWeightMedium,I.fontSizeSm,I.fontLineHeightSm),fontErrorBoundaryTitle:De(I.fontWeightSemibold,I.fontSizeHeadingSm,I.fontLineHeightHeadingSm),fontErrorBoundaryMessage:De(I.fontWeightMedium,I.fontSizeMd,I.fontLineHeightMd),fontTableCell:De(I.fontWeightMedium,I.fontSizeMd,I.fontLineHeightMd),fontTableHeaderCell:De(I.fontWeightSemibold,I.fontSizeSm,I.fontLineHeightSm),fontSourceLabel:De(I.fontWeightMedium,I.fontSizeSm,I.fontLineHeightSm),fontSourceLink:De(I.fontWeightRegular,I.fontSizeSm,I.fontLineHeightSm),fontTextEditorH1:De(I.fontWeightBold,I.fontSizeHeadingLg,I.fontLineHeightHeadingLg,mv),fontTextEditorH2:De(I.fontWeightBold,I.fontSizeHeadingMd,I.fontLineHeightHeadingMd,mv),fontTextEditorH3:De(I.fontWeightSemibold,I.fontSizeHeadingSm,I.fontLineHeightHeadingSm,mv),fontTextEditorH6:De(I.fontWeightMedium,I.fontSizeSm,I.fontLineHeightSm),fontTextEditorBody:De(I.fontWeightMedium,I.fontSizeEditorBody,I.fontLineHeightEditorBody),fontTextEditorLink:De(I.fontWeightRegular,I.fontSizeMd,I.fontLineHeightMd),fontHighlightModeTitle:De(I.fontWeightBold,I.fontSizeMd,I.fontLineHeightMd),fontHighlightModeSubtitle:De(I.fontWeightMedium,I.fontSizeSm,I.fontLineHeightSm),fontEditorControl
72Label:De(I.fontWeightMedium,I.fontSizeSm,I.fontLineHeightSm),fontEditorControlValue:De(I.fontWeightMedium,I.fontSizeSm,I.fontLineHeightSm),fontEditorSectionTitle:De(I.fontWeightSemibold,I.fontSizeSm,I.fontLineHeightSm),fontEditorCaption:De(I.fontWeightMedium,I.fontSizeXxs,I.fontLineHeightXxs)};const nR=e=>{let t;const n=new Set,r=(f,m)=>{const p=typeof f=="function"?f(t):f;if(!Object.is(p,t)){const g=t;t=m??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(y=>y(t,g))}},a=()=>t,c={setState:r,getState:a,getInitialState:()=>u,subscribe:f=>(n.add(f),()=>n.delete(f))},u=t=e(r,a,c);return c},zg=(e=>e?nR(e):nR),Kue=e=>e;function Vf(e,t=Kue){const n=bd.useSyncExternalStore(e.subscribe,bd.useCallback(()=>t(e.getState()),[e,t]),bd.useCallback(()=>t(e.getInitialState()),[e,t]));return bd.useDebugValue(n),n}const K6=E.createContext({});function hS(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const Que=typeof window<"u",Q6=Que?E.useLayoutEffect:E.useEffect,mS=E.createContext(null);function pS(e,t){e.indexOf(t)===-1&&e.push(t)}function Fc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const _a=(e,t,n)=>n>t?t:n<e?e:n;let Vg=()=>{};const bs={},Z6=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),J6=e=>typeof e=="object"&&e!==null,eO=e=>/^0[^.\s]+$/u.test(e);function tO(e){let t;return()=>(t===void 0&&(t=e()),t)}const $r=e=>e,Pf=(...e)=>e.reduce((t,n)=>r=>n(t(r))),Hc=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class gS{constructor(){this.subscriptions=[]}add(t){return pS(this.subscriptions,t),()=>Fc(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let i=0;i<a;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const nr=e=>e*1e3,Pr=e=>e/1e3,nO=(e,t)=>t?e*(1e3/t):0,Zue=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e},rO=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Jue=1e-7,ede=12;function tde(e,t,n,r,a){let i,o,c=0;do o=t+(n-t)/2,i=rO(o,r,a)-e,i>0?n=o:t=o;while(Math.abs(i)>Jue&&++c<ede);return o}function $f(e,t,n,r){if(e===t&&n===r)return $r;const a=i=>tde(i,0,1,e,n);return i=>i===0||i===1?i:rO(a(i),t,r)}const aO=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,yS=e=>t=>1-e(1-t),iO=$f(.33,1.53,.69,.99),bS=yS(iO),sO=aO(bS),oO=e=>e>=1?1:(e*=2)<1?.5*bS(e):.5*(2-Math.pow(2,-10*(e-1))),vS=e=>1-Math.sin(Math.acos(e)),lO=yS(vS),cO=aO(vS),nde=$f(.42,0,1,1),rde=$f(0,0,.58,1),uO=$f(.42,0,.58,1),dO=e=>Array.isArray(e)&&typeof e[0]!="number";
vendor: 42,223 bytes, line 72
72function fO(e,t){return dO(e)?e[Zue(0,e.length,t)]:e}const hO=e=>Array.isArray(e)&&typeof e[0]=="number",ade={linear:$r,easeIn:nde,easeInOut:uO,easeOut:rde,circIn:vS,circInOut:cO,circOut:lO,backIn:bS,backInOut:sO,backOut:iO,anticipate:oO},ide=e=>typeof e=="string",rR=e=>{if(hO(e)){Vg(e.length===4);const[t,n,r,a]=e;return $f(t,n,r,a)}else if(ide(e))return ade[e];return e},Dm=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function sde(e){let t=new Set,n=new Set,r=!1,a=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function c(f){i.has(f)&&(u.schedule(f),e()),f(o)}const u={schedule:(f,m=!1,p=!1)=>{const y=p&&r?t:n;return m&&i.add(f),y.add(f),f},cancel:f=>{n.delete(f),i.delete(f)},process:f=>{if(o=f,r){a=!0;return}r=!0;const m=t;t=n,n=m,t.forEach(c),t.clear(),r=!1,a&&(a=!1,u.process(f))}};return u}const ode=40;function mO(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Dm.reduce((R,L)=>(R[L]=sde(i),R),{}),{setup:c,read:u,resolveKeyframes:f,preUpdate:m,update:p,preRender:g,render:y,postRender:x}=o,S=()=>{const R=bs.useManualTiming,L=R?a.timestamp:performance.now();n=!1,R||(a.delta=r?1e3/60:Math.max(Math.min(L-a.timestamp,ode),1)),a.timestamp=L,a.isProcessing=!0,c.process(a),u.process(a),f.process(a),m.process(a),p.process(a),g.process(a),y.process(a),x.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(S))},A=()=>{n=!0,r=!0,a.isProcessing||e(S)};return{schedule:Dm.reduce((R,L)=>{const N=o[L];return R[L]=(O,$=!1,T=!1)=>(n||A(),N.schedule(O,$,T)),R},{}),cancel:R=>{for(let L=0;L<Dm.length;L++)o[Dm[L]].cancel(R)},state:a,steps:o}}const{schedule:ft,cancel:Li,state:Sn,steps:pv}=mO(typeof requestAnimationFrame<"u"?requestAnimationFrame:$r,!0);let Zm;function lde(){Zm=void 0}const zn={now:()=>(Zm===void 0&&zn.set(Sn.isProcessing||bs.useManualTiming?Sn.timestamp:performance.now()),Zm),set:e=>{Zm=e,queueMicrotask(lde)}},pO=e=>t=>typeof t=="string"&&t.startsWith(e),gO=pO("--"),cde=pO("var(--"),xS=e=>cde(e)?ude.test(e.split("/*")[0].trim()):!1,ude=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function aR(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const au={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},rf={...au,transform:e=>_a(0,1,e)},Nm={...au,default:1},Dd=e=>Math.round(e*1e5)/1e5,wS=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function dde(e){return e==null}const fde=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,SS=(e,t)=>n=>!!(typeof n=="string"&&fde.test(n)&&n.startsWith(e)||t&&!dde(n)&&Object.prototype.hasOwnProperty.call(n,t)),yO=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,i,o,c]=r.match(wS);return{[e]:parseFloat(a),[t]:parseFloat(i),[n]:parseFloat(o),alpha:c!==void 0?parseFloat(c):1}},hde=e=>_a(0,255,e),gv={...au,transform:e=>Math.round(hde(e))},xo={test:SS("rgb","red"),parse:yO("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+gv.transform(e)+", "+gv.transform(t)+", "+gv.transform(n)+", "+Dd(rf.transform(r))+")"};function mde(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const Vx={test:SS("#"),parse:mde,transform:xo.transform},Ff=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),wi=Ff("deg"),ja=Ff("%"),we=Ff("px"),pde=Ff("vh"),gde=Ff("vw"),iR={...ja,parse:e=>ja.parse(e)/100,transform:e=>ja.transform(e*100)},pc={test:SS("hsl","hue"),parse:yO("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ja.transform(Dd(t))+", "+ja.transform(Dd(n))+", "+Dd(rf.transform(r))+")"},nn={test:e=>xo.test(e)||Vx.test(e)||pc.test(e),parse:e=>xo.test(e)?xo.parse(e):pc.test(e)?pc.parse(e):Vx.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?xo.transform(e):pc.transform(e),getAnimatableNone:e=>{const t=nn.parse(e);return t.alpha=0,nn.transform(t)}},yde=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function bde(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(wS))==null?void 0:t.length)||0)+(((n=e.match(yde))==null?void 0:n.length)||0)>0}const bO="number",vO="color",vde="var",xde="var(",sR="${}",wde=/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 Uc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let i=0;const c=t.replace(wde,u=>(nn.test(u)?(r.color.push(i),a.push(vO),n.push(nn.parse(u))):u.startsWith(xde)?(r.var.push(i),a.push(vde),n.push(u)):(r.number.push(i),a.push(bO),n.push(parseFloat(u))),++i,sR)).split(sR);return{values:n,split:c,indexes:r,types:a}}function Sde(e){return Uc(e).values}function xO({split:e,types:t}){const n=e.length;return r=>{let a="";for(let i=0;i<n;i++)if(a+=e[i],r[i]!==void 0){const o=t[i];o===bO?a+=Dd(r[i]):o===vO?a+=nn.transform(r[i]):a+=r[i]}return a}}function Ade(e){return xO(Uc(e))}const Mde=e=>typeof e=="number"?0:nn.test(e)?nn.getAnimatableNone(e):e,Tde=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:Mde(e);function kde(e){const t=Uc(e);return xO(t)(t.values.map((r,a)=>Tde(r,t.split[a])))}const ia={test:bde,parse:Sde,createTransformer:Ade,getAnimatableNone:kde};function yv(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 Ede({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,i=0,o=0;if(!t)a=i=o=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;a=yv(u,c,e+1/3),i=yv(u,c,e),o=yv(u,c,e-1/3)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function _p(e,t){return n=>n>0?t:e}const dt=(e,t,n)=>e+(t-e)*n,bv=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},Cde=[Vx,xo,pc],Rde=e=>Cde.find(t=>t.test(e));function oR(e){const t=Rde(e);if(!t)return!1;let n=t.parse(e);return t===pc&&(n=Ede(n)),n}const lR=(e,t)=>{const n=oR(e),r=oR(t);if(!n||!r)return _p(e,t);const a={...n};return i=>(a.red=bv(n.red,r.red,i),a.green=bv(n.green,r.green,i),a.blue=bv(n.blue,r.blue,i),a.alpha=dt(n.alpha,r.alpha,i),xo.transform(a))},Px=new Set(["none","hidden"]);function Lde(e,t){return Px.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Dde(e,t){return n=>dt(e,t,n)}function AS(e){return typeof e=="number"?Dde:typeof e=="string"?xS(e)?_p:nn.test(e)?lR:Ode:Array.isArray(e)?wO:typeof e=="object"?nn.test(e)?lR:Nde:_p}function wO(e,t){const n=[...e],r=n.length,a=e.map((i,o)=>AS(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=a[o](i);return n}}function Nde(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=AS(e[a])(e[a],t[a]));return a=>{for(const i in r)n[i]=r[i](a);return n}}function jde(e,t){const n=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const i=t.types[a],o=e.indexes[i][r[i]],c=e.values[o]??0;n[a]=c,r[i]++}return n}const Ode=(e,t)=>{const n=ia.createTransformer(t),r=Uc(e),a=Uc(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?Px.has(e)&&!a.values.length||Px.has(t)&&!r.values.length?Lde(e,t):Pf(wO(jde(r,a),a.values),n):_p(e,t)};function SO(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?dt(e,t,n):AS(e)(e,t)}const _de=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ft.update(t,n),stop:()=>Li(t),now:()=>Sn.isProcessing?Sn.timestamp:zn.now()}},AO=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let i=0;i<a;i++)r+=Math.round(e(i/(a-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Ip=2e4;function MS(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ip;)t+=n,r=e.next(t);return t>=Ip?1/0:t}function MO(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(MS(r),Ip);return{type:"keyframes",ease:i=>r.next(a*i).value/t,duration:Pr(a)}}const It={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function $x(e,t){return e*Math.sqrt(1-t*t)}const Ide=12;function Bde(e,t,n){let r=n;for(let a=1;a<Ide;a++)r=r-e(r)/t(r);return r}const vv=.001;function zde({duration:e=It.duration,bounce:t=It.bounce,velocity:n=It.velocity,mass:r=It.mass}){let a,i,o=1-t;o=_a(It.minDamping,It.maxDamping,o),e=_a(It.minDuration,It.maxDuration,Pr(e)),o<1?(a=f=>{const m=f*o,p=m*e,g=m-n,y=$x(f,o),x=Math.exp(-p);return vv-g/y*x},i=f=>{const p=f*o*e,g=p*n+n,y=Math.pow(o,2)*Math.pow(f,2)*e,x=Math.exp(-p),S=$x(Math.pow(f,2),o);return(-a(f)+vv>0?-1:1)*((g-y)*x)/S}):(a=f=>{const m=Math.exp(-f*e),p=(f-n)*e+1;return-vv+m*p},i=f=>{const m=Math.exp(-f*e),p=(n-f)*(e*e);return m*p});const c=5/e,u=Bde(a,i,c);if(e=nr(e),isNaN(u))return{stiffness:It.stiffness,damping:It.damping,duration:e};{const f=Math.pow(u,2)*r;return{stiffness:f,damping:o*2*Math.sqrt(r*f),duration:e}}}const Vde=["duration","bounce"],Pde=["stiffness","damping","mass"];function cR(e,t){return t.some(n=>e[n]!==void 0)}function $de(e){let t={velocity:It.velocity,stiffness:It.stiffness,damping:It.damping,mass:It.mass,isResolvedFromDuration:!1,...e};if(!cR(e,Pde)&&cR(e,Vde))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,i=2*_a(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:It.mass,stiffness:a,damping:i}}else{const n=zde({...e,velocity:0});t={...t,...n,mass:It.mass},t.isResolvedFromDuration=!0}return t}function af(e=It.visualDuration,t=It.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],c={done:!1,value:i},{stiffness:u,damping:f,mass:m,duration:p,velocity:g,isResolvedFromDuration:y}=$de({...n,velocity:-Pr(n.velocity||0)}),x=g||0,S=f/(2*Math.sqrt(u*m)),A=o-i,M=Pr(Math.sqrt(u/m)),C=Math.abs(A)<5;r||(r=C?It.restSpeed.granular:It.restSpeed.default),a||(a=C?It.restDelta.granular:It.restDelta.default);let R,L,N,O,$,T;if(S<1)N=$x(M,S),O=(x+S*M*A)/N,R=_=>{const P=Math.exp(-S*M*_);return o-P*(O*Math.sin(N*_)+A*Math.cos(N*_))},$=S*M*O+A*N,T=S*M*A-O*N,L=_=>Math.exp(-S*M*_)*($*Math.sin(N*_)+T*Math.cos(N*_));else if(S===1){R=P=>o-Math.exp(-M*P)*(A+(x+M*A)*P);const _=x+M*A;L=P=>Math.exp(-M*P)*(M*_*P-x)}else{const _=M*Math.sqrt(S*S-1);R=q=>{const ne=Math.exp(-S*M*q),B=Math.min(_*q,300);return o-ne*((x+S*M*A)*Math.sinh(B)+_*A*Math.cosh(B))/_};const P=(x+S*M*A)/_,U=S*M*P-A*_,W=S*M*A-P*_;L=q=>{const ne=Math.exp(-S*M*q),B=Math.min(_*q,300);return ne*(U*Math.sinh(B)+W*Math.cosh(B))}}const j={calculatedDuration:y&&p||null,velocity:_=>nr(L(_)),next:_=>{if(!y&&S<1){const U=Math.exp(-S*M*_),W=Math.sin(N*_),q=Math.cos(N*_),ne=o-U*(O*W+A*q),B=nr(U*($*W+T*q));return c.done=Math.abs(B)<=r&&Math.abs(o-ne)<=a,c.value=c.done?o:ne,c}const P=R(_);if(y)c.done=_>=p;else{const U=nr(L(_));c.done=Math.abs(U)<=r&&Math.abs(o-P)<=a}return c.value=c.done?o:P,c},toString:()=>{const _=Math.min(MS(j),Ip),P=AO(U=>j.next(_*U).value,_,30);return _+"ms "+P},toTransition:()=>{}};return j}af.applyToOptions=e=>{const t=MO(e,100,af);return e.ease=t.ease,e.duration=nr(t.duration),e.type="keyframes",e};const Fde=5;function TO(e,t,n){const r=Math.max(t-Fde,0);return nO(n-e(r),t-r)}function Fx({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:o,min:c,max:u,restDelta:f=.5,restSpeed:m}){const p=e[0],g={done:!1,value:p},y=T=>c!==void 0&&T<c||u!==void 0&&T>u,x=T=>c===void 0?u:u===void 0||Math.abs(c-T)<Math.abs(u-T)?c:u;let S=n*t;const A=p+S,M=o===void 0?A:o(A);M!==A&&(S=M-p);const C=T=>-S*Math.exp(-T/r),R=T=>M+C(T),L=T=>{const j=C(T),_=R(T);g.done=Math.abs(j)<=f,g.value=g.done?M:_};let N,O;const $=T=>{y(g.value)&&(N=T,O=af({keyframes:[g.value,x(g.value)],velocity:TO(R,T,g.value),damping:a,stiffness:i,restDelta:f,restSpeed:m}))};return $(0),{calculatedDuration:null,next:T=>{let j=!1;return!O&&N===void 0&&(j=!0,L(T),$(T)),N!==void 0&&T>=N?O.next(T-N):(!j&&L(T),g)}}}function Hde(e,t,n){const r=[],a=n||bs.mix||SO,i=e.length-1;for(let o=0;o<i;o++){let c=a(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||$r:t;c=Pf(u,c)}r.push(c)}return r}function kO(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const i=e.length;if(Vg(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=Hde(t,r,a),u=c.length,f=m=>{if(o&&m<e[0])return t[0];let p=0;if(u>1)for(;p<e.length-2&&!(m<e[p+1]);p++);const g=Hc(e[p],e[p+1],m);return c[p](g)};return n?m=>f(_a(e[0],e[i-1],m)):f}function EO(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=Hc(0,t,r);e.push(dt(n,1,a))}}function CO(e){const t=[0];return EO(t,e.length-1),t}function Ude(e,t){return e.map(n=>n*t)}function Gde(e,t){return e.map(()=>t||uO).splice(0,e.length-1)}function Nd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=dO(r)?r.map(rR):rR(r),i={done:!1,value:t[0]},o=Ude(n&&n.length===t.length?n:CO(t),e),c=kO(o,t,{ease:Array.isArray(a)?a:Gde(t,a)});return{calculatedDuration:e,next:u=>(i.value=c(u),i.done=u>=e,i)}}const Yde=e=>e!==null;function Pg(e,{repeat:t,repeatType:n="loop"},r,a=1){const i=e.filter(Yde),c=a<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!c||r===void 0?i[c]:r}const Wde={decay:Fx,inertia:Fx,tween:Nd,keyframes:Nd,spring:af};function RO(e){typeof e.type=="string"&&(e.type=Wde[e.type])}class TS{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const qde=e=>e/100;class Bp extends TS{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,a;const{motionValue:n}=this.options;n&&n.updatedAt!==zn.now()&&this.tick(zn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(r=this.options).onStop)==null||a.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;RO(t);const{type:n=Nd,repeat:r=0,repeatDelay:a=0,repeatType:i,velocity:o=0}=t;let{keyframes:c}=t;const u=n||Nd;u!==Nd&&typeof c[0]!="number"&&(this.mixKeyframes=Pf(qde,SO(c[0],c[1])),c=[0,100]);const f=u({...t,keyframes:c});i==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...c].reverse(),velocity:-o})),f.calculatedDuration===null&&(f.calculatedDuration=MS(f));const{calculatedDuration:m}=f;this.calculatedDuration=m,this.resolvedDuration=m+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=f}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:a,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:c,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:f=0,keyframes:m,repeat:p,repeatType:g,repeatDelay:y,type:x,onUpdate:S,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const M=this.currentTime-f*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?M<0:M>a;this.currentTime=Math.max(M,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let R=this.currentTime,L=r;if(p){const T=Math.min(this.currentTime,a)/c;let j=Math.floor(T),_=T%1;!_&&T>=1&&(_=1),_===1&&j--,j=Math.min(j,p+1),!!(j%2)&&(g==="reverse"?(_=1-_,y&&(_-=y/c)):g==="mirror"&&(L=o)),R=_a(0,1,_)*c}let N;C?(this.delayState.value=m[0],N=this.delayState):N=L.next(R),i&&!C&&(N.value=i(N.value));let{done:O}=N;!C&&u!==null&&(O=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&O);return $&&x!==Fx&&(N.value=Pg(m,this.options,A,this.speed)),S&&S(N.value),$&&this.finish(),N}then(t,n){return this.finished.then(t,n)}get duration(){return Pr(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Pr(t)}get time(){return Pr(this.currentTime)}set time(t){t=nr(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return TO(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(zn.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Pr(this.currentTime))}play(){var a,i;if(this.isStopped)return;const{driver:t=_de,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(a=this.options).onPlay)==null||i.call(a);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(zn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Xde(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const wo=e=>e*180/Math.PI,Hx=e=>{const t=wo(Math.atan2(e[1],e[0]));return Ux(t)},Kde={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Hx,rotateZ:Hx,skewX:e=>wo(Math.atan(e[1])),skewY:e=>wo(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ux=e=>(e=e%360,e<0&&(e+=360),e),uR=Hx,dR=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),fR=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Qde={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:dR,scaleY:fR,scale:e=>(dR(e)+fR(e))/2,rotateX:e=>Ux(wo(Math.atan2(e[6],e[5]))),rotateY:e=>Ux(wo(Math.atan2(-e[2],e[0]))),rotateZ:uR,rotate:uR,skewX:e=>wo(Math.atan(e[4])),skewY:e=>wo(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Gx(e){return e.includes("scale")?1:0}function Yx(e,t){if(!e||e==="none")return Gx(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=Qde,a=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Kde,a=c}if(!a)return Gx(t);const i=r[t],o=a[1].split(",").map(Jde);return typeof i=="function"?i(o):o[i]}const Zde=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Yx(n,t)};function Jde(e){return parseFloat(e.trim())}const iu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],su=new Set([...iu,"pathRotation"]),hR=e=>e===au||e===we,efe=new Set(["x","y","z"]),tfe=iu.filter(e=>!efe.has(e));function nfe(e){const t=[];return tfe.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const us={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const a=e.max-e.min;return r==="border-box"?a:a-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const a=e.max-e.min;return r==="border-box"?a:a-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Yx(t,"x"),y:(e,{transform:t})=>Yx(t,"y")};us.translateX=us.x;us.translateY=us.y;const ko=new Set;let Wx=!1,qx=!1,Xx=!1;function LO(){if(qx){const e=Array.from(ko).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=nfe(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.forEach(([i,o])=>{var c;(c=r.getValue(i))==null||c.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}qx=!1,Wx=!1,ko.forEach(e=>e.complete(Xx)),ko.clear()}function DO(){ko.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(qx=!0)})}function rfe(){Xx=!0,DO(),LO(),Xx=!1}class kS{constructor(t,n,r,a,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ko.add(this),Wx||(Wx=!0,ft.read(DO),ft.resolveKeyframes(LO))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;if(t[0]===null){const i=a==null?void 0:a.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const c=r.readValue(n,o);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=o),a&&i===void 0&&a.set(t[0])}Xde(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ko.delete(this)}cancel(){this.state==="scheduled"&&(ko.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const afe=e=>e.startsWith("--");function NO(e,t,n){afe(t)?e.style.setProperty(t,n):e.style[t]=n}const ife={};function jO(e,t){const n=tO(e);return()=>ife[t]??n()}const sfe=jO(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),OO=jO(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Sd=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,mR={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Sd([0,.65,.55,1]),circOut:Sd([.55,0,1,.45]),backIn:Sd([.31,.01,.66,-.59]),backOut:Sd([.33,1.53,.69,.99])};function _O(e,t){if(e)return typeof e=="function"?OO()?AO(e,t):"ease-out":hO(e)?Sd(e):Array.isArray(e)?e.map(n=>_O(n,t)||mR.easeOut):mR[e]}function ofe(e,t,n,{delay:r=0,duration:a=300,repeat:i=0,repeatType:o="loop",ease:c="easeOut",times:u}={},f=void 0){const m={[t]:n};u&&(m.offset=u);const p=_O(c,a);Array.isArray(p)&&(m.easing=p);const g={delay:r,duration:a,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return f&&(g.pseudoElement=f),e.animate(m,g)}function ES(e){return typeof e=="function"&&"applyToOptions"in e}function lfe({type:e,...t}){return ES(e)&&OO()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class IO extends TS{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:a,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:c,onComplete:u}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,Vg(typeof t.type!="string");const f=lfe(t);this.animation=ofe(n,r,a,f,i),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const m=Pg(a,this.options,c,this.speed);this.updateMotionValue&&this.updateMotionValue(m),NO(n,r,m),this.animation.cancel()}u==null||u(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,a;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((a=(r=this.animation).commitStyles)==null||a.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Pr(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Pr(t)}get time(){return Pr(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=nr(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:a}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&sfe()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),$r):a(this)}}const BO={anticipate:oO,backInOut:sO,circInOut:cO};function cfe(e){return e in BO}function ufe(e){typeof e.ease=="string"&&cfe(e.ease)&&(e.ease=BO[e.ease])}const xv=10;class dfe extends IO{constructor(t){ufe(t),RO(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:a,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const c=new Bp({...o,autoplay:!1}),u=Math.max(xv,zn.now()-this.startTime),f=_a(0,xv,u-xv),m=c.sample(u).value,{name:p}=this.options;i&&p&&NO(i,p,m),n.setWithVelocity(c.sample(Math.max(0,u-f)).value,m,f),c.stop()}}const pR=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ia.test(e)||e==="0")&&!e.startsWith("url("));function ffe(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function hfe(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=pR(a,t),c=pR(i,t);return!o||!c?!1:ffe(e)||(n==="spring"||ES(n))&&r}function Kx(e){e.duration=0,e.type="keyframes"}const zO=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),mfe=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function pfe(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&mfe.test(e[t]))return!0;return!1}const gfe=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),yfe=tO(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function bfe(e){var p;const{motionValue:t,name:n,repeatDelay:r,repeatType:a,damping:i,type:o,keyframes:c}=e,u=(p=t==null?void 0:t.owner)==null?void 0:p.current;if(!(u instanceof HTMLElement)&&!(u instanceof SVGElement))return!1;const{onUpdate:f,transformTemplate:m}=t.owner.getProps();return yfe()&&n&&(zO.has(n)||gfe.has(n)&&pfe(c))&&(n!=="transform"||!m)&&!f&&!r&&a!=="mirror"&&i!==0&&o!=="inertia"}const vfe=40;class xfe extends TS{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:o="loop",keyframes:c,name:u,motionValue:f,element:m,...p}){var x;super(),this.stop=()=>{var S,A;this._animation&&(this._animation.stop(),(S=this.stopTimeline)==null||S.call(this)),(A=this.keyframeResolver)==null||A.cancel()},this.createdAt=zn.now();const g={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:i,repeatType:o,name:u,motionValue:f,element:m,...p},y=(m==null?void 0:m.KeyframeResolver)||kS;this.keyframeResolver=new y(c,(S,A,M)=>this.onKeyframesResolved(S,A,g,!M),u,f,m),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,r,a){var M,C;this.keyframeResolver=void 0;const{name:i,type:o,velocity:c,delay:u,isHandoff:f,onUpdate:m}=r;this.resolvedAt=zn.now();let p=!0;hfe(t,i,o,c)||(p=!1,(bs.instantAnimations||!u)&&(m==null||m(Pg(t,r,n))),t[0]=t[t.length-1],Kx(r),r.repeat=0);const y={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>vfe?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},x=p&&!f&&bfe(y),S=(C=(M=y.motionValue)==null?void 0:M.owner)==null?void 0:C.current;let A;if(x)try{A=new dfe({...y,element:S})}catch{A=new Bp(y)}else A=new Bp(y);A.finished.then(()=>{this.notifyFinished()}).catch($r),this.pendingTimeline&&(this.stopTimeline=A.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=A}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),rfe()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}class wfe{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t){const n=this.animations.map(r=>r.attachTimeline(t));return()=>{n.forEach((r,a)=>{r&&r(),this.animations[a].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 state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return gR(this.animations,"duration")}get iterationDuration(){return gR(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function gR(e,t){let n=0;for(let r=0;r<e.length;r++){const a=e[r][t];a!==null&&a>n&&(n=a)}return n}class Sfe extends wfe{then(t,n){return this.finished.finally(t).then(()=>{})}}function VO(e,t,n,r=0,a=1){const i=Array.from(e).sort((f,m)=>f.sortNodePosition(m)).indexOf(t),o=e.size,c=(o-1)*r;return typeof n=="function"?n(i,o):a===1?i*r:c-i*r}const yR=30,Afe=e=>!isNaN(parseFloat(e)),jd={current:void 0};class Mfe{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const a=zn.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=zn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Afe(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 gS);const r=this.events[t].add(n);return t==="change"?()=>{r(),ft.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}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()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return jd.current&&jd.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=zn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>yR)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,yR);return nO(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function vs(e,t){return new Mfe(e,t)}function PO(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function CS(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?PO(n,e):n}const Tfe={type:"spring",stiffness:500,damping:25,restSpeed:10},kfe=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Efe={type:"keyframes",duration:.8},Cfe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Rfe=(e,{keyframes:t})=>t.length>2?Efe:su.has(e)?e.startsWith("scale")?kfe(t[1]):Tfe:Cfe,Lfe=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Dfe(e){for(const t in e)if(!Lfe.has(t))return!0;return!1}const RS=(e,t,n,r={},a,i)=>o=>{const c=CS(r,e)||{},u=c.delay||r.delay||0;let{elapsed:f=0}=r;f=f-nr(u);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-f,onUpdate:g=>{t.set(g),c.onUpdate&&c.onUpdate(g)},onComplete:()=>{o(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:i?void 0:a};Dfe(c)||Object.assign(m,Rfe(e,m)),m.duration&&(m.duration=nr(m.duration)),m.repeatDelay&&(m.repeatDelay=nr(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let p=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(Kx(m),m.delay===0&&(p=!0)),(bs.instantAnimations||bs.skipAnimations||a!=null&&a.shouldSkipAnimations||c.skipAnimations)&&(p=!0,Kx(m),m.delay=0),m.allowFlatten=!c.type&&!c.ease,p&&!i&&t.get()!==void 0){const g=Pg(m.keyframes,c);if(g!==void 0){ft.update(()=>{m.onUpdate(g),m.onComplete()});return}}return c.isSync?new Bp(m):new xfe(m)},Nfe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function jfe(e){const t=Nfe.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function $O(e,t,n=1){const[r,a]=jfe(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return Z6(o)?parseFloat(o):o}return xS(a)?$O(a,t,n+1):a}function bR(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function LS(e,t,n,r){if(typeof t=="function"){const[a,i]=bR(r);t=t(n!==void 0?n:e.custom,a,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,i]=bR(r);t=t(n!==void 0?n:e.custom,a,i)}return t}function Eo(e,t,n){const r=e.getProps();return LS(r,t,n!==void 0?n:r.custom,e)}const FO=new Set(["width","height","top","left","right","bottom",...iu]),Qx=e=>Array.isArray(e);function Ofe(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vs(n))}function _fe(e){return Qx(e)?e[e.length-1]||0:e}function Ife(e,t){const n=Eo(e,t);let{transitionEnd:r={},transition:a={},...i}=n||{};i={...i,...r};for(const o in i){const c=_fe(i[o]);Ofe(e,o,c)}}const sn=e=>!!(e&&e.getVelocity);function Bfe(e){return!!(sn(e)&&e.add)}function Zx(e,t){const n=e.getValue("willChange");if(Bfe(n))return n.add(t);if(!n&&bs.WillChange){const r=new bs.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function DS(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const zfe="framerAppearId",HO="data-"+DS(zfe);function UO(e){return e.props[HO]}function Vfe({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function NS(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:i,transitionEnd:o,...c}=t;const u=e.getDefaultTransition();i=i?PO(i,u):u;const f=i==null?void 0:i.reduceMotion,m=i==null?void 0:i.skipAnimations;r&&(i=r);const p=[],g=a&&e.animationState&&e.animationState.getState()[a],y=i==null?void 0:i.path;y&&y.animateVisualElement(e,c,i,n,p);for(const x in c){const S=e.getValue(x,e.latestValues[x]??null),A=c[x];if(A===void 0||g&&Vfe(g,x))continue;const M={delay:n,...CS(i||{},x)};m&&(M.skipAnimations=!0);const C=S.get();if(C!==void 0&&!S.isAnimating()&&!Array.isArray(A)&&A===C&&!M.velocity){ft.update(()=>S.set(A));continue}let R=!1;if(window.MotionHandoffAnimation){const O=UO(e);if(O){const $=window.MotionHandoffAnimation(O,x,ft);$!==null&&(M.startTime=$,R=!0)}}Zx(e,x);const L=f??e.shouldReduceMotion;S.start(RS(x,S,A,L&&FO.has(x)?{type:!1}:M,e,R));const N=S.animation;N&&p.push(N)}if(o){const x=()=>ft.update(()=>{o&&Ife(e,o)});p.length?Promise.all(p).then(x):x()}return p}function Jx(e,t,n={}){var u;const r=Eo(e,t,n.type==="exit"?(u=e.presenceContext)==null?void 0:u.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const i=r?()=>Promise.all(NS(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:m=0,staggerChildren:p,staggerDirection:g}=a;return Pfe(e,t,f,m,p,g,n)}:()=>Promise.resolve(),{when:c}=a;if(c){const[f,m]=c==="beforeChildren"?[i,o]:[o,i];return f().then(()=>m())}else return Promise.all([i(),o(n.delay)])}function Pfe(e,t,n=0,r=0,a=0,i=1,o){const c=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),c.push(Jx(u,t,{...o,delay:n+(typeof r=="function"?0:r)+VO(e.variantChildren,u,r,a,i)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(c)}function $fe(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(i=>Jx(e,i,n));r=Promise.all(a)}else if(typeof t=="string")r=Jx(e,t,n);else{const a=typeof t=="function"?Eo(e,t,n.custom):t;r=Promise.all(NS(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Ffe={test:e=>e==="auto",parse:e=>e},GO=e=>t=>t.test(e),YO=[au,we,ja,wi,gde,pde,Ffe],vR=e=>YO.find(GO(e));function Hfe(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||eO(e):!0}const Ufe=new Set(["brightness","contrast","saturate","opacity"]);function Gfe(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(wS)||[];if(!r)return e;const a=n.replace(r,"");let i=Ufe.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+a+")"}const Yfe=/\b([a-z-]*)\(.*?\)/gu,e1={...ia,getAnimatableNone:e=>{const t=e.match(Yfe);return t?t.map(Gfe).join(" "):e}},t1={...ia,getAnimatableNone:e=>{const t=ia.parse(e);return ia.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},xR={...au,transform:Math.round},Wfe={rotate:wi,pathRotation:wi,rotateX:wi,rotateY:wi,rotateZ:wi,scale:Nm,scaleX:Nm,scaleY:Nm,scaleZ:Nm,skew:wi,skewX:wi,skewY:wi,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:rf,originX:iR,originY:iR,originZ:we},zp={borderWidth:we,borderTopWidth:we,borderRightWidth:we,borderBottomWidth:we,borderLeftWidth:we,borderRadius:we,borderTopLeftRadius:we,borderTopRightRadius:we,borderBottomRightRadius:we,borderBottomLeftRadius:we,width:we,maxWidth:we,height:we,maxHeight:we,top:we,right:we,bottom:we,left:we,inset:we,insetBlock:we,insetBlockStart:we,insetBlockEnd:we,insetInline:we,insetInlineStart:we,insetInlineEnd:we,padding:we,paddingTop:we,paddingRight:we,paddingBottom:we,paddingLeft:we,paddingBlock:we,paddingBlockStart:we,paddingBlockEnd:we,paddingInline:we,paddingInlineStart:we,paddingInlineEnd:we,margin:we,marginTop:we,marginRight:we,marginBottom:we,marginLeft:we,marginBlock:we,marginBlockStart:we,marginBlockEnd:we,marginInline:we,marginInlineStart:we,marginInlineEnd:we,fontSize:we,backgroundPositionX:we,backgroundPositionY:we,...Wfe,zIndex:xR,fillOpacity:rf,strokeOpacity:rf,numOctaves:xR},qfe={...zp,color:nn,backgroundColor:nn,outlineColor:nn,fill:nn,stroke:nn,borderColor:nn,borderTopColor:nn,borderRightColor:nn,borderBottomColor:nn,borderLeftColor:nn,filter:e1,WebkitFilter:e1,mask:t1,WebkitMask:t1},WO=e=>qfe[e],Xfe=new Set([e1,t1]);function qO(e,t){let n=WO(e);return Xfe.has(n)||(n=ia),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
vendor: 1,723 bytes, line 72
72const Kfe=new Set(["auto","none","0"]);function Qfe(e,t,n){let r=0,a;for(;r<e.length&&!a;){const i=e[r];typeof i=="string"&&!Kfe.has(i)&&Uc(i).values.length&&(a=e[r]),r++}if(a&&n)for(const i of t)e[i]=qO(n,a)}class Zfe extends kS{constructor(t,n,r,a,i){super(t,n,r,a,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let m=0;m<t.length;m++){let p=t[m];if(typeof p=="string"&&(p=p.trim(),xS(p))){const g=$O(p,n.current);g!==void 0&&(t[m]=g),m===t.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!FO.has(r)||t.length!==2)return;const[a,i]=t,o=vR(a),c=vR(i),u=aR(a),f=aR(i);if(u!==f&&us[r]){this.needsMeasurement=!0;return}if(o!==c)if(hR(o)&&hR(c))for(let m=0;m<t.length;m++){const p=t[m];typeof p=="string"&&(t[m]=parseFloat(p))}else us[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||Hfe(t[a]))&&r.push(a);r.length&&Qfe(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=us[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){var c;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const i=r.length-1,o=r[i];r[i]=us[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(c=this.removedTransforms)!=null&&c.length&&this.removedTransforms.forEac
vendor: 41,701 bytes, line 72
72h(([u,f])=>{t.getValue(u).set(f)}),this.resolveNoneKeyframes()}}const jS=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function OS(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;t&&(r=t.current);const a=(n==null?void 0:n[e])??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(r=>r!=null)}const n1=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Jfe(e){return J6(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:_S}=mO(queueMicrotask,!1),Jr={x:!1,y:!1};function XO(){return Jr.x||Jr.y}function ehe(e){return e==="x"||e==="y"?Jr[e]?null:(Jr[e]=!0,()=>{Jr[e]=!1}):Jr.x||Jr.y?null:(Jr.x=Jr.y=!0,()=>{Jr.x=Jr.y=!1})}function KO(e,t){const n=OS(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function the(e){return!(e.pointerType==="touch"||XO())}function nhe(e,t,n={}){const[r,a,i]=KO(e,n);return r.forEach(o=>{let c=!1,u=!1,f;const m=()=>{o.removeEventListener("pointerleave",x)},p=A=>{f&&(f(A),f=void 0),m()},g=A=>{c=!1,window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",g),u&&(u=!1,p(A))},y=()=>{c=!0,window.addEventListener("pointerup",g,a),window.addEventListener("pointercancel",g,a)},x=A=>{if(A.pointerType!=="touch"){if(c){u=!0;return}p(A)}},S=A=>{if(!the(A))return;u=!1;const M=t(o,A);typeof M=="function"&&(f=M,o.addEventListener("pointerleave",x,a))};o.addEventListener("pointerenter",S,a),o.addEventListener("pointerdown",y,a)}),i}const QO=(e,t)=>t?e===t?!0:QO(e,t.parentElement):!1,IS=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,rhe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ahe(e){return rhe.has(e.tagName)||e.isContentEditable===!0}const ihe=new Set(["INPUT","SELECT","TEXTAREA"]);function she(e){return ihe.has(e.tagName)||e.isContentEditable===!0}const Jm=new WeakSet;function wR(e){return t=>{t.key==="Enter"&&e(t)}}function wv(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const ohe=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=wR(()=>{if(Jm.has(n))return;wv(n,"down");const a=wR(()=>{wv(n,"up")}),i=()=>wv(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function SR(e){return IS(e)&&!XO()}const AR=new WeakSet;function lhe(e,t,n={}){const[r,a,i]=KO(e,n),o=c=>{const u=c.currentTarget;if(!SR(c)||AR.has(c))return;Jm.add(u),n.stopPropagation&&AR.add(c);const f=t(u,c),m={...a,capture:!0},p=(x,S)=>{window.removeEventListener("pointerup",g,m),window.removeEventListener("pointercancel",y,m),Jm.has(u)&&Jm.delete(u),SR(x)&&typeof f=="function"&&f(x,{success:S})},g=x=>{p(x,u===window||u===document||n.useGlobalTarget||QO(u,x.target))},y=x=>{p(x,!1)};window.addEventListener("pointerup",g,m),window.addEventListener("pointercancel",y,m)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",o,a),Jfe(c)&&(c.addEventListener("focus",f=>ohe(f,a)),!ahe(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),i}function $g(e){return J6(e)&&"ownerSVGElement"in e}const ep=new WeakMap;let os;const ZO=(e,t,n)=>(r,a)=>a&&a[0]?a[0][e+"Size"]:$g(r)&&"getBBox"in r?r.getBBox()[t]:r[n],che=ZO("inline","width","offsetWidth"),uhe=ZO("block","height","offsetHeight");function dhe({target:e,borderBoxSize:t}){var n;(n=ep.get(e))==null||n.forEach(r=>{r(e,{get width(){return che(e,t)},get height(){return uhe(e,t)}})})}function fhe(e){e.forEach(dhe)}function hhe(){typeof ResizeObserver>"u"||(os=new ResizeObserver(fhe))}function mhe(e,t){os||hhe();const n=OS(e);return n.forEach(r=>{let a=ep.get(r);a||(a=new Set,ep.set(r,a)),a.add(t),os==null||os.observe(r)}),()=>{n.forEach(r=>{const a=ep.get(r);a==null||a.delete(t),a!=null&&a.size||os==null||os.unobserve(r)})}}const tp=new Set;let gc;function phe(){gc=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};tp.forEach(t=>t(e))},window.addEventListener("resize",gc)}function ghe(e){return tp.add(e),gc||phe(),()=>{tp.delete(e),!tp.size&&typeof gc=="function"&&(window.removeEventListener("resize",gc),gc=void 0)}}function MR(e,t){return typeof e=="function"?ghe(e):mhe(e,t)}function JO(e){return $g(e)&&e.tagName==="svg"}function yhe(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],a=e[1+n],i=e[2+n],o=e[3+n],c=kO(a,i,o);return t?c(r):c}const bhe=[...YO,nn,ia],vhe=e=>bhe.find(GO(e)),TR=()=>({translate:0,scale:1,origin:0,originPoint:0}),yc=()=>({x:TR(),y:TR()}),kR=()=>({min:0,max:0}),tn=()=>({x:kR(),y:kR()}),sf=new WeakMap;function Fg(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function of(e){return typeof e=="string"||Array.isArray(e)}const BS=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zS=["initial",...BS];function Hg(e){return Fg(e.animate)||zS.some(t=>of(e[t]))}function e8(e){return!!(Hg(e)||e.variants)}function xhe(e,t,n){for(const r in t){const a=t[r],i=n[r];if(sn(a))e.addValue(r,a);else if(sn(i))e.addValue(r,vs(a,{owner:e}));else if(i!==a)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(a):o.hasAnimated||o.set(a)}else{const o=e.getStaticValue(r);e.addValue(r,vs(o!==void 0?o:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Vp={current:null},VS={current:!1},whe=typeof window<"u";function t8(){if(VS.current=!0,!!whe)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Vp.current=e.matches;e.addEventListener("change",t),t()}else Vp.current=!1}const ER=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Pp={};function n8(e){Pp=e}function She(){return Pp}class r8{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,skipAnimations:i,blockInitialAnimation:o,visualState:c},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=kS,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=zn.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,ft.render(this.render,!1,!0))};const{latestValues:f,renderState:m}=c;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=m,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.skipAnimationsConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=Hg(n),this.isVariantNode=e8(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in g){const x=g[y];f[y]!==void 0&&sn(x)&&x.set(f[y])}}mount(t){var n,r;if(this.hasBeenMounted)for(const a in this.initialValues)(n=this.values.get(a))==null||n.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];this.current=t,sf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,i)=>this.bindToMotionValue(i,a)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(VS.current||t8(),this.shouldReduceMotion=Vp.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Li(this.notifyUpdate),Li(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&zO.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:c,times:u,ease:f,duration:m}=n.accelerate,p=new IO({element:this.current,name:t,keyframes:c,times:u,ease:f,duration:nr(m)}),g=o(p);this.valueSubscriptions.set(t,()=>{g(),p.cancel()});return}const r=su.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&ft.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),i&&i()})}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 Pp){const n=Pp[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tn()}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;r<ER.length;r++){const a=ER[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const i="on"+a,o=t[i];o&&(this.propEventSubscriptions[a]=this.on(a,o))}this.prevMotionValues=xhe(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const 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=vs(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Z6(r)||eO(r))?r=parseFloat(r):!vhe(r)&&ia.test(n)&&(r=qO(t,n)),this.setBaseTarget(t,sn(r)?r.get():r)),sn(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=LS(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!sn(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new gS),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){_S.render(this.render)}}class a8 extends r8{constructor(){super(...arguments),this.KeyframeResolver=Zfe}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[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;sn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Ts{constructor(t){this.isMounted=!1,this.node=t}update(){}}function i8({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ahe({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Mhe(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 Sv(e){return e===void 0||e===1}function r1({scale:e,scaleX:t,scaleY:n}){return!Sv(e)||!Sv(t)||!Sv(n)}function mo(e){return r1(e)||s8(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function s8(e){return CR(e.x)||CR(e.y)}function CR(e){return e&&e!=="0%"}function $p(e,t,n){const r=e-n,a=t*r;return n+a}function RR(e,t,n,r,a){return a!==void 0&&(e=$p(e,a,r)),$p(e,n,r)+t}function a1(e,t=0,n=1,r,a){e.min=RR(e.min,t,n,r,a),e.max=RR(e.max,t,n,r,a)}function o8(e,{x:t,y:n}){a1(e.x,t.translate,t.scale,t.originPoint),a1(e.y,n.translate,n.scale,n.originPoint)}const LR=.999999999999,DR=1.0000000000001;function The(e,t,n,r=!1){var c;const a=n.length;if(!a)return;t.x=t.y=1;let i,o;for(let u=0;u<a;u++){i=n[u],o=i.projectionDelta;const{visualElement:f}=i.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(Ma(e.x,-i.scroll.offset.x),Ma(e.y,-i.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,o8(e,o)),r&&mo(i.latestValues)&&np(e,i.latestValues,(c=i.layout)==null?void 0:c.layoutBox))}t.x<DR&&t.x>LR&&(t.x=1),t.y<DR&&t.y>LR&&(t.y=1)}function Ma(e,t){e.min+=t,e.max+=t}function NR(e,t,n,r,a=.5){const i=dt(e.min,e.max,a);a1(e,t,n,i,r)}function jR(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function np(e,t,n){const r=n??e;NR(e.x,jR(t.x,r.x),t.scaleX,t.scale,t.originX),NR(e.y,jR(t.y,r.y),t.scaleY,t.scale,t.originY)}function l8(e,t){return i8(Mhe(e.getBoundingClientRect(),t))}function khe(e,t,n){const r=l8(e,n),{scroll:a}=t;return a&&(Ma(r.x,a.offset.x),Ma(r.y,a.offset.y)),r}const Ehe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Che=iu.length;function Rhe(e,t,n){let r="",a=!0;for(let o=0;o<Che;o++){const c=iu[o],u=e[c];if(u===void 0)continue;let f=!0;if(typeof u=="number")f=u===(c.startsWith("scale")?1:0);else{const m=parseFloat(u);f=c.startsWith("scale")?m===1:m===0}if(!f||n){const m=n1(u,zp[c]);if(!f){a=!1;const p=Ehe[c]||c;r+=`${p}(${m}) `}n&&(t[c]=m)}}const i=e.pathRotation;return i&&(a=!1,r+=`rotate(${n1(i,zp.pathRotation)}) `),r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function PS(e,t,n){const{style:r,vars:a,transformOrigin:i}=e;let o=!1,c=!1;for(const u in t){const f=t[u];if(su.has(u)){o=!0;continue}else if(gO(u)){a[u]=f;continue}else{const m=n1(f,zp[u]);u.startsWith("origin")?(c=!0,i[u]=m):r[u]=m}}if(t.transform||(o||n?r.transform=Rhe(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:f="50%",originZ:m=0}=i;r.transformOrigin=`${u} ${f} ${m}`}}function c8(e,{style:t,vars:n},r,a){const i=e.style;let o;for(o in t)i[o]=t[o];a==null||a.applyProjectionStyles(i,r);for(o in n)i.setProperty(o,n[o])}function OR(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const pd={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const n=OR(e,t.target.x),r=OR(e,t.target.y);return`${n}% ${r}%`}},Lhe={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=ia.parse(e);if(a.length>5)return r;const i=ia.createTransformer(e),o=typeof a[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;a[0+o]/=c,a[1+o]/=u;const f=dt(c,u,.5);return typeof a[2+o]=="number"&&(a[2+o]/=f),typeof a[3+o]=="number"&&(a[3+o]/=f),i(a)}},i1={borderRadius:{...pd,applyTo:[...jS]},borderTopLeftRadius:pd,borderTopRightRadius:pd,borderBottomLeftRadius:pd,borderBottomRightRadius:pd,boxShadow:Lhe};function u8(e,{layout:t,layoutId:n}){return su.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!i1[e]||e==="opacity")}function $S(e,t,n){var o;const r=e.style,a=t==null?void 0:t.style,i={};if(!r)return i;for(const c in r)(sn(r[c])||a&&sn(a[c])||u8(c,e)||((o=n==null?void 0:n.getValue(c))==null?void 0:o.liveStyle)!==void 0)&&(i[c]=r[c]);return i}function Dhe(e){return window.getComputedStyle(e)}class d8 extends a8{constructor(){super(...arguments),this.type="html",this.renderInstance=c8}mount(t){Vg(!!t.style),super.mount(t)}readValueFromInstance(t,n){var r;if(su.has(n))return(r=this.projection)!=null&&r.isProjecting?Gx(n):Zde(t,n);{const a=Dhe(t),i=(gO(n)?a.getPropertyValue(n):a[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return l8(t,n)}build(t,n,r){PS(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return $S(t,n,r)}}function Nhe(e,t){return e in t}class jhe extends r8{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(Nhe(n,t)){const r=t[n];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return tn()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}const Ohe={offset:"stroke-dashoffset",array:"stroke-dasharray"},_he={offset:"strokeDashoffset",array:"strokeDasharray"};function Ihe(e,t,n=1,r=0,a=!0){e.pathLength=1;const i=a?Ohe:_he;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const Bhe=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function f8(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:i=1,pathOffset:o=0,...c},u,f,m){if(PS(e,c,f),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:g}=e;p.transform&&(g.transform=p.transform,delete p.transform),(g.transform||p.transformOrigin)&&(g.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),g.transform&&(g.transformBox=(m==null?void 0:m.transformBox)??"fill-box",delete p.transformBox);for(const y of Bhe)p[y]!==void 0&&(g[y]=p[y],delete p[y]);t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&Ihe(p,a,i,o,!1)}const h8=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"]),m8=e=>typeof e=="string"&&e.toLowerCase()==="svg";function zhe(e,t,n,r){c8(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(h8.has(a)?a:DS(a),t.attrs[a])}function p8(e,t,n){const r=$S(e,t,n);for(const a in e)if(sn(e[a])||sn(t[a])){const i=iu.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[i]=e[a]}return r}class g8 extends a8{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(su.has(n)){const r=WO(n);return r&&r.default||0}return n=h8.has(n)?n:DS(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return p8(t,n,r)}build(t,n,r){f8(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){zhe(t,n,r,a)}mount(t){this.isSVGTag=m8(t.tagName),super.mount(t)}}const Vhe=zS.length;function y8(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?y8(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Vhe;n++){const r=zS[n],a=e.props[r];(of(a)||a===!1)&&(t[r]=a)}return t}function b8(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Phe=[...BS].reverse(),$he=BS.length;function Fhe(e){return t=>Promise.all(t.map(({animation:n,options:r})=>$fe(e,n,r)))}function Hhe(e){let t=Fhe(e),n=_R(),r=!0,a=!1;const i=f=>(m,p)=>{var y;const g=Eo(e,p,f==="exit"?(y=e.presenceContext)==null?void 0:y.custom:void 0);if(g){const{transition:x,transitionEnd:S,...A}=g;m={...m,...A,...S}}return m};function o(f){t=f(e)}function c(f){const{props:m}=e,p=y8(e.parent)||{},g=[],y=new Set;let x={},S=1/0;for(let M=0;M<$he;M++){const C=Phe[M],R=n[C],L=m[C]!==void 0?m[C]:p[C],N=of(L),O=C===f?R.isActive:null;O===!1&&(S=M);let $=L===p[C]&&L!==m[C]&&N;if($&&(r||a)&&e.manuallyAnimateOnMount&&($=!1),R.protectedKeys={...x},!R.isActive&&O===null||!L&&!R.prevProp||Fg(L)||typeof L=="boolean")continue;if(C==="exit"&&R.isActive&&O!==!0){R.prevResolvedValues&&(x={...x,...R.prevResolvedValues});continue}const T=Uhe(R.prevProp,L);let j=T||C===f&&R.isActive&&!$&&N||M>S&&N,_=!1;const P=Array.isArray(L)?L:[L];let U=P.reduce(i(C),{});O===!1&&(U={});const{prevResolvedValues:W={}}=R,q={...W,...U},ne=F=>{j=!0,y.has(F)&&(_=!0,y.delete(F)),R.needsAnimating[F]=!0;const ee=e.getValue(F);ee&&(ee.liveStyle=!1)};for(const F in q){const ee=U[F],he=W[F];if(x.hasOwnProperty(F))continue;let z=!1;Qx(ee)&&Qx(he)?z=!b8(ee,he)||T:z=ee!==he,z?ee!=null?ne(F):y.add(F):ee!==void 0&&y.has(F)?ne(F):R.protectedKeys[F]=!0}R.prevProp=L,R.prevResolvedValues=U,R.isActive&&(x={...x,...U}),(r||a)&&e.blockInitialAnimation&&(j=!1);const B=$&&T;j&&(!B||_)&&g.push(...P.map(F=>{const ee={type:C};if(typeof F=="string"&&(r||a)&&!B&&e.manuallyAnimateOnMount&&e.parent){const{parent:he}=e,z=Eo(he,F);if(he.enteringChildren&&z){const{delayChildren:Z}=z.transition||{};ee.delay=VO(he.enteringChildren,e,Z)}}return{animation:F,options:ee}}))}if(y.size){const M={};if(typeof m.initial!="boolean"){const C=Eo(e,Array.isArray(m.initial)?m.initial[0]:m.initial);C&&C.transition&&(M.transition=C.transition)}y.forEach(C=>{const R=e.getBaseTarget(C),L=e.getValue(C);L&&(L.liveStyle=!0),M[C]=R??null}),g.push({animation:M})}let A=!!g.length;return r&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(A=!1),r=!1,a=!1,A?t(g):Promise.resolve()}function u(f,m){var g;if(n[f].isActive===m)return Promise.resolve();(g=e.variantChildren)==null||g.forEach(y=>{var x;return(x=y.animationState)==null?void 0:x.setActive(f,m)}),n[f].isActive=m;const p=c(f);for(const y in n)n[y].protectedKeys={};return p}return{animateChanges:c,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=_R(),a=!0}}}function Uhe(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!b8(t,e):!1}function oo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _R(){return{animate:oo(!0),whileInView:oo(),whileHover:oo(),whileTap:oo(),whileDrag:oo(),whileFocus:oo(),exit:oo()}}function s1(e,t){e.min=t.min,e.max=t.max}function Qr(e,t){s1(e.x,t.x),s1(e.y,t.y)}function IR(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const v8=1e-4,Ghe=1-v8,Yhe=1+v8,x8=.01,Whe=0-x8,qhe=0+x8;function Vn(e){return e.max-e.min}function Xhe(e,t,n){return Math.abs(e-t)<=n}function BR(e,t,n,r=.5){e.origin=r,e.originPoint=dt(t.min,t.max,e.origin),e.scale=Vn(n)/Vn(t),e.translate=dt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ghe&&e.scale<=Yhe||isNaN(e.scale))&&(e.scale=1),(e.translate>=Whe&&e.translate<=qhe||isNaN(e.translate))&&(e.translate=0)}function Od(e,t,n,r){BR(e.x,t.x,n.x,r?r.originX:void 0),BR(e.y,t.y,n.y,r?r.originY:void 0)}function zR(e,t,n,r=0){const a=r?dt(n.min,n.max,r):n.min;e.min=a+t.min,e.max=e.min+Vn(t)}function Khe(e,t,n,r){zR(e.x,t.x,n.x,r==null?void 0:r.x),zR(e.y,t.y,n.y,r==null?void 0:r.y)}function VR(e,t,n,r=0){const a=r?dt(n.min,n.max,r):n.min;e.min=t.min-a,e.max=e.min+Vn(t)}function Fp(e,t,n,r){VR(e.x,t.x,n.x,r==null?void 0:r.x),VR(e.y,t.y,n.y,r==null?void 0:r.y)}function PR(e,t,n,r,a){return e-=t,e=$p(e,1/n,r),a!==void 0&&(e=$p(e,1/a,r)),e}function Qhe(e,t=0,n=1,r=.5,a,i=e,o=e){if(ja.test(t)&&(t=parseFloat(t),t=dt(o.min,o.max,t/100)-o.min),typeof t!="number")return;let c=dt(i.min,i.max,r);e===i&&(c-=t),e.min=PR(e.min,t,n,c,a),e.max=PR(e.max,t,n,c,a)}function $R(e,t,[n,r,a],i,o){Qhe(e,t[n],t[r],t[a],t.scale,i,o)}const Zhe=["x","scaleX","originX"],Jhe=["y","scaleY","originY"];function FR(e,t,n,r){$R(e.x,t,Zhe,n?n.x:void 0,r?r.x:void 0),$R(e.y,t,Jhe,n?n.y:void 0,r?r.y:void 0)}function HR(e){return e.translate===0&&e.scale===1}function w8(e){return HR(e.x)&&HR(e.y)}function UR(e,t){return e.min===t.min&&e.max===t.max}function eme(e,t){return UR(e.x,t.x)&&UR(e.y,t.y)}function GR(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function S8(e,t){return GR(e.x,t.x)&&GR(e.y,t.y)}function YR(e){return Vn(e.x)/Vn(e.y)}function WR(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function xa(e){return[e("x"),e("y")]}function tme(e,t,n){let r="";const a=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((a||i||o)&&(r=`translate3d(${a}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:f,rotate:m,pathRotation:p,rotateX:g,rotateY:y,skewX:x,skewY:S}=n;f&&(r=`perspective(${f}px) ${r}`),m&&(r+=`rotate(${m}deg) `),p&&(r+=`rotate(${p}deg) `),g&&(r+=`rotateX(${g}deg) `),y&&(r+=`rotateY(${y}deg) `),x&&(r+=`skewX(${x}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const nme=jS.length,qR=e=>typeof e=="string"?parseFloat(e):e,XR=e=>typeof e=="number"||we.test(e);function rme(e,t,n,r,a,i){a?(e.opacity=dt(0,n.opacity??1,ame(r)),e.opacityExit=dt(t.opacity??1,0,ime(r))):i&&(e.opacity=dt(t.opacity??1,n.opacity??1,r));for(let o=0;o<nme;o++){const c=jS[o];let u=KR(t,c),f=KR(n,c);if(u===void 0&&f===void 0)continue;u||(u=0),f||(f=0),u===0||f===0||XR(u)===XR(f)?(e[c]=Math.max(dt(qR(u),qR(f),r),0),(ja.test(f)||ja.test(u))&&(e[c]+="%")):e[c]=f}(t.rotate||n.rotate)&&(e.rotate=dt(t.rotate||0,n.rotate||0,r))}function KR(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const ame=A8(0,.5,lO),ime=A8(.5,.95,$r);function A8(e,t,n){return r=>r<e?0:r>t?1:n(Hc(e,t,r))}function M8(e,t,n){const r=sn(e)?e:vs(e);return r.start(RS("",r,t,n)),r.animation}function lf(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const sme=(e,t)=>e.depth-t.depth;class ome{constructor(){this.children=[],this.isDirty=!1}add(t){pS(this.children,t),this.isDirty=!0}remove(t){Fc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(sme),this.isDirty=!1,this.children.forEach(t)}}function lme(e,t){const n=zn.now(),r=({timestamp:a})=>{const i=a-n;i>=t&&(Li(r),e(i-t))};return ft.setup(r,!0),()=>Li(r)}function rp(e){return sn(e)?e.get():e}class cme{constructor(){this.members=[]}add(t){pS(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const a=r.instance;(!a||a.isConnected===!1)&&!r.snapshot&&(Fc(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(Fc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const a=this.members[r];if(a.isPresent!==!1&&((n=a.instance)==null?void 0:n.isConnected)!==!1)return this.promote(a),!0}return!1}promote(t,n){var a;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:i}=r.options,{layoutDependency:o}=t.options;(i===void 0||i!==o)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(a=t.root)!=null&&a.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,a,i,o;(r=(n=t.options).onExitComplete)==null||r.call(n),(o=(a=t.resumingFrom)==null?void 0:(i=a.options).onExitComplete)==null||o.call(i)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const ap={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Av=["","X","Y","Z"],ume=1e3;let dme=0;function Mv(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function T8(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=UO(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ft,!(a||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&T8(r)}function k8({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(o={},c=t==null?void 0:t()){this.id=dme++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(mme),this.nodes.forEach(xme),this.nodes.forEach(wme),this.nodes.forEach(pme)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new ome)}addEventListener(o,c){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new gS),this.eventHandlers.get(o).add(c)}notifyListeners(o,...c){const u=this.eventHandlers.get(o);u&&u.notify(...c)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=$g(o)&&!JO(o),this.instance=o;const{layoutId:c,layout:u,visualElement:f}=this.options;if(f&&!f.current&&f.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||c)&&(this.isLayoutDirty=!0),e){let m,p=0;const g=()=>this.root.updateBlockedByResize=!1;ft.read(()=>{p=window.innerWidth}),e(o,()=>{const y=window.innerWidth;y!==p&&(p=y,this.root.updateBlockedByResize=!0,m&&m(),m=lme(g,250),ap.hasAnimatedSinceResize&&(ap.hasAnimatedSinceResize=!1,this.nodes.forEach(JR)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&f&&(c||u)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:g,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||f.getDefaultTransition()||kme,{onLayoutAnimationStart:S,onLayoutAnimationComplete:A}=f.getProps(),M=!this.targetLayout||!S8(this.targetLayout,y),C=!p&&g;if(this.options.layoutRoot||this.resumeFrom||C||p&&(M||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const R={...CS(x,"layout"),onPlay:S,onComplete:A};(f.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R),this.setAnimationOrigin(m,C,R.path)}else p||JR(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Li(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(Sme),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&&T8(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const p=this.path[m];p.shouldResetTransform=!0,(typeof p.latestValues.x=="string"||typeof p.latestValues.y=="string")&&(p.isLayoutDirty=!0),p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const u=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),u&&this.nodes.forEach(yme),this.nodes.forEach(QR);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ZR);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(bme),this.nodes.forEach(vme),this.nodes.forEach(fme),this.nodes.forEach(hme)):this.nodes.forEach(ZR),this.clearAllSnapshots();const c=zn.now();Sn.delta=_a(0,1e3/60,c-Sn.timestamp),Sn.timestamp=c,Sn.isProcessing=!0,pv.update.process(Sn),pv.preRender.process(Sn),pv.render.process(Sn),Sn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,_S.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(gme),this.sharedNodes.forEach(Ame)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ft.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ft.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Vn(this.snapshot.measuredBox.x)&&!Vn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=tn()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(c=!1),c&&this.instance){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!a)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!w8(this.projectionDelta),u=this.getTransformTemplate(),f=u?u(this.latestValues,""):void 0,m=f!==this.prevTransformTemplateValue;o&&this.instance&&(c||mo(this.latestValues)||m)&&(a(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return o&&(u=this.removeTransform(u)),Eme(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var f;const{visualElement:o}=this.options;if(!o)return tn();const c=o.measureViewportBox();if(!(((f=this.scroll)==null?void 0:f.wasRoot)||this.path.some(Cme))){const{scroll:m}=this.root;m&&(Ma(c.x,m.offset.x),Ma(c.y,m.offset.y))}return c}removeElementScroll(o){var u;const c=tn();if(Qr(c,o),(u=this.scroll)!=null&&u.wasRoot)return c;for(let f=0;f<this.path.length;f++){const m=this.path[f],{scroll:p,options:g}=m;m!==this.root&&p&&g.layoutScroll&&(p.wasRoot&&Qr(c,o),Ma(c.x,p.offset.x),Ma(c.y,p.offset.y))}return c}applyTransform(o,c=!1,u){var m,p;const f=u||tn();Qr(f,o);for(let g=0;g<this.path.length;g++){const y=this.path[g];!c&&y.options.layoutScroll&&y.scroll&&y!==y.root&&(Ma(f.x,-y.scroll.offset.x),Ma(f.y,-y.scroll.offset.y)),mo(y.latestValues)&&np(f,y.latestValues,(m=y.layout)==null?void 0:m.layoutBox)}return mo(this.latestValues)&&np(f,this.latestValues,(p=this.layout)==null?void 0:p.layoutBox),f}removeTransform(o){var u;const c=tn();Qr(c,o);for(let f=0;f<this.path.length;f++){const m=this.path[f];if(!mo(m.latestValues))continue;let p;m.instance&&(r1(m.latestValues)&&m.updateSnapshot(),p=tn(),Qr(p,m.measurePageBox())),FR(c,m.latestValues,(u=m.snapshot)==null?void 0:u.layoutBox,p)}return mo(this.latestValues)&&FR(c,this.latestValues),c}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Sn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var y;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==c;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!this.layout||!(m||p))return;this.resolvedRelativeTargetAt=Sn.timestamp;const g=this.getClosestProjectingParent();g&&this.linkedParentVersion!==g.layoutVersion&&!g.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&g&&g.layout?this.createRelativeTarget(g,this.layout.layoutBox,g.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=tn(),this.targetWithTransforms=tn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Khe(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Qr(this.target,this.layout.layoutBox),o8(this.target,this.targetDelta)):Qr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?this.createRelativeTarget(g,this.target,g.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||r1(this.parent.latestValues)||s8(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,c,u){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tn(),this.relativeTargetOrigin=tn(),Fp(this.relativeTargetOrigin,c,u,this.options.layoutAnchor||void 0),Qr(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var x;const o=this.getLead(),c=!!this.resumingFrom||this!==o;let u=!0;if((this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty)&&
vendor: 5,720 bytes, line 72
72(u=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Sn.timestamp&&(u=!1),u)return;const{layout:f,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||m))return;Qr(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,g=this.treeScale.y;The(this.layoutCorrected,this.treeScale,this.path,c),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=tn());const{target:y}=o;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(IR(this.prevProjectionDelta.x,this.projectionDelta.x),IR(this.prevProjectionDelta.y,this.projectionDelta.y)),Od(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==g||!WR(this.projectionDelta.x,this.prevProjectionDelta.x)||!WR(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var c;if((c=this.options.visualElement)==null||c.scheduleRender(),o){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=yc(),this.projectionDelta=yc(),this.projectionDeltaWithTransform=yc()}setAnimationOrigin(o,c=!1,u){const f=this.snapshot,m=f?f.latestValues:{},p={...this.latestValues},g=yc();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const y=tn(),x=f?f.source:void 0,S=this.layout?this.layout.source:void 0,A=x!==S,M=this.getStack(),C=!M||M.members.length<=1,R=!!(A&&!C&&this.options.crossfade===!0&&!this.path.some(Tme));this.animationProgress=0;let L;const N=u==null?void 0:u.interpolateProjection(o);this.mixTargetDelta=O=>{const $=O/1e3,T=N==null?void 0:N($);T?(g.x.translate=T.x,g.x.scale=dt(o.x.scale,1,$),g.x.origin=o.x.origin,g.x.originPoint=o.x.originPoint,g.y.translate=T.y,g.y.scale=dt(o.y.scale,1,$),g.y.origin=o.y.origin,g.y.originPoint=o.y.originPoint):(eL(g.x,o.x,$),eL(g.y,o.y,$)),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Fp(y,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Mme(this.relativeTarget,this.relativeTargetOrigin,y,$),L&&eme(this.relativeTarget,L)&&(this.isProjectionDirty=!1),L||(L=tn()),Qr(L,this.relativeTarget)),A&&(this.animationValues=p,rme(p,m,this.latestValues,$,R,C)),T&&T.rotate!==void 0&&(this.animationValues||(this.animationValues=p),this.animationValues.pathRotation=T.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=$},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var c,u,f;this.notifyListeners("animationStart"),(c=this.currentAnimation)==null||c.stop(),(f=(u=this.resumingFrom)==null?void 0:u.currentAnimation)==null||f.stop(),this.pendingAnimation&&(Li(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ft.update(()=>{ap.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=vs(0)),this.motionValue.jump(0,!1),this.currentAnimation=M8(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),o.onUpdate&&o.onUpdate(m)},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(ume),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:c,target:u,layout:f,latestValues:m}=o;if(!(!c||!u||!f)){if(this!==o&&this.layout&&f&&E8(this.options.animationType,this.layout.layoutBox,f.layoutBox)){u=this.target||tn();const p=Vn(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+p;const g=Vn(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+g}Qr(c,u),np(c,m),Od(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(o,c){this.sharedNodes.has(o)||this.sharedNodes.set(o,new cme),this.sharedNodes.get(o).add(c);const f=c.options.initialPromotionConfig;c.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(c):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var c;const{layoutId:o}=this.options;return o?((c=this.getStack())==null?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:o}=this.options;return o?(c=this.getStack())==null?void 0:c.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:c,preserveFollowOpacity:u}={}){const f=this.getStack();f&&f.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}
vendor: 8,916 bytes, line 72
72resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let c=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const f={};u.z&&Mv("z",o,f,this.animationValues);for(let m=0;m<Av.length;m++)Mv(`rotate${Av[m]}`,o,f,this.animationValues),Mv(`skew${Av[m]}`,o,f,this.animationValues);o.render();for(const m in f)o.setStaticValue(m,f[m]),this.animationValues&&(this.animationValues[m]=f[m]);o.scheduleRender()}applyProjectionStyles(o,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=rp(c==null?void 0:c.pointerEvents)||"",o.transform=u?u(this.latestValues,""):"none";return}const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=rp(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!mo(this.latestValues)&&(o.transform=u?u({},""):"none",this.hasProjected=!1);return}o.visibility="";const m=f.animationValues||f.latestValues;this.applyTransformsToTarget();let p=tme(this.projectionDeltaWithTransform,this.treeScale,m);u&&(p=u(m,p)),o.transform=p;const{x:g,y}=this.projectionDelta;o.transformOrigin=`${g.origin*100}% ${y.origin*100}% 0`,f.animationValues?o.opacity=f===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:o.opacity=f===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const x in i1){if(m[x]===void 0)continue;const{correct:S,applyTo:A,isCSSVariable:M}=i1[x],C=p==="none"?m[x]:S(m[x],f);if(A){const R=A.length;for(let L=0;L<R;L++)o[A[L]]=C}else M?this.options.visualElement.renderState.vars[x]=C:o[x]=C}this.options.layoutId&&(o.pointerEvents=f===this?rp(c==null?void 0:c.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var c;return(c=o.currentAnimation)==null?void 0:c.stop()}),this.root.nodes.forEach(QR),this.root.sharedNodes.clear()}}}function fme(e){e.updateLayout()}function hme(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:a}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;if(i==="size")xa(p=>{const g=o?t.measuredBox[p]:t.layoutBox[p],y=Vn(g);g.min=r[p].min,g.max=g.min+y});else if(i==="x"||i==="y"){const p=i==="x"?"y":"x";s1(o?t.measuredBox[p]:t.layoutBox[p],r[p])}else E8(i,t.layoutBox,r)&&xa(p=>{const g=o?t.measuredBox[p]:t.layoutBox[p],y=Vn(r[p]);g.max=g.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+y)});const c=yc();Od(c,r,t.layoutBox);const u=yc();o?Od(u,e.applyTransform(a,!0),t.measuredBox):Od(u,r,t.layoutBox);const f=!w8(c);let m=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:g,layout:y}=p;if(g&&y){const x=e.options.layoutAnchor||void 0,S=tn();Fp(S,t.layoutBox,g.layoutBox,x);const A=tn();Fp(A,r,y.layoutBox,x),S8(S,A)||(m=!0),p.options.layoutRoot&&(e.relativeTarget=A,e.relativeTargetOrigin=S,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:u,layoutDelta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function mme(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function pme(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function gme(e){e.clearSnapshot()}function QR(e){e.clearMeasurements()}function yme(e){e.isLayoutDirty=!0,e.updateLayout()}function ZR(e){e.isLayoutDirty=!1}function bme(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function vme(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function JR(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function xme(e){e.resolveTargetDelta()}function wme(e){e.calcProjection()}function Sme(e){e.resetSkewAndRotation()}function Ame(e){e.removeLeadSnapshot()}function eL(e,t,n){e.translate=dt(t.translate,0,n),e.scale=dt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function tL(e,t,n,r){e.min=dt(t.min,n.min,r),e.max=dt(t.max,n.max,r)}function Mme(e,t,n,r){tL(e.x,t.x,n.x,r),tL(e.y,t.y,n.y,r)}function Tme(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const kme={duration:.45,ease:[.4,0,.1,1]},nL=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),rL=nL("applewebkit/")&&!nL("chrome/")?Math.round:$r;function aL(e){e.min=rL(e.min),e.max=rL(e.max)}function Eme(e){aL(e.x),aL(e.y)}function E8(e,t,n){return e==="position"||e==="preserve-aspect"&&!Xhe(YR(t),YR(n),.2)}function Cme(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Rme=k8({attachResizeListener:(e,t)=>lf(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Tv={current:void 0},C8=k8({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Tv.current){const e=new Rme({});e.mount(window),e.setOptions({layoutScroll:!0}),Tv.current=e}return Tv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),FS=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Lme(e=!0){const t=E.useContext(mS);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,i=E.useId();E.useEffect(()=>{if(e)return a(i)},[e]);const o=E.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const R8=E.createContext({strict:!1}),iL={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let sL=!1;function Dme(){if(sL)return;const e={};for(const t in iL)e[t]={isEnabled:n=>iL[t].some(r=>!!n[r])};n8(e),sL=!0}function L8(){return Dme(),She()}function Nme(e){const t=L8();for(const n in e)t[n]={...t[n],...e[n]};n8(t)}const jme=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Hp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||jme.has(e)}let D8=e=>!Hp(e);function Ome(e){typeof e=="function"&&(D8=t=>t.startsWith("on")?!Hp(t):e(t))}try{Ome(require("@emotion/is-prop-valid").default)}catch{}function _me(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||sn(e[a])||(D8(a)||n===!0&&Hp(a)||!t&&!Hp(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}const Ug=E.createContext({});function Ime(e,t){if(Hg(e)){const{initial:n,animate:r}=e;return{initial:n===!1||of(n)?n:void 0,animate:of(r)?r:void 0}}return e.inherit!==!1?t:{}}function Bme(e){const{initial:t,animate:n}=Ime(e,E.useContext(Ug));return E.useMemo(()=>({initial:t,animate:n}),[oL(t),oL(n)])}function oL(e){return Array.isArray(e)?e.join(" "):e}const HS=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function N8(e,t,n){for(const r in t)!sn(t[r])&&!u8(r,n)&&(e[r]=t[r])}function zme({transformTemplate:e},t){return E.useMemo(()=>{const n=HS();return PS(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Vme(e,t){const n=e.style||{},r={};return N8(r,n,e),Object.assign(r,zme(e,t)),r}function Pme(e,t){const n={},r=Vme(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"}
72`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const j8=()=>({...HS(),attrs:{}});function $me(e,t,n,r){const a=E.useMemo(()=>{const i=j8();return f8(i,t,m8(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};N8(i,e.style,e),a.style={...i,...a.style}}return a}const Fme=["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 US(e){return typeof e!="string"||e.includes("-")?!1:!!(Fme.indexOf(e)>-1||/[A-Z]/u.test(e))}function Hme(e,t,n,{latestValues:r},a,i=!1,o){const u=(o??US(e)?$me:Pme)(t,r,a,e),f=_me(t,typeof e=="string",i),m=e!==E.Fragment?{...f,...u,ref:n}:{},{children:p}=t,g=E.useMemo(()=>sn(p)?p.get():p,[p]);return E.createElement(e,{...m,children:g})}function Ume({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:Gme(n,r,a,e),renderState:t()}}function Gme(e,t,n,r){const a={},i=r(e,{});for(const g in i)a[g]=rp(i[g]);let{initial:o,animate:c}=e;const u=Hg(e),f=e8(e);t&&f&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),c===void 0&&(c=t.animate));let m=n?n.initial===!1:!1;m=m||o===!1;const p=m?c:o;if(p&&typeof p!="boolean"&&!Fg(p)){const g=Array.isArray(p)?p:[p];for(let y=0;y<g.length;y++){const x=LS(e,g[y]);if(x){const{transitionEnd:S,transition:A,...M}=x;for(const C in M){let R=M[C];if(Array.isArray(R)){const L=m?R.length-1:0;R=R[L]}R!==null&&(a[C]=R)}for(const C in S)a[C]=S[C]}}}return a}const O8=e=>(t,n)=>{const r=E.useContext(Ug),a=E.useContext(mS),i=()=>Ume(e,t,r,a);return n?i():hS(i)},Yme=O8({scrapeMotionValuesFromProps:$S,createRenderState:HS}),Wme=O8({scrapeMotionValuesFromProps:p8,createRenderState:j8}),qme=Symbol.for("motionComponentSymbol");function Xme(e,t,n){const r=E.useRef(n);E.useInsertionEffect(()=>{r.current=n});const a=E.useRef(null);return E.useCallback(i=>{var c;i&&((c=e.onMount)==null||c.call(e,i)),t&&(i?t.mount(i):t.unmount());const o=r.current;if(typeof o=="function")if(i){const u=o(i);typeof u=="function"&&(a.current=u)}else a.current?(a.current(),a.current=null):o(i);else o&&(o.current=i)},[t])}const _8=E.createContext({});function lc(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Kme(e,t,n,r,a,i){var R,L;const{visualElement:o}=E.useContext(Ug),c=E.useContext(R8),u=E.useContext(mS),f=E.useContext(FS),m=f.reducedMotion,p=f.skipAnimations,g=E.useRef(null),y=E.useRef(!1);r=r||c.renderer,!g.current&&r&&(g.current=r(e,{visualState:t,parent:o,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:m,skipAnimations:p,isSVG:i}),y.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));const x=g.current,S=E.useContext(_8);x&&!x.projection&&a&&(x.type==="html"||x.type==="svg")&&Qme(g.current,n,a,S);const A=E.useRef(!1);E.useInsertionEffect(()=>{x&&A.current&&x.update(n,u)});const M=n[HO],C=E.useRef(!!M&&typeof window<"u"&&!((R=window.MotionHandoffIsComplete)!=null&&R.call(window,M))&&((L=window.MotionHasOptimisedAnimation)==null?void 0:L.call(window,M)));return Q6(()=>{y.current=!0,x&&(A.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),C.current&&x.animationState&&x.animationState.animateChanges())}),E.useEffect(()=>{x&&(!C.current&&x.animationState&&x.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var N;(N=window.MotionHandoffMarkAsComplete)==null||N.call(window,M)}),C.current=!1),x.enteringChildren=void 0)}),x}function Qme(e,t,n,r){const{layoutId:a,layout:i,drag:o,dragConstraints:c,layoutScroll:u,layoutRoot:f,layoutAnchor:m,layoutCrossfade:p}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:I8(e.parent)),e.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!o||c&&lc(c),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:p,layoutScroll:u,layoutRoot:f,layoutAnchor:m})}function I8(e){if(e)return e.options.allowProjection!==!1?e.projection:I8(e.parent)}function kv(e,{forwardMotionProps:t=!1,type:n}={},r,a){r&&Nme(r);const i=n?n==="svg":US(e),o=i?Wme:Yme;function c(f,m){let p;const g={...E.useContext(FS),...f,layoutId:Zme(f)},{isStatic:y}=g,x=Bme(f),S=o(f,y);
vendor: 28,680 bytes, line 72
72if(!y&&typeof window<"u"){Jme();const A=epe(g);p=A.MeasureLayout,x.visualElement=Kme(e,S,g,a,A.ProjectionNode,i)}return w.jsxs(Ug.Provider,{value:x,children:[p&&x.visualElement?w.jsx(p,{visualElement:x.visualElement,...g}):null,Hme(e,f,Xme(S,x.visualElement,m),S,y,t,i)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=E.forwardRef(c);return u[qme]=e,u}function Zme({layoutId:e}){const t=E.useContext(K6).id;return t&&e!==void 0?t+"-"+e:e}function Jme(e,t){E.useContext(R8).strict}function epe(e){const t=L8(),{drag:n,layout:r}=t;if(!n&&!r)return{};const a={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function tpe(e,t){if(typeof Proxy>"u")return kv;const n=new Map,r=(i,o)=>kv(i,o,e,t),a=(i,o)=>r(i,o);return new Proxy(a,{get:(i,o)=>o==="create"?r:(n.has(o)||n.set(o,kv(o,void 0,e,t)),n.get(o))})}const npe=(e,t)=>t.isSVG??US(e)?new g8(t):new d8(t,{allowProjection:e!==E.Fragment});class rpe extends Ts{constructor(t){super(t),t.animationState||(t.animationState=Hhe(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Fg(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let ape=0;class ipe extends Ts{constructor(){super(...arguments),this.id=ape++,this.isExitComplete=!1}update(){var i;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;if(t&&r===!1){if(this.isExitComplete){const{initial:o,custom:c}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){const u=Eo(this.node,o,c);if(u){const{transition:f,transitionEnd:m,...p}=u;for(const g in p)(i=this.node.getValue(g))==null||i.jump(p[g])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const spe={animation:{Feature:rpe},exit:{Feature:ipe}};function Hf(e){return{point:{x:e.pageX,y:e.pageY}}}const ope=e=>t=>IS(t)&&e(t,Hf(t));function _d(e,t,n,r){return lf(e,t,ope(n),r)}const B8=({current:e})=>e?e.ownerDocument.defaultView:null,lL=(e,t)=>Math.abs(e-t);function lpe(e,t){const n=lL(e.x,t.x),r=lL(e.y,t.y);return Math.sqrt(n**2+r**2)}const cL=new Set(["auto","scroll"]);class z8{constructor(t,n,{transformPagePoint:r,contextWindow:a=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:c}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=x=>{this.handleScroll(x.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=jm(this.lastRawMoveEventInfo,this.transformPagePoint));const x=Ev(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,A=lpe(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!S&&!A)return;const{point:M}=x,{timestamp:C}=Sn;this.history.push({...M,timestamp:C});const{onStart:R,onMove:L}=this.handlers;S||(R&&R(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),L&&L(this.lastMoveEvent,x)},this.handlePointerMove=(x,S)=>{this.lastMoveEvent=x,this.lastRawMoveEventInfo=S,this.lastMoveEventInfo=jm(S,this.transformPagePoint),ft.update(this.updatePoint,!0)},this.handlePointerUp=(x,S)=>{this.end();const{onEnd:A,onSessionEnd:M,resumeAnimation:C}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const R=Ev(x.type==="pointercancel"?this.lastMoveEventInfo:jm(S,this.transformPagePoint),this.history);this.startEvent&&A&&A(x,R),M&&M(x,R)},!IS(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=a||window;const u=Hf(t),f=jm(u,this.transformPagePoint),{point:m}=f,{timestamp:p}=Sn;this.history=[{...m,timestamp:p}];const{onSessionStart:g}=n;g&&g(t,Ev(f,this.history));const y={passive:!0,capture:!0};this.removeListeners=Pf(_d(this.contextWindow,"pointermove",this.handlePointerMove,y),_d(this.contextWindow,"pointerup",this.handlePointerUp,y),_d(this.contextWindow,"pointercancel",this.handlePointerUp,y)),c&&this.startScrollTracking(c)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(cL.has(r.overflowX)||cL.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,a=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:a.x-n.x,y:a.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,a),ft.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Li(this.updatePoint)}}function jm(e,t){return t?{point:t(e.point)}:e}function uL(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ev({point:e},t){return{point:e,delta:uL(e,V8(t)),offset:uL(e,cpe(t)),velocity:upe(t,.1)}}function cpe(e){return e[0]}function V8(e){return e[e.length-1]}function upe(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=V8(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>nr(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&a.timestamp-r.timestamp>nr(t)*2&&(r=e[1]);const i=Pr(a.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(a.x-r.x)/i,y:(a.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function dpe(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?dt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?dt(n,e,r.max):Math.min(e,n)),e}function dL(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 fpe(e,{top:t,left:n,bottom:r,right:a}){return{x:dL(e.x,n,a),y:dL(e.y,t,r)}}function fL(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function hpe(e,t){return{x:fL(e.x,t.x),y:fL(e.y,t.y)}}function mpe(e,t){let n=.5;const r=Vn(e),a=Vn(t);return a>r?n=Hc(t.min,t.max-r,e.min):r>a&&(n=Hc(e.min,e.max-a,t.min)),_a(0,1,n)}function ppe(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 o1=.35;function gpe(e=o1){return e===!1?e=0:e===!0&&(e=o1),{x:hL(e,"left","right"),y:hL(e,"top","bottom")}}function hL(e,t,n){return{min:mL(e,t),max:mL(e,n)}}function mL(e,t){return typeof e=="number"?e:e[t]||0}const ype=new WeakMap;class bpe{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=tn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const i=p=>{n&&this.snapToCursor(Hf(p).point),this.stopAnimation()},o=(p,g)=>{const{drag:y,dragPropagation:x,onDragStart:S}=this.getProps();if(y&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ehe(y),!this.openDragLock))return;this.latestPointerEvent=p,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),xa(M=>{let C=this.getAxisMotionValue(M).get()||0;if(ja.test(C)){const{projection:R}=this.visualElement;if(R&&R.layout){const L=R.layout.layoutBox[M];L&&(C=Vn(L)*(parseFloat(C)/100))}}this.originPoint[M]=C}),S&&ft.update(()=>S(p,g),!1,!0),Zx(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},c=(p,g)=>{this.latestPointerEvent=p,this.latestPanInfo=g;const{dragPropagation:y,dragDirectionLock:x,onDirectionLock:S,onDrag:A}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:M}=g;if(x&&this.currentDirection===null){this.currentDirection=xpe(M),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",g.point,M),this.updateAxis("y",g.point,M),this.visualElement.render(),A&&ft.update(()=>A(p,g),!1,!0)},u=(p,g)=>{this.latestPointerEvent=p,this.latestPanInfo=g,this.stop(p,g),this.latestPointerEvent=null,this.latestPanInfo=null},f=()=>{const{dragSnapToOrigin:p}=this.getProps();(p||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:m}=this.getProps();this.panSession=new z8(t,{onSessionStart:i,onStart:o,onMove:c,onSessionEnd:u,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:r,contextWindow:B8(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,a=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!a||!r)return;const{velocity:o}=a;this.startAnimation(o);const{onDragEnd:c}=this.getProps();c&&ft.postRender(()=>c(r,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!Om(t,a,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=dpe(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,a=this.constraints;t&&lc(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=fpe(r.layoutBox,t):this.constraints=!1,this.elastic=gpe(n),a!==this.constraints&&!lc(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&xa(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=ppe(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!lc(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;a.root&&(a.root.scroll=void 0,a.root.updateScroll());const i=khe(r,a.root,this.visualElement.getTransformPagePoint());let o=hpe(a.layout.layoutBox,i);if(n){const c=n(Ahe(o));this.hasMutatedConstraints=!!c,c&&(o=i8(c))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},f=xa(m=>{if(!Om(m,n,this.currentDirection))return;let p=u&&u[m]||{};(o===!0||o===m)&&(p={min:0,max:0});const g=a?200:1e6,y=a?40:1e7,x={type:"inertia",velocity:r?t[m]:0,bounceStiffness:g,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...p};return this.startAxisValueAnimation(m,x)});return Promise.all(f).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Zx(this.visualElement,t),r.start(RS(t,r,0,n,this.visualElement,!1))}stopAnimation(){xa(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,a=this.visualElement.getProps()[n];return a||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){xa(n=>{const{drag:r}=this.getProps();if(!Om(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,i=this.getAxisMotionValue(n);if(a&&a.layout){const{min:o,max:c}=a.layout.layoutBox[n],u=i.get()||0;i.set(t[n]-dt(o,c,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!lc(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};xa(o=>{const c=this.getAxisMotionValue(o);if(c&&this.constraints!==!1){const u=c.get();a[o]=mpe({min:u,max:u},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),xa(o=>{if(!Om(o,t,null))return;const c=this.getAxisMotionValue(o),{min:u,max:f}=this.constraints[o];c.set(dt(u,f,a[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;ype.set(this.visualElement,this);const t=this.visualElement.current,n=_d(t,"pointerdown",f=>{const{drag:m,dragListener:p=!0}=this.getProps(),g=f.target,y=g!==t&&she(g);m&&p&&!y&&this.start(f)});let r;const a=()=>{const{dragConstraints:f}=this.getProps();lc(f)&&f.current&&(this.constraints=this.resolveRefConstraints(),r||(r=vpe(t,f.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",a);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ft.read(a);const c=lf(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:m})=>{this.isDragging&&m&&(xa(p=>{const g=this.getAxisMotionValue(p);g&&(this.originPoint[p]+=f[p].translate,g.set(g.get()+f[p].translate))}),this.visualElement.render())}));return()=>{c(),n(),o(),u&&u(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:i=!1,dragElastic:o=o1,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:i,dragElastic:o,dragMomentum:c}}}function pL(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function vpe(e,t,n){const r=MR(e,pL(n)),a=MR(t,pL(n));return()=>{r(),a()}}function Om(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function xpe(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class wpe extends Ts{constructor(t){super(t),this.removeGroupControls=$r,this.removeListeners=$r,this.controls=new bpe(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$r}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Cv=e=>(t,n)=>{e&&ft.update(()=>e(t,n),!1,!0)};class Spe extends Ts{constructor(){super(...arguments),this.removePointerDownListener=$r}onPointerDown(t){this.session=new z8(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:B8(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:Cv(t),onStart:Cv(n),onMove:Cv(r),onEnd:(i,o)=>{delete this.session,a&&ft.postRender(()=>a(i,o))}}}mount(){this.removePointerDownListener=_d(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Rv=!1;class Ape extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&a&&r.register(i),Rv&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ap.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),Rv=!0,a||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||ft.postRender(()=>{const c=o.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),_S.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;Rv=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function P8(e){const[t,n]=Lme(),r=E.useContext(K6);return w.jsx(Ape,{...e,layoutGroup:r,switchLayoutGroup:E.useContext(_8),isPresent:t,safeToRemove:n})}const Mpe={pan:{Feature:Spe},drag:{Feature:wpe,ProjectionNode:C8,MeasureLayout:P8}};function gL(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,i=r[a];i&&ft.postRender(()=>i(t,Hf(t)))}class Tpe extends Ts{mount(){const{current:t}=this.node;t&&(this.unmount=nhe(t,(n,r)=>(gL(this.node,r,"Start"),a=>gL(this.node,a,"End"))))}unmount(){}}class kpe extends Ts{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Pf(lf(this.node.current,"focus",()=>this.onFocus()),lf(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function yL(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),i=r[a];i&&ft.postRender(()=>i(t,Hf(t)))}class Epe extends Ts{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=lhe(t,(a,i)=>(yL(this.node,i,"Start"),(o,{success:c})=>yL(this.node,o,c?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const l1=new WeakMap,Lv=new WeakMap,Cpe=e=>{const t=l1.get(e.target);t&&t(e)},Rpe=e=>{e.forEach(Cpe)};function Lpe({root:e,...t}){const n=e||document;Lv.has(n)||Lv.set(n,{});const r=Lv.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(Rpe,{root:e,...t})),r[a]}function Dpe(e,t,n){const r=Lpe(t);return l1.set(e,n),r.observe(e),()=>{l1.delete(e),r.unobserve(e)}}const Npe={some:0,all:1};class jpe extends Ts{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var u;(u=this.stopObserver)==null||u.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:Npe[a]},c=f=>{const{isIntersecting:m}=f;if(this.isInView===m||(this.isInView=m,i&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:p,onViewportLeave:g}=this.node.getProps(),y=m?p:g;y&&y(f)};this.stopObserver=Dpe(this.node.current,o,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Ope(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function Ope({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const _pe={inView:{Feature:jpe},tap:{Feature:Epe},focus:{Feature:kpe},hover:{Feature:Tpe}},Ipe={layout:{ProjectionNode:C8,MeasureLayout:P8}},Bpe={...spe,..._pe,...Mpe,...Ipe},zpe=tpe(Bpe,npe);function ra(e){const t=hS(()=>vs(e)),{isStatic:n}=E.useContext(FS);if(n){const[,r]=E.useState(e);E.useEffect(()=>t.on("change",r),[])}return t}function $8(e,t){const n=ra(t()),r=()=>n.set(t());return r(),Q6(()=>{const a=()=>ft.preRender(r,!1,!0),i=e.map(o=>o.on("change",a));return()=>{i.forEach(o=>o()),Li(r)}}),n}function Vpe(e){jd.current=[],e();const t=$8(jd.current,e);return jd.current=void 0,t}function _m(e,t,n,r){if(typeof e=="function")return Vpe(e);const i=typeof t=="function"?t:yhe(t,n,r),o=Array.isArray(e)?bL(e,i):bL([e],([u])=>i(u)),c=Array.isArray(e)?void 0:e.accelerate;return c&&!c.isTransformed&&typeof t!="function"&&Array.isArray(n)&&(r==null?void 0:r.clamp)!==!1&&(o.accelerate={...c,times:t,keyframes:n,isTransformed:!0}),o}function bL(e,t){const n=hS(()=>[]);return $8(e,()=>{n.length=0;const r=e.length;for(let a=0;a<r;a++)n[a]=e[a].get();return t(n)})}function Ppe(){!VS.current&&t8();const[e]=E.useState(Vp.current);return e}function GS(e){return typeof e=="object"&&!Array.isArray(e)}function F8(e,t,n,r){return e==null?[]:typeof e=="string"&&GS(t)?OS(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(a=>a!=null):[e]}function $pe(e,t,n){return e*(t+1)+n*t}function vL(e,t,n,r){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:t.startsWith("<")?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function Fpe(e,t,n){for(let r=0;r<e.length;r++){const a=e[r];a.at>t&&a.at<n&&(Fc(e,a),r--)}}function Hpe(e,t,n,r,a,i){Fpe(e,a,i);for(let o=0;o<t.length;o++)e.push({value:t[o],at:dt(a,i,r[o]),easing:fO(n,o)})}function Upe(e,t,n=0){const r=t+1+t*n;for(let a=0;a<e.length;a++)e[a]=e[a]/r}function Gpe(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const Ype="easeInOut",Wpe=20;function qpe(e,{defaultTransition:t={},...n}={},r,a){const i=t.duration||.3,o=new Map,c=new Map,u={},f=new Map;let m=0,p=0,g=0;for(let y=0;y<e.length;y++){const x=e[y];if(typeof x=="string"){f.set(x,p);continue}else if(!Array.isArray(x)){f.set(x.name,vL(p,x.at,m,f));continue}let[S,A,M={}]=x;M.at!==void 0&&(p=vL(p,M.at,m,f));let C=0;const R=(L,N,O,$=0,T=0)=>{const j=Xpe(L),{delay:_=0,times:P=CO(j),type:U=t.type||"keyframes",repeat:W,repeatType:q,repeatDelay:ne=0,...B}=N;let{ease:G=t.ease||"easeOut",duration:F}=N;const ee=typeof _=="function"?_($,T):_,he=j.length,z=ES(U)?U:a==null?void 0:a[U||"keyframes"];if(he<=2&&z){let me=100;if(he===2&&Zpe(j)){const Oe=j[1]-j[0];me=Math.abs(Oe)}const ve={...t,...B};F!==void 0&&(ve.duration=nr(F));const Ce=MO(ve,me,z);G=Ce.ease,F=Ce.duration}F??(F=i);const Z=p+ee;P.length===1&&P[0]===0&&(P[1]=1);const re=P.length-j.length;if(re>0&&EO(P,re),j.length===1&&j.unshift(null),W&&W<Wpe){const me=F>0?ne/F:0;F=$pe(F,W,ne);const ve=[...j],Ce=[...P];G=Array.isArray(G)?[...G]:[G];const Oe=[...G],fe=q==="reverse"||q==="mirror";let ke=ve,Re=Oe;fe&&(ke=[...ve].reverse(),q==="reverse"&&(Re=[...Oe].reverse().map(ce=>typeof ce=="function"?yS(ce):ce)));for(let ce=0;ce<W;ce++){const Tt=fe&&ce%2===0,Ne=Tt?ke:ve,bt=Tt?Re:Oe,rt=(ce+1)*(1+me);me>0&&(j.push(j[j.length-1]),P.push(rt),G.push("linear")),j.push(...Ne);for(let jt=0;jt<Ne.length;jt++)P.push(Ce[jt]+rt),G.push(jt===0?"linear":fO(bt,jt-1))}Upe(P,W,me)}const ue=Z+F;Hpe(O,j,G,P,Z,ue),C=Math.max(ee+F,C),g=Math.max(ue,g)};if(sn(S)){const L=xL(S,c);R(A,M,wL("default",L))}else{const L=F8(S,A,r,u),N=L.length;for(let O=0;O<N;O++){A=A,M=M;const $=L[O],T=xL($,c);for(const j in A)R(A[j],Kpe(M,j),wL(j,T),O,N)}}m=p,p+=C}return c.forEach((y,x)=>{for(const S in y){const A=y[S];A.sort(Gpe);const M=[],C=[],R=[];for(let $=0;$<A.length;$++){const{at:T,value:j,easing:_}=A[$];M.push(j),C.push(Hc(0,g,T)),R.push(_||"easeOut")}C[0]!==0&&(C.unshift(0),M.unshift(M[0]),R.unshift(Ype)),C[C.length-1]!==1&&(C.push(1),M.push(null)),o.has(x)||o.set(x,{keyframes:{},transition:{}});const L=o.get(x);L.keyframes[S]=M;const{type:N,...O}=t;L.transition[S]={...O,duration:g,ease:R,times:C,...n}}}),o}function xL(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function wL(e,t){return t[e]||(t[e]=[]),t[e]}function Xpe(e){return Array.isArray(e)?e:[e]}function Kpe(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const Qpe=e=>typeof e=="number",Zpe=e=>e.every(Qpe);function Jpe(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=$g(e)&&!JO(e)?new g8(t):new d8(t);n.mount(e),sf.set(e,n)}function ege(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new jhe(t);n.mount(e),sf.set(e,n)}function tge(e,t){return sn(e)||typeof e=="number"||typeof e=="string"&&!GS(t)}function H8(e,t,n,r){const a=[];if(tge(e,t))a.push(M8(e,GS(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return a;const i=F8(e,t,r),o=i.length;for(let c=0;c<o;c++){const u=i[c],f=u instanceof Element?Jpe:ege;sf.has(u)||f(u);const m=sf.get(u),p={...n};"delay"in p&&typeof p.delay=="function"&&(p.delay=p.delay(c,o)),a.push(...NS(m,{...t,transition:p},{}))}}return a}function nge(e,t,n){const r=[],a=e.map(o=>{if(Array.isArray(o)&&typeof o[0]=="function"){const c=o[0],u=vs(0);return u.on("change",c),o.length===1?[u,[0,1]]:o.length===2?[u,[0,1],o[1]]:[u,o[1],o[2]]}return o});return qpe(a,t,n,{spring:af}).forEach(({keyframes:o,transition:c},u)=>{r.push(...H8(u,o,c))}),r}function rge(e){return Array.isArray(e)&&e.some(Array.isArray)}function age(e={}){const{scope:t,reduceMotion:n,skipAnimations:r}=e;function a(i,o,c){let u=[],f;const m={};if(n!==void 0&&(m.reduceMotion=n),r!==void 0&&(m.skipAnimations=r),rge(i)){const{onComplete:g,...y}=o||{};typeof g=="function"&&(f=g),u=nge(i,{...m,...y},t)}else{const{onComplete:g,...y}=c||{};typeof g=="function"&&(f=g),u=H8(i,o,{...m,...y},t)}const p=new Sfe(u);return f&&p.finished.then(f),t&&(t.animations.push(p),p.finished.then(()=>{Fc(t.animations,p)})),p}return a}const Ti=age(),fn=zpe;function SL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ige(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SL(Object(n),!0).forEach(function(r){sge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Id(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Id=function(t){return typeof t}:Id=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Id(e)}function sge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Up(){return Up=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Up.apply(this,arguments)}function oge(e,t){if(e){if(typeof e=="string")return AL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AL(e,t)}}function AL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function U8(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];
72if(!n){if(Array.isArray(e)||(n=oge(e))||t){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 73In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,c;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return i=u.done,u},e:function(u){o=!0,c=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw c}}}}function lge(e,t){var n=[],r=[];function a(i,o){if(i.length===1)n.push(i[0]),r.push(i[0]);else{for(var c=Array(i.length-1),u=0;u<c.length;u++)u===0&&n.push(i[0]),u===c.length-1&&r.push(i[u+1]),c[u]=[(1-o)*i[u][0]+o*i[u+1][0],(1-o)*i[u][1]+o*i[u+1][1]];a(c,o)}}return e.length&&a(e,t),{left:n,right:r.reverse()}}function cge(e){var t={};return e.length===4&&(t.x2=e[2][0],t.y2=e[2][1]),e.length>=3&&(t.x1=e[1][0],t.y1=e[1][1]),t.x=e[e.length-1][0],t.y=e[e.length-1][1],e.length===4?t.type="C":e.length===3?t.type="Q":t.type="L",t}function uge(e,t){t=t||2;for(var n=[],r=e,a=1/t,i=0;i<t-1;i++){var o=a/(1-a*i),c=lge(r,o);n.push(c.left),r=c.right}return n.push(r),n}function dge(e,t,n){var r=[[e.x,e.y]];return t.x1!=null&&r.push([t.x1,t.y1]),t.x2!=null&&r.push([t.x2,t.y2]),r.push([t.x,t.y]),uge(r,n).map(cge)}var fge=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,kc={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};Object.keys(kc).forEach(function(e){kc[e.toLowerCase()]=kc[e]});function c1(e,t){for(var n=Array(e),r=0;r<e;r++)n[r]=t;return n}function hge(e){return"".concat(e.type).concat(kc[e.type].map(function(t){return e[t]}).join(","))}function mge(e,t){var n={x1:"x",y1:"y",x2:"x",y2:"y"},r=["xAxisRotation","largeArcFlag","sweepFlag"];if(e.type!==t.type&&t.type.toUpperCase()!=="M"){var a={};Object.keys(t).forEach(function(i){var o=t[i],c=e[i];c===void 0&&(r.includes(i)?c=o:(c===void 0&&n[i]&&(c=e[n[i]]),c===void 0&&(c=0))),a[i]=c}),a.type=t.type,e=a}return e}function pge(e,t,n){var r=[];if(t.type==="L"||t.type==="Q"||t.type==="C")r=r.concat(dge(e,t,n));else{var a=Up({},e);a.type==="M"&&(a.type="L"),r=r.concat(c1(n-1).map(function(){return a})),r.push(t)}return r}function ML(e,t,n){var r=e.length-1,a=t.length-1,i=r/a,o=c1(a).reduce(function(u,f,m){var p=Math.floor(i*m);if(n&&p<e.length-1&&n(e[p],e[p+1])){var g=i*m%1<.5;u[p]&&(g?p>0?p-=1:p<e.length-1&&(p+=1):p<e.length-1?p+=1:p>0&&(p-=1))}return u[p]=(u[p]||0)+1,u},[]),c=o.reduce(function(u,f,m){if(m===e.length-1){var p=c1(f,Up({},e[e.length-1]));return p[0].type==="M"&&p.forEach(function(g){g.type="L"}),u.concat(p)}return u.concat(pge(e[m],e[m+1],f))},[]);return c.unshift(e[0]),c}function TL(e){for(var t=(e||"").match(fge)||[],n=[],r,a,i=0;i<t.length;++i)if(r=kc[t[i]],r){a={type:t[i]};for(var o=0;o<r.length;++o)a[r[o]]=+t[i+o+1];i+=r.length,n.push(a)}return n}function gge(e,t,n){var r=e==null?[]:e.slice(),a=t==null?[]:t.slice(),i=Id(n)==="object"?n:{excludeSegment:n,snapEndsToInput:!0},o=i.excludeSegment,c=i.snapEndsToInput;if(!r.length&&!a.length)return function(){return[]};var u=(r.length===0||r[r.length-1].type==="Z")&&(a.length===0||a[a.length-1].type==="Z");r.length>0&&r[r.length-1].type==="Z"&&r.pop(),a.length>0&&a[a.length-1].type==="Z"&&a.pop(),r.length?a.length||a.push(r[0]):r.push(a[0]);var f=Math.abs(a.length-r.length);f!==0&&(a.length>r.length?r=ML(r,a,o):a.length<r.length&&(a=ML(a,r,o))),r=r.map(function(p,g){return mge(p,a[g])});var m=r.map(function(p){return ige({},p)});return u&&(m.push({type:"Z"}),r.push({type:"Z"})),function(g){if(g===1&&c)return t??[];if(g===0)return r;for(var y=0;y<m.length;++y){var x=r[y],S=a[y],A=m[y],M=U8(kc[A.type]),C;try{for(M.s();!(C=M.n()).done;){var R=C.value;A[R]=(1-g)*x[R]+g*S[R],(R==="largeArcFlag"||R==="sweepFlag")&&(A[R]=Math.round(A[R]))}}catch(L){M.e(L)}finally{M.f()}}return m}}function yge(e,t,n){var r=TL(e),a=TL(t),i=Id(n)==="object"?n:{excludeSegment:n,snapEndsToInput:!0},o=i.excludeSegment,c=i.snapEndsToInput;if(!r.length&&!a.length)return function(){return""};var u=gge(r,a,{excludeSegment:o,snapEndsToInput:c});return function(m){if(m===1&&c)return t??"";var p=u(m),g="",y=U8(p),x;try{for(y.s();!(x=y.n()).done;){var S=x.value;g+=hge(S)}}catch(A){y.e(A)}finally{y.f()}return g}}const kL=e=>Symbol.iterator in e,EL=e=>"entries"in e,CL=(e,t)=>{const n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t
73:new Map(t.entries());if(n.size!==r.size)return!1;for(const[a,i]of n)if(!r.has(a)||!Object.is(i,r.get(a)))return!1;return!0},bge=(e,t)=>{const n=e[Symbol.iterator](),r=t[Symbol.iterator]();let a=n.next(),i=r.next();for(;!a.done&&!i.done;){if(!Object.is(a.value,i.value))return!1;a=n.next(),i=r.next()}return!!a.done&&!!i.done};function vge(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:kL(e)&&kL(t)?EL(e)&&EL(t)?CL(e,t):bge(e,t):CL({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function Er(e){const t=bd.useRef(void 0);return n=>{const r=e(n);return vge(t.current,r)?t.current:t.current=r}}var xge=/^(\d*\.?\d+)(px|em)$/,G8=/^\d*\.?\d+$/,wge=1,Sge=1e3,Age={normal:400,bold:700},Mge=e=>{const t=xge.exec(e.trim());return t===null||t[1]===void 0||t[2]===void 0?null:{value:Number.parseFloat(t[1]),unit:t[2]==="px"?"px":"em"}},Tge=e=>{const t=e.trim(),n=Age[t];if(n!==void 0)return n;if(!G8.test(t))return null;const r=Number.parseFloat(t);return r>=wge&&r<=Sge?r:null},kge=e=>{const t=e.trim();return G8.test(t)?Number.parseFloat(t):null};new G1;var YS=s3();function Y8(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=Y8(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function sa(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=Y8(e))&&(r&&(r+=" "),r+=t);return r}function wa(e,t){const n=t&&t.cache?t.cache:jge,r=t&&t.serializer?t.serializer:Dge;return(t&&t.strategy?t.strategy:Rge)(e,{cache:n,serializer:r})}function Ege(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Cge(e,t,n,r){const a=Ege(r)?r:n(r);let i=t.get(a);return typeof i>"u"&&(i=e.call(this,r),t.set(a,i)),i}function W8(e,t,n){const r=Array.prototype.slice.call(arguments,3),a=n(r);let i=t.get(a);return typeof i>"u"&&(i=e.apply(this,r),t.set(a,i)),i}function q8(e,t,n,r,a){return n.bind(t,e,r,a)}function Rge(e,t){const n=e.length===1?Cge:W8;return q8(e,this,n,t.cache.create(),t.serializer)}function Lge(e,t){return q8(e,this,W8,t.cache.create(),t.serializer)}const Dge=function(){return JSON.stringify(arguments)};class Nge{constructor(){se(this,"cache");this.cache=Object.create(null)}get(t){return this.cache[t]}set(t,n){this.cache[t]=n}}const jge={create:function(){return new Nge}},Sa={variadic:Lge},Oge=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function _ge(e){const t={};return e.replace(Oge,n=>{const r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}const Ige=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Bge(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");const t=e.split(Ige).filter(r=>r.length>0),n=[];for(const r of t){let a=r.split("/");if(a.length===0)throw new Error("Invalid number skeleton");const[i,...o]=a;for(const c of o)if(c.length===0)throw new Error("Invalid number skeleton");n.push({stem:i,options:o})}return n}
73function zge(e){return e.replace(/^(.*?)-/,"")}const RL=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,X8=/^(@+)?(\+|#+)?[rs]?$/g,Vge=/(\*)(0+)|(#+)(0+)|(0+)/g,K8=/^(0+)$/;function LL(e){const t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(X8,function(n,r,a){return typeof a!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):a==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof a=="string"?a.length:0)),""}),t}function Q8(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Pge(e){let t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){const n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!K8.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function DL(e){const t={},n=Q8(e);return n||t}function $ge(e){let t={};for(const n of e){switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=zge(n.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t={...t,notation:"scientific",...n.options.reduce((i,o)=>({...i,...DL(o)}),{})};continue;case"engineering":t={...t,notation:"engineering",...n.options.reduce((i,o)=>({...i,...DL(o)}),{})};continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(Vge,function(i,o,c,u,f,m){if(o)t.minimumIntegerDigits=c.length;else{if(u&&f)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(K8.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(RL.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(RL,function(o,c,u,f,m,p){return u==="*"?t.minimumFractionDigits=c.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:m&&p?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+p.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});const i=n.options[0];
73i==="w"?t={...t,trailingZeroDisplay:"stripIfInteger"}:i&&(t={...t,...LL(i)});continue}if(X8.test(n.stem)){t={...t,...LL(n.stem)};continue}const r=Q8(n.stem);r&&(t={...t,...r});const a=Pge(n.stem);a&&(t={...t,...a})}return t}let Lt=(function(e){return e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag",e})({}),Gp=(function(e){return e[e.number=0]="number",e[e.dateTime=1]="dateTime",e})({});function NL(e){return e.type===Lt.literal}function Fge(e){return e.type===Lt.argument}function Z8(e){return e.type===Lt.number}function J8(e){return e.type===Lt.date}function e_(e){return e.type===Lt.time}function t_(e){return e.type===Lt.select}function n_(e){return e.type===Lt.plural}function Hge(e){return e.type===Lt.pound}function r_(e){return e.type===Lt.tag}function a_(e){return!!(e&&typeof e=="object"&&e.type===Gp.number)}function u1(e){return!!(e&&typeof e=="object"&&e.type===Gp.dateTime)}let We=(function(e){return e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",e})({});const i_=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Im={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GS:["H","h","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA
73:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ku-SY":["H","hB"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Uge(e,t){let n="";for(let r=0;r<e.length;r++){const a=e.charAt(r);if(a==="j"){let i=0;for(;r+1<e.length&&e.charAt(r+1)===a;)i++,r++;let o=1+(i&1),c=i<2?1:3+(i>>1),u="a",f=Gge(t);for((f=="H"||f=="k")&&(c=0);c-- >0;)n+=u;for(;o-- >0;)n=f+n}else a==="J"?n+="H":n+=a}return n}function Gge(e){let t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}const n=e.language;let r;return n!=="root"&&(r=e.maximize().region),(Im[r||""]||Im[n||""]||Im[`${n}-001`]||Im["001"])[0]}const Yge=new RegExp(`^${i_.source}*`),Wge=new RegExp(`${i_.source}*$`);function Ye(e,t){return{start:e,end:t}}const qge=!!Object.fromEntries,Xge=!!String.prototype.trimStart,Kge=!!String.prototype.trimEnd,jL=qge?Object.fromEntries:function(t){const n={};for(const[r,a]of t)n[r]=a;return n},Qge=Xge?function(t){return t.trimStart()}:function(t){return t.replace(Yge,"")},Zge=Kge?function(t){return t.trimEnd()}:function(t){return t.replace(Wge,"")},OL=new RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");function Jge(e,t){return OL.lastIndex=t,OL.exec(e)[1]??""}class eye{constructor(t,n={}){se(this,"message");se(this,"position");se(this,"locale");se(this,"ignoreTag");se(this,"requiresOtherClause");se(this,"shouldParseSkeletons");this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}
73parse(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)}parseMessage(t,n,r){let a=[];for(;!this.isEOF();){const i=this.char();if(i===123){const o=this.parseArgument(t,r);if(o.err)return o;a.push(o.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){const o=this.clonePosition();this.bump(),a.push({type:Lt.pound,location:Ye(o,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(We.UNMATCHED_CLOSING_TAG,Ye(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&d1(this.peek()||0)){const o=this.parseTag(t,n);if(o.err)return o;a.push(o.val)}else{const o=this.parseLiteral(t,n);if(o.err)return o;a.push(o.val)}}}return{val:a,err:null}}parseTag(t,n){const r=this.clonePosition();this.bump();const a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Lt.literal,value:`<${a}/>`,location:Ye(r,this.clonePosition())},err:null};if(this.bumpIf(">")){const i=this.parseMessage(t+1,n,!0);if(i.err)return i;const o=i.val,c=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!d1(this.char()))return this.error(We.INVALID_TAG,Ye(c,this.clonePosition()));const u=this.clonePosition(),f=this.parseTagName();return a!==f?this.error(We.UNMATCHED_CLOSING_TAG,Ye(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Lt.tag,value:a,children:o,location:Ye(r,this.clonePosition())},err:null}:this.error(We.INVALID_TAG,Ye(c,this.clonePosition())))}else return this.error(We.UNCLOSED_TAG,Ye(r,this.clonePosition()))}else return this.error(We.INVALID_TAG,Ye(r,this.clonePosition()))}parseTagName(){const t=this.offset();for(this.bump();!this.isEOF()&&nye(this.char());)this.bump();return this.message.slice(t,this.offset())}parseLiteral(t,n){const r=this.clonePosition();let a="";for(;;){const o=this.tryParseQuote(n);if(o){a+=o;continue}const c=this.tryParseUnquoted(t,n);if(c){a+=c;continue}const u=this.tryParseLeftAngleBracket();if(u){a+=u;continue}break}const i=Ye(r,this.clonePosition());return{val:{type:Lt.literal,value:a,location:i},err:null}}tryParseLeftAngleBracket(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!tye(this.peek()||0))?(this.bump(),"<"):null}tryParseQuote(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();const n=[this.char()];for(this.bump();!this.isEOF();){const r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return String.fromCodePoint(...n)}tryParseUnquoted(t,n){if(this.isEOF())return null;const r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),String.fromCodePoint(r))}parseArgument(t,n){const r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(We.EXPECT_ARGUMENT_CLOSING_BRACE,Ye(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(We.EMPTY_ARGUMENT,Ye(r,this.clonePosition()));let a=this.parseIdentifierIfPossible().value;if(!a)return this.error(We.MALFORMED_ARGUMENT,Ye(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(We.EXPECT_ARGUMENT_CLOSING_BRACE,Ye(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Lt.argument,value:a,location:Ye(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(We.EXPECT_ARGUMENT_CLOSING_BRACE,Ye(r,this.clonePosition())):this.parseArgumentOptions(t,n,a,r);default:return this.error(We.MALFORMED_ARGUMENT,Ye(r,this.clonePosition()))}}parseIdentifierIfPossible(){const t=this.clonePosition(),n=this.offset(),r=Jge(this.message,n),a=n+r.length;this.bumpTo(a);const i=this.clonePosition(),o=Ye(t,i);return{value:r,location:o}}parseArgumentOptions(t,n,r,a){let i=this.clonePosition(),o=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(o){case"":return this.error(We.EXPECT_ARGUMENT_TYPE,Ye(i,c));case"number":case"date":case"time":{this.bumpSpace();let u=null;if(this.bumpIf(",")){this.bumpSpace();const p=this.clonePosition(),g=this.parseSimpleArgStyleIfPossible();if(g.err)return g;const y=Zge(g.val);if(y.length===0)return this.error(We.EXPECT_ARGUMENT_STYLE,Ye(this.clonePosition(),this.clonePosition()));const x=Ye(p,this.clonePosition());u={style:y,styleLocation:x}}const f=this.tryParseArgumentClose(a);if(f.err)return f;const m=Ye(a,this.clonePosition());if(u&&u.style.startsWith("::")){let p=Qge(u.style.slice(2));if(o==="number"){const g=this.parseNumberSkeletonFromString(p,u.styleLocation);return g.err?g:{val:{type:Lt.number,value:r,location:m,style:g.val},err:null}}else{if(p.length===0)return this.error(We.EXPECT_DATE_TIME_SKELETON,m);let g=p;this.locale&&(g=Uge(p,this.locale));const y={type:Gp.dateTime,pattern:g,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?_ge(g):{}};return{val:{type:o==="date"?Lt.date:Lt.time,value:r,location:m,style:y},err:null}}}return{val:{type:o==="number"?Lt.number:o==="date"?Lt.date:Lt.time,value:r,location:m,style:(u==null?void 0:u.style)??null},err:null}}
73case"plural":case"selectordinal":case"select":{const u=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(We.EXPECT_SELECT_ARGUMENT_OPTIONS,Ye(u,{...u}));this.bumpSpace();let f=this.parseIdentifierIfPossible(),m=0;if(o!=="select"&&f.value==="offset"){if(!this.bumpIf(":"))return this.error(We.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ye(this.clonePosition(),this.clonePosition()));this.bumpSpace();const x=this.tryParseDecimalInteger(We.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,We.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(x.err)return x;this.bumpSpace(),f=this.parseIdentifierIfPossible(),m=x.val}const p=this.tryParsePluralOrSelectOptions(t,o,n,f);if(p.err)return p;const g=this.tryParseArgumentClose(a);if(g.err)return g;const y=Ye(a,this.clonePosition());return o==="select"?{val:{type:Lt.select,value:r,options:jL(p.val),location:y},err:null}:{val:{type:Lt.plural,value:r,options:jL(p.val),offset:m,pluralType:o==="plural"?"cardinal":"ordinal",location:y},err:null}}default:return this.error(We.INVALID_ARGUMENT_TYPE,Ye(i,c))}}tryParseArgumentClose(t){return this.isEOF()||this.char()!==125?this.error(We.EXPECT_ARGUMENT_CLOSING_BRACE,Ye(t,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let t=0;const n=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(We.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ye(a,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}return{val:this.message.slice(n.offset,this.offset()),err:null}}parseNumberSkeletonFromString(t,n){let r=[];try{r=Bge(t)}catch{return this.error(We.INVALID_NUMBER_SKELETON,n)}return{val:{type:Gp.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?$ge(r):{}},err:null}}tryParsePluralOrSelectOptions(t,n,r,a){let i=!1;const o=[],c=new Set;let{value:u,location:f}=a;for(;;){if(u.length===0){const y=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){const x=this.tryParseDecimalInteger(We.EXPECT_PLURAL_ARGUMENT_SELECTOR,We.INVALID_PLURAL_ARGUMENT_SELECTOR);if(x.err)return x;f=Ye(y,this.clonePosition()),u=this.message.slice(y.offset,this.offset())}else break}if(c.has(u))return this.error(n==="select"?We.DUPLICATE_SELECT_ARGUMENT_SELECTOR:We.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);u==="other"&&(i=!0),this.bumpSpace();const m=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?We.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:We.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ye(this.clonePosition(),this.clonePosition()));const p=this.parseMessage(t+1,n,r);if(p.err)return p;const g=this.tryParseArgumentClose(m);if(g.err)return g;o.push([u,{value:p.val,location:Ye(m,this.clonePosition())}]),c.add(u),this.bumpSpace(),{value:u,location:f}=this.parseIdentifierIfPossible()}return o.length===0?this.error(n==="select"?We.EXPECT_SELECT_ARGUMENT_SELECTOR:We.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ye(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(We.MISSING_OTHER_CLAUSE,Ye(this.clonePosition(),this.clonePosition())):{val:o,err:null}}tryParseDecimalInteger(t,n){let r=1;const a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);let i=!1,o=0;for(;!this.isEOF();){const u=this.char();if(u>=48&&u<=57)i=!0,o=o*10+(u-48),this.bump();else break}const c=Ye(a,this.clonePosition());return i?(o*=r,Number.isSafeInteger(o)?{val:o,err:null}:this.error(n,c)):this.error(t,c)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){const t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");const n=this.message.codePointAt(t);if(n===void 0)throw Error(`Offset ${t} is at invalid UTF-16 code unit boundary`);return n}error(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}}bump(){if(this.isEOF())return;const t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}bumpIf(t){if(this.message.startsWith(t,this.offset())){for(let n=0;n<t.length;n++)this.bump();return!0}return!1}bumpUntil(t){const n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)}bumpTo(t){if(this.offset()>t)throw Error(`targetOffset ${t} must be greater than or equal to the current offset ${this.offset()}`);for(t=Math.min(t,this.message.length);;){const n=this.offset();if(n===t)break;
73if(n>t)throw Error(`targetOffset ${t} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(;!this.isEOF()&&rye(this.char());)this.bump()}peek(){if(this.isEOF())return null;const t=this.char(),n=this.offset();return this.message.charCodeAt(n+(t>=65536?2:1))??null}}function d1(e){return e>=97&&e<=122||e>=65&&e<=90}function tye(e){return d1(e)||e===47}function nye(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function rye(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function f1(e){e.forEach(t=>{if(delete t.location,t_(t)||n_(t))for(const n in t.options)delete t.options[n].location,f1(t.options[n].value);else Z8(t)&&a_(t.style)||(J8(t)||e_(t))&&u1(t.style)?delete t.style.location:r_(t)&&f1(t.children)})}function aye(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};const n=new eye(e,t).parse();if(n.err){const r=SyntaxError(We[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||f1(n.val),n.val}let ks=(function(e){return e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API",e})({});
73class Es extends Error{constructor(n,r,a){super(n);se(this,"code");se(this,"originalMessage");this.code=r,this.originalMessage=a}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}}class _L extends Es{constructor(t,n,r,a){super(`Invalid values for "${t}": "${n}". Options are "${Object.keys(r).join('", "')}"`,ks.INVALID_VALUE,a)}}class iye extends Es{constructor(t,n,r){super(`Value for "${t}" must be of type ${n}`,ks.INVALID_VALUE,r)}}class sye extends Es{constructor(t,n){super(`The intl string context variable "${t}" was not provided to the string "${n}"`,ks.MISSING_VALUE,n)}}let pr=(function(e){return e[e.literal=0]="literal",e[e.object=1]="object",e})({});function oye(e){return e.length<2?e:e.reduce((t,n)=>{const r=t[t.length-1];return!r||r.type!==pr.literal||n.type!==pr.literal?t.push(n):r.value+=n.value,t},[])}function s_(e){return typeof e=="function"}function ip(e,t,n,r,a,i,o){if(e.length===1&&NL(e[0]))return[{type:pr.literal,value:e[0].value}];const c=[];for(const u of e){if(NL(u)){c.push({type:pr.literal,value:u.value});continue}if(Hge(u)){typeof i=="number"&&c.push({type:pr.literal,value:n.getNumberFormat(t).format(i)});continue}const{value:f}=u;if(!(a&&f in a))throw new sye(f,o);let m=a[f];if(Fge(u)){(!m||typeof m=="string"||typeof m=="number"||typeof m=="bigint")&&(m=typeof m=="string"||typeof m=="number"||typeof m=="bigint"?String(m):""),c.push({type:typeof m=="string"?pr.literal:pr.object,value:m});continue}if(J8(u)){const p=typeof u.style=="string"?r.date[u.style]:u1(u.style)?u.style.parsedOptions:void 0;c.push({type:pr.literal,value:n.getDateTimeFormat(t,p).format(m)});continue}if(e_(u)){const p=typeof u.style=="string"?r.time[u.style]:u1(u.style)?u.style.parsedOptions:r.time.medium;c.push({type:pr.literal,value:n.getDateTimeFormat(t,p).format(m)});continue}if(Z8(u)){const p=typeof u.style=="string"?r.number[u.style]:a_(u.style)?u.style.parsedOptions:void 0;if(p&&p.scale){const g=p.scale||1;if(typeof m=="bigint"){if(!Number.isInteger(g))throw new TypeError(`Cannot apply fractional scale ${g} to bigint value. Scale must be an integer when formatting bigint.`);m=m*BigInt(g)}else m=m*g}c.push({type:pr.literal,value:n.getNumberFormat(t,p).format(m)});continue}if(r_(u)){const{children:p,value:g}=u,y=a[g];if(!s_(y))throw new iye(g,"function",o);const x=ip(p,t,n,r,a,i);let S=y(x.map(A=>A.value));Array.isArray(S)||(S=[S]),c.push(...S.map(A=>({type:typeof A=="string"?pr.literal:pr.object,value:A})))}if(t_(u)){const p=m,g=(Object.prototype.hasOwnProperty.call(u.options,p)?u.options[p]:void 0)||u.options.other;if(!g)throw new _L(u.value,m,Object.keys(u.options),o);c.push(...ip(g.value,t,n,r,a));continue}if(n_(u)){const p=`=${m}`;let g=Object.prototype.hasOwnProperty.call(u.options,p)?u.options[p]:void 0;if(!g){if(!Intl.PluralRules)throw new Es(`Intl.PluralRules is not available in this environment. 74Try polyfilling it using "@formatjs/intl-pluralrules" 75`,ks.MISSING_INTL_API,o);const x=typeof m=="bigint"?Number(m):m,S=n.getPluralRules(t,{type:u.pluralType}).select(x-(u.offset||0));g=(Object.prototype.hasOwnProperty.call(u.options,S)?u.options[S]:void 0)||u.options.other}if(!g)throw new _L(u.value,m,Object.keys(u.options),o);const y=typeof m=="bigint"?Number(m):m;c.push(...ip(g.value,t,n,r,a,y-(u.offset||0)));continue}}return oye(c)}function lye(e,t){return t?{...e,...t,...Object.keys(e).reduce((n,r)=>(n[r]={...e[r],...t[r]},n),{})}:e}function cye(e,t){return t?Object.keys(e).reduce((n,r)=>(n[r]=lye(e[r],t[r]),n),{...e}):e}function Dv(e){return{create(){return{get(t){return e[t]},set(t,n){e[t]=n}}}}}function uye(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:wa((...t)=>new Intl.NumberFormat(...t),{cache:Dv(e.number),strategy:Sa.variadic}),getDateTimeFormat:wa((...t)=>new Intl.DateTimeFormat(...t),{cache:Dv(e.dateTime),strategy:Sa.variadic}),getPluralRules:wa((...t)=>new Intl.PluralRules(...t),{cache:Dv(e.pluralRules),strategy:Sa.variadic})}}const Zn=class Zn{constructor(t,n=Zn.defaultLocale,r,a){se(this,"ast");se(this,"locales");se(this,"resolvedLocale");se(this,"formatters");se(this,"formats");se(this,"message");se(this,"formatterCache",{number:{},dateTime:{},pluralRules:{}});se(this,"format",t=>{const n=this.formatToParts(t);if(n.length===1)return n[0].value;const r=n.reduce((a,i)=>(!a.length||i.type!==pr.literal||typeof a[a.length-1]!="string"?a.push(i.value):a[a.length-1]+=i.value,a),[]);return r.length<=1?r[0]||"":r});se(this,"formatToParts",t=>ip(this.ast,this.locales,this.formatters,this.formats,t,void 0,this.message));se(this,"resolvedOptions",()=>{var t;return{locale:((t=this.resolvedLocale)==null?void 0:t.toString())||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}});se(this,"getAst",()=>this.ast);if(this.locales=n,this.resolvedLocale=Zn.resolveLocale(n),typeof t=="string"){if(this.message=t,!Zn.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");const{...i}=a||{};this.ast=Zn.__parse(t,{...i,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=cye(Zn.formats,r),this.formatters=a&&a.formatters||uye(this.formatterCache)}static get defaultLocale(){return Zn.memoizedDefaultLocale||(Zn.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),Zn.memoizedDefaultLocale}};se(Zn,"memoizedDefaultLocale",null),se(Zn,"resolveLocale",t=>{if(typeof Intl.Locale>"u")return;const n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}),se(Zn,"__parse",aye),se(Zn,"formats",{number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}});let Yp=Zn,Uf=(function(e){return e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION",e})({});
75class sl extends Error{constructor(n,r,a){const i=a?a instanceof Error?a:new Error(String(a)):void 0;super(`[@formatjs/intl Error ${n}] ${r} 76${i?` 77${i.message} 78${i.stack}`:""}`);se(this,"code");this.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,sl)}}class dye extends sl{constructor(t,n){super(Uf.UNSUPPORTED_FORMATTER,t,n)}}class fye extends sl{constructor(t,n){super(Uf.INVALID_CONFIG,t,n)}}class IL extends sl{constructor(t,n){super(Uf.MISSING_DATA,t,n)}}class Hr extends sl{constructor(n,r,a){super(Uf.FORMAT_ERROR,`${n} 79Locale: ${r} 80`,a);se(this,"descriptor");se(this,"locale");this.locale=r}}class Nv extends Hr{constructor(n,r,a,i){super(`${n} 81MessageID: ${a==null?void 0:a.id} 82Default Message: ${a==null?void 0:a.defaultMessage} 83Description: ${a==null?void 0:a.description} 84`,r,i);se(this,"descriptor");se(this,"locale");this.descriptor=a,this.locale=r}}class hye extends sl{constructor(n,r){super(Uf.MISSING_TRANSLATION,`Missing message: "${n.id}" for locale "${r}", using ${n.defaultMessage?`default message (${typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(a=>a.value??JSON.stringify(a)).join()})`:"id"} as fallback.`);se(this,"descriptor");this.descriptor=n}}function mye(e,t,n=Error){if(!e)throw new n(t)}function ou(e,t,n={}){return t.reduce((r,a)=>(a in e?r[a]=e[a]:a in n&&(r[a]=n[a]),r),{})}const pye=e=>{},gye=e=>{},o_={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:pye,onWarn:gye};function l_(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function lo(e){return{create(){return{get(t){return e[t]},set(t,n){e[t]=n}}}}}function yye(e=l_()){const t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,a=wa((...c)=>new Intl.DateTimeFormat(...c),{cache:lo(e.dateTime),strategy:Sa.variadic}),i=wa((...c)=>new Intl.NumberFormat(...c),{cache:lo(e.number),strategy:Sa.variadic}),o=wa((...c)=>new Intl.PluralRules(...c),{cache:lo(e.pluralRules),strategy:Sa.variadic});return{getDateTimeFormat:a,getNumberFormat:i,getMessageFormat:wa((c,u,f,m)=>new Yp(c,u,f,{formatters:{getNumberFormat:i,getDateTimeFormat:a,getPluralRules:o},...m}),{cache:lo(e.message),strategy:Sa.variadic}),getRelativeTimeFormat:wa((...c)=>new t(...c),{cache:lo(e.relativeTime),strategy:Sa.variadic}),getPluralRules:o,getListFormat:wa((...c)=>new n(...c),{cache:lo(e.list),strategy:Sa.variadic}),getDisplayNames:wa((...c)=>new r(...c),{cache:lo(e.displayNames),strategy:Sa.variadic})}}function WS(e,t,n,r){const a=e&&e[t];let i;if(a&&(i=a[n]),i)return i;r(new dye(`No ${t} format named: ${n}`))}function Bm(e,t){return Object.keys(e).reduce((n,r)=>(n[r]={timeZone:t,...e[r]},n),{})}function BL(e,t){return Object.keys({...e,...t}).reduce((r,a)=>(r[a]={...e[a],...t[a]},r),{})}function zL(e,t){if(!t)return e;const n=Yp.formats;return{...n,...e,date:BL(Bm(n.date,t),Bm(e.date||{},t)),time:BL(Bm(n.time,t),Bm(e.time||{},t))}}const h1=({locale:e,formats:t,messages:n,defaultLocale:r,defaultFormats:a,fallbackOnEmptyString:i,onError:o,timeZone:c,defaultRichTextElements:u},f,m={id:""},p,g)=>{const{id:y,defaultMessage:x}=m;mye(!!y,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");const S=String(y),A=n&&Object.prototype.hasOwnProperty.call(n,S)&&n[S];if(Array.isArray(A)&&A.length===1&&A[0].type===Lt.literal)return A[0].value;if(p={...u,...p},t=zL(t,c),a=zL(a,c),!A){if(i===!1&&A==="")return A;if((!x||e&&e.toLowerCase()!==r.toLowerCase())&&o(new hye(m,e)),x)try{return f.getMessageFormat(x,r,a,g).format(p)}catch(M){return o(new Nv(`Error formatting default message for: "${S}", rendering default message verbatim`,e,m,M)),typeof x=="string"?x:S}return S}try{return f.getMessageFormat(A,e,t,{formatters:f,...g}).format(p)}catch(M){o(new Nv(`Error formatting message: "${S}", using ${x?"default message":"id"} as fallback.`,e,m,M))}if(x)try{return f.getMessageFormat(x,r,a,g).format(p)}catch(M){o(new Nv(`Error formatting the default message for: "${S}", rendering message verbatim`,e,m,M))}
84return typeof A=="string"?A:typeof x=="string"?x:S},bye=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Gf({locale:e,formats:t,onError:n,timeZone:r},a,i,o={}){const{format:c}=o,u={...r&&{timeZone:r},...c&&WS(t,a,c,n)};let f=ou(o,bye,u);return a==="time"&&!f.hour&&!f.minute&&!f.second&&!f.timeStyle&&!f.dateStyle&&(f={...f,hour:"numeric",minute:"numeric"}),i(e,f)}function vye(e,t,n,r={}){const a=typeof n=="string"?new Date(n||0):n;try{return Gf(e,"date",t,r).format(a)}catch(i){e.onError(new Hr("Error formatting date.",e.locale,i))}return String(a)}function xye(e,t,n,r={}){const a=typeof n=="string"?new Date(n||0):n;try{return Gf(e,"time",t,r).format(a)}catch(i){e.onError(new Hr("Error formatting time.",e.locale,i))}return String(a)}function wye(e,t,n,r,a={}){const i=typeof n=="string"?new Date(n||0):n,o=typeof r=="string"?new Date(r||0):r;try{return Gf(e,"dateTimeRange",t,a).formatRange(i,o)}catch(c){e.onError(new Hr("Error formatting date time range.",e.locale,c))}return String(i)}function Sye(e,t,n,r={}){const a=typeof n=="string"?new Date(n||0):n;try{return Gf(e,"date",t,r).formatToParts(a)}catch(i){e.onError(new Hr("Error formatting date.",e.locale,i))}return[]}function Aye(e,t,n,r={}){const a=typeof n=="string"?new Date(n||0):n;try{return Gf(e,"time",t,r).formatToParts(a)}catch(i){e.onError(new Hr("Error formatting time.",e.locale,i))}return[]}const Mye=["style","type","fallback","languageDisplay"];function Tye({locale:e,onError:t},n,r,a){Intl.DisplayNames||t(new Es(`Intl.DisplayNames is not available in this environment. 85Try polyfilling it using "@formatjs/intl-displaynames" 86`,ks.MISSING_INTL_API));const o=ou(a,Mye);try{return n(e,o).of(r)}catch(c){t(new Hr("Error formatting display name.",e,c))}}const kye=["type","style"],VL=Date.now();function Eye(e){return`${VL}_${e}_${VL}`}function Cye(e,t,n,r={}){const a=c_(e,t,n,r).reduce((i,o)=>{const c=o.value;return typeof c!="string"?i.push(c):typeof i[i.length-1]=="string"?i[i.length-1]+=c:i.push(c),i},[]);return a.length===1?a[0]:a.length===0?"":a}function c_({locale:e,onError:t},n,r,a={}){Intl.ListFormat||t(new Es(`Intl.ListFormat is not available in this environment. 87Try polyfilling it using "@formatjs/intl-listformat" 88`,ks.MISSING_INTL_API));const o=ou(a,kye);try{const c={},u=Array.from(r).map((f,m)=>{if(typeof f=="object"&&f!==null){const p=Eye(m);return c[p]=f,p}return String(f)});return n(e,o).formatToParts(u).map(f=>f.type==="literal"?f:{...f,value:c[f.value]||f.value})}catch(c){t(new Hr("Error formatting list.",e,c))}return r}const Rye=["type"];function Lye({locale:e,onError:t},n,r,a={}){Intl.PluralRules||t(new Es(`Intl.PluralRules is not available in this environment. 89Try polyfilling it using "@formatjs/intl-pluralrules" 90`,ks.MISSING_INTL_API));const i=ou(a,Rye);try{return n(e,i).select(r)}catch(o){t(new Hr("Error formatting plural.",e,o))}return"other"}const Dye=["numeric","style"];function Nye({locale:e,formats:t,onError:n},r,a={}){const{format:i}=a,o=!!i&&WS(t,"relative",i,n)||{},c=ou(a,Dye,o);return r(e,c)}function jye(e,t,n,r,a={}){r||(r="second"),Intl.RelativeTimeFormat||e.onError(new Es(`Intl.RelativeTimeFormat is not available in this environment. 91Try polyfilling it using "@formatjs/intl-relativetimeformat" 92`,ks.MISSING_INTL_API));try{return Nye(e,t,a).format(n,r)}catch(o){e.onError(new Hr("Error formatting relative time.",e.locale,o))}return String(n)}const Oye=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function u_({locale:e,formats:t,onError:n},r,a={}){const{format:i}=a,o=i&&WS(t,"number",i,n)||{},c=ou(a,Oye,o);return r(e,c)}function _ye(e,t,n,r={}){try{return u_(e,t,r).format(n)}catch(a){e.onError(new Hr("Error formatting number.",e.locale,a))}return String(n)}function Iye(e,t,n,r={}){try{return u_(e,t,r).formatToParts(n)}catch(a){e.onError(new Hr("Error formatting number.",e.locale,a))}return[]}function Bye(e){return typeof(e?e[Object.keys(e)[0]]:void 0)=="string"}function zye(e){e.onWarn&&e.defaultRichTextElements&&Bye(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. 93Please consider using "@formatjs/cli" to pre-compile your messages for performance. 94For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function Vye(e,t){const n=yye(t),r={...o_,...e},{locale:a,defaultLocale:i,onError:o}=r;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&o?o(new IL(`Missing locale data for locale: "${a}" in Intl.NumberFormat. Using default locale: "${i}" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details`)):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&o&&o(new IL(`Missing locale data for locale: "${a}" in Intl.DateTimeFormat. Using default locale: "${i}" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details`)):(o&&o(new fye(`"locale" was not configured, using "${i}" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details`)),r.locale=r.defaultLocale||"en"),zye(r),{...r,formatters:n,formatNumber:_ye.bind(null,r,n.getNumberFormat),formatNumberToParts:Iye.bind(null,r,n.getNumberFormat),formatRelativeTime:jye.bind(null,r,n.getRelativeTimeFormat),formatDate:v
vendor: 4,371 bytes, lines 94-101
94ye.bind(null,r,n.getDateTimeFormat),formatDateToParts:Sye.bind(null,r,n.getDateTimeFormat),formatTime:xye.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:wye.bind(null,r,n.getDateTimeFormat),formatTimeToParts:Aye.bind(null,r,n.getDateTimeFormat),formatPlural:Lye.bind(null,r,n.getPluralRules),formatMessage:h1.bind(null,r,n),$t:h1.bind(null,r,n),formatList:Cye.bind(null,r,n.getListFormat),formatListToParts:c_.bind(null,r,n.getListFormat),formatDisplayName:Tye.bind(null,r,n.getDisplayNames)}}function Pye(e,t,n=Error){if(!e)throw new n(t)}function d_(e){Pye(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}const f_={...o_,textComponent:E.Fragment},h_=e=>E.Children.toArray(e).map((n,r)=>E.isValidElement(n)?w.jsx(E.Fragment,{children:n},r):n);function $ye(e){return function(t){return e(h_(t))}}function Fye(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),a=n.length;if(r.length!==a)return!1;for(var i=0;i<a;i++){var o=n[i];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}var jv={exports:{}},at={};/** @license React v16.13.1 95 * react-is.production.min.js 96 * 97 * Copyright (c) Facebook, Inc. and its affiliates. 98 * 99 * This source code is licensed under the MIT license found in the 100 * LICENSE file in the root directory of this source tree. 101 */var PL;function Hye(){if(PL)return at;PL=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,M=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function R(N){if(typeof N=="object"&&N!==null){var O=N.$$typeof;switch(O){case t:switch(N=N.type,N){case u:case f:case r:case i:case a:case p:return N;default:switch(N=N&&N.$$typeof,N){case c:case m:case x:case y:case o:return N;default:return O}}case n:return O}}}function L(N){return R(N)===f}return at.AsyncMode=u,at.ConcurrentMode=f,at.ContextConsumer=c,at.ContextProvider=o,at.Element=t,at.ForwardRef=m,at.Fragment=r,at.Lazy=x,at.Memo=y,at.Portal=n,at.Profiler=i,at.StrictMode=a,at.Suspense=p,at.isAsyncMode=function(N){return L(N)||R(N)===u},at.isConcurrentMode=L,at.isContextConsumer=function(N){return R(N)===c},at.isContextProvider=function(N){return R(N)===o},at.isElement=function(N){return typeof N=="object"&&N!==null&&N.$$typeof===t},at.isForwardRef=function(N){return R(N)===m},at.isFragment=function(N){return R(N)===r},at.isLazy=function(N){return R(N)===x},at.isMemo=function(N){return R(N)===y},at.isPortal=function(N){return R(N)===n},at.isProfiler=function(N){return R(N)===i},at.isStrictMode=function(N){return R(N)===a},at.isSuspense=function(N){return R(N)===p},at.isValidElementType=function(N){return typeof N=="string"||typeof N=="function"||N===r||N===f||N===i||N===a||N===p||N===g||typeof N=="object"&&N!==null&&(N.$$typeof===x||N.$$typeof===y||N.$$typeof===o||N.$$typeof===c||N.$$typeof===m||N.$$typeof===A||N.$$typeof===M||N.$$typeof===C||N.$$typeof===S)},at.typeOf=R,at}var $L;function Uye(){return $L||($L=1,jv.exports=Hye()),jv.exports}var Ov,FL;function Gye(){if(FL)return Ov;FL=1;var e=Uye(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=a;function o(x){return e.isMemo(x)?a:i[x.$$typeof]||t}var c=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,g=Object.prototype;
101function y(x,S,A){if(typeof S!="string"){if(g){var M=p(S);M&&M!==g&&y(x,M,A)}var C=u(S);f&&(C=C.concat(f(S)));for(var R=o(x),L=o(S),N=0;N<C.length;++N){var O=C[N];if(!n[O]&&!(A&&A[O])&&!(L&&L[O])&&!(R&&R[O])){var $=m(S,O);try{c(x,O,$)}catch{}}}}return x}return Ov=y,Ov}Gye();const m_=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=E.createContext(null)):E.createContext(null),{Consumer:vEe,Provider:Yye}=m_,Wye=Yye,qye=m_;function p_(){const e=E.useContext(qye);return d_(e),e}var g_=(function(e){return e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName",e})(g_||{}),y_=(function(e){return e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts",e})(y_||{});function b_(e){const t=n=>{const r=p_(),{value:a,children:i,...o}=n,c=typeof a=="string"?new Date(a||0):a,u=e==="formatDate"?r.formatDateToParts(c,o):r.formatTimeToParts(c,o);return i(u)};return t.displayName=y_[e],t}function Yf(e){const t=n=>{const r=p_(),{value:a,children:i,...o}=n,c=r[e](a,o);if(typeof i=="function")return i(c);const u=r.textComponent||E.Fragment;return w.jsx(u,{children:c})};return t.displayName=g_[e],t}function v_(e){return e&&Object.keys(e).reduce((t,n)=>{const r=e[n];return t[n]=s_(r)?$ye(r):r,t},{})}const HL=(e,t,n,r,...a)=>{const i=v_(r),o=h1(e,t,n,i,...a);return Array.isArray(o)?h_(o):o},UL=({defaultRichTextElements:e,...t},n)=>{const r=v_(e),a=Vye({...f_,...t,defaultRichTextElements:r},n),i={locale:a.locale,timeZone:a.timeZone,fallbackOnEmptyString:a.fallbackOnEmptyString,formats:a.formats,defaultLocale:a.defaultLocale,defaultFormats:a.defaultFormats,messages:a.messages,onError:a.onError,defaultRichTextElements:r};return{...a,formatMessage:HL.bind(null,i,a.formatters),$t:HL.bind(null,i,a.formatters)}};function _v(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}class m1 extends E.PureComponent{constructor(){super(...arguments);se(this,"cache",l_());se(this,"state",{cache:this.cache,intl:UL(_v(this.props),this.cache),prevConfig:_v(this.props)})}static getDerivedStateFromProps(n,{prevConfig:r,cache:a}){const i=_v(n);return Fye(r,i)?null:{intl:UL(i,a),prevConfig:i}}render(){return d_(this.state.intl),w.jsx(Wye,{value:this.state.intl,children:this.props.children})}}se(m1,"displayName","IntlProvider"),se(m1,"defaultProps",f_);Yf("formatDate");Yf("formatTime");Yf("formatNumber");Yf("formatList");Yf("formatDisplayName");b_("formatDate");b_("formatTime");const p1=Math.min,Ec=Math.max,Wp=Math.round,Ci=e=>({x:e,y:e}),Xye={left:"right",right:"left",bottom:"top",top:"bottom"};function Kye(e,t,n){return Ec(e,p1(t,n))}function Gg(e,t){return typeof e=="function"?e(t):e}function Gc(e){return e.split("-")[0]}function Yg(e){return e.split("-")[1]}function x_(e){return e==="x"?"y":"x"}function w_(e){return e==="y"?"height":"width"}function ds(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function S_(e){return x_(ds(e))}function Qye(e,t,n){n===void 0&&(n=!1);const r=Yg(e),a=S_(e),i=w_(a);let o=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=qp(o)),[o,qp(o)]}function Zye(e){const t=qp(e);return[g1(e),t,g1(t)]}function g1(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const GL=["left","right"],YL=["right","left"],Jye=["top","bottom"],e0e=["bottom","top"];function t0e(e,t,n){switch(e){case"top":case"bottom":return n?t?YL:GL:t?GL:YL;case"left":case"right":return t?Jye:e0e;default:return[]}}function n0e(e,t,n,r){const a=Yg(e);let i=t0e(Gc(e),n==="start",r);return a&&(i=i.map(o=>o+"-"+a),t&&(i=i.concat(i.map(g1)))),i}function qp(e){const t=Gc(e);return Xye[t]+e.slice(t.length)}function r0e(e){var t,n,r,a;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(r=e.bottom)!=null?r:0,left:(a=e.left)!=null?a:0}}function a0e(e){return typeof e!="number"?r0e(e):{top:e,right:e,bottom:e,left:e}}function Xp(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function WL(e,t,n){let{reference:r,floating:a}=e;const i=ds(t),o=S_(t),c=w_(o),u=Gc(t),f=i==="y",m=r.x+r.width/2-a.width/2,p=r.y+r.height/2-a.height/2,g=r[c]/2-a[c]/2;let y;switch(u){case"top":y={x:m,y:r.y-a.height};break;case"bottom":y={x:m,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:p};break;case"left":y={x:r.x-a.width,y:p};break;default:y={x:r.x,y:r.y}}const x=Yg(t);return x&&(y[o]+=g*(x==="end"?1:-1)*(n&&f?-1:1)),y}async function i0e(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:i,rects:o,elements:c,strategy:u}=e,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:g=!1,padding:y=0}=Gg(t,e),x=a0e(y),A=c[g?p==="floating"?"reference":"floating":p],M=Xp(await i.getClippingRect
vendor: 5,725 bytes, line 101
101({element:(n=await(i.isElement==null?void 0:i.isElement(A)))==null||n?A:A.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:f,rootBoundary:m,strategy:u})),C=p==="floating"?{x:r,y:a,width:o.floating.width,height:o.floating.height}:o.reference,R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),L=await(i.isElement==null?void 0:i.isElement(R))&&await(i.getScale==null?void 0:i.getScale(R))||{x:1,y:1},N=Xp(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:C,offsetParent:R,strategy:u}):C);return{top:(M.top-N.top+x.top)/L.y,bottom:(N.bottom-M.bottom+x.bottom)/L.y,left:(M.left-N.left+x.left)/L.x,right:(N.right-M.right+x.right)/L.x}}const s0e=50,o0e=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:o}=n,c=o.detectOverflow?o:{...o,detectOverflow:i0e},u=await(o.isRTL==null?void 0:o.isRTL(t));let f=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:p}=WL(f,r,u),g=r,y=0;const x={};for(let S=0;S<i.length;S++){const A=i[S];if(!A)continue;const{name:M,fn:C}=A,{x:R,y:L,data:N,reset:O}=await C({x:m,y:p,initialPlacement:r,placement:g,strategy:a,middlewareData:x,rects:f,platform:c,elements:{reference:e,floating:t}});m=R??m,p=L??p,x[M]={...x[M],...N},O&&y<s0e&&(y++,typeof O=="object"&&(O.placement&&(g=O.placement),O.rects&&(f=O.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):O.rects),{x:m,y:p}=WL(f,g,u)),S=-1)}return{x:m,y:p,placement:g,strategy:a,middlewareData:x}},l0e=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:i,rects:o,initialPlacement:c,platform:u,elements:f}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:S=!0,...A}=Gg(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const M=Gc(a),C=ds(c),R=Gc(c)===c,L=await(u.isRTL==null?void 0:u.isRTL(f.floating)),N=g||(R||!S?[qp(c)]:Zye(c)),O=x!=="none";!g&&O&&N.push(...n0e(c,S,x,L));const $=[c,...N],T=await u.detectOverflow(t,A),j=[];let _=((r=i.flip)==null?void 0:r.overflows)||[];if(m&&j.push(T[M]),p){const q=Qye(a,o,L);j.push(T[q[0]],T[q[1]])}if(_=[..._,{placement:a,overflows:j}],!j.every(q=>q<=0)){var P,U;const q=(((P=i.flip)==null?void 0:P.index)||0)+1,ne=$[q];if(ne&&(!(p==="alignment"?C!==ds(ne):!1)||_.every(F=>ds(F.placement)===C?F.overflows[0]>0:!0)))return{data:{index:q,overflows:_},reset:{placement:ne}};let B=(U=_.filter(G=>G.overflows[0]<=0).sort((G,F)=>G.overflows[1]-F.overflows[1])[0])==null?void 0:U.placement;if(!B)switch(y){case"bestFit":{var W;const G=(W=_.filter(F=>{if(O){const ee=ds(F.placement);return ee===C||ee==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(ee=>ee>0).reduce((ee,he)=>ee+he,0)]).sort((F,ee)=>F[1]-ee[1])[0])==null?void 0:W[0];G&&(B=G);break}case"initialPlacement":B=c;break}if(a!==B)return{reset:{placement:B}}}return{}}}},c0e=new Set(["left","top"]);async function u0e(e,t){const{placement:n,platform:r,elements:a}=e,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),o=Gc(n),c=Yg(n),u=ds(n)==="y",f=c0e.has(o)?-1:1,m=i&&u?-1:1,p=Gg(t,e);let{mainAxis:g,crossAxis:y,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof x=="number"&&(y=c==="end"?x*-1:x),u?{x:y*m,y:g*f}:{x:g*f,y:y*m}}const d0e=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:i,placement:o,middlewareData:c}=t,u=await u0e(t,e);return o===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:a+u.x,y:i+u.y,data:{...u,placement:o}}}}},f0e=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a,platform:i}=t,{mainAxis:o=!0,crossAxis:c=!1,limiter:u={fn:C=>{let{x:R,y:L}=C;return{x:R,y:L}}},...f}=Gg(e,t),m={x:n,y:r},p=await i.detectOverflow(t,f),g=ds(a),y=x_(g);let x=m[y],S=m[g];const A=(C,R)=>Kye(R+p[C==="y"?"top":"left"],R,R-p[C==="y"?"bottom":"right"]);o&&(x=A(y,x)),c&&(S=A(g,S));const M=u.fn({...t,[y]:x,[g]:S});return{...M,data:{x:M.x-n,y:M.y-r,enabled:{[y]:o,[g]:c}}}}}};function Wg(){return typeof window<"u"}function lu(e){return A_(e)?(e.nodeName||"").toLowerCase():"#document"}function wr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Cs(e){var t;return(t=(A_(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function A_(e){return Wg()?e instanceof Node||e instanceof wr(e).Node:!1}function Ia(e){return Wg()?e instanceof Element||e instanceof wr(e).Element:!1}function Rs(e){return Wg()?e instanceof HTMLElement||e instanceof wr(e).HTMLElement:!1}function qL(e){return!Wg()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof wr(e).ShadowRoot}function qg(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Ba(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&a!=="inline"&&a!=="contents"}function h0e(e){return/^(table|td|th)$/.test(lu(e))}function Xg(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const m0e=/transform|translate|scale|rotate|perspective|filter/,p0e=/paint|layout|strict|content/,co=e=>!!e&&e!=="none";let Iv;function qS(e){const t=Ia(e)?Ba(e):e;return co(t.transform)||co(t.translate)||co(t.scale)||co(t.rotate)||co(t.perspective)||!XS()&&(co(t.backdropFilter)||co(t.filter))||m0e.test(t.willChange||"")||p0e.test(t.contain||"")}function g0e(e){let t=zo(e);for(;Rs(t)&&!cf(t);){if(qS(t))return t;if(Xg(t))return null;t=zo(t)}return null}
101function XS(){return Iv==null&&(Iv=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Iv}function cf(e){return/^(html|body|#document)$/.test(lu(e))}function Ba(e){return wr(e).getComputedStyle(e)}function Kg(e){return Ia(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zo(e){if(lu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qL(e)&&e.host||Cs(e);return qL(t)?t.host:t}function M_(e){const t=zo(e);return cf(t)?(e.ownerDocument||e).body:Rs(t)&&qg(t)?t:M_(t)}function T_(e,t,n){var r;t===void 0&&(t=[]);const a=M_(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),o=wr(a);return i?(y1(o),t.concat(o,o.visualViewport||[],qg(a)?a:[],[])):t.concat(a,T_(a,[]))}function y1(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function k_(e){const t=Ba(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Rs(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,c=Wp(n)!==i||Wp(r)!==o;return c&&(n=i,r=o),{width:n,height:r,$:c}}function E_(e){return Ia(e)?e:e.contextElement}function Cc(e){const t=E_(e);if(!Rs(t))return Ci(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=k_(t);let o=(i?Wp(n.width):n.width)/r,c=(i?Wp(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!c||!Number.isFinite(c))&&(c=1),{x:o,y:c}}const y0e=Ci(0);function C_(e){const t=wr(e);return!XS()||!t.visualViewport?y0e:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function b0e(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===wr(e)}function uf(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=E_(e);let o=Ci(1);t&&(r?Ia(r)&&(o=Cc(r)):o=Cc(e));const c=b0e(i,n,r)?C_(i):Ci(0);let u=(a.left+c.x)/o.x,f=(a.top+c.y)/o.y,m=a.width/o.x,p=a.height/o.y;if(i&&r){const g=wr(i),y=Ia(r)?wr(r):r;let x=g,S=y1(x);for(;S&&y!==x;){const A=Cc(S),M=S.getBoundingClientRect(),C=Ba(S),R=M.left+(S.clientLeft+parseFloat(C.paddingLeft))*A.x,L=M.top+(S.clientTop+parseFloat(C.paddingTop))*A.y;u*=A.x,f*=A.y,m*=A.x,p*=A.y,u+=R,f+=L,x=wr(S),S=y1(x)}}return Xp({width:m,height:p,x:u,y:f})}function Qg(e,t){const n=Kg(e).scrollLeft;return t?t.left+n:uf(Cs(e)).left+n}function R_(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Qg(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function v0e(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const i=a==="fixed",o=Cs(r),c=t?Xg(t.floating):!1;if(r===o||c&&i)return n;let u={scrollLeft:0,scrollTop:0},f=Ci(1);const m=Ci(0),p=Rs(r);if((p||!i)&&((lu(r)!=="body"||qg(o))&&(u=Kg(r)),p)){const y=uf(r);f=Cc(r),m.x=y.x+r.clientLeft,m.y=y.y+r.clientTop}const g=o&&!p&&!i?R_(o,u):Ci(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-u.scrollLeft*f.x+m.x+g.x,y:n.y*f.y-u.scrollTop*f.y+m.y+g.y}}function x0e(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function w0e(e){const t=Kg(e),n=e.ownerDocument.body,r=Ec(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=Ec(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Qg(e);const o=-t.scrollTop;return Ba(n).direction==="rtl"&&(i+=Ec(e.clientWidth,n.clientWidth)-r),{width:r,height:a,x:i,y:o}}const S0e=25;function A0e(e,t,n){n===void 0&&(n="viewport");const r=n==="layoutViewport",a=wr(e),i=Cs(e),o=a.visualViewport;let c=i.clientWidth,u=i.clientHeight,f=0,m=0;if(o){const g=!XS()||t==="fixed";r?g||(f=-o.offsetLeft,m=-o.offsetTop):(c=o.width,u=o.height,g&&(f=o.offsetLeft,m=o.offsetTop))}if(Qg(i)<=0){const g=i.ownerDocument,y=g.body,x=getComputedStyle(y),S=g.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,A=Math.abs(i.clientWidth-y.clientWidth-S),M=getComputedStyle(i).scrollbarGutter==="stable both-edges"?A/2:A;M<=S0e&&(c-=M)}return{width:c,height:u,x:f,y:m}}function M0e(e,t){const n=uf(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,i=Cc(e),o=e.clientWidth*i.x,c=e.clientHeight*i.y,u=a*i.x,f=r*i.y;return{width:o,height:c,x:u,y:f}}function XL(e,t,n){let r;if(t==="viewport"||t==="layoutViewport")r=A0e(e,n,t);else if(t==="document")r=w0e(Cs(e));else if(Ia(t))r=M0e(t,n);else{const a=C_(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Xp(r)}function T0e(e,t){const n=t.get(e);if(n)return n;let r=T_(e,[]).filter(c=>Ia(c)&&lu(c)!=="body"),a=null;const i=Ba(e).position==="fixed";let o=i?zo(e):e;for(;Ia(o)&&!cf(o);){const c=Ba(o),u=qS(o),f=a?a.position:i?"fixed":"";!u&&(f==="fixed"||f==="absolute"&&c.position==="static")?r=r.filter(p=>p!==o):a=c,o=zo(o)}return t.set(e,r),r}function k0e(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[...n==="clippingAncestors"?Xg(t)?[]:T0e(t,this._c):[].concat(n),r],c=XL(t,o[0],a);let u=c.top,f=c.right,m=c.bottom,p=c.left;for(let g=1;g<o.length;g++){const y=XL(t,o[g],a);u=Ec(y.top,u),f=p1(y.right,f),m=p1(y.bottom,m),p=Ec(y.left,p)}
101return{width:f-p,height:m-u,x:p,y:u}}function E0e(e){const{width:t,height:n}=k_(e);return{width:t,height:n}}function C0e(e,t,n){const r=Rs(t),a=Cs(t),i=n==="fixed",o=uf(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const u=Ci(0);if((r||!i)&&((lu(t)!=="body"||qg(a))&&(c=Kg(t)),r)){const g=uf(t,!0,i,t);u.x=g.x+t.clientLeft,u.y=g.y+t.clientTop}!r&&a&&(u.x=Qg(a));const f=a&&!r&&!i?R_(a,c):Ci(0),m=o.left+c.scrollLeft-u.x-f.x,p=o.top+c.scrollTop-u.y-f.y;return{x:m,y:p,width:o.width,height:o.height}}function Bv(e){return Ba(e).position==="static"}function KL(e,t){if(!Rs(e)||Ba(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Cs(e)===n&&(n=n.ownerDocument.body),n}function L_(e,t){const n=wr(e);if(Xg(e))return n;if(!Rs(e)){let a=zo(e);for(;a&&!cf(a);){if(Ia(a)&&!Bv(a))return a;a=zo(a)}return n}let r=KL(e,t);for(;r&&h0e(r)&&Bv(r);)r=KL(r,t);return r&&cf(r)&&Bv(r)&&!qS(r)?n:r||g0e(e)||n}const R0e=async function(e){const t=this.getOffsetParent||L_,n=this.getDimensions,r=await n(e.floating);return{reference:C0e(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function L0e(e){return Ba(e).direction==="rtl"}const D0e={convertOffsetParentRelativeRectToViewportRelativeRect:v0e,getDocumentElement:Cs,getClippingRect:k0e,getOffsetParent:L_,getElementRects:R0e,getClientRects:x0e,getDimensions:E0e,getScale:Cc,isElement:Ia,isRTL:L0e},N0e=d0e,j0e=f0e,O0e=l0e,_0e=(e,t,n)=>{const r=new Map,a=n??{},i={...D0e,...a.platform,_c:r};return o0e(e,t,{...a,platform:i})};var I0e=typeof document<"u",B0e=function(){},sp=I0e?E.useLayoutEffect:B0e;function Kp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Kp(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const i=a[r];if(!(i==="_owner"&&e.$$typeof)&&!Kp(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function D_(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function QL(e,t){const n=D_(e);return Math.round(t*n)/n}function zv(e){const t=E.useRef(e);return sp(()=>{t.current=e}),t}function N_(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:i,floating:o}={},transform:c=!0,whileElementsMounted:u,open:f}=e,[m,p]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,y]=E.useState(r);Kp(g,r)||y(r);const[x,S]=E.useState(null),[A,M]=E.useState(null),C=E.useCallback(F=>{F!==O.current&&(O.current=F,S(F))},[]),R=E.useCallback(F=>{F!==$.current&&($.current=F,M(F))},[]),L=i||x,N=o||A,O=E.useRef(null),$=E.useRef(null),T=E.useRef(m),j=u!=null,_=zv(u),P=zv(a),U=zv(f),W=E.useCallback(()=>{if(!O.current||!$.current)return;const F={placement:t,strategy:n,middleware:g};P.current&&(F.platform=P.current),_0e(O.current,$.current,F).then(ee=>{const he={...ee,isPositioned:U.current!==!1};q.current&&!Kp(T.current,he)&&(T.current=he,YS.flushSync(()=>{p(he)}))})},[g,t,n,P,U]);sp(()=>{f===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,p(F=>({...F,isPositioned:!1})))},[f]);const q=E.useRef(!1);sp(()=>(q.current=!0,()=>{q.current=!1}),[]),sp(()=>{if(L&&(O.current=L),N&&($.current=N),L&&N){if(_.current)return _.current(L,N,W);W()}},[L,N,W,_,j]);const ne=E.useMemo(()=>({reference:O,floating:$,setReference:C,setFloating:R}),[C,R]),B=E.useMemo(()=>({reference:L,floating:N}),[L,N]),G=E.useMemo(()=>{const F={position:n,left:0,top:0};if(!B.floating)return F;const ee=QL(B.floating,m.x),he=QL(B.floating,m.y);return c?{...F,transform:"translate("+ee+"px, "+he+"px)",...D_(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ee,top:he}},[n,c,B.floating,m.x,m.y]);return E.useMemo(()=>({...m,update:W,refs:ne,elements:B,floatingStyles:G}),[m,W,ne,B,G])}const b1=(e,t)=>{const n=N0e(e);return{name:n.name,fn:n.fn,options:[e,t]}},v1=(e,t)=>{const n=j0e(e);return{name:n.name,fn:n.fn,options:[e,t]}},x1=(e,t)=>{const n=O0e(e);return{name:n.name,fn:n.fn,options:[e,t]}};function z0e(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function j_(e,t){var n={};{var r=e;for(var a in r){var i=r[a];i!=null&&(n[z0e(a)]=i)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(c=>"".concat(c,":").concat(this[c])).join(";")},writable:!1}),n}var ZL=Object.defineProperty,V0e=(e,t)=>{let n={};for(var r in e)ZL(n,r,{get:e[r],enumerable:!0});return ZL(n,Symbol.toStringTag,{value:"Module"}),n};typeof window<"u"&&(window.__GRAPHY_SDK__??(window.__GRAPHY_SDK__={}),window.__GRAPHY_SDK__.reactRenderer="1.8.1-beta.1787584545684");var O_=E.createContext(null),la=()=>{const e=E.useContext(O_);if(!e)throw new Error("useGraph* hooks must be used inside a <GraphProvider>");return e},tt=e=>{const{store:t}=la();return Vf(t,n=>e(n.compiled))};function Xt(e){const{colorScheme:t}=la();return E.useMemo(()=>al({colorScheme:t}).geomReaders(e),[e,t])}var __=e=>{const{colorScheme:t}=la(),n=tt(r=>r.layers);return E.useMemo(()=>{const r=n.find(a=>a.id===e);return r===void 0?null:al({colorScheme:t}).geomReaders(r)},[n,e,t])},I_=()=>{const{colorScheme:e}=la(),t=tt(n=>n.layers);return E.useMemo(()=>{const n=al({colorScheme:e});return r=>{const a=Qre(t,r);
101if(a!==null)return n.geomReaders(a.layer).get("color",a.observation)}},[t,e])},P0e={centerX:0,centerY:0,radius:1},KS=e=>{const t=Math.min(e.width,e.height);return{centerX:(e.width-t)/2+t/2,centerY:(e.height-t)/2+t/2,radius:t/2}},oa=(e,t,n=P0e)=>{const r=Lp(e,t);return{x:n.centerX+r.x*n.radius,y:n.centerY-r.y*n.radius}},QS=(e,t)=>({x:e,y:aa(t)}),za=(e,t)=>{const n=oa(e,t);return{x:(n.x+1)/2,y:(n.y+1)/2}},$0e=2,F0e=.7,Ls=({hit:e,project:t=QS})=>{const n=__(e.layerId);if(!e.anchored)return null;const r=(n==null?void 0:n.get("color",e.observation))??K1,a=(Uw(e.observation)??1)*F0e,i=((n==null?void 0:n.get("size",e.observation))??8)/2,o=(n==null?void 0:n.get("borderColor",e.observation,"hovered"))??yf,c=t(e.x,e.y);return w.jsx("circle",{cx:be(c.x),cy:be(c.y),r:i,fill:r,opacity:a,stroke:o,strokeWidth:$0e,"data-testid":"companion-point"})},ca="_1d8mpa10",Va={type:"spring",stiffness:500,damping:60,mass:1},H0e={duration:0},ZS=e=>e?Va:H0e,w1=(e,t)=>{const n=ra(e);return E.useEffect(()=>{const r=yge(n.get(),e);Ti(0,1,{...t,onUpdate:a=>{const i=r(a);return n.set(i)}})},[t,e,n]),n},B_=({shouldAnimateTransitions:e,...t})=>e?w.jsx(G0e,{...t}):w.jsx(U0e,{...t}),U0e=({fillPath:e,linePath:t,fill:n,fillOpacity:r,stroke:a,strokeWidth:i,strokeOpacity:o,strokeDasharray:c})=>w.jsxs("g",{children:[w.jsx("path",{d:e,fill:n,fillOpacity:r,stroke:"none"}),w.jsx("path",{d:t,fill:"none",stroke:a,strokeWidth:i,strokeOpacity:o,strokeDasharray:c,vectorEffect:"non-scaling-stroke"})]}),G0e=({fillPath:e,linePath:t,fill:n,fillOpacity:r,stroke:a,strokeWidth:i,strokeOpacity:o,strokeDasharray:c})=>{const u=w1(e,Va),f=w1(t,Va);return w.jsxs("g",{children:[w.jsx(fn.path,{d:u,fill:n,fillOpacity:r,stroke:"none"}),w.jsx(fn.path,{d:f,fill:"none",stroke:a,strokeWidth:i,strokeOpacity:o,strokeDasharray:c,vectorEffect:"non-scaling-stroke"})]})},JS=(e,t)=>{const n=(t!==void 0?e.delayByKey[t]:void 0)??0;return e.growAxis==="size"?{type:"spring",visualDuration:e.durationSeconds,delay:n}:{duration:e.durationSeconds,ease:e.growAxis==="angle"?"circOut":"backOut",delay:n}},Y0e=e=>({duration:e.durationSeconds,ease:"easeOut"}),W0e=e=>({duration:e.durationSeconds,ease:"easeOut"}),JL=1.1,e5=1.5,z_=({intro:e,children:t})=>{const n=E.useId();return w.jsxs(w.Fragment,{children:[w.jsx("clipPath",{id:n,children:w.jsx(fn.rect,{...q0e(e.axis),transition:Y0e(e)})}),w.jsx("g",{clipPath:`url(#${n})`,children:t})]})},q0e=e=>e==="x"?{x:-.05,y:-.25,height:e5,initial:{width:0},animate:{width:JL}}:{x:-.25,y:-.05,width:e5,initial:{height:0},animate:{height:JL}},X0e=E.memo(function({layer:e,coordSystem:t,shouldAnimateTransitions:n,intro:r}){const a=(r==null?void 0:r.type)==="wipe"?r:null,{lineGenerator:i,areaGenerator:o}=E.useMemo(()=>$j(t,e.params),[e.params,t]),c=Xt(e),u=E.useMemo(()=>{const f=Tr(e.data,e.mapping,e.id),m=[];return e.data.groupBy(pt.group).forEach(p=>{const g=Fj([...p],e.params.missingValues),y=o(g),x=i(g);if(!y||!x)return;const S=g[0];if(!S)return;const A=c.get("color",S),M=c.get("strokeWidth",S),C=nu(c.get("lineType",S));m.push({key:f(S),areaPath:y,linePath:x,color:A,fillOpacity:c.get("alpha",S),strokeWidth:M,strokeOpacity:c.get("strokeAlpha",S),strokeDasharray:C})}),m},[o,i,e.data,e.id,e.mapping,e.params,c]).map(f=>w.jsx(K0e,{areaPath:f.areaPath,linePath:f.linePath,color:f.color,fillOpacity:f.fillOpacity,strokeWidth:f.strokeWidth,strokeOpacity:f.strokeOpacity,strokeDasharray:f.strokeDasharray,shouldAnimateTransitions:n},f.key));return w.jsx("svg",{viewBox:"0 0 1 1",preserveAspectRatio:"none",width:"100%",height:"100%","data-geom":"area",className:ca,children:a?w.jsx(z_,{intro:a,children:u}):u})}),K0e=({areaPath:e,linePath:t,color:n,fillOpacity:r,strokeWidth:a,strokeOpacity:i,strokeDasharray:o,shouldAnimateTransitions:c})=>w.jsx(B_,{fillPath:e,linePath:t,fill:n,fillOpacity:r,stroke:n,strokeWidth:a,strokeOpacity:i,strokeDasharray:o,shouldAnimateTransitions:c}),Q0e="_324dw20",Vv=1,Z0e=2,J0e=1,ebe=12/2,tbe=2.25,cu=({hit:e,project:t=QS,...n})=>{const r=__(e.layerId);if(!e.anchored)return null;const a=(r==null?void 0:r.get("color",e.observation))??K1,i=Uw(e.observation)??1,o=(r==null?void 0:r.get("borderColor",e.observation,"hovered"))??yf,c=t(e.x,e.y),u=be(c.x),f=be(c.y),m=nbe(e.observation),p=m+Vv/2+J0e+Vv/2;return w.jsxs("g",{...n,className:Q0e,children:[w.jsx("circle",{cx:u,cy:f,r:p,fill:"none",stroke:o,strokeWidth:Z0e}),w.jsx("circle",{cx:u,cy:f,r:m,fill:a,opacity:i,stroke:o,strokeWidth:Vv})]})},nbe=e=>{const t=Gw(e);return de(t)?t/tbe:ebe},rbe=({layer:e,coordSystem:t,primary:n,companions:r})=>{const a=Xt(e),i=Ua(n.observation),o=E.useMemo(()=>Fj([...e.data.filter(pt.group,"eq",i)],e.params.missingValues),[e.data,e.params.missingValues,i]),{areaPath:c,linePath:u}=E.useMemo(()=>{const{lineGenerator:y,areaGenerator:x}=$j(t,e.params);return{areaPath:x(o)??"",linePath:y(o)??""}},[t,e.params,o]);if(!c||!u)return null;const f=a.get("color",n.observation),m=a.get("alpha",n.observation),p=a.get("strokeWidth",n.observation),g=nu(a.get("lineType",n.observation));return w.jsxs("g",{"data-testid":"hovered-area",children:[w.jsxs("svg",{viewBox:"0 0 1 1",preserveAspectRatio:"none",width:"100%",height:"100%","data-geom":"area",className:ca,children:[w.jsx("path",{d:c,fill:f,fillOpacity:m,stroke:"none","data-testid":"hovered-area-fill"}),w.jsx("path",{d:u,fill:"none",stroke:f,strokeWidth:p,strokeOpacity:a.get("strokeAlpha",n.observation),strokeDasharray:g,vectorEffect:"non-scaling-stroke","data-testid":"hovered-area-edge"})]}),r.map(y=>w.jsx(Ls,{hit:y},`companion-${y.layerId}-${y.pointIndex}`)),w.jsx(cu,{hit:n,"data-testid":"hovered-area-point"})]})},abe={geom:"area",coord:"cartesian",swatchShape:"area",guideMode:"crosshair",render:({layer:e,coordSystem:t,shouldAnimateTransitions:n,intro:r})=>w.jsx(X0e,{layer:e,coordSystem:t,shouldAnimateTransitions:n,intro:r}),renderHover:({layer:e,coordSystem:t,primary:n,group:r,related:a})=>w.jsx(rbe,{layer:e,coordSystem:t,primary:n,companions:[...r,...a]}),renderHoverCompanions:({related:e})=>w.jsx(w.Fragment,{children:e.map(t=>w.jsx(Ls,{hit:t},`companion-${t.layerId}-${t.pointIndex}`))}
101),getOverlayAnchor:({observation:e,coordSystem:t})=>{if(t.mainAxis==="x"){const a=it(e),i=hn(e)??et(e);return a===null||i===null?null:{x:a,y:i}}const n=et(e),r=Mr(e)??it(e);return n===null||r===null?null:{x:r,y:n}}},S1=(e,t,n)=>{const r=n===void 0?e.activeIntro:n,a=E.useRef(r?JS(r,t):null),i=E.useRef(e.shouldAnimateTransitions);return i.current=e.shouldAnimateTransitions,E.useCallback(()=>{const o=a.current;return a.current=null,o??ZS(i.current)},[])},Zg=(e,t)=>{const n=E.useRef(!0);E.useEffect(()=>{n.current=!1},[]);const r=n.current;return E.useMemo(()=>({isAnimated:t||e!==null,isLayerEntrance:r,activeIntro:r?e:null,shouldAnimateTransitions:t}),[e,t,r])},uu=(e,t)=>({borderColor:e.get("borderColor",t),borderWidth:e.get("borderWidth",t),borderRadius:e.get("borderRadius",t),borderAlpha:e.get("alpha",t)}),V_=(e,t)=>t.growAxis==="x"?{x:t.baseline,y:e.y,width:0,height:e.height}:{x:e.x,y:t.baseline,width:e.width,height:0},ibe=E.memo(function({layer:e,coordSystem:t,shouldAnimateTransitions:n,intro:r}){const a=E.useId(),i=Xt(e),o=Zg((r==null?void 0:r.type)==="grow"&&(r.growAxis==="x"||r.growAxis==="y")?r:null,n);return w.jsx(w.Fragment,{children:E.useMemo(()=>{const c=Tr(e.data,e.mapping,e.id),u=new Map;for(const f of e.data){const m=Ss(t.mainAxis,f);if(!m)continue;const p=Eg(t.mainAxis,m),g=u.get(p),y={key:c(f),...m,fill:i.get("color",f),opacity:i.get("alpha",f)};g?g.bars.push(y):u.set(p,{bars:[y],style:uu(i,f)})}return[...u.values()].map(({bars:f,style:m},p)=>{var x;const g=Uj(f),y=m.borderColor===void 0?void 0:Nf(m.borderWidth);return{key:((x=f[0])==null?void 0:x.key)??String(p),id:`${a}${p}`,bars:f,...g,radii:cbe({borderRadius:m.borderRadius,mainAxis:t.mainAxis,bounds:g}),borderColor:m.borderColor,outlineOpacity:m.borderAlpha,clippedStrokeWidth:y==null?void 0:y.outlineWidth,separatorStrokeWidth:y==null?void 0:y.separatorWidth}})},[a,t.mainAxis,e,i]).map(c=>{if(c.bars.length===1&&c.borderColor===void 0){const[u]=c.bars;if(!u)return null;const{key:f,...m}=u;return w.jsx(Qp,{...m,...c.radii,animation:o,introKey:f},f)}return o.isAnimated?w.jsx(obe,{column:c,animation:o},c.key):w.jsx(sbe,{column:c,animation:o},c.key)})})}),sbe=({column:e,animation:t})=>{const{id:n,bars:r,radii:a,borderColor:i,outlineOpacity:o,clippedStrokeWidth:c,separatorStrokeWidth:u}=e,f=i!==void 0,m=w.jsx("clipPath",{id:n,children:w.jsx(t5,{bounds:e,radii:a})});if(r.length===1){const[p]=r;if(!p)return null;const{key:g,...y}=p;return w.jsxs(w.Fragment,{children:[m,w.jsx("g",{clipPath:`url(#${n})`,children:w.jsx(Qp,{...y,...a,stroke:i,strokeWidth:c,animation:t},g)})]})}return w.jsxs(w.Fragment,{children:[m,w.jsxs("g",{clipPath:`url(#${n})`,children:[r.map(p=>{const{key:g,...y}=p;return w.jsx(Qp,{...y,stroke:i,strokeWidth:u,animation:t},g)}),f&&w.jsx(t5,{bounds:e,radii:a,fill:"none",stroke:i,strokeWidth:c,opacity:o})]})]})},obe=({column:e,animation:t})=>{var y;const{id:n,bars:r,radii:a,borderColor:i,outlineOpacity:o,clippedStrokeWidth:c,separatorStrokeWidth:u}=e,f=i!==void 0,m=lbe(e,t,(y=r[0])==null?void 0:y.key),p={style:{transformBox:"view-box",x:m.x,y:m.y,width:m.width,height:m.height},rx:a.rx,ry:a.ry},g=w.jsx("clipPath",{id:n,children:w.jsx(fn.rect,{...p})});if(r.length===1){const[x]=r;return w.jsxs(w.Fragment,{children:[g,w.jsx("g",{clipPath:`url(#${n})`,children:w.jsx(fn.rect,{...p,fill:x==null?void 0:x.fill,opacity:x==null?void 0:x.opacity,stroke:i,strokeWidth:c})})]})}return w.jsxs(w.Fragment,{children:[g,w.jsxs("g",{clipPath:`url(#${n})`,children:[r.map(x=>{const{key:S,...A}=x;return w.jsx(Qp,{...A,stroke:i,strokeWidth:u,animation:t,introKey:S},S)}),f&&w.jsx(fn.rect,{...p,fill:"none",stroke:i,strokeWidth:c,opacity:o})]})]})},Qp=({animation:e,introKey:t,rx:n,ry:r,stroke:a,strokeWidth:i,...o})=>{const{isAnimated:c,activeIntro:u,shouldAnimateTransitions:f}=e;if(c){const m=u?V_(o,u):null;return w.jsx(fn.rect,{initial:m?{x:be(m.x),y:be(m.y),width:be(m.width),height:be(m.height),opacity:o.opacity}:!1,style:{transformBox:"view-box"},transition:u?JS(u,t):ZS(f),fill:o.fill,opacity:o.opacity,rx:n,ry:r,stroke:a,strokeWidth:i,animate:{x:be(o.x),y:be(o.y),width:be(o.width),height:be(o.height),opacity:o.opacity}})}return w.jsx("rect",{style:{transformBox:"view-box"},x:be(o.x),y:be(o.y),width:be(o.width),height:be(o.height),fill:o.fill,opacity:o.opacity,rx:n,ry:r,stroke:a,strokeWidth:i})},t5=({bounds:e,radii:t,fill:n,stroke:r,strokeWidth:a,opacity:i})=>w.jsx("rect",{x:be(e.x),y:be(e.y),width:be(e.width),height:be(e.height),rx:t.rx,ry:t.ry,fill:n,stroke:r,strokeWidth:a,opacity:i}
101),lbe=(e,t,n)=>{const r=t.activeIntro?V_(e,t.activeIntro):e,a=ra(r.x),i=ra(r.y),o=ra(r.width),c=ra(r.height),u=S1(t,n);return E.useEffect(()=>{const f=u(),m=[Ti(a,e.x,f),Ti(i,e.y,f),Ti(o,e.width,f),Ti(c,e.height,f)];return()=>{for(const p of m)p.stop()}},[a,i,o,c,e.x,e.y,e.width,e.height,u]),{x:_m(a,be),y:_m(i,be),width:_m(o,be),height:_m(c,be)}};function cbe(e){const t=hae(e);if(e.borderRadius!=="full")return t;const n={};return t.rx!==void 0&&(n.rx=be(t.rx)),t.ry!==void 0&&(n.ry=be(t.ry)),n}var ube="_1suo8ub0",P_=(e,t,n)=>{const r=new Map;for(const i of e.data){const o=Ss(t,i);if(!o)continue;const c=Eg(t,o),u=r.get(c);u===void 0?r.set(c,{firstObservation:i,memberBounds:[o]}):u.memberBounds.push(o)}const a=new Map;for(const[i,{firstObservation:o,memberBounds:c}]of r)a.set(i,{style:uu(n,o),bounds:Uj(c)});return a},$_=(e,t,n,r)=>{const a=Ss(t,r);return a?e.get(Eg(t,a))??{style:uu(n,r),bounds:a}:null},Zp=(e,t)=>({x:e.x*t.width,y:e.y*t.height,width:e.width*t.width,height:e.height*t.height}),n5=(e,t)=>({x:e.x-t,y:e.y-t,width:Math.max(0,e.width+t*2),height:Math.max(0,e.height+t*2)}),bc=(e,t)=>{const n=Math.max(0,Math.min(t,e.width/2)),r=Math.max(0,Math.min(t,e.height/2)),a=e.x+e.width,i=e.y+e.height;return n<=0||r<=0?`M${e.x},${e.y}H${a}V${i}H${e.x}Z`:[`M${e.x+n},${e.y}`,`H${a-n}`,`A${n},${r} 0 0 1 ${a},${e.y+r}`,`V${i-r}`,`A${n},${r} 0 0 1 ${a-n},${i}`,`H${e.x+n}`,`A${n},${r} 0 0 1 ${e.x},${i-r}`,`V${e.y+r}`,`A${n},${r} 0 0 1 ${e.x+n},${e.y}`,"Z"].join("")},dbe=({observation:e,mainAxis:t,styleReaders:n,column:r,panelRect:a})=>{const i=E.useId(),o=E.useId(),c=Ss(t,e);if(!c)return null;const u=Zp(c,a),f=Zp(r.bounds,a),{borderColor:m,borderWidth:p,borderRadius:g,borderAlpha:y}=r.style,x=Xw({borderRadius:g,mainAxis:t,bounds:f}),S=bc(u,0),A=bc(f,x),M=n.get("color",e),C=n.get("alpha",e),R=Nf(p);return w.jsxs("g",{clipPath:`url(#${i})`,children:[w.jsx("clipPath",{id:i,children:w.jsx("path",{d:S})}),w.jsx("clipPath",{id:o,children:w.jsx("path",{d:A})}),w.jsxs("g",{clipPath:`url(#${o})`,children:[w.jsx("path",{d:S,fill:M,opacity:C,"data-testid":"highlight-bar-segment"}),m!==void 0&&w.jsxs(w.Fragment,{children:[w.jsx("path",{d:S,fill:"none",stroke:m,strokeWidth:R.separatorWidth,op
101acity:C,"data-testid":"highlight-bar-segment-border"}),w.jsx("path",{d:A,fill:"none",stroke:m,strokeWidth:R.outlineWidth,opacity:y})]})]})]})},fbe=({layer:e,sourceLayer:t,coordSystem:n,panelRect:r})=>{const a=Xt(t),i=E.useMemo(()=>P_(t,n.mainAxis,a),[t,n.mainAxis,a]),o=Tr(e.data,e.mapping,e.id),c=[];for(const u of e.data){const f=$_(i,n.mainAxis,a,u);f!==null&&c.push(w.jsx(dbe,{observation:u,mainAxis:n.mainAxis,styleReaders:a,column:f,panelRect:r},o(u)))}return c},Pv=3,hbe=({layer:e,coordSystem:t,primary:n,panelRect:r})=>{const a=Xt(e),i=E.useId(),o=E.useId(),c=E.useId(),u=E.useMemo(()=>P_(e,t.mainAxis,a),[e,t.mainAxis,a]),f=Ss(t.mainAxis,n.observation),m=$_(u,t.mainAxis,a,n.observation);if(!f||m===null)return null;const p=Zp(f,r),g=Zp(m.bounds,r),{borderColor:y,borderWidth:x,borderRadius:S,borderAlpha:A}=m.style,M=Xw({borderRadius:S,mainAxis:t.mainAxis,bounds:g}),C=bc(p,0),R=bc(g,M),L=bc(n5(p,Pv),0),N=bc(n5(g,Pv),M>0?M+Pv:0),O=a.get("color",n.observation),$=a.get("alpha",n.observation),T=a.get("borderColor",n.observation,"hovered")??yf,j=Nf(x);return w.jsxs("g",{"data-testid":"hovered-bar",children:[w.jsx("clipPath",{id:i,children:w.jsx("path",{d:N})}),w.jsx("clipPath",{id:o,children:w.jsx("path",{d:C})}),w.jsx("clipPath",{id:c,children:w.jsx("path",{d:R})}),w.jsx("g",{className:ube,children:w.jsx("g",{clipPath:`url(#${i})`,children:w.jsx("path",{d:L,fill:T,"data-testid":"hovered-bar-border"})})}),w.jsx("g",{clipPath:`url(#${o})`,children:w.jsxs("g",{clipPath:`url(#${c})`,children:[w.jsx("path",{d:C,fill:O,opacity:$,"data-testid":"hovered-bar-fill"}),y!==void 0&&w.jsxs(w.Fragment,{children:[w.jsx("path",{d:C,fill:"none",stroke:y,strokeWidth:j.separatorWidth,op
101acity:$,"data-testid":"hovered-bar-inner-border"}),w.jsx("path",{d:R,fill:"none",stroke:y,strokeWidth:j.outlineWidth,opacity:A})]})]})})]})},mbe={geom:"bar",coord:"cartesian",swatchShape:"square",guideMode:"band",render:({layer:e,coordSystem:t,shouldAnimateTransitions:n,intro:r})=>w.jsx(ibe,{layer:e,coordSystem:t,shouldAnimateTransitions:n,intro:r}),renderHighlight:({layer:e,sourceLayer:t,coordSystem:n,panelRect:r})=>w.jsx(fbe,{layer:e,sourceLayer:t,coordSystem:n,panelRect:r}),renderHover:({layer:e,coordSystem:t,primary:n,panelRect:r})=>w.jsx(hbe,{layer:e,coordSystem:t,primary:n,panelRect:r}),renderHoverCompanions:()=>null},pbe=E.memo(function({layer:e,shouldAnimateTransitions:t,intro:n}){const r=(n==null?void 0:n.type)==="wipe"?n:null,a=E.useMemo(()=>Gj(e.params),[e.params]),i=E.useMemo(()=>mae(e.params),[e.params]),o=Xt(e),c=E.useMemo(()=>{const u=Tr(e.data,e.mapping,e.id),f=[];return e.data.groupBy(pt.group).forEach(m=>{const p=Yj([...m],e.params.missingValues),g=a(p);if(!g)return;const y=p[0];if(!y)return;const x=o.get("fillAlpha",y),S=x===void 0?void 0:i(p)??void 0,A=o.get("color",y),M=o.get("strokeWidth",y),C=nu(o.get("lineType",y));f.push({key:u(y),pathData:g,fillPath:S,fillAlpha:x,color:A,opacity:o.get("alpha",y),strokeWidth:M,strokeDasharray:C})}),f},[a,i,e.data,e.id,e.mapping,e.params,o]).map(u=>w.jsx(gbe,{pathData:u.pathData,fillPath:u.fillPath,fillAlpha:u.fillAlpha,color:u.color,strokeWidth:u.strokeWidth,opacity:u.opacity,strokeDasharray:u.strokeDasharray,shouldAnimateTransitions:t},u.key));return w.jsx("svg",{viewBox:"0 0 1 1",preserveAspectRatio:"none",width:"100%",height:"100%","data-geom":"line",className:ca,children:r?w.jsx(z_,{intro:r,children:c}):c})}),gbe=({pathData:e,fillPath:t,fillAlpha:n,color:r,strokeWidth:a,opacity:i,strokeDasharray:o,shouldAnimateTransitions:c})=>t!==void 0&&n!==void 0?w.jsx(ybe,{fillPath:t,fillAlpha:n,linePath:e,color:r,strokeWidth:a,opacity:i,strokeDasharray:o,shouldAnimateTransitions:c}):c?w.jsx(bbe,{pathData:e,color:r,strokeWidth:a,opacity:i,strokeDasharray:o}):w.jsx("path",{d:e,fill:"none",stroke:r,strokeWidth:a,opacity:i,strokeDasharray:o,vectorEffect:"non-scaling-stroke"}),ybe=({fillPath:e,fillAlpha:t,linePath:n,color:r,strokeWidth:a,opacity:i,strokeDasharray:o,shouldAnimateTransitions:c})=>{const u=`line_fill_gradient_${E.useId()}`;return w.jsxs(w.Fragment,{children:[w.jsx("defs",{children:w.jsxs("linearGradient",{id:u,gradientTransform:"rotate(90 0.5 0.5)",children:[w.jsx("stop",{offset:"0%",stopColor:r}),w.jsx("stop",{offset:"70%",stopColor:r,stopOpacity:0}),w.jsx("stop",{offset:"100%",stopColor:r,stopOpacity:0})]})}),w.jsx(B_,{fillPath:e,linePath:n,fill:`url(#${u})`,fillOpacity:t,stroke:r,strokeWidth:a,strokeOpacity:i,strokeDasharray:o,shouldAnimateTransitions:c})]})},bbe=({pathData:e,color:t,strokeWidth:n,opacity:r,strokeDasharray:a})=>{const i=w1(e,Va);return w.jsx(fn.path,{d:i,fill:"none",stroke:t,strokeWidth:n,opacity:r,strokeDasharray:a,vectorEffect:"non-scaling-stroke"})},vbe=({layer:e,primary:t,companions:n})=>{const r=Xt(e),a=Ua(t.observation),i=E.useMemo(()=>Yj([...e.data.filter(pt.group,"eq",a)],e.params.missingValues),[e.data,e.params.missingValues,a]),o=E.useMemo(()=>Gj(e.params)(i),[e.params,i]);if(!o)return null;const c=r.get("color",t.observation),u=r.get("alpha",t.observation),f=r.get("strokeWidth",t.observation),m=nu(r.get("lineType",t.observation));return w.jsxs("g",{"data-testid":"hovered-line",children:[w.jsx("svg",{viewBox:"0 0 1 1",preserveAspectRatio:"none",width:"100%",height:"100%","data-geom":"line",className:ca,children:w.jsx("path",{d:o,fill:"none",stroke:c,strokeWidth:f,opacity:u,strokeDasharray:m,vectorEffect:"non-scaling-stroke","data-testid":"hovered-line-path"})}),n.map(p=>w.jsx(Ls,{hit:p},`companion-${p.layerId}-${p.pointIndex}`)),w.jsx(cu,{hit:t,"data-testid":"hovered-line-point"})]})},xbe={geom:"line",coord:"cartesian",swatchShape:"line",guideMode:"crosshair",render:({layer:e,shouldAnimateTransitions:t,intro:n})=>w.jsx(pbe,{layer:e,shouldAnimateTransitions:t,intro:n}),renderHover:({layer:e,primary:t,group:n,related:r})=>w.jsx(vbe,{layer:e,primary:t,companions:[...n,...r]}),renderHoverCompanions:({related:e})=>w.jsx(w.Fragment,{children:e.map(t=>w.jsx(Ls,{hit:t},`companion-${t.layerId}-${t.pointIndex}`))}),getOverlayAnchor:({observation:e})=>{const t=it(e),n=et(e);return t===null||n===null?null:{x:t,y:n}}},F_=({observation:e,project:t,styleReaders:n,animation:r,introKey:a})=>{const i=it(e),o=et(e);if(i===null||o===null)return null;const c=t(i,o),u=be(c.x),f=be(c.y),m=n.get("size",e)/2,p=n.get("color",e),g=n.get("alpha",e),y=n.get("borderColor",e),x=n.get("borderWidth",e),{isAnimated:S,activeIntro:A,shouldAnimateTransitions:M}=r;return S?w.jsx(fn.circle,{initial:A?{cx:u,cy:f,r:0,opacity:0}
101:!1,transition:A?JS(A,a):ZS(M),fill:p,stroke:y,strokeWidth:x,animate:{cx:u,cy:f,r:m,opacity:g}}):w.jsx("circle",{cx:u,cy:f,r:m,fill:p,opacity:g,stroke:y,strokeWidth:x})},wbe=E.memo(function({layer:e,shouldAnimateTransitions:t,intro:n}){const r=Xt(e),a=Zg((n==null?void 0:n.type)==="grow"&&n.growAxis==="size"?n:null,t);return E.useMemo(()=>{const i=a.activeIntro?Tr(e.data,e.mapping,e.id):null,o=[];let c=0;for(const u of e.data)o.push(w.jsx(F_,{observation:u,project:QS,styleReaders:r,animation:a,introKey:i==null?void 0:i(u)},String(c++)));return o},[e.data,e.mapping,e.id,r,a])}),r5=({primary:e,companions:t})=>{const n=w.jsxs(w.Fragment,{children:[t.map(r=>w.jsx(Ls,{hit:r},`companion-${r.layerId}-${r.pointIndex}`)),e?w.jsx(cu,{hit:e}):null]});return e?w.jsx("g",{"data-testid":"hovered-point",children:n}):n},Sbe={geom:"point",coord:"cartesian",swatchShape:"circle",render:({layer:e,shouldAnimateTransitions:t,intro:n})=>w.jsx(wbe,{layer:e,shouldAnimateTransitions:t,intro:n}),renderHover:({primary:e,group:t,related:n})=>w.jsx(r5,{primary:e,companions:[...t,...n]}),renderHoverCompanions:({related:e})=>w.jsx(r5,{companions:e}),getOverlayAnchor:({observation:e})=>{const t=it(e),n=et(e);return t===null||n===null?null:{x:t,y:n}}},Abe={small:1.9,medium:2.3,large:2.6},Mbe={small:1,medium:1,large:1.2},H_=ta.sm,er=(e,t)=>`color-mix(in srgb, transparent, ${e} ${t*100}%)`,Tbe=(e,t)=>`hsl(from ${e} h s calc(l * ${1-t}))`,a5=(e,t,n)=>`color-mix(in srgb, ${e}, ${t} ${n*100}%)`,ba=e=>`${e}px`,U_={gridLineWidth:"1px",tooltipBorderRadius:"6px",tooltipPaddingBlock:"8px",tooltipPaddingInline:"10px",tooltipRowGap:"4px",tooltipShadow:"0 4px 12px rgba(0, 0, 0, 0.18)",editorControlHeight:ba(32),legendItemGap:ba(8),legendSwatchGap:ba(8),legendSwatchWidth:ba(10),legendSwatchHeight:ba(12),legendPillPaddingInline:ba(8),legendPillPaddingBlock:ba(2),legendPillBorderWidth:ba(1),headlineRowGap:ba(2),headlineItemGap:ba(24)},Ad={panelOverlay:5,textToolbar:10,textToolbarTooltip:20,textToolbarPopover:30,editorOverlayPopover:950},G_={elevationXs:"0 0 2px rgba(15, 15, 24, 0.12), 0 2px 2px rgba(14, 14, 52, 0.08)",elevationSm:"0 0 4px rgba(15, 15, 24, 0.12), 0 4px 4px rgba(14, 14, 52, 0.08)",elevationMd:"0 0 8px rgba(15, 15, 24, 0.12), 0 8px 8px rgba(14, 14, 52, 0.08)",elevationLg:"0 0 16px rgba(15, 15, 24, 0.12), 0 16px 16px rgba(14, 14, 52, 0.08)"},Y_={radiiXs:"4px",radiiSm:"6px",radiiMd:"8px",radiiLg:"12px"},W_={zIndexToolbar:`${Ad.textToolbar}`,zIndexToolbarTooltip:`${Ad.textToolbarTooltip}`,zIndexToolbarPopover:`${Ad.textToolbarPopover}`,zIndexEditorPopover:`${Ad.editorOverlayPopover}`},kbe=8,oc=e=>`${kbe*e}px`,q_={spaceXxs:oc(.25),spaceXs:oc(.5),spaceSm:oc(.75),spaceMd:oc(1),spaceLg:oc(1.5),spaceXl:oc(2)},Ebe={transparent:"transparent",white:"#FFFFFF",black:"#000000",grey100:"#FFFFFF",grey95:"#FCFCFC",grey90:"#FAFAFA",grey85:"#F5F5F5",grey80:"#F0F0F0",grey75:"#E8E8E8",grey70:"#E5E5E5",grey60:"#CCCCCC",grey50:"#C4C4C4",grey0:"#1D2129",red60:"#E14B49",red50:"#F93939",amber70:"#FFBA8C",amber50:"#FFC849",amber40:"#FEAE47",amber30:"#E7A816",green60:"#06B299",green50:"#42CD69",blue80:"#2E62FF",blue60:"#3D70FF",purple50:"#7B56EA",purple30:"#E093FE",greyGradient80:"linear-gradient(to top, #F0F0F1, #F9F9FF)"},Cbe={textPrimary:I.black,textSecondary:er(I.textPrimary,.6),textDisabled:er(I.textPrimary,.5),iconPrimary:"currentColor",iconSecondary:er(I.textPrimary,.6),iconStickerBackground:I.grey100,brand:I.purple50,success:I.green50,warning:I.amber50,alert:I.red50,border100:I.grey0,border50:er(I.grey0,.5),border10:er(I.grey0,.1),sunkenBackground:I.grey90,defaultBackground:I.grey100,raisedBackground:I.grey85,overlayBackground:I.grey100,overlayBorderGradient:I.border10},Rbe={graphBackground:I.grey100,gridLineColor:I.border10,axisTickColor:I.border10,originLineColor:I.grey0,legendBackground:I.defaultBackground,legendBorderColor:I.border10,legendFocusOutlineColor:I.border50,legendTextColor:I.textPrimary,dimmedSeriesLabelTextColor:I.textDisabled,dimmedSeriesLabelLineColor:I.grey60,trendNegativeColor:I.red60,trendPositiveColor:I.green60,trendNeutralColor:I.textSecondary,toolbarBackgroun
101dColor:I.overlayBackground,toolbarButtonBackgroundColor:"transparent",toolbarButtonBackgroundColorHovered:I.grey80,toolbarButtonBackgroundColorSelected:I.grey60,toolbarSeparatorColor:I.grey60,tooltipBackground:I.white,tooltipBorderColor:I.border10,tooltipValueTextColor:I.textPrimary,hoverGuideLineColor:er(I.black,.2),hoverGuideFillColor:er(I.black,.04),heatmapEmptyTileBackground:I.grey80,defaultAnnotationArrowStroke:I.black,defaultAnnotationShapeFill:I.canvasBlue,arrowAnnotationStickerOutlineColor:"#1D2129",arrowAnnotationStickerOutlineColorInverse:"#FFFFFF",annotationFrameBorderColor:I.blue60,editMenuTriggerIconColor:"#3d414c"},Lbe={canvasDefault:"#000000",canvasBlue:"#3b82f6",canvasCyan:"#06b6d4",canvasGreen:"#10b981",canvasYellow:"#E5B400",canvasOrange:"#f97316",canvasRed:"#ef4444",canvasPink:"#E845BF",canvasPurple:"#8b5cf6",canvasGray:"#78716c",canvasInverse:"#ffffff"},X_={...Ebe,...Cbe,...G_,...Y_,...q_,...W_,...Rbe,...Lbe,...U_,...W6,...q6,...X6},Jg=(e,t)=>e*10*t,eA=(e,t)=>({family:e.family,size:e.size.unit==="em"?Jg(e.size.value,t):e.size.value,weight:e.weight,style:e.style}),Dbe=(e,t={})=>{const n=$v(e.fontFamilyDefault)??$v(Ig)??"";return{legendLabel:(r=>{const a=t[r]??{},i=Bg[r],c=K_(i,e)??Nbe(i);return{family:$v(a.family)??n,style:a.style??"normal",weight:a.weight??c.weight,size:a.size??c.size,lineHeight:a.lineHeight??c.lineHeight}})("fontLegendLabel"),familyDefault:n}},K_=(e,t)=>{const n=Tge(t[e.weight]),r=Mge(t[e.size]),a=kge(t[e.lineHeight]);return n===null||r===null||a===null?null:{weight:n,size:r,lineHeight:a}},Nbe=e=>{const t=K_(e,X_);if(t===null)throw new Error("[react-renderer] Base typography leaf tokens failed to parse.");return t},$v=e=>e===void 0||e.includes("var(")?null:e.replace(/\s+/g," ").trim(),jbe={transparent:"transparent",white:"#FFFFFF",black:"#000000",grey100:"#000000",grey95:"#0D0D0D",grey90:"#1A1A1A",grey85:"#1F1F1F",grey80:"#2A2A2A",grey75:"#2e2e2e",grey70:"#353535",grey60:"#494949",grey50:"#6F6F6F",grey0:"#FFFFFF",red60:"#CB3333",red50:"#F93939",amber70:"#F48135",amber50:"#FEAE47",amber40:"#FFC849",amber30:"#ffd061",green60:"#0AC600",green50:"#42CD69",blue80:"#2E62FF",blue60:"#3D70FF",purple50:"#7B56EA",purple30:"#E093FE",greyGradient80:"linear-gradient(to top, #222429, #31353f)"},Obe={textPrimary:I.grey0,textSecondary:er(I.textPrimary,.8),textDisabled:er(I.textPrimary,.5),iconPrimary:"currentColor",iconSecondary:er(I.textPrimary,.6),iconStickerBackground:I.grey70,border100:I.grey0,border50:er(I.grey0,.5),border10:er(I.grey0,.1),brand:I.purple50,success:I.green50,warning:I.amber50,alert:I.red50,sunkenBackground:I.grey100,defaultBackground:I.grey90,raisedBackground:I.grey80,overlayBackground:I.grey90,overlayBorderGradient:I.greyGradient80},_be={graphBackground:I.grey90,gridLineColor:I.border10,axisTickColor:I.border10,originLineColor:I.grey0,legendBackground:I.defaultBackground,legendBorderColor:I.border10,legendFocusOutlineColor:I.border50,legendTextColor:I.textPrimary,dimmedSeriesLabelTextColor:I.textDisabled,dimmedSeriesLabelLineColor:I.grey60,trendNegativeColor:I.red60,trendPositiveColor:I.green60,trendNeutralColor:I.textSecondary,toolbarBackgroundColor:I.overlayBackground,toolbarButtonBackgroundColor:"transparent",toolbarButtonBackgroundColorHovered:I.grey80,toolbarButtonBackgroundColorSelected:I.grey60,toolbarSeparatorColor:I.grey60,tooltipBackground:I.grey70,tooltipBorderColor:I.grey60,tooltipValueTextColor:I.textPrimary,hoverGuideLineColor:er(I.white,.2),hoverGuideFillColor:er(I.white,.06),heatmapEmptyTileBackground:I.grey80,defaultAnnotationArrowStroke:I.white,defaultAnnotationShapeFill:I.canvasBlue,arrowAnnotationStickerOutlineColor:"#FFFFFF",arrowAnnotationStickerOutlineColorInverse:"#1D2129",annotationFrameBorderColor:I.blue60,editMenuTriggerIconColor:I.white},Ibe={canvasDefault:"#FFFFFF",canvasBlue:"#60a5fa",canvasCyan:"#22d3ee",canvasGreen:"#34d399",canvasYellow:"#FFC800",canvasOrange:"#fb923c",canvasRed:"#f87171",canvasPink:"#F979D9",canvasPurple:"#a78bfa",canvasGray:"#a8a29e",canvasInverse:"#000000"},Bbe={...jbe,...Obe,...G_,...Y_,...q_,...W_,..._be,...Ibe,...U_,...W6,...q6,...X6},Q_=(e,t={})=>{const n={},r={};for(const[a,i]of Object.entries(t))if(i!=null)if(Wue(a)){const o=i;r[a]=o,n[a]=que(a,o)}else n[a]=i;return{values:{...e==="dark"?Bbe:X_,...n},fontOverrides:r}},Z_=(e,t={})=>Q_(e,t).values,J_=(e,t={})=>{const{values:n,fontOverrides:r}
101=Q_(e,t),a=vi(n.legendPillPaddingInline,8),i=vi(n.legendPillPaddingBlock,2),o=vi(n.legendPillBorderWidth,1);return{legendSwatchWidth:vi(n.legendSwatchWidth,10),legendSwatchHeight:vi(n.legendSwatchHeight,12),legendSwatchGap:vi(n.legendSwatchGap,8),legendItemGap:vi(n.legendItemGap,8),legendPillPaddingInline:a,legendPillPaddingBlock:i,legendPillBorderWidth:o,legendPillHorizontalChrome:2*(a+o),legendPillVerticalChrome:2*(i+o),headlineRowGap:vi(n.headlineRowGap,2),headlineItemGap:vi(n.headlineItemGap,24),fonts:Dbe(n,r)}},zbe=Object.freeze(J_("light"));function vi(e,t){const n=e.trim();if(!/^-?\d*\.?\d+(px)?$/.test(n))return t;const r=Number.parseFloat(n);return Number.isFinite(r)?r:t}var eI=E.createContext(zbe),Vbe=({metrics:e,children:t})=>w.jsx(eI.Provider,{value:e,children:t}),Ds=()=>E.useContext(eI),ua=()=>{const{colorScheme:e}=la(),t=tt(n=>n.chrome);return E.useMemo(()=>al({colorScheme:e}).chromeReaders(t),[t,e])},Pbe=e=>{const t=ua(),n=tt(r=>r.config.appearance.textScale);return E.useMemo(()=>tse(t,e,n),[t,e,n])},$be=new RegExp("\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F","gu"),tI="ð",Fbe=class nI{constructor(){this.emojiCorrections=new Map,this.currentFont="";const t=new OffscreenCanvas(1,1).getContext("2d");if(!t)throw new Error("Failed to create OffscreenCanvas 2D context");this.ctx=t}static async create(){return typeof document<"u"&&"fonts"in document&&await document.fonts.ready,new nI}measureText(t,n){const r=Vue(n);this.setFont(r);const{width:a,fontBoundingBoxAscent:i,fontBoundingBoxDescent:o}=this.ctx.measureText(t);let c=a;const u=Hbe(t);if(u>0){const f=this.getEmojiCorrection(r);c-=f*u}return{width:c,height:i+o,ascent:i,descent:o}}setFont(t){this.currentFont!==t&&(this.ctx.font=t,this.currentFont=t)}getEmojiCorrection(t){const n=this.emojiCorrections.get(t);if(n!==void 0)return n;this.setFont(t);const r=this.ctx.measureText(tI).width,a=Ube(t);let i=0;if(a!==null){const o=r-a;i=o>.5?o:0}return this.emojiCorrections.set(t,i),i}},xi=null,Hbe=e=>{const t=e.match($be);return t?t.length:0},Ube=e=>{const t=Gbe();return t?(t.style.font=e,t.getBoundingClientRect().width):null},Gbe=()=>typeof document>"u"?null:(xi||(xi=document.createElement("span"),xi.style.position="absolute",xi.style.visibility="hidden",xi.style.whiteSpace="nowrap",xi.style.left="-9999px",xi.textContent=tI,document.body.appendChild(xi)),xi),rI=E.createContext(null),Ybe=({children:e,measurer:t})=>{const[n,r]=E.useState(null);E.useEffect(()=>{if(t!==void 0)return;let i=!1;const o=()=>{i||r(Wbe())};return(async()=>(typeof document<"u"&&"fonts"in document&&await document.fonts.ready,o()))(),typeof document<"u"&&"fonts"in document&&document.fonts.addEventListener("loadingdone",o),()=>{i=!0,typeof document<"u"&&"fonts"in document&&document.fonts.removeEventListener("loadingdone",o)}},[t]);const a=t??n;return a===null?null:w.jsx(rI.Provider,{value:a,children:e})},ol=()=>{const e=E.useContext(rI);if(e===null)throw new Error("useTextMeasurer must be used inside a <TextMeasurerProvider>.");return e},Wbe=()=>{try{return new tR(new Fbe)}catch{return new tR(new Gue)}},aI=E.createContext(null),qbe=aI.Provider,Xbe=null,Ni=()=>E.useContext(aI)??Xbe??(Xbe=mI()),Kbe="_16vokpr0",Qbe=(e,t)=>e.mapping.y!==void 0!=(t.mainAxis==="y"),Zbe=(e,t)=>{const n=be(e?1-t:t);return e?{x1:"0%",y1:n,x2:"100%",y2:n}:{x1:n,y1:"0%",x2:n,y2:"100%"}},Jbe=(e,t)=>{const n=yae(e,t);return n.length===0?{}:{strokeDasharray:n.join(" "),strokeLinecap:"round",...e==="dashed"?{strokeMiterlimit:16}:{}}},eve=(e,t)=>zm(e)&&zm(t)?`${e}: ${t}`:zm(e)?e:zm(t)?t:null,zm=e=>e!=null&&e.trim()!=="",iI=Object.freeze({}),tA=E.createContext(iI),tve=({slots:e,children:t})=>w.jsx(tA.Provider,{value:e??iI,children:t});function Ea(e,t){const n=E.useContext(tA)[e];return n===void 0?t:typeof n=="object"&&rve(n)?n.render:n}function nve(){var t,n,r,a,i;const e=E.useContext(tA);return{measureAxis:(t=e.AxisTicks)==null?void 0:t.measure,measureAxisLabel:(n=e.AxisLabel)==null?void 0:n.measure,measureLegend:(r=e.Legend)==null?void 0:r.measure,measureHeadline:(a=e.Headline)==null?void 0:a.measure.measureHeadline,measureHeadlineItemWidths:(i=e.Headline)==null?void 0:i.measure.measureHeadlineItemWidths}}function rve(e){return"render"in e&&"measure"in e}var ave="_2qyyu60",i5=2,ive=12,sve=12,s5=1,o5=2,ove=4,Wf=e=>w.jsx(Ea("Swatch",lve),{...e}),lve=({shape:e,color:t,lineType:n="solid",width:r=ive,height:a=sve})=>w.jsx("svg",{className:ave,width:r,height:a,viewBox:`0 0 ${r} ${a}`,"aria-hidden":!0,"data-testid":"chart-swatch","data-shape":e,children:cve({shape:e,color:t,lineType:n,width:r,height:a})}),cve=({shape:e,color:t,lineType:n,width:r,height:a})=>{const i=uve(n,r);switch(e){case"square":return w.jsx("rect",{x:1,y:1,width:r-2,height:a-2,rx:2,fill:t});case"line":return w.jsx("line",{x1:i.x1,y1:a/2,x2:i.x2,y2:a/2,stroke:t,strokeWidth:i5,strokeLinecap:i.linecap,strokeDasharray:i.dashArray});case"circle":{const o=(Math.min(r,a)-2)/2;return w.jsx("circle",{cx:r/2,cy:a/2,r:o,fill:t})}case"area":{const o=a/2-1;return w.jsxs(w.Fragment,{children:[w.jsx("rect",{x:1,y:o,width:r-2,height:a-o-1,fill:t,opacity:.45}),w.jsx("line",{x1:i.x1,y1:o,x2:i.x2,y2:o,stroke:t,strokeWidth:i5,strokeLinecap:i.linecap,strokeDasharray:i.dashArray})]})}case"slice":return w.jsx("path",{d:`M 0 ${a} L ${r} ${a} A ${r} ${a} 0 0 0 0 0 Z`,fill:t})}},uve=(e,t)=>
101e==="solid"?{x1:0,x2:t,dashArray:void 0,linecap:"round"}:e==="dashed"?{x1:0,x2:t,dashArray:`${(t-s5*(o5-1))/o5} ${s5}`,linecap:"butt"}:{x1:0,x2:t,dashArray:`1 ${t/(ove-1)}`,linecap:"round"},Vo=e=>({fontFamily:e.fontFamily??G6,fontSize:e.fontSize,fontWeight:e.fontWeight}),dve=11.7,l5=21.6,fve="0 0 10 18",hve="M2.48935 16.9323L9.07098 9.82964C9.51595 9.34944 9.51504 8.60728 9.0689 8.12818L2.48866 1.06172C1.85811 0.384586 0.974477 0 0.049217 0H0V18H0.0443689C0.972463 18 1.85854 17.6131 2.48935 16.9323Z",mve=({labelPosition:e,linePosition:t,color:n,pillWidth:r,pillHeight:a,text:i,shouldAnimateTransitions:o})=>{const c=e==="start",u=c?-13:-(r-13),f=c?u+r-5:u+5-12,m=c?void 0:`rotate(180 ${f+12/2} ${a/2})`,p=c?"0%":"100%",g=be(1-t),y=w.jsxs("g",{transform:`translate(0, ${-a/2})`,pointerEvents:"none",children:[w.jsx("rect",{x:u,y:0,width:r,height:a,rx:6,fill:n}),w.jsx("g",{transform:m,children:w.jsx("svg",{x:f,y:(a-l5)/2,width:12,height:l5,viewBox:fve,overflow:"visible",children:w.jsx("path",{d:hve,fill:n})})}),w.jsx("g",{transform:`translate(${u+5}, ${a/2})`,children:i})]});return o?w.jsx(fn.svg,{initial:!1,transition:Va,x:p,animate:{y:g},overflow:"visible",children:y}):w.jsx("svg",{x:p,y:g,overflow:"visible",children:y})},pve=({labelPosition:e,linePosition:t,color:n,pillWidth:r,pillHeight:a,text:i,shouldAnimateTransitions:o})=>{const c=e==="start",u=c?-13:-(a-13),f=be(t),m=c?"100%":"0%",p=w.jsxs("g",{transform:`translate(${-r/2}, 0)`,pointerEvents:"none",children:[w.jsx("rect",{x:0,y:u,width:r,height:a,rx:6,fill:n}),w.jsx("g",{transform:`translate(5, ${u+a/2})`,children:i})]});return o?w.jsx(fn.svg,{initial:!1,transition:Va,y:m,animate:{x:f},overflow:"visible",children:p}):w.jsx("svg",{x:f,y:m,overflow:"visible",children:p})},gve=({label:e,textStyle:t,textWidth:n,labelPosition:r,isHorizontalLine:a,position:i,color:o,textColor:c,symbolShape:u,symbolColor:f,shouldAnimateTransitions:m})=>{const p=u===null?0:14,g=n+p+10,y=Math.max(dve,c4(t))+10,x=w.jsxs(w.Fragment,{children:[u!==null&&f!==null&&w.jsx("g",{transform:`translate(0, ${-10/2})`,children:w.jsx(Wf,{shape:u,color:f,surface:"rule-label",width:10,height:10})}),w.jsx("text",{x:p,textAnchor:"start",dominantBaseline:"central",fill:c,style:Vo(t),children:e})]});return a?w.jsx(mve,{labelPosition:r,linePosition:i,color:o,pillWidth:g,pillHeight:y,text:x,shouldAnimateTransitions:m}):w.jsx(pve,{labelPosition:r,linePosition:i,color:o,pillWidth:g,pillHeight:y,text:x,shouldAnimateTransitions:m})},yve=({strokeWidth:e,lineType:t,isHorizontalLine:n,position:r,lineColor:a,shouldAnimateTransitions:i})=>{const o=Zbe(n,r),c=Jbe(t,e);return i?w.jsx(fn.line,{initial:!1,transition:Va,animate:{x1:o.x1,y1:o.y1,x2:o.x2,y2:o.y2},...c,stroke:a,strokeWidth:e,vectorEffect:"non-scaling-stroke"}):w.jsx("line",{...o,...c,stroke:a,strokeWidth:e,vectorEffect:"non-scaling-stroke"})},bve=E.memo(function({layer:e,coordSystem:t,formattingLocale:n,shouldAnimateTransitions:r}){var $;const a=ol(),i=Ni(),{guides:o,numberFormat:c,layers:u,colorScale:f}=tt(Er(T=>({guides:T.guides,numberFormat:T.config.numberFormat,layers:T.spec.layers,colorScale:T.scales.color}))),m=E.useMemo(()=>Tre(u,f).get(e.id)??null,[u,f,e.id]),p=m?(($=i(m.geom,t.type))==null?void 0:$.swatchShape)??"square":null,g=E.useMemo(()=>eve(e.params.label,lae({guides:o,numberFormat:c,layer:e,locale:n})),[o,c,n,e]),{fonts:y}=Ds(),x=Pbe(e.id),S=E.useMemo(()=>jf(x,y.familyDefault),[x,y.familyDefault]),A=E.useMemo(()=>g===null?0:a.measureText(g,S).width,[g,S,a]),M=Xt(e),C=e.data.getFirst();if(!C)return null;const R=M.get("color",C),L=eN(R),N=Qbe(e,t),O=N?et(C):it(C);return O===null?null:w.jsxs("g",{"data-geom":"rule",className:Kbe,children:[w.jsx(yve,{strokeWidth:M.get("strokeWidth",C),lineType:M.get("lineType",C),isHorizontalLine:N,position:O,lineColor:R,shouldAnimateTransitions:r}),g!==null&&w.jsx(gve,{label:g,textStyle:x,textWidth:A,labelPosition:e.params.labelPosition,isHorizontalLine:N,position:O,color:R,textColor:L,symbolShape:p,symbolColor:(m==null?void 0:m.color)??null,shouldAnimateTransitions:r})]})}),vve={geom:"rule",coord:"cartesian",render:({layer:e,coordSystem:t,formattingLocale:n,shouldAnimateTransitions:r})=>w.jsx(bve,{layer:e,coordSystem:t,formattingLocale:n,shouldAnimateTransitions:r}),renderHover:()=>null,renderHoverCompanions:()=>null},xve=E.memo(function({layer:e,shouldAnimateTransitions:t,intro:n}){const r=(n==null?void 0:n.type)==="fade"?n:null,a=Xt(e),i=E.useMemo(()=>{const o=bae(e.data,e.mapping,e.id),c=[];for(const u of e.data){const f=Yw(u);f&&Lf(u)&&c.push({key:o(u),...f,fill:a.get("color",u),opacity:a.get("alpha",u)})}return c.map(({key:u,...f})=>w.jsx(wve,{...f,isAnimated:t},u))},[e,a,t]);return r?w.jsx(fn.g,{initial:{opacity:0}
101,animate:{opacity:1},transition:W0e(r),children:i}):i}),wve=({isAnimated:e,...t})=>e?w.jsx(fn.rect,{initial:!1,style:{transformBox:"view-box"},transition:Va,fill:t.fill,opacity:t.opacity,rx:8,animate:{x:be(t.x),y:be(t.y),width:be(t.width),height:be(t.height)}}):w.jsx("rect",{style:{transformBox:"view-box"},x:be(t.x),y:be(t.y),width:be(t.width),height:be(t.height),fill:t.fill,opacity:t.opacity,rx:8}),gd=2,Sve=({layer:e,primary:t,panelRect:n})=>{const r=Xt(e),a=Yw(t.observation);if(!a||!Lf(t.observation))return null;const i=r.get("color",t.observation),o=r.get("alpha",t.observation),c=r.get("borderColor",t.observation,"hovered")??yf,u=a.x*n.width,f=a.y*n.height,m=a.width*n.width,p=a.height*n.height;return w.jsxs("g",{"data-testid":"hovered-tile",children:[w.jsx("rect",{x:u-gd,y:f-gd,width:m+gd*2,height:p+gd*2,rx:8+gd,fill:c,"data-testid":"hovered-tile-border"}),w.jsx("rect",{x:be(a.x),y:be(a.y),width:be(a.width),height:be(a.height),rx:8,fill:i,opacity:o,"data-testid":"hovered-tile-fill"})]})},Ave={geom:"tile",coord:"cartesian",swatchShape:"square",guideMode:null,render:({layer:e,shouldAnimateTransitions:t,intro:n})=>w.jsx(xve,{layer:e,shouldAnimateTransitions:t,intro:n}),renderHover:({layer:e,primary:t,panelRect:n})=>w.jsx(Sve,{layer:e,primary:t,panelRect:n}),renderHoverCompanions:()=>null},Jp=({primary:e,companions:t})=>{const n=w.jsxs(w.Fragment,{children:[t.map(r=>w.jsx(Ls,{hit:r,project:za},`companion-${r.layerId}-${r.pointIndex}`)),e?w.jsx(cu,{hit:e,project:za}):null]});return e?w.jsx("g",{"data-testid":"hovered-point",children:n}):n},A1=e=>{const[t,...n]=e;if(!t)return"";const r=n.map(a=>`L ${a.x} ${a.y}`).join(" ");return`M ${t.x} ${t.y} ${r} Z`},Mve=E.memo(function({layer:e}){const t=Xt(e),n=E.useMemo(()=>{const r=Tr(e.data,e.mapping,e.id),a=[];return e.data.groupBy(pt.group).forEach(i=>{const o=[...i],c=sI(o);if(!c)return;const u=o[0];u&&a.push({key:r(u),fillPath:c.fillPath,outlinePath:c.outlinePath,color:t.get("color",u),fillOpacity:t.get("alpha",u),strokeOpacity:t.get("strokeAlpha",u),strokeWidth:t.get("strokeWidth",u)})}),a},[e.data,e.id,e.mapping,t]);return w.jsx("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%","data-geom":"area",className:ca,children:n.map(r=>w.jsxs("g",{children:[w.jsx("path",{d:r.fillPath,fill:r.color,fillOpacity:r.fillOpacity,fillRule:"evenodd"}),w.jsx("path",{d:r.outlinePath,fill:"none",stroke:r.color,strokeWidth:r.strokeWidth,opacity:r.strokeOpacity,vectorEffect:"non-scaling-stroke"})]},r.key))})}),sI=e=>{const t=[];for(const i of e){const o=it(i),{innerRadius:c,outerRadius:u}=tu(i);o===null||c===null||u===null||t.push({angle:o,outer:oa(o,u),inner:oa(o,c)})}if(t.length===0)return null;t.sort((i,o)=>i.angle-o.angle);const n=t.map(i=>i.outer),r=t.map(i=>i.inner),a=A1(n);return{fillPath:r.some(i=>i.x!==0||i.y!==0)?`${a} ${A1([...r].reverse())}`:a,outlinePath:a}},Tve=({layer:e,primary:t,companions:n})=>{const r=Xt(e),a=Ua(t.observation),i=E.useMemo(()=>sI([...e.data.filter(pt.group,"eq",a)]),[e.data,a]);if(!i)return null;const o=r.get("color",t.observation),c=r.get("alpha",t.observation),u=r.get("strokeAlpha",t.observation),f=r.get("strokeWidth",t.observation);return w.jsxs(w.Fragment,{children:[w.jsxs("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%","data-geom":"area","data-testid":"hovered-area",className:ca,children:[w.jsx("path",{d:i.fillPath,fill:o,fillOpacity:c,fillRule:"evenodd","data-testid":"hovered-area-fill"}),w.jsx("path",{d:i.outlinePath,fill:"none",stroke:o,strokeWidth:f,opacity:u,vectorEffect:"non-scaling-stroke","data-testid":"hovered-area-edge"})]}),n.map(m=>w.jsx(Ls,{hit:m,project:za},`companion-${m.layerId}-${m.pointIndex}`)),w.jsx(cu,{hit:t,project:za,"data-testid":"hovered-area-point"})]})},kve={geom:"area",coord:"polar",swatchShape:"area",guideMode:"crosshair",render:({layer:e})=>w.jsx(Mve,{layer:e}),renderHover:({layer:e,primary:t,group:n,related:r})=>w.jsx(Tve,{layer:e,primary:t,companions:[...n,...r]}),renderHoverCompanions:({related:e})=>w.jsx(Jp,{companions:e}),getOverlayAnchor:({observation:e})=>{const t=it(e),n=hn(e)??et(e);if(t===null||n===null)return null;const{x:r,y:a}=za(t,n);return{x:r,y:1-a}}},Bd=(e,t)=>({stroke:e,strokeWidth:t,vectorEffect:"non-scaling-stroke"}),Eve=E.memo(function({layer:e,coordSystem:t,shouldAnimateTransitions:n,intro:r}){const a=E.useId(),i=Zg((r==null?void 0:r.type)==="grow"&&(r.growAxis==="angle"||r.growAxis==="radius")?r:null,n),o=t.bandAxis!=="x",c=Xt(e),u=E.useMemo(()=>{const f=Tr(e.data,e.mapping,e.id),m=new Map;for(const p of e.data){const g=f(p),{startAngle:y,endAngle:x}=Df(p),{innerRadius:S,outerRadius:A}=tu(p);if(y===null||x===null||S===null||A===null)continue;const M={key:g,startAngle:y,endAngle:x,innerRadius:S,outerRadius:A,fill:c.get("color",p),opacity:c.get("alpha",p)},C=Cg(t.bandAxis,M),R=m.get(C);R?R.items.push(M):m.set(C,{items:[M],style:uu(c,p)})}return[...m.values()].map(({items:p,style:g},y)=>{var x;return{key:((x=p[0])==null?void 0:x.key)??String(y),items:p,union:gae(p),style:g}})},[e.data,e.mapping,e.id,t.bandAxis,c]);return w.jsx("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%","data-geom":"bar",className:ca,children:u.map((f,m)=>{var $;const{borderColor:p,borderWidth:g,borderRadius:y,borderAlpha:x}=f.style,S=p!==void 0,A=Nf(g),M=p===void 0?{}:Bd(p,A.separatorWidth),C=p===void 0?void 0:Bd(p,A.outlineWidth),R=f.items.map(T=>{const{key:j,..._}=T;return i.isAnimated?w.jsx(Cve,{..._,animation:i,sweepsInOnLateMount:o,introKey:j,pathProps:{fill:_.fill,opacity:_.opacity,...M}},j):w.jsx("path",{d:Bo(_)??void 0,fill:_.fill,opacity:_.opacity,...M},j)}),L=Xj(y,f.union.outerRadius-f.union.innerRadius);if(!S&&L<=0)return w.jsx(E.Fragment,{children:R},f.key);const N=`${a}${m}`;if(i.isAnimated)return w.jsx("g",{clipPath:`url(#${N})`,children:w.jsx(Rve,{...f.union,cornerRadius:L,animation:i,sweepsInOnLateMount:o,introKey:($=f.items[0])==null?void 0:$.key,clipId:N,outlineProps:C,outlineOpacity:x,children:R})},f.key);const O=Bo({...f.union,cornerRadius:L});return w.jsxs("g",{clipPath:`url(#${N})`,children:[w.jsx("clipPath",{id:N,children:w.jsx("path",{d:O})}),R,C!==void 0&&w.jsx("path",{d:O,fill:"none",opacity:x,...C})]},f.key)})})}),oI=({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r,cornerRadius:a,animation:i,sweepsInOnLateMount:o,introKey:c})=>{var O,$;const u=((O=i.activeIntro)==null?void 0:O.growAxis)==="angle"?i.activeIntro:null,f=(($=i.activeIntro)==null?void 0:$.growAxis)==="radius"?i.activeIntro:null,m=o&&!i.isLayerEntrance,p=(u==null?void 0:u.baseline)??(m?hs:e),g=(u==null?void 0:u.baseline)??(m?hs:t),y=f?f.baseline:n,x=f?f.baseline:r,S=ra(p),A=ra(g),M=ra(y),C=ra(x),R=ra(Bo({startAngle:p,endAngle:g,innerRadius:y,outerRadius:x,cornerRadius:a})??""),L=S1(i,c,u);E.useEffect(()=>{const T=L(),j=[Ti(S,e,T),Ti(A,t,T)];return()=>{for(const _ of j)_.stop()}},[S,A,e,t,L]);const N=S1(i,c,f);return E.useEffect(()=>{const T=N(),j=[Ti(M,n,T),Ti(C,r,T)];return()=>{for(const _ of j)_.stop()}},[M,C,n,r,N]),E.useEffect(()=>{const T=()=>{R.set(Bo({startAngle:S.get(),endAngle:A.get(),innerRadius:M.get(),outerRadius:C.get(),cornerRadius:a})??"")};T();const j=[S,A,M,C].map(_=>_.on("change",T));return()=>{for(const _ of j)_()}},[S,A,M,C,a,R]),R},Cve=({pathProps:e,...t})=>{const n=oI(t);return w.jsx(fn.path,{d:n,transition:Va,...e})}
101,Rve=({clipId:e,outlineProps:t,outlineOpacity:n,children:r,...a})=>{const i=oI(a);return w.jsxs(w.Fragment,{children:[w.jsx("clipPath",{id:e,children:w.jsx(fn.path,{d:i})}),r,t!==void 0&&w.jsx(fn.path,{d:i,fill:"none",opacity:n,transition:Va,...t})]})},Lve=(e,t)=>{const n=e==="solo"||e==="floor",r=e==="solo"||e==="ceiling";return t==="x"?{innerArc:n,outerArc:r,startSpoke:!0,endSpoke:!0}:{innerArc:!0,outerArc:!0,startSpoke:n,endSpoke:r}},lI=(e,t,n)=>{const r=new Map;for(const i of e.data){const o=dI(i);if(o===null)continue;const c=Cg(t,o),u=r.get(c);u===void 0?r.set(c,{firstObservation:i,innerRadius:o.innerRadius,outerRadius:o.outerRadius}):(u.innerRadius=Math.min(u.innerRadius,o.innerRadius),u.outerRadius=Math.max(u.outerRadius,o.outerRadius))}const a=new Map;for(const[i,{firstObservation:o,innerRadius:c,outerRadius:u}]of r)a.set(i,{style:uu(n,o),radialSpan:u-c});return a},cI=(e,t,n,r)=>{const a=dI(r),i=a===null?void 0:e.get(Cg(t,a));return i!==void 0?i:{style:uu(n,r),radialSpan:a===null?0:a.outerRadius-a.innerRadius}},uI=({observation:e,bandAxis:t,styleReaders:n,group:r})=>{const a=E.useId(),i=E.useId(),{startAngle:o,endAngle:c}=Df(e),{innerRadius:u,outerRadius:f}=tu(e);if(o===null||c===null||u===null||f===null)return null;const m={startAngle:o,endAngle:c,innerRadius:u,outerRadius:f},p=Bo(m);if(p===void 0)return null;const g=n.get("color",e),y=n.get("alpha",e),{borderColor:x,borderWidth:S,borderRadius:A,borderAlpha:M}=r.style,C=Xj(A,r.radialSpan),R=C>0;if(x===void 0&&!R)return w.jsx("path",{d:p,fill:g,opacity:y,"data-testid":"arc-segment"});const L=Lve(zN(e),t),N=R?Bo({...Nve(m,L,C),cornerRadius:C})??p:p,O=x===void 0?null:{color:x,...Nf(S)},$=O===null?"":d5(m,jve(L));return w.jsxs("g",{clipPath:`url(#${a})`,"data-testid":"arc-segment",children:[w.jsx("clipPath",{id:a,children:w.jsx("path",{d:p})}),w.jsx("path",{d:N,fill:g,opacity:y}),O!==null&&$!==""&&w.jsx("path",{d:$,fill:"none",opacity:y,...Bd(O.color,O.separatorWidth)}),O!==null&&(R?w.jsxs("g",{clipPath:`url(#${i})`,children:[w.jsx("clipPath",{id:i,children:w.jsx("path",{d:N})}),w.jsx("path",{d:N,fill:"none",opacity:M,...Bd(O.color,O.outlineWidth)})]}):w.jsx("path",{d:d5(m,L),fill:"none",opacity:M,...Bd(O.color,O.outlineWidth)}))]})},Dve=({layer:e,sourceLayer:t,coordSystem:n})=>{const r=Xt(t),a=E.useMemo(()=>lI(t,n.bandAxis,r),[t,n.bandAxis,r]),i=Tr(e.data,e.mapping,e.id),o=[];for(const c of e.data)o.push(w.jsx(uI,{observation:c,bandAxis:n.bandAxis,styleReaders:r,group:cI(a,n.bandAxis,r,c)},i(c)));return w.jsx("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%","data-geom":"bar",className:ca,children:o})},Nve=(e,t,n)=>{let{startAngle:r,endAngle:a,innerRadius:i,outerRadius:o}=e;t.innerArc||(i=Math.max(0,i-n)),t.outerArc||(o=o+n);const c=Math.max(i,n),u=c>0?n/c:0,f=Math.sign(a-r)||1;return t.startSpoke||(r-=u*f),t.endSpoke||(a+=u*f),{startAngle:r,endAngle:a,innerRadius:i,outerRadius:o}},dI=e=>{const{startAngle:t,endAngle:n}=Df(e),{innerRadius:r,outerRadius:a}=tu(e);return t===null||n===null||r===null||a===null?null:{startAngle:t,endAngle:n,innerRadius:r,outerRadius:a}},zd=(e,t)=>{const n=oa(t,e);return`${n.x},${n.y}`},c5=(e,t,n)=>{if(e<=0)return"";const r=zd(e,t);if(vw(t,n))return`M${r}A${e},${e} 0 1 1 ${zd(e,t+Math.PI)}A${e},${e} 0 1 1 ${r}`;const a=n-t;return`M${r}A${e},${e} 0 ${Math.abs(a)>Math.PI?1:0} ${a>=0?1:0} ${zd(e,n)}`},u5=(e,t,n)=>`M${zd(t,e)}L${zd(n,e)}`,d5=(e,t)=>{const{startAngle:n,endAngle:r,innerRadius:a,outerRadius:i}=e,o=vw(n,r);return[t.innerArc?c5(a,n,r):"",t.outerArc?c5(i,n,r):"",t.startSpoke&&!o?u5(n,a,i):"",t.endSpoke&&!o?u5(r,a,i):""].filter(Boolean).join("")},jve=e=>({innerArc:!e.innerArc,outerArc:!e.outerArc,startSpoke:!e.startSpoke,endSpoke:!e.endSpoke}),Ove=({layer:e,coordSystem:t,primary:n})=>{const r=Xt(e),a=cI(E.useMemo(()=>lI(e,t.bandAxis,r),[e,t.bandAxis,r]),t.bandAxis,r,n.observation);return w.jsx("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%","data-geom":"arc","data-testid":"hovered-arc",className:ca,children:w.jsx(uI,{observation:n.observation,bandAxis:t.bandAxis,styleReaders:r,group:a})})},_ve={geom:"bar",coord:"polar",swatchShape:"slice",guideMode:"band",render:({layer:e,coordSystem:t,shouldAnimateTransitions:n,intro:r})=>w.jsx(Eve,{layer:e,coordSystem:t,shouldAnimateTransitions:n,intro:r}),renderHighlight:({layer:e,sourceLayer:t,coordSystem:n})=>w.jsx(Dve,{layer:e,sourceLayer:t,coordSystem:n}),renderHover:({layer:e,coordSystem:t,primary:n})=>w.jsx(Ove,{layer:e,coordSystem:t,primary:n}),renderHoverCompanions:()=>null},Ive=E.memo(function({layer:e}){const t=Xt(e),n=E.useMemo(()=>{const r=Tr(e.data,e.mapping,e.id),a=[];
101return e.data.groupBy(pt.group).forEach(i=>{const o=[...i],c=fI(o);if(!c)return;const u=o[0];u&&a.push({key:r(u),pathData:c,color:t.get("color",u),opacity:t.get("alpha",u),strokeWidth:t.get("strokeWidth",u),strokeDasharray:nu(t.get("lineType",u))})}),a},[e.data,e.id,e.mapping,t]);return w.jsx("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%","data-geom":"line",className:ca,children:n.map(r=>w.jsx("path",{d:r.pathData,fill:"none",stroke:r.color,strokeWidth:r.strokeWidth,opacity:r.opacity,strokeDasharray:r.strokeDasharray,vectorEffect:"non-scaling-stroke"},r.key))})}),fI=e=>{const t=[];for(const n of e){const r=it(n),a=et(n);r===null||a===null||t.push({angle:r,point:oa(r,a)})}return t.length===0?null:(t.sort((n,r)=>n.angle-r.angle),A1(t.map(n=>n.point)))},Bve=({layer:e,primary:t,companions:n})=>{const r=Xt(e),a=Ua(t.observation),i=E.useMemo(()=>fI([...e.data.filter(pt.group,"eq",a)]),[e.data,a]);if(!i)return null;const o=r.get("color",t.observation),c=r.get("alpha",t.observation),u=r.get("strokeWidth",t.observation),f=nu(r.get("lineType",t.observation));return w.jsxs(w.Fragment,{children:[w.jsx("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%","data-geom":"line","data-testid":"hovered-line",className:ca,children:w.jsx("path",{d:i,fill:"none",stroke:o,strokeWidth:u,opacity:c,strokeDasharray:f,vectorEffect:"non-scaling-stroke","data-testid":"hovered-line-path"})}),n.map(m=>w.jsx(Ls,{hit:m,project:za},`companion-${m.layerId}-${m.pointIndex}`)),w.jsx(cu,{hit:t,project:za,"data-testid":"hovered-line-point"})]})},zve={geom:"line",coord:"polar",swatchShape:"line",guideMode:"crosshair",render:({layer:e})=>w.jsx(Ive,{layer:e}),renderHover:({layer:e,primary:t,group:n,related:r})=>w.jsx(Bve,{layer:e,primary:t,companions:[...n,...r]}),renderHoverCompanions:({related:e})=>w.jsx(Jp,{companions:e}),getOverlayAnchor:({observation:e})=>{const t=it(e),n=et(e);if(t===null||n===null)return null;const{x:r,y:a}=za(t,n);return{x:r,y:1-a}}},Vve=E.memo(function({layer:e,shouldAnimateTransitions:t,intro:n}){const r=Xt(e),a=Zg((n==null?void 0:n.type)==="grow"&&n.growAxis==="size"?n:null,t);return E.useMemo(()=>{const i=a.activeIntro?Tr(e.data,e.mapping,e.id):null,o=[];let c=0;for(const u of e.data)o.push(w.jsx(F_,{observation:u,project:za,styleReaders:r,animation:a,introKey:i==null?void 0:i(u)},String(c++)));return o},[e.data,e.mapping,e.id,r,a])}),Pve={geom:"point",coord:"polar",swatchShape:"circle",render:({layer:e,shouldAnimateTransitions:t,intro:n})=>w.jsx(Vve,{layer:e,shouldAnimateTransitions:t,intro:n}),renderHover:({primary:e,group:t,related:n})=>w.jsx(Jp,{primary:e,companions:[...t,...n]}),renderHoverCompanions:({related:e})=>w.jsx(Jp,{companions:e}),getOverlayAnchor:({observation:e})=>{const t=it(e),n=et(e);if(t===null||n===null)return null;const{x:r,y:a}=za(t,n);return{x:r,y:1-a}}},hI={bar:{cartesian:mbe,polar:_ve},line:{cartesian:xbe,polar:zve},area:{cartesian:abe,polar:kve},point:{cartesian:Sbe,polar:Pve},rule:{cartesian:vve},tile:{cartesian:Ave}};function ey(e){return typeof e=="function"?{overlay:!1,fn:e}:{overlay:!0,fn:e.fn}}function ty(e){return e?ey(e.render).overlay:!1}function ny(e,t){return typeof e=="string"?{...t,geom:e}:{...t,definition:e,geom:e.type}}function mI(e=[]){var n;const t={};for(const[r,a]of Object.entries(hI))t[r]={...a};for(const r of e)(t[n=r.geom]??(t[n]={}))[r.coord]=r;return(r,a)=>{var i;return((i=t[r])==null?void 0:i[a])??null}}var Rc=e=>{const t=E.useRef(e);return t.current=e,t},$ve=()=>{const e=new Map;return zg(t=>({hover:gr,tooltipAnchor:null,pointerRegions:[],isPointerSuspended:!1,setHoverState:n=>t(r=>r.hover===n?r:{hover:n}),setTooltipAnchor:n=>t(r=>Fve(r.tooltipAnchor,n)?r:{tooltipAnchor:n}),publishPointerRegions:(n,r)=>{r.length===0?e.delete(n):e.set(n,r);const a=Hre(e);t(i=>Ure(i.pointerRegions,a)?i:{pointerRegions:a})},setPointerSuspended:n=>t(r=>r.isPointerSuspended===n?r:{isPointerSuspended:n})}))},Fve=(e,t)=>e===t?!0:e===null||t===null?!1:e.x===t.x&&e.y===t.y&&e.placement===t.placement&&e.annotationId===t.annotationId,Hve=(e,t)=>
101{const n=E.useMemo(()=>({layers:e,coordSystem:t}),[e,t]),r=E.useRef(null);r.current===null&&(r.current=new oie(n));const a=r.current,i=E.useRef(!1);return E.useEffect(()=>{if(!i.current){i.current=!0;return}a.update(n)},[a,n]),a},pI=E.createContext(null),Uve=({children:e})=>{const{layers:t,coordSystem:n}=tt(Er(c=>({layers:c.layers,coordSystem:c.coordSystem}))),r=Hve(t,n),[a]=E.useState(()=>$ve()),i=E.useRef(null),o=E.useRef(null);return o.current===null&&(o.current={engine:r,store:a,overlayRef:i}),w.jsx(pI.Provider,{value:o.current,children:e})},ll=()=>{const e=E.useContext(pI);if(e===null)throw new Error("useHoverContext must be used inside a <HoverProvider>.");return e};function Gve(e,t){const{engine:n}=ll(),r=E.useRef(t);E.useEffect(()=>{r.current=t},[t]),E.useEffect(()=>(n.registerHitTester(e,a=>r.current(a)),()=>n.unregisterHitTester(e)),[n,e])}var Yve=({hitTest:e,input:t})=>{const n=E.useMemo(()=>e(t),[e,t.layer.data]);return Gve(t.layer.id,n),null},Wve="graphy_root",gI=()=>typeof document>"u"?null:document.getElementById(Wve)??document.body,qve="_10igzta0",Xve=({rect:e,zIndex:t,container:n,boxRef:r,children:a,...i})=>n===null?null:YS.createPortal(w.jsx("div",{...i,ref:r,className:qve,style:{transform:`translate(${e.left}px, ${e.top}px)`,width:e.width,height:e.height,zIndex:t},children:a}),n),Kve=({rect:e,children:t})=>{const[n]=E.useState(gI);return w.jsx(Xve,{rect:e,zIndex:Ad.panelOverlay,container:n,children:t})},Qve=(e,t)=>{const n=Rc(e),r=Rc(t),a=E.useRef(null),i=E.useRef(null),o=E.useMemo(()=>{const c=()=>{i.current!==null&&(clearTimeout(i.current),i.current=null),a.current=null},u=()=>{i.current!==null&&(clearTimeout(i.current),i.current=null);const f=a.current;f!==null&&(a.current=null,n.current(...f))};return{run:(...f)=>{if(r.current<=0){n.current(...f);return}a.current=f,i.current!==null&&clearTimeout(i.current),i.current=setTimeout(u,r.current)},flush:u,cancel:c}},[n,r]);return E.useEffect(()=>()=>{i.current!==null&&clearTimeout(i.current)},[]),o},Zve={width:0,height:0,isDefault:!0},yI=({debounce:e=0,onResize:t}={})=>{const[n,r]=E.useState(Zve),a=E.useRef(null),i=Qve(f=>{const m=a.current;m&&m.width===f.width&&m.height===f.height||(a.current={width:f.width,height:f.height},t==null||t(f),r(f))},e),o=E.useRef(null),c=E.useRef(null),u=E.useCallback(f=>{var m;o.current!==f&&(o.current&&((m=c.current)==null||m.unobserve(o.current)),o.current=f,f&&(c.current??(c.current=new ResizeObserver(([p])=>{var x,S;if(!p)return;const g=Math.round(((x=p.contentBoxSize[0])==null?void 0:x.inlineSize)??p.contentRect.width),y=Math.round(((S=p.contentBoxSize[0])==null?void 0:S.blockSize)??p.contentRect.height);i.run({width:g,height:y,isDefault:!1})})),c.current.observe(f)))},[i]);return{...n,setElement:u}};function Jve(){const[e,t]=E.useState(null),n=E.useRef(null),r=E.useRef(null),a=E.useRef(null),i=E.useCallback(()=>{a.current=null;const f=r.current;if(!f)return;const m=f.getBoundingClientRect();if(m.width===0||m.height===0){n.current!==null&&(n.current=null,t(null));return}const p={left:m.left,top:m.top,width:m.width,height:m.height},g=n.current;g&&g.left===p.left&&g.top===p.top&&g.width===p.width&&g.height===p.height||(n.current=p,t(p))},[]),o=E.useCallback(()=>{a.current===null&&(a.current=requestAnimationFrame(i))},[i]),{setElement:c}=yI({onResize:o}),u=E.useCallback(f=>{r.current=f,c(f),f&&i()},[c,i]);return E.useEffect(()=>(window.addEventListener("scroll",o,!0),window.addEventListener("resize",o),()=>{window.removeEventListener("scroll",o,!0),window.removeEventListener("resize",o),a.current!==null&&cancelAnimationFrame(a.current)}),[o]),{measureRef:u,screenRect:e}}function exe(e){const{engine:t,store:n}=ll();return E.useCallback((r,a)=>{var f;const{hover:i,setHoverState:o,setTooltipAnchor:c}=n.getState(),u=r===null?gr:t.resolveHoverByKey(e,r);if(u.primary===null){((f=i.primary)==null?void 0:f.layerId)===e&&(o(gr),c(null));return}o(u),c(a?{x:a.clientX,y:a.clientY,placement:"top"}:null)},[t,n,e])}var txe=({render:e,input:t})=>{const n=exe(t.layer.id),{measureRef:r,screenRect:a}=Jve();return E.useEffect(()=>()=>n(null),[n]),w.jsxs(w.Fragment,{children:[w.jsx("rect",{ref:r,x:0,y:0,width:"100%",height:"100%",fill:"none",pointerEvents:"none"}),a&&w.jsx(Kve,{rect:a,children:w.jsx(nxe,{render:e,input:t,pushHover:n,panelRect:a})})]})},nxe=({render:e,input:t,pushHover:n,panelRect:r})=>e({...t,overlay:{pushHover:n,panelRect:r}}),eg={enabled:!0,durationScale:1,stagger:!0,staggerOrder:"main-axis",maxAnimatedGeoms:1500},rxe=.3,axe=.3,ixe=(e,t)=>t?{intro:{...eg,enabled:!1},transitions:!1}:typeof e=="boolean"?{intro:{...eg,enabled:e},transitions:e}:{intro:sxe(e==null?void 0:e.intro),transitions:(e==null?void 0:e.transitions)??!0},sxe=e=>typeof e=="boolean"?{...eg,enabled:e}:Go({},eg,e),oxe={loading:"Ø¬Ø§Ø±Ù Ø§ÙØªØÙ
ÙÙ",error:"ØØ¯Ø« خطأ Ù
ا",axisLabels:{placeholder:"Ø¥Ø¶Ø§ÙØ© تسÙ
ÙØ©"},defaultPropertyLabels:{date:"Ø§ÙØªØ§Ø±ÙØ®",year:"Ø§ÙØ³ÙØ©",quarter:"Ø§ÙØ±Ø¨Ø¹",month:"Ø§ÙØ´Ùر",week:"Ø§ÙØ£Ø³Ø¨Ùع",series:"Ø§ÙØ³ÙØ³ÙØ©",category:"اÙÙØ¦Ø©",columnNumber:({number:e})=>`Ø§ÙØ¹Ù
ÙØ¯ ${e}`,rowNumber:({number:e})=>`Ø§ÙØµÙ ${e}`,seriesNumber:({number:e})=>`Ø§ÙØ³ÙØ³ÙØ© ${e}`},trendComparison:{fromPrevious:{long:({value:e})=>`${e} Ù
ÙØ§Ø¨Ù Ø§ÙØ³Ø§Ø¨Ù`,short:({value:e})=>`${e} Ù
ÙØ§Ø¨Ù Ø§ÙØ³Ø§Ø¨Ù`},fromPreviousYear:{long:({value:e})=>`${e} Ù
ÙØ§Ø¨Ù Ø§ÙØ³ÙØ© Ø§ÙØ³Ø§Ø¨ÙØ©`,short:({value:e})=>`${e} Ù
ÙØ§Ø¨Ù Ø§ÙØ³ÙØ© Ø§ÙØ³Ø§Ø¨ÙØ©`},fromPreviousMonth:{long:({value:e})=>`${e} Ù
ÙØ§Ø¨Ù Ø§ÙØ´Ùر Ø§ÙØ³Ø§Ø¨Ù`,short:({value:e})=>`${e} Ù
ÙØ§Ø¨Ù Ø§ÙØ´Ùر Ø§ÙØ³Ø§Ø¨Ù`},fromPreviousWeek:{long:({value:e})=>`${e} Ù
ÙØ§Ø¨Ù Ø§ÙØ£Ø³Ø¨Ùع Ø§ÙØ³Ø§Ø¨Ù`,short:({value:e})=>`${e} Ù
ÙØ§Ø¨Ù Ø§ÙØ£Ø³Ø¨Ùع Ø§ÙØ³Ø§Ø¨Ù`},fromPreviousDay:{long:({value:e})=>`${e} Ù
ÙØ§Ø¨Ù اÙÙÙÙ
Ø§ÙØ³Ø§Ø¨Ù`,short:({value:e})=>`${e} Ù
ÙØ§Ø¨Ù اÙÙÙÙ
Ø§ÙØ³Ø§Ø¨Ù`},fromPreviousHour:{long:({value:e})=>`${e} Ù
ÙØ§Ø¨Ù Ø§ÙØ³Ø§Ø¹Ø© Ø§ÙØ³Ø§Ø¨ÙØ©`,short:({value:e})=>`${e} Ù
ÙØ§Ø¨Ù Ø§ÙØ³Ø§Ø¹Ø© Ø§ÙØ³Ø§Ø¨ÙØ©`}},headlineMetrics:{averageLong:({value:e})=>`اÙÙ
ØªÙØ³Ø· ${e}`,averageShort:({value:e})=>`اÙÙ
ØªÙØ³Ø· ${e}`,total:({value:e})=>`اÙÙ
جÙ
ÙØ¹ ${e}`,totalConversionRate:({value:e})=>`Ù
Ø¹Ø¯Ù Ø§ÙØªØÙÙÙ Ø§ÙØ¥Ø¬Ù
اÙÙ ${e}`,current:({value:e})=>e,comparisonReference:({value:e})=>`Ù
Ù ${e}`},legend:{hiddenItems:"Ø¹ÙØ§ØµØ± ÙØ³ÙÙØ© Ø§ÙØ¥ÙØ¶Ø§Ø Ø§ÙÙ
Ø®ÙÙØ©"}},lxe={graph:oxe,dir:"rtl"},cxe={loading:"Loading",error:"Something went wrong",axisLabels:{placeholder:"Add label"},defaultPropertyLabels:{date:"Date",year:"Year",quarter:"Quarter",month:"Month",week:"Week",series:"Series",category:"Category",columnNumber:({number:e})=>`Column ${e}`,rowNumber:({number:e})=>`Row ${e}`,seriesNumber:({number:e})=>`Series ${e}`},trendComparison:{fromPrevious:{long:({value:e})=>`${e} vs previous`,short:({value:e})=>`${e} vs prev`},fromPreviousYear:{long:({value:e})=>`${e} vs previous year`,short:({value:e})=>`${e} vs prev year`},fromPreviousMonth:{long:({value:e})=>`${e} vs previous month`,short:({value:e})=>`${e} vs prev month`},fromPreviousWeek:{long:({value:e})=>`${e} vs previous week`,short:({value:e})=>`${e} vs prev week`},fromPreviousDay:{long:({value:e})=>`${e} vs previous day`,short:({value:e})=>`${e} vs prev day`},fromPreviousHour:{long:({value:e})=>`${e} vs previous hour`,short:({value:e})=>`${e} vs prev hour`}},headlineMetrics:{averageLong:({value:e})=>`Average ${e}`,averageShort:({value:e})=>`Avg. ${e}`,total:({value:e})=>`Total ${e}`,totalConversionRate:({value:e})=>`Total conversion rate ${e}`,current:({value:e})=>e,comparisonReference:({value:e})=>`from ${e}`},legend:{hiddenItems:"Hidden legend items"}},uxe={graph:cxe,dir:"ltr"},dxe={},fxe={loading:"A carregar",error:"Algo correu mal",axisLabels:{placeholder:"Adicionar etiqueta"},defaultPropertyLabels:{date:"Data",year:"Ano",quarter:"Trimestre",month:"Mês",week:"Semana",series:"Série",category:"Categoria",columnNumber:({number:e})=>`Coluna ${e}`,rowNumber:({number:e})=>`Linha ${e}`,seriesNumber:({number:e})=>`Série ${e}`},trendComparison:{fromPrevious:{long:({value:e})=>`${e} vs anterior`,short:({value:e})=>`${e} vs ant`},fromPreviousYear:{long:({value:e})=>`${e} vs ano anterior`,short:({value:e})=>`${e} vs ano ant`},fromPreviousMonth:{long:({value:e})=>`${e} vs mês anterior`,short:({value:e})=>`${e} vs mês ant`},fromPreviousWeek:{long:({value:e})=>`${e} vs semana anterior`,short:({value:e})=>`${e} vs sem ant`},fromPreviousDay:{long:({value:e})=>`${e} vs dia anterior`,short:({value:e})=>`${e} vs dia ant`},fromPreviousHour:{long:({value:e})=>`${e} vs hora anterior`,short:({value:e})=>`${e} vs hora ant`}},headlineMetrics:{averageLong:({value:e})=>`Média ${e}`,averageShort:({value:e})=>`Méd. ${e}`,total:({value:e})=>`Total ${e}`,totalConversionRate:({value:e})=>`Taxa de conversão total ${e}`,current:({value:e})=>e,comparisonReference:({value:e})=>`de ${e}`},legend:{hiddenItems:"Itens de legenda ocultos"}},hxe={graph:fxe,dir:"ltr"},nA={"en-GB":uxe,"en-US":dxe,ar:lxe,"pt-PT":hxe},mxe=({locale:e,overrides:t,fallbackLocale:n="en-GB",dictionaries:r})=>{const a=t??{},i=e??n,o=[...r.map(c=>c[i]),...r.map(c=>c[n])];return(c,u)=>{const f=u??{},m=c.split("."),p=a[c];if(p)return typeof p=="function"?p(f):p;for(const g of o){if(g===void 0)continue;const y=gxe(g,m);if(y)return typeof y=="function"?y(f):y}return c}},pxe=({locale:e,overrides:t})=>(t==null?void 0:t.dir)??nA[e].dir??"ltr",gxe=(e,t)=>{let n=e;for(const r of t){if(typeof n!="object"||n===null)return;n=n[r]}if(typeof n=="string"||typeof n=="function")return n},yxe=e=>{const t="en-GB";if(!e)return t;const n=e.trim().replace("_","-").toLowerCase();return Object.keys(nA).find(r=>r.toLowerCase()===n)??t},bI=E.createContext(null),bxe=[nA],vI=()=>xxe().translator,vxe=({locale:e,children:t,i18nOverrides:n,dictionaries:r=bxe})=>{const a=yxe(e),i=E.useMemo(()=>({translator:mxe({locale:a,overrides:n,fallbackLocale:"en-GB",dictionaries:r}),dir:pxe({locale:a,overrides:n})}),[n,a,r]);return w.jsx(m1,{locale:a,timeZone:"UTC",children:w.jsx(bI.Provider,{value:i,children:t})})},xxe=()=>{const e=E.useContext(bI);if(!e)throw new Error("useI18n must be used within IntlProvider");return e},wxe=()=>{const e=ua(),t=tt(n=>n.config.appearance.textScale);return E.useMemo(()=>nse(e,t),[e,t])},Sxe="bow4tg0",Axe="bow4tg1",Mxe="bow4tg2",Txe="bow4tg3",kxe="bow4tg4",xI="_1ii3bsb0",Exe="_1ii3bsb1",wI=E.createContext({colorScheme:"light",themeClass:xI,inlineVarsStyle:{},themeValues:Z_("light",{})}),rA=()=>E.useContext(wI),Cxe=({colorScheme:e,themeOverrides:t={}
101,textScale:n=1,graphBackground:r,children:a})=>{const i=E.useMemo(()=>Z_(e,t),[e,t]),o=E.useMemo(()=>{const u={[I.textScale]:String(n)};for(const f of Object.keys(t)){const m=f;u[I[m]]=i[m]}return r!==void 0&&(u[I.graphBackground]=r),j_(u)},[n,r,i,t]),c=E.useMemo(()=>({colorScheme:e,themeClass:e==="dark"?Exe:xI,inlineVarsStyle:o,themeValues:i}),[e,o,i]);return w.jsx(wI.Provider,{value:c,children:a})},Rxe=({children:e,className:t,style:n})=>{const{themeClass:r,inlineVarsStyle:a}=rA();return w.jsx("div",{className:sa(r,Axe,t),style:{...a,...n},children:e})},Lxe={modern:"'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif",timeless:"'Noto Serif', Georgia, 'Times New Roman', serif",fresh:"'Aeonik', 'Aeonik Fallback', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif",technical:"'PT Mono', 'Courier New', monospace",handwritten:"'Permanent Marker', cursive",fineliner:"'Intruding Cat', cursive"},Dxe=e=>{const t=e!==null&&typeof e=="object"?e.fontFamily:e;return typeof t=="string"&&t.length>0?t:void 0},f5=e=>{const t=Dxe(e);if(t!==void 0)return Lxe[t]??t},Nxe="_1cocly40",df=({content:e})=>w.jsx(w.Fragment,{children:SI(e.content??[e])}),SI=e=>e.map((t,n)=>jxe(t,n)),jxe=(e,t)=>{var r,a;if(e.type==="text")return Oxe(e,t);if(e.type==="hardBreak"||e.type==="hard_break")return w.jsx("br",{},t);const n=e.content?SI(e.content):null;switch(e.type){case"doc":return w.jsx(E.Fragment,{children:n},t);case"heading":{const i=zxe((r=e.attrs)==null?void 0:r.level);return Vxe(i,t,n,h5(e.attrs))}case"paragraph":return w.jsx("p",{"data-variant":ry((a=e.attrs)==null?void 0:a.variant)??void 0,style:AI(h5(e.attrs)),children:n},t);case"blockquote":return w.jsx("blockquote",{children:n},t);case"bulletList":case"bullet_list":return w.jsx("ul",{children:n},t);case"orderedList":case"ordered_list":return w.jsx("ol",{children:n},t);case"listItem":case"list_item":return w.jsx("li",{children:n},t);default:return w.jsx("span",{children:n},t)}},Oxe=(e,t)=>{const n=e.text??"";return!e.marks||e.marks.length===0?w.jsx("span",{children:n},t):e.marks.reduceRight((r,a,i)=>_xe(a,r,`${t}-${i}`),n)},_xe=(e,t,n)=>{var r;switch(e.type){case"bold":case"strong":return w.jsx("strong",{children:t},n);case"italic":case"em":return w.jsx("em",{children:t},n);case"underline":return w.jsx("u",{children:t},n);case"strike":case"strikethrough":case"s":return w.jsx("s",{children:t},n);case"code":return w.jsx("code",{children:t},n);case"link":{const a=ry((r=e.attrs)==null?void 0:r.href);return eS(a)?w.jsx("a",{className:Nxe,href:a,rel:"noopener noreferrer",target:"_blank",children:t},n):w.jsx("span",{children:t},n)}case"textStyle":{const a=Ixe(e.attrs);return a?w.jsx("span",{style:a,children:t},n):w.jsx("span",{children:t},n)}default:return w.jsx("span",{children:t},n)}},Ixe=e=>{if(!e)return null;const t={},n=ry(e.color);n&&(t.color=n);const r=f5(e.font)??f5(e.fontFamily);r&&(t.fontFamily=r);const a=Bxe(e.fontSize);return a&&(t.fontSize=a),Object.keys(t).length>0?t:null},Bxe=e=>typeof e=="number"&&Number.isFinite(e)?`${e/10}em`:ry(e),ry=e=>typeof e=="string"&&e.length>0?e:void 0,zxe=e=>typeof e!="number"?3:e<1?1:e>3?3:Math.round(e),Vxe=(e,t,n,r)=>{const a=AI(r);switch(e){case 1:return w.jsx("h1",{style:a,children:n},t);case 2:return w.jsx("h2",{style:a,children:n},t);case 3:return w.jsx("h3",{style:a,children:n},t)}},h5=e=>{const t=e==null?void 0:e.textAlign;if(t==="left"||t==="right"||t==="center"||t==="justify")return t},AI=e=>e?{textAlign:e}:void 0;function Vd(e){const{store:t}=ll();return Vf(t,e)}var Pxe="_19519k80",$xe="_19519k82",Fxe="_19519k83",Hxe="_19519k85",Uxe="_19519k86",Gxe="_19519k87",Yxe="_19519k88",Wxe=e=>{const{overlayRef:t}=ll(),n=E.useRef(null),[r,a]=E.useState(!1),i=Rc(e);return E.useEffect(()=>{const o=t.current;if(!o)return;const c=f=>{var m;n.current={clientX:f.clientX,clientY:f.clientY},a(!0),(m=i.current)==null||m.call(i)},u=()=>{n.current=null,a(!1)};return o.addEventListener("pointermove",c),o.addEventListener("pointerleave",u),()=>{o.removeEventListener("pointermove",c),o.removeEventListener("pointerleave",u)}},[t,i]),{cursorRef:n,isInside:r}},qxe=24,Xxe=8,Kxe={x:0,y:0,top:0,left:0,right:0,bottom:0,width:0,height:0,toJSON:()=>({})}
101,Vm={boundary:[],padding:Xxe},Qxe=()=>{const e=tt(Er(C=>({layers:C.layers,coordSystem:C.coordSystem,scales:C.scales,guides:C.guides,numberFormat:C.config.numberFormat,parsingLocale:C.config.parsingLocale,comments:C.annotations.comments}))),{formattingLocale:t,colorScheme:n}=la(),r=Vd(C=>C.hover),a=Vd(C=>C.tooltipAnchor),i=Vd(C=>C.isPointerSuspended),o=Ea("Tooltip",Zxe),c=E.useRef(()=>{}),{cursorRef:u,isInside:f}=Wxe(()=>c.current()),m=E.useMemo(()=>Fie({...e,hover:r,colorScheme:n,formattingLocale:t,activeCalloutId:(a==null?void 0:a.annotationId)??null}),[e,r,n,t,a]),p=!i&&m!==null&&(f||a!==null),g=E.useMemo(()=>({getBoundingClientRect:()=>{if(a!==null)return n1e(a);const C=u.current;return C===null?Kxe:t1e(C)}}),[u,a]),{refs:y,floatingStyles:x,update:S}=N_(r1e({isOpen:p,tooltipAnchor:a,virtualReference:g}));if(c.current=S,!p)return null;const A=w.jsx("div",{ref:y.setFloating,role:"tooltip",className:Yxe,style:x,"data-testid":"chart-tooltip",children:w.jsx(o,{content:m})}),M=gI();return M?YS.createPortal(w.jsx(Rxe,{children:A}),M):A},Zxe=({content:e})=>{const t=Ni(),n=tt(u=>u.coordSystem),r=wxe(),a=Fv(r.heading),i=Fv(r.label),o=Fv(r.value),c={paddingInline:r.box.paddingInline};return w.jsxs("div",{className:Pxe,style:Jxe(r.box),"data-testid":"chart-tooltip-body",children:[e.comment!==null&&w.jsx("div",{style:{...i,color:r.value.textColor,...c},"data-testid":"chart-tooltip-comment",children:w.jsx(df,{content:e.comment})}),e.header!==null&&w.jsx("div",{className:"_19519k81",style:{...a,...c},"data-testid":"chart-tooltip-header",children:e.header}),w.jsx("div",{className:$xe,children:e.rows.map(u=>{const f=t(u.geom,n.type);return w.jsx(a1e,{row:u,swatchShape:(f==null?void 0:f.swatchShape)??"square",shouldHighlight:u.isPrimary&&e.rows.length>1,labelStyle:i,valueStyle:o,paddingInline:r.box.paddingInline,highlightBackgroun
101d:r.primaryRow.background},u.key)})})]})},Fv=e=>({...Vo(e),color:e.textColor,lineHeight:e.lineHeight}),Jxe=e=>({background:e.background,borderRadius:e.borderRadius,paddingBlock:e.paddingBlock,boxShadow:e1e(e.shadow),...e.borderWidth>0?{border:`${e.borderWidth}px solid ${e.borderColor}`}:{}}),e1e=e=>e==="none"?"none":`${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color}`,t1e=e=>({x:e.clientX,y:e.clientY,top:e.clientY,left:e.clientX,right:e.clientX,bottom:e.clientY,width:0,height:0,toJSON:()=>({})}),n1e=e=>({x:e.x,y:e.y,top:e.y,left:e.x,right:e.x,bottom:e.y,width:0,height:0,toJSON:()=>({})}),r1e=({isOpen:e,tooltipAnchor:t,virtualReference:n})=>({open:e,placement:t!==null?t.placement:"right",middleware:t!==null?[b1(Rre),v1(Vm),x1(Vm)]:[b1(qxe),x1(Vm),v1(Vm)],elements:{reference:n}}),a1e=({row:e,swatchShape:t,shouldHighlight:n,labelStyle:r,valueStyle:a,paddingInline:i,highlightBackground:o})=>w.jsxs("div",{className:Fxe,style:{paddingInline:i,...n?{backgroundColor:o}:{}},"data-testid":"chart-tooltip-row",children:[e.swatchColor===null?w.jsx("span",{className:Hxe,"aria-hidden":!0}):w.jsx(Wf,{shape:t,color:e.swatchColor,surface:"tooltip",label:e.label,lineType:e.swatchLineType}),w.jsx("span",{className:Uxe,style:r,"data-testid":"chart-tooltip-label",children:e.label}),w.jsx("span",{className:Gxe,style:a,"data-testid":"chart-tooltip-value",children:e.value})]}),M1={plansByLayerId:null,coordKey:null,chromeDelaySeconds:0},aA=E.createContext(M1),i1e=({intro:e,children:t})=>{const{layers:n,coordSystem:r,scales:a}=tt(Er(o=>({layers:o.layers,coordSystem:o.coordSystem,scales:o.scales}))),[i]=E.useState(()=>l1e({layers:n,coordSystem:r,scales:a,intro:e}));return w.jsx(aA.Provider,{value:i,children:t})},s1e=()=>E.useContext(aA).chromeDelaySeconds,o1e=e=>{const{plansByLayerId:t,coordKey:n}=E.useContext(aA),r=tt(a=>MI(a.coordSystem));return t===null||n!==r?null:t.get(e)??null},l1e=({layers:e,coordSystem:t,scales:n,intro:r})=>{if(!r.enabled||e.reduce((o,c)=>o+vie(c),0)>r.maxAnimatedGeoms)return M1;const a={durationScale:r.durationScale,stagger:r.stagger,staggerOrder:r.staggerOrder},i=new Map;for(const o of e){const c=bie({layer:o,coordSystem:t,scales:n,options:a});c!==null&&i.set(o.id,c)}return i.size===0?M1:{plansByLayerId:i,coordKey:MI(t),chromeDelaySeconds:rxe*r.durationScale}},MI=e=>e.type==="cartesian"?`cartesian-${e.mainAxis}`:e.type,TI=()=>{const e=ua(),t=tt(n=>n.config.appearance.textScale);return E.useMemo(()=>{const n={};for(const r of Tf)n[r]=Zie(e,r,t);return n},[e,t])},ay=()=>{const e=ua(),t=tt(n=>n.config.appearance.textScale);return E.useMemo(()=>{const n={};for(const r of q1){const a={};for(const i of X1)a[i]=ese(e,r,i,t);n[r]=a}return n},[e,t])},iA=()=>{const e=ua(),t=tt(n=>n.config.appearance.textScale);return E.useMemo(()=>{const n={};for(const r of Tf)n[r]=Jie(e,r,t);return n},[e,t])},kI=()=>{const e=ua();return E.useMemo(()=>{const t={};for(const n of Tf)t[n]=Qie(e,n);return t},[e])},c1e=({textMeasurer:e,tickLabelStyles:t,tickLineStyles:n,familyDefault:r})=>a=>{const i=a.position==="top"||a.position==="bottom",o=Wt(a.scaleAestheticKey),{offset:c,...u}=t[o],f=a.ticksVisible?Math.max(c,n[o].length):c,m=jf(u,r),p=a.ticks.map(y=>e.measureText(y.formattedLabel,m)),g=a.labelMaxWidthPx??Number.POSITIVE_INFINITY;if(i){if(a.labelRotation!==0){const y=p.map(x=>x.width);return m5(y,g)+2*f}return Math.max(...p.map(y=>y.height))+f}return m5(p.map(y=>y.width),g)+f},m5=(e,t)=>Math.min(Math.max(...e),t),u1e=({axisLabelStyles:e})=>t=>c4(e[Wt(t.scaleAestheticKey)]),EI=({textMeasurer:e,dataLabelStyles:t,familyDefault:n})=>(r,a,i)=>{const o=t[r][a],c=e.measureText(i,jf(o,n));return{...c,width:c.width+o.paddingInline*2,height:c.height+o.paddingBlock*2}},d1e=({textMeasurer:e,textScale:t,metrics:n})=>(r,a)=>{const{labelLineHeight:i,labelFontWeight:o}=Dj(a,t);return e.measureText(r,{family:n.fonts.familyDefault,size:i,weight:o})},f1e=({textMeasurer:e,textScale:t,metrics:n})=>(r,a)=>{const i=CI(r,a,e,t,n);return{width:RI(i.map(o=>o.width))+Math.max(0,i.length-1)*n.headlineItemGap,height:Math.max(0,...i.map(o=>o.height))}},h1e=({textMeasurer:e,textScale:t,metrics:n})=>(r,a)=>CI(r,a,e,t,n).map(i=>i.width),m1e=({textMeasurer:e,textScale:t,metrics:n})=>(r,a)=>{const i=T1("value",a,t,n.fonts.familyDefault);return{width:e.measureText(r,i).width,height:i.size*H_}}
101,p1e=({textMeasurer:e,textScale:t,metrics:n})=>{const r=f1e({textMeasurer:e,textScale:t,metrics:n}),a=m1e({textMeasurer:e,textScale:t,metrics:n});return(i,o)=>i.kind==="perGroup"?r(i,o):a(i.value,o)},CI=(e,t,n,r,a)=>{const i={value:T1("value",t,r,a.fonts.familyDefault),label:T1("label",t,r,a.fonts.familyDefault)},o=c=>g1e(c,i,n);return e.items.map(c=>{const u=Pj(c).map(o),f=Math.max(0,u.length-1)*a.headlineRowGap;return{width:Math.max(0,...u.map(m=>m.width)),height:RI(u.map(m=>m.height))+f}})},g1e=(e,t,n)=>{let r=0,a=0;for(const i of e.segments)if(i.kind==="text"){const o=t[i.fontRole];r+=n.measureText(i.text,o).width,a=Math.max(a,o.size*H_)}else r+=i.size,a=Math.max(a,i.size);return{width:r+Math.max(0,e.segments.length-1)*e.gap,height:a}},T1=(e,t,n,r)=>({family:r,size:Jg(e==="value"?Abe[t]:Mbe[t],n)}),RI=e=>e.reduce((t,n)=>t+n,0),sA=(e,t)=>eA(e,t).size*e.lineHeight,LI=(e,t)=>e?t:0,y1e=({textMeasurer:e,textScale:t,metrics:n})=>r=>{const a=sA(n.fonts.legendLabel,t),i=eA(n.fonts.legendLabel,t);if(r.position==="top"||r.position==="bottom")return Math.max(a,n.legendSwatchHeight)+n.legendPillVerticalChrome;const o=r.items.map(c=>{const u=e.measureText(c.formattedLabel,i).width,f=LI(c.visual.color,n.legendSwatchWidth);return f+(f>0?n.legendSwatchGap:0)+u});return Math.max(...o)+n.legendPillHorizontalChrome},b1e=({textMeasurer:e,tickLabelStyles:t,familyDefault:n})=>(r,a)=>e.measureText(r,jf(t[a],n)),v1e=Object.freeze({}),x1e=({textMeasurer:e,textScale:t,metrics:n,overrides:r=v1e})=>{const a=TI(),i=ay(),o=iA(),c=kI(),u=E.useRef(r);return u.current=r,E.useMemo(()=>{if(!e)return null;const f=n.fonts.familyDefault,m=c1e({textMeasurer:e,tickLabelStyles:o,tickLineStyles:c,familyDefault:f}),p=u1e({axisLabelStyles:a}),g=y1e({textMeasurer:e,textScale:t,metrics:n}),y=p1e({textMeasurer:e,textScale:t,metrics:n}),x=h1e({textMeasurer:e,textScale:t,metrics:n}),S={measureText:(A,M)=>e.measureText(A,M),textScale:t};return{measureAxis:A=>{if(S1e(A))return 0;const M=u.current.measureAxis;return M?M(A,S):m(A)},measureAxisLabel:A=>{const M=u.current.measureAxisLabel;return M?M(A,S):p(A)},measureLegend:A=>{if(A1e(A))return 0;const M=u.current.measureLegend;return M?M(A,S):g(A)},measureHeadline:(A,M)=>(u.current.measureHeadline??y)(A,M),measureHeadlineItemWidths:(A,M)=>(u.current.measureHeadlineItemWidths??x)(A,M),measureTickLabel:b1e({textMeasurer:e,tickLabelStyles:o,familyDefault:f}),measureDifferenceArrowLabel:d1e({textMeasurer:e,textScale:t,metrics:n}),measureDataLabel:EI({textMeasurer:e,dataLabelStyles:i,familyDefault:f})}},[e,t,n,a,i,o,c])},w1e=({measurer:e,axes:t,numberFormat:n,parsingLocale:r,formattedLegends:a,containerSize:i,externalMeasurements:o,headline:c,formattingLocale:u,annotations:f,layers:m,coordSystem:p,textScale:g,overflowStrategy:y,layout:x,panelBorder:S})=>E.useMemo(()=>e?new ire(e).compile({axes:t,numberFormat:n,parsingLocale:r,formattedLegends:a,containerSize:i,externalMeasurements:o,headline:c,formattingLocale:u,annotations:f,layers:m,coordSystem:p,textScale:g,overflowStrategy:y,layout:x,panelBorder:S}):null,[t,n,r,a,i,o,y,c,u,f,m,p,g,x,S,e]),S1e=e=>!e.isVisible||e.ticks.length===0,A1e=e=>e.items.length===0,M1e=()=>{const{formattingLocale:e}=la(),t=tt(n=>n.config.parsingLocale);return e??t},p5=.5,DI=E.createContext(new Map),NI=E.createContext(()=>{}),jI=E.createContext(new Set),T1e=({children:e})=>{const[t,n]=E.useState(()=>new Map),[r]=E.useState(()=>new Set),a=E.useRef(new Map),i=E.useCallback((o,c,u)=>{const f=a.current.get(o)??new Set;if(u!==null){f.add(c),a.current.set(o,f),n(m=>L1e(m,o,u));return}f.delete(c),!(f.size>0)&&(a.current.delete(o),n(m=>D1e(m,o)))},[]);return w.jsx(NI.Provider,{value:i,children:w.jsx(jI.Provider,{value:r,children:w.jsx(DI.Provider,{value:t,children:e})})})},k1e=()=>E.useContext(DI),E1e=()=>E.useContext(NI),C1e=e=>{const t=E1e(),n=E.useId(),r=E.useRef(null);return E.useEffect(()=>{if(typeof ResizeObserver>"u")return;const a=r.current;if(a===null)return;const i=()=>t(e,n,{width:a.offsetWidth,height:a.offsetHeight});i();const o=new ResizeObserver(i);return o.observe(a),()=>{o.disconnect(),t(e,n,null)}},[e,n,t]),r},R1e=()=>E.useContext(jI),L1e=(e,t,n)=>{const r=e.get(t);if(r!==void 0&&Math.abs(r.width-n.width)<p5&&Math.abs(r.height-n.height)<p5)return e;const a=new Map(e);return a.set(t,n),a},D1e=(e,t)=>{if(!e.has(t))return e;const n=new Map(e);return n.delete(t),n},OI="data-edit-kind",N1e="data-edit-id",j1e="observation",O1e=new Set(["annotation"]),_1e=e=>O1e.has(e.kind),I1e=(e,t)=>e===t?!0:e===null||t===null||e.kind!==t.kind?!1:e.id===t.id,qf=e=>({[OI]:e.kind,[N1e]:e.id}),B1e=()=>({[OI]:j1e}),z1e=(e,t)=>e.annotationId===t.annotationId&&e.translation.x===t.translation.x&&e.translation.y===t.translation.y,V1e=(e,t)=>e.annotationId===t.annotationId&&e.endpoint===t.endpoint&&e.anchor.x===t.anchor.x&&e.anchor.y===t.anchor.y,P1e=(e,t)=>e.annotationId===t.annotationId&&e.endpoint===t.endpoint&&Kre(e.point.anchor,t.point.anchor),$1e=(e,t)=>e.annotationId===t.annotationId&&e.region.x===t.region.x&&e.region.y===t.region.y&&e.region.width===t.region.width&&e.region.height===t.region.height,F1e=(e,t)=>e.annotationId===t.annotationId&&e.at.x===t.at.x&&e.width===t.width&&e.shift===t.shift,Pd=({standingInteraction:e},t)=>e!==null&&po(e,t)?e:null,H1e=(e,t)=>{if(e===null)return!1;switch(t.kind){case"difference-arrow-endpoint-drag":return po(e,t.kind)&&P1e(e,t);case"arrow-endpoint-drag":return po(e,t.kind)&&V1e(e,t);case"move-drag":return po(e,t.kind)&&z1e(e,t);case"shape-resize-drag":return po(e,t.kind)&&$1e(e,t);case"text-resize-drag":return po(e,t.kind)&&F1e(e,t);case"chrome-popup":return po(e,t.kind);case"menu":return!1}},po=(e,t)=>e.kind===t,U1e=()=>zg(e=>({menuTrigger:null,chromeUnderPointer:null,editTargetUnderPointer:null,standingInteraction:null,caret:null,setMenuTr
101igger:t=>e(n=>qre(n.menuTrigger,t)?n:{menuTrigger:t}),setChromeUnderPointer:t=>e({chromeUnderPointer:t}),setEditTargetUnderPointer:t=>e(n=>I1e(n.editTargetUnderPointer,t)?n:{editTargetUnderPointer:t}),claimInteraction:t=>e(n=>H1e(n.standingInteraction,t)?n:{standingInteraction:t}),releaseInteraction:t=>e(n=>{var r;return((r=n.standingInteraction)==null?void 0:r.kind)===t?{standingInteraction:null}:n}),setCaret:t=>e(n=>{var r;return(((r=n.caret)==null?void 0:r.annotationId)??null)===t?n:{caret:t===null?null:{annotationId:t,editor:null}}}),setCaretEditor:t=>e(n=>n.caret===null?n:{caret:{...n.caret,editor:t}})})),G1e=E.createContext(null),Y1e=U1e();function ms(e){return Vf(E.useContext(G1e)??Y1e,e)}var _I=E.createContext(null),W1e=({panelRect:e,children:t})=>{const n=X1e(e);return w.jsx(_I.Provider,{value:n,children:t})},q1e=()=>{const e=E.useContext(_I);if(e===null)throw new Error("Difference arrows read outside a <DifferenceArrowsProvider>.");return e},g5=(e,t)=>Vre(e.ownColor,e.start,e.end,{start:t(e.start),end:t(e.end)}),X1e=e=>{const{formattingLocale:t}=la(),n=ol(),{fonts:r}=Ds(),a=ms(A=>Pd(A,"difference-arrow-endpoint-drag")),i=I_(),{differenceArrows:o,mainAxis:c,textScale:u,parsingLocale:f}=tt(Er(A=>({differenceArrows:A.annotations.differenceArrows,mainAxis:A.coordSystem.type==="cartesian"?A.coordSystem.mainAxis:"x",textScale:A.config.appearance.textScale,parsingLocale:A.config.parsingLocale}))),m=t??f,{width:p,height:g}=e,y=E.useMemo(()=>({mainAxis:c,panelWidth:p,panelHeight:g,textScale:u,locale:m}),[c,p,g,u,m]),x=E.useMemo(()=>K1e(n,r.familyDefault),[n,r.familyDefault]),S=E.useMemo(()=>o.map(A=>{const M=y5(A,y,x);return{...M,arrow:A,color:g5(A,i),committedArrow:A,committedLabelBox:M.labelBox,committedLabelText:M.labelText,isDragged:!1,hasComparableEndpoints:bx(A.start,A.end)}}),[o,y,x,i]);return E.useMemo(()=>a===null?S:S.map(A=>{if(A.id!==a.annotationId)return A;const M=Q1e(A.committedArrow,a);return{...y5(M,y,x),color:g5(M,i),arrow:M,committedArrow:A.committedArrow,committedLabelBox:A.committedLabelBox,committedLabelText:A.committedLabelText,isDragged:!0,hasComparableEndpoints:bx(M.start,M.end)}}),[S,a,y,x,i])},y5=(e,t,n)=>{const r=Nj({arrow:e,...t});return{...r,labelBox:zre({labelPosition:r.labelPosition,measuredTextWidth:n(r.labelText,r.labelLineHeight,r.labelFontWeight),labelLineHeight:r.labelLineHeight,labelPaddingX:r.labelPaddingX,labelPaddingY:r.labelPaddingY})}},K1e=(e,t)=>{const n=new Map;return(r,a,i)=>{const o=`${a}|${i}|${r}`,c=n.get(o);if(c!==void 0)return c;const{width:u}=e.measureText(r,{family:t,size:a,weight:i});return n.set(o,u),u}},Q1e=(e,t)=>({...e,start:t.endpoint==="start"?t.point:e.start,end:t.endpoint==="end"?t.point:e.end}),Z1e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAABgCAYAAAC65+QhAAAKo0lEQVR42u2de4wdVR3HPzN32+oSUQSsikEoosR3iko08oovEkwMpmiIr/KHIomgUYyPiBofkRjjE+MjEk3RQNIYTdUotKkoaql0Wyympbtl2XbLtrW71n3v3ntnrn+c38n98cvcOzP3tfcud5LJ5u7Ozpz5nt/7nN/3QncfAVBQn18LfBd4GJgFYvm5B/iW/N0fBfn/VX9ogF4K3A0sAhV1xubzIrBFrk+6z6oDyEvCmcBXgTkFRgkoA5E6y/J7f80s8GXg2Uoyw9UCUGhm/wPAYQNQJFJkJUmDpgEbkfusCnW0dujNwM4aAEVGak4aaYvVdRqwHcAbexkwDdCLgZ8mqJgFaBo4BowD/wQOAbuBCSNhsVHJGPgJ8KJesl+hshnPBD4LTKqXLCUANAPsF0CKRvWm5W+Pi6RZwErqXqeA24DBhLF0rZptkhfUUhQbO7QEHBUJmjZqFhl7NQ/sEsCWjf2KjTo+AlzXbeoYAAPq80Zgmxp0McEOxQLOiNiiSsqpATsK3A+MJUhXZCTyd8Cr1dgGVgowLUEvAL6tZrtcww7NAAeAg3VipjTAisAR4CEDtLZfZRV/fQdYbya34+6+ANwiElJRamABmhdVPGxmPStISdefFjUbVfYrrqGO48DNymaFnVSza8QrJalZrGzTmHiz/2UESIOdBbBJ4G/ynCgh/tITcz/wwnaCpdXsEuDeDPHQmLj4YzkkppzyOQ2wIfO8JPt1ADiv1WBpj3EW8BUl5lEdO3RQVK2UUcU0ICeAH4q7zwKYluBFUcW/q7BEA+Zt6G4JX8JWpx2bZQBp7v4A8KgaUBpIkQIhAn4sASrA+RKoxgqsKKN0/Qf4l3jWhRpg3dbKeOhK4IEUd18WEMeAqRx2SEvJdpOKaFv4JklVtHRltV/jIl3HE7RgXLSkKTu0AfhZhrTjvxIEPqEGmEfNRoD3mTGECVIdyHUjOdTRj3NBwFoyOWPFPDt32vEZcb310o5Z4DEBKc6hZrGyY1+UcktauURPoC3PRBnVcU7Mgn2nLY2o2fXAv1PsUEk82R5TbMujZncDL2kggdXXXQzck0MdKzJuO55/5AHo9cAfUtx9JHZo2HijPAHjLuAtTeZgduxvk/tmeX5JeWEP1FCWWVkPfM/8c5IdOi0gjapYJM4YRccSKmwG1rQwq9f3KAAflbQmrjO2OTV+D9SepJnwN14jacdEjbRDu/tDotvlBqTIg/0b4JwaEtGKOC9U3rHe+ObTgApN2vFwStoRiXc5klBlrNBYbjYD3K5qRa2sdQ8IYBubAcoP5myx8PXsUCyx0CMSsMVNAJQkWT59uL7FtaKCsrUNARWoEsjeDPHQqEjSUpPAZPF8f5IXawVgHqjXNQpUKHGRz/CXE9z9skjRvhxpR7PSpSP6HwDPb7LW3TRQSBKrQdJq9oS4+7kOAJSWBN/ahFdsGqgLpAYUmZlcFAk6YYCrrMCpAdsDXNtpiQqBD8qKaiz6H0jqMSo1pfVq5oIVXNbyKnkp8Htgq0TuQSfGFUooUJGH+Z8TYtyfIQB20wqOj+c2ATfKmAudAOpiNSuheLPnSGmh0oVrXqGM1VcjO/bQ5wog/pg1qxb0wGaOjs2OPeKny96iPED1jz5QfaD6QPWB6gPVB6p/9IHqA9UHqg9UH6g+UH2g+gd1FwXbfVRU2abSq91O7QYqEmAKptbVc9LcrsH6NcECrr59B642v1MtM5W7vILaVqD8Sok
101HYxtwGfA54D7grbi2sBHVIRA9nYDya2B+pcT3mbwLtzZYUEtOv8QtOX0Nt4ZWUBK4qoGK1Cb8SeCTuA2pv1WSFSnJKeAWMG7H7Sy511xXWW1AxcpYR7gtzBtxPSVLdSQlUpI3DNwAvB3Xs+JXVrrOfoVNSJHfjbsduBy4CbfVOIvtsbZsO67z82Zzj7iXgfKx0GHg/SINuxqUBu0d/Ub7S3EdWEUZX6UXgfIz/E3cCvOvZPabtS/afp0CPgW8AfizeW7PAOUXRa/Crf2jvF3QQsewDtd68aNuUcFGgApktrdS3REXKZUMWhiLDfa6Mfe25R1in/yOuKiF+Vy7Yqugk0DpuKcAfEyCzFvFZkVd2v1daBT8sEU7bSOqG/cfwu2I8xIx0AUbPvQ41ykV73gKU2tH3CtUuBCsII2Jzww+RHV7eFDHRrY1KQ5MNL4Jx3RxB9VNaZ0CS48lAq4A/gL8ArgoxUuv7VSZRduvQVy72pBIWifqUFq6LwB+jmu6vEI1F9Q7JsRcaMkqhR0YcAm4EHhZm6VKb1kcBD4vE7RZ/b5QY6I8KMumGuvP0YEOqsBym59RptpP+CWxj7WqrBakQLXQbVC/8+eOAVZ2C2SrpHZZ1biuSUjc6wEU4PbZPymee51SzwDXZ7ytU0C165jF7WD+OvARsS1xShuIBmgO198TinkYVKpXxnVJfB+YGuhx/rt3S3lng1Gzem4/UA1Qx3B0AGeZTb4l8X77JOsIB3qYxQxcPT6PHUJU7BSOJeM1CbugPUhHxN7NA2GvL4DqelaaFJ2i2lj9cuBcqv0wvgoSCkh/Ba7GddeHQDzQ5eqVNpFhBju0JCBNSbD5LCNFXhrX4Bo1vwHcqYCL6dBKcaMBaxFH2pC3RKNV87S8/NlUyUxtnDQgoNyFa8ebUOOIk8Q3Unwl+xLaV5ttgd2U4o0sndJVkmDHGceh28qmJNg8noGRbIeydXUZySxQJ+UhnQTK0phsydFEGZtW3kNisBcTSLU0QAdxK0CZe2uWzQt5HpVWNTLWA0rXrHzaMZnAm5J2LovK7DdEXUmsiaclcj8zbyf84+amscxK3EagLK/Be6hyouQlzhrHUYKcSOHhrIikbmi0N3lrAupHzINbBVSgCmfg2lb/2CCV0bxUVZ803FJJduhBsXlNMSNeZwYZKUq142oQjUqYv997eSp74p0JXJlZ7jeDYxCqZYdKhhbuw4Z2pOHYcQ1V1gxLbXRUim/TTXSo+3v5ZPUTRlqz0q0VxQ4dMgQ5SXSRC1IwPLfVdLdX1mF4Lkr5Ybfii8rLixlLcvlgg2o2JaFCLXevpejXEnm3fLOcR/rTNUizYsU2OCxiP9+EhOUByIcqRxUYtSi595o2/7a00nqwblHiW4t25Jh4mZM5wcpjhxZkUg4qd2/tUKzA/LhyEm1fJvM3v5ynklIVE8gjYgkrdhp67EaZfjTj4XEce8eJFDtUxNFLnrcStNsFBdpNhpRYq2OkOOw8RdtCE7y+3psNSVwUp9ih+2gduU1L2Fmfh/t2jIUUNrJJkbBhxQIU5+Dy3SdSVEpx949JcNpV1NraW7wKxxhWj2ezIi+7VxJrq1o2DivhNr0OS9qUBFCkvN4XgDO6lazdphrvVJUFD5j1jmV5+QdMOFExzD3jGdKOGLcud1Gv0P/rGVyH29B6MiWcmBbARiVAHBNg9srvsqQdV3cDIXuz9ut88Tpp4cSi5I77RSWLGdKOGxUoBXq0Z8cW2C7D8X+n0XFXUtz9nJRhz1lt3xJkFxdvUMV7b7/K5tuAdEStpWgr8MpeVbNGVoHPwG20n6lBs21DhiGVLK9agOrZrwtxq7ePGm48X5PfgeuJWdvN381CG7+pIlBbfryEXCJpxlqRtBG10oHa6NXVx/8Ba+cluUx5B18AAAAASUVORK5CYII=",J1e=({className:e})=>w.jsx("img",{src:Z1e,alt:"","aria-hidden":"true",className:e,draggable:!1}),ewe="https://graphy.app/?utm_source=chart-mark&utm_medium=embed",twe="Made with Graphy â open graphy.app",nwe="vultop0",rwe="vultop2",awe="vultop3",iwe="vultop4",swe="vultop5",owe="vultop6",lwe="vultop7",cwe=e=>{const t=uwe(e.trim());if(t===null)return"light";const n=dwe(t);return n<=.22?"dark":n<=.65?"mid":"light"},uwe=e=>{if(!e.startsWith("#"))return null;const t=e.slice(1);if(t.length===3){const n=t[0],r=t[1],a=t[2];return n===void 0||r===void 0||a===void 0?null:{red:Number.parseInt(n+n,16),green:Number.parseInt(r+r,16),blue:Number.parseInt(a+a,16)}}return t.length===6||t.length===8?{red:Number.parseInt(t.slice(0,2),16),green:Number.parseInt(t.slice(2,4),16),blue:Number.parseInt(t.slice(4,6),16)}:null},dwe=({red:e,green:t,blue:n})=>{const r=a=>{const i=a/255;return i<=.03928?i/12.92:((i+.055)/1.055)**2.4};return .2126*r(e)+.7152*r(t)+.0722*r(n)},fwe=(e,t,n="full")=>!e||t.width<120||t.height<80?"hidden":t.width<200||n==="mini"?"mini":"full",II=({visual:e,placement:t})=>{const{background:n}=l4(ua()),r=cwe(n);return w.jsxs("a",{className:sa(nwe,e==="mini"&&"vultop1",t==="footer"?owe:lwe),href:ewe,target:"_blank",rel:"noopener noreferrer","aria-label":twe,"data-visual":e,"data-zone":r,children:[w.jsx("span",{className:rwe,children:w.jsx(J1e,{className:awe})}),w.jsxs("span",{className:iwe,children:[w.jsx("span",{children:"Made with"}),w.jsx("span",{className:swe,children:"Graphy"})]})]})},hwe=E.createContext({Title:null,Caption:null,TextAnnotation:null}),oA=()=>E.useContext(hwe),mwe="_4dlrid1",pwe="xfz7dq0",gwe="xfz7dq2",ywe="xfz7dq3",bwe="xfz7dq4",vwe="xfz7dq5",xwe=({ref:e,footerRect:t,mode:n="readonly",caption:r,isCaptionVisible:a,source:i,isSourceVisible:o,brandMark:c})=>{const{Caption:u}=oA(),f=n==="editable"?u:null,m=a&&(f!==null||r!==null),p=o&&i!==null&&Mwe(i),g=c!=="hidden";return!m&&!p&&!g?null:w.jsxs("div",{ref:e,className:pwe,style:{left:t.x,top:t.y,width:t.width},children:[m?f?w.jsx(f,{caption:r}):w.jsx(wwe,{caption:r}):null,(p||g)&&w.jsxs("div",{className:"xfz7dq1",children:[p&&w.jsx(Swe,{source:i}),c!=="hidden"?w.jsx(II,{visual:c,placement:"footer"}):null]})]})},wwe=({caption:e})=>e===null?null:typeof e=="string"?w.jsx("p",{className:mwe,children:e}):w.jsx(df,{content:e}),Swe=({source:e})=>{const t=eS(e.url)?e.url:void 0,n=e.label??(t!==void 0?Awe(t):"");return n===""&&t===void 0?null:w.jsxs("span",{className:gwe,children:[w.jsx("span",{className:bwe,children:"Source:"}),t!==void 0?w.jsx("a",{className:ywe,href:t,target:"_blank",rel:"noopener noreferrer",children:n}):w.jsx("span",{className:vwe,children:n})]})},Awe=e=>{try{return new URL(e).hostname}catch{return e}},Mwe=e=>e.label!==void 0&&e.label!==""||e.url!==void 0&&e.url!==""&&eS(e.url),Twe="_1k4qtbg0",kwe=22,Ewe=({ref:e,headerRect:t,mode:n="readonly",t
101itle:r,isTitleVisible:a,subtitle:i,isSubtitleVisible:o,brandMark:c})=>{const{Title:u}=oA(),f=n==="editable"?u:null,m=f!==null,p=a&&(m||r!==null),g=o&&(m||i!==null),y=c!=="hidden";return!p&&!g&&!y?null:w.jsxs("div",{ref:e,className:sa(Twe,y&&"_1k4qtbg1"),style:{left:t.x,top:t.y,width:t.width,...y&&!p&&!g?{minHeight:kwe}:{}},children:[f?w.jsx(f,{title:r,isTitleVisible:a,isSubtitleVisible:o,subtitle:i},[a?"title":"",o?"subtitle":""].join("-")):w.jsx(Cwe,{title:r,isTitleVisible:a,isSubtitleVisible:o,subtitle:i}),c!=="hidden"?w.jsx(II,{visual:c,placement:"header"}):null]})},Cwe=({title:e,isTitleVisible:t,isSubtitleVisible:n,subtitle:r})=>w.jsxs(w.Fragment,{children:[t&&e!==null&&(typeof e=="string"?w.jsx("h1",{className:"_4dlrid0",children:e}):w.jsx(df,{content:e})),n&&r!==null&&(typeof r=="string"?w.jsx("p",{className:"_4dlrid1",children:r}):w.jsx(df,{content:r}))]}),Rwe="_1u9qprb0",Lwe="_1u9qprb1",Dwe=V0e({groupRow:()=>Owe,item:()=>BI,trendRow:()=>jwe,valueRow:()=>Nwe}),Nwe="_9aen060",jwe="_9aen061",Owe="_9aen062",BI="_9aen063",_we={xxs:8,xs:12,sm:16,md:20,lg:24,xl:36},Iwe={primary:"asohov1 asohov0",secondary:"asohov2 asohov0"},zI=({children:e,title:t,variant:n="primary",size:r="sm",...a})=>{const i=E.useId(),o=_we[r];return w.jsxs("svg",{className:Iwe[n],"aria-labelledby":t?i:void 0,height:o,width:o,fill:"none",viewBox:"0 0 24 24",role:"img",...a,children:[t&&w.jsx("title",{id:i,children:t}),e]})},Bwe=e=>w.jsx(zI,{...e,children:w.jsxs("g",{stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[w.jsx("path",{d:"m5 12 7-7 7 7"}),w.jsx("path",{d:"M12 19V5"})]})}),zwe=e=>w.jsx(zI,{...e,children:w.jsx("g",{stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:w.jsx("path",{d:"M5 12h14"})})}),VI="n7clvo0",Vwe="n7clvo1",Pwe="n7clvo2",$we="n7clvo3",PI={small:"n7clvo4",medium:"n7clvo5",large:"n7clvo6"},Fwe={small:"n7clvo7",medium:"n7clvo8",large:"n7clvo9"},Hwe={up:"n7clvoa",down:"n7clvob",flat:"n7clvoc"},Uwe={up:"n7clvoe n7clvod",down:"n7clvof n7clvod",flat:"n7clvog n7clvod"},Gwe=({segment:e,resolvedSize:t})=>{var a;const n=Ni();if(e.kind==="swatch")return w.jsx(Wf,{shape:((a=n(e.swatch.geom,"cartesian"))==null?void 0:a.swatchShape)??"square",color:e.swatch.color,surface:"headline",width:e.size,height:e.size});if(e.kind==="trendArrow")return w.jsx("div",{className:Uwe[e.direction],children:e.direction==="flat"?w.jsx(zwe,{size:"xs",title:""}):w.jsx(Bwe,{size:"xs",title:""})});const r=e.fontRole==="value"?PI[t]:Fwe[t];return w.jsx("span",{className:sa(Ywe(e),r),children:e.text})},Ywe=e=>{switch(e.textRole){case"value":return VI;case"observation":return Vwe;case"trendPercentage":return Hwe[e.trendDirection??"up"];case"trendReference":return Pwe;case"label":return $we}},Wwe=({item:e,resolvedSize:t})=>w.jsx("div",{className:BI,children:Pj(e).map(n=>w.jsx(qwe,{row:n,resolvedSize:t},n.role))}),qwe=({row:e,resolvedSize:t})=>{const n=e.role==="trendRow";return w.jsx("div",{className:Dwe[e.role],"data-testid":n?"headline-trend":void 0,"data-direction":n?Xwe(e):void 0,role:n?"img":void 0,"aria-label":n?e.ariaLabel:void 0,children:e.segments.map((r,a)=>w.jsx(Gwe,{segment:r,resolvedSize:t},a))})},Xwe=e=>{const t=e.segments.find(n=>n.kind==="trendArrow");return(t==null?void 0:t.kind)==="trendArrow"?t.direction:void 0},Kwe=({headline:e,rect:t,resolvedSize:n,visibleItemCount:r})=>{const a={left:t.x,top:t.y,width:t.width,height:t.height};return e.kind==="grandTotal"?w.jsx("div",{className:Lwe,style:a,children:w.jsx("span",{className:sa(VI,PI[n]),children:e.value})}):w.jsx("div",{className:Rwe,style:a,children:e.items.slice(0,r).map((i,o)=>w.jsx(Wwe,{item:i,resolvedSize:n},`${i.label}-${o}`))})},Qwe="_1oj6yix0",Zwe="_1oj6yix2",Jwe=8,eSe=16,tSe=2,nSe=({legends:e,containerRect:t,textScale:n})=>{const{fonts:r}=Ds(),a=sA(r.legendLabel,n),{placements:i,hasOverlap:o}=rSe(e,t,a);if(i.length===0)return null;const c=o?eSe:Jwe,u=c-tSe;return w.jsxs("div",{className:Qwe,children:[o&&w.jsx("svg",{className:"_1oj6yix1",width:t.width,height:t.height,children:i.map(f=>w.jsx(aSe,{anchorY:f.anchorY,labelY:f.y,endX:u,color:f.payload.color},f.payload.key))}),i.map(f=>w.jsx("span",{className:Zwe,style:{left:c,top:f.y,color:f.payload.color},children:f.payload.label},f.payload.key))]})},rSe=(e,t,n)=>E.useMemo(()=>{const r=[];for(const a of e)for(const i of a.items){if(i.normalizedY===null)continue;const o=typeof i.visual.color=="string"?i.visual.color:void 0;
101r.push({normalizedY:i.normalizedY,payload:{key:String(r.length),label:i.formattedLabel,color:o}})}return r.length===0||t.height<=0?{placements:[],hasOverlap:!1}:$re({items:r,containerHeight:t.height,labelHeight:n})},[e,t.height,n]),aSe=({anchorY:e,labelY:t,endX:n,color:r})=>{const a=n/2;return w.jsx("path",{d:`M0,${e} C${a},${e} ${a},${t} ${n},${t}`,fill:"none",stroke:r??"currentColor",strokeWidth:1,strokeDasharray:"2 2"})},iSe="_6a636s0",sSe="_1kjk02r0",oSe="_1kjk02r1",lSe="_1kjk02r2",cSe="_1kjk02r3",uSe="_1kjk02r4",dSe="_1kjk02r5",fSe="_1kjk02r6",hSe="_1kjk02r7",mSe="_1kjk02r8",pSe="_1dw9dgx0",gSe="#9ca3af",Hv="\0",ySe=(e,t)=>{const n=[];return e.forEach((r,a)=>{const i=r.aesthetics.includes("size");for(const o of r.items){if(i){const m=Number(o.visual.size);if(!Number.isFinite(m)||m<=0)continue}const c=o.visual.color??"",u=i?`${Hv}${Number(o.visual.size)}`:"",f=o.visual.lineType;n.push({key:`${a}${Hv}${String(o.value)}${Hv}${c}${u}`,formattedLabel:o.formattedLabel,visual:o.visual,swatchShape:t(o.geom),isBubble:i,primaryLineType:f})}}),n},$I=({pill:e})=>e.isBubble?w.jsx(xSe,{pill:e}):w.jsx(vSe,{pill:e}),bSe=({color:e,lineType:t,shape:n,label:r})=>{const{legendSwatchWidth:a,legendSwatchHeight:i}=Ds();return e?w.jsx(Wf,{shape:n,color:e,surface:"legend",label:r,lineType:t,width:a,height:i}):null},vSe=({pill:e})=>w.jsxs(w.Fragment,{children:[w.jsx(bSe,{color:e.visual.color,lineType:e.primaryLineType,shape:e.swatchShape,label:e.formattedLabel}),w.jsx("span",{children:e.formattedLabel})]}),xSe=({pill:e})=>{const t=Number(e.visual.size);return w.jsxs(w.Fragment,{children:[w.jsx("span",{className:pSe,style:{width:t,height:t,backgroundColor:e.visual.color??gSe}}),w.jsx("span",{children:e.formattedLabel})]})},wSe=({hiddenPills:e,placement:t})=>{const n=vI(),[r,a]=E.useState(!1),{refs:i,floatingStyles:o}=N_({open:r,placement:t,middleware:[b1(4),x1(),v1({padding:8})]});E.useEffect(()=>{if(!r)return;const m=g=>{const y=g.target;if(!y)return;const x=i.reference.current,S=i.floating.current;
101x instanceof Element&&x.contains(y)||S instanceof Element&&S.contains(y)||a(!1)},p=g=>{g.key==="Escape"&&a(!1)};return document.addEventListener("pointerdown",m),document.addEventListener("keydown",p),()=>{document.removeEventListener("pointerdown",m),document.removeEventListener("keydown",p)}},[r,i.floating,i.reference]);const c=t==="left"||t==="right",u=Math.min(e.length-1,2),f=Array.from({length:u},(m,p)=>u-p);return w.jsxs(w.Fragment,{children:[w.jsxs("div",{ref:i.setReference,className:sa(sSe,{[lSe]:c,[oSe]:!c}),children:[f.map(m=>w.jsx("span",{className:sa(cSe,{[dSe]:c,[uSe]:!c}),style:SSe(m,c),"aria-hidden":!0},m)),w.jsx("button",{type:"button",className:sa(fSe,{[hSe]:r}),onClick:()=>a(m=>!m),"aria-haspopup":"dialog","aria-expanded":r,"aria-label":`Show ${e.length} hidden legend ${e.length===1?"item":"items"}`,children:w.jsxs("span",{className:mSe,children:["+",e.length]})})]}),r&&w.jsx("div",{ref:i.setFloating,role:"dialog","aria-label":n("graph.legend.hiddenItems"),className:"_1kjk02r9",style:o,children:w.jsx("ul",{className:"_1kjk02ra",children:e.map(m=>w.jsx("li",{className:"_1kjk02rb",children:w.jsx($I,{pill:m})},m.key))})})]})},SSe=(e,t)=>{const n=-e*4;return{transform:t?`translateY(${n}px)`:`translateX(${n}px)`}},ASe="_1cecisi0",MSe="_1cecisi1",TSe="_1cecisi2",kSe={start:"_1cecisi3",center:"_1cecisi4",end:"_1cecisi5"},ESe={right:"_1cecisi6",left:"_1cecisi7"},CSe="_1cecisi8",RSe=({edge:e,formattedLegends:t,containerWidth:n,containerHeight:r,textScale:a})=>{var M;const i=ol(),o=Ds(),c=Ni(),u=tt(C=>C.coordSystem.type),f=E.useMemo(()=>ySe(t,C=>{var R;return((R=c(C,u))==null?void 0:R.swatchShape)??"square"}),[t,c,u]),m=e==="left"||e==="right",p=m?r:n,g=((M=t[0])==null?void 0:M.align)??"start",y=E.useMemo(()=>{if(f.length===0)return{visibleCount:0,hasOverflow:!1};if(p<=0)return{visibleCount:f.length,hasOverflow:!1};const C=eA(o.fonts.legendLabel,a),R=sA(o.fonts.legendLabel,a),L=$=>m?LSe($,R,o):b5({label:$.formattedLabel,swatchInlineSize:DSe($,o.legendSwatchWidth),textMeasurer:i,font:C,swatchGap:o.legendSwatchGap,horizontalChrome:o.legendPillHorizontalChrome}),N=f.map(L),O=(m?R+o.legendPillVerticalChrome:b5({label:`+${f.length}`,swatchInlineSize:0,textMeasurer:i,font:C,swatchGap:o.legendSwatchGap,horizontalChrome:o.legendPillHorizontalChrome}))+8;return jSe({pillSizes:N,overflowPillSize:O,containerSize:p,gap:o.legendItemGap})},[f,p,m,i,a,o]);if(f.length===0)return null;const x=f.slice(0,y.visibleCount),S=f.slice(y.visibleCount),A=y.hasOverflow&&S.length>0;return w.jsxs("div",{className:sa(kSe[g],ASe,{[TSe]:m,[MSe]:!m,[ESe[e==="left"?"left":"right"]]:m}),children:[x.map(C=>w.jsx("div",{className:CSe,children:w.jsx($I,{pill:C})},C.key)),A&&w.jsx(wSe,{hiddenPills:S,placement:OSe(e)})]})},b5=({label:e,swatchInlineSize:t,textMeasurer:n,font:r,swatchGap:a,horizontalChrome:i})=>{const o=n.measureText(e,r).width;return t+(t>0?a:0)+o+i},LSe=(e,t,n)=>{const r=NSe(e,n.legendSwatchHeight);return Math.max(t,r)+n.legendPillVerticalChrome},DSe=(e,t)=>e.isBubble?Number(e.visual.size):LI(e.visual.color,t),NSe=(e,t)=>e.isBubble?Number(e.visual.size):t,jSe=({pillSizes:e,overflowPillSize:t,containerSize:n,gap:r})=>{if(e.length===0)return{visibleCount:0,hasOverflow:!1};let a=0;for(let c=0;c<e.length;c+=1)c>0&&(a+=r),a+=e[c]??0;if(a<=n)return{visibleCount:e.length,hasOverflow:!1};let i=0,o=0;for(const c of e){const u=i+(o>0?r:0)+c;if(u+r+t>n)break;i=u,o+=1}return{visibleCount:o,hasOverflow:!0}},OSe=e=>{switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}},_Se=E.memo(function({formattedLegends:e,rects:t,textScale:n}){const r=E.useMemo(()=>{const a=new Map;for(const i of e){let o=a.get(i.position);o||(o={pill:[],direct:[]},a.set(i.position,o)),i.display==="pill"?o.pill.push(i):o.direct.push(i)}return a},[e]);return w.jsx(w.Fragment,{children:Array.from(r,([a,i])=>{const o=t[a];return o===void 0?null:w.jsxs("div",{className:iSe,style:{left:o.x,top:o.y,width:o.width,height:o.height},children:[w.jsx(RSe,{edge:a,formattedLegends:i.pill,containerWidth:o.width,containerHeight:o.height,textScale:n}),w.jsx(nSe,{legends:i.direct,containerRect:o,textScale:n})]},a)})})}),ISe=({layers:e,primaryLayerId:t,coordSystem:n,resolveRenderer:r})=>{const a=e.find(o=>o.id===t);if(!a)return null;const i=r(a.geom,n.type);return i?i.guideMode??null:null},FI=1,HI="4 3",v5=({panelRect:e})=>{const{coordSystem:t,layers:n,scales:r}=tt(Er(c=>({coordSystem:c.coordSystem,layers:c.layers,scales:c.scales}))),a=Vd(c=>c.hover.primary),i=Ni();if(n.length===0||a===null||!a.anchored)return null;const o=ISe({layers:n,primaryLayerId:a.layerId,coordSystem:t,resolveRenderer:i});return o===null?null:t.type==="polar"?o==="band"?w.jsx(PSe,{coordSystem:t,primary:a,panelRect:e}
101):w.jsx(VSe,{coordSystem:t,primary:a,panelRect:e}):o==="band"?w.jsx(zSe,{coordSystem:t,scales:r,primary:a,panelRect:e}):w.jsx(BSe,{coordSystem:t,primary:a,panelRect:e})},BSe=({coordSystem:e,primary:t,panelRect:n})=>{const r=uie(e,t);return w.jsx(iy,{panelRect:n,children:w.jsx("line",{...r,stroke:I.hoverGuideLineColor,strokeWidth:FI,strokeDasharray:HI,strokeLinecap:"round","data-testid":"hover-guide-line"})})},zSe=({coordSystem:e,scales:t,primary:n,panelRect:r})=>{const a=die(e,t,n);return a===null?null:w.jsx(iy,{panelRect:r,children:w.jsx("rect",{...a,fill:I.hoverGuideFillColor,"data-testid":"hover-guide-rect"})})},VSe=({coordSystem:e,primary:t,panelRect:n})=>{const r=KS(n),a=oa(t.x,e.innerRadius,r),i=oa(t.x,1,r);return w.jsx(iy,{panelRect:n,children:w.jsx("line",{x1:a.x,y1:a.y,x2:i.x,y2:i.y,stroke:I.hoverGuideLineColor,strokeWidth:FI,strokeDasharray:HI,strokeLinecap:"round","data-testid":"hover-guide-line"})})},PSe=({coordSystem:e,primary:t,panelRect:n})=>{const r=fie(e,t);if(r===null)return null;const a=Bo(r);return a?w.jsx(iy,{panelRect:n,children:w.jsx("svg",{viewBox:"-1 -1 2 2",preserveAspectRatio:"xMidYMid meet",width:"100%",height:"100%",style:{overflow:"visible"},children:w.jsx("path",{d:a,fill:I.hoverGuideFillColor,"data-testid":"hover-guide-arc"})})}):null},iy=({panelRect:e,children:t})=>w.jsx("svg",{x:e.x,y:e.y,width:e.width,height:e.height,style:{overflow:"visible",pointerEvents:"none"},"data-testid":"hover-guide",children:t}),$Se=e=>GSe[e]!==void 0,FSe=(e,t,n)=>UI(e,n,t/2),HSe=(e,t)=>{const n={x:e.start.x*t.width,y:(1-e.start.y)*t.height},r={x:e.end.x*t.width,y:(1-e.end.y)*t.height};return n.x===r.x&&n.y===r.y?null:{shape:"segment",start:n,end:r}},USe=(e,{panel:t,measuredBoxes:n})=>{const r=n.get(e.id);if(r===void 0)return null;const a=fw(e.align);return{shape:"rect",rect:{x:e.at.x*t.width-a.x*r.width,y:(1-e.at.y)*t.height-(1-a.y)*r.height,width:r.width,height:r.height}}},Pm=(e,t)=>(n,r,a)=>{const i=e(n).find(o=>o.id===r);return i===void 0?null:t(i,a)},UI=(e,t,n=0)=>({shape:"rect",rect:{x:e.x*t.width-n,y:(1-e.y-e.height)*t.height-n,width:e.width*t.width+n*2,height:e.height*t.height+n*2}}),GSe={text:Pm(e=>e.textAnnotations,USe),shape:Pm(e=>e.shapes,(e,t)=>FSe(e.region,e.strokeWidth,t.panel)),image:Pm(e=>e.images,(e,t)=>UI(e.region,t.panel)),arrow:Pm(e=>e.arrows,(e,t)=>HSe(e,t.panel))},YSe=(e,t)=>{const n=ru(e,t);return n!==null&&$Se(n.kind)&&Dse(n)},WSe=200,qSe=({engine:e,store:t,overlayRef:n})=>{E.useEffect(()=>{const r=n.current;if(!r)return;const a=XSe(r,e),i=QSe(r,e,t);return()=>{i(),a()}},[e,t,n])},XSe=(e,t)=>{const n=()=>{const o=e.getBoundingClientRect();o.width===0||o.height===0||t.setViewport({width:o.width,height:o.height})};let r=null;const a=()=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{r=null,n()},WSe)},i=new ResizeObserver(a);return i.observe(e),n(),()=>{i.disconnect(),r!==null&&clearTimeout(r)}},KSe=(e,t)=>e.kind==="cursor"?null:{x:t.left+e.point.x,y:t.top+e.point.y,placement:e.placement,annotationId:e.annotationId},QSe=(e,t,n)=>{let r=null,a=null;const i=()=>{const y=e.getBoundingClientRect();return y.width>0&&y.height>0?y:null},o=(y,x)=>({x:y.clientX-x.left,y:y.clientY-x.top}),c=()=>{a=null;const y=r;if(r=null,!y)return;const x=i();if(x===null)return;const S=o(y,x),A=n.getState();if(A.isPointerSuspended)return;const M=VC(S,A.pointerRegions);if(M!==null){A.setHoverState(t.query(M.cursor)),A.setTooltipAnchor(KSe(M.tooltip,x));return}const C=Bj(S,x);A.setHoverState(t.query(C)),A.setTooltipAnchor(null)},u=()=>{const y=n.getState();y.hover.primary===null&&y.tooltipAnchor===null||(y.setHoverState(gr),y.setTooltipAnchor(null))},f=y=>{const x=n.getState();if(x.pointerRegions.length===0)return!1;const S=i();return S===null?!1:VC(o(y,S),x.pointerRegions)!==null},m=y=>{n.getState().isPointerSuspended||f(y)||(document.removeEventListener("pointermove",m),u())},p=y=>{document.removeEventListener("pointermove",m),r=y,a===null&&(a=requestAnimationFrame(c))},g=y=>{if(r=null,a!==null&&(cancelAnimationFrame(a),a=null),!n.getState().isPointerSuspended){if(f(y)){document.addEventListener("pointermove",m);return}u()}};return e.addEventListener("pointermove",p),e.addEventListener("pointerleave",g),()=>{e.removeEventListener("pointermove",p),e.removeEventListener("pointerleave",g),document.removeEventListener("pointermove",m),a!==null&&cancelAnimationFrame(a),r=null}},ZSe=({panelRect:e})=>{const{engine:t,store:n,overlayRef:r}=ll(),a=ms(u=>{const f=u.editTargetUnderPointer;return f!==null&&_1e(f)}),i=ms(u=>{const f=u.editTargetUnderPointer;return(f==null?void 0:f.kind)==="annotation"?f.id:null}),o=ms(u=>u.caret!==null);qSe({engine:t,store:n,overlayRef:r});const c=tt(u=>i!==null&&YSe(u.spec.annotations,i));return w.jsx("rect",{ref:r,x:e.x,y:e.y,width:e.width,height:e.height,fill:"transparent",pointerEvents:o?"none":"all",curs
101or:JSe(c,a),"data-testid":"pointer-capture-layer"})},JSe=(e,t)=>e?"move":t?"pointer":void 0,Uv="data-hover-active",eAe=e=>{const{store:t}=ll(),n=Vf(t,r=>r.hover.primary!==null);E.useEffect(()=>{const r=e.current;if(r)return n?r.setAttribute(Uv,"true"):r.removeAttribute(Uv),()=>{r.removeAttribute(Uv)}},[e,n])},sy=()=>ms(e=>{var t,n,r;return((t=Pd(e,"move-drag"))==null?void 0:t.annotationId)??((n=Pd(e,"shape-resize-drag"))==null?void 0:n.annotationId)??((r=Pd(e,"arrow-endpoint-drag"))==null?void 0:r.annotationId)??null}),Xf=e=>{const{annotations:t,coordSystem:n}=tt(Er(c=>({annotations:c.annotations,coordSystem:c.coordSystem}))),r=k1e(),a=R1e(),i=E.useCallback(c=>x5(a,"cycle",c,`Annotation reference cycle detected; dropping annotation(s): ${c.join(", ")}`),[a]),o=E.useCallback(c=>x5(a,"missing-ref",c,`Annotation reference target(s) no longer exist (dropped during compilation); dropping annotations referencing: ${c.join(", ")}`),[a]);return E.useMemo(()=>hre({annotations:t,panelRect:e,coordSystem:n,measuredBoxes:r,onCycle:i,onMissingRef:o}),[t,n,e,r,i,o])},x5=(e,t,n,r)=>{const a=[t,...[...n].sort()].join("\0");e.has(a)||(e.add(a),console.warn(r))},tAe=16,GI=({linePath:e,strokeWidth:t})=>w.jsx("path",{d:e,stroke:"transparent",strokeWidth:Math.max(t,tAe),fill:"none",pointerEvents:"stroke"}),nAe=0,rAe=1.15,YI=1.15,aAe="rgba(0, 0, 0, 0.16)",WI=2,iAe=1.4,sAe=({computed:e,isAddressable:t})=>{const n=E.useId(),{themeValues:r}=rA(),a=e.color??I.defaultAnnotationArrowStroke,i=e.dashArray?{strokeDasharray:e.dashArray,strokeDashoffset:e.dashOffset}:{},o=E.useMemo(()=>e.hasStickerStyle?oAe(e,r):null,[e,r]);return w.jsxs("g",{pointerEvents:t?void 0:"none",children:[t&&w.jsx(GI,{linePath:e.linePath,strokeWidth:e.strokeWidth}),o!==null&&w.jsx("defs",{children:w.jsx("filter",{id:n,filterUnits:"userSpaceOnUse",...o.filterArea,children:w.jsx("feDropShadow",{dx:nAe,dy:rAe,stdDeviation:YI,floodColor:aAe})})}),w.jsxs("g",{filter:o===null?void 0:`url(#${n})`,children:[o!==null&&w.jsx("path",{d:o.combinedPath,stroke:o.outlineColor,strokeWidth:e.strokeWidth+2*WI,strokeLinecap:"round",fill:"none"}),w.jsx("path",{d:e.linePath,stroke:a,strokeWidth:e.strokeWidth,strokeLinecap:"round",fill:"none",...i}),e.startArrowheadPath.length>0&&w.jsx("path",{d:e.startArrowheadPath,stroke:a,strokeWidth:e.strokeWidth,strokeLinecap:"round",fill:"none"}),e.endArrowheadPath.length>0&&w.jsx("path",{d:e.endArrowheadPath,stroke:a,strokeWidth:e.strokeWidth,strokeLinecap:"round",fill:"none"})]})]})},oAe=(e,t)=>{const n=e.arrowheadExtent+e.strokeWidth+WI+YI;return{outlineColor:lAe(e.color,t.arrowAnnotationStickerOutlineColor,t.arrowAnnotationStickerOutlineColorInverse),combinedPath:[e.linePath,e.startArrowheadPath,e.endArrowheadPath].filter(r=>r.length>0).join(" "),filterArea:{x:Math.min(e.startX,e.endX)-n,y:Math.min(e.startY,e.endY)-n,width:Math.abs(e.endX-e.startX)+2*n,height:Math.abs(e.endY-e.startY)+2*n}}},lAe=(e,t,n)=>{if(e===null)return n;try{return ix(e,t)<iAe?n:t}catch{return n}},cAe=({panelRect:e,isEditable:t})=>{const{arrows:n}=Xf(e),r=sy(),a=E.useMemo(()=>n.filter(i=>i.id!==r).map(i=>Are({arrow:i,panelWidth:e.width,panelHeight:e.height})).filter(i=>i!==null),[n,r,e.width,e.height]);return a.length===0?null:w.jsx("g",{transform:`translate(${e.x}, ${e.y})`,"data-testid":"arrows",children:a.map(i=>w.jsx("g",{...qf({kind:"annotation",id:i.id}),children:w.jsx(sAe,{computed:i,isAddressable:t})},i.id))})},uAe=()=>{const{selectionStore:e}=la();return Vf(e,t=>t.selection)},dAe=({linePath:e,arrowheadPath:t,stroke:n,strokeWidth:r,isAddressable:a})=>{const i={stroke:n,strokeWidth:r,strokeLinecap:"round",fill:"none"};return w.jsxs("g",{pointerEvents:a?void 0:"none",children:[a&&w.jsx(GI,{linePath:e,strokeWidth:r}),w.jsx("path",{d:e,...i}),w.jsx("path",{d:t,...i,strokeLinejoin:"round"})]})},fAe="_1i8rg6j0",hAe=({x:e,y:t,text:n,box:r,lineHeight:a,strokeWidth:i,strokeColor:o,fontWeight:c,isAddressable:u})=>{const{fonts:f}=Ds();return w.jsxs("g",{pointerEvents:u?void 0:"none",children:[w.jsx("rect",{x:r.x,y:r.y,width:r.width,height:r.height,rx:4,fill:I.graphBackground,stroke:o,strokeWidth:i}),w.jsx("text",{x:e,y:t,dominantBaseline:"central",textAnchor:"middle",fill:I.textPrimary,style:{fontFamily:f.familyDefault,fontSize:a,fontWeight:c},children:n})]})},mAe="75%",pAe=({panelRect:e,isEditable:t})=>
101{const n=q1e(),r=ms(o=>{const c=o.editTargetUnderPointer;return(c==null?void 0:c.kind)==="annotation"?c.id:null}),a=uAe(),i=E.useMemo(()=>new Set(a.filter(o=>o.kind==="annotation").map(o=>o.id)),[a]);return n.length===0?null:w.jsx("g",{transform:`translate(${e.x}, ${e.y})`,"data-testid":"difference-arrows",children:n.map(({color:o,id:c,linePath:u,arrowheadPath:f,strokeWidth:m,labelPosition:p,labelBox:g,labelText:y,labelLineHeight:x,labelStrokeWidth:S,labelFontWeight:A,isDragged:M,hasComparableEndpoints:C})=>{const R=r===c||i.has(c),L=M&&!C,N=L?I.alert:o??I.defaultAnnotationArrowStroke,O=R&&!L?gAe(N):N;return w.jsxs("g",{className:r===c?fAe:void 0,"data-warning":L||void 0,...qf({kind:"annotation",id:c}),children:[w.jsx(dAe,{linePath:u,arrowheadPath:f,stroke:O,strokeWidth:m,isAddressable:t}),w.jsx(hAe,{x:p.x,y:p.y,text:y,box:g,lineHeight:x,strokeWidth:S,strokeColor:O,fontWeight:A,isAddressable:t})]},c)})})},gAe=e=>`color-mix(in srgb, ${e} ${mAe}, ${I.textPrimary})`,yAe={fill:"none",contain:"xMidYMid meet",cover:"xMidYMid slice"},bAe=({image:e})=>{const{src:t,region:n,fit:r,opacity:a}=e;return w.jsx("image",{href:t,x:be(n.x),y:be(1-n.y-n.height),width:be(n.width),height:be(n.height),preserveAspectRatio:yAe[r],opacity:a})},w5=({panelRect:e,zOrder:t})=>{const n=Xf(e).images,r=sy(),a=n.filter(i=>i.zOrder===t&&i.id!==r);return a.length===0?null:w.jsx("svg",{x:e.x,y:e.y,width:e.width,height:e.height,overflow:"visible","data-testid":`image-annotations-${t}`,children:a.map(i=>w.jsx("g",{...qf({kind:"annotation",id:i.id}),children:w.jsx(bAe,{image:i})},i.id))})},vAe=({shape:e})=>{const{region:t,fillColor:n,fillOpacity:r,strokeWidth:a,strokeColor:i}=e,o=n??I.defaultAnnotationShapeFill;return w.jsx("rect",{x:be(t.x),y:be(1-t.y-t.height),width:be(t.width),height:be(t.height),fill:o,fillOpacity:r,stroke:a>0?i??o:"none",strokeWidth:a})},S5=({panelRect:e,zOrder:t})=>{const n=Xf(e).shapes,r=sy(),a=n.filter(i=>i.zOrder===t&&i.id!==r);return a.length===0?null:w.jsx("svg",{x:e.x,y:e.y,width:e.width,height:e.height,overflow:"visible","data-testid":`shapes-${t}`,children:a.map(i=>w.jsx("g",{...qf({kind:"annotation",id:i.id}),children:w.jsx(vAe,{shape:i})},i.id))})},xAe="_1aj6s5s0",wAe=({annotation:e,blockRef:t,children:n})=>w.jsx("foreignObject",{x:be(e.at.x),y:be(1-e.at.y),width:be(e.width),height:be(e.at.y),overflow:"visible",pointerEvents:"none",children:w.jsx("div",{ref:t,className:xAe,style:{...AAe(e.backgroundColor,e.backgroundColorStyle),transform:SAe(e.align)},children:n})}),SAe=e=>{const t=fw(e);return`translate(${-t.x*100}%, ${-(1-t.y)*100}%)`},AAe=(e,t)=>
101e===null||e==="transparent"?{color:I.textPrimary}:t==="fade"?{color:I.textPrimary,backgroundColor:a5(e,I.grey100,.5),boxShadow:`0 0 0 1.5px ${a5(e,I.grey0,.2)}`}:{color:I.textPrimary,backgroundColor:e,boxShadow:`0 0 0 1.5px ${Tbe(e,.1)}`},MAe=e=>{const t=Xf(e).textAnnotations,n=ms(r=>Pd(r,"text-resize-drag"));return E.useMemo(()=>t.map(r=>TAe(r,n)),[t,n])},TAe=(e,t)=>t===null||t.annotationId!==e.id?e:{...e,at:{...e.at,x:e.at.x+t.shift},width:t.width},kAe=({panelRect:e})=>{const t=MAe(e),n=sy(),r=t.filter(a=>a.id!==n);return r.length===0?null:w.jsx("svg",{x:e.x,y:e.y,width:e.width,height:e.height,overflow:"visible","data-testid":"text-annotations",children:r.map(a=>w.jsx(EAe,{annotation:a},a.id))})},EAe=({annotation:e})=>{const t=C1e(e.id),n=ms(a=>{var i;return((i=a.caret)==null?void 0:i.annotationId)===e.id}),{TextAnnotation:r}=oA();return w.jsx("g",{...qf({kind:"annotation",id:e.id}),children:w.jsx(wAe,{annotation:e,blockRef:t,children:n&&r?w.jsx(r,{annotation:e}):w.jsx(df,{content:e.content})})})},CAe=ea.sm,RAe=Ig,LAe=ho.medium,DAe="0 1px 1.5px rgba(14, 14, 52, 0.18)",NAe="ph8bdc0",jAe="ph8bdc2",A5={hittable:"ph8bdc4 ph8bdc3",inert:"ph8bdc5 ph8bdc3"},OAe=({cx:e,cy:t,color:n,radius:r=4})=>w.jsx("circle",{cx:e,cy:t,r,style:{fill:n??I.textPrimary,stroke:I.tooltipBackground,strokeWidth:2,filter:`drop-shadow(${DAe})`}});function _Ae(e){const t=ol(),{formattingLocale:n}=la(),r=tt(Er(c=>({pinnedNumbers:c.annotations.pinnedNumbers,comments:c.annotations.comments,coordSystem:c.coordSystem,numberFormat:c.config.numberFormat,parsingLocale:c.config.parsingLocale,textScale:c.config.appearance.textScale}))),a=n??r.parsingLocale,i=E.useMemo(()=>Zre({numberFormat:r.numberFormat,locale:a}),[r.numberFormat,a]),o=E.useMemo(()=>{const c={family:RAe,size:Jg(CAe,r.textScale),weight:LAe};return(u,f)=>{const m=IAe(t,u,f,c),p=t.measureText(m,c),g=u==="pinned-number"?15:0;return{width:p.width+g+16,height:Math.max(p.height,10)+10,text:m}}},[t,r.textScale]);return E.useMemo(()=>_re({pinnedNumbers:r.pinnedNumbers,comments:r.comments,panelRect:e,coordSystem:r.coordSystem,measurer:o,formatPinnedNumber:c=>i(c.at)}),[r.pinnedNumbers,r.comments,e,r.coordSystem,o,i])}var IAe=(e,t,n,r)=>t!=="comment"?n:fj(n,140,a=>e.measureText(a,r).width),M5="callouts",BAe=({panelRect:e})=>{const{pinnedNumbers:t,comments:n}=tt(Er(p=>({pinnedNumbers:p.annotations.pinnedNumbers,comments:p.annotations.comments}))),r=tt(p=>p.coordSystem),a=Ni(),i=I_(),o=_Ae(e),{store:c}=ll(),u=E.useMemo(()=>{const p=new Map;for(const g of t)p.set(g.id,g.at);for(const g of n)p.set(g.id,g.at);return p},[t,n]),f=E.useMemo(()=>{const p=new Map;for(const[g,y]of u)p.set(g,i(y));return p},[u,i]),m=E.useMemo(()=>Cre(o,e),[o,e]);return E.useEffect(()=>{const p=c.getState();return p.publishPointerRegions(M5,m),()=>{p.publishPointerRegions(M5,[])}},[c,m]),t.length===0&&n.length===0?null:w.jsx("svg",{x:e.x,y:e.y,width:e.width,height:e.height,overflow:"visible",className:NAe,"data-testid":"callouts",children:o.map(p=>{var S;if(!p.inView)return null;const g=u.get(p.id);if(g===void 0)return null;const y=f.get(p.id),x=p.miniRect.width<=e.width&&p.miniRect.height<=e.height;return w.jsxs("g",{"data-testid":p.kind,children:[w.jsx("foreignObject",{x:p.miniRect.x,y:p.miniRect.y,width:p.miniRect.width,height:p.miniRect.height,overflow:"visible",children:w.jsxs("div",{className:x?A5.hittable:A5.inert,children:[p.kind==="pinned-number"&&w.jsx("span",{className:"ph8bdc1",children:w.jsx(Wf,{shape:((S=a(g.geom,r.type))==null?void 0:S.swatchShape)??"square",surface:"callout",color:y??"currentColor",width:10,height:10})}),w.jsx("span",{className:jAe,children:p.text})]})}),w.jsx(OAe,{cx:p.anchorPx.x,cy:p.anchorPx.y,color:y})]}
101,p.id)})})},zAe={"clapping-hands":{aspectRatio:1.059,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAABICAYAAABP0VPJAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABipSURBVHgB7VwJfFTVuf/uMvtMlplJJiEhBEhYwiIYNgExUBSQ6qMqblWrz5/WtfBa67NiH1iftbW1VqWghWqt+opFfajFBRcSUMImEBISspCFSTIh++zbXfqdO3cmswWSSPVHf/1+ub977znfPfec//m28507Afg3/ZvORsxwmEVRpJDo0tISCqA0XEzJBx06bwjXUXAB0lA7TZWUlDCtra3Mtm3vjCUF1113dbNWqxXItcfjod966718igpSubm5ow8fPnx8zZo1fQ0NMzlR/JuAIIrwL0LU6tWrmfz8fLXD4XgYJaRPlEkQhH6v1/s6lj9FrsU44nm+BevuAihWbNiwgYZ/ASLSw5aXfzU5EAjuFUdICNr/ElDgAlWhCBHJ2L//SFGy2R8uWa3ty9G2XNBSQhUVFSmJ2IvngdDGvEHaS/YeUZQkhykuLlaEeIoV5JpMCEiGWgKSHTg2yMb7GyTSmZqamksGG6DP1ZdQhqpha6jcd7Tp6MdOjuMc0XUEWDS2mriBEEPNfvrppxa32/2k3+9/H/kqgsHgHp/Pt7Gzs+cGi8Wis1qty8k9sVfk3N5+ZllBQYFKBugbAUaSjra2tgfiB+040yS+u75E/PDpVVGz77VJdZ1N4ubVIP5uFf2VyTR9bmVl7ZYwTyDAWdPT01Mh5JojYDQ1Nc07mxRinT1ZObFp9fVN8wCKlHh7XkGJ0Wu5cbasrOw/s7KynkzgxlpnVzO0V5eC390vFdXUnPqInJXaNOm+x6Mq3bz5l1Nxxh0cx7tIGc9zrq1bt45Hb0XUhkEJpJ9//vmCvLy8N2mazhu0czSdkqxcoWAXFhTkl7vdh9ZPmTJFcb5BCRNF9Fd2r4NSd9NRSRKO7/y9dB8Mcs5w3ev35Yunq75oH+xZVIe9xGtlZ2drUQXeEM8DtbdbV8AwA8whEYkV6uvr5w2lEyd3vyK+u6EkofyLV9ae81nitZqbrQ+i2FeK54F8vsAXJE6C80xUfn6J+mz6TCShru7U9vD9ob+tF9uqdsfwdKH0jIRaW23v79jxyUOv3DepbttP59qSGe1Df9sg2bBkZDQWpJxnt76Bbmqyrkj2stq925yDdSRZx4dLBw8ef0apnDxVr5889dlV1KE/3Z4WqXO7PR3kTN5P1JSoZLJ3fvZZ2RIiJecjIiauC4qL32e02nvHxleeqtp/7PPnb5xhyMiHq9fvBkNmfky9Spc2eMvOSoD+/aHrzKuR2ZKULT09RU3TgpvjKNHLsTWTikpmheu8Xr9Nq9VYjn/wnHQ///Znk75zyZJFn1VVVT2l1+s34G0QjxGvnSRE7fZMmuOEpOguvu8V6fze44vB2dmctBGRc4PQd1w6S0SAqP0ZwJl3Q0f1j3AF2Jj02YKCMfdZrfvXVVTs/J5l/MXi2NmrInUmU9oMcm4/UQqzVq+H6Lp40ul0P3O5XGvgaxpY6eGxY5fQZrMozJgx7a7oSmNmbpY5fwZMX7kWyLn58A4YNaUkpgHu1OvAHX8M+LZdwLWVhvIA3iqc3qYBJhEnrXcPQGox+sz0hE5oteqLTab0ZVo1exFpP1oKyCQ0lL8Jl6/dJt339PQdQ6nJSjYYhUIxZ8WKFTvs9q291dUjk5Kw/2b1+unGjo7y93U67ZyhPiy6G0GsfBBoNtQM5xXA7+SxsWxQarqBouLfogMofAoRGAdDJSIdRFWJ2sYTiXNYltFHl+EyYfPs2bPXVldXB2AEFFYTgWXpwAsv/OW/fT6/bTBmohJ8VzkIzlPSPeVtjIBB1JbV0KBJY4B32SBoFwZSRyCfeVSphkdQehphqEQkJhkYX/75v+DAm4+74ss1Gs3NPT3siFfXYX1Df64XKyqqPYGAv3zevIuXsixriGYUEYTAgftQLXYBb90JwbZ9wKhUQPnqZA4q9IctMgoaAi4eAcBrNS13TQydifr0o/qkJFefcxGJkD/45Qo4tW8bdJzcA5OX3R9QqnWRhSMmo9RFRYXbJkwY31VaWjpstYkypDM5ivI6n3vuj3UYPjniGQO1L4EQcIEokBCfqMspcB1/C3gvH8uIekJjmKQ2MtDf6QHOTerFREk5FZIU14nt2M6bIPqdA214jqOu/BnAFyusxJ4Q486z+vqqTsPDWw7nX2V38aXxfT106LAbXTCMhNiBy+38lCklvtLSdleylJ8oiBEwgFyTsSkoCHhEUNEC0CoqAgghGiXDNEYHLdXdkFtoAkUKEwuMgKDUPwjBJh8ONAjOmg/Asmoj0D70ULbfSe+ALlwmTXwW0c2WHlGisV399FFyWRic8PeeV+/88RmXy9MW3U+8P/DMM6/aYYQqE+NqUcRwOrmgx+M7Ec/IjLkFgg4e7Ygo9VUCBy8CPh68Dg4Ev4QGDIQAIoJCwZjJZqg63AzuTj/JfkTZFVE60sepQGdiwd/TCLa3H8AY4FO5Z8ikwnE1/irSh2jvs2rVFU+sW/djS0aGqSC6n42N1rdZVsfBCGOReJ9NGY0m5a23Xl9oNKZdFsOoR09H6dCbHgRaSUmCoDIw2ElWAimIqsOScpSacP5dsikog5ZR6XBsfyNoVRrQpCplYKgIjxYBCXpFcNu6QJfeA6wqap64TjzwmZSpsR1nGMP8+Rdfgy54crisoaFlU3HxNZudzm40to4gjIDigzGqt7cX8vJy7kjGrC66FlKv/CO6uwxQoQqoUhn0pBRoMllQIjgHy+rA54zqhxSUoE3RUjC7pBBOHG2GnuaQHYpIi6RGIpgmqEChY8Bvj7NJCpyzlj+g5BxN7LycHnC53PXbtr1396xZ1/5OodB5AFpHBIbUZnxBXd2hRRjg5MaXBxrfAefHt4CvchOoC5fhILMGBo2zrTDQMOuyCVBR3gSObnesESXqg/myBcsmQ0NtO3TXuSWpCj8rGWJ037lztODu4hJ7SUBpwPjF1wHJCPMj+rq65kaO87syM7tIuMzDCCkOkGLGYNCPiWfibF+C9/hm4D0dwPVVgL/uL+hWhYTGWA0FsxYVQs2RNgTFE5ICGLAbNNbPWVIAjc3t0FUbBYosJUQVzRPV4OuPGg8BTIMqE0AwatdhZxJCD1CpVNnr1t3/yo4df8hMTU0VRHHk20AxgBQVjaMwb8nGMwl+B4q5IBlRgScOQARPZysE3ZxsugYGzaAKzb6MgNIK9jOeWEkhwoCGds53CqDJaoOuGrfUZjSPQkcDjXaID8iAk8Gx2E01xlreBoATa5KCgjZl9JIlC//+i1/8wkRR14941RvzYHX1CXA6/QkxiGLUpSiEStn1yu4XD4ctiCFFUPbFEBkYUQ9iM2or2sDe4RloKOyZCShLC6C51QbdJz2xES0Q90oDFxClZUCEiJQoERQfRsnVazFCS1Qfko5cvnz5rtzccilVCV8XkOJijfjyy9v2Y6LIGV1OKfWgmXE/hg5eEDgBBNnlkk73WhEUu48kTmVuMRKczSopgNrjbdDfHgWKLE0U5s1nX1EArW1nwN2RaANVegY8PRy4e6JsilYxICmDgzKtrq7uGczMjygrH4OizTaRrqo6Jt599w1TdLoBd0aINU3AmbdA8PRBVBk+FK0KKNo8qk+/AGo6gKE8idvpGJc7aowJKg82g1apBo1BEYovwqAguzFbD7a2Pki3aGEgjgmNQ5PGgvtMUDK4EVdM1IfYFRLZ2o9hjmAJthm75YNOYfYPfnBr6/79vz7W3Dy8eCROrJpBrx+DSxS2Zf784mtpmsxjFCjmiaAavxS8Jz8F3u/BAdOgNysgJVsFPjuNEuQBhQrfr2DlMVEhUPIRlEMtCArGISlsTJzCKhkEQwdxbkkmETTprCQppJwNR8MEFHJ4uzGexxgyY0XCwFQq9aWTJl39/6NHj+oZzpomXs9ww0kDx44dDVx55VLGYjEviH+AVhlAM+m7qCZnsE9NkDZKKy3mlDhQLzq8tvo2SE/DGVMpIx6EYigExYgRK4LCqEGNkkINquE
101DEhI+kwCQLBYV2igNJ5LGYiPu9pCRTYvNWpBFXkaGMf+ee555q7e3QYAhUoI1LinJ5TGh7MnJyRgfX8c7O6B75xpof/UqcLeeAHdAdkiUKA3QMEoFlvzRUPFlM0CfPWqysR61ZRZ6l4b6dui3ekJrlQRpjgYjZnRSNJvAz5AwF4G3vQ3Q+VHCY+iOV+7Z86fFycY5GCUw7t69m7dYUoM6nT47vs5x5M/ga6sgG1rAY5Bkq2kHf1tHZHAUtqazKKHgognw4Y5q8Ld0yDZDHhcBZWkIFG9fSA3iRh53LwMQiSui6sNlRHU0CFbLxqTu2Gw2PzYcA5sACBVJcyVKGe9zhrwMGlIRD1O6CepqsRN9fSE/HF6bZCpg3pLp8NHOBnBWN8e4VWJTZqOk9PY5IXohmJySARR28dRAkZINrZ5bX0loAQ3sgp/85DEzZgOGBEgyTaZoWq+8++7bZuHCaWZ0BZuaB67qjzEvEgCyeyh5GoxPmq0dkGNG+6tVSRJBJEWtV4LFYoLdu05CjuAEVbaJ+MRQQ3hKMYb3vuPUhDpbv6OQjceQxwnpx1xu9uoErzNx4vjgsmVPlUKyWY6jpLrV3a3nq6rqdsWXKzMKwXjZWhCCPB6CJC00Gg8NZYGD+zEt4XBFFm1EPdJytFDy3WL44kgv+CvroloSYwcpJrMl8XxRRWKc4SVbuwwTum7fnvCIUqlemJ8PDAxBbQYxNl5u5crb9zoc7kPxNfopKyH3B69hiJ6JgIiS+tD4LhWXCQf3WnHp6Yv0nMKJSs3WwszFM+DzMgTsRC0kNZzUQF4WBluHRLRFBkAST0i0L2eSGVfFgp/+9OUMGCEg+IZqIT091f/22x8+yfOCM+EFmYWQe/OmEChBUQKGFhEWjxkqD7Ri0BSIWrtgPmS8AWYsnQ37Spswg9MS+ypIMqiY2Y++j+KlqOSCRKLXJKvijAw0eFByTm8zWDQgpqZS4s6dx+1Llsxx5eRkLUl4UG0Aw8TLwNl4GDNpvVI4T2Hk6umlob+/Gyxj0kJuUYpIKdCnq8GD6Dir6iF92riBAQ9qM6jkXjkZSOQaVRg4PgSYGdde6titG9xk/6im5oP65ubms9qRwRDDDeiCoF7vc11xxV1/LS8/uj4ZkyItG8bdsRkMExaFbAqqD4vGw96ogRP7WkKeR+4vUZ9JxbnAjJsQ9yYx8T5aFUSIcS4x52iAwu+SwEkQakhJScnr7Mw4p4QMyiCKuzm9nndrNLxz8eLb3ti48S83JtuzIZIy9panIeOSG4DnQukBBVr5rkoGGg61ywOTR6EQIW/u6EFeCHEzHy8hsu0I2yAxjocTB66TSJ3FknljdfV2BZwjSBu0ksQj119/PdfR4XQolVz/E0+8cOiJJ35/h98faE/GP/o/fgKjLr8r0imNQgutRzjobuyNGtgg6hE/6zGeJMqIRq7j+Im6ELcbNsr+loRXqNXK+Q6HgwRpZ93EOmvOILQo6sWwI413uym+srLG6fO5982dO2OOUqk0xfOnFBRLZ2fDEemsQD2x1tshJUMEbZomduZEGPyairMTYgJD7DPegKxqeDAYpHHo7TKuTIhHMJRfeOeddzJlZWV7rVarCEn8+hCTKL0I/2jO5yOgnHAeOVL1+VVXfWehUqkwx3MSUBiNAewny6V7JS7mrLUEFIzbUtWQYAxjpIcapD46IIur93MhCQnbHjUJDlFvfScB0pfGdw9jEuWlN910E7tp06a9mB1MAGVI4WwUKYzGuRqv12fgeU9KS8veX2dlWa5KxujvPg01mx4Ef29Iw9yiHaYvTwdznhEiyeWwalBUbLAVfU1FxRxSnVxFgAkgGIFgaC0VfsaAeRVabtNyM0Dm95MOxOl0/mr8+KWPd3UdDODaTAgvWYabewyOHXvA6/UG7Wi1+6dOvfzh2tpTLyVjVJnzYPIDL4I2O+RidVQqVH3cB90tfRBKuYU549UjqhFyLcSBEeb3B0OAhMEgh1opgwGhiLn7jYGNrzgyGAyPnD5dtnXatGlKjuMigjHsvKPNRtYDJbzH08nTNC9u3br96HXXrWBNprRZ8bwsqo555uXgPdMIvi4rKEANHS39YMxSgEotZ8+iPUOMIYVYwKiw2uBNAFUiyMUCRUJ3rZyDIaCQtsnZhaqrsCBYCdkMwA396bfddhuzaNGiPe3t7cKIAAlRNb7pDG825/E+Hydu2fLmsWXLLvNlZ2fMj+ekMXVoKl4uXRNjywpqOF3bi5k27D/Rd4ZOVJnwIGNIrvNHgRGWIPK8XiUHgmJMRk4iAoq0DJ+eMBJcDU9PT899efv2v7q/BiChLj/0kI3/5JPxvFKpErZsea3KaDTsmzZt0oL4TykIEWOrMo4CT2sNULgfTLyPOp0Hg0YRsgfyhlUEDCpu8UYCLx+qSZAfUJGw/TGo5VwrhMBI9jU8+aIgCSgks6ZUMqUvvNBO0vni1/oeq7SUdL0V3XIur9XSwpdfHuzxeFx7FiyY/R2WZRJA0eVMgPTpiyVJoVxuOHPKCw6fHSxZulBgxfEDNiN8kPiC2AriTSKxBsSCIf1MQFYROoJoYocJKCpUHVVscOj3e/eVlW06YrPZhPPxBTABhQ8EdDzuPwuHDx9w+Hz8l6FYJdEtE7uSueBaSVqCHbjtaXWB3eUErYHFNCwTAoQj6xLZnZLr8OcGEOWZiKrpiWRQslTI6pLguuMo/cqQTYmitraO7evWPYrJFODP18eu2JOGQGFhABcRGvumTX+tycqadU1tbeNLgz2QMee76IVegsLrHgHBVQAVn/XByeO404/rIckLRXsPQT74kHcSFErgNSop20PSmdLXKmHAzkbqcUntiNXaag1fDzcOORdhe8Ws2axWezweA8Pwhg8/fPmGefNmPsQwtOFsDzoavgJPWz04HfUgeE6A0nsCI0sWxTkoNZs3LgMElAqRqAlm3ijZVpCVNFEVEkeEHRElSQuEd0JCRKNajv1DgnQEAoG23NyZs0pKpnRt376dP9+ASDO2eDHFlpZmK3W6PAQlaLj33psLH3/8wa0qlXLUcNoin1D5O05B49u/ASbtNEy+OFeyG9K4GVGyHZQchBEQIoDI356QD6EokrYkG+l569HeXJLwjoqKmkcWLbpui8NRTb46Ov+ARBH2JF9pMKh1DC6JOU7U7d277fZJk8Z+X61WZQ+nIX+vDWpeexS44AGYOCNnQBoUYUCIhNBRgITeHuajR90KTNYtCe0S6bBY5i7s7+9EXW33YpF4PozqYITC0se//voezu0+HQwG1cKrr26vCgS8eyZNKkw1GHQTh9oQMcRZ81ZBsJ+GxsOfgCkzRcr6ixwVsiECDJzlfefwNZNzK7AISDzh/rXjySdfvLmi4ph14sQUD3oYaXP6nykhYZLmy2K5Qu12d2k5zq9RKBjt/fffmn/HHdd8Ly8v96rhSExfZSlYy56C0aP5iL2glGLEjkQkhNWCZsIDwFquSNrO7t371q5c+cN30tJUPTbbVyQRLIQ7+00RCnGBwmxmlD6fSsNxtFahEFSCICp/9KObRi9cOG/SuHF5E3EJMMFg0E88G0hEher+707IzvaT3WNZfRAQNhSyM9ps0M3cAIy+IOnz9fXNL06fvvo3Go3Y09f3FYlQI58YfJOAhAnVtIA1Gk0q1GEVz2OgqHQjSCyjVPK0QgGKQECk7rnn5jGPPXbf46mphuJkjfBeJ3Tvew6ors/lzTVRkhbFqIvAcPHDQCf/HB7BaHxx/vybnvX7ocfpPOjcsGEDh0ckz/ptABJ+L11UtJqprm5EN+1igkEla7f7mYyMUazL1cdgUlil1VLa8vJ3HsCNph8O1lBP+XMQbHgXGEM26KffBppxywZjFTEu+uOcOdc+I4pMn9Npd5LYCZKsmr5tkn1CCRv6BTj5CWq2Ni1tRprJdFGOwXDRhF279q7BHMygv+UL9NSL5yBh377D/0Pa0utnZpBfj8HwUx/fKiFI5IfMxdrMzLkWlWrq+EceeXo5gtImDpMwK9a2ceNr16ekTCmwWOZnXohgRCj0k7ECVU7OHJNGU5z385//9vL+fsehoYKBvAcfffS3y1JTZ41LSbnESMD4V/jHDDT5wXJ6enGq0Th7tF4/eQouxt47GxCYAbMfPVr9tNE4s0itnpJHwPhn/Oj5WyXyS3CzeYHBaJyeq9dPnXzy5KkXZRUSwge5x/LN11xzzwKiZmbzpei6FxiG898pLiTEsK8laFd6VWazIsXlCmhYltLee++NuWPGjE757LO97Z988kUfRSmCHMd7WVbl1esBI9CvyM8S5ETKkF5ywRGCkotrpFEY2FEaQQgwosjTgYCCpyiBYxiFX612+7u6RHSp1STgGvL3ZXLjFxzhTDswS9cWTEubiYPmUQLSfCoVeO32dk9BAeWbM2dKoLq6TP7l0vDoQjYyUUnXUDqe0Nf9f0f/APDc5Dseec9LAAAAAElFTkSuQmCC"},"grinning-face":{aspectRatio:1.03,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAABECAYAAAA1DeP1AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABeNSURBVHgB7VwJdFbVtd73/mP+/EMmEpL8CYFMECAQmWTwGRSf1ApUK/a19lULLQ6vqy19fVVfbRvreyxp7eBbrYWKtUuxtVBaZajWiQCCIMSHgQQSpiSEDGT8h/zzvfftc+cpQFB57Vrda93cc+490/7OPnvvs8/9A/AP+gepyQLXkDiOo5Do+vpxNEAzTfqfNWuWpaCgwNLdXYBj6bbU1tbSbW1zKHyPF1BwjeiT7oiqq6uj6uvrkfl6qqSkxLJ9+/aSwsLCaovFkmG1WktomvZh2kcKMwwTQLCG8d4eDofb9+zZc+zRRx8dbGtrY/A1i21xeLHw90Bk1kEA2FpWVubYtm1bfjAY/E48Ht/BsuwwN0YioJC6AwMDaxobGycDVNlBkORrJi1jJpwtGkXdtmvXrvHI/JpkMrmX+5iJtDk8PLwGpcuJ
101XVrxouFviHAws2xk9lGk113NzI+ViKQMDg7e7/f707B/K5kE+H+UEux4JYppmSMYDH/nWgAwGiBkGQoTcnVgXC2CfL2qqirbiy++WFpdPWOj1Wq54bK1UiGARA9AuAEg3oXaMYz5LqE5DoiCAbDnAzjwclVgugAgvQKuhHASOo4ePbp0zZo1pxsaGlIgtDg2hsZIWKeOKivbbPvggw++4Xa7/xNNom/U0oT5wV0AgT0AkVPIfEjoldepqrFKQEgZGRgEwzsLIOd24X4JQgEJhMORdV6v+2lcKsmxWJirAYKIny0Sif00Lc3x0Kil4t0AfS8jCH/B6QqDwJmaeTHNSc9JlhUAkgDhVIBI0uK/HyB3GVyKQqHQk9XV1Y+j2U2IHV5WOsYIRB29a9ec3CVLljxlt9vvMS1CZrzz54IUUJS2B0qV4UaTBiRWDYQaDBDAIlJSdGlAEonEzn379n3l3XeX9NXVXR6MsQBBo1XIu+OOO17HpVBtWuIiSkDPc8hISGia9yjUYIhpTjcm9awDpQJADQSYS8i0ZwGcBabDYVmucefOd/55xYolfSQLl6ArBYJGu21vaWnZipJwu+Et0QMdT6Ae2KswTuEKoliReUqRBsIAJS0LUJ7Jy0EHjBoIllWVF/PkPvHbAIXmAhqLxX5XXl7+lc7OzvilwLgSIIhr7ECv7gcej+cRw1uiC049CJDsVhiWgZB6oFS9SV3q9ACAlnFW5F5aJixnlAi1lJClMuEBUwai0fgzLtfkfwfgdYYpGJf0ylALU+gpWhGEr48OAurLZI8CAk2LlwSKmFY/l9LSe4oyXrToEtDiEGWAxbQMqHjv2ADQ8n1TPohSDwYbv042eDAKXUYiaq0NDT8pr6mpec9gIiUQiB8gMU0rjMSiKdi/pxtOHBuErs4RYHAebvp0Mdy6bALIfgOY6QIxjRIw0B+HP/z+DHScC0K6ywr5BWlwXU02fxnqsGI6DxVo5RMGTohpPXDgwMJFi54+CbCV0b+3jgYBkYaJEydaZ86c+boBBKITWh9QJEGGVEg3NQ7AHzafhvAIAykcoNVhg7IqH1jwzkuAxoSCKi0pA4qX1TSXBZweB+T6vXD6dBD6AyE42RqGw0cG4O67SiDTZzL8nh3okKHyLHlQ85jwMHfu3A0lJYdvOXeOYzGv0dijSgTZPL355turMjN9Gwwv234IMLBTFG9QSQPAzp0XYMf285BgOKicnAGfubMEJlf5ROZU+oH3F1itZJDVKylA6Z2Y70fpONkagFd2dsHQUBzycuzw0KpS8I936iRJTE9DE56z2DB09DEe9nq9P8Ekc1kgyAZm48aNTtS0JzBeUKx52ft7wU+QaktrHm9/fKUTtvzpPBQVu2HVfaUwdWqGam2rLAelM5HsKGkpz2qXz643e+AP27vAit0++cgUyM2yGZcW7QGYs8VgWskSeeONN6YsXbq0F1SK01R5XLx40Yb++n0ul0trk4heaH9S8RNoRS/09CXgsSdbYOnSAlj7tQooLHQpEqMqJ0mOZg4kc6q2KJySFO6UnKmYlA4LZmXBX/YNwf4PArBscY74Xm4Q5xutZbgFIH+FhgVcEs68vLwUglHf3d0tA2GwGggmNTQ0ZPX5fI/q30HXr4XNkjxmTmZk3f+chn+5qwgeWj0J0t1W7eyDCgTJWtAqUwucUdeonTHe95A6FWY8b5wDNj4xBZK4BF/bN6iTbU7IDx0BGD
1015iYAP3Rw88/PDDuaCqZQAC+6abmpruNSwJAkDfTqUjUIk65j91cy6s+kIRqJwH/nb6TBief/Ec9PTGVebVBCTDKlXyr+0ZgOe3dEE4klKV58DtomHd2lL+DgYvWqx/1qjiiOK88cbFy9X8G3onzlNra+tbNpttoebN2TrUWDtV9h/EWaXFKIDKdxDzPX1x+Oq/HYHQSAo8KCXP/no+jC9wKUqQvzhBMfJpMOiJbTu64Re/OccPdWaVG372vcmmylTjiMkOGQhtXoduf+ZsDTvxeHK/0znpFlR4MVJbLxHU5s2bSw0gyNJAgWGfIOMpDl611l/8XRtwCQZy3WhxYyn485/aFSYNRGunRSzy5790gxdDLjnpHLScCsOHJ4IidyZjUe9aVW3A2V8ZenM4bAufffYH2Vu2rKTF3rWjKS0tvdFQK9gAan2g7Ugvkgrt3dMDpeM4BIKCQjQge9/pEq0Aq8yc7GKrFKQwpdDYFIBkOAb5PgrGoxEoyuSgfv+ADgRKNRaVnlEr5FCL4PvoaMWKO760fn2mAQiyLKxoY42bqos7lAFyasY5LQ4yYyycPReGCZkUb+IseFlxTHY2Bb09UWU5mG60QLQAFJw4GQQfRiQtmLXiH7edgvPtQVF5qkFTEQfGuSEgXNwNevJ40hd5PK0WDRBoXwEDrzaHwzHNUCNo1LyGMcjSQfGMJGNJsGMXPBCijrQjGtGRhFYPGEBRuGASKWwNtTfN8UASQKkUo5RTS4E0CMpkgOQ2aOQBd9ILm5ouWokXrWhNPIH67ne/m42HLUWa0oEjIO8NNIyrt8Sql2KeFivIVlPU9PFIQlRw3Cg7SuWKxwSmaREMCp8l4pJDqDKt+v7VOEjZocOgJ7SM3k2bfjLp8ccfp2RnfeXKlegMLZ1uKB1pVRqVOgbRWkgviCgTpmQXmoU0p1VUBxSW4KShQzo+F/w5cZRmIIgMZWfZxR440cGk+I2XhlGpZdldB914xXy0S1giVo+GvenTp1WvWPGpZlkimprAkp2dbQQi1qVDXOpInFVDjFHQ6ISJFCaTyIEkAGm4g/QXuXigFMZV0iGH6ASmcrIcIgzA717JlZnp0AEGyuRoiNLpLhEMHdE0k4nReFoGIhI5jNJryTSUJG613LBeuYkZw5YYJSLNAqVlPhw8BSlxNmdely0wy4hWg+HEjZZWEgR/AmDmjAxBsjCfIu1gueqpPhF8ME6QYVw6XiJGIDweb3Fzc0QBIpVKUTRNZRhKJoOg1ei6NcmypuubXJ++3Y8uMPBgsJhftqxIcYDkeqxJ20La5bTATTfl8ZJFdKQvwwHz52QbhmhgmBslzRhNKFLG/PlzFB3R2Zmk8ZDGa9qJrBdUIiihTqnzrOo9BxXlHvjXe0vh6NEhmD8/B0XdroCoFls5z+n8Cw6W4yYuip7pwGAc7v6MX7scOW50pkdL68hqtXnb2t5VgMjLI3/NIneqEXPqXaK+dUpbRQRtwfU5/GVwxDQOkcgQqwJJ1fzn7iwWJEenQ5Th6XSG3AdcEgRpAN3dSoQKlwXNpVJkHZiQLBEqJjk116qokzrLxwVEACScKJ1rLEuITkokZjUMg6oup5MmCrQOmQ5oTV2FkOcAIixLBEdQwSN34yIiYS+VuCuMqLU0C4o0ccrMkbKMVEd8R+lBoM0lRb0kNboHVHfQ5pWGtWOWKK0Q9JRIJIP5+X5l0+X3W7hQKNxpKEkiPKN2qhZlM/FUv5PMJKiiTiTNgJkPYUirmQeTsXBgMk7VhBCyaX0IQniK31lZOcCqlKWVi0SImOiISIRmPSuckm32ul+f5/u5bqoHZkx241bZq1pCel1C8rpjBU5pzyD+rFo6VO9ZYcbDEQYOHA1Aa3sM9mGkaun8TPjy7XnG8lJ7nkrQU29v33mM9CpR7KoqF3vw4PvHq6t1hTNmm6wtgcFTbVH43xMhuOuBx+Ddg2/Bb7cd5N9UTnRB2QQXTCxOg9ISFxRiNCkn265Eozh9W6oBy+te0SXRKAPBcArOtEehZyDB34+2hKEbw4POdC9MX3ALFNdwsOXt7QIQZqSLR0i0deurzfX1nZwMRHNzLvutbz3Zvnr1F0K431BkiCwN4pZqtrHijIywPBvVC5bAzZ9dhZsiGs4cex+6zjbDBbx2N1+AF7cfh2goCCR6Pn6cEy8bbsIoGJdj49vwpdO880XSfRipZsSZvIjmMhRmIYimsxeZJ5hk5RWDv2w6ZOUXwdJFVVA6fS5kjCtAP4WFXS88rQxNLQ0SeY3SEI8nun7zm1cHa2v9jGqvUc9t3VqRCodHDvl83iWaGnkYAO3cDFpNDFAzJZ1/MtjbBbn5QmSvYsb1MOW6BbjrtJBNDVhwyxgPh6DzbBPEIiEY6DkPsZEgxMIB9A+CEEBQgqKEsdkcvwt2pvugHD3IrLwiTHv4e1auH+wuN64KFp0rhhzwkq/weBAIDV68AGV+J4xqMnNvMgEi1jQywiZJWgZi61ayeNnE4ODwewYgxi0WgVDZfPwzPtsGNagXXtv8NEyeeT3ZwcpV1MvT5fUhODcgMBRKjYWXHAIQufNg4UUAIExJF4tuOINMM+SOClW460yqGBkc6r0Ah97cBo98qQhMiViLLOPSaGvrfhPjj4ndu08wGg/K7x+X/PGPN/7RUIPoCatX1PKg0eKfWpQFrR8ego11D8D5M03KCFUDFYpyGsVIGBea4Xj3m+UEaZD1hLzTFcoTkCUrLAEeHQnxff/8P76Ak2KHmvJ0c2nIMtcP77zz7oGSEndSNWKBcBdmb2vjsnt6Dr+K0Zs5mlrnNgixPyloC4pp+tx3TkDvYIIPoqS7vVBcXgVF5dNgYvl0yC2cwC+bvMISeanQFJECis+TtCRIPCBEGnip4PhlQKQgFBiCMF5tp49D34U2aDvVBO2njsN5vPNzg3++/Ok8uO+2URTlP72GUqE96AmFRt4fP37OZyKRE/2YTWoOD5ub705lZLwSPXu2Y9uMGVO0QBThWU/HS8LGRdpSiLP26Co/fPPH5/h8BNf9qcaDcO7Ye7BPtUkkIOUWFPMXqZZbWMwHa2h5OVGidACMhIchHByGi10dEA4FYATT5DtWC83JKyORAmkAkI/ScBc55DGjguUGEAghj3/KybHG5s1byW5FvWDYxPv9fudtt91T9swz/71fYz0IESBO/Ugat+b+2K/a4f3GAORhjXQbaCJTxGIwyEgKTYLAPIhpSeSF5aCsOooPyxG2yZ1s4a20KDGcsmsfwvDnRZwXohuWzjNGEHhrt2CLAQhiLfLy5iwKBPrw2K87SrrV77I4chz20ku7LnZ0dL1gaLgYpcJdqdIVANJR2yP3+qG8wA5pNkrWDWKTPFo27MmFrkSajcML+KCsl1xOclF82ucU82lYxi6Us1lIXdXC55Q5IOW/uny8OQiEJtxjKg3Hjp38ZSrFRhAE6WMzg0QQorOy5rmXL58/adOmp/YapIKExhtWK36FajM1MJyAJ37RCtEYi7PNydJAZt6Bolw8hHoLq3kSGMEKceBA79qRVCLvGJWEuBWDyMhgEANRg3ge0o1xmG4vJetnFjhZIqZX+OBrn58ApkQAILpBR0QacnNrbrTbmd7+/pYREF1ds0NgrrCwGg4d2p+6884V9LhxmdoPSR1kS42j7N+veiisVRJImYoxiCPHhnnRtzMUVKDwzW6nYNFpgLIBCopxf1sQpSALgfGhNCGv4MHqbmJmSZqE43CexuF8FQ4DX39GBz7DISdRqgJpAmAVE9ywZmUx2Ky0OQhznjPdWxw92vTk889vOxQIpLDFwZSaAzNCgCpdPp8tt6Pj4Mteb7rR/rSgrmh/SduKeCeS8dPfnoVETwKWoUXNxkM1En0koVgHSokdp9OOdxve5c/sKYqXUQafkdGRL79QcCCBD+P4LoHPGwooOIKuwsIFOXD3rfkwKhEQTExmIpHo8npn3+DxJPpQGqSPPyWGTYmrqsqD4WE7xilSx2+4Ye4daOocmhI5C4VgaLBF9VBAgkjGzCleCGB87XU6BhGcxfGIvwclxC4CQi6bqDh5hUlqE2BUp+j8UsBsBy6NN8vRgk+wwLJbxsPtN45iJglNewI94cWGx+iFhtat+8XnDx063jE8HIuopUEZuRkSqLoLCmanxWLRnH37/vzQ1KkVD5sWPP49gAvb5cFrPBrMnmobgV17euF0exgqBimoHOBgUgB1RIwDstsgjBMACBj8r1NEiTiTQcE59OFa0O0OZFlg8bwcqJ2b
101w4N8SRAKl5u++vDDlh8tXnzPL+325EBvb2MERt/6mZItM3OSKxJx5bS2vlFXXJz/RdNSp9HZOqM6aNVHoTDb2ROD+vf7eUAGAwlIS6FfMcJ7D+CLCwAG0HoMOzi8hGplxW6orvDC3JlZ4HLQ5m3zo0RdMPPno3qQLS1nN8ybt+IpdJEHA4F3iZZP6ctcDgiK78YzC+dmJOvkyfqnCgryzL/7JVJBwDA5O9ATAWJwOAmdvVGIkpMrVewi22eHgrw0vNtwVyr6exw3emNZ6PdN+6GpmSTU3z9U7/cvuN9uTx8MhRpIvMX0y/3LAcGX8fvnO4eGAr7bbru5+Pnn17+Qnp5WaVqSgHAGpePCq/CJE5GC0gcFX2EUikZjLatWffveHTuOtGVm0sHOzvf4byHMyl7Rr/xuvXU+d/RomGlrOx9vaTmxu7b2+lKXK22i6eByFwuzRD7bSYXgE6FCDAvMembUpUCoq6t3x+rVj67dvfvohUDAG7z11j3x5uaP9gmyRJa8vGonw3h8wWDQ29j4yjcrKyfdf8ka5ASaSEfXdlWPJmvc7JmeiLs8AVVUyT2G80s94YT9fvr0pf/FMLZANMqhN9JIJIG5VJ2xAEEIJajamZPj8cXjIc/evS+vnj694gGD96knIhm9uxGYw8KXbhqTOwoRZr2ThTgjL2WzL1uFmMimptYNixbduYlh0kMYgw1eCQiExgoEIUt+/ixHKkV7g8ER99q195XV1X3jOYfDXnDFLRBgguJXLPxRisrs2rwC82lX3hyh4eFgw/r1Gx975pnfnmZZa9DjsYW7uxuIX3ZZED4K0eTXdR7P5Gyns2aC2z1l6oEDR76PyqmLu8aEZ7bBDz9s/pHbXVNFxuLxzM0mY1u5cuU1+5UzRX6Mihs0b05OTYHXO7M8I6Nmxv79h39wLQAhAJw4cXrDZz/74AKv97qy9PQ54wHmeUlwCa7it6BXszR09WtxqYTs4TC4rFZw4Tp1MEzM+de/vnDHtGmTl/t8nlnwMVIgEGxobj61ff365956/fX3+miajUajqUh+floMlwLZVpOlwI213Y8KhEQ0zoS1rw/ssViaE88TnTYbje55yrp27RdLli+/eW5FRWmt2+2qdDod+WNpmChADCg3XLjQe6Su7mfb3377wIDFkha3WKzxZDIVc7myo70k3g9j/4mjmj4uIKS2iEjSlZULneFw0j40xNgx/mh3u22OWCxisdnsttra2d677769sqhofGF2dlYhAuOx24kDQnGxWDyM56/BgYHB7nA4GnzrrYMnNm16uSuZTCRp2pqiaWcSj/HjiUQqjoo6XlWVSjY3T2XMfn9xNYP/uIn/DwHCT5RrrTk5SVt/P2tLT0/ZHQ7ayrIYeuEslliMoR38V0AszXFWjOEk+dlMJGjW4aC4eNzKoIvNxuPRpNttZzCfsNsHk/39JJJBIpYN/B4NPib6JICQiYDR1NREbd16FkHxEF1CJ5NOSyo1YmEY8vEhQ7lwNzUyEiaAUB5PJktRFi6MB0IWC5OyWtMZmy3GdHcHyPcyyHQDf4QMH2EJ/C0Q7rb5ACcxa+QfZljJD+vJD2SEf4VALpImF3/wZBFNoBQv/0Tp/wB4VebDeUtu1AAAAABJRU5ErkJggg=="},rocket:{aspectRatio:1.046,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEEAAABECAYAAADeOlj2AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABf2SURBVHgB7VsJeFTluX7PnFmTzEz2ENZookLYCYggF4N1gSs8tloorqVFWqsWNyxorzZcWmpdwF1xt9figrQVxWrRCopFLAgkmBBAzB6ykNm3M3Pm3Pc/ExWYJITFFvv05zmcyTlnzvn/9/++9/u+9z8D/Kf9p4km49+rSZqmSWyG9evXG0pLS+WsrCy5b99m+YwzSg01NTVdfwn/Hk2MQy4uLjYEg0HD+++/P9LpzBhlNhsHmUymgaqqemKxWK3f798xefLk9Xv3jo4Bq+L8joZveysrKzNwZwQKrE1NTReGQpEX4/G4W+uhEZDaTZs2DSkpKTHhW2wEouMGMYjVq1fnc3aXHmngXbX6+vppdBcjvmWN/i4AKDGVl5cPptk/eiyDP9giVq9+O5/3NeBb0nSff/fdd/MCgcBvjmfwBze3270QKDWe7OYgJbZiY1PTu1Py8vKeNBgMA4/0JV9MQ4U7ipYIoDAA2k0GnJUuIdN86HVms3lUcXGr4WQGQZ/9tWvXZk+Z8p07bTbLdT1d7I3G8XFLGKtqAqgNA30dNuSkWGCSJfgjKva5NdxwuunQB0jyQJfLdtJagvB94549L5eceuqpr/Q0+z4O/pldbrywxwOr2Yx+HPwZWTY4bWbEVMATUuHl1qIlBwJNi0vRaK18spGCJMJeUVGR2et9/+bCwsK3ewKg3e3Bls+bsbs9iNy0FAzOtqMwMxXZKWZEmAm4gio6Aqq+94XVLu6gIT09XTrZLEF6/vnnzZWVu+7vyfx9wSCa2g+ABIkChxl35phR7gK2R02IyiZ4InF0cODecFwfvI/7fjmmpPuoatxHctROGhDKymAoLl6bO2PGufdbrZbLu7ompqpo5uA7vF6avgUpFgssdAGxTR5gQl9axGM1MYRlM9xi9iMJELyhOEZmWZPu19bWtjk3N/fkAGHmzJny8OGzc7/73anv0PyHd3VNpK0N7ucegvTh39AnFoJTsiJ00RXA1VcTEBPMJhNOz0nFLG8r7ttnQwBm+EJfW8P43GRLaGxsrSAxxvGvbjNnQi4v3zJYJC/dxfMDFRVaa+lI7e4hGdrEvkZtTI6sXV6Qpn0xJFNTbpyvxWKqFopENJfPpzW1tWuvbirXJrzSrBW80K5lrWjR5q1LTivC4UhjZua4AeyC+V9SRWqdlR4/ykuWrD59xIjR73RHgA2t7Yj88ib8X81OvKf5oRli0OQ49gUVtDICTN38D6glExDO74tQOIJQRIHDLEF178d77XYEaAX3TnaSOw4dqsvleXf58kf/NHHi8NA34Q7Sl1tpKaT160v5cb04HqfZS/v27TMQAP5ZIDc1/b2UCdCKrgBg1Ye6ljYE1v8NwU824iN7GFbE9eI/ztrPbpXwqTuAeEoKlG2fIjR6tA4ALQKcZYx2xDDWUI9aaz7O6W9O6uTWrRWrcnLsUdYP8RMGgphdsR86dKhpyZJlWRdeOOlKDjY9GlU9ihKujUQiHoslxWk0ShlWq3W4xWKZ3t3sx9Q4dtU1QIkqSK3dh1opzsJBuC730pcoa8gzcsbp84qrg1YQRiAYhs8XRJB7VVEx1daKgpKipPtHIkrT5Zff+pHTaY8wJJ8wEKRZs2YZWKKad+/efZ/NZjssvNl7fSMdgNpaAhDVWV8m4WmqxtmXeExDlJ95iW4NVzEKRJkQ+ItOg4dW4ScA/kAIoSCtQYmgrz0FM4elJz2jsnLPwzS0YEEBYkJnORH1tF7abtlSftro0UNf7Y7de9NECNxVW4cwzdpmFSGQIJRvR/TqH+ChfCv2qBwcrUNRJcwJSZgVMSCQmYfGVWvh8wYR6AQgFAojHIvikhmlyM50HvIMYQV5eRMnezx1LQySAR46vhBJF8CsWZJh0aKK00eNKn67N8VNdy3AoufFHfsxNjWqA2CjFYhcwDxhElonn4NbN2zAF7KGIDWU/kyVs8mrrjQH2hbfC/cBHwI+ukMohHBIQYRWVFTUPwkA0T7/vO6FWCziLy7OUSor23Rl6Xiig1RZWSkvXbp23JAhRa8fMwAfcHAL5uOevLPRbEjDaVYVmUx7BQgi9ost47+n09fd0Kp3wWmQIctGhEeW4MCd98HlyKEVJFwh6A/TCiKwWM248LwzYbEcSojCCoYMmTbfao26amsrWWMm5LVjsgRBglOmLJYXLZpxWmHhoLdJgM4ur3vuCXExpOIvPYTPrKtjVeMBNn5AAD5AjRLES9eUIZTmRB8OfnM4A5dlKV8BYDYZYbJloN9vlyFr8d3w7N7DUtmADoWVo4uDd/k5+JA++IgShUJnLy0dA4cjNak/O3fufkRVoz6nU4ky9/oqSToWEESMZ4JTXsRI0CUAWlM91BuupqmUJ0DgP4Ngsrh4LimE5Ca2es7qHy+7BfUXzUEeY77TYoTTYUW1Esa4FOggmIyyzhVhReFsh+A1O+Dye+HpCOgWEPAneEAAECUPlJw5BMOHFyZ1uqWl/fXzzrvqpdRUBPbu3Rs9+NxRg8BYb5g9e3YOAegywREAKD+5BFJTHQw2GYZOPVcjCBIJTcefnxtjErYPHIaq788nACY4rUakmo0CYnyuWKC0KbhwoMxoQADCCry+AFwdPrjbvXB3+OFjNAj4OiMBc4NoNIa0jFRMPmd0U
101p8VRWl66qmXH1JVs2/IkJRISwsOSZWPKjqIMldUedXV1U9Tlbni8PPx/Q0IX38p0Fynk42BVmAQdhBPxDSGe33zKRp2wIHVd6+BZeApyLYZmeXR1yWNM6oipMTQHqBZ5xgxIYfeQwA62rxwCQBIgj49HBIAwQEEKEoidGSk4cc/m4H0jORwzMj1P1OnXv08JXhXc/PWEA6T2o+GGJn9+Yw1NZt+lJqaekcSAC0NCNwyEzjQCMnEgVPSMoi7U9mRjIbEnhtDPWo8Kt6buwShMZOQKSzAKFyEgZvM7qdv+zi7QQ5uR0sIfeQoNK+PAHi4+XQe8LkZDr2CCCNQwlF+VcXc6y9GTm5yTlBb2/iHiRMve0SSzK62tgICUJlUMPXaHWgF0owZM4rS0tJ+efg5LeCD5/bLYPA0QbYZ9NCpHxd2QCsQf0tC09AMaO2IoOaM8Wi+YBYyCZZFi0Gl/BWMRGkBUe5jzPdjLINVJj4K7tgTxvm0hqHwwkse8BMAPwEIs3ZQ+B2Vlj1rzvnI75eV1GcRDRYuvPdBmy3Fu39/kACs6kpZ6bUlSA0NDea77rprGd3g7MNP+p68E7GqzTCYOWijmHkkrEF85hOEBQhLiHEOmhoUvLX0VVgcdqRwCIgptAAR48McdBjeQAReWkLp2yvxmZxOV4jg091tLImB7IgPfk8QIS8TIqbGMVrPBRefhUnnjkrqsOCBpUsfnvP882/tdbn2MxxVxdDNilNvLUEoPkVMhy87/ERkwx8R/fufoLGg0ejT+tKAlFDtNFqBNIjh0ZIGyebgzKSgbkoh4rl9kBLnLEbFzCu6Xwdp1gG6Q4CWcPHa36Nw5xY8ljMeCvlA48xvrmvCfhLfCCurSPKBUJWmzTwb508f32WHn3rq1ZsfeeSVXcGg3VdWNkMRNUK3g0MvABCaH0Pic0kgtDYAv+EhfzNUkluMM6/QTKW4cAQNcv8hMP/iZUgpjq++snRHhx7OZDWqs75IcUP64IVFRHHdymU4pXobrr9oIUNoOuJ0jThJMt7eBrAstsgyRvcx4vLZ4zH1kglddnj79qp7S0vnPO7xqB2sW5gar4/1NMBeWQIXPGSj0ZRcE7z5DANwLcBQqEcDC5ObdCtEJFSNOTDffCgA/2gL6cQnx0h8oUSOH9RJMALJ48avXr4Pp1dtxa8mXI1azYa4PwiN6pDwBY3mLzFyCAF17JVTugWgurrmidLSWSvi8RQv+ARN26ImSvfuW68sATgjLRKp2GQ2m4YmnQ3wWfWVwL7NpOJPmCdsAfIHQrryBcDR96vLvNQFH9sTgIfJTTgoBh9i6ZvI9OztTbjzzYdwSs0erMwZiV+XXAmN+mCcOqFETlADfvpdVA+zd1w7CXOvvbDLju7ZU/PE2LHfW+b1hjuKimJ+JkXMK4+88twrEDIzi+y7dm1enpOT+eMjXh32Jfbi0WE/3GT5p//wCtasWYMR8xhY0vNpWUEdhCCrPkdHE+5/bzn6tLWgrTmAS8+7HU2yU1RUkMgFMbqJxIIpNRbGYvtnuGTjX7p8bHX1vifGjbtouabZXH6/jzOjZ4W90g975Q4dHT712WdfemHBgmtnyrLcvTiw4z2G4TeA/TvoG0HmvRKqGqNY/b4VI0aORHbLLtSqMryK7mJ66fvkx8uRF2knKcbwer8xaNCskA64aQURkh+JlolFYfQA7vD+FUPOvajLx9bWNqw8++xZDyYAcHEWanoNQK9BGDEij+t2Fq1bAHZ9DKy5C5qlHVI/XjKSiX+aXeeKCaz/F57WFxXNg+BqbYS673N4B54NP6PBnIZ3kK+5SKbM+1uDePXMkYhRJQKtRyOxaCyvZ4QrcU3gYzhImvmX/CDp0U1NLW8MH/6dJSkp1g6bLdW/YMGcHiNBV+2I7iBS5Yce+ktaa+tHOwnCgKQL1jwAVKyANjADXAMjEbJ8tfC4RUpATA1AbE+90QfrtyjwuFxw0xocRSV4q2UFos1R+HZ48LsBk/AH8oFIKeNRCQURF34c3ILh0WbkUyvof8DPIix5bE8//cqlN95476bc3AOumpoawQFHLaH3ghNKjW1tr8zLzs59LOnUm8uBbY8CA5muprN0TTND44qQsADJxMEbBQBxUUQwBAK33Qd8WuGBM+bBM4MDyGU97PrYgxW5o/F43hgCINH3VVwa2InpkV0wUUcbQLfow+ggDRlK+erTQx4vEiKnc/zZDLXtzCm7zQiP1HpcixS6QX5+tTkzM3tR0skDzBG2PcjBd771wvAlNolZn8RUmIkAQYglgGD+wBIWv1tABXigD0+NDSCb7tC6xYdHsorxWO4IpHE16ZYfTcXqi/vgQqUadvZsmKogjwKrxkwUhacmdSESiTYYjfFgSYktcqwAiNYjJ0jSLENj47aLu1SNnpvNmWfnrATBwixBdFSs74qFbo28RB0Axs5jur3FYTeqeOCsMCLbYmj6ux8P+6N48EA5fjJ9Ou4puw0OCqO1N72KfALmZESQ4rIuskpUAbWszKQuKEq0Xpa16NatW48ZANF6tIRp0/zGjAzHjKQTn6zif4xCo24ExiyEPkqCoFl5uzT+KUQdURkaD+IF5vnae6w0d0XQsD6IbcU2PCh8hJnjop//UAdAtLxgE+w24miVEWclqhFgzWRI3OuwJrP29nj2R2mxx7WU1q0lCFfIyRlsZrZVkHRyfxUw9y3gC4bEivsQz2RtkEaLsLOjVlqBwZCA1yAEBE0UEYxabrR/EETj+yEMuLkPLp2Vg2X/a4EnayYKChKP0JiGxzsaElYl6g6LQRdjROWlGbp6v0DSsrMzpSNlhMcMwpQpU+Sqqo1XcqEkOT+dzJzp44e4orkGcYdTnyWxPCbpHdUSIEidrwkK12Ap3fx0Cxq3UwW+tx/SJzt0ee2mafnA6EQ5Em9vQKhsNjTFr2sRiPOeNHKJnGKgK8gLkiQMLq3HfO3tlk7N7tjfSewOBKm62mfOyMi4PemMyAj/dD1ZqUrnAgN7Go+L3nauj4kuCQ1RHBN7guHe4kf9HhVDH+iL1MG2xDUKZ5dL5pKV/uNpRmjZlYi7GwGTKDwSOqQkXIx7+aaFkPon01JHh3tnfr5Ja2rSFzdxrK0bTphp2LhxdWmXecFff8NOV9NExWwZOsVTMShuQc5ekMcC7FBE07UCkfOnF8sY82geUgfSZcLQB6n5aDkufpcgaC/OYTCh8McMU6yECA7QSKpxahDGny2A8aqfJnVDCCajRn1vlcVyIH687tAlCKWl/zDl5WVflXSiYh3ZiKZ8zm/ZU6c+oyqB0GL6Bz3DAzdNhMugCJkkQ864iP9GLpkhxGuDvE4A1sLjuZ1iSHsdzKkJAkwAwFuLgDP3FpivWdBVF3H33St+6HTKkYKCmh7L5GMFQX7mmfXnUkecnXRm+PnARfTNuk8Igpe6kCnhAgIEprX6oFnzayECISxBZPBiiYMWgv0EoZ2jowvATStoY9/PYOBJ70e/T2GRxGO0hDj5RViA5WoCwK2rVlFRfc/ddz+xW9PUYGlp2XFFBtEO5wSJTG0aMKDvHT1+a/sfoWZaBDuz8yJEc+AiV45JnWky+yVYTYirYf7t4rQKIYDRQjLocjPdgsLhiIsT97Pns2SuhixWmfkd25w7YZnWdcEqyuVx42auiETM3qFD5aOuE3oDAp599sVCk8mUpCPizYdJhHSBIWORWBbmsagQUaErSRr930BlWOiKgty0FJp1C9PnjoSrJMib1zOLlGpoHtN+/fW9HYwSdZUwWdNhue5xmM4Y3y0AQi8wm22eAQM6Qlu37j1uV0gCQSysFBT0T169aKd6tPI2biyPd9MVosL09SwI0IU0rjBFwnqk4LIRkyWCsN/GaprXD+BstzKSeLgxnZZIiBh2A9PggwZqJbiDxsFyxf1AZv8uO0q9YMWkSd97gDzsyc5O4SrSJ8LZTsir+odwwqpVn8kOh2NE0lU7KWRkpiQuF1MveEBYgOACbgbygSEYS3CAyALbGAJaGUoVVpbjyOyUycHVI3hZ44xkGVJ606H3/68fAT9/pUcAKJgsC4Xibr8/1TdnTukxVYvdtUMsoX9/r2wyyYOSrvJzAIM7DaRuJ4SmrL8uytzAQF83cBEUKRyAwus0tw6UIcIBT7lKjxao3w5k8fwlLLsLu9AG+yWrdl+2BAdcsjwed3oyMgzeQGBTpKxs0wl94+xgS5AikYhMRXli0lVCK50wL/G5tjyRwor8gKRo8HNShs8BfrqGAx1M
101ILREjjCCxDZ5LvAEZ/msazjT67oGoJumqqrv5ZfXXlNS8t3lNluWDkBDwyYRa765V+7EDyDWrdswvMt36Ha+lNi31GjaFU4ttqivFrtzoKbdNkDTVi9OnNv+jqbdXsBt0NfHvqjQtM8+0o7+FXzPlkWL7rkgN7ekMC9vYi5ngGnmP+d3CcbXXnt9dI+9e3ieFp/r0GK/6KNp87ktuSBxvL1e0x6fp2mvcfC7NmnH2mKxmHfbtp33pKWNLrZaSwY6HBNYP0+zfNMAfMUJJSUl0pgxo7p/32jlEuDD30P8aEAWxDeCic68RxLnhL9f+yR620TKu3r124tXrnyj6oYbrhzrcKQ6GhtbGlat+kvlmjUbWu12SzAeNwY6OjaJFWSRiHyjb51+BYLHk2vIzs5I5oOAOwHA24/oJa4UooD6feZSU7gy/xYryd0bgJuoL6Sm9+qBFEbfnD9/8W83bNja7vOFYhs3bmvi+qZEqYxCrjFiNqeErFY5SP8XseaE5AFHal+BEItVSVSQkl+78XMt8xTm+Nc9DZxKIfQURlBXPbDiOxw4J2n+ml4B4HZ7t65b9+Hjc+fe/lEspgXS07NDKSkqBRFVamvzd6aaehkWvfXW/1ZPdAToqR1UfhVY6+s3/aJ//z6Le/xGmIrS1hV0i2HMHqd1e5nf798TDkcb29s7qsvLd38yd+4vP+bgg0IT9PvtNHMXmX4oURQqVSn7sV6AcPD2L2mW+fPLhgly0o6jhcPhppUr11yTkTF8uCA4u33k6Vbr6EGpqcPyMjJKnAJs5qYi1Tz5fpMoQmRu7rC8qqrPl2rH2ASACxfeN83hGMNl/BH9U1PH9bHbS7LF4AsKSsUPDoT7ndQ/yDRkZo53OJ0jTnn33Q9v5Ipx09EAIF6dX7Ro2VSrdVSB3X5mVn5+PvPsIkvil6gn6cx3tsM6VmymUJEqSbIzGFRSli27fVhh4YB+gwefOq6gYMBlXd1AZHZ799auLCt78Pd//vMHTeFwOsMJ19RQecIKnG+6dTE7RZb09DSbokgpLKkt4lVCGro8b97sQdOnn3tmv355g7lEb/f7g02fflr5yWuvra1at25zKy8NqaolUFjoC8yYMUM9EXX+P6tJXR8roe+aueagmFU1JKuqwcQBWsxm1cKQJoQvLsyoqiQZVUUxRYxGNezzqWT8rV9Wd98aAETr1k81XcCdxXS1jWpTjbGmxmJyOGRahc0gfk9otxu0YNCmWq1epX9/k9K5CvStGvzRNv3XqmJxNkF0+s/uv1ZVvuXt/wFwZbstixGMzgAAAABJRU5ErkJggg=="},"thumbs-down":{aspectRatio:1.063,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABECAYAAAAx+DPIAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABTNSURBVHgB7VwLcFzVef7PvXfvvnclGethy7L8ZlRbQBywDZMZt0BtSgZCCE7bwNQDDQ2QyWRom3amTiqnJUPT5jWmw6TMOKGBphhIMamhg8mg2AGbFMfYxE8E8lOyLEta7Xv3Pk7+/5x7V7t7r/zAshPP5GcO97Hn3nP+//yP7//PlQF+T7+ny0acc0YNoEfBS6fdo+JRrb0Wv9M9benSpQGApQE6yvOVWk+PfN45XhQxuMREDK9fv57Jyc5XV6yYrmzYsGH2jBkzZpdKlqJpKqd+qgr86NHBY3Te3t42Ox6PdGia1qmqagfdUxQFDMM4xhjjuVxur2maqR07duz96lfvHmluXmn39vba2M2G3yFi99xzjzp//vzg0NDQqmw2+w1kYDufYrIsaw8K5LEDBw4sJO2Ay7CokxKttqOW2pYtW1pTqfSDyPQ2fhkIBXH09OmRz9LYIM1pykisJNkhQJdOKyptUQzk2K6wY2XlypVae3t7OJ1Of8W27RT/LVAqlXqQ5gFTQ8TY/CAyRCv5MjJ1hFa0VCr9lNSOBhsYGFjd39+/rKWlO3r8+PHbaCX4b5FI8C+99NIMOE8tYGe5zw4ePLhg4cKFm9DxdMMUEi8OYTsFwvuh2+KicbDxqIbiwAJRgMwesAunwc4PYR+O5oUTCrUA06KghFtBiWBLzvN9fyaTeTyR+MOvAewyzjWXSQTA2ZYtr7SsXr36bfS+HTAVlN0LdmoH8NFtwM0RYAoIpmyTQzljQ27IALPIwTQsmDY3BKEEKh8T6wCiM52SoCwUhmmDjX1BbYZA10OgttxYO3vOx2+6qaNtx44TRbqECxQA6+rqCuzevXujruufg4ul3B7gQ88C5N8TSsk8isnFNMaPlqHv3Sxcd10U2PQArrZKsQ+XQsceOoiHuQXMNoFZuLCWBbyMWlMMg7riP9EjRWve+vrrr3ffeuut++AcodHjLHp6gK1evXH+RTOf3wswjIzn9sqFnMwtcUXIQA+roJANhPFalavOmYYthF1ieB3BfgUAMytMgiFfDPupah4AzQlitebQ1tbeuXIlHHjjDW4zNnlk9BHAUvWhh+as9MwTBy4f+Dc85kCJzUVbjIESnydskoVahX0KMtBmB78tBUA6rvgMzt3GKteqrUBQU5379D9kUBwtvC6DUFbbkIxTJ+Y8SMxZOc8QCxfO/8YDD7z4DjI/BGfRgnoBsLY2CCSTjX9e39Ee3gqQ3iEG53lUaxzYHqzlSovFQdXzVW8Df6JJc4cJ4rHAgBkMyqjSYOFcy6gFQTznhhyvbKCvAOEtGTbSFKa6E/M38UBAW7xmzSefWr9+/t19fX1lmMQXeASwbt3904LBwE31HZX0ZtAbmJw8yRNXzyaHZEkbVgLYqpl3nReNy6WAXHuXK+xc5pHFkjxPXhWCA3sK0LkgjMK2hSysQkmMl8+ZyKsNAU2DsmFDMKBCOIRaM/uPIZj0D1Joxre/9dZbn3rkkUdeeP755y2/PvVrpCKk/JOrr7765Zq7pNYfrPV5XDJEYazi3HBpOOEj5qJSLp0XmM65Le8bknnScKvEwSpTs2F37yioYQZXzQ4JLSihFEyDg4LmkYghw5g0UOSgZmErGRFoaFsI8UW3QWj+as8MEbO8GQotvhnAXwtqNAC9v9rYOM0rztKH4M87k2aoSFlyep1wWhFsQaGu5LiYXQChw67K04qXmaNFuNLIYDFnweFd4zC3OwjNGAZZRAGGjpELpVOEs+Qgj4zUHs2Ao8Bsg7TwfSju2w/5kT0QWfZ3NdMMBoM37dz5zLzly5cfBB8B1ASldDqphkIhb9zP7fW3IPeeTZxR2MKQpZAAUIUpdNHKc1M0occYv6GgyNUXfg5Xskzqw+H9d9PQ3qFC80xdOE4WUWXYFNEgAFxFoapJ4IFGsAMJPOIYwQACJwYaRo7YjCCEMm+ANbzHM83Zs2cjOl7piwyrNYAZxocK2v8STy8ygWpjYe5S1kmCnJRdQn4Mwbx0Ynhu4zkpoMUqXcl/2EVcRVzi/LiJj1owvSUoX1/J6VwgRJqAvylRIWBmFaQpMUs2Ei52Iz8E5mnP9DF1Vk+fPn1OAcDQkIHpt5rwvuE0+JPj1MRkkVnBdLH2d5ofKYDrgnDiFqo/J9V1bEIhj874hD7yqufxvnxvQQoVw7G4RjBEoEg4VLc/ndcBIikAm+3fv983JtVIJZmcSQKY5elVPlV77XrxWrVwZm7LI/UxHOZdBcFVt4pu5Jh4LhDSoFiCSrSmvKASOWil7bJYdWamQcHGSAhWUfoVChU4Fi9aaBqIRRqvgXpCs56NyZovFKvmQEkk2hvGx4+PeHodvA38yU8QDhkuQ0wmM2QJtOq2KycmBeHwePxQDoZHC/Dx5XHI5aW1mKZ8FhExaBjyFPINpOp0xJuKkx+QUyRgpnX/LSjNK3xnumfPnk9ce+1jOwBqw2FFKpjzs7Vr13odINn/pMT875lVpuFke7Y7rPDojhQqgIhBy6wwDL5fgEP/XwQWZxBGJ0gyNNDbhzAaGClTQma081LJFufxiOYIEIUUboTG/m0Qis5BV9HqmRVGuMeR+T+CCWP0cKC98MLmJXfffcevoF4AvhhgEnJ8kiDOHE9PUNpZbe4AKdvRBgoOiAEOv52C6TMD0NyB4VPDFY6qIgy6MpM+wgFi3GkoExuFIVxCyULQhJghjwK75mEILPi0Z2pPP/10Oy7yAFR5mSofsJQ1NExr8Dxle3H2WcmFuBWfIHN5V9QTEmeVNj5UxhBnQ0ubhjCXvDkmRugXGP2nOJqkUpJE4RBDrYahVg3jUQdGoRDDoJ7QINysQ6wlANaBJ9Hksp6prVp1252o6TV+r+piF582rdEbASzvi85OLmOuQAQbVb+7kHjiuv+DPDQ3B5yVxVtBtdazi3qAKvEAZoZcbUDmEROg3aMHRS40JzSD0JoQao99cqt3Zow1Dg8P19htRQBY52N15lEZn2And6oy50XcrkQK7jqCSR0mAhm062TMyRuQEaayiW6OnxAo0IHYBLS4GhPAS6bNiuznZoioNaqP5mKEazhypDb0VwRQKBTYu+/uH/A8haGFMDphdRuTkIowqhmpzrcdWDzxs4P9Kzd43RHDbzwAQ2NGBWARRqgXFLMdYGWjk7Qy2FLiXKJNt67mjE3Cj8+FeioWixlNO8F9BYBAgauq5l1jwjJlcJIVXjm3y5YQxkT+Xv9GORmB4xXnRTWFCeHZxP1EowbDQ6Z0dHTHsGrf6SZUhAfsPLZxgQnQ4+GxJPGA250iRBDxwPQbPawcOXLiQF+f6W8C6BxsVbX9BYArIhtUtEGe4zEPXtKqvR4XJlqVLkK1g6TzZIsO5SyDd9/Ly2dtKnc5+QP1sZ1GgimhEIrUEHIXUQPwHBAEiZYnaDwd7fmbnimVy+WBu+76wptdXZGa4khNGIzFWpoymVOewJ/+2c3CGwtTc49Ouq+UVdCbffAADWM4QwhHwkTaSxjBDYXcDYd4fepwHnFAHtEc8ohCmN4WQGSGKDGoVcBSBWTiMzqGSh1TYwGUsEI8vft2UK9CFNjgXxs4evTEE0uW3Lw+kzmcAolPJdNVfchwOErqJBYSZlY/zNUWjLdDjgBgQhDEW4l8AvMWO+matk9Mx7OjJqg6E8gVLFdD5JHOok1Y6EBBRRs0WHxNGCKN+LCuSNwELn5ShBBEIoWqTpmkmcNKMpbPUzs3Qujqz0D04z7ZfKk80N195/cyGVYFuH0EwJiG+wocjQtqBMAi88DMnHIY544WyKONAMTI4ookVM/AUgg4nsEktkUiIdiYDNl2lZng6amTJVi0JAFNaL4KokCmYwsyufdEO6cKVopZQLxUytqUOQI6Ro7CMFI2lI78BEqhGAQX/0XNNHC7JG0YZnH+/Lnlvr5Ddv0UK/00rWyOj2d31vOhYYJBaE22KodIlRycR3n8LPGReAxQ1ZNXrhWdSmjKhE9E7cghE4kol4VQ8peq86NgPizjvxLHhvEfE1bOKAw6hZcgAqEWFWKzMCwOvu6ZAmr0jEIhX2pvL1h+azTBqNZhjYwM76/vFJq9Gp2erNyQEyQhmAUUBoZaE4VQGsN72XMIgUr7ESfl5dIxqpjgSEbRnhmtrF07M9QwWnkZ74PIdBhsFYVAJXJkHNUEhBKLCikKL0xWN+wZHjd3EODpFhZF7LMJgCeTJ4zvfveHr3o66TGIda2VK54n28ctKrVV7Myg1YqIkD2BwjWc1zE2EfKqQx+dUrEoxJ1qD04fV09FWw/GVKiUyeV0oOL9HA8oSuJYIhf1RVEjcDyjW5REB6skvPEf7Trd1UUl/x7utzYVwoxJP3q00Dg09OuXo9HIDZ4XlbIo+JhnAHP0A8gdfBES6s+pJIhx+BzfKdjOsOSLS0zUCD/sy0MjXiaacFJRzAOS2NBUyBFysdpBsVHiqJAss2E5WYAhUVnFwxnkb+Ff467IrTXDZbP5t2fN+oPVqdSRNNQ5wRoTWLNmjZnLseL27b/c4DdvP+aJtKZ5kLzxKwCzH
101pTOzjjLxmyl0OGMHrIp+MDcxWHIIbNjOVv6C1uWuShsUFGV2RlQLCyI2GlxpGsCRSLPzjnMd9zrYZ6ov//o/6RSWjUer5BPAG8Ph8MNV73//tbHZs5svQ8ulM6gEzr2HRkCA05lqCrkVUpY1bBVXMsUl+dKMNSfgpbOuNAEULUqtMkcLCBxhQinGKKhCVHftBW+GIBC4JNP/mjNt77V86sTJ7ybpR4B0McFu3ePxIvFQlNfX29Pe/vMe+FCaeC/sOG+oM4dVFhFgmFWJQCYaFQ1HjoDMO8vUZvuQHAwQ257UUZaHpJ9VKz5qY4m0tGnBlhN+/YdfnzZsnu/l8vlRhHwl+t/99EAutcZbG5uSRYKxeTWrT/47KJF8+5saEgsdTtYlpXBuCry5FAo2AaTCeEkNt12hCBXkFcYdjdNmLO9hccMYvtZfwUw589gKujYscFnurtX/aOi6CNjY7tovpYPs76E1tkebGnpQE0oxywrH+KYKn3xi59rf+KJjQO0tBhbEV+X2LZtm+792Me6/sb3LWM7gffjRinPSnMgm3eZrZiBMrG/N4a2ffMvYCro0KEPv3/99Z/+NufKWDabSU+2M8TO8g6lvX1FMJstBDVNDedyhhqkfSmMY4yVeLFoWqGQppqmEd61a/OXFyzo/ILvWxBC8wN/j44RS+vkh9ztwuqs2NWGMYwyt2yHi6FUKr1r69btTz78cM8vikUdmecZgB0eCOwSO8f78Pel6IVGkHHCuiXHvVOcoyUNqbFYJqwoWuKdd158FIXwkO9bEDHZh78OMP6edI4qn1iLSv0QWxoFsGITAqY2OF8ic8xmc4fHxtKHd+7c87PPf/4fdmI1Oadp8Vw8nswNDoZL9ZXgOgbPi5jPtdBl0pLx8XI0GDSb3nrrpS9PKgQk+9A/AR/dKfMD8YYqh0gtiz5g7kOgzPnTmufQll/p7d3xsq5rCNYS8UQiHt28+bV3VDVkb9jwzABjlsUQGBgGbqwrgaKuW4VUKos7KX2V4vz5MvZRCLWiU29tnRXP50eSmzb9xydvuWX517H8FPf0RE2wdq3FKWUx8eATyM8NhQVEeQ0rQb3uazWPYbXqUHPzDXcpio0MEdKyWblcMEOhMEeGLTJH+pAUbb3U1pY0Bwd3lR3G7fOY/EWT3dOzthwKqRnOw6k1a770v+vWfXNNsVga9PSkr0laPwXc3SrjTnnNrWjhHpk9uM3zGAKTRZZVyGJWN5ZOGyPptHWmWIyNKkpwdHT02Gg+Hxrr6CiNo+POI/MONDy/z2anQgNcUjo7O/XR0bYIrk5i1aoVM5599l9/EI1GF9b0Qi0w3vyMk+ZKbygKJC7QGR2HwM0/QRBU6weee+6nS9ete3RfX1+fa8/1yI7DR6Cp0ACXbNx0KKfT49lwWB177bU3j91336MPkJOq6UXARW92Vp5XvhGkooqrBTx92PPyG27o7mpvb3e3WqvqZZ46+wXRVAqAsi2c1H4DQUcO1Tb96qs/P2kYxklPx9g8+b0fVXeqBUH3ME/mpYznEcbUpt7e01M6X6IpfyE4oLa1NVPUNDOXyeQPeEeNOvuFtFPMRKnL3XcQH8DlvO4jEgl1dHbmrwgBCKLMUtOssqoqHmfkbpZypyDK6fMXrkoNOMuUSqXSlSMAMgdNm4nhifmU2h21d1bf5ho2jAAoCKEV3OubsajBMLR+ZFufjC6ZAEC49ENY0tM8eIDzCcdn28S4Lo7CEWL+rzQs9LwMq9VY2Gxyd1OmjKbqu3o/4vTnLZqGVcw6snKnRL2DamLC69ua+NxFfDCBtcf6EEjU3z+wPxCI+hY1LoYupQAQoCZ9NUxGALJ3WfPjuIPC6SNolIqiTwe1cYHnmRdffGlfKDR8XuDmQuhSmgDV45mfxlacoEXf+eHKGyVEhybYRQNr+vd7+uOm5sGNG/97xMEBU0qXUgB8bCxgY83geP0P9IcOpAUyDKIATNQAFERw3l3Ybve86NCh/h9SROnt7b1ynCBHV97ScsgeHR0/WP9bYMaNYkPXpj98MHGX2ShDcM4dEF36Jc97qKa3fPldm0KhhjL9RQxMMV0yH0AOEFXWPn584Ndz5nTU/BZovhYaVn0fCh/+H+4QRSFy9T1YAvevOGNN798x/BWGhkyD3glXEtFfmEUi181Ip7O/5B+Bjh4d+FEyuWRuU9OyhPzLtSuMaNLIQOOWLb338QukgYGhzfH4NQtbWz8xnQQJVyixtralkaamxbP27j38L+fL/JEjJ56Jx7sXRaPXt2LFiTbTLmm0uqQk/8hySSOp8o9//OoDWGofmIzxVGr8neeee+V+WvlodFkLCQ8uMfNTCisnGwNVWD99Wo8yFmmwrHLkqaf+edm113Zdn0jEZpbLRgYruSd7er7z8vbtu0byeZ4PBNRsJqPnqJrL+dn/6OmiJweXh4QQzpyJhUslHtX1QLBYNDRdl1kPYxjky9zAvKGk63ZhbGy8eD4FzSmZGFw+wrFWqm1tGb1QiOu42aJybiixWAzyedPSNNtMJMLlI0dwk5u/YV1xIe8CSHzxWP0PIzh/9i7+agAuM/0G5ili1qX1t5UAAAAASUVORK5CYII="},"thumbs-up":{aspectRatio:1.063,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABECAYAAAAx+DPIAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABSHSURBVHgB7VwLcFzVef7PfezefWklZEl+BQQSGGQsMMa0vFXStCRAaQsaEpoyZTINTMkwHaAloWlRTcNQZkImSTNTmoG4YEoTOhkTkjF1gYgE6leEjQ0yorIs23pYLySttK/7Ov3/c+5Ku3uv1qJIUGfyjw93d+8595z/P//zO1cA/IZ+Qx8nMc45A+hQ8LMG0KZt2rRJpyvd89rHuyD4+IjmUpqbP6v94hdPtcXj8YvC4XCr4zjTuVzuYF/fwOuXXtrah30cbC42Dr8u1NHRobS0tISGhoauR4aP8QUom81u6+rqugBgk05j4BPQiCUnqfKb9HQ6/Q2+SKK+zc3NYRyuwOlMyAtdtEOHDl/BPyRls/ltjY2NBpzOQpC732hUUvvKQshuI9OB09UUyI7J7gO5Sx3kfPBJzoeeQU6HFxRCKpV6UEaK05Bo96amph7zcZUb4fytGzh/53PY8PrW73N+fGugAFzXndq+fftqL3QuOS2rfeHuqbquX+S7MfqinJmpwBUdeDgCMPFDgMPf8HVljCWvueaaO9rbO5bFDJZVAPl8lcqYkvTdyPQJq+aKhi0KoBrAdTT1yVcBhn7m6445w427dq0NSZ+ytLScAsCsb5TYrLBoFf9FgKtxXAkKIIaacOyHvl6oRVdu2bJlBWrD6SWAine4vHImtYCuoKBAzKMAM+/7hlx33WeubW9vP30EQA6surqamaZ1wnczVE8dMOF1gbl5VBUTWKES0FAQ0z2+IYYRPquvr2/J16vBMpHU1jo32G6Z0ADGLcz8sygLG4VhS61QUQsyQ0HPq8lmu04rEwBScKQFihoSgiM1wMngFYXBsQZSgnnEcMhSqbUq50tbIy2bBhC1tqquqqr+KEBMCEbIDEj9cR/cwnf3VI8teJAloWUTAPFXW5tA/pUq301zdJ4NIQxnPlhYqAmRVb4hqdTs4MCAMIUlVYHlMgF26aWbtKee+vY5kUjkt313CwIogUA8vkwUQHS1b0g2a001NjYvOUawHAIgltSHHnpoxY03/t6zvrv5EdmU8iGF+yZAcp1v2PHjxwf6+ztPaR8flpbaBKj217q6/qX54osvfllRlDN9PWYOgdhthRdZsveBmI/g7msJ37DPf/5rh2AZUKKl1ACGxY8+NvbyLRs3btwVyDzt/PDzIgEMRAAtDIVV/t1PpzN7Gcu7WBUCJkOqt25RTVDFSaH2/xodliquCub37t3bEYvFvrZgryOPAEztAQgXaUBxm04DnP0AwNqbSoaNjk5s379///fWrTtfxzyJDw4OHte0qHvs2ND0/fffPalpGu/t7XVRGM7DDz/MvYx5URJZCgEg0NmsHzhw4OEFmbeRsb5/QPU/iFkgflddKCRDc42+j08BXPoDgMR5sFjCnZ9GwOUgtRMnTmy7+eab3+ru7l40sLpYE5jz2RKs5B68TeNbtLfffvvvFmSe1P69e1GPkXkD16Odwo99CObFwrBcRg24GhHme3Ajdh069M6+o0ePbiaNhEXwxxZxX1jsiy++csbZZ9fXtLZ+7hhywRsbcWNtm/X09Hw9Go0+FDh6ajdA/7fwwyyqvevNxrykJ0gDpgGu3hHoBD8sZTKZR2+99aItO3b0YlwFtxKDC5E4vEBI63fq6ur+hqRcuEFqR010CnJ2RMP/hrX9c1jLInehIk2cY5qVfcc2g6ay5i6EEW+HpaBczn
101xuw4b1X0L/YMIC5qAG/CZUHdWJcPwnsKL7DjJ5VkkHxgxSPWpBDxXMUyN7D/HgGYJkr6PW9v0XFki4YRpiBEYdfkah2JPSlHKYCpojsi/9Ts8gHGEB0jS19c4775zZuXPn3uHh4UAtCNIAwTzZ9YKqXYnGEdU59oRkXA9gvqDu5RFA3GNw8v0pDBIWVK82gMUNiREU+rhlY0i5dSytE4i6nfUnKLAG/3SoqTt27Dh/374bRjs6/KYQoAHt6ptvfn/zqlWrtsKHZv4VZP5bcuf1Sg6Y+b/nGYwdyUMULS+xIgIsEgamEWKE9zQmtEPAZiHM3UL4e1jBPsQB+pf8EYCj26WAalpLn4zaWl9fP/7YY7t39/f3+wRQngmyxsZ9elNT8z9CEFmofrpfyjCNHv7kT9CGd/t3nmJycZIiiiDPCWLeQ4yDxaCvNw0rNQXC5P9cBkzxHDgKgCuoCSyMClJw7AikIIbAOZbSWg77YNSjWye2IUcxgE/9UcnyDCN6U29v/jsgzx15BQF0sG3bfrdJ17WroJzG0aGNYsuR3cXlRBYtfkbGedIl2pFymydmi4VAF4fJ55AKo9q7tgupUQvWrNVgLnJR0ad4Nk7MK4gdMhKEJgQAbk46UowojGdxfuyP+Coc3+4TgKYpZw4MfKBhCKcwXrLAkjjZ1tapNDU1XQvlRDs/vk1mb1GcPJzCH0/iAqh5zMfJ2y8QbQrMk/yJ8SyTn5HsvAuO6QphKKzIIXjAiPzmpRw0ESOB6AJSlxPj78xjI4TCzIz4psea/FOoakEOv1QD+vtxX2PxVl+vmV2l3wV256WzriI/a7Bw3iUclqfyrhSIiwJw81xAAfTATM5G5x9CdryHeA6PUUfVkuousIO8nJ+AFHSWbE6r8Vk5mqYOwmXTI5qEOxZV3n33XVZJACyf71F0PbTBx8DsLliQ3ALzZXYPMG/rJi9JRVwLBWAVDk8lMpKs0mB00oHVVYq0GDQLhj4Bsy3skkWFQJsnQy+gp+gDBKaIgCpHLbImOZjjNujnf8a3RMuyBltaAF544QVeSQAQiazWQyHtQj+TaViQyA4pvS2x86JdtIrKXrw6uNjCrhdTXX0YjuxPYUEYhvpzFIigOpOWi8KGQBKGWoC+QygBpjUu5gpuzgU7y8HOcSFU4/xbIHzhHb4lMqZWfeELdyYPHtw7jUJYWAATEybmPAEQVu4IBBKFKLWM6YIgiHm7wKjEAB3TE1hBIkx6dOrj4I6TRR3vy8KJkzloPNcQVquG0Cg8Zye6uoSdcoyGCjYmcVRMmlZe8yVgVU2By8RNXXPPPX9+9xln/PvXYc77+ATQrmzd+mdn+UY7lXafQh7z775bmKbAPHjMQ5GpFNRfmsLRw2mIrVJg8yUJEfeVGKp7mM1njXPj2Hwq7XjzEJA68H0UON5QMTHa9LgvKaqurrqrocHaMjIitmXOFOaiQFvbGPqAnL96cmehIoV5qf0XMrbCF5KHL/oWbkshTI9YoGOxdGELxlELfQBlf7pGh4eSUeF0mfiNGyHgmCRxA88TDXR3YRSUoUlhRan/GEDXX/umorR9z56f0elSCY9zXzo7AVaubPDn9pU0IIiKi5zCbjl8HgafM/15HzA5loc1a3Q5lvqFy0IKaVjhJJnRWWISuEYNj9S0sEyXyZyon6HIumHyoG9piFCfU1NTEyyAtjbEIpNVfvtHDeBB0MJC55Su5/Q8sxD2W/gODPzIFYOJKQuSCW3uuay4WCqMEx4RhYRZIVcSQgB0sCoEU2CeF61tyi8ARKjPfOONSRYogM7OGeY4/uKImHdxB12Xe4svDnFBxEuujLnzm41jmG8KDhFdgVzemevDXV76HE6prwR5ROx38SSJNNPJizMFRovkxUvD9bKYf2UYRjKZfcEagHgjHD7cPegbFWqQcdsuCMKFykATm2dYqK7iyarg+edjf4HOqA3BwKAl79FGWh5kVhjGZH86RgPB/DRGxUlgmIIzOy+dDPf8TdqB/CwKpf4K38oGBycOY0EUnAp3dVHObPhZ4x7jlLmhlxXnmG4FBWDz46TN48IVL3lBRnjx2bhHdY2oyo4KI0M27hzOYeI1a4mdFPPQhI5YADKPGaGdwyvm/2Ye+1pgZ2wwUxZkRkxIj5oIUv4psKi/aNuzZ/+7WOqX/DYXBtvaEtx1zUC2aPdJzQQjZIqkygrFX+Z3BZRxU6BhbM4fkPlyp5TpYiGoaNrnbU7CWzsnYGjIhGRdCLQwMoPJDiVCySoVZtOOGBJCczFNaSZVUVVuPMrHiFaBtvpKSGz+LGj1AW/lILJ8//1/2zc727tQHgDw5S8/OHD77e0lA1m4Qey+0E4PyhY+Rzhema35SAiBzzlK0ZeSFrMolpfYEYPRY1lIrlbg3A0xyFtShjHbg6foc70GqibTZIXmpQ3A/zAv72AYIfSL24
101ElgpOhp59+4duaFvfhg3MCQNyPp9M9iC47M1g9laCSHOtMbs8iI2xuR0W1SgJRA6IB855s8/niTpMRgJRsvsKTT6fPR3pScO11VShwBfRqTIRqdO/og3lLVr0wCfOh1ZVNRKl8DjjGf3bVM7JUL6Kenr5/3rLle0ey2dlcuQDmfAAVCqtWJdDUeMrHkN4w5wOEP7ClU3TsCt6Q+NPBw5w8J0YZHsZpViI0Bjl0WrG46smES61SvHGceS9TGeDivrgY/lxMfbmG2ICme2ETm4HPhgzA2H/7lpLJZPt1PYFho98uv6eUdsw5CCcfhiABeC9xFJgXgjA96btMghy8VAKE4HAd43aE3gKjhEWRODvm94peMANyi1jQlGSLRQIS9YIuARGtCnhoBV4xD1DDMjcg5KiQNyjBzjkcDjmRSBrDBfgEUOwDuKqGHAxz0+WdlNBKoAjE5vAHz7NTtYqfdcNbMAlCvNPpOQpQxcKBkBwyATsLzKRmoUmAeDGCqjndUCGKWB85wDXnRYSDk9HSFRrAmCPqf8Gkk/NivyVzg0IO4MoNofeP/EbpToyMZHzMA5RpgK5HncnJqW5fJ6yyXIzNVH67ojHvyiGPNTx3vd2nax68jXUFWEHYndAGyt70Gszf4zKHVxUhRI20AYXTtDGBKTHA+z1ZWfFlXfk8wSAlP2lQbIz/CJErVgqvWcQBTMG0mXEgg+EvV3MTKCv8EeCNN/YjT72B9lqiASMjH7jDw6OHmpoaSzrptRcJtRf4m/D8MgwKlcPf0yctiDfo8+koAZ0EjykYtyErEhWGcA1HOIvUHXRV9k3LTVbRJxgxDc5pTUD3rinYPTINsVr06nGGpawq0KIYVodkdhT65k0Ry+LEaoECnbHuGoi23OpjMJ/PH77vvof629vBKYMCfAKAlpYq5/nnX3rnqqsuK+mkxlaCEl4JPHPSA2Wl+rte0pcds8TP0XrvkIK8NRWWZDI6CkEhA5fvAnFQpBBIxyMyAqgIqznoBMZG8xBbqUDjOkQ3I4pglMCO2kQIY7+D2IoroDXLcrAIVMCIqGCcezWEN/wFLEQ9Pf0/0HWeR+YDNaDMXNoQExyvHR7e/VIiEdtcfGf2wFaY3b8VSrM4D6FxpB0mm1ZDLDnjn4UwQ4LKVW9scblADUFSgrQO7pmAjZfH8EBEBTzy9BIODU1NEWiQODFClVGoJhApKgkahdv6TwjK+uP/yMj4i42N1967YkVybGBgVw4CkvgSDejoaHOfeOI/rcnJ6V3lAiD1yh7fjw4xjrE6AaEVzQjQxkHHK/2mJVbKjlSKDj2P8NIr87KymWzCL/J5QLUgSMzAHcWFCDlTzStpBYuadKDhKGpPSAKhlAJTEWRbkh8yJdtfsk9Pp7ruu++RR2pqIpnm5rA1MLAoDQC2du3lRlvb5ec9++w3D8BHIXoV5iieEuVHg2ciUjx8APnNpRw4smsSLrgcBVytY+WrCp8BFP7wHIIzFIKLEcSZFS9XMhIAwmhAznI9nuNUl4LZ27e/fOcXv3j/yzU1yemFdh/Af37OBwbG3B//eMfo4ODJZ+GjUALB5danAc7+S/T6Z4lagPP59FhQIX9A7aBoYhCyQ9HOLpTAljgAYU4K/emoqALFd6/6E5klQWDVfiTfNPOj6bSZQeYLcSmQAjL5e3k8/pYyPDz9/vXXX3sTnrB+tMP66DnAGm5Am27FiIGeOzeDOYUEWRxTormZCQuyk7bI7afGLSoMBegpEi3MGdwcQt8mhrwcRpIcVn9pG6yUjVVgBNTz78WDqk+VMW8PXnHFDX9vWX3kkOxKywt4S6yDT05C7kc/2jHY2Ljyjgcf/MozmEmtho9KqBFKQh45cLRZPnNEugEMrVSEG67UDhZpQPUmNR8RfVwrg/F+RqK/eE+8Wq/HILzi4sCSl2h2dnZ3bW0in05XZp5oAVwLlLq6lqjrJpOc55I//elTt6xff94fqCpU2bY7k05nhlKp2aGJiQ+GZmezqVdfffP99947mv7qV+9uu+SS9XcZRngVfEJkmubQd7+77bann/7mge7ubvKOvFL/hQQAmDioP//5ldFs1ozZdi4aj+vhfN6RJQqTBbJpauJqGOKtJ8wk8zpWk8ZLL239w02bLrz7kxDEa6/tvve2277yH+Pj2QmAbvNU/Vnl2+3q2rUDoYGBbDged0PIqJbJkAAshzHdVRQDr7NYQ0QFyGBZdsi2LUPXlYjj5IydO5/940su2fCxaASV8fv2vfP49dff8ZyqZiY+/emNaaxwnVONY6d+NLC2tjYVsTStv38V9h9GlboA26hLKFJnZ6enYgSkvKs2NGh6JmOiEBLRdDodjkY148knH/2tyy7beF1tbdXmeDx+Liwhob3/z+Dg6GsPPPD4v/7yl10jnOtTqZSJzq/LWsz4xQigvH9FmyK0bP16ekWtPnTixIxh23YYj6YM153VNC2sY0qrPvroX62rr1+RoJMPjv/QpOglcPHcX/2qexi1ZtUFFzSuQ81JGEYoiS1Gf1xCfoc6ou8Z3rfv0Huvv757sLNz95SqGmY6zTKhkJ6uq0tkent3VHwzrJyh5SDvuZsoylCBrJMJIRN6OKxorququZzL8HAHMLJhve4q+TxBwfJgW353WSiEJ6SQxRPrqGJZGdeDlKmmcNEfoflpDsIBFh54mOHwmvz4+E9y9LYotkW/VL1cAph7PiU/TPxFRAv6k6RqWWnFNHWNi+Se/iQuoszMzHqMUZ5cjVo0wVwXqyHMkriotYkcFo8nEbbLoMZkUYQRR9OyzthYEu18Gtt6bC/8//6z+/m3S0H1XnrW0L+QlhSaWtS8/7kCaVBLSP4NMTXxmxi/FH9i/7+rT2twf4PgbQAAAABJRU5ErkJggg=="}},VAe=3.2,PAe=({panelRect:e})=>{const t=Xf(e).stickers,n=tt(i=>i.config.appearance.textScale),r=tt(i=>i.coordSystem);if(t.length===0)return null;const a=Jg(VAe,n);return w.jsx("svg",{x:e.x,y:e.y,width:e.width,height:e.height,overflow:"visible","data-testid":"stickers",children:t.map(i=>{const o=r.type==="polar"?HAe(i,e):FAe(i);return w.jsx($Ae,{sticker:i,sizePx:a,x:o.x,y:o.y},i.id)})})},$Ae=({sticker:e,sizePx:t,x:n,y:r})=>{const a=zAe[e.sticker];if(!a)return null;const{width:i,height:o}=UAe(a.aspectRatio,t);return w.jsx("image",{href:a.src,x:n,y:r,width:i,height:o,transform:`translate(${-i/2}, ${-o/2})`})},FAe=e=>({x:be(e.at.x),y:be(1-e.at.y)}),HAe=(e,t)=>{const n=KS(t),r=n.radius*2;return{x:n.centerX-n.radius+e.at.x*r,y:n.centerY-n.radius+e.at.y*r}},UAe=(e,t)=>e>=1?{width:t,height:t/e}:{width:t*e,height:t},GAe="_1agclyl0",YAe="_1agclyl2",qI=({x:e,y:t,width:n,height:r,text:a,isRotated:i,target:o,position:c,coordType:u,backdropColor:f})=>{const m=ay(),p=i?`rotate(-90 ${e} ${t})`:void 0,g=m[o][c],y=g.borderColor!==void 0&&(g.borderWidth??0)>0,x=XAe(o,u,g),S=qAe(g,x,f);return w.jsxs("g",{transform:p,children:[x&&w.jsx("rect",{className:"_1agclyl1",x:e-n/2,y:t-r/2,width:n,height:r,rx:g.borderRadius,ry:g.borderRadius,fill:g.background,...y?{stroke:g.borderColor,strokeWidth:g.borderWidth}:{}}),w.jsx("text",{className:YAe,style:{...Vo(g),fill:WAe(g,S)},x:e,y:t,textAnchor:"middle",dominantBaseline:"central",children:a})]})},WAe=(e,t)=>
101e.isTextColorAuthored||t===void 0?e.textColor:eN(t),qAe=(e,t,n)=>{if(n!==void 0)return RX(t?e.background:void 0,n)},XAe=(e,t,n)=>n.background===void 0?!1:e==="aggregate"||t==="cartesian",KAe=({panelRect:e,formattingLocale:t,plotBottomY:n,isFooterChromeReserved:r})=>{const a=s1e(),i=ol(),o=Ds(),c=tt(Er(g=>({layers:g.layers,coordSystem:g.coordSystem,axes:g.guides.axes,numberFormat:g.config.numberFormat,parsingLocale:g.config.parsingLocale,textScale:g.config.appearance.textScale}))),u=ay(),f=E.useMemo(()=>EI({textMeasurer:i,dataLabelStyles:u,familyDefault:o.fonts.familyDefault}),[i,u,o.fonts.familyDefault]),m=E.useMemo(()=>Tne({...c,panelRect:e,measureDataLabel:f,formattingLocale:t,plotBottomY:n,isFooterChromeReserved:r}),[c,e,f,t,n,r]).labels.map((g,y)=>w.jsx(qI,{x:g.x,y:g.y,width:g.width,height:g.height,text:g.text,isRotated:g.isRotated,target:g.target,position:g.position,coordType:c.coordSystem.type,backdropColor:g.backdropColor},`${g.layerId}:${y}`)),p={className:GAe,transform:`translate(${e.x}, ${e.y})`,"data-testid":"data-labels"};return a>0?w.jsx(fn.g,{...p,initial:{opacity:0}
101,animate:{opacity:1},transition:{duration:axe,delay:a},children:m}):w.jsx("g",{...p,children:m})},QAe=({edge:e,position:t,labelRotation:n,label:r,tickLabelStyle:a})=>{const{offset:i,textColor:o}=a,c=be(t),u={style:Vo(a),fill:o},f=n!==0&&(e==="top"||e==="bottom"),m=e==="top";return f?w.jsx("svg",{x:c,y:m?"100%":0,style:{overflow:"visible"},children:w.jsx("text",{...JAe(m,i,n),...u,children:r})}):w.jsx("text",{...ZAe(e,c,i),...u,children:r})},ZAe=(e,t,n)=>{switch(e){case"bottom":return{x:t,y:n,textAnchor:"middle",dominantBaseline:"hanging"};case"top":return{x:t,y:"100%",dy:-n,textAnchor:"middle",dominantBaseline:"auto"};case"left":return{x:"100%",dx:-n,y:t,textAnchor:"end",dominantBaseline:"central"};case"right":return{x:n,y:t,textAnchor:"start",dominantBaseline:"central"}}},JAe=(e,t,n)=>{const r=e?-t:t;return{x:0,y:r,textAnchor:e?"start":"end",dominantBaseline:"central",transform:`rotate(${n}, 0, ${r})`}},e2e=({formattedAxis:e,rect:t})=>{const n=e.position==="bottom"||e.position==="top",r=Wt(e.scaleAestheticKey),a=iA()[r],i=kI()[r];return w.jsxs("svg",{x:t.x,y:t.y,width:t.width,height:t.height,style:{overflow:"visible"},children:[!1,e.ticks.map((o,c)=>{const u=o.formattedLabel,f=n?o.position:1-o.position,m=t2e(e.position,f,t,i.length);return w.jsxs("g",{children:[e.ticksVisible&&w.jsx("line",{...m,stroke:i.color,strokeWidth:i.strokeWidth,strokeDasharray:tS(i.lineType)}),w.jsx(QAe,{edge:e.position,position:f,labelRotation:e.labelRotation,label:u,tickLabelStyle:a})]},c)})]})},t2e=(e,t,n,r)=>{const a=be(t);switch(e){case"bottom":return{x1:a,y1:0,x2:a,y2:r};case"top":return{x1:a,y1:n.height,x2:a,y2:n.height-r};case"left":return{x1:n.width,y1:a,x2:n.width-r,y2:a};case"right":return{x1:0,y1:a,x2:r,y2:a}}},n2e=({axes:e,rects:t})=>{const n=TI();return w.jsx(w.Fragment,{children:e.map(r=>{const a=t[r.position];if(!a||!r.isVisible)return null;const i=r2e(r.position,a),o=n[Wt(r.scaleAestheticKey)];return w.jsxs("g",{transform:`translate(${a.x}, ${a.y})`,children:[!1,w.jsx("text",{style:Vo(o),fill:o.textColor,...i,children:r.label})]},`axis-label-${r.position}`)})})},r2e=(e,t)=>{const n={x:t.width/2,y:t.height/2,textAnchor:"middle",dominantBaseline:"middle"};return e==="left"?(n.x=0,n.textAnchor="start"):e==="right"&&(n.x=t.width,n.textAnchor="end"),n},a2e=({formattedAxes:e,tickRects:t})=>w.jsx(w.Fragment,{children:e.map(n=>{if(n.geometry!=="linear")return null;const r=t[n.position];return!r||!n.isVisible?null:w.jsx(e2e,{formattedAxis:n,rect:r},n.scaleAestheticKey)})}),i2e=({formattedAxes:e,labelRects:t})=>w.jsx(n2e,{axes:e.filter(n=>n.geometry==="linear"),rects:t}),XI={strokeDashoffset:"0",strokeLinecap:"round"},s2e=({axes:e,panelBorderSizes:t,panelFrameRect:n,panelRect:r})=>{const a=ua(),i=r.x-n.x,o=r.y-n.y;return w.jsx("svg",{"data-testid":"grid",x:n.x,y:n.y,width:n.width,height:n.height,style:{overflow:"visible"},children:e.map(c=>{if(c.geometry!=="linear"||!c.gridVisible)return null;const u=c.position==="bottom"||c.position==="top",f=Ox(a,Wt(c.scaleAestheticKey)),m=tS(f.lineType);return w.jsx("g",{children:c.ticks.map((p,g)=>{const y=o2e(u,p.position);if(y!==null&&t[y]>0)return null;const x=u?p.position:1-p.position;let S;if(u){const A=x*r.width+i;S={x1:A,y1:0,x2:A,y2:"100%"}}else{const A=x*r.height+o;S={x1:0,y1:A,x2:"100%",y2:A}}return w.jsx("line",{...S,...XI,strokeDasharray:m,strokeWidth:f.strokeWidth,stroke:f.color},g)})},c.scaleAestheticKey)})})},o2e=(e,t)=>t<=0?e?"left":"bottom":t>=1?e?"right":"top":null,l2e=({sizes:e,panelFrameRect:t})=>{const n=tt(o=>o.coordSystem.type==="polar"),r=ua(),a=E.useMemo(()=>o4(r),[r]);if(n)return null;const i=Nie(a,{x:e.left/2,y:e.top/2,width:t.width-(e.left+e.right)/2,height:t.height-(e.top+e.bottom)/2});return i.length===0?null:w.jsx("svg",{"data-testid":"panel-border",x:t.x,y:t.y,width:t.width,height:t.height,style:{overflow:"visible"},children:i.map((o,c)=>w.jsx("path",{d:c2e(o.segments),fill:"none",stroke:o.color,strokeDasharray:tS(o.lineType),strokeWidth:o.strokeWidth,...XI},c))})},c2e=e=>e.map(t=>{switch(t.type){case"move":return`M ${t.x} ${t.y}`;case"line":return`L ${t.x} ${t.y}`;case"arc":{const n=t.cx+t.radius*Math.cos(t.endAngle),r=t.cy+t.radius*Math.sin(t.endAngle);
101return`A ${t.radius} ${t.radius} 0 0 1 ${n} ${r}`}case"close":return"Z"}}).join(" "),KI=(e,t)=>{const n=tt(u=>u.coordSystem);if(n.type!=="polar")return null;const r=t.find(u=>u.geometry==="circular");if(!r)return null;const{innerRadius:a,startAngle:i,spokeRotation:o}=n,c=KS(e);return c.radius<=0?null:{circle:c,circularAxis:r,radialAxis:t.find(u=>u.geometry==="radial"),innerRadius:a,startAngle:i,angleFor:u=>bN(u,i,o),radiusNormFor:u=>a+u*(1-a)}},u2e=3,d2e=16,f2e=({formattedAxes:e,panelRect:t})=>{const n=iA(),r=KI(t,e);if(!r)return null;const{circle:a,circularAxis:i,radialAxis:o,startAngle:c,angleFor:u,radiusNormFor:f}=r,m=h2e(o,f,a.radius),p=g=>n[Wt(g.scaleAestheticKey)];return w.jsxs("svg",{x:t.x,y:t.y,width:t.width,height:t.height,overflow:"visible","data-testid":"polar-axis-ticks",children:[(o==null?void 0:o.isVisible)&&m.map(({tick:g,radiusNorm:y},x)=>{const S=oa(c,y,a);return w.jsx("text",{x:S.x,y:S.y,textAnchor:"middle",dominantBaseline:"central",style:{...Vo(p(o)),paintOrder:"stroke"},stroke:I.graphBackground,strokeWidth:u2e,fill:p(o).textColor,children:g.formattedLabel},`radial-label-${x}`)}),i.isVisible&&i.ticks.map((g,y)=>{if(g.position>=1-1e-9)return null;const x=u(g.position),S=oa(x,(a.radius+CK)/a.radius,a);return w.jsx("text",{x:S.x,y:S.y,textAnchor:m2e(x),dominantBaseline:"central",style:Vo(p(i)),fill:p(i).textColor,children:g.formattedLabel},`rim-label-${y}`)})]})},h2e=(e,t,n)=>{if(!e)return[];const r=[];let a=Number.NEGATIVE_INFINITY;for(const i of e.ticks){const o=t(i.position);if(o<=0)continue;const c=o*n;c-a<d2e||(r.push({tick:i,radiusNorm:o}),a=c)}return r},m2e=e=>{const t=Math.sin(e);return Math.abs(t)<.01?"middle":t>0?"start":"end"},p2e=({formattedAxes:e,panelRect:t})=>{const n=ua(),r=KI(t,e);if(!r)return null;const{circle:a,circularAxis:i,radialAxis:o,innerRadius:c,angleFor:u,radiusNormFor:f}=r,m=Ox(n,"y"),p=Ox(n,"x");return w.jsxs("svg",{x:t.x,y:t.y,width:t.width,height:t.height,overflow:"visible","data-testid":"polar-grid",children:[(o==null?void 0:o.gridVisible)&&o.ticks.map((g,y)=>{const x=f(g.position)*a.radius;return x<=0||g.position>=1?null:w.jsx("circle",{cx:a.centerX,cy:a.centerY,r:x,fill:"none",stroke:m.color,strokeWidth:m.strokeWidth},`ring-${y}`)}),(o==null?void 0:o.gridVisible)&&w.jsx("circle",{cx:a.centerX,cy:a.centerY,r:a.radius,fill:"none",stroke:m.color,strokeWidth:m.strokeWidth}),i.gridVisible&&i.ticks.map((g,y)=>{if(g.position>=1-1e-9)return null;const x=u(g.position),S=oa(x,c,a),A=oa(x,1,a);return w.jsx("line",{x1:S.x,y1:S.y,x2:A.x,y2:A.y,stroke:p.color,strokeWidth:p.strokeWidth},`spoke-${y}`)})]})},g2e=({layer:e,coordSystem:t,shouldAnimateTransitions:n,isDimmed:r,dimStyle:a,formattingLocale:i})=>{const o=Ni(),c=o1e(e.id),u=o(e.geom,t.type);if(u===null)return null;const f=ey(u.render);return f.overlay?null:w.jsx("g",{style:r?{opacity:a.opacity,...a.saturation===void 0?{}:{filter:`saturate(${a.saturation})`}}:void 0,children:f.fn({layer:e,coordSystem:t,shouldAnimateTransitions:n,formattingLocale:i,intro:c})})};function y2e({renderer:e,layer:t,coordSystem:n,candidates:r}){if((e==null?void 0:e.getOverlayAnchor)===void 0||r.length===0)return[];const a=[];for(const{observation:i,observationIndex:o}of r){const c=e.getOverlayAnchor({layer:t,coordSystem:n,observation:i});c!==null&&a.push({observation:i,observationIndex:o,anchor:c})}return a}var b2e=4,v2e=({renderer:e,layer:t,matchedLayer:n,overlayCandidates:r,coordSystem:a,shouldAnimateTransitions:i,panelRect:o,formattingLocale:c})=>{const u=tt(M=>M.config.numberFormat),f=E.useMemo(()=>y2e({renderer:e,layer:t,coordSystem:a,candidates:r}),[e,t,a,r]),m=Xt(t),p=E.useMemo(()=>Mf(t),[t]),g=E.useMemo(()=>Ww({layer:t,numberFormat:u,locale:c}),[u,t,c]),{fonts:y}=Ds(),x=ay();if(e===null||n===null&&f.length===0)return null;const S=ey(e.render);let A=null;if(n&&!S.overlay){const M={layer:n,sourceLayer:t,coordSystem:a,shouldAnimateTransitions:i,formattingLocale:c,panelRect:o};A=e.renderHighlight?e.renderHighlight(M):S.fn(M)}return w.jsxs(w.Fragment,{children:[A,f.map(({observation:M,observationIndex:C,anchor:R})=>w.jsx(x2e,{observation:M,anchor:R,panelRect:o,fill:m.get("color",M),dotRadius:(m.get("size",M)??8)/2,readSegmentY:p,formatYValue:g,labelStyle:x.observation.outside,familyDefault:y.familyDefault},w2e(M,C)))]})},x2e=({observation:e,anchor:t,panelRect:n,fill:r,dotRadius:a,readSegmentY:i,formatYValue:o,labelStyle:c,familyDefault:u})=>{const f=ol(),m=t.x,p=aa(t.y),g=i(e),y=de(g)?o(g,e):null,x=E.useMemo(()=>
101{if(y===null)return null;const S=f.measureText(y,jf(c,u));return{width:S.width+c.paddingInline*2,height:S.height+c.paddingBlock*2}},[y,f,c,u]);return w.jsxs(w.Fragment,{children:[w.jsx("circle",{"data-testid":"highlight-overlay-dot",cx:be(m),cy:be(p),r:a,fill:r}),y!==null&&x!==null&&w.jsx(qI,{x:m*n.width,y:p*n.height-a-b2e-x.height/2,width:x.width,height:x.height,text:y,isRotated:!1,target:"observation",position:"outside",coordType:"cartesian"})]})},w2e=(e,t)=>{const n=e[pt.group];return`${String(n??"")}\0${t}`},S2e=({layer:e,coordSystem:t,panelRect:n})=>{const{primary:r,group:a,related:i}=Vd(Er(f=>({primary:f.hover.primary,group:f.hover.group,related:f.hover.related}))),o=Ni();if(r===null)return null;const c=o(e.geom,t.type);if(c===null||ty(c))return null;const u=i.get(e.id)??[];return r.layerId===e.id?c.renderHover({layer:e,coordSystem:t,primary:r,group:a,related:u,panelRect:n}):u.length===0?null:c.renderHoverCompanions({layer:e,primary:r,related:u})},A2e=e=>{const t=Xt(e);return E.useMemo(()=>{const[n]=e.data;return n===void 0?{opacity:void 0,saturation:void 0}:{opacity:t.get("alpha",n,"dimmed"),saturation:t.get("saturation",n,"dimmed")}},[e,t])},M2e="var(--to1jkx0)",T2e="var(--to1jkx1)",k2e="to1jkx2",E2e="to1jkx3",C2e=({shouldAnimateTransitions:e,panelRect:t,formattingLocale:n})=>{const{layers:r,coordSystem:a}=tt(Er(i=>({layers:i.layers,coordSystem:i.coordSystem})));return w.jsx("svg",{x:t.x,y:t.y,width:t.width,height:t.height,className:k2e,"data-testid":"geom-layers",...B1e(),children:r.map(i=>w.jsxs(E.Fragment,{children:[w.jsx(N2e,{layer:i,coordSystem:a,shouldAnimateTransitions:e,panelRect:t,formattingLocale:n}),w.jsx(S2e,{layer:i,coordSystem:a,panelRect:t})]},`${i.id}-${R2e(a)}`))})},R2e=e=>e.type==="cartesian"?`cartesian-${e.mainAxis}`:e.type,L2e=e=>{if(e.geom!=="rule")return E2e},D2e=e=>j_({...e.opacity===void 0?{}:{[M2e]:String(e.opacity)},...e.saturation===void 0?{}:{[T2e]:`saturate(${e.saturation})`}}),N2e=({layer:e,coordSystem:t,shouldAnimateTransitions:n,panelRect:r,formattingLocale:a})=>{const i=Ni(),o=E.useMemo(()=>i(e.geom,t.type),[i,e,t]),c=e.highlight,u=A2e(e),f={layer:e,coordSystem:t,shouldAnimateTransitions:n,formattingLocale:a},m=o?ey(o.render):null,p=e.spatialKind==="render-hit-test",g=L2e(e);return w.jsxs("g",{className:g,style:g===void 0?void 0:D2e(u),children:[w.jsx(g2e,{layer:e,coordSystem:t,shouldAnimateTransitions:n,isDimmed:(c==null?void 0:c.composition.isDimmed)??!1,dimStyle:u,formattingLocale:a}),p&&!(m!=null&&m.overlay)&&(o==null?void 0:o.hitTest)&&w.jsx(Yve,{hitTest:o.hitTest,input:f}),p&&(m==null?void 0:m.overlay)&&w.jsx(txe,{render:m.fn,input:f}),c!==null&&w.jsx(v2e,{renderer:o,layer:e,matchedLayer:c.composition.matchedLayer,overlayCandidates:c.composition.overlayCandidates,coordSystem:t,shouldAnimateTransitions:n,panelRect:r,formattingLocale:a})]})},j2e="_17uhij30",O2e=({formattedAxes:e,plotRect:t,panelBorder:n,panelFrameRect:r,panelRect:a,axisRects:i,axisLabelRects:o,shouldAnimateTransitions:c,formattingLocale:u,plotBottomY:f,isFooterChromeReserved:m,isEditable:p})=>{const g=E.useRef(null);eAe(g);const y=Ea("Grid",s2e),x=Ea("AxisTicks",a2e),S=Ea("AxisLabel",i2e),A=E.useMemo(()=>k1(r,t),[r,t]),M=E.useMemo(()=>k1(a,t),[a,t]),C=E.useMemo(()=>T5(i,t),[i,t]),R=E.useMemo(()=>T5(o,t),[o,t]);return w.jsxs("svg",{ref:g,className:j2e,width:t.width,height:t.height,style:{transform:`translate(${t.x}px, ${t.y}px)`},"data-testid":"plot",children:[w.jsx(v5,{panelRect:M}),w.jsx(y,{axes:e,panelBorderSizes:n,panelFrameRect:A,panelRect:M}),w.jsx(x,{formattedAxes:e,tickRects:C}),w.jsx(S,{formattedAxes:e,labelRects:R}),w.jsx(p2e,{formattedAxes:e,panelRect:M}),w.jsx(v5,{panelRect:M}),w.jsx(S5,{panelRect:M,zOrder:"background"}),w.jsx(w5,{panelRect:M,zOrder:"background"}),w.jsx(l2e,{sizes:n,panelFrameRect:A}),w.jsx(C2e,{shouldAnimateTransitions:c,panelRect:M,formattingLocale:u}),w.jsx(f2e,{formattedAxes:e,panelRect:M}),w.jsx(KAe,{panelRect:M,formattingLocale:u,plotBottomY:f,isFooterChromeReserved:m}),w.jsx(pAe,{panelRect:M,isEditable:p}),w.jsx(S5,{panelRect:M,zOrder:"foreground"}),w.jsx(w5,{panelRect:M,zOrder:"foreground"}),w.jsx(cAe,{panelRect:M,isEditable:p}),w.jsx(kAe,{panelRect:M}),w.jsx(PAe,{panelRect:M}),w.jsx(BAe,{panelRect:M}),w.jsx(ZSe,{panelRect:M})]})},k1=(e,t)=>({x:e.x-t.x,y:e.y-t.y,width:e.width,height:e.height}),T5=(e,t)=>{const n={};for(const[r,a]of Object.entries(e))n[r]=k1(a,t);return n},_2e=e=>{let t,n;return"aspectRatio"in e?"intrinsicWidth"in e?(t=e.intrinsicWidth,n=t/e.aspectRatio):(n=e.intrinsicHeight,t=n*e.aspectRatio):(t=e.intrinsicWidth,n=e.intrinsicHeight),{width:k5(t,"width"),height:k5(n,"height")}},k5=(e,t)=>{if(e<=0||Number.isNaN(e)||!Number.isFinite(e))throw new Be({message:`Expected ${t} to be a positive, finite number, but got ${e}.`});return e},I2e=({sizing:e,onResize:t,children:n})=>{const r=yI({onResize:t});
101if(e.mode==="keepAspectRatio"){const{intrinsicSize:i,canRender:o,outerStyles:c,innerStyles:u}=B2e(e,r.width,!r.isDefault);return w.jsx("div",{ref:r.setElement,style:c,"data-testid":"graph-sizer",children:o&&w.jsx("div",{style:u,children:n(i)})})}if(e.mode==="fixed")return w.jsx("div",{ref:r.setElement,style:{width:e.width,height:e.height},"data-testid":"graph-sizer",children:n({width:e.width,height:e.height})});const a=!r.isDefault&&r.width>0&&r.height>0;return w.jsx("div",{ref:r.setElement,style:{width:"100%",height:"100%"},"data-testid":"graph-sizer",children:a&&n({width:r.width,height:r.height})})},B2e=(e,t,n)=>{const r=_2e(e),a=t>0&&r.width>0?t/r.width:1;return{intrinsicSize:r,canRender:n,outerStyles:{width:"100%",...n?{height:r.height*a}:{aspectRatio:`${r.width} / ${r.height}`}},innerStyles:{transformOrigin:"top left",transform:`scale(${a})`,width:r.width,height:r.height}}},z2e={mode:"responsive"},Gv={headerSize:{width:0,height:0},footerSize:{width:0,height:0}},V2e=()=>{const[e,t]=E.useState(null),[n,r]=E.useState(null),[a,i]=E.useState(Gv);return E.useEffect(()=>{const o=()=>{const u=e?{width:e.offsetWidth,height:e.offsetHeight}:Gv.headerSize,f=n?{width:n.offsetWidth,height:n.offsetHeight}:Gv.footerSize;i(m=>P2e(m,{headerSize:u,footerSize:f})?{headerSize:u,footerSize:f}:m)};o();const c=new ResizeObserver(o);return e&&c.observe(e),n&&c.observe(n),()=>c.disconnect()},[e,n]),{headerRef:t,footerRef:r,measurements:a}},P2e=(e,t)=>e.headerSize.width!==t.headerSize.width||e.headerSize.height!==t.headerSize.height||e.footerSize.width!==t.footerSize.width||e.footerSize.height!==t.footerSize.height,$2e=()=>null,F2e=({graphChrome:e,isEditable:t,style:n,contentRef:r,children:a})=>{const{themeClass:i,inlineVarsStyle:o}=rA(),c=e.borderColor===void 0?0:e.borderWidth,u=c>0?e.borderColor:void 0,f=Math.max(0,e.borderRadius),m=f===0?0:f+c,p=E.useMemo(()=>({...n,borderRadius:`${m}px`,...o,background:u}),[n,m,o,u]),g=E.useMemo(()=>({inset:`${c}px`,borderRadius:`${f}px`}),[c,f]),y=t&&e.background==="transparent";return w.jsx("div",{"data-testid":"graph-wrapper",className:sa(Sxe,i),style:p,children:w.jsx("div",{ref:r,"data-testid":"graph-inner",tabIndex:t?0:void 0,className:sa(Mxe,{[Txe]:t,[kxe]:y}),style:g,children:a})})},Xa=e=>w.jsx(vxe,{locale:M1e(),children:w.jsx(H2e,{...e})}),H2e=({slots:e,sizing:t=z2e,onResize:n,...r})=>w.jsx(Uve,{children:w.jsx(Ybe,{children:w.jsx(tve,{slots:e,children:w.jsx(I2e,{sizing:t,onResize:n,children:({width:a,height:i})=>w.jsx(U2e,{width:a,height:i,...r})})})})}),U2e=({width:e,height:t,animation:n,showTooltips:r=!0,mode:a="readonly"})=>{const i=vI(),{axes:o,legends:c,layers:u,numberFormat:f,parsingLocale:m,appearance:p,annotations:g,coordSystem:y,headline:x,headlineConfig:S,content:A,overflowStrategy:M,layoutConfig:C}=tt(Er(on=>({axes:on.guides.axes,legends:on.guides.legends.drawn,layers:on.layers,numberFormat:on.config.numberFormat,parsingLocale:on.config.parsingLocale,appearance:on.config.appearance,annotations:on.annotations,coordSystem:on.coordSystem,headline:on.guides.headline,headlineConfig:on.config.headline,content:on.config.content,overflowStrategy:on.config.panel.overflow,layoutConfig:on.config.layout}))),R=Ppe(),{intro:L,transitions:N}=E.useMemo(()=>ixe(n,R??!1),[n,R]),{headerRef:O,footerRef:$,measurements:T}=V2e(),{formattingLocale:j,colorScheme:_,themeOverrides:P}=la(),U=a==="editable",[W,q]=E.useState(null),ne=E.useMemo(()=>J_(_,P),[_,P]),B=Ea("Header",Ewe),G=Ea("Footer",xwe),F=Ea("Legend",_Se),ee=Ea("Headline",Kwe),he=Ea("EditorSurface",$2e),z=E.useMemo(()=>sae({legends:c,numberFormat:f,parsingLocale:m,formattingLocale:j}),[c,f,m,j]),Z=E.useMemo(()=>Jre({headline:x,show:S.show,numberFormat:f,parsingLocale:m,formattingLocale:j,t:i}),[x,S.show,f,m,j,i]),re=ol(),ue=ua(),me=E.useMemo(()=>l4(ue),[ue]),ve=E.useMemo(()=>o4(ue),[ue]),Ce=me.borderColor===void 0?0:me.borderWidth,Oe=E.useMemo(()=>({width:Math.max(0,e-2*Ce),height:Math.max(0,t-2*Ce)}),[e,t,Ce]),fe=E.useMemo(()=>fwe(A.brandMark.enabled,Oe,A.brandMark.variant),[A.brandMark.enabled,A.brandMark.variant,Oe]),ke=A.brandMark.placement==="footer"?fe:"hidden",Re=A.brandMark.placement==="header"?fe:"hidden",ce=E.useMemo(()=>Z?{formatted:Z,size:S.size,position:S.position,innerRadius:y.type==="polar"?y.innerRadius:0}:void 0,[Z,S.size,S.position,y]),Tt=nve(),Ne=x1e({textMeasurer:re,textScale:p.textScale,metrics:ne,overrides:Tt}),bt=E.useMemo(()=>jie(ve),[ve]),rt=w1e({measurer:Ne,axes:o,numberFormat:f,parsingLocale:m,formattedLegends:z,containerSize:Oe,externalMeasurements:T,headline:ce,formattingLocale:j,annotations:g,layers:u,co
101ordSystem:y,textScale:p.textScale,overflowStrategy:M,layout:C,panelBorder:bt}),jt=E.useMemo(()=>!rt||!ce||!Ne?null:Jne({headline:ce,layout:rt.layout,containerSize:Oe,measurer:Ne,itemGap:ne.headlineItemGap}),[rt,ce,Ne,Oe,ne.headlineItemGap]);if(!rt)return null;const{layout:Kt,formattedAxes:js,plotBottomY:Oi}=rt,Os=Kt.footer.height>0;return w.jsx(Cxe,{colorScheme:_,themeOverrides:P,textScale:p.textScale,graphBackground:me.background,children:w.jsx(Vbe,{metrics:ne,children:w.jsx(T1e,{children:w.jsx(W1e,{panelRect:Kt.panel,children:w.jsx(F2e,{graphChrome:me,isEditable:U,contentRef:U?q:void 0,style:{width:"100%",height:"100%"},children:w.jsxs(i1e,{intro:L,children:[w.jsx(B,{ref:O,headerRect:Kt.header,mode:a,title:A.title,isTitleVisible:A.isTitleVisible,subtitle:A.subtitle,isSubtitleVisible:A.isSubtitleVisible,brandMark:Re}),w.jsx(O2e,{formattedAxes:js,plotRect:Kt.plot,panelBorder:bt,panelFrameRect:Kt.panelFrame,panelRect:Kt.panel,axisRects:Kt.axes,axisLabelRects:Kt.axisLabels,shouldAnimateTransitions:N,formattingLocale:j??m,plotBottomY:Oi,isFooterChromeReserved:Os,isEditable:U}),w.jsx(G,{ref:$,footerRect:Kt.footer,mode:a,caption:A.caption,isCaptionVisible:A.isCaptionVisible,source:A.source,isSourceVisible:A.isSourceVisible,brandMark:ke}),w.jsx(F,{formattedLegends:z,rects:Kt.legends,textScale:p.textScale}),Z&&jt&&w.jsx(ee,{headline:Z,rect:jt.rect,resolvedSize:jt.resolvedSize,visibleItemCount:jt.visibleItemCount}),U&&W!==null&&w.jsx(he,{frameElement:W,panelRect:Kt.panel}),r&&w.jsx(Qxe,{})]})})})})})})};function E1(e){for(const t of e)(t.severity==="error"?console.error:console.warn)(`[graphy] ${t.code}: ${t.message}`,t)}var G2e="_1a5iqpb0",Y2e="_1a5iqpb1",W2e="_1a5iqpb3",q2e="_1a5iqpb4",X2e="_1a5iqpb5",E5=({errors:e})=>{const[t,...n]=e;return w.jsxs("div",{role:"alert",className:G2e,children:[w.jsx("strong",{className:Y2e,children:"This chart could not be rendered."}),t&&w.jsx(C5,{diagnostic:t}),n.length>0&&w.jsx("ul",{className:"_1a5iqpb2",children:n.map((r,a)=>w.jsx("li",{children:w.jsx(C5,{diagnostic:r})},`${r.code}-${a}`))})]})},C5=({diagnostic:e})=>w.jsxs("div",{className:W2e,children:[w.jsx("span",{className:q2e,children:e.code}),w.jsx("p",{className:X2e,children:e.message}),e.suggestion&&w.jsx("p",{className:"_1a5iqpb6",children:e.suggestion})]});function K2e(e=[],t=[]){return e.length===t.length&&e.every((n,r)=>Object.is(n,t[r]))}var Q2e=class extends E.Component{constructor(...e){super(...e),this.state={caughtDiagnostic:null}}static getDerivedStateFromError(e){return{caughtDiagnostic:xx(e)}}componentDidCatch(e,t){var r,a;const n=xx(e);E1([n]),(a=(r=this.props).onError)==null||a.call(r,[n]),console.error("Chart render component stack:",t.componentStack)}componentDidUpdate(e){this.state.caughtDiagnostic&&!K2e(e.resetKeys,this.props.resetKeys)&&this.setState({caughtDiagnostic:null})}render(){const{caughtDiagnostic:e}=this.state;if(e)return w.jsx(E5,{errors:[e]});const{forcedErrors:t,children:n}=this.props;return t&&t.length>0?w.jsx(E5,{errors:t}):n}},QI=e=>typeof e=="object"&&"geom"in e&&"render"in e,Z2e=e=>{const t=Ew(e);return t instanceof Ya?t:null},J2e=(e,t)=>{const n=e.filter(r=>eMe(r,t));return n.length===e.length?e:n},eMe=(e,t)=>e.kind!=="annotation"?!0:ru(t.annotations,e.id)!==null,R5=[],tMe=()=>zg(e=>({selection:R5,setSelection:t=>e(n=>nMe(n.selection,t)?n:{selection:t}),clearSelection:()=>e(t=>t.selection.length===0?t:{selection:R5})})),nMe=(e,t)=>e===t?!0:e.length!==t.length?!1:e.every((n,r)=>{const a=t[r];return a!==void 0&&Iue(n,a)}),rMe=e=>({emit:()=>{},subscribe:()=>aMe,getLastTrigger:()=>null,getLastCompile:()=>null,getCacheStats:()=>e.getCacheStats()}),aMe=()=>{};function iMe(e){const t=e.filter(QI),n=new Set([...Object.keys(hI),...t.map(c=>c.geom)]),r=[],a=new Set;for(const c of e){const u=Z2e(c);u===null||n.has(u.type)||a.has(u.type)||(a.add(u.type),r.push({kind:"user-input",severity:"error",code:"MISSING_GEOM_RENDERER",message:`Custom geom '${u.type}' is registered but has no renderer.`,context:{requested:u.type,kind:"geom-renderer"},suggestion:`Add a render half for it: \`defineGeomRenderer(${u.type}Geom, { coord, render })\`, then include it in \`plugins\`.`}))}const i=new Map;for(const c of t){if("definition"in c)continue;const u=`${c.geom}|${c.coord}`,f=i.get(u);f?f.count+=1:i.set(u,{geom:c.geom,coord:c.coord,count:1})}const o=[];for(const{geom:c,coord:u,count:f}of i.values())f<2||o.push({kind:"user-input",severity:"warning",code:"DUPLICATE_REGISTERED_TYPE",message:`Multiple render-only overrides register ('${c}', '${u}') (${f} entries); the last in the array wins.`,context:{requested:`${c}@${u}`,kind:"geom-renderer"},suggestion:`Keep a single render-only override for ('${c}', '${u}').`});return{errors:r,warnings:o}}function sMe(e,t){const{coordSystem:n,layers:r}=e,a=new Set,i=[];for(const o of r)t(o.geom,n.type)!==null||a.has(o.geom)||(a.add(o.geom),i.push({kind:"user-input",severity:"warning",code:"MISSING_GEOM_RENDERER",message:`No renderer for geom '${o.geom}' under ${n.type} coords; the layer is not painted.`,context:{requested:o.geom,kind:"geom-renderer"},suggestion:`Register a renderer for ('${o.geom}', '${n.type}') via \`defineGeomRenderer\`.`}));return i}function oMe(e,t){const{coordSystem:n,layers:r}=e,a=new Set,i=[];for(const o of r){if(o.interactive===!1||o.spatialKind!=="render-hit-test"||a.has(o.geom))continue;const c=t(o.geom,n.type);c===null||c.hitTest||ty(c)||(a.add(o.geom),i.push({kind:"user-input",severity:"warning",code:"MISSING_RENDER_HIT_TEST",message:`Geom '${o.geom}' declares spatialKind 'render-hit-test' but its renderer provides no hit-test; the layer has no hover.`,context:{requested:o.geom,kind:"geom-renderer"},suggestion:`Add a \`hitTest\` factory (precomputed geometry) or an overlay render (\`{ fn, options: { overlay: true } }\`, live simulation) to the renderer for ('${o.geom}', '${n.type}').`}))}return i}function lMe(e){const t=new Set,n=[];for(const r of e.layers){const a=r.identityKey;r.interactive!==!1&&(r.spatialKind!=="render-hit-test"||typeof a!="object"||t.has(r.geom)||r.data.hasVariable(a.variable)||(t.add(r.geom),n.push({kind:"user-input",severity:"warning",code:"RENDER_HIT_TEST_IDENTITY",message:`Geom '${r.geom}' keys its identity on '${a.variable}', a column its compile output does not emit; its hover lookup is empty.`,context:{requested:r.geom,kind:"geom-renderer"},suggestion:`Emit the '${a.variable}' column from the geom's \`compile()\`, or point \`identityKey\` at a column it does emit.`})))}return n}function cMe(e,t){const{coordSystem:n,layers:r}=e,a=new Set,i=[];for(const o of r){if(o.interactive===!1||o.spatialKind!=="render-hit-test"||a.has(o.geom))continue;const c=t(o.geom,n.type);c===null||!c.hitTest||!ty(c)||(a.add(o.geom),i.push({kind:"user-input",severity:"warning",code:"CONFLICTING_RENDER_HIT_TEST",message:`Geom '${o.geom}' declares both a \`hitTest\` factory and an overlay render; these are alternatives, so only the overlay is used.`,context:{requested:o.geom,kind:"geom-renderer"},suggestion:"Keep one: a `hitTest` factory for precomputed geometry, OR an overlay render (`{ fn, options: { overlay: true } }`) for a live simulation."}))}return i}function uMe(e,t){const n=new Set,r=[];for(const a of e.layers)a.interactive!==!1&&(a.spatialKind!=="render-hit-test"||n.has(a.geom)||t.hasCapability(a.geom)||(n.add(a.geom),r.push({kind:"user-input",severity:"warning",code:"MISSING_ANCHOR_CAPABILITY",message:`Geom '${a.geom}' declares no \`resolveAnchorPosition\`; its observations cannot be annotated, so the editor overlay paints n
101o creation trigger on them.`,context:{requested:a.geom,kind:"geom-renderer"},suggestion:"Implement `resolveAnchorPosition(observation, context)` on the geom, returning the normalised panel position an annotation on that observation belongs at."})));return r}function dMe(e,t){const{coordSystem:n,layers:r}=e,a=new Set,i=[];for(const o of r){if(o.interactive===!1||o.spatialKind==="render-hit-test"||a.has(o.geom))continue;const c=t(o.geom,n.type);c===null||!ty(c)||(a.add(o.geom),i.push({kind:"user-input",severity:"warning",code:"OVERLAY_REQUIRES_RENDER_HIT_TEST",message:`Geom '${o.geom}' declares an overlay render but its layer's spatialKind is '${o.spatialKind}', not 'render-hit-test'; the overlay's push-path hover resolves to nothing.`,context:{requested:o.geom,kind:"geom-renderer"},suggestion:"Have the geom's manifest yield spatialKind 'render-hit-test' so the compiled layer carries the `byKey` index the overlay's `pushHover` resolves against."}))}return i}var fMe=e=>zg(t=>({compiled:e,setCompiled:n=>t(r=>r.compiled===n?r:{compiled:n})})),hMe=({input:e,data:t,customPalettes:n,plugins:r,resolveRenderer:a,anchorResolver:i,onChange:o,onError:c,onWarnings:u})=>
101{const f=Rc(o),m=Rc(c),p=Rc(u),[{session:g,compileBus:y}]=E.useState(()=>{const F=Xee({plugins:r});return{session:new zue(F),compileBus:rMe(F)}}),[x]=E.useState(()=>iMe(r??[])),S=E.useRef(null),[A]=E.useState(mMe),M=E.useRef(null),C=E.useCallback(F=>x.errors.length===0?F:[...x.errors,...F??[]],[x]),R=E.useCallback(F=>{if(!F.ok)return F.errors;if(M.current)M.current.getState().setCompiled(F.compiled);else{const ee=fMe(F.compiled);ee.subscribe(A.notify),M.current=ee,A.notify()}return null},[A]),[L,N]=E.useState(()=>{const F=g.compile({input:e,data:t,customPalettes:n});return S.current=F,C(R(F))}),O=E.useCallback(F=>F.ok?[...F.warnings,...sMe(F.compiled,a),...oMe(F.compiled,a),...lMe(F.compiled),...cMe(F.compiled,a),...dMe(F.compiled,a),...uMe(F.compiled,i)]:F.warnings,[a,i]),$=E.useCallback(F=>{var ee;F.length!==0&&(E1(F),(ee=m.current)==null||ee.call(m,F))},[m]),T=E.useCallback(F=>{var ee;F.length!==0&&(E1(F),(ee=p.current)==null||ee.call(p,F))},[p]);E.useEffect(()=>{const F=S.current;F&&($([...x.errors,...F.ok?[]:F.errors]),T([...x.warnings,...O(F)]),F.ok&&y.emit({kind:"init"}))},[y,$,T,x,O]),E.useEffect(()=>{var he;const F=g.update({input:e,data:t,customPalettes:n});if(!F)return;F.sealedInput&&((he=f.current)==null||he.call(f,F.sealedInput));const ee=R(F.result);N(C(ee)),ee&&$(ee),T(O(F.result)),ee||y.emit({kind:F.inputChanged?"input":"data"})},[e,t,n,g,y,R,$,T,C,O,f]);const j=E.useCallback(F=>{N(ee=>ee===null?ee:C(null)),T(O(F))},[C,T,O]),_=E.useCallback(F=>{var ee,he;F.compiled&&((ee=M.current)==null||ee.getState().setCompiled(F.compiled)),F.result&&j(F.result),F.command&&y.emit({kind:"command",command:F.command}),F.input&&((he=f.current)==null||he.call(f,F.input)),F.errors&&$([...F.errors])},[j,y,f,$]),P=E.useCallback(F=>{for(const ee of F)_(ee);return F.some(ee=>!!ee.compiled)},[_]),U=E.useCallback((F,ee)=>{P(g.applyCommand(F,ee))},[g,P]),W=E.useCallback(()=>{P(g.seal())},[g,P]),q=E.useCallback(()=>P(g.undo()),[g,P]),ne=E.useCallback(()=>P(g.redo()),[g,P]),B=E.useMemo(()=>({stack:g.history,undo:q,redo:ne}),[g,q,ne]),G=E.useCallback(()=>{var F;return((F=M.current)==null?void 0:F.getState().compiled)??null},[]);return{store:M.current,dispatch:U,seal:W,history:B,subscribe:A.subscribe,getCompiled:G,compileBu
101s:y,compileErrors:L}},mMe=()=>{const e=new Set;return{subscribe:t=>(e.add(t),()=>{e.delete(t)}),notify:()=>e.forEach(t=>t())}},pMe={},ZI=({data:e,input:t,plugins:n=[],formattingLocale:r,handleRef:a,onChange:i,onError:o,onWarnings:c,customPalettes:u,colorScheme:f="light",themeOverrides:m=pMe,children:p})=>{const[g]=E.useState(()=>mI(n.filter(QI))),y=E.useId(),[x]=E.useState(()=>ore(n)),[S]=E.useState(()=>tMe()),{store:A,dispatch:M,seal:C,history:R,subscribe:L,getCompiled:N,compileBus:O,compileErrors:$}=hMe({input:t,data:e,customPalettes:u,plugins:n,resolveRenderer:g,anchorResolver:x,onChange:i,onError:o,onWarnings:c});E.useEffect(()=>{if(A)return A.subscribe((_,P)=>{if(_.compiled.spec===P.compiled.spec)return;const{selection:U,setSelection:W}=S.getState();U.length!==0&&W(J2e(U,_.compiled.spec))})},[A,S]);const T=E.useMemo(()=>({dispatch:M,seal:C}),[M,C]);E.useImperativeHandle(a,()=>({commands:T,undo:R.undo,redo:R.redo,subscribe:L,getCompiled:N,getSelection:()=>S.getState().selection,setSelection:_=>S.getState().setSelection(_),subscribeSelection:S.subscribe}),[T,R,L,N,S]);const j=E.useMemo(()=>A?{chartId:y,store:A,selectionStore:S,commands:T,history:R,formattingLocale:r,compileBu
101s:O,colorScheme:f,themeOverrides:m,anchorResolver:x}:null,[y,A,S,T,R,r,O,f,m,x]);return w.jsx(Q2e,{forcedErrors:$,onError:o,resetKeys:[t,e],children:j?w.jsx(O_.Provider,{value:j,children:w.jsx(qbe,{value:g,children:p})}):null})};function gMe(e){const t=Zee(e);return{...t,GraphProvider:n=>w.jsx(ZI,{...n,plugins:t.plugins})}}var lA=({children:e,...t})=>w.jsx("svg",{viewBox:"0 0 1 1",preserveAspectRatio:"none",width:"100%",height:"100%",pointerEvents:"none",...t,children:e});function yMe(e){var n;const t=e.config.content;return(t==null?void 0:t.isBrandMarkVisible)!==void 0||((n=t==null?void 0:t.brandMark)==null?void 0:n.enabled)!==void 0?e:qt(e,{config:{content:{isBrandMarkVisible:!0,brandMark:{enabled:!0}}}})}var ji=e=>{const t=E.useMemo(()=>yMe(e.input),[e.input]);return w.jsx(ZI,{...e,input:t})};const Yv="neon-bar-glow",bMe=255,is=[{at:0,rgb:[46,3,74]},{at:.35,rgb:[157,14,173]},{at:.65,rgb:[236,24,149]},{at:.85,rgb:[255,90,130]},{at:1,rgb:[210,255,250]}];function L5(e){const t=Math.max(0,Math.min(1,e));let n=is[0],r=is[is.length-1];for(let f=0;f<is.length-1;f++)if(t>=is[f].at&&t<=is[f+1].at){n=is[f],r=is[f+1];break}const a=r.at-n.at||1,i=(t-n.at)/a,o=Math.round(n.rgb[0]+(r.rgb[0]-n.rgb[0])*i),c=Math.round(n.rgb[1]+(r.rgb[1]-n.rgb[1])*i),u=Math.round(n.rgb[2]+(r.rgb[2]-n.rgb[2])*i);return{core:`rgb(${o}, ${c}, ${u})`,glow:`rgba(${o}, ${c}, ${u}, 0.6)`}}function vMe(e){return ny("bar",{coord:"cartesian",guideMode:"band",render:({layer:t,coordSystem:n})=>{if(n.type!=="cartesian")return null;const r=n.mainAxis,a=e.current,i=[],o=[],c=[];let u=0;for(const f of t.data){const m=Ss(r,f);if(!m)continue;const{core:p,glow:g}=L5(m.height),y=u,x=Math.min(m.height,.015);i.push(w.jsx("rect",{x:m.x,y:Math.max(0,m.y-.012),width:m.width,height:m.height+.024,fill:g},`glow-${y}
101`)),o.push(w.jsxs("g",{children:[w.jsx("rect",{x:m.x,y:m.y,width:m.width,height:m.height,fill:p}),w.jsx("rect",{x:m.x,y:m.y,width:m.width,height:x,fill:"#f2fffe",opacity:.95})]},`bar-${y}`));const S=a[u];if(typeof S=="number"){const A=Math.max(0,Math.min(1,S/bMe)),M=1-A,C=.006,{core:R}=L5(A);c.push(w.jsx("rect",{x:m.x,y:Math.max(0,M-C/2),width:m.width,height:C,fill:"#ffffff",stroke:R,strokeWidth:.002,opacity:.95},`peak-${y}`))}u++}return w.jsxs(lA,{children:[w.jsx("defs",{children:w.jsxs("filter",{id:Yv,x:"-60%",y:"-60%",width:"220%",height:"220%",children:[w.jsx("feGaussianBlur",{stdDeviation:"0.012",result:"blurred"}),w.jsxs("feMerge",{children:[w.jsx("feMergeNode",{in:"blurred"}),w.jsx("feMergeNode",{in:"blurred"}),w.jsx("feMergeNode",{in:"SourceGraphic"})]})]})}),w.jsx("g",{filter:`url(#${Yv})`,opacity:.85,children:i}),w.jsx("g",{children:o}),w.jsx("g",{filter:`url(#${Yv})`,children:c})]})},renderHover:()=>null,renderHoverCompanions:()=>null})}function cA({content:e}){return w.jsxs("div",{className:"neon-tooltip",children:[e.header!==null&&w.jsx("div",{className:"neon-tooltip__header",children:e.header}),e.rows.map(t=>w.jsxs("div",{className:"neon-tooltip__row",children:[w.jsx("span",{className:"neon-tooltip__label",children:t.label}),w.jsx("span",{className:"neon-tooltip__value",children:t.value})]},t.key))]})}function JI(e){return function({content:n}){const r=n.header?Number(n.header.slice(1)):NaN,a=Number.isFinite(r)?e[r]:void 0;return w.jsxs("div",{className:"neon-tooltip",children:[a&&w.jsx("div",{className:"neon-tooltip__header",children:a}),n.rows.map(i=>w.jsxs("div",{className:"neon-tooltip__row",children:[w.jsx("span",{className:"neon-tooltip__label",children:i.label}),w.jsx("span",{className:"neon-tooltip__value",children:i.value})]},i.key))]})}}function Ka({children:e}){return w.jsxs("div",{className:"chart-info",children:[w.jsx("button",{type:"button",className:"chart-info__icon","aria-label":"About this chart",children:"i"}),w.jsx("div",{className:"chart-info__tooltip",role:"tooltip",children:e})]})}function Ns({controls:e,onReset:t}){const[n,r]=E.useState(!1),a=E.useRef(null);return E.useEffect(()=>{if(!n)return;const i=o=>{a.current&&!a.current.contains(o.target)&&r(!1)};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[n]),w.jsxs("div",{className:"chart-settings",ref:a,children:[w.jsx("button",{type:"button",className:"chart-settings__icon","aria-label":"Chart settings","aria-expanded":n,onClick:()=>r(i=>!i),children:"â"}),n&&w.jsxs("div",{className:"chart-settings__panel",children:[e.map(i=>{var o;return w.jsxs("label",{className:`chart-settings__row${i.type==="toggle"?" chart-settings__row--toggle":""}`,children:[w.jsx("span",{className:"chart-settings__label",children:i.label}),i.type==="slider"&&w.jsx("input",{type:"range",min:i.min,max:i.max,step:i.step,value:i.value,onChange:c=>i.onChange(Number(c.target.value))}),i.type==="select"&&w.jsx("select",{value:i.value,onChange:c=>i.onChange(Number(c.target.value)),children:i.options.map(c=>w.jsx("option",{value:c,children:c},c))}),i.type==="select-string"&&w.jsx("select",{value:i.value,onChange:c=>i.onChange(c.target.value),children:i.options.map(c=>w.jsx("option",{value:c.value,children:c.label},c.value))}),i.type==="toggle"&&w.jsx("input",{type:"checkbox",className:"chart-settings__checkbox",checked:i.value,onChange:c=>i.onChange(c.target.checked)}),i.type==="slider"||i.type==="select"?w.jsx("span",{className:"chart-settings__value",children:i.format?i.format(i.value):i.value}):null,i.type==="select-string"&&w.jsx("span",{className:"chart-settings__value",children:((o=i.options.find(c=>c.value===i.value))==null?void 0:o.label)??i.value})]},i.key)}),t&&w.jsx("button",{type:"button",className:"chart-settings__reset",onClick:t,children:"Reset to defaults"})]})]})}const xMe=["fftSize","targetFps","analyserSmoothing","numBars","minFreq","peakHoldMs","peakDecayPerSec"],C1="#33f9ff",D5="#7a1bff",N5="rgba(255, 60, 220, 0.18)",wMe="#0b0417",SMe={fontFamilyDefault:"'Share Tech Mono', ui-monospace, monospace",tooltipBackgroun
101d:"#160a2e",tooltipBorderColor:C1,tooltipValueTextColor:"#f2fffe"},AMe=$a({tokens:{graphBackground:wMe,gridLineColor:N5,textPrimary:C1,textSecondary:"#c9a8ff"},defaults:[ge.gridLine.y({color:N5,strokeWidth:1,lineType:"dashed"}),ge.panelBorder({color:D5,strokeWidth:1.5,lineType:"solid",borderRadius:14}),ge.graph({borderColor:D5,borderWidth:0,borderRadius:14}),ge.geom.rule({color:C1,strokeWidth:1.5,lineType:"dashed"},{layer:"average-level"}),ge.geom.rule.label({fontFamily:"'Share Tech Mono', monospace",fontSize:11,fontWeight:600})]});function MMe({bars:e,peaks:t,binLabels:n,settings:r,setSetting:a,resetSetting:i}){const o=e.length,c=E.useMemo(()=>Array.from({length:o},(x,S)=>`b${S}`),[o]),u=E.useMemo(()=>({Tooltip:JI(n)}),[n]),f=E.useRef(t);f.current=t;const m=E.useMemo(()=>[vMe(f)],[]),p=E.useMemo(()=>qa(Wa({x:"bin",y:"magnitude"}),rn.bar({params:{width:1}}),rn.rule({id:"average-level",aes:{y:"magnitude"},stat:ug.mean(),params:{label:"Avg",labelPosition:"end"}}),Bt.x.discrete({domain:c,padding:0}),Bt.y.continuous({domainMin:0,domainMax:255,nice:!1}),Fa({legend:{position:"none"},axes:{x:{isVisible:!1},y:{isVisible:!0,grid:{isVisible:!0},ticks:{isVisible:!1}}},content:{isTitleVisible:!1,brandMark:{enabled:!1}},layout:{padding:{top:16,right:10,bottom:10,left:10}},numberFormat:{decimals:0}}),AMe),[c]),g=E.useMemo(()=>({columns:[{key:"bin"},{key:"magnitude",label:"Level"}],rows:e.map((x,S)=>({bin:c[S],magnitude:x}))}),[e,c]),y=[{type:"select",key:"fftSize",label:"FFT size",options:[512,1024,2048,4096,8192],value:r.fftSize,onChange:x=>a("fftSize",x)},{type:"slider",key:"targetFps",label:"Update rate",min:10,max:60,step:1,value:r.targetFps,onChange:x=>a("targetFps",x),format:x=>`${x}fps`},{type:"slider",key:"analyserSmoothing",label:"Smoothing",min:0,max:.95,step:.05,value:r.analyserSmoothing,onChange:x=>a("analyserSmoothing",x),format:x=>x.toFixed(2)},{type:"slider",key:"numBars",label:"Bar count",min:16,max:96,step:4,value:r.numBars,onChange:x=>a("numBars",x)},{type:"slider",key:"minFreq",label:"Min frequency",min:10,max:200,step:5,value:r.minFreq,onChange:x=>a("minFreq",x),format:x=>`${x}Hz`},{type:"slider",key:"peakHoldMs",label:"Peak hold",min:0,max:2e3,step:50,value:r.peakHoldMs,onChange:x=>a("peakHoldMs",x),format:x=>`${x}ms`},{type:"slider",key:"peakDecayPerSec",label:"Peak decay",min:20,max:800,step:10,value:r.peakDecayPerSec,onChange:x=>a("peakDecayPerSec",x),format:x=>`${x}/s`}];return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"chart-wrap",children:[w.jsxs("div",{className:"chart-frame",children:[w.jsx("div",{className:"chart-frame__scanlines","aria-hidden":"true"}),w.jsx(ji,{data:g,input:p,colorScheme:"dark",themeOverrides:SMe,plugins:m,children:w.jsx(Xa,{sizing:{mode:"responsive"},animation:!1,showTooltips:!0,slots:u})})]}),w.jsxs("div",{className:"chart-toolbar",children:[w.jsx(Ka,{children:"A real-time FFT: frequency (low to high, left to right) against loudness. Bars are log-spaced so bass detail isn't crowded out by treble. The thin caps are peak-hold markers that decay slowly; the dashed line is the current average level across the whole spectrum."}),w.jsx(Ns,{controls:y,onReset:()=>xMe.forEach(i)})]})]}),w.jsxs("div",{className:"chart-frame__freq-range","aria-hidden":"true",children:[w.jsx("span",{children:n[0]??"â"}),w.jsx("span",{children:n[n.length-1]??"â"})]})]})}const TMe=["heatmapRows","heatmapIntervalMs"],eB="#33f9ff",j5="#7a1bff",kMe="rgba(255, 60, 220, 0.18)",EMe="#0b0417",CMe=["#2e034a","#9d0ead","#ec1895","#ff5a82","#d2fffa"],RMe={fontFamilyDefault:"'Share Tech Mono', ui-monospace, monospace",legendBackground:"#160a2e",legendBorderColor:eB,legendTextColor:"#c9a8ff"},LMe=$a({tokens:{graphBackground:EMe,gridLineColor:kMe,textPrimary:eB,textSecondary:"#c9a8ff"},defaults:[ge.panelBorder({color:j5,strokeWidth:1.5,lineType:"solid",borderRadius:14}),ge.graph({borderColor:j5,borderWidth:0,borderRadius:14})]});function DMe({heatmap:e,binLabels:t,settings:n,setSetting:r,resetSetting:a}){var y;const i=((y=e[0])==null?void 0:y.length)??0,o=e.length,c=E.useMemo(()=>Array.from({length:i},(x,S)=>`b${S}`),[i]),u=E.useMemo(()=>{const x=n.heatmapIntervalMs/1e3;return Array.from({length:o},(S,A)=>`-${((o-A)*x).toFixed(1)}s`)},[o,n.heatmapIntervalMs]),f=E.useMemo(()=>({Tooltip:JI(t)}),[t]),m=E.useMemo(()=>qa(Wa({x:"bin",y:"row",color:"magnitude"}),rn.tile({dataLabels:{showDataLabels:!1}}),Bt.x.discrete({domain:c,padding:0}),Bt.y.discrete({domain:u,padding:0}),Bt.color.continuous({domainMin:0,domainMax:255,nice:!1,range:CMe}),Fa({legend:{position:"right"},axes:{x:{isVisible:!1},y:{isVisible:!0,ticks:{isVisible:!0,mode:"edges"},grid:{isVisible:!1}}},content:{isTitleVisible:!1,brandMark:{enabled:!1}},layout:{padding:{top:16,right:10,bottom:10,left:10}}}),LMe),[c,u]),p=E.useMemo(()=>{const x=[];for(let S=0;S<o;S++){const A=e[S],M=u[S];for(let C=0;C<i;C++)x.push({bin:c[C],row:M,magnitude:A[C]})}return{columns:[{key:"bin"},{key:"row"},{key:"magnitude",label:"Level"}],rows:x}},[e,o,i,c,u]),g=[{type:"slider",key:"heatmapRows",label:"History depth",min:10,max:100,step:5,value:n.heatmapRows,onChange:x=>r("heatmapRows",x),format:x=>`${x} rows`},{type:"slider",key:"heatmapIntervalMs",label:"Row interval",min:30,max:300,step:10,value:n.heatmapIntervalMs,onChange:x=>r("heatmapIntervalMs",x),format:x=>`${x}ms`}];return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"chart-wrap",children:[w.jsxs("div",{className:"chart-frame",children:[w.jsx("div",{className:"chart-frame__scanlines","aria-hidden":"true"}
101),w.jsx(ji,{data:p,input:m,colorScheme:"dark",themeOverrides:RMe,children:w.jsx(Xa,{sizing:{mode:"responsive"},animation:!1,showTooltips:!0,slots:f})})]}),w.jsxs("div",{className:"chart-toolbar",children:[w.jsx(Ka,{children:"The same frequency data as the Spectrum chart, scrolling: each row is one instant, newest at the bottom, older rows scrolling up and fading into history. Vertical streaks show a frequency that's been sustained; diagonal streaks show a sweep."}),w.jsx(Ns,{controls:g,onReset:()=>TMe.forEach(a)})]})]}),w.jsxs("div",{className:"chart-frame__freq-range","aria-hidden":"true",children:[w.jsx("span",{children:t[0]??"â"}),w.jsx("span",{children:t[t.length-1]??"â"})]})]})}const NMe=["waveformPoints","triggerEnabled","oscilloscopeChannel"],jMe=[{value:"mix",label:"Mix"},{value:"left",label:"Left"},{value:"right",label:"Right"}],OMe="#39ff8f",_Me="#33f9ff",O5="#7a1bff",IMe="rgba(255, 60, 220, 0.18)",BMe="#0b0417",zMe={fontFamilyDefault:"'Share Tech Mono', ui-monospace, monospace"},VMe=$a({tokens:{graphBackground:BMe,gridLineColor:IMe,textPrimary:_Me,textSecondary:"#c9a8ff"},defaults:[ge.geom({color:OMe}),ge.geom.line({strokeWidth:2.5,lineType:"solid"}),ge.panelBorder({color:O5,strokeWidth:1.5,lineType:"solid",borderRadius:14}),ge.graph({borderColor:O5,borderWidth:0,borderRadius:14}),ge.geom.rule({color:"rgba(51, 249, 255, 0.35)",strokeWidth:1,lineType:"dashed"},{layer:"center-line"})]});function PMe({waveform:e,sampleRate:t,settings:n,setSetting:r,resetSetting:a}){const i=e.length,o=E.useMemo(()=>Array.from({length:i},(p,g)=>`s${g}`),[i]),c=E.useMemo(()=>t<=0?0:(n.oscilloscopeChannel==="mix"?n.fftSize:n.correlationFftSize)/t*1e3,[t,n.oscilloscopeChannel,n.fftSize,n.correlationFftSize]),u=E.useMemo(()=>qa(Wa({x:"sample",y:"amplitude"}),rn.line({params:{interpolate:"linear"}}),rn.rule({id:"center-line",aes:{y:{value:128}}}),Bt.x.discrete({domain:o,padding:0}),Bt.y.continuous({domainMin:0,domainMax:255,nice:!1}),Fa({legend:{position:"none"},axes:{x:{isVisible:!1},y:{isVisible:!1}},content:{isTitleVisible:!1,brandMark:{enabled:!1}},layout:{padding:{top:16,right:10,bottom:10,left:10}}}),VMe),[o]),f=E.useMemo(()=>({columns:[{key:"sample"},{key:"amplitude",label:"Amplitude"}],rows:e.map((p,g)=>({sample:o[g],amplitude:p}))}),[e,o]),m=[{type:"select-string",key:"oscilloscopeChannel",label:"Channel",options:jMe,value:n.oscilloscopeChannel,onChange:p=>r("oscilloscopeChannel",p)},{type:"toggle",key:"triggerEnabled",label:"Trigger / sync",value:n.triggerEnabled,onChange:p=>r("triggerEnabled",p)},{type:"select",key:"waveformPoints",label:"Resolution",options:[128,256,512,1024,2048],value:n.waveformPoints,onChange:p=>r("waveformPoints",p)}];return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"chart-wrap",children:[w.jsxs("div",{className:"chart-frame",children:[w.jsx("div",{className:"chart-frame__scanlines","aria-hidden":"true"}),w.jsx(ji,{data:f,input:u,colorScheme:"dark",themeOverrides:zMe,children:w.jsx(Xa,{sizing:{mode:"responsive"},animation:!1,showTooltips:!1})})]}),w.jsxs("div",{className:"chart-toolbar",children:[w.jsx(Ka,{children:"The raw waveform â amplitude over a short window, straight-line segments between actual samples (no smoothing). Shows the shape of what's playing right now, the same way analog test equipment would. Channel switches between the downmixed signal and either stereo channel alone (useful for spotting a problem on just one side). Trigger/sync locks the display to the first rising edge each frame, like a real scope, so a periodic signal holds still instead of jittering left-right."}),w.jsx(Ns,{controls:m,onReset:()=>NMe.forEach(a)})]})]}),w.jsxs("div",{className:"chart-frame__freq-range","aria-hidden":"true",children:[w.jsxs("span",{children:["-",c.toFixed(1),"ms"]}),w.jsx("span",{children:"0ms"})]})]})}const _5="#ffb020",$Me="#33f9ff",I5="#7a1bff",B5="rgba(255, 60, 220, 0.18)",FMe="#0b0417",HMe={Tooltip:cA},UMe={fontFamilyDefault:"'Share Tech Mono', ui-monospace, monospace",tooltipBackground:"#160a2e",tooltipBorderColor:$Me,tooltipValueTextColor:"#f2fffe"}
101,GMe=$a({tokens:{graphBackground:FMe,gridLineColor:B5,textPrimary:_5,textSecondary:"#c9a8ff"},defaults:[ge.geom({color:_5}),ge.geom.area({alpha:.35,strokeWidth:2.5,strokeAlpha:1}),ge.gridLine({color:B5,strokeWidth:1,lineType:"dashed"}),ge.panelBorder({color:I5,strokeWidth:1.5,lineType:"solid",borderRadius:14}),ge.graph({borderColor:I5,borderWidth:0,borderRadius:14})]});function YMe({bandLevels:e,bandNames:t}){const n=E.useMemo(()=>qa(Wa({x:"band",y:"level"}),rn.area({params:{interpolate:"linear",missingValues:"zero"}}),Z1.polar({theta:"x"}),Bt.x.discrete({domain:t,padding:0}),Bt.y.continuous({domainMin:0,domainMax:255,nice:!1}),Fa({legend:{position:"none"},axes:{x:{isVisible:!0,ticks:{isVisible:!0},grid:{isVisible:!0}},y:{isVisible:!0,ticks:{isVisible:!1},grid:{isVisible:!0}}},content:{isTitleVisible:!1,brandMark:{enabled:!1}},layout:{padding:{top:16,right:10,bottom:10,left:10}}}),GMe),[t]),r=E.useMemo(()=>({columns:[{key:"band"},{key:"level",label:"Level"}],rows:t.map((a,i)=>({band:a,level:e[i]??0}))}),[e,t]);return w.jsxs("div",{className:"chart-wrap",children:[w.jsxs("div",{className:"chart-frame",children:[w.jsx("div",{className:"chart-frame__scanlines","aria-hidden":"true"}),w.jsx(ji,{data:r,input:n,colorScheme:"dark",themeOverrides:UMe,children:w.jsx(Xa,{sizing:{mode:"responsive"},animation:!1,showTooltips:!0,slots:HMe})})]}),w.jsx(Ka,{children:"The spectrum collapsed into the 7 frequency bands audio engineers use for EQ, plotted as a radar chart. A shape bulged toward one axis means that band is currently dominant; a full, even shape means energy is balanced across the range."})]})}const tB="#33f9ff",z5="#7a1bff",V5="rgba(255, 60, 220, 0.18)",WMe="#0b0417",qMe=Array.from({length:12},(e,t)=>`hsl(${t*30}, 90%, 62%)`),XMe={Tooltip:cA},KMe={fontFamilyDefault:"'Share Tech Mono', ui-monospace, monospace",tooltipBackground:"#160a2e",tooltipBorderColor:tB,tooltipValueTextColor:"#f2fffe"},QMe=$a({tokens:{graphBackground:WMe,gridLineColor:V5,textPrimary:tB,textSecondary:"#c9a8ff"},defaults:[ge.geom.bar({borderRadius:"sm"}),ge.gridLine.y({color:V5,strokeWidth:1,lineType:"dashed"}),ge.panelBorder({color:z5,strokeWidth:1.5,lineType:"solid",borderRadius:14}),ge.graph({borderColor:z5,borderWidth:0,borderRadius:14})]});function ZMe({chromaLevels:e,noteNames:t}){const n=E.useMemo(()=>qa(Wa({x:"note",y:"level",color:"note"}),rn.bar({params:{width:.85}}),Bt.x.discrete({domain:t,padding:.15}),Bt.color.discrete({domain:t,range:qMe}),Bt.y.continuous({domainMin:0,domainMax:255,nice:!1}),Fa({legend:{position:"none"},axes:{x:{isVisible:!0,ticks:{isVisible:!0},grid:{isVisible:!1}},y:{isVisible:!0,grid:{isVisible:!0},ticks:{isVisible:!1}}},content:{isTitleVisible:!1,brandMark:{enabled:!1}},layout:{padding:{top:16,right:10,bottom:10,left:10}}}),QMe),[t]),r=E.useMemo(()=>({columns:[{key:"note"},{key:"level",label:"Level"}],rows:t.map((a,i)=>({note:a,level:e[i]??0}))}),[e,t]);return w.jsxs("div",{className:"chart-wrap",children:[w.jsxs("div",{className:"chart-frame",children:[w.jsx("div",{className:"chart-frame__scanlines","aria-hidden":"true"}),w.jsx(ji,{data:r,input:n,colorScheme:"dark",themeOverrides:KMe,children:w.jsx(Xa,{sizing:{mode:"responsive"},animation:!1,showTooltips:!0,slots:XMe})})]}),w.jsx(Ka,{children:"Every frequency bin folded onto the 12 musical pitch classes (C through B), regardless of octave â a music-theory view of what notes are sounding, rather than a physics view of what frequencies are loud. Each note keeps a fixed color around the wheel."})]})}function R1(e){if(!Number.isFinite(e)||e<0)return"0:00";const t=Math.floor(e/60),n=Math.floor(e%60).toString().padStart(2,"0");return`${t}:${n}`}const JMe=["loudnessPoints","loudnessGain"],P5="#33f9ff",eTe="rgba(51, 249, 255, 0.5)",$5="#7a1bff",tTe="rgba(255, 60, 220, 0.18)",nTe="#0b0417",rTe={fontFamilyDefault:"'Share Tech Mono', ui-monospace, monospace"},aTe=$a({tokens:{graphBackground:nTe,gridLineColor:tTe,textPrimary:P5,textSecondary:"#c9a8ff"},defaults:[ge.geom({color:eTe},{layer:"full"}),ge.geom.area({alpha:.18,strokeWidth:1.5,strokeAlpha:.4},{layer:"full"}),ge.geom({color:P5},{layer:"played"}),ge.geom.area({alpha:.5,strokeWidth:2.5,strokeAlpha:1},{layer:"played"}),ge.panelBorder({color:$5,strokeWidth:1.5,lineType:"solid",borderRadius:14}),ge.graph({borderColor:$5,borderWidth:0,borderRadius:14})]});function iTe({loudnessHistory:e,currentTime:t,duration:n,settings:r,setSetting:a,resetSetting:i}){const o=e.length,c=E.useMemo(()=>Array.from({length:o},(g,y)=>y),[o]),u=E.useMemo(()=>
101{if(n<=0)return 0;const g=Math.min(1,Math.max(0,t/n));return Math.round(g*(o-1))},[t,n,o]),f=E.useMemo(()=>qa(Wa({x:"pointIndex",y:"level"}),rn.area({id:"full",params:{interpolate:"catmull-rom",missingValues:"zero"},interactive:!1}),rn.area({id:"played",params:{interpolate:"catmull-rom",missingValues:"zero"},transforms:[bf.filter({variableName:"pointIndex",operator:"lte",value:u})],interactive:!1}),Bt.x.discrete({domain:c,padding:0}),Bt.y.continuous({domainMin:0,domainMax:255,nice:!1}),Fa({legend:{position:"none"},axes:{x:{isVisible:!1},y:{isVisible:!1}},content:{isTitleVisible:!1,brandMark:{enabled:!1}},layout:{padding:{top:16,right:10,bottom:10,left:10}}}),aTe),[c,u]),m=E.useMemo(()=>({columns:[{key:"pointIndex"},{key:"level",label:"Level"}],rows:e.map((g,y)=>({pointIndex:y,level:g}))}),[e]),p=[{type:"slider",key:"loudnessPoints",label:"Resolution",min:60,max:800,step:20,value:r.loudnessPoints,onChange:g=>a("loudnessPoints",g),format:g=>`${g} pts`},{type:"slider",key:"loudnessGain",label:"Display gain",min:1,max:10,step:.5,value:r.loudnessGain,onChange:g=>a("loudnessGain",g),format:g=>`${g.toFixed(1)}Ã`}];return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"chart-wrap",children:[w.jsxs("div",{className:"chart-frame",children:[w.jsx("div",{className:"chart-frame__scanlines","aria-hidden":"true"}),w.jsx(ji,{data:m,input:f,colorScheme:"dark",themeOverrides:rTe,children:w.jsx(Xa,{sizing:{mode:"responsive"},animation:!1,showTooltips:!1})})]}),w.jsxs("div",{className:"chart-toolbar",children:[w.jsx(Ka,{children:"The whole track's loudness (RMS) from start to finish, analyzed once up front â not just the last few seconds. The bright portion shows how much you've listened to so far; the dim portion is what's still ahead, so you can see quiet and loud sections of the whole song at a glance."}),w.jsx(Ns,{controls:p,onReset:()=>JMe.forEach(i)})]})]}),w.jsxs("div",{className:"chart-frame__freq-range","aria-hidden":"true",children:[w.jsx("span",{children:"0:00"}),w.jsx("span",{children:R1(n)})]})]})}const sTe=["correlationFftSize","correlationSmoothing"],nB="#33f9ff",F5="#7a1bff",H5="#ff2b5e",oTe="rgba(255, 60, 220, 0.18)",lTe="#0b0417",cTe={fontFamilyDefault:"'Share Tech Mono', ui-monospace, monospace"},uTe=$a({tokens:{graphBackground:lTe,gridLineColor:oTe,textPrimary:nB,textSecondary:"#c9a8ff"},defaults:[ge.geom.bar({borderRadius:"sm"}),ge.panelBorder({color:F5,strokeWidth:1.5,lineType:"solid",borderRadius:14}),ge.graph({borderColor:F5,borderWidth:0,borderRadius:14}),ge.geom.rule({color:"rgba(240, 246, 255, 0.6)",strokeWidth:1.5,lineType:"solid"},{layer:"zero"})]});function dTe({correlation:e,settings:t,setSetting:n,resetSetting:r}){const a=Math.max(-1,Math.min(1,e)),i=E.useMemo(()=>qa(Wa({x:"metric",y:"value",color:"value"}),rn.bar({params:{width:.55}}),rn.rule({id:"zero",aes:{y:{value:0}}}),Z1.flip(),Bt.x.discrete({domain:["Correlation"],padding:.3}),Bt.color.continuous({domainMin:-1,domainMax:1,domainMid:0,range:[H5,nB]}),Bt.y.continuous({domainMin:-1,domainMax:1,nice:!1}),rse.shape({region:{anchorType:"panel",x:0,y:0,width:.5,height:1},zOrder:"background",fillColor:H5,fillOpacity:.1,strokeWidth:0}),Fa({legend:{position:"none"},axes:{x:{isVisible:!1},y:{isVisible:!0,ticks:{isVisible:!0},grid:{isVisible:!0}}},content:{isTitleVisible:!1,brandMark:{enabled:!1}},numberFormat:{decimals:2},layout:{padding:{top:16,right:16,bottom:10,left:16}}}),uTe),[]),o=E.useMemo(()=>({columns:[{key:"metric"},{key:"value",label:"Correlation"}],rows:[{metric:"Correlation",value:a}]}),[a]),c=[{type:"select",key:"correlationFftSize",label:"FFT size",options:[256,512,1024,2048,4096],value:t.correlationFftSize,onChange:u=>n("correlationFftSize",u)},{type:"slider",key:"correlationSmoothing",label:"Needle smoothing",min:.02,max:.9,step:.02,value:t.correlationSmoothing,onChange:u=>n("correlationSmoothing",u),format:u=>u.toFixed(2)}];return w.jsxs("div",{className:"chart-wrap",children:[w.jsxs("div",{className:"chart-frame chart-frame--meter",children:[w.jsx("div",{className:"chart-frame__scanlines","aria-hidden":"true"}),w.jsx(ji,{data:o,input:i,colorScheme:"dark",themeOverrides:cTe,children:w.jsx(Xa,{sizing:{mode:"responsive"},animation:!1,showTooltips:!1})})]}),w.jsxs("div",{className:"chart-toolbar",children:[w.jsx(Ka,{children:"Measures how similar the left and right channels are, from -1 to +1. +1 means identical (mono-safe); 0 means unrelated; negative values (shaded red) mean the channels partly cancel when summed to mono â a mixing problem worth watching for."}),w.jsx(Ns,{controls:c,onReset:()=>sTe.forEach(r)})]})]})}function fTe(e,t){var n,r=1;e==null&&(e=0),t==null&&(t=0);function a(){var i,o=n.length,c,u=0,f=0;for(i=0;i<o;++i)c=n[i],u+=c.x,f+=c.y;for(u=(u/o-e)*r,f=(f/o-t)*r,i=0;i<o;++i)c=n[i],c.x-=u,c.y-=f}return a.initialize=function(i){n=i},a.x=function(i){return arguments.length?(e=+i,a):e},a.y=function(i){return arguments.length?(t=+i,a):t},a.strength=function(i){return arguments.length?(r=+i,a):r},a}function hTe(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return rB(this.cover(t,n),t,n,e)}function rB(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var a,i=e._root,o={data:r},c=e._x0,u=e._y0,f=e._x1,m=e._y1,p,g,y,x,S,A,M,C;if(!i)return e._root=o,e;
vendor: 3,948 bytes, line 101
101for(;i.length;)if((S=t>=(p=(c+f)/2))?c=p:f=p,(A=n>=(g=(u+m)/2))?u=g:m=g,a=i,!(i=i[M=A<<1|S]))return a[M]=o,e;if(y=+e._x.call(null,i.data),x=+e._y.call(null,i.data),t===y&&n===x)return o.next=i,a?a[M]=o:e._root=o,e;do a=a?a[M]=new Array(4):e._root=new Array(4),(S=t>=(p=(c+f)/2))?c=p:f=p,(A=n>=(g=(u+m)/2))?u=g:m=g;while((M=A<<1|S)===(C=(x>=g)<<1|y>=p));return a[C]=i,a[M]=o,e}function mTe(e){var t,n,r=e.length,a,i,o=new Array(r),c=new Array(r),u=1/0,f=1/0,m=-1/0,p=-1/0;for(n=0;n<r;++n)isNaN(a=+this._x.call(null,t=e[n]))||isNaN(i=+this._y.call(null,t))||(o[n]=a,c[n]=i,a<u&&(u=a),a>m&&(m=a),i<f&&(f=i),i>p&&(p=i));if(u>m||f>p)return this;for(this.cover(u,f).cover(m,p),n=0;n<r;++n)rB(this,o[n],c[n],e[n]);return this}function pTe(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,a=this._x1,i=this._y1;if(isNaN(n))a=(n=Math.floor(e))+1,i=(r=Math.floor(t))+1;else{for(var o=a-n||1,c=this._root,u,f;n>e||e>=a||r>t||t>=i;)switch(f=(t<r)<<1|e<n,u=new Array(4),u[f]=c,c=u,o*=2,f){case 0:a=n+o,i=r+o;break;case 1:n=a-o,i=r+o;break;case 2:a=n+o,r=i-o;break;case 3:n=a-o,r=i-o;break}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=a,this._y1=i,this}function gTe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function yTe(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function Bn(e,t,n,r,a){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=a}function bTe(e,t,n){var r,a=this._x0,i=this._y0,o,c,u,f,m=this._x1,p=this._y1,g=[],y=this._root,x,S;for(y&&g.push(new Bn(y,a,i,m,p)),n==null?n=1/0:(a=e-n,i=t-n,m=e+n,p=t+n,n*=n);x=g.pop();)if(!(!(y=x.node)||(o=x.x0)>m||(c=x.y0)>p||(u=x.x1)<a||(f=x.y1)<i))if(y.length){var A=(o+u)/2,M=(c+f)/2;g.push(new Bn(y[3],A,M,u,f),new Bn(y[2],o,M,A,f),new Bn(y[1],A,c,u,M),new Bn(y[0],o,c,A,M)),(S=(t>=M)<<1|e>=A)&&(x=g[g.length-1],g[g.length-1]=g[g.length-1-S],g[g.length-1-S]=x)}else{var C=e-+this._x.call(null,y.data),R=t-+this._y.call(null,y.data),L=C*C+R*R;if(L<n){var N=Math.sqrt(n=L);a=e-N,i=t-N,m=e+N,p=t+N,r=y.data}}return r}function vTe(e){if(isNaN(m=+this._x.call(null,e))||isNaN(p=+this._y.call(null,e)))return this;var t,n=this._root,r,a,i,o=this._x0,c=this._y0,u=this._x1,f=this._y1,m,p,g,y,x,S,A,M;if(!n)return this;if(n.length)for(;;){if((x=m>=(g=(o+u)/2))?o=g:u=g,(S=p>=(y=(c+f)/2))?c=y:f=y,t=n,!(n=n[A=S<<1|x]))return this;if(!n.length)break;(t[A+1&3]||t[A+2&3]||t[A+3&3])&&(r=t,M=A)}for(;n.data!==e;)if(a=n,!(n=n.next))return this;return(i=n.next)&&delete n.next,a?(i?a.next=i:delete a.next,this):t?(i?t[A]=i:delete t[A],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[M]=n:this._root=n),this):(this._root=i,this)}function xTe(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function wTe(){return this._root}function STe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function ATe(e){var t=[],n,r=this._root,a,i,o,c,u;for(r&&t.push(new Bn(r,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(r=n.node,i=n.x0,o=n.y0,c=n.x1,u=n.y1)&&r.length){var f=(i+c)/2,m=(o+u)/2;(a=r[3])&&t.push(new Bn(a,f,m,c,u)),(a=r[2])&&t.push(new Bn(a,i,m,f,u)),(a=r[1])&&t.push(new Bn(a,f,o,c,m)),(a=r[0])&&t.push(new Bn(a,i,o,f,m))}return this}function MTe(e){var t=[],n=[],r;for(this._root&&t.push(new Bn(this._root,this._x0,this._y0,this._x1,this._y1));r=t.pop();){var a=r.node;if(a.length){var i,o=r.x0,c=r.y0,u=r.x1,f=r.y1,m=(o+u)/2,p=(c+f)/2;(i=a[0])&&t.push(new Bn(i,o,c,m,p)),(i=a[1])&&t.push(new Bn(i,m,c,u,p)),(i=a[2])&&t.push(new Bn(i,o,p,m,f)),(i=a[3])&&t.push(new Bn(i,m,p,u,f))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.y0,r.x1,r.y1);return this}function TTe(e){return e[0]}function kTe(e){return arguments.length?(this._x=e,this):this._x}function ETe(e){return e[1]}function CTe(e){return arguments.length?(this._y=e,this):this._y}
101function aB(e,t,n){var r=new uA(t??TTe,n??ETe,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function uA(e,t,n,r,a,i){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=a,this._y1=i,this._root=void 0}function U5(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Un=aB.prototype=uA.prototype;Un.copy=function(){var e=new uA(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=U5(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var a=0;a<4;++a)(r=t.source[a])&&(r.length?n.push({source:r,target:t.target[a]=new Array(4)}):t.target[a]=U5(r));return e};Un.add=hTe;Un.addAll=mTe;Un.cover=pTe;Un.data=gTe;Un.extent=yTe;Un.find=bTe;Un.remove=vTe;Un.removeAll=xTe;Un.root=wTe;Un.size=STe;Un.visit=ATe;Un.visitAfter=MTe;Un.x=kTe;Un.y=CTe;function $d(e){return function(){return e}}function vc(e){return(e()-.5)*1e-6}function RTe(e){return e.index}function G5(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function LTe(e){var t=RTe,n=p,r,a=$d(30),i,o,c,u,f,m=1;e==null&&(e=[]);function p(A){return 1/Math.min(c[A.source.index],c[A.target.index])}function g(A){for(var M=0,C=e.length;M<m;++M)for(var R=0,L,N,O,$,T,j,_;R<C;++R)L=e[R],N=L.source,O=L.target,$=O.x+O.vx-N.x-N.vx||vc(f),T=O.y+O.vy-N.y-N.vy||vc(f),j=Math.sqrt($*$+T*T),j=(j-i[R])/j*A*r[R],$*=j,T*=j,O.vx-=$*(_=u[R]),O.vy-=T*_,N.vx+=$*(_=1-_),N.vy+=T*_}function y(){if(o){var A,M=o.length,C=e.length,R=new Map(o.map((N,O)=>[t(N,O,o),N])),L;for(A=0,c=new Array(M);A<C;++A)L=e[A],L.index=A,typeof L.source!="object"&&(L.source=G5(R,L.source)),typeof L.target!="object"&&(L.target=G5(R,L.target)),c[L.source.index]=(c[L.source.index]||0)+1,c[L.target.index]=(c[L.target.index]||0)+1;for(A=0,u=new Array(C);A<C;++A)L=e[A],u[A]=c[L.source.index]/(c[L.source.index]+c[L.target.index]);r=new Array(C),x(),i=new Array(C),S()}}function x(){if(o)for(var A=0,M=e.length;A<M;++A)r[A]=+n(e[A],A,e)}function S(){if(o)for(var A=0,M=e.length;A<M;++A)i[A]=+a(e[A],A,e)}return g.initialize=function(A,M){o=A,f=M,y()},g.links=function(A){return arguments.length?(e=A,y(),g):e},g.id=function(A){return arguments.length?(t=A,g):t},g.iterations=function(A){return arguments.length?(m=+A,g):m},g.strength=function(A){return arguments.length?(n=typeof A=="function"?A:$d(+A),x(),g):n},g.distance=function(A){return arguments.length?(a=typeof A=="function"?A:$d(+A),S(),g):a},g}var DTe={value:()=>{}};function iB(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new op(n)}function op(e){this._=e}function NTe(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",a=n.indexOf(".");if(a>=0&&(r=n.slice(a+1),n=n.slice(0,a)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}op.prototype=iB.prototype={constructor:op,on:function(e,t){var n=this._,r=NTe(e+"",n),a,i=-1,o=r.length;if(arguments.length<2){for(;++i<o;)if((a=(e=r[i]).type)&&(a=jTe(n[a],e.name)))return a;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++i<o;)if(a=(e=r[i]).type)n[a]=Y5(n[a],e.name,t);else if(t==null)for(a in n)n[a]=Y5(n[a],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new op(e)},call:function(e,t){if((a=arguments.length-2)>0)for(var n=new Array(a),r=0,a,i;r<a;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],r=0,a=i.length;r<a;++r)i[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],a=0,i=r.length;a<i;++a)r[a].value.apply(t,n)}};function jTe(e,t){for(var n=0,r=e.length,a;n<r;++n)if((a=e[n]).name===t)return a.value}function Y5(e,t,n){for(var r=0,a=e.length;r<a;++r)if(e[r].name===t){e[r]=DTe,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Yc=0,Md=0,yd=0,sB=1e3,tg,Td,ng=0,Po=0,oy=0,ff=typeof performance=="object"&&performance.now?performance:Date,oB=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function lB(){return Po||(oB(OTe),Po=ff.now()+oy)}function OTe(){Po=0}function L1(){this._call=this._time=this._next=null}L1.prototype=cB.prototype={constructor:L1,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?lB():+n)+(t==null?0:+t),!this._next&&Td!==this&&(Td?Td._next=this:tg=this,Td=this),this._call=e,this._time=n,D1()},stop:function(){this._call&&(this._call=null,this._time=1/0,D1())}};function cB(e,t,n){var r=new L1;return r.restart(e,t,n),r}function _Te(){lB(),++Yc;for(var e=tg,t;e;)(t=Po-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Yc}function W5(){Po=(ng=ff.now())+oy,Yc=Md=0;try{_Te()}finally{Yc=0,BTe(),Po=0}}function ITe(){var e=ff.now(),t=e-ng;t>sB&&(oy-=t,ng=e)}function BTe(){for(var e,t=tg,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:tg=n);Td=e,D1(r)}
101function D1(e){if(!Yc){Md&&(Md=clearTimeout(Md));var t=e-Po;t>24?(e<1/0&&(Md=setTimeout(W5,e-ff.now()-oy)),yd&&(yd=clearInterval(yd))):(yd||(ng=ff.now(),yd=setInterval(ITe,sB)),Yc=1,oB(W5))}}const zTe=1664525,VTe=1013904223,q5=4294967296;function PTe(){let e=1;return()=>(e=(zTe*e+VTe)%q5)/q5}function $Te(e){return e.x}function FTe(e){return e.y}var HTe=10,UTe=Math.PI*(3-Math.sqrt(5));function GTe(e){var t,n=1,r=.001,a=1-Math.pow(r,1/300),i=0,o=.6,c=new Map,u=cB(p),f=iB("tick","end"),m=PTe();e==null&&(e=[]);function p(){g(),f.call("tick",t),n<r&&(u.stop(),f.call("end",t))}function g(S){var A,M=e.length,C;S===void 0&&(S=1);for(var R=0;R<S;++R)for(n+=(i-n)*a,c.forEach(function(L){L(n)}),A=0;A<M;++A)C=e[A],C.fx==null?C.x+=C.vx*=o:(C.x=C.fx,C.vx=0),C.fy==null?C.y+=C.vy*=o:(C.y=C.fy,C.vy=0);return t}function y(){for(var S=0,A=e.length,M;S<A;++S){if(M=e[S],M.index=S,M.fx!=null&&(M.x=M.fx),M.fy!=null&&(M.y=M.fy),isNaN(M.x)||isNaN(M.y)){var C=HTe*Math.sqrt(.5+S),R=S*UTe;M.x=C*Math.cos(R),M.y=C*Math.sin(R)}(isNaN(M.vx)||isNaN(M.vy))&&(M.vx=M.vy=0)}}function x(S){return S.initialize&&S.initialize(e,m),S}return y(),t={tick:g,restart:function(){return u.restart(p),t},stop:function(){return u.stop(),t},nodes:function(S){return arguments.length?(e=S,y(),c.forEach(x),t):e},alpha:function(S){return arguments.length?(n=+S,t):n},alphaMin:function(S){return arguments.length?(r=+S,t):r},alphaDecay:function(S){return arguments.length?(a=+S,t):+a},alphaTarget:function(S){return arguments.length?(i=+S,t):i},velocityDecay:function(S){return arguments.length?(o=1-S,t):1-o},randomSource:function(S){return arguments.length?(m=S,c.forEach(x),t):m},force:function(S,A){return arguments.length>1?(A==null?c.delete(S):c.set(S,x(A)),t):c.get(S)},find:function(S,A,M){var C=0,R=e.length,L,N,O,$,T;for(M==null?M=1/0:M*=M,C=0;C<R;++C)$=e[C],L=S-$.x,N=A-$.y,O=L*L+N*N,O<M&&(T=$,M=O);return T},on:function(S,A){return arguments.length>1?(f.on(S,A),t):f.on(S)}}}function YTe(){var e,t,n,r,a=$d(-30),i,o=1,c=1/0,u=.81;function f(y){var x,S=e.length,A=aB(e,$Te,FTe).visitAfter(p);for(r=y,x=0;x<S;++x)t=e[x],A.visit(g)}function m(){if(e){var y,x=e.length,S;for(i=new Array(x),y=0;y<x;++y)S=e[y],i[S.index]=+a(S,y,e)}}function p(y){var x=0,S,A,M=0,C,R,L;if(y.length){for(C=R=L=0;L<4;++L)(S=y[L])&&(A=Math.abs(S.value))&&(x+=S.value,M+=A,C+=A*S.x,R+=A*S.y);y.x=C/M,y.y=R/M}else{S=y,S.x=S.data.x,S.y=S.data.y;do x+=i[S.data.index];while(S=S.next)}y.value=x}function g(y,x,S,A){if(!y.value)return!0;var M=y.x-t.x,C=y.y-t.y,R=A-x,L=M*M+C*C;if(R*R/u<L)return L<c&&(M===0&&(M=vc(n),L+=M*M),C===0&&(C=vc(n),L+=C*C),L<o&&(L=Math.sqrt(o*L)),t.vx+=M*y.value*r/L,t.vy+=C*y.value*r/L),!0;if(y.length||L>=c)return;(y.data!==t||y.next)&&(M===0&&(M=vc(n),L+=M*M),C===0&&(C=vc(n),L+=C*C),L<o&&(L=Math.sqrt(o*L)));do y.data!==t&&(R=i[y.data.index]*r/L,t.vx+=M*R,t.vy+=C*R);while(y=y.next)}return f.initialize=function(y,x){e=y,n=x,m()},f.strength=function(y){return arguments.length?(a=typeof y=="function"?y:$d(+y),m(),f):a},f.distanceMin=function(y){return arguments.length?(o=y*y,f):Math.sqrt(o)},f.distanceMax=function(y){return arguments.length?(c=y*y,f):Math.sqrt(c)},f.theta=function(y){return arguments.length?(u=y*y,f):Math.sqrt(u)},f}const uB=.005,WTe=.5,X5=.5,qTe=Math.PI*(3-Math.sqrt(5));class XTe{constructor(t,n,r){se(this,"simulation");se(this,"simNodes");se(this,"options");this.options=r,this.simNodes=KTe(t,r.width,r.height);const a=n.map(i=>({source:i.sourceIndex,target:i.targetIndex}));this.simulation=GTe(this.simNodes).force("charge",YTe().strength(-r.chargeStrength)).force("link",LTe(a).distance(r.linkDistance).strength(WTe)).force("center",fTe(r.width/2,r.height/2)).alphaMin(uB).stop()}get alpha(){return this.simulation.alpha()}get positions(){return this.simNodes}tick(){this.simulation.tick();const{margin:t,width:n,height:r}=this.options;for(const a of this.simNodes)a.x=$m(a.x,t,n-t),a.y=$m(a.y,t,r-t)}reheat(){this.simulation.alpha()<X5&&this.simulation.alpha(X5)}startDrag(t,n,r){this.pin(t,n,r),this.reheat()}drag(t,n,r){this.pin(t,n,r),this.reheat()}endDrag(t){const n=this.simNodes[t];n&&(n.fx=null,n.fy=null)}resize(t,n){const r=this.options.width>0?t/this.options.width:1,a=this.options.height>0?n/this.options.height:1;for(const m of this.simNodes)m.x*=r,m.y*=a,m.fx!==null&&m.fx!==void 0&&(m.fx*=r),m.fy!==null&&m.fy!==void 0&&(m.fy*=a);const i=Math.min(this.options.width,this.options.height),o=Math.min(t,n),c=i>0?this.options.linkDistance*o/i:this.options.linkDistance,u=this.simulation.force("link");u==null||u.distance(c),this.options={...this.options,width:t,height:n,linkDistance:c};const f=this.simulation.force("center");f==null||f.x(t/2).y(n/2),this.reheat()}pin(t,n,r){const a=this.simNodes[t];
101if(!a)return;const{margin:i,width:o,height:c}=this.options;a.fx=$m(n,i,o-i),a.fy=$m(r,i,c-i)}}function KTe(e,t,n){const r=t/2,a=n/2,i=Math.min(t,n)*.18,o=[];for(let c=0;c<e;c+=1){const u=i*Math.sqrt(.5+c),f=c*qTe;o.push({x:r+u*Math.cos(f),y:a+u*Math.sin(f)})}return o}function $m(e,t,n){return n<t?t:Math.min(n,Math.max(t,e))}const Rt={kind:"kind",markId:"markId",label:"label",value:"value",node:"node",sourceIndex:"sourceIndex",targetIndex:"targetIndex"};class QTe extends Ya{constructor(){super(...arguments);se(this,"type","forceDirected");se(this,"defaultParams",{chargeStrength:320,linkDistance:.24,nodeColor:"#eafcff",edgeColor:"#ffd166"});se(this,"identityKey",{variable:Rt.markId});se(this,"supportedCoordTypes",["cartesian"]);se(this,"highlightStrategy",null);se(this,"aesthetics",[{kind:"data",name:"source",required:!0},{kind:"data",name:"target",required:!0},{kind:"data",name:"value",required:!0}]);se(this,"derivedVariables",["node"]);se(this,"tooltip",[{key:"Note",aes:"label"},{key:"Strength",aes:"value"}]);se(this,"spatialKind","render-hit-test")}compile({data:n,mapping:r}){const a=JTe(ZTe(n,r));return{data:yK([{kind:"node",observations:a.nodes.map(o=>({[Rt.markId]:`node:${o.name}`,[Rt.label]:o.name,[Rt.value]:o.value,[Rt.node]:o.name}))},{kind:"edge",observations:a.edges.map(o=>({[Rt.markId]:o.markId,[Rt.label]:o.label,[Rt.value]:o.value,[Rt.node]:o.node,[Rt.sourceIndex]:o.sourceIndex,[Rt.targetIndex]:o.targetIndex}))}],Rt.kind),mapping:{label:{variable:Rt.label},value:{variable:Rt.value}}}}}function ZTe(e,t){const n=pe(t.source),r=pe(t.target),a=pe(t.value),i=n?e.getValues(n):[],o=r?e.getValues(r):[],c=a?e.getValues(a):[],u=[];for(let f=0;f<i.length;f+=1){const m=i[f],p=o[f],g=c[f];typeof m=="string"&&typeof p=="string"&&typeof g=="number"&&u.push({source:m,target:p,value:g})}return u}function JTe(e){const t=new Map,n=[];for(const o of e)for(const c of[o.source,o.target])t.has(c)||(t.set(c,n.length),n.push(c));const r=new Array(n.length).fill(0),a=[];return e.forEach((o,c)=>{const u=t.get(o.source),f=t.get(o.target);u===void 0||f===void 0||(r[u]=(r[u]??0)+o.value,r[f]=(r[f]??0)+o.value,a.push({markId:`edge:${o.source}->${o.target}#${c}`,label:`${o.source} â ${o.target}`,value:o.value,node:o.source,sourceIndex:u,targetIndex:f}))}),{nodes:n.map((o,c)=>({name:o,value:r[c]??0})),edges:a}}const K5=4,dB=13,Q5=1,eke=3.5,tke=14,Z5="constellation-glow";function nke(e){const t=[],n=[];for(const r of e)switch(md(r,Rt.kind)){case"node":t.push({markId:md(r,Rt.markId),label:md(r,Rt.label),value:Lm(r,Rt.value)});break;case"edge":n.push({markId:md(r,Rt.markId),label:md(r,Rt.label),value:Lm(r,Rt.value),sourceIndex:Lm(r,Rt.sourceIndex),targetIndex:Lm(r,Rt.targetIndex)});break}return{nodes:t,edges:n}}const rke=({layer:e,rect:t,pushHover:n})=>{const{nodes:r,edges:a}=E.useMemo(()=>nke(e.data),[e.data]),i=e.params;return w.jsx(ake,{rect:t,pushHover:n,nodes:r,edges:a,params:i})},ake=({rect:e,pushHover:t,nodes:n,edges:r,params:a})=>{var $;const i=E.useRef(null),o=E.useRef(null),c=E.useRef(null),u=E.useRef(e);u.current=e;const[,f]=E.useState(0),[m,p]=E.useState(null),g=E.useCallback(()=>{const T=i.current;if(!T){o.current=null;return}T.tick(),f(j=>j+1),o.current=T.alpha>uB||c.current!==null?requestAnimationFrame(g):null},[]),y=E.useCallback(()=>{o.current===null&&(o.current=requestAnimationFrame(g))},[g]);E.useEffect(()=>{const T=r.map(P=>({sourceIndex:P.sourceIndex,targetIndex:P.targetIndex})),{width:j,height:_}=u.current;return i.current=new XTe(n.length,T,{width:j,height:_,chargeStrength:a.chargeStrength,linkDistance:a.linkDistance*Math.min(j,_),margin:dB+2}),y(),()=>{o.current!==null&&cancelAnimationFrame(o.current),o.current=null,c.current=null}},[n,r,a.chargeStrength,a.linkDistance,y]),E.useEffect(()=>{const T=i.current;T&&(T.resize(e.width,e.height),y())},[e.width,e.height,y]);const x=E.useCallback(T=>{var _;const j=Number(T.currentTarget.dataset.index);T.currentTarget.setPointerCapture(T.pointerId),c.current=j,(_=i.current)==null||_.startDrag(j,T.clientX-u.current.left,T.clientY-u.current.top),y()},[y]),S=E.useCallback(T=>{var P;const j=Number(T.currentTarget.dataset.index);c.current===j&&((P=i.current)==null||P.drag(j,T.clientX-u.current.left,T.clientY-u.current.top),y()),p({kind:"node",index:j});const _=n[j];_&&t(_.markId,{clientX:T.clientX,clientY:T.clientY})},[y,n,t]),A=E.useCallback(T=>{var _;const j=Number(T.currentTarget.dataset.index);c.current===j&&((_=i.current)==null||_.endDrag(j),c.current=null,y())},[y]),M=E.useCallback(T=>{const j=Number(T.currentTarget.dataset.index);p({kind:"edge",index:j});const _=r[j];_&&t(_.markId,{clientX:T.clientX,clientY:T.clientY})},[r,t]),C=E.useCallback(()=>{c.current===null&&(p(null),t(null))},[t]),R=(($=i.current)==null?void 0:$.positions)??[],L=E.useMemo(()=>n.reduce((T,j)=>Math.max(T,j.value),1),[n]),N=E.useMemo(()=>r.reduce((T,j)=>Math.max(T,j.value),1),[r]),O=E.useMemo(()=>ike(m,r),[m,r]);return w.jsxs("svg",{width:e.width,height:e.height,style:{pointerEvents:"none",overflow:"visible"},children:[w.jsx("defs",{children:w.jsxs("filter",{id:Z5,x:"-100%",y:"-100%",width:"300%",height:"300%",children:[w.jsx("feGaussianBlur",{stdDeviation:"3",result:"blurred"}),w.jsxs("feMerge",{children:[w.jsx("feMergeNode",{in:"blurred"}),w.jsx("feMergeNode",{in:"SourceGraphic"})]})]})}),w.jsxs("g",{filter:`url(#${Z5})`,children:[r.map((T,j)=>{const _=R[T.sourceIndex],P=R[T.targetIndex];if(!_||!P)return null;const U=O.edges?O.edges.has(j):!0;return w.jsxs("g",{children:[w.jsx("line",{x1:_.x,y1:_.y,x2:P.x,y2:P.y,stroke:a.edgeColor,strokeWidth:e3(T.value,N),strokeOpacity:U?.65:.1,strokeLinecap:"round"}),w.jsx("line",{x1:_.x,y1:_.y,x2:P.x,y2:P.y,stroke:"transparent",strokeWidth:Math.max(e3(T.value,N),tke),"data-index":j,style:{pointerEvents:"stroke",cursor:"pointer"},onPointerMove:M,onPointerLeave:C})]},T.markId)}),n.map((T,j)=>{const _=R[j];if(!_)return null;const P=O.nodes?O.nodes.has(j):!0,U=c.current===j;return w.jsx("circle",{"data-index":j,cx:_.x,cy:_.y,r:J5(T.value,L),fill:a.nodeColor,fillOpacity:P?1:.25,style:{pointerEvents:"all",curs
101or:U?"grabbing":"grab"},onPointerDown:x,onPointerMove:S,onLostPointerCapture:A,onPointerLeave:C},T.markId)})]}),n.map((T,j)=>{const _=R[j];if(!_)return null;const P=O.nodes?O.nodes.has(j):!0;return w.jsx("text",{x:_.x,y:_.y-J5(T.value,L)-5,textAnchor:"middle",fontSize:10,fontFamily:"'Share Tech Mono', monospace",fill:"#c9a8ff",fillOpacity:P?1:.2,pointerEvents:"none",children:T.label},`label:${T.markId}`)})]})};function ike(e,t){if(!e)return{nodes:null,edges:null};const n=new Set,r=new Set;if(e.kind==="node")n.add(e.index),t.forEach((a,i)=>{a.sourceIndex!==e.index&&a.targetIndex!==e.index||(r.add(i),n.add(a.sourceIndex),n.add(a.targetIndex))});else{r.add(e.index);const a=t[e.index];a&&(n.add(a.sourceIndex),n.add(a.targetIndex))}return{nodes:n,edges:r}}function J5(e,t){const n=Math.min(1,Math.max(0,e/t));return K5+Math.sqrt(n)*(dB-K5)}function e3(e,t){const n=Math.min(1,Math.max(0,e/t));return Q5+n*(eke-Q5)}const Fm=gMe({plugins:[ny(new QTe,{coord:"cartesian",render:{fn:({layer:e,overlay:t})=>w.jsx(rke,{layer:e,rect:t.panelRect,pushHover:t.pushHover}),options:{overlay:!0}},renderHover:()=>null,renderHoverCompanions:()=>null})]}),ske=["constellationIntervalMs","peakMinMagnitude","peakMaxFreq","maxPeaks","maxHarmonicNumber","harmonicTolerance","chargeStrength","linkDistance"],t3="#7a1bff",oke="#33f9ff",lke="#0b0417",cke={Tooltip:cA},uke={fontFamilyDefault:"'Share Tech Mono', ui-monospace, monospace",tooltipBackground:"#160a2e",tooltipBorderColor:oke,tooltipValueTextColor:"#f2fffe"},dke=$a({tokens:{graphBackground:lke},defaults:[ge.panelBorder({color:t3,strokeWidth:1.5,lineType:"solid",borderRadius:14}),ge.graph({borderColor:t3,borderWidth:0,borderRadius:14})]});function fke({edges:e,settings:t,setSetting:n,resetSetting:r}){const a=E.useMemo(()=>Fm.pipe(Fm.createSpec({}),Fm.geom.forceDirected({aes:{source:"source",target:"target",value:"value"},params:{chargeStrength:t.chargeStrength,linkDistance:t.linkDistance}}),Fa({legend:{position:"none"}}),dke),[t.chargeStrength,t.linkDistance]),i=E.useMemo(()=>{const c=e.length>0?e.map(u=>({source:u.source,target:u.target,value:u.value})):[{source:"â",target:"â",value:0}];return{columns:[{key:"source"},{key:"target"},{key:"value",label:"Strength"}],rows:c}},[e]),o=[{type:"slider",key:"constellationIntervalMs",label:"Update interval",min:100,max:2e3,step:50,value:t.constellationIntervalMs,onChange:c=>n("constellationIntervalMs",c),format:c=>`${c}ms`},{type:"slider",key:"peakMinMagnitude",label:"Min peak magnitude",min:10,max:150,step:2,value:t.peakMinMagnitude,onChange:c=>n("peakMinMagnitude",c)},{type:"slider",key:"peakMaxFreq",label:"Max frequency",min:500,max:15e3,step:100,value:t.peakMaxFreq,onChange:c=>n("peakMaxFreq",c),format:c=>`${c}Hz`},{type:"slider",key:"maxPeaks",label:"Max peaks",min:4,max:30,step:1,value:t.maxPeaks,onChange:c=>n("maxPeaks",c)},{type:"slider",key:"maxHarmonicNumber",label:"Max harmonic",min:2,max:16,step:1,value:t.maxHarmonicNumber,onChange:c=>n("maxHarmonicNumber",c)},{type:"slider",key:"harmonicTolerance",label:"Harmonic tolerance",min:.01,max:.15,step:.005,value:t.harmonicTolerance,onChange:c=>n("harmonicTolerance",c),format:c=>c.toFixed(3)},{type:"slider",key:"chargeStrength",label:"Node repulsion",min:50,max:800,step:10,value:t.chargeStrength,onChange:c=>n("chargeStrength",c)},{type:"slider",key:"linkDistance",label:"Link distance",min:.05,max:.6,step:.01,value:t.linkDistance,onChange:c=>n("linkDistance",c),format:c=>c.toFixed(2)}];return w.jsxs("div",{className:"chart-wrap",children:[w.jsxs("div",{className:"chart-frame",children:[w.jsx("div",{className:"chart-frame__scanlines","aria-hidden":"true"}),w.jsx(Fm.GraphProvider,{data:i,input:a,colorScheme:"dark",themeOverrides:uke,children:w.jsx(Xa,{sizing:{mode:"responsive"},animation:!1,showTooltips:!0,slots:cke})})]}),w.jsxs("div",{className:"chart-toolbar",children:[w.jsx(Ka,{children:"Detects the loudest frequency peaks and draws a line between any two whose frequencies are close to a small whole-number ratio (2Ã, 3Ã, ...) â the harmonic series that gives a sound its timbre. Nodes drift under live physics; the layout resettles every ~600ms as the harmonic content changes."}),w.jsx(Ns,{controls:o,onReset:()=>ske.forEach(r)})]})]})}const hke="#4dd2ff";function mke({layer:e,trailLengthRef:t}){const n=E.useRef([]),r=E.useRef(null),a=t.current;if(e.data!==r.current){r.current=e.data;const o=[];for(const c of e.data){const u=it(c),f=et(c);u===null||f===null||o.push({x:u,y:aa(f)})}n.current=[...n.current,o].slice(-a)}const i=n.current;return w.jsx(lA,{children:i.map((o,c)=>{if(o.length<2)return null;const u=i.length-1-c,f=Math.max(.04,1-u/a)**1.6,m=o.map((p,g)=>`${g===0?"M":"L"}${p.x},${p.y}`).join(" ");return w.jsx("path",{d:m,fill:"none",stroke:hke,strokeWidth:u===0?.006:.004,strokeOpacity:f,strokeLinejoin:"round",strokeLinecap:"round"},c)})})}function pke(e){return ny("line",{coord:"cartesian",guideMode:null,render:({layer:t})=>w.jsx(mke,{layer:t,trailLengthRef:e}),renderHover:()=>null,renderHoverCompanions:()=>null})}const gke=["vectorscopePoints","trailLength"],n3="#7a1bff",r3="rgba(122, 27, 255, 0.55)",yke="#0b0417",bke={fontFamilyDefault:"'Share Tech Mono', ui-monospace, monospace"}
101,vke=$a({tokens:{graphBackground:yke},defaults:[ge.panelBorder({color:n3,strokeWidth:1.5,lineType:"solid",borderRadius:14}),ge.graph({borderColor:n3,borderWidth:0,borderRadius:14}),ge.geom.rule({color:r3,strokeWidth:1,lineType:"dashed"},{layer:"x-zero"}),ge.geom.rule({color:r3,strokeWidth:1,lineType:"dashed"},{layer:"y-zero"})]}),xke=qa(Wa({x:"left",y:"right"}),rn.line({params:{interpolate:"linear",missingValues:"zero"}}),rn.rule({id:"x-zero",aes:{x:{value:0}}}),rn.rule({id:"y-zero",aes:{y:{value:0}}}),Bt.x.continuous({domainMin:-1,domainMax:1,nice:!1,clamp:!0}),Bt.y.continuous({domainMin:-1,domainMax:1,nice:!1,clamp:!0}),Fa({legend:{position:"none"},axes:{x:{isVisible:!1},y:{isVisible:!1}},content:{isTitleVisible:!1,brandMark:{enabled:!1}},layout:{padding:{top:10,right:10,bottom:10,left:10}}}),vke);function wke({points:e,settings:t,setSetting:n,resetSetting:r}){const a=E.useMemo(()=>({columns:[{key:"left"},{key:"right",label:"Right"}],rows:e.map(u=>({left:u.left,right:u.right}))}),[e]),i=E.useRef(t.trailLength);i.current=t.trailLength;const o=E.useMemo(()=>[pke(i)],[]),c=[{type:"select",key:"vectorscopePoints",label:"Resolution",options:[64,128,256,512],value:t.vectorscopePoints,onChange:u=>n("vectorscopePoints",u)},{type:"slider",key:"trailLength",label:"Trail length",min:1,max:20,step:1,value:t.trailLength,onChange:u=>n("trailLength",u),format:u=>`${u} sweeps`}];return w.jsxs("div",{className:"chart-wrap chart-wrap--square",children:[w.jsxs("div",{className:"chart-frame",children:[w.jsx("div",{className:"chart-frame__scanlines","aria-hidden":"true"}),w.jsx(ji,{data:a,input:xke,colorScheme:"dark",themeOverrides:bke,plugins:o,children:w.jsx(Xa,{sizing:{mode:"responsive"},animation:!1,showTooltips:!1})})]}),w.jsxs("div",{className:"chart-toolbar",children:[w.jsx(Ka,{children:"Plots the left channel against the right, sample by sample. A diagonal line (bottom-left to top-right) means mono content; a circle means the channels are 90° out of phase; a line running the other way means they're inverted and will cancel in mono."}),w.jsx(Ns,{controls:c,onReset:()=>gke.forEach(r)})]})]})}function Ske(e){const t=Math.max(0,Math.min(1,e)),n=Math.round(46+209*t),r=Math.round(3+57*t),a=Math.round(74+140*t);return{fill:`rgba(11, 4, 23, ${.75+.2*t})`,stroke:`rgb(${n}, ${r}, ${a})`}}function Ake(e,t){return ny("bar",{coord:"cartesian",guideMode:null,render:({layer:n,coordSystem:r})=>{if(r.type!=="cartesian")return null;const a=r.mainAxis,i=e.current;if(i.length===0)return null;const{ridgeTop:o,ridgeBottom:c,ridgeHeight:u}=t.current,f=[];for(const g of n.data){const y=Ss(a,g);y&&f.push({x:y.x,width:y.width})}if(f.length===0)return null;const m=i.length,p=[];for(let g=0;g<m;g++){const y=i[g],x=m>1?g/(m-1):1,S=o+x*(c-o),{fill:A,stroke:M}=Ske(x),C=f.map(($,T)=>{const j=$.x+$.width/2,_=y[T]??0,P=Math.max(0,Math.min(255,_))/255;return{x:j,y:S-P*u}}),R=f[0].x,L=f[f.length-1],N=L.x+L.width,O=`M${R},${S} `+C.map($=>`L${$.x},${$.y}`).join(" ")+` L${N},${S} Z`;p.push(w.jsx("path",{d:O,fill:A,stroke:M,strokeWidth:.0022,strokeOpacity:.2+.7*x},g))}return w.jsx(lA,{children:p})},renderHover:()=>null,renderHoverCompanions:()=>null})}const Mke=["ridgeHeight","ridgeTop","ridgeBottom"],a3="#7a1bff",Tke="#0b0417",kke={fontFamilyDefault:"'Share Tech Mono', ui-monospace, monospace"},Eke=$a({tokens:{graphBackground:Tke},defaults:[ge.panelBorder({color:a3,strokeWidth:1.5,lineType:"solid",borderRadius:14}),ge.graph({borderColor:a3,borderWidth:0,borderRadius:14})]});function Cke({heatmap:e,binLabels:t,settings:n,setSetting:r,resetSetting:a}){var y;const i=((y=e[0])==null?void 0:y.length)??0,o=E.useMemo(()=>Array.from({length:i},(x,S)=>`b${S}`),[i]),c=E.useRef(e);c.current=e;const u=E.useRef({ridgeTop:n.ridgeTop,ridgeBottom:n.ridgeBottom,ridgeHeight:n.ridgeHeight});u.current={ridgeTop:n.ridgeTop,ridgeBottom:n.ridgeBottom,ridgeHeight:n.ridgeHeight};const f=E.useMemo(()=>[Ake(c,u)],[]),m=E.useMemo(()=>qa(Wa({x:"bin",y:"level"}),rn.bar({params:{width:1}}),Bt.x.discrete({domain:o,padding:0}),Bt.y.continuous({domainMin:0,domainMax:255,nice:!1}),Fa({legend:{position:"none"},axes:{x:{isVisible:!1},y:{isVisible:!1}},content:{isTitleVisible:!1,brandMark:{enabled:!1}},layout:{padding:{top:10,right:10,bottom:10,left:10}}}),Eke),[o]),p=E.useMemo(()=>{const x=e[e.length-1]??new Array(i).fill(0);return{columns:[{key:"bin"},{key:"level"}],rows:x.map((S,A)=>({bin:o[A],level:S}))}},[e,o,i]),g=[{type:"slider",key:"ridgeHeight",label:"Peak height",min:.05,max:.4,step:.01,value:n.ridgeHeight,onChange:x=>r("ridgeHeight",x),format:x=>x.toFixed(2)},{type:"slider",key:"ridgeTop",label:"Top margin",min:0,max:.4,step:.01,value:n.ridgeTop,onChange:x=>r("ridgeTop",x),format:x=>x.toFixed(2)},{type:"slider",key:"ridgeBottom",label:"Bottom margin",min:.6,max:.98,step:.01,value:n.ridgeBottom,onChange:x=>r("ridgeBottom",x),format:x=>x.toFixed(2)}];return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"chart-wrap",children:[w.jsxs("div",{className:"chart-frame",children:[w.jsx("div",{className:"chart-frame__scanlines","aria-hidden":"true"}
101),w.jsx(ji,{data:p,input:m,colorScheme:"dark",themeOverrides:kke,plugins:f,children:w.jsx(Xa,{sizing:{mode:"responsive"},animation:!1,showTooltips:!1})})]}),w.jsxs("div",{className:"chart-toolbar",children:[w.jsx(Ka,{children:"The exact same spectrogram history as the Waterfall chart above, drawn as overlapping silhouettes instead of a color grid â nearer (more recent) ridges occlude the ones behind them, so the shape of the last few seconds reads like a mountain range receding into the distance."}),w.jsx(Ns,{controls:g,onReset:()=>Mke.forEach(a)})]})]}),w.jsxs("div",{className:"chart-frame__freq-range","aria-hidden":"true",children:[w.jsx("span",{children:t[0]??"â"}),w.jsx("span",{children:t[t.length-1]??"â"})]})]})}const Rke=[{id:"time",label:"Time Domain"},{id:"spectral",label:"Spectral Analysis"},{id:"stereo",label:"Stereo Imaging"},{id:"tonal",label:"Tonal & Harmonic"},{id:"dynamics",label:"Program Dynamics"}];function Lke({bars:e,peaks:t,binLabels:n,heatmap:r,settings:a,setSetting:i,resetSetting:o}){return w.jsxs(w.Fragment,{children:[w.jsx("h2",{className:"section-label",children:"Spectrum"}),w.jsx(MMe,{bars:e,peaks:t,binLabels:n,settings:a,setSetting:i,resetSetting:o}),w.jsxs("h2",{className:"section-label",children:["Waterfall â last ",(a.heatmapRows*a.heatmapIntervalMs/1e3).toFixed(1),"s"]}),w.jsx(DMe,{heatmap:r,binLabels:n,settings:a,setSetting:i,resetSetting:o}),w.jsx("h2",{className:"section-label",children:"Ridgeline Waterfall"}),w.jsx(Cke,{heatmap:r,binLabels:n,settings:a,setSetting:i,resetSetting:o})]})}function Dke({phaseCorrelation:e,vectorscope:t,settings:n,setSetting:r,resetSetting:a}){return w.jsxs(w.Fragment,{children:[w.jsx("h2",{className:"section-label",children:"Phase Correlation"}),w.jsx(dTe,{correlation:e,settings:n,setSetting:r,resetSetting:a}),w.jsx("h2",{className:"section-label",children:"Vectorscope"}),w.jsx(wke,{points:t,settings:n,setSetting:r,resetSetting:a})]})}function Nke({waveform:e,sampleRate:t,settings:n,setSetting:r,resetSetting:a}){return w.jsxs(w.Fragment,{children:[w.jsx("h2",{className:"section-label",children:"Oscilloscope"}),w.jsx(PMe,{waveform:e,sampleRate:t,settings:n,setSetting:r,resetSetting:a})]})}function jke({bandLevels:e,chromaLevels:t,constellationEdges:n,settings:r,setSetting:a,resetSetting:i}){return w.jsxs(w.Fragment,{children:[w.jsx("h2",{className:"section-label",children:"Band Balance"}),w.jsx(YMe,{bandLevels:e,bandNames:NV}),w.jsx("h2",{className:"section-label",children:"Chromagram"}),w.jsx(ZMe,{chromaLevels:t,noteNames:Wv}),w.jsx("h2",{className:"section-label",children:"Harmonic Constellation"}),w.jsx(fke,{edges:n,settings:r,setSetting:a,resetSetting:i})]})}function Oke({loudnessHistory:e,currentTime:t,duration:n,settings:r,setSetting:a,resetSetting:i}){return w.jsxs(w.Fragment,{children:[w.jsx("h2",{className:"section-label",children:"Track Loudness"}),w.jsx(iTe,{loudnessHistory:e,currentTime:t,duration:n,settings:r,setSetting:a,resetSetting:i})]})}function _ke(){const{audioRef:e,isPlaying:t,duration:n,currentTime:r,volume:a,fileName:i,bars:o,peaks:c,heatmap:u,waveform:f,sampleRate:m,bandLevels:p,loudnessHistory:g,chromaLevels:y,phaseCorrelation:x,vectorscope:S,constellationEdges:A,binLabels:M,error:C,settings:R,setSetting:L,resetSetting:N,sourceMode:O,setSourceMode:$,isMicActive:T,inputDevices:j,selectedDeviceId:_,selectDevice:P,startMic:U,stopMic:W,loadFile:q,loadUrl:ne,play:B,pause:G,seek:F,setVolume:ee}=$V(),he=E.useRef(null),[z,Z]=E.useState("time");return E.useEffect(()=>{O==="mic"&&z==="dynamics"&&Z("spectral")},[O,z]),E.useEffect(()=>{const re=me=>{if(!me)return!1;if(me.tagName==="TEXTAREA")return!0;if(me.tagName==="INPUT"){const ve=me.type;return!["range","checkbox","radio","button","submit","file","color"].includes(ve)}return me.isContentEditable},ue=me=>{if(me.code!=="Space"||re(document.activeElement))return;if(me.preventDefault(),O==="mic"){T?W():U();return}const ve=e.current;!ve||!i||(ve.ended?(F(0),B()):ve.paused?B():G())};return window.addEventListener("keydown",ue),()=>window.removeEventListener("keydown",ue)},[e,i,B,G,F,O,T,U,W]),w.jsxs("div",{className:"app",children:[w.jsxs("header",{children:[w.jsx("h1",{children:"Graphy Audio Visualizer"}),w.jsx("p",{children:"Load a .wav file and explore its spectral, stereo, tonal, and dynamic character in real time."})]}),w.jsx("audio",{ref:e}),w.jsxs("section",{className:"controls",children:[w.jsxs("nav",{className:"tab-bar source-switch",role:"tablist","aria-label":"Audio source",children:[w.jsx("button",{type:"button",role:"tab","aria-selected":O==="file",className:`tab-bar__button${O==="file"?" tab-bar__button--active":""}`,onClick:()=>$("file"),children:"File"}),w.jsx("button",{type:"button",role:"tab","aria-selected":O==="mic",className:`tab-bar__button${O==="mic"?" tab-bar__button--active":""}`,onClick:()=>$("mic"),children:"Microphone"})]}),O==="file"?w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"row",children:[w.jsx("button",{onClick:()=>{var re;return(re=he.current)==null?void 0:re.click()},children:"Load .wavâ¦"}),w.jsx("button",{className:"ghost",onClick:()=>ne("/test-tone.wav","test-tone.wav"),children:"Use test tone"}),w.jsx("button",{className:"ghost",onClick:()=>ne("/phase-test.wav","phase-test.wav"),children:"Use phase test"}),w.jsx("input",{ref:he,type:"file",accept:"audio/wav,audio/x-wav,audio/*",style:{display:"none"},onChange:re=>{var me;const ue=(me=re.target.files)==null?void 0:me[0];ue&&q(ue),re.target.value=""}}),w.jsx("span",{className:"filename",children:i??"No file loaded"})]}),w.jsxs("div",{className:"row transport",children:[w.jsx("button",{className:"play",onClick:()=>t?G():B(),disabled:!i,children:t?"â¸":"â¶"}),w.jsx("span",{className:"time",children:R1(r)}),w.jsx("input",{type:"range",min:0,max:n||0,step:.01,value:r,onChange:re=>F(Number(re.target.value)),disabled:!n,className:"seek"}),w.jsx("span",{className:"time",children:R1(n)}),w.jsxs("label",{className:"volume",children:["Vol",w.jsx("input",{type:"range",min:0,max:1,step:.
10101,value:a,onChange:re=>ee(Number(re.target.value))})]})]})]}):w.jsxs("div",{className:"row mic-row",children:[w.jsx("button",{type:"button",className:`play${T?" play--recording":""}`,onClick:()=>T?W():void U(),children:T?"â¹":"â"}),w.jsxs("select",{className:"mic-select",value:_,onChange:re=>P(re.target.value),"aria-label":"Input device",children:[w.jsx("option",{value:"default",children:"System default"}),j.map((re,ue)=>w.jsx("option",{value:re.deviceId,children:re.label||`Microphone ${ue+1}`},re.deviceId))]}),T?w.jsxs("span",{className:"mic-status",children:[w.jsx("span",{className:"mic-live-dot","aria-hidden":"true"}),"Listening"]}):w.jsx("span",{className:"mic-hint",children:"Never sent to your speakers â analysis only."})]})]}),C&&w.jsx("p",{className:"error",children:C}),w.jsx("nav",{className:"tab-bar",role:"tablist","aria-label":"Chart group",children:Rke.map(re=>{const ue=re.id==="dynamics"&&O==="mic";return w.jsx("button",{type:"button",role:"tab","aria-selected":z===re.id,disabled:ue,title:ue?"Needs a finite file â switch to File mode to see it":void 0,className:`tab-bar__button${z===re.id?" tab-bar__button--active":""}`,onClick:()=>Z(re.id),children:re.label},re.id)})}),z==="spectral"&&w.jsx(Lke,{bars:o,peaks:c,binLabels:M,heatmap:u,settings:R,setSetting:L,resetSetting:N}),z==="stereo"&&w.jsx(Dke,{phaseCorrelation:x,vectorscope:S,settings:R,setSetting:L,resetSetting:N}),z==="time"&&w.jsx(Nke,{waveform:f,sampleRate:m,settings:R,setSetting:L,resetSetting:N}),z==="tonal"&&w.jsx(jke,{bandLevels:p,chromaLevels:y,constellationEdges:A,settings:R,setSetting:L,resetSetting:N}),z==="dynamics"&&w.jsx(Oke,{loudnessHistory:g,currentTime:r,duration:n,settings:R,setSetting:L,resetSetting:N})]})}LV.createRoot(document.getElementById("root")).render(w.jsx(E.StrictMode,{children:w.jsx(_ke,{})}))});export default Ike();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.