vendor: 20,407 bytes, lines 1-3
1var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.6`})),u=o(((e,t)=>{t.exports=l()})),d=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t=u();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.6`})),m=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=p()})),h=o((e=>{var t=f(),n=u(),r=m();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function d(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var N=Symbol.for(`react.client.reference`);function P(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===N?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?P(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return P(e(t))}catch{}}return null}var F=Array.isArray,I=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R={pending:!1,data:null,method:null,action:null},z=[],B=-1;function V(e){return{current:e}}function H(e){0>B||(e.current=z[B],z[B]=null,B--)}function U(e,t){B++,z[B]=e.current,e.current=t}var ee=V(null),W=V(null),te=V(null),ne=V(null);function re(e,t){switch(U(te,t),U(W,e),U(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ud(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ud(t),e=Wd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}H(ee),U(ee,e)}function ie(){H(ee),H(W),H(te)}function ae(e){e.memoizedState!==null&&U(ne,e);var t=ee.current,n=Wd(t,e.type);t!==n&&(U(W,e),U(ee,n))}function G(e){W.current===e&&(H(ee),H(W)),ne.current===e&&(H(ne),Qf._currentValue=R)}var oe,K;function se(e){if(oe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);oe=t&&t[1]||``,K=-1<e.stack.indexOf(` 2 at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return` 3`+oe+e+K}var ce=!1;function le(e,t){if(!e||ce)return``;ce=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}
vendor: 6,582 bytes, lines 3-8
3else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(` 4`),l=s.split(` 5`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=` 6`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ce=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?se(n):``}function ue(e,t){switch(e.tag){case 26:case 27:case 5:return se(e.type);case 16:return se(`Lazy`);case 13:return e.child!==t&&t!==null?se(`Suspense Fallback`):se(`Suspense`);case 19:return se(`SuspenseList`);case 0:case 15:return le(e.type,!1);case 11:return le(e.type.render,!1);case 1:return le(e.type,!0);case 31:return se(`Activity`);default:return``}}function de(e){try{var t=``,n=null;do t+=ue(e,n),n=e,e=e.return;while(e);return t}catch(e){return` 7Error generating stack: `+e.message+` 8`+e.stack}}var fe=Object.prototype.hasOwnProperty,pe=t.unstable_scheduleCallback,me=t.unstable_cancelCallback,he=t.unstable_shouldYield,ge=t.unstable_requestPaint,_e=t.unstable_now,ve=t.unstable_getCurrentPriorityLevel,ye=t.unstable_ImmediatePriority,be=t.unstable_UserBlockingPriority,xe=t.unstable_NormalPriority,Se=t.unstable_LowPriority,Ce=t.unstable_IdlePriority,we=t.log,Te=t.unstable_setDisableYieldValue,Ee=null,De=null;function Oe(e){if(typeof we==`function`&&Te(e),De&&typeof De.setStrictMode==`function`)try{De.setStrictMode(Ee,e)}catch{}}var ke=Math.clz32?Math.clz32:Me,Ae=Math.log,je=Math.LN2;function Me(e){return e>>>=0,e===0?32:31-(Ae(e)/je|0)|0}var Ne=256,Pe=262144,Fe=4194304;function Ie(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Le(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ie(n))):i=Ie(o):i=Ie(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ie(n))):i=Ie(o)):i=Ie(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Re(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ze(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Be(){var e=Fe;return Fe<<=1,!(Fe&62914560)&&(Fe=4194304),e}function Ve(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function He(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ue(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-ke(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&We(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function We(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ke(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ge(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ke(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Ke(e,t){var n=t&-t;return n=n&42?1:qe(n),(n&(e.suspendedLanes|t))===0?n:0}function qe(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Je(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Ye(){var e=L.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function Xe(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var Ze=Math.random().toString(36).slice(2),Qe=`__reactFiber$`+Ze,$e=`__reactProps$`+Ze,et=`__reactContainer$`+Ze,tt=`__reactEvents$`+Ze,nt=`__reactListeners$`+Ze,rt=`__reactHandles$`+Ze,it=`__reactResources$`+Ze,at=`__reactMarker$`+Ze;function ot(e){delete e[Qe],delete e[$e],delete e[tt],delete e[nt],delete e[rt]}function st(e){var t=e[Qe];if(t)return t;for(var n=e.parentNode;n;){if(t=n[et]||n[Qe]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ff(e);e!==null;){if(n=e[Qe])return n;e=ff(e)}return t}e=n,n=e.parentNode}return null}function ct(e){if(e=e[Qe]||e[et]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function lt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function ut(e){var t=e[it];return t||=e[it]={hoistableStyles:new Map,hoistableScripts:new Map},t}function dt(e){e[at]=!0}var ft=new Set,pt={};function mt(e,t){ht(e,t),ht(e+`Capture`,t)}function ht(e,t){for(pt[e]=t,e=0;e<t.length;e++)ft.add(t[e])}var gt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
8037D\\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]*$`),_t={},vt={};function yt(e){return fe.call(vt,e)?!0:fe.call(_t,e)?!1:gt.test(e)?vt[e]=!0:(_t[e]=!0,!1)}function bt(e,t,n){if(yt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function xt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function St(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Ct(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function wt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Tt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Et(e){if(!e._valueTracker){var t=wt(e)?`checked`:`value`;e._valueTracker=Tt(e,t,``+e[t])}}function Dt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=wt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Ot(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var kt=/[\n"\\]/g;function At(e){return e.replace(kt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function jt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Ct(t)):e.value!==``+Ct(t)&&(e.value=``+Ct(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Nt(e,o,Ct(n)):Nt(e,o,Ct(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Ct(s):e.removeAttribute(`name`)}function Mt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Et(e);return}n=n==null?``:``+Ct(n),t=t==null?n:``+Ct(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Et(e)}function Nt(e,t,n){t===`number`&&Ot(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Pt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Ct(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ft(e,t,n){if(t!=null&&(t=``+Ct(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Ct(n)}function It(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(F(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}
vendor: 9,508 bytes, line 8
8n=Ct(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Et(e)}function Lt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Rt=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 zt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Rt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Bt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&zt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&zt(e,o,t[o])}function Vt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Ht=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`],[`colorRendering`,`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`]]),Ut=/^[\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 Wt(e){return Ut.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Gt(){}var Kt=null;function qt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jt=null,Yt=null;function Xt(e){var t=ct(e);if(t&&(e=t.stateNode)){var n=e[$e]||null;a:switch(e=t.stateNode,t.type){case`input`:if(jt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+At(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[$e]||null;if(!a)throw Error(i(90));jt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Dt(r)}break a;case`textarea`:Ft(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Pt(e,!!n.multiple,t,!1)}}}var Zt=!1;function Qt(e,t,n){if(Zt)return e(t,n);Zt=!0;try{return e(t)}finally{if(Zt=!1,(Jt!==null||Yt!==null)&&(yu(),Jt&&(t=Jt,e=Yt,Yt=Jt=null,Xt(t),e)))for(t=0;t<e.length;t++)Xt(e[t])}}function $t(e,t){var n=e.stateNode;if(n===null)return null;var r=n[$e]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var en=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),tn=!1;if(en)try{var nn={};Object.defineProperty(nn,`passive`,{get:function(){tn=!0}}),window.addEventListener(`test`,nn,nn),window.removeEventListener(`test`,nn,nn)}catch{tn=!1}var rn=null,an=null,on=null;function sn(){if(on)return on;var e,t=an,n=t.length,r,i=`value`in rn?rn.value:rn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return on=i.slice(e,1<r?1-r:void 0)}function cn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ln(){return!0}function un(){return!1}function dn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?ln:un,this.isPropagationStopped=un,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=ln)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=ln)},persist:function(){},isPersistent:ln}),t}var fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=dn(fn),mn=h({},fn,{view:0,detail:0}),hn=dn(mn),gn,_n,vn,yn=h({},mn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:An,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==vn&&(vn&&e.type===`mousemove`?(gn=e.screenX-vn.screenX,_n=e.screenY-vn.screenY):_n=gn=0,vn=e),gn)},movementY:function(e){return`movementY`in e?e.movementY:_n}}),bn=dn(yn),xn=dn(h({},yn,{dataTransfer:0})),Sn=dn(h({},mn,{relatedTarget:0})),Cn=dn(h({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=dn(h({},fn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Tn=dn(h({},fn,{data:0})),En={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Dn={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:`F
85`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},On={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=On[e])?!!t[e]:!1}function An(){return kn}var jn=dn(h({},mn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=cn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Dn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:An,charCode:function(e){return e.type===`keypress`?cn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?cn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Mn=dn(h({},yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=dn(h({},mn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:An})),Pn=dn(h({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Fn=dn(h({},yn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),In=dn(h({},fn,{newState:0,oldState:0})),Ln=[9,13,27,32],Rn=en&&`CompositionEvent`in window,zn=null;en&&`documentMode`in document&&(zn=document.documentMode);var Bn=en&&`TextEvent`in window&&!zn,Vn=en&&(!Rn||zn&&8<zn&&11>=zn),Hn=` `,Un=!1;function Wn(e,t){switch(e){case`keyup`:return Ln.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Gn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Kn=!1;function qn(e,t){switch(e){case`compositionend`:return Gn(t);case`keypress`:return t.which===32?(Un=!0,Hn):null;case`textInput`:return e=t.data,e===Hn&&Un?null:e;default:return null}}function Jn(e,t){if(Kn)return e===`compositionend`||!Rn&&Wn(e,t)?(e=sn(),on=an=rn=null,Kn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Vn&&t.locale!==`ko`?null:t.data;default:return null}}var Yn={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 Xn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Yn[e.type]:t===`textarea`}function Zn(e,t,n,r){Jt?Yt?Yt.push(r):Yt=[r]:Jt=r,t=Dd(t,`onChange`),0<t.length&&(n=new pn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Qn=null,$n=null;function er(e){yd(e,0)}function tr(e){if(Dt(lt(e)))return e}function nr(e,t){if(e===`change`)return t}var rr=!1;if(en){var ir;if(en){var ar=`oninput`in document;if(!ar){var or=document.createElement(`div`);or.setAttribute(`oninput`,`return;`),ar=typeof or.oninput==`function`}ir=ar}else ir=!1;rr=ir&&(!document.documentMode||9<document.documentMode)}function sr(){Qn&&(Qn.detachEvent(`onpropertychange`,cr),$n=Qn=null)}function cr(e){if(e.propertyName===`value`&&tr($n)){var t=[];Zn(t,$n,e,qt(e)),Qt(er,t)}}function lr(e,t,n){e===`focusin`?(sr(),Qn=t,$n=n,Qn.attachEvent(`onpropertychange`,cr)):e===`focusout`&&sr()}function ur(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return tr($n)}function dr(e,t){if(e===`click`)return tr(t)}function fr(e,t){if(e===`input`||e===`change`)return tr(t)}function pr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var mr=typeof Object.is==`function`?Object.is:pr;function hr(e,t){if(mr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!fe.call(t,i)||!mr(e[i],t[i]))return!1}return!0}function gr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _r(e,t){var n=gr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=gr(n)}}function vr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ot(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ot(e.document)}return t}function br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var xr=en&&`documentMode`in document&&11>=document.documentMode,Sr=null,Cr=null,wr=null,Tr=!1;function Er(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tr||Sr==null||Sr!==Ot(r)||(r=Sr,`selectionStart`in r&&br(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 101,006 bytes, line 8
8sNode:r.focusNode,focusOffset:r.focusOffset}),wr&&hr(wr,r)||(wr=r,r=Dd(Cr,`onSelect`),0<r.length&&(t=new pn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Sr)))}function Dr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Or={animationend:Dr(`Animation`,`AnimationEnd`),animationiteration:Dr(`Animation`,`AnimationIteration`),animationstart:Dr(`Animation`,`AnimationStart`),transitionrun:Dr(`Transition`,`TransitionRun`),transitionstart:Dr(`Transition`,`TransitionStart`),transitioncancel:Dr(`Transition`,`TransitionCancel`),transitionend:Dr(`Transition`,`TransitionEnd`)},kr={},Ar={};en&&(Ar=document.createElement(`div`).style,`AnimationEvent`in window||(delete Or.animationend.animation,delete Or.animationiteration.animation,delete Or.animationstart.animation),`TransitionEvent`in window||delete Or.transitionend.transition);function jr(e){if(kr[e])return kr[e];if(!Or[e])return e;var t=Or[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ar)return kr[e]=t[n];return e}var Mr=jr(`animationend`),Nr=jr(`animationiteration`),Pr=jr(`animationstart`),Fr=jr(`transitionrun`),Ir=jr(`transitionstart`),Lr=jr(`transitioncancel`),Rr=jr(`transitionend`),zr=new Map,Br=`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(` `);Br.push(`scrollEnd`);function Vr(e,t){zr.set(e,t),mt(t,[e])}var Hr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Ur=[],Wr=0,Gr=0;function Kr(){for(var e=Wr,t=Gr=Wr=0;t<e;){var n=Ur[t];Ur[t++]=null;var r=Ur[t];Ur[t++]=null;var i=Ur[t];Ur[t++]=null;var a=Ur[t];if(Ur[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Xr(n,i,a)}}function qr(e,t,n,r){Ur[Wr++]=e,Ur[Wr++]=t,Ur[Wr++]=n,Ur[Wr++]=r,Gr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Jr(e,t,n,r){return qr(e,t,n,r),Zr(e)}function Yr(e,t){return qr(e,null,null,t),Zr(e)}function Xr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-ke(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Zr(e){if(50<uu)throw uu=0,du=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Qr={};function $r(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ei(e,t,n,r){return new $r(e,t,n,r)}function ti(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ni(e,t){var n=e.alternate;return n===null?(n=ei(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ri(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ii(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)ti(e)&&(s=1);else if(typeof e==`string`)s=Uf(e,n,ee.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=ei(31,n,t,a),e.elementType=k,e.lanes=o,e;case y:return ai(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=ei(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=ei(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=ei(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ei(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ai(e,t,n,r){return e=ei(7,e,r,t),e.lanes=n,e}function oi(e,t,n){return e=ei(6,e,null,t),e.lanes=n,e}function si(e){var t=ei(18,null,null,0);return t.stateNode=e,t}function ci(e,t,n){return t=ei(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var li=new WeakMap;function ui(e,t){if(typeof e==`object`&&e){var n=li.get(e);return n===void 0?(t={value:e,source:t,stack:de(t)},li.set(e,t),t):n}return{value:e,source:t,stack:de(t)}}var di=[],fi=0,pi=null,mi=0,hi=[],gi=0,_i=null,vi=1,yi=``;function bi(e,t){di[fi++]=mi,di[fi++]=pi,pi=e,mi=t}function xi(e,t,n){hi[gi++]=vi,hi[gi++]=yi,hi[gi++]=_i,_i=e;var r=vi;e=yi;var i=32-ke(r)-1;r&=~(1<<i),n+=1;var a=32-ke(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,vi=1<<32-ke(t)+i|n<<i|r,yi=a+e}else vi=1<<a|n<<i|r,yi=e}function Si(e){e.return!==null&&(bi(e,1),xi(e,1,0))}function Ci(e){for(;e===pi;)pi=di[--fi],di[fi]=null,mi=di[--fi],di[fi]=null;for(;e===_i;)_i=hi[--gi],hi[gi]=null,yi=hi[--gi],hi[gi]=null,vi=hi[--gi],hi[gi]=null}function wi(e,t){hi[gi++]=vi,hi[gi++]=yi,hi[gi++]=_i,vi=t.id,yi=t.overflow,_i=e}var Ti=null,Ei=null,Di=!1,Oi=null,ki=!1,Ai=Error(i(519));function ji(e){throw Li(ui(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ai}function Mi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Qe]=e,t[$e]=r,n){case`dialog`:bd(`cancel`,t),bd(`close`,t);break;case`iframe`:case`object`:case`embed`:bd(`load`,t);break;case`video`:case`audio`:for(n=0;n<_d.length;n++)bd(_d[n],t);break;case`source`:bd(`error`,t);break;case`img`:case`image`:case`link`:bd(`error`,t),bd(`load`,t);break;case`details`:bd(`toggle`,t);break;case`input`:bd(`invalid`,t),Mt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:bd(`invalid`,t);break;case`textarea`:bd(`invalid`,t),It(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Nd(t.textContent,n)?(r.popover!=null&&(bd(`beforetoggle`,t),bd(`toggle`,t)),r.onScroll!=null&&bd(`scroll`,t),r.onScrollEnd!=null&&bd(`scrollend`,t),r.onClick!=null&&(t.onclick=Gt),t=!0):t=!1,t||ji(e,!0)}function Ni(e){for(Ti=e.return;Ti;)switch(Ti.tag){case 5:case 31:case 13:ki=!1;return;case 27:case 3:ki=!0;return;default:Ti=Ti.return}}function Pi(e){if(e!==Ti)return!1;if(!Di)return Ni(e),Di=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Gd(e.type,e.memoizedProps)),n=!n),n&&Ei&&ji(e),Ni(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ei=df(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ei=df(e)}else t===27?(t=Ei,$d(e.type)?(e=uf,uf=null,Ei=e):Ei=t):Ei=Ti?lf(e.stateNode.nextSibling):null;return!0}function Fi(){Ei=Ti=null,Di=!1}function Ii(){var e=Oi;return e!==null&&(Xl===null?Xl=e:Xl.push.apply(Xl,e),Oi=null),e}function Li(e){Oi===null?Oi=[e]:Oi.push(e)}var Ri=V(null),zi=null,Bi=null;function Vi(e,t,n){U(Ri,t._currentValue),t._currentValue=n}function Hi(e){e._currentValue=Ri.current,H(Ri)}function Ui(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Wi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Ui(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Ui(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Gi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;mr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===ne.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Qf]:e.push(Qf))}a=a.return}e!==null&&Wi(t,e,n,r),t.flags|=262144}function Ki(e){for(e=e.firstContext;e!==null;){if(!mr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function qi(e){zi=e,Bi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ji(e){return Xi(zi,e)}function Yi(e,t){return zi===null&&qi(e),Xi(e,t)}function Xi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Bi===null){if(e===null)throw Error(i(308));Bi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Bi=Bi.next=t;return n}var Zi=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Qi=t.unstable_scheduleCallback,$i=t.unstable_NormalPriority,q={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ea(){return{controller:new Zi,data:new Map,refCount:0}}function ta(e){e.refCount--,e.refCount===0&&Qi($i,function(){e.controller.abort()})}var na=null,ra=0,ia=0,aa=null;function oa(e,t){if(na===null){var n=na=[];ra=0,ia=dd(),aa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ra++,t.then(sa,sa),t}function sa(){if(--ra===0&&na!==null){aa!==null&&(aa.status=`fulfilled`);var e=na;na=null,ia=0,aa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ca(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var la=I.S;I.S=function(e,t){$l=_e(),typeof t==`object`&&t&&typeof t.then==`function`&&oa(e,t),la!==null&&la(e,t)};var ua=V(null);function da(){var e=ua.current;return e===null?Pl.pooledCache:e}function fa(e,t){t===null?U(ua,ua.current):U(ua,t.pool)}function pa(){var e=da();return e===null?null:{parent:q._currentValue,pool:e}}var ma=Error(i(460)),ha=Error(i(474)),ga=Error(i(542)),_a={then:function(){}};function va(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ya(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Gt,Gt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ca(e),e;default:if(typeof t.status==`string`)t.then(Gt,Gt);else{if(e=Pl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ca(e),e}throw xa=t,ma}}function ba(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(xa=e,ma):e}}var xa=null;function Sa(){if(xa===null)throw Error(i(459));var e=xa;return xa=null,e}function Ca(e){if(e===ma||e===ga)throw Error(i(483))}var wa=null,Ta=0;function Ea(e){var t=Ta;return Ta+=1,wa===null&&(wa=[]),ya(wa,e,t)}function Da(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Oa(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ka(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=ni(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=oi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&ba(i)===t.type)?(t=a(t,n.props),Da(t,n),t.return=e,t):(t=ii(n.type,n.key,n.props,null,e.mode,r),Da(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=ci(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ai(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=oi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=ii(t.type,t.key,t.props,null,e.mode,n),Da(n,t),n.return=e,n;case v:return t=ci(t,e.mode,n),t.return=e,t;case O:return t=ba(t),f(e,t,n)}if(F(t)||M(t))return t=ai(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ea(t),n);if(t.$$typeof===C)return f(e,Yi(e,t),n);Oa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=ba(n),p(e,t,n,r)}if(F(n)||M(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ea(n),r);if(n.$$typeof===C)return p(e,t,Yi(e,n),r);Oa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=ba(r),m(e,t,n,r,i)}if(F(r)||M(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ea(r),i);if(r.$$typeof===C)return m(e,t,n,Yi(t,r),i);Oa(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Di&&bi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Di&&bi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Di&&bi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Di&&bi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Di&&bi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Di&&bi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&ba(l)===r.type){n(e,r.sibling),c=a(r,o.props),Da(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=ai(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ii(o.type,o.key,o.props,null,e.mode,c),Da(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=ci(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=ba(o),b(e,r,o,c)}if(F(o))return h(e,r,o,c);if(M(o)){if(l=M(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ea(o),c);if(o.$$typeof===C)return b(e,r,Yi(e,o),c);Oa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=oi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ta=0;var i=b(e,t,n,r);return wa=null,i}catch(t){if(t===ma||t===ga)throw t;var a=ei(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Aa=ka(!0),ja=ka(!1),Ma=!1;function Na(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Fa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ia(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Nl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Zr(e),Xr(e,null,n),t}return qr(e,r,t,n),Zr(e)}function La(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ge(e,n)}}function Ra(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var za=!1;function Ba(){if(za){var e=aa;if(e!==null)throw e}}function Va(e,t,n,r){za=!1;var i=e.updateQueue;Ma=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Il&f)===f:(r&f)===f){f!==0&&f===ia&&(za=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:Ma=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Wl|=o,e.lanes=o,e.memoizedState=d}}function Ha(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ua(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ha(n[e],t)}var Wa=V(null),Ga=V(0);function Ka(e,t){e=Hl,U(Ga,e),U(Wa,t),Hl=e|t.baseLanes}function qa(){U(Ga,Hl),U(Wa,Wa.current)}function Ja(){Hl=Ga.current,H(Wa),H(Ga)}var Ya=V(null),Xa=null;function Za(e){var t=e.alternate;U(no,no.current&1),U(Ya,e),Xa===null&&(t===null||Wa.current!==null||t.memoizedState!==null)&&(Xa=e)}function Qa(e){U(no,no.current),U(Ya,e),Xa===null&&(Xa=e)}function $a(e){e.tag===22?(U(no,no.current),U(Ya,e),Xa===null&&(Xa=e)):eo(e)}function eo(){U(no,no.current),U(Ya,Ya.current)}function to(e){H(Ya),Xa===e&&(Xa=null),H(no)}var no=V(0);function ro(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||of(n)||sf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var io=0,ao=null,oo=null,so=null,co=!1,lo=!1,uo=!1,fo=0,po=0,mo=null,ho=0;function go(){throw Error(i(321))}function _o(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!mr(e[n],t[n]))return!1;return!0}function vo(e,t,n,r,i,a){return io=a,ao=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?Ns:Ps,uo=!1,a=n(r,i),uo=!1,lo&&(a=bo(t,n,r,i)),yo(e),a}function yo(e){I.H=Ms;var t=oo!==null&&oo.next!==null;if(io=0,so=oo=ao=null,co=!1,po=0,mo=null,t)throw Error(i(300));e===null||Zs||(e=e.dependencies,e!==null&&Ki(e)&&(Zs=!0))}function bo(e,t,n,r){ao=e;var a=0;do{if(lo&&(mo=null),po=0,lo=!1,25<=a)throw Error(i(301));if(a+=1,so=oo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}I.H=Fs,o=t(n,r)}while(lo);return o}function xo(){var e=I.H,t=e.useState()[0];return t=typeof t.then==`function`?Eo(t):t,e=e.useState()[0],(oo===null?null:oo.memoizedState)!==e&&(ao.flags|=1024),t}function So(){var e=fo!==0;return fo=0,e}function J(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Co(e){if(co){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}co=!1}io=0,so=oo=ao=null,lo=!1,po=fo=0,mo=null}function wo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return so===null?ao.memoizedState=so=e:so=so.next=e,so}function To(){if(oo===null){var e=ao.alternate;e=e===null?null:e.memoizedState}else e=oo.next;var t=so===null?ao.memoizedState:so.next;if(t!==null)so=t,oo=e;else{if(e===null)throw ao.alternate===null?Error(i(467)):Error(i(310));oo=e,e={memoizedState:oo.memoizedState,baseState:oo.baseState,baseQueue:oo.baseQueue,queue:oo.queue,next:null},so===null?ao.memoizedState=so=e:so=so.next=e}return so}function Y(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Eo(e){var t=po;return po+=1,mo===null&&(mo=[]),e=ya(mo,e,t),t=ao,(so===null?t.memoizedState:so.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?Ns:Ps),e}function Do(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Eo(e);if(e.$$typeof===C)return Ji(e)}throw Error(i(438,String(e)))}function Oo(e){var t=null,n=ao.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=ao.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Y(),ao.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function ko(e,t){return typeof t==`function`?t(e):t}function Ao(e){return jo(To(),oo,e)}function jo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(io&f)===f:(Il&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ia&&(d=!0);else if((io&p)===p){u=u.next,p===ia&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,ao.lanes|=p,Wl|=p;f=u.action,uo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,ao.lanes|=f,Wl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!mr(o,e.memoizedState)&&(Zs=!0,d&&(n=aa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Mo(e){var t=To(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);mr(o,t.memoizedState)||(Zs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function No(e,t,n){var r=ao,a=To(),o=Di;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!mr((oo||a).memoizedState,n);if(s&&(a.memoizedState=n,Zs=!0),a=a.queue,is(Io.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||so!==null&&so.memoizedState.tag&1){if(r.flags|=2048,$o(9,{destroy:void 0},Fo.bind(null,r,a,n,t),null),Pl===null)throw Error(i(349));o||io&127||Po(r,t,n)}return n}function Po(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ao.updateQueue,t===null?(t=Y(),ao.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Fo(e,t,n,r){t.value=n,t.getSnapshot=r,Lo(t)&&Ro(e)}function Io(e,t,n){return n(function(){Lo(t)&&Ro(e)})}function Lo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mr(e,n)}catch{return!0}}function Ro(e){var t=Yr(e,2);t!==null&&mu(t,e,2)}function zo(e){var t=wo();if(typeof e==`function`){var n=e;if(e=n(),uo){Oe(!0);try{n()}finally{Oe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:e},t}function Bo(e,t,n,r){return e.baseState=n,jo(e,oo,typeof r==`function`?r:ko)}function Vo(e,t,n,r,a){if(ks(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};I.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ho(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ho(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=I.T,o={};I.T=o;try{var s=n(i,r),c=I.S;c!==null&&c(o,s),Uo(e,t,s)}catch(n){Go(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),I.T=a}}else try{a=n(i,r),Uo(e,t,a)}catch(n){Go(e,t,n)}}function Uo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Wo(e,t,n)},function(n){return Go(e,t,n)}):Wo(e,t,n)}function Wo(e,t,n){t.status=`fulfilled`,t.value=n,Ko(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ho(e,n)))}function Go(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ko(t),t=t.next;while(t!==r)}e.action=null}function Ko(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function qo(e,t){return t}function Jo(e,t){if(Di){var n=Pl.formState;if(n!==null){a:{var r=ao;if(Di){if(Ei){b:{for(var i=Ei,a=ki;i.nodeType!==8;){if(!a){i=null;break b}if(i=lf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ei=lf(i.nextSibling),r=i.data===`F!`;break a}}ji(r)}r=!1}r&&(t=n[0])}}return n=wo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:t},n.queue=r,n=Es.bind(null,ao,r),r.dispatch=n,r=zo(!1),a=Os.bind(null,ao,!1,r.queue),r=wo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Vo.bind(null,ao,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Yo(e){return Xo(To(),oo,e)}function Xo(e,t,n){if(t=jo(e,t,qo)[0],e=Ao(ko)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Eo(t)}catch(e){throw e===ma?ga:e}else r=t;t=To();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(ao.flags|=2048,$o(9,{destroy:void 0},Zo.bind(null,i,n),null)),[r,a,e]}function Zo(e,t){e.action=t}function Qo(e){var t=To(),n=oo;if(n!==null)return Xo(t,n,e);To(),t=t.memoizedState,n=To();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function $o(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=ao.updateQueue,t===null&&(t=Y(),ao.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function es(){return To().memoizedState}function ts(e,t,n,r){var i=wo();ao.flags|=e,i.memoizedState=$o(1|t,{destroy:void 0},n,r===void 0?null:r)}function ns(e,t,n,r){var i=To();r=r===void 0?null:r;var a=i.memoizedState.inst;oo!==null&&r!==null&&_o(r,oo.memoizedState.deps)?i.memoizedState=$o(t,a,n,r):(ao.flags|=e,i.memoizedState=$o(1|t,a,n,r))}function rs(e,t){ts(8390656,8,e,t)}function is(e,t){ns(2048,8,e,t)}function as(e){ao.flags|=4;var t=ao.updateQueue;if(t===null)t=Y(),ao.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function os(e){var t=To().memoizedState;return as({ref:t,nextImpl:e}),function(){if(Nl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ss(e,t){return ns(4,2,e,t)}function cs(e,t){return ns(4,4,e,t)}function ls(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function us(e,t,n){n=n==null?null:n.concat([e]),ns(4,4,ls.bind(null,t,e),n)}function ds(){}function fs(e,t){var n=To();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&_o(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ps(e,t){var n=To();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&_o(t,r[1]))return r[0];if(r=e(),uo){Oe(!0);try{e()}finally{Oe(!1)}}return n.memoizedState=[r,t],r}function ms(e,t,n){return n===void 0||io&1073741824&&!(Il&261930)?e.memoizedState=t:(e.memoizedState=n,e=pu(),ao.lanes|=e,Wl|=e,n)}function hs(e,t,n,r){return mr(n,t)?n:Wa.current===null?!(io&42)||io&1073741824&&!(Il&261930)?(Zs=!0,e.memoizedState=n):(e=pu(),ao.lanes|=e,Wl|=e,t):(e=ms(e,n,r),mr(e,t)||(Zs=!0),e)}function gs(e,t,n,r,i){var a=L.p;L.p=a!==0&&8>a?a:8;var o=I.T,s={};I.T=s,Os(e,!1,t,n);try{var c=i(),l=I.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ds(e,t,ca(c,r),fu(e)):Ds(e,t,r,fu(e))}catch(n){Ds(e,t,{then:function(){},status:`rejected`,reason:n},fu())}finally{L.p=a,o!==null&&s.types!==null&&(o.types=s.types),I.T=o}}function _s(){}function vs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ys(e).queue;gs(e,a,t,R,n===null?_s:function(){return bs(e),n(r)})}function ys(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:R,baseState:R,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:R},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bs(e){var t=ys(e);t.next===null&&(t=e.alternate.memoizedState),Ds(e,t.next.queue,{},fu())}function xs(){return Ji(Qf)}function Ss(){return To().memoizedState}function Cs(){return To().memoizedState}function ws(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=fu();e=Fa(n);var r=Ia(t,e,n);r!==null&&(mu(r,t,n),La(r,t,n)),t={cache:ea()},e.payload=t;return}t=t.return}}function Ts(e,t,n){var r=fu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ks(e)?As(t,n):(n=Jr(e,t,n,r),n!==null&&(mu(n,e,r),js(n,t,r)))}function Es(e,t,n){Ds(e,t,n,fu())}function Ds(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ks(e))As(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,mr(s,o))return qr(e,t,i,0),Pl===null&&Kr(),!1}catch{}if(n=Jr(e,t,i,r),n!==null)return mu(n,e,r),js(n,t,r),!0}return!1}function Os(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ks(e)){if(t)throw Error(i(479))}else t=Jr(e,n,r,2),t!==null&&mu(t,e,2)}function ks(e){var t=e.alternate;return e===ao||t!==null&&t===ao}function As(e,t){lo=co=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function js(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ge(e,n)}}var Ms={readContext:Ji,use:Do,useCallback:go,useContext:go,useEffect:go,useImperativeHandle:go,useLayoutEffect:go,useInsertionEffect:go,useMemo:go,useReducer:go,useRef:go,useState:go,useDebugValue:go,useDeferredValue:go,useTransition:go,useSyncExternalStore:go,useId:go,useHostTransitionStatus:go,useFormState:go,useActionState:go,useOptimistic:go,useMemoCache:go,useCacheRefresh:go};Ms.useEffectEvent=go;var Ns={readContext:Ji,use:Do,useCallback:function(e,t){return wo().memoizedState=[e,t===void 0?null:t],e},useContext:Ji,useEffect:rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ts(4194308,4,ls.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){ts(4,2,e,t)},useMemo:function(e,t){var n=wo();t=t===void 0?null:t;var r=e();if(uo){Oe(!0);try{e()}finally{Oe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=wo();if(n!==void 0){var i=n(t);if(uo){Oe(!0);try{n(t)}finally{Oe(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ts.bind(null,ao,e),[r.memoizedState,e]},useRef:function(e){var t=wo();return e={current:e},t.memoizedState=e},useState:function(e){e=zo(e);var t=e.queue,n=Es.bind(null,ao,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ds,useDeferredValue:function(e,t){return ms(wo(),e,t)},useTransition:function(){var e=zo(!1);return e=gs.bind(null,ao,e.queue,!0,!1),wo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ao,a=wo();if(Di){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Pl===null)throw Error(i(349));Il&127||Po(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,rs(Io.bind(null,r,o,e),[e]),r.flags|=2048,$o(9,{destroy:void 0},Fo.bind(null,r,o,n,t),null),n},useId:function(){var e=wo(),t=Pl.identifierPrefix;if(Di){var n=yi,r=vi;n=(r&~(1<<32-ke(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=fo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=ho++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:xs,useFormState:Jo,useActionState:Jo,useOptimistic:function(e){var t=wo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Os.bind(null,ao,!0,n),n.dispatch=t,[e,t]},useMemoCache:Oo,useCacheRefresh:function(){return wo().memoizedState=ws.bind(null,ao)},useEffectEvent:function(e){var t=wo(),n={impl:e};return t.memoizedState=n,function(){if(Nl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Ps={readContext:Ji,use:Do,useCallback:fs,useContext:Ji,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Ao,useRef:es,useState:function(){return Ao(ko)},useDebugValue:ds,useDeferredValue:function(e,t){return hs(To(),oo.memoizedState,e,t)},useTransition:function(){var e=Ao(ko)[0],t=To().memoizedState;return[typeof e==`boolean`?e:Eo(e),t]},useSyncExternalStore:No,useId:Ss,useHostTransitionStatus:xs,useFormState:Yo,useActionState:Yo,useOptimistic:function(e,t){return Bo(To(),oo,e,t)},useMemoCache:Oo,useCacheRefresh:Cs};Ps.useEffectEvent=os;var Fs={readContext:Ji,use:Do,useCallback:fs,useContext:Ji,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Mo,useRef:es,useState:function(){return Mo(ko)},useDebugValue:ds,useDeferredValue:function(e,t){var n=To();return oo===null?ms(n,e,t):hs(n,oo.memoizedState,e,t)},useTransition:function(){var e=Mo(ko)[0],t=To().memoizedState;return[typeof e==`boolean`?e:Eo(e),t]},useSyncExternalStore:No,useId:Ss,useHostTransitionStatus:xs,useFormState:Qo,useActionState:Qo,useOptimistic:function(e,t){var n=To();return oo===null?(n.baseState=e,[e,n.queue.dispatch]):Bo(n,oo,e,t)},useMemoCache:Oo,useCacheRefresh:Cs};Fs.useEffectEvent=os;function Is(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ls={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fu(),i=Fa(r);i.payload=t,n!=null&&(i.callback=n),t=Ia(e,i,r),t!==null&&(mu(t,e,r),La(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fu(),i=Fa(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ia(e,i,r),t!==null&&(mu(t,e,r),La(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fu(),r=Fa(n);r.tag=2,t!=null&&(r.callback=t),t=Ia(e,r,n),t!==null&&(mu(t,e,n),La(t,e,n))}};function Rs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!hr(n,r)||!hr(i,a):!0}function zs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ls.enqueueReplaceState(t,t.state,null)}function Bs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=h({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Vs(e){Hr(e)}function Hs(e){console.error(e)}function Us(e){Hr(e)}function Ws(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Gs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ks(e,t,n){return n=Fa(n),n.tag=3,n.payload={element:null},n.callback=function(){Ws(e,t)},n}function qs(e){return e=Fa(e),e.tag=3,e}function Js(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Gs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Gs(t,n,r),typeof i!=`function`&&(nu===null?nu=new Set([this]):nu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ys(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Gi(t,n,a,!0),n=Ya.current,n!==null){switch(n.tag){case 31:case 13:return Xa===null?Eu():n.alternate===null&&Ul===0&&(Ul=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===_a?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Gu(e,r,a)),!1;case 22:return n.flags|=65536,r===_a?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Gu(e,r,a)),!1}throw Error(i(435,n.tag))}return Gu(e,r,a),Eu(),!1}if(Di)return t=Ya.current,t===null?(r!==Ai&&(t=Error(i(423),{cause:r}),Li(ui(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=ui(r,n),a=Ks(e.stateNode,r,a),Ra(e,a),Ul!==4&&(Ul=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Ai&&(e=Error(i(422),{cause:r}),Li(ui(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=ui(o,n),Yl===null?Yl=[o]:Yl.push(o),Ul!==4&&(Ul=2),t===null)return!0;r=ui(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Ks(n.stateNode,r,e),Ra(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(nu===null||!nu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=qs(a),Js(a,e,n,r),Ra(n,a),!1}n=n.return}while(n!==null);return!1}var Xs=Error(i(461)),Zs=!1;function Qs(e,t,n,r){t.child=e===null?ja(t,null,n,r):Aa(t,e.child,n,r)}function $s(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return qi(t),r=vo(e,t,n,o,a,i),s=So(),e!==null&&!Zs?(J(e,t,i),X(e,t,i)):(Di&&s&&Si(t),t.flags|=1,Qs(e,t,r,i),t.child)}function ec(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ti(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,tc(e,t,a,r,i)):(e=ii(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Cc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?hr:n,n(o,r)&&e.ref===t.ref)return X(e,t,i)}return t.flags|=1,e=ni(a,r),e.ref=t.ref,e.return=t,t.child=e}function tc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(hr(a,r)&&e.ref===t.ref)if(Zs=!1,t.pendingProps=r=a,Cc(e,i))e.flags&131072&&(Zs=!0);else return t.lanes=e.lanes,X(e,t,i)}return lc(e,t,n,r,i)}function nc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return ic(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&fa(t,a===null?null:a.cachePool),a===null?qa():Ka(t,a),$a(t);else return r=t.lanes=536870912,ic(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&fa(t,null),qa(),eo(t)):(fa(t,a.cachePool),Ka(t,a),eo(t),t.memoizedState=null);return Qs(e,t,i,n),t.child}function rc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ic(e,t,n,r,i){var a=da();return a=a===null?null:{parent:q._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&fa(t,null),qa(),$a(t),e!==null&&Gi(e,t,r,!0),t.childLanes=i,null}function ac(e,t){return t=vc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function oc(e,t,n){return Aa(t,e.child,null,n),e=ac(t,t.pendingProps),e.flags|=2,to(t),t.memoizedState=null,e}function sc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Di){if(r.mode===`hidden`)return e=ac(t,r),t.lanes=536870912,rc(null,e);if(Qa(t),(e=Ei)?(e=af(e,ki),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_i===null?null:{id:vi,overflow:yi},retryLane:536870912,hydrationErrors:null},n=si(e),n.return=t,t.child=n,Ti=t,Ei=null)):e=null,e===null)throw ji(t);return t.lanes=536870912,null}return ac(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Qa(t),a)if(t.flags&256)t.flags&=-257,t=oc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(Zs||Gi(e,t,n,!1),a=(n&e.childLanes)!==0,Zs||a){if(r=Pl,r!==null&&(s=Ke(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Yr(e,s),mu(r,e,s),Xs;Eu(),t=oc(e,t,n)}else e=o.treeContext,Ei=lf(s.nextSibling),Ti=t,Di=!0,Oi=null,ki=!1,e!==null&&wi(t,e),t=ac(t,r),t.flags|=4096;return t}return e=ni(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function lc(e,t,n,r,i){return qi(t),n=vo(e,t,n,r,void 0,i),r=So(),e!==null&&!Zs?(J(e,t,i),X(e,t,i)):(Di&&r&&Si(t),t.flags|=1,Qs(e,t,n,i),t.child)}function uc(e,t,n,r,i,a){return qi(t),t.updateQueue=null,n=bo(t,r,n,i),yo(e),r=So(),e!==null&&!Zs?(J(e,t,a),X(e,t,a)):(Di&&r&&Si(t),t.flags|=1,Qs(e,t,n,a),t.child)}function dc(e,t,n,r,i){if(qi(t),t.stateNode===null){var a=Qr,o=n.contextType;typeof o==`object`&&o&&(a=Ji(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ls,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Na(t),o=n.contextType,a.context=typeof o==`object`&&o?Ji(o):Qr,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Is(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ls.enqueueReplaceState(a,a.state,null),Va(t,r,a,i),Ba(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Bs(n,s);a.props=c;var l=a.context,u=n.contextType;o=Qr,typeof u==`object`&&u&&(o=Ji(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&zs(t,a,r,o),Ma=!1;var f=t.memoizedState;a.state=f,Va(t,r,a,i),Ba(),l=t.memoizedState,s||f!==l||Ma?(typeof d==`function`&&(Is(t,n,d,r),l=t.memoizedState),(c=Ma||Rs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Pa(e,t),o=t.memoizedProps,u=Bs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Qr,typeof l==`object`&&l&&(c=Ji(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&zs(t,a,r,c),Ma=!1,f=t.memoizedState,a.state=f,Va(t,r,a,i),Ba();var p=t.memoizedState;o!==d||f!==p||Ma||e!==null&&e.dependencies!==null&&Ki(e.dependencies)?(typeof s==`function`&&(Is(t,n,s,r),p=t.memoizedState),(u=Ma||Rs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Ki(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,cc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Aa(t,e.child,null,i),t.child=Aa(t,null,n,i)):Qs(e,t,n,i),t.memoizedState=a.state,e=t.child):e=X(e,t,i),e}function fc(e,t,n,r){return Fi(),t.flags|=256,Qs(e,t,n,r),t.child}var pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mc(e){return{baseLanes:e,cachePool:pa()}}function hc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=ql),e}function gc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(no.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Di){if(a?Za(t):eo(t),(e=Ei)?(e=af(e,ki),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_i===null?null:{id:vi,overflow:yi},retryLane:536870912,hydrationErrors:null},n=si(e),n.return=t,t.child=n,Ti=t,Ei=null)):e=null,e===null)throw ji(t);return sf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(eo(t),a=t.mode,c=vc({mode:`hidden`,children:c},a),r=ai(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,s,n),t.memoizedState=pc,rc(null,r)):(Za(t),_c(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(Za(t),t.flags&=-257,t=yc(e,t,n)):t.memoizedState===null?(eo(t),c=r.fallback,a=t.mode,r=vc({mode:`visible`,children:r.children},a),c=ai(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Aa(t,e.child,null,n),r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,s,n),t.memoizedState=pc,t=rc(null,r)):(eo(t),t.child=e.child,t.flags|=128,t=null);else if(Za(t),sf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Li({value:r,source:null,stack:null}),t=yc(e,t,n)}else if(Zs||Gi(e,t,n,!1),s=(n&e.childLanes)!==0,Zs||s){if(s=Pl,s!==null&&(r=Ke(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Yr(e,r),mu(s,e,r),Xs;of(c)||Eu(),t=yc(e,t,n)}else of(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ei=lf(c.nextSibling),Ti=t,Di=!0,Oi=null,ki=!1,e!==null&&wi(t,e),t=_c(t,r.children),t.flags|=4096);return t}return a?(eo(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=ni(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ai(c,a,n,null),c.flags|=2):c=ni(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,rc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=mc(n):(a=c.cachePool,a===null?a=pa():(l=q._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=hc(e,s,n),t.memoizedState=pc,rc(e.child,r)):(Za(t),n=e.child,e=n.sibling,n=ni(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function _c(e,t){return t=vc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function vc(e,t){return e=ei(22,e,null,t),e.lanes=0,e}function yc(e,t,n){return Aa(t,e.child,null,n),e=_c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ui(e.return,t,n)}function xc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Sc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=no.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,U(no,o),Qs(e,t,r,n),r=Di?mi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bc(e,n,t);else if(e.tag===19)bc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ro(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),xc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ro(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}xc(t,!0,n,null,a,r);break;case`together`:xc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function X(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Gi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=ni(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ni(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Cc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Ki(e))):!0}function wc(e,t,n){switch(t.tag){case 3:re(t,t.stateNode.containerInfo),Vi(t,q,e.memoizedState.cache),Fi();break;case 27:case 5:ae(t);break;case 4:re(t,t.stateNode.containerInfo);break;case 10:Vi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Qa(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Za(t),e=X(e,t,n),e===null?null:e.sibling):gc(e,t,n):(Za(t),t.flags|=128,null);Za(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Gi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Sc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),U(no,no.current),r)break;return null;case 22:return t.lanes=0,nc(e,t,n,t.pendingProps);case 24:Vi(t,q,e.memoizedState.cache)}return X(e,t,n)}function Tc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Zs=!0;else{if(!Cc(e,n)&&!(t.flags&128))return Zs=!1,wc(e,t,n);Zs=!!(e.flags&131072)}else Zs=!1,Di&&t.flags&1048576&&xi(t,mi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=ba(t.elementType),t.type=e,typeof e==`function`)ti(e)?(r=Bs(e,r),t.tag=1,t=dc(null,t,e,r,n)):(t.tag=0,t=lc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=$s(null,t,e,r,n);break a}else if(a===D){t.tag=14,t=ec(null,t,e,r,n);break a}}throw t=P(e)||e,Error(i(306,t,``))}}return t;case 0:return lc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Bs(r,t.pendingProps),dc(e,t,r,a,n);case 3:a:{if(re(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Pa(e,t),Va(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Vi(t,q,r),r!==o.cache&&Wi(t,[q],n,!0),Ba(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=fc(e,t,r,n);break a}else if(r!==a){a=ui(Error(i(424)),t),Li(a),t=fc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ei=lf(e.firstChild),Ti=t,Di=!0,Oi=null,ki=!0,n=ja(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Fi(),r===a){t=X(e,t,n);break a}Qs(e,t,r,n)}t=t.child}return t;case 26:return cc(e,t),e===null?(n=kf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Di||(n=t.type,e=t.pendingProps,r=Hd(te.current).createElement(n),r[Qe]=t,r[$e]=e,Id(r,n,e),dt(r),t.stateNode=r):t.memoizedState=kf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ae(t),e===null&&Di&&(r=t.stateNode=pf(t.type,t.pendingProps,te.current),Ti=t,ki=!0,a=Ei,$d(t.type)?(uf=a,Ei=lf(r.firstChild)):Ei=a),Qs(e,t,t.pendingProps.children,n),cc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Di&&((a=r=Ei)&&(r=Q(r,t.type,t.pendingProps,ki),r===null?a=!1:(t.stateNode=r,Ti=t,Ei=lf(r.firstChild),ki=!1,a=!0)),a||ji(t)),ae(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Gd(a,o)?r=null:s!==null&&Gd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=vo(e,t,xo,null,null,n),Qf._currentValue=a),cc(e,t),Qs(e,t,r,n),t.child;case 6:return e===null&&Di&&((e=n=Ei)&&(n=rf(n,t.pendingProps,ki),n===null?e=!1:(t.stateNode=n,Ti=t,Ei=null,e=!0)),e||ji(t)),null;case 13:return gc(e,t,n);case 4:return re(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Aa(t,null,r,n):Qs(e,t,r,n),t.child;case 11:return $s(e,t,t.type,t.pendingProps,n);case 7:return Qs(e,t,t.pendingProps,n),t.child;case 8:return Qs(e,t,t.pendingProps.children,n),t.child;case 12:return Qs(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Vi(t,t.type,r.value),Qs(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,qi(t),a=Ji(a),r=r(a),t.flags|=1,Qs(e,t,r,n),t.child;case 14:return ec(e,t,t.type,t.pendingProps,n);case 15:return tc(e,t,t.type,t.pendingProps,n);case 19:return Sc(e,t,n);case 31:return sc(e,t,n);case 22:return nc(e,t,n,t.pendingProps);case 24:return qi(t),r=Ji(q),e===null?(a=da(),a===null&&(a=Pl,o=ea(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Na(t),Vi(t,q,a)):((e.lanes&n)!==0&&(Pa(e,t),Va(t,null,null,n),Ba()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Vi(t,q,r),r!==a.cache&&Wi(t,[q],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Vi(t,q,r))),Qs(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Ec(e){e.flags|=4}function Dc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Cu())e.flags|=8192;else throw xa=_a,ha}else e.flags&=-16777217}function Oc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t))if(Cu())e.flags|=8192;else throw xa=_a,ha}function kc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Be(),e.lanes|=t,Jl|=t)}function Ac(e,t){if(!Di)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function jc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Mc(e,t,n){var r=t.pendingProps;switch(Ci(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jc(t),null;case 1:return jc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Hi(q),ie(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Pi(t)?Ec(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ii())),jc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Ec(t),o===null?(jc(t),Dc(t,a,null,r,n)):(jc(t),Oc(t,o))):o?o===e.memoizedState?(jc(t),t.flags&=-16777217):(Ec(t),jc(t),Oc(t,o)):(e=e.memoizedProps,e!==r&&Ec(t),jc(t),Dc(t,a,e,r,n)),null;case 27:if(G(t),n=te.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ec(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return jc(t),null}e=ee.current,Pi(t)?Mi(t,e):(e=pf(a,r,n),t.stateNode=e,Ec(t))}return jc(t),null;case 5:if(G(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ec(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return jc(t),null}if(o=ee.current,Pi(t))Mi(t,o);else{var s=Hd(te.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[Qe]=t,o[$e]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Id(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Ec(t)}}return jc(t),Dc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ec(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=te.current,Pi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ti,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Qe]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Nd(e.nodeValue,n)),e||ji(t,!0)}else e=Hd(e).createTextNode(r),e[Qe]=t,t.stateNode=e}return jc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Pi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[Qe]=t}else Fi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jc(t),e=!1}else n=Ii(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(to(t),t):(to(t),null);if(t.flags&128)throw Error(i(558))}return jc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Pi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[Qe]=t}else Fi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jc(t),a=!1}else a=Ii(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(to(t),t):(to(t),null)}return to(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),kc(t,t.updateQueue),jc(t),null);case 4:return ie(),e===null&&Cd(t.stateNode.containerInfo),jc(t),null;case 10:return Hi(t.type),jc(t),null;case 19:if(H(no),r=t.memoizedState,r===null)return jc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Ac(r,!1);else{if(Ul!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ro(e),o!==null){for(t.flags|=128,Ac(r,!1),e=o.updateQueue,t.updateQueue=e,kc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ri(n,e),n=n.sibling;return U(no,no.current&1|2),Di&&bi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&_e()>eu&&(t.flags|=128,a=!0,Ac(r,!1),t.lanes=4194304)}else{if(!a)if(e=ro(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,kc(t,e),Ac(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Di)return jc(t),null}else 2*_e()-r.renderingStartTime>eu&&n!==536870912&&(t.flags|=128,a=!0,Ac(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(jc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=_e(),e.sibling=null,n=no.current,U(no,a?n&1|2:n&1),Di&&bi(t,r.treeForkCount),e);case 22:case 23:return to(t),Ja(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(jc(t),t.subtreeFlags&6&&(t.flags|=8192)):jc(t),n=t.updateQueue,n!==null&&kc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&H(ua),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Hi(q),jc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Nc(e,t){switch(Ci(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hi(q),ie(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return G(t),null;case 31:if(t.memoizedState!==null){if(to(t),t.alternate===null)throw Error(i(340));Fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(to(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(no),null;case 4:return ie(),null;case 10:return Hi(t.type),null;case 22:case 23:return to(t),Ja(),e!==null&&H(ua),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Hi(q),null;case 25:return null;default:return null}}function Pc(e,t){switch(Ci(t),t.tag){case 3:Hi(q),ie();break;case 26:case 27:case 5:G(t);break;case 4:ie();break;case 31:t.memoizedState!==null&&to(t);break;case 13:to(t);break;case 19:H(no);break;case 10:Hi(t.type);break;case 22:case 23:to(t),Ja(),e!==null&&H(ua);break;case 24:Hi(q)}}function Fc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Wu(t,t.return,e)}}function Ic(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Wu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Wu(t,t.return,e)}}function Lc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ua(t,n)}catch(t){Wu(e,e.return,t)}}}function Rc(e,t,n){n.props=Bs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Wu(e,t,n)}}function zc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Wu(e,t,n)}}function Bc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Wu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Wu(e,t,n)}else n.current=null}function Vc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Wu(e,e.return,t)}}function Hc(e,t,n){try{var r=e.stateNode;Ld(r,e.type,n,t),r[$e]=t}catch(t){Wu(e,e.return,t)}}function Uc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$d(e.type)||e.tag===4}function Wc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Uc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&$d(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gt));else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Gc(e,t,n),e=e.sibling;e!==null;)Gc(e,t,n),e=e.sibling}function Kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Kc(e,t,n),e=e.sibling;e!==null;)Kc(e,t,n),e=e.sibling}function qc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Id(t,r,n),t[Qe]=e,t[$e]=n}catch(t){Wu(e,e.return,t)}}var Jc=!1,Yc=!1,Xc=!1,Zc=typeof WeakSet==`function`?WeakSet:Set,Qc=null;function $c(e,t){if(e=e.containerInfo,Bd=sp,e=yr(e),br(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Vd={focusedElem:e,selectionRange:n},sp=!1,Qc=t;Qc!==null;)if(t=Qc,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Qc=e;else for(;Qc!==null;){switch(t=Qc,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Bs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Wu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)nf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:nf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,Qc=e;break}Qc=t.return}}function el(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ml(e,n),r&4&&Fc(5,n);break;case 1:if(ml(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Wu(n,n.return,e)}else{var i=Bs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Wu(n,n.return,e)}}r&64&&Lc(n),r&512&&zc(n,n.return);break;case 3:if(ml(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ua(e,t)}catch(e){Wu(n,n.return,e)}}break;case 27:t===null&&r&4&&qc(n);case 26:case 5:ml(e,n),t===null&&r&4&&Vc(n),r&512&&zc(n,n.return);break;case 12:ml(e,n);break;case 31:ml(e,n),r&4&&al(e,n);break;case 13:ml(e,n),r&4&&ol(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ju.bind(null,n),cf(e,n))));break;case 22:if(r=n.memoizedState!==null||Jc,!r){t=t!==null&&t.memoizedState!==null||Yc,i=Jc;var a=Yc;Jc=r,(Yc=t)&&!a?gl(e,n,(n.subtreeFlags&8772)!=0):ml(e,n),Jc=i,Yc=a}break;case 30:break;default:ml(e,n)}}function tl(e){var t=e.alternate;t!==null&&(e.alternate=null,tl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ot(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var nl=null,rl=!1;function Z(e,t,n){for(n=n.child;n!==null;)il(e,t,n),n=n.sibling}function il(e,t,n){if(De&&typeof De.onCommitFiberUnmount==`function`)try{De.onCommitFiberUnmount(Ee,n)}catch{}switch(n.tag){case 26:Yc||Bc(n,t),Z(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Yc||Bc(n,t);var r=nl,i=rl;$d(n.type)&&(nl=n.stateNode,rl=!1),Z(e,t,n),mf(n.stateNode),nl=r,rl=i;break;case 5:Yc||Bc(n,t);case 6:if(r=nl,i=rl,nl=null,Z(e,t,n),nl=r,rl=i,nl!==null)if(rl)try{(nl.nodeType===9?nl.body:nl.nodeName===`HTML`?nl.ownerDocument.body:nl).removeChild(n.stateNode)}catch(e){Wu(n,t,e)}else try{nl.removeChild(n.stateNode)}catch(e){Wu(n,t,e)}break;case 18:nl!==null&&(rl?(e=nl,ef(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):ef(nl,n.stateNode));break;case 4:r=nl,i=rl,nl=n.stateNode.containerInfo,rl=!0,Z(e,t,n),nl=r,rl=i;break;case 0:case 11:case 14:case 15:Ic(2,n,t),Yc||Ic(4,n,t),Z(e,t,n);break;case 1:Yc||(Bc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Rc(n,t,r)),Z(e,t,n);break;case 21:Z(e,t,n);break;case 22:Yc=(r=Yc)||n.memoizedState!==null,Z(e,t,n),Yc=r;break;default:Z(e,t,n)}}function al(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){Wu(t,t.return,e)}}}function ol(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){Wu(t,t.return,e)}}function sl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Zc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Zc),t;default:throw Error(i(435,e.tag))}}function cl(e,t){var n=sl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Yu.bind(null,e,t);t.then(r,r)}})}function ll(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if($d(c.type)){nl=c.stateNode,rl=!1;break a}break;case 5:nl=c.stateNode,rl=!1;break a;case 3:case 4:nl=c.stateNode.containerInfo,rl=!0;break a}c=c.return}if(nl===null)throw Error(i(160));il(o,s,a),nl=null,rl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)dl(t,e),t=t.sibling}var ul=null;function dl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ll(t,e),fl(e),r&4&&(Ic(3,e,e.return),Fc(3,e),Ic(5,e,e.return));break;case 1:ll(t,e),fl(e),r&512&&(Yc||n===null||Bc(n,n.return)),r&64&&Jc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=ul;if(ll(t,e),fl(e),r&512&&(Yc||n===null||Bc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[at]||o[Qe]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Id(o,r,n),o[Qe]=e,dt(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Id(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Vf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Id(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[Qe]=e,dt(o),r=o}e.stateNode=r}else Hf(a,e.type,e.stateNode);else e.stateNode=If(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Hc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Hf(a,e.type,e.stateNode):If(a,r,e.memoizedProps))}break;case 27:ll(t,e),fl(e),r&512&&(Yc||n===null||Bc(n,n.return)),n!==null&&r&4&&Hc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ll(t,e),fl(e),r&512&&(Yc||n===null||Bc(n,n.return)),e.flags&32){a=e.stateNode;try{Lt(a,``)}catch(t){Wu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Hc(e,a,n===null?a:n.memoizedProps)),r&1024&&(Xc=!0);break;case 6:if(ll(t,e),fl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Wu(e,e.return,t)}}break;case 3:if(Bf=null,a=ul,ul=_f(t.containerInfo),ll(t,e),ul=a,fl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){Wu(e,e.return,t)}Xc&&(Xc=!1,pl(e));break;case 4:r=ul,ul=_f(e.stateNode.containerInfo),ll(t,e),fl(e),ul=r;break;case 12:ll(t,e),fl(e);break;case 31:ll(t,e),fl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,cl(e,r)));break;case 13:ll(t,e),fl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ql=_e()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,cl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Jc,d=Yc;if(Jc=u||a,Yc=d||l,ll(t,e),Yc=d,Jc=u,fl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Jc||Yc||hl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Wu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Wu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?tf(m,!0):tf(l.stateNode,!1)}catch(e){Wu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,cl(e,n))));break;case 19:ll(t,e),fl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,cl(e,r)));break;case 30:break;case 21:break;default:ll(t,e),fl(e)}}function fl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Uc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Kc(e,Wc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Lt(o,``),n.flags&=-33),Kc(e,Wc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Gc(e,Wc(e),s);break;default:throw Error(i(161))}}catch(t){Wu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function pl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;pl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ml(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)el(e,t.alternate,t),t=t.sibling}function hl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ic(4,t,t.return),hl(t);break;case 1:Bc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Rc(t,t.return,n),hl(t);break;case 27:mf(t.stateNode);case 26:case 5:Bc(t,t.return),hl(t);break;case 22:t.memoizedState===null&&hl(t);break;case 30:hl(t);break;default:hl(t)}e=e.sibling}}function gl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:gl(i,a,n),Fc(4,a);break;case 1:if(gl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Wu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ha(c[i],s)}catch(e){Wu(r,r.return,e)}}n&&o&64&&Lc(a),zc(a,a.return);break;case 27:qc(a);case 26:case 5:gl(i,a,n),n&&r===null&&o&4&&Vc(a),zc(a,a.return);break;case 12:gl(i,a,n);break;case 31:gl(i,a,n),n&&o&4&&al(i,a);break;case 13:gl(i,a,n),n&&o&4&&ol(i,a);break;case 22:a.memoizedState===null&&gl(i,a,n),zc(a,a.return);break;case 30:break;default:gl(i,a,n)}t=t.sibling}}function _l(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ta(n))}function vl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ta(e))}function yl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)bl(e,t,n,r),t=t.sibling}function bl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:yl(e,t,n,r),i&2048&&Fc(9,t);break;case 1:yl(e,t,n,r);break;case 3:yl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ta(e)));break;case 12:if(i&2048){yl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Wu(t,t.return,e)}}else yl(e,t,n,r);break;case 31:yl(e,t,n,r);break;case 13:yl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?yl(e,t,n,r):(a._visibility|=2,xl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?yl(e,t,n,r):Sl(e,t),i&2048&&_l(o,t);break;case 24:yl(e,t,n,r),i&2048&&vl(t.alternate,t);break;default:yl(e,t,n,r)}}function xl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:xl(a,o,s,c,i),Fc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,xl(a,o,s,c,i)):u._visibility&2?xl(a,o,s,c,i):Sl(a,o),i&&l&2048&&_l(o.alternate,o);break;case 24:xl(a,o,s,c,i),i&&l&2048&&vl(o.alternate,o);break;default:xl(a,o,s,c,i)}t=t.sibling}}function Sl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Sl(n,r),i&2048&&_l(r.alternate,r);break;case 24:Sl(n,r),i&2048&&vl(r.alternate,r);break;default:Sl(n,r)}t=t.sibling}}var Cl=8192;function wl(e,t,n){if(e.subtreeFlags&Cl)for(e=e.child;e!==null;)Tl(e,t,n),e=e.sibling}function Tl(e,t,n){switch(e.tag){case 26:wl(e,t,n),e.flags&Cl&&e.memoizedState!==null&&Gf(n,ul,e.memoizedState,e.memoizedProps);break;case 5:wl(e,t,n);break;case 3:case 4:var r=ul;ul=_f(e.stateNode.containerInfo),wl(e,t,n),ul=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Cl,Cl=16777216,wl(e,t,n),Cl=r):wl(e,t,n));break;default:wl(e,t,n)}}function El(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Dl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Qc=r,Al(r,e)}El(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ol(e),e=e.sibling}function Ol(e){switch(e.tag){case 0:case 11:case 15:Dl(e),e.flags&2048&&Ic(9,e,e.return);break;case 3:Dl(e);break;case 12:Dl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,kl(e)):Dl(e);break;default:Dl(e)}}function kl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Qc=r,Al(r,e)}El(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ic(8,t,t.return),kl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,kl(t));break;default:kl(t)}e=e.sibling}}function Al(e,t){for(;Qc!==null;){var n=Qc;switch(n.tag){case 0:case 11:case 15:Ic(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ta(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Qc=r;else a:for(n=e;Qc!==null;){r=Qc;var i=r.sibling,a=r.return;if(tl(r),r===n){Qc=null;break a}if(i!==null){i.return=a,Qc=i;break a}Qc=a}}}var jl={getCacheForType:function(e){var t=Ji(q),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ji(q).controller.signal}},Ml=typeof WeakMap==`function`?WeakMap:Map,Nl=0,Pl=null,Fl=null,Il=0,Ll=0,Rl=null,zl=!1,Bl=!1,Vl=!1,Hl=0,Ul=0,Wl=0,Gl=0,Kl=0,ql=0,Jl=0,Yl=null,Xl=null,Zl=!1,Ql=0,$l=0,eu=1/0,tu=null,nu=null,ru=0,iu=null,au=null,ou=0,su=0,cu=null,lu=null,uu=0,du=null;function fu(){return Nl&2&&Il!==0?Il&-Il:I.T===null?Ye():dd()}function pu(){if(ql===0)if(!(Il&536870912)||Di){var e=Pe;Pe<<=1,!(Pe&3932160)&&(Pe=262144),ql=e}else ql=536870912;return e=Ya.current,e!==null&&(e.flags|=32),ql}function mu(e,t,n){(e===Pl&&(Ll===2||Ll===9)||e.cancelPendingCommit!==null)&&(xu(e,0),vu(e,Il,ql,!1)),He(e,n),(!(Nl&2)||e!==Pl)&&(e===Pl&&(!(Nl&2)&&(Gl|=n),Ul===4&&vu(e,Il,ql,!1)),rd(e))}function hu(e,t,n){if(Nl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Re(e,t),a=r?ku(e,t):Du(e,t,!0),o=r;do{if(a===0){Bl&&!r&&vu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!_u(n)){a=Du(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=Yl;var l=c.current.memoizedState.isDehydrated;if(l&&(xu(c,s).flags|=256),s=Du(c,s,!1),s!==2){if(Vl&&!l){c.errorRecoveryDisabledLanes|=o,Gl|=o,a=4;break a}o=Xl,Xl=a,o!==null&&(Xl===null?Xl=o:Xl.push.apply(Xl,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){xu(e,0),vu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:vu(r,t,ql,!zl);break a;case 2:Xl=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=Ql+300-_e(),10<a)){if(vu(r,t,ql,!zl),Le(r,0,!0)!==0)break a;ou=t,r.timeoutHandle=Jd(gu.bind(null,r,n,Xl,tu,Zl,t,ql,Gl,Jl,zl,o,`Throttled`,-0,0),a);break a}gu(r,n,Xl,tu,Zl,t,ql,Gl,Jl,zl,o,null,-0,0)}}break}while(1);rd(e)}function gu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gt},Tl(t,a,d);var m=(a&62914560)===a?Ql-_e():(a&4194048)===a?$l-_e():0;if(m=qf(d,m),m!==null){ou=a,e.cancelPendingCommit=m(Iu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),vu(e,a,o,!l);return}}Iu(e,t,a,n,r,i,o,s,c)}function _u(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!mr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function vu(e,t,n,r){t&=~Kl,t&=~Gl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-ke(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&We(e,n,t)}function yu(){return Nl&6?!0:(id(0,!1),!1)}function bu(){if(Fl!==null){if(Ll===0)var e=Fl.return;else e=Fl,Bi=zi=null,Co(e),wa=null,Ta=0,e=Fl;for(;e!==null;)Pc(e.alternate,e),e=e.return;Fl=null}}function xu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Yd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ou=0,bu(),Pl=e,Fl=n=ni(e.current,null),Il=t,Ll=0,Rl=null,zl=!1,Bl=Re(e,t),Vl=!1,Jl=ql=Kl=Gl=Wl=Ul=0,Xl=Yl=null,Zl=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-ke(r),a=1<<i;t|=e[i],r&=~a}return Hl=t,Kr(),n}function Su(e,t){ao=null,I.H=Ms,t===ma||t===ga?(t=Sa(),Ll=3):t===ha?(t=Sa(),Ll=4):Ll=t===Xs?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Rl=t,Fl===null&&(Ul=1,Ws(e,ui(t,e.current)))}function Cu(){var e=Ya.current;return e===null?!0:(Il&4194048)===Il?Xa===null:(Il&62914560)===Il||Il&536870912?e===Xa:!1}function wu(){var e=I.H;return I.H=Ms,e===null?Ms:e}function Tu(){var e=I.A;return I.A=jl,e}function Eu(){Ul=4,zl||(Il&4194048)!==Il&&Ya.current!==null||(Bl=!0),!(Wl&134217727)&&!(Gl&134217727)||Pl===null||vu(Pl,Il,ql,!1)}function Du(e,t,n){var r=Nl;Nl|=2;var i=wu(),a=Tu();(Pl!==e||Il!==t)&&(tu=null,xu(e,t)),t=!1;var o=Ul;a:do try{if(Ll!==0&&Fl!==null){var s=Fl,c=Rl;switch(Ll){case 8:bu(),o=6;break a;case 3:case 2:case 9:case 6:Ya.current===null&&(t=!0);var l=Ll;if(Ll=0,Rl=null,Nu(e,s,c,l),n&&Bl){o=0;break a}break;default:l=Ll,Ll=0,Rl=null,Nu(e,s,c,l)}}Ou(),o=Ul;break}catch(t){Su(e,t)}while(1);return t&&e.shellSuspendCounter++,Bi=zi=null,Nl=r,I.H=i,I.A=a,Fl===null&&(Pl=null,Il=0,Kr()),o}function Ou(){for(;Fl!==null;)ju(Fl)}function ku(e,t){var n=Nl;Nl|=2;var r=wu(),a=Tu();Pl!==e||Il!==t?(tu=null,eu=_e()+500,xu(e,t)):Bl=Re(e,t);a:do try{if(Ll!==0&&Fl!==null){t=Fl;var o=Rl;b:switch(Ll){case 1:Ll=0,Rl=null,Nu(e,t,o,1);break;case 2:case 9:if(va(o)){Ll=0,Rl=null,Mu(t);break}t=function(){Ll!==2&&Ll!==9||Pl!==e||(Ll=7),rd(e)},o.then(t,t);break a;case 3:Ll=7;break a;case 4:Ll=5;break a;case 7:va(o)?(Ll=0,Rl=null,Mu(t)):(Ll=0,Rl=null,Nu(e,t,o,7));break;case 5:var s=null;switch(Fl.tag){case 26:s=Fl.memoizedState;case 5:case 27:var c=Fl;if(s?Wf(s):c.stateNode.complete){Ll=0,Rl=null;var l=c.sibling;if(l!==null)Fl=l;else{var u=c.return;u===null?Fl=null:(Fl=u,Pu(u))}break b}}Ll=0,Rl=null,Nu(e,t,o,5);break;case 6:Ll=0,Rl=null,Nu(e,t,o,6);break;case 8:bu(),Ul=6;break a;default:throw Error(i(462))}}Au();break}catch(t){Su(e,t)}while(1);return Bi=zi=null,I.H=r,I.A=a,Nl=n,Fl===null?(Pl=null,Il=0,Kr(),Ul):0}function Au(){for(;Fl!==null&&!he();)ju(Fl)}function ju(e){var t=Tc(e.alternate,e,Hl);e.memoizedProps=e.pendingProps,t===null?Pu(e):Fl=t}function Mu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=uc(n,t,t.pendingProps,t.type,void 0,Il);break;case 11:t=uc(n,t,t.pendingProps,t.type.render,t.ref,Il);break;case 5:Co(t);default:Pc(n,t),t=Fl=ri(t,Hl),t=Tc(n,t,Hl)}e.memoizedProps=e.pendingProps,t===null?Pu(e):Fl=t}function Nu(e,t,n,r){Bi=zi=null,Co(t),wa=null,Ta=0;var i=t.return;try{if(Ys(e,i,t,n,Il)){Ul=1,Ws(e,ui(n,e.current)),Fl=null;return}}catch(t){if(i!==null)throw Fl=i,t;Ul=1,Ws(e,ui(n,e.current)),Fl=null;return}t.flags&32768?(Di||r===1?e=!0:Bl||Il&536870912?e=!1:(zl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Ya.current,r!==null&&r.tag===13&&(r.flags|=16384))),Fu(t,e)):Pu(t)}function Pu(e){var t=e;do{if(t.flags&32768){Fu(t,zl);return}e=t.return;var n=Mc(t.alternate,t,Hl);if(n!==null){Fl=n;return}if(t=t.sibling,t!==null){Fl=t;return}Fl=t=e}while(t!==null);Ul===0&&(Ul=5)}function Fu(e,t){do{var n=Nc(e.alternate,e);if(n!==null){n.flags&=32767,Fl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Fl=e;return}Fl=e=n}while(e!==null);Ul=6,Fl=null}function Iu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Vu();while(ru!==0);if(Nl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Gr,Ue(e,n,o,s,c,l),e===Pl&&(Fl=Pl=null,Il=0),au=t,iu=e,ou=n,su=o,cu=a,lu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Xu(xe,function(){return Hu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=I.T,I.T=null,a=L.p,L.p=2,s=Nl,Nl|=4;try{$c(e,t,n)}finally{Nl=s,L.p=a,I.T=r}}ru=1,Lu(),Ru(),zu()}}function Lu(){if(ru===1){ru=0;var e=iu,t=au,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=Nl;Nl|=4;try{dl(t,e);var a=Vd,o=yr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&vr(s.ownerDocument.documentElement,s)){if(c!==null&&br(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=_r(s,h),v=_r(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}sp=!!Bd,Vd=Bd=null}finally{Nl=i,L.p=r,I.T=n}}e.current=t,ru=2}}function Ru(){if(ru===2){ru=0;var e=iu,t=au,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=Nl;Nl|=4;try{el(e,t.alternate,t)}finally{Nl=i,L.p=r,I.T=n}}ru=3}}function zu(){if(ru===4||ru===3){ru=0,ge();var e=iu,t=au,n=ou,r=lu;t.subtreeFlags&10256||t.flags&10256?ru=5:(ru=0,au=iu=null,Bu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(nu=null),Je(n),t=t.stateNode,De&&typeof De.onCommitFiberRoot==`function`)try{De.onCommitFiberRoot(Ee,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=I.T,i=L.p,L.p=2,I.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{I.T=t,L.p=i}}ou&3&&Vu(),rd(e),i=e.pendingLanes,n&261930&&i&42?e===du?uu++:(uu=0,du=e):uu=0,id(0,!1)}}function Bu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ta(t)))}function Vu(){return Lu(),Ru(),zu(),Hu()}function Hu(){if(ru!==5)return!1;var e=iu,t=su;su=0;var n=Je(ou),r=I.T,a=L.p;try{L.p=32>n?32:n,I.T=null,n=cu,cu=null;var o=iu,s=ou;if(ru=0,au=iu=null,ou=0,Nl&6)throw Error(i(331));var c=Nl;if(Nl|=4,Ol(o.current),bl(o,o.current,s,n),Nl=c,id(0,!1),De&&typeof De.onPostCommitFiberRoot==`function`)try{De.onPostCommitFiberRoot(Ee,o)}catch{}return!0}finally{L.p=a,I.T=r,Bu(e,t)}}function Uu(e,t,n){t=ui(n,t),t=Ks(e.stateNode,t,2),e=Ia(e,t,2),e!==null&&(He(e,2),rd(e))}function Wu(e,t,n){if(e.tag===3)Uu(e,e,n);else for(;t!==null;){if(t.tag===3){Uu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(nu===null||!nu.has(r))){e=ui(n,e),n=qs(2),r=Ia(t,n,2),r!==null&&(Js(n,r,t,e),He(r,2),rd(r));break}}t=t.return}}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ml;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Vl=!0,i.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ku(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Pl===e&&(Il&n)===n&&(Ul===4||Ul===3&&(Il&62914560)===Il&&300>_e()-Ql?!(Nl&2)&&xu(e,0):Kl|=n,Jl===Il&&(Jl=0)),rd(e)}function qu(e,t){t===0&&(t=Be()),e=Yr(e,t),e!==null&&(He(e,t),rd(e))}function Ju(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qu(e,n)}function Yu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),qu(e,n)}function Xu(e,t){return pe(e,t)}var Zu=null,Qu=null,$u=!1,ed=!1,td=!1,nd=0;function rd(e){e!==Qu&&e.next===null&&(Qu===null?Zu=Qu=e:Qu=Qu.next=e),ed=!0,$u||($u=!0,ud())}function id(e,t){if(!td&&ed){td=!0;do for(var n=!1,r=Zu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-ke(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=Il,a=Le(r,r===Pl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Re(r,a)||(n=!0,ld(r,a));r=r.next}while(n);td=!1}}function ad(){od()}function od(){ed=$u=!1;var e=0;nd!==0&&qd()&&(e=nd);for(var t=_e(),n=null,r=Zu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Zu=i:n.next=i,i===null&&(Qu=n)):(n=r,(e!==0||a&3)&&(ed=!0)),r=i}ru!==0&&ru!==5||id(e,!1),nd!==0&&(nd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-ke(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=ze(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Pl,n=Il,n=Le(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Ll===2||Ll===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&me(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Re(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&me(r),Je(n)){case 2:case 8:n=be;break;case 32:n=xe;break;case 268435456:n=Ce;break;default:n=xe}return r=cd.bind(null,e),n=pe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&me(r),e.callbackPriority=2,e.callbackNode=null,2}function cd(e,t){if(ru!==0&&ru!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Vu()&&e.callbackNode!==n)return null;var r=Il;return r=Le(e,e===Pl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(hu(e,r,t),sd(e,_e()),e.callbackNode!=null&&e.callbackNode===n?cd.bind(null,e):null)}function ld(e,t){if(Vu())return null;hu(e,t,!0)}function ud(){Zd(function(){Nl&6?pe(ye,ad):od()})}function dd(){if(nd===0){var e=ia;e===0&&(e=Ne,Ne<<=1,!(Ne&261888)&&(Ne=256)),nd=e}return nd}function fd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Wt(``+e)}function pd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function md(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=fd((i[$e]||null).action),o=r.submitter;o&&(t=(t=o[$e]||null)?fd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new pn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(nd!==0){var e=o?pd(i,o):new FormData(i);vs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?pd(i,o):new FormData(i),vs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var hd=0;hd<Br.length;hd++){var gd=Br[hd];Vr(gd.toLowerCase(),`on`+(gd[0].toUpperCase()+gd.slice(1)))}Vr(Mr,`onAnimationEnd`),Vr(Nr,`onAnimationIteration`),Vr(Pr,`onAnimationStart`),Vr(`dblclick`,`onDoubleClick`),Vr(`focusin`,`onFocus`),Vr(`focusout`,`onBlur`),Vr(Fr,`onTransitionRun`),Vr(Ir,`onTransitionStart`),Vr(Lr,`onTransitionCancel`),Vr(Rr,`onTransitionEnd`),ht(`onMouseEnter`,[`mouseout`,`mouseover`]),ht(`onMouseLeave`,[`mouseout`,`mouseover`]),ht(`onPointerEnter`,[`pointerout`,`pointerover`]),ht(`onPointerLeave`,[`pointerout`,`pointerover`]),mt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),mt(`onSelect`,`focusout contextmenu dragend focu
8sin keydown keyup mousedown mouseup selectionchange`.split(` `)),mt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),mt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),mt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),mt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var _d=`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(` `),vd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(_d));function yd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Hr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Hr(e)}i.currentTarget=null,a=c}}}}function bd(e,t){var n=t[tt];n===void 0&&(n=t[tt]=new Set);var r=e+`__bubble`;n.has(r)||(wd(t,e,2,!1),n.add(r))}function xd(e,t,n){var r=0;t&&(r|=4),wd(n,e,r,t)}var Sd=`_reactListening`+Math.random().toString(36).slice(2);function Cd(e){if(!e[Sd]){e[Sd]=!0,ft.forEach(function(t){t!==`selectionchange`&&(vd.has(t)||xd(t,!1,e),xd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sd]||(t[Sd]=!0,xd(`selectionchange`,!1,t))}}function wd(e,t,n,r){switch(mp(t)){case 2:var i=cp;break;case 8:i=lp;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!tn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Td(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=st(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}Qt(function(){var r=a,i=qt(n),s=[];a:{var c=zr.get(e);if(c!==void 0){var l=pn,u=e;switch(e){case`keypress`:if(cn(n)===0)break a;case`keydown`:case`keyup`:l=jn;break;case`focusin`:u=`focus`,l=Sn;break;case`focusout`:u=`blur`,l=Sn;break;case`beforeblur`:case`afterblur`:l=Sn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=bn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=xn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Nn;break;case Mr:case Nr:case Pr:l=Cn;break;case Rr:l=Pn;break;case`scroll`:case`scrollend`:l=hn;break;case`wheel`:l=Fn;break;case`copy`:case`cut`:case`paste`:l=wn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Mn;break;case`toggle`:case`beforetoggle`:l=In}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=$t(m,p),g!=null&&d.push(Ed(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==Kt&&(u=n.relatedTarget||n.fromElement)&&(st(u)||u[et]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?st(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=bn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Mn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:lt(l),h=u==null?c:lt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,st(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Od,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&kd(s,c,l,d,!1),u!==null&&f!==null&&kd(s,f,u,d,!0)}}a:{if(c=r?lt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=nr;else if(Xn(c))if(rr)v=fr;else{v=ur;var y=lr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Vt(r.elementType)&&(v=nr):v=dr;if(v&&=v(e,r)){Zn(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Nt(c,`number`,c.value)}switch(y=r?lt(r):window,e){case`focusin`:(Xn(y)||y.contentEditable===`true`)&&(Sr=y,Cr=r,wr=null);break;case`focusout`:wr=Cr=Sr=null;break;case`mousedown`:Tr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Tr=!1,Er(s,n,i);break;case`selectionchange`:if(xr)break;case`keydown`:case`keyup`:Er(s,n,i)}var b;if(Rn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Kn?Wn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Vn&&n.locale!==`ko`&&(Kn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Kn&&(b=sn()):(rn=i,an=`value`in rn?rn.value:rn.textContent,Kn=!0)),y=Dd(r,x),0<y.length&&(x=new Tn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Gn(n),b!==null&&(x.data=b)))),(b=Bn?qn(e,n):Jn(e,n))&&
vendor: 11,390 bytes, lines 8-9
8(x=Dd(r,`onBeforeInput`),0<x.length&&(y=new Tn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),md(s,e,r,n,i)}yd(s,t)})}function Ed(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Dd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=$t(e,n),i!=null&&r.unshift(Ed(e,i,a)),i=$t(e,t),i!=null&&r.push(Ed(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Od(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function kd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=$t(n,a),l!=null&&o.unshift(Ed(n,l,c))):i||(l=$t(n,a),l!=null&&o.push(Ed(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Ad=/\r\n?/g,jd=/\u0000|\uFFFD/g;function Md(e){return(typeof e==`string`?e:``+e).replace(Ad,` 9`).replace(jd,``)}function Nd(e,t){return t=Md(t),Md(e)===t}function Pd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Lt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Lt(e,``+r);break;case`className`:xt(e,`class`,r);break;case`tabIndex`:xt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:xt(e,n,r);break;case`style`:Bt(e,r,o);break;case`data`:if(t!==`object`){xt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Wt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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 o==`function`&&(n===`formAction`?(t!==`input`&&Pd(e,t,`name`,a.name,a,null),Pd(e,t,`formEncType`,a.formEncType,a,null),Pd(e,t,`formMethod`,a.formMethod,a,null),Pd(e,t,`formTarget`,a.formTarget,a,null)):(Pd(e,t,`encType`,a.encType,a,null),Pd(e,t,`method`,a.method,a,null),Pd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Wt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Gt);break;case`onScroll`:r!=null&&bd(`scroll`,e);break;case`onScrollEnd`:r!=null&&bd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Wt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);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`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:bd(`beforetoggle`,e),bd(`toggle`,e),bt(e,`popover`,r);break;case`xlinkActuate`:St(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:St(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:St(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:St(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:St(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:St(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:St(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:St(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:St(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:bt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Ht.get(n)||n,bt(e,n,r))}}function Fd(e,t,n,r,a,o){switch(n){case`style`:Bt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Lt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Lt(e,``+r);break;case`onScroll`:r!=null&&bd(`scroll`,e);break;case`onScrollEnd`:r!=null&&bd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Gt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!pt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[$e]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):bt(e,n,r)}}}function Id(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:bd(`error`,e),bd(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Pd(e,t,o,s,n,null)}}a&&Pd(e,t,`srcSet`,n.srcSet,n,null),r&&Pd(e,t,`src`,n.src,n,null);return;case`input`:bd(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Pd(e,t,r,d,n,null)}}Mt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in bd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Pd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Pt(e,!!r,n,!0):Pt(e,!!r,t,!1);return;case`textarea`:for(s in bd(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Pd(e,t,s,c,n,null)}It(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Pd(e,t,l,r,n,null)}return;case`dialog`:bd(`beforetoggle`,e),bd(`toggle`,e),bd(`cancel`,e),bd(`close`,e);break;case`iframe`:case`object`:bd(`load`,e);break;case`video`:case`audio`:for(r=0;r<_d.length;r++)bd(_d[r],e);break;case`image`:bd(`error`,e),bd(`load`,e);break;case`details`:bd(`toggle`,e);break;case`embed`:case`source`:case`link`:bd(`error`,e),bd(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Pd(e,t,u,r,n,null)}return;default:if(Vt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Fd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Pd(e,t,c,r,n,null))}function Ld(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Pd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Pd(e,t,p,m,r,f)}}jt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Pd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Pd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Pt(e,!!n,n?[]:``,!1):Pt(e,!!n,t,!0)):Pt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Pd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Pd(e,t,s,a,r,o)}Ft(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Pd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Pd(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Pd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Pd(e,t,u,p,r,m)}return;default:if(Vt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Fd(e,t,_,void 0,r,p);
vendor: 4,462 bytes, line 9
9for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Fd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Pd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Pd(e,t,f,p,r,m)}function Rd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function zd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Rd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Rd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Bd=null,Vd=null;function Hd(e){return e.nodeType===9?e:e.ownerDocument}function Ud(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Wd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Gd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Kd=null;function qd(){var e=window.event;return e&&e.type===`popstate`?e===Kd?!1:(Kd=e,!0):(Kd=null,!1)}var Jd=typeof setTimeout==`function`?setTimeout:void 0,Yd=typeof clearTimeout==`function`?clearTimeout:void 0,Xd=typeof Promise==`function`?Promise:void 0,Zd=typeof queueMicrotask==`function`?queueMicrotask:Xd===void 0?Jd:function(e){return Xd.resolve(null).then(e).catch(Qd)};function Qd(e){setTimeout(function(){throw e})}function $d(e){return e===`head`}function ef(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)mf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,mf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[at]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&mf(e.ownerDocument.body);n=i}while(n);Np(t)}function tf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function nf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:nf(n),ot(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function Q(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[at])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=lf(e.nextSibling),e===null)break}return null}function rf(e,t,n){if(t===``)return null;for(;
vendor: 20,894 bytes, line 9
9e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lf(e.nextSibling),e===null))return null;return e}function af(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lf(e.nextSibling),e===null))return null;return e}function of(e){return e.data===`$?`||e.data===`$~`}function sf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function cf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function lf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var uf=null;function df(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function ff(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function pf(e,t,n){switch(t=Hd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function mf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ot(e)}var hf=new Map,gf=new Set;function _f(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var $=L.d;L.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=$.f(),t=yu();return e||t}function yf(e){var t=ct(e);t!==null&&t.tag===5&&t.type===`form`?bs(t):$.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=At(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),gf.has(i)||(gf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Id(t,`link`,e),dt(t),r.head.appendChild(t)))}}function Sf(e){$.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){$.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){$.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+At(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+At(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+At(n.imageSizes)+`"]`)):i+=`[href="`+At(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}hf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),hf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Id(t,`link`,e),dt(t),r.head.appendChild(t)))}}function Tf(e,t){$.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+At(r)+`"][href="`+At(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!hf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),hf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Id(r,`link`,e),dt(r),n.head.appendChild(r)}}}function Ef(e,t,n){$.S(e,t,n);var r=bf;if(r&&e){var i=ut(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=hf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);dt(c),Id(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){$.X(e,t);var n=bf;if(n&&e){var r=ut(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0},t),(t=hf.get(i))&&zf(e,t),a=n.createElement(`script`),dt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){$.M(e,t);var n=bf;if(n&&e){var r=ut(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=hf.get(i))&&zf(e,t),a=n.createElement(`script`),dt(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=te.current)?_f(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=ut(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=ut(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),hf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},hf.set(e,n),o||Nf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=ut(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Af(e){return`href="`+At(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Id(t,`link`,n),dt(t),e.head.appendChild(t))}function Pf(e){return`[src="`+At(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+At(n.href)+`"]`);if(r)return t.instance=r,dt(r),r;var a=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),dt(r),Id(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,dt(o),o;r=Mf(n),(a=hf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),dt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Id(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,dt(a),a):(r=n,(a=hf.get(o))&&(r=h({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),dt(a),Id(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[at]||a[Qe]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,dt(a);return}a=t.ownerDocument||t,r=Mf(r),(i=hf.get(i))&&Rf(r,i),a=a.createElement(`link`),dt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Id(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*zd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:C,Provider:null,Consumer:null,_currentValue:R,_currentValue2:R,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,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=Ve(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ve(0),this.hiddenUpdates=Ve(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ei(3,null,null,t),e.current=a,a.stateNode=e,t=ea(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Na(a),e}function tp(e){return e?(e=Qr,e):Qr}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=Fa(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ia(e,r,t),n!==null&&(mu(n,e,t),La(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=Yr(e,67108864);t!==null&&mu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=fu();t=qe(t);var n=Yr(e,t);n!==null&&mu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=2,up(e,t,n,r)}finally{L.p=a,I.T=i}}function lp(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=8,up(e,t,n,r)}finally{L.p=a,I.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)Td(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=ct(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ie(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-ke(o);s.entanglements[1]|=c,o&=~c}rd(a),!(Nl&6)&&(eu=_e()+500,id(0,!1))}}break;case 31:case 13:s=Yr(a,2),s!==null&&mu(s,a,2),yu(),ip(a,2)}if(a=dp(r),a===null&&Td(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Td(e,t,r,null,n)}}function dp(e){return e=qt(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=st(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(e){switch(e){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(ve()){case ye:return 2;case be:return 8;case xe:case Se:return 32;case Ce:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`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 Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=ct(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=st(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,Xe(e.priority,function(){op(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,Xe(e.priority,function(){op(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Kt=r,n.target.dispatchEvent(r),Kt=null}else return t=ct(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(pp(r||n)===null)continue;break}var a=ct(n);a!==null&&(e.splice(t,3),t-=3,vs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[$e]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[$e]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;np(n,fu(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),yu(),t[et]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ye();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=n.version;if(Lp!==`19.2.6`)throw Error(i(527,Lp,`19.2.6`));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=d(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.6`,rendererPackageName:`react-dom`,currentDispatcherRef:I,reconcilerVersion:`19.2.6`};
9if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{Ee=zp.inject(Rp),De=zp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Vs,s=Hs,c=Us;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,r,null,o,s,c,Pp),e[et]=t.current,Cd(e),new Fp(t)}})),g=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()})),_=c(u(),1),v=c(g(),1);function y(e,t){let n=e.length,r,i,a=!1,o=!1;Array.isArray(e[0])?r=e:(r=[e],n=r.length,a=!0),Array.isArray(t[0])?i=t:(i=t.length>0?t.map(e=>[e]):[[]],o=!0);let s=i[0].length,c=i[0].map((e,t)=>i.map(e=>e[t])),l=r.map(e=>c.map(t=>{let n=0;if(!Array.isArray(e)){for(let r of t)n+=e*r;return n}for(let r=0;r<e.length;r++)n+=e[r]*(t[r]||0);return n}));return n===1&&a&&(l=l[0]),s===1&&o?n===1&&a?l[0]:l.map(e=>e[0]):l}function b(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function x(e,t,n=[0,0,0]){let r=b(e,t[0]),i=b(e,t[1]),a=b(e,t[2]);return n[0]=r,n[1]=i,n[2]=a,n}function S(e){return C(e)===`string`}function C(e){return(Object.prototype.toString.call(e).match(/^\[object\s+(.*?)\]$/)[1]||``).toLowerCase()}function w(e,{precision:t=16,unit:n}){return T(e)?`none`:(e=+D(e,t),e+(n??``))}function T(e){return e===null}function E(e){return T(e)?0:e}function D(e,t){if(e===0)return 0;let n=~~e,r=0;n&&t&&(r=~~Math.log10(Math.abs(n))+1);let i=10**(t-r);return Math.floor(e*i+.5)/i}function O(e,t,n){return isNaN(e)?t:isNaN(t)?e:e+(t-e)*n}function k(e,t,n){return(n-e)/(t-e)}function A(e,t,n){return!e||!t||e===t||e[0]===t[0]&&e[1]===t[1]||isNaN(n)||n===null?n:O(t[0],t[1],k(e[0],e[1],n))}function j(e,t,n){return Math.max(Math.min(n,t),e)}function M(e,t){return Math.sign(e)===Math.sign(t)?e:-e}function N(e,t){return M(Math.abs(e)**t,e)}function P(e,t){return t===0?0:e/t}function F(e,t,n=0,r=e.length){for(;n<r;){let i=n+r>>1;e[i]<t?n=i+1:r=i}return n}function I(e,t){if(e instanceof t)return!0;let n=t.name;for(;e;){let t=Object.getPrototypeOf(e),r=t?.constructor?.name;if(r===n)return!0;if(!r||r===`Object`)return!1;e=t}return!1}var L=Object.freeze({__proto__:null,bisectLeft:F,clamp:j,copySign:M,interpolate:O,interpolateInv:k,isInstance:I,isNone:T,isString:S,mapRange:A,multiplyMatrices:y,multiply_v3_m3x3:x,serializeNumber:w,skipNone:E,spow:N,toPrecision:D,type:C,zdiv:P}),R=new class{add(e,t,n){if(typeof arguments[0]!=`string`){for(var e in arguments[0])this.add(e,arguments[0][e],arguments[1]);return}(Array.isArray(e)?e:[e]).forEach(function(e){this[e]=this[e]||[],t&&this[e][n?`unshift`:`push`](t)},this)}run(e,t){this[e]=this[e]||[],this[e].forEach(function(e){e.call(t&&t.context?t.context:t,t)})}},z={gamut_mapping:`css`,precision:5,deltaE:`76`,verbose:`production`?.toLowerCase()!==`test`,warn:function(e){this.verbose&&globalThis?.console?.warn?.(e)}},B=class{type;coordMeta;coordRange;range;constructor(e,t){if(typeof e==`object`&&(this.coordMeta=e),t&&(this.coordMeta=t,this.coordRange=t.range??t.refRange),typeof e==`string`){let t=e.trim().match(/^(?<type><[a-z]+>)(\[(?<min>-?[.\d]+),\s*(?<max>-?[.\d]+)\])?$/);if(!t)throw TypeError(`Cannot parse ${e} as a type definition.`);this.type=t.groups.type;let{min:n,max:r}=t.groups;(n||r)&&(this.range=[+n,+r])}}get computedRange(){return this.range?this.range:this.type===`<percentage>`?this.percentageRange():this.type===`<angle>`?[0,360]:null}get unit(){return this.type===`<percentage>`?`%`:this.type===`<angle>`?`deg`:``}resolve(e){if(this.type===`<angle>`)return e;let t=this.computedRange,n=this.coordRange;return this.type===`<percentage>`&&(n??=this.percentageRange()),A(t,n,e)}serialize(e,t){let n=this.type===`<percentage>`?this.percentageRange(100):this.computedRange,r=this.unit;return e=A(this.coordRange,n,e),w(e,{unit:r,precision:t})}toString(){let e=this.type;if(this.range){let[t=``,n=``]=this.range;e+=`[${t},${n}]`}return e}percentageRange(e=1){let t;return t=this.coordMeta&&this.coordMeta.range||this.coordRange&&this.coordRange[0]>=0?[0,1]:[-1,1],[t[0]*e,t[1]*e]}static get(e,t){return I(e,this)?e:new this(e,t)}},V=Symbol(`instance`),H=class e{type;name;
9spaceCoords;coords;id;alpha;constructor(e,t=e.space){e[V]=this,this.type=`function`,this.name=`color`,Object.assign(this,e),this.space=t,this.type!==`custom`&&(this.spaceCoords=Object.values(t.coords),this.coords||=this.spaceCoords.map(e=>{let t=[`<number>`,`<percentage>`];return e.type===`angle`&&t.push(`<angle>`),t}),this.coords=this.coords.map((e,t)=>{let n=this.spaceCoords[t];return typeof e==`string`&&(e=e.trim().split(/\s*\|\s*/)),e.map(e=>B.get(e,n))}))}serializeCoords(e,t,n){return n=e.map((e,t)=>B.get(n?.[t]??this.coords[t][0],this.spaceCoords[t])),e.map((e,r)=>n[r].serialize(e,t))}coerceCoords(e,t){return Object.entries(this.space.coords).map(([n,r],i)=>{let a=e[i];if(T(a)||isNaN(a))return a;let o=t[i],s=this.coords[i].find(e=>e.type==o);if(!s){let e=r.name||n;throw TypeError(`${o??a?.raw??a} not allowed for ${e} in ${this.name}()`)}return a=s.resolve(a),s.range&&(t[i]=s.toString()),a})}canSerialize(){return this.type===`function`||this.serialize}parse(e){return null}static get(t,...n){return!t||I(t,this)?t:t[V]?t[V]:new e(t,...n)}},U={D50:[.3457/.3585,1,.2958/.3585],D65:[.3127/.329,1,.3583/.329]};function ee(e){return Array.isArray(e)?e:U[e]}function W(e,t,n,r={}){if(e=ee(e),t=ee(t),!e||!t)throw TypeError(`Missing white point to convert ${e?``:`from`}${!e&&!t?`/`:``}${t?``:`to`}`);if(e===t)return n;let i={W1:e,W2:t,XYZ:n,options:r};if(R.run(`chromatic-adaptation-start`,i),i.M||(i.W1===U.D65&&i.W2===U.D50?i.M=[[1.0479297925449969,.022946870601609652,-.05019226628920524],[.02962780877005599,.9904344267538799,-.017073799063418826],[-.009243040646204504,.015055191490298152,.7518742814281371]]:i.W1===U.D50&&i.W2===U.D65&&(i.M=[[.955473421488075,-.02309845494876471,.06325924320057072],[-.0283697093338637,1.0099953980813041,.021041441191917323],[.012314014864481998,-.020507649298898964,1.330365926242124]])),R.run(`chromatic-adaptation-end`,i),i.M)return x(i.XYZ,i.M);throw TypeError(`Only Bradford CAT with white points D50 and D65 supported for now.`)}function te(e,t){let n={str:String(e)?.trim(),options:t};if(R.run(`parse-start`,n),n.color)return n.color;n.parsed=ae(n.str);let r,i=n.options?n.options.parseMeta??n.options.meta:null;if(n.parsed){let t=n.parsed.name,a,o,s=n.parsed.args,c=s.map((e,t)=>n.parsed.argMeta[t]?.type);if(t===`color`){let r=s.shift();c.shift();let i=r.startsWith(`--`)?r.substring(2):`--${r}`,l=[r,i];if(a=K.findFormat({name:t,id:l,type:`function`}),!a){let t,a=r in K.registry?r:i;if(a in K.registry){let n=K.registry[a].formats?.color?.id;n&&(t=`Did you mean ${e.replace(`color(`+r,`color(`+n)}?`)}throw TypeError(`Cannot parse ${n.str}. `+(t??`Missing a plugin?`))}o=a.space,a.id.startsWith(`--`)&&!r.startsWith(`--`)&&z.warn(`${o.name} is a non-standard space and not currently supported in the CSS spec. Use prefixed color(${a.id}) instead of color(${r}).`),r.startsWith(`--`)&&!a.id.startsWith(`--`)&&z.warn(`${o.name} is a standard space and supported in the CSS spec. Use color(${a.id}) instead of prefixed color(${r}).`)}else a=K.findFormat({name:t,type:`function`}),o=a.space;i&&Object.assign(i,{format:a,formatId:a.name,types:c,commas:n.parsed.commas});let l=1;
9n.parsed.lastAlpha&&(l=n.parsed.args.pop(),i&&(i.alphaType=c.pop()));let u=a.coords.length;if(s.length!==u)throw TypeError(`Expected ${u} coordinates for ${o.id} in ${n.str}), got ${s.length}`);s=a.coerceCoords(s,c),r={spaceId:o.id,coords:s,alpha:l}}else spaceloop:for(let e of K.all)for(let t in e.formats){let a=e.formats[t];if(a.type!==`custom`||a.test&&!a.test(n.str))continue;let o=e.getFormat(a),s=o.parse(n.str);if(s){i&&Object.assign(i,{format:o,formatId:t}),r=s;break spaceloop}}if(!r)throw TypeError(`Could not parse ${e} as a color. Missing a plugin?`);return r.alpha=T(r.alpha)?r.alpha:r.alpha===void 0?1:j(0,r.alpha,1),r}var ne={"%":.01,deg:1,grad:.9,rad:180/Math.PI,turn:360},re={function:/^([a-z]+)\(((?:calc\(NaN\)|.)+?)\)$/i,number:/^([-+]?(?:[0-9]*\.)?[0-9]+(e[-+]?[0-9]+)?)$/i,unitValue:RegExp(`(${Object.keys(ne).join(`|`)})$`),singleArgument:/\/?\s*(none|NaN|calc\(NaN\)|[-+\w.]+(?:%|deg|g?rad|turn)?)/g};function ie(e){let t={},n=e.match(re.unitValue)?.[0],r=t.raw=e;return n?(t.type=n===`%`?`<percentage>`:`<angle>`,t.unit=n,t.unitless=Number(r.slice(0,-n.length)),r=t.unitless*ne[n]):re.number.test(r)?(r=Number(r),t.type=`<number>`):r===`none`?r=null:r===`NaN`||r===`calc(NaN)`?(r=NaN,t.type=`<number>`):t.type=`<ident>`,{value:r,meta:t}}function ae(e){if(!e)return;e=e.trim();let t=e.match(re.function);if(t){let e=[],n=[],r=!1,i=t[1].toLowerCase(),a=t[2].replace(re.singleArgument,(t,a)=>{let{value:o,meta:s}=ie(a);return(t.startsWith(`/`)||i!==`color`&&e.length===3)&&(r=!0),e.push(o),n.push(s),``});return{name:i,args:e,argMeta:n,lastAlpha:r,commas:a.includes(`,`),rawName:t[1],rawArgs:t[2]}}}function G(e,t){if(Array.isArray(e))return e.map(e=>G(e,t));if(!e)throw TypeError(`Empty color reference`);S(e)&&(e=te(e,t));let n=e.space||e.spaceId;return typeof n==`string`&&(e.space=K.get(n)),e.alpha===void 0&&(e.alpha=1),e}var oe=75e-6,K=class e{constructor(t){this.id=t.id,this.name=t.name,this.base=t.base?e.get(t.base):null,this.aliases=t.aliases,this.base&&(this.fromBase=t.fromBase,this.toBase=t.toBase);let n=t.coords??this.base.coords;for(let e in n)`name`in n[e]||(n[e].name=e);this.coords=n;let r=t.white??this.base.white??`D65`;this.white=ee(r),this.formats=t.formats??{};for(let e in this.formats){let t=this.formats[e];t.type||=`function`,t.name||=e}this.formats.color?.id||(this.formats.color={...this.formats.color??{},id:t.cssId||this.id}),t.gamutSpace?this.gamutSpace=t.gamutSpace===`self`?this:e.get(t.gamutSpace):this.isPolar?this.gamutSpace=this.base:this.gamutSpace=this,this.gamutSpace.isUnbounded&&(this.inGamut=(e,t)=>!0),this.referred=t.referred,Object.defineProperty(this,`path`,{value:se(this).reverse(),writable:!1,enumerable:!0,configurable:!0}),R.run(`colorspace-init-end`,this)}inGamut(e,{epsilon:t=oe}={}){if(!this.equals(this.gamutSpace))return e=this.to(this.gamutSpace,e),this.gamutSpace.inGamut(e,{epsilon:t});let n=Object.values(this.coords);return e.every((e,r)=>{let i=n[r];if(i.type!==`angle`&&i.range){if(T(e))return!0;let[n,r]=i.range;return(n===void 0||e>=n-t)&&(r===void 0||e<=r+t)}return!0})}get isUnbounded(){return Object.values(this.coords).every(e=>!(`range`in e))}get cssId(){return this.formats?.color?.id||this.id}get isPolar(){for(let e in this.coords)if(this.coords[e].type===`angle`)return!0;return!1}getFormat(e){if(!e)return null;e===`default`?e=Object.values(this.formats)[0]:typeof e==`string`&&(e=this.formats[e]);let t=H.get(e,this);return t!==e&&e.name in this.formats&&(this.formats[e.name]=t),t}equals(e){return e?this===e||this.id===e||this.id===e.id:!1}to(t,n){if(arguments.length===1){let e=G(t);[t,n]=[e.space,e.coords]}if(t=e.get(t),this.equals(t))return n;n=n.map(e=>T(e)?0:e);let r=this.path,i=t.path,a,o;for(let e=0;e<r.length&&r[e].equals(i[e]);e++)a=r[e],o=e;if(!a)throw Error(`Cannot convert between color spaces ${this} and ${t}: no connection space was found`);for(let e=r.length-1;e>o;e--)n=r[e].toBase(n);for(let e=o+1;e<i.length;e++)n=i[e].fromBase(n);return n}from(t,n){if(arguments.length===1){let e=G(t);[t,n]=[e.space,e.coords]}return t=e.get(t),t.to(this,n)}toString(){return`${this.name} (${this.id})`}getMinCoords(){let e=[];for(let t in this.coords){let n=this.coords[t],r=n.range||n.refRange;e.push(r?.min??0)}return e}static registry={};static get all(){return[...new Set(Object.values(e.registry))]}static register(e,t){if(arguments.length===1&&(t=arguments[0],e=t.id),t=this.get(t),this.registry[e]&&this.registry[e]!==t)throw Error(`Duplicate color space registration: '${e}'`);if(this.registry[e]=t,arguments.length===1&&t.aliases)for(let e of t.aliases)this.register(e,t);return t}static get(t,...n){if(!t||I(t,this))return t;if(C(t)===`string`){let n=e.registry[t.toLowerCase()];if(!n)throw TypeError(`No color space found with id = "${t}"`);return n}if(n.length)return e.get(...n);throw TypeError(`${t} is not a valid color space`)}static findFormat(t,n=e.all){if(!t)return null;typeof t==`string`&&(t={name:t});for(let e of n)for(let[n,r]of Object.entries(e.formats)){r.name??=n,r.type??=`function`;let i=(!t.name||r.name===t.name)&&(!t.type||r.type===t.type);if(t.id){let e=r.ids||[r.id],n=Array.isArray(t.id)?t.id:[t.id];i&&=n.some(t=>e.includes(t))}if(i){let t=H.get(r,e);return t!==r&&(e.formats[r.name]=t),t}}return null}
9static resolveCoord(t,n){let r=C(t),i,a;if(r===`string`?t.includes(`.`)?[i,a]=t.split(`.`):[i,a]=[,t]:Array.isArray(t)?[i,a]=t:(i=t.space,a=t.coordId),i=e.get(i),i||=n,!i)throw TypeError(`Cannot resolve coordinate reference ${t}: No color space specified and relative references are not allowed here`);if(r=C(a),r===`number`||r===`string`&&a>=0){let e=Object.entries(i.coords)[a];if(e)return{space:i,id:e[0],index:a,...e[1]}}i=e.get(i);let o=a.toLowerCase(),s=0;for(let e in i.coords){let t=i.coords[e];if(e.toLowerCase()===o||t.name?.toLowerCase()===o)return{space:i,id:e,index:s,...t};s++}throw TypeError(`No "${a}" coordinate found in ${i.name}. Its coordinates are: ${Object.keys(i.coords).join(`, `)}`)}static DEFAULT_FORMAT={type:`functions`,name:`color`}};function se(e){let t=[e];for(let n=e;n=n.base;)t.push(n);return t}var ce=new K({id:`xyz-d65`,name:`XYZ D65`,coords:{x:{refRange:[0,1],name:`X`},y:{refRange:[0,1],name:`Y`},z:{refRange:[0,1],name:`Z`}},white:`D65`,formats:{color:{ids:[`xyz-d65`,`xyz`]}},aliases:[`xyz`]}),le=class extends K{constructor(e){e.coords||={r:{range:[0,1],name:`Red`},g:{range:[0,1],name:`Green`},b:{range:[0,1],name:`Blue`}},e.base||=ce,e.toXYZ_M&&e.fromXYZ_M&&(e.toBase??=t=>{let n=x(t,e.toXYZ_M);return this.white!==this.base.white&&(n=W(this.white,this.base.white,n)),n},e.fromBase??=t=>(t=W(this.base.white,this.white,t),x(t,e.fromXYZ_M))),e.referred??=`display`,super(e)}};function ue(e,t={}){if(Array.isArray(e))return e.map(e=>ue(e,t));let{cssProperty:n=`background-color`,element:r,...i}=t,a=null;try{return G(e,i)}catch(e){a=e}let{CSS:o,getComputedStyle:s}=globalThis;if(S(e)&&r&&o&&s&&o.supports(n,e)){let t=r.style[n];e!==t&&(r.style[n]=e);let o=s(r).getPropertyValue(n);if(e!==t&&(r.style[n]=t),o!==e)try{return G(o,i)}catch(e){a=e}else a={message:`Color value is a valid CSS color, but it could not be resolved :(`}}return t.errorMeta&&(t.errorMeta.error=a),null}function de(e,t){e=G(e);let n=K.get(t,t?.space),r=t?.precision,i;return i=!n||e.space.equals(n)?e.coords.slice():n.from(e),r===void 0?i:i.map(e=>D(e,r))}function fe(e,t){if(e=G(e),t===`alpha`)return e.alpha??1;let{space:n,index:r}=K.resolveCoord(t,e.space);return de(e,n)[r]}function pe(e,t,n,r){return e=G(e),Array.isArray(t)&&([t,n,r]=[e.space,t,n]),t=K.get(t),e.coords=t===e.space?n.slice():t.to(e.space,n),r!==void 0&&(e.alpha=r),e}pe.returns=`color`;function me(e,t,n){if(e=G(e),arguments.length===2&&C(arguments[1])===`object`){let t=arguments[1];for(let n in t)me(e,n,t[n])}else if(typeof n==`function`&&(n=n(fe(e,t))),t===`alpha`)e.alpha=n;else{let{space:r,index:i}=K.resolveCoord(t,e.space),a=de(e,r);a[i]=n,pe(e,r,a)}return e}me.returns=`color`;var he=new K({id:`xyz-d50`,name:`XYZ D50`,white:`D50`,base:ce,fromBase:e=>W(ce.white,`D50`,e),toBase:e=>W(`D50`,ce.white,e)}),ge=216/24389,_e=24/116,ve=24389/27,ye=U.D50,be=new K({id:`lab`,name:`Lab`,coords:{l:{refRange:[0,100],name:`Lightness`},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:ye,base:he,fromBase(e){let t=e.map((e,t)=>e/ye[t]).map(e=>e>ge?Math.cbrt(e):(ve*e+16)/116);return[116*t[1]-16,500*(t[0]-t[1]),200*(t[1]-t[2])]},toBase(e){let[t,n,r]=e,i=[];return i[1]=(t+16)/116,i[0]=n/500+i[1],i[2]=i[1]-r/200,[i[0]>_e?i[0]**3:(116*i[0]-16)/ve,e[0]>8?((e[0]+16)/116)**3:e[0]/ve,i[2]>_e?i[2]**3:(116*i[2]-16)/ve].map((e,t)=>e*ye[t])},formats:{lab:{coords:[`<percentage> | <number>`,`<number> | <percentage>`,`<number> | <percentage>`]}}});function xe(e){return typeof e==`number`?(e%360+360)%360:e}function Se(e,t){let[n,r]=t,i=T(n),a=T(r);if(i&&a)return[n,r];if(i?n=r:a&&(r=n),e===`raw`)return t;n=xe(n),r=xe(r);let o=r-n;return e===`increasing`?o<0&&(r+=360):e===`decreasing`?o>0&&(n+=360):e===`longer`?-180<o&&o<180&&(o>0?n+=360:r+=360):e===`shorter`&&(o>180?n+=360:o<-180&&(r+=360)),[n,r]}var Ce=new K({id:`lch`,name:`LCH`,coords:{l:{refRange:[0,100],name:`Lightness`},c:{refRange:[0,150],name:`Chroma`},h:{refRange:[0,360],type:`angle`,name:`Hue`}},base:be,fromBase(e){if(this.ε===void 0){let e=Object.values(this.base.coords)[1].refRange,t=e[1]-e[0];this.ε=t/1e5}let[t,n,r]=e,i=Math.abs(n)<this.ε&&Math.abs(r)<this.ε,a=i?null:xe(Math.atan2(r,n)*180/Math.PI);return[t,i?0:Math.sqrt(n**2+r**2),a]},toBase(e){let[t,n,r]=e,i=null,a=null;return T(r)||(n=n<0?0:n,i=n*Math.cos(r*Math.PI/180),a=n*Math.sin(r*Math.PI/180)
9),[t,i,a]},formats:{lch:{coords:[`<percentage> | <number>`,`<number> | <percentage>`,`<number> | <angle>`]}}}),we=25**7,Te=Math.PI,Ee=180/Te,De=Te/180;function Oe(e){let t=e*e;return t*t*t*e}function ke(e,t,{kL:n=1,kC:r=1,kH:i=1}={}){[e,t]=G([e,t]);let[a,o,s]=be.from(e),c=Ce.from(be,[a,o,s])[1],[l,u,d]=be.from(t),f=Ce.from(be,[l,u,d])[1];c<0&&(c=0),f<0&&(f=0);let p=Oe((c+f)/2),m=.5*(1-Math.sqrt(p/(p+we))),h=(1+m)*o,g=(1+m)*u,_=Math.sqrt(h**2+s**2),v=Math.sqrt(g**2+d**2),y=h===0&&s===0?0:Math.atan2(s,h),b=g===0&&d===0?0:Math.atan2(d,g);y<0&&(y+=2*Te),b<0&&(b+=2*Te),y*=Ee,b*=Ee;let x=l-a,S=v-_,C=b-y,w=y+b,T=Math.abs(C),E;_*v===0?E=0:T<=180?E=C:C>180?E=C-360:C<-180?E=C+360:z.warn(`the unthinkable has happened`);let D=2*Math.sqrt(v*_)*Math.sin(E*De/2),O=(a+l)/2,k=(_+v)/2,A=Oe(k),j;j=_*v===0?w:T<=180?w/2:w<360?(w+360)/2:(w-360)/2;let M=(O-50)**2,N=1+.015*M/Math.sqrt(20+M),P=1+.045*k,F=1;F-=.17*Math.cos((j-30)*De),F+=.24*Math.cos(2*j*De),F+=.32*Math.cos((3*j+6)*De),F-=.2*Math.cos((4*j-63)*De);let I=1+.015*k*F,L=30*Math.exp(-1*((j-275)/25)**2),R=2*Math.sqrt(A/(A+we)),B=-1*Math.sin(2*L*De)*R,V=(x/(n*N))**2;return V+=(S/(r*P))**2,V+=(D/(i*I))**2,V+=B*(S/(r*P))*(D/(i*I)),Math.sqrt(V)}var Ae=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],je=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],Me=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],Ne=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],Pe=new K({id:`oklab`,name:`Oklab`,coords:{l:{refRange:[0,1],name:`Lightness`},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:`D65`,base:ce,fromBase(e){let t=x(e,Ae);return t[0]=Math.cbrt(t[0]),t[1]=Math.cbrt(t[1]),t[2]=Math.cbrt(t[2]),x(t,Me,t)},toBase(e){let t=x(e,Ne);return t[0]**=3,t[1]**=3,t[2]**=3,x(t,je,t)},formats:{oklab:{coords:[`<percentage> | <number>`,`<number> | <percentage>`,`<number> | <percentage>`]}}});function Fe(e,t){[e,t]=G([e,t]);let[n,r,i]=Pe.from(e),[a,o,s]=Pe.from(t),c=n-a,l=r-o,u=i-s;return Math.sqrt(c**2+l**2+u**2)}var Ie=75e-6;function Le(e,t,{epsilon:n=Ie}={}){e=G(e),t||=e.space,t=K.get(t);let r=e.coords;return t!==e.space&&(r=t.from(e)),t.inGamut(r,{epsilon:n})}function Re(e){return{space:e.space,coords:e.coords.slice(),alpha:e.alpha}}function ze(e,t,n=`lab`){n=K.get(n);let r=n.from(e),i=n.from(t);return Math.sqrt(r.reduce((e,t,n)=>{let r=i[n];return T(t)||T(r)?e:e+(r-t)**2},0))}function Be(e,t){return ze(e,t,`lab`)}var Ve=Math.PI/180;function He(e,t,{l:n=2,c:r=1}={}){[e,t]=G([e,t]);let[i,a,o]=be.from(e),[,s,c]=Ce.from(be,[i,a,o]),[l,u,d]=be.from(t),f=Ce.from(be,[l,u,d])[1];s<0&&(s=0),f<0&&(f=0);let p=i-l,m=s-f,h=a-u,g=o-d,_=h**2+g**2-m**2,v=.511;i>=16&&(v=.040975*i/(1+.01765*i));let y=.0638*s/(1+.0131*s)+.638,b;T(c)&&(c=0),b=c>=164&&c<=345?.56+Math.abs(.2*Math.cos((c+168)*Ve)):.36+Math.abs(.4*Math.cos((c+35)*Ve));let x=s**4,S=Math.sqrt(x/(x+1900)),C=y*(S*b+1-S),w=(p/(n*v))**2;return w+=(m/(r*y))**2,w+=_/C**2,Math.sqrt(w)}var Ue=203,We=new K({id:`xyz-abs-d65`,cssId:`--xyz-abs-d65`,name:`Absolute XYZ D65`,coords:{x:{refRange:[0,9504.7],name:`Xa`},y:{refRange:[0,1e4],name:`Ya`},z:{refRange:[0,10888.3],name:`Za`}},base:ce,fromBase(e){return e.map(e=>e*Ue)},toBase(e){return e.map(e=>e/Ue)}}),Ge=1.15,Ke=.66,qe=2610/2**14,Je=2**14/2610,Ye=3424/2**12,Xe=2413/2**7,Ze=2392/2**7,Qe=1.7*2523/2**5,$e=2**5/(1.7*2523),et=-.56,tt=16295499532821565e-27,nt=[[.41478972,.579999,.014648],[-.20151,1.120649,.0531008],[-.0166008,.2648,.6684799]],rt=[[1.9242264357876067,-1.0047923125953657,.037651404030618],[.35031676209499907,.7264811939316552,-.06538442294808501],[-.09098281098284752,-.3127282905230739,1.5227665613052603]],it=[[.5,.5,0],[3.524,-4.066708,.542708],[.199076,1.096799,-1.295875]],at=[[1,.13860504327153927,.05804731615611883],[1,-.1386050432715393,-.058047316156118904],[1,-.09601924202631895,-.811891896056039]],ot=new K({id:`jzazbz`,name:`Jzazbz`,coords:{jz:{refRange:[0,1],name:`Jz`},az:{refRange:[-.21,.21]},bz:{refRange:[-.21,.21]}},base:We,fromBase(e){let[t,n,r]=e,[i,a,o]=x(x([Ge*t-(Ge-1)*r,Ke*n-(Ke-1)*t,r],nt).map(function(e){return N((Ye+Xe*N(e/1e4,qe))/(1+Ze*N(e/1e4,qe)),Qe)}),it);return[(1+et)*i/(1+et*i)-tt,a,o]},toBase(e){let[t,n,r]=e,[i,a,o]=x(x([(t+tt)/(1+et-et*(t+tt)),n,r],at).map(function(e){return 1e4*N((Ye-N(e,$e))/(Ze*N(e,$e)-Xe),Je)}),rt),s=(i+(Ge-1)*o)/Ge;return[s,(a+(Ke-1)*s)/Ke,o]},formats:{jzazbz:{coords:[`<percentage> | <number>`,`<number> | <percentage>`,`<number> | <percentage>`]}}}),st=new K({id:`jzczhz`,name:`JzCzHz`,coords:{jz:{refRange:[0,1],name:`Jz`},cz:{refRange:[0,.26],name:`Chroma`},hz:{refRange:[0,360],type:`angle`,name:`Hue`}},base:ot,fromBase:Ce.fromBase,toBase:Ce.toBase,formats:{jzczhz:{coords:[`<percentage> | <number>`,`<number> | <percentage>`,`<number> | <angle>`]}}});function ct(e,t){[e,t]=G([e,t]);let[n,r,i]=st.from(e),[a,o,s]=st.from(t),c=n-a,l=r-o;T(i)&&T(s)?(i=0,s=0):T(i)?i=s:T(s)&&(s=i);
9let u=i-s,d=2*Math.sqrt(r*o)*Math.sin(u/2*(Math.PI/180));return Math.sqrt(c**2+l**2+d**2)}var lt=3424/4096,ut=2413/128,dt=2392/128,ft=2610/16384,pt=2523/32,mt=16384/2610,ht=32/2523,gt=[[.3592832590121217,.6976051147779502,-.035891593232029],[-.1920808463704993,1.100476797037432,.0753748658519118],[.0070797844607479,.0748396662186362,.8433265453898765]],_t=[[2048/4096,2048/4096,0],[6610/4096,-13613/4096,7003/4096],[17933/4096,-17390/4096,-543/4096]],vt=[[.9999999999999998,.0086090370379328,.111029625003026],[.9999999999999998,-.0086090370379328,-.1110296250030259],[.9999999999999998,.5600313357106791,-.3206271749873188]],yt=[[2.0701522183894223,-1.3263473389671563,.2066510476294053],[.3647385209748072,.6805660249472273,-.0453045459220347],[-.0497472075358123,-.0492609666966131,1.1880659249923042]],bt=new K({id:`ictcp`,name:`ICTCP`,coords:{i:{refRange:[0,1],name:`I`},ct:{refRange:[-.5,.5],name:`CT`},cp:{refRange:[-.5,.5],name:`CP`}},base:We,fromBase(e){return xt(x(e,gt))},toBase(e){return x(St(e),yt)},formats:{ictcp:{coords:[`<percentage> | <number>`,`<number> | <percentage>`,`<number> | <percentage>`]}}});function xt(e){return x(e.map(function(e){return((lt+ut*(e/1e4)**ft)/(1+dt*(e/1e4)**ft))**pt}),_t)}function St(e){return x(e,vt).map(function(e){return 1e4*(Math.max(e**ht-lt,0)/(ut-dt*e**ht))**mt})}function Ct(e,t){[e,t]=G([e,t]);let[n,r,i]=bt.from(e),[a,o,s]=bt.from(t);return 720*Math.sqrt((n-a)**2+.25*(r-o)**2+(i-s)**2)}function wt(e,t){[e,t]=G([e,t]);let[n,r,i]=Pe.from(e),[a,o,s]=Pe.from(t),c=n-a,l=2*(r-o),u=2*(i-s);return Math.sqrt(c**2+l**2+u**2)}var Tt=U.D65,Et=.42,Dt=1/Et,Ot=2*Math.PI,kt=[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],At=[[1.8620678550872327,-1.0112546305316843,.14918677544445175],[.38752654323613717,.6214474419314753,-.008973985167612518],[-.015841498849333856,-.03412293802851557,1.0499644368778496]],jt=[[460,451,288],[460,-891,-261],[460,-220,-6300]],Mt={dark:[.8,.525,.8],dim:[.9,.59,.9],average:[1,.69,1]},Nt={h:[20.14,90,164.25,237.53,380.14],e:[.8,.7,1,1.2,.8],H:[0,100,200,300,400]},Pt=180/Math.PI,Ft=Math.PI/180;function It(e,t){return e.map(e=>{let n=N(t*Math.abs(e)*.01,Et);return 400*M(n,e)/(n+27.13)})}function Lt(e,t){let n=100/t*27.13**Dt;return e.map(e=>{let t=Math.abs(e);return M(n*N(t/(400-t),Dt),e)})}function Rt(e){let t=xe(e);t<=Nt.h[0]&&(t+=360);let n=F(Nt.h,t)-1,[r,i]=Nt.h.slice(n,n+2),[a,o]=Nt.e.slice(n,n+2),s=Nt.H[n],c=(t-r)/a;return s+100*c/(c+(i-t)/o)}function zt(e){let t=(e%400+400)%400,n=Math.floor(.01*t);t%=100;let[r,i]=Nt.h.slice(n,n+2),[a,o]=Nt.e.slice(n,n+2);return xe((t*(o*r-a*i)-100*r*o)/(t*(o-a)-100*o))}function Bt(e,t,n,r,i){let a={};a.discounting=i,a.refWhite=e,a.surround=r;let o=e.map(e=>e*100);a.la=t,a.yb=n;let s=o[1],c=x(o,kt),l=Mt[a.surround],u=l[0];a.c=l[1],a.nc=l[2];let d=(1/(5*a.la+1))**4;a.fl=d*a.la+.1*(1-d)*(1-d)*Math.cbrt(5*a.la),a.flRoot=a.fl**.25,a.n=a.yb/s,a.z=1.48+Math.sqrt(a.n),a.nbb=.725*a.n**-.2,a.ncb=a.nbb;let f=Math.max(Math.min(u*(1-1/3.6*Math.exp((-a.la-42)/92)),1),0);a.dRgb=c.map(e=>O(1,s/e,f)),a.dRgbInv=a.dRgb.map(e=>1/e);let p=It(c.map((e,t)=>e*a.dRgb[t]),a.fl);return a.aW=a.nbb*(2*p[0]+p[1]+.05*p[2]),a}var Vt=Bt(Tt,64/Math.PI*.2,20,`average`,!1);function Ht(e,t){if(!(e.J!==void 0^e.Q!==void 0))throw Error(`Conversion requires one and only one: 'J' or 'Q'`);if(!(e.C!==void 0^e.M!==void 0^e.s!==void 0))throw Error(`Conversion requires one and only one: 'C', 'M' or 's'`);if(!(e.h!==void 0^e.H!==void 0))throw Error(`Conversion requires one and only one: 'h' or 'H'`);if(e.J===0||e.Q===0)return[0,0,0];let n=0;n=e.h===void 0?zt(e.H)*Ft:xe(e.h)*Ft;let r=Math.cos(n),i=Math.sin(n),a=0;e.J===void 0?e.Q!==void 0&&(a=.25*t.c*e.Q/((t.aW+4)*t.flRoot)):a=N(e.J,1/2)*.1;let o=0;
9e.C===void 0?e.M===void 0?e.s!==void 0&&(o=4e-4*e.s**2*(t.aW+4)/t.c):o=e.M/t.flRoot/a:o=e.C/a;let s=N(o*(1.64-.29**t.n)**-.73,10/9),c=.25*(Math.cos(n+2)+3.8),l=t.aW*N(a,2/t.c/t.z),u=5e4/13*t.nc*t.ncb*c,d=l/t.nbb,f=23*(d+.305)*P(s,23*u+s*(11*r+108*i));return x(Lt(x([d,f*r,f*i],jt).map(e=>e*1/1403),t.fl).map((e,n)=>e*t.dRgbInv[n]),At).map(e=>e/100)}function Ut(e,t){let n=It(x(e.map(e=>e*100),kt).map((e,n)=>e*t.dRgb[n]),t.fl),r=n[0]+(-12*n[1]+n[2])/11,i=(n[0]+n[1]-2*n[2])/9,a=(Math.atan2(i,r)%Ot+Ot)%Ot,o=.25*(Math.cos(a+2)+3.8),s=N(5e4/13*t.nc*t.ncb*P(o*Math.sqrt(r**2+i**2),n[0]+n[1]+1.05*n[2]+.305),.9)*(1.64-.29**t.n)**.73,c=N(t.nbb*(2*n[0]+n[1]+.05*n[2])/t.aW,.5*t.c*t.z),l=100*N(c,2),u=4/t.c*c*(t.aW+4)*t.flRoot,d=s*c,f=d*t.flRoot,p=xe(a*Pt),m=Rt(p);return{J:l,C:d,h:p,s:50*N(t.c*s/(t.aW+4),1/2),Q:u,M:f,H:m}}var Wt=new K({id:`cam16-jmh`,cssId:`--cam16-jmh`,name:`CAM16-JMh`,coords:{j:{refRange:[0,100],name:`J`},m:{refRange:[0,105],name:`Colorfulness`},h:{refRange:[0,360],type:`angle`,name:`Hue`}},base:ce,fromBase(e){this.ε===void 0&&(this.ε=Object.values(this.coords)[1].refRange[1]/1e5);let t=Ut(e,Vt),n=Math.abs(t.M)<this.ε;return[t.J,n?0:t.M,n?null:t.h]},toBase(e){return Ht({J:e[0],M:e[1],h:e[2]},Vt)}}),Gt=U.D65,Kt=216/24389,qt=24389/27;function Jt(e){return 116*(e>Kt?Math.cbrt(e):(qt*e+16)/116)-16}function Yt(e){return e>8?((e+16)/116)**3:e/qt}function Xt(e,t){let[n,r,i]=e,a=[],o=0;if(i===0)return[0,0,0];let s=Yt(i);o=i>0?.00379058511492914*i**2+.608983189401032*i+.9155088574762233:9514440756550361e-21*i**2+.08693057439788597*i-21.928975842194614;let c=0,l=1/0;for(;c<=15;){a=Ht({J:o,C:r,h:n},t);let e=Math.abs(a[1]-s);if(e<l){if(e<=2e-12)return a;l=e}o-=(a[1]-s)*o/(2*a[1]),c+=1}return Ht({J:o,C:r,h:n},t)}function Zt(e,t){let n=Jt(e[1]);if(n===0)return[0,0,0];let r=Ut(e,Qt);return[xe(r.h),r.C,n]}var Qt=Bt(Gt,200/Math.PI*Yt(50),Yt(50)*100,`average`,!1),$t=new K({id:`hct`,name:`HCT`,coords:{h:{refRange:[0,360],type:`angle`,name:`Hue`},c:{refRange:[0,145],name:`Colorfulness`},t:{refRange:[0,100],name:`Tone`}},base:ce,fromBase(e){this.ε===void 0&&(this.ε=Object.values(this.coords)[1].refRange[1]/1e5);let t=Zt(e);return t[1]<this.ε&&(t[1]=0,t[0]=null),t},toBase(e){return Xt(e,Qt)},formats:{color:{id:`--hct`,coords:[`<number> | <angle>`,`<percentage> | <number>`,`<percentage> | <number>`]}}}),en=Math.PI/180,tn=[1,.007,.0228];function nn(e){e[1]<0&&(e=$t.fromBase($t.toBase(e)));let t=Math.log(Math.max(1+tn[2]*e[1]*Qt.flRoot,1))/tn[2],n=e[0]*en,r=t*Math.cos(n),i=t*Math.sin(n);return[e[2],r,i]}function rn(e,t){[e,t]=G([e,t]);let[n,r,i]=nn($t.from(e)),[a,o,s]=nn($t.from(t));return Math.sqrt((n-a)**2+(r-o)**2+(i-s)**2)}var an={deltaE76:Be,deltaECMC:He,deltaE2000:ke,deltaEJz:ct,deltaEITP:Ct,deltaEOK:Fe,deltaEOK2:wt,deltaEHCT:rn};function on(e){return Math.max(parseFloat(`1e${(e?Math.floor(Math.log10(Math.abs(e))):0)-2}`),1e-6)}var sn={hct:{method:`hct.c`,jnd:2,deltaEMethod:`hct`,blackWhiteClamp:{}},"hct-tonal":{method:`hct.c`,jnd:0,deltaEMethod:`hct`,blackWhiteClamp:{channel:`hct.t`,min:0,max:100}}};function cn(e,{method:t=z.gamut_mapping,space:n=void 0,deltaEMethod:r=``,jnd:i=2,blackWhiteClamp:a=void 0}={}){if(e=G(e),S(arguments[1])?n=arguments[1]:n||=e.space,n=K.get(n),Le(e,n,{epsilon:0}))return e;let o;if(t===`css`)o=un(e,{space:n});else{if(t!==`clip`&&!Le(e,n)){Object.prototype.hasOwnProperty.call(sn,t)&&({method:t,jnd:i,deltaEMethod:r,blackWhiteClamp:a}=sn[t]);let s=ke;if(r!==``){for(let e in an)if(`deltae`+r.toLowerCase()===e.toLowerCase()){s=an[e];break}}i===0&&(i=1e-16);let c=cn(dn(e,n),{method:`clip`,space:n});if(s(e,c)>i){if(a&&Object.keys(a).length===3){let t=K.resolveCoord(a.channel),n=fe(dn(e,t.space),t.id);if(T(n)&&(n=0),n>=a.max)return dn({space:`xyz-d65`,coords:U.D65},e.space);if(n<=a.min)return dn({space:`xyz-d65`,coords:[0,0,0]},e.space)}let r=K.resolveCoord(t),c=r.space,l=r.id,u=dn(e,c);u.coords.forEach((e,t)=>{T(e)&&(u.coords[t]=0)});let d=(r.range||r.refRange)[0],f=on(i),p=d,m=fe(u,l);for(;m-p>f;){let e=Re(u);e=cn(e,{space:n,method:`clip`}),s(u,e)-i<f?p=fe(u,l):m=fe(u,l),me(u,l,(p+m)/2)}o=dn(u,n)}else o=c}else o=dn(e,n);if(t===`clip`||!Le(o,n,{epsilon:0})){let e=Object.values(n.coords).map(e=>e.range||[]);o.coords=o.coords.map((t,n)=>{let[r,i]=e[n];return r!==void 0&&(t=Math.max(r,t)),i!==void 0&&(t=Math.min(t,i)),t})}}return n!==e.space&&(o=dn(o,e.space)),e.coords=o.coords,e}cn.returns=`color`;var ln={WHITE:{space:Pe,coords:[1,0,0],alpha:1},BLACK:{space:Pe,coords:[0,0,0],alpha:1}};function un(e,{space:t}={}){let n=.02,r=1e-4;e=G(e),t||=e.space,t=K.get(t);let i=K.get(`oklch`);if(t.isUnbounded)return dn(e,t);let a=dn(e,i),o=a.coords[0];if(o>=1){let n=dn(ln.WHITE,t);
9return n.alpha=e.alpha,dn(n,t)}if(o<=0){let n=dn(ln.BLACK,t);return n.alpha=e.alpha,dn(n,t)}if(Le(a,t,{epsilon:0}))return dn(a,t);function s(e){let n=dn(e,t),r=Object.values(t.coords);return n.coords=n.coords.map((e,t)=>{if(`range`in r[t]){let[n,i]=r[t].range;return j(n,e,i)}return e}),n}let c=0,l=a.coords[1],u=!0,d=Re(a),f=s(d),p=Fe(f,d);if(p<n)return f;for(;l-c>r;){let e=(c+l)/2;if(d.coords[1]=e,u&&Le(d,t,{epsilon:0}))c=e;else if(f=s(d),p=Fe(f,d),p<n){if(n-p<r)break;u=!1,c=e}else l=e}return f}function dn(e,t,{inGamut:n}={}){e=G(e),t=K.get(t);let r=t.from(e),i={space:t,coords:r,alpha:e.alpha};return n&&(i=cn(i,n===!0?void 0:n)),i}dn.returns=`color`;function fn(e,t={}){let{precision:n=z.precision,format:r,inGamut:i=!0,coords:a,alpha:o,commas:s}=t,c,l=G(e),u=r,d=l.parseMeta;d&&!r&&(d.format.canSerialize()&&(r=d.format,u=d.formatId),a??=d.types,o??=d.alphaType,s??=d.commas),u&&(r=l.space.getFormat(r)??K.findFormat(u)),r||(r=l.space.getFormat(`default`)??K.DEFAULT_FORMAT,u=r.name),r&&r.space&&r.space!==l.space&&(l=dn(l,r.space));let f=l.coords.slice();if(i||=r.toGamut,i&&!Le(l)&&(f=cn(Re(l),i===!0?void 0:i).coords),r.type===`custom`)if(r.serialize)c=r.serialize(f,l.alpha,t);else throw TypeError(`format ${u} can only be used to parse colors, not for serialization`);else{let e=r.name||`color`,t=r.serializeCoords(f,n,a);if(e===`color`){let e=r.id||r.ids?.[0]||l.space.cssId||l.space.id;t.unshift(e)}let i=l.alpha;o!==void 0&&typeof o!=`object`&&(o=typeof o==`string`?{type:o}:{include:o});let u=o?.type??`<number>`,d=o?.include===!0||r.alpha===!0||o?.include!==!1&&r.alpha!==!1&&i<1,p=``;if(s??=r.commas,d){if(n!==null){let e;u===`<percentage>`&&(e=`%`,i*=100),i=w(i,{precision:n,unit:e})}p=`${s?`,`:` /`} ${i}`}c=`${e}(${t.join(s?`, `:` `)}${p})`}return c}var pn=new le({id:`rec2020-linear`,cssId:`--rec2020-linear`,name:`Linear REC.2020`,white:`D65`,toXYZ_M:[[.6369580483012914,.14461690358620832,.1688809751641721],[.2627002120112671,.6779980715188708,.05930171646986196],[0,.028072693049087428,1.060985057710791]],fromXYZ_M:[[1.716651187971268,-.355670783776392,-.25336628137366],[-.666684351832489,1.616481236634939,.0157685458139111],[.017639857445311,-.042770613257809,.942103121235474]]}),mn=new le({id:`rec2020`,name:`REC.2020`,base:pn,toBase(e){return e.map(function(e){let t=e<0?-1:1;return t*(e*t)**2.4})},fromBase(e){return e.map(function(e){let t=e<0?-1:1;return t*(e*t)**(1/2.4)})}}),hn=new le({id:`p3-linear`,cssId:`display-p3-linear`,name:`Linear P3`,white:`D65`,toXYZ_M:[[.4865709486482162,.26566769316909306,.1982172852343625],[.2289745640697488,.6917385218365064,.079286914093745],[0,.04511338185890264,1.043944368900976]],fromXYZ_M:[[2.493496911941425,-.9313836179191239,-.40271078445071684],[-.8294889695615747,1.7626640603183463,.023624685841943577],[.03584583024378447,-.07617238926804182,.9568845240076872]]}),gn=[[.41239079926595934,.357584339383878,.1804807884018343],[.21263900587151027,.715168678767756,.07219231536073371],[.01933081871559182,.11919477979462598,.9505321522496607]],_n=[[3.2409699419045226,-1.537383177570094,-.4986107602930034],[-.9692436362808796,1.8759675015077202,.04155505740717559],[.05563007969699366,-.20397695888897652,1.0569715142428786]],vn=new le({id:`srgb-linear`,name:`Linear sRGB`,white:`D65`,toXYZ_M:gn,fromXYZ_M:_n}),yn={aliceblue:[240/255,248/255,1],antiquewhite:[250/255,235/255,215/255],aqua:[0,1,1],aquamarine:[127/255,1,212/255],azure:[240/255,1,1],beige:[245/255,245/255,220/255],bisque:[1,228/255,196/255],black:[0,0,0],blanchedalmond:[1,235/255,205/255],blue:[0,0,1],blueviolet:[138/255,43/255,226/255],brown:[165/255,42/255,42/255],burlywood:[222/255,184/255,135/255],cadetblue:[95/255,158/255,160/255],chartreuse:[127/255,1,0],chocolate:[210/255,105/255,30/255],coral:[1,127/255,80/255],cornflowerblue:[100/255,149/255,237/255],cornsilk:[1,248/255,220/255],crimson:[220/255,20/255,60/255],cyan:[0,1,1],darkblue:[0,0,139/255],darkcyan:[0,139/255,139/255],darkgoldenrod:[184/255,134/255,11/255],darkgray:[169/255,169/255,169/255],darkgreen:[0,100/255,0],darkgrey:[169/255,169/255,169/255],darkkhaki:[189/255,183/255,107/255],darkmagenta:[139/255,0,139/255],darkolivegreen:[85/255,107/255,47/255],darkorange:[1,140/255,0],darkorchid:[153/255,50/255,204/255],darkred:[139/255,0,0],darksalmon:[233/255,150/255,122/255],darkseagreen:[143/255,188/255,143/255],darkslateblue:[72/255,61/255,139/255],darkslategray:[47/255,79/255,79/255],darkslategrey:[47/255,79/255,79/255],darkturquoise:[0,206/255,209/255],darkviolet:[148/255,0,211/255],deeppink:[1,20/255,147/255],deepskyblue:[0,191/255,1],dimgray:[105/255,105/255,105/255],dimgrey:[105/255,105/255,105/255],dodgerblue:[30/255,144/255,1],firebrick:[178/255,34/255,34/255],floralwhite:[1,250/255,240/255],forestgreen:[34/255,139/255,34/255],fuchsia:[1,0,1],gainsboro:[220/255,220/255,220/255],ghostwhite:[248/255,248/255,1],gold:[1,215/255,0],goldenrod:[218/255,165/255,32/255],gray:[128/255,128/255,128/255],green:[0,128/255,0],greenyellow:[173/255,1,47/255],grey:[128/255,128/255,128/255],honeydew:[240/255,1,240/255],hotpink:[1,105/255,180/255],indianred:[205/255,92/255,92/255],indigo:[75/255,0,130/255],ivory:[1,1,240/255],khaki:[240/255,230/255,140/255],lavender:[230/255,230/255,250/255],lavenderblush:[1,240/255,245/255],lawngreen:[124/255,252/255,0],lemonchiffon:[1,250/255,205/255],lightblue:[173/255,216/255,230/255],lightcoral:[240/255,128/255,128/255],lightcyan:[224/255,1,1],lightgoldenrodyellow:[250/255,250/255,210/255],lightgray:[211/255,211/255,211/255],lightgreen:[144/255,238/255,144/255],lightgrey:[211/255,211/255,211/255],lightpink:[1,182/255,193/255],lightsalmon:[1,160/255,122/255],lightseagreen:[32/255,178/255,170/255],lightskyblue:[135/255,206/255,250/255],lightslategray:[119/255,136/255,153/255],lightslategrey:[119/255,136/255,153/255],lightsteelblue:[176/255,196/255,222/255],lightyellow:[1,1,224/255],lime:[0,1,0],limegreen:[50/255,205/255,50/255],linen:[250/255,240/255,230/255],magenta:[1,0,1],maroon:[128/255,0,0],mediumaquamarine:[102/255,205/255,170/255],mediumblue:[0,0,205/255],mediumorchid:[186/255,85/255,211/255],mediumpurple:[147/255,112/255,219/255],mediumseagreen:[60/255,179/255,113/255],mediumslateblue:[123/255,104/255,238/255],mediumspringgreen:[0,250/255,154/255],mediumturquoise:[72/255,209/255,204/255],mediumvioletred:[199/255,21/255,133/255],midnightblue:[25/255,25/255,112/255],mintcream:[245/255,1,250/255],mistyrose:[1,228/255,225/255],moccasin:[1,228/255,181/255],navajowhite:[1,222/255,173/255],navy:[0,0,128/255],oldlace:[253/255,245/255,230/255],olive:[128/255,128/255,0],olivedrab:[107/255,142/255,35/255],orange:[1,165/255,0],orangered:[1,69/255,0],orchid:[218/255,112/255,214/255],palegoldenrod:[238/255,232/255,170/255],palegreen:[152/255,251/255,152/255],paleturquoise:[175/255,238/255,238/255],palevioletred:[219/255,112/255,147/255],papayawhip:[1,239/255,213/255],peachpuff:[1,218/255,185/255],peru:[205/255,133/255,63/255],pink:[1,192/255,203/255],plum:[221/255,160/255,221/255],powderblue:[176/255,224/255,230/255],purple:[128/255,0,128/255],rebeccapurple:[102/255,51/255,153/255],red:[1,0,0],rosybrown:[188/255,143/255,143/255],royalblue:[65/255,105/255,225/255],saddlebrown:[139/255,69/255,19/255],salmon:[250/255,128/255,114/255],sandybrown:[244/255,164/255,96/255],seagreen:[46/255,139/255,87/255],seashell:[1,245/255,238/255],sienna:[160/255,82/255,45/255],silver:[192/255,192/255,192/255],skyblue:[135/255,206/255,235/255],slateblue:[106/255,90/255,205/255],slategray:[112/255,128/255,144/255],slategrey:[112/255,128/255,144/255],snow:[1,250/255,250/255],springgreen:[0,1,127/255],steelblue:[70/255,130/255,180/255],tan:[210/255,180/255,140/255],teal:[0,128/255,128/255],thistle:[216/255,191/255,216/255],tomato:[1,99/255,71/255],turquoise:[64/255,224/255,208/255],violet:[238/255,130/255,238/255],wheat:[245/255,222/255,179/255],white:[1,1,1],whitesmoke:[245/255,245/255,245/255],yellow:[1,1,0],yellowgreen:[154/255,205/255,50/255]},bn=[,,,].fill(`<percentage> | <number>[0, 255]`),xn=[,,,].fill(`<number>[0, 255]`),Sn=new le({id:`srgb`,name:`sRGB`,base:vn,fromBase:e=>e.map(e=>{let t=e<0?-1:1,n=e*t;return n>.0031308?t*(1.055*n**(1/2.4)-.055):12.92*e}),toBase:e=>e.map(e=>{let t=e<0?-1:1,n=e*t;return n<=.04045?e/12.92:t*((n+.055)/1.055)**2.4}),formats:{rgb:{coords:bn},rgb_number:{name:`rgb`,commas:!0,coords:xn,alpha:!1},color:{},rgba:{coords:bn,commas:!0,alpha:!0},rgba_number:{name:`rgba`,commas:!0,coords:xn},hex:{type:`custom`,toGamut:!0,test:e=>/^#(([a-f0-9]{2}){3,4}|[a-f0-9]{3,4})$/i.test(e),parse(e){e.length<=5&&(e=e.replace(/[a-f0-9]/gi,`$&$&`));let t=[];return e.replace(/[a-f0-9]{2}/gi,e=>{t.push(parseInt(e,16)/255)}),{spaceId:`srgb`,coords:t.slice(0,3),alpha:t.slice(3)[0]}},serialize:(e,t,{collapse:n=!0,alpha:r}={})=>{(r!==!1&&t<1||r===!0)&&e.push(t),e=e.map(e=>Math.round(e*255));let i=n&&e.every(e=>e%17==0);return`#`+e.map(e=>i?(e/17).toString(16):e.toString(16).padStart(2,`0`)).join(``)}},keyword:{type:`custom`,test:e=>/^[a-z]+$/i.test(e),parse(e){e=e.toLowerCase();let t={spaceId:`srgb`,coords:null,alpha:1};if(e===`transparent`?(t.coords=yn.black,t.alpha=0):t.coords=yn[e],t.coords)return t}}}}),Cn=new le({id:`p3`,cssId:`display-p3`,name:`P3`,base:hn,fromBase:Sn.fromBase,toBase:Sn.toBase});z.display_space=Sn;var wn;if(typeof CSS<`u`&&CSS.supports)for(let e of[be,mn,Cn]){let t=fn({space:e,coords:e.getMinCoords(),alpha:1});if(CSS.supports(`color`,t)){z.display_space=e;break}}function Tn(e,{space:t=z.display_space,...n}={}){e=G(e);let r=fn(e,n);if(typeof CSS>`u`||CSS.supports(`color`,r)||!z.display_space)r=new String(r),r.color=e;else{let i=e;if((e.coords.some(T)||T(e.alpha))&&!(wn??=CSS.supports(`color`,`hsl(none 50% 50%)`))&&(i=Re(e),i.coords=i.coords.map(E),i.alpha=E(i.alpha),r=fn(i,n),CSS.supports(`color`,r)))return r=new String(r),r.color=i,r;i=dn(i,t),r=new String(fn(i,n)),r.color=i}return r}function En(e,t,{space:n,hue:r=`shorter`}={}){e=G(e),n||=e.space,n=K.get(n);let i=Object.values(n.coords);[e,t]=[e,t].map(e=>dn(e,n));let[a,o]=[e,t].map(e=>e.coords),s=a.map((e,t)=>{let n=i[t],a=o[t];return n.type===`angle`&&([e,a]=Se(r,[e,a])),Dn(e,a)}),c=Dn(e.alpha,t.alpha);
9return{space:n,coords:s,alpha:c}}function Dn(e,t){return T(e)||T(t)?e===t?null:0:e-t}function On(e,t){return e=G(e),t=G(t),e.space===t.space&&e.alpha===t.alpha&&e.coords.every((e,n)=>e===t.coords[n])}function kn(e){return fe(e,[ce,`y`])}function An(e,t){me(e,[ce,`y`],t)}function jn(e){Object.defineProperty(e.prototype,`luminance`,{get(){return kn(this)},set(e){An(this,e)}})}var Mn=Object.freeze({__proto__:null,getLuminance:kn,register:jn,setLuminance:An});function Nn(e,t){e=G(e),t=G(t);let n=Math.max(kn(e),0),r=Math.max(kn(t),0);return r>n&&([n,r]=[r,n]),(n+.05)/(r+.05)}var Pn=.56,Fn=.57,In=.62,Ln=.65,Rn=.022,zn=1.414,Bn=.1,Vn=5e-4,Hn=1.14,Un=.027,Wn=1.14;function Gn(e){return e>=Rn?e:e+(Rn-e)**zn}function Kn(e){return(e<0?-1:1)*Math.abs(e)**2.4}function qn(e,t){t=G(t),e=G(e);let n,r,i,a,o,s;t=dn(t,`srgb`),[a,o,s]=t.coords.map(e=>T(e)?0:e);let c=Kn(a)*.2126729+Kn(o)*.7151522+Kn(s)*.072175;e=dn(e,`srgb`),[a,o,s]=e.coords.map(e=>T(e)?0:e);let l=Kn(a)*.2126729+Kn(o)*.7151522+Kn(s)*.072175,u=Gn(c),d=Gn(l),f=d>u;return Math.abs(d-u)<Vn?r=0:f?(n=d**Pn-u**Fn,r=n*Hn):(n=d**Ln-u**In,r=n*Wn),i=Math.abs(r)<Bn?0:r>0?r-Un:r+Un,i*100}function Jn(e,t){e=G(e),t=G(t);let n=Math.max(kn(e),0),r=Math.max(kn(t),0);r>n&&([n,r]=[r,n]);let i=n+r;return i===0?0:(n-r)/i}var Yn=5e4;function Xn(e,t){e=G(e),t=G(t);let n=Math.max(kn(e),0),r=Math.max(kn(t),0);return r>n&&([n,r]=[r,n]),r===0?Yn:(n-r)/r}function Zn(e,t){e=G(e),t=G(t);let n=fe(e,[be,`l`]),r=fe(t,[be,`l`]);return Math.abs(n-r)}var Qn=216/24389,$n=24/116,er=24389/27,tr=U.D65,nr=new K({id:`lab-d65`,name:`Lab D65`,coords:{l:{refRange:[0,100],name:`Lightness`},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:tr,base:ce,fromBase(e){let t=e.map((e,t)=>e/tr[t]).map(e=>e>Qn?Math.cbrt(e):(er*e+16)/116);return[116*t[1]-16,500*(t[0]-t[1]),200*(t[1]-t[2])]},toBase(e){let t=[];return t[1]=(e[0]+16)/116,t[0]=e[1]/500+t[1],t[2]=t[1]-e[2]/200,[t[0]>$n?t[0]**3:(116*t[0]-16)/er,e[0]>8?((e[0]+16)/116)**3:e[0]/er,t[2]>$n?t[2]**3:(116*t[2]-16)/er].map((e,t)=>e*tr[t])},formats:{"lab-d65":{coords:[`<number> | <percentage>`,`<number> | <percentage>`,`<number> | <percentage>`]}}}),rr=5**.5*.5+.5;function ir(e,t){e=G(e),t=G(t);let n=fe(e,[nr,`l`]),r=fe(t,[nr,`l`]),i=Math.abs(n**+rr-r**+rr)**(1/rr)*Math.SQRT2-40;return i<7.5?0:i}var ar=Object.freeze({__proto__:null,contrastAPCA:qn,contrastDeltaPhi:ir,contrastLstar:Zn,contrastMichelson:Jn,contrastWCAG21:Nn,contrastWeber:Xn});function or(e,t,n){S(n)&&(n={algorithm:n});let{algorithm:r,...i}=n||{};if(!r){let e=Object.keys(ar).map(e=>e.replace(/^contrast/,``)).join(`, `);throw TypeError(`contrast() function needs a contrast algorithm. Please specify one of: ${e}`)}e=G(e),t=G(t);for(let n in ar)if(`contrast`+r.toLowerCase()===n.toLowerCase())return ar[n](e,t,i);throw TypeError(`Unknown contrast algorithm: ${r}`)}function sr(e){let[t,n,r]=de(e,ce),i=t+15*n+3*r;return[4*t/i,9*n/i]}function cr(e){let[t,n,r]=de(e,ce),i=t+n+r;return[t/i,n/i]}function lr(e){Object.defineProperty(e.prototype,`uv`,{get(){return sr(this)}}),Object.defineProperty(e.prototype,`xy`,{get(){return cr(this)}})}var ur=Object.freeze({__proto__:null,register:lr,uv:sr,xy:cr});function dr(e,t,n={}){S(n)&&(n={method:n});let{method:r=z.deltaE,...i}=n;for(let n in an)if(`deltae`+r.toLowerCase()===n.toLowerCase())return an[n](e,t,i);throw TypeError(`Unknown deltaE method: ${r}`)}function fr(e,t=.25){return me(e,[K.get(`oklch`,`lch`),`l`],e=>e*(1+t))}function pr(e,t=.25){return me(e,[K.get(`oklch`,`lch`),`l`],e=>e*(1-t))}fr.returns=`color`,pr.returns=`color`;var mr=Object.freeze({__proto__:null,darken:pr,lighten:fr});function hr(e,t,n,r={}){return[e,t]=[G(e),G(t)],C(n)===`object`&&([n,r]=[.5,n]),_r(e,t,r)(n??.5)}function gr(e,t,n={}){let r;vr(e)&&([r,n]=[e,t],[e,t]=r.rangeArgs.colors);let{maxDeltaE:i,deltaEMethod:a,steps:o=2,maxSteps:s=1e3,...c}=n;r||=([e,t]=[G(e),G(t)],_r(e,t,c));let l=dr(e,t),u=i>0?Math.max(o,Math.ceil(l/i)+1):o,d=[];if(s!==void 0&&(u=Math.min(u,s)),u===1)d=[{p:.5,color:r(.5)}];else{let e=1/(u-1);d=Array.from({length:u},(t,n)=>{let i=n*e;return{p:i,color:r(i)}})}if(i>
90){let e=d.reduce((e,t,n)=>{if(n===0)return 0;let r=dr(t.color,d[n-1].color,a);return Math.max(e,r)},0);for(;e>i;){e=0;for(let t=1;t<d.length&&d.length<s;t++){let n=d[t-1],i=d[t],a=(i.p+n.p)/2,o=r(a);e=Math.max(e,dr(o,n.color),dr(o,i.color)),d.splice(t,0,{p:a,color:r(a)}),t++}}}return d=d.map(e=>e.color),d}function _r(e,t,n={}){if(vr(e)){let[n,r]=[e,t];return _r(...n.rangeArgs.colors,{...n.rangeArgs.options,...r})}let{space:r,outputSpace:i,progression:a,premultiplied:o}=n;e=G(e),t=G(t),e=Re(e),t=Re(t);let s={colors:[e,t],options:n};if(r=r?K.get(r):K.registry[z.interpolationSpace]||e.space,i=i?K.get(i):r,e=dn(e,r),t=dn(t,r),e=cn(e),t=cn(t),r.coords.h&&r.coords.h.type===`angle`){let i=n.hue=n.hue||`shorter`,a=[r,`h`],[o,s]=[fe(e,a),fe(t,a)];T(o)&&!T(s)?o=s:T(s)&&!T(o)&&(s=o),[o,s]=Se(i,[o,s]),me(e,a,o),me(t,a,s)}return o&&(e.coords=e.coords.map(t=>t*e.alpha),t.coords=t.coords.map(e=>e*t.alpha)),Object.assign(n=>{n=a?a(n):n;let s=e.coords.map((e,r)=>{let i=t.coords[r];return O(e,i,n)}),c=O(e.alpha,t.alpha,n),l={space:r,coords:s,alpha:c};return o&&(l.coords=l.coords.map(e=>e/c)),i!==r&&(l=dn(l,i)),l},{rangeArgs:s})}function vr(e){return C(e)===`function`&&!!e.rangeArgs}z.interpolationSpace=`lab`;function yr(e){e.defineFunction(`mix`,hr,{returns:`color`}),e.defineFunction(`range`,_r,{returns:`function<color>`}),e.defineFunction(`steps`,gr,{returns:`array<color>`})}var br=Object.freeze({__proto__:null,isRange:vr,mix:hr,range:_r,register:yr,steps:gr}),xr=new K({id:`hsl`,name:`HSL`,coords:{h:{refRange:[0,360],type:`angle`,name:`Hue`},s:{range:[0,100],name:`Saturation`},l:{range:[0,100],name:`Lightness`}},base:Sn,fromBase:e=>{let t=Math.max(...e),n=Math.min(...e),[r,i,a]=e,[o,s,c]=[null,0,(n+t)/2],l=t-n;if(l!==0){switch(s=c===0||c===1?0:(t-c)/Math.min(c,1-c),t){case r:o=(i-a)/l+(i<a?6:0);break;case i:o=(a-r)/l+2;break;case a:o=(r-i)/l+4}o*=60}return s<0&&(o+=180,s=Math.abs(s)),o>=360&&(o-=360),[o,s*100,c*100]},toBase:e=>{let[t,n,r]=e;t%=360,t<0&&(t+=360),n/=100,r/=100;function i(e){let i=(e+t/30)%12,a=n*Math.min(r,1-r);return r-a*Math.max(-1,Math.min(i-3,9-i,1))}return[i(0),i(8),i(4)]},formats:{hsl:{coords:[`<number> | <angle>`,`<percentage> | <number>`,`<percentage> | <number>`]},hsla:{coords:[`<number> | <angle>`,`<percentage> | <number>`,`<percentage> | <number>`],commas:!0,alpha:!0}}}),Sr=new K({id:`hsv`,name:`HSV`,coords:{h:{refRange:[0,360],type:`angle`,name:`Hue`},s:{range:[0,100],name:`Saturation`},v:{range:[0,100],name:`Value`}},base:Sn,fromBase(e){let t=Math.max(...e),n=Math.min(...e),[r,i,a]=e,[o,s,c]=[null,0,t],l=t-n;if(l!==0){switch(t){case r:o=(i-a)/l+(i<a?6:0);break;case i:o=(a-r)/l+2;break;case a:o=(r-i)/l+4}o*=60}return c&&(s=l/c),o>=360&&(o-=360),[o,s*100,c*100]},toBase(e){let[t,n,r]=e;t%=360,t<0&&(t+=360),n/=100,r/=100;function i(e){let i=(e+t/60)%6;return r-r*n*Math.max(0,Math.min(i,4-i,1))}return[i(5),i(3),i(1)]},formats:{color:{id:`--hsv`,coords:[`<number> | <angle>`,`<percentage> | <number>`,`<percentage> | <number>`]}}}),Cr=new K({id:`hwb`,name:`HWB`,coords:{h:{refRange:[0,360],type:`angle`,name:`Hue`},w:{range:[0,100],name:`Whiteness`},b:{range:[0,100],name:`Blackness`}},base:Sr,fromBase(e){let[t,n,r]=e;return[t,r*(100-n)/100,100-r]},toBase(e){let[t,n,r]=e;n/=100,r/=100;let i=n+r;if(i>=1)return[t,0,n/i*100];let a=1-r;return[t,(a===0?0:1-n/a)*100,a*100]},formats:{hwb:{coords:[`<number> | <angle>`,`<percentage> | <number>`,`<percentage> | <number>`]}}}),wr=new le({id:`a98rgb-linear`,cssId:`--a98-rgb-linear`,name:`Linear Adobe® 98 RGB compatible`,white:`D65`,toXYZ_M:[[.5766690429101305,.1855582379065463,.1882286462349947],[.29734497525053605,.6273635662554661,.07529145849399788],[.02703136138641234,.07068885253582723,.9913375368376388]],fromXYZ_M:[[2.0415879038107465,-.5650069742788596,-.34473135077832956],[-.9692436362808795,1.8759675015077202,.04155505740717557],[.013444280632031142,-.11836239223101838,1.0151749943912054]]}),Tr=new le({id:`a98rgb`,cssId:`a98-rgb`,name:`Adobe® 98 RGB compatible`,base:wr,toBase:e=>e.map(e=>Math.abs(e)**(563/256)*Math.sign(e)),fromBase:e=>e.map(e=>Math.abs(e)**(256/563)*Math.sign(e))}),Er=new le({id:`prophoto-linear`,cssId:`--prophoto-rgb-linear`,name:`Linear ProPhoto`,white:`D50`,base:he,toXYZ_M:[[.7977666449006423,.13518129740053308,.0313477341283922],[.2880748288194013,.711835234241873,8993693872564e-17],[0,0,.8251046025104602]],fromXYZ_M:[[1.3457868816471583,-.25557208737979464,-.05110186497554526],[-.5446307051249019,1.5082477428451468,.02052744743642139],[0,0,1.2119675456389452]]}),Dr=1/512,Or=16/512,kr=new le({id:`prophoto`,cssId:`prophoto-rgb`,name:`ProPhoto`,base:Er,toBase(e){return e.map(e=>{let t=e<0?-1:1,n=e*t;return n<Or?e/16:t*n**1.8})},fromBase(e){return e.map(e=>{let t=e<0?-1:1,n=e*t;return n>=Dr?t*n**(1/1.8):16*e})}}),Ar=1.09929682680944,jr=.018053968510807,Mr=new le({id:`--rec2020-oetf`,name:`REC.2020_Scene_Referred`,base:pn,referred:`scene`,toBase(e){return e.map(function(e){let t=e<0?-1:1,n=e*t;return n<jr*4.5?e/4.5:t*((n+Ar-1)/Ar)**(1/.45)})},fromBase(e){return e.map(function(e){let t=e<0?-1:1,n=e*t;return n>=jr?t*(Ar*n**.45-(Ar-1)):4.5*e})}}),Nr=new K({id:`oklch`,name:`OkLCh`,coords:{l:{refRange:[0,1],name:`Lightness`},c:{refRange:[0,.4],name:`Chroma`},h:{refRange:[0,360],type:`angle`,name:`Hue`}},white:`D65`,base:Pe,fromBase:Ce.fromBase,toBase:Ce.toBase,formats:{oklch:{coords:[`<percentage> | <number>`,`<number> | <percentage>`,`<number> | <angle>`]}}}),Pr=2*Math.PI,Fr=[[4.076741636075958,-3.307711539258063,.2309699031821043],[-1.2684379732850315,2.609757349287688,-.341319376002657],[-.0041960761386756,-.7034186179359362,1.7076146940746117]],Ir=[[[-1.8817031,-.80936501],[1.19086277,1.76576728,.59662641,.75515197,.56771245]],[[1.8144408,-1.19445267],[.73956515,-.45954404,.08285427,.12541073,-.14503204]],[[.13110758,1.81333971],[1.35733652,-.00915799,-1.1513021,-.50559606,.00692167]]],Lr=Number.MAX_VALUE,Rr=.206,zr=.03,Br=(1+Rr)/(1+zr);function Vr(e,t){let n=e.length;if(n!==t.length)throw Error(`Vectors of size ${n} and ${t.length} are not aligned`);let r=0;return e.forEach((e,n)=>{r+=e*t[n]}),r}function Hr(e){return .5*(Br*e-Rr+Math.sqrt((Br*e-Rr)*(Br*e-Rr)+4*zr*Br*e))}function Ur(e){return(e**2+Rr*e)/(Br*(e+zr))}function Wr(e){let[t,n]=e;return[n/t,n/(1-t)]}function Gr(e,t){return[.11516993+1/(7.4477897+4.1590124*t+e*(-2.19557347+1.75198401*t+e*(-2.13704948-10.02301043*t+e*(-4.24894561+5.38770819*t+4.69891013*e)))),.11239642+1/(1.
96132032-.68124379*t+e*(.40370612+.90148123*t+e*(-.27087943+.6122399*t+e*(.00299215-.45399568*t-.14661872*e))))]}function Kr(e,t){let n=x(e,Ne);return n[0]**=3,n[1]**=3,n[2]**=3,x(n,t,n)}function qr(e,t,n,r){let i=Xr(e,t,n,r),a=Kr([1,i*e,i*t],n),o=N(1/Math.max(...a),1/3);return[o,o*i]}function Jr(e,t,n,r,i,a,o,s){let c;if(s===void 0&&(s=qr(e,t,a,o)),(n-i)*s[1]-(s[0]-i)*r<=0)c=s[1]*i/(r*s[0]+s[1]*(i-n));else{c=s[1]*(i-1)/(r*(s[0]-1)+s[1]*(i-n));let o=n-i,l=r,u=Vr(Ne[0].slice(1),[e,t]),d=Vr(Ne[1].slice(1),[e,t]),f=Vr(Ne[2].slice(1),[e,t]),p=o+l*u,m=o+l*d,h=o+l*f,g=i*(1-c)+c*n,_=c*r,v=g+_*u,y=g+_*d,b=g+_*f,x=v**3,S=y**3,C=b**3,w=3*p*v**2,T=3*m*y**2,E=3*h*b**2,D=6*p**2*v,O=6*m**2*y,k=6*h**2*b,A=Vr(a[0],[x,S,C])-1,j=Vr(a[0],[w,T,E]),M=Vr(a[0],[D,O,k]),N=j/(j*j-.5*A*M),P=-A*N,F=Vr(a[1],[x,S,C])-1,I=Vr(a[1],[w,T,E]),L=Vr(a[1],[D,O,k]),R=I/(I*I-.5*F*L),z=-F*R,B=Vr(a[2],[x,S,C])-1,V=Vr(a[2],[w,T,E]),H=Vr(a[2],[D,O,k]),U=V/(V*V-.5*B*H),ee=-B*U;P=N>=0?P:Lr,z=R>=0?z:Lr,ee=U>=0?ee:Lr,c+=Math.min(P,Math.min(z,ee))}return c}function Yr(e,t,n){let[r,i,a]=e,o=qr(i,a,t,n),s=Jr(i,a,r,1,r,t,n,o),c=Wr(o),l=s/Math.min(r*c[0],(1-r)*c[1]),u=Gr(i,a),d=r*u[0],f=(1-r)*u[1],p=.9*l*Math.sqrt(Math.sqrt(1/(1/d**4+1/f**4)));return d=r*.4,f=(1-r)*.8,[Math.sqrt(1/(1/d**2+1/f**2)),p,s]}function Xr(e,t,n,r){let i,a,o,s,c,l,u,d;Vr(r[0][0],[e,t])>1?([i,a,o,s,c]=r[0][1],[l,u,d]=n[0]):Vr(r[1][0],[e,t])>1?([i,a,o,s,c]=r[1][1],[l,u,d]=n[1]):([i,a,o,s,c]=r[2][1],[l,u,d]=n[2]);let f=i+a*e+o*t+s*e**2+c*e*t,p=Vr(Ne[0].slice(1),[e,t]),m=Vr(Ne[1].slice(1),[e,t]),h=Vr(Ne[2].slice(1),[e,t]),g=1+f*p,_=1+f*m,v=1+f*h,y=g**3,b=_**3,x=v**3,S=3*p*g**2,C=3*m*_**2,w=3*h*v**2,T=6*p**2*g,E=6*m**2*_,D=6*h**2*v,O=l*y+u*b+d*x,k=l*S+u*C+d*w,A=l*T+u*E+d*D;return f-=O*k/(k**2-.5*O*A),f}function Zr(e,t,n){let[r,i,a]=e,o=Ur(a),s=null,c=null;if(r=xe(r)/360,o!==0&&o!==1&&i!==0){let e=Math.cos(Pr*r),a=Math.sin(Pr*r),[l,u,d]=Yr([o,e,a],t,n),f=.8,p,m,h,g;i<f?(p=1.25*i,m=0,h=f*l,g=1-h/u):(p=5*(i-.8),m=u,h=.2*u**2*1.25**2/l,g=1-h/(d-u));let _=m+p*h/(1-g*p);s=_*e,c=_*a}return[o,s,c]}function Qr(e,t,n){let r=e[0],i=0,a=Hr(r),o=Math.sqrt(e[1]**2+e[2]**2),s=.5+Math.atan2(-e[2],-e[1])/Pr;if(a!==0&&a!==1&&o!==0){let[a,s,c]=Yr([r,e[1]/o,e[2]/o],t,n),l=.8,u,d,f,p;o<s?(d=l*a,f=1-d/s,p=o/(d+f*o),i=p*l):(u=s,d=.2*s**2*1.25**2/a,f=1-d/(c-s),p=(o-u)/(d+f*(o-u)),i=l+.2*p)}let c=Math.abs(i)<1e-4;return c||a===0||Math.abs(1-a)<1e-7?(s=null,c||(i=0)):s=xe(s*360),[s,i,a]}var $r=new K({id:`okhsl`,name:`Okhsl`,coords:{h:{refRange:[0,360],type:`angle`,name:`Hue`},s:{range:[0,1],name:`Saturation`},l:{range:[0,1],name:`Lightness`}},base:Pe,gamutSpace:`self`,fromBase(e){return Qr(e,Fr,Ir)},toBase(e){return Zr(e,Fr,Ir)},formats:{color:{id:`--okhsl`,coords:[`<number> | <angle>`,`<percentage> | <number>`,`<percentage> | <number>`]}}}),ei=new K({id:`oklrab`,name:`Oklrab`,coords:{l:{refRange:[0,1],name:`Lightness`},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:`D65`,base:Pe,fromBase(e){return[Hr(e[0]),e[1],e[2]]},toBase(e){return[Ur(e[0]),e[1],e[2]]},formats:{color:{coords:[`<percentage> | <number>`,`<number> | <percentage>[-1,1]`,`<number> | <percentage>[-1,1]`]}}}),ti=new K({id:`oklrch`,name:`Oklrch`,coords:{l:{refRange:[0,1],name:`Lightness`},c:{refRange:[0,.4],name:`Chroma`},h:{refRange:[0,360],type:`angle`,name:`Hue`}},white:`D65`,base:ei,fromBase:Ce.fromBase,toBase:Ce.toBase,formats:{color:{coords:[`<percentage> | <number>`,`<number> | <percentage>[0,1]`,`<number> | <angle>`]}}});function ni(e,t,n){let[r,i,a]=e;r=xe(r)/360;let o=Ur(a),s=null,c=null;if(o!==0&&i!==0){let e=Math.cos(Pr*r),l=Math.sin(Pr*r),[u,d]=Wr(qr(e,l,t,n)),f=.5,p=1-f/u,m=1-i*f/(f+d-d*p*i),h=i*d*f/(f+d-d*p*i);o=a*m;let g=a*h,_=Ur(m),v=h*_/m,y=Ur(o);g=g*y/o,o=y;let[b,x,S]=Kr([_,e*v,l*v],t),C=N(1/Math.max(Math.max(b,x),Math.max(S,0)),1/3);o*=C,g*=C,s=g*e,c=g*l}return[o,s,c]}function ri(e,t,n){let r=e[0],i=0,a=Hr(r),o=Math.sqrt(e[1]**2+e[2]**2),s=.5+Math.atan2(-e[2],-e[1])/Pr;if(r!==0&&r!==1&&o!==0){let s=e[1]/o,c=e[2]/o,[l,u]=Wr(qr(s,c,t,n)),d=.5,f=1-d/l,p=u/(o+r*u),m=p*r,h=p*
9o,g=Ur(m),_=h*g/m,[v,y,b]=Kr([g,s*_,c*_],t),x=N(1/Math.max(Math.max(v,y),Math.max(b,0)),1/3);r/=x,o/=x,o=o*Hr(r)/r,r=Hr(r),a=r/m,i=(d+u)*h/(u*d+u*f*h)}return s=Math.abs(i)<1e-4||a===0?null:xe(s*360),[s,i,a]}var ii=new K({id:`okhsv`,name:`Okhsv`,coords:{h:{refRange:[0,360],type:`angle`,name:`Hue`},s:{range:[0,1],name:`Saturation`},v:{range:[0,1],name:`Value`}},base:Pe,gamutSpace:`self`,fromBase(e){return ri(e,Fr,Ir)},toBase(e){return ni(e,Fr,Ir)},formats:{color:{id:`--okhsv`,coords:[`<number> | <angle>`,`<percentage> | <number>`,`<percentage> | <number>`]}}}),ai=U.D65,oi=216/24389,si=24389/27,[ci,li]=sr({space:ce,coords:ai}),ui=new K({id:`luv`,name:`Luv`,coords:{l:{refRange:[0,100],name:`Lightness`},u:{refRange:[-215,215]},v:{refRange:[-215,215]}},white:ai,base:ce,fromBase(e){let t=[E(e[0]),E(e[1]),E(e[2])],n=t[1],[r,i]=sr({space:ce,coords:t});if(!Number.isFinite(r)||!Number.isFinite(i))return[0,0,0];let a=n<=oi?si*n:116*Math.cbrt(n)-16;return[a,13*a*(r-ci),13*a*(i-li)]},toBase(e){let[t,n,r]=e;if(t===0||T(t))return[0,0,0];n=E(n),r=E(r);let i=n/(13*t)+ci,a=r/(13*t)+li,o=t<=8?t/si:((t+16)/116)**3;return[o*(9*i/(4*a)),o,o*((12-3*i-20*a)/(4*a))]},formats:{color:{id:`--luv`,coords:[`<number> | <percentage>`,`<number> | <percentage>`,`<number> | <percentage>`]}}}),di=new K({id:`lchuv`,name:`LChuv`,coords:{l:{refRange:[0,100],name:`Lightness`},c:{refRange:[0,220],name:`Chroma`},h:{refRange:[0,360],type:`angle`,name:`Hue`}},base:ui,fromBase:Ce.fromBase,toBase:Ce.toBase,formats:{color:{id:`--lchuv`,coords:[`<number> | <percentage>`,`<number> | <percentage>`,`<number> | <angle>`]}}}),fi=216/24389,pi=24389/27,mi=_n[0][0],hi=_n[0][1],gi=_n[0][2],_i=_n[1][0],vi=_n[1][1],yi=_n[1][2],bi=_n[2][0],xi=_n[2][1],Si=_n[2][2];function Ci(e,t,n){let r=t/(Math.sin(n)-e*Math.cos(n));return r<0?1/0:r}function wi(e){let t=(e+16)**3/1560896,n=t>fi?t:e/pi,r=n*(284517*mi-94839*gi),i=n*(838422*gi+769860*hi+731718*mi),a=n*(632260*gi-126452*hi),o=n*(284517*_i-94839*yi),s=n*(838422*yi+769860*vi+731718*_i),c=n*(632260*yi-126452*vi),l=n*(284517*bi-94839*Si),u=n*(838422*Si+769860*xi+731718*bi),d=n*(632260*Si-126452*xi);return{r0s:r/a,r0i:i*e/a,r1s:r/(a+126452),r1i:(i-769860)*e/(a+126452),g0s:o/c,g0i:s*e/c,g1s:o/(c+126452),g1i:(s-769860)*e/(c+126452),b0s:l/d,b0i:u*e/d,b1s:l/(d+126452),b1i:(u-769860)*e/(d+126452)}}function Ti(e,t){let n=t/360*Math.PI*2,r=Ci(e.r0s,e.r0i,n),i=Ci(e.r1s,e.r1i,n),a=Ci(e.g0s,e.g0i,n),o=Ci(e.g1s,e.g1i,n),s=Ci(e.b0s,e.b0i,n),c=Ci(e.b1s,e.b1i,n);return Math.min(r,i,a,o,s,c)}var Ei=new K({id:`hsluv`,name:`HSLuv`,coords:{h:{refRange:[0,360],type:`angle`,name:`Hue`},s:{range:[0,100],name:`Saturation`},l:{range:[0,100],name:`Lightness`}},base:di,gamutSpace:Sn,fromBase(e){let[t,n,r]=[E(e[0]),E(e[1]),E(e[2])],i;return t>99.9999999?(i=0,t=100):t<1e-8?(i=0,t=0):i=n/Ti(wi(t),r)*100,[r,i,t]},toBase(e){let[t,n,r]=[E(e[0]),E(e[1]),E(e[2])],i;return r>99.9999999?(r=100,i=0):r<1e-8?(r=0,i=0):i=Ti(wi(r),t)/100*n,[r,i,t]},formats:{color:{id:`--hsluv`,coords:[`<number> | <angle>`,`<percentage> | <number>`,`<percentage> | <number>`]}}});_n[0][0],_n[0][1],_n[0][2],_n[1][0],_n[1][1],_n[1][2],_n[2][0],_n[2][1],_n[2][2];function Di(e,t){return Math.abs(t)/Math.sqrt(e**2+1)}function Oi(e){let t=Di(e.r0s,e.r0i),n=Di(e.r1s,e.r1i),r=Di(e.g0s,e.g0i),i=Di(e.g1s,e.g1i),a=Di(e.b0s,e.b0i),o=Di(e.b1s,e.b1i);return Math.min(t,n,r,i,a,o)}var ki=new K({id:`hpluv`,name:`HPLuv`,coords:{h:{refRange:[0,360],type:`angle`,name:`Hue`},s:{range:[0,100],name:`Saturation`},l:{range:[0,100],name:`Lightness`}},base:di,gamutSpace:`self`,fromBase(e){let[t,n,r]=[E(e[0]),E(e[1]),E(e[2])],i;return t>99.9999999?(i=0,t=100):t<1e-8?(i=0,t=0):i=n/Oi(wi(t))*100,[r,i,t]},toBase(e){let[t,n,r]=[E(e[0]),E(e[1]),E(e[2])],i;return r>99.9999999?(r=100,i=0):r<1e-8?(r=0,i=0):i=Oi(wi(r))/100*n,[r,i,t]},formats:{color:{id:`--hpluv`,coords:[`<number> | <angle>`,`<percentage> | <number>`,`<percentage> | <number>`]}}}),Ai=new le({id:`rec2100-linear`,name:`Linear REC.2100`,white:`D65`,toBase:pn.toBase,fromBase:pn.fromBase}),ji=203,Mi=2610/2**14,Ni=2**14/2610,Pi=2523/2**5,Fi=2**5/2523,Ii=3424/2**12,Li=2413/2**7,Ri=2392/2**7,zi=new le({id:`rec2100pq`,cssId:`rec2100-pq`,name:`REC.2100-PQ`,base:Ai,toBase(e){return e.map(function(e){return(Math.max(e**Fi-Ii,0)/(Li-Ri*e**Fi))**Ni*1e4/ji})},fromBase(e){return e.map(function(e){let t=Math.max(e*ji/1e4,0);return((Ii+Li*t**Mi)/(1+Ri*t**Mi))**Pi})}}),Bi=.17883277,Vi=.28466892,Hi=.55991073,Ui=3.7743,Wi=new le({id:`rec2100hlg`,cssId:`rec2100-hlg`,name:`REC.2100-HLG`,referred:`scene`,base
9:Ai,toBase(e){return e.map(function(e){return e<=.5?e**2/3*Ui:(Math.exp((e-Hi)/Bi)+Vi)/12*Ui})},fromBase(e){return e.map(function(e){return e/=Ui,e<=1/12?N(3*e,.5):Bi*Math.log(12*e-Vi)+Hi})}}),Gi={};R.add(`chromatic-adaptation-start`,e=>{e.options.method&&(e.M=qi(e.W1,e.W2,e.options.method))}),R.add(`chromatic-adaptation-end`,e=>{e.M||=qi(e.W1,e.W2,e.options.method)});function Ki({id:e,toCone_M:t,fromCone_M:n}){Gi[e]=arguments[0]}function qi(e,t,n=`Bradford`){let r=Gi[n],[i,a,o]=y(r.toCone_M,e),[s,c,l]=y(r.toCone_M,t),u=y([[s/i,0,0],[0,c/a,0],[0,0,l/o]],r.toCone_M);return y(r.fromCone_M,u)}Ki({id:`von Kries`,toCone_M:[[.40024,.7076,-.08081],[-.2263,1.16532,.0457],[0,0,.91822]],fromCone_M:[[1.8599363874558397,-1.1293816185800916,.21989740959619328],[.3611914362417676,.6388124632850422,-6370596838649899e-21],[0,0,1.0890636230968613]]}),Ki({id:`Bradford`,toCone_M:[[.8951,.2664,-.1614],[-.7502,1.7135,.0367],[.0389,-.0685,1.0296]],fromCone_M:[[.9869929054667121,-.14705425642099013,.15996265166373122],[.4323052697233945,.5183602715367774,.049291228212855594],[-.00852866457517732,.04004282165408486,.96848669578755]]}),Ki({id:`CAT02`,toCone_M:[[.7328,.4296,-.1624],[-.7036,1.6975,.0061],[.003,.0136,.9834]],fromCone_M:[[1.0961238208355142,-.27886900021828726,.18274517938277307],[.4543690419753592,.4735331543074117,.07209780371722911],[-.009627608738429355,-.00569803121611342,1.0153256399545427]]}),Ki({id:`CAT16`,toCone_M:[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],fromCone_M:[[1.862067855087233,-1.0112546305316845,.14918677544445172],[.3875265432361372,.6214474419314753,-.008973985167612521],[-.01584149884933386,-.03412293802851557,1.0499644368778496]]}),Object.assign(U,{A:[1.0985,1,.35585],C:[.98074,1,1.18232],D55:[.95682,1,.92149],D75:[.94972,1,1.22638],E:[1,1,1],F2:[.99186,1,.67393],F7:[.95041,1,1.08747],F11:[1.00962,1,.6435]}),U.ACES=[.32168/.33767,1,.34065/.33767];var Ji=new le({id:`acescg`,cssId:`--acescg`,name:`ACEScg`,coords:{r:{range:[0,65504],name:`Red`},g:{range:[0,65504],name:`Green`},b:{range:[0,65504],name:`Blue`}},referred:`scene`,white:U.ACES,toXYZ_M:[[.6624541811085053,.13400420645643313,.1561876870049078],[.27222871678091454,.6740817658111484,.05368951740793705],[-.005574649490394108,.004060733528982826,1.0103391003129971]],fromXYZ_M:[[1.6410233796943257,-.32480329418479,-.23642469523761225],[-.6636628587229829,1.6153315916573379,.016756347685530137],[.011721894328375376,-.008284441996237409,.9883948585390215]]}),Yi=2**-16,Xi=-.35828683,Zi=(Math.log2(65504)+9.72)/17.52,Qi=new le({id:`acescc`,cssId:`--acescc`,name:`ACEScc`,coords:{r:{range:[Xi,Zi],name:`Red`},g:{range:[Xi,Zi],name:`Green`},b:{range:[Xi,Zi],name:`Blue`}},referred:`scene`,base:Ji,toBase(e){return e.map(function(e){return e<=-.3013698630136986?(2**(e*17.52-9.72)-Yi)*2:e<Zi?2**(e*17.52-9.72):65504})},fromBase(e){return e.map(function(e){return e<=0?(Math.log2(Yi)+9.72)/17.52:e<Yi?(Math.log2(Yi+e*.5)+9.72)/17.52:(Math.log2(e)+9.72)/17.52})}}),$i=Object.freeze({__proto__:null,A98RGB:Tr,A98RGB_Linear:wr,ACEScc:Qi,ACEScg:Ji,CAM16_JMh:Wt,HCT:$t,HPLuv:ki,HSL:xr,HSLuv:Ei,HSV:Sr,HWB:Cr,ICTCP:bt,JzCzHz:st,Jzazbz:ot,LCH:Ce,LCHuv:di,Lab:be,Lab_D65:nr,Luv:ui,OKLCH:Nr,OKLab:Pe,OKLrCH:ti,OKLrab:ei,Okhsl:$r,Okhsv:ii,P3:Cn,P3_Linear:hn,ProPhoto:kr,ProPhoto_Linear:Er,REC_2020:mn,REC_2020_Linear:pn,REC_2020_Scene_Referred:Mr,REC_2100_HLG:Wi,REC_2100_Linear:Ai,REC_2100_PQ:zi,XYZ_ABS_D65:We,XYZ_D50:he,XYZ_D65:ce,sRGB:Sn,sRGB_Linear:vn}),q=class e{constructor(...e){let t;if(e.length===1){let n={};typeof e[0]==`object`&&Object.getPrototypeOf(e[0]).constructor===Object&&(e[0]={...e[0]}),t=G(e[0],{parseMeta:n}),n.format&&(this.parseMeta=n)}let n,r,i;t?(n=t.space||t.spaceId,r=t.coords,i=t.alpha):[n,r,i]=e,Object.defineProperty(this,`space`,{value:K.get(n),writable:!1,enumerable:!0,configurable:!0}),this.coords=r?r.slice():[0,0,0],this.alpha=T(i)?i:i===void 0?1:j(0,i,1);for(let e in this.space.coords)Object.defineProperty(this,e,{get:()=>this.get(e),set:t=>this.set(e,t)})}get spaceId(){return this.space.id}clone(){return new e(this.space,this.coords,this.alpha)}toJSON(){return{spaceId:this.spaceId,coords:this.coords,alpha:this.alpha}}display(...t){let n=Tn(this,...t);return n.color=new e(n.color),n}static get(t,...n){return I(t,this)?t:new e(t,...n)}static try(t,n){if(I(t,this))return t;let r=ue(t,n);return r?new e(r):null}static defineFunction(t,n,r=n){let{instance:i=!0,returns:a}=r,o=function(...t){let r=n(...t);if(a===`color`)r=e.get(r);else if(a===`function<color>`){let t=r;r=function(...n){let r=t(...n);return e.get(r)},Object.assign(r,t)}else a===`array<color>`&&(r=r.map(t=>e.get(t)));return r};t in e||(e[t]=o),i&&(e.prototype[t]=function(...e){return o(this,...e)})}static defineFunctions(t){for(let n in t)e.defineFunction(n,t[n],t[n])}static extend(t){if(t.register)t.register(e);else for(let n in t)e.defineFunction(n,t[n])}};q.defineFunctions({get:fe,getAll:de,set:me,setAll:pe,to:dn,equals:On,inGamut:Le,toGamut:cn,distance:ze,deltas:En,toString:fn}),Object.assign(q,{util:L,hooks:R,WHITES:U,Space:K,spaces:K.registry,parse:te,defaults:z});for(let e of Object.keys($i))K.register($i[e]);for(let e in K.registry)ea(e,K.registry[e]);R.add(`colorspace-init-end`,e=>{ea(e.id,e),e.aliases?.forEach(t=>{ea(t,e)})});function ea(e,t){let n=e.replace(/-/g,`_`);Object.defineProperty(q.prototype,n,{get(){let n=this.getAll(e);if(typeof Proxy>`u`)return n;let r=new Proxy(n,{has:(e,n)=>{try{return K.resolveCoord([t,n]),!0}catch{}return Reflect.has(e,n)},get:(e,n,i)=>{if(n&&typeof n!=`symbol`&&!(n in e)&&n in r){let{index:r}=K.resolveCoord([t,n]);if(r>=0)return e[r]}return Reflect.get(e,n,i)},set:(n,r,i,a)=>
9{if(r&&typeof r!=`symbol`&&!(r in n)||Number(r)>=0){let{index:a}=K.resolveCoord([t,r]);if(a>=0)return n[a]=i,this.setAll(e,n),!0}return Reflect.set(n,r,i,a)}});return r},set(t){this.setAll(e,t)},configurable:!0,enumerable:!0})}q.extend(an),q.extend({deltaE:dr}),Object.assign(q,{deltaEMethods:an}),q.extend(mr),q.extend({contrast:or}),q.extend(ur),q.extend(Mn),q.extend(br),q.extend(ar);function ta(){return(ta=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}).apply(this,arguments)}function na(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(i[n]=e[n]);return i}function ra(e){var t=(0,_.useRef)(e),n=(0,_.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var ia=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e<t?t:e},aa=function(e){return`touches`in e},oa=function(e){return e&&e.ownerDocument.defaultView||self},sa=function(e,t,n){var r=e.getBoundingClientRect(),i=aa(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:ia((i.pageX-(r.left+oa(e).pageXOffset))/r.width),top:ia((i.pageY-(r.top+oa(e).pageYOffset))/r.height)}},ca=function(e){!aa(e)&&e.preventDefault()},la=_.memo(function(e){var t=e.onMove,n=e.onKey,r=e.onEnd,i=na(e,[`onMove`,`onKey`,`onEnd`]),a=(0,_.useRef)(null),o=ra(t),s=ra(n),c=ra(r),l=(0,_.useRef)(null),u=(0,_.useRef)(!1),d=(0,_.useMemo)(function(){var e=function(e){ca(e),(aa(e)?e.touches.length>0:e.buttons>0)&&a.current?o(sa(a.current,e,l.current)):(n(!1),c())},t=function(){n(!1),c()};function n(n){var r=u.current,i=oa(a.current),o=n?i.addEventListener:i.removeEventListener;o(r?`touchmove`:`mousemove`,e),o(r?`touchend`:`mouseup`,t)}return[function(e){var t=e.nativeEvent,r=a.current;if(r&&(ca(t),!function(e,t){return t&&!aa(e)}(t,u.current)&&r)){if(aa(t)){u.current=!0;var i=t.changedTouches||[];i.length&&(l.current=i[0].identifier)}r.focus(),o(sa(r,t,l.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),s({left:t===39?.05:t===37?-.05:0,top:t===40?.05:t===38?-.05:0}))},function(e){var t=e.which||e.keyCode;t>=37&&t<=40&&c()},n]},[s,o,c]),f=d[0],p=d[1],m=d[2],h=d[3];return(0,_.useEffect)(function(){return h},[h]),_.createElement(`div`,ta({},i,{onTouchStart:f,onMouseDown:f,className:`react-colorful__interactive`,ref:a,onKeyDown:p,onKeyUp:m,tabIndex:0,role:`slider`}))}),ua=function(e){return e.filter(Boolean).join(` `)},da=function(e){var t=e.color,n=e.left,r=e.top,i=r===void 0?.5:r,a=ua([`react-colorful__pointer`,e.className]);return _.createElement(`div`,{className:a,style:{top:100*i+`%`,left:100*n+`%`}},_.createElement(`div`,{className:`react-colorful__pointer-fill`,style:{backgroundColor:t}}))},fa=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=10**t),Math.round(n*e)/n};360/(2*Math.PI);var pa=function(e){return xa(ma(e))},ma=function(e){return e[0]===`#`&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?fa(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?fa(parseInt(e.substring(6,8),16)/255,2):1}},ha=function(e){return ba(va(e))},ga=function(e){var t=e.s,n=e.v,r=e.a,i=(200-t)*n/100;return{h:fa(e.h),s:fa(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:fa(i/2),a:fa(r,2)}},_a=function(e){var t=ga(e);return`hsl(`+t.h+`, `+t.s+`%, `+t.l+`%)`},va=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),o=r*(1-n),s=r*(1-(t-a)*n),c=r*(1-(1-t+a)*n),l=a%6;return{r:fa(255*[r,s,o,o,c,r][l]),g:fa(255*[c,r,r,s,o,o][l]),b:fa(255*[o,o,c,r,r,s][l]),a:fa(i,2)}},ya=function(e){var t=e.toString(16);return t.length<2?`0`+t:t},ba=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,a=i<1?ya(fa(255*i)):``;return`#`+ya(t)+ya(n)+ya(r)+a},xa=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,a=Math.max(t,n,r),o=a-Math.min(t,n,r),s=o?a===t?(n-r)/o:a===n?2+(r-t)/o:4+(t-n)/o:0;return{h:fa(60*(s<0?s+6:s)),s:fa(a?o/a*100:0),v:fa(a/255*100),a:i}}
9,Sa=_.memo(function(e){var t=e.hue,n=e.onChange,r=e.onChangeEnd,i=ua([`react-colorful__hue`,e.className]);return _.createElement(`div`,{className:i},_.createElement(la,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:ia(t+360*e.left,0,360)})},onEnd:r,"aria-label":`Hue`,"aria-valuenow":fa(t),"aria-valuemax":`360`,"aria-valuemin":`0`},_.createElement(da,{className:`react-colorful__hue-pointer`,left:t/360,color:_a({h:t,s:100,v:100,a:1})})))}),Ca=_.memo(function(e){var t=e.hsva,n=e.onChange,r=e.onChangeEnd,i={backgroundColor:_a({h:t.h,s:100,v:100,a:1})};return _.createElement(`div`,{className:`react-colorful__saturation`,style:i},_.createElement(la,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:ia(t.s+100*e.left,0,100),v:ia(t.v-100*e.top,0,100)})},onEnd:r,"aria-label":`Color`,"aria-valuetext":`Saturation `+fa(t.s)+`%, Brightness `+fa(t.v)+`%`},_.createElement(da,{className:`react-colorful__saturation-pointer`,top:1-t.v/100,left:t.s/100,color:_a(t)})))}),wa=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},Ta=function(e,t){return e.toLowerCase()===t.toLowerCase()||wa(ma(e),ma(t))};function Ea(e,t,n,r){var i=ra(n),a=ra(r),o=(0,_.useState)(function(){return e.toHsva(t)}),s=o[0],c=o[1],l=(0,_.useRef)({color:t,hsva:s}),u=(0,_.useRef)(!1);return(0,_.useEffect)(function(){if(!e.equal(t,l.current.color)){var n=e.toHsva(t);l.current={hsva:n,color:t},c(n),u.current=!1}},[t,e]),(0,_.useEffect)(function(){var t;wa(s,l.current.hsva)||e.equal(t=e.fromHsva(s),l.current.color)||(l.current={hsva:s,color:t},i(t),u.current=!0)},[s,e,i]),[s,(0,_.useCallback)(function(e){c(function(t){return Object.assign({},t,e)})},[]),(0,_.useCallback)(function(){u.current&&(u.current=!1,a(l.current.color))},[a])]}var Da,Oa=typeof window<`u`?_.useLayoutEffect:_.useEffect,ka=function(){return Da||(typeof __webpack_nonce__<`u`?__webpack_nonce__:void 0)},Aa=new Map,ja=function(e){Oa(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!Aa.has(t)){var n=t.createElement(`style`);n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,Aa.set(t,n);var r=ka();r&&n.setAttribute(`nonce`,r),t.head.appendChild(n)}},[])},Ma=function(e){var t=e.className,n=e.colorModel,r=e.color,i=r===void 0?n.defaultColor:r,a=e.onChange,o=e.onChangeEnd,s=na(e,[`className`,`colorModel`,`color`,`onChange`,`onChangeEnd`]),c=(0,_.useRef)(null);ja(c);var l=Ea(n,i,a,o),u=l[0],d=l[1],f=l[2],p=ua([`react-colorful`,t]);return _.createElement(`div`,ta({},s,{ref:c,className:p}),_.createElement(Ca,{hsva:u,onChange:d,onChangeEnd:f}),_.createElement(Sa,{hue:u.h,onChange:d,onChangeEnd:f,className:`react-colorful__last-control`}))},Na={defaultColor:`000`,toHsva:pa,fromHsva:function(e){return ha({h:e.h,s:e.s,v:e.v,a:1})},equal:Ta},Pa=function(e){return _.createElement(Ma,ta({},e,{colorModel:Na}))},Fa=[];for(let e=0;e<256;++e)Fa.push((e+256).toString(16).slice(1));function Ia(e,t=0){return(Fa[e[t+0]]+Fa[e[t+1]]+Fa[e[t+2]]+Fa[e[t+3]]+`-`+Fa[e[t+4]]+Fa[e[t+5]]+`-`+Fa[e[t+6]]+Fa[e[t+7]]+`-`+Fa[e[t+8]]+Fa[e[t+9]]+`-`+Fa[e[t+10]]+Fa[e[t+11]]+Fa[e[t+12]]+Fa[e[t+13]]+Fa[e[t+14]]+Fa[e[t+15]]).toLowerCase()}var La=new Uint8Array(16);function Ra(){return crypto.getRandomValues(La)}function za(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():Ba(e,t,n)}
9function Ba(e,t,n){e||={};let r=e.random??e.rng?.()??Ra();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return Ia(r)}var Va=o(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Ha=o(((e,t)=>{var n=Va();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),Ua=c(o(((e,t)=>{t.exports=Ha()()}))());function Wa(){return Wa=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},Wa.apply(this,arguments)}function Ga(e,t){if(e==null)return{};var n=Ka(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ka(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var qa=(0,_.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Ga(e,[`color`,`size`]);return _.createElement(`svg`,Wa({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),_.createElement(`polyline`,{points:`20 6 9 17 4 12`}))});qa.propTypes={color:Ua.default.string,size:Ua.default.oneOfType([Ua.default.string,Ua.default.number])},qa.displayName=`Check`;function Ja(){return Ja=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},Ja.apply(this,arguments)}function Ya(e,t){if(e==null)return{};var n=Xa(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xa(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Za=(0,_.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=Ya(e,[`color`,`size`]);return _.createElement(`svg`,Ja({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),_.createElement(`polyline`,{points:`6 9 12 15 18 9`}))});Za.propTypes={color:Ua.default.string,size:Ua.default.oneOfType([Ua.default.string,Ua.default.number])},Za.displayName=`ChevronDown`;function Qa(){return Qa=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},Qa.apply(this,arguments)}function $a(e,t){if(e==null)return{};var n=eo(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eo(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var to=(0,_.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=$a(e,[`color`,`size`]);return _.createElement(`svg`,Qa({ref:t,xmlns:`http://www.w3.org/2000/svg`,
9width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),_.createElement(`rect`,{x:`9`,y:`9`,width:`13`,height:`13`,rx:`2`,ry:`2`}),_.createElement(`path`,{d:`M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1`}))});to.propTypes={color:Ua.default.string,size:Ua.default.oneOfType([Ua.default.string,Ua.default.number])},to.displayName=`Copy`;function no(){return no=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},no.apply(this,arguments)}function ro(e,t){if(e==null)return{};var n=io(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function io(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ao=(0,_.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=ro(e,[`color`,`size`]);return _.createElement(`svg`,no({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),_.createElement(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`}))});ao.propTypes={color:Ua.default.string,size:Ua.default.oneOfType([Ua.default.string,Ua.default.number])},ao.displayName=`Minus`;function oo(){return oo=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},oo.apply(this,arguments)}function so(e,t){if(e==null)return{};var n=co(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function co(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var lo=(0,_.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=so(e,[`color`,`size`]);return _.createElement(`svg`,oo({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),_.createElement(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),_.createElement(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`}))});lo.propTypes={color:Ua.default.string,size:Ua.default.oneOfType([Ua.default.string,Ua.default.number])},lo.displayName=`Plus`;function uo(){return uo=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},uo.apply(this,arguments)}function fo(e,t){if(e==null)return{};var n=po(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function po(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var mo=(0,_.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=e.size,a=i===void 0?24:i,o=fo(e,[`color`,`size`]);return _.createElement(`svg`,uo({ref:t,xmlns:`http://www.w3.org/2000/svg`,width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`},o),_.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),_.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`}))});mo.propTypes={color:Ua.default.string,size:Ua.default.oneOfType([Ua.default.string,Ua.default.number])},mo.displayName=`X`;var ho={};function go(e,t){let n=_.useRef(ho);return n.current===ho&&(n.current=e(t)),n}function _o(e,t,n,r){let i=go(yo).current;return bo(i,e,t,n,r)&&So(i,[e,t,n,r]),i.callback}function vo(e){let t=go(yo).current;return xo(t,e)&&So(t,e),t.callback}function yo(){return{callback:null,cleanup:null,refs:[]}}
9function bo(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function xo(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function So(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n;break;default:}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null;break;default:}}}}}}var J=typeof document<`u`?_.useLayoutEffect:()=>{},Co={..._},wo=Co.useInsertionEffect,To=wo&&wo!==Co.useLayoutEffect?wo:e=>e();function Y(e){let t=go(Eo).current;return t.next=e,To(t.effect),t.trampoline}function Eo(){let e={next:void 0,callback:Do,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Do(){}var Oo={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},ko={...Oo,position:`fixed`,top:0,left:0},Ao={...Oo,position:`absolute`};function jo(){}var Mo=Object.freeze([]),No=Object.freeze({});function Po(){return typeof window<`u`}function Fo(e){return Ro(e)?(e.nodeName||``).toLowerCase():`#document`}function Io(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Lo(e){return((Ro(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Ro(e){return Po()?e instanceof Node||e instanceof Io(e).Node:!1}function zo(e){return Po()?e instanceof Element||e instanceof Io(e).Element:!1}function Bo(e){return Po()?e instanceof HTMLElement||e instanceof Io(e).HTMLElement:!1}function Vo(e){return!Po()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Io(e).ShadowRoot}function Ho(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=$o(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Uo(e){return/^(table|td|th)$/.test(Fo(e))}function Wo(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Go=/transform|translate|scale|rotate|perspective|filter/,Ko=/paint|layout|strict|content/,qo=e=>!!e&&e!==`none`,Jo;function Yo(e){let t=zo(e)?$o(e):e;return qo(t.transform)||qo(t.translate)||qo(t.scale)||qo(t.rotate)||qo(t.perspective)||!Zo()&&(qo(t.backdropFilter)||qo(t.filter))||Go.test(t.willChange||``)||Ko.test(t.contain||``)}function Xo(e){let t=ts(e);for(;Bo(t)&&!Qo(t);){if(Yo(t))return t;if(Wo(t))return null;t=ts(t)}return null}function Zo(){return Jo??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Jo}function Qo(e){return/^(html|body|#document)$/.test(Fo(e))}function $o(e){return Io(e).getComputedStyle(e)}function es(e){return zo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ts(e){if(Fo(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Vo(e)&&e.host||Lo(e);return Vo(t)?t.host:t}function ns(e){let t=ts(e);return Qo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Bo(t)&&Ho(t)?t:ns(t)}function rs(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=ns(e),i=r===e.ownerDocument?.body,a=Io(r);if(i){let e=is(a);return t.concat(a,a.visualViewport||[],Ho(r)?r:[],e&&n?rs(e):[])}else return t.concat(r,rs(r,[],n))}function is(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function as(e){return e?.ownerDocument||document}var os=`none`,ss=`trigger-press`,cs=`trigger-hover`,ls=`trigger-focus`,us=`outside-press`,ds=`item-press`,fs=`close-press`,ps=`link-press`,ms=`track-press`,hs=`increment-press`,gs=`decrement-press`,_s=`input-change`,vs=`input-clear`,ys=`input-blur`,bs=`input-paste`,xs=`input-press`,Ss=`focus-out`,Cs=`escape-key`,ws=`close-watcher`,Ts=`list-navigation`,Es=`keyboard`,Ds=`drag`,Os=`cancel-open`,ks=`sibling-open`,As=`disabled`,js=`missing`,Ms=`initial`,Ns=`imperative-action`,Ps=`window-resize`;function Fs(e,t,n,r){let i=!1,a=!1,o=r??No;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function Is(e,t,n){let r=n??No;return{reason:e,event:t??new Event(`base-ui`),...r}}var Ls=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),Rs={[Ls.startingStyle]:``},zs={[Ls.endingStyle]:``},Bs={transitionStatus(e){return e===`starting`?Rs:e===`ending`?zs:null}},Vs=function(e){return e.disabled=`data-disabled`,e.valid=`data-valid`,e.invali
9d=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),Hs={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Us={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},Ws={disabled:!1,...Us},Gs={valid(e){return e===null?null:e?{[Vs.valid]:``}:{[Vs.invalid]:``}}},Ks=function(e){return e.checked=`data-checked`,e.unchecked=`data-unchecked`,e.disabled=`data-disabled`,e.readonly=`data-readonly`,e.required=`data-required`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),qs={checked(e){return e?{[Ks.checked]:``}:{[Ks.unchecked]:``}},...Bs,...Gs},Js=0;function Ys(e,t=`mui`){let[n,r]=_.useState(e),i=e||n;return _.useEffect(()=>{n??(Js+=1,r(`${t}-${Js}`))},[n,t]),i}var Xs=Co.useId;function Zs(e,t){if(Xs!==void 0){let n=Xs();return e??(t?`${t}-${n}`:n)}return Ys(e,t)}function Qs(e){return Zs(e,`base-ui`)}function $s(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var ec=$s(`https://base-ui.com/production-error`,`Base UI`),tc=19;function nc(e){return tc>=e}function rc(e){if(!_.isValidElement(e))return null;let t=e,n=t.props;return(nc(19)?n?.ref:t.ref)??null}function ic(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function ac(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function oc(e,t){return typeof e==`function`?e(t):e}function sc(e,t){return typeof e==`function`?e(t):e}var cc={};function lc(e,t,n,r,i){if(!n&&!r&&!i&&!e)return dc(t);let a=dc(e);return t&&(a=fc(a,t)),n&&(a=fc(a,n)),r&&(a=fc(a,r)),i&&(a=fc(a,i)),a}function uc(e){if(e.length===0)return cc;if(e.length===1)return dc(e[0]);let t=dc(e[0]);for(let n=1;n<e.length;n+=1)t=fc(t,e[n]);return t}function dc(e){return gc(e)?{..._c(e,cc)}:pc(e)}function fc(e,t){return gc(t)?_c(t,e):mc(e,t)}function pc(e){let t={...e};for(let e in t){let n=t[e];hc(e,n)&&(t[e]=yc(n))}return t}function mc(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=ic(e.style,r);break;case`className`:e[n]=xc(e.className,r);break;default:hc(n,r)?e[n]=vc(e[n],r):e[n]=r}}return e}function hc(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function gc(e){return typeof e==`function`}function _c(e,t){return gc(e)?e(t):e??cc}function vc(e,t){return t?e?(...n)=>{let r=n[0];if(Sc(r)){let i=r;bc(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:yc(t):e}function yc(e){return e&&((...t)=>{let n=t[0];return Sc(n)&&bc(n),e(...t)})}function bc(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function xc(e,t){return t?e?t+` `+e:t:e}function Sc(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function X(e,t,n={}){let r=t.render,i=Cc(t,n);return n.enabled===!1?null:Ec(e,r,i,n.state??No)}function Cc(e,t={}){let{className:n,style:r,render:i}=e,{state:a=No,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?oc(n,a):void 0,d=l?sc(r,a):void 0,f=l?ac(a,c):No,p=l&&s?wc(s):void 0,m=l?ic(f,p)??{}:No;return typeof document<`u`&&(l?Array.isArray(o)?m.ref=vo([m.ref,rc(i),...o]):m.ref=_o(m.ref,rc(i),o):_o(null,null)),l?(u!==void 0&&(m.className=xc(m.className,u)),d!==void 0&&(m.style=ic(m.style,d)),m):No}function wc(e){return Array.isArray(e)?uc(e):lc(void 0,e)}var Tc=Symbol.for(`react.lazy`);function Ec(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=lc(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===Tc&&(i=_.Children.toArray(t)[0]),_.cloneElement(i,e)}if(e&&typeof e==`string`)return Dc(e,n);throw Error(ec(8))}function Dc(e,t){return e===`button`?(0,_.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,_.createElement)(`img`,{alt:``,...t,key:t.key}):_.createElement(e,t)}var Oc=_.createContext(void 0);function kc(e=!1){let t=_.useContext(Oc);if(t===void 0&&!e)throw Error(ec(16));return t}function Ac(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:_.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function jc(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=_.useRef(null),s=kc(!0),c=a??s!==void 0,{props:l}=Ac({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=_.useCallback(()=>{let e=o.current;Mc(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return J(u,[u]),{getButtonProps:_.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return lc({onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(bc(e),o?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,a=e.currentTarget,s=Mc(a),l=!i&&Nc(a),u=r&&(i?s:!l),d=e.key===`Enter`,f=e.key===` `,p=a.getAttribute(`role`),m=p?.startsWith(`menuitem`)||p===`option`||p===`gridcell`;if(r&&c&&f){if(e.defaultPrevented&&m)return;e.preventDefault(),l||i&&s?(a.click(),e.preventBaseUIHandler()):u&&(n?.(e),e.preventBaseUIHandler());return}u&&(!i&&(f||d)&&e.preventDefault(),!i&&d&&n?.(e))},onKeyUp(e){if(!t){if(bc(e),a?.(e),e.target===e.currentTarget&&i&&c&&Mc(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!i&&!c&&e.key===` `&&n?.(e)}},onPointerDown(e){if(t){e.preventDefault();return}s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:Y(e=>{o.current=e,u()})}}function Mc(e){return Bo(e)&&e.tagName===`BUTTON`}function Nc(e){return!!(e?.tagName===`A`&&e?.href)}var Pc=`data-composite-item-active`,Fc=_.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function Ic(){return _.useContext(Fc)}var Lc=function(e){return e[e.None=0]=`None`,e[e.GuessFromOrder=1]=`GuessFromOrder`,e}({});function Rc(e={}){let{label:t,metadata:n,textRef:r,indexGuessBehavior:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,elementsRef:l,labelsRef:u,nextIndexRef:d}=Ic(),f=_.useRef(-1),[p,m]=_.useState(a??(i===Lc.GuessFromOrder?()=>{if(f.current===-1){let e=d.current;d.current+=1,f.current=e}return f.current}:-1)),h=_.useRef(null),g=_.useCallback(e=>{if(h.current=e,p!==-1&&e!==null&&(l.current[p]=e,u)){let n=t!==void 0;u.current[p]=n?t:r?.current?.textContent??e.textContent}},[p,l,u,t,r]);return J(()=>{if(a!=null)return;let e=h.current;if(e)return o(e,n),()=>{s(e)}},[a,o,s,n]),J(()=>{if(a==null)return c(e=>{let t=h.current?e.get(h.current)?.index:null;t!=null&&m(t)})},[a,c,m]),_.useMemo(()=>
9({ref:g,index:p}),[p,g])}function zc(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=kc(),{ref:i,index:a}=Rc(e),o=n===a,s=_.useRef(null),c=_o(i,s);return{compositeProps:_.useMemo(()=>({tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}}),[o,r,a,t]),compositeRef:c,index:a}}function Bc(e){let{render:t,className:n,style:r,state:i=No,props:a=Mo,refs:o=Mo,metadata:s,stateAttributesMapping:c,tag:l=`div`,...u}=e,{compositeProps:d,compositeRef:f}=zc({metadata:s});return X(l,e,{state:i,ref:[...o,f],props:[d,...a,u],stateAttributesMapping:c})}var Vc={invalid:void 0,name:void 0,validityData:{state:Hs,errors:[],error:``,value:``,initialValue:null},setValidityData:jo,disabled:void 0,touched:Us.touched,setTouched:jo,dirty:Us.dirty,setDirty:jo,filled:Us.filled,setFilled:jo,focused:Us.focused,setFocused:jo,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:Ws,markedDirtyRef:{current:!1},registerFieldControl:jo,validation:{getValidationProps:(e=No)=>e,getInputValidationProps:(e=No)=>e,inputRef:{current:null},commit:async()=>{}}},Hc=_.createContext(Vc);function Uc(e=!0){let t=_.useContext(Hc);if(t.setValidityData===jo&&!e)throw Error(ec(28));return t}var Wc=_.createContext({disabled:!1});function Gc(){return _.useContext(Wc)}var Kc=_.createContext({controlId:void 0,registerControlId:jo,labelId:void 0,setLabelId:jo,messageIds:[],setMessageIds:jo,getDescriptionProps:e=>e});function qc(){return _.useContext(Kc)}function Jc(e,t,n,r=!0,i){let[a,o]=_.useState(),s=Qs(i?`${i}-label`:void 0),c=e??t??a;return J(()=>{let i=e||t||!r?void 0:Yc(n.current,s);a!==i&&o(i)}),c}function Yc(e,t){let n=Xc(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function Xc(e){if(!e)return;let t=e.parentElement;if(t&&t.tagName===`LABEL`)return t;let n=e.id;if(n){let t=e.nextElementSibling;if(t&&t.htmlFor===n)return t}let r=e.labels;return r&&r[0]}function Zc(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=qc(),o=Qs(t),s=n?i:void 0,c=go(()=>Symbol(`labelable-control`)),l=_.useRef(!1),u=_.useRef(t!=null),d=Y(()=>{!l.current||a===jo||(l.current=!1,a(c.current,void 0))});return J(()=>{if(a===jo)return;let e;if(n){let n=r?.current;e=zo(n)&&n.closest(`label`)!=null?t??null:s??o}else if(t!=null)u.current=!0,e=t;else if(u.current)e=o;else{d();return}if(e===void 0){d();return}l.current=!0,a(c.current,e)},[t,r,s,a,n,o,c,d]),_.useEffect(()=>d,[d]),i??o}var Qc=_.createContext(void 0);function $c(){return _.useContext(Qc)}function el(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}var tl=_.createContext(void 0);function nl(){let e=_.useContext(tl);if(e===void 0)throw Error(ec(52));return e}var rl=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Z=o(((e,t)=>{t.exports=rl()}))(),il=_.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,readOnly:a=!1,required:o=!1,"aria-labelledby":s,value:c,inputRef:l,nativeButton:u=!1,id:d,style:f,...p}=e,m=$c(),{disabled:h,readOnly:g,required:v,form:y,checkedValue:b,touched:x=!1,validation:S,name:C}=m??{},w=m?.setCheckedValue??jo,T=m?.setTouched??jo,E=m?.registerControlRef??jo,D=m?.registerInputRef??jo,{setDirty:O,validityData:k,setTouched:A,setFilled:j,state:M,disabled:N}=Uc(),P=Gc(),{labelId:F,getDescriptionProps:I}=qc(),L=N||P.disabled||h||i,R=g||a,z=v||o,B=y,V=m?b===c:c===``,H=_.useRef(null),U=_.useRef(null),ee=Y(e=>{e&&E(e,L)}),W=_o(l,U,D);J(()=>{U.current?.checked&&j(!0)},[j]),J(()=>{if(U.current){if(L&&V){D(null);return}H.current&&E(H.current,L),D(U.current)}},[V,L,E,D]);let te=Qs(),ne=Zc({id:d,implicit:!1,controlRef:H}),re=u?void 0:ne,ie=Jc(s,F,U,!u,re),ae={role:`radio`,"aria-checked":V,"aria-required":z||void 0,"aria-readonly":R||void 0,"aria-labelledby":ie,[Pc]:V?``:void 0,id:u?ne:te,onKeyDown(e){e.key===`Enter`&&e.preventDefault()},onClick(e){if(e.defaultPrevented||L||R)return;e.preventDefault();let t=U.current;t&&t.dispatchEvent(new(Io(t)).PointerEvent(`click`,{bubbles:!0,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey}))},onFocus(e){e.defaultPrevented||L||R||!x||(U.current?.click(),T(!1))}},{getButtonProps:G,buttonRef:oe}=jc({disabled:L,native:u}),K={type:`radio`,ref:W,form:B,id:re,name:C,tabIndex:-1,style:C?Ao:ko,"aria-hidden":!0,...c===void 0?No:{value:el(c)},disabled:L,checked:V,required:z,readOnly:R,onChange(e){if(e.nativeEvent.defaultPrevented||L||R||c===void 0)return;let t=Fs(os,e.nativeEvent);t.isCanceled||(A(!0),O(c!==k.initialValue),j(!0),w(c,t))},onFocus(){H.current?.focus()}},se=_.useMemo(()=>({...M,required:z,disabled:L,readOnly:R,checked:V}),[M,L,R,V,z]),ce=se,le=m!==void 0,ue=[t,H,oe,ee],de=[ae,I,S?.getValidationProps??No,p,G],fe=X(`span`,e,{enabled:!le,state:se,ref:ue,props:de,stateAttributesMapping:qs});return(0,Z.jsxs)(tl.Provider,{value:ce,children:[le?(0,Z.jsx)(Bc,{tag:`span`,render:n,className:r,style:f,state:se,refs:ue,props:de,stateAttributesMapping:qs}):fe,(0,Z.jsx)(`input`,{...K,suppressHydrationWarning:!0})]})}),al=[];function ol(e){_.useEffect(e,al)}var sl=null;globalThis.requestAnimationFrame;var cl=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},ll=class e{static create(){return new e}static request(e){return cl.request(e)}static cancel(e){return cl.cancel(e)}currentId=sl;request(e){this.cancel(),this.currentId=cl.request(()=>{this.currentId=sl,e()})}cancel=()=>{this.currentId!==sl&&(cl.cancel(this.currentId),this.currentId=sl)};disposeEffect=()=>this.cancel};function ul(){let e=go(ll.create).current;return ol(e.disposeEffect),e}function dl(e){return e==null?e:`current`in e?e.current:e}var fl=c(m());function pl(e,t=!1,n=!0){let r=ul();return Y((i,a=null)=>{r.cancel();let o=dl(e);if(o==null)return;let s=o,c=()=>{fl.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>
9{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=Ls.startingStyle;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function ml(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=Y(i),o=pl(r,n,!1);_.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}function hl(e,t=!1,n=!1){let[r,i]=_.useState(e&&t?`idle`:void 0),[a,o]=_.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),J(()=>{if(!e&&a&&r!==`ending`&&n){let e=ll.request(()=>{i(`ending`)});return()=>{ll.cancel(e)}}},[e,a,r,n]),J(()=>{if(!e||t)return;let n=ll.request(()=>{i(void 0)});return()=>{ll.cancel(n)}},[t,e]),J(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=ll.request(()=>{i(`idle`)});return()=>{ll.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}var gl=_.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,s=nl(),c=s.checked,{mounted:l,transitionStatus:u,setMounted:d}=hl(c),f={...s,transitionStatus:u},p=_.useRef(null),m=a||l,h=X(`span`,e,{ref:[t,p],state:f,props:o,stateAttributesMapping:qs});return ml({open:c,ref:p,onComplete(){c||d(!1)}}),m?h:null});function _l({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=_.useRef(e!==void 0),[a,o]=_.useState(t);return[i?e:a,_.useCallback(e=>{i||o(e)},[])]}var vl=typeof navigator<`u`,yl=kl(),bl=jl(),xl=Al(),Sl=typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter:none`),Cl=yl.platform===`MacIntel`&&yl.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(yl.platform),wl=vl&&/firefox/i.test(xl),Tl=vl&&/apple/i.test(navigator.vendor);vl&&/Edg/i.test(xl);var El=vl&&/android/i.test(bl)||/android/i.test(xl),Dl=vl&&bl.toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints,Ol=xl.includes(`jsdom/`);function kl(){if(!vl)return{platform:``,maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??-1}}function Al(){if(!vl)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function jl(){if(!vl)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}var Ml=`data-base-ui-focusable`,Nl=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,Pl=`ArrowLeft`,Fl=`ArrowRight`,Il=`ArrowUp`,Ll=`ArrowDown`;function Rl(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function zl(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Vo(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Bl(e){return`composedPath`in e?e.composedPath()[0]:e.target}function Vl(e,t){if(!zo(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(zl(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function Hl(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Ul(e){return e.matches(`html,body`)}function Wl(e){return Bo(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Gl(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Nl}`)!=null}function Kl(e){return e?e.getAttribute(`role`)===`combobox`&&Wl(e):!1}function ql(e){if(!e||Ol)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Jl(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Yl(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Yl(e,t.id,n)])}function Xl(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function Zl(e){e.preventDefault(),e.stopPropagation()}function Ql(e){return`nativeEvent`in e}
9function $l(e){return e.pointerType===``&&e.isTrusted?!0:El&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function eu(e){return Ol?!1:!El&&e.width===0&&e.height===0||El&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function tu(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function nu(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var ru=[`top`,`right`,`bottom`,`left`],iu=Math.min,au=Math.max,ou=Math.round,su=Math.floor,cu=e=>({x:e,y:e}),lu={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function uu(e,t,n){return au(e,iu(t,n))}function du(e,t){return typeof e==`function`?e(t):e}function fu(e){return e.split(`-`)[0]}function pu(e){return e.split(`-`)[1]}function mu(e){return e===`x`?`y`:`x`}function hu(e){return e===`y`?`height`:`width`}function gu(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function _u(e){return mu(gu(e))}function vu(e,t,n){n===void 0&&(n=!1);let r=pu(e),i=_u(e),a=hu(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Du(o)),[o,Du(o)]}function yu(e){let t=Du(e);return[bu(e),t,bu(t)]}function bu(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var xu=[`left`,`right`],Su=[`right`,`left`],Cu=[`top`,`bottom`],wu=[`bottom`,`top`];function Tu(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Su:xu:t?xu:Su;case`left`:case`right`:return t?Cu:wu;default:return[]}}function Eu(e,t,n,r){let i=pu(e),a=Tu(fu(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(bu)))),a}function Du(e){let t=fu(e);return lu[t]+e.slice(t.length)}function Ou(e){return{top:0,right:0,bottom:0,left:0,...e}}function ku(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Ou(e)}function Au(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ju(e,t,n){return Math.floor(e/t)!==n}function Mu(e,t){return t<0||t>=e.length}function Nu(e,t){return Fu(e.current,{disabledIndices:t})}function Pu(e,t){return Fu(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Fu(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&Bu(e,a,r));return a}function Iu(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}){let f=u,p;if(t.key===`ArrowUp`?p=`up`:t.key===`ArrowDown`&&(p=`down`),p){let n=[],a=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;h+=1;let o=e.closest(`[role="row"]`);o&&(m=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let g=!1,_=0;if(m)for(let e of n){let t=e.length;t>_&&(_=t),t!==o&&(g=!0)}let v=g&&h<e.length,y=_||o,b=o=>{if(!g||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f<n.length;f+=1,o+=d){if(o<0||o>=n.length){if(!r||v)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1);o=a[i(t,u,n[o][e]??n[o][0])]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!Bu(e,n,s))return n}}},x=t=>{if(!v||u===-1)return;let n=u%y,i=t===`up`?-y:y,a=l-l%y,o=su(l/y)+1;for(let t=u-n+i,c=0;c<o;c+=1,t+=i){if(t<0||t>l){if(!r)return;t=t<0?a:0}let i=Math.min(t+y-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!Bu(e,r,s))return r}};d&&Zl(t);let S=b(p)??x(p);if(S!==void 0)f=S;else if(u===-1)f=p===`up`?l:c;else if(f=Fu(e,{startingIndex:u,amount:y,decrement:p===`up`,disabledIndices:s}),r){if(p===`up`&&(u-y<c||f<0)){let e=u%y,n=l%y,r=l-(n-e);f=n===e?l:n>e?r:r-y,i&&(f=i(t,u,f))}p===`down`&&u+y>l&&(f=Fu(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}Mu(e,f)&&(f=u)}if(n===`both`){let n=su(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&Zl(t),u%o===o-1?r&&(f=Fu(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=Fu(e,{startingIndex:u,disabledIndices:s}),r&&ju(f,o,n)&&(f=Fu(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),ju(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&Zl(t),u%o===0?r&&(f=Fu(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=Fu(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&ju(f,o,n)&&(f=Fu(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),ju(f,o,n)&&(f=u));let c=su(l/o)===n;Mu(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:Fu(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function Lu(e,t,n){let r=[],i=0;return e.forEach(({width:e,height:a},o)=>{let s=!1;for(n&&(i=0);!s;){let n=[];for(let r=0;r<e;r+=1)for(let e=0;e<a;e+=1)n.push(i+r+e*t);i%t+e<=t&&n.every(e=>
9r[e]==null)?(n.forEach(e=>{r[e]=o}),s=!0):i+=1}}),[...r]}function Ru(e,t,n,r,i){if(e===-1)return-1;let a=n.indexOf(e),o=t[e];switch(i){case`tl`:return a;case`tr`:return o?a+o.width-1:a;case`bl`:return o?a+(o.height-1)*r:a;case`br`:return n.lastIndexOf(e);default:return-1}}function zu(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function Bu(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?Hu(r)?!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!0:!1}function Vu(e){return e.visibility===`hidden`||e.visibility===`collapse`}function Hu(e,t=e?$o(e):null){return!e||!e.isConnected||!t||Vu(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var Uu=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Wu(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return Vo(n)?n.host:null}function Gu(e){for(let t of Array.from(e.children))if(Fo(t)===`summary`)return t;return null}function Ku(e,t){let n=Gu(t);return!!n&&(e===n||zl(n,e))}function qu(e){let t=e?Fo(e):``;return e!=null&&e.matches(Uu)&&(t!==`summary`||e.parentElement!=null&&Fo(e.parentElement)===`details`&&Gu(e.parentElement)===e)&&(t!==`details`||Gu(e)==null)&&(t!==`input`||e.type!==`hidden`)}function Ju(e){if(!qu(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Wu(t)){let n=t!==e,r=Fo(t)===`slot`;if(t.hasAttribute(`inert`)||n&&Fo(t)===`details`&&!t.open&&!Ku(e,t)||t.hasAttribute(`hidden`)||!r&&!Yu(t,n))return!1}return!0}function Yu(e,t){let n=$o(e);return t?n.display!==`none`:Hu(e,n)}function Xu(e){let t=e.tabIndex;if(t<0){let t=Fo(e);if(t===`details`||t===`audio`||t===`video`||Bo(e)&&e.isContentEditable)return 0}return t}function Zu(e){if(Fo(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function Qu(e,t){let n=Zu(e);if(!n)return!0;let r=t.find(e=>{let t=Zu(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Zu(e);return t?.name===n.name&&t.form===n.form})===n}function $u(e){if(Bo(e)&&Fo(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Bo(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function ed(e,t){$u(e).forEach(e=>{qu(e)&&t.push(e),ed(e,t)})}function td(e,t,n){$u(e).forEach(e=>{Bo(e)&&e.matches(t)&&n.push(e),td(e,t,n)})}function nd(e){return Ju(e)&&Xu(e)>=0}function rd(e){let t=[];return ed(e,t),t.filter(Ju)}function id(e){let t=rd(e);return t.filter(e=>Xu(e)>=0&&Qu(e,t))}function ad(e,t){let n=id(e),r=n.length;if(r===0)return;let i=Rl(as(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function od(e){return ad(as(e).body,1)||e}function sd(e){return ad(as(e).body,-1)||e}function cd(e,t){if(!e)return null;let n=id(as(e).body),r=n.length;if(r===0)return null;let i=n.indexOf(e);return i===-1?null:n[(i+t+r)%r]}function ld(e){return cd(e,1)}function ud(e){return cd(e,-1)}function dd(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!zl(n,r)}function fd(e){id(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function pd(e){let t=[];td(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var md=`ArrowUp`,hd=`ArrowDown`,gd=`ArrowLeft`,_d=`ArrowRight`,vd=`Home`,yd=`PageUp`,bd=`PageDown`,xd=new Set([gd,_d]),Sd=new Set([gd,_d,vd,`End`]),Cd=new Set([md,hd]),wd=new Set([md,hd,vd,`End`]),Td=new Set([...xd,...Cd]),Ed=new Set([...Td,vd,`End`]),Dd=`Shift`,Od=new Set([Dd,`Control`,`Alt`,`Meta`]);function kd(e){return Bo(e)&&e.tagName===`INPUT`}function Ad(e){return!!(kd(e)&&e.selectionStart!=null||Bo(e)&&e.tagName===`TEXTAREA`)}function jd(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(o&&r!==`vertical`){let r=Md(e,t,`left`),a=Nd(e),o=Nd(t);n===`ltr`&&(r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft&&(i=r-o.scrollMarginLeft-a.scrollPaddingLeft)),n===`rtl`&&(r-o.scrollMarginRight<e.scrollLeft+a.scrollPaddingLeft?i=r-o.scrollMarginLeft-a.scrollPaddingLeft:r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=Md(e,t,`top`),r=Nd(e),i=Nd(t);n-i.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?a=n-i.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}
9function Md(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function Nd(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}function Pd(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=Y(i),o=_.useRef(0),s=go(Id).current,c=go(Fd).current,[l,u]=_.useState(0),d=_.useRef(l),f=Y((e,t)=>{c.set(e,t??null),d.current+=1,u(d.current)}),p=Y(e=>{c.delete(e),d.current+=1,u(d.current)}),m=_.useMemo(()=>{let e=new Map;return Array.from(c.keys()).filter(e=>e.isConnected).sort(Ld).forEach((t,n)=>{let r=c.get(t)??{};e.set(t,{...r,index:n})}),e},[c,l]);J(()=>{if(typeof MutationObserver!=`function`||m.size===0)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),t.size===0&&(d.current+=1,u(d.current))});return m.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[m]),J(()=>{d.current===l&&(n.current.length!==m.size&&(n.current.length=m.size),r&&r.current.length!==m.size&&(r.current.length=m.size),o.current=m.size),a(m)},[a,m,n,r,l]),J(()=>()=>{n.current=[]},[n]),J(()=>()=>{r&&(r.current=[])},[r]);let h=Y(e=>(s.add(e),()=>{s.delete(e)}));J(()=>{s.forEach(e=>e(m))},[s,m]);let g=_.useMemo(()=>({register:f,unregister:p,subscribeMapChange:h,elementsRef:n,labelsRef:r,nextIndexRef:o}),[f,p,h,n,r,o]);return(0,Z.jsx)(Fc.Provider,{value:g,children:t})}function Fd(){return new Map}function Id(){return new Set}function Ld(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function Rd(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var zd=[];function Bd(e){let{itemSizes:t,cols:n=1,loopFocus:r=!0,onLoop:i,dense:a=!1,orientation:o=`both`,direction:s,highlightedIndex:c,onHighlightedIndexChange:l,rootRef:u,enableHomeAndEndKeys:d=!1,stopEventPropagation:f=!1,disabledIndices:p,modifierKeys:m=zd}=e,[h,g]=_.useState(0),v=n>1,y=_.useRef(null),b=_o(y,u),x=_.useRef([]),S=_.useRef(!1),C=c??h,w=Y((e,t=!1)=>{if((l??g)(e),t){let t=x.current[e];jd(y.current,t,s,o)}}),T=Y(e=>{if(e.size===0||S.current)return;S.current=!0;let t=Array.from(e.keys()),n=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,r=n?t.indexOf(n):-1;r!==-1&&w(r),jd(y.current,n,s,o)}),E=Y((e,t,n)=>i?i?.(e,t,n,x):n),D=_.useMemo(()=>({"aria-orientation":o===`both`?void 0:o,ref:b,onFocus(e){let t=y.current,n=Bl(e.nativeEvent);!t||n==null||!Ad(n)||n.setSelectionRange(0,n.value.length??0)},onKeyDown(e){let c=d?Ed:Td;if(!c.has(e.key)||Vd(e,m)||!y.current)return;let l=s===`rtl`,u=l?gd:_d,h={horizontal:u,vertical:hd,both:u}[o],g=l?_d:gd,_={horizontal:g,vertical:md,both:g}[o],b=Bl(e.nativeEvent);if(b!=null&&Ad(b)&&!Rd(b)){let t=b.selectionStart,n=b.selectionEnd,r=b.value??``;if(t==null||e.shiftKey||t!==n||e.key!==_&&t<r.length||e.key!==h&&t>0)return}let S=C,T=Nu(x,p),D=Pu(x,p);if(v){let i=t||Array.from({length:x.current.length},()=>({width:1,height:1})),s=Lu(i,n,a),c=s.findIndex(e=>e!=null&&!Bu(x.current,e,p)),u=s.reduce((e,t,n)=>t!=null&&!Bu(x.current,t,p)?n:e,-1);S=s[Iu(s.map(e=>e==null?null:x.current[e]),{event:e,orientation:o,loopFocus:r,onLoop:E,cols:n,disabledIndices:zu([...p||x.current.map((e,t)=>Bu(x.current,t)?t:void 0),void 0],s),minIndex:c,maxIndex:u,prevIndex:Ru(C>D?T:C,i,s,n,e.key===`ArrowDown`?`bl`:e.key===`ArrowRight`?`tr`:`tl`),rtl:l})]}let O={horizontal:[u],vertical:[hd],both:[u,hd]}[o],k={horizontal:[g],vertical:[md],both:[g,md]}[o],A=v?c:{horizontal:d?Sd:xd,vertical:d?wd:Cd,both:c}[o];d&&(e.key===`Home`?S=T:e.key===`End`&&(S=D)),S===C&&(O.includes(e.ke
9y)||k.includes(e.key))&&(r&&S===D&&O.includes(e.key)?(S=T,i&&(S=i(e,C,S,x))):r&&S===T&&k.includes(e.key)?(S=D,i&&(S=i(e,C,S,x))):S=Fu(x.current,{startingIndex:S,decrement:k.includes(e.key),disabledIndices:p})),S!==C&&!Mu(x.current,S)&&(f&&e.stopPropagation(),A.has(e.key)&&e.preventDefault(),w(S,!0),queueMicrotask(()=>{x.current[S]?.focus()}))}}),[n,a,s,p,x,d,C,v,t,r,i,E,b,m,w,o,f]);return _.useMemo(()=>({props:D,highlightedIndex:C,onHighlightedIndexChange:w,elementsRef:x,disabledIndices:p,onMapChange:T,relayKeyboardEvent:D.onKeyDown}),[D,C,w,x,p,T])}function Vd(e,t){for(let n of Od.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}var Hd=_.createContext(void 0);function Ud(){return _.useContext(Hd)?.direction??`ltr`}function Wd(e){let{render:t,className:n,style:r,refs:i=Mo,props:a=Mo,state:o=No,stateAttributesMapping:s,highlightedIndex:c,onHighlightedIndexChange:l,orientation:u,dense:d,itemSizes:f,loopFocus:p,onLoop:m,cols:h,enableHomeAndEndKeys:g,onMapChange:v,stopEventPropagation:y=!0,rootRef:b,disabledIndices:x,modifierKeys:S,highlightItemOnHover:C=!1,tag:w=`div`,...T}=e,{props:E,highlightedIndex:D,onHighlightedIndexChange:O,elementsRef:k,onMapChange:A,relayKeyboardEvent:j}=Bd({itemSizes:f,cols:h,loopFocus:p,onLoop:m,dense:d,orientation:u,highlightedIndex:c,onHighlightedIndexChange:l,rootRef:b,stopEventPropagation:y,enableHomeAndEndKeys:g,direction:Ud(),disabledIndices:x,modifierKeys:S}),M=X(w,e,{state:o,ref:i,props:[E,...a,T],stateAttributesMapping:s}),N=_.useMemo(()=>({highlightedIndex:D,onHighlightedIndexChange:O,highlightItemOnHover:C,relayKeyboardEvent:j}),[D,O,C,j]);return(0,Z.jsx)(Oc.Provider,{value:N,children:(0,Z.jsx)(Pd,{elementsRef:k,onMapChange:e=>{v?.(e),A(e)},children:M})})}function Gd(e,t,n,r,i=!0){let{registerFieldControl:a}=Uc(),o=_.useRef(null);o.current||=Symbol(),J(()=>{let s=o.current;if(!(!s||!i))return a(s,{controlRef:e,getValue:r,id:t,value:n}),()=>{a(s,void 0)}},[e,i,r,t,a,n])}var Kd=_.createContext({legendId:void 0,setLegendId:()=>{},disabled:void 0});function qd(e=!1){let t=_.useContext(Kd);if(!t&&!e)throw Error(ec(86));return t}var Jd=_.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:jo,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function Yd(){return _.useContext(Jd)}function Xd(e,t){let n=_.useRef(e),r=Y(t);J(()=>{n.current!==e&&r(n.current)},[e,r]),J(()=>{n.current=e},[e])}var Zd=[Dd],Qd=_.forwardRef(function(e,t){let{render:n,className:r,disabled:i,readOnly:a,required:o,onValueChange:s,value:c,defaultValue:l,form:u,name:d,inputRef:f,id:p,style:m,...h}=e,{setTouched:g,setFocused:v,shouldValidateOnChange:y,validationMode:b,name:x,disabled:S,state:C,validation:w,setDirty:T,setFilled:E,validityData:D}=Uc(),{labelId:O}=qc(),{clearErrors:k}=Yd(),A=qd(!0),j=S||i,M=x??d,N=Qs(p),[P,F]=_l({controlled:c,default:l,name:`RadioGroup`,state:`value`}),[I,L]=_.useState(!1),R=Y((e,t)=>{s?.(e,t),!t.isCanceled&&F(e)}),z=_.useRef(null),B=_.useRef(null),V=_.useRef(null);function H(e){let t;return f&&(typeof f==`function`?t=f(e):f.current=e),B.current=e,w.inputRef.current=e,t}let U=Y((e,t=!1)=>{if(e){if(t){z.current===e&&(z.current=null);return}z.current??=e}}),ee=Y(e=>{if(!e||e.disabled)return;V.current||=e;let t=B.current;if(e.checked||t==null||t.disabled)return H(e)});Gd(z,N,P??null),Xd(P,()=>{k(M),T(P!==D.initialValue),E(P!=null),y()?w.commit(P):w.commit(P,!0);let e=V.current;P==null&&e&&!e.disabled&&H(e)});let W=h[`aria-labelledby`]??O??A?.legendId,te={...C,disabled:j??!1,required:o??!1,readOnly:a??!1},ne=_.useMemo(()=>({...C,checkedValue:P,disabled:j,form:u,validation:w,name:M,readOnly:a,registerControlRef:U,registerInputRef:ee,required:o,setCheckedValue:R,setTouched:L,touched:I}),[P,j,u,w,C,M,a,U,ee,o,R,L,I]),re={role:`radiogroup`,"aria-required":o||void 0,"aria-disabled":j||void 0,"aria-readonly":a||void 0,"aria-labelledby":W,onFocus(){v(!0)},onBlur(e){zl(e.currentTarget,e.relatedTarget)||(g(!0),v(!1),b===`onBlur`&&w.commit(P))},onKeyDownCapture(e){e.key.startsWith(`Arrow`)&&(g(!0),L(!0),v(!0))}};return(0,Z.jsx)(Qc.Provider,{value:ne,children:(0,Z.jsx)(Wd,{render:n,className:r,style:m,state:te,props:[re,w.getValidationProps,h],refs:[t],stateAttributesMapping:Gs,enableHomeAndEndKeys:!1,modifierKeys:Z
9d})})});function $d(e){let t=_.useRef(!0);t.current&&(t.current=!1,e())}function ef(e){let[t,n]=_.useState({current:e,previous:null});return e!==t.current&&n({current:e,previous:t.current}),t.previous}function tf(e){let t=go(nf,e).current;return t.next=e,J(t.effect),t}function nf(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var Q=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(ec(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},rf=o((e=>{var t=u();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),af=o(((e,t)=>{t.exports=rf()})),of=o((e=>{var t=u(),n=af();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),sf=o(((e,t)=>{t.exports=of()})),cf=[],lf=void 0;function uf(){return lf}function df(e){cf.push(e)}function ff(e){let t=(t,n)=>{let r=go(mf).current,i;try{lf=r;for(let e of cf)e.before(r);i=e(t,n);for(let e of cf)e.after(r);r.didInitialize=!0}finally{lf=void 0}return i};return t.displayName=e.displayName||e.name,t}function pf(e){return _.forwardRef(ff(e))}function mf(){return{didInitialize:!1}}var hf=af(),gf=sf(),_f=nc(19)?yf:bf;function $(e,t,n,r,i){return _f(e,t,n,r,i)}function vf(e,t,n,r,i){let a=_.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,hf.useSyncExternalStore)(e.subscribe,a,a)}df({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);(r.didChange||!Object.is(r.value,i))&&(t=!0,r.value=i,r.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,hf.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function yf(e,t,n,r,i){let a=uf();if(!a)return vf(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.didChange=!0)):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},a.syncHooks.push(s)),s.value}function bf(e,t,n,r,i){return(0,gf.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var xf=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}
9subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return $(this,e,t,n,r)}},Sf=class extends xf{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){_.useDebugValue(e);let n=this;J(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;J(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;J(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){_.useDebugValue(e);let n=this,r=t!==void 0;J(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return _.useDebugValue(e),$(this,this.selectors[e],t,n,r)}useContextCallback(e,t){_.useDebugValue(e);let n=Y(t??jo);this.context[e]=n}useStateSetter(e){let t=_.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}};function Cf(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function wf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Tf(){let[,e]=_.useState({});return _.useCallback(()=>{e({})},[])}var Ef=0,Df=class e{static create(){return new e}currentId=Ef;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Ef,t()},e)}isStarted(){return this.currentId!==Ef}clear=()=>{this.currentId!==Ef&&(clearTimeout(this.currentId),this.currentId=Ef)};disposeEffect=()=>this.clear};function Of(){let e=go(Df.create).current;return ol(e.disposeEffect),e}function kf(e,t){return t!=null&&!tu(t)?0:typeof e==`function`?e():e}function Af(e,t,n){let r=kf(e,n);return typeof r==`number`?r:r?.[t]}function jf(e){return typeof e==`function`?e():e}function Mf(e,t){return t||e===`click`||e===`mousedown`}function Nf(e){return e?.includes(`mouse`)&&e!==`mousedown`}var Pf=_.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Df,currentIdRef:{current:null},currentContextRef:{current:null}});function Ff(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=_.useRef(n),a=_.useRef(n),o=_.useRef(null),s=_.useRef(null),c=Of();return(0,Z.jsx)(Pf.Provider,{value:_.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function If(e,t={open:!1}){let{open:n}=t,r=`rootStore`in e?e.rootStore:e,i=r.useState(`floatingId`),{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=_.useContext(Pf),[f,p]=_.useState(!1);return J(()=>{function e(){p(!1),l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current}if(a.current&&!n&&a.current===i){if(p(!1),s){let t=i;return d.start(s,()=>{r.select(`open`)||a.current&&a.current!==t||e()}),()=>{d.clear()}}e()}},[n,i,a,o,s,c,l,d,r]),J(()=>{if(!n)return;let e=l.current,t=a.current;d.clear(),l.current={onOpenChange:r.setOpen,setIsInstantPhase:p},a.current=i,o.current={open:0,close:Af(c.current,`close`)},t!==null&&t!==i?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,Fs(os))):(p(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,c,l,d]),J(()=>()=>{l.current=null},[l]),_.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}var Lf=_.forwardRef(function(e,t){let[n,r]=_.useState();J(()=>{Tl&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,Z.jsx)(`span`,{...e,ref:t,style:ko,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})});function Rf(e){return`data-base-ui-${e}`}var zf=0;function Bf(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(zf);function a(){i&&!i()||e?.focus({preventScroll:n})}if(r)return a(),jo;let o=requestAnimationFrame(a);return zf=o,()=>{zf===o&&(cancelAnimationFrame(o),zf=0)}}var Vf={inert:new WeakMap,"aria-hidden":new WeakMap},Hf=`data-base-ui-inert`,Uf={inert:new WeakSet,"aria-hidden":new WeakSet},Wf=new WeakMap,Gf=0;function Kf(e){return Uf[e]}function qf(e){return e?Vo(e)?e.host:qf(e.parentNode):null}var Jf=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=qf(t);return e.contains(n)?n:null}).filter(e=>e!=null),Yf=e=>{let t=new Set;
9return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},Xf=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{Fo(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function Zf(e,t,n,r,{mark:i=!0,markerIgnoreElements:a=[]}){let o=r?`inert`:n?`aria-hidden`:null,s=null,c=null,l=Jf(t,e),u=i?Jf(t,a):[],d=new Set(u),f=i?Xf(t,Yf(l),new Set(l)).filter(e=>!d.has(e)):[],p=[],m=[];if(o){let e=Vf[o],n=Kf(o);c=n,s=e;let r=Jf(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=l.concat(r);Xf(t,Yf(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=r!==null&&r!==`false`,a=(e.get(t)||0)+1;e.set(t,a),p.push(t),a===1&&i&&n.add(t),i||t.setAttribute(o,o===`inert`?``:`true`)})}return i&&f.forEach(e=>{let t=(Wf.get(e)||0)+1;Wf.set(e,t),m.push(e),t===1&&e.setAttribute(Hf,``)}),Gf+=1,()=>{s&&p.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!c?.has(e)&&o&&e.removeAttribute(o),c?.delete(e))}),i&&m.forEach(e=>{let t=(Wf.get(e)||0)-1;Wf.set(e,t),t||e.removeAttribute(Hf)}),--Gf,Gf||(Vf.inert=new WeakMap,Vf[`aria-hidden`]=new WeakMap,Uf.inert=new WeakSet,Uf[`aria-hidden`]=new WeakSet,Wf=new WeakMap)}}function Qf(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:a=[]}=t,o=as(e[0]).body;return Zf(e,o,n,r,{mark:i,markerIgnoreElements:a})}var $f={style:{transition:`none`}},ep=`data-base-ui-click-trigger`,tp=`data-base-ui-swipe-ignore`,np=`data-swipe-ignore`,rp=`[${tp}]`,ip=`[${np}]`,ap={fallbackAxisSide:`none`},op={fallbackAxisSide:`end`},sp={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},cp=_.createContext(null),lp=()=>_.useContext(cp),up=Rf(`portal`);function dp(e={}){let{ref:t,container:n,componentProps:r=No,elementProps:i}=e,a=Zs(),o=lp()?.portalNode,[s,c]=_.useState(null),[l,u]=_.useState(null),d=Y(e=>{e!==null&&u(e)}),f=_.useRef(null);J(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}if(a==null)return;let e=(n&&(Ro(n)?n:n.current))??o??document.body;if(e==null){f.current&&(f.current=null,u(null),c(null));return}f.current!==e&&(f.current=e,u(null),c(e))},[n,o,a]);let p=X(`div`,r,{ref:[t,d],props:[{id:a,[up]:``},i]});return{portalNode:l,portalSubtree:s&&p?fl.createPortal(p,s):null}}var fp=_.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,renderGuards:s,...c}=e,{portalNode:l,portalSubtree:u}=dp({container:o,ref:t,componentProps:e,elementProps:c}),d=_.useRef(null),f=_.useRef(null),p=_.useRef(null),m=_.useRef(null),[h,g]=_.useState(null),v=_.useRef(!1),y=h?.modal,b=h?.open,x=typeof s==`boolean`?s:!!h&&!h.modal&&h.open&&!!l;_.useEffect(()=>{if(!l||y)return;function e(e){l&&e.relatedTarget&&dd(e)&&(e.type===`focusin`?v.current&&=(pd(l),!1):(fd(l),v.current=!0))}return Cf(wf(l,`focusin`,e,!0),wf(l,`focusout`,e,!0))},[l,y]),_.useEffect(()=>{!l||b!==!1||(pd(l),v.current=!1)},[b,l]);let S=_.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,Z.jsxs)(_.Fragment,{children:[u,(0,Z.jsxs)(cp.Provider,{value:S,children:[x&&l&&(0,Z.jsx)(Lf,{"data-type":`outside`,ref:d,onFocus:e=>{dd(e,l)?p.current?.focus():sd(h?h.domReference:null)?.focus()}}),x&&l&&(0,Z.jsx)(`span`,{"aria-owns":l.id,style:sp}),l&&fl.createPortal(a,l),x&&l&&(0,Z.jsx)(Lf,{"data-type":`outside`,ref:f,onFocus:e=>{dd(e,l)?m.current?.focus():(od(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,Fs(`focus-out`,e.nativeEvent)))}})]})]})});function pp(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var mp=class{nodesRef={current:[]};events=pp();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);t!==-1&&this.nodesRef.current.splice(t,1)}},hp=_.createContext(null),gp=_.createContext(null),_p=()=>_.useContext(hp)?.id||null,vp=e=>{let t=_.useContext(gp);return e??t};function yp(e){let t=Zs(),n=vp(e),r=_p();return J(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function bp(e){let{children:t,id:n}=e,r=_p();return(0,Z.jsx)(hp.Provider,{value:_.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function xp(e){let{children:t,externalTree:n}=e,r=go(()=>n??new mp).current;return(0,Z.jsx)(gp.Provider,{value:r,children:t})}function Sp(e,t){let n=Io(Bl(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var Cp=20,wp=[];function Tp(){wp=wp.filter(e=>e.deref()?.isConnected)}function Ep(e){Tp(),e&&Fo(e)!==`body`&&(wp.push(new WeakRef(e)),wp.length>Cp&&(wp=wp.slice(-Cp)))}function Dp(){return Tp(),wp[wp.length-1]?.deref()}function Op(e){return e?nd(e)?e:id(e)[0]||e:null}function kp(e,t){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=rd(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return nd(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),r=e.getAttribute(`tabindex`);t.current.includes(`floating`)||n.length===0?r!==`0`&&e.setAttribute(`tabindex`,`0`):(r!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}
9function Ap(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:l=``,nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:p,getInsideElements:m}=e,h=`rootStore`in t?t.rootStore:t,g=h.useState(`open`),v=h.useState(`domReferenceElement`),y=h.useState(`floatingElement`),{events:b,dataRef:x}=h.context,S=Y(()=>x.current.floatingContext?.nodeId),C=i===!1,w=Kl(v)&&C,T=_.useRef([`content`]),E=tf(i),D=tf(a),O=tf(l),k=vp(p),A=lp(),j=_.useRef(!1),M=_.useRef(!1),N=_.useRef(!1),P=_.useRef(null),F=_.useRef(``),I=_.useRef(``),L=_.useRef(null),R=_.useRef(null),z=_o(L,f,A?.beforeInsideRef),B=_o(R,A?.afterInsideRef),V=Of(),H=Of(),U=ul(),ee=A!=null,W=Jl(y),te=Y((e=W)=>e?id(e):[]),ne=Y(()=>m?.().filter(e=>e!=null)??[]);_.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&zl(W,Rl(as(W)))&&te().length===0&&!w&&Zl(e)}return wf(as(W),`keydown`,e)},[r,W,s,w,te]),_.useEffect(()=>{if(r||!g)return;let e=as(W);function t(){N.current=!1}function n(e){let t=Bl(e),n=ne();N.current=!(zl(y,t)||zl(v,t)||zl(A?.portalNode,t)||n.some(e=>e===t||zl(e,t))),I.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(M.current=!0)}function i(){I.current=`keyboard`}return Cf(wf(e,`pointerdown`,n,!0),wf(e,`pointerup`,t,!0),wf(e,`pointercancel`,t,!0),wf(e,`keydown`,i,!0))},[r,y,v,W,g,A,ne]),_.useEffect(()=>{if(r||!c)return;let e=as(W);function t(){M.current=!0,H.start(0,()=>{M.current=!1})}function n(e){let t=Bl(e);nd(t)&&(P.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=Bl(t);queueMicrotask(()=>{let a=S(),c=h.context.triggerElements,l=ne(),f=n?.hasAttribute(Rf(`focus-guard`))&&[L.current,R.current,A?.beforeInsideRef.current,A?.afterInsideRef.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,dl(d),dl(u)].includes(n),p=!(zl(v,n)||zl(y,n)||zl(n,y)||zl(A?.portalNode,n)||l.some(e=>e===n||zl(e,n))||n!=null&&c.hasElement(n)||c.hasMatchingElement(e=>zl(e,n))||f||k&&(Yl(k.nodesRef.current,a).find(e=>zl(e.context?.elements.floating,n)||zl(e.context?.elements.domReference,n))||Xl(k.nodesRef.current,a).find(e=>[e.context?.elements.floating,Jl(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===v&&W&&kp(W,T),o&&r!==v&&!Hu(i)&&Rl(e)===e.body){if(Bo(W)&&(W.focus(),o===`popup`)){U.request(()=>{W.focus()});return}let e=te(),t=P.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||W;Bo(n)&&n.focus()}if(x.current.insideReactTree){x.current.insideReactTree=!1;return}(w||!s)&&n&&p&&!M.current&&(w||n!==Dp())&&(j.current=!0,h.setOpen(!1,Fs(Ss,t)))})}function a(){N.current||(x.current.insideReactTree=!0,V.start(0,()=>{x.current.insideReactTree=!1}))}let l=Bo(v)?v:null;if(!(!y&&!l))return Cf(l&&wf(l,`focusout`,i),l&&wf(l,`pointerdown`,t),y&&wf(y,`focusin`,n),y&&wf(y,`focusout`,i),y&&A&&wf(y,`focusout`,a,!0))},[r,v,y,W,s,k,A,h,c,o,te,w,S,T,x,V,H,U,u,d,ne]),_.useEffect(()=>{if(r||!y||!g)return;let e=Array.from(A?.portalNode?.querySelectorAll(`[${Rf(`portal`)}]`)||[]),t=(k?Xl(k.nodesRef.current,S()):[]).find(e=>Kl(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Qf([y,...e,L.current,R.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,...ne(),t,dl(d),dl(u),w?v:null].filter(e=>e!=null),{ariaHidden:s||w,mark:!1}),i=Qf([y,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,v,y,s,A,w,k,S,u,d,ne]),J(()=>{if(!g||r||!Bo(W))return;let e=as(W),t=Rl(e);queueMicrotask(()=>{let n=E.current,r=typeof n==`function`?n(O.current||``):n;if(r===void 0||r===!1||zl(W,t))return;let i=null,a=()=>(i??=te(W),i[0]||W),o;o=r===!0||r===null?a():dl(r),o||=a();let s=zl(W,Rl(e));Bf(o,{preventScroll:o===W,shouldFocus(){if(s)return!0;let t=Rl(e);return!(t!==o&&zl(W,t))}})})},[r,g,W,te,E,O]),J(()=>{if(r||!W)return;let e=as(W);Ep(Rl(e));function t(e){if(e.open||(F.current=Sp(e.nativeEvent,I.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(j.current=!0),e.reason===`outside-press`)if(e.nested)j.current=!1;else if($l(e.nativeEvent)||eu(e.nativeEvent))j.current=!1;else{let e=!1;as(W).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?j.current=!1:j.current=!0}}b.on(`openchange`,t);function n(){let e=D.current,t=typeof e==`function`?e(F.current):e;if(t===void 0||t===!1)return null;if(t===null&&(t=!0),typeof t==`boolean`)return v?.isConnected?v:Dp()||null;let n=v?.isConnected?v:Dp();return dl(t)||n||null}return()=>{b.off(`openchange`,t);let r=Rl(e),i=ne(),a=zl(y,r)||i.some(e=>e===r||zl(e,r))||k&&Yl(k.nodesRef.current,S(),!1).some(e=>zl(e.context?.elements.floating,r)),o=D.current,s=n();queueMicrotask(()=>{let t=Op(s),n=typeof o!=`boolean`;
9o&&!j.current&&Bo(t)&&(!(!n&&t!==r&&r!==e.body)||a)&&t.focus({preventScroll:!0}),j.current=!1})}},[r,y,W,D,b,k,v,S,ne]),J(()=>{if(!Sl||g||!y)return;let e=Rl(as(y));!Bo(e)||!Wl(e)||zl(y,e)&&e.blur()},[g,y]),J(()=>{if(!(r||!A))return A.setFocusManagerState({modal:s,closeOnFocusOut:c,open:g,onOpenChange:h.setOpen,domReference:v}),()=>{A.setFocusManagerState(null)}},[r,A,s,g,h,c,v]),J(()=>{if(!(r||!W))return kp(W,T),()=>{queueMicrotask(Tp)}},[r,W,T]);let re=!r&&(s?!w:!0)&&(ee||s);return(0,Z.jsxs)(_.Fragment,{children:[re&&(0,Z.jsx)(Lf,{"data-type":`inside`,ref:z,onFocus:e=>{if(s){let e=te();Bf(e[e.length-1])}else A?.portalNode&&(j.current=!1,dd(e,A.portalNode)?od(v)?.focus():dl(d??A.beforeOutsideRef)?.focus())}}),n,re&&(0,Z.jsx)(Lf,{"data-type":`inside`,ref:B,onFocus:e=>{s?Bf(te()[0]):A?.portalNode&&(c&&(j.current=!0),dd(e,A.portalNode)?sd(v)?.focus():dl(u??A.afterOutsideRef)?.focus())}})]})}function jp(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=ss}=t,l=`rootStore`in e?e.rootStore:e,u=l.context.dataRef,d=_.useRef(void 0),f=ul(),p=Of(),m=_.useMemo(()=>{function e(e,t,n,r){let i=Fs(c,t,n);e&&r===`touch`&&s>0?p.start(s,()=>{l.setOpen(!0,i)}):l.setOpen(e,i)}function t(e,t,n){let r=u.current.openEvent,a=l.select(`domReferenceElement`)!==t;return e&&a||!e||!i?!0:r&&o?!n(r.type):!1}return{onPointerDown(e){d.current=e.pointerType},onMouseDown(n){let i=d.current,o=n.nativeEvent,s=l.select(`open`);if(n.button!==0||r===`click`||tu(i,!0)&&a)return;let c=t(s,n.currentTarget,e=>e===`click`||e===`mousedown`),u=Bl(o);if(Wl(u)){e(c,o,u,i);return}let p=n.currentTarget;f.request(()=>{e(c,o,p,i)})},onClick(n){if(r===`mousedown-only`)return;let i=d.current;if(r===`mousedown`&&i){d.current=void 0;return}tu(i,!0)&&a||e(t(l.select(`open`),n.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),n.nativeEvent,n.currentTarget,i)},onKeyDown(){d.current=void 0}}},[u,r,a,c,l,o,i,f,p,s]);return _.useMemo(()=>n?{reference:m}:No,[n,m])}function Mp(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function Np(e){return e!=null&&e.clientX!=null}function Pp(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=`rootStore`in e?e.rootStore:e,a=i.useState(`open`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.context.dataRef,l=_.useRef(!1),u=_.useRef(null),[d,f]=_.useState(),[p,m]=_.useState([]),h=Y(e=>{i.set(`positionReference`,e)}),g=Y((e,t,n)=>{l.current||c.current.openEvent&&!Np(c.current.openEvent)||i.set(`positionReference`,Mp(n??s,{x:e,y:t,axis:r,dataRef:c,pointerType:d}))}),v=Y(e=>{a?u.current||(g(e.clientX,e.clientY,e.currentTarget),m([])):g(e.clientX,e.clientY,e.currentTarget)}),y=tu(d)?o:a;_.useEffect(()=>{if(!n){h(s);return}if(!y)return;function e(){u.current?.(),u.current=null}let t=Io(o);function r(t){zl(o,Bl(t))?e():g(t.clientX,t.clientY)}return!c.current.openEvent||Np(c.current.openEvent)?u.current=wf(t,`mousemove`,r):h(s),e},[y,n,o,c,s,i,g,h,p]),_.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),_.useEffect(()=>{n&&!o&&(l.current=!1)},[n,o]),_.useEffect(()=>{!n&&a&&(l.current=!0)},[n,a]);let b=_.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:v,onMouseEnter:v}},[v]);return _.useMemo(()=>n?{reference:b,trigger:b}:{},[n,b])}var Fp={intentional:`onClick`,sloppy:`onPointerDown`};function Ip(){return!1}function Lp(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Rp(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=Ip,referencePressEvent:s=`sloppy`,bubbles:c,externalTree:l}=t,u=`rootStore`in e?e.rootStore:e,d=u.useState(`open`),f=u.useState(`floatingElement`),{dataRef:p}=u.context,m=vp(l),h=Y(typeof i==`function`?i:()=>!1),g=typeof i==`function`?h:i,v=g!==!1,y=Y(()=>a),{escapeKey:b,outsidePress:x}=Lp(c),S=_.useRef(!1),C=_.useRef(!1),w=_.useRef(!1),T=_.useRef(!1),E=_.useRef(``),D=_.useRef(null),O=Of(),k=Of(),A=Y(()=>{k.clear(),p.current.insideReactTree=!1}),j=Y(e=>{let t=p.current.floatingContext?.nodeId;return(m?Yl(m.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),M=Y(e=>Hl(e,u.select(`floatingElement`))||Hl(e,u.select(`domReferenceElement`))),N=Y(e=>{o()&&u.setOpen(!1,Fs(ss,e.nativeEvent))}),P=Y(e=>{if(!d||!n||!r||e.key!==`Escape`||T.current||!b&&j(`__escapeKeyBubbles`))return;
9let t=Fs(Cs,Ql(e)?e.nativeEvent:e);u.setOpen(!1,t),t.isCanceled||e.preventDefault(),!b&&!t.isPropagationAllowed&&e.stopPropagation()}),F=Y(()=>{p.current.insideReactTree=!0,k.start(0,A)}),I=Y(e=>{if(!d||!n||e.button!==0)return;let t=Bl(e.nativeEvent);zl(u.select(`floatingElement`),t)&&(S.current||(S.current=!0,C.current=!1))}),L=Y(e=>{!d||!n||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&S.current&&(C.current=!0)});_.useEffect(()=>{if(!d||!n)return;p.current.__escapeKeyBubbles=b,p.current.__outsidePressBubbles=x;let e=new Df,t=new Df;function i(){e.clear(),T.current=!0}function a(){e.start(Zo()?5:0,()=>{T.current=!1})}function o(){w.current=!0,t.start(0,()=>{w.current=!1})}function s(){S.current=!1,C.current=!1}function c(){let e=E.current,t=e===`pen`||!e?`mouse`:e,n=y(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function l(e){let t=c();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function h(e){let t=p.current.floatingContext?.nodeId,n=m&&Yl(m.nodesRef.current,t).some(t=>Hl(e,t.context?.elements.floating));return M(e)||n}function _(e){if(l(e)){e.type!==`click`&&!M(e)&&(t.clear(),w.current=!1),A();return}if(p.current.insideReactTree){A();return}let n=Bl(e),r=`[${Rf(`inert`)}]`,i=zo(n)?n.getRootNode():null,a=Array.from((Vo(i)?i:as(u.select(`floatingElement`))).querySelectorAll(r)),o=u.context.triggerElements;if(n&&(o.hasElement(n)||o.hasMatchingElement(e=>zl(e,n))))return;let s=zo(n)?n:null;for(;s&&!Qo(s);){let e=ts(s);if(Qo(e)||!zo(e))break;s=e}if(!(a.length&&zo(n)&&!Ul(n)&&!zl(n,u.select(`floatingElement`))&&a.every(e=>!zl(s,e)))){if(Bo(n)&&!(`touches`in e)){let t=Qo(n),r=$o(n),i=/auto|scroll/,a=t||i.test(r.overflowX),o=t||i.test(r.overflowY),s=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=o&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,l=r.direction===`rtl`,u=c&&(l?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),d=s&&e.offsetY>n.clientHeight;if(u||d)return}if(!h(e)){if(c()===`intentional`&&w.current){t.clear(),w.current=!1;return}typeof g==`function`&&!g(e)||j(`__outsidePressBubbles`)||(u.setOpen(!1,Fs(us,e)),A())}}}function k(e){c()!==`sloppy`||e.pointerType===`touch`||!u.select(`open`)||!n||M(e)||_(e)}function N(e){if(c()!==`sloppy`||!u.select(`open`)||!n||M(e))return;let t=e.touches[0];t&&(D.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},O.start(1e3,()=>{D.current&&(D.current.dismissOnTouchEnd=!1,D.current.dismissOnMouseDown=!1)}))}function F(e,t){let n=Bl(e);if(!n)return;let r=wf(n,e.type,()=>{t(e),r()})}function I(e){E.current=`touch`,F(e,N)}function L(e){O.clear(),e.type===`pointerdown`&&(E.current=e.pointerType),!(e.type===`mousedown`&&D.current&&!D.current.dismissOnMouseDown)&&F(e,e=>{e.type===`pointerdown`?k(e):_(e)})}function R(e){if(!S.current)return;let n=C.current;if(s(),c()===`intentional`){if(e.type===`pointercancel`){n&&o();return}if(!h(e)){if(n){o();return}typeof g==`function`&&!g(e)||(t.clear(),w.current=!0,A())}}}function z(e){if(c()!==`sloppy`||!D.current||M(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-D.current.startX),r=Math.abs(t.clientY-D.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(D.current.dismissOnTouchEnd=!0),i>10&&(_(e),O.clear(),D.current=null)}function B(e){F(e,z)}function V(e){c()!==`sloppy`||!D.current||M(e)||(D.current.dismissOnTouchEnd&&_(e),O.clear(),D.current=null)}function H(e){F(e,V)}let U=as(f),ee=Cf(r&&Cf(wf(U,`keydown`,P),wf(U,`compositionstart`,i),wf(U,`compositionend`,a)),v&&Cf(wf(U,`click`,L,!0),wf(U,`pointerdown`,L,!0),wf(U,`pointerup`,R,!0),wf(U,`pointercancel`,R,!0),wf(U,`mousedown`,L,!0),wf(U,`mouseup`,R,!0),wf(U,`touchstart`,I,!0),wf(U,`touchmove`,B,!0),wf(U,`touchend`,H,!0)));return()=>{ee(),e.clear(),t.clear(),s(),w.current=!1}},[p,f,r,v,g,d,n,b,x,P,A,y,j,M,m,u,O]),_.useEffect(A,[g,A]);let R=_.useMemo(()=>({onKeyDown:P,[Fp[s]]:N,...s!==`intentional`&&{onClick:N}}),[P,N,s]),z=_.useMemo(()=>({onKeyDown:P,onPointerDown:L,onMouseDown:L,onClickCapture:F,onMouseDownCapture(e){F(),I(e)},onPointerDownCapture(e){F(),I(e)},onMouseUpCapture:F,onTouchEndCapture:F,onTouchMoveCapture:F}),[P,F,I,L]);return _.useMemo(()=>n?{reference:R,floating:z,trigger:R}:{},[n,R,z])}function zp(e,t,n){let{reference:r,floating:i}=e,a=gu(t),o=_u(t),s=hu(o),c=fu(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(pu(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}
vendor: 4,108 bytes, line 9
9async function Bp(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=du(t,e),p=ku(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Au(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Au(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Vp=50,Hp=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Bp},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=zp(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Vp&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=zp(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Up=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=du(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=fu(r),_=gu(o),v=fu(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Du(o)]:yu(o)),x=p!==`none`;!d&&x&&b.push(...Eu(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=vu(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==gu(t))||T.every(e=>gu(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=gu(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Wp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Gp(e){return ru.some(t=>e[t]>=0)}var Kp=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=du(e,t);switch(i){case`referenceHidden`:{let e=Wp(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Gp(e)}}}case`escaped`:{let e=Wp(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Gp(e)}}}default:return{}}}}},qp=new Set([`left`,`top`]);async function Jp(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=fu(n),s=pu(n),c=gu(n)===`y`,l=qp.has(o)?-1:1,u=a&&c?-1:1,d=du(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}
vendor: 4,197 bytes, line 9
9:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Yp=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Jp(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Xp=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=du(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=gu(fu(i)),p=mu(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=uu(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=uu(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Zp=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=du(e,t),u={x:n,y:r},d=gu(i),f=mu(d),p=u[f],m=u[d],h=du(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=qp.has(fu(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Qp=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=du(e,t),u=await o.detectOverflow(t,l),d=fu(i),f=pu(i),p=gu(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=iu(h-u[g],v),x=iu(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=au(u.left,0),t=au(u.right,0),n=au(u.top,0),r=au(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:au(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:au(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function $p(e){let t=$o(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Bo(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=ou(n)!==a||ou(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function em(e){return zo(e)?e:e.contextElement}function tm(e){let t=em(e);if(!Bo(t))return cu(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=$p(t),o=(a?ou(n.width):n.width)/r,s=(a?ou(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var nm=cu(0);function rm(e){let t=Io(e);return!Zo()||!t.visualViewport?nm:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function im(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Io(e)?!1:t}function am(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=em(e),o=cu(1);t&&(r?zo(r)&&(o=tm(r)):o=tm(e));let s=im(a,n,r)?rm(a):cu(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Io(a),t=r&&zo(r)?Io(r):r,n=e,i=is(n);for(;i&&r&&t!==n;){let e=tm(i),t=i.getBoundingClientRect(),r=$o(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Io(i),i=is(n)}}return Au({width:u,height:d,x:c,y:l})}function om(e,t){let n=es(e).scrollLeft;return t?t.left+n:am(Lo(e)).left+n}function sm(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-om(e,n),y:n.top+t.scrollTop}}function cm(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Lo(r),s=t?Wo(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=cu(1),u=cu(0),d=Bo(r);
vendor: 4,430 bytes, line 9
9if((d||!d&&!a)&&((Fo(r)!==`body`||Ho(o))&&(c=es(r)),d)){let e=am(r);l=tm(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?sm(o,c):cu(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function lm(e){return Array.from(e.getClientRects())}function um(e){let t=Lo(e),n=es(e),r=e.ownerDocument.body,i=au(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=au(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+om(e),s=-n.scrollTop;return $o(r).direction===`rtl`&&(o+=au(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var dm=25;function fm(e,t){let n=Io(e),r=Lo(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Zo();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=om(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=dm&&(a-=o)}else l<=dm&&(a+=l);return{width:a,height:o,x:s,y:c}}function pm(e,t){let n=am(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Bo(e)?tm(e):cu(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function mm(e,t,n){let r;if(t===`viewport`)r=fm(e,n);else if(t===`document`)r=um(Lo(e));else if(zo(t))r=pm(t,n);else{let n=rm(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Au(r)}function hm(e,t){let n=ts(e);return n===t||!zo(n)||Qo(n)?!1:$o(n).position===`fixed`||hm(n,t)}function gm(e,t){let n=t.get(e);if(n)return n;let r=rs(e,[],!1).filter(e=>zo(e)&&Fo(e)!==`body`),i=null,a=$o(e).position===`fixed`,o=a?ts(e):e;for(;zo(o)&&!Qo(o);){let t=$o(o),n=Yo(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Ho(o)&&!n&&hm(e,o))?r=r.filter(e=>e!==o):i=t,o=ts(o)}return t.set(e,r),r}function _m(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Wo(t)?[]:gm(t,this._c):[].concat(n),r],o=mm(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=mm(t,a[e],i);s=au(n.top,s),c=iu(n.right,c),l=iu(n.bottom,l),u=au(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function vm(e){let{width:t,height:n}=$p(e);return{width:t,height:n}}function ym(e,t,n){let r=Bo(t),i=Lo(t),a=n===`fixed`,o=am(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=cu(0);function l(){c.x=om(i)}if(r||!r&&!a)if((Fo(t)!==`body`||Ho(i))&&(s=es(t)),r){let e=am(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?sm(i,s):cu(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function bm(e){return $o(e).position===`static`}function xm(e,t){if(!Bo(e)||$o(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Lo(e)===n&&(n=n.ownerDocument.body),n}function Sm(e,t){let n=Io(e);if(Wo(e))return n;if(!Bo(e)){let t=ts(e);for(;t&&!Qo(t);){if(zo(t)&&!bm(t))return t;t=ts(t)}return n}let r=xm(e,t);for(;r&&Uo(r)&&bm(r);)r=xm(r,t);return r&&Qo(r)&&bm(r)&&!Yo(r)?n:r||Xo(e)||n}var Cm=async function(e){let t=this.getOffsetParent||Sm,n=this.getDimensions,r=await n(e.floating);return{reference:ym(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function wm(e){return $o(e).direction===`rtl`}var Tm={convertOffsetParentRelativeRectToViewportRelativeRect:cm,getDocumentElement:Lo,getClippingRect:_m,getOffsetParent:Sm,getElementRects:Cm,getClientRects:lm,getDimensions:vm,getScale:tm,isElement:zo,isRTL:wm};function Em(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Dm(e,t){let n=null,r,i=Lo(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=su(d),h=su(i.clientWidth-(u+f)),g=su(i.clientHeight-(d+p)),_=su(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:au(0,iu(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Em(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}
vendor: 3,775 bytes, line 9
9function Om(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=em(e),u=i||a?[...l?rs(l):[],...t?rs(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Dm(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?am(e):null;c&&g();function g(){let t=am(e);h&&!Em(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var km=Yp,Am=Xp,jm=Up,Mm=Qp,Nm=Kp,Pm=Zp,Fm=(e,t,n)=>{let r=new Map,i={platform:Tm,...n},a={...i.platform,_c:r};return Hp(e,t,{...i,platform:a})},Im=typeof document<`u`?_.useLayoutEffect:function(){};function Lm(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,i;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(!Lm(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Lm(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Rm(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zm(e,t){let n=Rm(e);return Math.round(t*n)/n}function Bm(e){let t=_.useRef(e);return Im(()=>{t.current=e}),t}function Vm(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=_.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=_.useState(r);Lm(f,r)||p(r);let[m,h]=_.useState(null),[g,v]=_.useState(null),y=_.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),b=_.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||m,S=o||g,C=_.useRef(null),w=_.useRef(null),T=_.useRef(u),E=c!=null,D=Bm(c),O=Bm(i),k=Bm(l),A=_.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),Fm(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!Lm(T.current,t)&&(T.current=t,fl.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);Im(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=_.useRef(!1);Im(()=>(j.current=!0,()=>{j.current=!1}),[]),Im(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=_.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=_.useMemo(()=>({reference:x,floating:S}),[x,S]),P=_.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=zm(N.floating,u.x),r=zm(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Rm(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return _.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var Hm=(e,t)=>{let n=km(e);return{name:n.name,fn:n.fn,options:[e,t]}},Um=(e,t)=>{let n=Am(e);return{name:n.name,fn:n.fn,options:[e,t]}},Wm=(e,t)=>({fn:Pm(e).fn,options:[e,t]}),Gm=(e,t)=>{let n=jm(e);return{name:n.name,fn:n.fn,options:[e,t]}},Km=(e,t)=>{let n=Mm(e);return{name:n.name,fn:n.fn,options:[e,t]}},qm=(e,t)=>
9{let n=Nm(e);return{name:n.name,fn:n.fn,options:[e,t]}};function Jm(e,t,n,r){return{left:e,top:t,right:n,bottom:r,x:e,y:t,width:n-e,height:r-t}}function Ym(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}}function Xm(e){let t=[],n,r=1/0,i=1/0,a=-1/0,o=-1/0;for(let s of Array.from(e).sort((e,t)=>e.top-t.top)){if(r=Math.min(r,s.left),i=Math.min(i,s.top),a=Math.max(a,s.right),o=Math.max(o,s.bottom),!n||s.top-n.top>n.height/2)t.push(Ym(s));else{let e=t[t.length-1];e.left=Math.min(e.left,s.left),e.right=Math.max(e.right,s.right),e.bottom=Math.max(e.bottom,s.bottom),e.width=e.right-e.left,e.height=e.bottom-e.top}n=s}return{lines:t,fallback:Jm(r,i,a,o)}}function Zm(e,t,n){return e.findIndex(e=>t>e.left-2&&t<e.right+2&&n>e.top-2&&n<e.bottom+2)}function Qm(e){return Jm(e.left,e.top,e.right,e.bottom)}function $m(e,t,n){let{lines:r}=Xm(e.getClientRects());if(r.length<2)return;let i=Zm(r,t,n);return{x:t,y:n,lineIndex:i===-1?void 0:i,element:e}}function eh(e,t,n){let{lines:r,fallback:i}=Xm(e.getClientRects());if(r.length<2)return null;let a=n?.x,o=n?.y,s=t[0];if(n?.lineIndex!=null&&r[n.lineIndex])return Qm(r[n.lineIndex]);if(a!=null&&o!=null){let e=Zm(r,a,o);if(e!==-1)return Qm(r[e])}if(r.length===2&&r[0].left>r[1].right&&a!=null&&o!=null)return i;if(s===`t`||s===`b`){let e=r[0],t=r[r.length-1],n=s===`t`?e:t;return Jm(n.left,e.top,n.right,t.bottom)}let c=s===`l`,l=r[0].left,u=r[0].right,d=c?1/0:-1/0,f=r[0],p=r[0];for(let e of r){l=Math.min(l,e.left),u=Math.max(u,e.right);let t=c?e.left:e.right;c&&t<d||!c&&t>d?(d=t,f=e,p=e):t===d&&(p=e)}return Jm(l,f.top,u,p.bottom)}function th(e){return`contextElement`in e&&e.contextElement?e.contextElement:zo(e)?e:void 0}function nh(e,t){function n(t){rh(e,t.currentTarget,t.clientX,t.clientY)}function r(e){t||n(e)}return{onFocus(){e.current=void 0},onMouseEnter:n,onMouseMove:r}}function rh(e,t,n,r){let i=$m(t,n,r);return e.current=i,i}function ih(e){return{name:`inline`,async fn(t){let n=t.elements.reference;if(typeof n?.getClientRects!=`function`)return{};let r=th(n),i=e.current,a=i?.element===n||i?.element===r?i:void 0,o=eh(n,t.placement,a);if(!o||typeof t.platform.getElementRects!=`function`)return{};let s=await t.platform.getElementRects({reference:{contextElement:r,getBoundingClientRect(){return o}},floating:t.elements.floating,strategy:t.strategy});return t.rects.reference.x===s.reference.x&&t.rects.reference.y===s.reference.y&&t.rects.reference.width===s.reference.width&&t.rects.reference.height===s.reference.height?{}:{reset:{rects:s}}}}}var ah={open:Q(e=>e.open),transitionStatus:Q(e=>e.transitionStatus),domReferenceElement:Q(e=>e.domReferenceElement),referenceElement:Q(e=>e.positionReference??e.referenceElement),floatingElement:Q(e=>e.floatingElement),floatingId:Q(e=>e.floatingId)},oh=class extends Sf{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:pp(),nested:n,triggerElements:i},ah),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&nu(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>
9{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function sh(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=t.context.triggerElements,d=o,f=_.useRef(null);r===void 0&&f.current===null&&(f.current=new oh({open:s,transitionStatus:void 0,referenceElement:c,floatingElement:l,triggerElements:u,onOpenChange:d,floatingId:i,syncOnly:!0,nested:a}));let p=r??f.current;return t.useSyncedValue(`floatingId`,i),J(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};zo(c)&&(e.domReferenceElement=c),p.state.positionReference===p.state.referenceElement&&(e.positionReference=c),p.update(e)},[s,i,c,l,p]),p.context.onOpenChange=d,p.context.nested=a,p}var ch={tabIndex:-1,[Ml]:``};function lh(e,t,n=!1){let r=Zs(),i=_p()!=null,a=_.useRef(null);e===void 0&&a.current===null&&(a.current=t(r,i));let o=e??a.current;return sh({popupStore:o,treatPopupAsFloatingElement:n,floatingRootContext:o.state.floatingRootContext,floatingId:r,nested:i,onOpenChange:o.setOpen}),{store:o,internalStore:a.current}}function uh(e,t){let n=_.useRef(null),r=_.useRef(null);return _.useCallback(i=>{if(e===void 0)return;let a=!1;if(n.current!==null){let e=n.current,i=r.current,o=t.context.triggerElements.getById(e);i&&o===i&&(t.context.triggerElements.delete(e),a=!0),n.current=null,r.current=null}if(i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i),a=!0),a){let e=t.context.triggerElements.size;t.select(`open`)&&t.state.triggerCount!==e&&t.set(`triggerCount`,e)}},[t,e])}function dh(e,t,n){let r=n?.id??null;(r||t)&&(e.activeTriggerId=r,e.activeTriggerElement=n??null)}function fh(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=uh(e,n),o=Y(t=>{if(a(t),!t)return;let i=n.select(`open`),o=n.select(`activeTriggerId`);if(o===e){n.update({activeTriggerElement:t,...i?r:null});return}o==null&&i&&n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return J(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function ph(e){let t=e.useState(`open`);J(()=>{if(!t){e.state.triggerCount!==0&&e.set(`triggerCount`,0);return}let n=e.context.triggerElements.size,r={};if(e.state.triggerCount!==n&&(r.triggerCount=n),!e.select(`activeTriggerId`)&&n===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;r.activeTriggerId=e,r.activeTriggerElement=n}}(r.triggerCount!==void 0||r.activeTriggerId!==void 0)&&e.update(r)},[t,e,e.useState(`triggerCount`)])}function mh(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=hl(e);t.useSyncedValues({mounted:r,transitionStatus:a});let o=Y(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),s=t.useState(`preventUnmountingOnClose`);return ml({enabled:r&&!e&&!s,open:e,ref:t.context.popupRef,onComplete(){e||o()}}),{forceUnmount:o,transitionStatus:a}}function hh(e,t){e.useSyncedValues(t),J(()=>()=>{e.update({activeTriggerProps:No,inactiveTriggerProps:No,popupProps:No})},[e])}function gh(e,t){J(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),J(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var _h=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function vh(){return new oh({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new _h,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function yh(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:vh(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:No,inactiveTriggerProps:No,popupProps:No}}function bh(e,t,n=!1){return new oh({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}
9var xh=Q(e=>e.triggerIdProp??e.activeTriggerId),Sh=Q(e=>e.openProp??e.open),Ch=Q(e=>(e.popupElement?.id??e.floatingId)||void 0);function wh(e,t){return t!==void 0&&Sh(e)&&xh(e)===t}function Th(e,t){return wh(e,t)?!0:t!==void 0&&Sh(e)&&xh(e)==null&&e.triggerCount===1}var Eh={open:Sh,mounted:Q(e=>e.mounted),transitionStatus:Q(e=>e.transitionStatus),floatingRootContext:Q(e=>e.floatingRootContext),triggerCount:Q(e=>e.triggerCount),preventUnmountingOnClose:Q(e=>e.preventUnmountingOnClose),payload:Q(e=>e.payload),activeTriggerId:xh,activeTriggerElement:Q(e=>e.mounted?e.activeTriggerElement:null),popupId:Ch,isTriggerActive:Q((e,t)=>t!==void 0&&xh(e)===t),isOpenedByTrigger:Q((e,t)=>wh(e,t)),isMountedByTrigger:Q((e,t)=>t!==void 0&&xh(e)===t&&e.mounted),triggerProps:Q((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:Q((e,t)=>Th(e,t)?Ch(e):void 0),popupProps:Q(e=>e.popupProps),popupElement:Q(e=>e.popupElement),positionerElement:Q(e=>e.positionerElement)};function Dh(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Zs(),a=_p()!=null,o=go(()=>new oh({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new _h,floatingId:i,syncOnly:!1,nested:a})).current;return J(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=zo(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function Oh(e={}){let{nodeId:t,externalTree:n}=e,r=Dh(e),i=e.rootContext||r,a=i.useState(`referenceElement`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.useState(`open`),l=i.useState(`floatingId`),[u,d]=_.useState(null),[f,p]=_.useState(void 0),[m,h]=_.useState(void 0),g=_.useRef(null),v=vp(n),y=_.useMemo(()=>({reference:a,floating:o,domReference:s}),[a,o,s]),b=Vm({...e,elements:{...y,...u&&{reference:u}}}),x=zo(f)?f:null,S=m===void 0?i.state.floatingElement:m;i.useSyncedValue(`referenceElement`,f??null),i.useSyncedValue(`domReferenceElement`,f===void 0?s:x),i.useSyncedValue(`floatingElement`,S);let C=_.useCallback(e=>{let t=zo(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),b.refs.setReference(t)},[b.refs]),w=_.useCallback(e=>{(zo(e)||e===null)&&(g.current=e,p(e)),(zo(b.refs.reference.current)||b.refs.reference.current===null||e!==null&&!zo(e))&&b.refs.setReference(e)},[b.refs,p]),T=_.useCallback(e=>{h(e),b.refs.setFloating(e)},[b.refs]),E=_.useMemo(()=>({...b.refs,setReference:w,setFloating:T,setPositionReference:C,domReference:g}),[b.refs,w,T,C]),D=_.useMemo(()=>({...b.elements,domReference:s}),[b.elements,s]),O=_.useMemo(()=>({...b,dataRef:i.context.dataRef,open:c,onOpenChange:i.setOpen,events:i.context.events,floatingId:l,refs:E,elements:D,nodeId:t,rootStore:i}),[b,E,D,t,i,c,l]);return J(()=>{s&&(g.current=s)},[s]),J(()=>{i.context.dataRef.current.floatingContext=O;let e=v?.nodesRef.current.find(e=>e.id===t);e&&(e.context=O)}),_.useMemo(()=>({...b,context:O,refs:E,elements:D,rootStore:i}),[b,E,D,O,i])}var kh=Dl&&Tl;function Ah(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,s=_.useRef(!1),c=_.useRef(null),l=_.useRef(!0),u=Of();_.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=Io(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&Bo(e)&&e===Rl(as(e))&&(s.current=!0)}function a(){l.current=!0}function o(){l.current=!1}return Cf(wf(t,`blur`,r),kh&&wf(t,`keydown`,a,!0),kh&&wf(t,`pointerdown`,o,!0))},[i,n]),_.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);zo(e)&&(c.current=e,s.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let d=_.useMemo(()=>{function e(){s.current=!1,c.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(s.current){if(c.current===n)return;e()}let a=Bl(t.nativeEvent);if(zo(a)){if(kh&&!t.relatedTarget){if(!l.current&&!Wl(a))return}else if(!ql(a))return}let o=Vl(t.relatedTarget,i.context.triggerElements),{nativeEvent:d,currentTarget:f}=t,p=typeof r==`function`?r():r;if(i.select(`open`)&&o||p===0||p===void 0){i.setOpen(!0,Fs(ls,d,f));return}u.start(p,()=>{s.current||i.setOpen(!0,Fs(ls,d,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=zo(n)&&n.hasAttribute(Rf(`focu
9s-guard`))&&n.getAttribute(`data-type`)===`outside`;u.start(0,()=>{let e=i.select(`domReferenceElement`),t=Rl(as(e));!n&&t===e||zl(o.current.floatingContext?.refs.floating.current,t)||zl(e,t)||a||Vl(n??t,i.context.triggerElements)||i.setOpen(!1,Fs(ls,r))})}}},[o,r,i,u]);return _.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var jh=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new Df,this.restTimeout=new Df,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Mh=new WeakMap;function Nh(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Mh.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Mh.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Ph(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Mh.get(n);a&&a!==e&&Nh(a),Nh(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Mh.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function Fh(e){let t=e.context.dataRef.current,n=go(()=>t.hoverInteractionState??jh.create()).current;return t.hoverInteractionState||=n,ol(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function Ih(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),{dataRef:l}=a.context,u=vp(),d=_p(),f=Fh(a),p=Of(),m=Y(()=>Mf(l.current.openEvent?.type,f.interactedInside)),h=Y(()=>Nf(l.current.openEvent?.type)),g=Y(()=>{Nh(f)});J(()=>{o||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,g())},[o,f,g]),_.useEffect(()=>g,[g]),J(()=>{if(n&&o&&f.handleCloseOptions?.blockPointerEvents&&h()&&zo(c)&&s){let e=c,t=s,n=as(s),r=u?.nodesRef.current.find(e=>e.id===d)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=f.pointerEventsScopeElement===t?null:f.pointerEventsScopeElement,a=r===t?null:r;return Ph(f,{scopeElement:f.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body,referenceElement:e,floatingElement:t}),()=>{g()}}},[n,o,c,s,f,h,u,d,g]),_.useEffect(()=>{if(!n)return;function e(){return!!(u&&d&&Yl(u.nodesRef.current,d).length>0)}function t(e){let t=Af(r,`close`,f.pointerType),n=()=>{a.setOpen(!1,Fs(cs,e)),u?.events.emit(`floating.closed`,e)};t?f.openChangeTimeout.start(t,n):(f.openChangeTimeout.clear(),n())}function o(e){let t=Bl(e);if(!Gl(t)){f.interactedInside=!1;return}f.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function c(){f.openChangeTimeout.clear(),p.clear(),u?.events.off(`floating.closed`,_),g()}function h(n){if(e()&&u){u.events.on(`floating.closed`,_);return}if(Vl(n.relatedTarget,a.context.triggerElements))return;let r=l.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(u&&r&&zo(o)&&Yl(u.nodesRef.current,r,!1).some(e=>zl(e.context?.elements.floating,o)))){if(f.handler){f.handler(n);return}g(),m()||t(n)}}function _(t){!u||!d||e()||p.start(0,()=>{u.events.off(`floating.closed`,_),a.setOpen(!1,Fs(cs,t)),u.events.emit(`floating.closed`,t)})}let v=s;return Cf(v&&wf(v,`mouseenter`,c),v&&wf(v,`mouseleave`,h),v&&wf(v,`pointerdown`,o,!0),()=>{u?.events.off(`floating.closed`,_)})},[n,s,a,l,r,i,m,g,f,u,d,p])}var Lh={current:null};function Rh(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=Lh,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p}=t,m=`rootStore`in e?e.rootStore:e,{dataRef:h,events:g}=m.context,v=vp(l),y=Fh(m),b=_.useRef(!1),x=tf(i),S=tf(r),C=tf(o),w=tf(n),T=tf(p),E=tf(f),D=Y(()=>Mf(h.current.openEvent?.type,y.interactedInside)),O=Y(()=>
9T.current?.()!==!1),k=Y((e,t,n)=>{let r=m.context.triggerElements;if(r.hasElement(t))return!e||!zl(e,t);if(!zo(n))return!1;let i=n;return r.hasMatchingElement(e=>zl(e,i))&&(!e||!zl(e,i))}),A=Y(()=>{y.handler&&=(as(m.select(`domReferenceElement`)).removeEventListener(`mousemove`,y.handler),void 0)}),j=Y(()=>{Nh(y)});return u&&(y.handleCloseOptions=x.current?.__options),_.useEffect(()=>A,[A]),_.useEffect(()=>{if(!n)return;function e(e){e.open?b.current=!1:(b.current=e.reason===cs,A(),y.openChangeTimeout.clear(),y.restTimeout.clear(),y.blockMouseMove=!0,y.restTimeoutPending=!1)}return g.on(`openchange`,e),()=>{g.off(`openchange`,e)}},[n,g,y,A]),_.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=Af(S.current,`close`,y.pointerType);n?y.openChangeTimeout.start(n,()=>{m.setOpen(!1,Fs(cs,e)),v?.events.emit(`floating.closed`,e)}):t&&(y.openChangeTimeout.clear(),m.setOpen(!1,Fs(cs,e)),v?.events.emit(`floating.closed`,e))}let t=c.current??(u?m.select(`domReferenceElement`):null);if(!zo(t))return;function r(e){if(y.openChangeTimeout.clear(),y.blockMouseMove=!1,a&&!tu(y.pointerType))return;let t=jf(C.current),n=Af(S.current,`open`,y.pointerType),r=Bl(e),i=e.currentTarget??null,o=m.select(`domReferenceElement`),s=i;if(zo(r)&&!m.context.triggerElements.hasElement(r)){for(let e of m.context.triggerElements.elements())if(zl(e,r)){s=e;break}}zo(i)&&zo(o)&&!m.context.triggerElements.hasElement(i)&&zl(i,o)&&(s=o);let c=s==null?!1:k(o,s,r),l=m.select(`open`),u=E.current?.()??m.select(`transitionStatus`)===`ending`,d=!l&&u&&b.current,f=!c&&zo(s)&&zo(o)&&zl(o,s)&&d,p=t>0&&!n,h=c&&(l||d)||f,g=!l||c;if(h){O()&&m.setOpen(!0,Fs(cs,e,s));return}p||(n?y.openChangeTimeout.start(n,()=>{g&&O()&&m.setOpen(!0,Fs(cs,e,s))}):g&&O()&&m.setOpen(!0,Fs(cs,e,s)))}function i(t){if(D()){j();return}A();let n=as(m.select(`domReferenceElement`));y.restTimeout.clear(),y.restTimeoutPending=!1;let r=h.current.floatingContext??d?.();if(!Vl(t.relatedTarget,m.context.triggerElements)){if(x.current&&r){m.select(`open`)||y.openChangeTimeout.clear();let i=c.current;y.handler=x.current({...r,tree:v,x:t.clientX,y:t.clientY,onClose(){j(),A(),w.current&&!D()&&i===m.select(`domReferenceElement`)&&e(t,!0)}}),n.addEventListener(`mousemove`,y.handler),y.handler(t);return}(y.pointerType!==`touch`||!zl(m.select(`floatingElement`),t.relatedTarget))&&e(t)}}return s?Cf(wf(t,`mousemove`,r,{once:!0}),wf(t,`mouseenter`,r),wf(t,`mouseleave`,i)):Cf(wf(t,`mouseenter`,r),wf(t,`mouseleave`,i))},[A,j,h,S,m,n,x,y,u,k,D,a,s,C,c,v,w,d,E,O]),_.useMemo(()=>{if(!n)return;function e(e){y.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=m.select(`domReferenceElement`),i=m.select(`open`),o=k(r,n,e.target);if(a&&!tu(y.pointerType))return;if(i&&o&&y.handleCloseOptions?.blockPointerEvents){let e=m.select(`floatingElement`);e&&Ph(y,{scopeElement:y.handleCloseOptions?.getScope?.()??n.ownerDocument.body,referenceElement:n,floatingElement:e})}let s=jf(C.current);if(i&&!o||s===0||!o&&y.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;y.restTimeout.clear();function c(){if(y.restTimeoutPending=!1,D())return;let e=m.select(`open`);!y.blockMouseMove&&(!e||o)&&O()&&m.setOpen(!0,Fs(cs,t,n))}y.pointerType===`touch`?fl.flushSync(()=>{c()}):o&&i?c():(y.restTimeoutPending=!0,y.restTimeout.start(s,c))}}},[n,y,D,k,a,m,C,O])}var zh=`Escape`;function Bh(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function Vh(e,t){return Bh(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function Hh(e,t,n){return Bh(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function Uh(e,t,n){return Bh(t,n?e===Pl:e===Fl,e===Ll)}function Wh(e,t,n,r){return t===`both`||t===`horizontal`&&r&&r>1?e===zh:Bh(t,n?e===Fl:e===Pl,e===Il)}function Gh(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:o=null,allowEscape:s=!1,loopFocus:c=!1,nested:l=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:f=`auto`,focusItemOnHover:p=!0,openOnArrowKeyDown:m=!0,disabledIndices:h=void 0,orientation:g=`vertical`,parentOrientation:v,cols:y=1,id:b,resetOnPointerLeave:x=!0,externalTree:S}=t,C=`rootStore`in e?e.rootStore:e,w=C.useState(`open`),T=C.useState(`floatingElement`),E=C.useState(`domReferenceElement`),D=C.context.dataRef,O=Jl(T),k=Kl(E),A=tf(O),j=_p(),M=vp(S),N=_.useRef(f),P=_.useRef(o??-1),F=_.useRef(null),I=_.useRef(!0),L=Y(e=>{i(P.current===-1?null:P.current,e)}),R=_.useRef(L),z=_.useRef(!!T),B=_.useRef(w),V=_.useRef(!1),H=_.useRef(!1),U=_.useRef(null),ee=tf(h),W=tf(w),te=tf(o),ne=tf(x),re=ul(),ie=ul(),ae=Y(()=>{function e(e){d?M?.events.emit(`virtualfocus`,e):U.current=Bf(e,{sync:V.current,preventScroll:!0})}let t=n.current[P.current],r=H.current;t&&e(t),(V.current?e=>e():e=>re.request(e))(()=>{let i=n.current[P.current]||t;i&&(t||e(i),le&&(r||!I.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});J(()=>{D.current.orientation=g},[D,g]),J(()=>{a&&(w&&T?(P.current=o??-1,N.current&&o!=null&&(H.current=!0,L())):z.current&&(P.current=-1,R.current()))},[a,w,T,o,L]),J(()=>{if(a){if(!w){V.current=!1;return}if(T)if(r==null){if(V.current=!1,te.current!=null)return;if(z.current&&(P.current=-1,ae()),(!B.current||!z.current)&&N.current&&(F.current!=null||N.current===!0&&F.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>ie.request(e):queueMicrotask)(t),e+=1):(P.current=F.current==null||Hh(F.current,g,u)||l?Nu(n):Pu(n),F.current=null,L())};t()}}else Mu(n.current,r)||(P.current=r,ae(),H.current=!1)}},[a,w,T,r,te,l,n,g,u,L,ae,ie]),J(()=>{if(!a||T||!M||d||!z.current)return;let e=M.nodesRef.current,t=e.find(e=>e.id===j)?.context?.elements.floating,n=Rl(as(T)),r=e.some(e=>e.context&&zl(e.context.elements.floating,n));t&&!r&&I.current&&t.focus({preventScroll:!0})},[a,T,M,j,d]),J(()=>{R.current=L,B.current=w,z.current=!!T}),J(()=>{w||(F.current=null,N.current=f)},[w,f]);let G=r!=null,oe=Y(e=>{if(!W.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(P.current!==t||r!==t)&&(P.current=t,L(e))}),K=Y(()=>v??M?.nodesRef.current.find(e=>e.id===j)?.context?.dataRef?.current.orientation),se=Y(()=>Nu(n,ee.current)),ce=Y(e=>{if(I.current=!1,V.current=!0,e.which===229||!W.current&&e.currentTarget===A.current)return;if(l&&Wh(e.key,g,u,y)){Vh(e.key,K())||Zl(e),C.setOpen(!1,Fs(Ts,e.nativeEvent)),Bo(E)&&(d?M?.events.emit(`virtualfocus`,E):E.focus());return}let t=P.current,r=Nu(n,h),i=Pu(n,h);if(k||(e.key===`Home`&&(Zl(e),P.current=r,L(e)),e.key===`End`&&(Zl(e),P.current=i,L(e))),y>1){let t=Array.from({length:n.current.length},()=>({width:1,height:1})),a=Lu(t,y,!1),o=a.findIndex(e=>e!=null&&!Bu(n.current,e,h)),s=a.reduce((e,t,r)=>t!=null&&!Bu(n.current,t,h)?r:e,-1),l=a[Iu(a.map(e=>e==null?null:n.current[e]),{event:e,orientation:g,loopFocus:c,rtl:u,cols:y,disabledIndices:zu([...(typeof h==`function`?null:h)||n.current.map((e,t)=>Bu(n.current,t,h)?t:void 0),void 0],a),minIndex:o,maxIndex:s,prevIndex:Ru(P.current>i?r:P.current,t,a,y,e.key===`ArrowDown`?`bl`:e.key===(u?`ArrowLeft`:`ArrowRight`)?`tr`:`tl`),stopEvent:!0})];if(l!=null&&(P.current=l,L(e)),g===`both`)return}
9if(Vh(e.key,g)){if(Zl(e),w&&!d&&Rl(e.currentTarget.ownerDocument)===e.currentTarget){P.current=Hh(e.key,g,u)?r:i,L(e);return}Hh(e.key,g,u)?c?t>=i?s&&t!==n.current.length?P.current=-1:(V.current=!1,P.current=r):P.current=Fu(n.current,{startingIndex:t,disabledIndices:h}):P.current=Math.min(i,Fu(n.current,{startingIndex:t,disabledIndices:h})):c?t<=r?s&&t!==-1?P.current=n.current.length:(V.current=!1,P.current=i):P.current=Fu(n.current,{startingIndex:t,decrement:!0,disabledIndices:h}):P.current=Math.max(r,Fu(n.current,{startingIndex:t,decrement:!0,disabledIndices:h})),Mu(n.current,P.current)&&(P.current=-1),L(e)}}),le=_.useMemo(()=>({onFocus(e){V.current=!0,oe(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){V.current=!0,H.current=!1,p&&oe(e)},onPointerLeave(e){if(!W.current||!I.current||e.pointerType===`touch`)return;V.current=!0;let t=e.relatedTarget;if(!(!p||n.current.includes(t))&&ne.current&&(U.current?.(),U.current=null,P.current=-1,L(e),!d)){let e=A.current,t=Rl(as(e));e&&zl(e,t)&&e.focus({preventScroll:!0})}}}),[oe,W,A,p,n,L,ne,d]),ue=_.useMemo(()=>d&&w&&G&&{"aria-activedescendant":`${b}-${r}`},[d,w,G,b,r]),de=_.useMemo(()=>({"aria-orientation":g===`both`?void 0:g,...k?{}:ue,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&w&&!d){let t=Bl(e.nativeEvent);if(t&&!zl(A.current,t))return;Zl(e),C.setOpen(!1,Fs(Ss,e.nativeEvent)),Bo(E)&&E.focus();return}ce(e)},onPointerMove(){I.current=!0}}),[ue,ce,A,g,k,C,w,d,E]),fe=_.useMemo(()=>{function e(e){C.setOpen(!0,Fs(Ts,e.nativeEvent,e.currentTarget))}function t(e){f===`auto`&&$l(e.nativeEvent)&&(N.current=!d)}function n(e){N.current=f,f===`auto`&&eu(e.nativeEvent)&&(N.current=!0)}return{onKeyDown(t){let n=C.select(`open`);I.current=!1;let r=t.key.startsWith(`Arrow`),i=Uh(t.key,K(),u),a=Vh(t.key,g),o=(l?i:a)||t.key===`Enter`||t.key.trim()===``;if(d&&n)return ce(t);if(!(!n&&!m&&r)){if(o){let e=Vh(t.key,K());F.current=l&&e?null:t.key}if(l){i&&(Zl(t),n?(P.current=se(),L(t)):e(t));return}a&&(te.current!=null&&(P.current=te.current),Zl(t),!n&&m?e(t):ce(t),n&&L(t))}},onFocus(e){C.select(`open`)&&!d&&(P.current=-1,L(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[ce,f,se,l,L,C,m,g,K,u,te,d]),pe=_.useMemo(()=>({...ue,...fe}),[ue,fe]);return _.useMemo(()=>a?{reference:pe,floating:de,item:le,trigger:fe}:{},[a,pe,de,fe,le])}function Kh(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,onTyping:o,enabled:s=!0,resetMs:c=750,selectedIndex:l=null}=t,u=`rootStore`in e?e.rootStore:e,d=u.useState(`open`),f=Of(),p=_.useRef(``),m=_.useRef(l??i??-1),h=_.useRef(null),g=Y(e=>{function t(e){let t=r?.current[e];return!t||Hu(t)}function s(e,n,r=0){if(e.length===0)return-1;let i=(r%e.length+e.length)%e.length,a=n.toLocaleLowerCase();for(let n=0;n<e.length;n+=1){let r=(i+n)%e.length;if(!(!e[r]?.toLocaleLowerCase().startsWith(a)||!t(r)))return r}return-1}let u=n.current;if(p.current.length>0&&e.key===` `&&(Zl(e),o?.(!0)),p.current.length>0&&p.current[0]!==` `&&s(u,p.current)===-1&&e.key!==` `&&o?.(!1),u==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;d&&e.key!==` `&&(Zl(e),o?.(!0));let g=p.current===``;g&&(m.current=l??i??-1),u.every(e=>e?e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase():!0)&&p.current===e.key&&(p.current=``,m.current=h.current),p.current+=e.key,f.start(c,()=>{p.current=``,m.current=h.current,o?.(!1)});let _=((g?l??i??-1:m.current)??0)+1,v=s(u,p.current,_);v===-1?e.key!==` `&&(p.current=``,o?.(!1)):(a?.(v),h.current=v)}),v=Y(e=>{let t=e.relatedTarget,n=u.select(`domReferenceElement`),r=u.select(`floatingElement`);zl(n,t)||zl(r,t)||(f.clear(),p.current=``,m.current=h.current,o?.(!1))});J(()=>{!d&&l!==null||(f.clear(),h.current=null,p.current!==``&&(p.current=``))},[d,l,f]),J(()=>{d&&p.current===``&&(m.current=l??i??-1)},[d,l,i]);let y=_.useMemo(()=>({onKeyDown:g,onBlur:v}),[g,v]);return _.useMemo(()=>s?{reference:y,floating:y}:{},[s,y])}var qh=.1,Jh=qh*qh,Yh=.5;function Xh(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function Zh(e,t,n,r,i,a,o,s,c,l){let u=!1;return Xh(e,t,n,r,i,a)&&(u=!u),Xh(e,t,i,a,o,s)&&(u=!u),Xh(e,t,o,s,c,l)&&(u=!u),Xh(e,t,c,l,n,r)&&(u=!u),u}function Qh(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function $h(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function eg(e={}){let{blockPointerEvents:t=!1}=e,n=new Df,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*Jh;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=Bl(r),g=r.type===`mouseleave`,_=zl(u,h),v=zl(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&zo(r.relatedTarget)&&zl(u,r.relatedTarget))return;function y(){return!!(s&&Yl(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let j=!1;switch(c){case`top`:j=$h(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=$h(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=$h(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=$h(d,f,x.right-1,A,S.left+1,k);break;default:}if(j)return;if(l&&!Qh(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?Yh/2:Yh*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+Yh+1,o=C||T?S.bottom-Yh:S.top,s=C?T?S.bottom-Yh:S.top:S.bottom-Yh;M=Zh(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?Yh/2:Yh*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-Yh,o=C||T?S.top+Yh:S.bottom,s=C?T?S.top+Yh:S.bottom:S.top+Yh;M=Zh(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?Yh/2:Yh*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+Yh+1,o=w||E?S.right-Yh:S.left,s=w?E?S.right-Yh:S.left:S.right-Yh;M=Zh(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?Yh/2:Yh*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-Yh,o=w||E?S.left+Yh:S.right,s=w?E?S.left+Yh:S.right:S.left+Yh;M=Zh(d,f,a,r,a,i,o,S.top,s,S.bottom);break}default:}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var tg=_.createContext(null),ng=_.createContext(null);function rg(){let e=_.useContext(tg);if(e===null)throw Error(ec(60));return e}function ig(){let e=_.useContext(ng);if(e===null)throw Error(ec(61));return e}var ag=(e,t)=>
9Object.is(e,t);function og(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function sg(e,t,n){return!e||e.length===0?!1:e.some(e=>e===void 0?!1:og(t,e,n))}function cg(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e===void 0?!1:og(e,t,n))}function lg(e,t,n){return e.filter(e=>!og(t,e,n))}function ug(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function dg(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(ug(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function fg(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return el(e)}function pg(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?el(e.value):el(e)}function mg(e,t,n){function r(){return fg(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){let n=t,i=ug(n)?n.flatMap(e=>e.items):n;if(typeof e!=`object`||!e){let t=i.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=i.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function hg(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,Z.jsx)(_.Fragment,{children:mg(r,t,n)},i)),e),[])}var gg={id:Q(e=>e.id),labelId:Q(e=>e.labelId),modal:Q(e=>e.modal),multiple:Q(e=>e.multiple),items:Q(e=>e.items),itemToStringLabel:Q(e=>e.itemToStringLabel),itemToStringValue:Q(e=>e.itemToStringValue),isItemEqualToValue:Q(e=>e.isItemEqualToValue),value:Q(e=>e.value),hasSelectedValue:Q(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:pg(t,r)!==``}),hasNullItemLabel:Q((e,t)=>t?dg(e.items):!1),open:Q(e=>e.open),mounted:Q(e=>e.mounted),forceMount:Q(e=>e.forceMount),transitionStatus:Q(e=>e.transitionStatus),openMethod:Q(e=>e.openMethod),activeIndex:Q(e=>e.activeIndex),selectedIndex:Q(e=>e.selectedIndex),isActive:Q((e,t)=>e.activeIndex===t),isSelected:Q((e,t,n)=>{let r=e.isItemEqualToValue,i=e.value;return e.multiple?Array.isArray(i)&&i.some(e=>og(n,e,r)):e.selectedIndex===t&&e.selectedIndex!==null?!0:og(n,i,r)}),isSelectedByFocus:Q((e,t)=>e.selectedIndex===t),popupProps:Q(e=>e.popupProps),triggerProps:Q(e=>e.triggerProps),triggerElement:Q(e=>e.triggerElement),positionerElement:Q(e=>e.positionerElement),listElement:Q(e=>e.listElement),popupSide:Q(e=>e.popupSide),scrollUpArrowVisible:Q(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:Q(e=>e.scrollDownArrowVisible),hasScrollArrows:Q(e=>e.hasScrollArrows)};function _g(e){let t=_.useRef(``),n=_.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:_.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function vg(e,t){let{onClick:n,onPointerDown:r}=_g(Y((n,r)=>{(typeof e==`function`?e():e)||t(r||(Cl?`touch`:``))}));return _.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function yg(e){let[t,n]=_.useState(null),r=vg(e,n);return Xd(e,t=>{t&&!e&&n(null)}),_.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}function bg(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function xg(e,t){return Math.max(0,e-t)}function Sg(e,t){if(t<=0)return 0;let n=bg(e,0,t),r=n,i=t-n,a=r<=1,o=i<=1;return a&&o?r<=i?0:t:a?0:o?t:n}function Cg(e){let{id:t,value:n,defaultValue:r=null,onValueChange:i,open:a,defaultOpen:o=!1,onOpenChange:s,name:c,form:l,autoComplete:u,disabled:d=!1,readOnly:f=!1,required:p=!1,modal:m=!0,actionsRef:h,inputRef:g,onOpenChangeComplete:v,items:y,multiple:b=!1,itemToStringLabel:x,itemToStringValue:S,isItemEqualToValue:C=ag,highlightItemOnHover:w=!0,children:T}=e,{clearErrors:E}=Yd(),{setDirty:D,setTouched:O,setFocused:k,shouldValidateOnChange:A,validityData:j,setFilled:M,name:N,disabled:P,validation:F,validationMode:I}=Uc(),L=Zc({id:t}),R=P||d,z=N??c,[B,V]=_l({controlled:n,default:b?r??Mo:r,name:`Select`,state:`value`}),[H,U]=_l({controlled:a,default:o,name:`Select`,state:`open`}),ee=_.useRef([]),W=_.useRef([]),te=_.useRef(null),ne=_.useRef(null),re=_.useRef(0),ie=_.useRef(null),ae=_.useRef([]),G=_.useRef(!1),oe=_.useRef(!1),K=_.useRef(null),se=_.useRef(null),ce=_.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),le=_.useRef(!1),{mounted:ue,setMounted:de,transitionStatus:fe}=hl(H),{openMethod:pe,triggerProps:me}=yg(H),he=go(()=>new xf({id:L,labelId:void 0,modal:m,multiple:b,itemToStringLabel:x,itemToStringValue:S,isItemEqualToValue:C,value:B,open:H,mou
9nted:ue,transitionStatus:fe,items:y,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,ge=$(he,gg.activeIndex),_e=$(he,gg.selectedIndex),ve=$(he,gg.triggerElement),ye=$(he,gg.positionerElement),be=ef(pe),xe=pe??be,Se=_.useMemo(()=>b&&Array.isArray(B)&&B.length===0?``:pg(B,S),[b,B,S]),Ce=_.useMemo(()=>b&&Array.isArray(B)?B.map(e=>pg(e,S)):pg(B,S),[b,B,S]);Gd(tf(he.state.triggerElement),L,B,Y(()=>Ce));let we=_.useRef(B),Te=b?Array.isArray(B)&&B.length>0:B!=null;J(()=>{B!==we.current&&he.set(`forceMount`,!0)},[he,B]),J(()=>{M(Te)},[Te,M]),J(function(){let e=ae.current,t;if(b){let n=Array.isArray(B)?B:[];if(n.length===0)t=null;else{let r=n[n.length-1],i=cg(e,r,C);t=i===-1?null:i}}else{let n=cg(e,B,C);t=n===-1?null:n}t===null&&(se.current=null),!H&&he.set(`selectedIndex`,t)},[Te,b,H,B,ae,C,he,se]),Xd(B,()=>{E(z),D(B!==j.initialValue),A()?F.commit(B):F.commit(B,!0)});let Ee=Y((e,t)=>{if(s?.(e,t),!t.isCanceled&&(U(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(O(!0),k(!1),I===`onBlur`&&F.commit(B)),!e&&he.state.activeIndex!==null)){let e=ee.current[he.state.activeIndex];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}}),De=Y(()=>{de(!1),he.update({activeIndex:null,openMethod:null}),v?.(!1)});ml({enabled:!h,open:H,ref:te,onComplete(){H||De()}}),_.useImperativeHandle(h,()=>({unmount:De}),[De]);let Oe=Y((e,t)=>
9{i?.(e,t),!t.isCanceled&&V(e)}),ke=Y(()=>{let e=he.state.listElement||te.current;if(!e)return;let t=xg(e.scrollHeight,e.clientHeight),n=Sg(e.scrollTop,t),r=n>0,i=n<t;he.state.scrollUpArrowVisible!==r&&he.set(`scrollUpArrowVisible`,r),he.state.scrollDownArrowVisible!==i&&he.set(`scrollDownArrowVisible`,i)}),Ae=Dh({open:H,onOpenChange:Ee,elements:{reference:ve,floating:ye}}),je=jp(Ae,{enabled:!f&&!R,event:`mousedown`}),Me=Rp(Ae),Ne=Gh(Ae,{enabled:!f&&!R,listRef:ee,activeIndex:ge,selectedIndex:_e,disabledIndices:Mo,onNavigate(e){e===null&&!H||he.set(`activeIndex`,e)},focusItemOnHover:w}),Pe=Kh(Ae,{enabled:!f&&!R&&(H||!b),listRef:W,activeIndex:ge,selectedIndex:_e,onMatch(e){H?he.set(`activeIndex`,e):Oe(ae.current[e],Fs(`none`))},onTyping(e){G.current=e}}),Fe=_.useMemo(()=>{let e=lc(Pe.reference,Ne.reference,Me.reference,je.reference,me);return L&&(e.id=L),e},[je.reference,Pe.reference,Ne.reference,Me.reference,me,L]),Ie=_.useMemo(()=>lc(ch,Pe.floating,Ne.floating,Me.floating),[Pe.floating,Ne.floating,Me.floating]),Le=Ne.item??No;$d(()=>{he.update({popupProps:Ie,triggerProps:Fe})}),J(()=>{he.update({id:L,modal:m,multiple:b,value:B,open:H,mounted:ue,transitionStatus:fe,popupProps:Ie,triggerProps:Fe,items:y,itemToStringLabel:x,itemToStringValue:S,isItemEqualToValue:C,openMethod:xe})},[he,L,m,b,B,H,ue,fe,Ie,Fe,y,x,S,C,xe]);let Re=_.useMemo(()=>({store:he,name:z,required:p,disabled:R,readOnly:f,multiple:b,highlightItemOnHover:w,setValue:Oe,setOpen:Ee,listRef:ee,popupRef:te,scrollHandlerRef:ne,handleScrollArrowVisibility:ke,scrollArrowsMountedCountRef:re,itemProps:Le,events:Ae.context.events,valueRef:ie,valuesRef:ae,labelsRef:W,typingRef:G,selectionRef:ce,firstItemTextRef:K,selectedItemTextRef:se,validation:F,onOpenChangeComplete:v,keyboardActiveRef:oe,alignItemWithTriggerActiveRef:le,initialValueRef:we}),[he,z,p,R,f,b,w,Oe,Ee,Le,Ae.context.events,F,v,ke]),ze=_o(g,F.inputRef),Be=b&&Array.isArray(B)&&B.length>0,Ve=b?void 0:z,He=_.useMemo(()=>!b||!Array.isArray(B)||!z?null:B.map(e=>{let t=pg(e,S);return(0,Z.jsx)(`input`,{type:`hidden`,form:l,name:z,value:t},t)}),[b,B,l,z,S]);return(0,Z.jsx)(tg.Provider,{value:Re,children:(0,Z.jsxs)(ng.Provider,{value:Ae,children:[T,(0,Z.jsx)(`input`,{...F.getInputValidationProps({onFocus(){he.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||R||f){e.preventBaseUIHandler?.();return}let t=e.currentTarget.value,n=Fs(os,e.nativeEvent);function r(){if(b)return;let e=ae.current.find(e=>pg(e,S).toLowerCase()===t.toLowerCase()||fg(e,x).toLowerCase()===t.toLowerCase());e!=null&&(D(e!==j.initialValue),Oe(e,n),A()&&F.commit(e))}he.set(`forceMount`,!0),queueMicrotask(r)}}),id:L&&Ve==null?`${L}-hidden-input`:void 0,form:l,name:Ve,autoComplete:u,value:Se,disabled:R,required:p&&!Be,readOnly:f,ref:ze,style:z?Ao:ko,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),He]})})}function wg(e,t){let n=Qs(e);return J(()=>(t(n),()=>{t(void 0)}),[n,t]),n}function Tg(e={}){let{id:t,fallbackControlId:n,native:r=!1,setLabelId:i,focusControl:a}=e,{controlId:o,setLabelId:s}=qc(),c=wg(t,Y(e=>{s(e),i?.(e)})),l=o??n;function u(e){if(a){a(e,l);return}if(!l)return;let t=as(e.currentTarget).getElementById(l);Bo(t)&&Eg(t)}function d(e){Bl(e.nativeEvent)?.closest(`button,input,select,textarea`)||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),!r&&u(e))}return r?{id:c,htmlFor:l??void 0,onMouseDown:d}:{id:c,onClick:d,onPointerDown(e){e.preventDefault()}}}function Eg(e){e.focus({focusVisible:!0})}function Dg(e){return e==null?void 0:`${e}-label`}function Og(e,t){return e??t}var kg=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=Ls.startingStyle]=`startingStyle`,e[e.endingStyle=Ls.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),Ag=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),jg={[Ag.popupOpen]:``},Mg={[Ag.popupOpen]:``,[Ag.pressed]:``},Ng={[kg.open]:``},Pg={[kg.closed]:``},Fg={[kg.anchorHidden]:``},Ig={open(e){return e?jg:null}},Lg={open(e){return e?Mg:null}},Rg={open(e){return e?Ng:Pg},anchorHidden(e){return e?Fg:null}};function zg(e){let t=e.getBoundingClientRect(),n=Io(e),r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(!(r.content!==`none`||i.content!==`none`))return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}var Bg=2,Vg=400,Hg={...Lg,...Gs,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},Ug=_.forwardRef(function(e,t){let{render:n,className:r,id:i,disabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{setTouched:l,setFocused:u,validationMode:d,state:f,disabled:p}=Uc(),{labelId:m}=qc(),{store:h,setOpen:g,selectionRef:v,validation:y,readOnly:b,required:x,alignItemWithTriggerActiveRef:S,disabled:C,keyboardActiveRef:w}=rg(),T=p||C||a,E=$(h,gg.open),D=$(h,gg.mounted),O=$(h,gg.value),k=$(h,gg.triggerProps),A=$(h,gg.positionerElement),j=$(h,gg.listElement),M=$(h,gg.popupSide),N=$(h,gg.id),P=$(h,gg.labelId),F=$(h,gg.hasSelectedValue),I=D&&A?M:null,
9L=i??N,R=Og(m,P);Zc({id:L});let z=tf(A),B=_.useRef(null),{getButtonProps:V,buttonRef:H}=jc({disabled:T,native:o}),U=_o(t,B,H,Y(e=>{h.set(`triggerElement`,e)})),ee=Of(),W=Of(),te=Of();_.useEffect(()=>{if(E)return te.start(Vg,()=>{v.current.allowUnselectedMouseUp=!0,v.current.allowSelectedMouseUp=!0}),()=>{te.clear()};v.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},W.clear()},[E,v,W,te]);let ne=lc(k,{id:L,role:`combobox`,"aria-expanded":E?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":E?j?.id??Jl(A)?.id:void 0,"aria-labelledby":R,"aria-readonly":b||void 0,"aria-required":x||void 0,tabIndex:T?-1:0,ref:U,onFocus(e){u(!0),E&&S.current&&g(!1,Fs(os,e.nativeEvent)),ee.start(0,()=>{h.set(`forceMount`,!0)})},onBlur(e){zl(A,e.relatedTarget)||(l(!0),u(!1),d===`onBlur`&&y.commit(O))},onPointerMove(){w.current=!1},onKeyDown(){w.current=!0},onMouseDown(e){if(E)return;let t=as(e.currentTarget);function n(e){if(!B.current)return;let t=e.target;if(zl(B.current,t)||zl(z.current,t)||t===B.current)return;let n=zg(B.current);e.clientX>=n.left-Bg&&e.clientX<=n.right+Bg&&e.clientY>=n.top-Bg&&e.clientY<=n.bottom+Bg||g(!1,Fs(Os,e))}W.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},y.getValidationProps,c,V);ne.role=`combobox`;let re={...f,open:E,disabled:T,value:O,readOnly:b,popupSide:I,placeholder:!F};return X(`button`,e,{ref:[t,B],state:re,stateAttributesMapping:Hg,props:ne})}),Wg={value:()=>null},Gg=_.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,{store:c,valueRef:l}=rg(),u=$(c,gg.value),d=$(c,gg.items),f=$(c,gg.itemToStringLabel),p=$(c,gg.hasSelectedValue),m=!p&&a!=null&&i==null,h=$(c,gg.hasNullItemLabel,m),g={value:u,placeholder:!p},_=null;return _=typeof i==`function`?i(u):i??(!p&&a!=null&&!h?a:Array.isArray(u)?hg(u,d,f):mg(u,d,f)),X(`span`,e,{state:g,ref:[t,l],props:[{children:_},s],stateAttributesMapping:Wg})}),Kg=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=rg();return X(`span`,e,{state:{open:$(o,gg.open)},ref:t,props:[{"aria-hidden":!0,children:`â¼`},a],stateAttributesMapping:Ig})}),qg=_.createContext(void 0),Jg=_.forwardRef(function(e,t){let{store:n}=rg(),r=$(n,gg.mounted),i=$(n,gg.forceMount);return r||i?(0,Z.jsx)(qg.Provider,{value:!0,children:(0,Z.jsx)(fp,{ref:t,...e})}):null});function Yg(e){return nc(19)?e:e?`true`:void 0}var Xg=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=du(e,t)||{};if(l==null)return{};let f=ku(u),p={x:n,y:r},m=_u(i),h=hu(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=uu(k,j,A),N=!c.arrow&&pu(i)!=null&&j!==M&&a.reference[h]/2-(j<k?D:O)-g[h]/2<0,P=N?j<k?j-k:j-A:0;return{[m]:p[m]+P,data:{[m]:M,centerOffset:j-M-P,...N&&{alignmentOffset:P}},reset:N}}}),Zg=(e,t)=>({...Xg(e),options:[e,t]}),Qg={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await qm().fn(e)).data?.referenceHidden||a}}}},$g={sideX:`left`,sideY:`top`},e_={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=Io(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:$g};let u=await a.getOffsetParent?.(i),d={width:0,height:0};if(o===`fixed`&&c?.visualViewport)d={width:c.visualViewport.width,height:c.visualViewport.height};else if(u===c){let e=as(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=fu(s),p=t,m=n;f===`left`&&(p=d.width-(t+r.width)),f===`top`&&(m=d.height-(n+r.height));let h=f===`left`?`right`:$g.sideX,g=f===`top`?`bottom`:$g.sideY;return{x:p,y:m,data:{sideX:h,sideY:g}}}};function t_(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function n_(e,t,n){let{rects:r,placement:i}=e;return{side:t_(t,fu(i),n),align:pu(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function r_(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,inl
9ine:f,keepMounted:p=!1,floatingRootContext:m,mounted:h,collisionAvoidance:g,shiftCrossAxis:v=!1,nodeId:y,adaptiveOrigin:b,lazyFlip:x=!1,externalTree:S}=e,[C,w]=_.useState(null);!h&&C!==null&&w(null);let T=g.side||`flip`,E=g.align||`flip`,D=g.fallbackAxisSide||`end`,O=typeof t==`function`?t:void 0,k=Y(O),A=O?k:t,j=tf(t),M=tf(h),N=Ud()===`rtl`,P=C||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":N?`left`:`right`,"inline-start":N?`right`:`left`}[r],F=a===`center`?P:`${P}-${a}`,I=c,L=+(r===`bottom`),R=+(r===`top`),z=+(r===`right`),B=+(r===`left`);typeof I==`number`?I={top:I+L,right:I+B,bottom:I+R,left:I+z}:I&&={top:(I.top||0)+L,right:(I.right||0)+B,bottom:(I.bottom||0)+R,left:(I.left||0)+z};let V={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:I},H=_.useRef(null),U=tf(i),ee=tf(o),W=typeof i==`function`?0:i,te=typeof o==`function`?0:o,ne=[];f&&ne.push(f),ne.push(Hm(e=>{let t=n_(e,r,N),n=typeof U.current==`function`?U.current(t):U.current,i=typeof ee.current==`function`?ee.current(t):ee.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[W,te,N,r]));let re=E===`none`&&T!==`shift`,ie=!re&&(l||v||T===`shift`),ae=T===`none`?null:Gm({...V,padding:{top:I.top+1,right:I.right+1,bottom:I.bottom+1,left:I.left+1},mainAxis:!v&&T===`flip`,crossAxis:E===`flip`?`alignment`:!1,fallbackAxisSideDirection:D}),G=re?null:Um(e=>{let t=as(e.elements.floating).documentElement;return{...V,rootBoundary:v?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:E!==`none`,crossAxis:ie,limiter:l||v?void 0:Wm(e=>{if(!H.current)return{};let{width:t,height:n}=H.current.getBoundingClientRect(),r=gu(fu(e.placement)),i=r===`y`?t:n,a=r===`y`?I.left+I.right:I.top+I.bottom;return{offset:i/2+a/2}})}},[V,l,v,I,E]);T===`shift`||E===`shift`||a===`center`?ne.push(G,ae):ne.push(ae,G),ne.push(Km({...V,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!M.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=Io(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),Zg(e=>({element:H.current||as(e.elements.floating).createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=fu(a),l=gu(c),u=H.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof i==`function`?i(n_(e,r,N)):i,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,ie&&l===`y`&&b?S:x),{}}},Qg,b),J(()=>{!h&&m&&m.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[h,m]);let oe=_.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:K,elements:se,x:ce,y:le,middlewareData:ue,update:de,placement:fe,context:pe,isPositioned:me,floatingStyles:he}=Oh({rootContext:m,open:p?h:void 0,placement:F,middleware:ne,strategy:n,whileElementsMounted:p?void 0:(...e)=>Om(...e,oe),nodeId:y,externalTree:S}),{sideX:ge,sideY:_e}=ue.adaptiveOrigin||$g,ve=me?n:`fixed`,ye=_.useMemo(()=>{let e=b?{position:ve,[ge]:ce,[_e]:le}:{position:ve,...he};return me||(e.opacity=0),e},[b,ve,ge,ce,_e,le,he,me]),be=_.useRef(null);J(()=>{if(!h)return;let e=j.current,t=typeof e==`function`?e():e,n=(i_(t)?t.current:t)||null;n!==be.current&&(K.setPositionReference(n),be.current=n)},[h,K,A,j]),_.useEffect(()=>{if(!h)return;let e=j.current;typeof e!=`function`&&i_(e)&&e.current!==be.current&&(K.setPositionReference(e.current),be.current=e.current)},[h,K,A,j]),_.useEffect(()=>{if(p&&h&&se.domReference&&se.floating)return Om(se.domReference,se.floating,de,oe)},[p,h,se,de,oe]);let xe=fu(fe),Se=t_(r,xe,N),Ce=pu(fe)||`center`,we=!!ue.hide?.referenceHidden;J(()=>{x&&h&&me&&w(xe)},[x,h,me,xe]);let Te=_.useMemo(()=>
9({position:`absolute`,top:ue.arrow?.y,left:ue.arrow?.x}),[ue.arrow]),Ee=ue.arrow?.centerOffset!==0;return _.useMemo(()=>({positionerStyles:ye,arrowStyles:Te,arrowRef:H,arrowUncentered:Ee,side:Se,align:Ce,physicalSide:xe,anchorHidden:we,refs:K,context:pe,isPositioned:me,update:de}),[ye,Te,H,Ee,Se,Ce,xe,we,K,pe,me,de])}function i_(e){return e!=null&&`current`in e}var a_=_.createContext(void 0);function o_(){let e=_.useContext(a_);if(!e)throw Error(ec(59));return e}var s_=_.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,Z.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})});function c_(e,t){e&&Object.assign(e.style,t)}var l_={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`};function u_(e){return e===`starting`?$f:No}function d_(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),X(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},u_(r),i],stateAttributesMapping:Rg})}var f_={},p_={},m_=``;function h_(e){if(typeof document>`u`)return!1;let t=as(e);return Io(t).innerWidth-t.documentElement.clientWidth>0}function g_(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=as(e),n=t.documentElement,r=t.body,i=Ho(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function __(e){let t=as(e),n=t.documentElement,r=t.body,i=Ho(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function v_(e){let t=as(e),n=t.documentElement,r=t.body,i=Io(n),a=0,o=0,s=!1,c=ll.create();if(Sl&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,f_={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},m_=n.style.scrollBehavior,p_={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=Ho(n)?n:r;if(s=g_(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,f_),Object.assign(r.style,p_),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=m_)}function d(){u(),c.request(l)}l();let f=wf(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var y_=new class{lockCount=0;restore=null;timeoutLock=Df.create();timeoutUnlock=Df.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=as(e).documentElement,n=Io(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=jo;return}let r=Cl||!h_(e);this.restore=r?__(e):v_(e)}};function b_(e=!0,t=null){J(()=>{if(e)return y_.acquire(t)},[e,t])}var x_=20;function S_(e,t,n,r){let[i,a]=_.useState(!1);J(()=>{if(!e||!t||n==null){a(!1);return}let r=as(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-x_)},[e,t,n]),b_(e&&(!t||i),r)}var C_={position:`fixed`},w_=_.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m,alignItemWithTrigger:h=!0,collisionAvoidance:g=ap,style:v,...y}=e,{store:b,listRef:x,labelsRef:S,alignItemWithTriggerActiveRef:C,selectedItemTextRef:w,valuesRef:T,initialValueRef:E,popupRef:D,setValue:O}=rg(),k=ig(),A=$(b,gg.open),j=$(b,gg.mounted),M=$(b,gg.modal),N=$(b,gg.value),P=$(b,gg.openMethod),F=$(b,gg.positionerElement),I=$(b,gg.triggerElement),L=$(b,gg.isItemEqualToValue),R=$(b,gg.transitionStatus),z=_.useRef(null),B=_.useRef(null),[V,H]=_.useState(h),U=j&&V&&P!==`touch`;!j&&V!==h&&H(h),J(()=>{j||(gg.scrollUpArrowVisible(b.state)&&b.set(`scrollUpArrowVisible`,!1),gg.scrollDownArrowVisible(b.state)&&b.set(`scrollDownArrowVisible`,!1))},[b,j]),_.useImperativeHandle(C,()=>U),S_((U||M)&&A,P===`touch`,F,I);let ee=r_({anchor:n,floatingRootContext:k,positionMethod:r,mounted:j,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m??U,collisionAvoidance:g,keepMounted:!0}),W=U?`none`:ee.side,te=U?C_:ee.positionerStyles,ne={open:A,side:W,align:ee.align,anchorHidden:ee.anchorHidden};J(()=>{b.set(`popupSide`,ee.side)},[b,ee.side]);let re=d_(e,ne,{styles:te,transitionStatus:R,props:y,refs:[t,Y(e=>{b.set(`positionerElement`,e)})],hidden:!j,inert:!A}),ie=_.useRef(0),ae=Y(e=>{if(e.size===0&&ie.current===0||T.current.length===0)return;let t=ie.current;if(ie.current=e.size,e.size===t)return;let n=Fs(os);if(t!==0&&!b.state.multiple&&N!==null&&cg(T.current,N,L)===-1){let e=E.current,t=e!=null&&cg(T.current,e,L)!==-1?e:null;O(t,n),t===null&&(b.set(`selectedIndex`,null),w.current=null)}if(t!==0&&b.state.multiple&&Array.isArray(N)){let e=e=>cg(T.current,e,L)!==-1,t=N.filter(t=>e(t));(t.length!==N.length||t.some(e=>!sg(N,e,L)))&&(O(t,n),t.length===0&&(b.set(`selectedIndex`,null),w.current=null))}if(A&&U){b.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};c_(F,e),c_(D.current,e)}}),G=_.useMemo(()=>({...ee,side:W,alignItemWithTriggerActive:U,setControlledAlignItemWithTrigger:H,scrollUpArrowRef:z,scrollDownArrowRef:B}),[ee,W,U,H]);return(0,Z.jsx)(Pd,{elementsRef:x,labelsRef:S,onMapChange:ae,children:(0,Z.jsxs)(a_.Provider,{value:G,children:[j&&M&&(0,Z.jsx)(s_,{inert:Yg(!A),cutout:I}),re]}
9)})}),T_=`base-ui-disable-scrollbar`,E_={className:T_,getElement(e){return(0,Z.jsx)(`style`,{nonce:e,href:T_,precedence:`base-ui:low`,children:`.${T_}{scrollbar-width:none}.${T_}::-webkit-scrollbar{display:none}`})}},D_=_.createContext(void 0);function O_(e){let t=_.useContext(D_);if(t===void 0&&!e)throw Error(ec(69));return t}var k_=_.createContext(void 0),A_={disableStyleElements:!1};function j_(){return _.useContext(k_)??A_}var M_={...Rg,...Bs},N_=_.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,...o}=e,{store:s,popupRef:c,onOpenChangeComplete:l,setOpen:u,valueRef:d,firstItemTextRef:f,selectedItemTextRef:p,keyboardActiveRef:m,multiple:h,handleScrollArrowVisibility:g,scrollHandlerRef:v,listRef:y,highlightItemOnHover:b}=rg(),{side:x,align:S,alignItemWithTriggerActive:C,isPositioned:w,setControlledAlignItemWithTrigger:T,scrollDownArrowRef:E,scrollUpArrowRef:D}=o_(),O=O_(!0)!=null,k=ig(),A=Ud(),{nonce:j,disableStyleElements:M}=j_(),N=$(s,gg.id),P=$(s,gg.open),F=$(s,gg.mounted),I=$(s,gg.popupProps),L=$(s,gg.transitionStatus),R=$(s,gg.triggerElement),z=$(s,gg.positionerElement),B=$(s,gg.listElement),V=_.useRef(!1),H=_.useRef(!1),U=_.useRef({}),ee=ul(),W=Y(e=>{if(!z||!c.current||!H.current)return;if(V.current||!C){g();return}let t=z.style.top===`0px`,n=z.style.bottom===`0px`;if(!t&&!n){g();return}let r=I_(z),i=L_(z.getBoundingClientRect().height,`y`,r),a=as(z),o=getComputedStyle(z),s=parseFloat(o.marginTop),l=parseFloat(o.marginBottom),u=P_(getComputedStyle(c.current)),d=Math.min(a.documentElement.clientHeight-s-l,u),f=e.scrollTop,p=F_(e),m=0,h=null,_=!1,v=!1,y=e=>{z.style.height=`${e}px`},b=(t,n)=>{let r=bg(t,0,d-i);r>0&&y(i+r),e.scrollTop=n,d-(i+r)<=1&&(V.current=!0),g()},x=t?p-f:f,S=Math.min(i+x,d);if(m=S,x<=1){b(x,t?p:0);return}if(d-S>1?t?v=!0:h=0:(_=!0,n&&f<p&&(h=f-(x-(i+x-d)))),m=Math.ceil(m),m!==0&&y(m),v||h!=null){let t=F_(e),n=v?t:bg(h,0,t);Math.abs(e.scrollTop-n)>1&&(e.scrollTop=n)}(_||m>=d-1)&&(V.current=!0),g()});_.useImperativeHandle(v,()=>W,[W]),ml({open:P,ref:c,onComplete(){P&&l?.(!0)}});let te={open:P,transitionStatus:L,side:x,align:S};J(()=>{!z||!c.current||Object.keys(U.current).length||(U.current={top:z.style.top||`0`,left:z.style.left||`0`,right:z.style.right,height:z.style.height,bottom:z.style.bottom,minHeight:z.style.minHeight,maxHeight:z.style.maxHeight,marginTop:z.style.marginTop,marginBottom:z.style.marginBottom})},[c,z]),J(()=>{P||C||(H.current=!1,V.current=!1,c_(z,U.current))},[P,C,z,c]),J(()=>{let e=c.current;if(!P||!R||!z||!e||C&&!w||s.state.transitionStatus===`ending`)return;if(!C){H.current=!0,ee.request(g),e.style.removeProperty(`--transform-origin`);return}let t=B_(e);e.style.removeProperty(`--transform-origin`);try{let t=p.current;t?.isConnected||(t=!gg.hasSelectedValue(s.state)&&f.current?.isConnected?f.current:null);let n=d.current,r=getComputedStyle(z),i=getComputedStyle(e),a=as(R),o=Io(z),c=I_(R),l=R_(R.getBoundingClientRect(),c),u=R_(z.getBoundingClientRect(),c),m=l.height,h=B||e,_=h.scrollHeight,v=parseFloat(i.borderBottomWidth),x=parseFloat(r.marginTop)||10,S=parseFloat(r.marginBottom)||10,C=parseFloat(r.minHeight)||100,w=P_(i),E=a.documentElement.clientHeight-x-S,D=a.documentElement.clientWidth,O=E-l.bottom+m,k,j=A===`rtl`?l.right-u.width:l.left,M=0;if(t&&n){let e=R_(n.getBoundingClientRect(),c);k=R_(t.getBoundingClientRect(),c),j=u.left+(A===`rtl`?e.right-k.right:e.left-k.left);let r=e.top-l.top+e.height/2;M=k.top-u.top+k.height/2-r}let N=O+M+S+v,P=Math.min(E,N),F=E-x-S,I=N-P,L=D-5;z.style.left=`${bg(j,5,L-u.width)}px`,z.style.height=`${P}px`,z.style.maxHeight=`auto`,z.style.marginTop=`${x}px`,z.style.marginBottom=`${S}px`,e.style.height=`100%`;let ee=F_(h),W=I>=ee-1;W&&(P=Math.min(E,u.height)-(I-ee));let te=l.top<20||l.bottom>E-20||Math.ceil(P)+1<Math.min(_,C),ne=(o.visualViewport?.scale??1)!==1&&Sl;if(te||ne){H.current=!0,c_(z,U.current),T(!1);return}let re=Math.max(C,P);if(W){let e=Math.max(0,E-N);z.style.top=u.height>=F?`0`:`${e}px`,z.style.height=`${P}px`,h.scrollTop=F_(h)}else z.style.bottom=`0`,h.scrollTop=I;if(k){let t=u.top,n=u.height,r=k.top+k.height/2,i=bg(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(re===E||P>=w)&&(V.current=!0),g(),b&&s.state.selectedIndex===null&&s.state.activeIndex===null&&y.current[0]!=null&&s.set(`activeIndex`,0),H.current=!0}finally{t()}},[s,P,z,R,d,f,p,c,g,C,T,ee,E,D,B,y,b,A,w]),_.useEffect(()=>{if(!C||!z||!P)return;let e=Io(z);function t(e){u(!1,Fs(Ps,e))}return wf(e,`resize`,t)},[u,C,z,P]);let ne={...B?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":h||void 0,id:`${N}-list`},onKeyDown(e){m.current=!0,O&&Ed.has(e.key)&&e.stopPropagation()},onMouseMove(){m.current=!1},onScroll(e){B||W(e.currentTarget)},...C&&{style:B?{height:`100%`}:l_}},re=X(`div`,e,{ref:[t,c],state:te,stateAttributesMapping:M_,props:[I,ne,u_(L),{className:!B&&C?E_.className:void 0},o]});return(0,Z.jsxs)(_.Fragment,{children:[!M&&E_.getElement(j),(0,Z.jsx)(Ap,{context:k,modal:!1,disabled:!F,returnFocus:a,restoreFocus:!0,children:re})]})});function P_(e){let t=e.maxHeight||``;
9return t.endsWith(`px`)&&parseFloat(t)||1/0}function F_(e){return xg(e.scrollHeight,e.clientHeight)}function I_(e){return Tm.getScale(e)}function L_(e,t,n){return e/n[t]}function R_(e,t){return Au({x:L_(e.x,`x`,t),y:L_(e.y,`y`,t),width:L_(e.width,`x`,t),height:L_(e.height,`y`,t)})}var z_=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function B_(e){let{style:t}=e,n={};for(let[e,r]of z_)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of z_){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var V_=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o,scrollHandlerRef:s}=rg(),{alignItemWithTriggerActive:c}=o_(),l=$(o,gg.hasScrollArrows),u=$(o,gg.openMethod),d=$(o,gg.multiple),f={id:`${$(o,gg.id)}-list`,role:`listbox`,"aria-multiselectable":d||void 0,onScroll(e){s.current?.(e.currentTarget)},...c&&{style:l_},className:l&&u!==`touch`?E_.className:void 0};return X(`div`,e,{ref:[t,Y(e=>{o.set(`listElement`,e)})],props:[f,a]})}),H_=_.createContext(void 0);function U_(){let e=_.useContext(H_);if(!e)throw Error(ec(57));return e}var W_=_.memo(_.forwardRef(function(e,t){let{render:n,className:r,style:i,value:a=null,label:o,disabled:s=!1,nativeButton:c=!1,...l}=e,u=_.useRef(null),d=Rc({label:o,textRef:u,indexGuessBehavior:Lc.GuessFromOrder}),{store:f,itemProps:p,setOpen:m,setValue:h,selectionRef:g,typingRef:v,valuesRef:y,multiple:b,selectedItemTextRef:x}=rg(),S=$(f,gg.isActive,d.index),C=$(f,gg.isSelected,d.index,a),w=$(f,gg.isSelectedByFocus,d.index),T=$(f,gg.isItemEqualToValue),E=d.index,D=E!==-1,O=_.useRef(null);J(()=>{if(!D)return;let e=y.current;return e[E]=a,()=>{delete e[E]}},[D,E,a,y]),J(()=>{if(!D)return;let e=f.state.value,t=e;b&&Array.isArray(e)&&e.length>0&&(t=e[e.length-1]),t!==void 0&&og(a,t,T)&&(f.set(`selectedIndex`,E),u.current&&(x.current=u.current))},[D,E,b,T,f,a,x]);let k=_.useRef(null),A=_.useRef(`mouse`),j=_.useRef(!1),{getButtonProps:M,buttonRef:N}=jc({disabled:s,focusableWhenDisabled:!0,native:c,composite:!0}),P={disabled:s,selected:C,highlighted:S};function F(e){let t=f.state.value;if(b){let n=Array.isArray(t)?t:[];h(C?lg(n,a,T):[...n,a],Fs(ds,e))}else h(a,Fs(ds,e)),m(!1,Fs(ds,e))}function I(){g.current.dragY=0}let L={role:`option`,"aria-selected":C,tabIndex:S?0:-1,onKeyDown(e){k.current=e.key,f.set(`activeIndex`,E),e.key===` `&&v.current&&e.preventDefault()},onClick(e){let t=e.type===`click`&&A.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&$l(e.nativeEvent)&&(n!==void 0||S),i=t&&!r&&!j.current;j.current=!1,!(e.type===`keydown`&&k.current===null)&&(s||e.type===`keydown`&&k.current===` `&&v.current||i||(k.current=null,F(e.nativeEvent)))},onPointerEnter(e){A.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=g.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){A.current=e.pointerType,j.current=!0,I()},onMouseUp(){if(I(),s||A.current===`touch`||j.current)return;let e=!g.current.allowSelectedMouseUp&&C,t=!g.current.allowUnselectedMouseUp&&!C;e||t||(j.current=!0,O.current?.click(),j.current=!1)}},R=X(`div`,e,{ref:[N,t,d.ref,O],state:P,props:[p,L,l,M]}),z=_.useMemo(()=>({selected:C,index:E,textRef:u,selectedByFocus:w,hasRegistered:D}),[C,E,u,w,D]);return(0,Z.jsx)(H_.Provider,{value:z,children:R})})),G_=_.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=U_();return n||r?(0,Z.jsx)(K_,{...e,ref:t}):null}),K_=_.memo(_.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=U_(),c=_.useRef(null),{transitionStatus:l,setMounted:u}=hl(s),d=X(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:l},props:[{"aria-hidden":!0,children:`âï¸`},o],stateAttributesMapping:Bs});return ml({open:s,ref:c,onComplete(){s||u(!1)}}),d})),q_=_.memo(_.forwardRef(function(e,t){let{index:n,textRef:r,selectedByFocus:i,hasRegistered:a}=U_(),{firstItemTextRef:o,selectedItemTextRef:s}=rg(),{render:c,className:l,style:u,...d}=e;return X(`div`,e,{ref:[_.useCallback(e=>{e&&(a&&n===0&&(o.current=e),a&&i&&(s.current=e))},[o,s,n,i,a]),t,r],props:d})})),J_=_.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return X(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})}),Y_=fv(),X_=e=>sv(e,Y_),Z_=fv();X_.write=e=>sv(e,Z_);var Q_=fv();X_.onStart=e=>sv(e,Q_);var $_=fv();X_.onFrame=e=>sv(e,$_);var ev=fv();X_.onFinish=e=>sv(e,ev);var tv=[];X_.setTimeout=(e,t)=>{let n=X_.now()+t,r=()=>{let e=tv.findIndex(e=>e.cancel==r);~e&&tv.splice(e,1),av-=+!!~e},i={time:n,handler:e,cancel:r};return tv.splice(nv(n),0,i),av+=1,cv(),i};var nv=e=>~(~tv.findIndex(t=>t.time>e)||~tv.length);X_.cancel=e=>{Q_.delete(e),$_.delete(e),ev.delete(e),Y_.delete(e),Z_.delete(e)},X_.sync=e=>{ov=!0,X_.batchedUpdates(e),ov=!1},X_.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,X_.onStart(n)}return r.handler=e,r.cancel=()=>{Q_.delete(n),t=null},r};var rv=typeof window<`u`?window.requestAnimationFrame:(()=>{});X_.use=e=>rv=e,X_.now=typeof performance<`u`?()=>performance.now():Date.now,X_.batchedUpdates=e=>e(),X_.catch=console.error,X_.frameLoop=`always`,X_.advance=()=>{X_.frameLoop===`demand`?dv():console.warn(`Cannot call the manual advancement of rafz whilst frameLoop is not set as demand`)};var iv=-1,av=0,ov=!1;function sv(e,t){ov?(t.delete(e),e(0)):(t.add(e),cv())}function cv(){iv<0&&(iv=0,X_.frameLoop!==`demand`&&rv(uv))}function lv(){iv=-1}function uv(){~iv&&(rv(uv),X_.batchedUpdates(dv))}function dv(){let e=iv;iv=X_.now();let t=nv(iv);if(t&&(pv(tv.splice(0,t),e=>e.handler()),av-=t),!av){lv();return}Q_.flush(),Y_.flush(e?Math.min(64,iv-e):16.667),$_.flush(),Z_.flush(),ev.flush()}function fv(){let e=new Set,t=e;return{add(n){av+=+(t==e&&!e.has(n)),e.add(n)},delete(n){return av-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,av-=t.size,pv(t,t=>t(n)&&e.add(t)),av+=e.size,t=e)}}}
9function pv(e,t){e.forEach(e=>{try{t(e)}catch(e){X_.catch(e)}})}var mv=Object.defineProperty,hv=(e,t)=>{for(var n in t)mv(e,n,{get:t[n],enumerable:!0})},gv={};hv(gv,{assign:()=>Mv,colors:()=>kv,createStringInterpolator:()=>Dv,skipAnimation:()=>Av,to:()=>Ov,willAdvance:()=>jv});function _v(){}var vv=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),yv={arr:Array.isArray,obj:e=>!!e&&e.constructor.name===`Object`,fun:e=>typeof e==`function`,str:e=>typeof e==`string`,num:e=>typeof e==`number`,und:e=>e===void 0};function bv(e,t){if(yv.arr(e)){if(!yv.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var xv=(e,t)=>e.forEach(t);function Sv(e,t,n){if(yv.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(let r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Cv=e=>yv.und(e)?[]:yv.arr(e)?e:[e];function wv(e,t){if(e.size){let n=Array.from(e);e.clear(),xv(n,t)}}var Tv=(e,...t)=>wv(e,e=>e(...t)),Ev=()=>typeof window>`u`||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Dv,Ov,kv=null,Av=!1,jv=_v,Mv=e=>{e.to&&(Ov=e.to),e.now&&(X_.now=e.now),e.colors!==void 0&&(kv=e.colors),e.skipAnimation!=null&&(Av=e.skipAnimation),e.createStringInterpolator&&(Dv=e.createStringInterpolator),e.requestAnimationFrame&&X_.use(e.requestAnimationFrame),e.batchedUpdates&&(X_.batchedUpdates=e.batchedUpdates),e.willAdvance&&(jv=e.willAdvance),e.frameLoop&&(X_.frameLoop=e.frameLoop)},Nv=new Set,Pv=[],Fv=[],Iv=0,Lv={get idle(){return!Nv.size&&!Pv.length},start(e){Iv>e.priority?(Nv.add(e),X_.onStart(Rv)):(zv(e),X_(Vv))},advance:Vv,sort(e){if(Iv)X_.onFrame(()=>Lv.sort(e));else{let t=Pv.indexOf(e);~t&&(Pv.splice(t,1),Bv(e))}},clear(){Pv=[],Nv.clear()}};function Rv(){Nv.forEach(zv),Nv.clear(),X_(Vv)}function zv(e){Pv.includes(e)||Bv(e)}function Bv(e){Pv.splice(Hv(Pv,t=>t.priority>e.priority),0,e)}function Vv(e){let t=Fv;for(let n=0;n<Pv.length;n++){let r=Pv[n];Iv=r.priority,r.idle||(jv(r),r.advance(e),r.idle||t.push(r))}return Iv=0,Fv=Pv,Fv.length=0,Pv=t,Pv.length>0}function Hv(e,t){let n=e.findIndex(t);return n<0?e.length:n}var Uv=(e,t,n)=>Math.min(Math.max(n,e),t),Wv={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}
9,Gv=`[-+]?\\d*\\.?\\d+`,Kv=Gv+`%`;function qv(...e){return`\\(\\s*(`+e.join(`)\\s*,\\s*(`)+`)\\s*\\)`}var Jv=RegExp(`rgb`+qv(Gv,Gv,Gv)),Yv=RegExp(`rgba`+qv(Gv,Gv,Gv,Gv)),Xv=RegExp(`hsl`+qv(Gv,Kv,Kv)),Zv=RegExp(`hsla`+qv(Gv,Kv,Kv,Gv)),Qv=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,$v=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ey=/^#([0-9a-fA-F]{6})$/,ty=/^#([0-9a-fA-F]{8})$/;function ny(e){let t;return typeof e==`number`?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ey.exec(e))?parseInt(t[1]+`ff`,16)>>>0:kv&&kv[e]!==void 0?kv[e]:(t=Jv.exec(e))?(ay(t[1])<<24|ay(t[2])<<16|ay(t[3])<<8|255)>>>0:(t=Yv.exec(e))?(ay(t[1])<<24|ay(t[2])<<16|ay(t[3])<<8|sy(t[4]))>>>0:(t=Qv.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+`ff`,16)>>>0:(t=ty.exec(e))?parseInt(t[1],16)>>>0:(t=$v.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Xv.exec(e))?(iy(oy(t[1]),cy(t[2]),cy(t[3]))|255)>>>0:(t=Zv.exec(e))?(iy(oy(t[1]),cy(t[2]),cy(t[3]))|sy(t[4]))>>>0:null}function ry(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function iy(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=ry(i,r,e+1/3),o=ry(i,r,e),s=ry(i,r,e-1/3);return Math.round(a*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function ay(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function oy(e){return(parseFloat(e)%360+360)%360/360}function sy(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function cy(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function ly(e){let t=ny(e);return t===null?e:(t||=0,`rgba(${(t&4278190080)>>>24}, ${(t&16711680)>>>16}, ${(t&65280)>>>8}, ${(t&255)/255})`)}var uy=(e,t,n)=>{if(yv.fun(e))return e;if(yv.arr(e))return uy({range:e,output:t,extrapolate:n});if(yv.str(e.output[0]))return Dv(e);let r=e,i=r.output,a=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||`extend`,s=r.extrapolateRight||r.extrapolate||`extend`,c=r.easing||(e=>e);return e=>{let t=fy(e,a);return dy(e,a[t],a[t+1],i[t],i[t+1],c,o,s,r.map)}};function dy(e,t,n,r,i,a,o,s,c){let l=c?c(e):e;if(l<t){if(o===`identity`)return l;o===`clamp`&&(l=t)}if(l>n){if(s===`identity`)return l;s===`clamp`&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t),l=a(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r,l)}function fy(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var py=(e,t=`end`)=>n=>{n=t===`end`?Math.min(n,.999):Math.max(n,.001);let r=n*e;return Uv(0,1,(t===`end`?Math.floor(r):Math.ceil(r))/e)},my=1.70158,hy=my*1.525,gy=my+1,_y=2*Math.PI/3,vy=2*Math.PI/4.5,yy=e=>{let t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},by={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-(-2*e+2)**2/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-(1-e)**3,easeInOutCubic:e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-(1-e)**4,easeInOutQuart:e=>e<.5?8*e*e*e*e:1-(-2*e+2)**4/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-(1-e)**5,easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-(-2*e+2)**5/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:2**(10*e-10),easeOutExpo:e=>e===1?1:1-2**(-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?2**(20*e-10)/2:(2-2**(-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-e**2),easeOutCirc:e=>Math.sqrt(1-(e-1)**2),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-(2*e)**2))/2:(Math.sqrt(1-(-2*e+2)**2)+1)/2,easeInBack:e=>gy*e*e*e-my*e*e,easeOutBack:e=>1+gy*(e-1)**3+my*(e-1)**2,easeInOutBack:e=>e<.5?(2*e)**2*((hy+1)*2*e-hy)/2:((2*e-2)**2*((hy+1)*(e*2-2)+hy)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-(2**(10*e-10))*Math.sin((e*10-10.75)*_y),easeOutElastic:e=>e===0?0:e===1?1:2**(-10*e)*Math.sin((e*10-.75)*_y)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(2**(20*e-10)*Math.sin((20*e-11.125)*vy))/2:2**(-20*e+10)*Math.sin((20*e-11.125)*vy)/2+1,easeInBounce:e=>1-yy(1-e),easeOutBounce:yy,easeInOutBounce:e=>e<.5?(1-yy(1-2*e))/2:(1+yy(2*e-1))/2,steps:py},xy=Symbol.for(`FluidValue.get`),Sy=Symbol.for(`FluidValue.observers`),Cy=e=>!!(e&&e[xy]),wy=e=>e&&e[xy]?e[xy]():e,Ty=e=>e[Sy]||null;function Ey(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Dy(e,t){let n=e[Sy];
9n&&n.forEach(e=>{Ey(e,t)})}var Oy=class{constructor(e){if(!e&&!(e=this.get))throw Error(`Unknown getter`);ky(this,e)}},ky=(e,t)=>My(e,xy,t);function Ay(e,t){if(e[xy]){let n=e[Sy];n||My(e,Sy,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function jy(e,t){let n=e[Sy];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[Sy]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var My=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ny=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Py=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Fy=RegExp(`(${Ny.source})(%|[a-z]+)`,`i`),Iy=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ly=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ry=e=>{let[t,n]=zy(e);if(!t||Ev())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);return r?r.trim():n&&n.startsWith(`--`)?window.getComputedStyle(document.documentElement).getPropertyValue(n)||e:n&&Ly.test(n)?Ry(n):n||e},zy=e=>{let t=Ly.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},By,Vy=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,Hy=e=>{By||=kv?RegExp(`(${Object.keys(kv).join(`|`)})(?!\\w)`,`g`):/^\b$/;let t=e.output.map(e=>wy(e).replace(Ly,Ry).replace(Py,ly).replace(By,ly)),n=t.map(e=>e.match(Ny).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error(`The arity of each "output" value must be equal`);return e[t]})).map(t=>uy({...e,output:t}));return e=>{let n=!Fy.test(t[0])&&t.find(e=>Fy.test(e))?.replace(Ny,``),i=0;return t[0].replace(Ny,()=>`${r[i++](e)}${n||``}`).replace(Iy,Vy)}},Uy=`react-spring: `,Wy=e=>{let t=e,n=!1;if(typeof t!=`function`)throw TypeError(`${Uy}once requires a function parameter`);return(...e)=>{n||=(t(...e),!0)}},Gy=Wy(console.warn);function Ky(){Gy(`${Uy}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var qy=Wy(console.warn);function Jy(){qy(`${Uy}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Yy(e){return yv.str(e)&&(e[0]==`#`||/\d/.test(e)||!Ev()&&Ly.test(e)||e in(kv||{}))}var Xy=Ev()?_.useEffect:_.useLayoutEffect,Zy=()=>{let e=(0,_.useRef)(!1);return Xy(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Qy(){let e=(0,_.useState)()[1],t=Zy();return()=>{t.current&&e(Math.random())}}var $y=e=>(0,_.useEffect)(e,eb),eb=[];function tb(e){let t=(0,_.useRef)(void 0);return(0,_.useEffect)(()=>{t.current=e}),t.current}var nb=Symbol.for(`Animated:node`),rb=e=>!!e&&e[nb]===e,ib=e=>e&&e[nb],ab=(e,t)=>vv(e,nb,t),ob=e=>e&&e[nb]&&e[nb].getPayload(),sb=class{constructor(){ab(this,this)}getPayload(){return this.payload||[]}},cb=class e extends sb{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,yv.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new e(t)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return yv.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,yv.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},lb=class e extends cb{constructor(e){super(0),this._string=null,this._toString=uy({output:[e,e]})}static create(t){return new e(t)}getValue(){return this._string??=this._toString(this._value)}setValue(e){if(yv.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=uy({output:[this.getValue(),e]})),this._value=0,super.reset()}},ub={dependencies:null},db=class extends sb{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return Sv(this.source,(n,r)=>{rb(n)?t[r]=n.getValue(e):Cy(n)?t[r]=wy(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&xv(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return Sv(e,this._addToPayload,t),Array.from(t)}}
9_addToPayload(e){ub.dependencies&&Cy(e)&&ub.dependencies.add(e);let t=ob(e);t&&xv(t,e=>this.add(e))}},fb=class e extends db{constructor(e){super(e)}static create(t){return new e(t)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(pb)),!0)}};function pb(e){return(Yy(e)?lb:cb).create(e)}function mb(e){let t=ib(e);return t?t.constructor:yv.arr(e)?fb:Yy(e)?lb:cb}var hb=(e,t)=>{let n=!yv.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,_.forwardRef)((r,i)=>{let a=(0,_.useRef)(null),o=n&&(0,_.useCallback)(e=>{a.current=vb(i,e)},[i]),[s,c]=_b(r,t),l=Qy(),u=()=>{let e=a.current;n&&!e||(e?t.applyAnimatedValues(e,s.getValue(!0)):!1)===!1&&l()},d=new gb(u,c),f=(0,_.useRef)(void 0);Xy(()=>(f.current=d,xv(c,e=>Ay(e,d)),()=>{f.current&&(xv(f.current.deps,e=>jy(e,f.current)),X_.cancel(f.current.update))})),(0,_.useEffect)(u,[]),$y(()=>()=>{let e=f.current;xv(e.deps,t=>jy(t,e))});let p=t.getComponentProps(s.getValue());return _.createElement(e,{...p,ref:o})})},gb=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type==`change`&&X_.write(this.update)}};function _b(e,t){let n=new Set;return ub.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}
9),e=new db(e),ub.dependencies=null,[e,n]}function vb(e,t){return e&&(yv.fun(e)?e(t):e.current=t),t}var yb=Symbol.for(`AnimatedComponent`),bb=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new db(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{let t=xb(e)||`Anonymous`;return e=yv.str(e)?a[e]||(a[e]=hb(e,i)):e[yb]||(e[yb]=hb(e,i)),e.displayName=`Animated(${t})`,e};return Sv(e,(t,n)=>{yv.arr(e)&&(n=xb(t)),a[n]=a(t)}),{animated:a}},xb=e=>yv.str(e)?e:e&&yv.str(e.displayName)?e.displayName:yv.fun(e)&&e.name||null;function Sb(e,...t){return yv.fun(e)?e(...t):e}var Cb=(e,t)=>e===!0||!!(t&&e&&(yv.fun(e)?e(t):Cv(e).includes(t))),wb=(e,t)=>yv.obj(e)?t&&e[t]:e,Tb=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Eb=e=>e,Db=(e,t=Eb)=>{let n=Ob;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));let r={};for(let i of n){let n=t(e[i],i);yv.und(n)||(r[i]=n)}return r},Ob=[`config`,`onProps`,`onStart`,`onChange`,`onPause`,`onResume`,`onRest`],kb={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Ab(e){let t={},n=0;if(Sv(e,(e,r)=>{kb[r]||(t[r]=e,n++)}),n)return t}function jb(e){let t=Ab(e);if(t){let n={to:t};return Sv(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function Mb(e){return e=wy(e),yv.arr(e)?e.map(Mb):Yy(e)?gv.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Nb(e){for(let t in e)return!0;return!1}function Pb(e){return yv.fun(e)||yv.arr(e)&&yv.obj(e[0])}function Fb(e,t){e.ref?.delete(e),t?.delete(e)}function Ib(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Lb={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Rb={...Lb.default,mass:1,damping:1,easing:by.linear,clamp:!1},zb=class{constructor(){this.velocity=0,Object.assign(this,Rb)}};function Bb(e,t,n){n&&(n={...n},Vb(n,t),t={...n,...t}),Vb(e,t),Object.assign(e,t);for(let t in Rb)e[t]??(e[t]=Rb[t]);let{frequency:r,damping:i}=e,{mass:a}=e;return yv.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=(2*Math.PI/r)**2*a,e.friction=4*Math.PI*i*a/r),e}function Vb(e,t){if(!yv.und(t.decay))e.duration=void 0;else{let n=!yv.und(t.tension)||!yv.und(t.friction);(n||!yv.und(t.frequency)||!yv.und(t.damping)||!yv.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Hb=[],Ub=class{constructor(){this.changed=!1,this.values=Hb,this.toValues=null,this.fromValues=Hb,this.config=new zb,this.immediate=!1}};function Wb(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let c,l,u=Cb(n.cancel??r?.cancel,t);if(u)p();else{yv.und(n.pause)||(i.paused=Cb(n.pause,t));let e=r?.pause;e!==!0&&(e=i.paused||Cb(e,t)),c=Sb(n.delay||0,t),e?(i.resumeQueue.add(f),a.pause()):(a.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(l),l.cancel(),c=l.time-X_.now()}function f(){c>0&&!gv.skipAnimation?(i.delayed=!0,l=X_.setTimeout(p,c),i.pauseQueue.add(d),i.timeouts.add(l)):p()}function p(){i.delayed&&=!1,i.pauseQueue.delete(d),i.timeouts.delete(l),e<=(i.cancelId||0)&&(u=!0);try{a.start({...n,callId:e,cancel:u},o)}catch(e){s(e)}}})}var Gb=(e,t)=>t.length==1?t[0]:t.some(e=>e.cancelled)?Jb(e.get()):t.every(e=>e.noop)?Kb(e.get()):qb(e.get(),t.every(e=>e.finished)),Kb=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),qb=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Jb=e=>({value:e,cancelled:!0,finished:!1});function Yb(e,t,n,r){let{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:c}=n;return!a&&e===s&&!t.reset?c:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;let l=Db(t,(e,t)=>t===`onRest`?void 0:e),u,d,f=new Promise((e,t)=>(u=e,d=t)),p=e=>{let t=i<=(n.cancelId||0)&&Jb(r)||i!==n.asyncId&&qb(r,!1);if(t)throw e.result=t,d(e),e},m=(e,t)=>{let a=new Zb,o=new Qb;return(async()=>
9{if(gv.skipAnimation)throw Xb(n),o.result=qb(r,!1),d(o),o;p(a);let s=yv.obj(e)?{...e}:{...t,to:e};s.parentId=i,Sv(l,(e,t)=>{yv.und(s[t])&&(s[t]=e)});let c=await r.start(s);return p(a),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),c})()},h;if(gv.skipAnimation)return Xb(n),qb(r,!1);try{let t;t=yv.arr(e)?(async e=>{for(let t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(u),f]),h=qb(r.get(),!0,!1)}catch(e){if(e instanceof Zb)h=e.result;else if(e instanceof Qb)h=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?c:void 0)}return yv.fun(o)&&X_.batchedUpdates(()=>{o(h,r,r.item)}),h})()}function Xb(e,t){wv(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Zb=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Qb=class extends Error{constructor(){super(`SkipAnimationSignal`)}},$b=e=>e instanceof tx,ex=1,tx=class extends Oy{constructor(){super(...arguments),this.id=ex++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=ib(this);return e&&e.getValue()}to(...e){return gv.to(this,e)}interpolate(...e){return Ky(),gv.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Dy(this,{type:`change`,parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Lv.sort(this),Dy(this,{type:`priority`,parent:this,priority:e})}},nx=Symbol.for(`SpringPhase`),rx=1,ix=2,ax=4,ox=e=>(e[nx]&rx)>0,sx=e=>(e[nx]&ix)>0,cx=e=>(e[nx]&ax)>0,lx=(e,t)=>t?e[nx]|=ix|rx:e[nx]&=~ix,ux=(e,t)=>t?e[nx]|=ax:e[nx]&=~ax,dx=class extends tx{constructor(e,t){if(super(),this.animation=new Ub,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!yv.und(e)||!yv.und(t)){let n=yv.obj(e)?{...e}:{...t,from:e};yv.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(sx(this)||this._state.asyncTo)||cx(this)}get goal(){return wy(this.animation.to)}get velocity(){let e=ib(this);return e instanceof cb?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return ox(this)}get isAnimating(){return sx(this)}get isPaused(){return cx(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:a}=r,o=ob(r.to);!o&&Cy(r.to)&&(i=Cv(wy(r.to))),r.values.forEach((s,c)=>{if(s.done)return;let l=s.constructor==lb?1:o?o[c].lastPosition:i[c],u=r.immediate,d=l;if(!u){if(d=s.lastPosition,a.tension<=0){s.done=!0;return}let t=s.elapsedTime+=e,n=r.fromValues[c],i=s.v0==null?s.v0=yv.arr(a.velocity)?a.velocity[c]:a.velocity:s.v0,o,f=a.precision||(n==l?.005:Math.min(1,Math.abs(l-n)*.001));if(!yv.und(a.duration)){let r=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,s.durationProgress>0&&(s.elapsedTime=a.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(a.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+a.easing(r)*(l-n),o=(d-s.lastPosition)/e,u=r==1}else if(a.decay){let e=a.decay===!0?.998:a.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<=f,o=i*r}else{o=s.lastVelocity==null?i:s.lastVelocity;let t=a.restVelocity||f/10,r=a.clamp?0:a.bounce,c=!yv.und(r),p=n==l?s.v0>0:n<l,m,h=!1,g=Math.ceil(e/1);for(let e=0;e<g&&(m=Math.abs(o)>t,!(!m&&(u=Math.abs(l-d)<=f,u)));++e){c&&(h=d==l||d>l==p,h&&(o=-o*r,d=l));let e=(-a.tension*1e-6*(d-l)+-a.friction*.001*o)/a.mass;o+=e*1,d+=o*1}}s.lastVelocity=o,Number.isNaN(d)&&(console.warn(`Got NaN while animating:`,this),u=!0)}o&&!o[c].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,a.round)&&(n=!0)});let s=ib(this),c=s.getValue();if(t){let e=wy(r.to);(c!==e||n)&&!a.decay?(s.setValue(e),this._onChange(e)):n&&a.decay&&this._onChange(c),this._stop()}else n&&this._onChange(c)}set(e){return X_.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(sx(this)){let{to:e,config:t}=this.animation;X_.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||=[]).push(e),this}start(e,t){let n;return yv.und(e)?(n=this.queue||[],this.queue=[]):n=[yv.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>Gb(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),Xb(this._state,e&&this._lastCallId),X_.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type==`change`?this._start():e.type==`priority`&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||``,{to:n,from:r}=e;n=yv.obj(n)?n[t]:n,(n==null||Pb(n))&&(n=void 0),r=yv.obj(r)?r[t]:r,r??=void 0;let i={to:n,from:r};return ox(this)||(e.reverse&&([n,r]=[r,n]),r=wy(r),yv.und(r)?ib(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Db(e,(e,t)=>/^on/.test(t)?wb(e,n):e)),vx(this,e,`onProps`),yx(this,`onProps`,e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did
9you forget to pass your component to `animated(...)` before animating its props?");let a=this._state;return Wb(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{cx(this)||(ux(this,!0),Tv(a.pauseQueue),yx(this,`onPause`,qb(this,fx(this,this.animation.to)),this))},resume:()=>{cx(this)&&(ux(this,!1),sx(this)&&this._resume(),Tv(a.resumeQueue),yx(this,`onResume`,qb(this,fx(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=px(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Jb(this));let r=!yv.und(e.to),i=!yv.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Jb(this));let{key:a,defaultProps:o,animation:s}=this,{to:c,from:l}=s,{to:u=c,from:d=l}=e;i&&!r&&(!t.default||yv.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);let f=!bv(d,l);f&&(s.from=d),d=wy(d);let p=!bv(u,c);p&&this._focus(u);let m=Pb(t.to),{config:h}=s,{decay:g,velocity:_}=h;(r||i)&&(h.velocity=0),t.config&&!m&&Bb(h,Sb(t.config,a),t.config===o.config?void 0:Sb(o.config,a));let v=ib(this);if(!v||yv.und(u))return n(qb(this,!0));let y=yv.und(t.reset)?i&&!t.default:!yv.und(d)&&Cb(t.reset,a),b=y?d:this.get(),x=Mb(u),S=yv.num(x)||yv.arr(x)||Yy(x),C=!m&&(!S||Cb(o.immediate||t.immediate,a));if(p){let e=mb(u);if(e!==v.constructor)if(C)v=this._set(x);else throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`)}let w=v.constructor,T=Cy(u),E=!1;if(!T){let e=y||!ox(this)&&f;(p||e)&&(E=bv(Mb(b),x),T=!E),(!bv(s.immediate,C)&&!C||!bv(h.decay,g)||!bv(h.velocity,_))&&(T=!0)}if(E&&sx(this)&&(s.changed&&!y?T=!0:T||this._stop(c)),!m&&((T||Cy(c))&&(s.values=v.getPayload(),s.toValues=Cy(u)?null:w==lb?[1]:Cv(x)),s.immediate!=C&&(s.immediate=C,!C&&!y&&this._set(c)),T)){let{onRest:e}=s;xv(_x,e=>vx(this,t,e));let r=qb(this,fx(this,c));Tv(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&X_.batchedUpdates(()=>{s.changed=!y,e?.(r,this),y?Sb(o.onRest,r):s.onStart?.(r,this)})}y&&this._set(b),m?n(Yb(t.to,t,this._state,this)):T?this._start():sx(this)&&!p?this._pendingCalls.add(n):n(Kb(b))}_focus(e){let t=this.animation;e!==t.to&&(Ty(this)&&this._detach(),t.to=e,Ty(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;Cy(t)&&(Ay(t,this),$b(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;Cy(e)&&jy(e,this)}_set(e,t=!0){let n=wy(e);if(!yv.und(n)){let e=ib(this);if(!e||!bv(n,e.getValue())){let r=mb(n);!e||e.constructor!=r?ab(this,r.create(n)):e.setValue(n),e&&X_.batchedUpdates(()=>{this._onChange(n,t)})}}return ib(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,yx(this,`onStart`,qb(this,fx(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Sb(this.animation.onChange,e,this)),Sb(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;ib(this).reset(wy(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),sx(this)||(lx(this,!0),cx(this)||this._resume())}_resume(){gv.skipAnimation?this.finish():Lv.start(this)}_stop(e,t){if(sx(this)){lx(this,!1);let n=this.animation;xv(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Dy(this,{type:`idle`,parent:this});let r=t?Jb(this.get()):qb(this.get(),fx(this,e??n.to));Tv(this._pendingCalls,r),n.changed&&(n.changed=!1,yx(this,`onRest`,r,this))}}};function fx(e,t){let n=Mb(t);return bv(Mb(e.get()),n)}function px(e,t=e.loop,n=e.to){let r=Sb(t);if(r){let i=r!==!0&&jb(r),a=(i||e).reverse,o=!i||i.reset;return mx({...e,loop:t,default:!1,pause:void 0,to:!a||Pb(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function mx(e){let{to:t,from:n}=e=jb(e),r=new Set;return yv.obj(t)&&gx(t,r),yv.obj(n)&&gx(n,r),e.keys=r.size?Array.from(r):null,e}function hx(e){let t=mx(e);return yv.und(t.default)&&(t.default=Db(t)),t}function gx(e,t){Sv(e,(e,n)=>e!=null&&t.add(n))}var _x=[`onStart`,`onRest`,`onChange`,`onPause`,`onResume`];function vx(e,t,n){e.animation[n]=t[n]===Tb(t,n)?void 0:wb(t[n],e.key)}function yx(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var bx=[`onStart`,`onChange`,`onRest`],xx=1,Sx=class{constructor(e,t){this.id=xx++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];yv.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(mx(e)),this}start(e){let{queue:t}=this;return e?t=Cv(e).map(mx):this.queue=[],this._flush?this._flush(this,t):(kx(this,t),Cx(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){let n=this.springs;xv(Cv(t),t=>n[t].stop(!!e))}else Xb(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(yv.und(e))this.start({pause:!0});else{let t=this.springs;xv(Cv(e),e=>t[e].pause())}return this}resume(e){if(yv.und(e))this.start({pause:!1});else{let t=this.springs;xv(Cv(e),e=>t[e].resume())}return this}each(e){Sv(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,wv(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&wv(t,([e,t])=>{t.value=o,e(t,this,this._item)}),a&&(this._started=!1,wv(n,([e,t])=>{t.value=o,e(t,this,this._item)}))}eventObserved(e){if(e.type==`change`)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type==`idle`)this._active.delete(e.parent);else return;X_.onFrame(this._onFrame)}};function Cx(e,t){return Promise.all(t.map(t=>wx(e,t))).then(t=>Gb(e,t))}async function wx(e,t,n){let{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:c}=t,l=yv.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),a===!1&&(t.from=null);let u=yv.arr(i)||yv.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):xv(bx,n=>{let r=t[n];if(yv.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},l&&(l[n]=t[n])}});let d=e._state;t.pause===!d.paused?(d.paused=t.pause,Tv(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),p=t.cancel===!0||Tb(t,`cancel`)===!0;(u||p&&d.asyncId)&&f.push(Wb(++e._lastAsyncId,{props:t,state:d,actions:{pause:_v,resume:_v,start(t,n){p?(Xb(d,e._lastAsyncId),n(Jb(e))):(t.onRest=s,n(Yb(u,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let m=Gb(e,await Promise.all(f));if(o&&m.finished&&!(n&&m.noop)){let n=px(t,o,i);if(n)return kx(e,[n]),wx(e,n,!0)}return c&&X_.batchedUpdates(()=>c(m,e,e.item)),m}function Tx(e,t){let n={...e.springs};return t&&xv(Cv(t),e=>{yv.und(e.keys)&&(e=mx(e)),yv.obj(e.to)||(e={...e,to:void 0}),Ox(n,e,e=>Dx(e))}),Ex(e,n),n}function Ex(e,t){Sv(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,Ay(t,e))})}function Dx(e,t){let n=new dx;return n.key=e,t&&Ay(n,t),n}function Ox(e,t,n){t.keys&&xv(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function kx(e,t){xv(t,t=>{Ox(e.springs,t,t=>Dx(t,e))})}var Ax=_.createContext({pause:!1,immediate:!1}),jx=()=>{let e=[],t=function(t){Jy();let r=[];return xv(e,(e,i)=>{if(yv.und(t))r.push(e.start());else{let a=n(t,e,i);a&&r.push(e.start(a))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return xv(e,e=>e.pause(...arguments)),this},t.resume=function(){return xv(e,e=>e.resume(...arguments)),this},t.set=function(t){xv(e,(e,n)=>{let r=yv.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return xv(e,(e,r)=>{if(yv.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return xv(e,e=>e.stop(...arguments)),this},t.update=function(t){return xv(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return yv.fun(e)?e(n,t):e};return t._getProps=n,t};
9function Mx(e,t,n){let r=yv.fun(t)&&t;r&&!n&&(n=[]);let i=(0,_.useMemo)(()=>r||arguments.length==3?jx():void 0,[]),a=(0,_.useRef)(0),o=Qy(),s=(0,_.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=Tx(e,t);return a.current>0&&!s.queue.length&&!Object.keys(n).some(t=>!e.springs[t])?Cx(e,t):new Promise(r=>{Ex(e,n),s.queue.push(()=>{r(Cx(e,t))}),o()})}}),[]),c=(0,_.useRef)([...s.ctrls]),l=(0,_.useRef)([]),u=tb(e)||0;(0,_.useMemo)(()=>{xv(c.current.slice(e,u),e=>{Fb(e,i),e.stop(!0)}),c.current.length=e,d(u,e)},[e]),(0,_.useMemo)(()=>{d(0,Math.min(u,e))},n);function d(e,n){for(let i=e;i<n;i++){let e=c.current[i]||(c.current[i]=new Sx(null,s.flush)),n=r?r(i,e):t[i];n&&(l.current[i]=hx(n))}}let f=c.current.map((e,t)=>Tx(e,l.current[t])),p=(0,_.useContext)(Ax),m=p!==tb(p)&&Nb(p);Xy(()=>{a.current++,s.ctrls=c.current;let{queue:e}=s;e.length&&(s.queue=[],xv(e,e=>e())),xv(c.current,(e,t)=>{i?.add(e),m&&e.start({default:p});let n=l.current[t];n&&(Ib(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),$y(()=>()=>{xv(s.ctrls,e=>e.stop(!0))});let h=f.map(e=>({...e}));return i?[h,i]:h}function Nx(e,t){let n=yv.fun(e),[[r],i]=Mx(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,i]:r}function Px(e,t,n){let r=yv.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:s=!0,exitBeforeEnter:c=!1,onDestroyed:l,ref:u,config:d}=r?r():t,f=(0,_.useMemo)(()=>r||arguments.length==3?jx():void 0,[]),p=Cv(e),m=[],h=(0,_.useRef)(null),g=i?null:h.current;Xy(()=>{h.current=m}),$y(()=>(xv(m,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{xv(h.current,e=>{e.expired&&clearTimeout(e.expirationId),Fb(e.ctrl,f),e.ctrl.stop(!0)})}));let v=Ix(p,r?r():t,g),y=i&&h.current||[];Xy(()=>xv(y,({ctrl:e,item:t,key:n})=>{Fb(e,f),Sb(l,t,n)}));let b=[];if(g&&xv(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):(t=b[t]=v.indexOf(e.key),~t&&(m[t]=e))}),xv(p,(e,t)=>{m[t]||(m[t]={key:v[t],item:e,phase:`mount`,ctrl:new Sx},m[t].ctrl.item=e)}),b.length){let e=-1,{leave:n}=r?r():t;xv(b,(t,r)=>{let i=g[r];~t?(e=m.indexOf(i),m[e]={...i,item:p[t]}):n&&m.splice(++e,0,i)})}yv.fun(a)&&m.sort((e,t)=>a(e.item,t.item));let x=-o,S=Qy(),C=Db(t),w=new Map,T=(0,_.useRef)(new Map),E=(0,_.useRef)(!1);xv(m,(e,n)=>{let i=e.key,a=e.phase,l=r?r():t,f,p,m=Sb(l.delay||0,i);if(a==`mount`)f=l.enter,p=`enter`;else{let e=v.indexOf(i)<0;if(a!=`leave`)if(e)f=l.leave,p=`leave`;else if(f=l.update)p=`update`;else return;else if(!e)f=l.enter,p=`enter`;else return}if(f=Sb(f,e.item,n),f=yv.obj(f)?jb(f):{to:f},!f.config){let t=d||C.config;f.config=Sb(t,e.item,n,p)}x+=o;let _={...C,delay:m+x,ref:u,immediate:l.immediate,reset:!1,...f};if(p==`enter`&&yv.und(_.from)){let i=r?r():t;_.from=Sb(yv.und(i.initial)||g?i.from:i.initial,e.item,n)}let{onResolve:y}=_;_.onResolve=e=>{Sb(y,e);let t=h.current,n=t.find(e=>e.key===i);if(n&&!(e.cancelled&&n.phase!=`update`)&&n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if(n.phase==`leave`){let t=Sb(s,n.item);if(t!==!1){let r=t===!0?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(S,r));return}}}e&&t.some(e=>e.expired)&&(T.current.delete(n),c&&(E.current=!0),S())}};let b=Tx(e.ctrl,_);p===`leave`&&c?T.current.set(e,{phase:p,springs:b,payload:_}):w.set(e,{phase:p,springs:b,payload:_})});let D=(0,_.useContext)(Ax),O=D!==tb(D)&&Nb(D);Xy(()=>{O&&xv(m,e=>{e.ctrl.start({default:D})})},[D]),xv(w,(e,t)=>{if(T.current.size){let e=m.findIndex(e=>e.key===t.key);m.splice(e,1)}}),Xy(()=>{xv(T.current.size?T.current:w,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),O&&e==`enter`&&r.start({default:D}),t&&(Ib(r,t.ref),(r.ref||f)&&!E.current?r.update(t):(r.start(t),E.current&&=!1))})},i?void 0:n);let k=e=>_.createElement(_.Fragment,null,m.map((t,n)=>{let{springs:r}=w.get(t)||t.ctrl,i=e({...r},t.item,t,n),a=yv.str(t.key)||yv.num(t.key)?t.key:t.ctrl.id,o=i?.props??{},s=o?.ref;return i&&i.type?_.createElement(i.type,{...o,key:a,ref:s}):i}));return f?[k,f]:k}var Fx=1;function Ix(e,{key:t,keys:n=t},r){if(n===null){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&n.phase!==`leave`&&!t.has(n));return n?(t.add(n),n.key):Fx++})}return yv.und(n)?e:yv.fun(n)?e.map(n):Cv(n)}var Lx=class extends tx{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=uy(...t);let n=this._get(),r=mb(n);ab(this,r.create(n))}advance(e){let t=this._get();bv(t,this.get())||(ib(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&zx(this._active)&&Bx(this)}_get(){let e=yv.arr(this.source)?this.source.map(wy):Cv(wy(this.source));return this.calc(...e)}_start(){this.idle&&!zx(this._active)&&(this.idle=!1,xv(ob(this),e=>{e.done=!1}),gv.skipAnimation?(X_.batchedUpdates(()=>this.advance()),Bx(this)):Lv.start(this))}_attach(){let e=1;xv(Cv(this.source),t=>{Cy(t)&&Ay(t,this),$b(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){xv(Cv(this.source),e=>{Cy(e)&&jy(e,this)}),this._active.clear(),Bx(this)}eventObserved(e){e.type==`change`?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type==`idle`?this._active.delete(e.parent):e.type==`priority`&&(this.priority=Cv(this.source).reduce((e,t)=>
9Math.max(e,($b(t)?t.priority:0)+1),0))}};function Rx(e){return e.idle!==!1}function zx(e){return!e.size||Array.from(e).every(Rx)}function Bx(e){e.idle||(e.idle=!0,xv(ob(e),e=>{e.done=!0}),Dy(e,{type:`idle`,parent:e}))}var Vx=(e,...t)=>new Lx(e,t);gv.assign({createStringInterpolator:Hy,to:(e,t)=>new Lx(e,t)}),Lv.advance;var Hx=/^--/;function Ux(e,t){return t==null||typeof t==`boolean`||t===``?``:typeof t==`number`&&t!==0&&!Hx.test(e)&&!(Kx.hasOwnProperty(e)&&Kx[e])?t+`px`:(``+t).trim()}var Wx={};function Gx(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n=e.nodeName===`filter`||e.parentNode&&e.parentNode.nodeName===`filter`,{className:r,style:i,children:a,scrollTop:o,scrollLeft:s,viewBox:c,...l}=t,u=Object.values(l),d=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:Wx[t]||(Wx[t]=t.replace(/([A-Z])/g,e=>`-`+e.toLowerCase())));a!==void 0&&(e.textContent=a);for(let t in i)if(i.hasOwnProperty(t)){let n=Ux(t,i[t]);Hx.test(t)?e.style.setProperty(t,n):e.style[t]=n}d.forEach((t,n)=>{e.setAttribute(t,u[n])}),r!==void 0&&(e.className=r),o!==void 0&&(e.scrollTop=o),s!==void 0&&(e.scrollLeft=s),c!==void 0&&e.setAttribute(`viewBox`,c)}var Kx={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qx=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Jx=[`Webkit`,`Ms`,`Moz`,`O`];Kx=Object.keys(Kx).reduce((e,t)=>(Jx.forEach(n=>e[qx(n,t)]=e[t]),e),Kx);var Yx=/^(matrix|translate|scale|rotate|skew)/,Xx=/^(translate)/,Zx=/^(rotate|skew)/,Qx=(e,t)=>yv.num(e)&&e!==0?e+t:e,$x=(e,t)=>yv.arr(e)?e.every(e=>$x(e,t)):yv.num(e)?e===t:parseFloat(e)===t,eS=class extends db{constructor({x:e,y:t,z:n,...r}){let i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(e=>[`translate3d(${e.map(e=>Qx(e,`px`)).join(`,`)})`,$x(e,0)])),Sv(r,(e,t)=>{if(t===`transform`)i.push([e||``]),a.push(e=>[e,e===``]);else if(Yx.test(t)){if(delete r[t],yv.und(e))return;let n=Xx.test(t)?`px`:Zx.test(t)?`deg`:``;i.push(Cv(e)),a.push(t===`rotate3d`?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${Qx(i,n)})`,$x(i,0)]:e=>[`${t}(${e.map(e=>Qx(e,n)).join(`,`)})`,$x(e,+!!t.startsWith(`scale`))])}}),i.length&&(r.transform=new tS(i,a)),super(r)}},tS=class extends Oy{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||=this._get()}_get(){let e=``,t=!0;return xv(this.inputs,(n,r)=>{let i=wy(n[0]),[a,o]=this.transforms[r](yv.arr(i)?i:n.map(wy));e+=` `+a,t&&=o}),t?`none`:e}observerAdded(e){e==1&&xv(this.inputs,e=>xv(e,e=>Cy(e)&&Ay(e,this)))}observerRemoved(e){e==0&&xv(this.inputs,e=>xv(e,e=>Cy(e)&&jy(e,this)))}eventObserved(e){e.type==`change`&&(this._value=null),Dy(this,e)}},nS=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.big.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.foreignObject.g.image.line.linearGradient.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.text.tspan`.split(`.`);gv.assign({batchedUpdates:fl.unstable_batchedUpdates,createStringInterpolator:Hy,colors:Wv});var rS=bb(nS,{applyAnimatedValues:Gx,createAnimatedStyle:e=>new eS(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated,iS=o(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),aS=o(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),oS=o(((e,t)=>{var n=aS();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),sS=o(((e,t)=>{var n=oS(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),cS=o(((e,t)=>{var n=oS();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),lS=o(((e,t)=>{var n=oS();function r(e){return n(this.__data__,e)>-1}t.exports=r})),uS=o(((e,t)=>{var n=oS();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),dS=o(((e,t)=>{var n=iS(),r=sS(),i=cS(),a=lS(),o=uS();function s(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])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),fS=o(((e,t)=>{var n=dS();function r(){this.__data__=new n,this.size=0}t.exports=r})),pS=o(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),mS=o(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),hS=o(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),gS=o(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),_S=o(((e,t)=>{var n=gS(),r=typeof self==`object`&&self&&self.Object===Object&&self;
vendor: 4,442 bytes, line 9
9t.exports=n||r||Function(`return this`)()})),vS=o(((e,t)=>{t.exports=_S().Symbol})),yS=o(((e,t)=>{var n=vS(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),bS=o(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),xS=o(((e,t)=>{var n=vS(),r=yS(),i=bS(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),SS=o(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),CS=o(((e,t)=>{var n=xS(),r=SS(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),wS=o(((e,t)=>{t.exports=_S()[`__core-js_shared__`]})),TS=o(((e,t)=>{var n=wS(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),ES=o(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),DS=o(((e,t)=>{var n=CS(),r=TS(),i=SS(),a=ES(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),OS=o(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),kS=o(((e,t)=>{var n=DS(),r=OS();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),AS=o(((e,t)=>{t.exports=kS()(_S(),`Map`)})),jS=o(((e,t)=>{t.exports=kS()(Object,`create`)})),MS=o(((e,t)=>{var n=jS();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),NS=o(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),PS=o(((e,t)=>{var n=jS(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),FS=o(((e,t)=>{var n=jS(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),IS=o(((e,t)=>{var n=jS(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),LS=o(((e,t)=>{var n=MS(),r=NS(),i=PS(),a=FS(),o=IS();function s(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])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),RS=o(((e,t)=>{var n=LS(),r=dS(),i=AS();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),zS=o(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),BS=o(((e,t)=>{var n=zS();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),VS=o(((e,t)=>{var n=BS();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),HS=o(((e,t)=>{var n=BS();function r(e){return n(this,e).get(e)}t.exports=r})),US=o(((e,t)=>{var n=BS();function r(e){return n(this,e).has(e)}t.exports=r})),WS=o(((e,t)=>{var n=BS();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),GS=o(((e,t)=>{var n=RS(),r=VS(),i=HS(),a=US(),o=WS();function s(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])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),KS=o(((e,t)=>{var n=dS(),r=AS(),i=GS(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o})),qS=o(((e,t)=>{var n=dS(),r=fS(),i=pS(),a=mS(),o=hS(),s=KS();function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exp
9orts=c})),JS=o(((e,t)=>{var n=kS();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),YS=o(((e,t)=>{var n=JS();function r(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=r})),XS=o(((e,t)=>{var n=YS(),r=aS();function i(e,t,i){(i!==void 0&&!r(e[t],i)||i===void 0&&!(t in e))&&n(e,t,i)}t.exports=i})),ZS=o(((e,t)=>{function n(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}t.exports=n})),QS=o(((e,t)=>{t.exports=ZS()()})),$S=o(((e,t)=>{var n=_S(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r?n.Buffer:void 0,o=a?a.allocUnsafe:void 0;function s(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}t.exports=s})),eC=o(((e,t)=>{t.exports=_S().Uint8Array})),tC=o(((e,t)=>{var n=eC();function r(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}t.exports=r})),nC=o(((e,t)=>{var n=tC();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}t.exports=r})),rC=o(((e,t)=>{function n(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}t.exports=n})),iC=o(((e,t)=>{var n=SS(),r=Object.create;t.exports=function(){function e(){}return function(t){if(!n(t))return{};if(r)return r(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}()})),aC=o(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),oC=o(((e,t)=>{t.exports=aC()(Object.getPrototypeOf,Object)})),sC=o(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),cC=o(((e,t)=>{var n=iC(),r=oC(),i=sC();function a(e){return typeof e.constructor==`function`&&!i(e)?n(r(e)):{}}t.exports=a})),lC=o(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),uC=o(((e,t)=>{var n=xS(),r=lC(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),dC=o(((e,t)=>{var n=uC(),r=lC(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),fC=o(((e,t)=>{t.exports=Array.isArray})),pC=o(((e,t)=>{var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r})),mC=o(((e,t)=>{var n=CS(),r=pC();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),hC=o(((e,t)=>{var n=mC(),r=lC();function i(e){return r(e)&&n(e)}t.exports=i})),gC=o(((e,t)=>{function n(){return!1}t.exports=n})),_C=o(((e,t)=>{var n=_S(),r=gC(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),vC=o(((e,t)=>{var n=xS(),r=oC(),i=lC(),a=`[object Object]`,o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);function d(e){if(!i(e)||n(e)!=a)return!1;var t=r(e);if(t===null)return!0;var o=l.call(t,`constructor`)&&t.constructor;return typeof o==`function`&&o instanceof o&&c.call(o)==u}t.exports=d})),yC=o(((e,t)=>{var n=xS(),r=pC(),i=lC(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k={};k[b]=k[x]=k[S]=k[C]=k[w]=k[T]=k[E]=k[D]=k[O]=!0,k[a]=k[o]=k[v]=k[s]=k[y]=k[c]=k[l]=k[u]=k[d]=k[f]=k[p]=k[m]=k[h]=k[g]=k[_]=!1;function A(e){return i(e)&&r(e.length)&&!!k[n(e)]}t.exports=A})),bC=o(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),xC=o(((e,t)=>{var n=gS(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),SC=o(((e,t)=>{var n=yC(),r=bC(),i=xC(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),CC=o(((e,t)=>{function n(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}t.exports=n})),wC=o(((e,t)=>{var n=YS(),r=aS(),i=Object.prototype.hasOwnProperty;function a(e,t,a){var o=e[t];(!(i.call(e,t)&&r(o,a))||a===void 0&&!(t in e))&&n(e,t,a)}t.exports=a})),TC=o(((e,t)=>{var n=wC(),r=YS();function i(e,t,i,a){var o=!i;i||={};for(var s=-1,c=t.length;++s<c;){var l=t[s],u=a?a(i[l],e[l],l,i,e):void 0;u===void 0&&(u=e[l]),o?r(i,l,u):n(i,l,u)}return i}t.exports=i})),EC=o(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n})),DC=o(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e<t}t.exports=i})),OC=o(((e,t)=>{var n=EC(),r=dC(),i=fC(),a=_C(),o=DC(),s=SC(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),kC=o(((e,t)=>{function n(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}t.exports=n})),AC=o(((e,t)=>{var n=SS(),r=sC(),i=kC(),a=Object.prototype.hasOwnProperty;function o(e){if(!n(e))return i(e);var t=r(e),o=[];for(var s in e)s==`constructor`&&(t||!a.call(e,s))||o.push(s);return o}t.exports=o})),jC=o(((e,t)=>{var n=OC(),r=AC(),i=mC();function a(e){return i(e)?n(e,!0):r(e)}t.exports=a})),MC=o(((e,t)=>{var n=TC(),r=jC();function i(e){return n(e,r(e))}t.exports=i})),NC=o(((e,t)=>{var n=XS(),r=$S(),i=nC(),a=rC(),o=cC(),s=dC(),c=fC(),l=hC(),u=_C(),d=CS(),f=SS(),p=vC(),m=SC(),h=CC(),g=MC();function _(e,t,_,v,y,b,x){var S=h(e,_),C=h(t,_),w=x.get(C);if(w){n(e,_,w);return}var T=b?b(S,C,_+``,e,t,x):void 0,E=T===void 0;if(E){var D=c(C),O=!D&&u(C),k=!D&&!O&&m(C);T=C,D||O||k?c(S)?T=S:l(S)?T=a(S):O?(E=!1,T=r(C,!0)):k?(E=!1,T=i(C,!0)):T=[]:p(C)||s(C)?(T=S,s(S)?T=g(S):(!f(S)||d(S))&&(T=o(C))):E=!1}E&&(x.set(C,T),y(T,C,v,b,x),x.delete(C)),n(e,_,T)}
9t.exports=_})),PC=o(((e,t)=>{var n=qS(),r=XS(),i=QS(),a=NC(),o=SS(),s=jC(),c=CC();function l(e,t,u,d,f){e!==t&&i(t,function(i,s){if(f||=new n,o(i))a(e,t,s,u,l,d,f);else{var p=d?d(c(e,s),i,s+``,e,t,f):void 0;p===void 0&&(p=i),r(e,s,p)}},s)}t.exports=l})),FC=o(((e,t)=>{function n(e){return e}t.exports=n})),IC=o(((e,t)=>{function n(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)}t.exports=n})),LC=o(((e,t)=>{var n=IC(),r=Math.max;function i(e,t,i){return t=r(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=r(a.length-t,0),c=Array(s);++o<s;)c[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=i(c),n(e,this,l)}}t.exports=i})),RC=o(((e,t)=>{function n(e){return function(){return e}}t.exports=n})),zC=o(((e,t)=>{var n=RC(),r=JS(),i=FC();t.exports=r?function(e,t){return r(e,`toString`,{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i})),BC=o(((e,t)=>{var n=800,r=16,i=Date.now;function a(e){var t=0,a=0;return function(){var o=i(),s=r-(o-a);if(a=o,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=a})),VC=o(((e,t)=>{var n=zC();t.exports=BC()(n)})),HC=o(((e,t)=>{var n=FC(),r=LC(),i=VC();function a(e,t){return i(r(e,t,n),e+``)}t.exports=a})),UC=o(((e,t)=>{var n=aS(),r=mC(),i=DC(),a=SS();function o(e,t,o){if(!a(o))return!1;var s=typeof t;return(s==`number`?r(o)&&i(t,o.length):s==`string`&&t in o)?n(o[t],e):!1}t.exports=o})),WC=o(((e,t)=>{var n=HC(),r=UC();function i(e){return n(function(t,n){var i=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&typeof o==`function`?(a--,o):void 0,s&&r(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++i<a;){var c=n[i];c&&e(t,c,i,o)}return t})}t.exports=i})),GC=o(((e,t)=>{var n=PC();t.exports=WC()(function(e,t,r){n(e,t,r)})})),KC=o(((e,t)=>{var n=xS(),r=lC(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),qC=o(((e,t)=>{var n=fC(),r=KC(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),JC=o(((e,t)=>{var n=GS(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}
9i.Cache=n,t.exports=i})),YC=o(((e,t)=>{var n=JC(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),XC=o(((e,t)=>{var n=YC(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),ZC=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),QC=o(((e,t)=>{var n=vS(),r=ZC(),i=fC(),a=KC(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),$C=o(((e,t)=>{var n=QC();function r(e){return e==null?``:n(e)}t.exports=r})),ew=o(((e,t)=>{var n=fC(),r=qC(),i=XC(),a=$C();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),tw=o(((e,t)=>{var n=KC(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),nw=o(((e,t)=>{var n=ew(),r=tw();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),rw=o(((e,t)=>{var n=nw();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r})),iw=o(((e,t)=>{var n=wC(),r=ew(),i=DC(),a=SS(),o=tw();function s(e,t,s,c){if(!a(e))return e;t=r(t,e);for(var l=-1,u=t.length,d=u-1,f=e;f!=null&&++l<u;){var p=o(t[l]),m=s;if(p===`__proto__`||p===`constructor`||p===`prototype`)return e;if(l!=d){var h=f[p];m=c?c(h,p,f):void 0,m===void 0&&(m=a(h)?h:i(t[l+1])?[]:{})}n(f,p,m),f=f[p]}return e}t.exports=s})),aw=o(((e,t)=>{var n=iw();function r(e,t,r){return e==null?e:n(e,t,r)}t.exports=r})),ow=c(GC(),1),sw=c(rw(),1),cw=c(aw(),1);function lw(){return lw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lw.apply(null,arguments)}function uw(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var dw=[`outlineWidth`,`outlineColor`,`outlineOpacity`],fw=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,uw(e,dw)},pw=[`axis.ticks.text`,`axis.legend.text`,`legends.title.text`,`legends.text`,`legends.ticks.text`,`legends.title.text`,`labels.text`,`dots.text`,`markers.text`,`annotations.text`],mw=function(e,t){return lw({},t,e)},hw=function(e,t){var n=(0,ow.default)({},e,t);return pw.forEach((function(e){(0,cw.default)(n,e,mw((0,sw.default)(n,e),n.text))})),n},gw=function(e,t){return t?(0,ow.default)({},e,t):e},_w={background:`transparent`,text:{fontFamily:`sans-serif`,fontSize:11,fill:`#333333`,outlineWidth:0,outlineColor:`#ffffff`,outlineOpacity:1},axis:{domain:{line:{stroke:`transparent`,strokeWidth:1}},ticks:{line:{stroke:`#777777`,strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:`#dddddd`,strokeWidth:1}},legends:{hidden:{symbol:{fill:`#333333`,opacity:.6},text:{fill:`#333333`,opacity:.6}},text:{},ticks:{line:{stroke:`#777777`,strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:`#000000`,lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:`white`,color:`inherit`,fontSize:`inherit`,borderRadius:`2px`,boxShadow:`0 1px 2px rgba(0, 0, 0, 0.25)`,padding:`5px 9px`},basic:{whiteSpace:`pre`,display:`flex`,alignItems:`center`},chip:{marginRight:7},table:{},tableCell:{padding:`3px 5px`},tableCellValue:{fontWeight:`bold`}},crosshair:{line:{stroke:`#000000`,strokeWidth:1,strokeOpacity:.75,strokeDasharray:`6 6`}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:`#ffffff`,outlineOpacity:1},link:{stroke:`#000000`,strokeWidth:1,outlineWidth:2,outlineColor:`#ffffff`,outlineOpacity:1},outline:{fill:`none`,stroke:`#000000`,strokeWidth:2,outlineWidth:2,outlineColor:`#ffffff`,outlineOpacity:1},symbol:{fill:`#000000`,outlineWidth:2,outlineColor:`#ffffff`,outlineOpacity:1}}},vw=function(e){return(0,_.useMemo)((function(){return hw(_w,e)}),[e])},yw=function(e,t){return(0,_.useMemo)((function(){return gw(e,t)}),[e,t])},bw=(0,_.createContext)(null),xw={},Sw=function(e){var t=e.theme,n=t===void 0?xw:t,r=e.children,i=vw(n);return(0,Z.jsx)(bw.Provider,{value:i,children:r})},Cw=function(){var e=(0,_.useContext)(bw);if(e===null)throw Error(`Unable to find the theme, did you forget to wrap your component with ThemeProvider?`);return e},ww=c(o(((e,t)=>{var n=xS(),r=fC(),i=lC(),a=`[object String]`;function o(e){return typeof e==`string`||!r(e)&&i(e)&&n(e)==a}t.exports=o}))(),1),Tw=typeof window<`u`?window:typeof self<`u`?self:global,Ew=null,Dw=null,Ow=20,kw=Tw.clearTimeout,Aw=Tw.setTimeout,jw=Tw.cancelAnimationFrame||Tw.mozCancelAnimationFrame||Tw.webkitCancelAnimationFrame,Mw=Tw.requestAnimationFrame||Tw.mozRequestAnimationFrame||Tw.webkitRequestAnimationFrame;jw==null||Mw==null?(Ew=kw,Dw=function(e){return Aw(e,Ow)}):(Ew=function([e,t]){jw(e),kw(t)},Dw=function(e){let t=Mw(function(){kw(n),e()}),n=Aw(function(){jw(t),e()},Ow);return[t,n]});function Nw(e){let t,n,r,i,a,o,s,c=typeof document<`u`&&document.attachEvent;if(!c){o=function(e){let t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+`px`,i.style.height=n.offsetHeight+1+`px`,n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},a=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&typeof e.target.className.indexOf==`function`&&e.target.className.indexOf(`contract-trigger`)<0&&e.target.className.indexOf(`expand-trigger`)<0)return;let t=this;o(this),this.__resizeRAF__&&Ew(this.__resizeRAF__),this.__resizeRAF__=Dw(function(){a(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})};let e=!1,c=``;r=`animationstart`;let l=`Webkit Moz O ms`.split(` `),u=`webkitAnimationStart animationstart oAnimationStart MSAnimationStart`.split(` `),d=``;{let t=document.createElement(`fakeelement`);if(t.style.animationName!==void 0&&(e=!0),e===!1){for(let n=0;n<l.length;n++)if(t.style[l[n]+`AnimationName`]!==void 0){d=l[n],c=`-`+d.toLowerCase()+`-`,r=u[n],e=!0;break}}}n=`resizeanim`,t=`@`+c+`keyframes `+n+` { from { opacity: 0; } to { opacity: 0; } }
9 `,i=c+`animation: 1ms `+n+`; `}let l=function(n){if(!n.getElementById(`detectElementResize`)){let r=(t||``)+`.resize-triggers { `+(i||``)+`visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }`,a=n.head||n.getElementsByTagName(`head`)[0],o=n.createElement(`style`);o.id=`detectElementResize`,o.type=`text/css`,e!=null&&o.setAttribute(`nonce`,e),o.styleSheet?o.styleSheet.cssText=r:o.appendChild(n.createTextNode(r)),a.appendChild(o)}};return{addResizeListener:function(e,t){if(c)e.attachEvent(`onresize`,t);else{if(!e.__resizeTriggers__){let t=e.ownerDocument,i=Tw.getComputedStyle(e);i&&i.position===`static`&&(e.style.position=`relative`),l(t),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=t.createElement(`div`)).className=`resize-triggers`;let a=t.createElement(`div`);a.className=`expand-trigger`,a.appendChild(t.createElement(`div`));let c=t.createElement(`div`);c.className=`contract-trigger`,e.__resizeTriggers__.appendChild(a),e.__resizeTriggers__.appendChild(c),e.appendChild(e.__resizeTriggers__),o(e),e.addEventListener(`scroll`,s,!0),r&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName===n&&o(e)},e.__resizeTriggers__.addEventListener(r,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(t)}},removeResizeListener:function(e,t){if(c)e.detachEvent(`onresize`,t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener(`scroll`,s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch{}}}}}var Pw=class extends _.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;let{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){let r=window.getComputedStyle(this._parentNode)||{},i=parseFloat(r.paddingLeft||`0`),a=parseFloat(r.paddingRight||`0`),o=parseFloat(r.paddingTop||`0`),s=parseFloat(r.paddingBottom||`0`),c=this._parentNode.getBoundingClientRect(),l=c.height-o-s,u=c.width-i-a;if(!e&&this.state.height!==l||!t&&this.state.width!==u){this.setState({height:l,width:u});let e=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn(`scaledWidth and scaledHeight parameters have been deprecated; use width and height instead`))};
9typeof n==`function`&&n({height:l,width:u,get scaledHeight(){return e(),l},get scaledWidth(){return e(),u}})}}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){let{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(t!=null&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;let n=t.ownerDocument.defaultView.ResizeObserver;n==null?(this._detectElementResize=Nw(e),this._detectElementResize.addResizeListener(t,this._onResize)):(this._resizeObserver=new n(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(t)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){let{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:o,onResize:s,style:c={},tagName:l=`div`,...u}=this.props,{height:d,width:f}=this.state,p={overflow:`visible`},m={},h=!1;return r||(d===0&&(h=!0),p.height=0,m.height=d,m.scaledHeight=d),i||(f===0&&(h=!0),p.width=0,m.width=f,m.scaledWidth=f),a&&(h=!1),(0,_.createElement)(l,{ref:this._setRef,style:{...p,...c},...u},!h&&e(m))}};function Fw(e,t,n,r){var i=this,a=(0,_.useRef)(null),o=(0,_.useRef)(0),s=(0,_.useRef)(0),c=(0,_.useRef)(null),l=(0,_.useRef)([]),u=(0,_.useRef)(),d=(0,_.useRef)(),f=(0,_.useRef)(e),p=(0,_.useRef)(!0),m=(0,_.useRef)(),h=(0,_.useRef)();f.current=e;var g=typeof window<`u`,v=!t&&t!==0&&g;if(typeof e!=`function`)throw TypeError(`Expected a function`);t=+t||0;var y=!!(n||={}).leading,b=!(`trailing`in n)||!!n.trailing,x=!!n.flushOnExit&&b,S=`maxWait`in n,C=`debounceOnServer`in n&&!!n.debounceOnServer,w=S?Math.max(+n.maxWait||0,t):null,T=(0,_.useMemo)(function(){var e=function(e){var t=l.current,n=u.current;return l.current=u.current=null,o.current=e,s.current=s.current||e,d.current=f.current.apply(n,t)},n=function(e,t){v&&cancelAnimationFrame(c.current),c.current=v?requestAnimationFrame(e):setTimeout(e,t)},_=function(e){if(!p.current)return!1;var n=e-a.current;return!a.current||n>=t||n<0||S&&e-o.current>=w},T=function(t){return c.current=null,b&&l.current?e(t):(l.current=u.current=null,d.current)},E=function e(){var r=Date.now();if(y&&s.current===o.current&&D(),_(r))return T(r);if(p.current){var i=t-(r-a.current);n(e,S?Math.min(i,w-(r-o.current)):i)}},D=function(){r&&r({})},O=function(){if(g||C){var r,s=Date.now(),f=_(s);if(l.current=[].slice.call(arguments),u.current=i,a.current=s,x&&!m.current&&(m.current=function(){globalThis.document?.visibilityState===`hidden`&&h.current.flush()},(r=globalThis.document)==null||r.addEventListener==null||r.addEventListener(`visibilitychange`,m.current)),f){if(!c.current&&p.current)return o.current=a.current,n(E,t),y?e(a.current):d.current;if(S)return n(E,t),e(a.current)}return c.current||n(E,t),d.current}};return O.cancel=function(){var e=c.current;e&&(v?cancelAnimationFrame(c.current):clearTimeout(c.current)),o.current=0,l.current=a.current=u.current=c.current=null,e&&r&&r({})},O.isPending=function(){return!!c.current},O.flush=function(){return c.current?T(Date.now()):d.current},O},[y,S,t,w,b,x,v,g,C,r]);return h.current=T,(0,_.useEffect)(function(){return p.current=!0,function(){var e;x&&h.current.flush(),m.current&&=((e=globalThis.document)==null||e.removeEventListener==null||e.removeEventListener(`visibilitychange`,m.current),null),p.current=!1}},[x]),T}function Iw(e,t){return e===t}function Lw(e,t,n){var r=n&&n.equalityFn||Iw,i=(0,_.useRef)(e),a=(0,_.useState)({})[1],o=Fw((0,_.useCallback)(function(e){i.current=e,a({})},[a]),t,n,a),s=(0,_.useRef)(e);return r(s.current,e)||(o(e),s.current=e),[i.current,o]}function Rw(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function zw(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Bw(){}var Vw=.7,Hw=1/Vw,Uw=`\\s*([+-]?\\d+)\\s*`,Ww=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,Gw=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Kw=/^#([0-9a-f]{3,8})$/,qw=RegExp(`^rgb\\(${Uw},${Uw},${Uw}\\)$`),Jw=RegExp(`^rgb\\(${Gw},${Gw},${Gw}\\)$`),Yw=RegExp(`^rgba\\(${Uw},${Uw},${Uw},${Ww}\\)$`),Xw=RegExp(`^rgba\\(${Gw},${Gw},${Gw},${Ww}\\)$`),Zw=RegExp(`^hsl\\(${Ww},${Gw},${Gw}\\)$`),Qw=RegExp(`^hsla\\(${Ww},${Gw},${Gw},${Ww}\\)$`),$w={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};Rw(Bw,iT,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:eT,formatHex:eT,formatHex8:tT,formatHsl:nT,formatRgb:rT,toString:rT});function eT(){return this.rgb().formatHex()}function tT(){return this.rgb().formatHex8()}function nT(){return _T(this).formatHsl()}function rT(){return this.rgb().formatRgb()}function iT(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Kw.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?aT(t):n===3?new lT(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?oT(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?oT(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=qw.exec(e))?new lT(t[1],t[2],t[3],1):(t=Jw.exec(e))?new lT(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Yw.exec(e))?oT(t[1],t[2],t[3],t[4]):(t=Xw.exec(e))?oT(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Zw.exec(e))?gT(t[1],t[2]/100,t[3]/100,1):(t=Qw.exec(e))?gT(t[1],t[2]/100,t[3]/100,t[4]):$w.hasOwnProperty(e)?aT($w[e]):e===`transparent`?new lT(NaN,NaN,NaN,0):null}function aT(e){return new lT(e>>16&255,e>>8&255,e&255,1)}function oT(e,t,n,r){return r<=0&&(e=t=n=NaN),new lT(e,t,n,r)}function sT(e){return e instanceof Bw||(e=iT(e)),e?(e=e.rgb(),new lT(e.r,e.g,e.b,e.opacity)):new lT}function cT(e,t,n,r){return arguments.length===1?sT(e):new lT(e,t,n,r??1)}function lT(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Rw(lT,cT,zw(Bw,{brighter(e){return e=e==null?Hw:Hw**+e,new lT(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Vw:Vw**+e,new lT(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new lT(mT(this.r),mT(this.g),mT(this.b),pT(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:uT,formatHex:uT,formatHex8:dT,formatRgb:fT,toString:fT}));function uT(){return`#${hT(this.r)}${hT(this.g)}${hT(this.b)}`}function dT(){return`#${hT(this.r)}${hT(this.g)}${hT(this.b)}${hT((isNaN(this.opacity)?1:this.opacity)*255)}`}function fT(){let e=pT(this.opacity);return`${e===1?`rgb(`:`rgba(`}${mT(this.r)}, ${mT(this.g)}, ${mT(this.b)}${e===1?`)`:`, ${e})`}`}function pT(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function mT(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function hT(e){return e=mT(e),(e<16?`0`:``)+e.toString(16)}function gT(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new yT(e,t,n,r)}function _T(e){if(e instanceof yT)return new yT(e.h,e.s,e.l,e.opacity);if(e instanceof Bw||(e=iT(e)),!e)return new yT;if(e instanceof yT)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new yT(o,s,c,e.opacity)}function vT(e,t,n,r){return arguments.length===1?_T(e):new yT(e,t,n,r??1)}function yT(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Rw(yT,vT,zw(Bw,{brighter(e){return e=e==null?Hw:Hw**+e,new yT(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Vw:Vw**+e,new yT(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,i=2*n-r;return new lT(ST(e>=240?e-240:e+120,i,r),ST(e,i,r),ST(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new yT(bT(this.h),xT(this.s),xT(this.l),pT(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(){let e=pT(this.opacity);return`${e===1?`hsl(`:`hsla(`}${bT(this.h)}, ${xT(this.s)*100}%, ${xT(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function bT(e){return e=(e||0)%360,e<0?e+360:e}function xT(e){return Math.max(0,Math.min(1,e||0))}function ST(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var CT=Math.PI/180,wT=180/Math.PI,TT=-.14861,ET=1.78277,DT=-.29227,OT=-.90649,kT=1.97294,AT=kT*OT,jT=kT*ET,MT=ET*DT-OT*TT;function NT(e){if(e instanceof FT)return new FT(e.h,e.s,e.l,e.opacity);e instanceof lT||(e=sT(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(MT*r+AT*t-jT*n)/(MT+AT-jT),a=r-i,o=(kT*(n-i)-DT*a)/OT,s=Math.sqrt(o*o+a*a)/(kT*i*(1-i)),c=s?Math.atan2(o,a)*wT-120:NaN;return new FT(c<0?c+360:c,s,i,e.opacity)}function PT(e,t,n,r){return arguments.length===1?NT(e):new FT(e,t,n,r??1)}function FT(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Rw(FT,PT,zw(Bw,{brighter(e){return e=e==null?Hw:Hw**+e,new FT(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Vw:Vw**+e,new FT(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*CT,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new lT(255*(t+n*(TT*r+ET*i)),255*(t+n*(DT*r+OT*i)),255*(t+kT*r*n),this.opacity)}}));function IT(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}function LT(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),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=r<t-1?e[r+2]:2*a-i;return IT((n-r/t)*t,o,i,a,s)}}var RT=e=>()=>e;function zT(e,t){return function(n){return e+n*t}}function BT(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function VT(e,t){var n=t-e;return n?zT(e,n>180||n<-180?n-360*Math.round(n/360):n):RT(isNaN(e)?t:e)}function HT(e){return(e=+e)==1?UT:function(t,n){return n-t?BT(t,n,e):RT(isNaN(t)?n:t)}}function UT(e,t){var n=t-e;return n?zT(e,n):RT(isNaN(e)?t:e)}var WT=(function e(t){var n=HT(t);function r(e,t){var r=n((e=cT(e)).r,(t=cT(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=UT(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function GT(e){return function(t){var n=t.length,r=Array(n),i=Array(n),a=Array(n),o,s;for(o=0;o<n;++o)s=cT(t[o]),r[o]=s.r||0,i[o]=s.g||0,a[o]=s.b||0;return r=e(r),i=e(i),a=e(a),s.opacity=1,function(e){return s.r=r(e),s.g=i(e),s.b=a(e),s+``}}}var KT=GT(LT);function qT(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function JT(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function YT(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=iE(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function XT(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function ZT(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function QT(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=iE(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var $T=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eE=new RegExp($T.source,`g`);function tE(e){return function(){return e}}function nE(e){return function(t){return e(t)+``}}function rE(e,t){var n=$T.lastIndex=eE.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=$T.exec(e))&&(i=eE.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:ZT(r,i)}
9)),n=eE.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?nE(c[0].x):tE(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function iE(e,t){var n=typeof t,r;return t==null||n===`boolean`?RT(t):(n===`number`?ZT:n===`string`?(r=iT(t))?(t=r,WT):rE:t instanceof iT?WT:t instanceof Date?XT:JT(t)?qT:Array.isArray(t)?YT:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?QT:ZT)(e,t)}function aE(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function oE(e){return(function t(n){n=+n;function r(t,r){var i=e((t=PT(t)).h,(r=PT(r)).h),a=UT(t.s,r.s),o=UT(t.l,r.l),s=UT(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=a(e),t.l=o(e**+n),t.opacity=s(e),t+``}}return r.gamma=t,r})(1)}oE(VT);var sE=oE(UT);function cE(e,t){t===void 0&&(t=e,e=iE);for(var n=0,r=t.length-1,i=t[0],a=Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return a[t](e-t)}}var lE=o(((e,t)=>{var n=`__lodash_hash_undefined__`;function r(e){return this.__data__.set(e,n),this}t.exports=r})),uE=o(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),dE=o(((e,t)=>{var n=GS(),r=lE(),i=uE();function a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=i,t.exports=a})),fE=o(((e,t)=>{function n(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}t.exports=n})),pE=o(((e,t)=>{function n(e){return e!==e}t.exports=n})),mE=o(((e,t)=>{function n(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}t.exports=n})),hE=o(((e,t)=>{var n=fE(),r=pE(),i=mE();function a(e,t,a){return t===t?i(e,t,a):n(e,r,a)}t.exports=a})),gE=o(((e,t)=>{var n=hE();function r(e,t){return!!(e!=null&&e.length)&&n(e,t,0)>-1}t.exports=r})),_E=o(((e,t)=>{function n(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}t.exports=n})),vE=o(((e,t)=>{function n(e,t){return e.has(t)}t.exports=n})),yE=o(((e,t)=>{var n=dE(),r=gE(),i=_E(),a=ZC(),o=bC(),s=vE(),c=200;function l(e,t,l,u){var d=-1,f=r,p=!0,m=e.length,h=[],g=t.length;if(!m)return h;l&&(t=a(t,o(l))),u?(f=i,p=!1):t.length>=c&&(f=s,p=!1,t=new n(t));outer:for(;++d<m;){var _=e[d],v=l==null?_:l(_);if(_=u||_!==0?_:0,p&&v===v){for(var y=g;y--;)if(t[y]===v)continue outer;h.push(_)}else f(t,v,u)||h.push(_)}return h}t.exports=l})),bE=o(((e,t)=>{var n=yE(),r=HC(),i=hC();t.exports=r(function(e,t){return i(e)?n(e,t):[]})}));function xE(e){return function(){return e}}var SE=Math.abs,CE=Math.atan2,wE=Math.cos,TE=Math.max,EE=Math.min,DE=Math.sin,OE=Math.sqrt,kE=Math.PI,AE=kE/2,jE=2*kE;function ME(e){return e>1?0:e<-1?kE:Math.acos(e)}function NE(e){return e>=1?AE:e<=-1?-AE:Math.asin(e)}var PE=Math.PI,FE=2*PE,IE=1e-6,LE=FE-IE;function RE(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function zE(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return RE;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var BE=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?RE:zE(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>IE)if(!(Math.abs(u*s-c*l)>IE)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((PE-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>IE&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}
vendor: 20,530 bytes, line 9
9arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>IE||Math.abs(this._y1-l)>IE)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%FE+FE),d>LE?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>IE&&this._append`A${n},${n},0,${+(d>=PE)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function VE(){return new BE}VE.prototype=BE.prototype;function HE(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new BE(t)}function UE(e){return e.innerRadius}function WE(e){return e.outerRadius}function GE(e){return e.startAngle}function KE(e){return e.endAngle}function qE(e){return e&&e.padAngle}function JE(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<1e-12))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function YE(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/OE(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*OE(TE(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x01:-u,y01:-d,x11:w*(i/x-1),y11:T*(i/x-1)}}function XE(){var e=UE,t=WE,n=xE(0),r=null,i=GE,a=KE,o=qE,s=null,c=HE(l);function l(){var l,u,d=+e.apply(this,arguments),f=+t.apply(this,arguments),p=i.apply(this,arguments)-AE,m=a.apply(this,arguments)-AE,h=SE(m-p),g=m>p;if(s||=l=c(),f<d&&(u=f,f=d,d=u),!(f>1e-12))s.moveTo(0,0);else if(h>jE-1e-12)s.moveTo(f*wE(p),f*DE(p)),s.arc(0,0,f,p,m,!g),d>1e-12&&(s.moveTo(d*wE(m),d*DE(m)),s.arc(0,0,d,m,p,g));else{var _=p,v=m,y=p,b=m,x=h,S=h,C=o.apply(this,arguments)/2,w=C>1e-12&&(r?+r.apply(this,arguments):OE(d*d+f*f)),T=EE(SE(f-d)/2,+n.apply(this,arguments)),E=T,D=T,O,k;if(w>1e-12){var A=NE(w/d*DE(C)),j=NE(w/f*DE(C));(x-=A*2)>1e-12?(A*=g?1:-1,y+=A,b-=A):(x=0,y=b=(p+m)/2),(S-=j*2)>1e-12?(j*=g?1:-1,_+=j,v-=j):(S=0,_=v=(p+m)/2)}var M=f*wE(_),N=f*DE(_),P=d*wE(b),F=d*DE(b);if(T>1e-12){var I=f*wE(v),L=f*DE(v),R=d*wE(y),z=d*DE(y),B;if(h<kE)if(B=JE(M,N,R,z,I,L,P,F)){var V=M-B[0],H=N-B[1],U=I-B[0],ee=L-B[1],W=1/DE(ME((V*U+H*ee)/(OE(V*V+H*H)*OE(U*U+ee*ee)))/2),te=OE(B[0]*B[0]+B[1]*B[1]);E=EE(T,(d-te)/(W-1)),D=EE(T,(f-te)/(W+1))}else E=D=0}S>1e-12?D>1e-12?(O=YE(R,z,M,N,f,D,g),k=YE(I,L,P,F,f,D,g),s.moveTo(O.cx+O.x01,O.cy+O.y01),D<T?s.arc(O.cx,O.cy,D,CE(O.y01,O.x01),CE(k.y01,k.x01),!g):(s.arc(O.cx,O.cy,D,CE(O.y01,O.x01),CE(O.y11,O.x11),!g),s.arc(0,0,f,CE(O.cy+O.y11,O.cx+O.x11),CE(k.cy+k.y11,k.cx+k.x11),!g),s.arc(k.cx,k.cy,D,CE(k.y11,k.x11),CE(k.y01,k.x01),!g))):(s.moveTo(M,N),s.arc(0,0,f,_,v,!g)):s.moveTo(M,N),!(d>1e-12)||!(x>1e-12)?s.lineTo(P,F):E>1e-12?(O=YE(P,F,I,L,d,-E,g),k=YE(M,N,R,z,d,-E,g),s.lineTo(O.cx+O.x01,O.cy+O.y01),E<T?s.arc(O.cx,O.cy,E,CE(O.y01,O.x01),CE(k.y01,k.x01),!g):(s.arc(O.cx,O.cy,E,CE(O.y01,O.x01),CE(O.y11,O.x11),!g),s.arc(0,0,d,CE(O.cy+O.y11,O.cx+O.x11),CE(k.cy+k.y11,k.cx+k.x11),g),s.arc(k.cx,k.cy,E,CE(k.y11,k.x11),CE(k.y01,k.x01),!g))):s.arc(0,0,d,b,y,g)}if(s.closePath(),l)return s=null,l+``||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-kE/2;return[wE(r)*n,DE(r)*n]},l.innerRadius=function(t){return arguments.length?(e=typeof t==`function`?t:xE(+t),l):e},l.outerRadius=function(e){return arguments.length?(t=typeof e==`function`?e:xE(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n=typeof e==`function`?e:xE(+e),l):n},l.padRadius=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:xE(+e),l):r},l.startAngle=function(e){return arguments.length?(i=typeof e==`function`?e:xE(+e),l):i},l.endAngle=function(e){return arguments.length?(a=typeof e==`function`?e:xE(+e),l):a},l.padAngle=function(e){return arguments.length?(o=typeof e==`function`?e:xE(+e),l):o},l.context=function(e){return arguments.length?(s=e??null,l):s},l}Array.prototype.slice;function ZE(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function QE(e){this._context=e}QE.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 $E(e){return new QE(e)}function eD(e){return e[0]}function tD(e){return e[1]}function nD(e,t){var n=xE(!0),r=null,i=$E,a=null,o=HE(s);e=typeof e==`function`?e:e===void 0?eD:xE(e),t=typeof t==`function`?t:t===void 0?tD:xE(t);function s(s){var c,l=(s=ZE(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:xE(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:xE(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:xE(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}var rD=aD($E);function iD(e){this._curve=e}iD.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function aD(e){function t(t){return new iD(e(t))}return t._curve=e,t}function oD(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(aD(e)):t()._curve},e}function sD(){return oD(nD().curve(rD))}function cD(){}function lD(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function uD(e){this._context=e}uD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:lD(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:lD(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function dD(e){return new uD(e)}function fD(e){this._context=e}fD.prototype={areaStart:cD,areaEnd:cD,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:lD(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function pD(e){return new fD(e)}function mD(e){this._context=e}mD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:lD(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function hD(e){return new mD(e)}function gD(e,t){this._basis=new uD(e),this._beta=t}gD.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var _D=(function e(t){function n(e){return t===1?new uD(e):new gD(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function vD(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 yD(e,t){this._context=e,this._k=(1-t)/6}yD.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:vD(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:vD(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}};var bD=(function e(t){function n(e){return new yD(e,t)}return n.tension=function(t){return e(+t)},n})(0);function xD(e,t){this._context=e,this._k=(1-t)/6}xD.prototype={areaStart:cD,areaEnd:cD,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:vD(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}};var SD=(function e(t){function n(e){return new xD(e,t)}return n.tension=function(t){return e(+t)},n})(0);function CD(e,t){this._context=e,this._k=(1-t)/6}CD.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(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:vD(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}};var wD=(function e(t){function n(e){return new CD(e,t)}return n.tension=function(t){return e(+t)},n})(0);function TD(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>1e-12){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function ED(e,t){this._context=e,this._alpha=t}ED.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=(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:TD(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}};var DD=(function e(t){function n(e){return t?new ED(e,t):new yD(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function OD(e,t){this._context=e,this._alpha=t}OD.prototype={areaStart:cD,areaEnd:cD,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=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 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},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=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:TD(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}};var kD=(function e(t){function n(e){return t?new OD(e,t):new xD(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function AD(e,t){this._context=e,this._alpha=t}AD.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(){(this._line||this._line!==0&&this._point===3)&&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=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:TD(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}};var jD=(function e(t){function n(e){return t?new AD(e,t):new CD(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function MD(e){this._context=e}MD.prototype={areaStart:cD,areaEnd:cD,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function ND(e){return new MD(e)}function PD(e){return e<0?-1:1}function FD(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(PD(a)+PD(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function ID(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function LD(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function RD(e){this._context=e}RD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:LD(this,this._t0,ID(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,LD(this,ID(this,n=FD(this,e,t)),n);break;default:LD(this,this._t0,n=FD(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function zD(e){this._context=new BD(e)}(zD.prototype=Object.create(RD.prototype)).point=function(e,t){RD.prototype.point.call(this,t,e)};function BD(e){this._context=e}BD.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function VD(e){return new RD(e)}function HD(e){return new zD(e)}function UD(e){this._context=e}UD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=WD(e),i=WD(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function WD(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function GD(e){return new UD(e)}function KD(e,t){this._context=e,this._t=t}KD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function qD(e){return new KD(e,.5)}function JD(e){return new KD(e,0)}function YD(e){return new KD(e,1)}function XD(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function ZD(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function QD(e,t){return e[t]}function $D(e){let t=[];return t.key=e,t}
9function eO(){var e=xE([]),t=ZD,n=XD,r=QD;function i(i){var a=Array.from(e.apply(this,arguments),$D),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=ZE(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:xE(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:xE(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?ZD:typeof e==`function`?e:xE(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??XD,i):n},i}function tO(e,t){if((c=e.length)>0)for(var n,r=0,i,a,o,s,c,l=e[t[0]].length;r<l;++r)for(o=s=0,n=0;n<c;++n)(a=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=o,i[1]=o+=a):a<0?(i[1]=s,i[0]=s+=a):(i[0]=0,i[1]=a)}function nO(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function rO(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function iO(e){let t,n,r;e.length===2?(t=e===nO||e===rO?e:aO,n=e,r=e):(t=nO,n=(t,n)=>nO(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function aO(){return 0}function oO(e){return e===null?NaN:+e}var sO=iO(nO),cO=sO.right;sO.left,iO(oO).center;var lO=class extends Map{constructor(e,t=pO){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(uO(this,e))}has(e){return super.has(uO(this,e))}set(e,t){return super.set(dO(this,e),t)}delete(e){return super.delete(fO(this,e))}};function uO({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function dO({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function fO({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function pO(e){return typeof e==`object`&&e?e.valueOf():e}var mO=Math.sqrt(50),hO=Math.sqrt(10),gO=Math.sqrt(2);function _O(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=mO?10:a>=hO?5:a>=gO?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?_O(e,t,n*2):[s,c,l]}function vO(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?_O(t,e,n):_O(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r)if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o;else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function yO(e,t,n){return t=+t,e=+e,n=+n,_O(e,t,n)[2]}function bO(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?yO(t,e,n):yO(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function xO(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}function SO(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function CO(e,t){switch(arguments.length){case 0:break;case 1:typeof e==`function`?this.interpolator(e):this.range(e);break;default:this.domain(e),typeof t==`function`?this.interpolator(t):this.range(t);break}return this}var wO=Symbol(`implicit`);function TO(){var e=new lO,t=[],n=[],r=wO;function i(i){let a=e.get(i);if(a===void 0){if(r!==wO)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new lO;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return TO(t,n).unknown(r)},SO.apply(i,arguments),i}function EO(){var e=TO().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=xO(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()}
9,e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return EO(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},SO.apply(d(),arguments)}function DO(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return DO(t())},e}function OO(){return DO(EO.apply(null,arguments).paddingInner(1))}function kO(e){return function(){return e}}function AO(e){return+e}var jO=[0,1];function MO(e){return e}function NO(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:kO(isNaN(t)?NaN:.5)}function PO(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function FO(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=NO(i,r),a=n(o,a)):(r=NO(r,i),a=n(a,o)),function(e){return a(r(e))}}function IO(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=NO(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=cO(e,t,1,r)-1;return a[n](i[n](t))}}function LO(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function RO(){var e=jO,t=jO,n=iE,r,i,a,o=MO,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==MO&&(o=PO(e[0],e[n-1])),s=n>2?IO:FO,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),ZT))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,AO),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=aE,u()},d.clamp=function(e){return arguments.length?(o=e?!0:MO,u()):o!==MO},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function zO(){return RO()(MO,MO)}function BO(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function VO(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function HO(e){return e=VO(Math.abs(e)),e?e[1]:NaN}function UO(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function WO(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var GO=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function KO(e){if(!(t=GO.exec(e)))throw Error(`invalid format: `+e);var t;return new qO({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]})}KO.prototype=qO.prototype;function qO(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+``}qO.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 JO(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var YO;function XO(e,t){var n=VO(e,t);if(!n)return e+``;var r=n[0],i=n[1],a=i-(YO=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+VO(e,Math.max(0,t+a-1))[0]}function ZO(e,t){var n=VO(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var QO={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+``},d:BO,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return ZO(e*100,t)},r:ZO,s:XO,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function $O(e){return e}var ek=Array.prototype.map,tk=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];
9function nk(e){var t=e.grouping===void 0||e.thousands===void 0?$O:UO(ek.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?$O:WO(ek.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`-`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e){e=KO(e);var l=e.fill,u=e.align,d=e.sign,f=e.symbol,p=e.zero,m=e.width,h=e.comma,g=e.precision,_=e.trim,v=e.type;v===`n`?(h=!0,v=`g`):QO[v]||(g===void 0&&(g=12),_=!0,v=`g`),(p||l===`0`&&u===`=`)&&(p=!0,l=`0`,u=`=`);var y=f===`$`?n:f===`#`&&/[boxX]/.test(v)?`0`+v.toLowerCase():``,b=f===`$`?r:/[%p]/.test(v)?o:``,x=QO[v],S=/[defgprs%]/.test(v);g=g===void 0?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g));function C(e){var n=y,r=b,o,f,C;if(v===`c`)r=x(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:x(Math.abs(e),g),_&&(e=JO(e)),w&&+e==0&&d!==`+`&&(w=!1),n=(w?d===`(`?d:s:d===`-`||d===`(`?``:d)+n,r=(v===`s`?tk[8+YO/3]:``)+r+(w&&d===`(`?`)`:``),S){for(o=-1,f=e.length;++o<f;)if(C=e.charCodeAt(o),48>C||C>57){r=(C===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}h&&!p&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<m?Array(m-T+1).join(l):``;switch(h&&p&&(e=t(E+e,E.length?m-r.length:1/0),E=``),u){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r;break}return a(e)}return C.toString=function(){return e+``},C}function u(e,t){var n=l((e=KO(e),e.type=`f`,e)),r=Math.max(-8,Math.min(8,Math.floor(HO(t)/3)))*3,i=10**-r,a=tk[8+r/3];return function(e){return n(i*e)+a}}return{format:l,formatPrefix:u}}var rk,ik,ak;ok({decimal:`.`,thousands:`,`,grouping:[3],currency:[`$`,``],minus:`-`});function ok(e){return rk=nk(e),ik=rk.format,ak=rk.formatPrefix,rk}function sk(e){return Math.max(0,-HO(Math.abs(e)))}function ck(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(HO(t)/3)))*3-HO(Math.abs(e)))}function lk(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,HO(t)-HO(e))+1}function uk(e,t,n,r){var i=bO(e,t,n),a;switch(r=KO(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=ck(i,o))&&(r.precision=a),ak(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=lk(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=sk(i))&&(r.precision=a-(r.type===`%`)*2);break}return ik(r)}function dk(e){var t=e.domain;return e.ticks=function(e){var n=t();return vO(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return uk(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-- >0;){if(l=yO(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function fk(){var e=zO();return e.copy=function(){return LO(e,fk())},SO.apply(e,arguments),dk(e)}function pk(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function mk(e){return Math.log(e)}function hk(e){return Math.exp(e)}function gk(e){return-Math.log(-e)}function _k(e){return-Math.exp(-e)}function vk(e){return isFinite(e)?+(`1e`+e):e<0?0:e}function yk(e){return e===10?vk:e===Math.E?Math.exp:t=>e**+t}function bk(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 xk(e){return(t,n)=>-e(-t,n)}function Sk(e){let t=e(mk,hk),n=t.domain,r=10,i,a;function o(){return i=bk(r),a=yk(r),n()[0]<0?(i=xk(i),a=xk(a),e(gk,_k)):e(mk,hk),t}return t.base=function(e){return arguments.length?(r=+e,o()):r},t.domain=function(e){return arguments.length?(n(e),o()):n()},t.ticks=e=>{let t=n(),o=t[0],s=t[t.length-1],c=s<o;c&&([o,s]=[s,o]);let l=i(o),u=i(s),d,f,p=e==null?10:+e,m=[];if(!(r%1)&&u-l<p){if(l=Math.floor(l),u=Math.ceil(u),o>0){for(;l<=u;++l)for(d=1;d<r;++d)if(f=l<0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}}else for(;l<=u;++l)for(d=r-1;d>=1;--d)if(f=l>0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}m.length*2<p&&(m=vO(o,s,p))}else m=vO(l,u,Math.min(u-l,p)).map(a);return c?m.reverse():m},t.tickFormat=(e,n)=>{if(e??=10,n??=r===10?`s`:`,`,typeof n!=`function`&&(!(r%1)&&(n=KO(n)).precision==null&&(n.trim=!0),n=ik(n)),e===1/0)return n;let o=Math.max(1,r*e/t.ticks().length);return e=>{let t=e/a(Math.round(i(e)));return t*r<r-.5&&(t*=r),t<=o?n(e):``}},t.nice=()=>n(pk(n(),{floor:e=>a(Math.floor(i(e))),ceil:e=>a(Math.ceil(i(e)))})),t}function Ck(){let e=Sk(RO()).domain([1,10]);return e.copy=()=>LO(e,Ck()).base(e.base()),SO.apply(e,arguments),e}
9function wk(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Tk(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Ek(e){var t=1,n=e(wk(t),Tk(t));return n.constant=function(n){return arguments.length?e(wk(t=+n),Tk(t)):t},dk(n)}function Dk(){var e=Ek(RO());return e.copy=function(){return LO(e,Dk()).constant(e.constant())},SO.apply(e,arguments)}function Ok(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(e){return e!=null&&e<=e?i[cO(r,e,0,n)]:a}function s(){var i=-1;for(r=Array(n);++i<n;)r[i]=((i+1)*t-(i-n)*e)/(n+1);return o}return o.domain=function(n){return arguments.length?([e,t]=n,e=+e,t=+t,s()):[e,t]},o.range=function(e){return arguments.length?(n=(i=Array.from(e)).length-1,s()):i.slice()},o.invertExtent=function(a){var o=i.indexOf(a);return o<0?[NaN,NaN]:o<1?[e,r[0]]:o>=n?[r[n-1],t]:[r[o-1],r[o]]},o.unknown=function(e){return arguments.length&&(a=e),o},o.thresholds=function(){return r.slice()},o.copy=function(){return Ok().domain([e,t]).range(i).unknown(a)},SO.apply(dk(o),arguments)}var kk=new Date,Ak=new Date;function jk(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>jk(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(kk.setTime(+t),Ak.setTime(+r),e(kk),e(Ak),Math.floor(n(kk,Ak))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var Mk=jk(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Mk.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?jk(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Mk),Mk.range;var Nk=1e3,Pk=Nk*60,Fk=Pk*60,Ik=Fk*24,Lk=Ik*7,Rk=Ik*30,zk=Ik*365,Bk=jk(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Nk)},(e,t)=>(t-e)/Nk,e=>e.getUTCSeconds());Bk.range;var Vk=jk(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Nk)},(e,t)=>{e.setTime(+e+t*Pk)},(e,t)=>(t-e)/Pk,e=>e.getMinutes());Vk.range;var Hk=jk(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Pk)},(e,t)=>(t-e)/Pk,e=>e.getUTCMinutes());Hk.range;var Uk=jk(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Nk-e.getMinutes()*Pk)},(e,t)=>{e.setTime(+e+t*Fk)},(e,t)=>(t-e)/Fk,e=>e.getHours());Uk.range;var Wk=jk(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Fk)},(e,t)=>(t-e)/Fk,e=>e.getUTCHours());Wk.range;var Gk=jk(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Pk)/Ik,e=>e.getDate()-1);Gk.range;var Kk=jk(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ik,e=>e.getUTCDate()-1);Kk.range;var qk=jk(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ik,e=>Math.floor(e/Ik));qk.range;function Jk(e){return jk(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Pk)/Lk)}var Yk=Jk(0),Xk=Jk(1),Zk=Jk(2),Qk=Jk(3),$k=Jk(4),eA=Jk(5),tA=Jk(6);Yk.range,Xk.range,Zk.range,Qk.range,$k.range,eA.range,tA.range;function nA(e){return jk(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/Lk)}var rA=nA(0),iA=nA(1),aA=nA(2),oA=nA(3),sA=nA(4),cA=nA(5),lA=nA(6);rA.range,iA.range,aA.range,oA.range,sA.range,cA.range,lA.range;var uA=jk(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());uA.range;var dA=jk(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());dA.range;var fA=jk(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());fA.every=e=>
9!isFinite(e=Math.floor(e))||!(e>0)?null:jk(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),fA.range;var pA=jk(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());pA.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:jk(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),pA.range;function mA(e,t,n,r,i,a){let o=[[Bk,1,Nk],[Bk,5,5*Nk],[Bk,15,15*Nk],[Bk,30,30*Nk],[a,1,Pk],[a,5,5*Pk],[a,15,15*Pk],[a,30,30*Pk],[i,1,Fk],[i,3,3*Fk],[i,6,6*Fk],[i,12,12*Fk],[r,1,Ik],[r,2,2*Ik],[n,1,Lk],[t,1,Rk],[t,3,3*Rk],[e,1,zk]];function s(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:c(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function c(t,n,r){let i=Math.abs(n-t)/r,a=iO(([,,e])=>e).right(o,i);if(a===o.length)return e.every(bO(t/zk,n/zk,r));if(a===0)return Mk.every(Math.max(bO(t,n,r),1));let[s,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(c)}return[s,c]}var[hA,gA]=mA(pA,dA,rA,qk,Wk,Hk),[_A,vA]=mA(fA,uA,Yk,Gk,Uk,Vk),yA=new Date,bA=new Date;function xA(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),n==null?1:Math.floor(n)),e},i.range=function(n,r,a){var o=[],s;if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=function(n){return xA(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(i.count=function(t,r){return yA.setTime(+t),bA.setTime(+r),e(yA),e(bA),Math.floor(n(yA,bA))},i.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?function(t){return r(t)%e===0}:function(t){return i.count(0,t)%e===0}):i}),i}var SA=xA(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});SA.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?xA(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):SA},SA.range;var CA=1e3,wA=6e4,TA=36e5,EA=864e5,DA=6048e5,OA=xA(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*CA)},function(e,t){return(t-e)/CA},function(e){return e.getUTCSeconds()});OA.range;var kA=xA(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*CA)},function(e,t){e.setTime(+e+t*wA)},function(e,t){return(t-e)/wA},function(e){return e.getMinutes()});kA.range;var AA=xA(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*CA-e.getMinutes()*wA)},function(e,t){e.setTime(+e+t*TA)},function(e,t){return(t-e)/TA},function(e){return e.getHours()});AA.range;var jA=xA(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*wA)/EA},function(e){return e.getDate()-1});jA.range;function MA(e){return xA(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t*7)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*wA)/DA})}var NA=MA(0),PA=MA(1),FA=MA(2),IA=MA(3),LA=MA(4),RA=MA(5),zA=MA(6);NA.range,PA.range,FA.range,IA.range,LA.range,RA.range,zA.range;var BA=xA(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});BA.range;var VA=xA(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()});
9VA.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:xA(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)})},VA.range;var HA=xA(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*wA)},function(e,t){return(t-e)/wA},function(e){return e.getUTCMinutes()});HA.range;var UA=xA(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*TA)},function(e,t){return(t-e)/TA},function(e){return e.getUTCHours()});UA.range;var WA=xA(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/EA},function(e){return e.getUTCDate()-1});WA.range;function GA(e){return xA(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t*7)},function(e,t){return(t-e)/DA})}var KA=GA(0),qA=GA(1),JA=GA(2),YA=GA(3),XA=GA(4),ZA=GA(5),QA=GA(6);KA.range,qA.range,JA.range,YA.range,XA.range,ZA.range,QA.range;var $A=xA(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()});$A.range;var ej=xA(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()});ej.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:xA(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)})},ej.range;function tj(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 nj(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 rj(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function ij(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=dj(i),u=fj(i),d=dj(a),f=fj(a),p=dj(o),m=fj(o),h=dj(s),g=fj(s),_=dj(c),v=fj(c),y={a:N,A:P,b:F,B:I,c:null,d:Nj,e:Nj,f:Rj,g:Yj,G:Zj,H:Pj,I:Fj,j:Ij,L:Lj,m:zj,M:Bj,p:L,q:R,Q:bM,s:xM,S:Vj,u:Hj,U:Uj,V:Gj,w:Kj,W:qj,x:null,X:null,y:Jj,Y:Xj,Z:Qj,"%":yM},b={a:z,A:B,b:V,B:H,c:null,d:$j,e:$j,f:iM,g:hM,G:_M,H:eM,I:tM,j:nM,L:rM,m:aM,M:oM,p:U,q:ee,Q:bM,s:xM,S:sM,u:cM,U:lM,V:dM,w:fM,W:pM,x:null,X:null,y:mM,Y:gM,Z:vM,"%":yM},x={a:E,A:D,b:O,B:k,c:A,d:Cj,e:Cj,f:kj,g:yj,G:vj,H:Tj,I:Tj,j:wj,L:Oj,m:Sj,M:Ej,p:T,q:xj,Q:jj,s:Mj,S:Dj,u:mj,U:hj,V:gj,w:pj,W:_j,x:j,X:M,y:yj,Y:vj,Z:bj,"%":Aj};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=aj[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=rj(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=nj(rj(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?qA.ceil(a):qA(a),a=WA.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=tj(rj(r.y,0,1)),o=a.getDay(),a=o>4||o===0?PA.ceil(a):PA(a),a=jA.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else (`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?nj(rj(r.y,0,1)).getUTCDay():tj(rj(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,nj(r)):tj(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in aj?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}
vendor: 1,088 bytes, line 9
9function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,n,r){return w(e,t,n,r)}function j(e,t,r){return w(e,n,t,r)}function M(e,t,n){return w(e,r,t,n)}function N(e){return o[e.getDay()]}function P(e){return a[e.getDay()]}function F(e){return c[e.getMonth()]}function I(e){return s[e.getMonth()]}function L(e){return i[+(e.getHours()>=12)]}function R(e){return 1+~~(e.getMonth()/3)}function z(e){return o[e.getUTCDay()]}function B(e){return a[e.getUTCDay()]}function V(e){return c[e.getUTCMonth()]}function H(e){return s[e.getUTCMonth()]}function U(e){return i[+(e.getUTCHours()>=12)]}function ee(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var aj={"-":``,_:` `,0:`0`},oj=/^\s*\d+/,sj=/^%/,cj=/[\\^$*+?|[\]().{}]/g;
9function lj(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function uj(e){return e.replace(cj,`\\$&`)}function dj(e){return RegExp(`^(?:`+e.map(uj).join(`|`)+`)`,`i`)}function fj(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function pj(e,t,n){var r=oj.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function mj(e,t,n){var r=oj.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function hj(e,t,n){var r=oj.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function gj(e,t,n){var r=oj.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function _j(e,t,n){var r=oj.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function vj(e,t,n){var r=oj.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function yj(e,t,n){var r=oj.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function bj(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 xj(e,t,n){var r=oj.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Sj(e,t,n){var r=oj.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Cj(e,t,n){var r=oj.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function wj(e,t,n){var r=oj.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Tj(e,t,n){var r=oj.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Ej(e,t,n){var r=oj.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Dj(e,t,n){var r=oj.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Oj(e,t,n){var r=oj.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function kj(e,t,n){var r=oj.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Aj(e,t,n){var r=sj.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function jj(e,t,n){var r=oj.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Mj(e,t,n){var r=oj.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Nj(e,t){return lj(e.getDate(),t,2)}function Pj(e,t){return lj(e.getHours(),t,2)}function Fj(e,t){return lj(e.getHours()%12||12,t,2)}function Ij(e,t){return lj(1+jA.count(VA(e),e),t,3)}function Lj(e,t){return lj(e.getMilliseconds(),t,3)}function Rj(e,t){return Lj(e,t)+`000`}function zj(e,t){return lj(e.getMonth()+1,t,2)}function Bj(e,t){return lj(e.getMinutes(),t,2)}function Vj(e,t){return lj(e.getSeconds(),t,2)}function Hj(e){var t=e.getDay();return t===0?7:t}function Uj(e,t){return lj(NA.count(VA(e)-1,e),t,2)}function Wj(e){var t=e.getDay();return t>=4||t===0?LA(e):LA.ceil(e)}function Gj(e,t){return e=Wj(e),lj(LA.count(VA(e),e)+(VA(e).getDay()===4),t,2)}function Kj(e){return e.getDay()}function qj(e,t){return lj(PA.count(VA(e)-1,e),t,2)}function Jj(e,t){return lj(e.getFullYear()%100,t,2)}function Yj(e,t){return e=Wj(e),lj(e.getFullYear()%100,t,2)}function Xj(e,t){return lj(e.getFullYear()%1e4,t,4)}function Zj(e,t){var n=e.getDay();return e=n>=4||n===0?LA(e):LA.ceil(e),lj(e.getFullYear()%1e4,t,4)}function Qj(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+lj(t/60|0,`0`,2)+lj(t%60,`0`,2)}function $j(e,t){return lj(e.getUTCDate(),t,2)}function eM(e,t){return lj(e.getUTCHours(),t,2)}function tM(e,t){return lj(e.getUTCHours()%12||12,t,2)}function nM(e,t){return lj(1+WA.count(ej(e),e),t,3)}function rM(e,t){return lj(e.getUTCMilliseconds(),t,3)}function iM(e,t){return rM(e,t)+`000`}function aM(e,t){return lj(e.getUTCMonth()+1,t,2)}function oM(e,t){return lj(e.getUTCMinutes(),t,2)}function sM(e,t){return lj(e.getUTCSeconds(),t,2)}function cM(e){var t=e.getUTCDay();return t===0?7:t}function lM(e,t){return lj(KA.count(ej(e)-1,e),t,2)}function uM(e){var t=e.getUTCDay();return t>=4||t===0?XA(e):XA.ceil(e)}function dM(e,t){return e=uM(e),lj(XA.count(ej(e),e)+(ej(e).getUTCDay()===4),t,2)}function fM(e){return e.getUTCDay()}function pM(e,t){return lj(qA.count(ej(e)-1,e),t,2)}function mM(e,t){return lj(e.getUTCFullYear()%100,t,2)}function hM(e,t){return e=uM(e),lj(e.getUTCFullYear()%100,t,2)}function gM(e,t){return lj(e.getUTCFullYear()%1e4,t,4)}function _M(e,t){var n=e.getUTCDay();return e=n>=4||n===0?XA(e):XA.ceil(e),lj(e.getUTCFullYear()%1e4,t,4)}function vM(){return`+0000`}function yM(){return`%`}function bM(e){return+e}function xM(e){return Math.floor(e/1e3)}var SM,CM,wM,TM,EM;DM({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`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 DM(e){return SM=ij(e),CM=SM.format,wM=SM.parse,TM=SM.utcFormat,EM=SM.utcParse,SM}function OM(e){return new Date(e)}function kM(e){return e instanceof Date?+e:+new Date(+e)}function AM(e,t,n,r,i,a,o,s,c,l){var u=zO(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,kM)):f().map(OM)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?f(pk(n,e)):u},u.copy=function(){return LO(u,AM(e,t,n,r,i,a,o,s,c,l))},u}function jM(){return SO.apply(AM(_A,vA,fA,uA,Yk,Gk,Uk,Vk,Bk,CM).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function MM(){return SO.apply(AM(hA,gA,pA,dA,rA,Kk,Wk,Hk,Bk,TM).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function NM(){var e=0,t=1,n,r,i,a,o=MO,s=!1,c;function l(e){return e==null||isNaN(e=+e)?c:o(i===0?.5:(e=(a(e)-n)*i,s?Math.max(0,Math.min(1,e)):e))}l.domain=function(o){return arguments.length?([e,t]=o,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),l):[e,t]},l.clamp=function(e){return arguments.length?(s=!!e,l):s},l.interpolator=function(e){return arguments.length?(o=e,l):o};function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,o=e(n,r),l):[o(0),o(1)]}}return l.range=u(iE),l.rangeRound=u(aE),l.unknown=function(e){return arguments.length?(c=e,l):c},function(o){return a=o,n=o(e),r=o(t),i=n===r?0:1/(r-n),l}}function PM(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function FM(){var e=dk(NM()(MO));return e.copy=function(){return PM(e,FM())},CO.apply(e,arguments)}function IM(){var e=0,t=.5,n=1,r=1,i,a,o,s,c,l=MO,u,d=!1,f;function p(e){return isNaN(e=+e)?f:(e=.5+((e=+u(e))-a)*(r*e<r*a?s:c),l(d?Math.max(0,Math.min(1,e)):e))}p.domain=function(l){return arguments.length?([e,t,n]=l,i=u(e=+e),a=u(t=+t),o=u(n=+n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r
9=a<i?-1:1,p):[e,t,n]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(l=e,p):l};function m(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,l=cE(e,[n,r,i]),p):[l(0),l(.5),l(1)]}}return p.range=m(iE),p.rangeRound=m(aE),p.unknown=function(e){return arguments.length?(f=e,p):f},function(l){return u=l,i=l(e),a=l(t),o=l(n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p}}function LM(){var e=dk(IM()(MO));return e.copy=function(){return PM(e,LM())},CO.apply(e,arguments)}function RM(e){for(var t=e.length/6|0,n=Array(t),r=0;r<t;)n[r]=`#`+e.slice(r*6,++r*6);return n}var zM=RM(`1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf`),BM=RM(`7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666`),VM=RM(`1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666`),HM=RM(`a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928`),UM=RM(`fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2`),WM=RM(`b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc`),GM=RM(`e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999`),KM=RM(`66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3`),qM=RM(`8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f`),JM=RM(`4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab`),YM=e=>KT(e[e.length-1]),XM=[,,,`d8b365f5f5f55ab4ac`,`a6611adfc27d80cdc1018571`,`a6611adfc27df5f5f580cdc1018571`,`8c510ad8b365f6e8c3c7eae55ab4ac01665e`,`8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e`,`8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e`,`8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e`,`5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30`,`5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30`].map(RM),ZM=YM(XM),QM=[,,,`af8dc3f7f7f77fbf7b`,`7b3294c2a5cfa6dba0008837`,`7b3294c2a5cff7f7f7a6dba0008837`,`762a83af8dc3e7d4e8d9f0d37fbf7b1b7837`,`762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837`,`762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837`,`762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837`,`40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b`,`40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b`].map(RM),$M=YM(QM),eN=[,,,`e9a3c9f7f7f7a1d76a`,`d01c8bf1b6dab8e1864dac26`,`d01c8bf1b6daf7f7f7b8e1864dac26`,`c51b7de9a3c9fde0efe6f5d0a1d76a4d9221`,`c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221`,`c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221`,`c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221`,`8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419`,`8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419`].map(RM),tN=YM(eN),nN=[,,,`998ec3f7f7f7f1a340`,`5e3c99b2abd2fdb863e66101`,`5e3c99b2abd2f7f7f7fdb863e66101`,`542788998ec3d8daebfee0b6f1a340b35806`,`542788998ec3d8daebf7f7f7fee0b6f1a340b35806`,`5427888073acb2abd2d8daebfee0b6fdb863e08214b35806`,`5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806`,`2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08`,`2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08`].map(RM),rN=YM(nN),iN=[,,,`ef8a62f7f7f767a9cf`,`ca0020f4a58292c5de0571b0`,`ca0020f4a582f7f7f792c5de0571b0`,`b2182bef8a62fddbc7d1e5f067a9cf2166ac`,`b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac`,`b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac`,`b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac`,`67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061`,`67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061`].map(RM),aN=YM(iN),oN=[,,,`ef8a62ffffff999999`,`ca0020f4a582bababa404040`,`ca0020f4a582ffffffbababa404040`,`b2182bef8a62fddbc7e0e0e09999994d4d4d`,`b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d`,`b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d`,`b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d`,`67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a`,`67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a`].map(RM),sN=YM(oN),cN=[,,,`fc8d59ffffbf91bfdb`,`d7191cfdae61abd9e92c7bb6`,`d7191cfdae61ffffbfabd9e92c7bb6`,`d73027fc8d59fee090e0f3f891bfdb4575b4`,`d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4`,`d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4`,`d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4`,`a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695`,`a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695`].map(RM),lN=YM(cN),uN=[,,,`fc8d59ffffbf91cf60`,`d7191cfdae61a6d96a1a9641`,`d7191cfdae61ffffbfa6d96a1a9641`,`d73027fc8d59fee08bd9ef8b91cf601a9850`,`d73027fc8d59fee08bffffbfd9ef8b91cf601a9850`,`d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850`,`d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850`,`a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837`,`a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837`].map(RM),dN=YM(uN),fN=[,,,`fc8d59ffffbf99d594`,`d7191cfdae61abdda42b83ba`,`d7191cfdae61ffffbfabdda42b83ba`,`d53e4ffc8d59fee08be6f59899d5943288bd`,`d53e4ffc8d59fee08bffffbfe6f59899d5943288bd`,`d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd`,`d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd`,`9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2`,`9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2`].map(RM),pN=YM(fN),mN=[,,,`e5f5f999d8c92ca25f`,`edf8fbb2e2e266c2a4238b45`,`edf8fbb2e2e266c2a42ca25f006d2c`,`edf8fbccece699d8c966c2a42ca25f006d2c`,`edf8fbccece699d8c966c2a441ae76238b45005824`,`f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824`,`f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b`].map(RM),hN=YM(mN),gN=[,,,`e0ecf49ebcda8856a7`,`edf8fbb3cde38c96c688419d`,`edf8fbb3cde38c96c68856a7810f7c`,`edf8fbbfd3e69ebcda8c96c68856a7810f7c`,`edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b`,`f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b`,`f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b`].map(RM),_N=YM(gN),vN=[,,,`e0f3dba8ddb543a2ca`,`f0f9e8bae4bc7bccc42b8
9cbe`,`f0f9e8bae4bc7bccc443a2ca0868ac`,`f0f9e8ccebc5a8ddb57bccc443a2ca0868ac`,`f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e`,`f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e`,`f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081`].map(RM),yN=YM(vN),bN=[,,,`fee8c8fdbb84e34a33`,`fef0d9fdcc8afc8d59d7301f`,`fef0d9fdcc8afc8d59e34a33b30000`,`fef0d9fdd49efdbb84fc8d59e34a33b30000`,`fef0d9fdd49efdbb84fc8d59ef6548d7301f990000`,`fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000`,`fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000`].map(RM),xN=YM(bN),SN=[,,,`ece2f0a6bddb1c9099`,`f6eff7bdc9e167a9cf02818a`,`f6eff7bdc9e167a9cf1c9099016c59`,`f6eff7d0d1e6a6bddb67a9cf1c9099016c59`,`f6eff7d0d1e6a6bddb67a9cf3690c002818a016450`,`fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450`,`fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636`].map(RM),CN=YM(SN),wN=[,,,`ece7f2a6bddb2b8cbe`,`f1eef6bdc9e174a9cf0570b0`,`f1eef6bdc9e174a9cf2b8cbe045a8d`,`f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d`,`f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b`,`fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b`,`fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858`].map(RM),TN=YM(wN),EN=[,,,`e7e1efc994c7dd1c77`,`f1eef6d7b5d8df65b0ce1256`,`f1eef6d7b5d8df65b0dd1c77980043`,`f1eef6d4b9dac994c7df65b0dd1c77980043`,`f1eef6d4b9dac994c7df65b0e7298ace125691003f`,`f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f`,`f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f`].map(RM),DN=YM(EN),ON=[,,,`fde0ddfa9fb5c51b8a`,`feebe2fbb4b9f768a1ae017e`,`feebe2fbb4b9f768a1c51b8a7a0177`,`feebe2fcc5c0fa9fb5f768a1c51b8a7a0177`,`feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177`,`fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177`,`fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a`].map(RM),kN=YM(ON),AN=[,,,`edf8b17fcdbb2c7fb8`,`ffffcca1dab441b6c4225ea8`,`ffffcca1dab441b6c42c7fb8253494`,`ffffccc7e9b47fcdbb41b6c42c7fb8253494`,`ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84`,`ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84`,`ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58`].map(RM),jN=YM(AN),MN=[,,,`f7fcb9addd8e31a354`,`ffffccc2e69978c679238443`,`ffffccc2e69978c67931a354006837`,`ffffccd9f0a3addd8e78c67931a354006837`,`ffffccd9f0a3addd8e78c67941ab5d238443005a32`,`ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32`,`ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529`].map(RM),NN=YM(MN),PN=[,,,`fff7bcfec44fd95f0e`,`ffffd4fed98efe9929cc4c02`,`ffffd4fed98efe9929d95f0e993404`,`ffffd4fee391fec44ffe9929d95f0e993404`,`ffffd4fee391fec44ffe9929ec7014cc4c028c2d04`,`ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04`,`ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506`].map(RM),FN=YM(PN),IN=[,,,`ffeda0feb24cf03b20`,`ffffb2fecc5cfd8d3ce31a1c`,`ffffb2fecc5cfd8d3cf03b20bd0026`,`ffffb2fed976feb24cfd8d3cf03b20bd0026`,`ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026`,`ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026`,`ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026`].map(RM),LN=YM(IN),RN=[,,,`deebf79ecae13182bd`,`eff3ffbdd7e76baed62171b5`,`eff3ffbdd7e76baed63182bd08519c`,`eff3ffc6dbef9ecae16baed63182bd08519c`,`eff3ffc6dbef9ecae16baed64292c62171b5084594`,`f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594`,`f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b`].map(RM),zN=YM(RN),BN=[,,,`e5f5e0a1d99b31a354`,`edf8e9bae4b374c476238b45`,`edf8e9bae4b374c47631a354006d2c`,`edf8e9c7e9c0a1d99b74c47631a354006d2c`,`edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32`,`f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32`,`f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b`].map(RM),VN=YM(BN),HN=[,,,`f0f0f0bdbdbd636363`,`f7f7f7cccccc969696525252`,`f7f7f7cccccc969696636363252525`,`f7f7f7d9d9d9bdbdbd969696636363252525`,`f7f7f7d9d9d9bdbdbd969696737373525252252525`,`fffffff0f0f0d9d9d9bdbdbd969696737373525252252525`,`fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000`].map(RM),UN=YM(HN),WN=[,,,`efedf5bcbddc756bb1`,`f2f0f7cbc9e29e9ac86a51a3`,`f2f0f7cbc9e29e9ac8756bb154278f`,`f2f0f7dadaebbcbddc9e9ac8756bb154278f`,`f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486`,`fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486`,`fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d`].map(RM),GN=YM(WN),KN=[,,,`fee0d2fc9272de2d26`,`fee5d9fcae91fb6a4acb181d`,`fee5d9fcae91fb6a4ade2d26a50f15`,`fee5d9fcbba1fc9272fb6a4ade2d26a50f15`,`fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d`,`fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d`,`fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d`].map(RM),qN=YM(KN),JN=[,,,`fee6cefdae6be6550d`,`feeddefdbe85fd8d3cd94701`,`feeddefdbe85fd8d3ce6550da63603`,`feeddefdd0a2fdae6bfd8d3ce6550da63603`,`feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04`,`fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04`,`fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704`].map(RM),YN=YM(JN);function XN(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)))))))+`, `+Math.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)))))))+`)`}var ZN=sE(PT(300,.5,0),PT(-240,.5,1)),QN=sE(PT(-100,.75,.35),PT(80,1.5,.8)),$N=sE(PT(260,.75,.35),PT(80,1.5,.8)),eP=PT();function tP(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return eP.h=360*e-100,eP.s=1.5-1.5*t,eP.l=.8-.9*t,eP+``}var nP=cT(),rP=Math.PI/3,iP=Math.PI*2/3;function aP(e){var t;
9return e=(.5-e)*Math.PI,nP.r=255*(t=Math.sin(e))*t,nP.g=255*(t=Math.sin(e+rP))*t,nP.b=255*(t=Math.sin(e+iP))*t,nP+``}function oP(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 sP(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var cP=sP(RM(`44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725`)),lP=sP(RM(`00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf`)),uP=sP(RM(`00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4`)),dP=sP(RM(`0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0a
9a58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921`)),fP=o(((e,t)=>{function n(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}t.exports=n})),pP=o(((e,t)=>{var n=nw(),r=iw(),i=ew();function a(e,t,a){for(var o=-1,s=t.length,c={};++o<s;){var l=t[o],u=n(e,l);a(u,l)&&r(c,i(l,e),u)}return c}t.exports=a})),mP=o(((e,t)=>{function n(e,t){return e!=null&&t in Object(e)}t.exports=n})),hP=o(((e,t)=>{var n=ew(),r=dC(),i=fC(),a=DC(),o=pC(),s=tw();function c(e,t,c){t=n(t,e);for(var l=-1,u=t.length,d=!1;++l<u;){var f=s(t[l]);if(!(d=e!=null&&c(e,f)))break;e=e[f]}return d||++l!=u?d:(u=e==null?0:e.length,!!u&&o(u)&&a(f,u)&&(i(e)||r(e)))}t.exports=c})),gP=o(((e,t)=>{var n=mP(),r=hP();function i(e,t){return e!=null&&r(e,t,n)}t.exports=i})),_P=o(((e,t)=>{var n=pP(),r=gP();function i(e,t){return n(e,t,function(t,n){return r(e,n)})}t.exports=i})),vP=o(((e,t)=>{function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}t.exports=n})),yP=o(((e,t)=>{var n=vS(),r=dC(),i=fC(),a=n?n.isConcatSpreadable:void 0;function o(e){return i(e)||r(e)||!!(a&&e&&e[a])}t.exports=o})),bP=o(((e,t)=>{var n=vP(),r=yP();function i(e,t,a,o,s){var c=-1,l=e.length;for(a||=r,s||=[];++c<l;){var u=e[c];t>0&&a(u)?t>1?i(u,t-1,a,o,s):n(s,u):o||(s[s.length]=u)}return s}t.exports=i})),xP=o(((e,t)=>{var n=bP();function r(e){return e!=null&&e.length?n(e,1):[]}t.exports=r})),SP=o(((e,t)=>{var n=xP(),r=LC(),i=VC();function a(e){return i(r(e,void 0,n),e+``)}t.exports=a})),CP=o(((e,t)=>{var n=_P();t.exports=SP()(function(e,t){return e==null?{}:n(e,t)})})),wP=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=n})),TP=o(((e,t)=>{var n=dE(),r=wP(),i=vE(),a=1,o=2;function s(e,t,s,c,l,u){var d=s&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=u.get(e),h=u.get(t);if(m&&h)return m==t&&h==e;var g=-1,_=!0,v=s&o?new n:void 0;for(u.set(e,t),u.set(t,e);++g<f;){var y=e[g],b=t[g];if(c)var x=d?c(b,y,g,t,e,u):c(y,b,g,e,t,u);if(x!==void 0){if(x)continue;_=!1;break}if(v){if(!r(t,function(e,t){if(!i(v,t)&&(y===e||l(y,e,s,c,u)))return v.push(t)})){_=!1;break}}else if(!(y===b||l(y,b,s,c,u))){_=!1;break}}return u.delete(e),u.delete(t),_}t.exports=s})),EP=o(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=n})),DP=o(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n})),OP=o(((e,t)=>{var n=vS(),r=eC(),i=aS(),a=TP(),o=EP(),s=DP(),c=1,l=2,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Map]`,m=`[object Number]`,h=`[object RegExp]`,g=`[object Set]`,_=`[object String]`,v=`[object Symbol]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=n?n.prototype:void 0,S=x?x.valueOf:void 0;function C(e,t,n,x,C,w,T){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!w(new r(e),new r(t)));case u:case d:case m:return i(+e,+t);case f:return e.name==t.name&&e.message==t.message;case h:case _:return e==t+``;case p:var E=o;case g:var D=x&c;
9if(E||=s,e.size!=t.size&&!D)return!1;var O=T.get(e);if(O)return O==t;x|=l,T.set(e,t);var k=a(E(e),E(t),x,C,w,T);return T.delete(e),k;case v:if(S)return S.call(e)==S.call(t)}return!1}t.exports=C})),kP=o(((e,t)=>{var n=vP(),r=fC();function i(e,t,i){var a=t(e);return r(e)?a:n(a,i(e))}t.exports=i})),AP=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}t.exports=n})),jP=o(((e,t)=>{function n(){return[]}t.exports=n})),MP=o(((e,t)=>{var n=AP(),r=jP(),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(e){return e==null?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:r})),NP=o(((e,t)=>{t.exports=aC()(Object.keys,Object)})),PP=o(((e,t)=>{var n=sC(),r=NP(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),FP=o(((e,t)=>{var n=OC(),r=PP(),i=mC();function a(e){return i(e)?n(e):r(e)}t.exports=a})),IP=o(((e,t)=>{var n=kP(),r=MP(),i=FP();function a(e){return n(e,i,r)}t.exports=a})),LP=o(((e,t)=>{var n=IP(),r=1,i=Object.prototype.hasOwnProperty;function a(e,t,a,o,s,c){var l=a&r,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var f=d;f--;){var p=u[f];if(!(l?p in t:i.call(t,p)))return!1}var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=!0;c.set(e,t),c.set(t,e);for(var _=l;++f<d;){p=u[f];var v=e[p],y=t[p];if(o)var b=l?o(y,v,p,t,e,c):o(v,y,p,e,t,c);if(!(b===void 0?v===y||s(v,y,a,o,c):b)){g=!1;break}_||=p==`constructor`}if(g&&!_){var x=e.constructor,S=t.constructor;x!=S&&`constructor`in e&&`constructor`in t&&!(typeof x==`function`&&x instanceof x&&typeof S==`function`&&S instanceof S)&&(g=!1)}return c.delete(e),c.delete(t),g}t.exports=a})),RP=o(((e,t)=>{t.exports=kS()(_S(),`DataView`)})),zP=o(((e,t)=>{t.exports=kS()(_S(),`Promise`)})),BP=o(((e,t)=>{t.exports=kS()(_S(),`Set`)})),VP=o(((e,t)=>{t.exports=kS()(_S(),`WeakMap`)})),HP=o(((e,t)=>{var n=RP(),r=AS(),i=zP(),a=BP(),o=VP(),s=xS(),c=ES(),l=`[object Map]`,u=`[object Object]`,d=`[object Promise]`,f=`[object Set]`,p=`[object WeakMap]`,m=`[object DataView]`,h=c(n),g=c(r),_=c(i),v=c(a),y=c(o),b=s;(n&&b(new n(new ArrayBuffer(1)))!=m||r&&b(new r)!=l||i&&b(i.resolve())!=d||a&&b(new a)!=f||o&&b(new o)!=p)&&(b=function(e){var t=s(e),n=t==u?e.constructor:void 0,r=n?c(n):``;if(r)switch(r){case h:return m;case g:return l;case _:return d;case v:return f;case y:return p}return t}),t.exports=b})),UP=o(((e,t)=>{var n=qS(),r=TP(),i=OP(),a=LP(),o=HP(),s=fC(),c=_C(),l=SC(),u=1,d=`[object Arguments]`,f=`[object Array]`,p=`[object Object]`,m=Object.prototype.hasOwnProperty;function h(e,t,h,g,_,v){var y=s(e),b=s(t),x=y?f:o(e),S=b?f:o(t);x=x==d?p:x,S=S==d?p:S;var C=x==p,w=S==p,T=x==S;if(T&&c(e)){if(!c(t))return!1;y=!0,C=!1}if(T&&!C)return v||=new n,y||l(e)?r(e,t,h,g,_,v):i(e,t,x,h,g,_,v);if(!(h&u)){var E=C&&m.call(e,`__wrapped__`),D=w&&m.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return v||=new n,_(O,k,h,g,v)}}return T?(v||=new n,a(e,t,h,g,_,v)):!1}t.exports=h})),WP=o(((e,t)=>{var n=UP(),r=lC();function i(e,t,a,o,s){return e===t?!0:e==null||t==null||!r(e)&&!r(t)?e!==e&&t!==t:n(e,t,a,o,i,s)}t.exports=i})),GP=o(((e,t)=>{var n=WP();function r(e,t){return n(e,t)}t.exports=r})),KP=c(bE(),1),qP=c(fP(),1);fC();var JP=c(CS(),1),YP=c(vC(),1),XP=c(CP(),1),ZP=c(GP(),1),QP=(0,_.createContext)(),$P=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,a=i===void 0?`default`:i,o=(0,_.useMemo)((function(){return{animate:r,config:(0,ww.default)(a)?Lb[a]:a}}),[r,a]);return(0,Z.jsx)(QP.Provider,{value:o,children:t})},eF=function(){return(0,_.useContext)(QP)},tF=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?(0,_.cloneElement)(r,{},t):t},nF={position:`relative`},rF=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,a=e.isInteractive,o=a===void 0||a,s=e.animate,c=e.motionConfig,l=(0,_.useRef)(null);return(0,Z.jsx)(Sw,{theme:n,children:(0,Z.jsx)($P,{animate:s,config:c,children:(0,Z.jsx)(yI,{container:l,children:(0,Z.jsxs)(tF,{condition:i,wrapper:(0,Z.jsx)(`div`,{style:nF,ref:l}),children:[t,o&&(0,Z.jsx)(vI,{})]})})})})},iF=function(e,t){return e.width===t.width&&e.height===t.height},aF=function(e){var t=e.children,n=e.width,r=e.height,i=e.onResize,a=e.debounceResize,o=Lw({width:n,height:r},a,{equalityFn:iF})[0];return(0,_.useEffect)((function(){i?.(o)}),[o,i]),(0,Z.jsx)(Z.Fragment,{children:t(o)})},oF=function(e){var t=e.children,n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=a===void 0?0:a;return(0,Z.jsx)(Pw,{defaultWidth:n,defaultHeight:r,children:function(e){var n=e.width,r=e.height;return(0,Z.jsx)(aF,{width:n,height:r,onResize:i,debounceResize:o,children:t})}})};function sF(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cF(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if(typeof e==`string`)return sF(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sF(e,t):void 0}}(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance. 10In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lF(){return lF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lF.apply(null,arguments)}function uF(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}
10function dF(e,t){return dF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dF(e,t)}var fF=[`id`,`colors`],pF={linearGradient:function(e){var t=e.id,n=e.colors,r=uF(e,fF);return(0,Z.jsx)(`linearGradient`,lF({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map((function(e){var t=e.offset,n=e.color,r=e.opacity;return(0,Z.jsx)(`stop`,{offset:t+`%`,stopColor:n,stopOpacity:r===void 0?1:r},t)}))}))}},mF={color:`#000000`,background:`#ffffff`,size:4,padding:4,stagger:!1},hF=(0,_.memo)((function(e){var t=e.id,n=e.background,r=n===void 0?mF.background:n,i=e.color,a=i===void 0?mF.color:i,o=e.size,s=o===void 0?mF.size:o,c=e.padding,l=c===void 0?mF.padding:c,u=e.stagger,d=u===void 0?mF.stagger:u,f=s+l,p=s/2,m=l/2;return!0===d&&(f=2*s+2*l),(0,Z.jsxs)(`pattern`,{id:t,width:f,height:f,patternUnits:`userSpaceOnUse`,children:[(0,Z.jsx)(`rect`,{width:f,height:f,fill:r}),(0,Z.jsx)(`circle`,{cx:m+p,cy:m+p,r:p,fill:a}),d&&(0,Z.jsx)(`circle`,{cx:1.5*l+s+p,cy:1.5*l+s+p,r:p,fill:a})]})}));2*Math.PI;var gF=function(e){return e*Math.PI/180},_F=function(e){return 180*e/Math.PI},vF=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},yF=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},bF=function(e){var t=e%360;return t<0&&(t+=360),t},xF=function(e,t,n){n===void 0&&(n=360);var r=t;return Math.abs(t-e)>n&&(r=e+(t>e?n:-n)),[e,r]},SF={svg:{align:{left:`start`,center:`middle`,right:`end`,start:`start`,middle:`middle`,end:`end`},baseline:{top:`text-before-edge`,center:`central`,bottom:`alphabetic`}},canvas:{align:{left:`left`,center:`center`,right:`right`,start:`left`,middle:`center`,end:`right`},baseline:{top:`top`,center:`middle`,bottom:`bottom`}}},CF={spacing:5,rotation:0,background:`#000000`,color:`#ffffff`,lineWidth:2},wF=(0,_.memo)((function(e){var t=e.id,n=e.spacing,r=n===void 0?CF.spacing:n,i=e.rotation,a=i===void 0?CF.rotation:i,o=e.background,s=o===void 0?CF.background:o,c=e.color,l=c===void 0?CF.color:c,u=e.lineWidth,d=u===void 0?CF.lineWidth:u,f=Math.round(a)%360,p=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var m,h=p,g=p;return f===0?m=` 11 M 0 0 L `+h+` 0 12 M 0 `+g+` L `+h+` `+g+` 13 `:f===90?m=` 14 M 0 0 L 0 `+g+` 15 M `+h+` 0 L `+h+` `+g+` 16 `:(h=Math.abs(p/Math.sin(gF(f))),g=p/Math.sin(gF(90-f)),m=f>0?` 17 M 0 `+-g+` L `+2*h+` `+g+` 18 M `+-h+` `+-g+` L `+h+` `+g+` 19 M `+-h+` 0 L `+h+` `+2*g+` 20 `:` 21 M `+-h+` `+g+` L `+h+` `+-g+` 22 M `+-h+` `+2*g+` L `+2*h+` `+-g+` 23 M 0 `+2*g+` L `+2*h+` 0 24 `),(0,Z.jsxs)(`pattern`,{id:t,width:h,height:g,patternUnits:`userSpaceOnUse`,children:[(0,Z.jsx)(`rect`,{width:h,height:g,fill:s,stroke:`rgba(255, 0, 0, 0.1)`,strokeWidth:0}),(0,Z.jsx)(`path`,{d:m,strokeWidth:d,stroke:l,strokeLinecap:`square`})]})})),TF={color:`#000000`,background:`#ffffff`,size:4,padding:4,stagger:!1},EF={patternDots:hF,patternLines:wF,patternSquares:(0,_.memo)((function(e){var t=e.id,n=e.color,r=n===void 0?TF.color:n,i=e.background,a=i===void 0?TF.background:i,o=e.size,s=o===void 0?TF.size:o,c=e.padding,l=c===void 0?TF.padding:c,u=e.stagger,d=u===void 0?TF.stagger:u,f=s+l,p=l/2;return!0===d&&(f=2*s+2*l),(0,Z.jsxs)(`pattern`,{id:t,width:f,height:f,patternUnits:`userSpaceOnUse`,children:[(0,Z.jsx)(`rect`,{width:f,height:f,fill:a}),(0,Z.jsx)(`rect`,{x:p,y:p,width:s,height:s,fill:r}),d&&(0,Z.jsx)(`rect`,{x:1.5*l+s,y:1.5*l+s,width:s,height:s,fill:r})]})}))},DF=[`type`],OF=lF({},pF,EF),kF=(0,_.memo)((function(e){var t=e.defs;return!t||t.length<1?null:(0,Z.jsx)(`defs`,{"aria-hidden":!0,children:t.map((function(e){var t=e.type,n=uF(e,DF);return OF[t]?(0,_.createElement)(OF[t],lF({key:n.id},n)):null}))})})),AF=(0,_.forwardRef)((function(e,t){var n=e.width,r=e.height,i=e.margin,a=e.defs,o=e.children,s=e.role,c=e.ariaLabel,l=e.ariaLabelledBy,u=e.ariaDescribedBy,d=e.isFocusable,f=Cw();return(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:n,height:r,role:s,"aria-label":c,"aria-labelledby":l,"aria-describedby":u,focusable:d,tabIndex:d?0:void 0,ref:t,children:[(0,Z.jsx)(kF,{defs:a}),(0,Z.jsx)(`rect`,{width:n,height:r,fill:f.background}),(0,Z.jsx)(`g`,{transform:`translate(`+i.left+`,`+i.top+`)`,children:o})]})})),jF=(0,_.memo)((function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return(0,Z.jsx)(`circle`,{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:`none`}})})),MF=(0,_.memo)((function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?jF:r,a=e.size,o=e.datum,s=e.color,c=e.borderWidth,l=e.borderColor,u=e.label,d=e.labelTextAnchor,f=d===void 0?`middle`:d,p=e.labelYOffset,m=p===void 0?-12:p,h=e.ariaLabel,g=e.ariaLabelledBy,v=e.ariaDescribedBy,y=e.ariaHidden,b=e.ariaDisabled,x=e.isFocusable,S=x!==void 0&&x,C=e.tabIndex,w=C===void 0?0:C,T=e.onFocus,E=e.onBlur,D=e.testId,O=Cw(),k=eF(),A=k.animate,j=k.config,M=Nx({transform:`translate(`+t+`, `+n+`)`,config:j,immediate:!A}),N=(0,_.useCallback)((function(e){T?.(o,e)}),[T,o]),P=(0,_.useCallback)((function(e){E?.(o,e)}),[E,o]);return(0,Z.jsxs)(rS.g,{transform:M.transform,style:{pointerEvents:`none`},focusable:S,tabIndex:S?w:void 0,"aria-label":h,"aria-labelledby":g,"aria-describedby":v,"aria-disabled":b,"aria-hidden":y,onFocus:S&&T?N:void 0,onBlur:S&&E?P:void 0,"data-testid":D,children:[(0,_.createElement)(i,{size:a,c
24olor:s,datum:o,borderWidth:c,borderColor:l}),u&&(0,Z.jsx)(`text`,{textAnchor:f,y:m,style:fw(O.dots.text),children:u})]})})),NF=(0,_.memo)((function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,a=e.value,o=e.lineStyle,s=e.textStyle,c=e.legend,l=e.legendNode,u=e.legendPosition,d=u===void 0?`top-right`:u,f=e.legendOffsetX,p=f===void 0?14:f,m=e.legendOffsetY,h=m===void 0?14:m,g=e.legendOrientation,_=g===void 0?`horizontal`:g,v=Cw(),y=0,b=0,x=0,S=0;if(r===`y`?(x=i(a),b=t):(y=i(a),S=n),c&&!l){var C=function(e){var t=e.axis,n=e.width,r=e.height,i=e.position,a=e.offsetX,o=e.offsetY,s=e.orientation,c=0,l=0,u=s===`vertical`?-90:0,d=`start`;if(t===`x`)switch(i){case`top-left`:c=-a,l=o,d=`end`;break;case`top`:l=-o,d=s===`horizontal`?`middle`:`start`;break;case`top-right`:c=a,l=o,d=s===`horizontal`?`start`:`end`;break;case`right`:c=a,l=r/2,d=s===`horizontal`?`start`:`middle`;break;case`bottom-right`:c=a,l=r-o,d=`start`;break;case`bottom`:l=r+o,d=s===`horizontal`?`middle`:`end`;break;case`bottom-left`:l=r-o,c=-a,d=s===`horizontal`?`end`:`start`;break;case`left`:c=-a,l=r/2,d=s===`horizontal`?`end`:`middle`}else switch(i){case`top-left`:c=a,l=-o,d=`start`;break;case`top`:c=n/2,l=-o,d=s===`horizontal`?`middle`:`start`;break;case`top-right`:c=n-a,l=-o,d=s===`horizontal`?`end`:`start`;break;case`right`:c=n+a,d=s===`horizontal`?`start`:`middle`;break;case`bottom-right`:c=n-a,l=o,d=`end`;break;case`bottom`:c=n/2,l=o,d=s===`horizontal`?`middle`:`end`;break;case`bottom-left`:c=a,l=o,d=s===`horizontal`?`start`:`end`;break;case`left`:c=-a,d=s===`horizontal`?`end`:`middle`}return{x:c,y:l,rotation:u,textAnchor:d}}({axis:r,width:t,height:n,position:d,offsetX:p,offsetY:h,orientation:_});l=(0,Z.jsx)(`text`,{transform:`translate(`+C.x+`, `+C.y+`) rotate(`+C.rotation+`)`,textAnchor:C.textAnchor,dominantBaseline:`central`,style:s,children:c})}return(0,Z.jsxs)(`g`,{transform:`translate(`+y+`, `+x+`)`,children:[(0,Z.jsx)(`line`,{x1:0,x2:b,y1:0,y2:S,stroke:v.markers.lineColor,strokeWidth:v.markers.lineStrokeWidth,style:o}),l]})})),PF=(0,_.memo)((function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,a=e.yScale;return t&&t.length!==0?t.map((function(e,t){return(0,Z.jsx)(NF,lF({},e,{width:n,height:r,scale:e.axis===`y`?a:i}),t)})):null})),FF=function(e){var t=eF(),n=t.animate,r=t.config,i=function(e){var t=(0,_.useRef)();return(0,_.useEffect)((function(){t.current=e}),[e]),t.current}(e),a=(0,_.useMemo)((function(){return rE(i,e)}),[i,e]),o=Nx({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return Vx(o,a)};(0,_.createContext)(void 0);var IF={basis:dD,basisClosed:pD,basisOpen:hD,bundle:_D,cardinal:bD,cardinalClosed:SD,cardinalOpen:wD,catmullRom:DD,catmullRomClosed:kD,catmullRomOpen:jD,linear:$E,linearClosed:ND,monotoneX:VD,monotoneY:HD,natural:GD,step:qD,stepAfter:YD,stepBefore:JD},LF=Object.keys(IF);LF.filter((function(e){return e.endsWith(`Closed`)}
24)),(0,KP.default)(LF,`bundle`,`basisClosed`,`basisOpen`,`cardinalClosed`,`cardinalOpen`,`catmullRomClosed`,`catmullRomOpen`,`linearClosed`),(0,KP.default)(LF,`bundle`,`basisClosed`,`basisOpen`,`cardinalClosed`,`cardinalOpen`,`catmullRomClosed`,`catmullRomOpen`,`linearClosed`);var RF=function(e){if(!IF[e])throw TypeError(`'`+e+`', is not a valid curve interpolator identifier.`);return IF[e]},zF=function(e){return(0,_.useMemo)((function(){return RF(e)}),[e])};(0,qP.default)(XM),(0,qP.default)(QM),(0,qP.default)(eN),(0,qP.default)(nN),(0,qP.default)(iN),(0,qP.default)(oN),(0,qP.default)(cN),(0,qP.default)(uN),(0,qP.default)(fN),(0,qP.default)(RN),(0,qP.default)(BN),(0,qP.default)(HN),(0,qP.default)(JN),(0,qP.default)(WN),(0,qP.default)(KN),(0,qP.default)(mN),(0,qP.default)(gN),(0,qP.default)(vN),(0,qP.default)(bN),(0,qP.default)(SN),(0,qP.default)(wN),(0,qP.default)(EN),(0,qP.default)(ON),(0,qP.default)(AN),(0,qP.default)(MN),(0,qP.default)(PN),(0,qP.default)(IN),(0,qP.default)(XM),(0,qP.default)(QM),(0,qP.default)(eN),(0,qP.default)(nN),(0,qP.default)(iN),(0,qP.default)(oN),(0,qP.default)(cN),(0,qP.default)(uN),(0,qP.default)(fN),(0,qP.default)(RN),(0,qP.default)(BN),(0,qP.default)(HN),(0,qP.default)(JN),(0,qP.default)(WN),(0,qP.default)(KN),(0,qP.default)(mN),(0,qP.default)(gN),(0,qP.default)(vN),(0,qP.default)(bN),(0,qP.default)(SN),(0,qP.default)(wN),(0,qP.default)(EN),(0,qP.default)(ON),(0,qP.default)(AN),(0,qP.default)(MN),(0,qP.default)(PN),(0,qP.default)(IN),TO(qM);var BF={top:0,right:0,bottom:0,left:0},VF=function(e,t,n){return n===void 0&&(n={}),(0,_.useMemo)((function(){var r=lF({},BF,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}}),[e,t,n])},HF=function(){var e=(0,_.useRef)(null),t=(0,_.useState)({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=(0,_.useState)((function(){return typeof ResizeObserver>`u`?null:new ResizeObserver((function(e){var t=e[0];return r(t.contentRect)}))}))[0];return(0,_.useEffect)((function(){return e.current&&i!==null&&i.observe(e.current),function(){i!==null&&i.disconnect()}}),[i]),[e,n]},UF=function(e){return typeof e==`function`?e:typeof e==`string`?e.indexOf(`time:`)===0?CM(e.slice(`5`)):ik(e):function(e){return``+e}},WF=function(e){return(0,_.useMemo)((function(){return UF(e)}),[e])},GF=function(e){return(0,JP.default)(e)?e:function(t){return(0,sw.default)(t,e)}},KF=function(e){return(0,_.useMemo)((function(){return GF(e)}),[e])},qF=function(e,t,n,r,i,a){return e<=i&&i<=e+n&&t<=a&&a<=t+r},JF=function(e,t){var n,r=`touches`in t?t.touches[0]:t,i=r.clientX,a=r.clientY,o=e.getBoundingClientRect(),s=(n=e.getBBox===void 0?{width:e.offsetWidth||0,height:e.offsetHeight||0}:e.getBBox()).width===o.width?1:n.width/o.width;return[(i-o.left)*s,(a-o.top)*s]},YF=Object.keys(pF),XF=Object.keys(EF),ZF=function(e,t,n){return e===`*`?!0:(0,JP.default)(e)?e(t):(0,YP.default)(e)?(0,ZP.default)((0,XP.default)(n?(0,sw.default)(t,n):t,Object.keys(e)),e):!1},QF=function(e,t,n,r){var i=r===void 0?{}:r,a=i.dataKey,o=i.colorKey,s=o===void 0?`color`:o,c=i.targetKey,l=c===void 0?`fill`:c,u=[],d={};return e.length&&t.length&&(u=[].concat(e),t.forEach((function(t){for(var r,i=function(){var n=r.value,i=n.id,o=n.match;if(ZF(o,t,a)){var c=e.find((function(e){return e.id===i}));if(c){if(XF.includes(c.type))if(c.background===`inherit`||c.color===`inherit`){var f=(0,sw.default)(t,s),p=c.background,m=c.color,h=i;c.background===`inherit`&&(h=h+`.bg.`+f,p=f),c.color===`inherit`&&(h=h+`.fg.`+f,m=f),(0,cw.default)(t,l,`url
24(#`+h+`)`),d[h]||(u.push(lF({},c,{id:h,background:p,color:m})),d[h]=1)}else (0,cw.default)(t,l,`url(#`+i+`)`);else if(YF.includes(c.type))if(c.colors.map((function(e){return e.color})).includes(`inherit`)){var g=(0,sw.default)(t,s),_=i,v=lF({},c,{colors:c.colors.map((function(e,t){return e.color===`inherit`?(_=_+`.`+t+`.`+g,lF({},e,{color:e.color===`inherit`?g:e.color})):e}))});v.id=_,(0,cw.default)(t,l,`url(#`+_+`)`),d[_]||(u.push(v),d[_]=1)}else (0,cw.default)(t,l,`url(#`+i+`)`)}return 1}},o=cF(n);!(r=o()).done&&!i(););}))),u};function $F(){var e=[...arguments];return function(t){for(var n=0,r=e;n<r.length;n++){var i=r[n];typeof i==`function`?i(t):i!=null&&(i.current=t)}}}function eI(){return eI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eI.apply(null,arguments)}var tI=[`basic`,`chip`,`container`,`table`,`tableCell`,`tableCellValue`],nI={pointerEvents:`none`,position:`absolute`,zIndex:10,top:0,left:0},rI=function(e,t){return`translate(`+e+`px, `+t+`px)`},iI=(0,_.memo)((function(e){var t=e.position,n=e.anchor,r=e.children,i=Cw(),a=eF(),o=a.animate,s=a.config,c=HF(),l=c[0],u=c[1],d=(0,_.useRef)(!1),f=void 0,p=!1,m=u.width>0&&u.height>0,h=Math.round(t[0]),g=Math.round(t[1]);m&&(n===`top`?(h-=u.width/2,g-=u.height+14):n===`right`?(h+=14,g-=u.height/2):n===`bottom`?(h-=u.width/2,g+=14):n===`left`?(h-=u.width+14,g-=u.height/2):n===`center`&&(h-=u.width/2,g-=u.height/2),f={transform:rI(h,g)},d.current||(p=!0),d.current=[h,g]);var v=Nx({to:f,config:s,immediate:!o||p}),y=i.tooltip;y.basic,y.chip,y.container,y.table,y.tableCell,y.tableCellValue;var b=function(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}(y,tI),x=eI({},nI,b,{transform:v.transform??rI(h,g),opacity:+!!v.transform});return(0,Z.jsx)(rS.div,{ref:l,style:x,children:r})}));iI.displayName=`TooltipWrapper`;var aI=(0,_.memo)((function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return(0,Z.jsx)(`span`,{style:eI({display:`block`,width:n,height:n,background:r},i===void 0?{}:i)})})),oI=(0,_.memo)((function(e){var t,n=e.id,r=e.value,i=e.format,a=e.enableChip,o=a!==void 0&&a,s=e.color,c=e.renderContent,l=Cw(),u=WF(i);if(typeof c==`function`)t=c();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=(0,Z.jsxs)(`div`,{style:l.tooltip.basic,children:[o&&(0,Z.jsx)(aI,{color:s,style:l.tooltip.chip}),d===void 0?n:(0,Z.jsxs)(`span`,{children:[n,`: `,(0,Z.jsx)(`strong`,{children:``+d})]})]})}return(0,Z.jsx)(`div`,{style:l.tooltip.container,role:`tooltip`,children:t})})),sI={width:`100%`,borderCollapse:`collapse`},cI=(0,_.memo)((function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,a=e.renderContent,o=Cw();return i.length?(t=typeof a==`function`?a():(0,Z.jsxs)(`div`,{children:[n&&n,(0,Z.jsx)(`table`,{style:eI({},sI,o.tooltip.table),children:(0,Z.jsx)(`tbody`,{children:i.map((function(e,t){return(0,Z.jsx)(`tr`,{children:e.map((function(e,t){return(0,Z.jsx)(`td`,{style:o.tooltip.tableCell,children:e},t)}))},t)}))})})]}),(0,Z.jsx)(`div`,{style:o.tooltip.container,children:t})):null}));cI.displayName=`TableTooltip`;var lI=(0,_.memo)((function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,a=Cw(),o=eF(),s=o.animate,c=o.config,l=(0,_.useMemo)((function(){return eI({},a.crosshair.line,{pointerEvents:`none`})}),[a.crosshair.line]),u=Nx({x1:t,x2:n,y1:r,y2:i,config:c,immediate:!s});return(0,Z.jsx)(rS.line,eI({},u,{fill:`none`,style:l}))}));lI.displayName=`CrosshairLine`;var uI=(0,_.memo)((function(e){var t,n,r=e.width,i=e.height,a=e.type,o=e.x,s=e.y;return a===`cross`?(t={x0:o,x1:o,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):a===`top-left`?(t={x0:o,x1:o,y0:0,y1:s},n={x0:0,x1:o,y0:s,y1:s}):a===`top`?t={x0:o,x1:o,y0:0,y1:s}:a===`top-right`?(t={x0:o,x1:o,y0:0,y1:s},n={x0:o,x1:r,y0:s,y1:s}):a===`right`?n={x0:o,x1:r,y0:s,y1:s}:a===`bottom-right`?(t={x0:o,x1:o,y0:s,y1:i},n={x0:o,x1:r,y0:s,y1:s}):a===`bottom`?t={x0:o,x1:o,y0:s,y1:i}:a===`bottom-left`?(t={x0:o,x1:o,y0:s,y1:i},n={x0:0,x1:o,y0:s,y1:s}):a===`left`?n={x0:0,x1:o,y0:s,y1:s}:a===`x`?t={x0:o,x1:o,y0:0,y1:i}:a===`y`&&(n={x0:0,x1:r,y0:s,y1:s}),(0,Z.jsxs)(Z.Fragment,{children:[t&&(0,Z.jsx)(lI,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&(0,Z.jsx)(lI,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})}));uI.displayName=`Crosshair`;var dI=(0,_.createContext)({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),fI={isVisible:!1,position:[null,null],content:null,anchor:null},pI=(0,_.createContext)(fI),mI=function(e){var t=(0,_.useState)(fI),n=t[0],r=t[1],i=(0,_.useCallback)((function(e,t,n){var i=t[0],a=t[1];n===void 0&&(n=`top`),r({isVisible:!0,position:[i,a],anchor:n,content:e})}),[r]),a=(0,_.useCallback)((function(t,n,i){i===void 0&&(i=`top`);var a=e.current.getBoundingClientRect(),o=e.current.offsetWidth,s=o===a.width?1:o/a.width,c=`touches`in n?n.touches[0]:n,l=c.clientX,u=c.
24clientY,d=(l-a.left)*s,f=(u-a.top)*s;i!==`left`&&i!==`right`||(i=d<a.width/2?`right`:`left`),r({isVisible:!0,position:[d,f],anchor:i,content:t})}),[e,r]),o=(0,_.useCallback)((function(){r(fI)}),[r]);return{actions:(0,_.useMemo)((function(){return{showTooltipAt:i,showTooltipFromEvent:a,hideTooltip:o}}),[i,a,o]),state:n}},hI=function(){var e=(0,_.useContext)(dI);if(e===void 0)throw Error(`useTooltip must be used within a TooltipProvider`);return e},gI=function(){var e=(0,_.useContext)(pI);if(e===void 0)throw Error(`useTooltipState must be used within a TooltipProvider`);return e},_I=function(e){return e.isVisible},vI=function(){var e=gI();return _I(e)?(0,Z.jsx)(iI,{position:e.position,anchor:e.anchor,children:e.content}):null},yI=function(e){var t=e.container,n=e.children,r=mI(t),i=r.actions,a=r.state;return(0,Z.jsx)(dI.Provider,{value:i,children:(0,Z.jsx)(pI.Provider,{value:a,children:n})})},bI=function(e,t){e.font=(t.fontWeight?t.fontWeight+` `:``)+t.fontSize+`px `+t.fontFamily},xI=function(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),t.outlineWidth>0&&(e.strokeStyle=t.outlineColor,e.lineWidth=2*t.outlineWidth,e.lineJoin=`round`,e.strokeText(n,r,i)),e.fillStyle=t.fill,e.fillText(n,r,i)};function SI(){return SI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SI.apply(null,arguments)}function CI(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var wI=[`style`,`children`],TI=[`outlineWidth`,`outlineColor`,`outlineOpacity`],EI=function(e){var t=e.style,n=e.children,r=CI(e,wI),i=t.outlineWidth,a=t.outlineColor,o=t.outlineOpacity,s=CI(t,TI);return(0,Z.jsxs)(Z.Fragment,{children:[i>0&&(0,Z.jsx)(rS.text,SI({},r,{style:SI({},s,{strokeWidth:2*i,stroke:a,strokeOpacity:o,strokeLinejoin:`round`}),children:n})),(0,Z.jsx)(rS.text,SI({},r,{style:s,children:n}))]})};function DI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OI(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if(typeof e==`string`)return DI(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?DI(e,t):void 0}}(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance. 25In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kI(){return kI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kI.apply(null,arguments)}var AI={nivo:[`#e8c1a0`,`#f47560`,`#f1e15b`,`#e8a838`,`#61cdbb`,`#97e3d5`],category10:zM,accent:BM,dark2:VM,paired:HM,pastel1:UM,pastel2:WM,set1:GM,set2:KM,set3:qM,tableau10:JM},jI=Object.keys(AI),MI={brown_blueGreen:XM,purpleRed_green:QM,pink_yellowGreen:eN,purple_orange:nN,red_blue:iN,red_grey:oN,red_yellow_blue:cN,red_yellow_green:uN,spectral:fN},NI=Object.keys(MI),PI={brown_blueGreen:ZM,purpleRed_green:$M,pink_yellowGreen:tN,purple_orange:rN,red_blue:aN,red_grey:sN,red_yellow_blue:lN,red_yellow_green:dN,spectral:pN},FI={blues:RN,greens:BN,greys:HN,oranges:JN,purples:WN,reds:KN,blue_green:mN,blue_purple:gN,green_blue:vN,orange_red:bN,purple_blue_green:SN,purple_blue:wN,purple_red:EN,red_purple:ON,yellow_green_blue:AN,yellow_green:MN,yellow_orange_brown:PN,yellow_orange_red:IN},II=Object.keys(FI),LI={blues:zN,greens:VN,greys:UN,oranges:YN,purples:GN,reds:qN,turbo:oP,viridis:cP,inferno:uP,magma:lP,plasma:dP,cividis:XN,warm:QN,cool:$N,cubehelixDefault:ZN,blue_green:hN,blue_purple:_N,green_blue:yN,orange_red:xN,purple_blue_green:CN,purple_blue:TN,purple_red:DN,red_purple:kN,yellow_green_blue:jN,yellow_green:NN,yellow_orange_brown:FN,yellow_orange_red:LN},RI=kI({},AI,MI,FI),zI=function(e){return jI.includes(e)},BI=function(e){return NI.includes(e)},VI=function(e){return II.includes(e)};kI({},PI,LI,{rainbow:tP,sinebow:aP});var HI=function(e){return e.theme!==void 0},UI=function(e){return e.from!==void 0},WI=function(e,t){if(typeof e==`function`)return e;if((0,YP.default)(e)){if(HI(e)){if(t===void 0)throw Error(`Unable to use color from theme as no theme was provided`);var n=(0,sw.default)(t,e.theme);if(n===void 0)throw Error(`Color from theme is undefined at path: '`+e.theme+`'`);return function(){return n}}if(UI(e)){var r=function(t){return(0,sw.default)(t,e.from)};if(Array.isArray(e.modifiers)){for(var i,a=[],o=function(){var e=i.value,t=e[0],n=e[1];if(t===`brighter`)a.push((function(e){return e.brighter(n)}));else if(t===`darker`)a.push((function(e){return e.darker(n)}));else{if(t!==`opacity`)throw Error(`Invalid color modifier: '`+t+`', must be one of: 'brighter', 'darker', 'opacity'`);a.push((function(e){return e.opacity=n,e}))}},s=OI(e.modifiers);!(i=s()).done;)o();return a.length===0?r:function(e){return a.reduce((function(e,t){return t(e)}),cT(r(e))).toString()}}return r}throw Error(`Invalid color spec, you should either specify 'theme' or 'from' when using a config object`)}return function(){return e}},GI=function(e,t){return(0,_.useMemo)((function(){return WI(e,t)}),[e,t])},KI=function(e,t){if(typeof e==`function`)return e;var n=typeof t==`function`?t:function(e){return(0,sw.default)(e,t)};if(Array.isArray(e)){var r=TO(e),i=function(e){return r(n(e))};return i.scale=r,i}if((0,YP.default)(e)){if(function(e){return e.datum!==void 0}(e))return function(t){return(0,sw.default)(t,e.datum)};if(function(e){return e.scheme!==void 0}(e)){if(zI(e.scheme)){var a=TO(RI[e.scheme]),o=function(e){return a(n(e))};return o.scale=a,o}if(BI(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>11))throw Error(`Invalid size '`+e.size+`' for diverging color scheme '`+e.scheme+`', must be between 3~11`);var s=TO(RI[e.scheme][e.size||11]),c=function(e){return s(n(e))};return c.scale=s,c}if(VI(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw Error(`Invalid size '`+e.size+`' for sequential color scheme '`+e.scheme+`', must be between 3~9`);var l=TO(RI[e.scheme][e.size||9]),u=function(e){return l(n(e))};return u.scale=l,u}}throw Error(`Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property`)}return function(){return e}},qI=function(e,t){return(0,_.useMemo)((function(){return KI(e,t)}),[e,t])};function JI(){return JI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JI.apply(null,arguments)}var YI={pointerEvents:`none`},XI=function(e){var t=e.label,n=e.style,r=Cw();return(0,Z.jsx)(rS.g,{transform:n.transform,opacity:n.progress,style:YI,children:(0,Z.jsx)(EI,{textAnchor:`middle`,dominantBaseline:`central`,style:JI({},r.labels.text,{fill:n.textColor}),children:t})})},ZI=function(e,t,n,r,i){return[`A`,e,e,0,t,n,r,i].join(` `)},QI={startAngle:{enter:function(e){return JI({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return JI({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return JI({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return JI({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return JI({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return JI({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return JI({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return JI({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return JI({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return JI({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return JI({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return JI({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return JI({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return JI({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return JI({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return JI({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},$I=function(e,t){return(0,_.useMemo)((function(){var n=QI[e];return{enter:function(e){return JI({progress:0},n.enter(e.arc),t?t.enter(e):{})},update:function(e){return JI({progress:1},n.update(e.arc),t?t.update(e):{})},leave:function(e){return JI({progress:0},n.leave(e.arc),t?t.leave(e):{})}}}),[e,t])},eL=function(e,t){return yF(vF(e)-Math.PI/2,e.innerRadius+(e.outerRadius-e.innerRadius)*t)},tL=function(e){return function(t,n,r,i){return Vx([t,n,r,i],(function(t,n,r,i){var a=eL({startAngle:t,endAngle:n,innerRadius:r,outerRadius:i},e);return`translate(`+a.x+`,`+a.y+`)`}))}},nL=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n=`innerRadius`);var i=eF(),a=i.animate,o=i.config,s=$I(n,r);return{transition:Px(e,{keys:function(e){return e.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:o,immediate:!a}),interpolate:tL(t)}},rL=function(e){var t=e.center,n=e.data,r=e.transitionMode,i=e.label,a=e.radiusOffset,o=e.skipAngle,s=e.ski
25pRadius,c=e.textColor,l=e.component,u=l===void 0?XI:l,d=KF(i),f=GI(c,Cw()),p=nL((0,_.useMemo)((function(){return n.filter((function(e){var t=Math.abs(_F(e.arc.endAngle-e.arc.startAngle)),n=Math.abs(e.arc.outerRadius-e.arc.innerRadius);return t>=o&&n>=s}))}),[n,o,s]),a,r),m=p.transition,h=p.interpolate,g=u;return(0,Z.jsx)(`g`,{transform:`translate(`+t[0]+`,`+t[1]+`)`,children:m((function(e,t){return(0,_.createElement)(g,{key:t.id,datum:t,label:d(t),style:{progress:e.progress,transform:h(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textColor:f(t)}})}))})};nD().x((function(e){return e.x})).y((function(e){return e.y}));var iL=[`animated`],aL=function(e){var t=e.animated,n=function(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}(e,iL);return(0,Z.jsx)(rS.path,JI({d:Vx([t.radius,t.startAngle,t.endAngle],(function(e,t,n){return function(e,t,n){var r=Math.min(t,n),i=Math.max(t,n),a=yF(gF(i),e),o=yF(gF(r),e);if(i-r>=360){var s=yF(gF(r+180),e);return[`M `+a.x+` `+a.y,ZI(e,1,1,s.x,s.y),`M `+a.x+` `+a.y,ZI(e,1,0,s.x,s.y)].join(` `)}var c=i-r<=180?0:1;return[`M `+a.x+` `+a.y,ZI(e,c,0,o.x,o.y)].join(` `)}(e,t,n)}))},n))},oL=function(e){var t=e.datum,n=e.style,r=e.onClick,i=e.onMouseEnter,a=e.onMouseMove,o=e.onMouseLeave,s=(0,_.useCallback)((function(e){return r?.(t,e)}),[r,t]),c=(0,_.useCallback)((function(e){return i?.(t,e)}),[i,t]),l=(0,_.useCallback)((function(e){return a?.(t,e)}),[a,t]),u=(0,_.useCallback)((function(e){return o?.(t,e)}),[o,t]);return(0,Z.jsx)(rS.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?s:void 0,onMouseEnter:i?c:void 0,onMouseMove:a?l:void 0,onMouseLeave:o?u:void 0,"data-testid":`arc.`+t.id})},sL=function(e,t,n,r,i){return Vx([e,t,n,r],(function(e,t,n,r){return i({startAngle:e,endAngle:t,innerRadius:Math.max(0,n),outerRadius:Math.max(0,r)})}))},cL=function(e,t,n){t===void 0&&(t=`innerRadius`);var r=eF(),i=r.animate,a=r.config,o=$I(t,n);return{transition:Px(e,{keys:function(e){return e.id},initial:o.update,from:o.enter,enter:o.update,update:o.update,leave:o.leave,config:a,immediate:!i}),interpolate:sL}},lL=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,a=e.borderColor,o=e.onClick,s=e.onMouseEnter,c=e.onMouseMove,l=e.onMouseLeave,u=e.transitionMode,d=e.component,f=d===void 0?oL:d,p=GI(a,Cw()),m=cL(n,u,{enter:function(e){return{opacity:0,color:e.color,borderColor:p(e)}},update:function(e){return{opacity:1,color:e.color,borderColor:p(e)}},leave:function(e){return{opacity:0,color:e.color,borderColor:p(e)}}}),h=m.transition,g=m.interpolate,v=f;return(0,Z.jsx)(`g`,{transform:`translate(`+t[0]+`,`+t[1]+`)`,children:h((function(e,t){return(0,_.createElement)(v,{key:t.id,datum:t,style:JI({},e,{borderWidth:i,path:g(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,r)}),onClick:o,onMouseEnter:s,onMouseMove:c,onMouseLeave:l})}))})},uL=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,c=s===void 0?0:s,l=e.borderColor;return(0,Z.jsx)(`circle`,{r:r/2,cx:t+r/2,cy:n+r/2,fill:i,opacity:o,strokeWidth:c,stroke:l===void 0?`transparent`:l,style:{pointerEvents:`none`}})},dL=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,c=s===void 0?0:s,l=e.borderColor;return(0,Z.jsx)(`g`,{transform:`translate(`+t+`,`+n+`)`,children:(0,Z.jsx)(`path`,{d:` 26 M`+r/2+` 0 27 L`+.8*r+` `+r/2+` 28 L`+r/2+` `+r+` 29 L`+.2*r+` `+r/2+` 30 L`+r/2+` 0 31 `,fill:i,opacity:o,strokeWidth:c,stroke:l===void 0?`transparent`:l,style:{pointerEvents:`none`}})})},fL=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,c=s===void 0?0:s,l=e.borderColor;return(0,Z.jsx)(`rect`,{x:t,y:n,fill:i,opacity:o,strokeWidth:c,stroke:l===void 0?`transparent`:l,width:r,height:r,style:{pointerEvents:`none`}})},pL=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,c=s===void 0?0:s,l=e.borderColor;return(0,Z.jsx)(`g`,{transform:`translate(`+t+`,`+n+`)`,children:(0,Z.jsx)(`path`,{d:` 32 M`+r/2+` 0 33 L`+r+` `+r+` 34 L0 `+r+` 35 L`+r/2+` 0 36 `,fill:i,opacity:o,strokeWidth:c,stroke:l===void 0?`transparent`:l,style:{pointerEvents:`none`}})})};function mL(){return mL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mL.apply(null,arguments)}var hL={translateX:0,translateY:0,padding:0,itemsSpacing:0,itemDirection:`left-to-right`,justify:!1,symbolShape:`square`,symbolSize:16,symbolSpacing:8},gL={top:0,right:0,bottom:0,left:0},_L=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,a=e.itemCount,o=e.itemWidth,s=e.itemHeight;if(typeof i!=`number`&&(typeof(t=i)!=`object`||Array.isArray(t)||t===null))throw Error(`Invalid property padding, must be one of: number, object`);var c=typeof i==`number`?{top:i,right:i,bottom:i,left:i}:mL({},gL,i),l=c.left+c.right,u=c.top+c.bottom,d=o+l,f=s+u,p=(a-1)*r;return n===`row`?d=o*a+p+l:n===`column`&&(f=s*a+p+u),{width:d,height:f,padding:c}},vL=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,a=e.containerHeight,o=e.width,s=e.he
36ight,c=n,l=r;switch(t){case`top`:c+=(i-o)/2;break;case`top-right`:c+=i-o;break;case`right`:c+=i-o,l+=(a-s)/2;break;case`bottom-right`:c+=i-o,l+=a-s;break;case`bottom`:c+=(i-o)/2,l+=a-s;break;case`bottom-left`:l+=a-s;break;case`left`:l+=(a-s)/2;break;case`center`:c+=(i-o)/2,l+=(a-s)/2}return{x:c,y:l}},yL=function(e){var t,n,r,i,a,o,s=e.direction,c=e.justify,l=e.symbolSize,u=e.symbolSpacing,d=e.width,f=e.height;switch(s){case`left-to-right`:t=0,n=(f-l)/2,i=f/2,o=`central`,c?(r=d,a=`end`):(r=l+u,a=`start`);break;case`right-to-left`:t=d-l,n=(f-l)/2,i=f/2,o=`central`,c?(r=0,a=`start`):(r=d-l-u,a=`end`);break;case`top-to-bottom`:t=(d-l)/2,n=0,r=d/2,a=`middle`,c?(i=f,o=`alphabetic`):(i=l+u,o=`text-before-edge`);break;case`bottom-to-top`:t=(d-l)/2,n=f-l,r=d/2,a=`middle`,c?(i=0,o=`text-before-edge`):(i=f-l-u,o=`alphabetic`)}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:a,labelAlignment:o}},bL={circle:uL,diamond:dL,square:fL,triangle:pL},xL=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.data,o=e.direction,s=o===void 0?hL.itemDirection:o,c=e.justify,l=c===void 0?hL.justify:c,u=e.textColor,d=e.background,f=d===void 0?`transparent`:d,p=e.opacity,m=p===void 0?1:p,h=e.symbolShape,g=h===void 0?hL.symbolShape:h,v=e.symbolSize,y=v===void 0?hL.symbolSize:v,b=e.symbolSpacing,x=b===void 0?hL.symbolSpacing:b,S=e.symbolBorderWidth,C=S===void 0?0:S,w=e.symbolBorderColor,T=w===void 0?`transparent`:w,E=e.onClick,D=e.onMouseEnter,O=e.onMouseLeave,k=e.toggleSerie,A=e.effects,j=(0,_.useState)({}),M=j[0],N=j[1],P=Cw(),F=(0,_.useCallback)((function(e){A&&N(A.filter((function(e){return e.on===`hover`})).reduce((function(e,t){return mL({},e,t.style)}),{})),D?.(a,e)}),[D,a,A]),I=(0,_.useCallback)((function(e){A&&N(A.filter((function(e){return e.on!==`hover`})).reduce((function(e,t){return mL({},e,t.style)}),{})),O?.(a,e)}),[O,a,A]),L=yL({direction:s,justify:l,symbolSize:M.symbolSize??y,symbolSpacing:x,width:r,height:i}),R=L.symbolX,z=L.symbolY,B=L.labelX,V=L.labelY,H=L.labelAnchor,U=L.labelAlignment,ee=[E,D,O,k].some((function(e){return e!==void 0})),W=typeof g==`function`?g:bL[g];return(0,Z.jsxs)(`g`,{transform:`translate(`+t+`,`+n+`)`,style:{opacity:M.itemOpacity??m},children:[(0,Z.jsx)(`rect`,{width:r,height:i,fill:M.itemBackgroun
36d??f,style:{cursor:ee?`pointer`:`auto`},onClick:function(e){E?.(a,e),k?.(a.id)},onMouseEnter:F,onMouseLeave:I}),_.createElement(W,mL({id:a.id,x:R,y:z,size:M.symbolSize??y,fill:a.fill??a.color??`black`,borderWidth:M.symbolBorderWidth??C,borderColor:M.symbolBorderColor??T},a.hidden?P.legends.hidden.symbol:void 0)),(0,Z.jsx)(EI,{textAnchor:H,style:mL({},P.legends.text,{fill:M.itemTextColor??u??P.legends.text.fill??`black`,dominantBaseline:U,pointerEvents:`none`,userSelect:`none`},a.hidden?P.legends.hidden.text:void 0),x:B,y:V,children:a.label})]})},SL=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,a=e.padding,o=a===void 0?hL.padding:a,s=e.justify,c=e.effects,l=e.itemWidth,u=e.itemHeight,d=e.itemDirection,f=d===void 0?hL.itemDirection:d,p=e.itemsSpacing,m=p===void 0?hL.itemsSpacing:p,h=e.itemTextColor,g=e.itemBackground,_=g===void 0?`transparent`:g,v=e.itemOpacity,y=v===void 0?1:v,b=e.symbolShape,x=e.symbolSize,S=e.symbolSpacing,C=e.symbolBorderWidth,w=e.symbolBorderColor,T=e.onClick,E=e.onMouseEnter,D=e.onMouseLeave,O=e.toggleSerie,k=_L({itemCount:t.length,itemWidth:l,itemHeight:u,itemsSpacing:m,direction:i,padding:o}).padding,A=i===`row`?l+m:0,j=i===`column`?u+m:0;return(0,Z.jsx)(`g`,{transform:`translate(`+n+`,`+r+`)`,children:t.map((function(e,t){return(0,Z.jsx)(xL,{data:e,x:t*A+k.left,y:t*j+k.top,width:l,height:u,direction:f,justify:s,effects:c,textColor:h,background:_,opacity:y,symbolShape:b,symbolSize:x,symbolSpacing:S,symbolBorderWidth:C,symbolBorderColor:w,onClick:T,onMouseEnter:E,onMouseLeave:D,toggleSerie:O},t)}))})},CL=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,a=i===void 0?hL.translateX:i,o=e.translateY,s=o===void 0?hL.translateY:o,c=e.anchor,l=e.direction,u=e.padding,d=u===void 0?hL.padding:u,f=e.justify,p=e.itemsSpacing,m=p===void 0?hL.itemsSpacing:p,h=e.itemWidth,g=e.itemHeight,_=e.itemDirection,v=e.itemTextColor,y=e.itemBackgroun
36d,b=e.itemOpacity,x=e.symbolShape,S=e.symbolSize,C=e.symbolSpacing,w=e.symbolBorderWidth,T=e.symbolBorderColor,E=e.onClick,D=e.onMouseEnter,O=e.onMouseLeave,k=e.toggleSerie,A=e.effects,j=_L({itemCount:t.length,itemsSpacing:m,itemWidth:h,itemHeight:g,direction:l,padding:d}),M=j.width,N=j.height,P=vL({anchor:c,translateX:a,translateY:s,containerWidth:n,containerHeight:r,width:M,height:N}),F=P.x,I=P.y;return(0,Z.jsx)(SL,{data:t,x:F,y:I,direction:l,padding:d,justify:f,effects:A,itemsSpacing:m,itemWidth:h,itemHeight:g,itemDirection:_,itemTextColor:v,itemBackground:y,itemOpacity:b,symbolShape:x,symbolSize:S,symbolSpacing:C,symbolBorderWidth:w,symbolBorderColor:T,onClick:E,onMouseEnter:D,onMouseLeave:O,toggleSerie:typeof k==`boolean`?void 0:k})},wL={start:`left`,middle:`center`,end:`right`},TL=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,a=t.translateX,o=a===void 0?0:a,s=t.translateY,c=s===void 0?0:s,l=t.anchor,u=t.direction,d=t.padding,f=d===void 0?0:d,p=t.justify,m=p!==void 0&&p,h=t.itemsSpacing,g=h===void 0?0:h,_=t.itemWidth,v=t.itemHeight,y=t.itemDirection,b=y===void 0?`left-to-right`:y,x=t.itemTextColor,S=t.symbolSize,C=S===void 0?16:S,w=t.symbolSpacing,T=w===void 0?8:w,E=t.theme,D=_L({itemCount:n.length,itemWidth:_,itemHeight:v,itemsSpacing:g,direction:u,padding:f}),O=D.width,k=D.height,A=D.padding,j=vL({anchor:l,translateX:o,translateY:c,containerWidth:r,containerHeight:i,width:O,height:k}),M=j.x,N=j.y,P=u===`row`?_+g:0,F=u===`column`?v+g:0;e.save(),e.translate(M,N),bI(e,E.legends.text),n.forEach((function(t,n){var r=n*P+A.left,i=n*F+A.top,a=yL({direction:b,justify:m,symbolSize:C,symbolSpacing:T,width:_,height:v}),o=a.symbolX,s=a.symbolY,c=a.labelX,l=a.labelY,u=a.labelAnchor,d=a.labelAlignment;e.fillStyle=t.color??`black`,e.fillRect(r+o,i+s,C,C),e.textAlign=wL[u],d===`central`&&(e.textBaseline=`middle`),xI(e,mL({},E.legends.text,{fill:x??E.legends.text.fill}),String(t.label),r+c,i+l)})),e.restore()},EL=o(((e,t)=>{function n(){}t.exports=n})),DL=o(((e,t)=>{var n=BP(),r=EL(),i=DP();t.exports=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:r})),OL=o(((e,t)=>{var n=dE(),r=gE(),i=_E(),a=vE(),o=DL(),s=DP(),c=200;function l(e,t,l){var u=-1,d=r,f=e.length,p=!0,m=[],h=m;if(l)p=!1,d=i;else if(f>=c){var g=t?null:o(e);if(g)return s(g);p=!1,d=a,h=new n}else h=t?[]:m;outer:for(;++u<f;){var _=e[u],v=t?t(_):_;if(_=l||_!==0?_:0,p&&v===v){for(var y=h.length;y--;)if(h[y]===v)continue outer;t&&h.push(v),m.push(_)}else d(h,v,l)||(h!==m&&h.push(v),m.push(_))}return m}t.exports=l})),kL=o(((e,t)=>{var n=OL();function r(e){return e&&e.length?n(e):[]}t.exports=r})),AL=o(((e,t)=>{var n=qS(),r=WP(),i=1,a=2;function o(e,t,o,s){var c=o.length,l=c,u=!s;if(e==null)return!l;for(e=Object(e);c--;){var d=o[c];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++c<l;){d=o[c];var f=d[0],p=e[f],m=d[1];if(u&&d[2]){if(p===void 0&&!(f in e))return!1}else{var h=new n;if(s)var g=s(p,m,f,e,t,h);if(!(g===void 0?r(m,p,i|a,s,h):g))return!1}}return!0}t.exports=o})),jL=o(((e,t)=>{var n=SS();function r(e){return e===e&&!n(e)}t.exports=r})),ML=o(((e,t)=>{var n=jL(),r=FP();function i(e){for(var t=r(e),i=t.length;i--;){var a=t[i],o=e[a];t[i]=[a,o,n(o)]}return t}t.exports=i})),NL=o(((e,t)=>{function n(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}t.exports=n})),PL=o(((e,t)=>{var n=AL(),r=ML(),i=NL();function a(e){var t=r(e);return t.length==1&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}t.exports=a})),FL=o(((e,t)=>{var n=WP(),r=rw(),i=gP(),a=qC(),o=jL(),s=NL(),c=tw(),l=1,u=2;function d(e,t){return a(e)&&o(t)?s(c(e),t):function(a){var o=r(a,e);return o===void 0&&o===t?i(a,e):n(t,o,l|u)}}t.exports=d})),IL=o(((e,t)=>{function n(e){return function(t){return t?.[e]}}t.exports=n})),LL=o(((e,t)=>{var n=nw();function r(e){return function(t){return n(t,e)}}t.exports=r})),RL=o(((e,t)=>{var n=IL(),r=LL(),i=qC(),a=tw();function o(e){return i(e)?n(a(e)):r(e)}t.exports=o})),zL=o(((e,t)=>{var n=PL(),r=FL(),i=FC(),a=fC(),o=RL();function s(e){return typeof e==`function`?e:e==null?i:typeof e==`object`?a(e)?r(e[0],e[1]):n(e):o(e)}t.exports=s})),BL=o(((e,t)=>{var n=zL(),r=OL();function i(e,t){return e&&e.length?r(e,n(t,2)):[]}t.exports=i})),VL=o(((e,t)=>{var n=QS(),r=FP();function i(e,t){return e&&n(e,t,r)}t.exports=i})),HL=o(((e,t)=>{var n=mC();function r(e,t){return function(r,i){if(r==null)return r;if(!n(r))return e(r,i);for(var a=r.length,o=t?a:-1,s=Object(r);(t?o--:++o<a)&&i(s[o],o,s)!==!1;);return r}}t.exports=r})),UL=o(((e,t)=>{var n=VL();t.exports=HL()(n)})),WL=o(((e,t)=>{var n=UL(),r=mC();function i(e,t){var i=-1,a=r(e)?Array(e.length):[];return n(e,function(e,n,r){a[++i]=t(e,n,r)}),a}t.exports=i})),GL=o(((e,t)=>{function n(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}t.exports=n})),KL=o(((e,t)=>{var n=KC();function r(e,t){if(e!==t){var r=e!==void 0,i=e===null,a=e===e,o=n(e),s=t!==void 0,c=t===null,l=t===t,u=n(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}t.exports=r})),qL=o(((e,t)=>{var n=KL();function r(e,t,r){for(var i=-1,a=e.criteria,o=t.criteria,s=a.length,c=r.length;++i<s;){var l=n(a[i],o[i]);if(l)return i>=c?l:l*(r[i]==`desc`?-1:1)}return e.index-t.index}t.exports=r})),JL=o(((e,t)=>
36{var n=ZC(),r=nw(),i=zL(),a=WL(),o=GL(),s=bC(),c=qL(),l=FC(),u=fC();function d(e,t,d){t=t.length?n(t,function(e){return u(e)?function(t){return r(t,e.length===1?e[0]:e)}:e}):[l];var f=-1;return t=n(t,s(i)),o(a(e,function(e,r,i){return{criteria:n(t,function(t){return t(e)}),index:++f,value:e}}),function(e,t){return c(e,t,d)})}t.exports=d})),YL=o(((e,t)=>{var n=bP(),r=JL(),i=HC(),a=UC();t.exports=i(function(e,t){if(e==null)return[];var i=t.length;return i>1&&a(e,t[0],t[1])?t=[]:i>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),r(e,n(t,1),[])})})),XL=o(((e,t)=>{var n=xS(),r=lC(),i=`[object Date]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),ZL=o(((e,t)=>{var n=XL(),r=bC(),i=xC(),a=i&&i.isDate;t.exports=a?r(a):n}));kL();var QL=c(BL(),1);YL(),ZL();function $L(){return $L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$L.apply(null,arguments)}var eR=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],tR={millisecond:[],second:eR.slice(0,1),minute:eR.slice(0,2),hour:eR.slice(0,3),day:eR.slice(0,4),month:eR.slice(0,5),year:eR.slice(0,6)},nR=function(e){return function(t){return tR[e].forEach((function(e){e(t)})),t}},rR=function(e){var t=e.format,n=t===void 0?`native`:t,r=e.precision,i=r===void 0?`millisecond`:r,a=e.useUTC,o=a===void 0||a,s=nR(i);return function(e){return e===void 0?e:n===`native`||e instanceof Date?s(e):s((o?EM(n):wM(n))(e))}},iR={type:`linear`,min:0,max:`auto`,stacked:!1,reverse:!1,clamp:!1,nice:!0,round:!1},aR=function(e,t,n,r){var i,a,o=e.min,s=o===void 0?iR.min:o,c=e.max,l=c===void 0?iR.max:c,u=e.stacked,d=u===void 0?iR.stacked:u,f=e.reverse,p=f===void 0?iR.reverse:f,m=e.clamp,h=m===void 0?iR.clamp:m,g=e.nice,_=g===void 0?iR.nice:g,v=e.round,y=v===void 0?iR.round:v;i=s===`auto`?!0===d?t.minStacked??0:t.min:s,a=l===`auto`?!0===d?t.maxStacked??0:t.max:l;var b=fk().range(r===`x`?[0,n]:[n,0]).interpolate(y?aE:ZT).domain(p?[a,i]:[i,a]).clamp(h);return!0===_?b.nice():typeof _==`number`&&b.nice(_),oR(b,d)},oR=function(e,t){t===void 0&&(t=!1);var n=e;return n.type=`linear`,n.stacked=t,n},sR=function(e,t,n){var r=OO().range([0,n]).domain(t.all);return r.type=`point`,r},cR={type:`band`,round:!1},lR=function(e,t,n,r){var i=e.round,a=i===void 0?cR.round:i;return uR(EO().range(r===`x`?[0,n]:[n,0]).domain(t.all).round(a))},uR=function(e){var t=e;return t.type=`band`,t},dR={type:`time`,format:`native`,precision:`millisecond`,min:`auto`,max:`auto`,useUTC:!0,nice:!1},fR=function(e,t,n){var r,i,a=e.format,o=a===void 0?dR.format:a,s=e.precision,c=s===void 0?dR.precision:s,l=e.min,u=l===void 0?dR.min:l,d=e.max,f=d===void 0?dR.max:d,p=e.useUTC,m=p===void 0?dR.useUTC:p,h=e.nice,g=h===void 0?dR.nice:h,_=rR({format:o,precision:c,useUTC:m});r=u===`auto`?_(t.min):o===`native`?u:_(u),i=f===`auto`?_(t.max):o===`native`?f:_(f);var v=m?MM():jM();v.range([0,n]),r&&i&&v.domain([r,i]),!0===g?v.nice():typeof g!=`object`&&typeof g!=`number`||v.nice(g);var y=v;return y.type=`time`,y.useUTC=m,y},pR={type:`log`,base:10,min:`auto`,max:`auto`,round:!1,reverse:!1,nice:!0},mR=function(e,t,n,r){var i,a=e.base,o=a===void 0?pR.base:a,s=e.min,c=s===void 0?pR.min:s,l=e.max,u=l===void 0?pR.max:l,d=e.round,f=d===void 0?pR.round:d,p=e.reverse,m=p===void 0?pR.reverse:p,h=e.nice,g=h===void 0?pR.nice:h;if(t.all.some((function(e){return e===0})))throw Error(`a log scale domain must not include or cross zero`);var _,v,y=!1;if(t.all.filter((function(e){return e!=null})).forEach((function(e){y||(i===void 0?i=Math.sign(e):Math.sign(e)!==i&&(y=!0))})),y)throw Error(`a log scale domain must be strictly-positive or strictly-negative`);_=c===`auto`?t.min:c,v=u===`auto`?t.max:u;var b=Ck().base(o),x=r===`x`?[0,n]:[n,0];!0===f?b.rangeRound(x):b.range(x),!0===m?b.domain([v,_]):b.domain([_,v]),!0===g?b.nice():typeof g==`number`&&b.nice(g);var S=b;return S.type=`log`,S},hR={type:`symlog`,constant:1,min:`auto`,max:`auto`,round:!1,reverse:!1,nice:!0},gR=function(e,t,n,r){var i,a,o=e.constant,s=o===void 0?hR.constant:o,c=e.min,l=c===void 0?hR.min:c,u=e.max,d=u===void 0?hR.max:u,f=e.round,p=f===void 0?hR.roun
36d:f,m=e.reverse,h=m===void 0?hR.reverse:m,g=e.nice,_=g===void 0?hR.nice:g;i=l===`auto`?t.min:l,a=d===`auto`?t.max:d;var v=Dk().constant(s),y=r===`x`?[0,n]:[n,0];!0===p?v.rangeRound(y):v.range(y),!0===h?v.domain([a,i]):v.domain([i,a]),!0===_?v.nice():typeof _==`number`&&v.nice(_);var b=v;return b.type=`symlog`,b};function _R(e,t,n,r){switch(e.type){case`linear`:return aR(e,t,n,r);case`point`:return sR(0,t,n);case`band`:return lR(e,t,n,r);case`time`:return fR(e,t,n);case`log`:return mR(e,t,n,r);case`symlog`:return gR(e,t,n,r);default:throw Error(`invalid scale spec`)}}var vR=function(e){var t=e.bandwidth();if(t===0)return e;var n=t/2;return e.round()&&(n=Math.round(n)),function(t){return(e(t)??0)+n}},yR={millisecond:[SA,SA],second:[OA,OA],minute:[kA,HA],hour:[AA,UA],day:[xA((function(e){return e.setHours(0,0,0,0)}),(function(e,t){return e.setDate(e.getDate()+t)}),(function(e,t){return(t.getTime()-e.getTime())/864e5}),(function(e){return Math.floor(e.getTime()/864e5)})),xA((function(e){return e.setUTCHours(0,0,0,0)}),(function(e,t){return e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t.getTime()-e.getTime())/864e5}),(function(e){return Math.floor(e.getTime()/864e5)}))],week:[NA,KA],sunday:[NA,KA],monday:[PA,qA],tuesday:[FA,JA],wednesday:[IA,YA],thursday:[LA,XA],friday:[RA,ZA],saturday:[zA,QA],month:[BA,$A],year:[VA,ej]},bR=RegExp(`^every\\s*(\\d+)?\\s*(`+Object.keys(yR).join(`|`)+`)s?$`,`i`),xR=function(e,t){if(Array.isArray(t))return t;if(typeof t==`string`&&`useUTC`in e){var n=t.match(bR);if(n){var r=n[1],i=n[2],a=yR[i][+!!e.useUTC];if(i===`day`){var o=e.domain(),s=o[0],c=o[1],l=new Date(c);return l.setDate(l.getDate()+1),a.every(Number(r??1))?.range(s,l)??[]}if(r===void 0)return e.ticks(a);var u=a.every(Number(r));if(u)return e.ticks(u)}throw Error(`Invalid tickValues: `+t)}if(`ticks`in e){if(t===void 0)return e.ticks();if(typeof(d=t)==`number`&&isFinite(d)&&Math.floor(d)===d)return e.ticks(t)}var d;return e.domain()};function SR(){return SR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SR.apply(null,arguments)}var CR=function(e){var t=e.label,n=e.theme,r=e.animated;return(0,Z.jsxs)(rS.g,{opacity:r.opacity,children:[(0,Z.jsx)(rS.line,{x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2,style:n.ticks.line}),(0,Z.jsx)(EI,{dx:r.textX,dy:r.textY,dominantBaseline:`central`,style:n.ticks.text,textAnchor:`middle`,children:t})]})},wR=function(e,t,n){var r=yF(gF(e),t),i=yF(gF(e),n);return{x1:r.x,y1:r.y,x2:i.x,y2:i.y}},TR=function(e,t){var n=yF(gF(e),t);return{textX:n.x,textY:n.y}},ER=function(e){var t=e.type,n=e.center,r=n===void 0?[0,0]:n,i=e.radius,a=e.startAngle,o=e.endAngle,s=e.scale,c=e.tickSize,l=c===void 0?5:c,u=e.tickPadding,d=u===void 0?12:u,f=e.tickComponent,p=f===void 0?CR:f,m=e.style,h=a-90,g=o-90,v=eF(),y=v.animate,b=v.config,x=Nx({radius:i,startAngle:h,endAngle:g,opacity:1,immediate:!y,config:b}),S=(0,_.useMemo)((function(){var e=xR(s),t=`bandwidth`in s?vR(s):s;return e.map((function(e,n){return{key:n,label:e,angle:t(e)-90}}))}),[s]),C=t===`inner`?i-l:i+l,w=t===`inner`?C-d:C+d,T=Px(S,{keys:function(e){return e.key},initial:function(e){return SR({},wR(e.angle,i,C),TR(e.angle,w),{opacity:1})},from:function(e){return SR({},wR(e.angle,i,C),TR(e.angle,w),{opacity:0})},enter:function(e){return SR({},wR(e.angle,i,C),TR(e.angle,w),{opacity:1})},update:function(e){return SR({},wR(e.angle,i,C),TR(e.angle,w),{opacity:1})},leave:function(e){return SR({},wR(e.angle,i,C),TR(e.angle,w),{opacity:0})},immediate:!y,config:b}),E=yw(Cw().axis,m);return(0,Z.jsxs)(`g`,{transform:`translate(`+r[0]+`, `+r[1]+`)`,style:{pointerEvents:`none`},children:[(0,Z.jsx)(aL,SR({animated:x},E.domain.line,{fill:`none`})),T((function(e,t){return(0,_.createElement)(p,{key:t.key,label:t.label,theme:E,animated:e})}))]})},DR=function(e){var t=e.scale,n=e.innerRadius,r=e.outerRadius,i=Cw(),a=(0,_.useMemo)((function(){return xR(t).map((function(e,n){return{id:n,angle:t(e)-90}}))}),[t]),o=eF(),s=o.animate,c=o.config;return(0,Z.jsx)(Z.Fragment,{children:Px(a,{keys:function(e){return e.id},initial:function(e){return{angle:e.angle,opacity:1}},from:function(e){return{angle:e.angle,opacity:0}
36},enter:function(e){return{angle:e.angle,opacity:1}},update:function(e){return{angle:e.angle,opacity:1}},leave:function(e){return{angle:e.angle,opacity:0}},config:c,immediate:!s})((function(e,t){return(0,Z.jsx)(rS.g,{transform:e.angle.to((function(e){return`rotate(`+e+`)`})),opacity:e.opacity,children:(0,Z.jsx)(`line`,SR({x1:n,x2:r},i.grid.line))},t.id)}))})},OR=function(e){var t=e.scale,n=e.ticks,r=e.startAngle,i=e.endAngle,a=Cw(),o=r-90,s=i-90,c=(0,_.useMemo)((function(){return xR(t,n).map((function(e,n){var r=t(e);return`bandwidth`in t&&(r+=t.bandwidth()/2),{id:n,radius:r}}))}),[t,n]),l=eF(),u=l.animate,d=l.config;return(0,Z.jsx)(Z.Fragment,{children:Px(c,{keys:function(e){return e.id},initial:function(e){return{radius:e.radius,startAngle:o,endAngle:s,opacity:1}},from:function(e){return{radius:e.radius,startAngle:o,endAngle:s,opacity:0}},enter:function(e){return{radius:e.radius,startAngle:o,endAngle:s,opacity:1}},update:function(e){return{radius:e.radius,startAngle:o,endAngle:s,opacity:1}},leave:function(e){return{radius:e.radius,startAngle:o,endAngle:s,opacity:0}},config:d,immediate:!u})((function(e,t){return(0,Z.jsx)(aL,SR({animated:e},a.grid.line,{strokeOpacity:e.opacity,fill:`none`}),t.id)}))})},kR=function(e){var t=e.center,n=e.enableRadialGrid,r=e.angleScale,i=e.startAngle,a=e.endAngle,o=e.enableCircularGrid,s=e.radiusScale,c=e.circularGridTicks,l=Math.min.apply(Math,s.range()),u=Math.max.apply(Math,s.range());return(0,Z.jsxs)(`g`,{transform:`translate(`+t[0]+`,`+t[1]+`)`,children:[n&&(0,Z.jsx)(DR,{scale:r,innerRadius:l,outerRadius:u}),o&&(0,Z.jsx)(OR,{scale:s,ticks:c,startAngle:i,endAngle:a})]})},AR=function(e){var t=e.label,n=e.textAnchor,r=e.theme,i=e.animated;return(0,Z.jsxs)(rS.g,{opacity:i.opacity,transform:Vx([i.y,i.rotation],(function(e,t){return`translate(`+e+`, 0) rotate(`+t+`)`})),children:[(0,Z.jsx)(rS.line,{x2:i.length,style:r.ticks.line}),(0,Z.jsx)(EI,{dx:i.textX,textAnchor:n,dominantBaseline:`central`,style:r.ticks.text,children:t})]})},jR=function(e){var t,n,r,i,a=e.ticksPosition,o=e.center,s=e.angle,c=e.scale,l=e.ticks,u=e.tickSize,d=u===void 0?5:u,f=e.tickPadding,p=f===void 0?5:f,m=e.tickRotation,h=m===void 0?0:m,g=e.tickComponent,v=g===void 0?AR:g,y=e.style,b=bF(s);a===`before`?(i=90+h,b<=90?(r=(n=-d)-p,t=`end`):b<270?(r=(n=d)+p,t=`start`,i-=180):(r=(n=-d)-p,t=`end`)):(i=90+h,b<90?(r=(n=d)+p,t=`start`):b<270?(r=(n=-d)-p,t=`end`,i-=180):(r=(n=d)+p,t=`start`));var x=(0,_.useMemo)((function(){return xR(c,l).map((function(e,t){var n=c(e);return`bandwidth`in c&&(n+=c.bandwidth()/2),{key:t,label:e,position:n}}))}),[c,l]),S=eF(),C=S.animate,w=S.config,T=Nx({rotation:s-90,immediate:!C,config:w}),E=Px(x,{keys:function(e){return e.key},initial:function(e){return{y:e.position,textX:r,rotation:i,length:n,opacity:1}},from:function(e){return{y:e.position,textX:r,rotation:i,length:n,opacity:0}},enter:function(e){return{y:e.position,textX:r,rotation:i,length:n,opacity:1}},update:function(e){return{y:e.position,textX:r,rotation:i,length:n,opacity:1}},leave:function(e){return{y:e.position,textX:r,rotation:i,length:n,opacity:0}},immediate:!C,config:w}),D=yw(Cw().axis,y);return(0,Z.jsx)(`g`,{transform:`translate(`+o[0]+`, `+o[1]+`)`,style:{pointerEvents:`none`},children:(0,Z.jsx)(rS.g,{transform:T.rotation.to((function(e){return`rotate(`+e+`)`})),children:E((function(e,a){return(0,_.createElement)(v,{key:a.key,label:a.label,y:a.position,textX:r,rotation:i,length:n,textAnchor:t,theme:D,animated:e})}))})})};function MR(){return MR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MR.apply(null,arguments)}function NR(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var PR={maxValue:`auto`,layers:[`grid`,`tracks`,`bars`,`labels`,`legends`],startAngle:0,endAngle:270,innerRadius:.3,padding:.2,padAngle:0,cornerRadius:0,enableTracks:!0,tracksColor:`rgba(0, 0, 0, .15)`,enableRadialGrid:!0,enableCircularGrid:!0,radialAxisStart:{},radialAxisEnd:null,circularAxisInner:null,circularAxisOuter:{},colors:{scheme:`nivo`},borderWidth:0,borderColor:{from:`color`,modifiers:[[`darker`,1]]},enableLabels:!1,label:`formattedValue`,labelsSkipAngle:10,labelsSkipRadius:0,labelsRadiusOffset:.5,labelsTextColor:{theme:`labels.text.fill`},isInteractive:!0,tooltip:function(e){var t=e.bar;return(0,Z.jsx)(oI,{enableChip:!0,id:(0,Z.jsxs)(`span`,{children:[t.category,` - `,t.groupId]}),value:t.formattedValue,color:t.color})},legends:[],defs:[],fill:[],animate:!0,motionConfig:`gentle`,transitionMode:`centerRadius`,renderWrapper:!0},FR=MR({},PR),IR=function(e){var t=e.center,n=e.bars,r=e.borderWidth,i=e.borderColor,a=e.arcGenerator,o=e.isInteractive,s=e.tooltip,c=e.onClick,l=e.onMouseEnter,u=e.onMouseMove,d=e.onMouseLeave,f=e.transitionMode,p=hI(),m=p.showTooltipFromEvent,h=p.hideTooltip,g=(0,_.useCallback)((function(e,t){c?.(e,t)}),[c]),v=(0,_.useCallback)((function(e,t){m((0,_.createElement)(s,{bar:e}),t),l?.(e,t)}),[m,s,l]),y=(0,_.useCallback)((function(e,t){m((0,_.createElement)(s,{bar:e}),t),u?.(e,t)}),[m,s,u]),b=(0,_.useCallback)((function(e,t){h(),d?.(e,t)}),[h,d]);return(0,Z.jsx)(lL,{center:t,data:n,arcGenerator:a,borderWidth:r,borderColor:i,transitionMode:f,onClick:o?g:void 0,onMouseEnter:o?v:void 0,onMouseMove:o?y:void 0,onMouseLeave:o?b:void 0})},LR=function(e){var t=e.center,n=e.tracks,r=e.arcGenerator,i=e.transitionMode;return(0,Z.jsx)(lL,{center:t,data:n,arcGenerator:r,borderWidth:0,borderColor:`n
36one`,transitionMode:i})},RR=[`isInteractive`,`animate`,`motionConfig`,`theme`,`renderWrapper`],zR=function(e){var t=e.data,n=e.maxValue,r=n===void 0?FR.maxValue:n,i=e.valueFormat,a=e.startAngle,o=a===void 0?FR.startAngle:a,s=e.endAngle,c=s===void 0?FR.endAngle:s,l=e.innerRadius,u=l===void 0?FR.innerRadius:l,d=e.padding,f=d===void 0?FR.padding:d,p=e.padAngle,m=p===void 0?FR.padAngle:p,h=e.cornerRadius,g=h===void 0?FR.cornerRadius:h,v=e.width,y=e.height,b=e.margin,x=e.layers,S=x===void 0?FR.layers:x,C=e.enableTracks,w=C===void 0?FR.enableTracks:C,T=e.tracksColor,E=T===void 0?FR.tracksColor:T,D=e.enableRadialGrid,O=D===void 0?FR.enableRadialGrid:D,k=e.enableCircularGrid,A=k===void 0?FR.enableCircularGrid:k,j=e.radialAxisStart,M=j===void 0?FR.radialAxisStart:j,N=e.radialAxisEnd,P=N===void 0?FR.radialAxisEnd:N,F=e.circularAxisInner,I=F===void 0?FR.circularAxisInner:F,L=e.circularAxisOuter,R=L===void 0?FR.circularAxisOuter:L,z=e.colors,B=z===void 0?FR.colors:z,V=e.defs,H=V===void 0?FR.defs:V,U=e.fill,ee=U===void 0?FR.fill:U,W=e.borderWidth,te=W===void 0?FR.borderWidth:W,ne=e.borderColor,re=ne===void 0?FR.borderColor:ne,ie=e.enableLabels,ae=ie===void 0?FR.enableLabels:ie,G=e.label,oe=G===void 0?FR.label:G,K=e.labelsSkipAngle,se=K===void 0?FR.labelsSkipAngle:K,ce=e.labelsSkipRadius,le=ce===void 0?FR.labelsSkipRadius:ce,ue=e.labelsRadiusOffset,de=ue===void 0?FR.labelsRadiusOffset:ue,fe=e.labelsTextColor,pe=fe===void 0?FR.labelsTextColor:fe,me=e.isInteractive,he=me===void 0?FR.isInteractive:me,ge=e.tooltip,_e=ge===void 0?FR.tooltip:ge,ve=e.onClick,ye=e.onMouseEnter,be=e.onMouseMove,xe=e.onMouseLeave,Se=e.transitionMode,Ce=Se===void 0?FR.transitionMode:Se,we=e.legends,Te=we===void 0?FR.legends:we,Ee=e.role,De=e.ariaLabel,Oe=e.ariaLabelledBy,ke=e.ariaDescribedBy,Ae=e.forwardedRef,je=VF(v,y,b),Me=je.margin,Ne=je.innerWidth,Pe=je.innerHeight,Fe=je.outerWidth,Ie=je.outerHeight,Le=xF(o,c),Re=Le[0],ze=Le[1],Be=function(e){var t=e.data,n=e.maxValue,r=n===void 0?FR.maxValue:n,i=e.valueFormat,a=e.startAngle,o=a===void 0?PR.startAngle:a,s=e.endAngle,c=s===void 0?PR.endAngle:s,l=e.innerRadiusRatio,u=l===void 0?PR.innerRadius:l,d=e.padding,f=d===void 0?PR.padding:d,p=e.padAngle,m=p===void 0?PR.padAngle:p,h=e.cornerRadius,g=h===void 0?PR.cornerRadius:h,v=e.width,y=e.height,b=e.colors,x=b===void 0?PR.colors:b,S=e.tracksColor,C=S===void 0?PR.tracksColor:S,w=(0,_.useMemo)((function(){return[v/2,y/2]}),[v,y]),T=Math.min.apply(Math,w),E=T*Math.min(u,1),D=qI(x,`category`),O=(0,_.useMemo)((function(){var e={serieIds:[],categories:[],groups:[],maxValue:0};return t.forEach((function(t){e.serieIds.push(t.id);var n=0;t.data.forEach((function(t){e.categories.includes(t.x)||e.categories.push(t.x),n+=t.y})),e.groups.push({id:t.id,total:n,data:t.data})})),e.maxValue=r===`auto`?Math.max.apply(Math,e.groups.map((function(e){return e.total}))):r,e}),[t,r]),k=O.serieIds,A=O.categories,j=O.groups,M=O.maxValue,N=(0,_.useMemo)((function(){return oR(fk().domain([0,M]).range([o,c]))}),[M,o,c]),P=(0,_.useMemo)((function(){return uR(EO().domain(k).range([E,T]).padding(f))}),[k,T,E,f]),F=(0,_.useMemo)((function(){return XE().startAngle((function(e){return e.startAngle})).endAngle((function(e){return e.endAngle})).innerRadius((function(e){return e.innerRadius})).outerRadius((function(e){return e.outerRadius})).cornerRadius(g).padAngle(gF(m))}),[g,m]),I=WF(i),L=(0,_.useMemo)((function(){var e=[];return j.forEach((function(t){var n=0,r=P(t.id),i=r+P.bandwidth();t.data.forEach((function(a){var o=n+a.y,s={id:t.id+`.`+a.x,data:a,groupId:t.id,category:a.x,value:a.y,formattedValue:I(a.y),color:``,stackedValue:o,arc:{startAngle:gF(N(n)),endAngle:gF(N(o)),innerRadius:r,outerRadius:i}};s.color=D(s),n+=a.y,e.push(s)}))})),e}),[j,P,N,D,I]),R=gF(o),z=gF(c);return{center:w,outerRadius:T,innerRadius:E,bars:L,arcGenerator:F,radiusScale:P,valueScale:N,tracks:(0,_.useMemo)((function(){return xR(P).map((function(e){var t=P(e);return{id:e,color:C,arc:{startAngle:R,endAngle:z,innerRadius:t,outerRadius:t+P.bandwidth()}}}))}),[P,R,z,C]),legendData:(0,_.useMemo)((function(){return A.map((function(e){var t=L.find((function(t){return t.category===e}));return{id:e,label:e,color:t?t.color:void 0}}))}),[A,L]),customLayerProps:(0,_.useMemo)((function(){return{center:w,outerRadius:T,innerRadius:E,bars:L,arcGenerator:F,radiusScale:P,valueScale:N}}),[w,T,E,L,F,P,N])}}({data:t,maxValue:r,valueFormat:i,startAngle:Re,endAngle:ze,innerRadiusRatio:u,padding:f,padAngle:m,cornerRadius:g,width:Ne,height:Pe,colors:B,tracksColor:E}),Ve=Be.center,He=Be.innerRadius,Ue=Be.outerRadius,We=Be.bars,Ge=Be.arcGenerator,Ke=Be.radiu
36sScale,qe=Be.valueScale,Je=Be.tracks,Ye=Be.legendData,Xe=Be.customLayerProps,Ze={grid:null,tracks:null,bars:null,labels:null,legends:null};return S.includes(`grid`)&&(Ze.grid=(0,Z.jsxs)(_.Fragment,{children:[(0,Z.jsx)(kR,{center:Ve,enableRadialGrid:O,enableCircularGrid:A,angleScale:qe,radiusScale:Ke,startAngle:Re,endAngle:ze}),M&&(0,Z.jsx)(jR,MR({center:Ve,angle:Math.min(Re,ze),scale:Ke,ticksPosition:`before`},M)),P&&(0,Z.jsx)(jR,MR({center:Ve,angle:Math.max(Re,ze),scale:Ke,ticksPosition:`after`},P)),I&&(0,Z.jsx)(ER,MR({type:`inner`,center:Ve,radius:He,startAngle:Re,endAngle:ze,scale:qe},I)),R&&(0,Z.jsx)(ER,MR({type:`outer`,center:Ve,radius:Ue,startAngle:Re,endAngle:ze,scale:qe},R))]},`grid`)),S.includes(`tracks`)&&w&&(Ze.tracks=(0,Z.jsx)(LR,{center:Ve,tracks:Je,arcGenerator:Ge,transitionMode:Ce},`tracks`)),S.includes(`bars`)&&(Ze.bars=(0,Z.jsx)(IR,{center:Ve,bars:We,borderWidth:te,borderColor:re,arcGenerator:Ge,isInteractive:he,tooltip:_e,onClick:ve,onMouseEnter:ye,onMouseMove:be,onMouseLeave:xe,transitionMode:Ce},`bars`)),S.includes(`labels`)&&ae&&(Ze.labels=(0,Z.jsx)(rL,{center:Ve,data:We,label:oe,radiusOffset:de,skipAngle:se,skipRadius:le,textColor:pe,transitionMode:Ce},`labels`)),S.includes(`legends`)&&Te.length>0&&(Ze.legends=(0,Z.jsx)(_.Fragment,{children:Te.map((function(e,t){return(0,Z.jsx)(CL,MR({},e,{containerWidth:Ne,containerHeight:Pe,data:Ye}),t)}))},`legends`)),(0,Z.jsx)(AF,{width:Fe,height:Ie,margin:Me,defs:QF(H,We,ee,{dataKey:`data`,targetKey:`fill`}),role:Ee,ariaLabel:De,ariaLabelledBy:Oe,ariaDescribedBy:ke,ref:Ae,children:S.map((function(e,t){return typeof e==`function`?(0,Z.jsx)(_.Fragment,{children:(0,_.createElement)(e,Xe)},t):Ze?.[e]??null}))})},BR=(0,_.forwardRef)((function(e,t){var n=e.isInteractive,r=n===void 0?FR.isInteractive:n,i=e.animate,a=i===void 0?FR.animate:i,o=e.motionConfig,s=o===void 0?FR.motionConfig:o,c=e.theme,l=e.renderWrapper,u=NR(e,RR);return(0,Z.jsx)(rF,{animate:a,isInteractive:r,motionConfig:s,renderWrapper:l,theme:c,children:(0,Z.jsx)(zR,MR({isInteractive:r},u,{forwardedRef:t}))})})),VR=[`defaultWidth`,`defaultHeight`,`onResize`,`debounceResize`];(0,_.forwardRef)((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=NR(e,VR);return(0,Z.jsx)(oF,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(e){var n=e.width,r=e.height;return(0,Z.jsx)(BR,MR({width:n,height:r},o,{ref:t}))}})}));var HR=({size:e=`8px`,borderRadius:t=0,...n})=>(0,Z.jsx)(`span`,{className:`preview-dot theme-alt theme-preview-radius dib`,style:{"--preview-size":e,"--preview-radius":t},...n}),UR=({size:e=`8px`,borderRadius:t=0,...n})=>(0,Z.jsx)(`span`,{className:`preview-dot theme theme-preview-radius dib ba`,style:{"--preview-size":e,"--preview-radius":t},...n}),WR=({borderRadius:e=0,...t})=>(0,Z.jsx)(`span`,{className:`theme-alt theme-preview-radius inline-flex items-center nowrap f1 px3 py2`,style:{"--preview-radius":e},...t}),GR=({borderRadius:e=0,...t})=>(0,Z.jsx)(`span`,{className:`theme theme-preview-radius inline-flex items-center nowrap f1 px3 py2 shadow-border`,style:{"--preview-radius":e},...t});function KR(e){if(!e)return null;for(let t of e.elements){let e=t.tagName;if(e===`BUTTON`||e===`INPUT`){let e=t;if(e.type===`submit`)return e}}return null}var qR=function(e){return e.checked=`data-checked`,e.unchecked=`data-unchecked`,e.indeterminate=`data-indeterminate`,e.disabled=`data-disabled`,e.readonly=`data-readonly`,e.required=`data-required`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({});function JR(e){return _.useMemo(()=>({checked(t){return e.indeterminate?{}:t?{[qR.checked]:``}:{[qR.unchecked]:``}},...Gs}),[e.indeterminate])}var YR=_.createContext(void 0);function XR(e=!0){let t=_.useContext(YR);if(t===void 0&&!e)throw Error(ec(3));return t}var ZR=_.createContext(void 0);function QR(){let e=_.useContext(ZR);if(e===void 0)throw Error(ec(14));return e}var $R=`data-parent`,ez=_.forwardRef(function(e,t){let{checked:n,className:r,defaultChecked:i=!1,"aria-labelledby":a,disabled:o=!1,form:s,id:c,indeterminate:l=!1,inputRef:u,name:d,onCheckedChange:f,parent:p=!1,readOnly:m=!1,render:h,required:g=!1,uncheckedValue:v,value:y,nativeButton:b=!1,style:x,...S}=e,{clearErrors:C}=Yd(),{disabled:w,name:T,setDirty:E,setFilled:D,setFocused:O,setTouched:k,state:A,validationMode:j,validityData:M,shouldValidateOnChange:N,validation:P}=Uc(),F=Gc(),{labelId:I,controlId:L,registerControlId:R,getDescriptionProps:z}=qc(),B=XR(),V=B?.parent,H=V&&B.allValues,U=w||F.disabled||B?.disabled||o,ee=T??d,W=y??ee,te=Qs(),ne=Qs(),re=L;H?re=p?ne:`${V.id}-${W}`:c&&(re=c);let ie={};H&&(p?ie=B.parent.getParentProps():W&&(ie=B.parent.getChildProps(W)));let{checked:ae=n,indeterminate:G=l,onCheckedChange:oe,...K}=ie,se=B?.value,ce=B?.setValue,le=B?.defaultValue,ue=_.useRef(null),de=go(()=>Symbol(`checkbox-control`)),fe=_.useRef(!1),{getButtonProps:pe,buttonRef:me}=jc({disabled:U,native:b}),he=B?.validation??P,[ge,_e]=_l({controlled:W&&se&&!p?se.includes(W):ae,default:W&&le&&!p?le.includes(W):i,name:`Checkbox`,state:`checked`});J(()=>{R!==jo&&(fe.current=!0,R(de.current,re))},[re,R,de]),_.useEffect(()=>{let e=de.current;return()=>{!fe.current||R===jo||(fe.current=!1,R(e,void 0))}},[R,de]),Gd(ue,te,ge,void 0,!B);let ve=_.useRef(null),ye=_o(u,ve,he.inputRef),be=Jc(a,I,ve,!b,re??void 0);
36J(()=>{ve.current&&(ve.current.indeterminate=G,ge&&D(!0))},[ge,G,D]),Xd(ge,()=>{B&&!p||(C(ee),D(ge),E(ge!==M.initialValue),N()?he.commit(ge):he.commit(ge,!0))});let xe=lc({checked:ge,disabled:U,form:s,name:p?void 0:ee,id:b?void 0:re??void 0,required:g,ref:ye,style:ee?Ao:ko,tabIndex:-1,type:`checkbox`,"aria-hidden":!0,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(m){e.preventDefault();return}let t=e.currentTarget.checked,n=Fs(os,e.nativeEvent);oe?.(t,n),f?.(t,n),!n.isCanceled&&(_e(t),W&&se&&ce&&!p&&!H&&ce(t?[...se,W]:se.filter(e=>e!==W),n))},onFocus(){ue.current?.focus()}},y===void 0?No:{value:(B?ge&&y:y)||``},z,B?he.getValidationProps:he.getInputValidationProps),Se=H?!!ae:ge,Ce=H&&G||l;_.useEffect(()=>{if(!V||!W)return;let e=V.disabledStatesRef.current;return e.set(W,U),()=>{e.delete(W)}},[V,U,W]);let we=_.useMemo(()=>({...A,checked:Se,disabled:U,readOnly:m,required:g,indeterminate:Ce}),[A,Se,U,m,g,Ce]),Te=JR(we),Ee=X(`span`,e,{state:we,ref:[me,ue,t,B?.registerControlRef],props:[{id:b?re??void 0:te,role:`checkbox`,"aria-checked":G?`mixed`:ge,"aria-readonly":m||void 0,"aria-required":g||void 0,"aria-labelledby":be,[$R]:p?``:void 0,onFocus(){O(!0)},onBlur(){let e=ve.current;e&&(k(!0),O(!1),j===`onBlur`&&he.commit(B?se:e.checked))},onKeyDown(e){if(e.key!==`Enter`||(e.preventBaseUIHandler(),e.defaultPrevented))return;let t=ve.current?.form??null,n=e.currentTarget,r=e.nativeEvent,i=e.preventDefault,a=r.preventDefault,o=!1;e.preventDefault=()=>{o=!0,i.call(e)},r.preventDefault=()=>{o=!0,a.call(r)},a.call(r),Io(n).queueMicrotask(()=>{e.preventDefault=i,r.preventDefault=a,o||KR(t)?.click()})},onClick(e){if(m||U)return;e.preventDefault();let t=ve.current;t&&t.dispatchEvent(new(Io(t)).PointerEvent(`click`,{bubbles:!0,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey}))}},z,he.getValidationProps,S,K,pe],stateAttributesMapping:Te});return(0,Z.jsxs)(ZR.Provider,{value:we,children:[Ee,!ge&&!B&&ee&&!p&&v!==void 0&&(0,Z.jsx)(`input`,{type:`hidden`,form:s,name:ee,value:v}),(0,Z.jsx)(`input`,{...xe,suppressHydrationWarning:!0})]})}),tz=_.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,s=QR(),c=s.checked||s.indeterminate,{mounted:l,transitionStatus:u,setMounted:d}=hl(c),f=_.useRef(null),p={...s,transitionStatus:u};ml({open:c,ref:f,onComplete(){c||d(!1)}});let m={...JR(s),...Bs,...Gs},h=a||l,g=X(`span`,e,{ref:[t,f],state:p,stateAttributesMapping:m,props:o});return h?g:null});function nz({label:e=`Enable notifications`}){return(0,Z.jsxs)(`label`,{className:`component-checkbox-label flex items-center g3 nowrap f2 pointer`,children:[(0,Z.jsx)(ez,{defaultChecked:!0,className:`component-checkbox-root flex items-center justify-center`,children:(0,Z.jsx)(tz,{className:`component-checkbox-indicator`,children:(0,Z.jsx)(rz,{className:`component-checkbox-icon`})})}),(0,Z.jsx)(`span`,{children:e})]})}function rz(e){return(0,Z.jsx)(`svg`,{fill:`currentcolor`,width:`10`,height:`10`,viewBox:`0 0 10 10`,...e,children:(0,Z.jsx)(`path`,{d:`M9.1603 1.12218C9.50684 1.34873 9.60427 1.81354 9.37792 2.16038L5.13603 8.66012C5.01614 8.8438 4.82192 8.96576 4.60451 8.99384C4.3871 9.02194 4.1683 8.95335 4.00574 8.80615L1.24664 6.30769C0.939709 6.02975 0.916013 5.55541 1.19372 5.24822C1.47142 4.94102 1.94536 4.91731 2.2523 5.19524L4.36085 7.10461L8.12299 1.33999C8.34934 0.993152 8.81376 0.895638 9.1603 1.12218Z`})})}var iz=({colorPair:e,borderRadius:t=0})=>{let[n,r]=e||[`#000000`,`#ffffff`],i={r:0,g:0,b:0},a=[1,1,1];try{let[e,t,r]=new q(n).to(`p3`).coords;i={r:Math.max(0,isNaN(e)?0:e),g:Math.max(0,isNaN(t)?0:t),b:Math.max(0,isNaN(r)?0:r)},i.r+i.g+i.b>0?a=[i.r,i.g,i.b]:(a=[.1,.1,.1],i={r:0,g:0,b:0})}catch(e){console.error(`Error converting color to P3 for PieChart:`,e)}let o=(e,t)=>{let n=e.reduce((e,t)=>e+t,0);if(n===0)return``;let r=-90;for(let i=0;i<t;i++)r+=e[i]/n*360;let i=r+e[t]/n*360,a=i-r<=180?`0`:`1`,o=s(50,50,40,i),c=s(50,50,40,r);return[`M`,50,50,`L`,o.x,o.y,`A`,40,40,0,a,0,c.x,c.y,`Z`].join(` `)},s=(e,t,n,r)=>{let i=(r-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}},c=n,l=` 37 <pattern id="mainPieStripedPattern" patternUnits="userSpaceOnUse" width="4" height="4"> 38 <path d="M-1,1 l2,-2 M0,4 l4,-4 M3,5 l2,-2" 39 style="stroke:${c}; stroke-width:1" /> 40 </pattern> 41 <pattern id="mainPieDotPattern" patternUnits="userSpaceOnUse" width="4" height="4"> 42 <circle cx="2" cy="2" r=".75" fill="${c}" /> 43 </pattern> 44 `;return(0,Z.jsxs)(`div`,{className:`theme-alt theme-preview-radius w-100 flex flex-column items-center justify-center g3 p8`,children:[(0,Z.jsxs)(`svg`,{width:`192`,height:`192`,viewBox:`0 0 100 100`,children:[(0,Z.jsx)(`defs`,{dangerouslySetInnerHTML:{__html:l}}),(0,Z.jsx)(`path`,{d:o(a,0),fill:n}),(0,Z.jsx)(`path`,{d:o(a,1),fill:`url(#mainPieStripedPattern)`}),(0,Z.jsx)(`path`,{d:o(a,2),fill:`url(#mainPieDotPattern)`}),(0,Z.jsx)(`circle`,{cx:`50`,cy:`50`,r:`25`,fill:r}),(0,Z.jsx)(`text`,{x:`50`,y:`50`,className:`component-pie-center-text theme-alt`,fill:`currentColor`,children:`FG`})]}),(0,Z.jsxs)(`div`,{className:`flex justify-center g4`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center g2 f1 nowrap`,children:[(0,Z.jsx)(`svg`,{width:12,height:12,children:(0,Z.jsx)(`rect`,{width:12,height:12,fill:n})}),(0,Z.jsxs)(`span`,{children:[`R: `,Math.round(i.r*255)]})]}),(0,Z.jsxs)(`div`,{className:`flex items-center g2 f1 nowrap`,children:[(0,Z.jsxs)(`svg`,{width:12,height:12,children:[(0,Z.jsx)(`defs`,{dangerouslySetInnerHTML:{__html:l}}),(0,Z.jsx)(`rect`,{width:12,height:12,fill:`url(#mainPieStripedPattern)`})]}),(0,Z.jsxs)(`span`,{children:[`G: `,Math.round(i.g*255)]})]}),(0,Z.jsxs)(`div`,{className:`flex items-center g2 f1 nowrap`,children:[(0,Z.jsxs)(`svg`,{width:12,height:12,children:[(0,Z.jsx)(`defs`,{dangerouslySetInnerHTML:{__html:l}}),(0,Z.jsx)(`rect`,{width:12,height:12,fill:`url(#mainPieDotPattern)`})]}),(0,Z.jsxs)(`span`,{children:[`B: `,Math.round(i.b*255)]})]})]})]})},az=({colorPair:e,borderRadius:t=0})=>{let[n,r]=e||[`#03a9f4`,`#ff5722`],i={r:0,g:0,b:0},a=[1,1,1];try{let[e,t,n]=new q(r).to(`p3`).coords;i={r:Math.max(0,isNaN(e)?0:e),g:Math.max(0,isNaN(t)?0:t),b:Math.max(0,isNaN(n)?0:n)},i.r+i.g+i.b>0?a=[i.r,i.g,i.b]:(a=[.1,.1,.1],i={r:0,g:0,b:0})}
44catch(e){console.error(`Error converting color to P3 for PieChartAlt:`,e)}let o=(e,t)=>{let n=e.reduce((e,t)=>e+t,0);if(n===0)return``;let r=-90;for(let i=0;i<t;i++)r+=e[i]/n*360;let i=r+e[t]/n*360,a=i-r<=180?`0`:`1`,o=s(50,50,40,i),c=s(50,50,40,r);return[`M`,50,50,`L`,o.x,o.y,`A`,40,40,0,a,0,c.x,c.y,`Z`].join(` `)},s=(e,t,n,r)=>{let i=(r-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}},c={"--preview-radius":t},l=r,u=` 45 <pattern id="p3StripedPattern" patternUnits="userSpaceOnUse" width="4" height="4"> 46 <path d="M-1,1 l2,-2 M0,4 l4,-4 M3,5 l2,-2" 47 style="stroke:${l}; stroke-width:1" /> 48 </pattern> 49 50 <pattern id="p3DotPattern" patternUnits="userSpaceOnUse" width="4" height="4"> 51 <circle cx="2" cy="2" r=".75" fill="${l}" /> 52 </pattern> 53 `;return(0,Z.jsxs)(`div`,{className:`theme theme-preview-radius w-100 flex flex-column items-center justify-center g3 p8 shadow-border tc`,style:c,children:[(0,Z.jsxs)(`svg`,{width:`192`,height:`192`,viewBox:`0 0 100 100`,children:[` `,(0,Z.jsx)(`defs`,{dangerouslySetInnerHTML:{__html:u}}),(0,Z.jsx)(`path`,{d:o(a,0),fill:r}),(0,Z.jsx)(`path`,{d:o(a,1),fill:`url(#p3StripedPattern)`}),(0,Z.jsx)(`path`,{d:o(a,2),fill:`url(#p3DotPattern)`}),(0,Z.jsx)(`circle`,{cx:`50`,cy:`50`,r:`25`,fill:n}),(0,Z.jsx)(`text`,{x:`50`,y:`50`,className:`component-pie-center-text theme`,fill:`currentColor`,children:`BG`})]}),(0,Z.jsxs)(`div`,{className:`flex justify-center g4`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center g2 f1 nowrap`,children:[(0,Z.jsx)(`svg`,{width:12,height:12,children:(0,Z.jsx)(`rect`,{width:12,height:12,fill:r})}),(0,Z.jsxs)(`span`,{children:[`R: `,Math.round(i.r*255)]})]}),(0,Z.jsxs)(`div`,{className:`flex items-center g2 f1 nowrap`,children:[(0,Z.jsxs)(`svg`,{width:12,height:12,children:[(0,Z.jsx)(`defs`,{dangerouslySetInnerHTML:{__html:u}}),(0,Z.jsx)(`rect`,{width:12,height:12,fill:`url(#p3StripedPattern)`})]}),(0,Z.jsxs)(`span`,{children:[`G: `,Math.round(i.g*255)]})]}),(0,Z.jsxs)(`div`,{className:`flex items-center g2 f1 nowrap`,children:[(0,Z.jsxs)(`svg`,{width:12,height:12,children:[(0,Z.jsx)(`defs`,{dangerouslySetInnerHTML:{__html:u}}),(0,Z.jsx)(`rect`,{width:12,height:12,fill:`url(#p3DotPattern)`})]}),(0,Z.jsxs)(`span`,{children:[`B: `,Math.round(i.b*255)]})]})]})]})},oz=_.createContext(void 0);function sz(e=!0){let t=_.useContext(oz);if(t===void 0&&!e)throw Error(ec(7));return t}var cz=_.forwardRef(function(e,t){let{className:n,defaultPressed:r=!1,disabled:i=!1,form:a,onPressedCh
53ange:o,pressed:s,render:c,type:l,value:u,nativeButton:d=!0,style:f,...p}=e,m=Qs(u||void 0),h=sz(),g=h?.value??[],_=h?void 0:r,v=(i||h?.disabled)??!1,[y,b]=_l({controlled:h?m!==void 0&&g.indexOf(m)>-1:s,default:_,name:`Toggle`,state:`pressed`}),{getButtonProps:x,buttonRef:S}=jc({disabled:v,native:d}),C={disabled:v,pressed:y},w=[S,t],T=[{"aria-pressed":y,onClick(e){let t=!y,n=Fs(os,e.nativeEvent);m&&h?.setGroupValue?.(m,t,n),o?.(t,n),!n.isCanceled&&b(t)}},p,x],E=X(`button`,e,{enabled:!h,state:C,ref:w,props:T});return h?(0,Z.jsx)(Bc,{tag:`button`,render:c,className:n,style:f,state:C,refs:w,props:T}):E}),lz=function(e){return e.disabled=`data-disabled`,e.orientation=`data-orientation`,e.multiple=`data-multiple`,e}({}),uz={multiple(e){return e?{[lz.multiple]:``}:null}},dz=_.forwardRef(function(e,t){let{defaultValue:n,disabled:r=!1,loopFocus:i=!0,onValueChange:a,orientation:o=`horizontal`,multiple:s=!1,value:c,className:l,render:u,style:d,...f}=e,p=O_(!0),m=_.useMemo(()=>c!==void 0||n!==void 0,[c,n]),h=(p?.disabled??!1)||r,[g,v]=_l({controlled:c,default:c===void 0?n??Mo:void 0,name:`ToggleGroup`,state:`value`}),y=Y((e,t,n)=>{let r;s?(r=g.slice(),t?r.push(e):r.splice(g.indexOf(e),1)):r=t?[e]:[],a?.(r,n),!n.isCanceled&&v(r)}),b={disabled:h,multiple:s,orientation:o},x=_.useMemo(()=>({disabled:h,orientation:o,setGroupValue:y,value:g,isValueInitialized:m}),[h,o,y,g,m]),S={role:`group`},C=X(`div`,e,{enabled:!!p,state:b,ref:t,props:[S,f],stateAttributesMapping:uz});return(0,Z.jsx)(oz.Provider,{value:x,children:p?C:(0,Z.jsx)(Wd,{render:u,className:l,style:d,state:b,refs:[t],props:[S,f],stateAttributesMapping:uz,loopFocus:i,enableHomeAndEndKeys:!0,orientation:o})})}),fz=({...e})=>{let[t,n]=_.useState([`left`]);return(0,Z.jsxs)(dz,{value:t,onValueChange:n,className:`toggle-group shadow-border`,...e,children:[(0,Z.jsx)(cz,{"aria-label":`Align left`,value:`left`,className:t.includes(`left`)?`theme-alt`:void 0,children:(0,Z.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:`20`,height:`20`,stroke:`currentColor`,strokeWidth:`1`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,Z.jsx)(`line`,{x1:`17`,y1:`10`,x2:`3`,y2:`10`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`6`,x2:`3`,y2:`6`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`14`,x2:`3`,y2:`14`}),(0,Z.jsx)(`line`,{x1:`17`,y1:`18`,x2:`3`,y2:`18`})]})}),(0,Z.jsx)(cz,{"aria-label":`Align center`,value:`center`,className:t.includes(`center`)?`theme-alt`:void 0,children:(0,Z.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:`20`,height:`20`,stroke:`currentColor`,strokeWidth:`1`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,Z.jsx)(`line`,{x1:`18`,y1:`10`,x2:`6`,y2:`10`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`6`,x2:`3`,y2:`6`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`14`,x2:`3`,y2:`14`}),(0,Z.jsx)(`line`,{x1:`18`,y1:`18`,x2:`6`,y2:`18`})]})}),(0,Z.jsx)(cz,{"aria-label":`Align right`,value:`right`,className:t.includes(`right`)?`theme-alt`:void 0,children:(0,Z.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:`20`,height:`20`,stroke:`currentColor`,strokeWidth:`1`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,Z.jsx)(`line`,{x1:`21`,y1:`10`,x2:`7`,y2:`10`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`6`,x2:`3`,y2:`6`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`14`,x2:`3`,y2:`14`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`18`,x2:`7`,y2:`18`})]})}),(0,Z.jsx)(cz,{"aria-label":`Justify`,value:`justify`,className:t.includes(`justify`)?`theme-alt`:void 0,children:(0,Z.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:`20`,height:`20`,stroke:`currentColor`,strokeWidth:`1`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,Z.jsx)(`line`,{x1:`21`,y1:`10`,x2:`3`,y2:`10`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`6`,x2:`3`,y2:`6`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`14`,x2:`3`,y2:`14`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`18`,x2:`3`,y2:`18`})]})})]})},pz=({title:e,text:t=`Color contrast is the difference in brightness between foreground and background colors. For accessibility purposes, aim for a 4.5:1 ratio between the foreground color (e.g. text, links, etc.) and the background color. This ratio ensures people with moderately low vision can tell the colors apart and see your content.`,borderRadius:n=0,time:r,subtitle:i,inverted:a=!1,...o})=>(0,Z.jsxs)(`article`,{className:`theme-preview-radius p8 p8-m p9-l ba ${a?`theme-alt`:`theme-surface`}`,style:{"--preview-radius":n},...o,children:[(0,Z.jsx)(`h4`,{className:`mt0 mb2 f1 fw7 tracked ttu`,children:(0,Z.jsx)(`time`,{children:r})}),(0,Z.jsx)(`h2`,{className:`mt0 mb3 fw8 f6 f7-m lh-title`,children:e}),(0,Z.jsx)(`h3`,{className:`mt0 mb4 fw6 f2 f4-m lh-title`,children:i}),(0,Z.jsx)(`p`,{className:`m0 lh-body measure f2`,children:t})]}),mz=({size:e=20,onClick:t,strokeWidth:n=2})=>{let r=`${_.useId().replace(/:/g,``)}-cut-off`;return(0,Z.jsxs)(`svg`,{version:`1.1`,width:e,height:e,viewBox:`0 0 ${e} ${e}`,xmlns:`http://www.w3.org/2000/svg`,className:t?`pointer`:void 0,onClick:t,style:{overflow:`visible`},children:[(0,Z.jsx)(`clipPath`,{id:r,children:(0,Z.jsx)(`rect`,{x:`0`,y:e/2,width:e,height:e/2})}),(0,Z.jsx)(`circle`,{cx:e/2,cy:e/2,r:e/2,fill:`var(--bg)`,stroke:`var(--fg)`,strokeWidth:n}),(0,Z.jsx)(`circle`,{cx:e/2,cy:e/2,r:e/2,fill:`var(--fg)`,clipPath:`url(#${r})`})]})};function hz(){return(0,Z.jsxs)(Qd,{"aria-labelledby":`apples-caption`,defaultValue:`fuji-apple`,className:`flex items-center g4 f2`,children:[(0,Z.jsx)(`div`,{className:`nowrap fw5`,id:`apples-caption`,children:`Radio Group`}),(0,Z.jsxs)(`label`,{className:`flex items-center g2 nowrap`,children:[(0,Z.jsx)(il,{value:`fuji-apple`,className:`component-radio-root flex items-center justify-center`,children:(0,Z.jsx)(gl,{className:`component-radio-indicator`})}),`Option 1`]}),(0,Z.jsxs)(`label`,{className:`flex items-center g2 nowrap`,children:[(0,Z.jsx)(il,{value:`gala-apple`,className:`component-radio-root flex items-center justify-center`,children:(0,Z.jsx)(gl,{className:`component-radio-indicator`})}),`Option 2`]}),(0,Z.jsxs)(`label`,{className:`flex items-center g2 nowrap`,children:[(0,Z.jsx)(il,{value:`granny-smith-apple`,className:`component-radio-root flex items-center justify-center`,children:(0,Z.jsx)(gl,{className:`component-radio-indicator`})}),`Option 3`]})]})}var gz=({count:e,...t})=>(0,Z.jsxs)(`footer`,{className:`mt6 pt5 pb7 px7 bt bw1 flex`,...t,children:[(0,Z.jsxs)(`div`,{children:[(0,Z.jsxs)(`small`,{className:`db mb4 f2 tl`,children:[(0,Z.jsx)(`code`,{className:`f-mono fw9`,children:Intl.NumberFormat().format(e)}),` combinations served`]}),(0,Z.jsx)(`div`,{className:`flex justify-between items-start flex-wrap`,children:(0,Z.jsxs)(`p`,{className:`m0 f2`,children:[`Created by `,(0,Z.jsx)(`a`,{className:`current link`,title:`John Otander`,href:`https://johno.com`,children:`John Otander`}),` & `,(0,Z.jsx)(`a`,{className:`current link`,href:`https://mrmrs.cc`,title:`Adam Morse`,children:`Adam Morse`})]})})]}),(0,Z.jsxs)(`div`,{className:`ml-auto flex g3 flex-wrap`,children:[(0,Z.jsx)(`a`,{href:`https://npmjs.com/package/randoma11y`,className:`theme inline-flex items-center px5 py2 br1 no-u
53nderline f2 fw8`,title:`Comprehensive list of colors accessible with both Black (#000000) and White (#ffffff)`,children:`NPM`}),(0,Z.jsx)(`a`,{href:`/primary`,className:`theme-alt inline-flex items-center px5 py2 br1 no-underline f2 fw8`,title:`Comprehensive list of colors accessible with both Black (#000000) and White (#ffffff)`,children:`Primary`}),(0,Z.jsx)(`a`,{href:`/primary-gradients`,className:`theme-alt inline-flex items-center px5 py2 br1 no-underline f2 fw8`,title:`Comprehensive list of gradients accessible with both Black (#000000) and White (#ffffff)`,children:`Gradients`}),(0,Z.jsxs)(`a`,{href:`/live`,className:`theme-alt inline-flex items-center g2 px5 py2 br1 no-underline f2 fw8`,children:[(0,Z.jsx)(`i`,{className:`app-footer-dot`}),`Dashboard`]})]})]}),_z=o(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),vz=o((e=>{var t,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(e){if(!e)throw Error(`"version" cannot be null or undefined`);if(e<1||e>40)throw Error(`"version" should be in range from 1 to 40`);return e*4+17},e.getSymbolTotalCodewords=function(e){return n[e]},e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},e.setToSJISFunction=function(e){if(typeof e!=`function`)throw Error(`"toSJISFunc" is not a valid function.`);t=e},e.isKanjiModeEnabled=function(){return t!==void 0},e.toSJIS=function(e){return t(e)}})),yz=o((e=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`l`:case`low`:return e.L;case`m`:case`medium`:return e.M;case`q`:case`quartile`:return e.Q;case`h`:case`high`:return e.H;default:throw Error(`Unknown EC Level: `+t)}}e.isValid=function(e){return e&&e.bit!==void 0&&e.bit>=0&&e.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})),bz=o(((e,t)=>{function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=n})),xz=o(((e,t)=>{function n(e){if(!e||e<1)throw Error(`BitMatrix size must be defined and greater than 0`);this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}n.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=n})),Sz=o((e=>{var t=vz().getSymbolSize;e.getRowColCoords=function(e){if(e===1)return[];let n=Math.floor(e/7)+2,r=t(e),i=r===145?26:Math.ceil((r-13)/(2*n-2))*2,a=[r-7];for(let e=1;e<n-1;e++)a[e]=a[e-1]-i;return a.push(6),a.reverse()},e.getPositions=function(t){let n=[],r=e.getRowColCoords(t),i=r.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)e===0&&t===0||e===0&&t===i-1||e===i-1&&t===0||n.push([r[e],r[t]]);return n}})),Cz=o((e=>{var t=vz().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),wz=o((e=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(e){return e!=null&&e!==``&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){let n=e.size,r=0,i=0,a=0,o=null,s=null;for(let c=0;c<n;c++){i=a=0,o=s=null;for(let l=0;l<n;l++){let n=e.get(c,l);n===o?i++:(i>=5&&(r+=t.N1+(i-5)),o=n,i=1),n=e.get(l,c),n===s?a++:(a>=5&&(r+=t.N1+(a-5)),s=n,a=1)}i>=5&&(r+=t.N1+(i-5)),a>=5&&(r+=t.N1+(a-5))}return r},e.getPenaltyN2=function(e){let n=e.size,r=0;for(let t=0;t<n-1;t++)for(let i=0;i<n-1;i++){let n=e.get(t,i)+e.get(t,i+1)+e.get(t+1,i)+e.get(t+1,i+1);(n===4||n===0)&&r++}return r*t.N2},e.getPenaltyN3=function(e){let n=e.size,r=0,i=0,a=0;for(let t=0;t<n;t++){i=a=0;for(let o=0;o<n;o++)i=i<<1&2047|e.get(t,o),o>=10&&(i===1488||i===93)&&r++,a=a<<1&2047|e.get(o,t),o>=10&&(a===1488||a===93)&&r++}return r*t.N3},e.getPenaltyN4=function(e){let n=0,r=e.data.length;for(let t=0;t<r;t++)n+=e.data[t];
vendor: 16,555 bytes, lines 53-59
53return Math.abs(Math.ceil(n*100/r/5)-10)*t.N4};function n(t,n,r){switch(t){case e.Patterns.PATTERN000:return(n+r)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return r%3==0;case e.Patterns.PATTERN011:return(n+r)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case e.Patterns.PATTERN101:return n*r%2+n*r%3==0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error(`bad maskPattern:`+t)}}e.applyMask=function(e,t){let r=t.size;for(let i=0;i<r;i++)for(let a=0;a<r;a++)t.isReserved(a,i)||t.xor(a,i,n(e,a,i))},e.getBestMask=function(t,n){let r=Object.keys(e.Patterns).length,i=0,a=1/0;for(let o=0;o<r;o++){n(o),e.applyMask(o,t);let r=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(o,t),r<a&&(a=r,i=o)}return i}})),Tz=o((e=>{var t=yz(),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(e,r){switch(r){case t.L:return n[(e-1)*4+0];case t.M:return n[(e-1)*4+1];case t.Q:return n[(e-1)*4+2];case t.H:return n[(e-1)*4+3];default:return}},e.getTotalCodewordsCount=function(e,n){switch(n){case t.L:return r[(e-1)*4+0];case t.M:return r[(e-1)*4+1];case t.Q:return r[(e-1)*4+2];case t.H:return r[(e-1)*4+3];default:return}}})),Ez=o((e=>{var t=new Uint8Array(512),n=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)t[r]=e,n[e]=r,e<<=1,e&256&&(e^=285);for(let e=255;e<512;e++)t[e]=t[e-255]})(),e.log=function(e){if(e<1)throw Error(`log(`+e+`)`);return n[e]},e.exp=function(e){return t[e]},e.mul=function(e,r){return e===0||r===0?0:t[n[e]+n[r]]}})),Dz=o((e=>{var t=Ez();e.mul=function(e,n){let r=new Uint8Array(e.length+n.length-1);for(let i=0;i<e.length;i++)for(let a=0;a<n.length;a++)r[i+a]^=t.mul(e[i],n[a]);return r},e.mod=function(e,n){let r=new Uint8Array(e);for(;r.length-n.length>=0;){let e=r[0];for(let i=0;i<n.length;i++)r[i]^=t.mul(n[i],e);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r},e.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let i=0;i<n;i++)r=e.mul(r,new Uint8Array([1,t.exp(i)]));return r}})),Oz=o(((e,t)=>{var n=Dz();function r(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},r.prototype.encode=function(e){if(!this.genPoly)throw Error(`Encoder not initialized`);let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},t.exports=r})),kz=o((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),Az=o((e=>{var t=`[0-9]+`,n=`[A-Z $%*+\\-./:]+`,r=`(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+`;r=r.replace(/u/g,`\\u`);var i=`(?:(?![A-Z0-9 $%*+\\-./:]|`+r+`)(?:.|[\r 54]))+`;e.KANJI=new RegExp(r,`g`),e.BYTE_KANJI=RegExp(`[^A-Z0-9 $%*+\\-./:]+`,`g`),e.BYTE=new RegExp(i,`g`),e.NUMERIC=new RegExp(t,`g`),e.ALPHANUMERIC=new RegExp(n,`g`);var a=RegExp(`^`+r+`$`),o=RegExp(`^`+t+`$`),s=RegExp(`^[A-Z0-9 $%*+\\-./:]+$`);e.testKanji=function(e){return a.test(e)},e.testNumeric=function(e){return o.test(e)},e.testAlphanumeric=function(e){return s.test(e)}})),jz=o((e=>{var t=kz(),n=Az();e.NUMERIC={id:`Numeric`,bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:`Alphanumeric`,bit:2,ccBits:[9,11,13]},e.BYTE={id:`Byte`,bit:4,ccBits:[8,16,16]},e.KANJI={id:`Kanji`,bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,n){if(!e.ccBits)throw Error(`Invalid mode: `+e);if(!t.isValid(n))throw Error(`Invalid version: `+n);return n>=1&&n<10?e.ccBits[0]:n<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return n.testNumeric(t)?e.NUMERIC:n.testAlphanumeric(t)?e.ALPHANUMERIC:n.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw Error(`Invalid mode`)},e.isValid=function(e){return e&&e.bit&&e.ccBits};function r(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`numeric`:return e.NUMERIC;case`alphanumeric`:return e.ALPHANUMERIC;case`kanji`:return e.KANJI;case`byte`:return e.BYTE;default:throw Error(`Unknown mode: `+t)}}e.from=function(t,n){if(e.isValid(t))return t;try{return r(t)}catch{return n}}})),Mz=o((e=>{var t=vz(),n=Tz(),r=yz(),i=jz(),a=kz(),o=7973,s=t.getBCHDigit(o);function c(t,n,r){for(let i=1;i<=40;i++)if(n<=e.getCapacity(i,r,t))return i}function l(e,t){return i.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach(function(e){let r=l(e.mode,t);n+=r+e.getBitsLength()}),n}function d(t,n){for(let r=1;r<=40;r++)if(u(t,r)<=e.getCapacity(r,n,i.MIXED))return r}e.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,r,o){if(!a.isValid(e))throw Error(`Invalid QR Code version`);o===void 0&&(o=i.BYTE);let s=(t.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,r))*8;if(o===i.MIXED)return s;let c=s-l(o,e);switch(o){case i.NUMERIC:return Math.floor(c/10*3);case i.ALPHANUMERIC:return Math.floor(c/11*2);case i.KANJI:return Math.floor(c/13);case i.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(e,t){let n,i=r.from(t,r.M);if(Array.isArray(e)){if(e.length>1)return d(e,i);if(e.length===0)return 1;n=e[0]}else n=e;return c(n.mode,n.getLength(),i)},e.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw Error(`Invalid QR Code version`);let n=e<<12;for(;t.getBCHDigit(n)-s>=0;)n^=o<<t.getBCHDigit(n)-s;return e<<12|n}})),Nz=o((e=>{var t=vz(),n=1335,r=21522,i=t.getBCHDigit(n);e.getEncodedBits=function(e,a){let o=e.bit<<3|a,s=o<<10;for(;t.getBCHDigit(s)-i>=0;)s^=n<<t.getBCHDigit(s)-i;return(o<<10|s)^r}})),Pz=o(((e,t)=>{var n=jz();function r(e){this.mode=n.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))},t.exports=r})),Fz=o(((e,t)=>{var n=jz(),r=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`.split(``);function i(e){this.mode=n.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=r.indexOf(this.data[t])*45;n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},t.exports=i})),Iz=o(((e,t)=>{var n=jz();function r(e){this.mode=n.BYTE,typeof e==`string`?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}r.getBitsLength=function(e){return e*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},t.exports=r})),Lz=o(((e,t)=>{var n=jz(),r=vz();function i(e){this.mode=n.KANJI,this.data=e}i.getBitsLength=function(e){return e*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=r.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error(`Invalid SJIS character: `+this.data[t]+` 55Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},t.exports=i})),Rz=o(((e,t)=>{var n={single_source_shortest_paths:function(e,t,r){var i={},a={};a[t]=0;var o=n.PriorityQueue.make();o.push(t,0);for(var s,c,l,u,d,f,p,m,h;!o.empty();)for(l in s=o.pop(),c=s.value,u=s.cost,d=e[c]||{},d)d.hasOwnProperty(l)&&(f=d[l],p=u+f,m=a[l],h=a[l]===void 0,(h||m>p)&&(a[l]=p,o.push(l,p),i[l]=c));if(r!==void 0&&a[r]===void 0){var g=[`Could not find a path from `,t,` to `,r,`.`].join(``);throw Error(g)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,r){var i=n.single_source_shortest_paths(e,t,r);return n.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var t=n.PriorityQueue,r={},i;for(i in e||={},t)t.hasOwnProperty(i)&&(r[i]=t[i]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t!==void 0&&(t.exports=n)})),zz=o((e=>{var t=jz(),n=Pz(),r=Fz(),i=Iz(),a=Lz(),o=Az(),s=vz(),c=Rz();function l(e){return unescape(encodeURIComponent(e)).length}function u(e,t,n){let r=[],i;for(;(i=e.exec(n))!==null;)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function d(e){let n=u(o.NUMERIC,t.NUMERIC,e),r=u(o.ALPHANUMERIC,t.ALPHANUMERIC,e),i,a;return s.isKanjiModeEnabled()?(i=u(o.BYTE,t.BYTE,e),a=u(o.KANJI,t.KANJI,e)):(i=u(o.BYTE_KANJI,t.BYTE,e),a=[]),n.concat(r,i,a).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,o){switch(o){case t.NUMERIC:return n.getBitsLength(e);case t.ALPHANUMERIC:return r.getBitsLength(e);case t.KANJI:return a.getBitsLength(e);case t.BYTE:return i.getBitsLength(e)}}function p(e){return e.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function m(e){let n=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.mode){case t.NUMERIC:n.push([i,{data:i.data,mode:t.ALPHANUMERIC,length:i.length},{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.ALPHANUMERIC:n.push([i,{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.KANJI:n.push([i,{data:i.data,mode:t.BYTE,length:l(i.data)}]);break;case t.BYTE:n.push([{data:i.data,mode:t.BYTE,length:l(i.data)}])}}return n}function h(e,n){let r={},i={start:{}},a=[`start`];for(let o=0;o<e.length;o++){let s=e[o],c=[];for(let e=0;e<s.length;e++){let l=s[e],u=``+o+e;c.push(u),r[u]={node:l,lastCount:0},i[u]={};for(let e=0;e<a.length;e++){let o=a[e];r[o]&&r[o].node.mode===l.mode?(i[o][u]=f(r[o].lastCount+l.length,l.mode)-f(r[o].lastCount,l.mode),r[o].lastCount+=l.length):(r[o]&&(r[o].lastCount=l.length),i[o][u]=f(l.length,l.mode)+4+t.getCharCountIndicator(l.mode,n))}}a=c}for(let e=0;e<a.length;e++)i[a[e]].end=0;return{map:i,table:r}}function g(e,o){let c,l=t.getBestModeForData(e);if(c=t.from(o,l),c!==t.BYTE&&c.bit<l.bit)throw Error(`"`+e+`" cannot be encoded with mode `+t.toString(c)+`. 56 Suggested mode is: `+t.toString(l));switch(c===t.KANJI&&!s.isKanjiModeEnabled()&&(c=t.BYTE),c){case t.NUMERIC:return new n(e);case t.ALPHANUMERIC:return new r(e);case t.KANJI:return new a(e);case t.BYTE:return new i(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return typeof t==`string`?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e},[])},e.fromString=function(t,n){let r=h(m(d(t,s.isKanjiModeEnabled())),n),i=c.find_path(r.map,`start`,`end`),a=[];for(let e=1;e<i.length-1;e++)a.push(r.table[i[e]].node);return e.fromArray(p(a))},e.rawSplit=function(t){return e.fromArray(d(t,s.isKanjiModeEnabled()))}})),Bz=o((e=>{var t=vz(),n=yz(),r=bz(),i=xz(),a=Sz(),o=Cz(),s=wz(),c=Tz(),l=Oz(),u=Mz(),d=Nz(),f=jz(),p=zz();function m(e,t){let n=e.size,r=o.getPositions(t);for(let t=0;t<r.length;t++){let i=r[t][0],a=r[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1||n<=i+t))for(let r=-1;r<=7;r++)a+r<=-1||n<=a+r||(t>=0&&t<=6&&(r===0||r===6)||r>=0&&r<=6&&(t===0||t===6)||t>=2&&t<=4&&r>=2&&r<=4?e.set(i+t,a+r,!0,!0):e.set(i+t,a+r,!1,!0))}}function h(e){let t=e.size;for(let n=8;n<t-8;n++){let t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}function g(e,t){let n=a.getPositions(t);for(let t=0;t<n.length;t++){let r=n[t][0],i=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)t===-2||t===2||n===-2||n===2||t===0&&n===0?e.set(r+t,i+n,!0,!0):e.set(r+t,i+n,!1,!0)}}function _(e,t){let n=e.size,r=u.getEncodedBits(t),i,a,o;for(let t=0;t<18;t++)i=Math.floor(t/3),a=t%3+n-8-3,o=(r>>t&1)==1,e.set(i,a,o,!0),e.set(a,i,o,!0)}function v(e,t,n){let r=e.size,i=d.getEncodedBits(t,n),a,o;for(a=0;a<15;a++)o=(i>>a&1)==1,a<6?e.set(a,8,o,!0):a<8?e.set(a+1,8,o,!0):e.set(r-15+a,8,o,!0),a<8?e.set(8,r-a-1,o,!0):a<9?e.set(8,15-a-1+1,o,!0):e.set(8,15-a-1,o,!0);e.set(r-8,8,1,!0)}function y(e,t){let n=e.size,r=-1,i=n-1,a=7,o=0;for(let s=n-1;s>0;s-=2)for(s===6&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;o<t.length&&(r=(t[o]>>>a&1)==1),e.set(i,s-n,r),a--,a===-1&&(o++,a=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function b(e,n,i){let a=new r;i.forEach(function(t){a.put(t.mode.bit,4),a.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(a)});let o=(t.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,n))*8;for(a.getLengthInBits()+4<=o&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);let s=(o-a.getLengthInBits())/8;for(let e=0;e<s;e++)a.put(e%2?17:236,8);return x(a,e,n)}function x(e,n,r){let i=t.getSymbolTotalCodewords(n),a=i-c.getTotalCodewordsCount(n,r),o=c.getBlocksCount(n,r),s=o-i%o,u=Math.floor(i/o),d=Math.floor(a/o),f=d+1,p=u-d,m=new l(p),h=0,g=Array(o),_=Array(o),v=0,y=new Uint8Array(e.buffer);for(let e=0;e<o;e++){let t=e<s?d:f;g[e]=y.slice(h,h+t),_[e]=m.encode(g[e]),h+=t,v=Math.max(v,t)}let b=new Uint8Array(i),x=0,S,C;for(S=0;S<v;S++)for(C=0;C<o;C++)S<g[C].length&&(b[x++]=g[C][S]);for(S=0;S<p;S++)for(C=0;C<o;C++)b[x++]=_[C][S];return b}function S(e,n,r,a){let o;if(Array.isArray(e))o=p.fromArray(e);else if(typeof e==`string`){let t=n;if(!t){let n=p.rawSplit(e);t=u.getBestVersionForData(n,r)}o=p.fromString(e,t||40)}else throw Error(`Invalid data`);let c=u.getBestVersionForData(o,r);if(!c)throw Error(`The amount of data is too big to be stored in a QR Code`);if(!n)n=c;else if(n<c)throw Error(` 57The chosen QR Code version cannot contain this amount of data. 58Minimum version required to store current data is: `+c+`. 59`);let l=b(n,r,o),d=new i(t.getSymbolSize(n));return m(d,n),h(d),g(d,n),v(d,r,0),n>=7&&_(d,n),y(d,l),isNaN(a)&&(a=s.getBestMask(d,v.bind(null,d,r))),s.applyMask(a,d),v(d,r,a),{modules:d,version:n,errorCorrectionLevel:r,maskPattern:a,segments:o}}e.create=function(e,r){if(e===void 0||e===``)throw Error(`No input text`);let i=n.M,a,o;return r!==void 0&&(i=n.from(r.errorCorrectionLevel,n.M),a=u.from(r.version),o=s.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),S(e,a,i,o)}})),Vz=o((e=>{function t(e){if(typeof e==`number`&&(e=e.toString()),typeof e!=`string`)throw Error(`Color should be defined as hex string`);let t=e.slice().replace(`#`,``).split(``);if(t.length<3||t.length===5||t.length>8)throw Error(`Invalid hex color: `+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),t.length===6&&t.push(`F`,`F`);let n=parseInt(t.join(``),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:`#`+t.slice(0,6).join(``)}}e.getOptions=function(e){e||={},e.color||={};let n=e.margin===void 0||e.margin===null||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;
59return{width:r,scale:r?4:i,margin:n,color:{dark:t(e.color.dark||`#000000ff`),light:t(e.color.light||`#ffffffff`)},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},e.getImageWidth=function(t,n){let r=e.getScale(t,n);return Math.floor((t+n.margin*2)*r)},e.qrToImageData=function(t,n,r){let i=n.modules.size,a=n.modules.data,o=e.getScale(i,r),s=Math.floor((i+r.margin*2)*o),c=r.margin*o,l=[r.color.light,r.color.dark];for(let e=0;e<s;e++)for(let n=0;n<s;n++){let u=(e*s+n)*4,d=r.color.light;if(e>=c&&n>=c&&e<s-c&&n<s-c){let t=Math.floor((e-c)/o),r=Math.floor((n-c)/o);d=l[+!!a[t*i+r]]}t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}})),Hz=o((e=>{var t=Vz();function n(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||={},t.height=n,t.width=n,t.style.height=n+`px`,t.style.width=n+`px`}function r(){try{return document.createElement(`canvas`)}catch{throw Error(`You need to specify a canvas element`)}}e.render=function(e,i,a){let o=a,s=i;o===void 0&&(!i||!i.getContext)&&(o=i,i=void 0),i||(s=r()),o=t.getOptions(o);let c=t.getImageWidth(e.modules.size,o),l=s.getContext(`2d`),u=l.createImageData(c,c);return t.qrToImageData(u.data,e,o),n(l,s,c),l.putImageData(u,0,0),s},e.renderToDataURL=function(t,n,r){let i=r;i===void 0&&(!n||!n.getContext)&&(i=n,n=void 0),i||={};let a=e.render(t,n,i),o=i.type||`image/png`,s=i.rendererOpts||{};return a.toDataURL(o,s.quality)}})),Uz=o((e=>{var t=Vz();function n(e,t){let n=e.a/255,r=t+`="`+e.hex+`"`;return n<1?r+` `+t+`-opacity="`+n.toFixed(2).slice(1)+`"`:r}function r(e,t,n){let r=e+t;return n!==void 0&&(r+=` `+n),r}function i(e,t,n){let i=``,a=0,o=!1,s=0;for(let c=0;c<e.length;c++){let l=Math.floor(c%t),u=Math.floor(c/t);!l&&!o&&(o=!0),e[c]?(s++,c>0&&l>0&&e[c-1]||(i+=o?r(`M`,l+n,.5+u+n):r(`m`,a,0),a=0,o=!1),l+1<t&&e[c+1]||(i+=r(`h`,s),s=0)):a++}return i}e.render=function(e,r,a){let o=t.getOptions(r),s=e.modules.size,c=e.modules.data,l=s+o.margin*2,u=o.color.light.a?`<path `+n(o.color.light,`fill`)+` d="M0 0h`+l+`v`+l+`H0z"/>`:``,d=`<path `+n(o.color.dark,`stroke`)+` d="`+i(c,s,o.margin)+`"/>`,f=`viewBox="0 0 `+l+` `+l+`"`,p=`<svg xmlns="http://www.w3.org/2000/svg" `+(o.width?`width="`+o.width+`" height="`+o.width+`" `:``)+f+` shape-rendering="crispEdges">`+u+d+`</svg> 60`;return typeof a==`function`&&a(null,p),p}})),Wz=c(o((e=>{var t=_z(),n=Bz(),r=Hz(),i=Uz();function a(e,r,i,a,o){let s=[].slice.call(arguments,1),c=s.length,l=typeof s[c-1]==`function`;if(!l&&!t())throw Error(`Callback required as last argument`);if(l){if(c<2)throw Error(`Too few arguments provided`);c===2?(o=i,i=r,r=a=void 0):c===3&&(r.getContext&&o===void 0?(o=a,a=void 0):(o=a,a=i,i=r,r=void 0))}else{if(c<1)throw Error(`Too few arguments provided`);return c===1?(i=r,r=a=void 0):c===2&&!r.getContext&&(a=i,i=r,r=void 0),new Promise(function(t,o){try{t(e(n.create(i,a),r,a))}catch(e){o(e)}})}try{let t=n.create(i,a);o(null,e(t,r,a))}catch(e){o(e)}}e.create=n.create,e.toCanvas=a.bind(null,r.render),e.toDataURL=a.bind(null,r.renderToDataURL),e.toString=a.bind(null,function(e,t,n){return i.render(e,n)})}))(),1);function Gz(e){if(typeof window>`u`||!e?.[0]||!e?.[1])return`https://randoma11y.com`;let t=encodeURIComponent(e[0]),n=encodeURIComponent(e[1]);return`${window.location.origin}/${t}/${n}`}function Kz({colorPair:e,borderRadius:t=0,className:n=``,size:r=236,...i}){let a=(0,_.useMemo)(()=>Gz(e),[e]),o=(0,_.useMemo)(()=>{try{return Wz.create(a,{errorCorrectionLevel:`H`}).modules}catch{return null}},[a]),s=o?.size??0,c=s+8,l=Math.max(7,Math.round(c*.16)),u=(c-l)/2,d=u+l,f=(e,t)=>{let n=e+4+.5,r=t+4+.5;return n>=u&&n<=d&&r>=u&&r<=d};return(0,Z.jsx)(`article`,{className:`component-qr-code theme-alt theme-preview-radius shadow-border ${n}`.trim(),style:{"--preview-radius":t,"--qr-size":`${r}px`},...i,children:(0,Z.jsxs)(`a`,{className:`component-qr-code-link`,href:a,"aria-label":`Open share URL for the current color pair`,children:[(0,Z.jsxs)(`div`,{className:`component-qr-code-frame`,children:[o?(0,Z.jsx)(`svg`,{viewBox:`0 0 ${c} ${c}`,className:`component-qr-code-svg db`,role:`img`,"aria-label":`QR code linking to ${a}`,children:Array.from(o.data).map((e,t)=>{if(!e)return null;let n=t%s,r=Math.floor(t/s);return f(n,r)?null:(0,Z.jsx)(`rect`,{x:n+4,y:r+4,width:1,height:1,fill:`currentColor`,rx:.12},t)})}):(0,Z.jsx)(`div`,{className:`component-qr-code-loading flex items-center justify-center f1 fw7`,children:`â¦`}),(0,Z.jsx)(`div`,{className:`component-qr-code-logo`,"aria-hidden":`true`,children:(0,Z.jsx)(mz,{size:40,strokeWidth:0})})]}),(0,Z.jsxs)(`div`,{className:`component-qr-code-meta flex items-center justify-center g2`,"aria-hidden":`true`,children:[(0,Z.jsx)(`span`,{className:`component-qr-code-dot theme`}),(0,Z.jsx)(`span`,{className:`component-qr-code-dot theme-alt`}),(0,Z.jsx)(`span`,{className:`component-qr-code-wordmark fw8 tracked ttu`,children:`randoma11y`})]})]})})}var qz=({color:e,...t})=>{let n=_.useMemo(()=>new q(e),[e]);return(0,Z.jsx)(`article`,{children:(0,Z.jsx)(`div`,{className:`grid g3`,children:_.useMemo(()=>{let e=new Set,t=[];try{let e=n.to(`srgb`);t.push({rawKey:`hex`,spaceId:`hex`,converted:e,inGamut:e.inGamut(),format:`hex`})}catch{}try{let e=n.to(`srgb`);t.push({rawKey:`rgb`,spaceId:`rgb`,converted:e,inGamut:e.inGamut(),format:`rgb`})}catch{}for(let[r,i]of Object.entries(q.spaces||{})){let a=i&&i.id||r.toLowerCase();if(!e.has(a)){e.add(a);try{let e=n.to(a),i=n.inGamut(a);t.push({rawKey:r,spaceId:a,converted:e,inGamut:i})}catch{}}}let r=t.length;t.sort((e,t)=>
60e.spaceId.localeCompare(t.spaceId));let i=t.splice(0,r);return t.unshift(...i),t},[n]).map(({spaceId:e,converted:t,inGamut:n,format:r})=>{let i=r===`hex`?t.toString({format:`hex`}):r===`rgb`?t.toString({format:`rgb`}):t.toString({precision:3});return(0,Z.jsx)(`div`,{children:(0,Z.jsxs)(`dl`,{className:`m0`,children:[(0,Z.jsx)(`dt`,{className:`dn`,children:e.toUpperCase()}),(0,Z.jsxs)(`dd`,{className:`m0 flex items-center g2`,children:[(0,Z.jsx)(`svg`,{width:`12`,height:`12`,className:`dib`,"aria-hidden":`true`,children:(0,Z.jsx)(`circle`,{cx:`6`,cy:`6`,r:`5.5`,fill:i,stroke:`currentColor`,strokeWidth:`1`})}),(0,Z.jsx)(`code`,{className:`f2`,children:i}),(0,Z.jsx)(`span`,{className:`f1`,children:n?` `:` (Out of Gamut)`})]})]})},za())})})})},Jz=({color:e,borderRadius:t=0,...n})=>{let r=[1,.9,.8,.7,.6,.5,.4,.3,.2,.1,.05,.025,.0125];return(0,Z.jsx)(`article`,{className:`component-opacity-scale h10 flex g1 p0 overflow-hidden`,style:{color:e},...n,children:r.map(e=>(0,Z.jsx)(`div`,{className:`component-opacity-scale-stop theme-alt`,style:{opacity:e}},e))})},Yz=[[`#0f172a`,`#f8fafc`],[`#f8fafc`,`#0f172a`],[`#172554`,`#f1f5f9`],[`#f0f9ff`,`#0c4a6e`],[`#14532d`,`#dcfce7`],[`#f0fdf4`,`#14532d`],[`#7f1d1d`,`#fee2e2`],[`#fef2f2`,`#7f1d1d`],[`#581c87`,`#f3e8ff`],[`#faf5ff`,`#581c87`],[`#713f12`,`#fef9c3`],[`#fefce8`,`#713f12`],[`#7c2d12`,`#ffedd5`],[`#fff7ed`,`#7c2d12`],[`#134e4a`,`#ccfbf1`],[`#f0fdfa`,`#134e4a`],[`#831843`,`#fce7f3`],[`#fdf2f8`,`#831843`],[`#2563eb`,`#ffffff`],[`#ffffff`,`#2563eb`],[`#16a34a`,`#ffffff`],[`#ffffff`,`#16a34a`],[`#dc2626`,`#ffffff`],[`#ffffff`,`#dc2626`],[`#9333ea`,`#ffffff`],[`#ffffff`,`#9333ea`],[`#ca8a04`,`#ffffff`],[`#ffffff`,`#ca8a04`],[`#ea580c`,`#ffffff`],[`#ffffff`,`#ea580c`],[`#0d9488`,`#ffffff`],[`#ffffff`,`#0d9488`],[`#db2777`,`#ffffff`],[`#ffffff`,`#db2777`],[`#18181b`,`#e4e4e7`],[`#e4e4e7`,`#18181b`],[`#1e293b`,`#f1f5f9`],[`#f1f5f9`,`#1e293b`],[`#292524`,`#f5f5f4`],[`#f5f5f4`,`#292524`],[`#1c1917`,`#f5f5f4`],[`#f5f5f4`,`#1c1917`],[`#ede9fe`,`#5b21b6`],[`#fce7f3`,`#9d174d`],[`#dcfce7`,`#166534`],[`#e0f2fe`,`#0369a1`],[`#fef3c7`,`#92400e`],[`#ffedd5`,`#9a3412`],[`#f3f4f6`,`#4b5563`],[`#ecfdf5`,`#065f46`],[`#111827`,`#f9fafb`],[`#0f172a`,`#f8fafc`],[`#0c0a09`,`#f5f5f4`],[`#0c4a6e`,`#e0f2fe`],[`#14532d`,`#dcfce7`],[`#7f1d1d`,`#fee2e2`],[`#581c87`,`#f3e8ff`],[`#713f12`,`#fef9c3`],[`#7c2d12`,`#ffedd5`],[`#134e4a`,`#ccfbf1`],[`#831843`,`#fce7f3`],[`#365314`,`#ecfccb`],[`#1e3a8a`,`#dbeafe`],[`#78350f`,`#fef3c7`],[`#881337`,`#fce7f3`],[`#3f6212`,`#d9f99d`],[`#0f766e`,`#ccfbf1`],[`#4d7c0f`,`#d9f99d`],[`#b45309`,`#fef3c7`],[`#4c1d95`,`#e9d5ff`],[`#b91c1c`,`#fee2e2`],[`#1d4ed8`,`#dbeafe`],[`#15803d`,`#dcfce7`],[`#b45309`,`#fef3c7`],[`#86198f`,`#f5d0fe`],[`#0f766e`,`#ccfbf1`],[`#a16207`,`#fef9c3`],[`#030712`,`#22d3ee`],[`#030712`,`#4ade80`],[`#030712`,`#fb7185`],[`#030712`,`#a78bfa`],[`#030712`,`#facc15`],[`#030712`,`#fb923c`],[`#030712`,`#38bdf8`],[`#030712`,`#f472b6`],[`#57534e`,`#f5f5f4`],[`#422006`,`#fef3c7`],[`#3f6212`,`#ecfccb`],[`#713f12`,`#fef9c3`],[`#7c2d12`,`#ffedd5`],[`#44403c`,`#fafaf9`],[`#78350f`,`#fef3c7`],[`#365314`,`#f7fee7`],[`#6d28d9`,`#f5f3ff`],[`#0e7490`,`#ecfeff`],[`#047857`,`#ecfdf5`],[`#b91c1c`,`#fef2f2`],[`#b45309`,`#fff7ed`],[`#4338ca`,`#eef2ff`],[`#be185d`,`#fdf2f8`],[`#0f766e`,`#f0fdfa`],[`#1f2937`,`#f43f5e`],[`#1f2937`,`#3b82f6`],[`#1f2937`,`#22c55e`],[`#1f2937`,`#a855f7`],[`#1f2937`,`#eab308`],[`#1f2937`,`#ec4899`],[`#1f2937`,`#14b8a6`],[`#1f2937`,`#f97316`],[`#f9fafb`,`#dc2626`],[`#f9fafb`,`#2563eb`],[`#f9fafb`,`#16a34a`],[`#f9fafb`,`#9333ea`],[`#f9fafb`,`#ca8a04`],[`#f9fafb`,`#db2777`],[`#f9fafb`,`#0d9488`],[`#f9fafb`,`#ea580c`],[`#1e40af`,`#fef08a`],[`#b91c1c`,`#bbf7d0`],[`#7e22ce`,`#fde68a`],[`#ea580c`,`#bfdbfe`],[`#15803d`,`#fecaca`],[`#0369a1`,`#fed7aa`],[`#b45309`,`#a5f3fc`],[`#be185d`,`#d9f99d`]];function Xz({colorPair:e,borderRadius:t}){let[n,r]=(0,_.useState)(!1),i=`:root { 61 --bg: ${e[0]}; 62 --fg: ${e[1]}; 63 --bg-alt: var(--fg); 64 --fg-alt: var(--bg); 65} 66 67.combo-1 { 68 color: var(--fg); 69 background-color: var(--bg); 70} 71 72.combo-2 { 73 color: var(--fg-alt); 74 background-color: var(--bg-alt); 75}`;return(0,Z.jsxs)(`div`,{className:`theme theme-preview-radius w-100 h-100 p8 shadow-border`,style:{"--preview-radius":t},children:[(0,Z.jsx)(`pre`,{className:`m0 f2 overflow-x-auto lh-title`,children:(0,Z.jsx)(`code`,{children:i})}),(0,Z.jsxs)(`button`,{onClick:()=>{navigator.clipboard.writeText(i),r(!0),setTimeout(()=>r(!1),2e3)},className:`button-reset theme-alt theme-preview-radius inline-flex w-auto items-center g2 mt6 pl4 pr5 py4`,style:{"--preview-radius":t},children:[(0,Z.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,Z.jsx)(`path`,{d:`M5 2V1H10V2H5ZM4.75 0C4.33579 0 4 0.335786 4 0.75V1H3.5C2.67157 1 2 1.67157 2 2.5V12.5C2 13.3284 2.67157 14 3.5 14H11.5C12.3284 14 13 13.3284 13 12.5V2.5C13 1.67157 12.3284 1 11.5 1H11V0.75C11 0.335786 10.6642 0 10.25 0H4.75ZM11 2V2.25C11 2.66421 10.6642 3 10.25 3H4.75C4.33579 3 4 2.66421 4 2.25V2H3.5C3.22386 2 3 2.22386 3 2.5V12.5C3 12.7761 3.22386 13 3.5 13H11.5C11.7761 13 12 12.7761 12 12.5V2.5C12 2.22386 11.7761 2 11.5 2H11Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})}),(0,Z.jsx)(`span`,{className:`f2`,children:n?`Copied!`:`Copy to clipboard`})]})]})}_.memo(({borderRadius:e,background:t,className:n=``,additionalStyles:r={}})=>{let i={aspectRatio:`var(--aspectRatio)`,minHeight:`var(--minHeight)`,borderRadius:e,background:t,...r};return(0,Z.jsx)(`div`,{className:`w-100 shadow-border1 ${n}`.trim(),style:i})});function Zz(){return Zz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zz.apply(null,arguments)}var Qz=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,a=e.tickValues,o=e.tickSize,s=e.tickPadding,c=e.tickRotation,l=e.truncateTickAt,u=e.engine,d=u===void 0?`svg`:u,f=xR(r,a),p=SF[d],m=`bandwidth`in r?vR(r):r,h={lineX:0,lineY:0},g={textX:0,textY:0},_=typeof document==`object`&&document.dir===`rtl`,v=p.align.center,y=p.baseline.center;return n===`x`?(t=function(e){return{x:m(e)??0,y:0}},h.lineY=o*(i===`after`?1:-1),g.textY=(o+s)*(i===`after`?1:-1),y=i===`after`?p.baseline.top:p.baseline.bottom,c===0?v=p.align.center:i===`after`&&c<0||i===`before`&&c>0?(v=p.align[_?`left`:`right`],y=p.baseline.center):(i===`after`&&c>0||i===`before`&&c<0)&&(v=p.align[_?`right`:`left`],y=p.baseline.center)):(t=function(e){return{x:0,y:m(e)??0}},h.lineX=o*(i===`after`?1:-1),g.textX=(o+s)*(i===`after`?1:-1),v=i===`after`?p.align.left:p.align.right),{ticks:f.map((function(e){var n=typeof e==`string`?function(e){var t=String(e).length;return l&&l>0&&t>l?``+String(e).slice(0,l).concat(`...`):``+e}(e):e;return Zz({key:e instanceof Date?``+e.valueOf():``+e,value:n},t(e),h,g)})),textAlign:v,textBaseline:y}},$z=function(e,t){if(e===void 0||typeof e==`function`)return e;if(t.type===`time`){var n=CM(e);return function(e){return n(e instanceof Date?e:new Date(e))}}return ik(e)},eB=function(e){var t,n=e.width,r=e.height,i=e.scale,a=e.axis,o=e.values,s=(t=o,Array.isArray(t)?o:void 0)||xR(i,o),c=`bandwidth`in i?vR(i):i;return a===`x`?s.map((function(e){return{key:e instanceof Date?``+e.valueOf():``+e,x1:c(e)??0,x2:c(e)??0,y1:0,y2:r}})):s.map((function(e){return{key:e instanceof Date?``+e.valueOf():``+e,x1:0,x2:n,y1:c(e)??0,y2:c(e)??0}}))},tB=(0,_.memo)((function(e){var t=e.value,n=e.format,r=e.lineX,i=e.lineY,a=e.onClick,o=e.textBaseline,s=e.textAnchor,c=e.theme,l=e.animatedProps,u=n?.(t)??t,d=(0,_.useMemo)((function(){var e={opacity:l.opacity};return a?{style:Zz({},e,{cursor:`pointer`}),onClick:function(e){return a(e,u)}}:{style:e}}),[l.opacity,a,u]);return(0,Z.jsxs)(rS.g,Zz({transform:l.transform},d,{children:[(0,Z.jsx)(`line`,{x1:0,x2:r,y1:0,y2:i,style:c.line}),(0,Z.jsx)(EI,{dominantBaseline:o,textAnchor:s,transform:l.textTransform,style:c.text,children:``+u})]}))})),nB={tickSize:5,tickPadding:5,tickRotation:0,legendPosition:`middle`,legendOffset:0},rB=(0,_.memo)(function(e){var t=e.axis,n=e.scale,r=e.x,i=r===void 0?0:r,a=e.y,o=a===void 0?0:a,s=e.length,c=e.ticksPosition,l=e.tickValues,u=e.tickSize,d=u===void 0?nB.tickSize:u,f=e.tickPadding,p=f===void 0?nB.tickPadding:f,m=e.tickRotation,h=m===void 0?nB.tickRotation:m,g=e.format,v=e.renderTick,y=v===void 0?tB:v,b=e.truncateTickAt,x=e.legend,S=e.legendPosition,C=S===void 0?nB.legendPosition:S,w=e.legendOffset,T=w===void 0?nB.legendOffset:w,E=e.style,D=e.onClick,O=e.ariaHidden,k=yw(Cw().axis,E),A=(0,_.useMemo)((function(){return $z(g,n)}),[g,n]),j=Qz({axis:t,scale:n,ticksPosition:c,tickValues:l,tickSize:d,tickPadding:p,tickRotation:h,truncateTickAt:b}),M=j.ticks,N=j.textAlign,P=j.textBaseline,F=null;if(x!==void 0){var I,L=0,R=0,z=0;t===`y`?(z=-90,L=T,C===`start`?(I=`start`,R=s):C===`middle`?(I=`middle`,R=s/2):C===`end`&&(I=`end`)):(R=T,C===`start`?I=`start`:C===`middle`?(I=`middle`,L=s/2):C===`end`&&(I=`end`,L=s)),F=(0,Z.jsx)(Z.Fragment,{children:(0,Z.jsx)(EI,{transform:`translate(`+L+`, `+R+`) rotate(`+z+`)`,textAnchor:I,style:Zz({},k.legend.text,{dominantBaseline:`central`}),children:x})})}var B=eF(),V=B.animate,H=B.config,U=Nx({transform:`translate(`+i+`,`+
75o+`)`,lineX2:t===`x`?s:0,lineY2:t===`x`?0:s,config:H,immediate:!V}),ee=(0,_.useCallback)((function(e){return{opacity:1,transform:`translate(`+e.x+`,`+e.y+`)`,textTransform:`translate(`+e.textX+`,`+e.textY+`) rotate(`+h+`)`}}),[h]),W=Px(M,{keys:function(e){return e.key},initial:ee,from:(0,_.useCallback)((function(e){return{opacity:0,transform:`translate(`+e.x+`,`+e.y+`)`,textTransform:`translate(`+e.textX+`,`+e.textY+`) rotate(`+h+`)`}}),[h]),enter:ee,update:ee,leave:{opacity:0},config:H,immediate:!V});return(0,Z.jsxs)(rS.g,{transform:U.transform,"aria-hidden":O,children:[W((function(e,t,n,r){return _.createElement(y,Zz({tickIndex:r,format:A,rotate:h,textBaseline:P,textAnchor:N,truncateTickAt:b,animatedProps:e,theme:k.ticks},t,D?{onClick:D}:{}))})),(0,Z.jsx)(rS.line,{style:k.domain.line,x1:0,x2:U.lineX2,y1:0,y2:U.lineY2}),F]})}),iB=[`top`,`right`,`bottom`,`left`],aB=(0,_.memo)((function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,a={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return(0,Z.jsx)(Z.Fragment,{children:iB.map((function(e){var o=a[e];if(!o)return null;var s=e===`top`||e===`bottom`;return(0,Z.jsx)(rB,Zz({},o,{axis:s?`x`:`y`,x:e===`right`?r:0,y:e===`bottom`?i:0,scale:s?t:n,length:s?r:i,ticksPosition:e===`top`||e===`left`?`before`:`after`,truncateTickAt:o.truncateTickAt}),e)}))})})),oB=(0,_.memo)((function(e){var t=e.animatedProps,n=Cw();return(0,Z.jsx)(rS.line,Zz({},t,n.grid.line))})),sB=(0,_.memo)((function(e){var t=e.lines,n=eF(),r=n.animate,i=n.config;return(0,Z.jsx)(`g`,{children:Px(t,{keys:function(e){return e.key},initial:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},from:function(e){return{opacity:0,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},enter:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},update:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},leave:{opacity:0},config:i,immediate:!r})((function(e,t){return(0,_.createElement)(oB,Zz({},t,{key:t.key,animatedProps:e}))}))})})),cB=(0,_.memo)((function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,a=e.xValues,o=e.yValues,s=(0,_.useMemo)((function(){return!!r&&eB({width:t,height:n,scale:r,axis:`x`,values:a})}),[r,a,t,n]),c=(0,_.useMemo)((function(){return!!i&&eB({width:t,height:n,scale:i,axis:`y`,values:o})}),[n,t,i,o]);return(0,Z.jsxs)(Z.Fragment,{children:[s&&(0,Z.jsx)(sB,{lines:s}),c&&(0,Z.jsx)(sB,{lines:c})]})})),lB=function(e,t){var n=t.axis,r=t.scale,i=t.x,a=i===void 0?0:i,o=t.y,s=o===void 0?0:o,c=t.length,l=t.ticksPosition,u=t.tickValues,d=t.tickSize,f=d===void 0?nB.tickSize:d,p=t.tickPadding,m=p===void 0?nB.tickPadding:p,h=t.tickRotation,g=h===void 0?nB.tickRotation:h,_=t.format,v=t.legend,y=t.legendPosition,b=y===void 0?nB.legendPosition:y,x=t.legendOffset,S=x===void 0?nB.legendOffset:x,C=t.theme,w=t.style,T=Qz({axis:n,scale:r,ticksPosition:l,tickValues:u,tickSize:f,tickPadding:m,tickRotation:g,engine:`canvas`}),E=T.ticks,D=T.textAlign,O=T.textBaseline;e.save(),e.translate(a,s);var k=gw(C.axis,w);e.textAlign=D,e.textBaseline=O,bI(e,k.ticks.text);var A=k.domain.line.strokeWidth??0;typeof A!=`string`&&A>0&&(e.lineWidth=A,e.lineCap=`square`,k.domain.line.stroke&&(e.strokeStyle=k.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(n===`x`?c:0,n===`x`?0:c),e.stroke());var j=typeof _==`function`?_:function(e){return``+e},M=k.ticks.line.strokeWidth??0,N=typeof M!=`string`&&M>0;if(E.forEach((function(t){N&&(e.lineWidth=M,e.lineCap=`square`,k.ticks.line.stroke&&(e.strokeStyle=k.ticks.line.stroke),e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(t.x+t.lineX,t.y+t.lineY),e.stroke());var n=j(t.value);e.save(),e.translate(t.x+t.textX,t.y+t.textY),e.rotate(gF(g)),xI(e,k.ticks.text,``+n),e.fillText(``+n,0,0),e.restore()})),v!==void 0){var P=0,F=0,I=0,L=`center`;n===`y`?(I=-90,P=S,b===`start`?(L=`start`,F=c):b===`middle`?(L=`center`,F=c/2):b===`end`&&(L=`end`)):(F=S,b===`start`?L=`start`:b===`middle`?(L=`center`,P=c/2):b===`end`&&(L=`end`,P=c)),e.translate(P,F),e.rotate(gF(I)),bI(e,k.legend.text),k.legend.text.fill&&(e.fillStyle=k.legend.text.fill),e.textAlign=L,e.textBaseline=`middle`,xI(e,k.legend.text,v)}
75e.restore()},uB=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,a=t.height,o=t.top,s=t.right,c=t.bottom,l=t.left,u=t.theme,d={top:o,right:s,bottom:c,left:l};iB.forEach((function(t){var o=d[t];if(!o)return null;var s=t===`top`||t===`bottom`,c=t===`top`||t===`left`?`before`:`after`,l=s?n:r,f=$z(o.format,l);lB(e,Zz({},o,{axis:s?`x`:`y`,x:t===`right`?i:0,y:t===`bottom`?a:0,scale:l,format:f,length:s?i:a,ticksPosition:c,theme:u}))}))},dB=function(e,t){var n=t.width,r=t.height,i=t.scale,a=t.axis,o=t.values;eB({width:n,height:r,scale:i,axis:a,values:o}).forEach((function(t){e.beginPath(),e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.stroke()}))},fB=o(((e,t)=>{var n=UL();function r(e,t){var r=[];return n(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}t.exports=r})),pB=o(((e,t)=>{var n=AP(),r=fB(),i=zL(),a=fC();function o(e,t){return(a(e)?n:r)(e,i(t,3))}t.exports=o})),mB=o(((e,t)=>{var n=xS(),r=lC(),i=`[object Number]`;function a(e){return typeof e==`number`||r(e)&&n(e)==i}t.exports=a})),hB=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}t.exports=n})),gB=o(((e,t)=>{var n=TC(),r=FP();function i(e,t){return e&&n(t,r(t),e)}t.exports=i})),_B=o(((e,t)=>{var n=TC(),r=jC();function i(e,t){return e&&n(t,r(t),e)}t.exports=i})),vB=o(((e,t)=>{var n=TC(),r=MP();function i(e,t){return n(e,r(e),t)}t.exports=i})),yB=o(((e,t)=>{var n=vP(),r=oC(),i=MP(),a=jP();t.exports=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=r(e);return t}:a})),bB=o(((e,t)=>{var n=TC(),r=yB();function i(e,t){return n(e,r(e),t)}t.exports=i})),xB=o(((e,t)=>{var n=kP(),r=yB(),i=jC();function a(e){return n(e,i,r)}t.exports=a})),SB=o(((e,t)=>{var n=Object.prototype.hasOwnProperty;function r(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]==`string`&&n.call(e,`index`)&&(r.index=e.index,r.input=e.input),r}t.exports=r})),CB=o(((e,t)=>{var n=tC();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}t.exports=r})),wB=o(((e,t)=>{var n=/\w*$/;function r(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}t.exports=r})),TB=o(((e,t)=>{var n=vS(),r=n?n.prototype:void 0,i=r?r.valueOf:void 0;function a(e){return i?Object(i.call(e)):{}}t.exports=a})),EB=o(((e,t)=>{var n=tC(),r=CB(),i=wB(),a=TB(),o=nC(),s=`[object Boolean]`,c=`[object Date]`,l=`[object Map]`,u=`[object Number]`,d=`[object RegExp]`,f=`[object Set]`,p=`[object String]`,m=`[object Symbol]`,h=`[object ArrayBuffer]`,g=`[object DataView]`,_=`[object Float32Array]`,v=`[object Float64Array]`,y=`[object Int8Array]`,b=`[object Int16Array]`,x=`[object Int32Array]`,S=`[object Uint8Array]`,C=`[object Uint8ClampedArray]`,w=`[object Uint16Array]`,T=`[object Uint32Array]`;function E(e,t,E){var D=e.constructor;switch(t){case h:return n(e);case s:case c:return new D(+e);case g:return r(e,E);case _:case v:case y:case b:case x:case S:case C:case w:case T:return o(e,E);case l:return new D;case u:case p:return new D(e);case d:return i(e);case f:return new D;case m:return a(e)}}t.exports=E}
75)),DB=o(((e,t)=>{var n=HP(),r=lC(),i=`[object Map]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),OB=o(((e,t)=>{var n=DB(),r=bC(),i=xC(),a=i&&i.isMap;t.exports=a?r(a):n})),kB=o(((e,t)=>{var n=HP(),r=lC(),i=`[object Set]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),AB=o(((e,t)=>{var n=kB(),r=bC(),i=xC(),a=i&&i.isSet;t.exports=a?r(a):n})),jB=o(((e,t)=>{var n=qS(),r=hB(),i=wC(),a=gB(),o=_B(),s=$S(),c=rC(),l=vB(),u=bB(),d=IP(),f=xB(),p=HP(),m=SB(),h=EB(),g=cC(),_=fC(),v=_C(),y=OB(),b=SS(),x=AB(),S=FP(),C=jC(),w=1,T=2,E=4,D=`[object Arguments]`,O=`[object Array]`,k=`[object Boolean]`,A=`[object Date]`,j=`[object Error]`,M=`[object Function]`,N=`[object GeneratorFunction]`,P=`[object Map]`,F=`[object Number]`,I=`[object Object]`,L=`[object RegExp]`,R=`[object Set]`,z=`[object String]`,B=`[object Symbol]`,V=`[object WeakMap]`,H=`[object ArrayBuffer]`,U=`[object DataView]`,ee=`[object Float32Array]`,W=`[object Float64Array]`,te=`[object Int8Array]`,ne=`[object Int16Array]`,re=`[object Int32Array]`,ie=`[object Uint8Array]`,ae=`[object Uint8ClampedArray]`,G=`[object Uint16Array]`,oe=`[object Uint32Array]`,K={};K[D]=K[O]=K[H]=K[U]=K[k]=K[A]=K[ee]=K[W]=K[te]=K[ne]=K[re]=K[P]=K[F]=K[I]=K[L]=K[R]=K[z]=K[B]=K[ie]=K[ae]=K[G]=K[oe]=!0,K[j]=K[M]=K[V]=!1;function se(e,t,O,k,A,j){var P,F=t&w,L=t&T,R=t&E;if(O&&(P=A?O(e,k,A,j):O(e)),P!==void 0)return P;if(!b(e))return e;var z=_(e);if(z){if(P=m(e),!F)return c(e,P)}else{var B=p(e),V=B==M||B==N;if(v(e))return s(e,F);if(B==I||B==D||V&&!A){if(P=L||V?{}:g(e),!F)return L?u(e,o(P,e)):l(e,a(P,e))}else{if(!K[B])return A?e:{};P=h(e,B,F)}}j||=new n;var H=j.get(e);if(H)return H;j.set(e,P),x(e)?e.forEach(function(n){P.add(se(n,t,O,n,e,j))}):y(e)&&e.forEach(function(n,r){P.set(r,se(n,t,O,r,e,j))});var U=z?void 0:(R?L?f:d:L?C:S)(e);return r(U||e,function(n,r){U&&(r=n,n=e[r]),i(P,r,se(n,t,O,r,e,j))}),P}t.exports=se})),MB=o(((e,t)=>{function n(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}t.exports=n})),NB=o(((e,t)=>{var n=nw(),r=MB();function i(e,t){return t.length<2?e:n(e,r(t,0,-1))}t.exports=i})),PB=o(((e,t)=>{var n=ew(),r=fP(),i=NB(),a=tw(),o=Object.prototype.hasOwnProperty;function s(e,t){t=n(t,e);var s=-1,c=t.length;if(!c)return!0;for(;++s<c;){var l=a(t[s]);if(l===`__proto__`&&!o.call(e,`__proto__`)||(l===`constructor`||l===`prototype`)&&s<c-1)return!1}var u=i(e,t);return u==null||delete u[a(r(t))]}t.exports=s})),FB=o(((e,t)=>{var n=vC();function r(e){return n(e)?void 0:e}t.exports=r})),IB=o(((e,t)=>{var n=ZC(),r=jB(),i=PB(),a=ew(),o=TC(),s=FB(),c=SP(),l=xB(),u=1,d=2,f=4;t.exports=c(function(e,t){var c={};if(e==null)return c;var p=!1;t=n(t,function(t){return t=a(t,e),p||=t.length>1,t}),o(e,l(e),c),p&&(c=r(c,u|d|f,s));for(var m=t.length;m--;)i(c,t[m]);return c})})),LB=c(pB(),1),RB=c(mB(),1),zB=c(IB(),1);function BB(){return BB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BB.apply(null,arguments)}var VB={dotSize:4,noteWidth:120,noteTextOffset:8,animate:!0},HB=function(e){var t=typeof e;return(0,_.isValidElement)(e)||t===`string`||t===`function`||t===`object`},UB=function(e){var t=typeof e;return t===`string`||t===`function`},WB=function(e){return e.type===`circle`},GB=function(e){return e.type===`dot`},KB=function(e){return e.type===`rect`},qB=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce((function(e,n){var a=n.offset||0;return[].concat(e,(0,LB.default)(t,n.match).map((function(e){var t=r(e),o=i(e);return(WB(n)||KB(n))&&(o.size+=2*a,o.width+=2*a,o.height+=2*a),BB({},(0,zB.default)(n,[`match`,`offset`]),t,o,{size:n.size||o.size,datum:e})})))}),[])},JB=function(e,t,n,r){return bF(_F(Math.atan2(r-t,n-e)))},YB=function(e){var t,n,r=e.x,i=e.y,a=e.noteX,o=e.noteY,s=e.noteWidth,c=s===void 0?VB.noteWidth:s,l=e.noteTextOffset,u=l===void 0?VB.noteTextOffset:l;if((0,RB.default)(a))t=r+a;else{if(a.abs===void 0)throw Error(`noteX should be either a number or an object c
75ontaining an 'abs' property`);t=a.abs}if((0,RB.default)(o))n=i+o;else{if(o.abs===void 0)throw Error(`noteY should be either a number or an object containing an 'abs' property`);n=o.abs}var d=r,f=i,p=JB(r,i,t,n);if(WB(e)){var m=yF(gF(p),e.size/2);d+=m.x,f+=m.y}if(KB(e)){var h=Math.round((p+90)/45)%8;h===0&&(f-=e.height/2),h===1&&(d+=e.width/2,f-=e.height/2),h===2&&(d+=e.width/2),h===3&&(d+=e.width/2,f+=e.height/2),h===4&&(f+=e.height/2),h===5&&(d-=e.width/2,f+=e.height/2),h===6&&(d-=e.width/2),h===7&&(d-=e.width/2,f-=e.height/2)}var g=t,_=t;return(p+90)%360>180?(g-=c,_-=c):_+=c,{points:[[d,f],[t,n],[_,n]],text:[g,n-u],angle:p+90}},XB=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return(0,_.useMemo)((function(){return qB({data:t,annotations:n,getPosition:r,getDimensions:i})}),[t,n,r,i])},ZB=function(e){var t=e.annotations;return(0,_.useMemo)((function(){return t.map((function(e){return BB({},e,{computed:YB(BB({},e))})}))}),[t])},QB=function(e){return(0,_.useMemo)((function(){return YB(e)}),[e])},$B=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,a=Cw(),o=eF(),s=o.animate,c=o.config,l=Nx({x:n,y:r,config:c,immediate:!s});return typeof i==`function`?(0,_.createElement)(i,{x:n,y:r,datum:t}):(0,Z.jsxs)(Z.Fragment,{children:[a.annotations.text.outlineWidth>0&&(0,Z.jsx)(rS.text,{x:l.x,y:l.y,style:BB({},a.annotations.text,{strokeLinejoin:`round`,strokeWidth:2*a.annotations.text.outlineWidth,stroke:a.annotations.text.outlineColor}),children:i}),(0,Z.jsx)(rS.text,{x:l.x,y:l.y,style:(0,zB.default)(a.annotations.text,[`outlineWidth`,`outlineColor`]),children:i})]})},eV=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,i=Cw(),a=FF((0,_.useMemo)((function(){var e=t[0];return t.slice(1).reduce((function(e,t){return e+` L`+t[0]+`,`+t[1]}),`M`+e[0]+`,`+e[1])}),[t]));if(r&&i.annotations.link.outlineWidth<=0)return null;var o=BB({},i.annotations.link);return r&&(o.strokeLinecap=`square`,o.strokeWidth=i.annotations.link.strokeWidth+2*i.annotations.link.outlineWidth,o.stroke=i.annotations.link.outlineColor,o.opacity=i.annotations.link.outlineOpacity),(0,Z.jsx)(rS.path,{fill:`none`,d:a,style:o})},tV=function(e){var t=e.x,n=e.y,r=e.size,i=Cw(),a=eF(),o=a.animate,s=a.config,c=Nx({x:t,y:n,radius:r/2,config:s,immediate:!o});return(0,Z.jsxs)(Z.Fragment,{children:[i.annotations.outline.outlineWidth>0&&(0,Z.jsx)(rS.circle,{cx:c.x,cy:c.y,r:c.radius,style:BB({},i.annotations.outline,{fill:`none`,strokeWidth:i.annotations.outline.strokeWidth+2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),(0,Z.jsx)(rS.circle,{cx:c.x,cy:c.y,r:c.radius,style:i.annotations.outline})]})},nV=function(e){var t=e.x,n=e.y,r=e.size,i=r===void 0?VB.dotSize:r,a=Cw(),o=eF(),s=o.animate,c=o.config,l=Nx({x:t,y:n,radius:i/2,config:c,immediate:!s});return(0,Z.jsxs)(Z.Fragment,{children:[a.annotations.outline.outlineWidth>0&&(0,Z.jsx)(rS.circle,{cx:l.x,cy:l.y,r:l.radius,style:BB({},a.annotations.outline,{fill:`none`,strokeWidth:2*a.annotations.outline.outlineWidth,stroke:a.annotations.outline.outlineColor,opacity:a.annotations.outline.outlineOpacity})}),(0,Z.jsx)(rS.circle,{cx:l.x,cy:l.y,r:l.radius,style:a.annotations.symbol})]})},rV=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.borderRadius,o=a===void 0?6:a,s=Cw(),c=eF(),l=c.animate,u=c.config,d=Nx({x:t-r/2,y:n-i/2,width:r,height:i,config:u,immediate:!l});return(0,Z.jsxs)(Z.Fragment,{children:[s.annotations.outline.outlineWidth>0&&(0,Z.jsx)(rS.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:BB({},s.annotations.outline,{fill:`none`,strokeWidth:s.annotations.outline.strokeWidth+2*s.annotations.outline.outlineWidth,stroke:s.annotations.outline.outlineColor,opacity:s.annotations.outline.outlineOpacity})}),(0,Z.jsx)(rS.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:s.annotations.outline})]})},iV=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,a=QB(e);if(!HB(i))throw Error(`note should be a valid react element`);return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(eV,{points:a.points,isOutline:!0}),WB(e)&&(0,Z.jsx)(tV,{x:n,y:r,size:e.size}),GB(e)&&(0,Z.jsx)(nV,{x:n,y:r,size:e.size}),KB(e)&&(0,Z.jsx)(rV,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),(0,Z.jsx)(eV,{points:a.points}),(0,Z.jsx)($B,{datum:t,x:a.text[0],y:a.text[1],note:i})]})},aV=function(e,t){t.forEach((function(t,n){var r=t[0],i=t[1];n===0?e.moveTo(r,i):e.lineTo(r,i)}))},oV=function(e,t){var n=t.annotations,r=t.theme;
75n.length!==0&&(e.save(),n.forEach((function(t){if(!UB(t.note))throw Error(`note is invalid for canvas implementation`);r.annotations.link.outlineWidth>0&&(e.lineCap=`square`,e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),aV(e,t.computed.points),e.stroke(),e.lineCap=`butt`),WB(t)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),GB(t)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),KB(t)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),aV(e,t.computed.points),e.stroke(),WB(t)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.stroke()),GB(t)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(t.x,t.y,t.size/2,0,2*Math.PI),e.fill()),KB(t)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(t.x-t.width/2,t.y-t.height/2,t.width,t.height),e.stroke()),typeof t.note==`function`?t.note(e,{datum:t.datum,x:t.computed.text[0],y:t.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+`px `+r.annotations.text.fontFamily,e.textAlign=`left`,e.textBaseline=`alphabetic`,e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin=`round`,e.strokeText(t.note,t.computed.text[0],t.computed.text[1]),e.lineJoin=`miter`),e.fillText(t.note,t.computed.text[0],t.computed.text[1]))})),e.restore())},sV=function(e,t,n,r,i,a){a>0?(e.moveTo(t+a,n),e.lineTo(t+r-a,n),e.quadraticCurveTo(t+r,n,t+r,n+a),e.lineTo(t+r,n+i-a),e.quadraticCurveTo(t+r,n+i,t+r-a,n+i),e.lineTo(t+a,n+i),e.quadraticCurveTo(t,n+i,t,n+i-a),e.lineTo(t,n+a),e.quadraticCurveTo(t,n,t+a,n),e.closePath()):e.rect(t,n,r,i)};function cV(){return cV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cV.apply(null,arguments)}function lV(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var uV,dV=function(e){var t=e.bars,n=e.annotations;return(0,Z.jsx)(Z.Fragment,{children:XB({data:t,annotations:n,getPosition:function(e){return{x:e.x+e.width/2,y:e.y+e.height/2}},getDimensions:function(e){var t=e.height,n=e.width;return{width:n,height:t,size:Math.max(n,t)}}}).map((function(e,t){return(0,Z.jsx)(iV,cV({},e),t)}))})},fV=function(e){var t=e.width,n=e.height,r=e.legends,i=e.toggleSerie;return(0,Z.jsx)(Z.Fragment,{children:r.map((function(e,r){var a=e[0],o=e[1];return(0,Z.jsx)(CL,cV({},a,{containerWidth:t,containerHeight:n,data:a.data??o,toggleSerie:a.toggleSerie&&a.dataFrom===`keys`?i:void 0}),r)}))})},pV=[`data`],mV=function(e){var t=e.bar,n=t.data,r=lV(t,pV),i=e.style,a=i.borderColor,o=i.color,s=i.height,c=i.labelColor,l=i.labelOpacity,u=i.labelX,d=i.labelY,f=i.transform,p=i.width,m=i.textAnchor,h=e.borderRadius,g=e.borderWidth,v=e.label,y=e.shouldRenderLabel,b=e.isInteractive,x=e.onClick,S=e.onMouseEnter,C=e.onMouseLeave,w=e.tooltip,T=e.isFocusable,E=e.ariaLabel,D=e.ariaLabelledBy,O=e.ariaDescribedBy,k=e.ariaDisabled,A=e.ariaHidden,j=Cw(),M=hI(),N=M.showTooltipFromEvent,P=M.showTooltipAt,F=M.hideTooltip,I=(0,_.useMemo)((function(){return function(){return(0,_.createElement)(w,cV({},r,n))}}),[w,r,n]),L=(0,_.useCallback)((function(e){x?.(cV({color:r.color},n),e)}),[r,n,x]),R=(0,_.useCallback)((function(e){return N(I(),e)}
75),[N,I]),z=(0,_.useCallback)((function(e){S?.(n,e),N(I(),e)}),[n,S,N,I]),B=(0,_.useCallback)((function(e){C?.(n,e),F()}),[n,F,C]),V=(0,_.useCallback)((function(){P(I(),[r.absX+r.width/2,r.absY])}),[P,I,r]),H=(0,_.useCallback)((function(){F()}),[F]);return(0,Z.jsxs)(rS.g,{transform:f,children:[(0,Z.jsx)(rS.rect,{width:Vx(p,(function(e){return Math.max(e,0)})),height:Vx(s,(function(e){return Math.max(e,0)})),rx:h,ry:h,fill:n.fill??o,strokeWidth:g,stroke:a,focusable:T,tabIndex:T?0:void 0,"aria-label":E?E(n):void 0,"aria-labelledby":D?D(n):void 0,"aria-describedby":O?O(n):void 0,"aria-disabled":k?k(n):void 0,"aria-hidden":A?A(n):void 0,onMouseEnter:b?z:void 0,onMouseMove:b?R:void 0,onMouseLeave:b?B:void 0,onClick:b?L:void 0,onFocus:b&&T?V:void 0,onBlur:b&&T?H:void 0,"data-testid":`bar.item.`+n.id+`.`+n.index}),y&&(0,Z.jsx)(EI,{x:u,y:d,textAnchor:m,dominantBaseline:`central`,fillOpacity:l,style:cV({},j.labels.text,{pointerEvents:`none`,fill:c}),children:v})]})},hV=[`color`,`label`],gV={indexBy:`id`,keys:[`value`],groupMode:`stacked`,layout:`vertical`,valueScale:{type:`linear`,nice:!0,round:!1},indexScale:{type:`band`,round:!1},padding:.1,innerPadding:0,enableGridX:!1,enableGridY:!0,enableLabel:!0,label:`formattedValue`,labelPosition:`middle`,labelOffset:0,labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{theme:`labels.text.fill`},colorBy:`id`,colors:{scheme:`nivo`},borderRadius:0,borderWidth:0,borderColor:{from:`color`},isInteractive:!0,tooltip:function(e){var t=e.color,n=e.label;return(0,Z.jsx)(oI,{id:n,value:lV(e,hV).formattedValue,enableChip:!0,color:t})},tooltipLabel:function(e){return e.id+` - `+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],enableTotals:!1,totalsOffset:10},_V=cV({},gV,{layers:[`grid`,`axes`,`bars`,`totals`,`markers`,`legends`,`annotations`],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{}
75,barComponent:mV,defs:[],fill:[],markers:[],animate:!0,animateOnMount:!1,motionConfig:`default`,role:`img`,isFocusable:!1}),vV=cV({},gV,{layers:[`grid`,`axes`,`bars`,`totals`,`legends`,`annotations`],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},renderBar:function(e,t){var n=t.bar,r=n.color,i=n.height,a=n.width,o=n.x,s=n.y,c=t.borderColor,l=t.borderRadius,u=t.borderWidth,d=t.label,f=t.shouldRenderLabel,p=t.labelStyle,m=t.labelX,h=t.labelY,g=t.textAnchor;e.fillStyle=r,u>0&&(e.strokeStyle=c,e.lineWidth=u),e.beginPath(),sV(e,o,s,a,i,Math.min(l,i)),e.fill(),u>0&&e.stroke(),f&&(e.textBaseline=`middle`,e.textAlign=g===`middle`?`center`:g,xI(e,p,d,o+m,s+h))},pixelRatio:typeof window<`u`&&(uV=window.devicePixelRatio)!=null?uV:1}),yV=function(e,t,n,r,i,a){return _R(r,{all:e.map(t),min:0,max:0},i,a).padding(n)},bV=function(e,t){return e.map((function(e){return cV({},t.reduce((function(e,t){return e[t]=null,e}),{}),e)}))},xV=function(e){return Object.keys(e).reduce((function(t,n){return e[n]&&(t[n]=e[n]),t}),{})},SV=function(e){return[e,Number(e)]};function CV(e,t,n,r){return e===void 0&&(e=gV.layout),n===void 0&&(n=gV.labelPosition),r===void 0&&(r=gV.labelOffset),function(i,a){var o=r*(t?-1:1);if(e===`horizontal`){var s=i/2;return n===`start`?s=t?i:0:n===`end`&&(s=t?0:i),{labelX:s+o,labelY:a/2,textAnchor:n===`middle`?`middle`:t?`end`:`start`}}var c=a/2;return n===`start`?c=t?0:a:n===`end`&&(c=t?a:0),{labelX:i/2,labelY:c-o,textAnchor:`middle`}}}var wV=[`layout`,`width`,`height`,`padding`,`innerPadding`,`valueScale`,`indexScale`,`hiddenIds`],TV=function(e,t){return e>t},EV=function(e,t){return e<t},DV=function(e,t){return Array.from(` `.repeat(t-e),(function(t,n){return e+n}))},OV=function(e){return TV(e,0)?0:e},kV=function(e,t,n,r){var i=e.data,a=e.formatValue,o=e.getColor,s=e.getIndex,c=e.getTooltipLabel,l=e.innerPadding,u=l===void 0?0:l,d=e.keys,f=e.xScale,p=e.yScale,m=e.margin,h=n?EV:TV,g=i.map(xV),_=[];return d.forEach((function(e,n){return DV(0,f.domain().length).forEach((function(l){var d,v=SV(i[l][e]),y=v[0],b=v[1],x=s(i[l]),S=(f(x)??0)+t*n+u*n,C=h(d=b,0)?p(d)??0:r,w=function(e,t){return h(e,0)?r-t:(p(e)??0)-r}(b,C),T={id:e,value:y===null?y:b,formattedValue:a(b),hidden:!1,index:l,indexValue:x,data:g[l]};_.push({key:e+`.`+T.indexValue,index:_.length,data:T,x:S,y:C,absX:m.left+S,absY:m.top+C,width:t,height:w,color:o(T),label:c(T)})}))})),_},AV=function(e,t,n,r){var i=e.data,a=e.formatValue,o=e.getIndex,s=e.getColor,c=e.getTooltipLabel,l=e.keys,u=e.innerPadding,d=u===void 0?0:u,f=e.xScale,p=e.yScale,m=e.margin,h=n?EV:TV,g=i.map(xV),_=[];return l.forEach((function(e,n){return DV(0,p.domain().length).forEach((function(l){var u,v=SV(i[l][e]),y=v[0],b=v[1],x=o(i[l]),S=h(u=b,0)?r:f(u)??0,C=(p(x)??0)+t*n+d*n,w=function(e,t){return h(e,0)?(f(e)??0)-r:r-t}(b,S),T={id:e,value:y===null?y:b,formattedValue:a(b),hidden:!1,index:l,indexValue:x,data:g[l]};_.push({key:e+`.`+T.indexValue,index:_.length,data:T,x:S,y:C,absX:m.left+S,absY:m.top+C,width:w,height:t,color:s(T),label:c(T)})}))})),_},jV=function(e){var t,n,r=e.layout,i=e.width,a=e.height,o=e.padding,s=o===void 0?0:o,c=e.innerPadding,l=c===void 0?0:c,u=e.valueScale,d=e.indexScale,f=e.hiddenIds,p=f===void 0?[]:f,m=lV(e,wV),h=m.keys.filter((function(e){return!p.includes(e)})),g=bV(m.data,h),_=r===`vertical`?[`y`,`x`,i]:[`x`,`y`,a],v=_[0],y=_[1],b=_[2],x=yV(g,m.getIndex,s,d,b,y),S=u.min===`auto`?OV:function(e){return e},C=g.reduce((function(e,t){return[].concat(e,h.map((function(e){return t[e]})))}),[]).filter(Boolean),w=_R(u,{all:C,min:S(Math.min.apply(Math,C)),max:(n=Math.max.apply(Math,C),isFinite(n)?n:0)},v===`x`?i:a,v),T=r===`vertical`?[x,w]:[w,x],E=T[0],D=T[1],O=(x.bandwidth()-l*(h.length-1))/h.length,k=[cV({},m,{data:g,keys:h,innerPadding:l,xScale:E,yScale:D}),O,(t=u.reverse)!=null&&t,w(0)??0];return{xScale:E,yScale:D,bars:O>0?r===`vertical`?kV.apply(void 0,k):AV.apply(void 0,k):[]}},MV=[`data`,`layout`,`width`,`height`,`padding`,`valueScale`,`indexScale`,`hiddenIds`],NV=function(e){var t;return e.some(Array.isArray)?NV((t=[]).concat.apply(t,e)):e},PV=function(e,t,n){var r=e.formatValue,i=e.getColor,a=e.getIndex,o=e.getTooltipLabel,s=e.innerPadding,c=e.stackedData,l=e.xScale,u=e.yScale,d=e.margin,f=[];
75return c.forEach((function(e){return l.domain().forEach((function(c,p){var m=e[p],h=l(a(m.data))??0,g=(function(e){return u(e[+!n])}(m)??0)+.5*s,_=function(e,t){return(u(e[+!!n])??0)-t}(m,g)-s,v=SV(m.data[e.key]),y=v[0],b=v[1],x={id:e.key,value:y===null?y:b,formattedValue:r(b),hidden:!1,index:p,indexValue:c,data:xV(m.data)};f.push({key:e.key+`.`+c,index:f.length,data:x,x:h,y:g,absX:d.left+h,absY:d.top+g,width:t,height:_,color:i(x),label:o(x)})}))})),f},FV=function(e,t,n){var r=e.formatValue,i=e.getColor,a=e.getIndex,o=e.getTooltipLabel,s=e.innerPadding,c=e.stackedData,l=e.xScale,u=e.yScale,d=e.margin,f=[];return c.forEach((function(e){return u.domain().forEach((function(c,p){var m=e[p],h=u(a(m.data))??0,g=(function(e){return l(e[+!!n])}(m)??0)+.5*s,_=function(e,t){return(l(e[+!n])??0)-t}(m,g)-s,v=SV(m.data[e.key]),y=v[0],b=v[1],x={id:e.key,value:y===null?y:b,formattedValue:r(b),hidden:!1,index:p,indexValue:c,data:xV(m.data)};f.push({key:e.key+`.`+c,index:f.length,data:x,x:g,y:h,absX:d.left+g,absY:d.top+h,width:_,height:t,color:i(x),label:o(x)})}))})),f},IV=function(e){var t,n,r=e.data,i=e.layout,a=e.width,o=e.height,s=e.padding,c=s===void 0?0:s,l=e.valueScale,u=e.indexScale,d=e.hiddenIds,f=d===void 0?[]:d,p=lV(e,MV),m=p.keys.filter((function(e){return!f.includes(e)})),h=eO().keys(m).offset(tO)(bV(r,m)),g=i===`vertical`?[`y`,`x`,a]:[`x`,`y`,o],_=g[0],v=g[1],y=g[2],b=yV(r,p.getIndex,c,u,y,v),x=(n=NV(h),l.type===`log`?n.filter((function(e){return e!==0})):n),S=_R(l,{all:x,min:Math.min.apply(Math,x),max:Math.max.apply(Math,x)},_===`x`?a:o,_),C=i===`vertical`?[b,S]:[S,b],w=C[0],T=C[1],E=p.innerPadding>0?p.innerPadding:0,D=b.bandwidth(),O=[cV({},p,{innerPadding:E,stackedData:h,xScale:w,yScale:T}),D,(t=l.reverse)!=null&&t];return{xScale:w,yScale:T,bars:D>0?i===`vertical`?PV.apply(void 0,O):FV.apply(void 0,O):[]}},LV=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,a=e.layout,o=e.legendLabel,s=e.reverse,c=GF(o??(r===`indexes`?`indexValue`:`id`));return r===`indexes`?function(e,t,n){var r=(0,QL.default)(e.map((function(e){return{id:e.data.indexValue??``,label:n(e.data),hidden:e.data.hidden,color:e.color??`#000`}})),(function(e){return e.id}));return t===`horizontal`&&r.reverse(),r}(t,a,c):function(e,t,n,r,i,a){var o=(0,QL.default)(e.map((function(e){return{id:e.data.id,label:a(e.data),hidden:e.data.hidden,color:e.color??`#000`}})),(function(e){return e.id}));return(t===`vertical`&&r===`stacked`&&n===`column`&&!0!==i||t===`horizontal`&&r===`stacked`&&!0===i)&&o.reverse(),o}(t,a,n,i,s,c)},RV=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},zV=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},BV=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},VV=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},HV=function(e){var t,n=e.indexBy,r=n===void 0?gV.indexBy:n,i=e.keys,a=i===void 0?gV.keys:i,o=e.label,s=o===void 0?gV.label:o,c=e.tooltipLabel,l=c===void 0?gV.tooltipLabel:c,u=e.valueFormat,d=e.colors,f=d===void 0?gV.colors:d,p=e.colorBy,m=p===void 0?gV.colorBy:p,h=e.borderColor,g=h===void 0?gV.borderColor:h,v=e.labelTextColor,y=v===void 0?gV.labelTextColor:v,b=e.groupMode,x=b===void 0?gV.groupMode:b,S=e.layout,C=S===void 0?gV.layout:S,w=e.data,T=e.margin,E=e.width,D=e.height,O=e.padding,k=O===void 0?gV.padding:O,A=e.innerPadding,j=A===void 0?gV.innerPadding:A,M=e.valueScale,N=M===void 0?gV.valueScale:M,P=e.indexScale,F=P===void 0?gV.indexScale:P,I=e.initialHiddenIds,L=I===void 0?gV.initialHiddenIds:I,R=e.enableLabel,z=R===void 0?gV.enableLabel:R,B=e.labelSkipWidth,V=B===void 0?gV.labelSkipWidth:B,H=e.labelSkipHeight,U=H===void 0?gV.labelSkipHeight:H,ee=e.legends,W=ee===void 0?gV.legends:ee,te=e.legendLabel,ne=e.totalsOffset,re=ne===void 0?gV.totalsOffset:ne,ie=(0,_.useState)(L??[]),ae=ie[0],G=ie[1],oe=(0,_.useCallback)((function(e){G((function(t){return t.indexOf(e)>-1?t.filter((function(t){return t!==e})):[].concat(t,[e])}))}),[]),K=KF(r),se=KF(s),ce=KF(l),le=WF(u),ue=Cw(),de=qI(f,m),fe=GI(g,ue),pe=GI(y,ue),me=(x===`grouped`?jV:IV)({layout:C,data:w,getIndex:K,keys:a,width:E,height:D,getColor:de,padding:k,innerPadding:j,valueScale:N,indexScale:F,hiddenIds:ae,formatValue:le,getTooltipLabel:ce,margin:T}),he=me.bars,ge=me.xScale,_e=me.yScale,ve=(0,_.useMemo)((function(){return he.filter((function(e){return e.data.value!==null})).map((function(e,t){return cV({},e,{index:t})}))}
75),[he]),ye=(0,_.useCallback)((function(e){var t=e.width,n=e.height;return!!z&&!(V>0&&t<V)&&!(U>0&&n<U)}),[z,V,U]),be=(0,_.useMemo)((function(){return a.map((function(e){var t=he.find((function(t){return t.data.id===e}));return cV({},t,{data:cV({id:e},t?.data,{hidden:ae.includes(e)})})}))}),[ae,a,he]),xe=(t=N.reverse)!=null&&t;return{bars:he,barsWithValue:ve,xScale:ge,yScale:_e,getIndex:K,getLabel:se,getTooltipLabel:ce,formatValue:le,getColor:de,getBorderColor:fe,getLabelColor:pe,shouldRenderBarLabel:ye,hiddenIds:ae,toggleSerie:oe,legendsWithData:(0,_.useMemo)((function(){return W.map((function(e){return[e,LV({bars:e.dataFrom===`keys`?be:he,direction:e.direction,from:e.dataFrom,groupMode:x,layout:C,legendLabel:te,reverse:xe})]}))}),[W,be,he,x,C,te,xe]),barTotals:(0,_.useMemo)((function(){return function(e,t,n,r,i,a,o){r===void 0&&(r=gV.layout),i===void 0&&(i=gV.groupMode);var s=[];if(e.length===0)return s;var c=new Map,l=e[0].width,u=e[0].height;if(i===`stacked`){var d=new Map;e.forEach((function(e){var t=e.data,n=t.indexValue,r=t.value;RV(c,n,Number(r)),zV(d,n,Number(r))})),d.forEach((function(e,i){var d,f,p,m=c.get(i)||0;r===`vertical`?(d=t(i),f=n(e),p=n(e/2)):(d=t(e),f=n(i),p=t(e/2)),d+=r===`vertical`?l/2:a,f+=r===`vertical`?-a:u/2,s.push({key:`total_`+i,x:d,y:f,value:m,formattedValue:o(m),animationOffset:p})}))}else if(i===`grouped`){var f=new Map,p=new Map;e.forEach((function(e){var t=e.data,n=t.indexValue,r=t.value;RV(c,n,Number(r)),BV(f,n,Number(r)),VV(p,n)})),f.forEach((function(e,i){var d,f,m,h=c.get(i)||0,g=p.get(i);r===`vertical`?(d=t(i),f=n(e),m=n(e/2)):(d=t(e),f=n(i),m=t(e/2)),d+=r===`vertical`?g*l/2:a,f+=r===`vertical`?-a:g*u/2,s.push({key:`total_`+i,x:d,y:f,value:h,formattedValue:o(h),animationOffset:m})}))}return s}(he,ge,_e,C,x,re,le)}),[he,ge,_e,C,x,re,le])}},UV=function(e){var t=e.data,n=e.springConfig,r=e.animate,i=e.layout,a=i===void 0?_V.layout:i,o=Cw();return Px(t,{keys:function(e){return e.key},from:function(e){return{x:a===`vertical`?e.x:e.animationOffset,y:a===`vertical`?e.animationOffset:e.y,labelOpacity:0}},enter:function(e){return{x:e.x,y:e.y,labelOpacity:1}},update:function(e){return{x:e.x,y:e.y,labelOpacity:1}},leave:function(e){return{x:a===`vertical`?e.x:e.animationOffset,y:a===`vertical`?e.animationOffset:e.y,labelOpacity:0}},config:n,immediate:!r,initial:r?void 0:null})((function(e,t){return(0,Z.jsx)(rS.text,{x:e.x,y:e.y,fillOpacity:e.labelOpacity,style:cV({},o.labels.text,{pointerEvents:`none`}),fontWeight:`bold`,fontSize:o.labels.text.fontSize,fontFamily:o.labels.text.fontFamily,textAnchor:a===`vertical`?`middle`:`start`,alignmentBaseline:a===`vertical`?`alphabetic`:`middle`,children:t.formattedValue},t.key)}))},WV=[`isInteractive`,`animate`,`motionConfig`,`theme`,`renderWrapper`],GV=function(e){var t,n=e.data,r=e.indexBy,i=e.keys,a=e.margin,o=e.width,s=e.height,c=e.groupMode,l=e.layout,u=e.valueScale,d=e.indexScale,f=e.padding,p=e.innerPadding,m=e.axisTop,h=e.axisRight,g=e.axisBottom,v=g===void 0?_V.axisBottom:g,y=e.axisLeft,b=y===void 0?_V.axisLeft:y,x=e.enableGridX,S=x===void 0?_V.enableGridX:x,C=e.enableGridY,w=C===void 0?_V.enableGridY:C,T=e.gridXValues,E=e.gridYValues,D=e.layers,O=D===void 0?_V.layers:D,k=e.barComponent,A=k===void 0?_V.barComponent:k,j=e.enableLabel,M=j===void 0?_V.enableLabel:j,N=e.label,P=e.labelSkipWidth,F=P===void 0?_V.labelSkipWidth:P,I=e.labelSkipHeight,L=I===void 0?_V.labelSkipHeight:I,R=e.labelTextColor,z=e.labelPosition,B=z===void 0?_V.labelPosition:z,V=e.labelOffset,H=V===void 0?_V.labelOffset:V,U=e.markers,ee=U===void 0?_V.markers:U,W=e.colorBy,te=e.colors,ne=e.defs,re=ne===void 0?_V.defs:ne,ie=e.fill,ae=ie===void 0?_V.fill:ie,G=e.borderRadius,oe=G===void 0?_V.borderRadius:G,K=e.borderWidth,se=K===void 0?_V.borderWidth:K,ce=e.borderColor,le=e.annotations,ue=le===void 0?_V.annotations:le,de=e.legendLabel,fe=e.tooltipLabel,pe=e.valueFormat,me=e.isInteractive,he=me===void 0?_V.isInteractive:me,ge=e.tooltip,_e=ge===void 0?_V.tooltip:ge,ve=e.onClick,ye=e.onMouseEnter,be=e.onMouseLeave,xe=e.legends,Se=e.role,Ce=Se===void 0?_V.role:Se,we=e.ariaLabel,Te=e.ariaLabelledBy,Ee=e.ariaDescribedBy,De=e.isFocusable,Oe=De===void 0?_V.isFocusable:De,ke=e.barAriaLabel,Ae=e.barAriaLabelledBy,je=e.barAriaDescribedBy,Me=e.barAriaHidden,Ne=e.barAriaDisabled,Pe=e.initialHiddenIds,Fe=e.enableTotals,Ie=Fe===void 0?_V.enableTotals:Fe,Le=e.totalsOffset,Re=Le===void 0?_V.totalsOffset:Le,ze=e.forwardedRef,Be=eF(),Ve=Be.animate,He=Be.config,Ue=VF(o,s,a),We=Ue.outerWidth,Ge=Ue.outerHeight,Ke=Ue.margin,qe=Ue.innerWidth,Je=Ue.innerHe
75ight,Ye=HV({indexBy:r,label:N,tooltipLabel:fe,valueFormat:pe,colors:te,colorBy:W,borderColor:ce,labelTextColor:R,groupMode:c,layout:l,data:n,keys:i,margin:Ke,width:qe,height:Je,padding:f,innerPadding:p,valueScale:u,indexScale:d,enableLabel:M,labelSkipWidth:F,labelSkipHeight:L,legends:xe,legendLabel:de,initialHiddenIds:Pe,totalsOffset:Re}),Xe=Ye.bars,Ze=Ye.barsWithValue,Qe=Ye.xScale,$e=Ye.yScale,et=Ye.getLabel,tt=Ye.getTooltipLabel,nt=Ye.getBorderColor,rt=Ye.getLabelColor,it=Ye.shouldRenderBarLabel,at=Ye.toggleSerie,ot=Ye.legendsWithData,st=Ye.barTotals,ct=Ye.getColor,lt=CV(l,(t=u?.reverse)!=null&&t,B,H),ut=Px(Ze,{keys:function(e){return e.key},from:function(e){return cV({borderColor:nt(e),color:e.color,height:0,labelColor:rt(e),labelOpacity:0},lt(e.width,e.height),{transform:`translate(`+e.x+`, `+(e.y+e.height)+`)`,width:e.width},l===`vertical`?{}:{height:e.height,transform:`translate(`+e.x+`, `+e.y+`)`,width:0})},enter:function(e){return cV({borderColor:nt(e),color:e.color,height:e.height,labelColor:rt(e),labelOpacity:1},lt(e.width,e.height),{transform:`translate(`+e.x+`, `+e.y+`)`,width:e.width})},update:function(e){return cV({borderColor:nt(e),color:e.color,height:e.height,labelColor:rt(e),labelOpacity:1},lt(e.width,e.height),{transform:`translate(`+e.x+`, `+e.y+`)`,width:e.width})},leave:function(e){return cV({borderColor:nt(e),color:e.color,height:0,labelColor:rt(e),labelOpacity:0},lt(e.width,e.height),{labelY:0,transform:`translate(`+e.x+`, `+(e.y+e.height)+`)`,width:e.width},l===`vertical`?{}:cV({},lt(e.width,e.height),{labelX:0,height:e.height,transform:`translate(`+e.x+`, `+e.y+`)`,width:0}))},config:He,immediate:!Ve,initial:Ve?void 0:null}),dt=(0,_.useMemo)((function(){return{borderRadius:oe,borderWidth:se,enableLabel:M,isInteractive:he,labelSkipWidth:F,labelSkipHeight:L,onClick:ve,onMouseEnter:ye,onMouseLeave:be,getTooltipLabel:tt,tooltip:_e,isFocusable:Oe,ariaLabel:ke,ariaLabelledBy:Ae,ariaDescribedBy:je,ariaHidden:Me,ariaDisabled:Ne}}),[oe,se,M,tt,he,L,F,ve,ye,be,_e,Oe,ke,Ae,je,Me,Ne]),ft=QF(re,Xe,ae,{dataKey:`data`,targetKey:`data.fill`}),pt={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null,totals:null};O.includes(`annotations`)&&(pt.annotations=(0,Z.jsx)(dV,{bars:Xe,annotations:ue},`annotations`)),O.includes(`axes`)&&(pt.axes=(0,Z.jsx)(aB,{xScale:Qe,yScale:$e,width:qe,height:Je,top:m,right:h,bottom:v,left:b},`axes`)),O.includes(`bars`)&&(pt.bars=(0,Z.jsx)(_.Fragment,{children:ut((function(e,t){return(0,_.createElement)(A,cV({},dt,{bar:t,style:e,shouldRenderLabel:it(t),label:et(t.data)}))}))},`bars`)),O.includes(`grid`)&&(pt.grid=(0,Z.jsx)(cB,{width:qe,height:Je,xScale:S?Qe:null,yScale:w?$e:null,xValues:T,yValues:E},`grid`)),O.includes(`legends`)&&(pt.legends=(0,Z.jsx)(fV,{width:qe,height:Je,legends:ot,toggleSerie:at},`legends`)),O.includes(`markers`)&&(pt.markers=(0,Z.jsx)(PF,{markers:ee,width:qe,height:Je,xScale:Qe,yScale:$e},`markers`)),O.includes(`totals`)&&Ie&&(pt.totals=(0,Z.jsx)(UV,{data:st,springConfig:He,animate:Ve,layout:l},`totals`));var mt=cV({},dt,{margin:Ke,width:o,height:s,innerWidth:qe,innerHeight:Je,bars:Xe,legendData:ot,enableLabel:M,xScale:Qe,yScale:$e,tooltip:_e,getTooltipLabel:tt,onClick:ve,onMouseEnter:ye,onMouseLeave:be,getColor:ct});return(0,Z.jsx)(AF,{width:We,height:Ge,margin:Ke,defs:ft,role:Ce,ariaLabel:we,ariaLabelledBy:Te,ariaDescribedBy:Ee,isFocusable:Oe,ref:ze,children:O.map((function(e,t){return typeof e==`function`?(0,Z.jsx)(_.Fragment,{children:(0,_.createElement)(e,mt)},t):pt?.[e]??null}))})},KV=(0,_.forwardRef)((function(e,t){var n=e.isInteractive,r=n===void 0?_V.isInteractive:n,i=e.animate,a=i===void 0?_V.animate:i,o=e.motionConfig,s=o===void 0?_V.motionConfig:o,c=e.theme,l=e.renderWrapper,u=lV(e,WV);return(0,Z.jsx)(rF,{animate:a,isInteractive:r,motionConfig:s,renderWrapper:l,theme:c,children:(0,Z.jsx)(GV,cV({},u,{isInteractive:r,forwardedRef:t}))})})),qV=[`isInteractive`,`renderWrapper`,`theme`],JV=function(e,t,n,r){return e.find((function(e){return qF(e.x+t.left,e.y+t.top,e.width,e.height,n,r)}))},YV=function(e){var t,n=e.data,r=e.indexBy,i=e.keys,a=e.margin,o=e.width,s=e.he
75ight,c=e.groupMode,l=e.layout,u=e.valueScale,d=e.indexScale,f=e.padding,p=e.innerPadding,m=e.axisTop,h=e.axisRight,g=e.axisBottom,v=g===void 0?vV.axisBottom:g,y=e.axisLeft,b=y===void 0?vV.axisLeft:y,x=e.enableGridX,S=x===void 0?vV.enableGridX:x,C=e.enableGridY,w=C===void 0?vV.enableGridY:C,T=e.gridXValues,E=e.gridYValues,D=e.labelPosition,O=D===void 0?vV.labelPosition:D,k=e.labelOffset,A=k===void 0?vV.labelOffset:k,j=e.layers,M=j===void 0?vV.layers:j,N=e.renderBar,P=N===void 0?vV.renderBar:N,F=e.enableLabel,I=F===void 0?vV.enableLabel:F,L=e.label,R=e.labelSkipWidth,z=R===void 0?vV.labelSkipWidth:R,B=e.labelSkipHeight,V=B===void 0?vV.labelSkipHeight:B,H=e.labelTextColor,U=e.colorBy,ee=e.colors,W=e.borderRadius,te=W===void 0?vV.borderRadius:W,ne=e.borderWidth,re=ne===void 0?vV.borderWidth:ne,ie=e.borderColor,ae=e.annotations,G=ae===void 0?vV.annotations:ae,oe=e.legendLabel,K=e.tooltipLabel,se=e.valueFormat,ce=e.isInteractive,le=ce===void 0?vV.isInteractive:ce,ue=e.tooltip,de=ue===void 0?vV.tooltip:ue,fe=e.onClick,pe=e.onMouseEnter,me=e.onMouseLeave,he=e.legends,ge=e.pixelRatio,_e=ge===void 0?vV.pixelRatio:ge,ve=e.role,ye=e.forwardedRef,be=e.enableTotals,xe=be===void 0?vV.enableTotals:be,Se=e.totalsOffset,Ce=Se===void 0?vV.totalsOffset:Se,we=(0,_.useRef)(null),Te=Cw(),Ee=VF(o,s,a),De=Ee.margin,Oe=Ee.innerWidth,ke=Ee.innerHeight,Ae=Ee.outerWidth,je=Ee.outerHeight,Me=HV({indexBy:r,label:L,tooltipLabel:K,valueFormat:se,colors:ee,colorBy:U,borderColor:ie,labelTextColor:H,groupMode:c,layout:l,data:n,keys:i,margin:De,width:Oe,height:ke,padding:f,innerPadding:p,valueScale:u,indexScale:d,enableLabel:I,labelSkipWidth:z,labelSkipHeight:V,legends:he,legendLabel:oe,totalsOffset:Ce}),Ne=Me.bars,Pe=Me.barsWithValue,Fe=Me.xScale,Ie=Me.yScale,Le=Me.getLabel,Re=Me.getTooltipLabel,ze=Me.getBorderColor,Be=Me.getLabelColor,Ve=Me.shouldRenderBarLabel,He=Me.legendsWithData,Ue=Me.barTotals,We=Me.getColor,Ge=hI(),Ke=Ge.showTooltipFromEvent,qe=Ge.hideTooltip,Je=ZB({annotations:XB({data:Ne,annotations:G,getPosition:function(e){return{x:e.x,y:e.y}},getDimensions:function(e){var t=e.width,n=e.height;return{width:t,height:n,size:Math.max(t,n)}}})}),Ye=(0,_.useMemo)((function(){return{borderRadius:te,borderWidth:re,isInteractive:le,isFocusable:!1,labelSkipWidth:z,labelSkipHeight:V,margin:De,width:o,height:s,innerWidth:Oe,innerHeight:ke,bars:Ne,legendData:He,enableLabel:I,xScale:Fe,yScale:Ie,tooltip:de,getTooltipLabel:Re,onClick:fe,onMouseEnter:pe,onMouseLeave:me,getColor:We}}),[te,re,le,z,V,De,o,s,Oe,ke,Ne,He,I,Fe,Ie,de,Re,fe,pe,me,We]),Xe=WF(se),Ze=CV(l,(t=u?.reverse)!=null&&t,O,A);(0,_.useEffect)((function(){if(we.current){we.current.width=Ae*_e,we.current.height=je*_e;var e=we.current.getContext(`2d`);e.scale(_e,_e),e.fillStyle=Te.background,e.fillRect(0,0,Ae,je),e.translate(De.left,De.top),M.forEach((function(t){t===`grid`?typeof Te.grid.line.strokeWidth==`number`&&Te.grid.line.strokeWidth>0&&(e.lineWidth=Te.grid.line.strokeWidth,e.strokeStyle=Te.grid.line.stroke,S&&dB(e,{width:Oe,height:ke,scale:Fe,axis:`x`,values:T}),w&&dB(e,{width:Oe,height:ke,scale:Ie,axis:`y`,values:E})):t===`axes`?uB(e,{xScale:Fe,yScale:Ie,width:Oe,height:ke,top:m,right:h,bottom:v,left:b,theme:Te}):t===`bars`?(bI(e,Te.text),Pe.forEach((function(t){P(e,cV({bar:t,borderColor:ze(t),borderRadius:te,borderWidth:re,label:Le(t.data),shouldRenderLabel:Ve(t),labelStyle:cV({},Te.labels.text,{fill:Be(t)})},Ze(t.width,t.height)))}))):t===`legends`?He.forEach((function(t){var n=t[0],r=t[1];TL(e,cV({},n,{data:r,containerWidth:Oe,containerHeight:ke,theme:Te}))})):t===`annotations`?oV(e,{annotations:Je,theme:Te}):t===`totals`&&xe?function(e,t,n,r){r===void 0&&(r=vV.layout),bI(e,n.labels.text),e.textBaseline=r===`vertical`?`alphabetic`:`middle`,e.textAlign=r===`vertical`?`center`:`start`,t.forEach((function(t){xI(e,n.labels.text,t.formattedValue,t.x,t.y)}))}(e,Ue,Te,l):typeof t==`function`&&t(e,Ye)})),e.save()}}),[v,b,h,m,Pe,te,re,Je,S,w,ze,Le,Be,T,E,c,s,ke,Oe,Ye,M,l,He,De.left,De.top,je,Ae,_e,P,Fe,Ie,Ve,Te,o,Ue,xe,Xe,Ze]);var Qe=(0,_.useCallback)((function(e){if(Ne&&we.current){var t=JF(we.current,e),n=t[0],r=t[1],i=JV(Ne,De,n,r);i===void 0?qe():(Ke((0,_.createElement)(de,cV({},i.data,{color:i.color,label:i.label,value:Number(i.data.value)})),e),e.type===`mouseenter`&&pe?.(i.data,e))}}),[qe,De,pe,Ne,Ke,de]),$e=(0,_.useCallback)((function(e){if(Ne&&we.current){qe();var t=JF(we.current,e),n=t[0],r=t[1],i=JV(Ne,De,n,r);i&&me?.(i.data,e)}}),[qe,De,me,Ne]),et=(0,_.useCallback)((function(e){if(Ne&&we.current){var t=JF(we.current,e),n=t[0],r=t[1],i=JV(Ne,De,n,r);i!==void 0&&fe?.(cV({},i.data,{color:i.color}),e)}}),[De,fe,Ne]);return(0,Z.jsx)(`canvas`,{ref:$F(we,ye),width:Ae*_e,height:je*_e,style:{width:Ae,height:je,cursor:le?`auto`:`normal`},onMouseEnter:le?Qe:void 0,onMouseMove:le?Qe:void 0,onMouseLeave:le?$e:void 0,onClick:le?et:void 0,role:ve})},XV=(0,_.forwardRef)((function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,a=lV(e,qV);return(0,Z.jsx)(rF,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:(0,Z.jsx)(YV,cV({},a,{isInteractive:n,forwardedRef:t}))})})),ZV=[`defaultWidth`,`defaultHeight`,`onResize`,`debounceResize`];(0,_.forwardRef)((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=lV(e,ZV);return(0,Z.jsx)(oF,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(e){var n=e.width,r=e.height;return(0,Z.jsx)(KV,cV({},o,{width:n,height:r,ref:t}))}})}));var QV=[`defaultWidth`,`defaultHeight`,`onResize`,`debounceResize`];(0,_.forwardRef)((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=lV(e,QV);return(0,Z.jsx)(oF,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(e){var n=e.width,r=e.height;return(0,Z.jsx)(XV,cV({},o,{width:n,height:r,ref:t}))}})}));function $V(){return $V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$V.apply(null,arguments)}function eH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var tH=function(e){var t=e.data,n=e.item,r=e.colorByKey,i=e.fillByKey,a=e.radiusScale,o=e.rotation,s=e.angleStep,c=e.curveFactory,l=e.borderWidth,u=e.borderColor,d=e.fillOpacity,f=e.blendMode,p=GI(u,Cw()),m=(0,_.useMemo)((function(){return sD().radius((function(e){return a(e)})).angle((function(e,t){return o+t*s})).curve(c)}),[a,o,s,c]),h=eF(),g=h.animate,v=h.config,y=FF(m(t.map((function(e){return e[n]})))),b=Nx({fill:r[n],stroke:p({key:n,color:r[n]}),config:v,immediate:!g}),x=i[n]??b.fill;return(0,Z.jsx)(rS.path,{d:y,fill:x,fillOpacity:d,stroke:b.stroke,strokeWidth:l,style:{mixBlendMode:f}},n)}
75,nH=function(e){var t=e.radius,n=e.angles,r=e.indices,i=e.label,a=e.labelOffset,o=eF(),s=o.animate,c=o.config,l=r.map((function(e,r){var i,o,s=yF(n[r],t+a),c=(i=n[r],(o=_F(i)+90)<=10||o>=350||o>=170&&o<=190?`middle`:o>180?`end`:`start`);return $V({id:e,angle:_F(n[r]),anchor:c},s)}));return(0,Z.jsx)(Z.Fragment,{children:Mx(l.length,l.map((function(e){return{transform:`translate(`+e.x+`, `+e.y+`)`,config:c,immediate:!s}}))).map((function(e,t){var n=l[t];return(0,_.createElement)(i,{key:n.id,id:n.id,anchor:n.anchor,angle:n.angle,x:n.x,y:n.y,animated:e})}))})},rH=[`shape`],iH=(0,_.memo)((function(e){var t=e.radius,n=Cw(),r=eF(),i=r.animate,a=r.config,o=Nx({radius:t,config:a,immediate:!i});return(0,Z.jsx)(rS.circle,$V({fill:`none`,r:Vx(o.radius,(function(e){return Math.max(e,0)}))},n.grid.line))})),aH=function(e){var t=e.radius,n=e.rotation,r=e.angleStep,i=e.dataLength,a=Cw(),o=FF((0,_.useMemo)((function(){return sD().angle((function(e){return n+e*r})).radius(t).curve(ND)}),[n,r,t])(Array.from({length:i},(function(e,t){return t}))));return(0,Z.jsx)(rS.path,$V({fill:`none`,d:o},a.grid.line))},oH=function(e){var t=e.shape,n=eH(e,rH);return t===`circular`?(0,Z.jsx)(iH,{radius:n.radius}):(0,Z.jsx)(aH,$V({},n))},sH=function(e){var t=e.indices,n=e.levels,r=e.shape,i=e.radius,a=e.rotation,o=e.angleStep,s=e.label,c=e.labelOffset,l=Cw(),u=(0,_.useMemo)((function(){return{radii:Array.from({length:n}).map((function(e,t){return i/n*(t+1)})).reverse(),angles:Array.from({length:t.length}).map((function(e,t){return a+t*o-Math.PI/2}))}}),[t,n,i,a,o]),d=u.radii,f=u.angles;return(0,Z.jsxs)(Z.Fragment,{children:[f.map((function(e,t){var n=yF(e,i);return(0,Z.jsx)(`line`,$V({x1:0,y1:0,x2:n.x,y2:n.y},l.grid.line),`axis.`+t)})),d.map((function(e,n){return(0,Z.jsx)(oH,{shape:r,radius:e,rotation:a,angleStep:o,dataLength:t.length},`level.`+n)})),(0,Z.jsx)(nH,{radius:i,angles:f,indices:t,labelOffset:c,label:s})]})},cH=function(e){var t=e.datum,n=e.keys,r=e.index,i=e.formatValue,a=e.colorByKey,o=e.radius,s=e.startAngle,c=e.endAngle,l=e.arcGenerator,u=e.tooltip,d=e.onClick,f=(0,_.useState)(!1),p=f[0],m=f[1],h=Cw(),g=hI(),v=g.showTooltipFromEvent,y=g.hideTooltip,b=(0,_.useCallback)((function(e){return d?.(t,e)}),[d,t]),x=(0,_.useMemo)((function(){var e=n.map((function(e){return{color:a[e],id:e,value:t[e],formattedValue:i(t[e],e)}}));return e.sort((function(e,t){return e.value-t.value})),e.reverse(),e}),[t,n,i,a]),S=(0,_.useCallback)((function(e){m(!0),v((0,_.createElement)(u,{index:r,data:x}),e)}),[v,u,r,x]),C=(0,_.useCallback)((function(){m(!1),y()}),[y,m]),w=(0,_.useMemo)((function(){var e=yF(s+.5*(c-s)-Math.PI/2,o);return{path:l({startAngle:s,endAngle:c}),tipX:e.x,tipY:e.y}}),[s,c,o,l]),T=w.path,E=w.tipX,D=w.tipY;return(0,Z.jsxs)(Z.Fragment,{children:[p&&(0,Z.jsx)(`line`,{x1:0,y1:0,x2:E,y2:D,style:h.crosshair.line}),(0,Z.jsx)(`path`,{d:T,fill:`#F00`,fillOpacity:0,onMouseEnter:S,onMouseMove:S,onMouseLeave:C,onClick:b})]})},lH=function(e){var t=e.data,n=e.keys,r=e.getIndex,i=e.formatValue,a=e.colorByKey,o=e.radius,s=e.rotation,c=e.angleStep,l=e.tooltip,u=e.onClick,d=XE().outerRadius(o).innerRadius(0),f=s-.5*c;return(0,Z.jsx)(Z.Fragment,{children:t.map((function(e){var t=r(e),s=f;return f+=c,(0,Z.jsx)(cH,{datum:e,keys:n,index:t,formatValue:i,colorByKey:a,startAngle:s,endAngle:s+c,radius:o,arcGenerator:d,tooltip:l,onClick:u},t)}))})},uH=function(e){var t=e.data,n=e.keys,r=e.getIndex,i=e.colorByKey,a=e.radiusScale,o=e.rotation,s=e.angleStep,c=e.symbol,l=e.size,u=l===void 0?6:l,d=e.color,f=d===void 0?{from:`color`}:d,p=e.borderWidth,m=p===void 0?0:p,h=e.borderColor,g=h===void 0?{from:`color`}:h,v=e.enableLabel,y=v!==void 0&&v,b=e.label,x=b===void 0?`value`:b,S=e.formatValue,C=e.labelYOffset,w=Cw(),T=WI(f,w),E=WI(g,w),D=KF(x);return(0,Z.jsx)(Z.Fragment,{children:(0,_.useMemo)((function(){return t.reduce((function(e,t,c){var l=r(t);return n.forEach((function(n){var r=t[n],u={index:l,key:n,value:r,formattedValue:S(r,n),color:i[n]};e.push({key:n+`.`+l,label:y?D(u):void 0,style:$V({fill:T(u),stroke:E(u)},yF(o+s*c-Math.PI/2,a(t[n]))),data:u})})),e}),[])}),[t,n,r,i,y,D,S,T,E,o,s,a]).map((function(e){return(0,Z.jsx)(MF,{x:e.style.x,y:e.style.y,symbol:c,size:u,color:e.style.fill,borderWidth:m,borderColor:e.style.stroke,label:e.label,labelYOffset:C,datum:e.data},e.key)}))})}
75,dH={layers:[`grid`,`layers`,`slices`,`dots`,`legends`],maxValue:`auto`,rotation:0,curve:`linearClosed`,borderWidth:2,borderColor:{from:`color`},gridLevels:5,gridShape:`circular`,gridLabelOffset:16,gridLabel:function(e){var t=e.id,n=e.anchor,r=e.animated,i=Cw();return(0,Z.jsx)(rS.g,{transform:r.transform,children:(0,Z.jsx)(EI,{style:i.axis.ticks.text,dominantBaseline:`central`,textAnchor:n,children:t})})},enableDots:!0,dotSize:6,dotColor:{from:`color`},dotBorderWidth:0,dotBorderColor:{from:`color`},enableDotLabel:!1,dotLabel:`formattedValue`,dotLabelYOffset:-12,colors:{scheme:`nivo`},fillOpacity:.25,blendMode:`normal`,isInteractive:!0,sliceTooltip:function(e){var t=e.index,n=e.data,r=(0,_.useMemo)((function(){return n.map((function(e){return[(0,Z.jsx)(aI,{color:e.color},e.id),e.id,e.formattedValue]}))}),[n]);return(0,Z.jsx)(cI,{title:(0,Z.jsx)(`strong`,{children:t}),rows:r})},legends:[],role:`img`,animate:!0,motionConfig:`gentle`,defs:[],fill:[]},fH=[`data`],pH=[`isInteractive`,`animate`,`motionConfig`,`theme`,`renderWrapper`],mH=function(e){var t=e.data,n=e.keys,r=e.indexBy,i=e.layers,a=i===void 0?dH.layers:i,o=e.rotation,s=o===void 0?dH.rotation:o,c=e.maxValue,l=c===void 0?dH.maxValue:c,u=e.valueFormat,d=e.curve,f=d===void 0?dH.curve:d,p=e.margin,m=e.width,h=e.height,g=e.borderWidth,v=g===void 0?dH.borderWidth:g,y=e.borderColor,b=y===void 0?dH.borderColor:y,x=e.gridLevels,S=x===void 0?dH.gridLevels:x,C=e.gridShape,w=C===void 0?dH.gridShape:C,T=e.gridLabel,E=T===void 0?dH.gridLabel:T,D=e.gridLabelOffset,O=D===void 0?dH.gridLabelOffset:D,k=e.enableDots,A=k===void 0?dH.enableDots:k,j=e.dotSymbol,M=e.dotSize,N=M===void 0?dH.dotSize:M,P=e.dotColor,F=P===void 0?dH.dotColor:P,I=e.dotBorderWidth,L=I===void 0?dH.dotBorderWidth:I,R=e.dotBorderColor,z=R===void 0?dH.dotBorderColor:R,B=e.enableDotLabel,V=B===void 0?dH.enableDotLabel:B,H=e.dotLabel,U=H===void 0?dH.dotLabel:H,ee=e.dotLabelYOffset,W=ee===void 0?dH.dotLabelYOffset:ee,te=e.colors,ne=te===void 0?dH.colors:te,re=e.fillOpacity,ie=re===void 0?dH.fillOpacity:re,ae=e.blendMode,G=ae===void 0?dH.blendMode:ae,oe=e.isInteractive,K=oe===void 0?dH.isInteractive:oe,se=e.sliceTooltip,ce=se===void 0?dH.sliceTooltip:se,le=e.legends,ue=le===void 0?dH.legends:le,de=e.role,fe=e.ariaLabel,pe=e.ariaLabelledBy,me=e.ariaDescribedBy,he=e.defs,ge=he===void 0?dH.defs:he,_e=e.fill,ve=_e===void 0?dH.fill:_e,ye=e.onClick,be=e.forwardedRef,xe=VF(m,h,p),Se=xe.margin,Ce=xe.innerWidth,we=xe.innerHeight,Te=xe.outerWidth,Ee=xe.outerHeight,De=function(e){var t=e.data,n=e.keys,r=e.indexBy,i=e.rotationDegrees,a=e.maxValue,o=e.valueFormat,s=e.curve,c=e.width,l=e.height,u=e.colors,d=u===void 0?dH.colors:u,f=e.legends,p=e.defs,m=e.fill,h=KF(r),g=(0,_.useMemo)((function(){return t.map(h)}),[t,h]),v=WF(o),y=gF(i),b=qI(d,`key`),x=(0,_.useMemo)((function(){return n.reduce((function(e,t,n){return e[t]=b({key:t,index:n}),e}),{})}),[n,b]),S=(0,_.useMemo)((function(){var e=n.map((function(e){return{key:e,color:x[e],data:t,fill:null}}));return{boundDefs:QF(p,e,m),fillByKey:e.reduce((function(e,t){var n=t.key;return e[n]=t.fill,e}),{})}}),[n,t,p,m,x]),C=S.boundDefs,w=S.fillByKey,T=(0,_.useMemo)((function(){var e=t.reduce((function(e,t){return[].concat(e,n.map((function(e){return t[e]})))}),[]),r=a===`auto`?Math.max.apply(Math,e):a,i=Math.min(c,l)/2;return{radius:i,radiusScale:fk().range([0,i]).domain([0,r]),centerX:c/2,centerY:l/2,angleStep:2*Math.PI/t.length}}),[n,t,a,c,l]),E=T.radius,D=T.radiusScale,O=T.centerX,k=T.centerY,A=T.angleStep,j=zF(s),M=(0,_.useMemo)((function(){return{data:t,keys:n,indices:g,colorByKey:x,centerX:O,centerY:k,radiusScale:D,angleStep:A}}),[t,n,g,x,O,k,D,A]),N=(0,_.useMemo)((function(){return n.map((function(e){return{id:e,label:e,color:x[e]}}))}),[n,x]);return{getIndex:h,indices:g,formatValue:v,colorByKey:x,fillByKey:w,boundDefs:C,rotation:y,radius:E,radiusScale:D,centerX:O,centerY:k,angleStep:A,curveFactory:j,legendData:N,boundLegends:(0,_.useMemo)((function(){return f.map((function(e){var t=e.data,n=eH(e,fH),r=t?.map((function(e){return $V({},N.find((function(t){return t.id===e.id}))||{},e)}));return $V({},n,{data:r||N})}))}),[f,N]),customLayerProps:M}}({data:t,keys:n,indexBy:r,rotationDegrees:s,maxValue:l,valueFormat:u,curve:f,width:Ce,height:we,colors:ne,legends:ue,defs:ge,fill:ve}),Oe=De.getIndex,ke=De.indices,Ae=De.formatValue,je=De.colorByKey,Me=De.fillByKey,Ne=De.boundDefs,Pe=De.rotation,Fe=De.radiu
75s,Ie=De.radiusScale,Le=De.centerX,Re=De.centerY,ze=De.angleStep,Be=De.curveFactory,Ve=De.boundLegends,He=De.customLayerProps,Ue={grid:null,layers:null,slices:null,dots:null,legends:null};return a.includes(`grid`)&&(Ue.grid=(0,Z.jsx)(`g`,{transform:`translate(`+Le+`, `+Re+`)`,children:(0,Z.jsx)(sH,{levels:S,shape:w,radius:Fe,rotation:Pe,angleStep:ze,indices:ke,label:E,labelOffset:O})},`grid`)),a.includes(`layers`)&&(Ue.layers=(0,Z.jsx)(`g`,{transform:`translate(`+Le+`, `+Re+`)`,children:n.map((function(e){return(0,Z.jsx)(tH,{data:t,item:e,colorByKey:je,fillByKey:Me,radiusScale:Ie,rotation:Pe,angleStep:ze,curveFactory:Be,borderWidth:v,borderColor:b,fillOpacity:ie,blendMode:G},e)}))},`layers`)),a.includes(`slices`)&&K&&(Ue.slices=(0,Z.jsx)(`g`,{transform:`translate(`+Le+`, `+Re+`)`,children:(0,Z.jsx)(lH,{data:t,keys:n,getIndex:Oe,formatValue:Ae,colorByKey:je,radius:Fe,rotation:Pe,angleStep:ze,tooltip:ce,onClick:ye})},`slices`)),a.includes(`dots`)&&A&&(Ue.dots=(0,Z.jsx)(`g`,{transform:`translate(`+Le+`, `+Re+`)`,children:(0,Z.jsx)(uH,{data:t,keys:n,getIndex:Oe,radiusScale:Ie,rotation:Pe,angleStep:ze,symbol:j,size:N,colorByKey:je,color:F,borderWidth:L,borderColor:z,enableLabel:V,label:U,formatValue:Ae,labelYOffset:W})},`dots`)),a.includes(`legends`)&&(Ue.legends=(0,Z.jsx)(_.Fragment,{children:Ve.map((function(e,t){return(0,Z.jsx)(CL,$V({},e,{containerWidth:m,containerHeight:h}),t)}))},`legends`)),(0,Z.jsx)(AF,{defs:Ne,width:Te,height:Ee,margin:Se,role:de,ariaLabel:fe,ariaLabelledBy:pe,ariaDescribedBy:me,ref:be,children:a.map((function(e,t){return typeof e==`function`?(0,Z.jsx)(_.Fragment,{children:(0,_.createElement)(e,He)},t):Ue?.[e]??null}))})},hH=(0,_.forwardRef)((function(e,t){var n=e.isInteractive,r=n===void 0?dH.isInteractive:n,i=e.animate,a=i===void 0?dH.animate:i,o=e.motionConfig,s=o===void 0?dH.motionConfig:o,c=e.theme,l=e.renderWrapper,u=eH(e,pH);return(0,Z.jsx)(rF,{animate:a,isInteractive:r,motionConfig:s,renderWrapper:l,theme:c,children:(0,Z.jsx)(mH,$V({isInteractive:r},u,{forwardedRef:t}))})})),gH=[`defaultWidth`,`defaultHeight`,`onResize`,`debounceResize`],_H=(0,_.forwardRef)((function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=eH(e,gH);return(0,Z.jsx)(oF,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(e){var n=e.width,r=e.height;return(0,Z.jsx)(hH,$V({},o,{width:n,height:r,ref:t}))}})}));function vH(e){return e<=0?{top:48,right:56,bottom:32,left:56}:e<320?{top:28,right:8,bottom:20,left:8}:e<400?{top:32,right:12,bottom:24,left:12}:e<520?{top:40,right:24,bottom:28,left:24}:e<680?{top:48,right:48,bottom:34,left:48}:{top:60,right:80,bottom:40,left:80}}function yH(e){return e<360?12:e<520?18:24}var bH=(e,t)=>({background:e,textColor:t,fontSize:11,axis:{domain:{line:{stroke:t,strokeWidth:1,opacity:1}},ticks:{text:{fill:t,fontSize:10,opacity:1}},legend:{text:{fill:`transparent`,fontSize:0,fontWeight:`bold`}}},grid:{line:{stroke:t,strokeWidth:1,opacity:1,strokeDasharray:`1 3`}},dots:{text:{fill:t,fontSize:10}},tooltip:{container:{background:e,color:t,border:`1px solid ${e}`,fontSize:12}},legends:{text:{fill:`none`}}}),xH=({colorPair:e,borderRadius:t=0})=>{let[n,r]=e||[`#000000`,`#ffffff`],i=(0,_.useRef)(null),[a,o]=(0,_.useState)(0);(0,_.useLayoutEffect)(()=>{let e=i.current;if(!e||typeof ResizeObserver>`u`)return;let t=()=>o(e.getBoundingClientRect().width);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]);let s=(0,_.useMemo)(()=>vH(a),[a]),c=(0,_.useMemo)(()=>yH(a),[a]),l=(0,_.useMemo)(()=>{try{let e=new q(n).to(`srgb`),t=new q(r).to(`srgb`),i={r:Math.round(e.coords[0]*255),g:Math.round(e.coords[1]*255),b:Math.round(e.coords[2]*255)},a={r:Math.round(t.coords[0]*255),g:Math.round(t.coords[1]*255),b:Math.round(t.coords[2]*255)};return[{channel:`R`,FG:i.r,BG:a.r},{channel:`G`,FG:i.g,BG:a.g},{channel:`B`,FG:i.b,BG:a.b}]}catch(e){return console.error(`Error processing colors for RadarChart:`,e),[{channel:`R`,FG:0,BG:255},{channel:`G`,FG:0,BG:255},{channel:`B`,FG:0,BG:255}]}},[n,r]),u=(0,_.useMemo)(()=>bH(n,r),[n,r]),d=(0,_.useMemo)(()=>[{id:`radarFgPattern`,type:`patternLines`,background:`transparent`,color:n,lineWidth:2,spacing:6,rotation:45},{id:`radarBgPattern`,type:`patternLines`,background:`transparent`,color:n,lineWidth:2,spacing:6,rotation:-45}],[n]),f=(0,_.useMemo)(()=>[{match:{id:`FG`},id:`radarFgPattern`},{match:{id:`BG`},id:`radarBgPattern`}],[]);return(0,Z.jsx)(`div`,{ref:i,className:`theme theme-preview-radius w-100 h-100 overflow-hidden px9 mw-100 ba`,style:{minWidth:0},children:(0,Z.jsx)(_H,{data:l,keys:[`FG`,`BG`],indexBy:`channel`,maxValue:255,margin:s,theme:u,curve:`linearClosed`,borderWidth:2,borderColor:r,gridLevels:5,gridShape:`circular`,gridLabelOffset:c,enableDots:!1,colors:[n,r],fillOpacity:.1,blendMode:`normal`,animate:!1,defs:d,fill:f,legends:[]})})},SH=_.memo(({label:e,id:t,value:n,actualColor:r,onChange:i,onBlur:a,onLockToggle:o,isLocked:s,isValidInput:c=!0})=>(0,Z.jsxs)(`div`,{className:`w-100`,children:[e&&(0,Z.jsx)(`label`,{htmlFor:t,className:`db mb3 f2 fw6`,children:e}),(0,Z.jsxs)(`div`,{className:`flex w-100 items-center relative`,children:[(0,Z.jsx)(`input`,{type:`text`,id:t,value:n,onChange:i,onBlur:a,className:`component-editable-input w-100 ${c?``:`component-editable-input-invalid`}`.trim(),spellCheck:`false`,"data-actual-color":r}),(0,Z.jsx)(`button`,{onClick:o,className:`button-reset component-editable-input-button absolute right-0 flex items-center`,t
75itle:s?`Unlock color`:`Lock color`,children:s?(0,Z.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`16`,height:`16`,stroke:`currentColor`,strokeWidth:`2`,fill:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`css-i6dzq1`,children:(0,Z.jsx)(`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4A2 2 0 0 0 21 16z`})}):(0,Z.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`16`,height:`16`,stroke:`currentColor`,strokeWidth:`2`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`css-i6dzq1`,children:(0,Z.jsx)(`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`})})})]})]})),CH=({label:e,value:t,unit:n=``,style:r={}})=>(0,Z.jsxs)(`dl`,{className:`m0`,style:r,children:[(0,Z.jsx)(`dt`,{className:`mb1 f1 fw6 tracked ttu`,children:e}),(0,Z.jsxs)(`dd`,{className:`m0 f7 fw7`,children:[t,n&&(0,Z.jsxs)(Z.Fragment,{children:[` `,(0,Z.jsx)(`span`,{className:`f3`,children:n})]})]})]}),wH=({colorPair:e,borderRadius:t=`0px`,mode:n=0,width:r=128,height:i=128})=>{let a=(0,_.useRef)(null),o=(0,_.useRef)(null),[s,c]=(0,_.useState)(!1),l=(0,_.useRef)(null);(0,_.useEffect)(()=>{let e=window.matchMedia(`(prefers-reduced-motion: reduce)`);c(e.matches);let t=e=>c(e.matches);return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]),(0,_.useEffect)(()=>{try{l.current=new q(e[1]).to(`srgb`).coords.map(e=>Math.round(e*255))}catch{l.current=[255,255,255]}},[e]),(0,_.useEffect)(()=>{let t=a.current;if(!t)return;let c=t.getContext(`2d`,{willReadFrequently:!0});try{l.current=new q(e[1]).to(`srgb`).coords.map(e=>Math.round(e*255))}catch{l.current=[255,255,255]}let u=[[0,32,8,40,2,34,10,42],[48,16,56,24,50,18,58,26],[12,44,4,36,14,46,6,38],[60,28,52,20,62,30,54,22],[3,35,11,43,1,33,9,41],[51,19,59,27,49,17,57,25],[15,47,7,39,13,45,5,37],[63,31,55,23,61,29,53,21]],d=(e,t,n)=>{let r=Math.cos(n),i=Math.sin(n);return[e*r-t*i,e*i+t*r]},f=(e,t,n)=>{let r=Math.cos(n),i=Math.sin(n);return[e*r+t*i,-e*i+t*r]},p=(e,t,n)=>{let r=Math.cos(n),i=Math.sin(n);return[e*r-t*i,e*i+t*r]},m=(e,t,n,r=300)=>{let i=r/(r+n);return[e*i,t*i]},h=[(e,t,n)=>(Math.sin(e*.01+n)*Math.cos(t*.01+n*.7)+1)/2,(e,t,n)=>{let r=Math.sin(e*.02+n)*Math.cos(t*.015+n*.5),i=Math.sin(e*.03-n*.7)*Math.cos(t*.025-n*.3),a=Math.sin(e*.01+t*.01+n*.4)*.5;return((r+i+a)/3+1)/2},(e,t,n)=>{let r=e+Math.sin(t*.02+n)*20,i=t+Math.cos(e*.02+n*.8)*20;return(Math.sin(r*.03)*Math.cos(i*.03)+1)/2},(e,t,n)=>{let r=0,i=1,a=.01;for(let o=0;o<4;o++)r+=Math.sin(e*a+n*(o+1)*.3)*Math.cos(t*a+n*(o+1)*.2)*i,a*=2,i*=.5;return(r+1)/2},(e,t,n)=>{let r=Math.sin(e*.0015+Math.cos(n*.15)*5),i=Math.cos(t*.015+Math.sin(n*.165)*20),a=Math.sin((e+t)*.01+n*.4);return((r*i+a)/2+2.5)/3.14159},(e,t,n)=>{let a=e-r*.3,o=t-i*.3,s=e-r*.7,c=t-i*.7,l=Math.sqrt(a*a+o*o),u=Math.sqrt(s*s+c*c);return((Math.sin(l*.05-n*2)+Math.sin(u*.05+n*1.5))/2+1)/2},(e,t,n)=>{let a=r/2,o=i/2,s=(e-a)/50,c=(t-o)/50,l=n*.5,u=n*.7,h=n*.3,g=1/0;for(let e=-1;e<=1;e+=2)for(let t=-1;t<=1;t+=2)for(let n=-1;n<=1;n+=2){let r=e*3,i=t*3,a=n*3;[i,a]=d(i,a,l),[r,a]=f(r,a,u),[r,i]=p(r,i,h);let[o,_]=m(r,i,a),v=Math.sqrt((s-o)*(s-o)+(c-_)*(c-_));g=Math.min(g,v)}for(let[[e,t,n],[r,i,a]]of[[[-1,-1,-1],[1,-1,-1]],[[1,-1,-1],[1,1,-1]],[[1,1,-1],[-1,1,-1]],[[-1,1,-1],[-1,-1,-1]],[[-1,-1,1],[1,-1,1]],[[1,-1,1],[1,1,1]],[[1,1,1],[-1,1,1]],[[-1,1,1],[-1,-1,1]],[[-1,-1,-1],[-1,-1,1]],[[1,-1,-1],[1,-1,1]],[[1,1,-1],[1,1,1]],[[-1,1,-1],[-1,1,1]]]){let o=e*3,_=t*3,v=n*3,y=r*3,b=i*3,x=a*3;[_,v]=d(_,v,l),[o,v]=f(o,v,u),[o,_]=p(o,_,h),[b,x]=d(b,x,l),[y,x]=f(y,x,u),[y,b]=p(y,b,h);let[S,C]=m(o,_,v),[w,T]=m(y,b,x),E=w-S,D=T-C,O=Math.sqrt(E*E+D*D);if(O>0){let e=Math.max(0,Math.min(1,((s-S)*E+(c-C)*D)/(O*O))),t=S+e*E,n=C+e*D,r=Math.sqrt((s-t)*(s-t)+(c-n)*(c-n));g=Math.min(g,r)}}return Math.max(0,Math.min(1,1-g*.5))},(e,t,n)=>{let a=r/2,o=i/2,s=(e-a)/40,c=(t-o)/40,l=n*.3,u=n*.5,p=1/0;for(let e=0;e<200;e++){let t=e/200*Math.PI*2,r=2+Math.sin(e*.5+n)*1.5,i=Math.cos(e*.3+n*.5)*3,a=Math.cos(t)*r,o=i,h=Math.sin(t)*r;a+=Math.sin(e*10+n*2)*.5,o+=Math.cos(e*15+n*1.5)*.5,h+=Math.sin(e*12+n*1.8)*.5,[o,h]=d(o,h,l),[a,h]=f(a,h,u);let[g,_]=m(a,o,h,200),v=Math.sqrt((s-g)*(s-g)+(c-_)*(c-_));p=Math.min(p,v)}return Math.max(0,Math.min(1,1-p*.8))}][n],g=Date.now(),_=!0,v=e=>{if(!l.current)return;let t=c.createImageData(r,i),n=t.data,a=l.current;for(let t=0;t<i;t++)for(let i=0;i<r;i++){let o=(t*r+i)*4;h(i,t,e)>u[t%8][i%8]/64?(n[o]=a[0],n[o+1]=a[1],n[o+2]=a[2],n[o+3]=255):(n[o]=0,n[o+1]=0,n[o+2]=0,n[o+3]=0)}c.putImageData(t,0,0)};if(s)v(0);else{let e=()=>{_&&(v((Date.now()-g)/1e3),o.current=requestAnimationFrame(e))};e()}return()=>{_=!1,o.current&&cancelAnimationFrame(o.current)}},[n,s,r,i]);let u=[`Flowing Waves`,`Layered Noise`,`Warped Space`,`Fractal Recursion`,`Organic Cellular`,`Interference Waves`,`Rotating Cube`,`Point Cloud`];return(0,Z.jsxs)(`article`,{className:`theme-surface theme-preview-radius relative overflow-hidden w-100 shadow-border`,style:{"--preview-radius":t},title:s?`${u[n]} (static)`:u[n],children:[(0,Z.jsx)(`canvas`,{ref:a,width:r,height:i,className:`component-dither-canvas db w-100 h-100`}),(0,Z.jsx)(`div`,{className:`component-dither-label absolute px4 py3 f2 fw7`,children:s&&` (static)`})]})},TH=.42,EH=7,DH=5,OH=[`stripes`,`stripes2`,`solid`,`empty`,`check1`,`check2`,`check4`,`dots`,`dots2`,`dots3`];function kH(e,t){return OH[(e*5+t*7+e*t)%OH.length]}function AH(e,t,n){if(e<=0)return[0,100];let r=[];for(let i=0;i<e;i++){let a=(i+1)/(e+1)*100;r.push(a+EH*Math.sin(t*TH+n+i*2.1))}r.sort((e,t)=>
75e-t);let i=[0,...r,100];for(let e=0;e<4;e++){for(let e=1;e<i.length-1;e++)i[e]-i[e-1]<DH&&(i[e]=i[e-1]+DH);for(let e=i.length-2;e>=1;e--)i[e+1]-i[e]<DH&&(i[e]=i[e+1]-DH)}return i[0]=0,i[i.length-1]=100,i}function jH({idPrefix:e,stripeWidth:t=1,stripeGap:n=1,stripeAngleDeg:r=45}){let i=t=>`${e}-${t}`,a=Math.max(t,.01),o=a+Math.max(n,0),s=o/2,c=r!==0&&r%360!=0?`rotate(${r} ${s} ${s})`:void 0;return(0,Z.jsxs)(`defs`,{children:[(0,Z.jsxs)(`pattern`,{id:i(`stripes`),patternUnits:`userSpaceOnUse`,width:o,height:o,patternTransform:c,children:[(0,Z.jsx)(`rect`,{width:o,height:o,fill:`var(--bg)`}),(0,Z.jsx)(`rect`,{x:0,y:0,width:a,height:o,fill:`var(--fg)`})]}),(0,Z.jsxs)(`pattern`,{id:i(`stripes2`),patternUnits:`userSpaceOnUse`,width:`2`,height:`2`,patternTransform:c,children:[(0,Z.jsx)(`rect`,{width:`2`,height:`2`,fill:`var(--bg)`}),(0,Z.jsx)(`rect`,{x:0,y:0,width:`1`,height:`2`,fill:`var(--fg)`})]}),(0,Z.jsxs)(`pattern`,{id:i(`dots`),patternUnits:`userSpaceOnUse`,width:`2`,height:`2`,children:[(0,Z.jsx)(`rect`,{width:`2`,height:`2`,fill:`var(--bg)`}),(0,Z.jsx)(`circle`,{cx:`1`,cy:`1`,r:`0.25`,fill:`var(--fg)`})]}),(0,Z.jsxs)(`pattern`,{id:i(`dots2`),patternUnits:`userSpaceOnUse`,width:`1`,height:`1`,children:[(0,Z.jsx)(`rect`,{width:`1`,height:`1`,fill:`var(--bg)`}),(0,Z.jsx)(`circle`,{cx:`1`,cy:`1`,r:`0.125`,fill:`var(--fg)`})]}),(0,Z.jsxs)(`pattern`,{id:i(`dots3`),patternUnits:`userSpaceOnUse`,width:`2`,height:`2`,children:[(0,Z.jsx)(`rect`,{width:`2`,height:`2`,fill:`var(--bg)`}),(0,Z.jsx)(`circle`,{cx:`1`,cy:`1`,r:`0.5`,fill:`var(--fg)`})]}),(0,Z.jsxs)(`pattern`,{id:i(`check1`),patternUnits:`userSpaceOnUse`,width:`.5`,height:`.5`,children:[(0,Z.jsx)(`rect`,{width:`.5`,height:`.5`,fill:`var(--bg)`}),(0,Z.jsx)(`rect`,{width:`.25`,height:`.25`,x:`0`,y:`0`,fill:`var(--fg)`}),(0,Z.jsx)(`rect`,{width:`.25`,height:`.25`,x:`.25`,y:`.25`,fill:`var(--fg)`})]}),(0,Z.jsxs)(`pattern`,{id:i(`check2`),patternUnits:`userSpaceOnUse`,width:`2`,height:`2`,children:[(0,Z.jsx)(`rect`,{width:`2`,height:`2`,fill:`var(--bg)`}),(0,Z.jsx)(`rect`,{width:`1`,height:`1`,x:`0`,y:`0`,fill:`var(--fg)`}),(0,Z.jsx)(`rect`,{width:`1`,height:`1`,x:`1`,y:`1`,fill:`var(--fg)`})]}),(0,Z.jsxs)(`pattern`,{id:i(`check4`),patternUnits:`userSpaceOnUse`,width:`1`,height:`1`,children:[(0,Z.jsx)(`rect`,{width:`1`,height:`1`,fill:`var(--bg)`}),(0,Z.jsx)(`rect`,{width:`.5`,height:`.5`,x:`0`,y:`0`,fill:`var(--fg)`}),(0,Z.jsx)(`rect`,{width:`.5`,height:`.5`,x:`.5`,y:`.5`,fill:`var(--fg)`})]})]})}function MH(e,t){let n=e=>`url(#${t}-${e})`;switch(e){case`stripes`:return n(`stripes`);case`dots3`:return n(`dots3`);case`dots2`:return n(`dots2`);case`dots`:return n(`dots`);case`check1`:return n(`check1`);case`check2`:return n(`check2`);case`check4`:return n(`check4`);case`stripes2`:return n(`stripes2`);case`solid`:return`var(--fg)`;case`empty`:return`var(--bg)`;default:return`var(--bg)`}}function NH({className:e=``,verticalInner:t=4,horizontalInner:n=4,lineWidth:r=.9,stripeWidth:i=1,stripeGap:a=1,stripeAngleDeg:o=0}){let s=`mdg-${(0,_.useId)().replace(/[^a-zA-Z0-9_-]/g,``)||`0`}`,c=(0,_.useRef)(0),[l,u]=(0,_.useState)(0),[d,f]=(0,_.useState)(()=>typeof window<`u`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches);(0,_.useEffect)(()=>{if(typeof window>`u`||!window.matchMedia)return;let e=window.matchMedia(`(prefers-reduced-motion: reduce)`),t=()=>f(e.matches);return t(),e.addEventListener?(e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)):(e.addListener(t),()=>e.removeListener(t))},[]),(0,_.useEffect)(()=>{if(d){u(0);return}let e=!0,t=n=>{e&&(u(n*.001),c.current=requestAnimationFrame(t))};return c.current=requestAnimationFrame(t),()=>{e=!1,cancelAnimationFrame(c.current)}},[d]);let p=AH(t,l,1.7),m=AH(n,l,4.3),h=[];for(let e=0;e<m.length-1;e++)for(let t=0;t<p.length-1;t++){let n=p[t],r=p[t+1],i=m[e],a=m[e+1],o=r-n,c=a-i;if(o<.02||c<.02)continue;let l=MH(kH(e,t),s);h.push((0,Z.jsx)(`rect`,{x:n,y:i,width:o,height:c,fill:l},`${e}-${t}`))}let g=p.slice(1,-1).map((e,t)=>(0,Z.jsx)(`line`,{x1:e,y1:0,x2:e,y2:100,stroke:`var(--fg)`,strokeWidth:r,vectorEffect:`non-scaling-stroke`},`v-${t}`)),v=m.slice(1,-1).map((e,t)=>(0,Z.jsx)(`line`,{x1:0,y1:e,x2:100,y2:e,stroke:`var(--fg)`,strokeWidth:r,vectorEffect:`non-scaling-stroke`},`h-${t}`));
75return(0,Z.jsx)(`div`,{className:`recursive-duotone-pattern-grid theme relative w-100 h-100 ba overflow-hidden shadow-border ${e}`.trim(),style:{alignSelf:`stretch`,justifySelf:`stretch`,height:`100%`,minHeight:`var(--recursive-duotone-min-height, 220px)`,minWidth:0,maxWidth:`100%`},"aria-hidden":`true`,children:(0,Z.jsxs)(`svg`,{viewBox:`0 0 100 100`,width:`100%`,height:`100%`,preserveAspectRatio:`xMidYMid slice`,xmlns:`http://www.w3.org/2000/svg`,focusable:`false`,style:{inset:0},className:`absolute`,children:[(0,Z.jsx)(jH,{idPrefix:s,stripeWidth:i,stripeGap:a,stripeAngleDeg:o}),(0,Z.jsx)(`rect`,{width:100,height:100,fill:`var(--bg)`}),(0,Z.jsx)(`g`,{children:h}),(0,Z.jsx)(`g`,{children:g}),(0,Z.jsx)(`g`,{children:v})]})})}var PH=({...e})=>(0,Z.jsxs)(`section`,{className:`p6 p9-m grid justify-center component-icons-grid g2 g3-s g4-m`,...e,children:[(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-airplay`,children:[(0,Z.jsx)(`path`,{d:`M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1`}),(0,Z.jsx)(`polygon`,{points:`12 15 17 21 7 21 12 15`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-alert-circle`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12.01`,y2:`16`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-alert-octagon`,children:[(0,Z.jsx)(`polygon`,{points:`7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12.01`,y2:`16`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-alert-triangle`,children:[(0,Z.jsx)(`path`,{d:`M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`9`,x2:`12`,y2:`13`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`17`,x2:`12.01`,y2:`17`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-align-center`,children:[(0,Z.jsx)(`line`,{x1:`18`,y1:`10`,x2:`6`,y2:`10`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`6`,x2:`3`,y2:`6`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`14`,x2:`3`,y2:`14`}),(0,Z.jsx)(`line`,{x1:`18`,y1:`18`,x2:`6`,y2:`18`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-align-justify`,children:[(0,Z.jsx)(`line`,{x1:`21`,y1:`10`,x2:`3`,y2:`10`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`6`,x2:`3`,y2:`6`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`14`,x2:`3`,y2:`14`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`18`,x2:`3`,y2:`18`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-align-left`,children:[(0,Z.jsx)(`line`,{x1:`17`,y1:`10`,x2:`3`,y2:`10`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`6`,x2:`3`,y2:`6`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`14`,x2:`3`,y2:`14`}),(0,Z.jsx)(`line`,{x1:`17`,y1:`18`,x2:`3`,y2:`18`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-align-right`,children:[(0,Z.jsx)(`line`,{x1:`21`,y1:`10`,x2:`7`,y2:`10`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`6`,x2:`3`,y2:`6`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`14`,x2:`3`,y2:`14`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`18`,x2:`7`,y2:`18`})]}
75),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-anchor`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`5`,r:`3`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`22`,x2:`12`,y2:`8`}),(0,Z.jsx)(`path`,{d:`M5 12H2a10 10 0 0 0 20 0h-3`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-aperture`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`line`,{x1:`14.31`,y1:`8`,x2:`20.05`,y2:`17.94`}),(0,Z.jsx)(`line`,{x1:`9.69`,y1:`8`,x2:`21.17`,y2:`8`}),(0,Z.jsx)(`line`,{x1:`7.38`,y1:`12`,x2:`13.12`,y2:`2.06`}),(0,Z.jsx)(`line`,{x1:`9.69`,y1:`16`,x2:`3.95`,y2:`6.06`}),(0,Z.jsx)(`line`,{x1:`14.31`,y1:`16`,x2:`2.83`,y2:`16`}),(0,Z.jsx)(`line`,{x1:`16.62`,y1:`12`,x2:`10.88`,y2:`21.94`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-archive`,children:[(0,Z.jsx)(`polyline`,{points:`21 8 21 21 3 21 3 8`}),(0,Z.jsx)(`rect`,{x:`1`,y:`3`,width:`22`,height:`5`}),(0,Z.jsx)(`line`,{x1:`10`,y1:`12`,x2:`14`,y2:`12`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-arrow-down-circle`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`polyline`,{points:`8 12 12 16 16 12`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`16`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-arrow-down-left`,children:[(0,Z.jsx)(`line`,{x1:`17`,y1:`7`,x2:`7`,y2:`17`}),(0,Z.jsx)(`polyline`,{points:`17 17 7 17 7 7`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-arrow-down-right`,children:[(0,Z.jsx)(`line`,{x1:`7`,y1:`7`,x2:`17`,y2:`17`}),(0,Z.jsx)(`polyline`,{points:`17 7 17 17 7 17`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-arrow-down`,children:[(0,Z.jsx)(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),(0,Z.jsx)(`polyline`,{points:`19 12 12 19 5 12`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-arrow-left-circle`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`polyline`,{points:`12 8 8 12 12 16`}),(0,Z.jsx)(`line`,{x1:`16`,y1:`12`,x2:`8`,y2:`12`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-arrow-left`,children:[(0,Z.jsx)(`line`,{x1:`19`,y1:`12`,x2:`5`,y2:`12`}),(0,Z.jsx)(`polyline`,{points:`12 19 5 12 12 5`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-arrow-right-circle`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`polyline`,{points:`12 16 16 12 12 8`}),(0,Z.jsx)(`line`,{x1:`8`,y1:`12`,x2:`16`,y2:`12`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-arrow-right`,children:[(0,Z.jsx)(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`}),(0,Z.jsx)(`polyline`,{points:`12 5 19 12 12 19`})]}
75),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-arrow-up-circle`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`polyline`,{points:`16 12 12 8 8 12`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`8`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-arrow-up-left`,children:[(0,Z.jsx)(`line`,{x1:`17`,y1:`17`,x2:`7`,y2:`7`}),(0,Z.jsx)(`polyline`,{points:`7 17 7 7 17 7`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-arrow-up-right`,children:[(0,Z.jsx)(`line`,{x1:`7`,y1:`17`,x2:`17`,y2:`7`}),(0,Z.jsx)(`polyline`,{points:`7 7 17 7 17 17`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-arrow-up`,children:[(0,Z.jsx)(`line`,{x1:`12`,y1:`19`,x2:`12`,y2:`5`}),(0,Z.jsx)(`polyline`,{points:`5 12 12 5 19 12`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-at-sign`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`4`}),(0,Z.jsx)(`path`,{d:`M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-3.92 7.94`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-award`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`8`,r:`7`}),(0,Z.jsx)(`polyline`,{points:`8.21 13.89 7 23 12 20 17 23 15.79 13.88`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-bar-chart-2`,children:[(0,Z.jsx)(`line`,{x1:`18`,y1:`20`,x2:`18`,y2:`10`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`20`,x2:`12`,y2:`4`}),(0,Z.jsx)(`line`,{x1:`6`,y1:`20`,x2:`6`,y2:`14`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-bar-chart`,children:[(0,Z.jsx)(`line`,{x1:`12`,y1:`20`,x2:`12`,y2:`10`}),(0,Z.jsx)(`line`,{x1:`18`,y1:`20`,x2:`18`,y2:`4`}),(0,Z.jsx)(`line`,{x1:`6`,y1:`20`,x2:`6`,y2:`16`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-battery-charging`,children:[(0,Z.jsx)(`path`,{d:`M5 18H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3.19M15 6h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3.19`}),(0,Z.jsx)(`line`,{x1:`23`,y1:`13`,x2:`23`,y2:`11`}),(0,Z.jsx)(`polyline`,{points:`11 6 7 12 13 12 9 18`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-battery`,children:[(0,Z.jsx)(`rect`,{x:`1`,y:`6`,width:`18`,height:`12`,rx:`2`,ry:`2`}),(0,Z.jsx)(`line`,{x1:`23`,y1:`13`,x2:`23`,y2:`11`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-bell-off`,children:[(0,Z.jsx)(`path`,{d:`M13.73 21a2 2 0 0 1-3.46 0`}),(0,Z.jsx)(`path`,{d:`M18.63 13A17.89 17.89 0 0 1 18 8`}),(0,Z.jsx)(`path`,{d:`M6.26 6.26A5.86 5.86 0 0 0 6 8c0 7-3 9-3 9h14`}),(0,Z.jsx)(`path`,{d:`M18 8a6 6 0 0 0-9.33-5`}),(0,Z.jsx)(`line`,{x1:`1`,y1:`1`,x2:`23`,y2:`23`})]}
75),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-bell`,children:[(0,Z.jsx)(`path`,{d:`M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9`}),(0,Z.jsx)(`path`,{d:`M13.73 21a2 2 0 0 1-3.46 0`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-bluetooth`,children:(0,Z.jsx)(`polyline`,{points:`6.5 6.5 17.5 17.5 12 23 12 1 17.5 6.5 6.5 17.5`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-bold`,children:[(0,Z.jsx)(`path`,{d:`M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z`}),(0,Z.jsx)(`path`,{d:`M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-book-open`,children:[(0,Z.jsx)(`path`,{d:`M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z`}),(0,Z.jsx)(`path`,{d:`M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-book`,children:[(0,Z.jsx)(`path`,{d:`M4 19.5A2.5 2.5 0 0 1 6.5 17H20`}),(0,Z.jsx)(`path`,{d:`M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-bookmark`,children:(0,Z.jsx)(`path`,{d:`M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-box`,children:[(0,Z.jsx)(`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`}),(0,Z.jsx)(`polyline`,{points:`3.27 6.96 12 12.01 20.73 6.96`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`22.08`,x2:`12`,y2:`12`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-briefcase`,children:[(0,Z.jsx)(`rect`,{x:`2`,y:`7`,width:`20`,height:`14`,rx:`2`,ry:`2`}),(0,Z.jsx)(`path`,{d:`M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-calendar`,children:[(0,Z.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`18`,rx:`2`,ry:`2`}),(0,Z.jsx)(`line`,{x1:`16`,y1:`2`,x2:`16`,y2:`6`}),(0,Z.jsx)(`line`,{x1:`8`,y1:`2`,x2:`8`,y2:`6`}),(0,Z.jsx)(`line`,{x1:`3`,y1:`10`,x2:`21`,y2:`10`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-camera-off`,children:[(0,Z.jsx)(`line`,{x1:`1`,y1:`1`,x2:`23`,y2:`23`}),(0,Z.jsx)(`path`,{d:`M21 21H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3m3-3h6l2 3h4a2 2 0 0 1 2 2v9.34m-7.72-2.06a4 4 0 1 1-5.56-5.56`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-camera`,children:[(0,Z.jsx)(`path`,{d:`M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z`}),(0,Z.jsx)(`circle`,{cx:`12`,cy:`13`,r:`4`})]}
75),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-cast`,children:[(0,Z.jsx)(`path`,{d:`M2 16.1A5 5 0 0 1 5.9 20M2 12.05A9 9 0 0 1 9.95 20M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6`}),(0,Z.jsx)(`line`,{x1:`2`,y1:`20`,x2:`2.01`,y2:`20`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-check-circle`,children:[(0,Z.jsx)(`path`,{d:`M22 11.08V12a10 10 0 1 1-5.93-9.14`}),(0,Z.jsx)(`polyline`,{points:`22 4 12 14.01 9 11.01`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-check-square`,children:[(0,Z.jsx)(`polyline`,{points:`9 11 12 14 22 4`}),(0,Z.jsx)(`path`,{d:`M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-check`,children:(0,Z.jsx)(`polyline`,{points:`20 6 9 17 4 12`})}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-chevron-down`,children:(0,Z.jsx)(`polyline`,{points:`6 9 12 15 18 9`})}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-chevron-left`,children:(0,Z.jsx)(`polyline`,{points:`15 18 9 12 15 6`})}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-chevron-right`,children:(0,Z.jsx)(`polyline`,{points:`9 18 15 12 9 6`})}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-chevron-up`,children:(0,Z.jsx)(`polyline`,{points:`18 15 12 9 6 15`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-chevrons-down`,children:[(0,Z.jsx)(`polyline`,{points:`7 13 12 18 17 13`}),(0,Z.jsx)(`polyline`,{points:`7 6 12 11 17 6`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-chevrons-left`,children:[(0,Z.jsx)(`polyline`,{points:`11 17 6 12 11 7`}),(0,Z.jsx)(`polyline`,{points:`18 17 13 12 18 7`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-chevrons-right`,children:[(0,Z.jsx)(`polyline`,{points:`13 17 18 12 13 7`}),(0,Z.jsx)(`polyline`,{points:`6 17 11 12 6 7`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-chevrons-up`,children:[(0,Z.jsx)(`polyline`,{points:`17 11 12 6 7 11`}),(0,Z.jsx)(`polyline`,{points:`17 18 12 13 7 18`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-chrome`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`4`}),(0,Z.jsx)(`line`,{x1:`21.17`,y1:`8`,x2:`12`,y2:`8`}),(0,Z.jsx)(`line`,{x1:`3.95`,y1:`6.06`,x2:`8.54`,y2:`14`}),(0,Z.jsx)(`line`,{x1:`10.88`,y1:`21.94`,x2:`15.46`,y2:`14`})]}
75),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-circle`,children:(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-clipboard`,children:[(0,Z.jsx)(`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`}),(0,Z.jsx)(`rect`,{x:`8`,y:`2`,width:`8`,height:`4`,rx:`1`,ry:`1`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-clock`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`polyline`,{points:`12 6 12 12 16 14`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-cloud-drizzle`,children:[(0,Z.jsx)(`line`,{x1:`8`,y1:`19`,x2:`8`,y2:`21`}),(0,Z.jsx)(`line`,{x1:`8`,y1:`13`,x2:`8`,y2:`15`}),(0,Z.jsx)(`line`,{x1:`16`,y1:`19`,x2:`16`,y2:`21`}),(0,Z.jsx)(`line`,{x1:`16`,y1:`13`,x2:`16`,y2:`15`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`21`,x2:`12`,y2:`23`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`15`,x2:`12`,y2:`17`}),(0,Z.jsx)(`path`,{d:`M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-cloud-lightning`,children:[(0,Z.jsx)(`path`,{d:`M19 16.9A5 5 0 0 0 18 7h-1.26a8 8 0 1 0-11.62 9`}),(0,Z.jsx)(`polyline`,{points:`13 11 9 17 15 17 11 23`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-cloud-off`,children:[(0,Z.jsx)(`path`,{d:`M22.61 16.95A5 5 0 0 0 18 10h-1.26a8 8 0 0 0-7.05-6M5 5a8 8 0 0 0 4 15h9a5 5 0 0 0 1.7-.3`}),(0,Z.jsx)(`line`,{x1:`1`,y1:`1`,x2:`23`,y2:`23`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-cloud-rain`,children:[(0,Z.jsx)(`line`,{x1:`16`,y1:`13`,x2:`16`,y2:`21`}),(0,Z.jsx)(`line`,{x1:`8`,y1:`13`,x2:`8`,y2:`21`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`15`,x2:`12`,y2:`23`}),(0,Z.jsx)(`path`,{d:`M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-cloud-snow`,children:[(0,Z.jsx)(`path`,{d:`M20 17.58A5 5 0 0 0 18 8h-1.26A8 8 0 1 0 4 16.25`}),(0,Z.jsx)(`line`,{x1:`8`,y1:`16`,x2:`8.01`,y2:`16`}),(0,Z.jsx)(`line`,{x1:`8`,y1:`20`,x2:`8.01`,y2:`20`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`18`,x2:`12.01`,y2:`18`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`22`,x2:`12.01`,y2:`22`}),(0,Z.jsx)(`line`,{x1:`16`,y1:`16`,x2:`16.01`,y2:`16`}),(0,Z.jsx)(`line`,{x1:`16`,y1:`20`,x2:`16.01`,y2:`20`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-cloud`,children:(0,Z.jsx)(`path`,{d:`M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-code`,children:[(0,Z.jsx)(`polyline`,{points:`16 18 22 12 16 6`}),(0,Z.jsx)(`polyline`,{points:`8 6 2 12 8 18`})]}
75),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-codepen`,children:[(0,Z.jsx)(`polygon`,{points:`12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`22`,x2:`12`,y2:`15.5`}),(0,Z.jsx)(`polyline`,{points:`22 8.5 12 15.5 2 8.5`}),(0,Z.jsx)(`polyline`,{points:`2 15.5 12 8.5 22 15.5`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`2`,x2:`12`,y2:`8.5`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-coffee`,children:[(0,Z.jsx)(`path`,{d:`M18 8h1a4 4 0 0 1 0 8h-1`}),(0,Z.jsx)(`path`,{d:`M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z`}),(0,Z.jsx)(`line`,{x1:`6`,y1:`1`,x2:`6`,y2:`4`}),(0,Z.jsx)(`line`,{x1:`10`,y1:`1`,x2:`10`,y2:`4`}),(0,Z.jsx)(`line`,{x1:`14`,y1:`1`,x2:`14`,y2:`4`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-columns`,children:(0,Z.jsx)(`path`,{d:`M12 3h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7m0-18H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7m0-18v18`})}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-command`,children:(0,Z.jsx)(`path`,{d:`M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-compass`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`polygon`,{points:`16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-copy`,children:[(0,Z.jsx)(`rect`,{x:`9`,y:`9`,width:`13`,height:`13`,rx:`2`,ry:`2`}),(0,Z.jsx)(`path`,{d:`M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-corner-down-left`,children:[(0,Z.jsx)(`polyline`,{points:`9 10 4 15 9 20`}),(0,Z.jsx)(`path`,{d:`M20 4v7a4 4 0 0 1-4 4H4`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-corner-down-right`,children:[(0,Z.jsx)(`polyline`,{points:`15 10 20 15 15 20`}),(0,Z.jsx)(`path`,{d:`M4 4v7a4 4 0 0 0 4 4h12`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-corner-left-down`,children:[(0,Z.jsx)(`polyline`,{points:`14 15 9 20 4 15`}),(0,Z.jsx)(`path`,{d:`M20 4h-7a4 4 0 0 0-4 4v12`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-corner-left-up`,children:[(0,Z.jsx)(`polyline`,{points:`14 9 9 4 4 9`}),(0,Z.jsx)(`path`,{d:`M20 20h-7a4 4 0 0 1-4-4V4`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-corner-right-down`,children:[(0,Z.jsx)(`polyline`,{points:`10 15 15 20 20 15`}),(0,Z.jsx)(`path`,{d:`M4 4h7a4 4 0 0 1 4 4v12`})]}
75),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-corner-right-up`,children:[(0,Z.jsx)(`polyline`,{points:`10 9 15 4 20 9`}),(0,Z.jsx)(`path`,{d:`M4 20h7a4 4 0 0 0 4-4V4`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-corner-up-left`,children:[(0,Z.jsx)(`polyline`,{points:`9 14 4 9 9 4`}),(0,Z.jsx)(`path`,{d:`M20 20v-7a4 4 0 0 0-4-4H4`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-corner-up-right`,children:[(0,Z.jsx)(`polyline`,{points:`15 14 20 9 15 4`}),(0,Z.jsx)(`path`,{d:`M4 20v-7a4 4 0 0 1 4-4h12`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-cpu`,children:[(0,Z.jsx)(`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,ry:`2`}),(0,Z.jsx)(`rect`,{x:`9`,y:`9`,width:`6`,height:`6`}),(0,Z.jsx)(`line`,{x1:`9`,y1:`1`,x2:`9`,y2:`4`}),(0,Z.jsx)(`line`,{x1:`15`,y1:`1`,x2:`15`,y2:`4`}),(0,Z.jsx)(`line`,{x1:`9`,y1:`20`,x2:`9`,y2:`23`}),(0,Z.jsx)(`line`,{x1:`15`,y1:`20`,x2:`15`,y2:`23`}),(0,Z.jsx)(`line`,{x1:`20`,y1:`9`,x2:`23`,y2:`9`}),(0,Z.jsx)(`line`,{x1:`20`,y1:`14`,x2:`23`,y2:`14`}),(0,Z.jsx)(`line`,{x1:`1`,y1:`9`,x2:`4`,y2:`9`}),(0,Z.jsx)(`line`,{x1:`1`,y1:`14`,x2:`4`,y2:`14`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-credit-card`,children:[(0,Z.jsx)(`rect`,{x:`1`,y:`4`,width:`22`,height:`16`,rx:`2`,ry:`2`}),(0,Z.jsx)(`line`,{x1:`1`,y1:`10`,x2:`23`,y2:`10`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-crop`,children:[(0,Z.jsx)(`path`,{d:`M6.13 1L6 16a2 2 0 0 0 2 2h15`}),(0,Z.jsx)(`path`,{d:`M1 6.13L16 6a2 2 0 0 1 2 2v15`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-crosshair`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`line`,{x1:`22`,y1:`12`,x2:`18`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`6`,y1:`12`,x2:`2`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`6`,x2:`12`,y2:`2`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`22`,x2:`12`,y2:`18`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-database`,children:[(0,Z.jsx)(`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`}),(0,Z.jsx)(`path`,{d:`M21 12c0 1.66-4 3-9 3s-9-1.34-9-3`}),(0,Z.jsx)(`path`,{d:`M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-delete`,children:[(0,Z.jsx)(`path`,{d:`M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z`}),(0,Z.jsx)(`line`,{x1:`18`,y1:`9`,x2:`12`,y2:`15`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`9`,x2:`18`,y2:`15`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-disc`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3`})]}
75),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-divide-circle`,children:[(0,Z.jsx)(`line`,{x1:`8`,y1:`12`,x2:`16`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`16`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`8`}),(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-divide-square`,children:[(0,Z.jsx)(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,ry:`2`}),(0,Z.jsx)(`line`,{x1:`8`,y1:`12`,x2:`16`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`16`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`8`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-divide`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`6`,r:`2`}),(0,Z.jsx)(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`}),(0,Z.jsx)(`circle`,{cx:`12`,cy:`18`,r:`2`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-dollar-sign`,children:[(0,Z.jsx)(`line`,{x1:`12`,y1:`1`,x2:`12`,y2:`23`}),(0,Z.jsx)(`path`,{d:`M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-download-cloud`,children:[(0,Z.jsx)(`polyline`,{points:`8 17 12 21 16 17`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`12`,x2:`12`,y2:`21`}),(0,Z.jsx)(`path`,{d:`M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-download`,children:[(0,Z.jsx)(`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`}),(0,Z.jsx)(`polyline`,{points:`7 10 12 15 17 10`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`15`,x2:`12`,y2:`3`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-droplet`,children:(0,Z.jsx)(`path`,{d:`M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z`})}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-edit-2`,children:(0,Z.jsx)(`path`,{d:`M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-edit-3`,children:[(0,Z.jsx)(`path`,{d:`M12 20h9`}),(0,Z.jsx)(`path`,{d:`M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-edit`,children:[(0,Z.jsx)(`path`,{d:`M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`}),(0,Z.jsx)(`path`,{d:`M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-external-link`,children:[(0,Z.jsx)(`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`}),(0,Z.jsx)(`polyline`,{points:`15 3 21 3 21 9`}),(0,Z.jsx)(`line`,{x1:`10`,y1:`14`,x2:`21`,y2:`3`})]}
75),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-eye-off`,children:[(0,Z.jsx)(`path`,{d:`M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24`}),(0,Z.jsx)(`line`,{x1:`1`,y1:`1`,x2:`23`,y2:`23`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-eye`,children:[(0,Z.jsx)(`path`,{d:`M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z`}),(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-facebook`,children:(0,Z.jsx)(`path`,{d:`M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-fast-forward`,children:[(0,Z.jsx)(`polygon`,{points:`13 19 22 12 13 5 13 19`}),(0,Z.jsx)(`polygon`,{points:`2 19 11 12 2 5 2 19`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-feather`,children:[(0,Z.jsx)(`path`,{d:`M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z`}),(0,Z.jsx)(`line`,{x1:`16`,y1:`8`,x2:`2`,y2:`22`}),(0,Z.jsx)(`line`,{x1:`17.5`,y1:`15`,x2:`9`,y2:`15`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-figma`,children:[(0,Z.jsx)(`path`,{d:`M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z`}),(0,Z.jsx)(`path`,{d:`M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z`}),(0,Z.jsx)(`path`,{d:`M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z`}),(0,Z.jsx)(`path`,{d:`M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z`}),(0,Z.jsx)(`path`,{d:`M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-file-minus`,children:[(0,Z.jsx)(`path`,{d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z`}),(0,Z.jsx)(`polyline`,{points:`14 2 14 8 20 8`}),(0,Z.jsx)(`line`,{x1:`9`,y1:`15`,x2:`15`,y2:`15`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-file-plus`,children:[(0,Z.jsx)(`path`,{d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z`}),(0,Z.jsx)(`polyline`,{points:`14 2 14 8 20 8`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`18`,x2:`12`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`9`,y1:`15`,x2:`15`,y2:`15`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-file-text`,children:[(0,Z.jsx)(`path`,{d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z`}),(0,Z.jsx)(`polyline`,{points:`14 2 14 8 20 8`}),(0,Z.jsx)(`line`,{x1:`16`,y1:`13`,x2:`8`,y2:`13`}),(0,Z.jsx)(`line`,{x1:`16`,y1:`17`,x2:`8`,y2:`17`}),(0,Z.jsx)(`polyline`,{points:`10 9 9 9 8 9`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-file`,children:[(0,Z.jsx)(`path`,{d:`M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z`}),(0,Z.jsx)(`polyline`,{points:`13 2 13 9 20 9`})]}
75),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-film`,children:[(0,Z.jsx)(`rect`,{x:`2`,y:`2`,width:`20`,height:`20`,rx:`2.18`,ry:`2.18`}),(0,Z.jsx)(`line`,{x1:`7`,y1:`2`,x2:`7`,y2:`22`}),(0,Z.jsx)(`line`,{x1:`17`,y1:`2`,x2:`17`,y2:`22`}),(0,Z.jsx)(`line`,{x1:`2`,y1:`12`,x2:`22`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`2`,y1:`7`,x2:`7`,y2:`7`}),(0,Z.jsx)(`line`,{x1:`2`,y1:`17`,x2:`7`,y2:`17`}),(0,Z.jsx)(`line`,{x1:`17`,y1:`17`,x2:`22`,y2:`17`}),(0,Z.jsx)(`line`,{x1:`17`,y1:`7`,x2:`22`,y2:`7`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-filter`,children:(0,Z.jsx)(`polygon`,{points:`22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-flag`,children:[(0,Z.jsx)(`path`,{d:`M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z`}),(0,Z.jsx)(`line`,{x1:`4`,y1:`22`,x2:`4`,y2:`15`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-folder-minus`,children:[(0,Z.jsx)(`path`,{d:`M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z`}),(0,Z.jsx)(`line`,{x1:`9`,y1:`14`,x2:`15`,y2:`14`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-folder-plus`,children:[(0,Z.jsx)(`path`,{d:`M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`11`,x2:`12`,y2:`17`}),(0,Z.jsx)(`line`,{x1:`9`,y1:`14`,x2:`15`,y2:`14`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-folder`,children:(0,Z.jsx)(`path`,{d:`M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-frown`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`path`,{d:`M16 16s-1.5-2-4-2-4 2-4 2`}),(0,Z.jsx)(`line`,{x1:`9`,y1:`9`,x2:`9.01`,y2:`9`}),(0,Z.jsx)(`line`,{x1:`15`,y1:`9`,x2:`15.01`,y2:`9`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-gift`,children:[(0,Z.jsx)(`polyline`,{points:`20 12 20 22 4 22 4 12`}),(0,Z.jsx)(`rect`,{x:`2`,y:`7`,width:`20`,height:`5`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`22`,x2:`12`,y2:`7`}),(0,Z.jsx)(`path`,{d:`M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z`}),(0,Z.jsx)(`path`,{d:`M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-git-branch`,children:[(0,Z.jsx)(`line`,{x1:`6`,y1:`3`,x2:`6`,y2:`15`}),(0,Z.jsx)(`circle`,{cx:`18`,cy:`6`,r:`3`}),(0,Z.jsx)(`circle`,{cx:`6`,cy:`18`,r:`3`}),(0,Z.jsx)(`path`,{d:`M18 9a9 9 0 0 1-9 9`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-git-commit`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`4`}),(0,Z.jsx)(`line`,{x1:`1.05`,y1:`12`,x2:`7`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`17.01`,y1:`12`,x2:`22.96`,y2:`12`})]}
75),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-git-merge`,children:[(0,Z.jsx)(`circle`,{cx:`18`,cy:`18`,r:`3`}),(0,Z.jsx)(`circle`,{cx:`6`,cy:`6`,r:`3`}),(0,Z.jsx)(`path`,{d:`M6 21V9a9 9 0 0 0 9 9`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-git-pull-request`,children:[(0,Z.jsx)(`circle`,{cx:`18`,cy:`18`,r:`3`}),(0,Z.jsx)(`circle`,{cx:`6`,cy:`6`,r:`3`}),(0,Z.jsx)(`path`,{d:`M13 6h3a2 2 0 0 1 2 2v7`}),(0,Z.jsx)(`line`,{x1:`6`,y1:`9`,x2:`6`,y2:`21`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-github`,children:(0,Z.jsx)(`path`,{d:`M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22`})}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-gitlab`,children:(0,Z.jsx)(`path`,{d:`M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-globe`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`line`,{x1:`2`,y1:`12`,x2:`22`,y2:`12`}),(0,Z.jsx)(`path`,{d:`M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-grid`,children:[(0,Z.jsx)(`rect`,{x:`3`,y:`3`,width:`7`,height:`7`}),(0,Z.jsx)(`rect`,{x:`14`,y:`3`,width:`7`,height:`7`}),(0,Z.jsx)(`rect`,{x:`14`,y:`14`,width:`7`,height:`7`}),(0,Z.jsx)(`rect`,{x:`3`,y:`14`,width:`7`,height:`7`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-hard-drive`,children:[(0,Z.jsx)(`line`,{x1:`22`,y1:`12`,x2:`2`,y2:`12`}),(0,Z.jsx)(`path`,{d:`M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`}),(0,Z.jsx)(`line`,{x1:`6`,y1:`16`,x2:`6.01`,y2:`16`}),(0,Z.jsx)(`line`,{x1:`10`,y1:`16`,x2:`10.01`,y2:`16`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-hash`,children:[(0,Z.jsx)(`line`,{x1:`4`,y1:`9`,x2:`20`,y2:`9`}),(0,Z.jsx)(`line`,{x1:`4`,y1:`15`,x2:`20`,y2:`15`}),(0,Z.jsx)(`line`,{x1:`10`,y1:`3`,x2:`8`,y2:`21`}),(0,Z.jsx)(`line`,{x1:`16`,y1:`3`,x2:`14`,y2:`21`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-headphones`,children:[(0,Z.jsx)(`path`,{d:`M3 18v-6a9 9 0 0 1 18 0v6`}),(0,Z.jsx)(`path`,{d:`M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z`})]}
75),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-heart`,children:(0,Z.jsx)(`path`,{d:`M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-help-circle`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`17`,x2:`12.01`,y2:`17`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-hexagon`,children:(0,Z.jsx)(`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-home`,children:[(0,Z.jsx)(`path`,{d:`M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`}),(0,Z.jsx)(`polyline`,{points:`9 22 9 12 15 12 15 22`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-image`,children:[(0,Z.jsx)(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,ry:`2`}),(0,Z.jsx)(`circle`,{cx:`8.5`,cy:`8.5`,r:`1.5`}),(0,Z.jsx)(`polyline`,{points:`21 15 16 10 5 21`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-inbox`,children:[(0,Z.jsx)(`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`}),(0,Z.jsx)(`path`,{d:`M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-info`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12.01`,y2:`8`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-instagram`,children:[(0,Z.jsx)(`rect`,{x:`2`,y:`2`,width:`20`,height:`20`,rx:`5`,ry:`5`}),(0,Z.jsx)(`path`,{d:`M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z`}),(0,Z.jsx)(`line`,{x1:`17.5`,y1:`6.5`,x2:`17.51`,y2:`6.5`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-italic`,children:[(0,Z.jsx)(`line`,{x1:`19`,y1:`4`,x2:`10`,y2:`4`}),(0,Z.jsx)(`line`,{x1:`14`,y1:`20`,x2:`5`,y2:`20`}),(0,Z.jsx)(`line`,{x1:`15`,y1:`4`,x2:`9`,y2:`20`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-key`,children:(0,Z.jsx)(`path`,{d:`M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-layers`,children:[(0,Z.jsx)(`polygon`,{points:`12 2 2 7 12 12 22 7 12 2`}),(0,Z.jsx)(`polyline`,{points:`2 17 12 22 22 17`}),(0,Z.jsx)(`polyline`,{points:`2 12 12 17 22 12`})]}
75),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-layout`,children:[(0,Z.jsx)(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,ry:`2`}),(0,Z.jsx)(`line`,{x1:`3`,y1:`9`,x2:`21`,y2:`9`}),(0,Z.jsx)(`line`,{x1:`9`,y1:`21`,x2:`9`,y2:`9`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-life-buoy`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`4`}),(0,Z.jsx)(`line`,{x1:`4.93`,y1:`4.93`,x2:`9.17`,y2:`9.17`}),(0,Z.jsx)(`line`,{x1:`14.83`,y1:`14.83`,x2:`19.07`,y2:`19.07`}),(0,Z.jsx)(`line`,{x1:`14.83`,y1:`9.17`,x2:`19.07`,y2:`4.93`}),(0,Z.jsx)(`line`,{x1:`14.83`,y1:`9.17`,x2:`18.36`,y2:`5.64`}),(0,Z.jsx)(`line`,{x1:`4.93`,y1:`19.07`,x2:`9.17`,y2:`14.83`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-link-2`,children:[(0,Z.jsx)(`path`,{d:`M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3`}),(0,Z.jsx)(`line`,{x1:`8`,y1:`12`,x2:`16`,y2:`12`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-link`,children:[(0,Z.jsx)(`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`}),(0,Z.jsx)(`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-linkedin`,children:[(0,Z.jsx)(`path`,{d:`M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z`}),(0,Z.jsx)(`rect`,{x:`2`,y:`9`,width:`4`,height:`12`}),(0,Z.jsx)(`circle`,{cx:`4`,cy:`4`,r:`2`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-list`,children:[(0,Z.jsx)(`line`,{x1:`8`,y1:`6`,x2:`21`,y2:`6`}),(0,Z.jsx)(`line`,{x1:`8`,y1:`12`,x2:`21`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`8`,y1:`18`,x2:`21`,y2:`18`}),(0,Z.jsx)(`line`,{x1:`3`,y1:`6`,x2:`3.01`,y2:`6`}),(0,Z.jsx)(`line`,{x1:`3`,y1:`12`,x2:`3.01`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`3`,y1:`18`,x2:`3.01`,y2:`18`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-loader`,children:[(0,Z.jsx)(`line`,{x1:`12`,y1:`2`,x2:`12`,y2:`6`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`18`,x2:`12`,y2:`22`}),(0,Z.jsx)(`line`,{x1:`4.93`,y1:`4.93`,x2:`7.76`,y2:`7.76`}),(0,Z.jsx)(`line`,{x1:`16.24`,y1:`16.24`,x2:`19.07`,y2:`19.07`}),(0,Z.jsx)(`line`,{x1:`2`,y1:`12`,x2:`6`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`18`,y1:`12`,x2:`22`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`4.93`,y1:`19.07`,x2:`7.76`,y2:`16.24`}),(0,Z.jsx)(`line`,{x1:`16.24`,y1:`7.76`,x2:`19.07`,y2:`4.93`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-lock`,children:[(0,Z.jsx)(`rect`,{x:`3`,y:`11`,width:`18`,height:`11`,rx:`2`,ry:`2`}),(0,Z.jsx)(`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-log-in`,children:[(0,Z.jsx)(`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`}),(0,Z.jsx)(`polyline`,{points:`10 17 15 12 10 7`}),(0,Z.jsx)(`line`,{x1:`15`,y1:`12`,x2:`3`,y2:`12`})]}
75),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-log-out`,children:[(0,Z.jsx)(`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`}),(0,Z.jsx)(`polyline`,{points:`16 17 21 12 16 7`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`12`,x2:`9`,y2:`12`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-mail`,children:[(0,Z.jsx)(`path`,{d:`M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z`}),(0,Z.jsx)(`polyline`,{points:`22,6 12,13 2,6`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-map-pin`,children:[(0,Z.jsx)(`path`,{d:`M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z`}),(0,Z.jsx)(`circle`,{cx:`12`,cy:`10`,r:`3`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-map`,children:[(0,Z.jsx)(`polygon`,{points:`1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6`}),(0,Z.jsx)(`line`,{x1:`8`,y1:`2`,x2:`8`,y2:`18`}),(0,Z.jsx)(`line`,{x1:`16`,y1:`6`,x2:`16`,y2:`22`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-maximize-2`,children:[(0,Z.jsx)(`polyline`,{points:`15 3 21 3 21 9`}),(0,Z.jsx)(`polyline`,{points:`9 21 3 21 3 15`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`3`,x2:`14`,y2:`10`}),(0,Z.jsx)(`line`,{x1:`3`,y1:`21`,x2:`10`,y2:`14`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-maximize`,children:(0,Z.jsx)(`path`,{d:`M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-meh`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`line`,{x1:`8`,y1:`15`,x2:`16`,y2:`15`}),(0,Z.jsx)(`line`,{x1:`9`,y1:`9`,x2:`9.01`,y2:`9`}),(0,Z.jsx)(`line`,{x1:`15`,y1:`9`,x2:`15.01`,y2:`9`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-menu`,children:[(0,Z.jsx)(`line`,{x1:`3`,y1:`12`,x2:`21`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`3`,y1:`6`,x2:`21`,y2:`6`}),(0,Z.jsx)(`line`,{x1:`3`,y1:`18`,x2:`21`,y2:`18`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-message-circle`,children:(0,Z.jsx)(`path`,{d:`M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z`})}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-message-square`,children:(0,Z.jsx)(`path`,{d:`M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-mic-off`,children:[(0,Z.jsx)(`line`,{x1:`1`,y1:`1`,x2:`23`,y2:`23`}),(0,Z.jsx)(`path`,{d:`M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6`}),(0,Z.jsx)(`path`,{d:`M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`19`,x2:`12`,y2:`23`}),(0,Z.jsx)(`line`,{x1:`8`,y1:`23`,x2:`16`,y2:`23`})]}
75),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-mic`,children:[(0,Z.jsx)(`path`,{d:`M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z`}),(0,Z.jsx)(`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`19`,x2:`12`,y2:`23`}),(0,Z.jsx)(`line`,{x1:`8`,y1:`23`,x2:`16`,y2:`23`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-minimize-2`,children:[(0,Z.jsx)(`polyline`,{points:`4 14 10 14 10 20`}),(0,Z.jsx)(`polyline`,{points:`20 10 14 10 14 4`}),(0,Z.jsx)(`line`,{x1:`14`,y1:`10`,x2:`21`,y2:`3`}),(0,Z.jsx)(`line`,{x1:`3`,y1:`21`,x2:`10`,y2:`14`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-minimize`,children:(0,Z.jsx)(`path`,{d:`M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-minus-circle`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`line`,{x1:`8`,y1:`12`,x2:`16`,y2:`12`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-minus-square`,children:[(0,Z.jsx)(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,ry:`2`}),(0,Z.jsx)(`line`,{x1:`8`,y1:`12`,x2:`16`,y2:`12`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-minus`,children:(0,Z.jsx)(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-monitor`,children:[(0,Z.jsx)(`rect`,{x:`2`,y:`3`,width:`20`,height:`14`,rx:`2`,ry:`2`}),(0,Z.jsx)(`line`,{x1:`8`,y1:`21`,x2:`16`,y2:`21`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`17`,x2:`12`,y2:`21`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-moon`,children:(0,Z.jsx)(`path`,{d:`M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-more-horizontal`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1`}),(0,Z.jsx)(`circle`,{cx:`19`,cy:`12`,r:`1`}),(0,Z.jsx)(`circle`,{cx:`5`,cy:`12`,r:`1`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-more-vertical`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1`}),(0,Z.jsx)(`circle`,{cx:`12`,cy:`5`,r:`1`}),(0,Z.jsx)(`circle`,{cx:`12`,cy:`19`,r:`1`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-mouse-pointer`,children:[(0,Z.jsx)(`path`,{d:`M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z`}),(0,Z.jsx)(`path`,{d:`M13 13l6 6`})]}
75),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-move`,children:[(0,Z.jsx)(`polyline`,{points:`5 9 2 12 5 15`}),(0,Z.jsx)(`polyline`,{points:`9 5 12 2 15 5`}),(0,Z.jsx)(`polyline`,{points:`15 19 12 22 9 19`}),(0,Z.jsx)(`polyline`,{points:`19 9 22 12 19 15`}),(0,Z.jsx)(`line`,{x1:`2`,y1:`12`,x2:`22`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`2`,x2:`12`,y2:`22`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-music`,children:[(0,Z.jsx)(`path`,{d:`M9 18V5l12-2v13`}),(0,Z.jsx)(`circle`,{cx:`6`,cy:`18`,r:`3`}),(0,Z.jsx)(`circle`,{cx:`18`,cy:`16`,r:`3`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-navigation-2`,children:(0,Z.jsx)(`polygon`,{points:`12 2 19 21 12 17 5 21 12 2`})}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-navigation`,children:(0,Z.jsx)(`polygon`,{points:`3 11 22 2 13 21 11 13 3 11`})}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-octagon`,children:(0,Z.jsx)(`polygon`,{points:`7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-package`,children:[(0,Z.jsx)(`line`,{x1:`16.5`,y1:`9.4`,x2:`7.5`,y2:`4.21`}),(0,Z.jsx)(`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`}),(0,Z.jsx)(`polyline`,{points:`3.27 6.96 12 12.01 20.73 6.96`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`22.08`,x2:`12`,y2:`12`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-paperclip`,children:(0,Z.jsx)(`path`,{d:`M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-pause-circle`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`line`,{x1:`10`,y1:`15`,x2:`10`,y2:`9`}),(0,Z.jsx)(`line`,{x1:`14`,y1:`15`,x2:`14`,y2:`9`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-pause`,children:[(0,Z.jsx)(`rect`,{x:`6`,y:`4`,width:`4`,height:`16`}),(0,Z.jsx)(`rect`,{x:`14`,y:`4`,width:`4`,height:`16`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-pen-tool`,children:[(0,Z.jsx)(`path`,{d:`M12 19l7-7 3 3-7 7-3-3z`}),(0,Z.jsx)(`path`,{d:`M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z`}),(0,Z.jsx)(`path`,{d:`M2 2l7.586 7.586`}),(0,Z.jsx)(`circle`,{cx:`11`,cy:`11`,r:`2`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-percent`,children:[(0,Z.jsx)(`line`,{x1:`19`,y1:`5`,x2:`5`,y2:`19`}),(0,Z.jsx)(`circle`,{cx:`6.5`,cy:`6.5`,r:`2.5`}),(0,Z.jsx)(`circle`,{cx:`17.5`,cy:`17.5`,r:`2.5`})]}
75),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-phone-call`,children:(0,Z.jsx)(`path`,{d:`M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-phone-forwarded`,children:[(0,Z.jsx)(`polyline`,{points:`19 1 23 5 19 9`}),(0,Z.jsx)(`line`,{x1:`15`,y1:`5`,x2:`23`,y2:`5`}),(0,Z.jsx)(`path`,{d:`M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-phone-incoming`,children:[(0,Z.jsx)(`polyline`,{points:`16 2 16 8 22 8`}),(0,Z.jsx)(`line`,{x1:`23`,y1:`1`,x2:`16`,y2:`8`}),(0,Z.jsx)(`path`,{d:`M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-phone-missed`,children:[(0,Z.jsx)(`line`,{x1:`23`,y1:`1`,x2:`17`,y2:`7`}),(0,Z.jsx)(`line`,{x1:`17`,y1:`1`,x2:`23`,y2:`7`}),(0,Z.jsx)(`path`,{d:`M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-pie-chart`,children:[(0,Z.jsx)(`path`,{d:`M21.21 15.89A10 10 0 1 1 8 2.83`}),(0,Z.jsx)(`path`,{d:`M22 12A10 10 0 0 0 12 2v10z`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-play-circle`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`polygon`,{points:`10 8 16 12 10 16 10 8`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-play`,children:(0,Z.jsx)(`polygon`,{points:`5 3 19 12 5 21 5 3`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-plus-circle`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`16`}),(0,Z.jsx)(`line`,{x1:`8`,y1:`12`,x2:`16`,y2:`12`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-plus-square`,children:[(0,Z.jsx)(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,ry:`2`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`16`}),(0,Z.jsx)(`line`,{x1:`8`,y1:`12`,x2:`16`,y2:`12`})]}
75),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-plus`,children:[(0,Z.jsx)(`line`,{x1:`12`,y1:`5`,x2:`12`,y2:`19`}),(0,Z.jsx)(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-pocket`,children:[(0,Z.jsx)(`path`,{d:`M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z`}),(0,Z.jsx)(`polyline`,{points:`8 10 12 14 16 10`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-power`,children:[(0,Z.jsx)(`path`,{d:`M18.36 6.64a9 9 0 1 1-12.73 0`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`2`,x2:`12`,y2:`12`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-printer`,children:[(0,Z.jsx)(`polyline`,{points:`6 9 6 2 18 2 18 9`}),(0,Z.jsx)(`path`,{d:`M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2`}),(0,Z.jsx)(`rect`,{x:`6`,y:`14`,width:`12`,height:`8`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-radio`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`2`}),(0,Z.jsx)(`path`,{d:`M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-refresh-ccw`,children:[(0,Z.jsx)(`polyline`,{points:`1 4 1 10 7 10`}),(0,Z.jsx)(`polyline`,{points:`23 20 23 14 17 14`}),(0,Z.jsx)(`path`,{d:`M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-refresh-cw`,children:[(0,Z.jsx)(`polyline`,{points:`23 4 23 10 17 10`}),(0,Z.jsx)(`polyline`,{points:`1 20 1 14 7 14`}),(0,Z.jsx)(`path`,{d:`M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-repeat`,children:[(0,Z.jsx)(`polyline`,{points:`17 1 21 5 17 9`}),(0,Z.jsx)(`path`,{d:`M3 11V9a4 4 0 0 1 4-4h14`}),(0,Z.jsx)(`polyline`,{points:`7 23 3 19 7 15`}),(0,Z.jsx)(`path`,{d:`M21 13v2a4 4 0 0 1-4 4H3`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-rewind`,children:[(0,Z.jsx)(`polygon`,{points:`11 19 2 12 11 5 11 19`}),(0,Z.jsx)(`polygon`,{points:`22 19 13 12 22 5 22 19`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-rotate-ccw`,children:[(0,Z.jsx)(`polyline`,{points:`1 4 1 10 7 10`}),(0,Z.jsx)(`path`,{d:`M3.51 15a9 9 0 1 0 2.13-9.36L1 10`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-rotate-cw`,children:[(0,Z.jsx)(`polyline`,{points:`23 4 23 10 17 10`}),(0,Z.jsx)(`path`,{d:`M20.49 15a9 9 0 1 1-2.12-9.36L23 10`})]}
75),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-rss`,children:[(0,Z.jsx)(`path`,{d:`M4 11a9 9 0 0 1 9 9`}),(0,Z.jsx)(`path`,{d:`M4 4a16 16 0 0 1 16 16`}),(0,Z.jsx)(`circle`,{cx:`5`,cy:`19`,r:`1`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-save`,children:[(0,Z.jsx)(`path`,{d:`M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z`}),(0,Z.jsx)(`polyline`,{points:`17 21 17 13 7 13 7 21`}),(0,Z.jsx)(`polyline`,{points:`7 3 7 8 15 8`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-scissors`,children:[(0,Z.jsx)(`circle`,{cx:`6`,cy:`6`,r:`3`}),(0,Z.jsx)(`circle`,{cx:`6`,cy:`18`,r:`3`}),(0,Z.jsx)(`line`,{x1:`20`,y1:`4`,x2:`8.12`,y2:`15.88`}),(0,Z.jsx)(`line`,{x1:`14.47`,y1:`14.48`,x2:`20`,y2:`20`}),(0,Z.jsx)(`line`,{x1:`8.12`,y1:`8.12`,x2:`12`,y2:`12`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-search`,children:[(0,Z.jsx)(`circle`,{cx:`11`,cy:`11`,r:`8`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`21`,x2:`16.65`,y2:`16.65`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-send`,children:[(0,Z.jsx)(`line`,{x1:`22`,y1:`2`,x2:`11`,y2:`13`}),(0,Z.jsx)(`polygon`,{points:`22 2 15 22 11 13 2 9 22 2`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-server`,children:[(0,Z.jsx)(`rect`,{x:`2`,y:`2`,width:`20`,height:`8`,rx:`2`,ry:`2`}),(0,Z.jsx)(`rect`,{x:`2`,y:`14`,width:`20`,height:`8`,rx:`2`,ry:`2`}),(0,Z.jsx)(`line`,{x1:`6`,y1:`6`,x2:`6.01`,y2:`6`}),(0,Z.jsx)(`line`,{x1:`6`,y1:`18`,x2:`6.01`,y2:`18`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-settings`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3`}),(0,Z.jsx)(`path`,{d:`M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-share-2`,children:[(0,Z.jsx)(`circle`,{cx:`18`,cy:`5`,r:`3`}),(0,Z.jsx)(`circle`,{cx:`6`,cy:`12`,r:`3`}),(0,Z.jsx)(`circle`,{cx:`18`,cy:`19`,r:`3`}),(0,Z.jsx)(`line`,{x1:`8.59`,y1:`13.51`,x2:`15.42`,y2:`17.49`}),(0,Z.jsx)(`line`,{x1:`15.41`,y1:`6.51`,x2:`8.59`,y2:`10.49`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-share`,children:[(0,Z.jsx)(`path`,{d:`M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8`}),(0,Z.jsx)(`polyline`,{points:`16 6 12 2 8 6`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`2`,x2:`12`,y2:`15`})]}
75),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-shield-off`,children:[(0,Z.jsx)(`path`,{d:`M19.69 14a6.9 6.9 0 0 0 .31-2V5l-8-3-3.16 1.18`}),(0,Z.jsx)(`path`,{d:`M4.73 4.73L4 5v7c0 6 8 10 8 10a20.29 20.29 0 0 0 5.62-4.38`}),(0,Z.jsx)(`line`,{x1:`1`,y1:`1`,x2:`23`,y2:`23`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-shield`,children:(0,Z.jsx)(`path`,{d:`M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-shopping-bag`,children:[(0,Z.jsx)(`path`,{d:`M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z`}),(0,Z.jsx)(`line`,{x1:`3`,y1:`6`,x2:`21`,y2:`6`}),(0,Z.jsx)(`path`,{d:`M16 10a4 4 0 0 1-8 0`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-shopping-cart`,children:[(0,Z.jsx)(`circle`,{cx:`9`,cy:`21`,r:`1`}),(0,Z.jsx)(`circle`,{cx:`20`,cy:`21`,r:`1`}),(0,Z.jsx)(`path`,{d:`M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-shuffle`,children:[(0,Z.jsx)(`polyline`,{points:`16 3 21 3 21 8`}),(0,Z.jsx)(`line`,{x1:`4`,y1:`20`,x2:`21`,y2:`3`}),(0,Z.jsx)(`polyline`,{points:`21 16 21 21 16 21`}),(0,Z.jsx)(`line`,{x1:`15`,y1:`15`,x2:`21`,y2:`21`}),(0,Z.jsx)(`line`,{x1:`4`,y1:`4`,x2:`9`,y2:`9`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-sidebar`,children:[(0,Z.jsx)(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,ry:`2`}),(0,Z.jsx)(`line`,{x1:`9`,y1:`3`,x2:`9`,y2:`21`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-skip-back`,children:[(0,Z.jsx)(`polygon`,{points:`19 20 9 12 19 4 19 20`}),(0,Z.jsx)(`line`,{x1:`5`,y1:`19`,x2:`5`,y2:`5`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-skip-forward`,children:[(0,Z.jsx)(`polygon`,{points:`5 4 15 12 5 20 5 4`}),(0,Z.jsx)(`line`,{x1:`19`,y1:`5`,x2:`19`,y2:`19`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-slack`,children:[(0,Z.jsx)(`path`,{d:`M14.5 10c-.83 0-1.5-.67-1.5-1.5v-5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5z`}),(0,Z.jsx)(`path`,{d:`M20.5 10H19V8.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z`}),(0,Z.jsx)(`path`,{d:`M9.5 14c.83 0 1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5S8 21.33 8 20.5v-5c0-.83.67-1.5 1.5-1.5z`}),(0,Z.jsx)(`path`,{d:`M3.5 14H5v1.5c0 .83-.67 1.5-1.5 1.5S2 16.33 2 15.5 2.67 14 3.5 14z`}),(0,Z.jsx)(`path`,{d:`M14 14.5c0-.83.67-1.5 1.5-1.5h5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-5c-.83 0-1.5-.67-1.5-1.5z`}),(0,Z.jsx)(`path`,{d:`M15.5 19H14v1.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z`}),(0,Z.jsx)(`path`,{d:`M10 9.5C10 8.67 9.33 8 8.5 8h-5C2.67 8 2 8.67 2 9.5S2.67 11 3.5 11h5c.83 0 1.5-.67 1.5-1.5z`}),(0,Z.jsx)(`path`,{d:`M8.5 5H10V3.5C10 2.67 9.33 2 8.5 2S7 2.67 7 3.5 7.67 5 8.5 5z`})]}
75),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-slash`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`line`,{x1:`4.93`,y1:`4.93`,x2:`19.07`,y2:`19.07`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-sliders`,children:[(0,Z.jsx)(`line`,{x1:`4`,y1:`21`,x2:`4`,y2:`14`}),(0,Z.jsx)(`line`,{x1:`4`,y1:`10`,x2:`4`,y2:`3`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`21`,x2:`12`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`3`}),(0,Z.jsx)(`line`,{x1:`20`,y1:`21`,x2:`20`,y2:`16`}),(0,Z.jsx)(`line`,{x1:`20`,y1:`12`,x2:`20`,y2:`3`}),(0,Z.jsx)(`line`,{x1:`1`,y1:`14`,x2:`7`,y2:`14`}),(0,Z.jsx)(`line`,{x1:`9`,y1:`8`,x2:`15`,y2:`8`}),(0,Z.jsx)(`line`,{x1:`17`,y1:`16`,x2:`23`,y2:`16`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-smartphone`,children:[(0,Z.jsx)(`rect`,{x:`5`,y:`2`,width:`14`,height:`20`,rx:`2`,ry:`2`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`18`,x2:`12.01`,y2:`18`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-smile`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`path`,{d:`M8 14s1.5 2 4 2 4-2 4-2`}),(0,Z.jsx)(`line`,{x1:`9`,y1:`9`,x2:`9.01`,y2:`9`}),(0,Z.jsx)(`line`,{x1:`15`,y1:`9`,x2:`15.01`,y2:`9`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-speaker`,children:[(0,Z.jsx)(`rect`,{x:`4`,y:`2`,width:`16`,height:`20`,rx:`2`,ry:`2`}),(0,Z.jsx)(`circle`,{cx:`12`,cy:`14`,r:`4`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`6`,x2:`12.01`,y2:`6`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-square`,children:(0,Z.jsx)(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,ry:`2`})}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-star`,children:(0,Z.jsx)(`polygon`,{points:`12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-stop-circle`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`rect`,{x:`9`,y:`9`,width:`6`,height:`6`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-sun`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`5`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`1`,x2:`12`,y2:`3`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`21`,x2:`12`,y2:`23`}),(0,Z.jsx)(`line`,{x1:`4.22`,y1:`4.22`,x2:`5.64`,y2:`5.64`}),(0,Z.jsx)(`line`,{x1:`18.36`,y1:`18.36`,x2:`19.78`,y2:`19.78`}),(0,Z.jsx)(`line`,{x1:`1`,y1:`12`,x2:`3`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`12`,x2:`23`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`4.22`,y1:`19.78`,x2:`5.64`,y2:`18.36`}),(0,Z.jsx)(`line`,{x1:`18.36`,y1:`5.64`,x2:`19.78`,y2:`4.22`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-sunrise`,children:[(0,Z.jsx)(`path`,{d:`M17 18a5 5 0 0 0-10 0`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`2`,x2:`12`,y2:`9`}),(0,Z.jsx)(`line`,{x1:`4.22`,y1:`10.22`,x2:`5.64`,y2:`11.64`}),(0,Z.jsx)(`line`,{x1:`1`,y1:`18`,x2:`3`,y2:`18`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`18`,x2:`23`,y2:`18`}),(0,Z.jsx)(`line`,{x1:`18.36`,y1:`11.64`,x2:`19.78`,y2:`10.22`}),(0,Z.jsx)(`line`,{x1:`23`,y1:`22`,x2:`1`,y2:`22`}),(0,Z.jsx)(`polyline`,{points:`8 6 12 2 16 6`})]}
75),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-sunset`,children:[(0,Z.jsx)(`path`,{d:`M17 18a5 5 0 0 0-10 0`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`9`,x2:`12`,y2:`2`}),(0,Z.jsx)(`line`,{x1:`4.22`,y1:`10.22`,x2:`5.64`,y2:`11.64`}),(0,Z.jsx)(`line`,{x1:`1`,y1:`18`,x2:`3`,y2:`18`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`18`,x2:`23`,y2:`18`}),(0,Z.jsx)(`line`,{x1:`18.36`,y1:`11.64`,x2:`19.78`,y2:`10.22`}),(0,Z.jsx)(`line`,{x1:`23`,y1:`22`,x2:`1`,y2:`22`}),(0,Z.jsx)(`polyline`,{points:`16 5 12 9 8 5`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-table`,children:(0,Z.jsx)(`path`,{d:`M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-tablet`,children:[(0,Z.jsx)(`rect`,{x:`4`,y:`2`,width:`16`,height:`20`,rx:`2`,ry:`2`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`18`,x2:`12.01`,y2:`18`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-tag`,children:[(0,Z.jsx)(`path`,{d:`M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z`}),(0,Z.jsx)(`line`,{x1:`7`,y1:`7`,x2:`7.01`,y2:`7`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-target`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`6`}),(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`2`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-terminal`,children:[(0,Z.jsx)(`polyline`,{points:`4 17 10 11 4 5`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`19`,x2:`20`,y2:`19`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-thermometer`,children:(0,Z.jsx)(`path`,{d:`M14 14.76V3.5a2.5 2.5 0 0 0-5 0v11.26a4.5 4.5 0 1 0 5 0z`})}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-thumbs-down`,children:(0,Z.jsx)(`path`,{d:`M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17`})}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-thumbs-up`,children:(0,Z.jsx)(`path`,{d:`M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-toggle-left`,children:[(0,Z.jsx)(`rect`,{x:`1`,y:`5`,width:`22`,height:`14`,rx:`7`,ry:`7`}),(0,Z.jsx)(`circle`,{cx:`8`,cy:`12`,r:`3`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-toggle-right`,children:[(0,Z.jsx)(`rect`,{x:`1`,y:`5`,width:`22`,height:`14`,rx:`7`,ry:`7`}),(0,Z.jsx)(`circle`,{cx:`16`,cy:`12`,r:`3`})]}
75),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-tool`,children:(0,Z.jsx)(`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-trash-2`,children:[(0,Z.jsx)(`polyline`,{points:`3 6 5 6 21 6`}),(0,Z.jsx)(`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`}),(0,Z.jsx)(`line`,{x1:`10`,y1:`11`,x2:`10`,y2:`17`}),(0,Z.jsx)(`line`,{x1:`14`,y1:`11`,x2:`14`,y2:`17`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-trash`,children:[(0,Z.jsx)(`polyline`,{points:`3 6 5 6 21 6`}),(0,Z.jsx)(`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-trello`,children:[(0,Z.jsx)(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,ry:`2`}),(0,Z.jsx)(`rect`,{x:`7`,y:`7`,width:`3`,height:`9`}),(0,Z.jsx)(`rect`,{x:`14`,y:`7`,width:`3`,height:`5`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-trending-down`,children:[(0,Z.jsx)(`polyline`,{points:`23 18 13.5 8.5 8.5 13.5 1 6`}),(0,Z.jsx)(`polyline`,{points:`17 18 23 18 23 12`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-trending-up`,children:[(0,Z.jsx)(`polyline`,{points:`23 6 13.5 15.5 8.5 10.5 1 18`}),(0,Z.jsx)(`polyline`,{points:`17 6 23 6 23 12`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-triangle`,children:(0,Z.jsx)(`path`,{d:`M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-truck`,children:[(0,Z.jsx)(`rect`,{x:`1`,y:`3`,width:`15`,height:`13`}),(0,Z.jsx)(`polygon`,{points:`16 8 20 8 23 11 23 16 16 16 16 8`}),(0,Z.jsx)(`circle`,{cx:`5.5`,cy:`18.5`,r:`2.5`}),(0,Z.jsx)(`circle`,{cx:`18.5`,cy:`18.5`,r:`2.5`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-tv`,children:[(0,Z.jsx)(`rect`,{x:`2`,y:`7`,width:`20`,height:`15`,rx:`2`,ry:`2`}),(0,Z.jsx)(`polyline`,{points:`17 2 12 7 7 2`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-twitch`,children:(0,Z.jsx)(`path`,{d:`M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7`})}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-twitter`,children:(0,Z.jsx)(`path`,{d:`M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z`})}
75),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-type`,children:[(0,Z.jsx)(`polyline`,{points:`4 7 4 4 20 4 20 7`}),(0,Z.jsx)(`line`,{x1:`9`,y1:`20`,x2:`15`,y2:`20`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`4`,x2:`12`,y2:`20`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-umbrella`,children:(0,Z.jsx)(`path`,{d:`M23 12a11.05 11.05 0 0 0-22 0zm-5 7a3 3 0 0 1-6 0v-7`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-underline`,children:[(0,Z.jsx)(`path`,{d:`M6 3v7a6 6 0 0 0 6 6 6 6 0 0 0 6-6V3`}),(0,Z.jsx)(`line`,{x1:`4`,y1:`21`,x2:`20`,y2:`21`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-unlock`,children:[(0,Z.jsx)(`rect`,{x:`3`,y:`11`,width:`18`,height:`11`,rx:`2`,ry:`2`}),(0,Z.jsx)(`path`,{d:`M7 11V7a5 5 0 0 1 9.9-1`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-upload-cloud`,children:[(0,Z.jsx)(`polyline`,{points:`16 16 12 12 8 16`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`12`,x2:`12`,y2:`21`}),(0,Z.jsx)(`path`,{d:`M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3`}),(0,Z.jsx)(`polyline`,{points:`16 16 12 12 8 16`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-upload`,children:[(0,Z.jsx)(`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`}),(0,Z.jsx)(`polyline`,{points:`17 8 12 3 7 8`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`3`,x2:`12`,y2:`15`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-user-check`,children:[(0,Z.jsx)(`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2`}),(0,Z.jsx)(`circle`,{cx:`8.5`,cy:`7`,r:`4`}),(0,Z.jsx)(`polyline`,{points:`17 11 19 13 23 9`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-user-minus`,children:[(0,Z.jsx)(`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2`}),(0,Z.jsx)(`circle`,{cx:`8.5`,cy:`7`,r:`4`}),(0,Z.jsx)(`line`,{x1:`23`,y1:`11`,x2:`17`,y2:`11`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-user-plus`,children:[(0,Z.jsx)(`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2`}),(0,Z.jsx)(`circle`,{cx:`8.5`,cy:`7`,r:`4`}),(0,Z.jsx)(`line`,{x1:`20`,y1:`8`,x2:`20`,y2:`14`}),(0,Z.jsx)(`line`,{x1:`23`,y1:`11`,x2:`17`,y2:`11`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-user-x`,children:[(0,Z.jsx)(`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2`}),(0,Z.jsx)(`circle`,{cx:`8.5`,cy:`7`,r:`4`}),(0,Z.jsx)(`line`,{x1:`18`,y1:`8`,x2:`23`,y2:`13`}),(0,Z.jsx)(`line`,{x1:`23`,y1:`8`,x2:`18`,y2:`13`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-user`,children:[(0,Z.jsx)(`path`,{d:`M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2`}),(0,Z.jsx)(`circle`,{cx:`12`,cy:`7`,r:`4`})]}
75),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-users`,children:[(0,Z.jsx)(`path`,{d:`M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2`}),(0,Z.jsx)(`circle`,{cx:`9`,cy:`7`,r:`4`}),(0,Z.jsx)(`path`,{d:`M23 21v-2a4 4 0 0 0-3-3.87`}),(0,Z.jsx)(`path`,{d:`M16 3.13a4 4 0 0 1 0 7.75`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-video-off`,children:[(0,Z.jsx)(`path`,{d:`M16 16v1a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2m5.66 0H14a2 2 0 0 1 2 2v3.34l1 1L23 7v10`}),(0,Z.jsx)(`line`,{x1:`1`,y1:`1`,x2:`23`,y2:`23`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-video`,children:[(0,Z.jsx)(`polygon`,{points:`23 7 16 12 23 17 23 7`}),(0,Z.jsx)(`rect`,{x:`1`,y:`5`,width:`15`,height:`14`,rx:`2`,ry:`2`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-voicemail`,children:[(0,Z.jsx)(`circle`,{cx:`5.5`,cy:`11.5`,r:`4.5`}),(0,Z.jsx)(`circle`,{cx:`18.5`,cy:`11.5`,r:`4.5`}),(0,Z.jsx)(`line`,{x1:`5.5`,y1:`16`,x2:`18.5`,y2:`16`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-volume-1`,children:[(0,Z.jsx)(`polygon`,{points:`11 5 6 9 2 9 2 15 6 15 11 19 11 5`}),(0,Z.jsx)(`path`,{d:`M15.54 8.46a5 5 0 0 1 0 7.07`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-volume-2`,children:[(0,Z.jsx)(`polygon`,{points:`11 5 6 9 2 9 2 15 6 15 11 19 11 5`}),(0,Z.jsx)(`path`,{d:`M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-volume-x`,children:[(0,Z.jsx)(`polygon`,{points:`11 5 6 9 2 9 2 15 6 15 11 19 11 5`}),(0,Z.jsx)(`line`,{x1:`23`,y1:`9`,x2:`17`,y2:`15`}),(0,Z.jsx)(`line`,{x1:`17`,y1:`9`,x2:`23`,y2:`15`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-volume`,children:(0,Z.jsx)(`polygon`,{points:`11 5 6 9 2 9 2 15 6 15 11 19 11 5`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-watch`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`7`}),(0,Z.jsx)(`polyline`,{points:`12 9 12 12 13.5 13.5`}),(0,Z.jsx)(`path`,{d:`M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-wifi-off`,children:[(0,Z.jsx)(`line`,{x1:`1`,y1:`1`,x2:`23`,y2:`23`}),(0,Z.jsx)(`path`,{d:`M16.72 11.06A10.94 10.94 0 0 1 19 12.55`}),(0,Z.jsx)(`path`,{d:`M5 12.55a10.94 10.94 0 0 1 5.17-2.39`}),(0,Z.jsx)(`path`,{d:`M10.71 5.05A16 16 0 0 1 22.58 9`}),(0,Z.jsx)(`path`,{d:`M1.42 9a15.91 15.91 0 0 1 4.7-2.88`}),(0,Z.jsx)(`path`,{d:`M8.53 16.11a6 6 0 0 1 6.95 0`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`20`,x2:`12.01`,y2:`20`})]}
75),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-wifi`,children:[(0,Z.jsx)(`path`,{d:`M5 12.55a11 11 0 0 1 14.08 0`}),(0,Z.jsx)(`path`,{d:`M1.42 9a16 16 0 0 1 21.16 0`}),(0,Z.jsx)(`path`,{d:`M8.53 16.11a6 6 0 0 1 6.95 0`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`20`,x2:`12.01`,y2:`20`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-wind`,children:(0,Z.jsx)(`path`,{d:`M9.59 4.59A2 2 0 1 1 11 8H2m10.59 11.41A2 2 0 1 0 14 16H2m15.73-8.27A2.5 2.5 0 1 1 19.5 12H2`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-x-circle`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,Z.jsx)(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`}),(0,Z.jsx)(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-x-octagon`,children:[(0,Z.jsx)(`polygon`,{points:`7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2`}),(0,Z.jsx)(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`}),(0,Z.jsx)(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-x-square`,children:[(0,Z.jsx)(`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,ry:`2`}),(0,Z.jsx)(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`}),(0,Z.jsx)(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-x`,children:[(0,Z.jsx)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),(0,Z.jsx)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-youtube`,children:[(0,Z.jsx)(`path`,{d:`M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z`}),(0,Z.jsx)(`polygon`,{points:`9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02`})]}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-zap-off`,children:[(0,Z.jsx)(`polyline`,{points:`12.41 6.75 13 2 10.57 4.92`}),(0,Z.jsx)(`polyline`,{points:`18.57 12.91 21 10 15.66 10`}),(0,Z.jsx)(`polyline`,{points:`8 8 3 14 12 14 11 22 16 16`}),(0,Z.jsx)(`line`,{x1:`1`,y1:`1`,x2:`23`,y2:`23`})]}),(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-zap`,children:(0,Z.jsx)(`polygon`,{points:`13 2 3 14 12 14 11 22 21 10 12 10 13 2`})}),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-zoom-in`,children:[(0,Z.jsx)(`circle`,{cx:`11`,cy:`11`,r:`8`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`21`,x2:`16.65`,y2:`16.65`}),(0,Z.jsx)(`line`,{x1:`11`,y1:`8`,x2:`11`,y2:`14`}),(0,Z.jsx)(`line`,{x1:`8`,y1:`11`,x2:`14`,y2:`11`})]}
75),(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`feather feather-zoom-out`,children:[(0,Z.jsx)(`circle`,{cx:`11`,cy:`11`,r:`8`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`21`,x2:`16.65`,y2:`16.65`}),(0,Z.jsx)(`line`,{x1:`8`,y1:`11`,x2:`14`,y2:`11`})]})]});function FH(e){if(typeof e!=`string`)return e;let t=e.trim();if(!t.includes(`var(`))return t;let n,r=0;do n=t,t=t.replace(/var\(\s*[^,)]+\s*,\s*([^)]+)\s*\)/gi,(e,t)=>t.trim()),r++;while(t!==n&&r<24);return t=t.replace(/\/\s*var\(\s*[^)]*\)/gi,`/ 1`),t=t.replace(/var\(\s*--tw-[^)]+\)/gi,`1`),t.trim()}function IH(e){let t=typeof e==`string`?e.trim():``;if(!t||!t.includes(`var(`))return t;try{let e=new q(FH(t));return e.alpha<1?t:e.to(`srgb`).toString({format:`hex`})}catch{return t}}var LH=new Set([`transparent`,`inherit`,`initial`,`unset`,`revert`,`currentcolor`,`none`]);function RH(e){if(!e||typeof e!=`string`)return!0;let t=FH(e),n=t.toLowerCase().trim();if(!n||LH.has(n)||n.startsWith(`var(`))return!0;try{return new q(t).alpha<1}catch{return!0}}function zH(e){let t=[],n=new Set;for(let r of e){if(typeof r!=`string`)continue;let e=r.trim();if(!(!e||RH(e)))try{let r=new q(FH(e)).toString({format:`hex`});if(n.has(r))continue;n.add(r),t.push(e)}catch{continue}}return t}function BH(e){let t=e.trim();if(!t)return[];let n=null;try{n=JSON.parse(t)}catch{try{t.startsWith(`[`)&&(n=Function(`"use strict"; return (${t});`)())}catch{return[]}}return Array.isArray(n)?n.filter(e=>typeof e==`string`).map(e=>e.trim()):[]}function VH(){return`https://api.cssstats.com`}async function HH(e){let t=VH(),n=await fetch(`${t}/v1/colors`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({url:e,render:!1,opacity:!1})});if(!n.ok){let e=await n.text().catch(()=>``);throw Error(e||`CSS Stats request failed (${n.status})`)}let r=await n.json();return Array.isArray(r.colors)?r.colors:[]}function UH(){let e=`#`;for(let t=0;t<6;t++)e+=`0123456789abcdef`[Math.floor(Math.random()*16)];return e}function WH(e){try{return new q(FH(e)).to(`srgb`).toString({format:`hex`})}catch{return`#000000`}}function GH(e,t,n){let r=Math.abs(e);switch(t){case`WCAG21`:return e>=n;default:return r>=n}}function KH(e){try{return e.to(`srgb`).toString({format:`hex`})}catch{try{return e.toString({format:`hex`})}catch{return null}}}function qH(e){let t=[],n=new Set;for(let r of e){let e=typeof r==`string`?r:r?.value;if(!(typeof e!=`string`||!e.trim()))try{let r=new q(FH(e.trim()));if(r.alpha<1)continue;let i=KH(r);if(!i||n.has(i))continue;n.add(i),t.push(i)}catch{continue}}return t}function JH(e){try{return KH(new q(FH(e)))}catch{return null}}function YH(e,t,n){let r=e.length;if(r<2)return[];let i=[];for(let n=0;n<r;n++)for(let a=0;a<r;a++){if(n===a)continue;let r=e[n],o=e[a];try{let e=new q(r).contrast(new q(o),t);i.push({colorPair:[r,o],contrast:e})}catch{continue}}if(!i.length)return[];let a=i.filter(e=>GH(e.contrast,t,n)),o=(e,t)=>{let n=Math.abs(t.contrast)-Math.abs(e.contrast);if(n!==0)return n;let r=`${e.colorPair[0]}|${e.colorPair[1]}`,i=`${t.colorPair[0]}|${t.colorPair[1]}`;return r.localeCompare(i)};return a.length>0?[...a].sort(o):[...i].sort(o)}function XH(e,t,n){let r=e.length;if(r<2)return 0;let i=0;for(let a=0;a<r;a++)for(let o=0;o<r;o++)if(a!==o)try{GH(new q(e[a]).contrast(new q(e[o]),t),t,n)&&i++}catch{continue}return i}function ZH(e){try{return new q(FH(e)).toString({format:`hex`})}catch{return e}}var QH=`f2 fw7 db mb3 mt0`;function $H({open:e,onOpenChange:t,swatches:n,onSwatchesChange:r,useForGenerate:i,onUseForGenerateChange:a,contrastAlgorithm:o,threshold:s}){let c=(0,_.useRef)(null),[l,u]=(0,_.useState)(``),[d,f]=(0,_.useState)(``),[p,m]=(0,_.useState)(!1),[h,g]=(0,_.useState)(``),[v,y]=(0,_.useState)(``),[b,x]=(0,_.useState)(null),[S,C]=(0,_.useState)(`url`);(0,_.useEffect)(()=>{if(!e)return;let n=e=>{e.key===`Escape`&&t(!1)};return window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[e,t]),(0,_.useEffect)(()=>{e&&c.current&&c.current.focus()},[e]);let w=async()=>{let e=l.trim();if(!e){f(`Enter a page URL (https://â¦)`);return}let t=e;/^https?:\/\//i.test(e)||(t=`https://${e}`),m(!0),f(``);try{let e=await HH(t);if(!e.length){f(`No solid colors returned for that URL.`),m(!1);return}r(t=>{let n=new Set(t.map(e=>ZH(e.value))),r=[...t];for(let t of e)if(typeof t==`string`)try{let e=IH(t.trim()),i=ZH(e);if(n.has(i))continue;n.add(i),r.push({id:za(),value:e})}catch{continue}return r}),f(`Merged ${e.length} colors from CSS Stats (deduped by hex).`),a(!0)}catch(e){f(e?.message||`Import failed. Check the URL or try again.`)}finally{m(!1)}},T=()=>{y(``);let e=BH(h);if(!e.length){y(`Could not parse a JS/JSON array of color strings.`);return}let t=zH(e);if(!t.length){y(`No fully opaque colors found (transparent / invali
75d entries removed).`);return}r(e=>{let n=new Set(e.map(e=>ZH(e.value))),r=[...e];for(let e of t)try{let t=IH(e),i=ZH(t);if(n.has(i))continue;n.add(i),r.push({id:za(),value:t})}catch{continue}return r}),y(`Added ${t.length} opaque color(s).`),a(!0)},E=()=>{r(e=>[...e,{id:za(),value:UH()}]),x(null)},D=(e,t)=>{r(n=>n.map(n=>n.id===e?{...n,value:t}:n))},O=e=>{r(t=>t.filter(t=>t.id!==e)),b===e&&x(null)},k=n.find(e=>e.id===b),A=(0,_.useMemo)(()=>qH(n),[n]),j=(0,_.useMemo)(()=>XH(A,o,s),[A,o,s]);return e?(0,Z.jsx)(`div`,{className:`component-palette-modal-overlay fixed flex items-center justify-center p4`,onMouseDown:e=>{e.target===e.currentTarget&&t(!1)},role:`presentation`,children:(0,Z.jsxs)(`div`,{ref:c,tabIndex:-1,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`palette-modal-title`,className:`component-palette-modal theme`,onMouseDown:e=>e.stopPropagation(),children:[(0,Z.jsxs)(`div`,{className:`flex justify-between items-start g4`,children:[(0,Z.jsx)(`h2`,{id:`palette-modal-title`,className:`m0 f4 fw8`,children:`Custom colors`}),(0,Z.jsx)(`button`,{type:`button`,onClick:()=>t(!1),className:`button-reset component-palette-button px3 py2 f2 fw6`,children:`Close`})]}),(0,Z.jsx)(`p`,{className:`component-palette-copy f2 mt3 mb4`,children:`Explore accessible combos from your favorite color palette`}),(0,Z.jsxs)(`label`,{className:`flex items-center g3 f2 mb5`,children:[(0,Z.jsx)(`input`,{type:`checkbox`,checked:n.length<2?!1:i,disabled:n.length<2,onChange:e=>a(e.target.checked)}),`Limit color combo generation to this palette (needs at least 2 colors)`]}),(0,Z.jsx)(`hr`,{className:`component-palette-divider mb4`}),(0,Z.jsx)(`h3`,{className:QH,children:`Import`}),(0,Z.jsxs)(`div`,{role:`tablist`,"aria-label":`Import method`,className:`flex g3 mb4 flex-wrap`,children:[(0,Z.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":S===`url`,id:`palette-import-tab-url`,onClick:()=>C(`url`),className:`button-reset component-palette-button px4 py2 f2 fw6 ${S===`url`?`theme-alt`:``}`.trim(),children:`URL`}),(0,Z.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":S===`js`,id:`palette-import-tab-js`,onClick:()=>C(`js`),className:`button-reset component-palette-button px4 py2 f2 fw6 ${S===`js`?`theme-alt`:``}`.trim(),children:`JS array`})]}),S===`url`?(0,Z.jsxs)(`section`,{role:`tabpanel`,"aria-labelledby":`palette-import-tab-url`,className:`mb5`,children:[(0,Z.jsx)(`p`,{className:`component-palette-help`,children:`CSS Stats â solid colors only. Merges into the palette below.`}),(0,Z.jsxs)(`div`,{className:`flex g3 flex-wrap`,children:[(0,Z.jsx)(`input`,{type:`url`,value:l,onChange:e=>u(e.target.value),placeholder:`https://example.com`,className:`component-palette-field f2`,style:{flex:`1 1 220px`,minWidth:0}}),(0,Z.jsx)(`button`,{type:`button`,disabled:p,onClick:w,className:`button-reset component-palette-button theme-alt px4 py3 f2 fw7`,children:p?`â¦`:`Fetch colors`})]}),d?(0,Z.jsx)(`p`,{className:`component-palette-status mt3 mb0`,children:d}):null]}):(0,Z.jsxs)(`section`,{role:`tabpanel`,"aria-labelledby":`palette-import-tab-js`,className:`mb5`,children:[(0,Z.jsx)(`p`,{className:`component-palette-help`,children:`Rxample [ 'red', white', '#1a1a1a', '#fafafa', 'oklch(0.7 0.12 200)' ]`}),(0,Z.jsx)(`textarea`,{value:h,onChange:e=>g(e.target.value),rows:4,className:`component-palette-field f2 w-100`}),(0,Z.jsx)(`button`,{type:`button`,onClick:T,className:`button-reset component-palette-button theme-alt px4 py3 mt3 f2 fw7`,children:`Add`}),v?(0,Z.jsx)(`p`,{className:`component-palette-status mt3 mb0`,children:v}):null]}),(0,Z.jsx)(`hr`,{className:`component-palette-divider mb4`}),(0,Z.jsxs)(`section`,{children:[(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-baseline justify-between g3 mb3`,children:[(0,Z.jsx)(`h3`,{className:`f2 fw7 mt0 mb0`,children:`Palette`}),(0,Z.jsxs)(`div`,{className:`flex items-center g4 flex-wrap`,children:[(0,Z.jsxs)(`span`,{className:`component-palette-meta f1`,title:n.length>0?`${o} · threshold ${s} · ${A.length} distinct color${A.length===1?``:`s`}`:void 0,children:[n.length,` color`,n.length===1?``:`s`,n.length>0?(0,Z.jsxs)(Z.Fragment,{children:[` · `,A.length<2?(0,Z.jsx)(Z.Fragment,{children:`0 accessible combos`}):(0,Z.jsxs)(Z.Fragment,{children:[j,` accessible combo`,j===1?``:`s`]})]}):null]}),(0,Z.jsx)(`button`,{type:`button`,onClick:()=>{r([]),a(!1),x(null)},className:`button-reset component-palette-button px3 py2 f1 fw6`,children:`Clear all`})]})]}),n.length===0?(0,Z.jsx)(`p`,{className:`component-palette-empty m0 mb4`,children:`Your favorite colors go here...`}):null,(0,Z.jsxs)(`div`,{className:`component-palette-swatch-grid`,children:[n.map(e=>(0,Z.jsx)(`button`,{type:`button`,title:e.value,onClick:()=>x(e.id),className:`button-reset component-palette-swatch ${b===e.id?`component-palette-swatch-active`:``}`.trim(),style:{background:e.value}},e.id)),(0,Z.jsx)(`button`,{type:`button`,onClick:E,title:`Add random color`,className:`button-reset component-palette-swatch component-palette-swatch-add`,children:`+`})]}),k?(0,Z.jsxs)(`div`,{className:`component-palette-editor mt4`,children:[(0,Z.jsx)(Pa,{color:WH(k.value),onChange:e=>D(k.id,e),style:{width:`100%`,maxWidth:`260px`}}),(0,Z.jsx)(`input`,{type:`text`,value:k.value,onChange:e=>D(k.id,e.target.value),className:`component-palette-field f2`}),(0,Z.jsx)(`button`,{type:`button`,onClick:()=>O(k.id),className:`button-reset component-palette-button px3 py2 f2 fw6 justify-self-start`,children:`Delete swatch`})]}):null]})]})}):null}var eU=_.createContext(void 0);function tU(){let e=_.useContext(eU);if(e===void 0)throw Error(ec(10));return e}var nU={value:()=>null},rU=_.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,hiddenUntilFound:a,keepMounted:o,loopFocus:s=!0,onValueChange:c,multiple:l=!1,orientation:u=`vertical`,value:d,defaultValue:f,style:p,...m}=e,h=Ud(),g=_.useMemo(()=>
75{if(d===void 0)return f??[]},[d,f]),v=_.useRef([]),[y,b]=_l({controlled:d,default:g,name:`Accordion`,state:`value`}),x=Y((e,t)=>{let n=Fs(os);if(!l){let t=y[0]===e?[]:[e];if(c?.(t,n),n.isCanceled)return;b(t)}else if(t){let t=y.slice();if(t.push(e),c?.(t,n),n.isCanceled)return;b(t)}else{let t=y.filter(t=>t!==e);if(c?.(t,n),n.isCanceled)return;b(t)}}),S=_.useMemo(()=>({value:y,disabled:i,orientation:u}),[y,i,u]),C=_.useMemo(()=>({accordionItemRefs:v,direction:h,disabled:i,handleValueChange:x,hiddenUntilFound:a??!1,keepMounted:o??!1,loopFocus:s,orientation:u,state:S,value:y}),[h,i,x,a,o,s,u,S,y]),w=X(`div`,e,{state:S,ref:t,props:[{dir:h,role:`region`},m],stateAttributesMapping:nU});return(0,Z.jsx)(eU.Provider,{value:C,children:(0,Z.jsx)(Pd,{elementsRef:v,children:w})})});function iU(e){let{open:t,defaultOpen:n,onOpenChange:r,disabled:i}=e,[a,o]=_l({controlled:t,default:n,name:`Collapsible`,state:`open`}),{mounted:s,setMounted:c,transitionStatus:l}=hl(a,!0,!0),u=Qs(),[d,f]=_.useState(),p=d??u,m=Y(e=>{let t=!a,n=Fs(ss,e.nativeEvent);r(t,n),!n.isCanceled&&o(t)});return _.useMemo(()=>({disabled:i,handleTrigger:m,mounted:s,open:a,panelId:p,setMounted:c,setOpen:o,setPanelIdState:f,transitionStatus:l}),[i,m,s,a,p,c,o,f,l])}var aU=_.createContext(void 0);function oU(){let e=_.useContext(aU);if(e===void 0)throw Error(ec(15));return e}var sU=_.createContext(void 0);function cU(){let e=_.useContext(sU);if(e===void 0)throw Error(ec(9));return e}var lU=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=Ls.startingStyle]=`startingStyle`,e[e.endingStyle=Ls.endingStyle]=`endingStyle`,e}({}),uU=function(e){return e.panelOpen=`data-panel-open`,e}({}),dU={[lU.open]:``},fU={[lU.closed]:``},pU={open(e){return e?{[uU.panelOpen]:``}:null}},mU={open(e){return e?dU:fU}},hU=function(e){return e.index=`data-index`,e.disabled=`data-disabled`,e.open=`data-open`,e}({}),gU={...mU,index:e=>Number.isInteger(e)?{[hU.index]:String(e)}:null,...Bs,value:()=>null},_U=_.forwardRef(function(e,t){let{className:n,disabled:r=!1,onOpenChange:i,render:a,value:o,style:s,...c}=e,{ref:l,index:u}=Rc(),d=_o(t,l),{disabled:f,handleValueChange:p,state:m,value:h}=tU(),g=Qs(),v=o??g,y=r||f,b=_.useMemo(()=>{if(!h)return!1;for(let e=0;e<h.length;e+=1)if(h[e]===v)return!0;return!1},[h,v]),x=Y((e,t)=>
75{i?.(e,t),!t.isCanceled&&p(v,e)}),S=iU({open:b,onOpenChange:x,disabled:y}),C=_.useMemo(()=>({open:S.open,disabled:S.disabled,transitionStatus:S.transitionStatus}),[S.open,S.disabled,S.transitionStatus]),w=_.useMemo(()=>({...S,onOpenChange:x,state:C}),[S,C,x]),T=_.useMemo(()=>({...m,hidden:!b&&!S.mounted,index:u,disabled:y,open:b}),[S.mounted,y,u,b,m]),E=Qs(),[D,O]=_.useState(E),k=_.useMemo(()=>({open:b,state:T,setTriggerId:O,triggerId:D}),[b,T,O,D]),A=X(`div`,e,{state:T,ref:d,props:c,stateAttributesMapping:gU});return(0,Z.jsx)(aU.Provider,{value:w,children:(0,Z.jsx)(sU.Provider,{value:k,children:A})})}),vU=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{state:o}=cU();return X(`h3`,e,{state:o,ref:t,props:a,stateAttributesMapping:gU})});function yU(e){let{current:t}=e,n=[];for(let e=0;e<t.length;e+=1){let r=t[e];if(!Rd(r)){let e=r?.querySelector(`[type="button"], [role="button"]`);e&&!Rd(e)&&n.push(e)}}return n}var bU=_.forwardRef(function(e,t){let{disabled:n,className:r,id:i,render:a,nativeButton:o=!0,style:s,...c}=e,{panelId:l,open:u,handleTrigger:d,disabled:f}=oU(),{getButtonProps:p,buttonRef:m}=jc({disabled:n??f,focusableWhenDisabled:!0,native:o,composite:!0}),{accordionItemRefs:h,direction:g,loopFocus:_,orientation:v}=tU(),y=g===`rtl`,b=v===`horizontal`,{state:x,setTriggerId:S,triggerId:C}=cU();return J(()=>(i&&S(i),()=>{S(void 0)}),[i,S]),X(`button`,e,{state:x,ref:[t,m],props:[{"aria-controls":u?l:void 0,"aria-expanded":u,id:C,tabIndex:0,onClick:d,onKeyDown(e){if(!Ed.has(e.key))return;Zl(e);let t=yU(h),n=t.length-1,r=-1,i=t.indexOf(e.currentTarget);function a(){r=_?i+1>n?0:i+1:Math.min(i+1,n)}function o(){r=_&&i===0?n:i-1}switch(e.key){case hd:b||a();break;case md:b||o();break;case _d:b&&(y?o():a());break;case gd:b&&(y?a():o());break;case`Home`:r=0;break;case`End`:r=n;break;default:break}r>-1&&t[r].focus()}},c,p],stateAttributesMapping:pU})}),xU={height:void 0,width:void 0};function SU(e){let{externalRef:t,hiddenUntilFound:n,id:r,keepMounted:i,mounted:a,onOpenChange:o,open:s,setMounted:c,setOpen:l,transitionStatus:u}=e,d=_.useRef(null),f=_.useRef(null),[p,m]=_.useState(xU),h=_.useRef(xU),g=_.useRef(!1),v=_.useRef(s),y=_.useRef(!1),[b,x]=_.useState(!1),S=_.useRef(null),C=_o(t,d),w=tf({mounted:a,open:s}),T=pl(d,!1,!1),E=!s&&!a,D=b?`idle`:u,O=s&&(v.current||y.current),k=!s&&a&&f.current===`css-animation`&&p.height===void 0&&p.width===void 0?h.current:p,A=n&&E&&f.current!==`css-animation`,j=Y((e,t=!0)=>{t&&(h.current=e),m(e)}),M=Y(()=>{S.current?.(),S.current=null}),N=Y(e=>{M(),S.current=()=>{S.current=null,e()}}),P=Y(()=>{s&&a&&f.current===`css-animation`&&(y.current=!0)});J(()=>{!b||u===`starting`||x(!1)},[b,u]),_.useEffect(()=>()=>{P(),M()},[P,M]),J(()=>{let e=d.current;if(!e)return;!s&&S.current&&M();let t=wU(e,O);if(f.current=t,s&&u===`idle`&&v.current&&t===`css-animation`){h.current=CU(e);return}if(s&&u===`starting`){let n=g.current;if(g.current=!1,t===`none`){j(CU(e)),x(!0);return}if(t===`css-transition`){let t=DU(e);return j(CU(e)),n?(N(EU(e,`transition-duration`,`0s`)),x(!0),t):t}if(t===`css-animation`){if(j(CU(e)),!n){EU(e,`animation-name`,`none`)();return}let t=EU(e,`animation-name`,`none`),r=EU(e,`animation-duration`,`0s`);t(),N(r),x(!0);return}}if(!s&&a&&(u===`idle`||u===`starting`)){if(t===`none`){j(xU,!1),c(!1);return}t===`css-animation`&&(v.current=!1,y.current=!1),j(CU(e));return}if(u!==`ending`)return;if(t===`none`){c(!1);return}let n=CU(e);if(!((n.height??0)>0||(n.width??0)>0)){c(!1);return}j(n),t===`css-animation`&&EU(e,`animation-name`,`none`)()},[a,s,M,j,c,N,O,u]),ml({enabled:s&&a&&D===`idle`,open:!0,ref:d,onComplete(){s&&j(xU,!1)}}),_.useEffect(()=>{if(s||!a||D!==`ending`||!d.current)return;let e=new AbortController,t=-1;function n(){w.current.open||(c(!1),j(xU,!1))}return t=ll.request(()=>{e.signal.aborted||T(n,e.signal)}),()=>{ll.cancel(t),e.abort()}},[w,a,s,D,T,j,c]),J(()=>{let e=d.current;!e||!n||!E||e.setAttribute(`hidden`,`until-found`)},[E,n]),_.useEffect(function(){let e=d.current;if(!e)return;function t(e){g.current=!0,l(!0),o(!0,Fs(os,e))}return wf(e,`beforematch`,t)},[o,l]);let F=i||n||a||s;return{height:k.height,props:{...A?{[lU.startingStyle]:``}:void 0,hidden:E,id:r},ref:C,shouldPreventOpenAnimation:O,shouldRender:F,transitionStatus:D,width:k.width}}function CU(e){return{height:e.scrollHeight,width:e.scrollWidth}}function wU(e,t=!1){let n=Io(e).getComputedStyle(e),r=(n.animationName.split(`,`).map(e=>e.trim()).some(e=>e!==``&&e!==`none`)||t)&&TU(n.animationDuration),i=TU(n.transitionDuration);return r&&i||i?`css-transition`:r?`css-animation`:`none`}function TU(e){return e.split(`,`).map(e=>e.trim()).some(e=>e!==``&&Number.parseFloat(e)>0)}function EU(e,t,n){let r=e.style.getPropertyValue(t),i=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{if(r===``){e.style.removeProperty(t);return}e.style.setProperty(t,r,i)}}function DU(e){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(t=>{e.style.setProperty(t,`initial`,`important`)});function n(){Object.entries(t).forEach(([t,n])=>{if(n===``){e.style.removeProperty(t);return}e.style.setProperty(t,n)})}let r=ll.request(n);return()=>{ll.cancel(r),n()}}var OU=function(e){return e.accordionPanelHeight=`--accordion-panel-height`,e.accordionPanelWidth=`--accordion-panel-width`,e}({}),kU=_.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:i,id:a,render:o,style:s,...c}=e,{hiddenUntilFound:l,keepMounted:u}=tU(),{mounted:d,onOpenChange:f,open:p,panelId:m,setMounted:h,setOpen:g,setPanelIdState:_,transitionStatus:v}
75=oU(),y=r??l,b=i??u;J(()=>{if(a)return _(a),()=>{_(void 0)}},[a,_]);let{height:x,props:S,ref:C,shouldPreventOpenAnimation:w,shouldRender:T,transitionStatus:E,width:D}=SU({externalRef:t,hiddenUntilFound:y,id:a??m,keepMounted:b,mounted:d,onOpenChange:f,open:p,setMounted:h,setOpen:g,transitionStatus:v}),{state:O,triggerId:k}=cU(),A={...O,transitionStatus:E},j=sc(s,A),M=X(`div`,{...e,style:void 0},{state:A,ref:C,props:[S,{"aria-labelledby":k,role:`region`,style:{[OU.accordionPanelHeight]:x===void 0?`auto`:`${x}px`,[OU.accordionPanelWidth]:D===void 0?`auto`:`${D}px`}},c,j?{style:j}:void 0,w?{style:{animationName:`none`}}:void 0],stateAttributesMapping:gU});return T?M:null});function AU(e){let{store:t,parentContext:n,actionsRef:r,isDrawer:i}=e,a=t.useState(`open`);gh(t,a),ph(t);let{forceUnmount:o}=mh(a,t),s=_.useCallback(()=>{t.setOpen(!1,Fs(Ns))},[t]);return _.useImperativeHandle(r,()=>({unmount:o,close:s}),[o,s]),{parentContext:n,isDrawer:i}}function jU({store:e,dialogRoot:t}){let{parentContext:n,isDrawer:r}=t,i=e.useState(`open`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),c=e.useState(`floatingRootContext`),[l,u]=_.useState(0),[d,f]=_.useState(0),p=l===0,m=Rp(c,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0||`touches`in t&&t.touches.length!==1)return!1;let n=Bl(t);if(p&&!a){let t=n;return o&&(e.context.internalBackdropRef.current||e.context.backdropRef.current)?e.context.internalBackdropRef.current===t||e.context.backdropRef.current===t||zl(t,s)&&!t?.hasAttribute(`data-base-ui-portal`):!0}return!1},escapeKey:p});return b_(i&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(e,t)=>{u(e),f(t)}),e.useContextCallback(`onNestedDialogClose`,()=>{u(0),f(0)}),_.useEffect(()=>(n?.onNestedDialogOpen&&i&&n.onNestedDialogOpen(l+1,d+ +!!r),n?.onNestedDialogClose&&!i&&n.onNestedDialogClose(),()=>{n?.onNestedDialogClose&&i&&n.onNestedDialogClose()}),[r,i,l,d,n]),hh(e,{activeTriggerProps:m.reference??No,inactiveTriggerProps:m.trigger??No,popupProps:_.useMemo(()=>lc(ch,m.floating),[m.floating]),nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var MU=_.createContext(!1),NU=_.createContext(void 0);function PU(e){let t=_.useContext(NU);if(e===!1&&t===void 0)throw Error(ec(27));return t}var FU={...Eh,modal:Q(e=>e.modal),nested:Q(e=>e.nested),nestedOpenDialogCount:Q(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:Q(e=>e.nestedOpenDrawerCount),disablePointerDismissal:Q(e=>e.disablePointerDismissal),openMethod:Q(e=>e.openMethod),descriptionElementId:Q(e=>e.descriptionElementId),titleElementId:Q(e=>e.titleElementId),viewportElement:Q(e=>e.viewportElement),role:Q(e=>e.role)},IU=class e extends Sf{constructor(e,t,n=!1){let r=new _h,i=LU(e);i.floatingRootContext=bh(r,t,n),super(i,{popupRef:_.createRef(),backdropRef:_.createRef(),internalBackdropRef:_.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:r,onOpenChange:void 0,onOpenChangeComplete:void 0},FU)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e};dh(n,e,t.trigger),this.update(n)};static useStore(t,n){return lh(t,(t,r)=>new e(n,t,r),!0).store}};function LU(e={}){return{...yh(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function RU(e,t=`dialog`){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=e,p=t===`drawer`,m=t===`alert-dialog`,h=m?!0:c,g=m||s,v=m?`alertdialog`:`dialog`,y=PU(!0),b={modal:h,disablePointerDismissal:g,nested:!!y,role:v},x=IU.useStore(u?.store,{open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...b});$d(()=>{let e=r===void 0&&x.state.open===!1&&i===!0?{open:!0,activeTriggerId:f}:null;m?x.update(e?{...b,...e}:b):e&&x.update(e)}),x.useControlledProp(`openProp`,r),x.useControlledProp(`triggerIdProp`,d),x.useSyncedValues(b),x.useContextCallback(`onOpenChange`,a),x.useContextCallback(`onOpenChangeComplete`,o);let S=x.useState(`open`),C=x.useState(`mounted`),w=x.useState(`payload`),T=A
75U({store:x,actionsRef:l,parentContext:y?.store.context,isDrawer:p}),E=S||C,D=_.useMemo(()=>({store:x}),[x]);return(0,Z.jsx)(MU.Provider,{value:!1,children:(0,Z.jsxs)(NU.Provider,{value:D,children:[E&&(0,Z.jsx)(jU,{store:x,dialogRoot:T}),typeof n==`function`?n({payload:w}):n]})})}function zU(e){return RU(e,`alert-dialog`)}var BU={...Rg,...Bs},VU=_.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,{store:s}=PU(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return X(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:BU,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),HU=_.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,{store:c}=PU(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=jc({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,Fs(fs,e.nativeEvent))}return X(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),UU=_.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=PU(),c=Qs(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),X(`p`,e,{ref:t,props:[{id:c},o]})}),WU=function(e){return e.nestedDialogs=`--nested-dialogs`,e}({}),GU=function(e){return e[e.open=kg.open]=`open`,e[e.closed=kg.closed]=`closed`,e[e.startingStyle=kg.startingStyle]=`startingStyle`,e[e.endingStyle=kg.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),KU=_.createContext(void 0);function qU(){let e=_.useContext(KU);if(e===void 0)throw Error(ec(26));return e}var JU={...Rg,...Bs,nestedDialogOpen(e){return e?{[GU.nestedDialogOpen]:``}:null}},YU=_.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,{store:c}=PU(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`),C=s.id??S;qU(),ml({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});function w(e){return e===`touch`?c.context.popupRef.current:!0}let T=o===void 0?w:o,E=g>0,D=c.useStateSetter(`popupElement`),O=X(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:E},props:[f,{id:C,"aria-labelledby":y??void 0,"aria-describedby":l??void 0,role:x,...ch,hidden:!m,onKeyDown(e){Ed.has(e.key)&&e.stopPropagation()},style:{[WU.nestedDialogs]:g}},s],ref:[t,c.context.popupRef,D],stateAttributesMapping:JU});return(0,Z.jsx)(Ap,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:T,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:O})}),XU=_.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=PU(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,Z.jsx)(KU.Provider,{value:n,children:(0,Z.jsxs)(fp,{ref:t,...r,children:[a&&o===!0&&(0,Z.jsx)(s_,{ref:i.context.internalBackdropRef,inert:Yg(!s)}),e.children]})}):null}),ZU=_.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{store:s}=PU(),c=Qs(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),X(`h2`,e,{ref:t,props:[{id:c},o]})}),QU=_.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,id:s,payload:c,handle:l,...u}=e,d=PU(!0),f=l?.store??d?.store;if(!f)throw Error(ec(79));let p=Qs(s),m=f.useState(`floatingRootContext`),h=f.useState(`isOpenedByTrigger`,p),g=f.useState(`triggerPopupId`,p),v=_.useRef(null),{registerTrigger:y,isMountedByThisTrigger:b}=fh(p,v,f,{payload:c}),{getButtonProps:x,buttonRef:S}=jc({disabled:a,native:o}),C=jp(m,{enabled:m!=null}),w=vg(()=>f.select(`open`),e=>{f.set(`openMethod`,e)}),T={disabled:a,open:h},E=f.useState(`triggerProps`,b);return X(`button`,e,{state:T,ref:[S,t,y,v],props:[C.reference,E,w,{[ep]:``,id:p,"aria-haspopup":`dialog`,"aria-expanded":h,"aria-controls":g},u,x],stateAttributesMapping:Ig})}),$U=QU,eW=_.createContext(void 0),tW=_.createContext(void 0),nW=_.createContext(void 0),rW=_.createContext(``);function iW(){let e=_.useContext(eW);if(!e)throw Error(ec(22));return e}function aW(){let e=_.useContext(tW);if(!e)throw Error(ec(23));return e}function oW(){let e=_.useContext(nW);if(!e)throw Error(ec(24));return e}function sW(){return _.useContext(rW)}var cW={id:Q(e=>e.id),labelId:Q(e=>e.labelId),items:Q(e=>e.items),selectedValue:Q(e=>e.selectedValue),hasSelectionChips:Q(e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0}),hasSelectedValue:Q(e=>{let{selectedValue:t,selectionMode:n}=e;return t==null?!1:n===`multiple`&&Array.isArray(t)?t.length>0:!0}),hasNullItemLabel:Q((e,t)=>
75t?dg(e.items):!1),open:Q(e=>e.open),mounted:Q(e=>e.mounted),forceMounted:Q(e=>e.forceMounted),inline:Q(e=>e.inline),activeIndex:Q(e=>e.activeIndex),selectedIndex:Q(e=>e.selectedIndex),isActive:Q((e,t)=>e.activeIndex===t),isSelected:Q((e,t)=>{let n=e.isItemEqualToValue,r=e.selectedValue;return Array.isArray(r)?r.some(e=>og(t,e,n)):og(t,r,n)}),transitionStatus:Q(e=>e.transitionStatus),popupProps:Q(e=>e.popupProps),inputProps:Q(e=>e.inputProps),triggerProps:Q(e=>e.triggerProps),itemProps:Q(e=>e.itemProps),positionerElement:Q(e=>e.positionerElement),listElement:Q(e=>e.listElement),triggerElement:Q(e=>e.triggerElement),inputElement:Q(e=>e.inputElement),inputGroupElement:Q(e=>e.inputGroupElement),popupSide:Q(e=>e.popupSide),openMethod:Q(e=>e.openMethod),inputInsidePopup:Q(e=>e.inputInsidePopup),inputOwnsFormValue:Q(e=>e.inputOwnsFormValue),selectionMode:Q(e=>e.selectionMode),name:Q(e=>e.name),form:Q(e=>e.form),disabled:Q(e=>e.disabled),readOnly:Q(e=>e.readOnly),required:Q(e=>e.required),grid:Q(e=>e.grid),virtualized:Q(e=>e.virtualized),itemToStringLabel:Q(e=>e.itemToStringLabel),isItemEqualToValue:Q(e=>e.isItemEqualToValue),modal:Q(e=>e.modal),autoHighlight:Q(e=>e.autoHighlight),submitOnItemClick:Q(e=>e.submitOnItemClick)};function lW(e,t){return(n,r)=>{if(n==null)return!1;let i=fg(n,t);return e.contains(i,r)}}function uW(e,t,n){return(r,i)=>{if(r==null)return!1;if(!i)return!0;let a=fg(r,t),o=n==null?``:fg(n,t);return o&&e.contains(o,i)&&o.length===i.length?!0:e.contains(a,i)}}var dW=new Map;function fW(e={}){let t={usage:`search`,sensitivity:`base`,ignorePunctuation:!0,...e},n=`${pW(e.locale)}|${JSON.stringify(t)}`,r=dW.get(n);if(r)return r;let i=new Intl.Collator(e.locale,t),a={contains(e,t,n){if(!t)return!0;let r=fg(e,n);for(let e=0;e<=r.length-t.length;e+=1)if(i.compare(r.slice(e,e+t.length),t)===0)return!0;return!1},startsWith(e,t,n){if(!t)return!0;let r=fg(e,n);return i.compare(r.slice(0,t.length),t)===0},endsWith(e,t,n){if(!t)return!0;let r=fg(e,n),a=t.length;return r.length>=a&&i.compare(r.slice(r.length-a),t)===0}};return dW.set(n,a),a}function pW(e){return Array.isArray(e)?e.map(e=>pW(e)).join(`,`):e==null?``:String(e)}var mW=fW,hW=Symbol(`none`),gW={value:hW,index:-1};function _W(e){let{id:t,onOpenChangeComplete:n,defaultSelectedValue:r=null,selectedValue:i,onSelectedValueChange:a,defaultInputValue:o,inputValue:s,open:c,defaultOpen:l=!1,selectionMode:u=`none`,onItemHighlighted:d,name:f,form:p,disabled:m=!1,readOnly:h=!1,required:g=!1,inputRef:v,grid:y=!1,items:b,filteredItems:x,filter:S,openOnInputClick:C=!0,autoHighlight:w=!1,keepHighlight:T=!1,highlightItemOnHover:E=!0,loopFocus:D=!0,itemToStringLabel:O,itemToStringValue:k,isItemEqualToValue:A=ag,virtualized:j=!1,inline:M=!1,fillInputOnItemPress:N=!0,modal:P=!1,limit:F=-1,autoComplete:I=`list`,formAutoComplete:L,locale:R,submitOnItemClick:z=!1}=e,{clearErrors:B}=Yd(),{setDirty:V,validityData:H,shouldValidateOnChange:U,setFilled:ee,name:W,disabled:te,setTouched:ne,setFocused:re,validationMode:ie,validation:ae}=Uc(),G=Ud(),oe=Zc({id:t}),K=mW({locale:R}),[se,ce]=_.useState(!1),[le,ue]=_.useState(null),de=_.useRef([]),fe=_.useRef([]),pe=_.useRef(null),me=_.useRef(null),he=_.useRef(null),ge=_.useRef(null),_e=_.useRef(null),ve=_.useRef(!0),ye=_.useRef(!1),be=_.useRef(null),xe=_.useRef(null),Se=_.useRef(null),Ce=_.useRef(gW),we=_.useRef(null),Te=_.useRef([]),Ee=_.useRef([]),De=te||m,Oe=W??f,ke=u===`multiple`,Ae=u===`single`,je=s!==void 0||o!==void 0,Me=b!==void 0,Ne=x!==void 0,Pe;Pe=w===`always`?`always`:w?`input-change`:!1;let[Fe,Ie]=_l({controlled:i,default:ke?r??Mo:r,name:`Combobox`,state:`selectedValue`}),Le=_.useMemo(()=>S===null?()=>!0:S===void 0?Ae&&!se?uW(K,O,Fe):lW(K,O):S,[S,Ae,Fe,se,K,O]),Re=go(()=>je?o??``:Ae?fg(Fe,O):``).current,[ze,Be]=_l({controlled:s,default:Re,name:`Combobox`,state:`inputValue`}),[Ve,He]=_l({controlled:c,default:l,name:`Combobox`,state:`open`}),Ue=ug(b),We=le??(ze===``?``:String(ze).trim()),Ge=Ae?fg(Fe,O):``,Ke=Ae&&!se&&We!==``&&Ge!==``&&Ge.length===We.length&&K.contains(Ge,We),qe=Ke?``:We,Je=Me&&Ne&&Ke,Ye=_.useMemo(()=>b?Ue?b.flatMap(e=>e.items):b:Mo,[b,Ue]),Xe=_.useMemo(()=>
75{if(x&&!Je)return x;if(!b)return Mo;if(Ue){let e=b,t=[],n=0;for(let r of e){if(F>-1&&n>=F)break;let e=qe===``?r.items:r.items.filter(e=>Le(e,qe,O));if(e.length===0)continue;let i=F>-1?F-n:1/0,a=e.slice(0,i);if(a.length>0){let e={...r,items:a};t.push(e),n+=a.length}}return t}if(qe===``)return F>-1?Ye.slice(0,F):Ye;let e=[];for(let t of Ye){if(F>-1&&e.length>=F)break;Le(t,qe,O)&&e.push(t)}return e},[x,Je,b,Ue,qe,F,Le,O,Ye]),Ze=_.useMemo(()=>Ue?Xe.flatMap(e=>e.items):Xe,[Xe,Ue]),Qe=go(()=>new xf({id:oe,labelId:void 0,selectedValue:Fe,open:Ve,filter:Le,query:We,items:b,selectionMode:u,listRef:de,labelsRef:fe,popupRef:pe,emptyRef:_e,inputRef:me,startDismissRef:he,endDismissRef:ge,keyboardActiveRef:ve,chipsContainerRef:be,clearRef:xe,valuesRef:Te,allValuesRef:Ee,selectionEventRef:Se,name:Oe,form:p,disabled:De,readOnly:h,required:g,grid:y,isGrouped:Ue,virtualized:j,openOnInputClick:C,itemToStringLabel:O,isItemEqualToValue:A,modal:P,autoHighlight:Pe,submitOnItemClick:z,hasInputValue:je,mounted:!1,forceMounted:!1,transitionStatus:`idle`,inline:M,activeIndex:null,selectedIndex:null,popupProps:{},inputProps:{},triggerProps:{},itemProps:No,positionerElement:null,listElement:null,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:u===`none`,onOpenChangeComplete:n||jo,setOpen:jo,setInputValue:jo,setSelectedValue:jo,setIndices:jo,onItemHighlighted:jo,handleSelection:jo,forceMount:jo,requestSubmit:jo})).current,$e=u===`none`?ze:Fe,et=_.useMemo(()=>u===`none`?$e:Array.isArray(Fe)?Fe.map(e=>pg(e,k)):pg(Fe,k),[$e,k,u,Fe]),tt=Y(d),nt=Y(n),rt=$(Qe,cW.activeIndex),it=$(Qe,cW.selectedIndex),at=$(Qe,cW.positionerElement),ot=$(Qe,cW.listElement),st=$(Qe,cW.triggerElement),ct=$(Qe,cW.inputElement),lt=$(Qe,cW.inputGroupElement),ut=$(Qe,cW.inline),dt=$(Qe,cW.inputInsidePopup),ft=$(Qe,cW.inputOwnsFormValue),pt=tf(st),{mounted:mt,setMounted:ht,transitionStatus:gt}=hl(Ve),{openMethod:_t,triggerProps:vt}=yg(Ve),yt=Y(()=>et);Gd(dt?pt:me,oe,$e,yt);let bt=Y(()=>{b?fe.current=Ze.map(e=>fg(e,O)):Qe.set(`forceMounted`,!0)}),xt=_.useRef(Fe);J(()=>{Fe!==xt.current&&bt()},[bt,Fe]);let St=Y(e=>{Qe.update(e);let t=e.type||`none`;if(e.activeIndex!==void 0)if(e.activeIndex===null)Ce.current!==gW&&(Ce.current=gW,tt(void 0,Is(t,void 0,{index:-1})));else{let n=Te.current[e.activeIndex];Ce.current={value:n,index:e.activeIndex},tt(n,Is(t,void 0,{index:e.activeIndex}))}}),Ct=Y((t,n)=>{if(ye.current=n.reason===vs,e.onInputValueChange?.(t,n),!n.isCanceled){if(n.reason===`input-change`){let e=n.event,r=e.inputType;if(e.type===`compositionend`||r!=null&&r!==``&&r!==`insertReplacementText`){let e=t.trim()!==``;e&&ce(!0),we.current={hasQuery:e},e&&Pe&&Qe.state.activeIndex==null&&Qe.set(`activeIndex`,0)}}Be(t)}}),wt=Y((t,n)=>{if(Ve!==t&&(n.reason===`escape-key`&&Me&&Ze.length===0&&!Qe.state.emptyRef.current&&n.allowPropagation(),e.onOpenChange?.(t,n),!n.isCanceled&&(t&&ke&&dt&&!ut&&le!==null&&(ce(!1),ue(null),ze!==``&&Ct(``,Fs(vs,n.event))),!t&&se&&(Ae?(ut||ue(We),We===``&&ce(!1)):ke&&(ut||ue(We),dt&&St({activeIndex:null}),(!dt||ut)&&Ct(``,Fs(vs,n.event)))),He(t),!t&&dt&&(n.reason===`focus-out`||n.reason===`outside-press`)&&(ne(!0),re(!1),ie===`onBlur`)))){let e=u===`none`?ze:Fe;ae.commit(e)}}),Tt=Y((e,t)=>{a?.(e,t),!t.isCanceled&&(Ie(e),(u===`none`&&pe.current&&N||Ae&&!Qe.state.inputInsidePopup)&&Ct(fg(e,O),Fs(t.reason,t.event)),Ae&&e!=null&&t.reason!==`input-change`&&se&&!ut&&ue(We))}),Et=Y((e,t)=>{let n=t;if(n===void 0){if(rt===null)return;n=Te.current[rt]}let r=Bl(e),i=Se.current??e;Se.current=null;let a=Fs(ds,i),o=r?.closest(`a`)?.getAttribute(`href`);if(o){o.startsWith(`#`)&&wt(!1,a);return}if(ke){let e=Array.isArray(Fe)?Fe:[];if(Tt(sg(e,n,Qe.state.isItemEqualToValue)?lg(e,n,Qe.state.isItemEqualToValue):[...e,n],a),!(me.current&&me.current.value.trim()!==``))return;Qe.state.inputInsidePopup?Ct(``,Fs(vs,a.event)):wt(!1,a)}else Tt(n,a),wt(!1,a)}),Dt=Y(()=>{if(!Qe.state.submitOnItemClick)return;let e=ae.inputRef.current?.form??Qe.state.inputElement?.form;e&&typeof e.requestSubmit==`function`&&e.requestSubmit()}),Ot=Y(()=>{if(ht(!1),nt?.(!1),ce(!1),ue(null),St(u===`none`?{activeIndex:null,selectedIndex:null}:{activeIndex:null}),ke&&me.current&&me.current.value!==``&&!ye.current&&Ct(``,Fs(vs)),Ae)if(Qe.state.inputInsidePopup)me.current&&me.current.value!==``&&Ct(``,Fs(vs));else{let e=fg(Fe,O);me.current&&me.current.value!==e&&Ct(e,Fs(e===``?vs:os))}}),kt=_.useMemo(()=>ut&&at?{current:at.closest(`[role="dialog"]`)}:pe,[ut,at]);ml({enabled:!e.actionsRef,open:Ve,ref:kt,onComplete(){Ve||Ot()}}),_.useImperativeHandle(e.actionsRef,()=>({unmount:Ot}),[Ot]),J(function(){if(Ve||u===`none`)return;let e=b?Ye:Ee.current;if(ke){let t=Array.isArray(Fe)?Fe:[],n=t[t.length-1],r=cg(e,n,A);St({selectedIndex:r===-1?null:r})}else{let t=cg(e,Fe,A);St({selectedIndex:t===-1?null:t})}},[Ve,Fe,b,u,Ye,ke,A,St]),J(()=>{b&&(Te.current=Ze,de.current.length=Ze.length)},[b,Ze]),J(()=>{let e=we.current;if(e&&(e.hasQuery?Pe&&Qe.set(`activeIndex`,0):Pe===`always`&&Qe.set(`activeIndex`,0),we.current=null),!Ve&&!ut)return;let t=Me||Ne?Ze:Te.current,n=Qe.state.activeIndex;if(n==null){if(Pe===`always`&&t.length>0){Qe.set(`activeIndex`,0);return}Ce.current!==gW&&(Ce.current=gW,Qe.state.onItemHighlighted(void 0,Is(os,void 0,{index:-1})));return}if(n>=t.length){Ce.current!==gW&&(Ce.current=gW,Qe.state.onItemHighlighted(void 0,Is(os,void 0,{index:-1}))),Qe.set(`activeIndex`,null);return}let r=t[n],i=Ce.current.value,a=i!==hW&&og(r,i,Qe.state.isItemEqualToValue);(Ce.current.index!==n||!a)&&(Ce.current={value:r,index:n},Qe.state.onItemHighlighted(r,Is(os,void 0,{index:n})))},[rt,Pe,Ne,Me,Ze,ut,Ve,Qe]),J(()=>{if(u===`none`){ee(String(ze)!==``);return}ee(ke?Array.isArray(Fe)&&Fe.length>0:Fe!=null)},[ee,u,ze,Fe,ke]),_.useEffect(()=>
75{Me&&Pe&&Ze.length===0&&St({activeIndex:null})},[Me,Pe,Ze.length,St]),Xd(We,()=>{!Ve||We===``||We===String(Re)||ce(!0)}),Xd(Fe,()=>{if(u!==`none`&&(B(Oe),V(Fe!==H.initialValue),U()?ae.commit(Fe):ae.commit(Fe,!0),Ae&&!je&&!dt)){let e=fg(Fe,O);ze!==e&&Ct(e,Fs(os))}}),Xd(ze,()=>{u===`none`&&(B(Oe),V(ze!==H.initialValue),U()?ae.commit(ze):ae.commit(ze,!0))}),Xd(b,()=>{if(!Ae||je||dt||se)return;let e=fg(Fe,O);ze!==e&&Ct(e,Fs(os))});let At=Dh({open:ut?!0:Ve,onOpenChange:wt,elements:{reference:dt?st:ct,floating:at}}),jt,Mt;ut||(jt=y?`grid`:`listbox`,Mt=Ve?`true`:`false`);let Nt=_.useMemo(()=>{let e=ct?.tagName===`INPUT`,t=ct==null||e,n=t||Ve,r=t?{autoComplete:`off`,spellCheck:`false`,autoCorrect:`off`,autoCapitalize:`none`}:{};return n&&(r.role=`combobox`,r[`aria-expanded`]=Mt,r[`aria-haspopup`]=jt,r[`aria-controls`]=Ve?ot?.id:void 0,r[`aria-autocomplete`]=I),{reference:r,floating:{role:`presentation`}}},[ct,Ve,Mt,jt,ot?.id,I]),Pt=jp(At,{enabled:!h&&!De&&C,event:`mousedown-only`,toggle:!1,touchOpenDelay:dt?0:100,reason:xs}),Ft=Rp(At,{enabled:!h&&!De&&!ut,outsidePressEvent:{mouse:`sloppy`,touch:`intentional`},bubbles:ut?!0:void 0,outsidePress(e){let t=Bl(e);return!zl(st,t)&&!zl(xe.current,t)&&!zl(be.current,t)&&!zl(lt,t)}}),It=Gh(At,{enabled:!h&&!De,id:oe,listRef:de,activeIndex:rt,selectedIndex:it,virtual:!0,loopFocus:D,allowEscape:D&&!Pe,focusItemOnOpen:se||u===`none`&&!Pe?!1:`auto`,focusItemOnHover:E,resetOnPointerLeave:!T,cols:y?2:1,orientation:y?`horizontal`:void 0,rtl:G===`rtl`,disabledIndices:Mo,onNavigate(e,t){!t&&!Ve||gt===`ending`||St(t?{activeIndex:e,type:ve.current?`keyboard`:`pointer`}:{activeIndex:e})}}),Lt=_.useMemo(()=>lc(It.reference,Ft.reference,Pt.reference,Nt.reference),[It.reference,Ft.reference,Pt.reference,Nt.reference]),Rt=_.useMemo(()=>lc(ch,It.floating,Ft.floating,Nt.floating),[It.floating,Ft.floating,Nt.floating]),zt=_.useMemo(()=>{let e=It.item;return e?{...e,onFocus:void 0}:No},[It.item]);$d(()=>{Qe.update({inline:M,popupProps:Rt,inputProps:Lt,triggerProps:vt,itemProps:zt,setOpen:wt,setInputValue:Ct,setSelectedValue:Tt,setIndices:St,onItemHighlighted:tt,handleSelection:Et,forceMount:bt,requestSubmit:Dt})}),J(()=>{Qe.update({id:oe,selectedValue:Fe,open:Ve,mounted:mt,transitionStatus:gt,items:b,inline:M,popupProps:Rt,inputProps:Lt,triggerProps:vt,openMethod:_t,itemProps:zt,selectionMode:u,name:Oe,form:p,disabled:De,readOnly:h,required:g,grid:y,isGrouped:Ue,virtualized:j,onOpenChangeComplete:nt,openOnInputClick:C,itemToStringLabel:O,modal:P,autoHighlight:Pe,isItemEqualToValue:A,submitOnItemClick:z,hasInputValue:je,requestSubmit:Dt,inputOwnsFormValue:u===`none`&&(M||!Qe.state.inputInsidePopup)})},[Qe,oe,Fe,Ve,mt,gt,b,Rt,Lt,zt,_t,vt,u,Oe,De,h,g,ae,y,Ue,j,nt,C,O,P,A,z,je,M,Dt,Pe,p]);let Bt=_o(v,ae.inputRef),Vt=_.useMemo(()=>({query:We,hasItems:Me,filteredItems:Xe,flatFilteredItems:Ze}),[We,Me,Xe,Ze]),Ht=_.useMemo(()=>Array.isArray($e)?``:pg($e,k),[$e,k]),Ut=ke&&Array.isArray(Fe)&&Fe.length>0,Wt=ke||u===`none`&&ft?void 0:Oe,Gt=_.useMemo(()=>!ke||!Array.isArray(Fe)||!Oe?null:Fe.map(e=>{let t=pg(e,k);return(0,Z.jsx)(`input`,{type:`hidden`,form:p,name:Oe,value:t},t)}),[ke,Fe,p,Oe,k]),Kt=(0,Z.jsxs)(_.Fragment,{children:[e.children,(0,Z.jsx)(`input`,{...ae.getInputValidationProps({onFocus(){if(dt){st?.focus();return}(me.current||st)?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||De||h){e.preventBaseUIHandler?.();return}let t=e.currentTarget.value,n=Fs(os,e.nativeEvent);function r(){if(ke)return;if(u===`none`){V(t!==H.initialValue),Ct(t,n),U()&&ae.commit(t);return}let e=Te.current.find(e=>pg(e,k).toLowerCase()===t.toLowerCase()||fg(e,O).toLowerCase()===t.toLowerCase());e!=null&&(V(e!==H.initialValue),Tt?.(e,n),U()&&ae.commit(e))}b?r():(bt(),queueMicrotask(r))}}),id:oe&&Wt==null?`${oe}-hidden-input`:void 0,form:p,name:Wt,autoComplete:L,disabled:De,required:g&&!Ut,readOnly:h,value:Ht,ref:Bt,style:Wt?Ao:ko,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),Gt]});return(0,Z.jsx)(eW.Provider,{value:Qe,children:(0,Z.jsx)(tW.Provider,{value:At,children:(0,Z.jsx)(nW.Provider,{value:Vt,children:(0,Z.jsx)(rW.Provider,{value:ze,children:Kt})})})})}function vW(e){let{openOnInputClick:t=!1,value:n,defaultValue:r,onValueChange:i,mode:a=`list`,itemToStringValue:o,...s}=e,c=a===`inline`||a===`both`,l=a===`inline`||a===`none`,u=n!==void 0,[d,f]=_.useState(r??``),[p,m]=_.useState(``);_.useEffect(()=>{u&&m(``)},[n,u]);let h;h=c&&p!==``?p:u?n??``:d;let g=mW(),v=_.useMemo(()=>s.filter===void 0?g.contains:s.filter,[s.filter,g]),y=String(u?n:d).trim(),b=_.useMemo(()=>
75a===`both`?v===null?null:(e,t,n)=>v(e,y,n):l?null:v,[v,a,y,l]);function x(e,t){m(``),u||f(e),i?.(e,t)}function S(t,n){e.onItemHighlighted?.(t,n),n.reason!==`pointer`&&m(c?t==null?``:fg(t,o):``)}return(0,Z.jsx)(_W,{...s,itemToStringLabel:o,openOnInputClick:t,selectionMode:`none`,fillInputOnItemPress:!0,filter:b,autoComplete:a,inputValue:h,defaultInputValue:r,onInputValueChange:x,onItemHighlighted:S})}var yW={...Lg,...Gs,popupSide:e=>e?{"data-popup-side":e}:null,listEmpty:e=>e?{"data-list-empty":``}:null},bW=2,xW=_.forwardRef(function(e,t){let{render:n,className:r,nativeButton:i=!0,disabled:a=!1,id:o,style:s,...c}=e,{state:l,disabled:u,setTouched:d,setFocused:f,validationMode:p,validation:m}=Uc(),{labelId:h}=qc(),g=iW(),{filteredItems:v}=oW(),y=$(g,cW.selectionMode),b=$(g,cW.disabled),x=$(g,cW.readOnly),S=$(g,cW.required),C=$(g,cW.mounted),w=$(g,cW.popupSide),T=$(g,cW.positionerElement),E=$(g,cW.listElement),D=$(g,cW.triggerProps),O=$(g,cW.triggerElement),k=$(g,cW.inputInsidePopup),A=$(g,cW.id),j=$(g,cW.labelId),M=$(g,cW.open),N=$(g,cW.selectedValue),P=$(g,cW.activeIndex),F=$(g,cW.selectedIndex),I=$(g,cW.hasSelectedValue),L=aW(),R=sW(),z=Of(),B=u||b||a,V=v.length===0,H=C&&T?w:null;Zc({id:k?o:void 0});let U=k?o??A:o,ee=Og(h,j),W=_.useRef(``);function te(e){W.current=e.pointerType}let ne=L.useState(`domReferenceElement`);_.useEffect(()=>{k&&O&&O!==ne&&L.set(`domReferenceElement`,O)},[O,ne,L,k]);let{reference:re}=Kh(L,{enabled:!M&&!x&&!b&&y===`single`,listRef:g.state.labelsRef,activeIndex:P,selectedIndex:F,onMatch(e){let t=g.state.valuesRef.current[e];t!==void 0&&g.state.setSelectedValue(t,Fs(`none`))}}),{reference:ie}=jp(L,{enabled:!x&&!b,event:`mousedown`}),{buttonRef:ae,getButtonProps:G}=jc({native:i,disabled:B}),oe={...l,open:M,disabled:B,popupSide:H,listEmpty:V,placeholder:y===`none`?!1:!I};return X(`button`,e,{ref:[t,ae,Y(e=>{g.set(`triggerElement`,e)})],state:oe,props:[D,ie,re,{id:U,tabIndex:k?0:-1,role:k?`combobox`:void 0,"aria-expanded":M?`true`:`false`,"aria-haspopup":k?`dialog`:`listbox`,"aria-controls":M?E?.id:void 0,"aria-required":k&&S||void 0,"aria-labelledby":ee,onPointerDown:te,onPointerEnter:te,onFocus(){f(!0),!(B||x)&&z.start(0,g.state.forceMount)},onBlur(e){if(!zl(T,e.relatedTarget)&&(d(!0),f(!1),p===`onBlur`)){let e=y===`none`?R:N;m.commit(e)}},onMouseDown(e){if(B||x||(k||L.set(`domReferenceElement`,e.currentTarget),g.state.forceMount(),W.current!==`touch`&&(g.state.inputRef.current?.focus(),k||e.preventDefault()),M))return;let t=as(e.currentTarget);function n(e){if(!O)return;let t=Bl(e),n=g.state.positionerElement,r=g.state.listElement;if(zl(O,t)||zl(n,t)||zl(r,t)||t===O)return;let i=zg(O),a=e.clientX>=i.left-bW&&e.clientX<=i.right+bW,o=e.clientY>=i.top-bW&&e.clientY<=i.bottom+bW;a&&o||g.state.setOpen(!1,Fs(`cancel-open`,e))}k&&t.addEventListener(`mouseup`,n,{once:!0})},onKeyDown(e){B||x||(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(Zl(e),g.state.setOpen(!0,Fs(Ts,e.nativeEvent)),g.state.inputRef.current?.focus())}},m?m.getValidationProps(c):c,G],stateAttributesMapping:yW})}),SW=_.createContext(void 0);function CW(){return _.useContext(SW)}var wW=_.createContext(void 0);function TW(e){let t=_.useContext(wW);if(t===void 0&&!e)throw Error(ec(21));return t}var EW=_.forwardRef(function(e,t){let n=iW(),{buttonRef:r,getButtonProps:i}=jc({native:!1}),a=_o(t,r);function o(e){n.state.setOpen(!1,Fs(fs,e.nativeEvent,e.currentTarget))}return(0,Z.jsx)(`span`,{ref:a,...i({onClick:o}),"aria-label":`Dismiss`,tabIndex:void 0,style:Ao})}),DW=_.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,id:a,style:o,...s}=e,{state:c,disabled:l,setTouched:u,setFocused:d,validationMode:f,validation:p}=Uc(),{labelId:m}=qc(),h=CW(),g=!!TW(!0),v=iW(),{filteredItems:y}=oW(),b=sW(),x=Ud(),S=$(v,cW.required),C=$(v,cW.disabled),w=$(v,cW.readOnly),T=$(v,cW.name),E=$(v,cW.form),D=$(v,cW.selectionMode),O=$(v,cW.autoHighlight),k=$(v,cW.inputProps),A=$(v,cW.triggerProps),j=$(v,cW.open),M=$(v,cW.mounted),N=$(v,cW.selectedValue),P=$(v,cW.popupSide),F=$(v,cW.positionerElement),I=$(v,cW.id),L=$(v,cW.inline),R=$(v,cW.modal),z=!!O,B=M&&F?P:null,V=l||C||i,H=y.length===0,U=g||L,ee=!U||R,W=Qs(a??(U?void 0:I)),te=Og(m,void 0),ne=g?Us:c,[re,ie]=_.useState(null),ae=_.useRef(!1),G=_.useRef(null),oe=_.useRef(!1),K=D===`none`&&!g,se=Y(e=>{let t=g||v.state.inline;t&&!v.state.hasInputValue&&v.state.setInputValue(``,Fs(os)),v.update({inputElement:e,inputInsidePopup:t,inputOwnsFormValue:K})}),ce=g||!p?s:p.getValidationProps(s),le={...ne,open:j,disabled:V,readOnly:w,popupSide:B,listEmpty:H};function ue(e){if(!h)return;let t,{highlightedChipIndex:n}=h,r=h.chipsRef.current.length,i=x===`rtl`,a=i?`ArrowRight`:`ArrowLeft`,o=i?`ArrowLeft`:`ArrowRight`;if(n!==void 0){if(e.key===a)e.preventDefault(),t=n>0?n-1:void 0;else if(e.key===o)e.preventDefault(),t=n<r-1?n+1:void 0;else if(e.key===`Backspace`||e.key===`Delete`){e.preventDefault();let r=n>=N.length-1?N.length-2:n;t=r>=0?r:void 0,v.state.setIndices({activeIndex:null,selectedIndex:null,type:`keyboard`})}return t}return e.key===a&&(e.currentTarget.selectionStart??0)===0&&N.length>0?(e.preventDefault(),t=r>0?r-1:void 0):e.key===`Backspace`&&e.currentTarget.value===``&&N.length>0&&(v.state.setIndices({activeIndex:null,selectedIndex:null,type:`keyboard`}),e.preventDefault()),t}let de=X(`input`,e,{state:le,ref:[t,v.state.inputRef,se],props:[k,A,{type:`text`,value:e.value??re??b,"aria-readonly":w||void 0,"aria-required":S||void 0,"aria-labelledby":te,disabled:V,readOnly:w,required:D===`none`?S:void 0,form:E,...K&&T&&{name:T},id:W,onFocus(){if(d(!0),!L||!oe.current)return;oe.current=!1;let e=G.current;e==null||!Object.hasOwn(v.state.valuesRef.current,e)||v.state.setIndices({activeIndex:e})},onBlur(){u(!0),d(!1);let e=v.state.activeIndex;if(L&&e!==null&&O!==`always`&&(G.current=e,oe.current=!0,v.state.setIndices({activeIndex:null})),f===`onBlur`){let e=D===`none`?b:N;p.commit(e)}},onCompositionStart(e){El||(ae.current=!0,ie(e.currentTarget.value))},onCompositionEnd(e){ae.current=!1;let t=e.currentTarget.value;ie(null),v.state.setInputValue(t,Fs(_s,e.nativeEvent))},onChange(e){let t=e.nativeEvent.inputType,n=!t||t===`insertReplacementText`,r=ae.current||!n;if(ae.current){let t=e.currentTarget.value;
75ie(t),t===``&&!v.state.openOnInputClick&&!v.state.inputInsidePopup&&v.state.setOpen(!1,Fs(vs,e.nativeEvent));let n=t.trim(),i=z&&n!==``;!w&&!V&&n&&r&&(v.state.setOpen(!0,Fs(_s,e.nativeEvent)),z||v.state.setIndices({activeIndex:null,selectedIndex:null,type:v.state.keyboardActiveRef.current?`keyboard`:`pointer`})),j&&v.state.activeIndex!==null&&!i&&v.state.setIndices({activeIndex:null,selectedIndex:null,type:v.state.keyboardActiveRef.current?`keyboard`:`pointer`});return}v.state.setInputValue(e.currentTarget.value,Fs(_s,e.nativeEvent));let i=e.currentTarget.value===``,a=Fs(vs,e.nativeEvent);i&&!v.state.inputInsidePopup&&(D===`single`&&v.state.setSelectedValue(null,a),v.state.openOnInputClick||v.state.setOpen(!1,a));let o=e.currentTarget.value.trim();!w&&!V&&o&&r&&(v.state.setOpen(!0,Fs(_s,e.nativeEvent)),z||v.state.setIndices({activeIndex:null,selectedIndex:null,type:v.state.keyboardActiveRef.current?`keyboard`:`pointer`})),j&&v.state.activeIndex!==null&&!z&&v.state.setIndices({activeIndex:null,selectedIndex:null,type:v.state.keyboardActiveRef.current?`keyboard`:`pointer`})},onKeyDown(e){if(V||w||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;v.state.keyboardActiveRef.current=!0;let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,r=x===`rtl`;if(e.key===`Home`){Zl(e);let n=wl&&r?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if(e.key===`End`){Zl(e);let i=wl&&r?0:t.value.length;t.setSelectionRange(i,i),t.scrollLeft=r?-n:n;return}if(!M&&e.key===`Escape`){let t=D===`multiple`&&Array.isArray(N)?N.length===0:N===null,n=Fs(Cs,e.nativeEvent),r=D===`multiple`?[]:null;v.state.setInputValue(``,n),v.state.setSelectedValue(r,n),!t&&!v.state.inline&&!n.isPropagationAllowed&&e.stopPropagation();return}if(h&&e.key===`Backspace`&&t.value===``&&h.highlightedChipIndex===void 0&&Array.isArray(N)&&N.length>0){let t=h.chipsRef.current.length,n=t>0?t-1:N.length-1,r=N.filter((e,t)=>t!==n);v.state.setIndices({activeIndex:null,selectedIndex:null,type:v.state.keyboardActiveRef.current?`keyboard`:`pointer`}),v.state.setSelectedValue(r,Fs(os,e.nativeEvent));return}let i=h?.highlightedChipIndex!==void 0,a=ue(e);if(h?.setHighlightedChipIndex(a),a===void 0?i&&v.state.inputRef.current?.focus():h?.chipsRef.current[a]?.focus(),e.which!==229&&e.key===`Enter`&&j){let t=v.state.activeIndex,n=e.nativeEvent;if(t===null){if(L)return;v.state.setOpen(!1,Fs(os,n));return}Zl(e);let r=v.state.listRef.current[t];r&&(v.state.selectionEventRef.current=n,r.click(),v.state.selectionEventRef.current=null)}},onPointerMove(){v.state.keyboardActiveRef.current=!1},onPointerDown(){v.state.keyboardActiveRef.current=!1}},ce],stateAttributesMapping:yW}),fe=g?(0,Z.jsx)(Hc.Provider,{value:Vc,children:de}):de;return(0,Z.jsxs)(_.Fragment,{children:[j&&ee&&(0,Z.jsx)(EW,{ref:v.state.startDismissRef}),fe]})}),OW=_.createContext(null);function kW(){return _.useContext(OW)}function AW(e){let{children:t}=e,{filteredItems:n}=oW(),r=kW(),i=r?r.items:n;return i?(0,Z.jsx)(_.Fragment,{children:i.map(t)}):null}var jW=_.forwardRef(function(e,t){var n;let{render:r,className:i,style:a,children:o,...s}=e,c=iW(),l=aW(),u=!!TW(!0),{filteredItems:d,hasItems:f}=oW(),p=$(c,cW.selectionMode),m=$(c,cW.grid),h=$(c,cW.popupProps),g=$(c,cW.virtualized),v=p===`multiple`,y=d.length===0,b=Y(e=>{c.set(`positionerElement`,e)}),x=Y(e=>{c.set(`listElement`,e)}),S=_.useMemo(()=>typeof o==`function`?n||=(0,Z.jsx)(AW,{children:o}):o,[o]),C={empty:y},w=l.useState(`floatingId`),T=X(`div`,e,{state:C,ref:[t,x,u?null:b],props:[h,{children:S,tabIndex:-1,id:w,role:m?`grid`:`listbox`,"aria-multiselectable":v?`true`:void 0,onKeyDown(e){if(!(c.state.disabled||c.state.readOnly)&&e.key===`Enter`){let t=c.state.activeIndex;if(t==null)return;Zl(e);let n=e.nativeEvent,r=c.state.listRef.current[t];r&&(c.state.selectionEventRef.current=n,r.click(),c.state.selectionEventRef.current=null)}},onKeyDownCapture(){c.state.keyboardActiveRef.current=!0},onPointerMoveCapture(){c.state.keyboardActiveRef.current=!1}},s]});return g?T:(0,Z.jsx)(Pd,{elementsRef:c.state.listRef,labelsRef:f?void 0:c.state.labelsRef,children:T})}),MW=`â `;function NW(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=null;for(;t.nextNode();){let e=t.currentNode;e.nodeValue!==``&&(n=e)}return n}function PW(){let e=Of(),t=_.useRef(null);return _.useEffect(()=>{if(Cl)return;let n=t.current;if(n==null)return;let r=NW(n);if(r==null)return;
75let i=r.nodeValue??``,a=`${i}${MW}`;return r.nodeValue=a,e.start(200,()=>{r.nodeValue===a&&(r.nodeValue=i)}),()=>{e.clear(),r.nodeValue===a&&(r.nodeValue=i)}},[t,e]),t}var FW=_.createContext(void 0);function IW(){let e=_.useContext(FW);if(e===void 0)throw Error(ec(20));return e}var LW=_.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=iW(),a=$(i,cW.mounted),o=$(i,cW.forceMounted);return a||n||o?(0,Z.jsx)(FW.Provider,{value:n,children:(0,Z.jsx)(fp,{ref:t,...r})}):null}),RW=_.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=ap,style:g,..._}=e,v=iW(),{filteredItems:y}=oW(),b=aW(),x=IW(),S=$(v,cW.modal),C=$(v,cW.open),w=$(v,cW.mounted),T=$(v,cW.openMethod),E=$(v,cW.positionerElement),D=$(v,cW.triggerElement),O=$(v,cW.inputElement),k=$(v,cW.inputGroupElement),A=$(v,cW.inputInsidePopup),j=$(v,cW.transitionStatus),M=y.length===0,N=r_({anchor:i??(A?D:k??O),floatingRootContext:b,positionMethod:a,mounted:w,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m,keepMounted:x,collisionAvoidance:h,lazyFlip:!0});S_(C&&S,T===`touch`,E,D);let P={open:C,side:N.side,align:N.align,anchorHidden:N.anchorHidden,empty:M};J(()=>{v.set(`popupSide`,N.side)},[v,N.side]);let F=Y(e=>{v.set(`positionerElement`,e)}),I=d_(e,P,{styles:N.positionerStyles,transitionStatus:j,props:_,refs:[t,F],hidden:!w,inert:!C});return(0,Z.jsxs)(wW.Provider,{value:N,children:[w&&S&&(0,Z.jsx)(s_,{inert:Yg(!C),cutout:k??O??D}),I]})}),zW={...Rg,...Bs},BW=_.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=iW(),l=TW(),u=aW(),{filteredItems:d}=oW(),f=$(c,cW.mounted),p=$(c,cW.open),m=$(c,cW.openMethod),h=$(c,cW.transitionStatus),g=$(c,cW.inputInsidePopup),v=$(c,cW.inputElement),y=$(c,cW.modal),b=d.length===0;ml({open:p,ref:c.state.popupRef,onComplete(){p&&c.state.onOpenChangeComplete(!0)}});let x=X(`div`,e,{state:{open:p,side:l.side,align:l.align,anchorHidden:l.anchorHidden,transitionStatus:h,empty:b},ref:[t,c.state.popupRef],props:[{role:g?`dialog`:`presentation`,tabIndex:-1,onFocus(e){let t=Bl(e.nativeEvent);m!==`touch`&&(zl(c.state.listElement,t)||t===e.currentTarget)&&c.state.inputRef.current?.focus()}},u_(h),s],stateAttributesMapping:zW}),S=a===void 0?g?e=>e===`touch`?c.state.popupRef.current:v:!1:a,C;C=o??(g?void 0:!1);let w=!g||y;return(0,Z.jsx)(Ap,{context:u,disabled:!f,modal:w,openInteractionType:m,initialFocus:S,returnFocus:C,getInsideElements:()=>[c.state.startDismissRef.current,c.state.endDismissRef.current],children:(0,Z.jsxs)(_.Fragment,{children:[x,w&&(0,Z.jsx)(EW,{ref:c.state.endDismissRef})]})})}),VW=_.createContext(void 0),HW=_.createContext(!1);function UW(){return _.useContext(HW)}var WW=_.memo(_.forwardRef(function(e,t){let{render:n,className:r,style:i,value:a=null,index:o,disabled:s=!1,nativeButton:c=!1,...l}=e,u=_.useRef(!1),d=_.useRef(null),f=Rc({index:o,textRef:d,indexGuessBehavior:Lc.GuessFromOrder}),p=iW(),m=UW(),{flatFilteredItems:h,hasItems:g}=oW(),v=$(p,cW.open),y=$(p,cW.selectionMode),b=$(p,cW.readOnly),x=$(p,cW.virtualized),S=$(p,cW.isItemEqualToValue),C=y!==`none`,w=o??(x?cg(h,a,S):f.index),T=f.index!==-1,E=$(p,cW.id),D=$(p,cW.isActive,w),O=$(p,cW.isSelected,a),k=$(p,cW.itemProps),A=_.useRef(null),j=E!=null&&T?`${E}-${w}`:void 0,M=O&&C;J(()=>{if(!(T&&(x||o!=null)))return;let e=p.state.listRef.current;return e[w]=A.current,()=>{delete e[w]}},[T,x,w,o,p]),J(()=>{if(!T||g)return;let e=p.state.valuesRef.current;return e[w]=a,y!==`none`&&p.state.allValuesRef.current.push(a),()=>{delete e[w]}},[T,g,w,a,p,y]),J(()=>{if(!v){u.current=!1;return}if(!T||g)return;let e=p.state.selectedValue;og(a,Array.isArray(e)?e[e.length-1]:e,S)&&p.set(`selectedIndex`,w)},[T,g,v,p,w,a,S]);let{getButtonProps:N,buttonRef:P}=jc({disabled:s,focusableWhenDisabled:!0,native:c,composite:!0}),F={disabled:s,selected:M,highlighted:D};function I(e){function t(){p.state.handleSelection(e,a)}p.state.submitOnItemClick?(fl.flushSync(t),p.state.requestSubmit()):t()}let L={id:j,role:m?`gridcell`:`option`,"aria-selected":C?M:void 0,tabIndex:void 0,onPointerDownCapture(e){u.current=!0,e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){s||b||I(e.nativeEvent)},onMouseUp(e){let t=u.current;u.current=!1,!(s||b||e.button!==0||t||!D)&&I(e.nativeEvent)}},R=X(`div`,e,{ref:[P,t,f.ref,A],state:F,props:[k,L,l,N]}),z=_.useMemo(()=>({selected:M,textRef:d}),[M,d]);return(0,Z.jsx)(VW.Provider,{value:z,children:R})})),GW=WW,KW=_.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,{filteredItems:s}=oW(),c=iW(),l=PW(),u=s.length===0?a:null;return X(`div`,e,{ref:[t,c.state.emptyRef,l],props:[{children:u,role:`status`,"aria-live":`polite`,"aria-atomic":!0},o]})}),qW=_.createContext(void 0);function JW(){let e=_.useContext(qW);if(e===void 0)throw Error(ec(13));return e}var YW={imageLoadingStatus:()=>null},XW=_.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,[o,s]=_.useState(`idle`),c={imageLoadingStatus:o},l=_.useMemo(()=>({imageLoadingStatus:o,setImageLoadingStatus:s}),[o,s]),u=X(`span`,e,{state:c,ref:t,props:a,stateAttributesMapping:YW});return(0,Z.jsx)(qW.Provider,{value:l,children:u})});function ZW(e,{referrerPolicy:t,crossOrigin:n}){let[r,i]=_.useState(`idle`);return J(()=>{if(!e)return i(`error`),jo;let r=!0,a=new window.Image,o=e=>()=>{r&&i(e)};return i(`loading`),a.onload=o(`loaded`),a.onerror=o(`error`),t&&(a.referrerPolicy=t),a.crossOrigin=n??null,a.src=e,a.complete&&i(a.naturalWi
75dth>0?`loaded`:`error`),()=>{r=!1}},[e,n,t]),r}var QW={...YW,...Bs},$W=_.forwardRef(function(e,t){let{className:n,render:r,onLoadingStatusChange:i,referrerPolicy:a,crossOrigin:o,style:s,...c}=e,l=JW(),u=ZW(e.src,{referrerPolicy:a,crossOrigin:o}),d=u===`loaded`,{mounted:f,transitionStatus:p,setMounted:m}=hl(d),h=_.useRef(null),g=Y(e=>{i?.(e),l.setImageLoadingStatus(e)});J(()=>{u!==`idle`&&g(u)},[u,g]),ml({open:d,ref:h,onComplete(){d||m(!1)}});let v=X(`img`,e,{state:{imageLoadingStatus:u,transitionStatus:p},ref:[t,h],props:c,stateAttributesMapping:QW,enabled:f});return f?v:null}),eG=_.forwardRef(function(e,t){let{className:n,render:r,delay:i,style:a,...o}=e,{imageLoadingStatus:s}=JW(),[c,l]=_.useState(i===void 0),u=Of();return _.useEffect(()=>(i!==void 0&&u.start(i,()=>l(!0)),u.clear),[u,i]),X(`span`,e,{state:{imageLoadingStatus:s},ref:t,props:o,stateAttributesMapping:YW,enabled:s!==`loaded`&&c})}),tG=_.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{getButtonProps:l,buttonRef:u}=jc({disabled:i,focusableWhenDisabled:a,native:o});return X(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})}),nG=[];function rG(e){let{allValues:t=nG,value:n=nG,onValueChange:r}=e,i=_.useRef(n),a=_.useRef(new Map),[o,s]=_.useState(`mixed`),c=Qs(),l=n.length===t.length,u=n.length!==t.length&&n.length>0,d=Y(r),f=_.useCallback(()=>({id:c,indeterminate:u,checked:l,"aria-controls":t.map(e=>`${c}-${e}`).join(` `),onCheckedChange(e,r){let c=i.current,l=t.filter(e=>a.current.get(e)&&c.includes(e)),u=t.filter(e=>!a.current.get(e)||a.current.get(e)&&c.includes(e));if(c.length===u.length||c.length===0){n.length===u.length?d(l,r):d(u,r);return}o===`mixed`?(d(u,r),s(`on`)):o===`on`?(d(l,r),s(`off`)):o===`off`&&(d(c,r),s(`mixed`))}}),[t,l,c,u,d,o,n.length]),p=_.useCallback(e=>({checked:n.includes(e),onCheckedChange(t,r){let a=n.slice();t?a.push(e):a.splice(a.indexOf(e),1),i.current=a,d(a,r),s(`mixed`)}}),[d,n]);return _.useMemo(()=>({id:c,indeterminate:u,getParentProps:f,getChildProps:p,disabledStatesRef:a}),[c,u,f,p])}function iG(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}var aG=_.forwardRef(function(e,t){let{allValues:n,className:r,defaultValue:i,disabled:a=!1,id:o,onValueChange:s,render:c,value:l,style:u,...d}=e,{disabled:f,name:p,state:m,validation:h,setFilled:g,setDirty:v,shouldValidateOnChange:y,validityData:b}=Uc(),{labelId:x,getDescriptionProps:S}=qc(),{clearErrors:C}=Yd(),w=f||a,T=_.useMemo(()=>{if(l===void 0)return i??[]},[l,i]),[E,D]=_l({controlled:l,default:T,name:`CheckboxGroup`,state:`value`}),O=Y((e,t)=>{s?.(e,t),!t.isCanceled&&D(e)}),k=rG({allValues:n,value:E,onValueChange:O}),A=Qs(o),j=_.useRef(null),M=_.useCallback(e=>{j.current==null&&e!=null&&!e.hasAttribute(`data-parent`)&&(j.current=e)},[]);Gd(j,A,E,void 0,!!p);let N=E??Mo;Xd(N,()=>{p&&C(p);let e=Array.isArray(b.initialValue)?b.initialValue:Mo;g(N.length>0),v(!iG(N,e)),y()?h.commit(N):h.commit(N,!0)});let P={...m,disabled:w},F=_.useMemo(()=>({allValues:n,value:E,defaultValue:T,setValue:O,parent:k,disabled:w,validation:h,registerControlRef:M}),[n,E,T,O,k,w,h,M]),I=X(`div`,e,{state:P,ref:t,props:[{role:`group`,"aria-labelledby":x},S,d],stateAttributesMapping:Gs});return(0,Z.jsx)(YR.Provider,{value:F,children:I})}),oG={...mU,...Bs},sG=_.forwardRef(function(e,t){let{render:n,className:r,defaultOpen:i=!1,disabled:a=!1,onOpenChange:o,open:s,style:c,...l}=e,u=Y(o),d=iU({open:s,defaultOpen:i,onOpenChange:u,disabled:a}),f=_.useMemo(()=>({open:d.open,disabled:d.disabled,transitionStatus:d.transitionStatus}),[d.open,d.disabled,d.transitionStatus]),p=_.useMemo(()=>({...d,onOpenChange:u,state:f}),[d,u,f]),m=X(`div`,e,{state:f,ref:t,props:l,stateAttributesMapping:oG});return(0,Z.jsx)(aU.Provider,{value:p,children:m})}),cG={...pU,...Bs},lG=_.forwardRef(function(e,t){let{panelId:n,open:r,handleTrigger:i,state:a,disabled:o}=oU(),{className:s,disabled:c=o,id:l,render:u,nativeButton:d=!0,style:f,...p}=e,{getButtonProps:m,buttonRef:h}=jc({disabled:c,focusableWhenDisabled:!0,native:d});return X(`button`,e,{state:a,ref:[t,h],props:[{"aria-controls":r?n:void 0,"aria-expanded":r,onClick:i},p,m],stateAttributesMapping:cG})}),uG=function(e){return e.collapsiblePanelHeight=`--collapsible-panel-height`,e.collapsiblePanelWidth=`--collapsible-panel-width`,e}({}),dG=_.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:i,render:a,id:o,style:s,...c}
75=e,{mounted:l,onOpenChange:u,open:d,panelId:f,setMounted:p,setPanelIdState:m,setOpen:h,state:g,transitionStatus:_}=oU(),v=r??!1,y=i??!1;J(()=>{if(o)return m(o),()=>{m(void 0)}},[o,m]);let{height:b,props:x,ref:S,shouldPreventOpenAnimation:C,shouldRender:w,transitionStatus:T,width:E}=SU({externalRef:t,hiddenUntilFound:v,id:f,keepMounted:y,mounted:l,onOpenChange:u,open:d,setMounted:p,setOpen:h,transitionStatus:_}),D={...g,transitionStatus:T},O=sc(s,D),k=X(`div`,{...e,style:void 0},{state:D,ref:S,props:[x,{style:{[uG.collapsiblePanelHeight]:b===void 0?`auto`:`${b}px`,[uG.collapsiblePanelWidth]:E===void 0?`auto`:`${E}px`}},c,O?{style:O}:void 0,C?{style:{animationName:`none`}}:void 0],stateAttributesMapping:oG});return w?k:null});function fG(e){let{multiple:t=!1,defaultValue:n,value:r,onValueChange:i,autoComplete:a,...o}=e;return(0,Z.jsx)(_W,{...o,selectionMode:t?`multiple`:`single`,selectedValue:r,defaultSelectedValue:n,onSelectedValueChange:i,formAutoComplete:a})}var pG=_.createContext(void 0);function mG(e=!0){let t=_.useContext(pG);if(t===void 0&&!e)throw Error(ec(25));return t}var hG=_.createContext(void 0);function gG(e){let t=_.useContext(hG);if(t===void 0&&!e)throw Error(ec(33));return t}var _G=_.createContext(void 0);function vG(e){let t=_.useContext(_G);if(t===void 0&&!e)throw Error(ec(36));return t}var yG=_.createContext(void 0);function bG(){let e=_.useContext(yG);if(e===void 0)throw Error(ec(30));return e}function xG(e){let{closeOnClick:t,highlighted:n,id:r,nodeId:i,store:a,typingRef:o,itemRef:s,itemMetadata:c}=e,{events:l}=a.useState(`floatingTreeRoot`),u=mG(!0),d=u!==void 0;return _.useMemo(()=>({id:r,role:`menuitem`,tabIndex:n?0:-1,onKeyDown(e){e.key===` `&&o?.current&&e.preventDefault()},onMouseMove(e){i&&l.emit(`itemhover`,{nodeId:i,target:e.currentTarget})},onClick(e){t&&l.emit(`close`,{domEvent:e,reason:ds})},onMouseUp(e){if(u){let t=u.initialCursorPointRef.current;if(u.initialCursorPointRef.current=null,d&&t&&Math.abs(e.clientX-t.x)<=1&&Math.abs(e.clientY-t.y)<=1||d&&!Dl&&e.button===2)return}s.current&&a.context.allowMouseUpTriggerRef.current&&(!d||e.button===2)&&(!c||c.type===`regular-item`)&&s.current.click()}}),[t,n,r,l,i,a,o,s,u,d,c])}var SG={type:`regular-item`};function CG(e){let{closeOnClick:t,disabled:n=!1,highlighted:r,id:i,store:a,typingRef:o=a.context.typingRef,nativeButton:s,itemMetadata:c,nodeId:l}=e,u=_.useRef(null),{getButtonProps:d,buttonRef:f}=jc({disabled:n,focusableWhenDisabled:!0,native:s,composite:!0}),p=xG({closeOnClick:t,highlighted:r,id:i,nodeId:l,store:a,typingRef:o,itemRef:u,itemMetadata:c}),m=_.useCallback(e=>lc(p,{onMouseEnter(){c.type===`submenu-trigger`&&c.setActive()}},e,d),[p,d,c]),h=_o(u,f);return _.useMemo(()=>({getItemProps:m,itemRef:h}),[m,h])}var wG=function(e){return e.checked=`data-checked`,e.unchecked=`data-unchecked`,e.disabled=`data-disabled`,e.highlighted=`data-highlighted`,e}({}),TG={checked(e){return e?{[wG.checked]:``}:{[wG.unchecked]:``}},...Bs},EG=_.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!1,checked:l,defaultChecked:u,onCheckedChange:d,style:f,...p}=e,m=Rc({label:a}),h=gG(!0),g=Qs(i),{store:v}=vG(),y=v.useState(`isActive`,m.index),b=v.useState(`itemProps`),[x,S]=_l({controlled:l,default:u??!1,name:`MenuCheckboxItem`,state:`checked`}),{getItemProps:C,itemRef:w}=CG({closeOnClick:c,disabled:s,highlighted:y,id:g,store:v,nativeButton:o,nodeId:h?.context.nodeId,itemMetadata:SG}),T=_.useMemo(()=>({disabled:s,highlighted:y,checked:x}),[s,y,x]);function E(e){let t=Fs(ds,e.nativeEvent,void 0,{preventUnmountOnClose(){}});d?.(!x,t),!t.isCanceled&&S(e=>!e)}let D=X(`div`,e,{state:T,stateAttributesMapping:TG,props:[b,{role:`menuitemcheckbox`,"aria-checked":x,onClick:E},p,C],ref:[w,t,m.ref]});return(0,Z.jsx)(yG.Provider,{value:T,children:D})}),DG=_.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,s=bG(),c=_.useRef(null),{transitionStatus:l,setMounted:u}=hl(s.checked);return ml({open:s.checked,ref:c,onComplete(){s.checked||u(!1)}}),X(`span`,e,{state:{checked:s.checked,disabled:s.disabled,highlighted:s.highlighted,transitionStatus:l},ref:[t,c],stateAttributesMapping:TG,props:{"aria-hidden":!0,...o},enabled:a||s.checked})}),OG=_.createContext(void 0),kG=_.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!0,style:l,...u}=e,d=Rc({label:a}),f=gG(!0),p=Qs(i),{store:m}=vG(),h=m.useState(`isActive`,d.index),g=m.useState(`itemProps`),{getItemProps:_,itemRef:v}=CG({closeOnClick:c,disabled:s,highlighted:h,id:p,store:m,nativeButton:o,nodeId:f?.context.nodeId,itemMetadata:SG});return X(`div`,e,{state:{disabled:s,highlighted:h},props:[g,u,_],ref:[v,t,d.ref]})}),AG={...Rg,...Bs},jG=_.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,...o}=e,{store:s}=vG(),{side:c,align:l}=gG(),u=O_(!0)!=null,d=s.useState(`open`),f=s.useState(`transitionStatus`),p=s.useState(`popupProps`),m=s.useState(`mounted`),h=s.useState(`instantType`),g=s.useState(`activeTriggerElement`),v=s.useState(`parent`),y=s.useState(`lastOpenChangeReason`),b=s.useState(`rootId`),x=s.useState(`floatingRootContext`),S=s.useState(`floatingTreeRoot`),C=s.useState(`closeDelay`),w=s.useState(`activeTriggerElement`),T=s.useState(`hoverEnabled`),E=s.useState(`disabled`),D=v.type===`context-menu`;ml({open:d,ref:s.context.popupRef,onComplete(){d&&s.context.onOpenChangeComplete?.(!0)}}),_.useEffect(()=>{function e(e){s.setOpen(!1,Fs(e.reason,e.domEvent))}return S.events.on(`close`,e),()=>{S.events.off(`close`,e)}},[S.events,s]),Ih(x,{enabled:T&&!E&&!D&&v.type!==`menubar`,closeDelay:C});let O=_.useCallback(e=>{s.set(`popupElement`,e)},[s]),k=X(`div`,e,{state:{transitionStatus:f,side:c,align:l,open:d,nested:v.type===`menu`,instant:h},ref:[t,s.context.popupRef,O],stateAttributesMapping:AG,props:[p,{onKeyDown(e){u&&Ed.has(e.key)&&e.stopPropagation()}},u_(f),o,{"data-rootownerid":b}]}),A=v.type===void 0||D;return(g||v.type===`menubar`&&y!==`outside-press`)&&(A=!0),(0,Z.jsx)(Ap,{context:x,modal:D,disabled:!m,returnFocus:a===void 0?A:a,initialFocus:v.type!==`menu`,restoreFocus:!0,externalTree:v.type===`menubar`?void 0:S,previousFocusableElement:w,nextFocusableElement:v.type===void 0?s.context.triggerFocusTargetRef
75:void 0,beforeContentFocusGuardRef:v.type===void 0?s.context.beforeContentFocusGuardRef:void 0,children:k})}),MG=_.createContext(void 0);function NG(){let e=_.useContext(MG);if(e===void 0)throw Error(ec(32));return e}var PG=_.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=vG();return i.useState(`mounted`)||n?(0,Z.jsx)(MG.Provider,{value:n,children:(0,Z.jsx)(fp,{ref:t,...r})}):null}),FG=_.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o,align:s,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=ap,style:g,...v}=e,{store:y}=vG(),b=NG(),x=mG(!0),S=y.useState(`parent`),C=y.useState(`floatingRootContext`),w=y.useState(`floatingTreeRoot`),T=y.useState(`mounted`),E=y.useState(`open`),D=y.useState(`modal`),O=y.useState(`openMethod`),k=y.useState(`activeTriggerElement`),A=y.useState(`transitionStatus`),j=y.useState(`positionerElement`),M=y.useState(`instantType`),N=y.useState(`hasViewport`),P=y.useState(`lastOpenChangeReason`),F=y.useState(`floatingNodeId`),I=y.useState(`floatingParentNodeId`),L=C.useState(`domReferenceElement`),R=_.useRef(null),z=pl(j,!1,!1),B=n,V=c,H=l,U=s,ee=h;S.type===`context-menu`&&(B=n??S.context?.anchor,U??=`start`,!o&&U!==`center`&&(H=e.alignOffset??2,V=e.sideOffset??-5));let W=o,te=U;S.type===`menu`?(W??=`inline-end`,te??=`start`,ee=e.collisionAvoidance??op):S.type===`menubar`&&(W??=`bottom`,te??=`start`);let ne=S.type===`context-menu`,re=r_({anchor:B,floatingRootContext:C,positionMethod:x?`fixed`:r,mounted:T,side:W,sideOffset:V,align:te,alignOffset:H,arrowPadding:ne?0:f,collisionBoundary:u,collisionPadding:d,sticky:p,nodeId:F,keepMounted:b,disableAnchorTracking:m,collisionAvoidance:ee,shiftCrossAxis:ne&&!(`side`in ee&&ee.side===`flip`),externalTree:w,adaptiveOrigin:N?e_:void 0});_.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===F&&y.set(`hoverEnabled`,!1),e.nodeId!==F&&e.parentNodeId===y.select(`floatingParentNodeId`)&&y.setOpen(!1,Fs(ks)))}return w.events.on(`menuopenchange`,e),()=>{w.events.off(`menuopenchange`,e)}},[y,w.events,F]),_.useEffect(()=>{if(y.select(`floatingParentNodeId`)==null)return;function e(e){if(e.open||e.nodeId!==y.select(`floatingParentNodeId`))return;let t=e.reason??`sibling-open`;y.setOpen(!1,Fs(t))}return w.events.on(`menuopenchange`,e),()=>{w.events.off(`menuopenchange`,e)}},[w.events,y]);let ie=Of();_.useEffect(()=>{E||ie.clear()},[E,ie]),_.useEffect(()=>{function e(e){if(!(!E||e.nodeId!==y.select(`floatingParentNodeId`)))if(e.target&&k&&k!==e.target){let e=y.select(`closeDelay`);e>0?ie.isStarted()||ie.start(e,()=>{y.setOpen(!1,Fs(ks))}):y.setOpen(!1,Fs(ks))}else ie.clear()}return w.events.on(`itemhover`,e),()=>{w.events.off(`itemhover`,e)}},[w.events,E,k,y,ie]),_.useEffect(()=>{let e={open:E,nodeId:F,parentNodeId:I,reason:y.select(`lastOpenChangeReason`)};w.events.emit(`menuopenchange`,e)},[w.events,E,y,F,I]),J(()=>{let e=L,t=R.current;if(e&&(R.current=e),t&&e&&e!==t){y.set(`instantType`,void 0);let e=new AbortController;return z(()=>{y.set(`instantType`,`trigger-change`)},e.signal),()=>{e.abort()}}},[L,z,y]);let ae={open:E,side:re.side,align:re.align,anchorHidden:re.anchorHidden,nested:S.type===`menu`,instant:M},G=S.type===`menubar`&&S.context.modal;S_(E&&(G||D&&P!==`trigger-hover`),O===`touch`,j,k);let oe=d_(e,ae,{styles:re.positionerStyles,transitionStatus:A,props:v,refs:[t,y.useStateSetter(`positionerElement`)],hidden:!T,inert:!E}),K=T&&S.type!==`menu`&&(S.type!==`menubar`&&D&&P!==`trigger-hover`||S.type===`menubar`&&S.context.modal),se=null;return S.type===`menubar`?se=S.context.contentElement:S.type===void 0&&(se=k),(0,Z.jsxs)(hG.Provider,{value:re,children:[K&&(0,Z.jsx)(s_,{ref:S.type===`context-menu`||S.type===`nested-context-menu`?S.context.internalBackdropRef:null,inert:Yg(!E),cutout:se}),(0,Z.jsx)(bp,{id:F,children:(0,Z.jsx)(Pd,{elementsRef:y.context.itemDomElements,labelsRef:y.context.itemLabels,children:oe})})]})}),IG=_.createContext(void 0);function LG(){let e=_.useContext(IG);if(e===void 0)throw Error(ec(34));return e}var RG=_.memo(_.forwardRef(function(e,t){let{render:n,className:r,value:i,defaultValue:a,onValueChange:o,disabled:s=!1,style:c,"aria-labelledby":l,...u}=e,[d,f]=_.useState(void 0),[p,m]=_l({controlled:i,default:a,name:`MenuRadioGroup`}),h=Y((e,t)=>
75{o?.(e,t),!t.isCanceled&&m(e)}),g=X(`div`,e,{state:{disabled:s},ref:t,props:{role:`group`,"aria-labelledby":l??d,"aria-disabled":s||void 0,...u}}),v=_.useMemo(()=>({value:p,setValue:h,disabled:s}),[p,h,s]);return(0,Z.jsx)(OG.Provider,{value:f,children:(0,Z.jsx)(IG.Provider,{value:v,children:g})})})),zG=_.createContext(void 0);function BG(){let e=_.useContext(zG);if(e===void 0)throw Error(ec(35));return e}var VG=_.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!1,value:l,style:u,...d}=e,f=Rc({label:a}),p=gG(!0),m=Qs(i),{store:h}=vG(),g=h.useState(`isActive`,f.index),v=h.useState(`itemProps`),{value:y,setValue:b,disabled:x}=LG(),S=x||s,C=y===l,{getItemProps:w,itemRef:T}=CG({closeOnClick:c,disabled:S,highlighted:g,id:m,store:h,nativeButton:o,nodeId:p?.context.nodeId,itemMetadata:SG}),E=_.useMemo(()=>({disabled:S,highlighted:g,checked:C}),[S,g,C]);function D(e){b(l,Fs(ds,e.nativeEvent,void 0,{preventUnmountOnClose(){}}))}let O=X(`div`,e,{state:E,stateAttributesMapping:TG,props:[v,{role:`menuitemradio`,"aria-checked":C,onClick:D},d,w],ref:[T,t,f.ref]});return(0,Z.jsx)(zG.Provider,{value:E,children:O})}),HG=_.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,s=BG(),c=_.useRef(null),{transitionStatus:l,setMounted:u}=hl(s.checked);return ml({open:s.checked,ref:c,onComplete(){s.checked||u(!1)}}),X(`span`,e,{state:{checked:s.checked,disabled:s.disabled,highlighted:s.highlighted,transitionStatus:l},stateAttributesMapping:TG,ref:[t,c],props:{"aria-hidden":!0,...o},enabled:a||s.checked})}),UG=_.createContext(null);function WG(e){let t=_.useContext(UG);if(t===null&&!e)throw Error(ec(5));return t}var GG={...Eh,disabled:Q(e=>e.parent.type===`menubar`&&e.parent.context.disabled||e.disabled),modal:Q(e=>(e.parent.type===void 0||e.parent.type===`context-menu`)&&(e.modal??!0)),openMethod:Q(e=>e.openMethod),allowMouseEnter:Q(e=>e.allowMouseEnter),stickIfOpen:Q(e=>e.stickIfOpen),parent:Q(e=>e.parent),rootId:Q(e=>e.parent.type===`menu`?e.parent.store.select(`rootId`):e.parent.type===void 0?e.rootId:e.parent.context.rootId),activeIndex:Q(e=>e.activeIndex),isActive:Q((e,t)=>e.activeIndex===t),hoverEnabled:Q(e=>e.hoverEnabled),instantType:Q(e=>e.instantType),lastOpenChangeReason:Q(e=>e.openChangeReason),floatingTreeRoot:Q(e=>e.parent.type===`menu`?e.parent.store.select(`floatingTreeRoot`):e.floatingTreeRoot),floatingNodeId:Q(e=>e.floatingNodeId),floatingParentNodeId:Q(e=>e.floatingParentNodeId),itemProps:Q(e=>e.itemProps),closeDelay:Q(e=>e.closeDelay),hasViewport:Q(e=>e.hasViewport),keyboardEventRelay:Q(e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===`menu`)return e.parent.store.select(`keyboardEventRelay`)})},KG=class e extends Sf{constructor(e){super({...qG(),...e},{positionerRef:_.createRef(),popupRef:_.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:_.createRef(),beforeContentFocusGuardRef:_.createRef(),onOpenChangeComplete:void 0,triggerElements:new _h},GG),this.unsubscribeParentListener=this.observe(`parent`,e=>{if(this.unsubscribeParentListener?.(),e.type===`menu`){let t=e.store.select(`rootId`),n=e.store.select(`floatingTreeRoot`),r=e.store.select(`keyboardEventRelay`);this.unsubscribeParentListener=e.store.subscribe(()=>{let i=e.store.select(`rootId`),a=e.store.select(`floatingTreeRoot`),o=e.store.select(`keyboardEventRelay`);t===i&&n===a&&r===o||(t=i,n=a,r=o,this.notifyAll())}),this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef;return}e.type!==void 0&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(e,t){this.state.floatingRootContext.context.events.emit(`setOpen`,{open:e,eventDetails:t})}static useStore(t,n){let r=go(()=>new e(n)).current;return t??r}unsubscribeParentListener=null};function qG(){return{...yh(),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,stickIfOpen:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new mp,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:No,keyboardEventRelay:void 0,closeDelay:0,hasViewport:!1}}var JG=_.createContext(void 0);function YG(){return _.useContext(JG)}var XG=ff(function(e){let{children:t,open:n,onOpenChange:r,onOpenChangeComplete:i,defaultOpen:a=!1,disabled:o=!1,modal:s,loopFocus:c=!0,orientation:l=`vertical`,actionsRef:u,closeParentOnEsc:d=!1,handle:f,triggerId:p,defaultTr
75iggerId:m=null,highlightItemOnHover:h=!0}=e,g=mG(!0),v=vG(!0),y=WG(!0),b=YG(),x=_.useMemo(()=>b&&v?{type:`menu`,store:v.store}:y?{type:`menubar`,context:y}:g&&!v?{type:`context-menu`,context:g}:{type:void 0},[g,v,y,b]),S=KG.useStore(f?.store,{open:a,openProp:n,activeTriggerId:m,triggerIdProp:p,parent:x});$d(()=>{n===void 0&&S.state.open===!1&&a===!0&&S.update({open:!0,activeTriggerId:m})}),S.useControlledProp(`openProp`,n),S.useControlledProp(`triggerIdProp`,p),S.useContextCallback(`onOpenChangeComplete`,i);let C=Zs(),w=Zs(),T=S.useState(`floatingTreeRoot`),E=yp(T),D=_p(),O=S.useState(`open`),k=S.useState(`activeTriggerElement`),A=S.useState(`positionerElement`),j=S.useState(`hoverEnabled`),M=S.useState(`disabled`),N=S.useState(`lastOpenChangeReason`),P=S.useState(`parent`),F=S.useState(`activeIndex`),I=S.useState(`payload`),L=S.useState(`floatingParentNodeId`),R=_.useRef(null),z=_.useRef(P.type!==`context-menu`),B=Of(),V=_.useRef(!0),H=Of(),U=L!=null,{openMethod:ee,triggerProps:W}=yg(O);S.useSyncedValues({disabled:o,modal:P.type===void 0?s:void 0,openMethod:ee,rootId:C}),ph(S);let{forceUnmount:te}=mh(O,S,()=>{S.update({allowMouseEnter:!1,stickIfOpen:!0})});J(()=>{g&&!v?S.update({parent:{type:`context-menu`,context:g},floatingNodeId:E,floatingParentNodeId:D}):v&&S.update({floatingNodeId:E,floatingParentNodeId:D})},[g,v,E,D,S]),_.useEffect(()=>{if(O||(R.current=null),P.type===`context-menu`){if(!O){B.clear(),z.current=!1;return}B.start(500,()=>{z.current=!0})}},[B,O,P.type]),J(()=>{!O&&!j&&S.set(`hoverEnabled`,!0)},[O,j,S]);let ne=Y((e,t)=>{let n=t.reason;if(O===e&&t.trigger===k&&N===n||(t.preventUnmountOnClose=()=>{S.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&(t.trigger=k??void 0),r?.(e,t),t.isCanceled))return;S.state.floatingRootContext.dispatchOpenChange(e,t);let i=t.event;if(e===!1&&i?.type===`click`&&i.pointerType===`touch`&&!V.current)return;if(!e&&F!==null){let e=S.context.itemDomElements.current[F];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}e&&n===`trigger-focus`?(V.current=!1,H.start(300,()=>{V.current=!0})):(V.current=!0,H.clear());let a=(n===`trigger-press`||n===`item-press`)&&i.detail===0&&i?.isTrusted,o=!e&&(n===`escape-key`||n==null),s={open:e,openChangeReason:n};R.current=t.event??null;let c=t.trigger?.id??null;(c||e)&&(s.activeTriggerId=c,s.activeTriggerElement=t.trigger??null),S.update(s),P.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?S.set(`instantType`,`group`):a||o?S.set(`instantType`,a?`click`:`dismiss`):S.set(`instantType`,void 0)}),re=sh({popupStore:S,floatingId:w,nested:D!=null,onOpenChange:ne}),ie=re.context.events;_.useEffect(()=>{let e=({open:e,eventDetails:t})=>ne(e,t);return ie.on(`setOpen`,e),()=>{ie?.off(`setOpen`,e)}},[ie,ne]);let ae=_.useCallback(()=>{S.setOpen(!1,Fs(Ns))},[S]);_.useImperativeHandle(u,()=>({unmount:te,close:ae}),[te,ae]);let G;P.type===`context-menu`&&(G=P.context),_.useImperativeHandle(G?.positionerRef,()=>A,[A]),_.useImperativeHandle(G?.actionsRef,()=>({setOpen:ne}),[ne]);let oe=Rp(re,{enabled:!M,bubbles:{escapeKey:d&&P.type===`menu`},outsidePress(){return P.type!==`context-menu`||R.current?.type===`contextmenu`?!0:z.current},externalTree:U?T:void 0}),K=Ud(),se=_.useCallback(e=>{S.select(`activeIndex`)!==e&&S.set(`activeIndex`,e)},[S]),ce=Gh(re,{enabled:!M,listRef:S.context.itemDomElements,activeIndex:F,nested:P.type!==void 0,loopFocus:c,orientation:l,parentOrientation:P.type===`menubar`?P.context.orientation:void 0,rtl:K===`rtl`,disabledIndices:Mo,onNavigate:se,openOnArrowKeyDown:P.type!==`context-menu`,externalTree:U?T:void 0,focusItemOnHover:h}),le=_.useCallback(e=>{S.context.typingRef.current=e},[S]),ue=Kh(re,{listRef:S.context.itemLabels,elementsRef:S.context.itemDomElements,activeIndex:F,resetMs:500,onMatch:e=>{O&&e!==F&&S.set(`activeIndex`,e)},onTyping:le});hh(S,{floatingRootContext:re,activeTriggerProps:_.useMemo(()=>{let e=lc(ue.reference,ce.reference,oe.reference,{onMouseMove(){S.set(`allowMouseEnter`,!0)}},W);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=O,e},[S,ue.reference,ce.reference,oe.reference,W,O]),inactiveTriggerProps:_.useMemo(()=>{let e=lc(ce.trigger,oe.trigger,W);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=!1,e},[ce.trigger,oe.trigger,W]),popupProps:_.useMemo(()=>lc(ch,{id:w,role:`menu`,"aria-labelledby":k?.id,onMouseMove(){S.set(`allowMouseEnter`,!0),P.type===`menu`&&S.set(`hoverEnabled`,!1)},onClick(){S.select(`hoverEnabled`)&&S.set(`hoverEnabled`,!1)},onKeyDown(e){let t=S.select(`keyboardEventRelay`);t&&!e.isPropagationStopped()&&t(e)}},ue.floating,ce.floating,oe.floating),[k,w,P.type,S,ue.floating,ce.floating,oe.floating]),itemProps:ce.item??No});let de=_.useMemo(()=>({store:S,parent:x}),[S,x]),fe=(0,Z.jsx)(_G.Provider,{value:de,children:typeof t==`function`?t({payload:I}):t});return P.type===void 0||P.type===`context-menu`?(0,Z.jsx)(xp,{externalTree:T,children:fe}):fe});function ZG(e){if(Bo(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`)??void 0;if(!Qo(e))return ZG(ts(e))}function QG(e,t){let n=_.useRef(null);function r(t){fl.flushSync(()=>{e.setOpen(!1,Fs(Ss,t.nativeEvent,t.currentTarget))}),ud(n.current)?.focus()}function i(n){let r=e.select(`positionerElement`);if(r&&dd(n,r))e.context.beforeContentFocusGuardRef.current?.focus();else{fl.flushSync(()=>{e.setOpen(!1,Fs(Ss,n.nativeEvent,n.currentTarget))});let i=ld(e.context.triggerFocusTargetRef.current||t.current);for(;i!==null&&zl(r,i);){let e=i;if(i=od(i),i===e)break}i?.focus()}}return{preFocusGuardRef:n,handlePreFocusGuardFocus:r,handleFocusTargetFocus:i}}function $G(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,i=_.useRef(!1);return _.useMemo(()=>t?{onMouseDown:e=>{(n===`open`&&!r||n===`close`&&r)&&(i.current=!0,as(e.currentTarget).addEventListener(`click`,()=>{i.current=!1},{once:!0}))},onClick:e=>{i.current&&(i.current=!1,e.preventBaseUIHandler())}}:No,[t,n,r])}var eK=2,tK=pf(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,id:s,openOnHover:c,delay:l=100,closeDelay:u=0,handle:d,payload:f,...p}=e,m=vG(!0),h=d?.store??m?.store;if(!h)throw Error(ec(85));let g=Qs(s),v=h.useState(`isTriggerActive`,g),y=h.useState(`floatingRootContext`),b=h.use
75State(`isOpenedByTrigger`,g),x=h.useState(`triggerPopupId`,g),S=_.useRef(null),C=rK(),w=kc(!0),T=vp(),E=_.useMemo(()=>T??new mp,[T]),{registerTrigger:D,isMountedByThisTrigger:O}=fh(g,S,h,{payload:f,closeDelay:u,parent:C,floatingTreeRoot:E,floatingNodeId:yp(E),floatingParentNodeId:_p(),keyboardEventRelay:w?.relayKeyboardEvent}),k=C.type===`menubar`,A=h.useState(`disabled`),j=a||A||k&&C.context.disabled,{getButtonProps:M,buttonRef:N}=jc({disabled:j,native:o});_.useEffect(()=>{!b&&C.type===void 0&&(h.context.allowMouseUpTriggerRef.current=!1)},[h,b,C.type]);let P=_.useRef(null),F=Of(),I=Y(e=>{if(!P.current)return;F.clear(),h.context.allowMouseUpTriggerRef.current=!1;let t=e.target;if(zl(P.current,t)||zl(h.select(`positionerElement`),t)||t===P.current||t!=null&&ZG(t)===h.select(`rootId`))return;let n=zg(P.current);e.clientX>=n.left-eK&&e.clientX<=n.right+eK&&e.clientY>=n.top-eK&&e.clientY<=n.bottom+eK||E.events.emit(`close`,{domEvent:e,reason:Os})});_.useEffect(()=>{b&&h.select(`lastOpenChangeReason`)===`trigger-hover`&&as(P.current).addEventListener(`mouseup`,I,{once:!0})},[b,I,h]);let L=k&&C.context.hasSubmenuOpen,R=Rh(y,{enabled:(c??L)&&!j&&C.type!==`context-menu`&&(!k||L&&!O),handleClose:eg({blockPointerEvents:!k}),mouseOnly:!0,move:!1,restMs:C.type===void 0?l:void 0,delay:{close:u},triggerElementRef:S,externalTree:E,isActiveTrigger:v,isClosing:()=>h.select(`transitionStatus`)===`ending`}),z=nK(b,h.select(`lastOpenChangeReason`)),B=jp(y,{enabled:!j&&C.type!==`context-menu`,event:b&&k?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:C.type===void 0?z:!1}),V=Ah(y,{enabled:!j&&L}),H=$G({open:b,enabled:k,mouseDownAction:`open`}),U=_.useMemo(()=>lc(V.reference,B.reference),[V.reference,B.reference]),ee=h.useState(`triggerProps`,O),{preFocusGuardRef:W,handlePreFocusGuardFocus:te,handleFocusTargetFocus:ne}=QG(h,S),re={disabled:j,open:b},ie=[P,t,N,D,S],ae=[U,R??No,ee,{"aria-haspopup":`menu`,"aria-controls":x,id:g,onMouseDown:e=>{h.select(`open`)||(F.start(200,()=>{h.context.allowMouseUpTriggerRef.current=!0}),as(e.currentTarget).addEventListener(`mouseup`,I,{once:!0}))}},k?{role:`menuitem`}:{},H,p,M],G=X(`button`,e,{enabled:!k,stateAttributesMapping:Lg,state:re,ref:ie,props:ae});return k?(0,Z.jsx)(Bc,{tag:`button`,render:n,className:r,style:i,state:re,refs:ie,props:ae,stateAttributesMapping:Lg}):b?(0,Z.jsxs)(_.Fragment,{children:[(0,Z.jsx)(Lf,{ref:W,onFocus:te},`${g}-pre-focus-guard`),(0,Z.jsx)(_.Fragment,{children:G},g),(0,Z.jsx)(Lf,{ref:h.context.triggerFocusTargetRef,onFocus:ne},`${g}-post-focus-guard`)]}):(0,Z.jsx)(_.Fragment,{children:G},g)});function nK(e,t){let n=Of(),[r,i]=_.useState(!1);return J(()=>{e&&t===`trigger-hover`?(i(!0),n.start(500,()=>{i(!1)})):e||(n.clear(),i(!1))},[e,t,n]),r}function rK(){let e=mG(!0),t=vG(!0),n=WG(!0);return _.useMemo(()=>n?{type:`menubar`,context:n}:e&&!t?{type:`context-menu`,context:e}:{type:void 0},[e,t,n])}function iK(e){let t=$o(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Bo(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r;return(ou(n)!==a||ou(r)!==o)&&(n=a,r=o),{width:n,height:r}}function aK(e){let[t,n]=_.useState({getBoundingClientRect(){return DOMRect.fromRect({width:0,height:0,x:0,y:0})}}),r=_.useRef(null),i=_.useRef(null),a=_.useRef(null),o=_.useRef(null),s=_.useRef(!0),c=_.useRef(null),l=Zs(),u=_.useMemo(()=>({anchor:t,setAnchor:n,actionsRef:a,backdropRef:r,internalBackdropRef:i,positionerRef:o,allowMouseUpTriggerRef:s,initialCursorPointRef:c,rootId:l}),[t,l]);return(0,Z.jsx)(pG.Provider,{value:u,children:(0,Z.jsx)(_G.Provider,{value:void 0,children:(0,Z.jsx)(XG,{...e})})})}var oK=500,sK=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{setAnchor:o,actionsRef:s,internalBackdropRef:c,backdropRef:l,positionerRef:u,allowMouseUpTriggerRef:d,initialCursorPointRef:f,rootId:p}=mG(!1),{store:m}=vG(!1),h=m.useState(`open`),g=m.useState(`disabled`),v=_.useRef(null),y=_.useRef(null),b=Of(),x=Of(),S=_.useRef(!1);function C(e,t,n){let r=n.type.startsWith(`touch`);f.current={x:e,y:t},o({getBoundingClientRect(){return DOMRect.fromRect({width:r?10:0,height:r?10:0,x:e,y:t})}}),S.current=!1,s.current?.setOpen(!0,Fs(ss,n)),x.start(oK,()=>{S.current=!0})}function w(e){g||(d.current=!0,Zl(e),C(e.clientX,e.clientY,e.nativeEvent),wf(as(v.current),`mouseup`,e=>{if(d.current=!1,!S.current)return;x.clear(),S.current=!1;let t=Bl(e);zl(u.current,t)||p&&t&&ZG(t)===p||s.current?.setOpen(!1,Fs(Os,e))},{once:!0}))}function T(e){if(!g&&(d.current=!1,e.touches.length===1)){e.stopPropagation();let t=e.touches[0];y.current={x:t.clientX,y:t.clientY},b.start(oK,()=>
75{y.current&&C(y.current.x,y.current.y,e.nativeEvent)})}}function E(e){if(b.isStarted()&&y.current&&e.touches.length===1){let t=e.touches[0],n=Math.abs(t.clientX-y.current.x),r=Math.abs(t.clientY-y.current.y);(n>10||r>10)&&b.clear()}}function D(){b.clear(),y.current=null}return _.useEffect(()=>{function e(e){if(g)return;let t=Bl(e);(zl(v.current,t)||zl(c.current,t)||zl(l.current,t))&&e.preventDefault()}return wf(as(v.current),`contextmenu`,e)},[l,g,c]),X(`div`,e,{state:{open:h},ref:[v,t],props:[{onContextMenu:w,onTouchStart:T,onTouchMove:E,onTouchEnd:D,onTouchCancel:D,style:{WebkitTouchCallout:`none`}},a],stateAttributesMapping:Lg})});function cK(e){return RU(e,_.useContext(MU)?`drawer`:`dialog`)}var lK=function(e){return e.nestedDrawers=`--nested-drawers`,e.height=`--drawer-height`,e.frontmostHeight=`--drawer-frontmost-height`,e.swipeMovementX=`--drawer-swipe-movement-x`,e.swipeMovementY=`--drawer-swipe-movement-y`,e.snapPointOffset=`--drawer-snap-point-offset`,e.swipeStrength=`--drawer-swipe-strength`,e}({}),uK=function(e){return e.swipeProgress=`--drawer-swipe-progress`,e}({}),dK={...Rg,...Bs},fK=_.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,{store:s}=PU(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return X(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:dK,props:[{role:`presentation`,hidden:!u,style:{pointerEvents:c?void 0:`none`,userSelect:`none`,WebkitUserSelect:`none`,[uK.swipeProgress]:`0`,[lK.swipeStrength]:`1`}},o],enabled:a||!l})}),pK=HU,mK=`data-drawer-content`,hK=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return PU(),X(`div`,e,{ref:t,props:[{[mK]:``},a]})}),gK=UU,_K=_.createContext(void 0);function vK(e){let t=_.useContext(_K);if(e===!1&&t===void 0)throw Error(ec(91));return t}var yK=function(e){return e[e.open=kg.open]=`open`,e[e.closed=kg.closed]=`closed`,e[e.startingStyle=kg.startingStyle]=`startingStyle`,e[e.endingStyle=kg.endingStyle]=`endingStyle`,e.expanded=`data-expanded`,e.nestedDrawerOpen=`data-nested-drawer-open`,e.nestedDrawerSwiping=`data-nested-drawer-swiping`,e.swipeDismiss=`data-swipe-dismiss`,e.swipeDirection=`data-swipe-direction`,e.swiping=`data-swiping`,e}({}),bK=_.createContext(void 0);function xK(e){let t=_.useContext(bK);if(e===!1&&t===void 0)throw Error(ec(90));return t}function SK(e,t,n){if(!Number.isFinite(t)||t<=0)return null;if(typeof e==`number`)return Number.isFinite(e)?e<=1?bg(e,0,1)*t:e:null;let r=e.trim();if(r.endsWith(`px`)){let e=Number.parseFloat(r);return Number.isFinite(e)?e:null}if(r.endsWith(`rem`)){let e=Number.parseFloat(r);return Number.isFinite(e)?e*n:null}return null}function CK(e,t){let n=null,r=1/0;for(let i of t){let t=Math.abs(i.height-e);t<r&&(r=t,n=i)}return n}function wK(){let{store:e}=PU(),{snapPoints:t,activeSnapPoint:n,setActiveSnapPoint:r,popupHeight:i}=xK(),a=e.useState(`viewportElement`),[o,s]=_.useState(0),[c,l]=_.useState(16),u=Y(()=>{let e=as(a).documentElement;a&&s(a.offsetHeight),a||s(e.clientHeight);let t=parseFloat(getComputedStyle(e).fontSize);Number.isFinite(t)&&l(t)});J(()=>{if(u(),!a||typeof ResizeObserver!=`function`)return;let e=new ResizeObserver(u);return e.observe(a),()=>{e.disconnect()}},[u,a]);let d=_.useMemo(()=>{if(!t||t.length===0||o<=0||i<=0)return[];let e=Math.min(i,o);if(!Number.isFinite(e)||e<=0)return[];let n=t.map(t=>{let n=SK(t,o,c);if(n===null||!Number.isFinite(n))return null;let r=bg(n,0,e);return{value:t,height:r,offset:Math.max(0,i-r)}}).filter(e=>!!e);if(n.length<=1)return n;let r=[],a=[];for(let e=n.length-1;e>=0;--e){let t=n[e];a.some(e=>Math.abs(e-t.height)<=1)||(a.push(t.height),r.push(t))}return r.reverse(),r},[i,c,t,o]);return{snapPoints:t,activeSnapPoint:n,setActiveSnapPoint:r,popupHeight:i,viewportHeight:o,resolvedSnapPoints:d,activeSnapPointOffset:_.useMemo(()=>{if(n===void 0)return d[0];if(n===null)return;let e=d.find(e=>Object.is(e.value,n));if(e)return e;let t=Math.min(i,o),r=SK(n,o,c);if(!(r===null||!Number.isFinite(r)))return CK(bg(r,0,t),d)??void 0},[n,i,d,c,o])?.offset??null}}var TK=_.createContext(null);function EK(e){let t=_.useContext(TK);if(e===!1&&t===null)throw Error(ec(92));return t}var DK=!1;function OK(){DK||=(typeof CSS<`u`&&`registerProperty`in CSS&&([lK.swipeMovementX,lK.swipeMovementY,lK.snapPointOffset].forEach(e
75=>{try{CSS.registerProperty({name:e,syntax:`<length>`,inherits:!1,initialValue:`0px`})}catch{}}),[{name:uK.swipeProgress,initialValue:`0`},{name:lK.swipeStrength,initialValue:`1`}].forEach(({name:e,initialValue:t})=>{try{CSS.registerProperty({name:e,syntax:`<number>`,inherits:!1,initialValue:t})}catch{}})),!0)}var kK={...Rg,...Bs,expanded(e){return e?{[yK.expanded]:``}:null},nestedDrawerOpen(e){return e?{[yK.nestedDrawerOpen]:``}:null},nestedDrawerSwiping(e){return e?{[yK.nestedDrawerSwiping]:``}:null},swipeDirection(e){return e?{[yK.swipeDirection]:e}:null},swiping(e){return e?{[yK.swiping]:``}:null}},AK=_.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,{store:c}=PU(),{swipeDirection:l,frontmostHeight:u,hasNestedDrawer:d,nestedSwiping:f,nestedSwipeProgressStore:p,onPopupHeightChange:m,notifyParentFrontmostHeight:h,notifyParentHasNestedDrawer:g}=xK(),v=c.useState(`descriptionElementId`),y=c.useState(`disablePointerDismissal`),b=c.useState(`floatingRootContext`),x=c.useState(`popupProps`),S=c.useState(`modal`),C=c.useState(`mounted`),w=c.useState(`nested`),T=c.useState(`nestedOpenDrawerCount`),E=c.useState(`transitionStatus`),D=c.useState(`open`),O=c.useState(`openMethod`),k=c.useState(`titleElementId`),A=c.useState(`role`),j=b.useState(`floatingId`),M=s.id??j,N=EK(!0);qU();let{snapPoints:P,activeSnapPoint:F,activeSnapPointOffset:I}=wK(),L=T>0,R=N?.swiping??!1,z=N?.swipeStrength??null,[B,V]=_.useState(0),H=_.useRef(0),U=Y(()=>{let e=c.context.popupRef.current;if(!e)return;let t=e.offsetHeight;if(H.current>0&&u>H.current&&t>H.current)return;if(H.current>0&&d){let e=H.current;V(e),m(e);return}let n=t;n!==H.current&&(H.current=n,V(n),m(n))});J(()=>{if(!C){H.current=0,V(0),m(0);return}let e=c.context.popupRef.current;if(!e||(OK(),U(),typeof ResizeObserver!=`function`))return;let t=new ResizeObserver(U);return t.observe(e),()=>{t.disconnect()}},[U,C,L,m,c.context.popupRef]),J(()=>{let e=c.context.popupRef,t=()=>{let t=e.current;if(!t)return;let n=p.getSnapshot();n>0?t.style.setProperty(uK.swipeProgress,`${n}`):t.style.setProperty(uK.swipeProgress,`0`)};t();let n=p.subscribe(t);return()=>{n();let t=e.current;t&&t.style.setProperty(uK.swipeProgress,`0`)}},[p,c.context.popupRef]),_.useEffect(()=>{if(D)return h?.(u),()=>{h?.(0)}},[u,D,h]),_.useEffect(()=>{if(g)return g(D||E===`ending`),()=>{g(!1)}},[g,D,E]),ml({open:D,ref:c.context.popupRef,onComplete(){D&&c.context.onOpenChangeComplete?.(!0)}});let ee=o===void 0?c.context.popupRef:o,W=c.useStateSetter(`popupElement`),te={open:D,nested:w,transitionStatus:E,expanded:F===1,nestedDrawerOpen:L,nestedDrawerSwiping:f,swipeDirection:l,swiping:R},ne;B&&!(!d&&E!==`ending`)&&(ne=`${B}px`);let re=P&&P.length>0&&(l===`down`||l===`up`),ie=null;re&&I!==null&&(ie=l===`up`?-I:I);let ae=N?N.getDragStyles():No;if(re&&l===`down`){let e=I??0,t=Number.parseFloat(String(ae[lK.swipeMovementY]??0)),n=Number.isFinite(t)?e+t:e;if(R&&n<0&&Number.isFinite(t)){let t=-Math.sqrt(Math.abs(n))-e;ae={...ae,transform:void 0,[lK.swipeMovementY]:`${t}px`}}else ae={...ae,transform:void 0}}let G=X(`div`,e,{state:te,props:[x,{id:M,"aria-labelledby":k,"aria-describedby":v,role:A,...ch,hidden:!C,onKeyDown(e){Ed.has(e.key)&&e.stopPropagation()},style:{...ae,[uK.swipeProgress]:`0`,[lK.nestedDrawers]:T,[lK.height]:ne,[lK.snapPointOffset]:typeof ie==`number`?`${ie}px`:`0px`,[lK.frontmostHeight]:u?`${u}px`:void 0,[lK.swipeStrength]:typeof z==`number`&&Number.isFinite(z)&&z>0?`${z}`:`1`}},s],ref:[t,c.context.popupRef,W],stateAttributesMapping:kK});return(0,Z.jsx)(Ap,{context:b,openInteractionType:O,disabled:!C,closeOnFocusOut:!y,initialFocus:ee,returnFocus:a,modal:S!==!1,restoreFocus:`popup`,children:G})}),jK=XU,MK,NK;function PK(e){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,disablePointerDismissal:o=!1,modal:s=!0,actionsRef:c,handle:l,triggerId:u,defaultTriggerId:d=null,swipeDirection:f=`down`,snapToSequentialPoints:p=!1,snapPoints:m,snapPoint:h,defaultSnapPoint:g,onSnapPointChange:v}=e,y=xK(!0),b=y?.onNestedSwipeProgressChange,x=y?.onNestedFrontmostHeightChange,S=y?.onNestedSwipingChange,C=y?.onNestedDrawerPresenceChange,[w,T]=_.useState(0),[E,D]=_.useState(0),[O,k]=_.useState(!1),[A,j]=_.useState(!1),[M]=_.useState(FK),N=g===void 0?m?.[0]??null:g,P=h!==void 0,[F,I]=_l({controlled:h,default:N,name:`Drawer`,state:`snapPoint`}),L=_.useRef(!1),R=Y((e,t)=>
75{let n=t??Fs(`none`);v?.(e,n),!n.isCanceled&&I(e)}),z=_.useMemo(()=>P||!m||m.length===0?F:F===null||!m.some(e=>Object.is(e,F))?N:F,[F,P,N,m]),B=Y(e=>{T(e),!L.current&&e>0&&D(e)}),V=Y(e=>{if(e>0){L.current=!0,D(e);return}L.current=!1,w>0&&D(w)}),H=Y(e=>{k(e)}),U=Y(e=>{M.set(e),b?.(e)}),ee=Y(e=>{j(e),S?.(e)}),W=Y((e,t)=>{i?.(e,t),!t.isCanceled&&!e&&m&&m.length>0&&R(N,Fs(t.reason,t.event,t.trigger))}),te=_.useMemo(()=>({swipeDirection:f,snapToSequentialPoints:p,snapPoints:m,activeSnapPoint:z,setActiveSnapPoint:R,frontmostHeight:E,popupHeight:w,hasNestedDrawer:O,nestedSwiping:A,nestedSwipeProgressStore:M,onNestedDrawerPresenceChange:H,onPopupHeightChange:B,onNestedFrontmostHeightChange:V,onNestedSwipingChange:ee,onNestedSwipeProgressChange:U,notifyParentFrontmostHeight:x,notifyParentSwipingChange:S,notifyParentSwipeProgressChange:b,notifyParentHasNestedDrawer:C}),[z,E,O,A,M,C,b,S,x,H,V,U,ee,B,w,R,m,p,f]),ne=typeof t==`function`?e=>(0,Z.jsxs)(_.Fragment,{children:[MK||=(0,Z.jsx)(IK,{}),t(e)]}):(0,Z.jsxs)(_.Fragment,{children:[NK||=(0,Z.jsx)(IK,{}),t]});return(0,Z.jsx)(bK.Provider,{value:te,children:(0,Z.jsx)(MU.Provider,{value:!0,children:(0,Z.jsx)(cK,{open:n,defaultOpen:r,onOpenChange:W,onOpenChangeComplete:a,disablePointerDismissal:o,modal:s,actionsRef:c,handle:l,triggerId:u,defaultTriggerId:d,children:ne})})})}function FK(){let e=0,t=new Set;return{getSnapshot:()=>e,set(n){let r=Number.isFinite(n)?n:0;r!==e&&(e=r,t.forEach(e=>{e()}))},subscribe(e){return t.add(e),()=>{t.delete(e)}}}}function IK(){let e=Zs(),t=vK(!0),{store:n}=PU(!1),r=n.useState(`open`),i=n.useState(`nestedOpenDialogCount`),a=n.useState(`popupElement`),o=i===0;return _.useEffect(()=>{if(!(!t||e==null))return()=>{t.removeDrawer(e)}},[e,t]),_.useEffect(()=>{e!=null&&t?.setDrawerOpen(e,r)},[e,r,t]),_.useEffect(()=>{if(!r||!o||!El)return;let e=Io(a).CloseWatcher;if(!e)return;function t(e){n.select(`open`)&&n.setOpen(!1,Fs(ws,e))}let i=new e,s=wf(i,`close`,t);return()=>{s(),i.destroy()}},[n,o,r,a]),null}function LK(e,t,n){switch(e){case`up`:return-n;case`down`:return n;case`left`:return-t;case`right`:return t;default:return 0}}function RK(e){let t=Io(e).getComputedStyle(e).transform,n=0,r=0,i=1;if(t&&t!==`none`){let e=t.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(`, `).map(parseFloat);t.length===6?(n=t[4],r=t[5],i=Math.sqrt(t[0]*t[0]+t[1]*t[1])):t.length===16&&(n=t[12],r=t[13],i=t[0])}}return{x:n,y:r,scale:i}}var zK=ZU,BK=QU,VK=function(e){let t=Qs(),n=e.controlId===void 0?t:e.controlId,[r,i]=_.useState(n),[a,o]=_.useState(e.labelId),[s,c]=_.useState([]),l=go(()=>new Map),{messageIds:u}=qc(),d=Y((e,t)=>{let n=l.current;if(t===void 0){n.delete(e);return}n.set(e,t),i(e=>{if(n.size===0)return;let t;for(let r of n.values()){if(e!==void 0&&r===e)return e;t===void 0&&(t=r)}return t})}),f=_.useCallback(e=>lc({"aria-describedby":u.concat(s).join(` `)||void 0},e),[u,s]),p=_.useMemo(()=>({controlId:r,registerControlId:d,labelId:a,setLabelId:o,messageIds:s,setMessageIds:c,getDescriptionProps:f}),[r,d,a,o,s,c,f]);return(0,Z.jsx)(Kc.Provider,{value:p,children:e.children})};function HK(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}var UK=Object.keys(Hs);function WK(e){if(!e||e.valid||!e.valueMissing)return!1;let t=!1;for(let n of UK)n!==`valid`&&(n===`valueMissing`&&(t=e[n]),e[n]&&(t=!1));return t}function GK(e){let{formRef:t,clearErrors:n}=Yd(),{setValidityData:r,validate:i,validityData:a,validationDebounceTime:o,invalid:s,markedDirtyRef:c,state:l,name:u,shouldValidateOnChange:d,getRegisteredFieldId:f}=e,{controlId:p,getDescriptionProps:m}=qc(),h=Of(),g=_.useRef(null),v=Y(async(e,n=!1)=>{let o=g.current;if(!o)return;function u(e,n=s){let r=f()??p;if(r==null)return;let i=t.current.fields.get(r);if(!i)return;let a=HK(e,n);t.current.fields.set(r,{...i,validityData:a})}if(n){if(l.valid!==!1)return;let t=o.validity;if(!t.valueMissing){let t={value:e,state:{...Hs,valid:!0},error:``,errors:[],initialValue:a.initialValue};o.setCustomValidity(``),u(t,!1),r(t);return}let n=UK.reduce((e,n)=>(e[n]=t[n],e),{});if(!n.valid&&!WK(n))return}function m(e){let t=UK.reduce((t,n)=>(t[n]=e.validity[n],t),{}),n=!1;for(let e of UK)if(e!==`valid`){if(e===`valueMissing`&&t[e])n=!0;else if(t[e])return t}return n&&!c.current&&(t.valid=!0,t.valueMissing=!1),t}h.clear();let _=null,v=[],y=m(o),b,x=d();if(o.validationMessage&&!x)b=o.validationMessage,v=[o.validationMessage];else{let n=i(e,Array.from(t.current.fields.values()).reduce((e,t)=>
75(t.name&&(e[t.name]=t.getValue()),e),{}));_=typeof n==`object`&&n&&`then`in n?await n:n,_===null?x&&(o.setCustomValidity(``),y.customError=!1,o.validationMessage?(b=o.validationMessage,v=[o.validationMessage]):o.validity.valid&&!y.valid&&(y.valid=!0)):(y.valid=!1,y.customError=!0,Array.isArray(_)?(v=_,o.setCustomValidity(_.join(` 76`))):_&&(v=[_],o.setCustomValidity(_)))}let S={value:e,state:y,error:b??(Array.isArray(_)?_[0]:_??``),errors:v,initialValue:a.initialValue};u(S),r(S)}),y=_.useCallback((e={})=>lc(m,l.valid===!1?{"aria-invalid":!0}:No,e),[m,l.valid]),b=_.useCallback((e={})=>lc({onChange(e){if(e.nativeEvent.defaultPrevented)return;if(n(u),!d()){v(e.currentTarget.value,!0);return}let t=e.currentTarget;if(t.value===``){v(t.value);return}h.clear(),o?h.start(o,()=>{v(t.value)}):v(t.value)}},y(e)),[y,n,u,h,v,o,d]);return _.useMemo(()=>({getValidationProps:y,getInputValidationProps:b,inputRef:g,commit:v}),[y,b,v])}function KK(e){let{commit:t,invalid:n,markedDirtyRef:r,name:i,setRegisteredFieldId:a,setValidityData:o,validityData:s}=e,{formRef:c}=Yd(),l=_.useRef(null),u=_.useRef(null),d=_.useRef(null),f=Y(()=>{let e=u.current;if(e)return e.getValue?e.getValue():e.value}),p=Y(()=>{let e=u.current;if(!e)return;let n=e.value;n===void 0&&(n=f()),r.current=!0,t(n)});function m(){let e=u.current;!e||!e.id||c.current.fields.set(e.id,{getValue:f,name:i,controlRef:e.controlRef??d,validityData:HK(s,n),validate:p})}function h(e=u.current?.id){e&&c.current.fields.delete(e)}function g(){let e=u.current;if(!e)return;let t=e.value;t===void 0&&(t=f()),s.initialValue===null&&t!==null&&o(e=>({...e,initialValue:t}))}return J(()=>{let e=u.current;!e||!e.id||c.current.fields.set(e.id,{getValue:f,name:i,controlRef:e.controlRef??d,validityData:HK(s,n),validate:p})},[c,f,n,i,p,s]),J(()=>{let e=c.current.fields;return()=>{let t=u.current?.id;t&&e.delete(t)}},[c]),Y((e,t)=>{if(!t){l.current===e&&(l.current=null,h(),u.current=null,a(void 0));return}let n=u.current?.id;l.current=e,u.current=t,a(t.id),n&&n!==t.id&&h(n),g(),m()})}var qK=_.forwardRef(function(e,t){let{errors:n,validationMode:r,submitAttemptedRef:i}=Yd(),{render:a,className:o,validate:s,validationDebounceTime:c=0,validationMode:l=r,name:u,disabled:d=!1,invalid:f,dirty:p,touched:m,actionsRef:h,style:g,...v}=e,{disabled:y}=qd(),b=Y(s||(()=>null)),x=y||d,[S,C]=_.useState(!1),[w,T]=_.useState(!1),[E,D]=_.useState(!1),[O,k]=_.useState(!1),A=p??w,j=m??S,M=_.useRef(!1),N=_.useRef(void 0),P=_.useCallback(()=>N.current,[]),F=_.useCallback(e=>{N.current=e},[]),I=Y(e=>{p===void 0&&(e&&(M.current=!0),T(e))}),L=Y(e=>{m===void 0&&C(e)}),R=Y(()=>l===`onChange`||l===`onSubmit`&&i.current),z=!!u&&Object.hasOwn(n,u)&&n[u]!==void 0,B=f===!0||z,[V,H]=_.useState({state:Hs,error:``,errors:[],value:null,initialValue:null}),U=!B&&V.state.valid,ee=_.useMemo(()=>({disabled:x,touched:j,dirty:A,valid:U,filled:E,focused:O}),[x,j,A,U,E,O]),W=GK({setValidityData:H,validate:b,validityData:V,validationDebounceTime:c,invalid:B,markedDirtyRef:M,state:ee,name:u,shouldValidateOnChange:R,getRegisteredFieldId:P}),te=V.value,ne=_.useCallback(()=>{M.current=!0,W.commit(te)},[W,te]),re=KK({commit:W.commit,invalid:B,markedDirtyRef:M,name:u,setRegisteredFieldId:F,setValidityData:H,validityData:V});_.useImperativeHandle(h,()=>({validate:ne}),[ne]);let ie=_.useMemo(()=>({invalid:B,name:u,validityData:V,setValidityData:H,disabled:x,touched:j,setTouched:L,dirty:A,setDirty:I,filled:E,setFilled:D,focused:O,setFocused:k,validate:b,validationMode:l,validationDebounceTime:c,shouldValidateOnChange:R,state:ee,markedDirtyRef:M,registerFieldControl:re,validation:W}),[B,u,V,x,j,L,A,I,E,D,O,k,b,l,c,R,ee,re,W]),ae=X(`div`,e,{ref:t,state:ee,props:v,stateAttributesMapping:Gs});return(0,Z.jsx)(Hc.Provider,{value:ie,children:ae})}),JK=_.forwardRef(function(e,t){return(0,Z.jsx)(VK,{children:(0,Z.jsx)(qK,{...e,ref:t})})}),YK=_.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,nativeLabel:o=!0,...s}=e,c=Uc(!1),{labelId:l}=qc(),u=_.useRef(null),d=Tg({id:l??a,native:o});return X(`label`,e,{ref:[t,u],state:c.state,props:[d,s],stateAttributesMapping:Gs})}),XK={...Gs,...Bs},ZK=_.forwardRef(function(e,t){let{render:n,id:r,className:i,match:a,style:o,...s}=e,c=Qs(r),{validityData:l,state:u,name:d}=Uc(!1),{setMessageIds:f}=qc(),{errors:p}=Yd(),m=d?p[d]:null,h=typeof a==`string`,g=!1;g=a===!0?!0:h?!!l.state[a]:!!m||l.state.valid===!1;let{mounted:v,transitionStatus:y,setMounted:b}=hl(g);J(()=>{if(!(!g||!c))return f(e=>e.concat(c)),()=>{f(e=>e.filter(e=>e!==c))}},[g,c,f]);let x=_.useRef(null),[S,C]=_.useState(null),[w,T]=_.useState(null),E=l.errors.length>1?(0,Z.jsx)(`ul`,{children:l.errors.map(e=>(0,Z.jsx)(`li`,{children:e},e))}):l.error,D=h?E:m||E,O=l.error;m==null?l.errors.length>1&&(O=JSON.stringify(l.errors)):O=Array.isArray(m)?JSON.stringify(m):m,g&&O!==w&&(T(O),C(D)),ml({open:g,ref:x,onComplete(){g||b(!1)}});let k={...u,transitionStatus:y},A=X(`div`,e,{ref:[t,x],state:k,props:[{id:c,children:g?D:S},s],stateAttributesMapping:XK,enabled:v});return v?A:null}),QK=_.forwardRef(function(e,t){let{render:n,id:r,className:i,style:a,...o}=e,s=Qs(r),c=Uc(!1),{setMessageIds:l}=qc();return J(()=>{if(s)return l(e=>e.concat(s)),()=>{l(e=>e.filter(e=>e!==s))}},[s,l]),X(`p`,e,{ref:t,state:c.state,props:[{id:s},o],stateAttributesMapping:Gs})}),$K=_.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:h,setTouched:g,setDirty:v,validityData:y,setFocused:b,setFilled:x,validationMode:S,validation:C}=Uc(),w=h||s,T=m??a,E={...p,disabled:w},{labelId:D}=qc(),O=Zc({id:i});J(()=>{let e=o!=null;C.inputRef.current?.value||e&&o!==``?x(!0):e&&o===``&&x(!1)},[C.inputRef,x,o]);let k=_.useRef(null);J(()=>{u&&k.current===Rl(as(k.current))&&b(!0)},[u,b]);let[A]=_l({controlled:o,default:l,name:`FieldControl`,state:`value`}),j=o!==void 0,M=j?A:void 0,N=Y(()=>C.inputRef.current?.value);return Gd(C.inputRef,O,M,N),X(`input`,e,{ref:[t,k],state:E,props:[{id:O,disabled:w,name:T,ref:C.inputRef,"aria-labelledby":D,autoFocus:u,...j?{value:M}:{defaultValue:l},onChange(e){let t=e.currentTarget.value;c?.(t,Fs(os,e.nativeEvent)),v(t!==y.initialValue),x(t!==``)},onFocus(){b(!0)},onBlur(e){g(!0),b(!1),S===`onBlur`&&C.commit(e.currentTarget.value)},onKeyDown(e){e.currentTarget.tagName===`INPUT`&&e.key===`Enter`&&(g(!0),C.commit(e.currentTarget.value))}},C.getInputValidationProps(),f],stateAttributesMapping:Gs})}),eq=_.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,...o}=e,[s,c]=_.useState(void 0),l=X(`fieldset`,e,{ref:t,state:{disabled:a},props:[{"aria-labelledby":s},o]}),u=_.useMemo(()=>({legendId:s,setLegendId:c,disabled:a}),[s,c,a]);return(0,Z.jsx)(Kd.Provider,{value:u,children:l})}),tq=_.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{disabled:s,setLegendId:c}=qd(),l=Qs(a);return J(()=>(c(l),()=>{c(void 0)}),[c,l]),X(`div`,e,{state:{disabled:s??!1},ref:t,props:[{id:l},o]})}),nq=_.forwardRef(function(e,t){let{render:n,className:r,validationMode:i=`onSubmit`,errors:a,onSubmit:o,onFormSubmit:s,actionsRef:c,style:l,...u}=e,d=_.useRef({fields:new Map}),f=_.useRef(!1),p=_.useRef(!1),m=Y(e=>{e&&(e.focus(),e.tagName===`INPUT`&&e.select())}),[h,g]=_.useState(a);Xd(a,()=>{g(a)}),_.useEffect(()=>{if(!f.current)return;f.current=!1;let e=Array.from(d.current.fields.values()).filter(e=>e.validityData.state.valid===!1);e.length&&m(e[0].controlRef.current)},[h,m]);let v=_.useCallback(e=>{let t=Array.from(d.current.fields.values());if(e){let n=t.find(t=>t.name===e);n&&n.validate()}
76else t.forEach(e=>{e.validate()})},[]);_.useImperativeHandle(c,()=>({validate:v}),[v]);let y=X(`form`,e,{ref:t,props:[{noValidate:!0,onSubmit(e){p.current=!0;let t=Array.from(d.current.fields.values());t.forEach(e=>{e.validate()}),t=Array.from(d.current.fields.values());let n=t.filter(e=>!e.validityData.state.valid);n.length?(e.preventDefault(),m(n[0].controlRef.current)):(f.current=!0,o?.(e),s&&(e.preventDefault(),s(t.reduce((e,t)=>(t.name&&(e[t.name]=t.getValue()),e),{}),Is(os,e.nativeEvent))))}},u]}),b=Y(e=>{if(e&&h&&No.hasOwnProperty.call(h,e)){let t={...h};delete t[e],g(t)}}),x=_.useMemo(()=>({formRef:d,validationMode:i,errors:h??No,clearErrors:b,submitAttemptedRef:p}),[d,i,h,b]);return(0,Z.jsx)(Jd.Provider,{value:x,children:y})}),rq=_.forwardRef(function(e,t){return(0,Z.jsx)($K,{ref:t,...e})}),iq=function(e){return e.modal=`data-modal`,e.orientation=`data-orientation`,e.hasSubmenuOpen=`data-has-submenu-open`,e}({}),aq={hasSubmenuOpen(e){return e?{[iq.hasSubmenuOpen]:``}:null}},oq=_.forwardRef(function(e,t){let{orientation:n=`horizontal`,loopFocus:r=!0,render:i,className:a,modal:o=!0,disabled:s=!1,id:c,style:l,...u}=e,[d,f]=_.useState(null),[p,m]=_.useState(!1),h=Qs(c),g={orientation:n,modal:o,hasSubmenuOpen:p},v=_.useRef(null),y=_.useRef(!1),b=_.useMemo(()=>({contentElement:d,setContentElement:f,setHasSubmenuOpen:m,hasSubmenuOpen:p,modal:o,disabled:s,orientation:n,allowMouseUpTriggerRef:y,rootId:h}),[d,p,o,s,n,h]);return(0,Z.jsx)(UG.Provider,{value:b,children:(0,Z.jsx)(xp,{children:(0,Z.jsx)(sq,{children:(0,Z.jsx)(Wd,{render:i,className:a,style:l,state:g,stateAttributesMapping:aq,refs:[t,f,v],props:[{role:`menubar`,id:h},u],orientation:n,loopFocus:r,highlightItemOnHover:p})})})})});function sq(e){let t=yp(),{events:n}=vp(),r=WG();return _.useEffect(()=>{function e(e){!e.nodeId||e.parentNodeId!==t||(e.open?r.hasSubmenuOpen||r.setHasSubmenuOpen(!0):e.reason!==`sibling-open`&&e.reason!==`list-navigation`&&r.setHasSubmenuOpen(!1))}return n.on(`menuopenchange`,e),()=>{n.off(`menuopenchange`,e)}},[n,t,r]),(0,Z.jsx)(bp,{id:t,children:e.children})}var cq=_.createContext(void 0);function lq(){let e=_.useContext(cq);if(e===void 0)throw Error(ec(38));return e}var uq=new Map;function dq(e,t){let n=JSON.stringify({locale:e,options:t}),r=uq.get(n);if(r)return r;let i=new Intl.NumberFormat(e,t);return uq.set(n,i),i}function fq(e,t,n){return e==null?``:dq(t,n).format(e)}function pq(e,t,n){return fq(e,t,{...n,maximumFractionDigits:20})}function mq(e,t,n){return e==null?``:n?fq(e,t,n):fq(e/100,t,{style:`percent`})}var hq=_.forwardRef(function(e,t){let{format:n,getAriaValueText:r,locale:i,max:a=100,min:o=0,value:s,render:c,className:l,children:u,style:d,...f}=e,[p,m]=_.useState(),h=mq(s,i,n),g=`${s}%`;r?g=r(h,s):n&&(g=h);let v={"aria-labelledby":p,"aria-valuemax":a,"aria-valuemin":o,"aria-valuenow":s,"aria-valuetext":g,role:`meter`,children:(0,Z.jsxs)(_.Fragment,{children:[u,(0,Z.jsx)(`span`,{role:`presentation`,style:ko,children:`x`})]})},y=_.useMemo(()=>({formattedValue:h,max:a,min:o,setLabelId:m,value:s}),[h,a,o,m,s]),b=X(`div`,e,{ref:t,props:[v,f]});return(0,Z.jsx)(cq.Provider,{value:y,children:b})}),gq=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return X(`div`,e,{ref:t,props:a})});function _q(e,t,n){return(e-t)*100/(n-t)}var vq=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=lq();return X(`div`,e,{ref:t,props:[{style:{insetInlineStart:0,height:`inherit`,width:`${_q(o.value,o.min,o.max)}%`}},a]})}),yq=_.forwardRef(function(e,t){let{className:n,render:r,children:i,style:a,...o}=e,{value:s,formattedValue:c}=lq();return X(`span`,e,{ref:t,props:[{"aria-hidden":!0,children:typeof i==`function`?i(c,s):(c||s)??``},o]})}),bq=_.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{setLabelId:s}=lq();return X(`span`,e,{ref:t,props:[{id:wg(a,s),role:`presentation`},o]})}),xq=_.createContext(void 0);function Sq(e){let t=_.useContext(xq);if(t===void 0&&!e)throw Error(ec(41));return t}var Cq=_.createContext(void 0);function wq(){return _.useContext(Cq)}var Tq=function(e){return e.popupWidth=`--popup-width`,e.popupHeight=`--popup-height`,e}({}),Eq=function(e){return e.availableWidth=`--available-width`,e.availableHeight=`--available-height`,e.anchorWidth=`--anchor-width`,e.anchorHeight=`--anchor-height`,e.transformOrigin=`--transform-origin`,e.positionerWidth=`--positioner-width`,e.positionerHeight=`--positioner-height`,e}({}),Dq=new Set([cs,us,Ss]);function Oq(e,t){let{width:n,height:r}=iK(e);n===0||r===0||(e.style.setProperty(Tq.popupWidth,`${n}px`),e.style.setProperty(Tq.popupHeight,`${r}px`),t.style.setProperty(Eq.positionerWidth,`${n}px`),t.style.setProperty(Eq.positionerHeight,`${r}px`))}var kq=_.forwardRef(function(e,t){let{defaultValue:n=null,value:r,onValueChange:i,actionsRef:a,delay:o=50,closeDelay:s=50,orientation:c=`horizontal`,onOpenChangeComplete:l}=e,u=_p()!=null,d=Sq(!0),[f,p]=_l({controlled:r,default:n,name:`NavigationMenu`,state:`value`}),m=f!=null,h=_.useRef(void 0),g=_.useRef(null),[v,y]=_.useState(null),[b,x]=_.useState(null),[S,C]=_.useState(null),[w,T]=_.useState(null),[E,D]=_.useState(null),[O,k]=_.useState(void 0),[A,j]=_.useState(!1),M=_.useRef(null),N=_.useRef(null),P=_.useRef(null),F=_.useRef(null),I=_.useRef(null),L=_.useRef(null),R=_.useRef({abortController:null,owner:null}),{mounted:z,setMounted:B,transitionStatus:V}=hl(m);_.useEffect(()=>{j(!1)},[f]);let H=Y((e,t)=>
76{e||(h.current=t.reason,D(null),k(void 0),v&&b&&Oq(b,v)),e!==f&&i?.(e,t),!t.isCanceled&&(p(e),u&&!e&&t.reason===`link-press`&&d&&d.setValue(null,t))}),U=Y(()=>{let e=Rl(as(g.current));!(h.current&&Dq.has(h.current))&&Bo(M.current)&&(e===as(b).body||zl(b,e))&&b&&(M.current.focus({preventScroll:!0}),M.current=void 0),B(!1),l?.(!1),D(null),k(void 0),N.current=null,h.current=void 0});ml({enabled:!a,open:m,ref:{current:b},onComplete(){m||U()}}),ml({enabled:!a,open:m,ref:{current:w},onComplete(){m||U()}});let ee=_.useMemo(()=>({open:m,value:f,setValue:H,mounted:z,transitionStatus:V,positionerElement:v,setPositionerElement:y,popupElement:b,setPopupElement:x,viewportElement:S,setViewportElement:C,viewportTargetElement:w,setViewportTargetElement:T,activationDirection:E,setActivationDirection:D,floatingRootContext:O,setFloatingRootContext:k,currentContentRef:N,nested:u,rootRef:g,beforeInsideRef:P,afterInsideRef:F,beforeOutsideRef:I,afterOutsideRef:L,prevTriggerElementRef:M,popupAutoSizeResetRef:R,delay:o,closeDelay:s,orientation:c,viewportInert:A,setViewportInert:j}),[m,f,H,z,V,v,b,S,w,E,O,u,o,s,c,A]),W=(0,Z.jsx)(xq.Provider,{value:ee,children:(0,Z.jsx)(Aq,{componentProps:e,forwardedRef:t,children:e.children})});return u?W:(0,Z.jsx)(xp,{children:W})});function Aq(e){let{className:t,render:n,defaultValue:r,value:i,onValueChange:a,actionsRef:o,delay:s,closeDelay:c,orientation:l,onOpenChangeComplete:u,style:d,...f}=e.componentProps,p=yp(),{rootRef:m,nested:h,open:g}=Sq(),_={open:g,nested:h},v=X(h?`div`:`nav`,e.componentProps,{state:_,ref:[e.forwardedRef,m],props:f});return(0,Z.jsx)(Cq.Provider,{value:p,children:(0,Z.jsx)(bp,{id:p,children:v})})}var jq=`data-base-ui-navigation-menu-trigger`,Mq=_.createContext(void 0);function Nq(){return _.useContext(Mq)}var Pq=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=wq(),{orientation:s,open:c,floatingRootContext:l,positionerElement:u,value:d,closeDelay:f,viewportElement:p,nested:m}=Sq(),h=_.useMemo(()=>vh(),[]),g=l||h,v=u?!0:!d;Ih(g,{enabled:!!l&&(u||p?!0:!d),closeDelay:f,nodeId:o});let y=Rp(g,{enabled:v,outsidePressEvent:`intentional`,outsidePress(e){return Bl(e)?.closest(`[${jq}]`)===null}}),b=l?y:void 0,x={open:c},S=m?No:{onKeyDown(e){(s===`horizontal`&&(e.key===`ArrowLeft`||e.key===`ArrowRight`)||s===`vertical`&&(e.key===`ArrowUp`||e.key===`ArrowDown`))&&e.stopPropagation()}},C=[b?.floating||No,S,{"aria-orientation":void 0},a],w=X(`ul`,e,{state:x,ref:t,props:C,enabled:m});return m?(0,Z.jsx)(Mq.Provider,{value:b,children:w}):(0,Z.jsx)(Mq.Provider,{value:b,children:(0,Z.jsx)(Wd,{render:n,className:r,style:i,state:x,refs:[t],props:C,loopFocus:!1,orientation:s,tag:`ul`})})}),Fq=_.createContext(void 0);function Iq(){let e=_.useContext(Fq);if(!e)throw Error(ec(39));return e}var Lq=_.forwardRef(function(e,t){let{render:n,className:r,style:i,value:a,...o}=e,s=Qs(),c=a??s,l=X(`li`,e,{ref:t,props:o}),u=_.useMemo(()=>({value:c}),[c]);return(0,Z.jsx)(Fq.Provider,{value:u,children:l})}),Rq={...Rg,...Bs,activationDirection(e){return e?{"data-activation-direction":e}:null}},zq=_.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,{mounted:s,viewportElement:c,value:l,activationDirection:u,currentContentRef:d,viewportTargetElement:f}=Sq(),{value:p}=Iq(),m=wq(),h=s&&l===p,g=_.useRef(null),[v,y]=_.useState(!1),[b,x]=_.useState(!1),{mounted:S,setMounted:C,transitionStatus:w}=hl(h);S&&!s&&C(!1),ml({ref:g,open:h,onComplete(){h||C(!1)}}),J(()=>{h&&g.current&&(d.current=g.current)},[h,d]);let T={open:h,transitionStatus:w,activationDirection:u},E=Y(e=>{e&&h&&(d.current=e)}),D={onFocus(e){Bl(e.nativeEvent)?.hasAttribute(`data-base-ui-focus-guard`)||x(!0)},onBlur(e){zl(e.currentTarget,e.relatedTarget)||x(!1)}},O=!h&&S?{style:{position:`absolute`,top:0,left:0},inert:Yg(!b),...D}:D,k=f||c,A=a&&!S,j=a&&!k&&!v;return a&&k&&!v&&y(!0),j?(0,Z.jsx)(Wd,{render:n,className:r,style:i,state:T,refs:[t],props:[O,{hidden:!0},o],stateAttributesMapping:Rq}):!k||!S&&!a?null:fl.createPortal((0,Z.jsx)(bp,{id:m,children:(0,Z.jsx)(Wd,{render:n,className:r,style:i,state:T,refs:[t,g,E],props:[O,A?{hidden:!0}:No,o],stateAttributesMapping:Rq})}),k)});function Bq({currentTarget:e,relatedTarget:t},n){let{popupElement:r,rootRef:i,tree:a,nodeId:o}=n,s=a?Yl(a.nodesRef.current,o).some(e=>zl(e.context?.elements.floating,t)):[];return r?!zl(r,e)&&!zl(r,t)&&!zl(i.current,t)&&!s&&!(zl(r,t)&&t?.hasAttribute(`data-base-ui-focus-guard`)):!zl(i.current,t)&&!s}
76var Vq={width:0,height:0},Hq=_.forwardRef(function(e,t){let{render:n,className:r,style:i,nativeButton:a=!0,disabled:o,...s}=e,{value:c,setValue:l,mounted:u,open:d,positionerElement:f,setActivationDirection:p,setFloatingRootContext:m,popupElement:h,viewportElement:g,transitionStatus:v,rootRef:y,beforeOutsideRef:b,afterOutsideRef:x,afterInsideRef:S,beforeInsideRef:C,prevTriggerElementRef:w,popupAutoSizeResetRef:T,currentContentRef:E,delay:D,closeDelay:O,orientation:k,setViewportInert:A,nested:j}=Sq(),{value:M}=Iq(),N=wq(),P=vp(),F=Nq(),I=Ud(),L=Of(),R=ul(),z=ul(),B=ul(),V=ul(),[H,U]=_.useState(null),[ee,W]=_.useState(!0),[te,ne]=_.useState(``),re=_.useRef(null),ie=_.useRef(!1),ae=_.useRef(Vq),G=_.useRef(!1),oe=d&&c===M,K=tf(oe),se=f?!0:!c,ce=f||g,le=ce?!0:!c,ue=pl(h,!1,!1),de=_.useCallback(e=>{re.current=e,U(e)},[]),fe=Y((e=!1)=>{!e&&T.current.owner!==M||(T.current.abortController?.abort(),T.current.abortController=null,T.current.owner=null)});J(()=>{oe||(z.cancel(),V.cancel(),fe())},[oe,z,V,fe]);function pe(){h&&(h.style.setProperty(Tq.popupWidth,`auto`),h.style.setProperty(Tq.popupHeight,`auto`))}function me(){!h||!f||(h.style.removeProperty(Tq.popupWidth),h.style.removeProperty(Tq.popupHeight),f.style.removeProperty(Eq.positionerWidth),f.style.removeProperty(Eq.positionerHeight))}function he(e,t){!h||!f||(h.style.setProperty(Tq.popupWidth,`${e}px`),h.style.setProperty(Tq.popupHeight,`${t}px`),f.style.setProperty(Eq.positionerWidth,`${e}px`),f.style.setProperty(Eq.positionerHeight,`${t}px`))}function ge(){fe(!0);let e=new AbortController;T.current.abortController=e,T.current.owner=M,ue(()=>{T.current.abortController!==e||T.current.owner!==M||(T.current.abortController=null,T.current.owner=null,pe())},e.signal)}let _e=Y((e,t,n={})=>{if(!h||!f)return;fe(!0);let{syncPositioner:r=!1}=n;me();let{width:i,height:a}=iK(h),o=i||ae.current.width,s=a||ae.current.height;(t===0||e===0)&&(e=o,t=s),h.style.setProperty(Tq.popupWidth,`${e}px`),h.style.setProperty(Tq.popupHeight,`${t}px`),f.style.setProperty(Eq.positionerWidth,`${r?e:o}px`),f.style.setProperty(Eq.positionerHeight,`${r?t:s}px`),V.request(()=>{K.current&&(h.style.setProperty(Tq.popupWidth,`${o}px`),h.style.setProperty(Tq.popupHeight,`${s}px`),r&&(f.style.setProperty(Eq.positionerWidth,`${o}px`),f.style.setProperty(Eq.positionerHeight,`${s}px`)),ge())})}),ve=Y((e,t)=>{!h||!f||(V.cancel(),z.cancel(),fe(!0),!(e===0||t===0)&&(he(e,t),z.request(()=>{z.request(()=>{me();let{width:n,height:r}=iK(h),i=n||e||ae.current.width,a=r||t||ae.current.height;he(e,t),V.request(()=>{K.current&&(he(i,a),ge())})})})))}),ye=Y(()=>{if(!h||!f)return;V.cancel(),fe(!0),me();let{width:e,height:t}=iK(h);e===0||t===0||(ae.current={width:e,height:t},pe(),f.style.setProperty(Eq.positionerWidth,`${e}px`),f.style.setProperty(Eq.positionerHeight,`${t}px`))}),be=Y(()=>{if(!h)return{size:ae.current,syncPositioner:!1};let e=h.style.getPropertyValue(Tq.popupWidth),t=h.style.getPropertyValue(Tq.popupHeight);return e!==``&&e!==`auto`&&t!==``&&t!==`auto`?{size:{width:h.offsetWidth||ae.current.width,height:h.offsetHeight||ae.current.height},syncPositioner:!0}:{size:ae.current,syncPositioner:!1}});_.useEffect(()=>{d||(L.clear(),z.cancel(),B.cancel(),V.cancel(),fe(!0),G.current=!1,ne(``))},[L,d,z,B,V,fe]),_.useEffect(()=>{u||(ae.current=Vq)},[u]),_.useEffect(()=>{if(!h||typeof ResizeObserver!=`function`)return;let e=new ResizeObserver(()=>{ae.current={width:h.offsetWidth,height:h.offsetHeight}});return e.observe(h),()=>{e.disconnect()}},[h]),_.useEffect(()=>{if(!d||!oe||!h||!f)return;let e=Io(f);function t(){B.cancel(),B.request(ye)}let n=wf(e,`resize`,t);return()=>{B.cancel(),n()}},[d,oe,h,f,B,ye]),_.useEffect(()=>{let e=E.current;if(!e||!h||!oe||typeof MutationObserver!=`function`)return;let t=new MutationObserver(()=>{if(v===`starting`||h.hasAttribute(Ls.startingStyle)){ye();return}let{size:e,syncPositioner:t}=be();if(t){ve(e.width,e.height);return}_e(e.width,e.height)});return t.observe(e,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:[`hidden`]}),()=>{t.disconnect()}},[E,h,oe,v,be,ve,_e,ye]),_.useEffect(()=>(oe&&d&&h&&ie.current&&(ie.current=!1,R.request(()=>{b.current?.focus()}
76)),()=>{R.cancel()}),[b,R,oe,d,h]),J(()=>{if(K.current&&d&&h){let e=E.current?.querySelector(`[data-nested]`)!=null;if(v===`starting`&&e)return V.request(ye),()=>{V.cancel()};if(G.current){G.current=!1;return}let{width:t,height:n}=iK(h);_e(t,n)}},[E,_e,K,d,h,V,ye,v]);function xe(e,t){let n=t.reason===cs;if(!se||te===`touch`&&n||!e&&c!==M)return;function r(){n&&(W(!0),L.clear(),L.start(500,()=>{W(!1)})),e?l(M,t):(l(null,t),ne(``))}n?fl.flushSync(r):r()}let Se=Dh({open:d,onOpenChange:xe,elements:{reference:H,floating:ce}}),Ce=Fh(Se),we=te!==`touch`;_.useEffect(()=>{d||(Se.context.dataRef.current.openEvent=void 0,Ce.pointerType=void 0,Ce.interactedInside=!1,Ce.restTimeoutPending=!1,Ce.openChangeTimeout.clear(),Ce.restTimeout.clear(),Nh(Ce))},[Se,Ce,d]);let Te=Y(()=>!j||f||!re.current||!ce?null:Wq(re.current,ce,N));function Ee(){return!j||!f?re.current?.closest(`ul`)??null:null}let De=Rh(Se,{enabled:le,move:!1,handleClose:eg({blockPointerEvents:we,getScope:Ee}),restMs:u&&f?0:D,delay:{close:O},triggerElementRef:re,getHandleCloseContext:Te}),Oe=_.useMemo(()=>De?{reference:De}:void 0,[De]),ke=jp(Se,{enabled:se,stickIfOpen:ee,toggle:oe}),Ae=_.useMemo(()=>lc(ke.reference,Oe?.reference),[ke.reference,Oe]);J(()=>{oe&&(m(Se),w.current=H)},[oe,Se,m,w,H]);function je(e){fl.flushSync(()=>{let t=Bo(e.currentTarget)?e.currentTarget:null,n=w.current?.getBoundingClientRect();if(u&&n&&H){let e=H.getBoundingClientRect(),t=e.left>n.left,r=e.top>n.top;k===`horizontal`&&e.left!==n.left?p(t?`right`:`left`):k===`vertical`&&e.top!==n.top&&p(r?`down`:`up`)}if(e.type!==`click`&&c!=null&&(Se.context.dataRef.current.openEvent=void 0),!(te===`touch`&&e.type!==`click`)&&(c!=null&&l(M,Fs(e.type===`mouseenter`?cs:ss,e.nativeEvent)),e.type===`mouseenter`&&we&&(!j||!f)&&ce&&t)){let e=()=>{Ph(Ce,{scopeElement:Ee()??t.ownerDocument.body,referenceElement:t,floatingElement:ce})};c!=null&&c!==M?queueMicrotask(e):e()}})}let Me=Y(e=>{if(!h||!f){je(e);return}let{width:t,height:n}=iK(h),r=c!=null&&c!==M&&(e.type===`click`||te!==`touch`);je(e),r&&(G.current=!0),_e(t,n)}),Ne={open:oe};function Pe(e){ne(e.pointerType)}function Fe(e){Pe(e),Nh(Ce)}let Ie={tabIndex:0,onMouseEnter:Me,onClick:Me,onPointerEnter:Pe,onPointerDown:Fe,"aria-expanded":oe,"aria-controls":oe?h?.id:void 0,[jq]:``,onFocus(){oe&&A(!1)},onMouseMove(){ie.current=!1},onKeyDown(e){if(ie.current=!0,j)return;let t=I===`rtl`?`ArrowLeft`:`ArrowRight`,n=k===`horizontal`&&e.key===`ArrowDown`,r=k===`vertical`&&e.key===t;(n||r)&&(l(M,Fs(Ts,e.nativeEvent)),Me(e),Zl(e))},onBlur(e){f&&h&&Bq({currentTarget:e.currentTarget,relatedTarget:e.relatedTarget},{popupElement:h,rootRef:y,tree:P,nodeId:N})&&l(null,Fs(Ss,e.nativeEvent))}},{getButtonProps:Le,buttonRef:Re}=jc({disabled:o,focusableWhenDisabled:!0,native:a}),ze=ce;return(0,Z.jsxs)(_.Fragment,{children:[(0,Z.jsx)(Bc,{tag:`button`,render:n,className:r,style:i,state:Ne,stateAttributesMapping:Lg,refs:[t,de,Re],props:[Ae,F?.reference||Mo,Ie,s,Le]}),oe&&(0,Z.jsxs)(_.Fragment,{children:[(0,Z.jsx)(Lf,{ref:b,onFocus:e=>{ze&&dd(e,ze)?C.current?.focus():sd(H)?.focus()}}),(0,Z.jsx)(`span`,{"aria-owns":g?.id,style:sp}),(0,Z.jsx)(Lf,{ref:x,onFocus:e=>{if(ze&&dd(e,ze))fl.flushSync(()=>{A(!1)}),(S.current||H)?.focus();else{let t=od(H);j&&!f&&ze&&t&&zl(ze,t)&&(t=ld(S.current)),t?.focus(),(!j||f)&&!zl(y.current,t)&&l(null,Fs(`focus-out`,e.nativeEvent))}}})]})]})});function Uq(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.left+n.width/2,a=n.top+n.height/2,o=r.left+r.width/2,s=r.top+r.height/2,c=o-i,l=s-a;return Math.abs(c)>=Math.abs(l)?c>
76=0?`right`:`left`:l>=0?`bottom`:`top`}function Wq(e,t,n){return{placement:Uq(e,t),elements:{domReference:e,floating:t},nodeId:n}}var Gq=_.createContext(void 0);function Kq(e=!1){let t=_.useContext(Gq);if(!t&&!e)throw Error(ec(42));return t}var qq=vh();function Jq({children:e}){let{beforeInsideRef:t,beforeOutsideRef:n,afterInsideRef:r,afterOutsideRef:i,positionerElement:a,viewportElement:o,floatingRootContext:s}=Sq(),c=!!Kq(!0),l=a||o;return!s&&!c?e:(0,Z.jsxs)(_.Fragment,{children:[(0,Z.jsx)(Lf,{ref:t,onFocus:e=>{l&&dd(e,l)?od(l)?.focus():n.current?.focus()}}),e,(0,Z.jsx)(Lf,{ref:r,onFocus:e=>{l&&dd(e,l)?sd(l)?.focus():i.current?.focus()}})]})}var Yq=_.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,id:o,...s}=e,c=Zs(o),{setViewportElement:l,setViewportTargetElement:u,floatingRootContext:d,prevTriggerElementRef:f,viewportInert:p,setViewportInert:m}=Sq(),h=!!Kq(!0),g=(d||qq).useState(`domReferenceElement`);J(()=>{g&&(f.current=g)},[g,f]);let _=X(`div`,e,{ref:[t,l],props:[{id:c,onBlur(e){let t=e.relatedTarget,n=e.currentTarget;t&&!zl(n,t)&&t!==g&&m(!0)},...!h&&p&&{inert:Yg(!0)},children:h?a:(0,Z.jsx)(Jq,{children:(0,Z.jsx)(`div`,{ref:u,children:a})})},s]});return h?(0,Z.jsx)(Jq,{children:_}):_}),Xq=_.forwardRef(function(e,t){let{className:n,render:r,active:i=!1,closeOnClick:a=!1,style:o,...s}=e,{setValue:c,popupElement:l,positionerElement:u,rootRef:d}=Sq(),f=wq(),p=vp();return(0,Z.jsx)(Bc,{tag:`a`,render:r,className:n,style:o,state:{active:i},refs:[t],props:[{"aria-current":i?`page`:void 0,tabIndex:void 0,onClick(e){a&&c(null,Fs(ps,e.nativeEvent))},onBlur(e){u&&l&&Bq({currentTarget:e.currentTarget,relatedTarget:e.relatedTarget},{popupElement:l,rootRef:d,tree:p,nodeId:f})&&c(null,Fs(Ss,e.nativeEvent))}},s]})}),Zq=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{value:o}=Iq(),{open:s,value:c}=Sq();return X(`span`,e,{state:{open:s&&c===o},ref:t,props:[{"aria-hidden":!0,children:`â¼`},a],stateAttributesMapping:Ig})}),Qq=_.createContext(void 0);function $q(){let e=_.useContext(Qq);if(e===void 0)throw Error(ec(43));return e}var eJ={inputValue:()=>null,value:()=>null,...Gs},tJ=[`é¶`,`ã`,`ä¸`,`äº`,`ä¸`,`å`,`äº`,`å
`,`ä¸`,`å
«`,`ä¹`],nJ={é¶:`0`,ã:`0`,ä¸:`1`,äº:`2`,ä¸:`3`,å:`4`,äº:`5`,å
:`6`,ä¸:`7`,å
«:`8`,ä¹:`9`},rJ=[`Ù `,`Ù¡`,`Ù¢`,`Ù£`,`Ù¤`,`Ù¥`,`Ù¦`,`Ù§`,`Ù¨`,`Ù©`],iJ=[`Û°`,`Û±`,`Û²`,`Û³`,`Û´`,`Ûµ`,`Û¶`,`Û·`,`Û¸`,`Û¹`],aJ=[`ï¼`,`ï¼`,`ï¼`,`ï¼`,`ï¼`,`ï¼`,`ï¼`,`ï¼`,`ï¼`,`ï¼`],oJ=[`%`,`Ùª`,`ï¼
`,`﹪`],sJ=[`â°`,`Ø`],cJ=[`â`,`ï¼`,`â`,`â`,`â`,`ï¹£`],lJ=[`ï¼`,`ï¹¢`],uJ=RegExp(`[${rJ.join(``)}]`,`g`),dJ=RegExp(`[${iJ.join(``)}]`,`g`),fJ=RegExp(`[${aJ.join(``)}]`,`g`),pJ=RegExp(`[${tJ.join(``)}]`,`g`),mJ=RegExp(`[${oJ.join(``)}]`),hJ=RegExp(`[${sJ.join(``)}]`),gJ=/[٠١٢٣٤٥٦٧٨٩]/,_J=/[Û°Û±Û²Û³Û´ÛµÛ¶Û·Û¸Û¹]/,vJ=/[é¶ãä¸äºä¸åäºå
ä¸å
«ä¹]/,yJ=RegExp(`[${aJ.join(``)}]`),bJ=[`.`,`,`,`ï¼`,`ï¼`,`Ù«`,`Ù¬`],xJ=/\p{Zs}/u,SJ=[`+`,...lJ],CJ=[`-`,...cJ],wJ=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),TJ=e=>e.replace(/[-\\\]^]/g,e=>`\\${e}`),EJ=e=>`[${e.map(TJ).join(``)}]`,DJ=EJ([`-`].concat(cJ)),OJ=EJ([`+`].concat(lJ)),kJ=new RegExp(DJ,`gu`),AJ=new RegExp(OJ,`gu`),jJ=new RegExp(DJ),MJ=new RegExp(OJ);function NJ(e,t){let n=dq(e,t).formatToParts(11111.1),r={};return n.forEach(e=>{r[e.type]=e.value}),dq(e).formatToParts(.1).forEach(e=>{e.type===`decimal`&&(r[e.type]=e.value)}),r}function PJ(e,t,n){if(e==null)return null;let r=String(e).replace(/\p{Cf}/gu,``).trim();r=r.replace(kJ,`-`).replace(AJ,`+`);let i=!1,a=r.match(/([+-])\s*$/);a&&(a[1]===`-`&&(i=!0),r=r.replace(/([+-])\s*$/,``));let o=r.match(/^\s*([+-])/);o&&(o[1]===`-`&&(i=!0),r=r.replace(/^\s*[+-]/,``));let s=t;s===void 0&&(gJ.test(r)||_J.test(r)?s=`ar`:vJ.test(r)&&(s=`zh`));let{group:c,decimal:l,currency:u}=NJ(s,n),d=dq(s,n).formatToParts(1).filter(e=>e.type===`unit`).map(e=>wJ(e.value)),f=d.length?new RegExp(d.join(`|`),`g`):null,p=null;c&&(p=/\p{Zs}/u.test(c)?/\p{Zs}/gu:c===`'`||c===`â`?/['â]/g:new RegExp(wJ(c),`g`));let m=[{regex:c?p:null,replacement:``},{regex:l?new RegExp(wJ(l),`g`):null,replacement:`.`},{regex:/ï¼/g,replacement:`.`},{regex:/ï¼/g,replacement:``},{regex:/Ù«/g,replacement:`.`},{regex:/Ù¬/g,replacement:``},{regex:u?new RegExp(wJ(u),`g`):null,replacement:``},{regex:f,replacement:``},{regex:uJ,replacement:e=>String(rJ.indexOf(e))},{regex:dJ,replacement:e=>String(iJ.indexOf(e))},{regex:fJ,replacement:e=>String(aJ.indexOf(e))},{regex:pJ,replacement:e=>nJ[e]}].reduce((e,{regex:t,replacement:n})=>t?e.replace(t,n):e,r),h=m.lastIndexOf(`.`);if(h!==-1&&(m=`${m.slice(0,h).replace(/\./g,``)}.${m.slice(h+1).replace(/\./g,``)}`),/^[-+]?Infinity$/i.test(r)||/[â]/.test(r))return null;let g=(i?`-`:``)+m,_=parseFloat(g),v=n?.style,y=v===`unit`&&n?.unit===`percent`,b=mJ.test(e)||v===`percent`;return hJ.test(e)?_/=1e3:!y&&b&&(_/=100),Number.isNaN(_)?null:_}var FJ=1e-10;function IJ(e){let t=dq(`en-US`).resolvedOptions(),n=e?.minimumFractionDigits??t.minimumFractionDigits??
760;return{maximumFractionDigits:Math.max(e?.maximumFractionDigits??t.maximumFractionDigits??20,n),minimumFractionDigits:n}}function LJ(e,t){if(!Number.isFinite(e))return e;let n=Math.min(Math.max(t,0),20);return Number(e.toFixed(n))}function RJ(e,t){let{maximumFractionDigits:n}=IJ(t);return LJ(e,n)}function zJ(e,t,n,r=`directional`){if(n===0)return e;let i=Math.abs(n),a=Math.sign(n),o=i*FJ*a,s=r===`nearest`?n:i,c=(e-t+o)/s,l;return l=r===`nearest`?Math.round(c):a>0?Math.floor(c):Math.ceil(c),t+l*(r===`nearest`?n:i)}function BJ(e,{step:t,minWithDefault:n,maxWithDefault:r,minWithZeroDefault:i,format:a,snapOnStep:o,small:s,clamp:c}){if(e===null)return e;let l=c?bg(e,n,r):e;if(t!=null&&o){if(t===0)return RJ(l,a);let e=i;return!s&&n!==-(2**53-1)&&(e=n),RJ(zJ(l,e,t,s?`nearest`:`directional`),a)}return RJ(l,a)}var VJ=_.forwardRef(function(e,t){let{id:n,min:r,max:i,smallStep:a=.1,step:o=1,largeStep:s=10,required:c=!1,disabled:l=!1,readOnly:u=!1,form:d,name:f,defaultValue:p,value:m,onValueChange:h,onValueCommitted:g,allowWheelScrub:v=!1,snapOnStep:y=!1,allowOutOfRange:b=!1,format:x,locale:S,render:C,className:w,inputRef:T,style:E,...D}=e,{setDirty:O,validityData:k,disabled:A,setFilled:j,invalid:M,name:N,state:P,validation:F,shouldValidateOnChange:I}=Uc(),L=A||l,R=N??f,z=o===`any`?1:o,[B,V]=_.useState(!1),H=r??-(2**53-1),U=i??2**53-1,ee=r??0,W=x?.style,te=_.useRef(null),ne=_o(T,F.inputRef),re=Zc({id:n}),[ie,ae]=_l({controlled:m,default:p,name:`NumberField`,state:`value`}),G=ie??null,oe=tf(G);J(()=>{j(G!==null)},[j,G]);let K=Tf(),se=tf(x),ce=_.useRef(!1),le=Y((e,t)=>{ce.current=!1,g?.(e,t)}),ue=_.useRef(!0),de=_.useRef(null),[fe,pe]=_.useState(()=>m===void 0?fq(G,S,x):HJ(G,S,x)),[me,he]=_.useState(`numeric`),ge=Y(()=>{let{decimal:e,group:t,currency:n,literal:r}=NJ(S,x),i=new Set;bJ.forEach(e=>i.add(e)),e&&i.add(e),t&&(i.add(t),xJ.test(t)&&i.add(` `));let a=W===`percent`||W===`unit`&&x?.unit===`percent`,o=W===`percent`||W===`unit`&&x?.unit===`permille`;return a&&oJ.forEach(e=>i.add(e)),o&&sJ.forEach(e=>i.add(e)),W===`currency`&&n&&i.add(n),r&&(Array.from(r).forEach(e=>i.add(e)),xJ.test(r)&&i.add(` `)),SJ.forEach(e=>i.add(e)),H<0&&CJ.forEach(e=>i.add(e)),i}),_e=Y(e=>e?.altKey?a:e?.shiftKey?s:z),ve=Y((e,t)=>{let n=t.event,r=t.direction,i=t.reason,a=!b||!(i===`input-change`||i===`input-blur`||i===`input-paste`||i===`input-clear`||i===`none`),o=BJ(e,{step:r?_e(n)*r:void 0,format:se.current,minWithDefault:H,maxWithDefault:U,minWithZeroDefault:ee,snapOnStep:y,small:n?.altKey??!1,clamp:a}),s=t.reason===`input-change`||t.reason===`input-clear`||t.reason===`input-blur`||t.reason===`input-paste`||t.reason===`none`,c=o!==G||s&&(e!==G||ue.current===!1);if(c){if(de.current=o,h?.(o,t),t.isCanceled)return c;ae(o),O(o!==k.initialValue),ce.current=!0}return ue.current&&pe(fq(o,S,x)),K(),c}),ye=Y((e,{direction:t,currentValue:n,event:i,reason:a})=>{let o=n??oe.current;return ve(typeof o==`number`?o+e*t:Math.max(0,r??0),Fs(a,i,void 0,{direction:t}))});J(function(){if(!ue.current)return;let e=m===void 0?fq(G,S,x):HJ(G,S,x);e!==fe&&pe(e)}),J(function(){if(!Cl)return;let e=`text`;H>=0&&(e=`decimal`),he(e)},[H,W]),_.useEffect(function(){let e=te.current;if(L||u||!v||!e)return;function t(e){e.ctrlKey||Rl(as(te.current))!==te.current||(e.preventDefault(),ue.current=!0,ye(_e(e)??1,{direction:e.deltaY>0?-1:1,event:e,reason:`wheel`}))}return wf(e,`wheel`,t)},[v,ye,L,u,_e]);let be=_.useMemo(()=>({...P,disabled:L,readOnly:u,required:c,value:G,inputValue:fe,scrubbing:B}),[P,L,u,c,G,fe,B]),xe=_.useMemo(()=>({inputRef:te,inputValue:fe,value:G,minWithDefault:H,maxWithDefault:U,disabled:L,readOnly:u,id:re,setValue:ve,incrementValue:ye,getStepAmount:_e,allowInputSyncRef:ue,formatOptionsRef:se,valueRef:oe,lastChangedValueRef:de,hasPendingCommitRef:ce,name:R,required:c,invalid:M,inputMode:me,getAllowedNonNumericKeys:ge,min:r,max:i,setInputValue:pe,locale:S,isScrubbing:B,setIsScrubbing:V,state:be,onValueCommitted:le}),[te,fe,G,H,U,L,u,re,ve,ye,_e,se,oe,R,c,M,me,ge,r,i,pe,S,B,be,le]),Se=X(`div`,e,{ref:t,state:be,props:D,stateAttributesMapping:eJ});return(0,Z.jsxs)(Qq.Provider,{value:xe,children:[Se,(0,Z.jsx)(`input`,{...F.getInputValidationProps({onFocus(){te.current?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||L||u){e.preventBaseUIHandler?.();return}let t=e.currentTarget.valueAsNumber,n=Number.isNaN(t)?null:t,r=Fs(os,e.nativeEvent);O(n!==k.initialValue),ve(n,r),I()&&F.commit(n)}}),ref:ne,type:`number`,form:d,name:R,value:G??``,min:r,max:i,step:o,disabled:L,required:c,"aria-hidden":!0,tabIndex:-1,style:R?Ao:ko,suppressHydrationWarning:!0})]})});function HJ(e,t,n){return n?.maximumFractionDigits!=null||n?.minimumFractionDigits!=null?fq(e,t,n):pq(e,t,n)}var UJ=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{state:o}=$q();return X(`div`,e,{ref:t,state:o,props:[{role:`group`},a],stateAttributesMapping:eJ})}),WJ=0,GJ=class e extends Df{static create(){return new e}start(e,t){this.clear(),this.currentId=setInterval(()=>{t()},e)}clear=()=>{this.currentId!==WJ&&(clearInterval(this.currentId),this.currentId=WJ)}};function KJ(){let e=go(GJ.create).current;return ol(e.disposeEffect),e}var qJ=60,JJ=400,YJ=8,XJ=50,ZJ=3;function QJ(e){return e===`touch`||e===`pen`}function $J(e){let{disabled:t,readOnly:n=!1,tick:r,onStop:i,tickDelay:a=qJ,startDelay:o=JJ,scrollDistance:s=YJ,elementRef:c}=e,l=Of(),u=KJ(),d=Of(),f=_.useRef(!1),p=_.useRef(0),m=_.useRef({x:0,y:0}),h=_.useRef(!1),g=_.useRef(!1),v=_.useRef(``),y=_.useRef(()=>{}),b=Y(()=>{d.clear(),l.clear(),u.clear(),y.current(),p.current=0});function x(e){b();let t=c.current;if(!t)return;let n=Io(t);function s(e){e.preventDefault()}if(y.current=wf(n,`contextmenu`,s),wf(n,`pointerup`,e=>{f.current=!1,b(),i?.(e)},{once:!0}),!r(e)){b();return}l.start(o,()=>{u.start(a,()=>{r(e)||b()})})}return _.useEffect(()=>()=>b(),[b]),{pointerHandlers:{onTouchStart(){h.current=!0},onTouchEnd(){h.current=!1},onPointerDown(e){let r=!e.button||e.button===0;e.defaultPrevented||!r||t||n||(v.current=e.pointerType,g.current=!1,f.current=!0,m.current={x:e.clientX,y:e.clientY},QJ(e.pointerType)?d.start(XJ,()=>{let t=p.current;p.current=0,f.current&&t<ZJ?(x(e.nativeEvent),g.current=!0):(g.current=!1,b())}):(e.preventDefault(),x(e.nativeEvent)))},onPointerUp(e){QJ(e.pointerType)&&(f.current=!1)},onPointerMove(e){if(t||n||!QJ(e.pointerType)||!f.current)return;p.current!=null&&(p.current+=1);let{x:r,y:i}=m.current,a=r-e.clientX,o=i-e.clientY;a**2+o**2>s**2&&b()}
76,onMouseEnter(e){e.defaultPrevented||t||n||!f.current||h.current||QJ(v.current)||x(e.nativeEvent)},onMouseLeave(){h.current||b()},onMouseUp(){h.current||b()}},shouldSkipClick:Y(e=>e.defaultPrevented?!0:QJ(v.current)?g.current:e.detail!==0)}}function eY(e){return e===`touch`||e===`pen`}function tY(e){let{allowInputSyncRef:t,disabled:n,formatOptionsRef:r,getStepAmount:i,id:a,incrementValue:o,inputRef:s,inputValue:c,isIncrement:l,locale:u,readOnly:d,setValue:f,valueRef:p,lastChangedValueRef:m,onValueCommitted:h}=e,g=l?hs:gs;function _(e){t.current=!0;let n=PJ(c,u,r.current);n!==null&&(p.current=n,f(n,Fs(g,e,void 0,{direction:l?1:-1})))}let{pointerHandlers:v,shouldSkipClick:y}=$J({disabled:n||d,elementRef:s,tickDelay:60,startDelay:400,scrollDistance:8,tick(e){return o(i(e)??1,{direction:l?1:-1,event:e,reason:g})},onStop(e){h(m.current??p.current,Is(g,e))}});return{disabled:n,"aria-readonly":d||void 0,"aria-label":l?`Increase`:`Decrease`,"aria-controls":a,tabIndex:-1,style:{WebkitUserSelect:`none`,userSelect:`none`},...v,onClick(e){let t=n||d;if(e.defaultPrevented||t||y(e))return;_(e.nativeEvent);let r=i(e)??1,a=p.current;o(r,{direction:l?1:-1,event:e.nativeEvent,reason:g});let s=m.current??p.current;s!==a&&h(s,Is(g,e.nativeEvent))},onPointerDown(e){let t=!e.button||e.button===0;e.defaultPrevented||d||!t||n||(_(e.nativeEvent),eY(e.pointerType)||s.current?.focus(),v.onPointerDown(e))}}}var nY=_.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,style:o,...s}=e,{allowInputSyncRef:c,disabled:l,formatOptionsRef:u,getStepAmount:d,id:f,incrementValue:p,inputRef:m,inputValue:h,locale:g,maxWithDefault:v,readOnly:y,setValue:b,state:x,value:S,valueRef:C,lastChangedValueRef:w,onValueCommitted:T}=$q(),E=i||l||S!=null&&S>=v,D=tY({isIncrement:!0,inputRef:m,inputValue:h,disabled:E,readOnly:y,id:f,setValue:b,getStepAmount:d,incrementValue:p,allowInputSyncRef:c,formatOptionsRef:u,valueRef:C,locale:g,lastChangedValueRef:w,onValueCommitted:T}),{getButtonProps:O,buttonRef:k}=jc({disabled:E,native:a,focusableWhenDisabled:!0}),A=_.useMemo(()=>({...x,disabled:E}),[x,E]);return X(`button`,e,{ref:[t,k],state:A,props:[D,s,O],stateAttributesMapping:eJ})}),rY=_.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,style:o,...s}=e,{allowInputSyncRef:c,disabled:l,formatOptionsRef:u,getStepAmount:d,id:f,incrementValue:p,inputRef:m,inputValue:h,minWithDefault:g,readOnly:v,setValue:y,state:b,value:x,valueRef:S,locale:C,lastChangedValueRef:w,onValueCommitted:T}=$q(),E=i||l||x!=null&&x<=g,D=tY({isIncrement:!1,inputRef:m,inputValue:h,disabled:E,readOnly:v,id:f,setValue:y,getStepAmount:d,incrementValue:p,allowInputSyncRef:c,formatOptionsRef:u,valueRef:S,locale:C,lastChangedValueRef:w,onValueCommitted:T}),{getButtonProps:O,buttonRef:k}=jc({disabled:E,native:a,focusableWhenDisabled:!0}),A=_.useMemo(()=>({...b,disabled:E}),[b,E]);return X(`button`,e,{ref:[t,k],state:A,props:[D,s,O],stateAttributesMapping:eJ})}),iY={...Gs,...eJ},aY=new Set([`Backspace`,`Delete`,`ArrowLeft`,`ArrowRight`,`Tab`,`Enter`,`Escape`]),oY=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{allowInputSyncRef:o,disabled:s,formatOptionsRef:c,getAllowedNonNumericKeys:l,getStepAmount:u,id:d,incrementValue:f,inputMode:p,inputValue:m,max:h,min:g,name:v,readOnly:y,required:b,setValue:x,state:S,setInputValue:C,locale:w,inputRef:T,value:E,onValueCommitted:D,lastChangedValueRef:O,hasPendingCommitRef:k,valueRef:A}=$q(),{clearErrors:j}=Yd(),{validationMode:M,setTouched:N,setFocused:P,invalid:F,shouldValidateOnChange:I,validation:L}=Uc(),{labelId:R}=qc(),z=_.useRef(!1),B=_.useRef(!1);return Gd(T,d,E),Xd(E,e=>{let t=I();if(j(v),t&&L.commit(E),!(e===E||t)){if(B.current){B.current=!1;return}L.commit(E,!0)}}),X(`input`,e,{ref:[t,T],state:S,props:[{id:d,required:b,disabled:s,readOnly:y,inputMode:p,value:m,type:`text`,autoComplete:`off`,autoCorrect:`off`,spellCheck:`false`,"aria-roledescription":`Number field`,"aria-invalid":F||void 0,"aria-labelledby":R,suppressHydrationWarning:!0,onFocus(e){if(e.defaultPrevented||y||s||(P(!0),z.current))return;z.current=!0;let t=e.currentTarget,n=t.value.length;t.setSelectionRange(n,n)},onBlur(e){if(e.defaultPrevented||y||s)return;N(!0),P(!1);let t=!o.current,n=k.current;if(o.current=!0,m.trim()===``){x(null,Fs(vs,e.nativeEvent)),M===`onBlur`&&L.commit(null),D(null,Is(vs,e.nativeEvent));return}let r=c.current,i=PJ(m,w,r);if(i===null)return;let a=r?.maximumFractionDigits!=null||r?.minimumFractionDigits!=null,l=r?.maximumFractionDigits,u=a&&typeof l==`number`?Number(i.toFixed(l)):i,d=Is(ys,e.nativeEvent),f=E!==u,p=t||f||n;M===`onBlur`&&L.commit(u),f&&(B.current=!0,x(u,Fs(ys,e.nativeEvent))),p&&D(u,d);let h=fq(u,w,r);!(!a&&i===E&&m===pq(i,w,r))&&m!==h&&C(h)},onChange(e){if(e.nativeEvent.defaultPrevented)return;o.current=!1;let t=e.currentTarget.value;if(t.trim()===``){C(t),x(null,Fs(vs,e.nativeEvent));return}let n=l();if(!Array.from(t).every(e=>{let t=e>=`0`&&e<=`9`,r=gJ.test(e),i=vJ.test(e),a=_J.test(e),o=yJ.test(e),s=jJ.test(e);return t||r||i||a||o||s||n.has(e)}))return;let r=PJ(t,w,c.current);C(t),r!==null&&x(r,Fs(_s,e.nativeEvent))},onKeyDown(e){if(e.defaultPrevented||y||s)return;let t=e.nativeEvent;o.current=!0;
76let n=l(),r=n.has(e.key),{decimal:i,currency:a,percentSign:d}=NJ(w,c.current),p=e.currentTarget.selectionStart,_=e.currentTarget.selectionEnd,v=p===0&&_===m.length,b=e=>p!=null&&_!=null&&e>=p&&e<_;if(jJ.test(e.key)&&Array.from(n).some(e=>jJ.test(e||``))){let e=m.search(kJ),t=e!=null&&e!==-1&&b(e);r=!(jJ.test(m)||MJ.test(m))||v||t}if(MJ.test(e.key)&&Array.from(n).some(e=>MJ.test(e||``))){let e=m.search(AJ),t=e!=null&&e!==-1&&b(e);r=!(jJ.test(m)||MJ.test(m))||v||t}[i,a,d].forEach(t=>{if(e.key===t){let e=b(m.indexOf(t));r=!m.includes(t)||v||e}});let S=e.key>=`0`&&e.key<=`9`,C=gJ.test(e.key),T=vJ.test(e.key),E=_J.test(e.key),k=yJ.test(e.key),j=aY.has(e.key);if(e.which===229||e.altKey||e.ctrlKey||e.metaKey||r||S||C||k||T||E||j)return;let M=PJ(m,w,c.current),N=u(e)??1;Zl(e);let P=Is(Es,t);e.key===`ArrowUp`?(f(N,{direction:1,currentValue:M,event:t,reason:Es}),D(O.current??A.current,P)):e.key===`ArrowDown`?(f(N,{direction:-1,currentValue:M,event:t,reason:Es}),D(O.current??A.current,P)):e.key===`Home`&&g!=null?(x(g,Fs(Es,t)),D(O.current??A.current,P)):e.key===`End`&&h!=null&&(x(h,Fs(Es,t)),D(O.current??A.current,P))},onPaste(e){if(e.defaultPrevented||y||s)return;e.preventDefault();let t=(e.clipboardData||window.Clipboard).getData(`text/plain`),n=PJ(t,w,c.current);n!==null&&(o.current=!1,x(n,Fs(bs,e.nativeEvent)),C(t))}},L.getValidationProps(),a],stateAttributesMapping:iY})}),sY=_.createContext(void 0);function cY(e){let t=_.useContext(sY);if(t===void 0&&!e)throw Error(ec(47));return t}function lY(){return{...yh(),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,nested:!1,openOnHover:!1,closeDelay:0,hasViewport:!1}}var uY={...Eh,disabled:Q(e=>e.disabled),instantType:Q(e=>e.instantType),openMethod:Q(e=>e.openMethod),openChangeReason:Q(e=>e.openChangeReason),modal:Q(e=>e.modal),focusManagerModal:Q(e=>e.focusManagerModal),stickIfOpen:Q(e=>e.stickIfOpen),titleElementId:Q(e=>e.titleElementId),descriptionElementId:Q(e=>e.descriptionElementId),openOnHover:Q(e=>e.openOnHover),closeDelay:Q(e=>e.closeDelay),hasViewport:Q(e=>e.hasViewport)},dY=class e extends Sf{constructor(e,t,n=!1){let r={...lY(),...e},i=new _h;r.open&&e?.mounted===void 0&&(r.mounted=!0),r.floatingRootContext=bh(i,t,n),super(r,{popupRef:_.createRef(),backdropRef:_.createRef(),internalBackdropRef:_.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:_.createRef(),beforeContentFocusGuardRef:_.createRef(),stickIfOpenTimeout:new Df,triggerElements:i},uY)}setOpen=(e,t)=>{let n=t.reason===cs,r=t.reason===`trigger-press`&&t.event.detail===0,i=!e&&(t.reason===`escape-key`||t.reason==null);t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)};let a=this.select(`activeTriggerId`);if(!e&&t.reason===`close-press`&&t.trigger==null&&a!=null&&(t.trigger=this.context.triggerElements.getById(a)??this.select(`activeTriggerElement`)??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let o=()=>{let n={open:e,openChangeReason:t.reason};dh(n,e,t.trigger),this.update(n)};n?(this.set(`stickIfOpen`,!0),this.context.stickIfOpenTimeout.start(500,()=>{this.set(`stickIfOpen`,!1)}),fl.flushSync(o)):o(),r||i?this.set(`instantType`,r?`click`:`dismiss`):t.reason===`focus-out`?this.set(`instantType`,`focus`):this.set(`instantType`,void 0)};static useStore(t,n){let{store:r,internalStore:i}=lh(t,(t,r)=>new e(n,t,r));return _.useEffect(()=>i?.disposeEffect(),[i]),r}disposeEffect=()=>this.context.stickIfOpenTimeout.disposeEffect()};function fY({props:e}){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,modal:o=!1,handle:s,triggerId:c,defaultTriggerId:l=null}=e,u=dY.useStore(s?.store,{modal:o,open:r,openProp:n,activeTriggerId:l,triggerIdProp:c});$d(()=>{n===void 0&&u.state.open===!1&&r===!0&&u.update({open:!0,activeTriggerId:l})}),u.useControlledProp(`openProp`,n),u.useControlledProp(`triggerIdProp`,c);let d=u.useState(`open`),f=u.useState(`mounted`),p=u.useState(`payload`),m=_p()!=null;u.useContextCallback(`onOpenChange`,i),u.useContextCallback(`onOpenChangeComplete`,a),gh(u,d),ph(u);let{forceUnmount:h}=mh(d,u,()=>{u.update({stickIfOpen:!0,openChangeReason:null})});u.useSyncedValues({modal:o,nested:m}),_.useEffect(()=>{d||u.context.stickIfOpenTimeout.clear()},[u,d]);let g=_.useCallback(()=>{u.setOpen(!1,Fs(Ns))},[u]);_.useImperativeHandle(e.actionsRef,()=>({unmount:h,close:g}),[h,g]);let v=d||f,y=_.useMemo(()=>({store:u}),[u]);return(0,Z.jsxs)(sY.Provider,{value:y,children:[v&&(0,Z.jsx)(mY,{store:u,modal:o}),typeof t==`function`?t({payload:p}):t]})}function pY(e){return cY(!0)?(0,Z.jsx)(fY,{props:e}):(0,Z.jsx)(xp,{children:(0,Z.jsx)(fY,{props:e})})}function mY({store:e,modal:t}){let n=Rp(e.useState(`floatingRootContext`),{outsidePressEvent:{mouse:t===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}});return hh(e,{activeTriggerProps:n.reference??No,inactiveTriggerProps:n.trigger??No,popupProps:_.useMemo(()=>lc(ch,n.floating),[n.floating])}),null}var hY=_.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,handle:s,payload:c,openOnHover:l=!1,delay:u=300,closeDelay:d=0,id:f,...p}=e,m=cY(!0),h=s?.store??m?.store;if(!h)throw Error(ec(74));let g=Qs(f),v=h.useState(`isTriggerActive`,g),y=h.useState(`floatingRootContext`),b=h.use
76State(`isOpenedByTrigger`,g),x=h.useState(`triggerPopupId`,g),S=_.useRef(null),{registerTrigger:C,isMountedByThisTrigger:w}=fh(g,S,h,{payload:c,disabled:a,openOnHover:l,closeDelay:d}),T=h.useState(`openChangeReason`),E=h.useState(`stickIfOpen`),D=h.useState(`openMethod`),O=h.useState(`focusManagerModal`),k=Rh(y,{enabled:y!=null&&l&&(D!==`touch`||T!==`trigger-press`),mouseOnly:!0,move:!1,handleClose:eg(),restMs:u,delay:{close:d},triggerElementRef:S,isActiveTrigger:v,isClosing:()=>h.select(`transitionStatus`)===`ending`}),A=jp(y,{enabled:y!=null,stickIfOpen:E}),j=vg(()=>h.select(`open`),e=>{h.set(`openMethod`,e)}),M=h.useState(`triggerProps`,w),{getButtonProps:N,buttonRef:P}=jc({disabled:a,native:o}),F={open(e){return e&&T===`trigger-press`?Lg.open(e):Ig.open(e)}},{preFocusGuardRef:I,handlePreFocusGuardFocus:L,handleFocusTargetFocus:R}=QG(h,S),z=X(`button`,e,{state:{disabled:a,open:b},ref:[P,t,C,S],props:[A.reference,k,M,j,{[ep]:``,id:g,"aria-haspopup":`dialog`,"aria-expanded":b,"aria-controls":x},p,N],stateAttributesMapping:F});return w&&!O?(0,Z.jsxs)(_.Fragment,{children:[(0,Z.jsx)(Lf,{ref:I,onFocus:L}),(0,Z.jsx)(_.Fragment,{children:z},g),(0,Z.jsx)(Lf,{ref:h.context.triggerFocusTargetRef,onFocus:R})]}):(0,Z.jsx)(_.Fragment,{children:z},g)}),gY=_.createContext(void 0);function _Y(){let e=_.useContext(gY);if(e===void 0)throw Error(ec(45));return e}var vY=_.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=cY();return i.useState(`mounted`)||n?(0,Z.jsx)(gY.Provider,{value:n,children:(0,Z.jsx)(fp,{ref:t,...r})}):null}),yY=_.createContext(void 0);function bY(){let e=_.useContext(yY);if(!e)throw Error(ec(46));return e}var xY=_.forwardRef(function(e,t){let{render:n,className:r,style:i,anchor:a,positionMethod:o=`absolute`,side:s=`bottom`,align:c=`center`,sideOffset:l=0,alignOffset:u=0,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f=5,arrowPadding:p=5,sticky:m=!1,disableAnchorTracking:h=!1,collisionAvoidance:g=op,...v}=e,{store:y}=cY(),b=_Y(),x=yp(),S=y.useState(`floatingRootContext`),C=y.useState(`mounted`),w=y.useState(`open`),T=y.useState(`openChangeReason`),E=y.useState(`activeTriggerElement`),D=y.useState(`modal`),O=y.useState(`openMethod`),k=y.useState(`positionerElement`),A=y.useState(`instantType`),j=y.useState(`transitionStatus`),M=y.useState(`hasViewport`),N=_.useRef(null),P=pl(k,!1,!1),F=r_({anchor:a,floatingRootContext:S,positionMethod:o,mounted:C,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:m,disableAnchorTracking:h,keepMounted:b,nodeId:x,collisionAvoidance:g,adaptiveOrigin:M?e_:void 0}),I=S.useState(`domReferenceElement`);J(()=>{let e=I,t=N.current;if(e&&(N.current=e),t&&e&&e!==t){y.set(`instantType`,void 0);let e=new AbortController;return P(()=>{y.set(`instantType`,`trigger-change`)},e.signal),()=>{e.abort()}}},[I,P,y]),S_(w&&D===!0&&T!==`trigger-hover`,O===`touch`,k,E);let L=_.useCallback(e=>{y.set(`positionerElement`,e)},[y]),R=d_(e,{open:w,side:F.side,align:F.align,anchorHidden:F.anchorHidden,instant:A},{styles:F.positionerStyles,transitionStatus:j,props:v,refs:[t,L],hidden:!C,inert:!w});return(0,Z.jsxs)(yY.Provider,{value:F,children:[C&&D===!0&&T!==`trigger-hover`&&(0,Z.jsx)(s_,{ref:y.context.internalBackdropRef,inert:Yg(!w),cutout:E}),(0,Z.jsx)(bp,{id:x,children:R})]})}),SY=_.createContext(void 0);function CY(){let[e,t]=_.useState(0),n=Y(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:_.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}function wY(e){let{value:t,children:n}=e;return(0,Z.jsx)(SY.Provider,{value:t,children:n})}function TY(){let e=_.useContext(SY);J(()=>e?.register(),[e])}var EY={...Rg,...Bs},DY=_.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,{store:c}=cY(),l=bY(),u=O_(!0)!=null,{context:d,hasClosePart:f}=CY(),p=c.useState(`open`),m=c.useState(`openMethod`),h=c.useState(`instantType`),g=c.useState(`transitionStatus`),v=c.useState(`popupProps`),y=c.useState(`titleElementId`),b=c.useState(`descriptionElementId`),x=c.useState(`modal`),S=c.useState(`mounted`),C=c.useState(`openChangeReason`),w=c.useState(`activeTriggerElement`),T=c.useState(`floatingRootContext`),E=T.useState(`floatingId`),D=c.useState(`disabled`),O=c.useState(`openOnHover`),k=c.useState(`closeDelay`),A=s.id??E;ml({open:p,ref:c.context.popupRef,onComplete(){p&&c.context.onOpenChangeComplete?.(!0)}}),Ih(T,{enabled:O&&!D,closeDelay:k});function j(e){return e===`touch`?c.context.popupRef.current:!0}let M=a===void 0?j:a,N=x!==!1&&f;c.useSyncedValue(`focusManagerModal`,N);let P=_.useCallback(e=>{c.set(`popupElement`,e)},[c]),F=X(`div`,e,{state:{open:p,side:l.side,align:l.align,instant:h,transitionStatus:g},ref:[t,c.context.popupRef,P],props:[v,{id:A,role:`dialog`,...ch,"aria-labelledby":y,"aria-describedby":b,onKeyDown(e){u&&Ed.has(e.key)&&e.stopPropagation()}},u_(g),s],stateAttributesMapping:EY});return(0,Z.jsx)(Ap,{context:T,openInteractionType:m,modal:N,disabled:!S||C===`trigger-hover`,initialFocus:M,returnFocus:o,restoreFocus:`popup`,previousFocusableElement:Bo(w)?w:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:(0,Z.jsx)(wY,{value:d,children:F})})}),OY=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=cY(),s=Qs(a.id);return o.useSyncedValueWithCleanup(`titleElementId`,s),X(`h2`,e,{ref:t,props:[{id:s},a]})}),kY=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=cY(),s=Qs(a.id);return o.useSyncedValueWithCleanup(`descriptionElementId`,s),X(`p`,e,{ref:t,props:[{id:s},a]})}),AY=_.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,{buttonRef:c,getButtonProps:l}=jc({disabled:a,focusableWhenDisabled:!1,native:o}),{store:u}=cY();return TY(),X(`button`,e,{ref:[t,c],props:[{onClick(e){u.setOpen(!1,Fs(fs,e.nativeEvent))}},s,l]})}),jY=_.createContext(void 0);function MY(e){let t=_.useContext(jY);if(t===void 0&&!e)throw Error(ec(50));return t}var NY={...Eh,instantType:Q(e=>e.instantType),hasViewport:Q(e=>e.hasViewport)},PY=class e extends Sf{constructor(e,t,n=!1){let r=new _h,i={...FY(),...e};i.floatingRootContext=bh(r,t,n),super(i,{popupRef:_.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:r,closeDelayRef:{current:300},inlineRectCoordsRef:{current:void 0}},NY)}setOpen=(e,t)=>{let n=t.reason,r=n===cs,i=e&&n===`trigger-focus`,a=!e&&(n===`trigger-press`||n===`escape-key`);
76if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;let o=t.event;e&&r&&t.trigger&&`clientX`in o&&`clientY`in o&&this.context.inlineRectCoordsRef.current?.element!==t.trigger&&rh(this.context.inlineRectCoordsRef,t.trigger,o.clientX,o.clientY),this.state.floatingRootContext.dispatchOpenChange(e,t);let s=()=>{let r={open:e};i?r.instantType=`focus`:a?r.instantType=`dismiss`:n===`trigger-hover`&&(r.instantType=void 0),dh(r,e,t.trigger),this.update(r)};r?fl.flushSync(s):s()};static useStore(t,n){return lh(t,(t,r)=>new e(n,t,r)).store}};function FY(){return{...yh(),instantType:void 0,hasViewport:!1}}function IY(e){let{open:t,defaultOpen:n=!1,onOpenChange:r,onOpenChangeComplete:i,actionsRef:a,handle:o,triggerId:s,defaultTriggerId:c=null,children:l}=e,u=PY.useStore(o?.store,{open:n,openProp:t,activeTriggerId:c,triggerIdProp:s});$d(()=>{t===void 0&&u.state.open===!1&&n===!0&&u.update({open:!0,activeTriggerId:c})}),u.useControlledProp(`openProp`,t),u.useControlledProp(`triggerIdProp`,s),u.useContextCallback(`onOpenChange`,r),u.useContextCallback(`onOpenChangeComplete`,i);let d=u.useState(`open`),f=u.useState(`activeTriggerId`),p=u.useState(`mounted`),m=u.useState(`payload`);ph(u);let{forceUnmount:h}=mh(d,u,()=>{u.context.inlineRectCoordsRef.current=void 0});J(()=>{d&&(f??u.set(`payload`,void 0))},[u,f,d]);let g=_.useCallback(()=>{u.setOpen(!1,Fs(Ns))},[u]);_.useImperativeHandle(a,()=>({unmount:h,close:g}),[h,g]);let v=d||p;return(0,Z.jsxs)(jY.Provider,{value:u,children:[v&&(0,Z.jsx)(LY,{store:u}),typeof l==`function`?l({payload:m}):l]})}function LY({store:e}){let t=Rp(e.useState(`floatingRootContext`));return hh(e,{activeTriggerProps:t.reference??No,inactiveTriggerProps:t.trigger??No,popupProps:_.useMemo(()=>lc(ch,t.floating),[t.floating])}),null}var RY=ff(function(e){return MY(!0)?(0,Z.jsx)(IY,{...e}):(0,Z.jsx)(xp,{children:(0,Z.jsx)(IY,{...e})})}),zY=_.createContext(void 0);function BY(){let e=_.useContext(zY);if(e===void 0)throw Error(ec(48));return e}var VY=_.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{portalNode:c,portalSubtree:l}=dp({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,Z.jsxs)(_.Fragment,{children:[l,c&&fl.createPortal(n,c)]})}),HY=_.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return MY().useState(`mounted`)||n?(0,Z.jsx)(zY.Provider,{value:n,children:(0,Z.jsx)(VY,{ref:t,...r})}):null}),UY=pf(function(e,t){let{render:n,className:r,delay:i,closeDelay:a,id:o,payload:s,handle:c,style:l,...u}=e,d=MY(!0),f=c?.store??d;if(!f)throw Error(ec(89));let p=Qs(o),m=f.useState(`isTriggerActive`,p),h=f.useState(`isOpenedByTrigger`,p),g=f.useState(`floatingRootContext`),v=f.context.inlineRectCoordsRef,y=_.useRef(null),b=i??600,x=a??300,{registerTrigger:S,isMountedByThisTrigger:C}=fh(p,y,f,{payload:s});J(()=>{C&&(f.context.closeDelayRef.current=x)},[f,C,x]);let w=Rh(g,{mouseOnly:!0,move:!1,handleClose:eg(),delay:()=>({open:b,close:x}),triggerElementRef:y,isActiveTrigger:m,isClosing:()=>f.select(`transitionStatus`)===`ending`}),T=Ah(g,{delay:b}),E={open:h},D=f.useState(`triggerProps`,C),O=nh(v,h);return X(`a`,e,{state:E,ref:[t,S,y],props:[w,T.reference,D,O,{id:p},u],stateAttributesMapping:Ig})}),WY=_.createContext(void 0);function GY(){let e=_.useContext(WY);if(e===void 0)throw Error(ec(49));return e}var KY=_.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=op,style:g,..._}=e,v=MY(),y=BY(),b=yp(),x=v.useState(`open`),S=v.useState(`mounted`),C=v.useState(`floatingRootContext`),w=v.useState(`instantType`),T=v.useState(`transitionStatus`),E=v.useState(`hasViewport`),D=v.context.
76inlineRectCoordsRef,O=r_({anchor:i,floatingRootContext:C,positionMethod:a,mounted:S,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m,keepMounted:y,nodeId:b,collisionAvoidance:h,adaptiveOrigin:E?e_:void 0,inline:ih(D)}),k=O.update;J(()=>{x&&S&&k()},[x,S,k]);let A=d_(e,{open:x,side:O.side,align:O.align,anchorHidden:O.anchorHidden,instant:w},{styles:O.positionerStyles,transitionStatus:T,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!S,inert:!x});return(0,Z.jsx)(WY.Provider,{value:O,children:(0,Z.jsx)(bp,{id:b,children:A})})}),qY={...Rg,...Bs},JY=_.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,o=MY(),{side:s,align:c}=GY(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`);return ml({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),Ih(p,{closeDelay:Y(()=>o.context.closeDelayRef.current)}),X(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,o.useStateSetter(`popupElement`)],props:[f,u_(d),a],stateAttributesMapping:qY})}),YY=_.createContext(void 0);function XY(){let e=_.useContext(YY);if(e===void 0)throw Error(ec(51));return e}var ZY=function(e){return e.complete=`data-complete`,e.indeterminate=`data-indeterminate`,e.progressing=`data-progressing`,e}({}),QY={status(e){return e===`progressing`?{[ZY.progressing]:``}:e===`complete`?{[ZY.complete]:``}:e===`indeterminate`?{[ZY.indeterminate]:``}:null}};function $Y(e,t){return t==null?`indeterminate progress`:e||`${t}%`}var eX=_.forwardRef(function(e,t){let{format:n,getAriaValueText:r=$Y,locale:i,max:a=100,min:o=0,value:s,render:c,className:l,children:u,style:d,...f}=e,[p,m]=_.useState(),h=tf(n),g=`indeterminate`;Number.isFinite(s)&&(g=s===a?`complete`:`progressing`);let v=mq(s,i,h.current),y=_.useMemo(()=>({status:g}),[g]),b={"aria-labelledby":p,"aria-valuemax":a,"aria-valuemin":o,"aria-valuenow":s??void 0,"aria-valuetext":r(v,s),role:`progressbar`,children:(0,Z.jsxs)(_.Fragment,{children:[u,(0,Z.jsx)(`span`,{role:`presentation`,style:ko,children:`x`})]})},x=_.useMemo(()=>({formattedValue:v,max:a,min:o,setLabelId:m,state:y,status:g,value:s}),[v,a,o,m,y,g,s]),S=X(`div`,e,{state:y,ref:t,props:[b,f],stateAttributesMapping:QY});return(0,Z.jsx)(YY.Provider,{value:x,children:S})}),tX=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{state:o}=XY();return X(`div`,e,{state:o,ref:t,props:a,stateAttributesMapping:QY})}),nX=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{max:o,min:s,value:c,state:l}=XY(),u=Number.isFinite(c)&&c!==null?_q(c,s,o):null;return X(`div`,e,{state:l,ref:t,props:[{style:u==null?{}:{insetInlineStart:0,height:`inherit`,width:`${u}%`}},a],stateAttributesMapping:QY})}),rX=_.forwardRef(function(e,t){let{className:n,render:r,children:i,style:a,...o}=e,{value:s,formattedValue:c,state:l}=XY();return X(`span`,e,{state:l,ref:t,props:[{"aria-hidden":!0,children:typeof i==`function`?i(s==null?`indeterminate`:c,s):s==null?null:c},o],stateAttributesMapping:QY})}),iX=_.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{setLabelId:s,state:c}=XY();return X(`span`,e,{state:c,ref:t,props:[{id:wg(a,s),role:`presentation`},o],stateAttributesMapping:QY})}),aX=_.createContext(void 0);function oX(){let e=_.useContext(aX);if(e===void 0)throw Error(ec(53));return e}var sX=function(e){return e.scrollAreaCornerHeight=`--scroll-area-corner-height`,e.scrollAreaCornerWidth=`--scroll-area-corner-width`,e}({});function cX(e,t,n){if(!e)return 0;let r=getComputedStyle(e),i=n===`x`?`Inline`:`Block`;return n===`x`&&t===`margin`?parseFloat(r[`${t}InlineStart`])*2:parseFloat(r[`${t}${i}Start`])+parseFloat(r[`${t}${i}End`])}var lX=function(e){return e.orientation=`data-orientation`,e.hovering=`data-hovering`,e.scrolling=`data-scrolling`,e.hasOverflowX=`data-has-overflow-x`,e.hasOverflowY=`data-has-overflow-y`,e.overflowXStart=`data-overflow-x-start`,e.overflowXEnd=`data-overflow-x-end`,e.overflowYStart=`data-overflow-y-start`,e.overflowYEnd=`data-overflow-y-end`,e}({}),uX=function(e){return e.scrolling=`data-scrolling`,e.hasOverflowX=`data-has-overflow-x`,e.hasOverflowY=`data-has-overflow-y`,e.overflowXStart=`data-overflow-x-start`,e.overflowXEnd=`data-overflow-x-end`,e.overflowYStart=`data-overflow-y-start`,e.overflowYEnd=`data-overflow-y-end`,e}({}),dX={hasOverflowX:e=>e?{[uX.hasOverflowX]:``}:null,hasOverflowY:e=>e?{[uX.hasOverflowY]:``}:null,overflowXStart:e=>e?{[uX.overflowXStart]:``}:null,overflowXEnd:e=>e?{[uX.overflowXEnd]:``}:null,overflowYStart:e=>e?{[uX.overflowYStart]:``}:null,overflowYEnd:e=>e?{[uX.overflowYEnd]:``}:null,cornerHidden:()=>null},fX={x:0,y:0},pX={width:0,height:0},mX={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},hX={x:!0,y:!0,corner:!0},gX=_.forwardRef(function(e,t){let{render:n,className:r,overflowEdgeThreshold:i,style:a,...o}=e,s=_X(i),c=Qs(),l=Of(),u=Of(),{nonce:d,disableStyleElements:f}=j_(),[p,m]=_.useState(!1),[h,g]=_.useState(!1),[v,y]=_.useState(!1),[b,x]=_.useState(!1),[S,C]=_.useState(!1),[w,T]=_.useState(pX),[E,D]=_.useState(pX),[O,k]=_.useState(mX),[A,j]=_.useState(hX),M=_.useRef(null),N=_.useRef(null),P=_.useRef(null),F=_.useRef(null),I=_.useRef(null),L=_.useRef(null),R=_.useRef(null),z=_.useRef(!1),B=_.useRef(0),V=_.useRef(0),H=_.useRef(0),U=_.useRef(0),ee=_.useRef(`vertical`),W=_.useRef(fX),te=Y(e=>{let t=e.x-W.current.x,n=e.y-W.current.y;W.current=e,n!==0&&(y(!0),l.start(500,()=>{y(!1)})),t!==0&&(g(!0),u.start(500,()=>{g(!1)}))}),ne=Y(e=>{e.button===0&&(z.current=!0,B.current=e.clientY,V.current=e.clientX,ee.current=e.currentTarget.getAttribute(lX.orientation),N.current&&(H.current=N.current.scrollTop,U.current=N.current.scrollLeft),I.current&&ee.current===`vertical`&&I.current.setPointerCapture(e.pointerId),L.current&&ee.current===`horizontal`&&L.current.setPointerCapture(e.pointerId))}),re=Y(e=>{if(!z.current)return;let t=e.clientY-B.current,n=e.clientX-V.current;if(N.current){let r=N.current.scrollHeight,i=N.current.clientHeight,a=N.current.scrollWidth,o=N.current.clientWidth;if(I.current&&P.current&&ee.current===`vertical`){let n=cX(P.current,`padding`,`y`),a=cX(I.current,`margin`,`y`),o=I.current.offsetHeight,s=t/(P.current.offsetHeight-o-n-a);N.current.scrollTop=H.current+s*(r-i),e.preventDefault(),y(!0),l.start(500,()=>{y(!1)})}if(L.current&&F.current&&ee.current===`horizontal`){let t=cX(F.current,`padding`,`x`),r=cX(L.current,`margin`,`x`),i=L.current.offsetWidth,s=n/(F.current.offsetWidth-i-t-r);N.current.scrollLeft=U.current+s*(a-o),e.preventDefault(),g(!0),u.start(500,()=>{g(!1)})}}}),ie=Y(e=>{z.current=!1,I.current&&ee.current===`vertical`&&I.current.releasePointerCapture(e.pointerId),L.current&&ee.current===`horizontal`&&L.current.releasePointerCapture(e.pointerId)});function ae(e){x(e.pointerType===`touch`)}function G(e){ae(e),e.pointerType!==`touch`&&m(zl(M.current,e.target))}let oe=_.useMemo(()=>({scrolling:h||v,hasOverflowX:!A.x,hasOverflowY:!A.y,overflowXStart:O.xStart,overflowXEnd:O.xEnd,overflowYStart:O.yStart,overflowYEnd:O.yEnd,cornerHidden:A.corner}),[h,v,A.x,A.y,A.corner,O]),K={role:`presentation`,onPointerEnter:G,onPointerMove:G,onPointerDown:ae,onPointerLeave(){m(!1)},style:{position:`relative`,[sX.scrollAreaCornerHeight]:`${w.height}px`,[sX.scrollAreaCornerWidth]:`${w.width}px`}},se=X(`div`,e,{state:oe,ref:[t,M],props:[K,o],stateAttributesMapping:dX}),ce=_.useMemo(()=>({handlePointerDown:ne,handlePointerMove:re,handlePointerUp:ie,handleScroll:te,cornerSize:w,setCornerSize:T,thumbSize:E,setThumbSize:D,hasMeasuredScrollbar:S,setHasMeasuredScrollbar:C,touchModality:b,cornerRef:R,scrollingX:h,setScrollingX:g,scrollingY:v,setScrollingY:y,hovering:p,setHovering:m,viewportRef:N,rootRef:M,scrollbarYRef:P,scrollbarXRef:F,thumbYRef:I,thumbXRef:L,rootId:c,hiddenState:A,setHiddenState:j,overflowEdges:O,setOverflowEdges:k,viewportState:oe,overflowEdgeThreshold:s}),[ne,re,ie,te,w,E,S,b,h,g,v,y,p,m,c,A,O,oe,s]);return(0,Z.jsxs)(aX.Provider,{value:ce,children:[!f&&E_.getElement(d),se]})});function _X(e){if(typeof e==`number`){let t=Math.max(0,e);return{xStart:t,xEnd:t,yStart:t,yEnd:t}}return{xStart:Math.max(0,e?.xStart||0),xEnd:Math.max(0,e?.xEnd||0),yStart:Math.max(0,e?.yStart||0),yEnd:Math.max(0,e?.yEnd||0)}}var vX=_.createContext(void 0);function yX(){let e=_.useContext(vX);if(e===void 0)throw Error(ec(55));return e}var bX=function(e){return e.scrollAreaOverflowXStart=`--scroll-area-overflow-x-start`,e.scrollAreaOverflowXEnd=`--scroll-area-overflow-x-end`,e.scrollAreaOverflowYStart=`--scroll-area-overflow-y-start`,e.scrollAreaOverflowYEnd=`--scroll-area-overflow-y-end`,e}({}),xX=!1;function SX(){xX||Sl||(typeof CSS<`u`&&`registerProperty`in CSS&&[bX.scrollAreaOverflowXStart,bX.scrollAreaOverflowXEnd,bX.scrollAreaOverflowYStart,bX.scrollAreaOverflowYEnd].forEac
76h(e=>{try{CSS.registerProperty({name:e,syntax:`<length>`,inherits:!1,initialValue:`0px`})}catch{}}),xX=!0)}var CX=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{viewportRef:o,scrollbarYRef:s,scrollbarXRef:c,thumbYRef:l,thumbXRef:u,cornerRef:d,cornerSize:f,setCornerSize:p,setThumbSize:m,rootId:h,setHiddenState:g,hiddenState:v,setHasMeasuredScrollbar:y,handleScroll:b,setHovering:x,setOverflowEdges:S,overflowEdges:C,overflowEdgeThreshold:w,scrollingX:T,scrollingY:E}=oX(),D=Ud(),O=_.useRef(!0),k=_.useRef([NaN,NaN,NaN,NaN]),A=Of(),j=Of(),M=Y(()=>{let e=o.current,t=s.current,n=c.current,r=l.current,i=u.current,a=d.current;if(!e)return;let h=e.scrollHeight,_=e.scrollWidth,v=e.clientHeight,b=e.clientWidth,x=e.scrollTop,C=e.scrollLeft,T=k.current,E=Number.isNaN(T[0]);if(T[0]=v,T[1]=h,T[2]=b,T[3]=_,E&&y(!0),h===0||_===0)return;let O=wX(e),A=O.y,j=O.x,M=b/_,N=v/h,P=Math.max(0,_-b),F=Math.max(0,h-v),I=0,L=0;if(!j){let e=0;e=bg(D===`rtl`?-C:C,0,P),I=Sg(e,P),L=P-I}let R=A?0:bg(x,0,F),z=A?0:Sg(R,F),B=A?0:F-z,V=j?0:b,H=A?0:v,U=0,ee=0;!j&&!A&&(U=t?.offsetWidth||0,ee=n?.offsetHeight||0);let W=f.width===0&&f.height===0,te=W?U:0,ne=W?ee:0,re=cX(n,`padding`,`x`),ie=cX(t,`padding`,`y`),ae=cX(i,`margin`,`x`),G=cX(r,`margin`,`y`),oe=V-re-ae,K=H-ie-G,se=n?Math.min(n.offsetWidth-te,oe):oe,ce=t?Math.min(t.offsetHeight-ne,K):K,le=Math.max(16,se*M),ue=Math.max(16,ce*N);if(m(e=>e.height===ue&&e.width===le?e:{width:le,height:ue}),t&&r){let e=t.offsetHeight-ue-ie-G,n=h-v,i=n===0?0:x/n,a=Math.min(e,Math.max(0,i*e));r.style.transform=`translate3d(0,${a}px,0)`}if(n&&i){let e=n.offsetWidth-le-re-ae,t=_-b,r=t===0?0:C/t,a=D===`rtl`?bg(r*e,-e,0):bg(r*e,0,e);i.style.transform=`translate3d(${a}px,0,0)`}let de=[[bX.scrollAreaOverflowXStart,I],[bX.scrollAreaOverflowXEnd,L],[bX.scrollAreaOverflowYStart,z],[bX.scrollAreaOverflowYEnd,B]];for(let[t,n]of de)e.style.setProperty(t,`${n}px`);a&&(j||A?p({width:0,height:0}):!j&&!A&&p({width:U,height:ee})),g(e=>TX(e,O));let fe={xStart:!j&&I>w.xStart,xEnd:!j&&L>w.xEnd,yStart:!A&&z>w.yStart,yEnd:!A&&B>w.yEnd};S(e=>e.xStart===fe.xStart&&e.xEnd===fe.xEnd&&e.yStart===fe.yStart&&e.yEnd===fe.yEnd?e:fe)});J(()=>{o.current&&SX()},[o]),J(()=>{queueMicrotask(M)},[M,v,D]),J(()=>{o.current?.matches(`:hover`)&&x(!0)},[o,x]),_.useEffect(()=>{let e=o.current;if(typeof ResizeObserver>`u`||!e)return;let t=!1,n=new ResizeObserver(()=>{if(!t){t=!0;let n=k.current;if(n[0]===e.clientHeight&&n[1]===e.scrollHeight&&n[2]===e.clientWidth&&n[3]===e.scrollWidth)return}M()});return n.observe(e),j.start(0,()=>{let t=e.getAnimations({subtree:!0});t.length!==0&&Promise.allSettled(t.map(e=>e.finished)).then(M).catch(()=>{})}),()=>{n.disconnect(),j.clear()}},[M,o,j]);function N(){O.current=!1}let P={role:`presentation`,...h&&{"data-id":`${h}-viewport`},tabIndex:v.x&&v.y?-1:0,className:E_.className,style:{overflow:`scroll`},onScroll(){o.current&&(M(),O.current||b({x:o.current.scrollLeft,y:o.current.scrollTop}),A.start(100,()=>{O.current=!0}))},onWheel:N,onTouchMove:N,onPointerMove:N,onPointerEnter:N,onKeyDown:N},F=_.useMemo(()=>({scrolling:T||E,hasOverflowX:!v.x,hasOverflowY:!v.y,overflowXStart:C.xStart,overflowXEnd:C.xEnd,overflowYStart:C.yStart,overflowYEnd:C.yEnd,cornerHidden:v.corner}),[T,E,v.x,v.y,v.corner,C]),I=X(`div`,e,{ref:[t,o],state:F,props:[P,a],stateAttributesMapping:dX}),L=_.useMemo(()=>({computeThumbPosition:M}),[M]);return(0,Z.jsx)(vX.Provider,{value:L,children:I})});function wX(e){let t=e.clientHeight>=e.scrollHeight,n=e.clientWidth>=e.scrollWidth;return{y:t,x:n,corner:t||n}}function TX(e,t){return e.y===t.y&&e.x===t.x&&e.corner===t.corner?e:t}var EX=_.createContext(void 0);function DX(){let e=_.useContext(EX);if(e===void 0)throw Error(ec(54));return e}var OX=function(e){return e.scrollAreaThumbHeight=`--scroll-area-thumb-height`,e.scrollAreaThumbWidth=`--scroll-area-thumb-width`,e}({}),kX=_.forwardRef(function(e,t){let{render:n,className:r,orientation:i=`vertical`,keepMounted:a=!1,style:o,...s}=e,{hovering:c,scrollingX:l,scrollingY:u,hiddenState:d,overflowEdges:f,scrollbarYRef:p,scrollbarXRef:m,viewportRef:h,thumbYRef:g,thumbXRef:v,handlePointerDown:y,handlePointerUp:b,rootId:x,thumbSize:S,hasMeasuredScrollbar:C}=oX(),w={hovering:c,scrolling:{horizontal:l,vertical:u}[i],orientation:i,hasOverflowX:!d.x,hasOverflowY:!d.y,overflowXStart:f.xStart,overflowXEnd:f.xEnd,overflowYStart:f.yStart,overflowYEnd:f.yEnd,cornerHidden:d.corner},T=Ud(),E=!C&&!a,D=i===`vertical`?d.y:d.x,O=a||!D;_.useEffect(()=>{if(!O)return;let e=h.current,t=i===`vertical`?p.current:m.current;if(!t)return;
76function n(n){if(!e||!t||n.ctrlKey)return;n.preventDefault();let r=i===`horizontal`,a=r?`scrollLeft`:`scrollTop`,o=r?n.deltaX:n.deltaY,s=r?e.scrollWidth-e.clientWidth:e.scrollHeight-e.clientHeight,c=r&&T===`rtl`?-s:0,l=r&&T===`rtl`?0:s,u=e[a];u<=c&&o<0||u>=l&&o>0||(e[a]=Math.min(l,Math.max(c,u+o)))}return wf(t,`wheel`,n,{passive:!1})},[T,i,m,p,O,h]);let k={...x&&{"data-id":`${x}-scrollbar`},onPointerDown(e){if(e.button!==0)return;let t=Bl(e.nativeEvent),n=i===`vertical`?g.current:v.current;if(!(n&&zl(n,t))&&h.current){if(g.current&&p.current&&i===`vertical`){let t=cX(g.current,`margin`,`y`),n=cX(p.current,`padding`,`y`),r=g.current.offsetHeight,i=p.current.getBoundingClientRect(),a=e.clientY-i.top-r/2-n+t/2,o=h.current.scrollHeight,s=h.current.clientHeight,c=a/(p.current.offsetHeight-r-n-t)*(o-s);h.current.scrollTop=c}if(v.current&&m.current&&i===`horizontal`){let t=cX(v.current,`margin`,`x`),n=cX(m.current,`padding`,`x`),r=v.current.offsetWidth,i=m.current.getBoundingClientRect(),a=e.clientX-i.left-r/2-n+t/2,o=h.current.scrollWidth,s=h.current.clientWidth,c=a/(m.current.offsetWidth-r-n-t),l;T===`rtl`?(l=(1-c)*(o-s),h.current.scrollLeft<=0&&(l=-l)):l=c*(o-s),h.current.scrollLeft=l}y(e)}},onPointerUp:b,style:{position:`absolute`,touchAction:`none`,WebkitUserSelect:`none`,userSelect:`none`,visibility:E?`hidden`:void 0,...i===`vertical`&&{top:0,bottom:`var(${sX.scrollAreaCornerHeight})`,insetInlineEnd:0,[OX.scrollAreaThumbHeight]:`${S.height}px`},...i===`horizontal`&&{insetInlineStart:0,insetInlineEnd:`var(${sX.scrollAreaCornerWidth})`,bottom:0,[OX.scrollAreaThumbWidth]:`${S.width}px`}}},A=X(`div`,e,{ref:[t,i===`vertical`?p:m],state:w,props:[k,s],stateAttributesMapping:dX}),j=_.useMemo(()=>({orientation:i}),[i]);return O?(0,Z.jsx)(EX.Provider,{value:j,children:A}):null}),AX=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{computeThumbPosition:o}=yX(),{viewportState:s}=oX(),c=_.useRef(null);return J(()=>{if(typeof ResizeObserver>`u`)return;let e=!1,t=new ResizeObserver(()=>{if(!e){e=!0;return}o()});return c.current&&t.observe(c.current),()=>{t.disconnect()}},[o]),X(`div`,e,{ref:[t,c],state:s,stateAttributesMapping:dX,props:[{role:`presentation`,style:{minWidth:`fit-content`}},a]})}),jX=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{thumbYRef:o,thumbXRef:s,handlePointerDown:c,handlePointerMove:l,handlePointerUp:u,setScrollingX:d,setScrollingY:f,hasMeasuredScrollbar:p}=oX(),{orientation:m}=DX();return X(`div`,e,{ref:[t,m===`vertical`?o:s],state:{orientation:m},props:[{onPointerDown:c,onPointerMove:l,onPointerUp(e){m===`vertical`&&f(!1),m===`horizontal`&&d(!1),u(e)},style:{visibility:p?void 0:`hidden`,...m===`vertical`&&{height:`var(${OX.scrollAreaThumbHeight})`},...m===`horizontal`&&{width:`var(${OX.scrollAreaThumbWidth})`}}},a]})});function MX(e,t){return e-t}function NX(e,t,n){let r=e.slice();return r[t]=n,r.sort(MX)}function PX(e,t,n,r,i,a){let o=e;return o=bg(o,n,r),i&&(o=NX(a,t,bg(o,a[t-1]||-1/0,a[t+1]||1/0))),o}function FX(e,t,n){if(!Array.isArray(e))return!0;let r=e.reduce((e,t,n,r)=>(n===r.length-1||e.push(Math.abs(t-r[n+1])),e),[]);return Math.min(...r)>=t*n}var IX={activeThumbIndex:()=>null,max:()=>null,min:()=>null,minStepsBetweenValues:()=>null,step:()=>null,values:()=>null,...Gs},LX=_.createContext(void 0);function RX(){let e=_.useContext(LX);if(e===void 0)throw Error(ec(62));return e}function zX(e){return`key`in e?Es:_s}function BX(e,t){return typeof e==`number`&&typeof t==`number`?e===t:Array.isArray(e)&&Array.isArray(t)?iG(e,t):!1}var VX=_.forwardRef(function(e,t){let{"aria-labelledby":n,className:r,defaultValue:i,disabled:a=!1,id:o,format:s,largeStep:c=10,locale:l,render:u,max:d=100,min:f=0,minStepsBetweenValues:p=0,form:m,name:h,onValueChange:g,onValueCommitted:v,orientation:y=`horizontal`,step:b=1,thumbCollisionBehavior:x=`push`,thumbAlignment:S=`center`,value:C,style:w,...T}=e,E=Qs(o),D=Dg(E),O=Y(g),k=Y(v),{clearErrors:A}=Yd(),{state:j,disabled:M,name:N,setTouched:P,setDirty:F,validityData:I,shouldValidateOnChange:L,validation:R}=Uc(),{labelId:z}=qc(),[B,V]=_.useState(),H=n??Og(z,B),U=M||a,ee=N??h,[W,te]=_l({controlled:C,default:i??f,name:`
76Slider`}),ne=_.useRef(null),re=_.useRef(null),ie=_.useRef([]),ae=_.useRef(null),G=_.useRef(null),oe=_.useRef(-1),K=_.useRef(null),se=_.useRef(null),ce=_.useRef(`none`),le=tf(s),[ue,de]=_.useState(-1),[fe,pe]=_.useState(-1),[me,he]=_.useState(!1),[ge,_e]=_.useState(()=>new Map),[ve,ye]=_.useState([void 0,void 0]),be=Y(e=>{de(e),e!==-1&&pe(e)});Gd(re,E,W),Xd(W,()=>{A(ee),L()?R.commit(W):R.commit(W,!0);let e=I.initialValue,t;t=Array.isArray(W)&&Array.isArray(e)?!iG(W,e):W!==e,F(t)});let xe=Y(e=>{e&&(re.current=e)}),Se=Array.isArray(W),Ce=_.useMemo(()=>Se?W.slice().sort(MX):[bg(W,f,d)],[d,f,Se,W]),we=Y((e,t)=>{if(Number.isNaN(e)||BX(e,W))return;let n=t??Fs(`none`,void 0,void 0,{activeThumbIndex:-1});ce.current=n.reason;let r=n.event,i=new(r.constructor??Event)(r.type,r);Object.defineProperty(i,`target`,{writable:!0,value:{value:e,name:ee}}),n.event=i,se.current=e,O(e,n),!n.isCanceled&&te(e)}),Te=Y((e,t,n)=>{let r=PX(e,t,f,d,Se,Ce);if(FX(r,b,p)){let e=zX(n);we(r,Fs(e,n.nativeEvent,void 0,{activeThumbIndex:t})),P(!0),k(se.current??r,Is(e,n.nativeEvent))}});J(()=>{let e=Rl(as(ne.current));U&&zl(ne.current,e)&&e.blur()},[U]),U&&ue!==-1&&be(-1);let Ee=_.useMemo(()=>({...j,activeThumbIndex:ue,disabled:U,dragging:me,orientation:y,max:d,min:f,minStepsBetweenValues:p,step:b,values:Ce}),[j,ue,U,me,d,f,p,y,b,Ce]),De=_.useMemo(()=>({active:ue,controlRef:re,disabled:U,dragging:me,validation:R,formatOptionsRef:le,handleInputChange:Te,indicatorPosition:ve,inset:S!==`center`,labelId:H,rootLabelId:D,largeStep:c,lastUsedThumbIndex:fe,lastChangedValueRef:se,lastChangeReasonRef:ce,form:m,locale:l,max:d,min:f,minStepsBetweenValues:p,name:ee,onValueCommitted:k,orientation:y,pressedInputRef:ae,pressedThumbCenterOffsetRef:G,pressedThumbIndexRef:oe,pressedValuesRef:K,registerFieldControlRef:xe,renderBeforeHydration:S===`edge`,setActive:be,setDragging:he,setIndicatorPosition:ye,setLabelId:V,setValue:we,state:Ee,step:b,thumbCollisionBehavior:x,thumbMap:ge,thumbRefs:ie,values:Ce}),[ue,re,H,D,U,me,R,le,Te,ve,c,fe,se,ce,m,l,d,f,p,ee,k,y,ae,G,oe,K,xe,be,he,ye,V,we,Ee,b,x,S,ge,ie,Ce]),Oe=X(`div`,e,{state:Ee,ref:[t,ne],props:[{"aria-labelledby":H,id:E,role:`group`},R.getValidationProps,T],stateAttributesMapping:IX});return(0,Z.jsx)(LX.Provider,{value:De,children:(0,Z.jsx)(Pd,{elementsRef:ie,onMapChange:_e,children:Oe})})}),HX=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=a;delete o.id;let{state:s,setLabelId:c,controlRef:l,rootLabelId:u}=RX();function d(e,t){if(t){let n=as(e.currentTarget).getElementById(t);if(Bo(n)){Eg(n);return}}let n=l.current?.querySelectorAll(`input[type="range"]`),r=n?.length===1?n[0]:null;Bo(r)&&Eg(r)}return X(`div`,e,{ref:t,state:s,props:[Tg({id:u,setLabelId:c,focusControl:d}),a],stateAttributesMapping:IX})}),UX=_.forwardRef(function(e,t){let{"aria-live":n=`off`,render:r,className:i,children:a,style:o,...s}=e,{thumbMap:c,state:l,values:u,formatOptionsRef:d,locale:f}=RX(),p=``;for(let e of c.values())e?.inputId&&(p+=`${e.inputId} `);let m=p.trim()===``?void 0:p.trim(),h=_.useMemo(()=>{let e=[];for(let t=0;t<u.length;t+=1)e.push(fq(u[t],f,d.current??void 0));return e},[d,f,u]),g=u.map((e,t)=>h[t]||e).join(` â `);return X(`output`,e,{state:l,ref:t,props:[{"aria-live":n,children:typeof a==`function`?a(h,u):g,htmlFor:m},s],stateAttributesMapping:IX})});function WX(e){let t=e.getBoundingClientRect();return{x:(t.left+t.right)/2,y:(t.top+t.bottom)/2}}function GX(e){if(e===0)return 0;if(Math.abs(e)<1){let t=e.toExponential().split(`e-`),n=t[0].split(`.`)[1];return(n?n.length:0)+parseInt(t[1],10)}let t=e.toString().split(`.`)[1];return t?t.length:0}function KX(e,t,n){let r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(Math.max(GX(t),GX(n))))}function qX({values:e,index:t,nextValue:n,min:r,max:i,step:a,minStepsBetweenValues:o,initialValues:s}){if(e.length===0)return[];let c=e.slice(),l=a*o,u=c.length-1,d=s??e;c[t]=bg(n,r+t*l,i-(u-t)*l);for(let e=t+1;e<=u;e+=1){let t=c[e-1]+l,n=i-(u-e)*l,r=d[e]??c[e],a=Math.max(c[e],t);r<a&&(a=Math.max(r,t)),c[e]=bg(a,t,n)}for(let e=t-1;e>=0;--e){let t=c[e+1]-l,n=r+e*l,i=d[e]??c[e],a=Math.min(c[e],t);i>a&&(a=Math.min(i,t)),c[e]=bg(a,n,t)}for(let e=0;e<=u;e+=1)c[e]=Number(c[e].toFixed(12));return c}function JX({behavior:e,values:t,currentValues:n,initialValues:r,pressedIndex:i,nextValue:a,min:o,max:s,step:c,minStepsBetweenValues:l}){let u=n??t,d=r??t;if(!(u.length>1))return{value:a,thumbIndex:0,didSwap:!1};let f=c*l;switch(e){case`swap`:{let e=u[i],t=1e-7,n=u.slice(),r=n[i-1],p=n[i+1],m=bg(a,r==null?o:r+f,p==null?s:p-f),h=Number(m.toFixed(12));n[i]=h;let g=a>e,_=a<e,v=g&&p!=null&&a>=p-t,y=_&&r!=null&&a<=r+t;if(!v&&!y)return{value:n,thumbIndex:i,didSwap:!1};let b=v?i+1:i-1,x=n.map((e,t)=>t===i?h:d[t]??u[t]),S=a;S=v?Math.max(a,n[b]):Math.min(a,n[b]);let C=qX({values:n,index:b,nextValue:S,min:o,max:s,step:c,minStepsBetweenValues:l,initialValues:x}
76),w=v?b-1:b+1;if(w>=0&&w<C.length){let e=C[w-1],t=C[w+1],n=e==null?o:e+f;n=Math.max(n,o+w*f);let r=t==null?s:t-f;r=Math.min(r,s-(C.length-1-w)*f);let i=bg(h,n,r);C[w]=Number(i.toFixed(12))}return{value:C,thumbIndex:b,didSwap:!0}}case`push`:return{value:qX({values:u,index:i,nextValue:a,min:o,max:s,step:c,minStepsBetweenValues:l}),thumbIndex:i,didSwap:!1};default:{let e=u.slice(),t=e[i-1],n=e[i+1],r=bg(a,t==null?o:t+f,n==null?s:n-f);return e[i]=Number(r.toFixed(12)),{value:e,thumbIndex:i,didSwap:!1}}}}var YX=2;function XX(e,t){if(!e)return{start:0,end:0};function n(e){let t=e==null?0:parseFloat(e);return Number.isNaN(t)?0:t}let r=t?`Top`:`InlineStart`,i=t?`Bottom`:`InlineEnd`;return{start:n(e[`border${r}Width`])+n(e[`padding${r}`]),end:n(e[`border${i}Width`])+n(e[`padding${i}`])}}function ZX(e,t){if(t.current!=null&&e.changedTouches){let n=e;for(let e=0;e<n.changedTouches.length;e+=1){let r=n.changedTouches[e];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return null}return{x:e.clientX,y:e.clientY}}var QX=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{disabled:o,dragging:s,inset:c,lastChangedValueRef:l,lastChangeReasonRef:u,max:d,min:f,minStepsBetweenValues:p,onValueCommitted:m,orientation:h,pressedInputRef:g,pressedThumbCenterOffsetRef:v,pressedThumbIndexRef:y,pressedValuesRef:b,registerFieldControlRef:x,renderBeforeHydration:S,setActive:C,setDragging:w,setValue:T,state:E,step:D,thumbCollisionBehavior:O,thumbRefs:k,values:A}=RX(),j=Ud(),M=A.length>1,N=h===`vertical`,P=_.useRef(null),F=_.useRef(null),I=Y(e=>{e&&F.current==null&&(F.current=Io(e).getComputedStyle(e))}),L=_.useRef(null),R=_.useRef(0),z=_.useRef(0),B=tf(A);function V(e){y.current!==e&&(y.current=e);let t=k.current[e];if(!t){v.current=null,g.current=null;return}g.current=t.querySelector(`input[type="range"]`)}function H(e){let t=P.current;if(!t)return null;let{width:n,height:r,bottom:i,left:a,right:o}=t.getBoundingClientRect(),s=XX(F.current,N),c=z.current,l=(N?r:n)-s.start-s.end-c*2,u=v.current??0,m=e.x-u,h=e.y-u,g=bg(((N?i-h-s.end:(j===`rtl`?o-m:m-a)-s.start)-c)/l,0,1),_=(d-f)*g+f;if(_=KX(_,D,f),_=bg(_,f,d),!M)return{value:_,thumbIndex:0,didSwap:!1};let x=y.current;if(x<0)return null;let S=JX({behavior:O,values:A,currentValues:B.current??A,initialValues:b.current,pressedIndex:x,nextValue:_,min:f,max:d,step:D,minStepsBetweenValues:p});return O===`swap`&&S.didSwap?V(S.thumbIndex):y.current=S.thumbIndex,S}function U(e){b.current=M?A.slice():null,B.current=A;let t=y.current,n=t;if(t>-1&&t<A.length){if(A[t]===d){let e=t;for(;e>0&&A[e-1]===d;)--e;n=e}}else{let t=N?`y`:`x`,r;n=-1;for(let i=0;i<k.current.length;i+=1){let a=k.current[i];if(zo(a)){let o=WX(a),s=Math.abs(e[t]-o[t]);(r===void 0||s<=r)&&(n=i,r=s)}}}if(n>-1&&n!==t&&V(n),c){let e=k.current[n];zo(e)&&(z.current=e.getBoundingClientRect()[N?`height`:`width`]/2)}}function ee(e){let t=k.current?.[e]?.querySelector(`input[type="range"]`);t&&t.focus({preventScroll:!0,focusVisible:!1})}let W=Y(e=>{let t=ZX(e,L);if(t==null)return;if(R.current+=1,e.type===`pointermove`&&e.buttons===0){te(e);return}let n=H(t);n!=null&&FX(n.value,D,p)&&(!s&&R.current>YX&&w(!0),T(n.value,Fs(Ds,e,void 0,{activeThumbIndex:n.thumbIndex})),B.current=Array.isArray(n.value)?n.value:[n.value],n.didSwap&&ee(n.thumbIndex))});function te(e){C(-1),w(!1),g.current=null,v.current=null;let t=ZX(e,L),n=t==null?null:H(t);if(n!=null){let t=u.current;m(l.current??n.value,Is(t,e))}`pointerType`in e&&P.current?.hasPointerCapture(e.pointerId)&&P.current?.releasePointerCapture(e.pointerId),y.current=-1,L.current=null,b.current=null,re()}let ne=Y(e=>{if(o)return;let t=e.changedTouches[0];t!=null&&(L.current=t.identifier);let n=ZX(e,L);if(n!=null){U(n);let t=H(n);if(t==null)return;ee(t.thumbIndex),T(t.value,Fs(ms,e,void 0,{activeThumbIndex:t.thumbIndex})),B.current=Array.isArray(t.value)?t.value:[t.value],t.didSwap&&ee(t.thumbIndex)}R.current=0;let r=as(P.current);r.addEventListener(`touchmove`,W,{passive:!0}),r.addEventListener(`touchend`,te,{passive:!0})}),re=Y(()=>{let e=as(P.current);e.removeEventListener(`pointermove`,W),e.removeEventListener(`pointerup`,te),e.removeEventListener(`touchmove`,W),e.removeEventListener(`touchend`,te),b.current=null}),ie=ul();return _.useEffect(()=>{let e=P.current;if(!e)return()=>re();let t=wf(e,`touchstart`,ne,{passive:!0});return()=>{t(),ie.cancel(),re()}},[re,ne,P,ie]),_.useEffect(()=>{o&&re()},[o,re]),X(`div`,e,{state:E,ref:[t,x,P,I],props:[{"data-base-ui-slider-control":S?``:void 0,onPointerDown(e){let t=P.current,n=Bl(e.nativeEvent);if(!t||o||e.defaultPrevented||!zo(n)||e.button!==0)return;let r=ZX(e,L);if(r!=null){U(r);let n=H(r);if(n==null)return;zl(k.current[n.thumbIndex],Rl(as(t)))?e.preventDefault():ie.request(()=>{ee(n.thumbIndex)}),w(!0),v.current??(T(n.value,Fs(ms,e.nativeEvent,void 0,{activeThumbIndex:n.thumbIndex})),B.current=Array.isArray(n.value)?n.value:[n.value],n.didSwap&&ee(n.thumbIndex))}e.nativeEvent.pointerId&&t.setPointerCapture(e.nativeEvent.pointerId),R.current=0;let i=as(P.current);i.addEventListener(`pointermove`,W,{passive:!0}),i.addEventListener(`pointerup`,te,{once:!0})}},a],stateAttributesMapping:IX})}),$X=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{state:o}=RX();return X(`div`,e,{state:o,ref:t,props:[{style:{position:`relative`}},a],stateAttributesMapping:IX})});function eZ(){return jo}function tZ(){return!1}function nZ(){return!0}function rZ(){return(0,hf.useSyncExternalStore)(eZ,tZ,nZ)}var iZ=function(e){return e.index=`data-index`,e.dragging=`data-dragging`,e.orientation=`data-orientation`,e.disabled=`data-disabled`,e.valid=`data-valid`,e.invali
76d=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.focused=`data-focused`,e}({}),aZ=new Set([...Ed,yd,bd]);function oZ(e,t,n,r){if(!(t<0))return e.length===2?t===0?`${fq(e[t],r,n)} start range`:`${fq(e[t],r,n)} end range`:n?fq(e[t],r,n):void 0}function sZ(e,t,n,r,i){let a=n===1?e+t:e-t;return bg(Number(a.toFixed(Math.max(GX(e),GX(t),GX(r)))),r,i)}var cZ=_.forwardRef(function(e,t){let{render:n,children:r,className:i,"aria-describedby":a,"aria-label":o,"aria-labelledby":s,disabled:c=!1,getAriaLabel:l,getAriaValueText:u,id:d,index:f,inputRef:p,onBlur:m,onFocus:h,onKeyDown:g,tabIndex:v,style:y,...b}=e,{nonce:x}=j_(),S=Qs(d),{active:C,lastUsedThumbIndex:w,controlRef:T,disabled:E,validation:D,formatOptionsRef:O,handleInputChange:k,inset:A,labelId:j,largeStep:M,locale:N,max:P,min:F,minStepsBetweenValues:I,form:L,name:R,orientation:z,pressedInputRef:B,pressedThumbCenterOffsetRef:V,pressedThumbIndexRef:H,renderBeforeHydration:U,setActive:ee,setIndicatorPosition:W,state:te,step:ne,values:re}=RX(),ie=Ud(),ae=c||E,G=re.length>1,oe=z===`vertical`,K=ie===`rtl`,{setTouched:se,setFocused:ce,validationMode:le}=Uc(),ue=_.useRef(null),de=_.useRef(null),fe=_.useRef(!1),pe=Qs(),me=Zc(),he=G?pe:me,{ref:ge,index:_e}=Rc({metadata:_.useMemo(()=>({inputId:he}),[he])}),ve=G?f??_e:0,ye=ve===re.length-1,be=re[ve],xe=_q(be,F,P),[Se,Ce]=_.useState(),we=rZ(),Te=w>=0&&w<re.length?w:-1,Ee=Y(()=>{let e=T.current,t=ue.current;if(!e||!t)return;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=oe?`height`:`width`,a=r[i]-n[i],o=(n[i]/2+a*xe/100)/r[i]*100,s=Number.isFinite(o)?o:void 0;Ce(s),ve===0?W(e=>[s,e[1]]):ye&&W(e=>[e[0],s])});J(()=>{A&&queueMicrotask(Ee)},[Ee,A]),J(()=>{A&&Ee()},[Ee,A,xe]),J(()=>{if(!A)return;let e=T.current,t=ue.current;if(!e||!t)return;let n=Io(e).ResizeObserver;if(typeof n!=`function`)return;let r=new n(Ee);return r.observe(e),r.observe(t),()=>{r.disconnect()}},[T,Ee,A]);let De=oe?`bottom`:`insetInlineStart`,Oe=oe?`left`:`top`,ke;G?C===ve?ke=2:Te===ve&&(ke=1):C===ve&&(ke=1);let Ae;Ae=A?{"--position":`${Se??0}%`,visibility:U&&we||Se===void 0?`hidden`:void 0,position:`absolute`,[De]:`var(--position)`,[Oe]:`50%`,translate:`${(oe||!K?-1:1)*50}% ${(oe?1:-1)*50}%`,zIndex:ke}:Number.isFinite(xe)?{position:`absolute`,[De]:`${xe}%`,[Oe]:`50%`,translate:`${(oe||!K?-1:1)*50}% ${(oe?1:-1)*50}%`,zIndex:ke}:ko;let je;z===`vertical`&&(je=K?`vertical-rl`:`vertical-lr`);let Me=typeof l==`function`?l(ve):o,Ne=lc({"aria-label":Me,"aria-labelledby":s??(Me==null?j:void 0),"aria-describedby":a,"aria-orientation":z,"aria-valuenow":be,"aria-valuetext":typeof u==`function`?u(fq(be,N,O.current??void 0),be,ve):oZ(re,ve,O.current??void 0,N),disabled:ae,form:L,id:he,max:P,min:F,name:R,onChange(e){k(e.currentTarget.valueAsNumber,ve,e)},onFocus(e){let t=fe.current;fe.current=!1,ee(ve),ce(!0),t&&e.stopPropagation()},onBlur(e){if(fe.current){e.stopPropagation();return}ue.current&&(ee(-1),se(!0),ce(!1),le===`onBlur`&&D.commit(PX(be,ve,F,P,G,re)))},onKeyDown(e){if(!aZ.has(e.key))return;Ed.has(e.key)&&e.stopPropagation();let t=null,n=KX(be,ne,F);switch(e.key){case md:t=sZ(n,e.shiftKey?M:ne,1,F,P);break;case _d:t=sZ(n,e.shiftKey?M:ne,K?-1:1,F,P);break;case hd:t=sZ(n,e.shiftKey?M:ne,-1,F,P);break;case gd:t=sZ(n,e.shiftKey?M:ne,K?1:-1,F,P);break;case yd:t=sZ(n,M,1,F,P);break;case bd:t=sZ(n,M,-1,F,P);break;case`End`:t=P,G&&(t=Number.isFinite(re[ve+1])?re[ve+1]-ne*I:P);break;case vd:t=F,G&&(t=Number.isFinite(re[ve-1])?re[ve-1]+ne*I:F);break;default:break}if(t!==null){let n=e.currentTarget;ql(n)||(fe.current=!0,n.blur(),n.focus({preventScroll:!0,focusVisible:!0})),k(t,ve,e),e.preventDefault()}},step:ne,style:{...ko,width:`100%`,height:`100%`,writingMode:je},tabIndex:v??void 0,type:`range`,value:be??``},D.getInputValidationProps),Pe=_o(de,D.inputRef,p);return X(`div`,e,{state:te,ref:[t,ge,ue],props:[{[iZ.index]:ve,children:(0,Z.jsxs)(_.Fragment,{children:[r,(0,Z.jsx)(`input`,{ref:Pe,...Ne,suppressHydrationWarning:!0}),A&&we&&U&&ye&&(0,Z.jsx)(`script`,{nonce:x,dangerouslySetInnerHTML:{__html:'!function(){const t=document.currentScript?.parentElement;if(!t)return;const e=t.closest("[data-base-ui-slider-control]");if(!e)return;const r=e.querySelector("[data-base-ui-slider-indicator]"),i=e.getBoundingClientRect(),n="vertical"===e.getAttribute("data-orientation")?"height":"width",o=e.querySelectorAll(\'input[type="range"]\'),l=o.length>1,s=o.length-1;let a=null,u=null;for(let t=0;t<o.length;t+=1){const e=o[t],y=parseFloat(e.getAttribute("value")??"");if(Number.isNaN(y))return;const c=e.parentElement;if(!c)return;const p=parseFloat(e.getAttribute("max")??"100"),g=parseFloat(e.getAttribute("min")??"0"),b=c?.getBoundingClientRect(),d=i[n]-b[n],m=100*(y-g)/(p-g),v=(b[n]/2+d*m/100)/i[n]*100;c.style.setProperty("--position",`${v}%`),Number.isFinite(v)&&(c.style.removeProperty("visibility"),r&&(0===t?(a=v,r.style.setProperty("--start-position",`${v}%`),l||r.style.removeProperty("visibility")):t===s&&(u=v-(a??0),r.style.setProperty("--end-position",`${v}%`),r.style.setProperty("--relative-size",`${u}%`),r.style.removeProperty("visibility"))))}}();'},suppressHydrationWarning:!0})]}),id:S,onBlur:m,onFocus:h,onPointerDown(e){if(H.current=ve,ue.current!=null){let t=z===`horizontal`?`x`:`y`,n=WX(ue.current);V.current=(z===`horizontal`?e.clientX:e.clientY)-n[t]}de.current!=null&&B.current!==de.current&&(B.current=de.current)},style:Ae,suppressHydrationWarning:U||void 0},b],stateAttributesMapping:IX})});function lZ(e,t,n,r,i,a){let o=n===void 0||t&&r===void 0?`hidden`:void 0,s=e?`bottom`:`insetInlineStart`,c=e?`height`:`width`,l={visibility:i&&a?`hidden`:o,position:e?`absolute`:`relative`,[e?`width`:`height`]:`inherit`};return l[`--start-position`]=`${n??0}%`,t?(l[`--relative-size`]=`${(r??0)-(n??0)}%`,l[s]=`var(--start-position)`,l[c]=`var(--relative-size)`,l):(l[s]=0,l[c]=`var(--start-position)`,l)}function uZ(e,t,n,r){let i=e?`bottom`:`insetInlineStart`,a=e?`height`:`width`,o={position:e?`absolute`:`relative`,[e?`width`:`height`]:`inherit`};if(!t)return o[i]=0,o[a]=`${n}%`,o;let s=r-n;return o[i]=`${n}%`,o[a]=`${s}%`,o}var dZ=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{indicatorPosition:o,inset:s,max:c,min:l,orientation:u,renderBeforeHydration:d,state:f,values:p}=RX(),m=rZ(),h=u===`vertical`,g=p.length>1,_=s?lZ(h,g,o[0],o[1],d,m):uZ(h,g,_q(p[0],l,c),_q(p[p.length-1],l,c));return X(`div`,e,{state:f,ref:t,props:[{"data-base-ui-slider-indicator":d?``:void 0,style:_,suppressHydrationWarning:d||void 0},a],stateAttributesMapping:IX})}),fZ=_.createContext(void 0);function pZ(){let e=_.useContext(fZ);if(e===void 0)throw Error(ec(63));return e}var mZ=function(e){return e.checked=`data-checked`,e.unchecked=`data-unchecked`,e.disabled=`data-disabled`,e.readonly=`data-readonly`,e.required=`data-required`,e.valid=`data-valid`,e.invali
76d=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),hZ={...Gs,checked(e){return e?{[mZ.checked]:``}:{[mZ.unchecked]:``}}},gZ=_.forwardRef(function(e,t){let{checked:n,className:r,defaultChecked:i,"aria-labelledby":a,form:o,id:s,inputRef:c,name:l,nativeButton:u=!1,onCheckedChange:d,readOnly:f=!1,required:p=!1,disabled:m=!1,render:h,uncheckedValue:g,value:v,style:y,...b}=e,{clearErrors:x}=Yd(),{state:S,setTouched:C,setDirty:w,validityData:T,setFilled:E,setFocused:D,shouldValidateOnChange:O,validationMode:k,disabled:A,name:j,validation:M}=Uc(),{labelId:N}=qc(),P=A||m,F=j??l,I=_.useRef(null),L=_o(I,c,M.inputRef),R=_.useRef(null),z=Qs(),B=Zc({id:s,implicit:!1,controlRef:R}),V=u?void 0:B,[H,U]=_l({controlled:n,default:!!i,name:`Switch`,state:`checked`});Gd(R,z,H),J(()=>{I.current&&E(I.current.checked)},[I,E]),Xd(H,()=>{x(F),w(H!==T.initialValue),E(H),O()?M.commit(H):M.commit(H,!0)});let{getButtonProps:ee,buttonRef:W}=jc({disabled:P,native:u}),te=Jc(a,N,I,!u,V),ne={id:u?B:z,role:`switch`,"aria-checked":H,"aria-readonly":f||void 0,"aria-required":p||void 0,"aria-labelledby":te,onFocus(){P||D(!0)},onBlur(){let e=I.current;!e||P||(C(!0),D(!1),k===`onBlur`&&M.commit(e.checked))},onClick(e){if(f||P)return;e.preventDefault();let t=I.current;t&&t.dispatchEvent(new(Io(t)).PointerEvent(`click`,{bubbles:!0,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey}))}},re=lc({checked:H,disabled:P,form:o,id:V,name:F,required:p,style:F?Ao:ko,tabIndex:-1,type:`checkbox`,"aria-hidden":!0,ref:L,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(f){e.preventDefault();return}let t=e.currentTarget.checked,n=Fs(os,e.nativeEvent);d?.(t,n),!n.isCanceled&&U(t)},onFocus(){R.current?.focus()}},M.getInputValidationProps,v===void 0?No:{value:v}),ie=_.useMemo(()=>({...S,checked:H,disabled:P,readOnly:f,required:p}),[S,H,P,f,p]),ae=X(`span`,e,{state:ie,ref:[t,R,W],props:[ne,M.getValidationProps,b,ee],stateAttributesMapping:hZ});return(0,Z.jsxs)(fZ.Provider,{value:ie,children:[ae,!H&&F&&g!==void 0&&(0,Z.jsx)(`input`,{type:`hidden`,form:o,name:F,value:g}),(0,Z.jsx)(`input`,{...re,suppressHydrationWarning:!0})]})}),_Z=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return X(`span`,e,{state:pZ(),ref:t,stateAttributesMapping:hZ,props:a})}),vZ=_.createContext(void 0);function yZ(){let e=_.useContext(vZ);if(e===void 0)throw Error(ec(64));return e}var bZ=function(e){return e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e}({}),xZ={tabActivationDirection:e=>({[bZ.activationDirection]:e})},SZ=_.forwardRef(function(e,t){let{className:n,defaultValue:r=0,onValueChange:i,orientation:a=`horizontal`,render:o,value:s,style:c,...l}=e,u=e.defaultValue!==void 0,d=_.useRef([]),[f,p]=_.useState(()=>new Map),[m,h]=_l({controlled:s,default:r,name:`Tabs`,state:`value`}),g=s!==void 0,[v,y]=_.useState(()=>new Map),b=_.useCallback(e=>{if(e===void 0)return null;for(let[t,n]of v.entries())if(n!=null&&e===(n.value??n.index))return t;return null},[v]),[x,S]=_.useState(()=>({previousValue:m,tabActivationDirection:`none`})),{previousValue:C,tabActivationDirection:w}=x,T=w,E=!1;C!==m&&(T=CZ(C,m,a,v),E=C!=null&&m!=null&&b(m)==null);let D=E?C:m,O=C!==D||w!==T;J(()=>{O&&S({previousValue:D,tabActivationDirection:T})},[D,O,T]);let k=Y((e,t)=>{t.activationDirection=CZ(m,e,a,v),i?.(e,t),!t.isCanceled&&h(e)}),A=Y((e,t)=>
76{i?.(e,Fs(t,void 0,void 0,{activationDirection:`none`}))}),j=Y((e,t)=>{p(n=>{if(n.get(e)===t)return n;let r=new Map(n);return r.set(e,t),r})}),M=Y((e,t)=>{p(n=>{if(!n.has(e)||n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})}),N=_.useCallback(e=>f.get(e),[f]),P=_.useCallback(e=>{for(let t of v.values())if(e===t?.value)return t?.id},[v]),F=_.useMemo(()=>({getTabElementBySelectedValue:b,getTabIdByPanelValue:P,getTabPanelIdByValue:N,onValueChange:k,orientation:a,registerMountedTabPanel:j,setTabMap:y,unregisterMountedTabPanel:M,tabActivationDirection:T,value:m}),[b,P,N,k,a,j,y,M,T,m]),I=_.useMemo(()=>{for(let e of v.values())if(e!=null&&e.value===m)return e},[v,m]),L=_.useMemo(()=>{for(let e of v.values())if(e!=null&&!e.disabled)return e.value},[v]),R=_.useRef(!u),z=_.useRef(u),B=_.useRef(!1);J(()=>{if(g)return;function e(e,t){h(e),S(t=>t.previousValue===e&&t.tabActivationDirection===`none`?t:{previousValue:e,tabActivationDirection:`none`}),A(e,t),R.current=!1}if(v.size===0){if(!B.current||m===null)return;e(null,js);return}B.current=!0;let t=I?.disabled,n=I==null&&m!==null;if(!t&&m===r&&(z.current=!1),z.current&&t&&m===r)return;let i=R.current;if(t||n){let n=L??null;if(m===n){R.current=!1;return}let r=js;i?r=Ms:t&&(r=As),e(n,r);return}i&&I!=null&&(A(m,Ms),R.current=!1)},[r,L,g,A,I,h,v,m]);let V=X(`div`,e,{state:{orientation:a,tabActivationDirection:T},ref:t,props:l,stateAttributesMapping:xZ});return(0,Z.jsx)(vZ.Provider,{value:F,children:(0,Z.jsx)(Pd,{elementsRef:d,children:V})})});function CZ(e,t,n,r){if(e==null||t==null)return`none`;let i=null,a=null;for(let[n,o]of r.entries()){if(o==null)continue;let r=o.value??o.index;if(e===r&&(i=n),t===r&&(a=n),i!=null&&a!=null)break}if(i==null||a==null)return i!==a&&(typeof e==`number`||typeof e==`string`)&&typeof e==typeof t?n===`horizontal`?t>e?`right`:`left`:t>e?`down`:`up`:`none`;let o=i.getBoundingClientRect(),s=a.getBoundingClientRect();if(n===`horizontal`){if(s.left<o.left)return`left`;if(s.left>o.left)return`right`}else{if(s.top<o.top)return`up`;if(s.top>o.top)return`down`}return`none`}var wZ=_.createContext(void 0);function TZ(){let e=_.useContext(wZ);if(e===void 0)throw Error(ec(65));return e}var EZ=_.forwardRef(function(e,t){let{className:n,disabled:r=!1,render:i,value:a,id:o,nativeButton:s=!0,style:c,...l}=e,{value:u,getTabPanelIdByValue:d,orientation:f}=yZ(),{activateOnFocus:p,highlightedTabIndex:m,onTabActivation:h,registerTabResizeObserverElement:g,setHighlightedTabIndex:v,tabsListElement:y}=TZ(),b=Qs(o),{compositeProps:x,compositeRef:S,index:C}=zc({metadata:_.useMemo(()=>({disabled:r,id:b,value:a}),[r,b,a])}),w=a===u,T=_.useRef(!1),E=_.useRef(null);_.useEffect(()=>{let e=E.current;if(e)return g(e)},[g]),J(()=>{if(T.current){T.current=!1;return}if(!(w&&C>-1&&m!==C))return;let e=y;if(e!=null){let t=Rl(as(e));if(t&&zl(e,t))return}r||v(C)},[w,C,m,v,r,y]);let{getButtonProps:D,buttonRef:O}=jc({disabled:r,native:s,focusableWhenDisabled:!0}),k=d(a),A=_.useRef(!1),j=_.useRef(!1);function M(e){w||r||h(a,Fs(os,e.nativeEvent,void 0,{activationDirection:`none`}))}function N(e){w||(C>-1&&!r&&v(C),!r&&p&&(!A.current||A.current&&j.current)&&h(a,Fs(os,e.nativeEvent,void 0,{activationDirection:`none`})))}function P(e){if(w||r)return;A.current=!0;function t(){A.current=!1,j.current=!1}(!e.button||e.button===0)&&(j.current=!0,as(e.currentTarget).addEventListener(`pointerup`,t,{once:!0}))}return X(`button`,e,{state:{disabled:r,active:w,orientation:f},ref:[t,O,S,E],props:[x,{role:`tab`,"aria-controls":k,"aria-selected":w,id:b,onClick:M,onFocus:N,onPointerDown:P,[Pc]:w?``:void 0,onKeyDownCapture(){T.current=!0}},l,D]})}),DZ=function(e){return e.index=`data-index`,e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e.hidden=`data-hidden`,e[e.startingStyle=Ls.startingStyle]=`startingStyle`,e[e.endingStyle=Ls.endingStyle]=`endingStyle`,e}({}),OZ={...xZ,...Bs},kZ=_.forwardRef(function(e,t){let{className:n,value:r,render:i,keepMounted:a=!1,style:o,...s}=e,{value:c,getTabIdByPanelValue:l,orientation:u,tabActivationDirection:d,registerMountedTabPanel:f,unregisterMountedTabPanel:p}=yZ(),m=Qs(),{ref:h,index:g}=Rc({metadata:_.useMemo(()=>({id:m,value:r}),[m,r])}),v=r===c,{mounted:y,transitionStatus:b,setMounted:x}=hl(v),S=!y,C=l(r),w={hidden:S,orientation:u,tabActivationDirection:d,transitionStatus:b},T=_.useRef(null),E=X(`div`,e,{state:w,ref:[t,h,T],props:[{"aria-labelledby":C,hidden:S,id:m,role:`tabpanel`,tabIndex:v?0:-1,inert:Yg(!v),[DZ.index]:g},s],stateAttributesMapping:OZ});return ml({open:v,ref:T,onComplete(){v||x(!1)}}),J(()=>{if(!(S&&!a)&&m!=null)return f(r,m),()=>{p(r,m)}}
76,[S,a,r,m,f,p]),a||y?E:null}),AZ=_.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:r,loopFocus:i=!0,render:a,style:o,...s}=e,{onValueChange:c,orientation:l,value:u,setTabMap:d,tabActivationDirection:f}=yZ(),[p,m]=_.useState(0),[h,g]=_.useState(null),v=_.useRef(new Set),y=_.useRef(new Set),b=_.useRef(null);_.useEffect(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{v.current.forEach(e=>{e()})});return b.current=e,h&&e.observe(h),y.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),b.current=null}},[h]);let x=Y(e=>(v.current.add(e),()=>{v.current.delete(e)})),S=Y(e=>(y.current.add(e),b.current?.observe(e),()=>{y.current.delete(e),b.current?.unobserve(e)})),C=Y((e,t)=>{e!==u&&c(e,t)}),w={orientation:l,tabActivationDirection:f},T={"aria-orientation":l===`vertical`?`vertical`:void 0,role:`tablist`},E=_.useMemo(()=>({activateOnFocus:n,highlightedTabIndex:p,registerIndicatorUpdateListener:x,registerTabResizeObserverElement:S,onTabActivation:C,setHighlightedTabIndex:m,tabsListElement:h}),[n,p,x,S,C,m,h]);return(0,Z.jsx)(wZ.Provider,{value:E,children:(0,Z.jsx)(Wd,{render:a,className:r,style:o,state:w,refs:[t,g],props:[T,s],stateAttributesMapping:xZ,highlightedIndex:p,enableHomeAndEndKeys:!0,loopFocus:i,orientation:l,onHighlightedIndexChange:m,onMapChange:d,disabledIndices:Mo})})}),jZ=_.createContext(void 0);function MZ(){let e=_.useContext(jZ);if(!e)throw Error(ec(73));return e}var NZ=0;function PZ(e){return NZ+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${NZ}`}function FZ(e,t){if(typeof e==`string`)return{description:e};if(typeof e==`function`){let n=e(t);return typeof n==`string`?{description:n}:n}return e}function IZ(e){let t=new Map,n=0,r=0;return e.forEach((e,i)=>{let a=e.transitionStatus===`ending`;t.set(e.id,{value:e,domIndex:i,visibleIndex:a?-1:n,offsetY:r}),r+=e.height||0,a||(n+=1)}),t}var LZ=e=>e.toastMetadata,RZ={toasts:Q(e=>e.toasts),isEmpty:Q(e=>e.toasts.length===0),toast:Q(LZ,(e,t)=>e.get(t)?.value),toastIndex:Q(LZ,(e,t)=>e.get(t)?.domIndex??-1),toastOffsetY:Q(LZ,(e,t)=>e.get(t)?.offsetY??0),toastVisibleIndex:Q(LZ,(e,t)=>e.get(t)?.visibleIndex??-1),hovering:Q(e=>e.hovering),focused:Q(e=>e.focused),expanded:Q(e=>e.hovering||e.focused),expandedOrOutOfFocus:Q(e=>e.hovering||e.focused||!e.isWindowFocused),prevFocusElement:Q(e=>e.prevFocusElement)},zZ=class extends Sf{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:IZ(e.toasts)},{},RZ)}setFocused(e){this.set(`focused`,e)}setHovering(e){this.set(`hovering`,e)}setIsWindowFocused(e){this.set(`isWindowFocused`,e)}setPrevFocusElement(e){this.set(`prevFocusElement`,e)}setViewport=e=>{this.set(`viewport`,e)};disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t={}){let n=RZ.toastIndex(this.state,e);if(n===-1)return;let r=this.state.toasts[n];t.skipOnRemove||r?.onRemove?.();let i=[...this.state.toasts];i.splice(n,1),this.setToasts(i)}addToast=e=>{let{timeout:t,limit:n}=this.state,r=e.id||PZ(`toast`);if(e.id){let t=RZ.toast(this.state,e.id);if(t)if(t.transitionStatus===`ending`)this.removeToast(e.id,{skipOnRemove:!0});else{let{id:t,transitionStatus:n,...r}=e;return this.updateToastInternal(e.id,r,{resetTimer:!0,markUpdated:!0}),e.id}}let i={...e,id:r,updateKey:0,transitionStatus:`starting`},a=[i,...this.state.toasts],o=a.filter(e=>e.transitionStatus!==`ending`);if(o.length>n){let e=o.length-n,t=o.slice(-e),r=new Set(t.map(e=>e.id));this.setToasts(a.map(e=>{let t=r.has(e.id);return e.limited===t?e:{...e,limited:t}}))}else this.setToasts(a.map(e=>e.limited?{...e,limited:!1}:e));let s=i.timeout??t;return i.type!==`loading`&&s>0&&this.scheduleTimer(r,s,()=>this.closeToast(r)),RZ.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>{this.updateToastInternal(e,t,{markUpdated:!0})};updateToastInternal=(e,t,n={})=>{let{timeout:r,toasts:i}=this.state,a=RZ.toast(this.state,e)??null;if(!a||a.transitionStatus===`ending`)return;let o={...a,...t,...n.markUpdated&&{updateKey:(a.updateKey??0)+1}};this.setToasts(i.map(t=>t.id===e?o:t));let s=o.timeout??r,c=a?.timeout??r,l=Object.hasOwn(t,`timeout`),u=o.transitionStatus!==`ending`&&o.type!==`loading`&&s>0,d=this.timers.has(e),f=c!==s,p=a?.type===`loading`;if(!u&&d){this.timers.get(e)?.timeout?.clear(),this.timers.delete(e);return}if(u&&(!d||f||l||p||n.resetTimer)){let t=this.timers.get(e);t&&(t.timeout?.clear(),this.timers.delete(e)),this.scheduleTimer(e,s,()=>this.closeToast(e)),RZ.expandedOrOutOfFocus(this.state)&&this.pauseTimers()}};closeToast=e=>{let t=e===void 0,{limit:n,toasts:r}=this.state,i;
76if(t)i=r,this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear();else{let t=RZ.toast(this.state,e);if(!t)return;i=[t];let n=this.timers.get(e);n?.timeout&&(n.timeout.clear(),this.timers.delete(e))}let a=0,o=r.map(r=>{if(t||r.id===e)return{...r,transitionStatus:`ending`,height:0};if(r.transitionStatus===`ending`)return r;let i=a>=n;return a+=1,r.limited===i?r:{...r,limited:i}}),s={toasts:o,toastMetadata:IZ(o)};(t||r.length===1)&&(s.hovering=!1,s.focused=!1),this.update(s),i.forEach(e=>{e.transitionStatus!==`ending`&&e.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let n=FZ(t.loading),r=this.addToast({...n,type:`loading`}),i=e.then(e=>{let n=FZ(t.success,e);return this.updateToast(r,{...n,type:`success`,timeout:n.timeout}),e}).catch(e=>{let n=FZ(t.error,e);return this.updateToast(r,{...n,type:`error`,timeout:n.timeout}),Promise.reject(e)});return{}.hasOwnProperty.call(t,`setPromise`)&&t.setPromise(i),i};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(e=>{if(e.timeout){e.timeout.clear();let t=Date.now()-e.start,n=e.delay-t;e.remaining=n>0?n:0}}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=Df.create(),e.timeout.start(e.remaining,()=>{this.timers.delete(t),e.callback()}),e.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=e=>{if(e.pointerType!==`touch`)return;let t=Bl(e);zl(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=!RZ.expandedOrOutOfFocus(this.state),a=i?Df.create():void 0;a?.start(t,()=>{this.timers.delete(e),n()}),this.timers.set(e,{timeout:a,start:i?r:0,delay:t,remaining:t,callback:n})}setToasts(e){let t={toasts:e,toastMetadata:IZ(e)};e.length===0&&(t.hovering=!1,t.focused=!1),this.update(t)}handleFocusManagement(e){let t=Rl(as(this.state.viewport));if(!this.state.viewport||!zl(this.state.viewport,t)||!ql(t))return;if(e===void 0){this.restoreFocusToPrevElement();return}let n=RZ.toasts(this.state),r=RZ.toastIndex(this.state,e),i=null,a=r+1;for(;a<n.length;){if(n[a].transitionStatus!==`ending`){i=n[a];break}a+=1}if(!i)for(a=r-1;a>=0;){if(n[a].transitionStatus!==`ending`){i=n[a];break}--a}i?i.ref?.current?.focus():this.restoreFocusToPrevElement()}},BZ=function(e){let{children:t,timeout:n=5e3,limit:r=3,toastManager:i}=e,a=go(()=>new zZ({timeout:n,limit:r,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return ol(a.disposeEffect),_.useEffect(function(){if(i)return i[` subscribe`](({action:e,options:t})=>{let n=t.id;e===`promise`&&t.promise?a.promiseToast(t.promise,t):e===`update`&&n?a.updateToast(n,t):e===`close`?a.closeToast(n):a.addToast(t)})},[a,i]),a.useSyncedValues({timeout:n,limit:r}),(0,Z.jsx)(jZ.Provider,{value:a,children:t})},VZ=function(e){return e.frontmostHeight=`--toast-frontmost-height`,e}({}),HZ=_.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,s=MZ(),c=Of(),l=_.useRef(!1),u=_.useRef(!1),d=_.useRef(!1),f=s.useState(`isEmpty`),p=s.useState(`toasts`),m=s.useState(`focused`),h=s.useState(`expanded`),g=s.useState(`prevFocusElement`),v=p[0]?.height??0,y=_.useMemo(()=>p.some(e=>e.transitionStatus===`ending`),[p]),b=_.useMemo(()=>p.filter(e=>e.priority===`high`),[p]);_.useEffect(()=>{let e=s.state.viewport;if(!e)return;function t(t){f||t.key===`F6`&&Bl(t)!==e&&(t.preventDefault(),s.setPrevFocusElement(Rl(as(e))),e?.focus({preventScroll:!0}),s.pauseTimers(),s.setFocused(!0))}return wf(Io(e),`keydown`,t)},[s,f]),_.useEffect(()=>{let e=s.state.viewport;if(!e||f)return;let t=Io(e);function n(e){Bl(e)===t&&(s.setIsWindowFocused(!1),s.pauseTimers())}function r(n){if(n.relatedTarget)return;let r=Bl(n),i=Rl(as(e));(r===t||!zl(e,r)||!ql(i))&&s.resumeTimers(),c.start(0,()=>s.setIsWindowFocused(!0))}return Cf(wf(t,`blur`,n,!0),wf(t,`focus`,r,!0))},[s,c,f]),_.useEffect(()=>{let e=s.state.viewport;if(!(!e||f))return wf(as(e),`pointerdown`,s.handleDocumentPointerDown,!0)},[f,s]);function x(e){let t=s.state.viewport;t&&(l.current=!0,e.relatedTarget===t?p[0]?.ref?.current?.focus():s.restoreFocusToPrevElement())}function S(e){e.key===`Tab`&&e.shiftKey&&Bl(e.nativeEvent)===s.state.viewport&&(e.preventDefault(),s.restoreFocusToPrevElement(),s.resumeTimers())}function C(){let e=s.state.toasts.some(e=>e.transitionStatus===`ending`);!s.state.isWindowFocused||e||d.current||!u.current||(s.resumeTimers(),s.setHovering(!1),u.current=!1)}_.useEffect(C,[y,s]);function w(){s.pauseTimers(),s.setHovering(!0),u.current=!1}function T(){y||d.current?u.current=!0:(s.resumeTimers(),s.setHovering(!1))}function E(e){e.pointerType===`touch`&&(d.current=!0)}function D(e){e.pointerType===`touch`&&(d.current=!1,C())}function O(){if(l.current){l.current=!1;return}m||ql(Rl(as(s.state.viewport)))&&(s.setFocused(!0),s.pauseTimers())}function k(e){!m||zl(s.state.viewport,e.relatedTarget)||(s.setFocused(!1),s.resumeTimers())}let A={tabIndex:-1,role:`region`,"aria-live":`polite`,"aria-atomic":!1,"aria-relevant":`additions text`,"aria-label":`Notifications`,onMouseEnter:w,onMouseMove:w,onMouseLeave:T,onFocus:O,onBlur:k,onKeyDown:S,onClick:O,onPointerDown:E,onPointerUp:D,onPointerCancel:D},j={expanded:h}
76,M=X(`div`,e,{ref:[t,s.setViewport],state:j,props:[A,{style:{[VZ.frontmostHeight]:v?`${v}px`:void 0}},o,{children:(0,Z.jsxs)(_.Fragment,{children:[!f&&g&&(0,Z.jsx)(Lf,{onFocus:x}),a,!f&&g&&(0,Z.jsx)(Lf,{onFocus:x})]})}]});return(0,Z.jsxs)(_.Fragment,{children:[!f&&g&&(0,Z.jsx)(Lf,{onFocus:x}),M,!m&&b.length>0&&(0,Z.jsx)(`div`,{style:ko,children:b.map(e=>(0,Z.jsxs)(`div`,{role:`alert`,"aria-atomic":!0,children:[(0,Z.jsx)(`div`,{children:e.title}),(0,Z.jsx)(`div`,{children:e.description})]},e.id))})]})}),UZ=_.createContext(void 0);function WZ(){let e=_.useContext(UZ);if(!e)throw Error(ec(66));return e}var GZ=function(e){return e.index=`--toast-index`,e.offsetY=`--toast-offset-y`,e.height=`--toast-height`,e.swipeMovementX=`--toast-swipe-movement-x`,e.swipeMovementY=`--toast-swipe-movement-y`,e}({}),KZ={...Bs,swipeDirection(e){return e?{"data-swipe-direction":e}:null}},qZ=40,JZ=10,YZ=.5,XZ=1,ZZ=`${rp},${ip}`,QZ=_.forwardRef(function(e,t){let{toast:n,render:r,className:i,swipeDirection:a=[`down`,`right`],style:o,...s}=e,c=n.positionerProps?.anchor!==void 0,l=[];c||(l=Array.isArray(a)?a:[a]);let u=l.length>0,d=MZ(),[f,p]=_.useState(void 0),[m,h]=_.useState(!1),[g,v]=_.useState(!1),[y,b]=_.useState(!1),[x,S]=_.useState({x:0,y:0}),[C,w]=_.useState({x:0,y:0,scale:1}),[T,E]=_.useState(),[D,O]=_.useState(),[k,A]=_.useState(null),j=_.useRef(null),M=_.useRef({x:0,y:0}),N=_.useRef({x:0,y:0,scale:1}),P=_.useRef(void 0),F=_.useRef(0),I=_.useRef(!1),L=_.useRef({x:0,y:0}),R=_.useRef(!1),z=_.useRef({x:0,y:0}),B=_.useRef(null),V=_.useRef(null),H=d.useState(`toastIndex`,n.id),U=d.useState(`toastVisibleIndex`,n.id),ee=d.useState(`toastOffsetY`,n.id),W=d.useState(`focused`),te=d.useState(`expanded`);ml({open:n.transitionStatus!==`ending`,ref:j,onComplete(){n.transitionStatus===`ending`&&d.removeToast(n.id)}});let ne=Y((e=!1)=>{let t=j.current;if(!t)return;let r=t.style.height;t.style.height=`auto`;let i=t.offsetHeight;t.style.height=r;function a(){d.updateToastInternal(n.id,{ref:j,height:i,...n.transitionStatus===`starting`?{transitionStatus:void 0}:{}})}e?fl.flushSync(a):a()});J(ne,[ne]);function re(e){z.current=e,S(e)}J(()=>()=>{V.current?.abort()},[]);function ie(e,t){let n=e,r=t;return!l.includes(`left`)&&!l.includes(`right`)?n=e>0?e**YZ:-(Math.abs(e)**YZ):(!l.includes(`right`)&&e>0&&(n=e**YZ),!l.includes(`left`)&&e<0&&(n=-(Math.abs(e)**YZ))),!l.includes(`up`)&&!l.includes(`down`)?r=t>0?t**YZ:-(Math.abs(t)**YZ):(!l.includes(`down`)&&t>0&&(r=t**YZ),!l.includes(`up`)&&t<0&&(r=-(Math.abs(t)**YZ))),{x:n,y:r}}let ae=Y(e=>{if(e.pointerId!==B.current)return;B.current=null,V.current?.abort(),V.current=null,h(!1),v(!1),A(null);let t=N.current;if(e.type===`pointercancel`||I.current){re({x:t.x,y:t.y}),p(void 0);return}let r=!1,i=z.current,a=i.x-t.x,o=i.y-t.y,s;for(let e of l){switch(e){case`right`:a>qZ&&(r=!0,s=`right`);break;case`left`:a<-qZ&&(r=!0,s=`left`);break;case`down`:o>qZ&&(r=!0,s=`down`);break;case`up`:o<-qZ&&(r=!0,s=`up`);break;default:break}if(r)break}r?(p(s),b(!0),d.closeToast(n.id)):(re({x:t.x,y:t.y}),p(void 0))});function G(e){if(e.button!==0)return;e.pointerType===`touch`&&d.pauseTimers();let t=Bl(e.nativeEvent);if(t&&t.closest(`button,a,input,textarea,[role="button"],${ZZ}`))return;if(I.current=!1,P.current=void 0,F.current=0,B.current=e.pointerId,M.current={x:e.clientX,y:e.clientY},L.current=M.current,j.current){let e=RK(j.current);N.current=e,w(e),re({x:e.x,y:e.y})}d.setHovering(!0),h(!0),v(!1),A(null),R.current=!0;let n=j.current;if(n){V.current?.abort();let t=new AbortController;V.current=t;let r=as(n);r.addEventListener(`pointerup`,ae,{signal:t.signal}),r.addEventListener(`pointercancel`,ae,{signal:t.signal}),n.setPointerCapture?.(e.pointerId)}}function oe(e){if(e.pointerId!==B.current)return;e.preventDefault(),R.current&&=(M.current={x:e.clientX,y:e.clientY},!1);let{clientY:t,clientX:n,movementX:r,movementY:i}=e;(i<0&&t>L.current.y||i>0&&t<L.current.y)&&(L.current={x:L.current.x,y:t}),(r<0&&n>L.current.x||r>0&&n<L.current.x)&&(L.current={x:n,y:L.current.y});let a=n-M.current.x,o=t-M.current.y,s=t-L.current.y,c=n-L.current.x;if(!g&&Math.sqrt(a*a+o*o)>=XZ&&(v(!0),k===null)){let e=l.includes(`left`)||l.includes(`right`),t=l.includes(`up`)||l.includes(`down`);e&&t&&A(Math.abs(a)>Math.abs(o)?`horizontal`:`vertical`)}let u;if(!P.current)k===`vertical`?o>0?u=`down`:o<0&&(u=`up`):k===`horizontal`?a>0?u=`right`:a<0&&(u=`left`):u=Math.abs(a)>=Math.abs(o)?a>0?`right`:`left`:o>0?`down`:`up`,u&&l.includes(u)&&(P.current=u,F.current=LK(u,a,o),p(u));else{let e=P.current,t=LK(e,c,s);t>qZ?(I.current=!1,p(e)):!(l.includes(`left`)&&l.includes(`right`))&&!(l.includes(`up`)&&l.includes(`down`))&&F.current-t>=JZ&&(I.current=!0)}let d=ie(a,o),f=N.current.x,m=N.current.y;k===`horizontal`?(l.includes(`left`)||l.includes(`right`))&&(f+=d.x):(k===`vertical`||(l.includes(`left`)||l.includes(`right`))&&(f+=d.x),(l.includes(`up`)||l.includes(`down`))&&(m+=d.y)),re({x:f,y:m})}function K(e){if(e.key===`Escape`){if(!j.current||!zl(j.current,Rl(as(j.current))))return;d.closeToast(n.id)}}_.useEffect(()=>{if(!u)return;let e=j.current;if(!e)return;function t(t){zl(e,Bl(t))&&t.preventDefault()}return wf(e,`touchmove`,t,{passive:!1})},[u]);function se(){if(!m&&x.x===C.x&&x.y===C.y&&!y)return{[GZ.swipeMovementX]:`0px`,[GZ.swipeMovementY]:`0px`};let e=x.x-C.x,t=x.y-C.y;return{transition:m?`none`:void 0,transform:m?`translateX(${x.x}px) translateY(${x.y}px) scale(${C.scale})`:void 0,[GZ.swipeMovementX]:`${e}px`,[GZ.swipeMovementY]:`${t}px`}}let ce=n.priority===`high`,le={role:ce?`alertdialog`:`dialog`,tabIndex:0,"aria-modal":!1,"aria-labelledby":T,"aria-describedby":D,"aria-hidden":ce&&!W?!0:void 0,onPointerDown:u?G:void 0,onPointerMove:u?oe:void 0,onPointerUp:u?ae:void 0,onPointerCancel:u?ae:void 0,onKeyDown:K,inert:Yg(n.limited),style:{...se(),[GZ.index]:n.transitionStatus===`ending`?H:U,[GZ.offsetY]:`${ee}px`,[GZ.height]:n.height?`${n.height}px`:void 0}},ue=_.useMemo(()=>({rootRef:j,toast:n,titleId:T,setTitleId:E,descriptionId:D,setDescriptionId:O,swiping:m,swipeDirection:f,re
76calculateHeight:ne,index:H,visibleIndex:U,expanded:te}),[n,T,D,m,f,ne,H,U,te]),de={transitionStatus:n.transitionStatus,expanded:te,limited:n.limited||!1,type:n.type,swiping:ue.swiping,swipeDirection:ue.swipeDirection},fe=X(`div`,e,{ref:[t,ue.rootRef],state:de,stateAttributesMapping:KZ,props:[le,s]});return(0,Z.jsx)(UZ.Provider,{value:ue,children:fe})}),$Z=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{visibleIndex:o,expanded:s,recalculateHeight:c}=WZ(),l=_.useRef(null);return J(()=>{let e=l.current;if(!e||(c(),typeof ResizeObserver!=`function`||typeof MutationObserver!=`function`))return;let t=new ResizeObserver(()=>c(!0)),n=new MutationObserver(()=>c(!0));return t.observe(e),n.observe(e,{childList:!0,subtree:!0,characterData:!0}),()=>{t.disconnect(),n.disconnect()}},[c]),X(`div`,e,{ref:[t,l],state:{expanded:s,behind:o>0},props:a})}),eQ=_.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{toast:c,setDescriptionId:l}=WZ(),u=o??c.description,d=!!u,f=Zs(a);J(()=>{if(d)return l(f),()=>{l(void 0)}},[d,f,l]);let p=X(`p`,e,{ref:t,state:{type:c.type},props:{...s,id:f,children:u}});return d?p:null}),tQ=_.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{toast:c,setTitleId:l}=WZ(),u=o??c.title,d=!!u,f=Zs(a);J(()=>{if(d)return l(f),()=>{l(void 0)}},[d,f,l]);let p=X(`h2`,e,{ref:t,state:{type:c.type},props:{...s,id:f,children:u}});return d?p:null}),nQ=_.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,c=MZ(),{toast:l}=WZ(),u=c.useState(`expanded`),[d,f]=_.useState(!1),{getButtonProps:p,buttonRef:m}=jc({disabled:a,native:o}),h={type:l.type};return X(`button`,e,{ref:[t,m],state:h,props:[{"aria-hidden":!u&&!d,onClick(){c.closeToast(l.id)},onFocus(){f(!0)},onBlur(){f(!1)}},s,p]})}),rQ=VY;function iQ(){let e=_.useContext(jZ);if(!e)throw Error(ec(73));let t=e.useState(`toasts`);return _.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function aQ(){let e=new Set;function t(t){e.forEach(e=>e(t))}return{" subscribe":function(t){return e.add(t),()=>{e.delete(t)}},add(e){let n=e.id||PZ(`toast`);return t({action:`add`,options:{...e,id:n,transitionStatus:`starting`}}),n},close(e){t({action:`close`,options:{id:e}})},update(e,n){t({action:`update`,options:{...n,id:e}})},promise(e,n){let r=e;return t({action:`promise`,options:{...n,promise:e,setPromise(e){r=e}}}),r}}}var oQ=_.forwardRef(function(e,t){let n={vertical:`horizontal`,horizontal:`vertical`}[O_().orientation];return(0,Z.jsx)(J_,{orientation:n,...e,ref:t})}),sQ=_.forwardRef(function(e,t){let{disabled:n=!1,loopFocus:r=!0,orientation:i=`horizontal`,className:a,render:o,style:s,...c}=e,[l,u]=_.useState(()=>new Map),d=_.useMemo(()=>{let e=[];for(let t of l.values())t?.index&&!t.focusableWhenDisabled&&e.push(t.index);return e},[l]),f=_.useMemo(()=>({disabled:n,orientation:i,setItemMap:u}),[n,i,u]),p={disabled:n,orientation:i},m={"aria-orientation":i,role:`toolbar`};return(0,Z.jsx)(D_.Provider,{value:f,children:(0,Z.jsx)(Wd,{render:o,className:a,style:s,state:p,refs:[t],props:[m,c],disabledIndices:d,loopFocus:r,onMapChange:u,orientation:i})})}),cQ=_.createContext(void 0);function lQ(e){let t=_.useContext(cQ);if(t===void 0&&!e)throw Error(ec(68));return t}var uQ=_.forwardRef(function(e,t){let{className:n,disabled:r=!1,render:i,style:a,...o}=e,{orientation:s,disabled:c}=O_(),l=c||r,u=_.useMemo(()=>({disabled:l}),[l]),d=X(`div`,e,{state:{disabled:l,orientation:s},ref:t,props:[{role:`group`},o]});return(0,Z.jsx)(cQ.Provider,{value:u,children:d})}),dQ=_.forwardRef(function(e,t){let{className:n,disabled:r=!1,focusableWhenDisabled:i=!0,render:a,nativeButton:o=!0,style:s,...c}=e,l=_.useMemo(()=>({focusableWhenDisabled:i}),[i]),{disabled:u,orientation:d}=O_(),f=lQ(!0),p=u||(f?.disabled??!1)||r,{getButtonProps:m,buttonRef:h}=jc({disabled:p,focusableWhenDisabled:i,native:o});return(0,Z.jsx)(Bc,{tag:`button`,render:a,className:n,style:s,metadata:l,state:{disabled:p,orientation:d,focusable:i},refs:[t,h],props:[c,{disabled:p},m]})}),fQ={focusableWhenDisabled:!0},pQ=_.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,{orientation:o}=O_();return(0,Z.jsx)(Bc,{tag:`a`,render:r,className:n,style:i,metadata:fQ,state:{orientation:o},refs:[t],props:[a]})}),mQ=_.forwardRef(function(e,t){let{className:n,focusableWhenDisabled:r=!0,render:i,disabled:a=!1,style:o,...s}=e,c=_.useMemo(()=>({focusableWhenDisabled:r}),[r]),{disabled:l,orientation:u}=O_(),d=lQ(!0),f=l||(d?.disabled??!1)||a,{props:p}=Ac({composite:!0,disabled:f,focusableWhenDisabled:r,isNativeButton:!1});return(0,Z.jsx)(Bc,{tag:`input`,render:i,className:n,style:o,metadata:c,state:{disabled:f,orientation:u,focusable:r},refs:[t],props:[{onClick(e){f&&e.preventDefault()},onKeyDown(e){e.key!==`ArrowLeft`&&e.key!==`ArrowRight`&&f&&Zl(e)},onPointerDown(e){f&&e.preventDefault()}},s,p]})}),hQ=_.createContext(void 0);function gQ(e){let t=_.useContext(hQ);if(t===void 0&&!e)throw Error(ec(72));return t}var _Q={...Eh,disabled:Q(e=>e.disabled),instantType:Q(e=>e.instantType),isInstantPhase:Q(e=>e.isInstantPhase),trackCursorAxis:Q(e=>e.trackCursorAxis),disableHoverablePopup:Q(e=>e.disableHoverablePopup),lastOpenChangeReason:Q(e=>e.openChangeReason),closeOnClick:Q(e=>e.closeOnClick),closeDelay:Q(e=>e.closeDelay),hasViewport:Q(e=>e.hasViewport)},vQ=class e extends Sf{constructor(e,t,n=!1){let r=new _h,i={...yQ(),...e};i.floatingRootContext=bh(r,t,n),super(i,{popupRef:_.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:r},_Q)}setOpen=(e,t)=>{let n=t.reason,r=n===cs,i=e&&n===`trigger-focus`,a=!e&&(n===`trigger-press`||n===`escape-key`);
76if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let o=()=>{let r={open:e,openChangeReason:n};i?r.instantType=`focus`:a?r.instantType=`dismiss`:n===`trigger-hover`&&(r.instantType=void 0),dh(r,e,t.trigger),this.update(r)};r?fl.flushSync(o):o()};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,Fs(ss,e))}static useStore(t,n){return lh(t,(t,r)=>new e(n,t,r)).store}};function yQ(){return{...yh(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var bQ=ff(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=vQ.useStore(l?.store,{open:n,openProp:r,activeTriggerId:d,triggerIdProp:u});$d(()=>{r===void 0&&p.state.open===!1&&n===!0&&p.update({open:!0,activeTriggerId:d})}),p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),v=p.useState(`mounted`),y=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i}),p.useSyncedValue(`disabled`,t),ph(p);let{forceUnmount:b,transitionStatus:x}=mh(h,p),S=p.useState(`isInstantPhase`),C=p.useState(`instantType`),w=p.useState(`lastOpenChangeReason`),T=_.useRef(null);J(()=>{m&&t&&p.setOpen(!1,Fs(As))},[m,t,p]),J(()=>{x===`ending`&&w===`none`||x!==`ending`&&S?(C!==`delay`&&(T.current=C),p.set(`instantType`,`delay`)):T.current!==null&&(p.set(`instantType`,T.current),T.current=null)},[x,S,w,C,p]),J(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]);let E=_.useCallback(()=>{p.setOpen(!1,Fs(Ns))},[p]);_.useImperativeHandle(o,()=>({unmount:b,close:E}),[b,E]);let D=h||v||!t&&a!==`none`;return(0,Z.jsxs)(hQ.Provider,{value:p,children:[D&&(0,Z.jsx)(xQ,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:y}):f]})});function xQ({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=Rp(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=Pp(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n});return hh(e,{activeTriggerProps:_.useMemo(()=>lc(a.reference,i.reference),[a.reference,i.reference]),inactiveTriggerProps:_.useMemo(()=>lc(a.trigger,i.trigger),[a.trigger,i.trigger]),popupProps:_.useMemo(()=>lc(ch,a.floating,i.floating),[a.floating,i.floating])}),null}var SQ=_.createContext(void 0);function CQ(){return _.useContext(SQ)}var wQ=function(e){return e[e.popupOpen=Ag.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),TQ=`data-base-ui-tooltip-trigger`;function EQ(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;e<t.length;e+=1){let n=t[e];if(zo(n))return n}}let t=e.target;return zo(t)?t:null}function DQ(e){let t=e;for(;t;){if(t.hasAttribute(TQ))return t;let e=t.parentElement;if(e){t=e;continue}let n=t.getRootNode();t=`host`in n&&zo(n.host)?n.host:null}return null}var OQ=pf(function(e,t){let{render:n,className:r,style:i,handle:a,payload:o,disabled:s,delay:c,closeOnClick:l=!0,closeDelay:u,id:d,...f}=e,p=gQ(!0),m=a?.store??p;if(!m)throw Error(ec(82));let h=Qs(d),g=m.useState(`isTriggerActive`,h),v=m.useState(`isOpenedByTrigger`,h),y=m.useState(`floatingRootContext`),b=_.useRef(null),x=c??600,S=u??0,{registerTrigger:C,isMountedByThisTrigger:w}=fh(h,b,m,{payload:o,closeOnClick:l,closeDelay:S}),T=CQ(),{delayRef:E,isInstantPhase:D,hasProvider:O}=If(y,{open:v}),k=Fh(y);m.useSyncedValue(`isInstantPhase`,D);let A=m.useState(`disabled`),j=s??A,M=tf(j),N=m.useState(`trackCursorAxis`),P=m.useState(`disableHoverablePopup`),F=_.useRef(!1),I=Of(),L=_.useRef(void 0);function R(){let e=T?.delay,t=typeof E.current==`object`?E.current.open:void 0,n=x;return O&&(n=t===0?0:c??e??x),n}function z(e){let t=b.current;if(!t||!e)return!1;let n=DQ(e);return n!==null&&n!==t&&zl(t,n)}function B(e){let t=z(e);return F.current=t,t&&(k.openChangeTimeout.clear(),k.restTimeout.clear(),k.restTimeoutPending=!1,I.clear()),t}let V=Rh(y,{enabled:!j,mouseOnly:!0,move:!1,handleClose:!P&&N!==`both`?eg():null,restMs:R,delay(){let e=typeof E.current==`object`?E.current.close:void 0,t=S;return u==null&&O&&(t=e),{close:t}},triggerElementRef:b,isActiveTrigger:g,isClosing:()=>m.select(`transitionStatus`)===`ending`,shouldOpen(){return!F.current}}),H=Ah(y,{enabled:!j}).reference,U=e=>{let t=F.current,n=EQ(e),r=B(n),i=b.current,a=i&&n&&zl(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`){m.setOpen(!1,Fs(cs,e));return}if(t&&!r&&a&&!M.current&&!m.select(`open`)&&i&&tu(L.current)){let t=()=>{!F.current&&!M.current&&!m.select(`open`)&&m.setOpen(!0,Fs(cs,e,i))},n=R();n===0?(I.clear(),t()):I.start(n,t)}},ee=m.useState(`triggerProps`,w);return X(`button`,e,{state:{open:v},ref:[t,C,b],props:[V,H,w||N!==`none`?ee:void 0,{onMouseOver(e){U(e.nativeEvent)},onFocus(e){z(EQ(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){F.current=!1,I.clear(),L.current=void 0},onPointerEnter(e){L.current=e.pointerType},onPointerDown(e){L.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,[wQ.triggerDisabled]:j?``:void 0,[TQ]:j?void 0:``},f],stateAttributesMapping:Ig})}),kQ=_.createContext(void 0);function AQ(){let e=_.useContext(kQ);if(e===void 0)throw Error(ec(70));return e}var jQ=_.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;
76return gQ().useState(`mounted`)||n?(0,Z.jsx)(kQ.Provider,{value:n,children:(0,Z.jsx)(VY,{ref:t,...r})}):null}),MQ=_.createContext(void 0);function NQ(){let e=_.useContext(MQ);if(e===void 0)throw Error(ec(71));return e}var PQ=_.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=op,style:g,...v}=e,y=gQ(),b=AQ(),x=y.useState(`open`),S=y.useState(`mounted`),C=y.useState(`trackCursorAxis`),w=y.useState(`disableHoverablePopup`),T=y.useState(`floatingRootContext`),E=y.useState(`instantType`),D=y.useState(`transitionStatus`),O=r_({anchor:i,positionMethod:a,floatingRootContext:T,mounted:S,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:b,collisionAvoidance:h,adaptiveOrigin:y.useState(`hasViewport`)?e_:void 0}),k=d_(e,_.useMemo(()=>({open:x,side:O.side,align:O.align,anchorHidden:O.anchorHidden,instant:C===`none`?E:`tracking-cursor`}),[x,O.side,O.align,O.anchorHidden,C,E]),{styles:O.positionerStyles,transitionStatus:D,props:v,refs:[t,y.useStateSetter(`positionerElement`)],hidden:!S,inert:!x||C===`both`||w});return(0,Z.jsx)(MQ.Provider,{value:O,children:k})}),FQ={...Rg,...Bs},IQ=_.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=gQ(),{side:s,align:c}=NQ(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);ml({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),Ih(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return X(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[f,u_(d),a],stateAttributesMapping:FQ})}),LQ=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=_.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=_.useMemo(()=>({open:t,close:n}),[t,n]);return(0,Z.jsx)(SQ.Provider,{value:i,children:(0,Z.jsx)(Ff,{delay:a,timeoutMs:r,children:e.children})})},RQ=[`Poster`,`Ticket`,`Panel`,`Chip`,`Badge`,`Overlay`],zQ=[{value:`poster`,label:`Poster Surface`},{value:`token`,label:`Token Grid`},{value:`overlay`,label:`Overlay Panel`},{value:`toolbar`,label:`Toolbar Stack`}],BQ=[{title:`Poster Systems`,body:`Large-format layouts.`,href:`#poster-systems`},{title:`UI Tokens`,body:`Tight token families.`,href:`#ui-tokens`},{title:`Menu Kits`,body:`Nested popup patterns.`,href:`#menu-kits`}],VQ=``;function HQ({checked:e,onCheckedChange:t,value:n,children:r}){return(0,Z.jsxs)(`label`,{className:`duo-choice inline-flex items-center g3`,children:[(0,Z.jsx)(ez,{checked:e,onCheckedChange:t,value:n,className:`duo-checkbox-root`,children:(0,Z.jsx)(tz,{className:`duo-checkbox-indicator`,children:(0,Z.jsx)(qa,{size:12})})}),(0,Z.jsx)(`span`,{children:r})]})}function UQ({value:e,children:t}){return(0,Z.jsxs)(`label`,{className:`duo-choice inline-flex items-center g3`,children:[(0,Z.jsx)(il,{value:e,className:`duo-radio-root`,children:(0,Z.jsx)(gl,{className:`duo-radio-indicator`})}),(0,Z.jsx)(`span`,{children:t})]})}function WQ(){let{toasts:e}=iQ();return(0,Z.jsx)(rQ,{children:(0,Z.jsx)(HZ,{className:`duo-toast-viewport grid g3`,children:e.map(e=>(0,Z.jsx)(QZ,{toast:e,className:`theme-alt p5`,children:(0,Z.jsx)($Z,{className:``,children:(0,Z.jsxs)(`div`,{className:`flex items-start justify-between g3`,children:[(0,Z.jsxs)(`div`,{className:`grid g2`,children:[(0,Z.jsx)(tQ,{className:`f3 m0`}),(0,Z.jsx)(eQ,{className:`measure lh-body m0`})]}),(0,Z.jsx)(nQ,{className:`theme-alt flex items-center justify-center p0 m0`,"aria-label":`Dismiss toast`,children:(0,Z.jsx)(mo,{size:16,strokeWidth:3})})]})})},e.id))})})}function GQ(){let[e,t]=(0,_.useState)(!0),[n,r]=(0,_.useState)([`posters`,`tokens`]),[i,a]=(0,_.useState)(`poster`),[o,s]=(0,_.useState)(!0),[c,l]=(0,_.useState)([`grid`,`caps`]),[u,d]=(0,_.useState)(!0),[f,p]=(0,_.useState)(`poster`),[m,h]=(0,_.useState)(`Poster`),[g,v]=(0,_.useState)(`Po`),[y,b]=(0,_.useState)(68),[x,S]=(0,_.useState)(3),[C,w]=(0,_.useState)(`tokens`),[T,E]=(0,_.useState)(!0),[D,O]=(0,_.useState)(`dense`),[k,A]=(0,_.useState)(!0),[j,M]=(0,_.useState)(`draft`),[N,P]=(0,_.useState)(`Ready.`),[F,I]=(0,_.useState)(0),L=(0,_.useMemo)(()=>aQ(),[]);return(0,Z.jsx)(BZ,{toastManager:L,timeout:3500,children:(0,Z.jsx)(LQ,{
76children:(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`div`,{className:`flex items-center flex-wrap g4`,children:[(0,Z.jsx)(HR,{borderRadius:0}),(0,Z.jsx)(UR,{borderRadius:0}),(0,Z.jsx)(WR,{borderRadius:0,children:`Badge`}),(0,Z.jsx)(GR,{borderRadius:0,children:`Badge Outline`}),(0,Z.jsx)(nz,{label:`Checkbox Label`}),(0,Z.jsx)(hz,{}),(0,Z.jsx)(fz,{})]}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-center g4`,children:[(0,Z.jsx)(tG,{className:`theme-alt fw7 py4 px6 f2`,children:`Click Here`}),(0,Z.jsx)(tG,{className:`theme fw7 py4 py4 px6 f2 shadow-border`,children:`Button`}),(0,Z.jsxs)(XW,{className:`br11 overflow-hidden w8 ratio1 f1`,children:[(0,Z.jsx)($W,{className:``,src:VQ,alt:`Base UI avatar`}),(0,Z.jsx)(eG,{className:`theme-alt w-100 h-100 flex items-center justify-center fw7`,children:`AB`})]}),(0,Z.jsxs)(XW,{className:`theme br11 overflow-hidden w8 ratio1 f2`,children:[(0,Z.jsx)($W,{className:``,src:VQ,alt:`Base UI avatar`}),(0,Z.jsx)(eG,{className:`theme w-100 h-100 shadow-border br11 flex items-center justify-center fw7 f1`,children:`AB`})]}),(0,Z.jsx)(gZ,{checked:u,onCheckedChange:d,className:`duo-switch-root shadow-border p3 relative inline-flex align-center theme`,children:(0,Z.jsx)(_Z,{className:`duo-switch-thumb`})})]}),(0,Z.jsxs)(`section`,{className:`mt5 grid cols-1 cols-3-m g3 g5-m`,children:[(0,Z.jsxs)(eX,{value:72,className:`grid g3`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,Z.jsx)(iX,{className:`duo-label`,children:`Progress`}),(0,Z.jsx)(rX,{className:`duo-value`,children:e=>e})]}),(0,Z.jsx)(tX,{className:`duo-bar-track`,children:(0,Z.jsx)(nX,{className:`duo-bar-indicator`,style:{width:`72%`}})})]}),(0,Z.jsxs)(hq,{value:58,className:`grid g3`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,Z.jsx)(bq,{className:`duo-label`,children:`Meter`}),(0,Z.jsx)(yq,{className:`duo-value`,children:e=>e})]}),(0,Z.jsx)(gq,{className:`duo-bar-track`,children:(0,Z.jsx)(vq,{className:`duo-bar-indicator`,style:{width:`58%`}})})]}),(0,Z.jsxs)(VX,{value:y,onValueChange:b,min:0,max:100,className:`grid g3`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,Z.jsx)(HX,{className:`duo-label`,children:`Slider`}),(0,Z.jsx)(UX,{className:`duo-value`,children:e=>`${e}`})]}),(0,Z.jsxs)(QX,{className:`duo-slider-control relative flex items-center`,children:[(0,Z.jsx)($X,{className:`duo-bar-track-alt`,children:(0,Z.jsx)(dZ,{className:`duo-bar-indicator-alt`,style:{width:`${y}%`}})}),(0,Z.jsx)(cZ,{className:`duo-slider-thumb`})]})]})]})]}),(0,Z.jsxs)(`div`,{className:`dn cols-1 cols-2-m g4`,children:[(0,Z.jsxs)(rU,{className:`grids g3 dn`,defaultValue:[`tokens`],keepMounted:!0,children:[(0,Z.jsxs)(_U,{className:`duo-disclosure-item`,value:`tokens`,children:[(0,Z.jsx)(vU,{children:(0,Z.jsxs)(bU,{className:`duo-disclosure-trigger`,children:[`Token scale`,(0,Z.jsx)(Za,{size:14})]})}),(0,Z.jsx)(kU,{className:`duo-disclosure-panel`,children:`Define a sharp token ramp with clear hierarchy.`})]}),(0,Z.jsxs)(_U,{className:`duo-disclosure-item`,value:`layouts`,children:[(0,Z.jsx)(vU,{children:(0,Z.jsxs)(bU,{className:`duo-disclosure-trigger`,children:[`Layout rhythm`,(0,Z.jsx)(Za,{size:14})]})}),(0,Z.jsx)(kU,{className:`duo-disclosure-panel`,children:`Use borders and spacing, not extra colors.`})]})]}),(0,Z.jsxs)(sG,{className:`dn duo-disclosure-item`,defaultOpen:!0,children:[(0,Z.jsxs)(lG,{className:`duo-disclosure-trigger`,children:[`Release notes`,(0,Z.jsx)(ao,{size:14})]}),(0,Z.jsx)(dG,{className:`duo-disclosure-panel`,children:`Dialog, menu, tooltip, and drawer all use the same two-color system.`})]})]}),(0,Z.jsxs)(`div`,{className:`dn cols-1 cols-2-m g4`,children:[(0,Z.jsxs)(nq,{className:`grid g3`,onFormSubmit:e=>{P(`Saved ${e.project_name||`untitled`}.`)},children:[(0,Z.jsxs)(JK,{className:`duo-field grid g3`,name:`project_name`,validate:e=>String(e||``).trim()?null:`Add a project name.`,children:[(0,Z.jsx)(YK,{className:`duo-label`,children:`Project name`}
76),(0,Z.jsx)(rq,{className:`duo-input`,placeholder:`Monochrome dashboard`}),(0,Z.jsx)(QK,{className:`duo-help`,children:`Base UI field semantics.`}),(0,Z.jsx)(ZK,{className:`duo-error`})]}),(0,Z.jsxs)(JK,{className:`duo-field grid g3`,name:`mood`,children:[(0,Z.jsx)(YK,{className:`duo-label`,children:`Mood note`}),(0,Z.jsx)(rq,{className:`duo-input`,placeholder:`Hard contrast, tight spacing`})]}),(0,Z.jsx)(tG,{type:`submit`,className:`theme-alt`,children:`Submit`}),(0,Z.jsx)(`div`,{children:N})]}),(0,Z.jsxs)(`div`,{className:`dn g4`,children:[(0,Z.jsxs)(eq,{className:`duo-fieldset grid g3`,children:[(0,Z.jsx)(tq,{className:`f3 fw7`,children:`Export Formats`}),(0,Z.jsxs)(aG,{className:`grid g3 f3`,value:n,onValueChange:r,children:[(0,Z.jsx)(HQ,{value:`css`,children:`CSS`}),(0,Z.jsx)(HQ,{value:`vars`,children:`CSS Variables`}),(0,Z.jsx)(HQ,{value:`json`,children:`JSON`}),(0,Z.jsx)(HQ,{value:`js`,children:`JS`}),(0,Z.jsx)(HQ,{value:`glsl`,children:`GLSL`})]})]}),(0,Z.jsx)(HQ,{checked:e,onCheckedChange:t,children:`Enable layout rules`}),(0,Z.jsxs)(Qd,{className:`grid g3`,value:i,onValueChange:a,children:[(0,Z.jsx)(UQ,{value:`poster`,children:`Poster`}),(0,Z.jsx)(UQ,{value:`badge`,children:`Badge`}),(0,Z.jsx)(UQ,{value:`overlay`,children:`Overlay`})]})]})]}),(0,Z.jsxs)(`div`,{className:`dn cols-1 cols-2-m cols-4-l g4`,children:[(0,Z.jsxs)(`div`,{className:`grid g3`,children:[(0,Z.jsx)(`label`,{className:`duo-label`,htmlFor:`base-ui-select`,children:`Surface preset`}),(0,Z.jsxs)(Cg,{items:zQ,value:f,onValueChange:e=>{e&&p(e)},modal:!1,children:[(0,Z.jsxs)(Ug,{id:`base-ui-select`,className:`duo-trigger theme-alt items-center`,children:[(0,Z.jsx)(Gg,{}),(0,Z.jsx)(Kg,{className:`duo-trigger-icon items-center`,children:(0,Z.jsx)(Za,{size:14})})]}),(0,Z.jsx)(Jg,{children:(0,Z.jsx)(w_,{sideOffset:6,alignItemWithTrigger:!1,children:(0,Z.jsx)(N_,{className:`duo-popup`,children:(0,Z.jsx)(V_,{className:`grid g0 p2`,children:zQ.map(e=>(0,Z.jsxs)(W_,{value:e.value,className:`duo-option`,children:[(0,Z.jsx)(q_,{children:e.label}),(0,Z.jsx)(G_,{className:`duo-option-indicator`,children:`â`})]},e.value))})})})})]})]}),(0,Z.jsxs)(`div`,{className:`grid g3`,children:[(0,Z.jsx)(`label`,{className:`duo-label`,htmlFor:`base-ui-combobox`,children:`Combobox`}),(0,Z.jsxs)(fG,{items:RQ,value:m,onValueChange:h,children:[(0,Z.jsxs)(`div`,{className:`duo-input-cluster flex g0`,children:[(0,Z.jsx)(DW,{id:`base-ui-combobox`,className:`duo-input duo-input-cluster-field`,placeholder:`Choose a surface`}),(0,Z.jsx)(xW,{className:`duo-icon-button`,"aria-label":`Open combobox`,children:(0,Z.jsx)(Za,{size:14})})]}),(0,Z.jsx)(LW,{children:(0,Z.jsx)(RW,{sideOffset:6,children:(0,Z.jsxs)(BW,{className:`duo-popup`,children:[(0,Z.jsx)(jW,{className:`grid g0 p2`,children:e=>(0,Z.jsx)(WW,{value:e,className:`duo-option`,children:e},e)}),(0,Z.jsx)(KW,{className:`duo-empty`,children:`No matches.`})]})})})]})]}),(0,Z.jsxs)(`div`,{className:`grid g3`,children:[(0,Z.jsx)(`label`,{className:`duo-label`,htmlFor:`base-ui-autocomplete`,children:`Autocomplete`}),(0,Z.jsxs)(vW,{items:RQ,value:g,onValueChange:v,openOnInputClick:!0,children:[(0,Z.jsx)(DW,{id:`base-ui-autocomplete`,className:`duo-input`,placeholder:`Type to filter surfaces`}),(0,Z.jsx)(LW,{children:(0,Z.jsx)(RW,{sideOffset:6,children:(0,Z.jsxs)(BW,{className:`duo-popup`,children:[(0,Z.jsx)(jW,{className:`grid g0 p2`,children:e=>(0,Z.jsx)(GW,{value:e,className:`duo-option`,children:e},e)}),(0,Z.jsx)(KW,{className:`duo-empty`,children:`No matches.`})]})})})]})]}),(0,Z.jsxs)(`div`,{className:`grid g3`,children:[(0,Z.jsx)(`label`,{className:`duo-label`,htmlFor:`base-ui-number`,children:`Number field`}),(0,Z.jsx)(VJ,{value:x,onValueChange:S,min:1,max:12,children:(0,Z.jsxs)(UJ,{className:`duo-input-cluster flex g0`,children:[(0,Z.jsx)(rY,{className:`duo-icon-button`,"aria-label":`Decrease value`,children:(0,Z.jsx)(ao,{size:14})}),(0,Z.jsx)(oY,{id:`base-ui-number`,className:`duo-input duo-input-cluster-field tc`}),(0,Z.jsx)(nY,{className:`duo-icon-button`,"aria-label":`Increase value`,children:(0,Z.jsx)(lo,{size:14})})]})})]})]}),(0,Z.jsx)(`div`,{className:`dn cols-1 cols-2-m g4`,children:(0,Z.jsxs)(`div`,{className:`dn g4`,children:[(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-center g3`,children:[(0,Z.jsx)(cz,{pressed:o,onPressedCh
76ange:s,className:`duo-toggle`,children:`Halftone`}),(0,Z.jsxs)(dz,{value:c,onValueChange:l,multiple:!0,className:`flex flex-wrap g3`,children:[(0,Z.jsx)(cz,{value:`grid`,className:`duo-toggle`,children:`Grid`}),(0,Z.jsx)(cz,{value:`caps`,className:`duo-toggle`,children:`Caps`}),(0,Z.jsx)(cz,{value:`rules`,className:`duo-toggle`,children:`Rules`})]})]}),(0,Z.jsxs)(SZ,{value:C,onValueChange:w,children:[(0,Z.jsxs)(AZ,{className:`flex flex-wrap g2 mb3`,children:[(0,Z.jsx)(EZ,{value:`tokens`,className:`duo-tab`,children:`Tokens`}),(0,Z.jsx)(EZ,{value:`layouts`,className:`duo-tab`,children:`Layouts`}),(0,Z.jsx)(EZ,{value:`motion`,className:`duo-tab`,children:`Motion`})]}),(0,Z.jsx)(kZ,{value:`tokens`,className:`duo-tabs-panel`,children:`Tight scales and fixed borders.`}),(0,Z.jsx)(kZ,{value:`layouts`,className:`duo-tabs-panel`,children:`Spacing does the work.`}),(0,Z.jsx)(kZ,{value:`motion`,className:`duo-tabs-panel`,children:`Motion stays minimal.`})]}),(0,Z.jsxs)(gX,{className:`duo-scroll-root`,children:[(0,Z.jsx)(CX,{className:`duo-scroll-viewport`,children:(0,Z.jsx)(AX,{className:`duo-scroll-content flex g3 px3 py3`,children:RQ.concat([`Sidebar`,`Tooltip`,`Toast`,`Drawer`,`Palette`]).map(e=>(0,Z.jsx)(`span`,{className:`duo-chip`,children:e},e))})}),(0,Z.jsx)(kX,{className:`duo-scrollbar duo-scrollbar-x`,orientation:`horizontal`,children:(0,Z.jsx)(jX,{className:`duo-scroll-thumb`})})]})]})}),(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-center g3`,children:[(0,Z.jsxs)(cK,{children:[(0,Z.jsx)(QU,{className:`theme-alt fw7 f2 px6 py4 pointer`,children:`Dialog`}),(0,Z.jsxs)(XU,{children:[(0,Z.jsx)(VU,{className:`duo-backdrop`}),(0,Z.jsxs)(YU,{className:`duo-modal`,children:[(0,Z.jsx)(ZU,{className:`mt0 mb4`,children:`Dialog`}),(0,Z.jsx)(UU,{className:`duo-copy mt0 mb8`,children:`Use dialogs for focused tasks.`}),(0,Z.jsxs)(`div`,{className:`flex flex-wrap g4 f3`,children:[(0,Z.jsx)(tG,{className:`duo-button theme-alt py4 px6 fw7`,children:`Save`}),(0,Z.jsx)(HU,{className:`duo-button theme shadow-border3 py4 px6 fw7`,children:`Close`})]})]})]})]}),(0,Z.jsx)(tG,{onClick:()=>{I(e=>e+1),L.add({title:`Toast ${F+1}`,description:`Only the active state inverts.`,timeout:2500})},className:`duo-button theme-alt f2 fw7 py4 px6`,children:`Toast`}),(0,Z.jsxs)(`section`,{className:`dn`,children:[(0,Z.jsxs)(zU,{children:[(0,Z.jsx)($U,{className:`duo-button`,children:`Alert Dialog`}),(0,Z.jsxs)(XU,{children:[(0,Z.jsx)(VU,{className:`duo-backdrop`}),(0,Z.jsxs)(YU,{className:`duo-modal fixed shadow-border p8`,children:[(0,Z.jsx)(ZU,{className:`f5 mt0 mb4`,children:`Alert Dialog Title`}),(0,Z.jsx)(UU,{className:`duo-copy mt0 mb6`,children:`As a picture painted in yellow always radiates spiritual warmth, or as one in blue has apparently a cooling effect, so green is only boring.`}),(0,Z.jsxs)(`div`,{className:`flex flex-wrap g3`,children:[(0,Z.jsx)(HU,{className:`duo-button theme-alt br f3 py3 px5`,children:`Delete`}),(0,Z.jsx)(HU,{className:`duo-button theme f3`,children:`Cancel`})]})]})]})]}),(0,Z.jsxs)(PK,{children:[(0,Z.jsx)(BK,{className:`duo-button`,children:`Drawer`}),(0,Z.jsxs)(jK,{children:[(0,Z.jsx)(fK,{className:`duo-backdrop`}),(0,Z.jsx)(AK,{className:`duo-drawer`,children:(0,Z.jsxs)(hK,{className:`duo-drawer-content h-100 flex flex-column g4`,children:[(0,Z.jsx)(zK,{className:`duo-modal-title`,children:`Drawer`}),(0,Z.jsx)(gK,{className:`duo-copy mt0`,children:`Edge-attached surface.`}),(0,Z.jsxs)(`div`,{className:`grid g3`,children:[(0,Z.jsx)(`div`,{className:`duo-inline-note`,children:`3 active tokens`}),(0,Z.jsx)(`div`,{className:`duo-inline-note`,children:`2 overlay presets`}),(0,Z.jsx)(`div`,{className:`duo-inline-note`,children:`1 export target`})]}),(0,Z.jsx)(pK,{className:`duo-button theme`,children:`Close`})]})})]})]}),(0,Z.jsxs)(pY,{children:[(0,Z.jsx)(hY,{className:`duo-button`,children:`Popover`}),(0,Z.jsx)(vY,{children:(0,Z.jsx)(xY,{sideOffset:8,children:(0,Z.jsxs)(DY,{className:`duo-floating-popup`,children:[(0,Z.jsx)(OY,{className:`duo-modal-title`,children:`Popover`}),(0,Z.jsx)(kY,{className:`duo-copy mt0 mb3`,children:`Short contextual actions.`}),(0,Z.jsx)(AY,{className:`duo-button`,children:`Done`})]})})})]}),(0,Z.jsxs)(RY,{children:[(0,Z.jsx)(UY,{href:`#preview-card`,className:`duo-link-trigger`,children:`Preview Card`}),(0,Z.jsx)(HY,{children:(0,Z.jsx)(KY,{sideOffset:10,children:(0,Z.jsxs)(JY,{className:`duo-floating-popup`,children:[(0,Z.jsx)(`strong`,{children:`Preview Card`}),(0,Z.jsx)(`p`,{className:`duo-copy mt2 mb0`,children:`Shared shell, lighter density.`})]})})})]}),(0,Z.jsxs)(bQ,{children:[(0,Z.jsx)(OQ,{className:`duo-button duo-button-solid`,children:`Tooltip`}
76),(0,Z.jsx)(jQ,{children:(0,Z.jsx)(PQ,{sideOffset:8,children:(0,Z.jsx)(IQ,{className:`duo-tooltip-popup`,children:`Ink + paper only.`})})})]})]})]}),(0,Z.jsx)(WQ,{}),(0,Z.jsxs)(`div`,{className:`dn cols-1 cols-2-m g4`,children:[(0,Z.jsxs)(`div`,{className:`g4`,children:[(0,Z.jsxs)(XG,{modal:!1,children:[(0,Z.jsx)(tK,{className:`duo-button`,children:`Menu`}),(0,Z.jsx)(PG,{children:(0,Z.jsx)(FG,{sideOffset:6,children:(0,Z.jsxs)(jG,{className:`duo-popup duo-menu-popup`,children:[(0,Z.jsx)(kG,{className:`duo-menu-item`,children:`Duplicate layer`}),(0,Z.jsx)(kG,{className:`duo-menu-item`,children:`Export SVG`}),(0,Z.jsx)(J_,{className:`duo-separator duo-separator-subtle`}),(0,Z.jsxs)(EG,{checked:T,onCheckedChange:E,className:`duo-menu-item`,children:[(0,Z.jsx)(`span`,{children:`Snap to baseline`}),(0,Z.jsx)(DG,{className:`duo-menu-indicator`,children:`â`})]}),(0,Z.jsxs)(RG,{value:D,onValueChange:O,children:[(0,Z.jsxs)(VG,{className:`duo-menu-item`,value:`dense`,children:[(0,Z.jsx)(`span`,{children:`Dense`}),(0,Z.jsx)(HG,{className:`duo-menu-indicator`,children:`â`})]}),(0,Z.jsxs)(VG,{className:`duo-menu-item`,value:`airy`,children:[(0,Z.jsx)(`span`,{children:`Airy`}),(0,Z.jsx)(HG,{className:`duo-menu-indicator`,children:`â`})]})]})]})})})]}),(0,Z.jsxs)(aK,{modal:!1,children:[(0,Z.jsx)(sK,{className:`duo-context-surface`,children:`Right-click this surface.`}),(0,Z.jsx)(PG,{children:(0,Z.jsx)(FG,{sideOffset:6,children:(0,Z.jsxs)(jG,{className:`duo-popup duo-menu-popup`,children:[(0,Z.jsx)(kG,{className:`duo-menu-item`,children:`Pin pair`}),(0,Z.jsx)(kG,{className:`duo-menu-item`,children:`Copy token`}),(0,Z.jsx)(J_,{className:`duo-separator duo-separator-subtle`}),(0,Z.jsxs)(EG,{checked:k,onCheckedChange:A,className:`duo-menu-item`,children:[(0,Z.jsx)(`span`,{children:`Keep locked`}),(0,Z.jsx)(DG,{className:`duo-menu-indicator`,children:`â`})]})]})})})]}),(0,Z.jsxs)(oq,{className:`g3 ba`,modal:!1,children:[(0,Z.jsxs)(XG,{modal:!1,children:[(0,Z.jsx)(tK,{className:`theme`,children:`File`}),(0,Z.jsx)(PG,{children:(0,Z.jsx)(FG,{sideOffset:6,children:(0,Z.jsxs)(jG,{className:`duo-popup duo-menu-popup`,children:[(0,Z.jsx)(kG,{className:`duo-menu-item`,children:`New poster`}),(0,Z.jsx)(kG,{className:`duo-menu-item`,children:`Save brief`})]})})})]}),(0,Z.jsxs)(XG,{modal:!1,children:[(0,Z.jsx)(tK,{className:`theme`,children:`State`}),(0,Z.jsx)(PG,{children:(0,Z.jsx)(FG,{sideOffset:6,children:(0,Z.jsx)(jG,{className:`duo-popup duo-menu-popup`,children:(0,Z.jsxs)(RG,{value:j,onValueChange:M,children:[(0,Z.jsxs)(VG,{className:`duo-menu-item`,value:`draft`,children:[(0,Z.jsx)(`span`,{children:`Draft`}),(0,Z.jsxs)(VG,{className:`duo-menu-item`,value:`draft`,children:[(0,Z.jsx)(`span`,{children:`Draft`}),(0,Z.jsx)(HG,{className:`duo-menu-indicator`,children:`â`})]}),(0,Z.jsx)(HG,{className:`duo-menu-indicator`,children:`â`})]}),(0,Z.jsxs)(VG,{className:`duo-menu-item`,value:`draft`,children:[(0,Z.jsx)(`span`,{children:`Draft`}),(0,Z.jsx)(HG,{className:`duo-menu-indicator`,children:`â`})]}),(0,Z.jsxs)(VG,{className:`duo-menu-item`,value:`review`,children:[(0,Z.jsx)(`span`,{children:`Review`}),(0,Z.jsx)(HG,{className:`duo-menu-indicator`,children:`â`})]})]})})})})]})]})]}),(0,Z.jsxs)(`div`,{className:`grid g4`,children:[(0,Z.jsxs)(kq,{className:`duo-navigation-root`,children:[(0,Z.jsxs)(Pq,{className:`duo-navigation-list flex flex-wrap g3 list pa0 ma0`,children:[(0,Z.jsxs)(Lq,{children:[(0,Z.jsxs)(Hq,{className:`duo-navigation-trigger`,children:[`Systems`,(0,Z.jsx)(Zq,{className:`duo-navigation-icon`,children:(0,Z.jsx)(Za,{size:12})})]}),(0,Z.jsx)(zq,{className:`duo-navigation-content`,children:(0,Z.jsx)(`div`,{className:`duo-nav-grid grid g2`,children:BQ.map(e=>(0,Z.jsxs)(Xq,{href:e.href,className:`duo-nav-link grid g1`,children:[(0,Z.jsx)(`strong`,{children:e.title}),(0,Z.jsx)(`span`,{children:e.body})]},e.href))})})]}),(0,Z.jsx)(Lq,{children:(0,Z.jsx)(Xq,{href:`#tokens`,className:`duo-navigation-trigger duo-navigation-link`,active:!0,children:`Tokens`})})]}),(0,Z.jsx)(Yq,{className:`duo-floating-popup duo-navigation-popup duo-navigation-viewport mt3`})]}
76),(0,Z.jsx)(sQ,{className:`duo-toolbar`,children:(0,Z.jsxs)(uQ,{className:`flex flex-wrap items-center g3`,children:[(0,Z.jsx)(dQ,{className:`duo-toolbar-button`,"aria-label":`Add panel`,children:(0,Z.jsx)(lo,{size:14})}),(0,Z.jsx)(dQ,{className:`duo-toolbar-button`,"aria-label":`Duplicate selection`,children:(0,Z.jsx)(to,{size:14})}),(0,Z.jsx)(oQ,{className:`duo-toolbar-separator`}),(0,Z.jsx)(mQ,{className:`duo-toolbar-input`,placeholder:`Filter tokens`}),(0,Z.jsx)(oQ,{className:`duo-toolbar-separator`}),(0,Z.jsx)(pQ,{href:`#export`,className:`duo-toolbar-link`,children:`Export`})]})})]})]})]})})})}var KQ=({...e})=>(0,Z.jsx)(`div`,{className:`bt bb py8 my8`,...e,children:(0,Z.jsxs)(`blockquote`,{className:`theme m0 p8`,children:[(0,Z.jsx)(`p`,{className:`m0 f8 f11-l measure fw9 lh-solid`,children:`Color is my day-long obsession, joy, and torment.`}),(0,Z.jsx)(`p`,{className:`f3 f4-l fw7 mt6 ttu tracked`,children:(0,Z.jsx)(`small`,{children:`Claude Monet`})})]})}),qQ=[{acuity:`20/200`,letters:`E`,fontSize:120,y:98},{acuity:`20/100`,letters:`F P`,fontSize:76,y:210},{acuity:`20/70`,letters:`T O Z`,fontSize:56,y:304},{acuity:`20/50`,letters:`L P E D`,fontSize:42,y:386},{acuity:`20/40`,letters:`P E C F D`,fontSize:34,y:458},{acuity:`20/30`,letters:`E D F C Z P`,fontSize:27,y:524},{acuity:`20/25`,letters:`F E L O P Z D`,fontSize:22,y:584},{acuity:`20/20`,letters:`D E F P O T E C`,fontSize:18,y:638},{acuity:`20/15`,letters:`L E F O D P C T`,fontSize:15,y:686}];function JQ({borderRadius:e=0,inverted:t=!0,className:n=``,...r}){let i=t?`theme-alt`:`theme`;return(0,Z.jsx)(`article`,{className:`component-optical-test-chart theme theme-preview-radius shadow-border w-100 h-100 ${n}`.trim(),style:{"--preview-radius":e},...r,children:(0,Z.jsx)(`div`,{className:`component-optical-test-poster ${i} w-100 h-100 p5 p6-m`,children:(0,Z.jsx)(`svg`,{className:`component-optical-test-svg w-100`,viewBox:`0 0 640 720`,role:`img`,"aria-label":`Snellen-style optical test chart with rows of progressively smaller letters`,children:qQ.map(e=>(0,Z.jsxs)(`g`,{children:[(0,Z.jsx)(`text`,{className:`component-optical-test-label`,x:`62`,y:e.y,textAnchor:`start`,dominantBaseline:`middle`,children:e.acuity}),(0,Z.jsx)(`text`,{className:`component-optical-test-row`,x:`320`,y:e.y,textAnchor:`middle`,dominantBaseline:`middle`,style:{fontSize:e.fontSize},children:e.letters}),(0,Z.jsx)(`text`,{className:`component-optical-test-label`,x:`578`,y:e.y,textAnchor:`end`,dominantBaseline:`middle`,children:e.acuity})]},e.acuity))})})})}var YQ=`wss://randoma11y-feed.adam-f8f.workers.dev`,XQ=()=>!`wss://randoma11y-feed.adam-f8f.workers.dev`.includes(`your-subdomain`),ZQ=()=>`${YQ}/ws`,QQ=(0,_.createContext)(null),$Q=({children:e,onIncrement:t})=>{let[n,r]=(0,_.useState)([]),[i,a]=(0,_.useState)([]),[o,s]=(0,_.useState)(null),[c,l]=(0,_.useState)(!1),[u,d]=(0,_.useState)(null),f=(0,_.useRef)(null),p=(0,_.useRef)(null),m=(0,_.useRef)(0),h=1e3,g=(0,_.useCallback)(()=>{if(!XQ()){d(`WebSocket disabled`);return}let e=f.current;if(e){let{readyState:t}=e;if(t===WebSocket.OPEN||t===WebSocket.CONNECTING)return;f.current=null}try{let e=new WebSocket(ZQ());f.current=e,e.onopen=()=>{l(!0),d(null),m.current=0},e.onmessage=e=>{try{let t=JSON.parse(e.data);switch(t.type){case`initial`:let e=t.recentColors||[],n=t.recentFavorites||[];e.sort((e,t)=>new Date(t.timestamp)-new Date(e.timestamp)),n.sort((e,t)=>new Date(t.timestamp)-new Date(e.timestamp)),r(e),a(n),t.feedStats&&s(t.feedStats);break;case`newColor`:t.feedStats&&s(t.feedStats),r(e=>{let n=[...e],r=n.findIndex(e=>e.colors&&t.color.colors&&e.colors[0]===t.color.colors[0]&&e.colors[1]===t.color.colors[1]);return r!==-1&&n.splice(r,1),n.push(t.color),n.sort((e,t)=>new Date(t.timestamp)-new Date(e.timestamp)),n.length>h&&(n.length=h),n});break;case`statsUpdate`:t.feedStats&&s(t.feedStats);break;case`newFavorite`:a(e=>e.some(e=>e.id===t.favorite.id||e.colors[0]===t.favorite.colors[0]&&e.colors[1]===t.favorite.colors[1])?e:[t.favorite,...e.slice(0,h-1)]);break;default:console.warn(`Unknown message type:`,t.type)}}catch(e){console.error(`Error parsing WebSocket message:`,e)}},e.onerror=e=>{console.error(`WebSocket error:`,e),d(`Connection error`)},e.onclose=()=>{if(f.current!==e)return;l(!1),f.current=null;let t=m.current;if(t<5){let e=Math.min(1e3*2**t,3e4);p.current=setTimeout(()=>{m.current+=1,g()},e)}else d(`Unable to connect to live feed`)}}catch(e){console.error(`Error creating WebSocket:`,e),d(`Failed to connect`)}},[]),v=(0,_.useCallback)(()=>{p.current&&=(clearTimeout(p.current),null),f.current&&=(f.current.close(),null),l(!1),m.current=0},[]),y=(0,_.useCallback)(e=>{f.current&&f.current.readyState===WebSocket.OPEN&&f.current.send(JSON.stringify({type:`colorGenerated`,...e}))},[]),b=(0,_.useCallback)(e=>{f.current&&f.current.readyState===WebSocket.OPEN&&f.current.send(JSON.stringify({type:`colorFavorited`,...e}))},[]);(0,_.useEffect)(()=>(g(),()=>{v()}),[]);let x={recentColors:n,recentFavorites:i,feedStats:o,isConnected:c,error:u,sendColorGenerated:y,sendColorFavorited:b,handleIncrement:t||(()=>{})};return(0,Z.jsx)(QQ.Provider,{value:x,children:e})},e$=()=>{let e=(0,_.useContext)(QQ);if(!e)throw Error(`useColorFeedContext must be used within a ColorFeedProvider`);return e},t$=100,n$=[];function r$(e){let t=e.join(`,`);n$.includes(t)||(n$.push(t),n$.length>t$&&n$.shift())}function i$(e){return n$.includes(e.join(`,`))}function a$(e){let t=JH(e);if(t)return t;try{return new q(e).to(`srgb`).toString({format:`hex`})}catch{return`#ffffff`}}var o$=[``,`(prefers-color-scheme: light)`,`(prefers-color-scheme: dark)`];function s$(e){let t=e=>{let t=e.cloneNode(!0);return e.parentNode?.replaceChild(t,e),t};for(let n of o$){let r=n?document.querySelector(`meta[name="theme-color"][media="${n}"]`):document.querySelector(`meta[name="theme-color"]:not([media])`);
76if(!r){let t=document.createElement(`meta`);t.setAttribute(`name`,`theme-color`),t.setAttribute(`content`,e),n&&t.setAttribute(`media`,n),document.head.appendChild(t);continue}r.setAttribute(`content`,e),t(r)}}function c$({safeBg:e,safeFg:t,borderRadius:n,toolbarTintHex:r}){if(typeof document>`u`)return;let i=document.documentElement;i.style.setProperty(`--bg`,e),i.style.setProperty(`--fg`,t),i.style.setProperty(`--bg-alt`,t),i.style.setProperty(`--fg-alt`,e),i.style.setProperty(`--app-radius`,n),i.style.backgroundColor=r,document.body.style.backgroundColor=r;let a=document.getElementById(`root`);a&&(a.style.backgroundColor=r),s$(r)}function l$(e,t,n){let r=[];for(let i=0;i<360;i+=360/e)for(let e=0;e<=100;e+=100/t)for(let t=0;t<=100;t+=100/n)r.push([i,e,t]);for(let e=r.length-1;e>0;e--){let t=Math.floor(Math.random()*(e+1));[r[e],r[t]]=[r[t],r[e]]}return r}var u$={WCAG21:4.5,APCA:60,Michelson:.5,Weber:20,Lstar:40,deltaPhi:15},d$=[{value:`WCAG21`,label:`WCAG 2.1`},{value:`APCA`,label:`APCA`},{value:`Michelson`,label:`Michelson`},{value:`Weber`,label:`Weber`},{value:`Lstar`,label:`L*`},{value:`deltaPhi`,label:`ÎPhi`}],f$={WCAG21:[`3`,`4.5`,`7`],APCA:[`45`,`60`,`75`,`90`],Michelson:[`0.3`,`0.5`,`0.7`],Weber:[`10`,`20`,`30`],Lstar:[`20`,`40`,`60`],deltaPhi:[`10`,`15`,`20`]},p$=[{value:`hex`,label:`HEX`},{value:`p3`,label:`Display-P3`},{value:`rgb`,label:`RGB`},{value:`hsl`,label:`HSL`},{value:`lab`,label:`LAB`},{value:`oklab`,label:`OKLAB`},{value:`rec2020`,label:`REC.2020`},{value:`lch`,label:`LCH`},{value:`oklch`,label:`OKLCH`}],m$=()=>{let[e]=(0,_.useState)(()=>`user-${za()}`),{sendColorGenerated:t,sendColorFavorited:n}=e$(),[r,i]=(0,_.useState)(0),[a,o]=(0,_.useState)(0),[s,c]=(0,_.useState)([]),[l,u]=(0,_.useState)([{id:`contrast`,data:[]}]),[d,f]=(0,_.useState)([{id:`iterations`,data:[]}]),[p,m]=(0,_.useState)(`0px`),[h,g]=(0,_.useState)(`p3`),[v,y]=(0,_.useState)(`p3`),[b,x]=(0,_.useState)(``),[S,C]=(0,_.useState)(75),[w,T]=(0,_.useState)(`APCA`),[E,D]=(0,_.useState)([`#000000`,`#FFFFFF`]),[O,k]=(0,_.useState)(null),[A,j]=(0,_.useState)(0),[M,N]=(0,_.useState)(E[1]),[P,F]=(0,_.useState)(E[0]),[I,L]=(0,_.useState)(!0),[R,z]=(0,_.useState)(!0),[B,V]=(0,_.useState)(null),[H,U]=(0,_.useState)([15,Math.floor(Math.random()*100),55]),[ee,W]=(0,_.useState)([{label:`Jan`,value:8},{label:`Feb`,value:Math.floor(Math.random()*100)},{label:`Mar`,value:Math.floor(Math.random()*100)},{label:`Apr`,value:Math.floor(Math.random()*100)},{label:`May`,value:Math.floor(Math.random()*100)},{label:`Jun`,value:Math.floor(Math.random()*100)},{label:`Jul`,value:Math.floor(Math.random()*100)},{label:`Aug`,value:Math.floor(Math.random()*100)},{label:`Sep`,value:Math.floor(Math.random()*100)},{label:`Oct`,value:Math.floor(Math.random()*100)},{label:`Nov`,value:Math.floor(Math.random()*100)},{label:`Dec`,value:Math.floor(Math.random()*100)}]),[te,ne]=(0,_.useState)([]),[re,ie]=(0,_.useState)(-1),[ae,G]=(0,_.useState)([]),[oe,K]=(0,_.useState)(!1),[se,ce]=(0,_.useState)(!0),le=(0,_.useMemo)(()=>qH(ae),[ae]),ue=(0,_.useMemo)(()=>YH(le,w,S),[le,w,S]),de=_.useRef(new Map),fe=(0,_.useRef)(null),pe=(0,_.useRef)(null);(0,_.useEffect)(()=>{de.current.clear()},[ae,S,w,B,se]);let[me,he]=(0,_.useState)(!1),[ge,_e]=(0,_.useState)(null),[ve,ye]=(0,_.useState)(!1),be=(0,_.useCallback)(()=>{let e=encodeURIComponent(E[0]),t=encodeURIComponent(E[1]),n=`${window.location.origin}/${e}/${t}`;navigator.clipboard.writeText(n).then(()=>{ye(!0),setTimeout(()=>ye(!1),2e3)}).catch(e=>{console.error(`Failed to copy URL: `,e)})},[E]),xe=e=>{try{let t=new q(e).to(`srgb`),[n,r,i]=t.coords,a=t.alpha;return[{id:`Red`,data:[{x:`Channel Value`,y:Math.round(n*255)}]},{id:`Green`,data:[{x:`Channel Value`,y:Math.round(r*255)}]},{id:`Blue`,data:[{x:`Channel Value`,y:Math.round(i*255)}]},{id:`Alpha`,data:[{x:`Channel Value`,y:Math.round((a===void 0?1:a)*100)}]}]}catch(t){return console.error(`Error processing color for radial chart: ${e}`,t),[{id:`Red`,data:[{x:`Channel Value`,y:0}]},{id:`Green`,data:[{x:`Channel Value`,y:0}]},{id:`Blue`,data:[{x:`Channel Value`,y:0}]},{id:`Alpha`,data:[{x:`Channel Value`,y:100}]}]}},Se=e=>{try{let t=e[0],n=e[1],r=`#FFFFFF`,i=`#000000`,a=e=>parseFloat(e.toFixed(1)),o=e=>parseFloat(Math.abs(e).toFixed(1));return[{label:`FG / White (WCAG)`,value:a(q.contrast(t,r,`WCAG21`))},{label:`FG / Black (WCAG)`,value:a(q.contrast(t,i,`WCAG21`))},{label:`BG / White (WCAG)`,value:a(q.contrast(n,r,`WCAG21`))},{label:`BG / Black (WCAG)`,value:a(q.contrast(n,i,`WCAG21`))},{label:`FG / BG (WCAG)`,value:a(q.contrast(t,n,`WCAG21`))},{label:`FG / White (APCA)`,value:o(q.contrast(t,r,`APCA`))},{label:`FG / Black (APCA)`,value:o(q.contrast(t,i,`APCA`))},{label:`BG / White (APCA)`,value:o(q.contrast(n,r,`APCA`))},{label:`BG / Black (APCA)`,value:o(q.contrast(n,i,`APCA`))},{label:`FG / BG (APCA)`,value:o(q.contrast(t,n,`APCA`))},{label:`BG / FG (APCA)`,value:o(q.contrast(n,t,`APCA`))}]}catch(e){console.error(`Error processing color pair for contrast scores chart:`,e);let t=Array(10).fill({label:`Error`,value:0});return t[0].label=`FgW (WCAG) Err`,t[1].label=`FgB (WCAG) Err`,t}}
76,Ce=e=>{try{let t=new q(e[0]),n=new q(e[1]),r={Black:new q(`black`),White:new q(`white`),Gray:new q(`gray`),Red:new q(`red`),Green:new q(`lime`),Blue:new q(`blue`)},i=e=>parseFloat(e.toFixed(1)),a=[];return Object.entries(r).forEach(([e,r])=>{a.push({label:`FG ${e}`,value:i(t.deltaE(r,{method:`2000`}))}),a.push({label:`BG ${e}`,value:i(n.deltaE(r,{method:`2000`}))})}),a}catch(e){return console.error(`Error processing color pair for distance chart:`,e),[`FG vs Blk`,`BG vs Blk`,`FG vs Wht`,`BG vs Wht`,`FG vs Gry`,`BG vs Gry`,`FG vs Red`,`BG vs Red`,`FG vs Grn`,`BG vs Grn`,`FG vs Blu`,`BG vs Blu`].map(e=>({label:`${e} Err`,value:0}))}},[we,Te]=(0,_.useState)(()=>xe(E[0])),[Ee,De]=(0,_.useState)(()=>Se(E)),[Oe,ke]=(0,_.useState)(()=>Ce(E)),Ae=`RANDOMA11Y`,je=async()=>{try{i(await(await fetch(`https://ts-gen-count.adam-f8f.workers.dev/?name=${Ae}`)).text())}catch(e){console.error(`Error fetching count:`,e)}},Me=async()=>{try{await fetch(`https://ts-gen-count.adam-f8f.workers.dev/increment?name=${Ae}`,{method:`POST`}),je()}catch(e){console.error(`Error incrementing count:`,e)}};(0,_.useEffect)(()=>{let e=new URLSearchParams(window.location.search),t=e.get(`bg`),n=e.get(`fg`),r;if(t&&n)try{new q(t),new q(n),r=[t,n],window.history.replaceState({},document.title,window.location.pathname)}catch(e){console.error(`Invalid colors in URL parameters:`,e),r=Yz[Math.floor(Math.random()*Yz.length)]}else r=Yz[Math.floor(Math.random()*Yz.length)];D(r),Te(xe(r[1])),De(Se(r)),ke(Ce(r));try{let e=q.contrast(r[0],r[1],w);k(e),u([{id:`contrast`,data:[{x:0,y:Math.abs(e)}]}]),f([{id:`iterations`,data:[{x:0,y:1}]}])}catch(e){console.error(`Error calculating contrast for initial palette:`,e),u([{id:`contrast`,data:[]}]),f([{id:`iterations`,data:[]}])}c([{id:za(),colors:r}]),je(),o(1)},[]),(0,_.useEffect)(()=>{let t=t=>{t.key===`ArrowRight`?fe.current?.():t.key.toLowerCase()===`f`&&!t.shiftKey||t.key===`ArrowUp`?te.some(([e,t])=>e===E[0]&&t===E[1])||(ne(e=>[...e,[E[0],E[1]]]),n({id:za(),colors:E,contrast:O,algorithm:w,userId:e})):t.key.toLowerCase()===`f`&&t.shiftKey&&te.length>0&&ie(e=>{let t=e===-1?0:(e+1)%te.length,n=te[t];return n&&pe.current?.(n),t})};return window.addEventListener(`keydown`,t),()=>{window.removeEventListener(`keydown`,t)}},[E,te,O,w,e,n]),(0,_.useEffect)(()=>{B===0?N(E[1]):(B===1||N(E[1]),F(E[0]))},[E,B]);let Ne={hex:`srgb`,rgb:`srgb`,hsl:`hsl`,rec2020:`rec2020`,p3:`p3`,lab:`lab`,lch:`lch`,oklch:`oklch`,oklab:`oklab`},Pe=e=>{let t=Ne[e];switch(e){case`hex`:let n=`#`;for(let e=0;e<6;e++)n+=`0123456789abcdef`[Math.floor(Math.random()*16)];return new q(n);case`rgb`:return new q(t,[Math.random(),Math.random(),Math.random()]).toString({format:e});case`hsl`:return new q(t,[Math.random()*360,Math.random()*100,Math.random()*100]).toString({format:e});case`lab`:return new q(t,[Math.random()*100,Math.random()*256-128,Math.random()*256-128]).toString({format:e});case`rec2020`:case`p3`:return new q(t,[Math.random(),Math.random(),Math.random()]).toString({format:e,precision:3});case`lch`:return new q(t,[Math.random()*100,Math.random()*150,Math.random()*360]).toString({format:e});case`oklab`:return new q(t,[Math.random(),Math.random()*.8-.4,Math.random()*.8-.4]).toString({format:e});case`oklch`:return new q(t,[Math.random(),Math.random()*.4,Math.random()*360]).toString({format:e});default:return new q(t,[Math.random(),Math.random(),Math.random()]).toString({format:`hex`})}},Fe=(e,t,n,r,i,a=!0)=>{let o=new q(e),s=null,c=0,l=0,u=e=>{let r=Math.abs(e);switch(n){case`WCAG21`:return e>=t;case`APCA`:return r>=t;case`Michelson`:return r>=t;case`Weber`:return r>=t;case`Lstar`:return r>=t;case`deltaPhi`:return r>=t;default:return r>=t}},d=l$(36,10,20);for(let[e,t,a]of d){l++;try{let d=new q(`hsl`,[e,t,a]),f=i===0?d.contrast(o,n):o.contrast(d,n),p=i===0?[d.toString({format:r}),o.toString({format:r})]:[o.toString({format:r}),d.toString({format:r})];if(u(f)&&!i$(p))return r$(p),{colorPair:p,contrast:f,iterations:l,adjustedTarget:null};Math.abs(f)>Math.abs(c)&&(s=d,c=f)}catch{}}let f=new q(`#000000`).to(Ne[r]),p=new q(`#ffffff`).to(Ne[r]),m=i===0?f.contrast(o,n):o.contrast(f,n),h=i===0?p.contrast(o,n):o.contrast(p,n),g=i===0?[f.toString({format:r}),o.toString({format:r})]:[o.toString({format:r}),f.toString({format:r})],_=i===0?[p.toString({format:r}),o.toString({format:r})]:[o.toString({format:r}),p.toString({format:r})];return u(m)&&(!u(h)||Math.abs(m)>=Math.abs(h))?(r$(g),{colorPair:g,contrast:m,iterations:l+1,adjustedTarget:null}):u(h)?(r$(_),{colorPair:_,contrast:h,iterations:l+1,adjustedTarget:null}):a?{colorPair:i===0?[s?s.toString({format:r}):f.toString({format:r}),o.toString({format:r})]:[o.toString({format:r}),s?s.toString({format:r}):f.toString({format:r})],contrast:c||m,iterations:l+1,adjustedTarget:null}:Math.abs(m)>=Math.abs(h)?(r$(g),{colorPair:g,contrast:m,iterations:l+1,adjustedTarget:null}):(r$(_),{colorPair:_,contrast:h,iterations:l+1,adjustedTarget:null})},Ie=(e,t,n,r,i)=>{let a=2e4,o=0,s,c,l=e=>{let t=Math.abs(e);switch(i){case`WCAG21`:return e>=r;case`APCA`:return t>=r;case`Michelson`:return t>=r;case`Weber`:return t>=r;case`Lstar`:return t>=r;case`deltaPhi`:return t>=r;default:return t>=r}};if(e)if(t===0){for(c=new q(e);o<a;){s=new q(Pe(n));let e=s.contrast(c,i);if(l(e))return{colorPair:[s.toString({format:n}),c.toString({format:n})],contrast:e,iterations:o,adjustedTarget:null};o++}return Fe(e,r,i,n,0)}else{for(s=new q(e);o<a;){c=new q(Pe(n));let e=s.contrast(c,i);if(l(e))return{colorPair:[s.toString({format:n}),c.toString({format:n})],contrast:e,iterations:o,adjustedTarget:null};o++}return Fe(e,r,i,n,1)}else{let e=null,t=0,s=null,u=0;for(;u<1e4;){let a=new q(Pe(n)),o=Math.abs(a.contrast(`#000`,i)),c=Math.abs(a.contrast(`#fff`,i)),l=Math.max(o,c);if(l>=r){e=a;break}l>t&&(t=l,s=a),u++}for(e||=s||new q(`#000`),o=0;o<a;){c=new q(Pe(n));let t=e.contrast(c,i);if(l(t))return{colorPair:[e.toString({format:n}),c.toString({format:n}
76)],contrast:t,iterations:o,adjustedTarget:null};o++}return Fe(e.toString({format:n}),r,i,n,1)}},Le=(0,_.useCallback)(()=>{let n=null,r=0;B===0?(n=E[0],r=1):B===1&&(n=E[1],r=0);let i=se&&ae.length>=2&&ue.length>0,a=null;if(i){let e=ue;if(B===0){let t=JH(E[0]);t&&(e=ue.filter(e=>e.colorPair[0]===t))}else if(B===1){let t=JH(E[1]);t&&(e=ue.filter(e=>e.colorPair[1]===t))}if(e.length>0){let t=e.map(e=>`${e.colorPair[0]}|${e.colorPair[1]}`).join(`||`),n=de.current.get(t);(!Array.isArray(n)||n.length===0)&&(n=Array.from({length:e.length},(e,t)=>t));let r=Math.floor(Math.random()*n.length),i=n[r];n[r]=n[n.length-1],n.pop(),de.current.set(t,n);let o=e[i];a={colorPair:o.colorPair,contrast:o.contrast,iterations:0,adjustedTarget:null}}}a||=Ie(n,r,v,S,w);let{colorPair:s,contrast:l,iterations:d}=a,m=s[0],h=s[1];try{new q(m)}catch{m=`#000`}try{new q(h)}catch{h=`#fff`}c$({safeBg:m,safeFg:h,borderRadius:p,toolbarTintHex:a$(m)}),D(s),k(l),j(d),he(!(()=>{let e=Math.abs(l);switch(w){case`WCAG21`:return l>=S;case`APCA`:return e>=S;case`Michelson`:return e>=S;case`Weber`:return e>=S;case`Lstar`:return e>=S;case`deltaPhi`:return e>=S;default:return e>=S}})()),_e(l),o(e=>{let t=e+1;return u(e=>[{...e[0],data:[...e[0].data.slice(-99),{x:t,y:Math.abs(l)}]}]),f(e=>[{...e[0],data:[...e[0].data.slice(-99),{x:t,y:d+1}]}]),t}),c(e=>[...e.slice(-511),{id:za(),colors:s}]),setTimeout(()=>{Te(xe(s[1])),De(Se(s)),ke(Ce(s))},300),t({id:za(),colors:s,contrast:l,algorithm:w,userId:e}),Me()},[p,E,B,v,S,w,e,t,ae,se,ue]);fe.current=Le;let Re=e=>{D(e),Te(xe(e[1])),De(Se(e)),ke(Ce(e)),k(q.contrast(e[0],e[1],w))};pe.current=Re;let ze=e=>{C(parseFloat(e))},Be=e=>{m(e)},Ve=()=>{let e=M,t=P;D(n=>{let r=[n[1],n[0]];return N(t),F(e),B===0?V(1):B===1&&V(0),Te(xe(r[1])),De(Se(r)),ke(Ce(r)),k(q.contrast(r[0],r[1],w)),r})},He=e=>{N(e.target.value);try{new q(e.target.value),L(!0)}catch{L(!1)}},Ue=e=>{F(e.target.value);try{new q(e.target.value),z(!0)}catch{z(!1)}},We=()=>{try{let e=new q(M).toString({format:v});D(t=>[t[0],e]),N(e),L(!0)}catch{N(E[1]),L(!1)}},Ge=()=>{try{let e=new q(P).toString({format:v});D(t=>[e,t[1]]),F(e),z(!0)}catch{F(E[0]),z(!1)}},Ke=()=>{B===0?(V(null),x(``)):(V(0),x(E[0]))},qe=()=>{B===1?(V(null),x(``)):(V(1),x(E[1]))},Je=(e=>{switch(e){case`WCAG21`:return 21;case`APCA`:return 108;case`Michelson`:return 1;case`Weber`:return 50;case`Lstar`:return 100;case`deltaPhi`:return 50;default:return 100}})(w);Math.min(100,Math.abs(O||0)/Je*100);let Ye=E[0],Xe=E[1];try{new q(Ye)}catch{Ye=`#000`}try{new q(Xe)}catch{Xe=`#fff`}let Ze=a$(Ye),Qe=te.some(([e,t])=>e===E[0]&&t===E[1]),$e=()=>{Qe?ne(te.filter(([e,t])=>!(e===E[0]&&t===E[1]))):(ne([...te,[E[0],E[1]]]),n({id:za(),colors:E,contrast:O,algorithm:w,userId:e}))};(0,_.useEffect)(()=>{let e=()=>{let e=window.location.pathname.split(`/`).filter(e=>e!==``),t=new URLSearchParams(window.location.search);if(e.length===2){let n=e[0],r=e[1];try{let e=decodeURIComponent(n),i=decodeURIComponent(r);new q(e),new q(i);let a=[e,i];D(a),N(i),F(e),Te(xe(a[1])),De(Se(a)),ke(Ce(a));let o=t.get(`algorithm`),s=o||w;k(q.contrast(a[0],a[1],s)),o&&[`APCA`,`WCAG21`,`Michelson`,`Weber`,`Lstar`,`deltaPhi`].includes(o)&&T(o),c(e=>[...e,{id:za(),colors:a}])}catch(e){console.error(`Invalid colors in URL path segments:`,e)}}else{let e=t.get(`bg`),n=t.get(`fg`);if(e&&n)try{new q(e),new q(n);let r=[e,n];D(r),N(n),F(e),Te(xe(r[1])),De(Se(r)),ke(Ce(r));let i=t.get(`algorithm`),a=i||w;k(q.contrast(r[0],r[1],a)),i&&[`APCA`,`WCAG21`,`Michelson`,`Weber`,`Lstar`,`deltaPhi`].includes(i)&&T(i),c(e=>[...e,{id:za(),colors:r}]),window.history.replaceState({},document.title,window.location.pathname)}catch(e){console.error(`Invalid colors in URL query parameters:`,e)}}};return e(),window.addEventListener(`popstate`,e),()=>{window.removeEventListener(`popstate`,e)}},[w]),(0,_.useEffect)(()=>{let e=e=>{let{bg:t,fg:n}=e.detail;D([t,n]),Te(xe(n)),De(Se([t,n])),ke(Ce([t,n])),k(q.contrast(t,n,w)),c(e=>[...e,{id:za(),colors:[t,n]}])};return window.addEventListener(`colorparams`,e),()=>window.removeEventListener(`colorparams`,e)},[w]),(0,_.useEffect)(()=>{if(E&&E.length===2){let e=q.contrast(E[0],E[1],w);k(e),u([{id:`contrast`,data:[{x:0,y:Math.abs(e)}]}])}},[w,E]),(0,_.useLayoutEffect)(()=>{let e={safeBg:Ye,safeFg:Xe,borderRadius:p,toolbarTintHex:Ze};c$(e);let t=0,n=0;return t=requestAnimationFrame(()=>{c$(e),n=requestAnimationFrame(()=>c$(e))}),()=>{cancelAnimationFrame(t),cancelAnimationFrame(n)}},[p,Ye,Xe,Ze]);let et=`${E[0]}\u001f${E[1]}\u001f${Ze}`;return(0,Z.jsxs)(`div`,{className:`app-shell theme relative root`,children:[(0,Z.jsx)(`div`,{"aria-hidden":!0,
76className:`app-webkit-chrome-surface`,style:{backgroundColor:Ze}},et),(0,Z.jsxs)(`header`,{className:`app-header theme flex sticky top-0 pr3 bb bw1`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center pl5 pr5 g3`,children:[(0,Z.jsx)(mz,{size:20,onClick:Ve}),(0,Z.jsx)(`span`,{className:`dn db-m f1 fw9 ttu tracked`,children:`RandomA11y`})]}),(0,Z.jsxs)(`section`,{className:`flex items-start w-100 overflow-x-auto nowrap px4 px5-m py4 mr3 bw1 g5`,children:[(0,Z.jsxs)(`label`,{className:`db f1`,children:[(0,Z.jsx)(`span`,{className:`db mb2 fw7`,children:`Format`}),(0,Z.jsxs)(Cg,{items:p$,value:v,onValueChange:e=>{e&&y(e)},modal:!1,children:[(0,Z.jsxs)(Ug,{className:`app-select-trigger flex items-center justify-between g4 p2 ba bw1 f1 pointer`,children:[(0,Z.jsx)(Gg,{}),(0,Z.jsx)(Kg,{})]}),(0,Z.jsx)(Jg,{children:(0,Z.jsx)(w_,{className:`z7`,alignItemWithTrigger:!1,sideOffset:4,children:(0,Z.jsx)(N_,{className:`app-select-content`,children:(0,Z.jsx)(V_,{className:`app-select-viewport theme f1`,children:p$.map(e=>(0,Z.jsx)(W_,{className:`app-select-item p3 pointer`,value:e.value,children:(0,Z.jsx)(q_,{children:e.label})},e.value))})})})})]})]}),(0,Z.jsxs)(`label`,{className:`db f1`,children:[(0,Z.jsx)(`span`,{className:`db mb2 fw7`,children:`Algorithm`}),(0,Z.jsxs)(Cg,{items:d$,value:w,onValueChange:e=>{e&&(T(e),ze(u$[e]||1))},modal:!1,children:[(0,Z.jsxs)(Ug,{className:`app-select-trigger flex items-center justify-between g4 p2 ba bw1 f1 pointer`,children:[(0,Z.jsx)(Gg,{}),(0,Z.jsx)(Kg,{})]}),(0,Z.jsx)(Jg,{children:(0,Z.jsx)(w_,{className:`z7`,alignItemWithTrigger:!1,sideOffset:4,children:(0,Z.jsx)(N_,{className:`app-select-content`,children:(0,Z.jsx)(V_,{className:`app-select-viewport theme f1`,children:d$.map(e=>(0,Z.jsx)(W_,{className:`app-select-item p3 pointer`,value:e.value,children:(0,Z.jsx)(q_,{children:e.label})},e.value))})})})})]})]}),(0,Z.jsxs)(`fieldset`,{className:`app-threshold-fieldset m0 p0 bn f1`,children:[(0,Z.jsx)(`legend`,{className:`db mb3 f1 fw7`,children:`Threshold`}),(0,Z.jsx)(Qd,{value:String(S),onValueChange:e=>ze(parseFloat(e)),children:(0,Z.jsx)(`div`,{className:`flex g3`,children:(f$[w]||[]).map(e=>(0,Z.jsxs)(`label`,{className:`inline-flex items-center g2 mr4 f1 nowrap`,children:[(0,Z.jsx)(il,{value:e,className:`component-radio-root flex items-center justify-center`,children:(0,Z.jsx)(gl,{className:`component-radio-indicator`})}),(0,Z.jsx)(`span`,{children:e})]},`${w}-${e}`))})})]}),(0,Z.jsxs)(`div`,{className:`dn`,children:[(0,Z.jsx)(`label`,{className:`db mb1 f1 fw7`,children:`Border Radius`}),(0,Z.jsxs)(`div`,{className:`flex g2`,children:[(0,Z.jsxs)(`label`,{className:`inline-flex items-center g2 mr4 f1 nowrap`,children:[(0,Z.jsx)(`input`,{type:`radio`,value:`0px`,checked:p===`0px`,onChange:e=>Be(e.target.value)}),`0`]}),(0,Z.jsxs)(`label`,{className:`inline-flex items-center g2 mr4 f1 nowrap`,children:[(0,Z.jsx)(`input`,{type:`radio`,value:`6px`,checked:p===`6px`,onChange:e=>Be(e.target.value)}),`6px`]}),(0,Z.jsxs)(`label`,{className:`inline-flex items-center g2 mr4 f1 nowrap`,children:[(0,Z.jsx)(`input`,{type:`radio`,value:`16px`,checked:p===`16px`,onChange:e=>Be(e.target.value)}),`16px`]}),(0,Z.jsxs)(`label`,{className:`inline-flex items-center g2 mr4 f1 nowrap`,children:[(0,Z.jsx)(`input`,{type:`radio`,value:`32px`,checked:p===`32px`,onCh
76ange:e=>Be(e.target.value)}),`32px`]})]})]})]}),(0,Z.jsxs)(`div`,{className:`flex f2`,children:[(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>K(!0),title:`Import or edit company color palette`,className:`button-reset theme-app-radius border1 bw0 br0 px5 py3 f2 fw6 tc nowrap`,children:[`Palette`,se&&ae.length>=2?(0,Z.jsxs)(`span`,{className:`app-dimmed`,children:[` (`,ae.length,`)`]}):null]}),(0,Z.jsx)(`button`,{onClick:$e,className:`button-reset px3 bw0 f4 inline-flex items-center m0`,"aria-pressed":Qe,title:`Favorite the current color combo`,children:Qe?`â `:`â`}),(0,Z.jsxs)(`button`,{onClick:be,title:`Copy link to this color combination`,className:`button-reset theme-app-radius theme br0 px5 py3 mr3 g3 inline-flex items-center f2 fw6 nowrap`,children:[(0,Z.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:`12`,height:`12`,stroke:`currentColor`,strokeWidth:`3`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,Z.jsx)(`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`}),(0,Z.jsx)(`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`})]}),ve?`Copied!`:`Share`]}),(0,Z.jsxs)(`button`,{type:`button`,className:`button-reset theme-alt theme-app-radius f2 mr4 px5 py1 my4 inline-flex items-center g3 nowrap`,onClick:Le,children:[(0,Z.jsx)(`span`,{className:`fw7`,children:`Generate`}),(0,Z.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,className:`mr2`,children:(0,Z.jsx)(`path`,{d:`M8.14645 3.14645C8.34171 2.95118 8.65829 2.95118 8.85355 3.14645L12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L8.85355 11.8536C8.65829 12.0488 8.34171 12.0488 8.14645 11.8536C7.95118 11.6583 7.95118 11.3417 8.14645 11.1464L11.2929 8H2.5C2.22386 8 2 7.77614 2 7.5C2 7.22386 2.22386 7 2.5 7H11.2929L8.14645 3.85355C7.95118 3.65829 7.95118 3.34171 8.14645 3.14645Z`,stroke:`currentColor`,strokeWidth:`.5px`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})]})]})]}),(0,Z.jsx)(`div`,{className:`flex flex-nowrap overflow-auto mb4`,children:s.map(e=>{let t=e.colors[0]===E[0]&&e.colors[1]===E[1];return(0,Z.jsx)(`button`,{title:E[0]+` / `+E[1],className:`app-history-button ${t?`app-history-button-selected`:``}`,style:{backgroundColor:t?e.colors[0]:e.colors[1],color:t?e.colors[1]:e.colors[0]},onClick:()=>Re(e.colors),children:t?`â `:`⬤`},e.id)})}),(0,Z.jsxs)(`div`,{className:`overflow-hidden px5`,children:[(0,Z.jsxs)(`div`,{className:`column-1 column-2-m grid g3`,children:[(0,Z.jsx)(SH,{label:`Background`,id:`bgColorInput`,value:P,actualColor:E[0],onChange:Ue,onBlur:Ge,onLockToggle:Ke,isLocked:B===0,isValidInput:R}),(0,Z.jsx)(SH,{label:`Color`,id:`fgColorInput`,value:M,actualColor:E[1],onChange:He,onBlur:We,onLockToggle:qe,isLocked:B===1,isValidInput:I})]}),(0,Z.jsxs)(`div`,{className:`flex items-center flex-wrap mt4 mb4 g5`,children:[(0,Z.jsx)(CH,{label:`Contrast`,value:typeof O==`number`?O.toFixed(3):`â`}),(0,Z.jsx)(CH,{label:`Iterations`,value:A+1}),me&&(0,Z.jsxs)(`span`,{className:`app-threshold-alert`,children:[`Max `,w,` contrast: `,typeof ge==`number`?Math.abs(ge).toFixed(1):`?`]})]}),(0,Z.jsx)(`div`,{children:(0,Z.jsx)(`div`,{className:`dn theme-app-radius shadow-border1 px4 py3`,children:(0,Z.jsx)(nz,{label:(0,Z.jsx)(`b`,{children:`I agree to the terms and conditions`})})})}),(0,Z.jsx)(`div`,{style:{marginTop:`32px`,marginBottom:`16px`,boxShadow:`inset 0 0 0 1px currentColor`,padding:`8px 8px`},children:(0,Z.jsx)(`code`,{style:{fontSize:`14px`},children:`npm install randoma11y`})}),(0,Z.jsxs)(`section`,{className:`grid g4-m`,children:[(0,Z.jsxs)(`section`,{className:`grid g4 cols-1 cols-4-m`,children:[(0,Z.jsx)(pz,{time:`27 May 2026`,title:`APCA`,subtitle:`Accessible Perceptual Contrast`,borderRadius:p,text:`APCA is a new method for calculating and predicting readability contrast. These models are specifically related to color appearance on self-illuminated RGB computer displays & devices, and also for modeling accessible user needs, with a focus on readability. The APCA generates a contrast value based on a color pair, and this value is perceptually based: that is, regardless of how light or dark the colors are, a contrast value of Lc 60 represents the same perceived readability contrast. 77`,inverted:!0}
77),(0,Z.jsx)(pz,{time:`15 July 2026`,title:`WCAG 2.1`,subtitle:`Web Content Accessibility Guidelines 2.1`,text:`WCAG 2.1 defines color contrast based on a relative luminance formula, measuring the contrast ratio between text (or visual components) and the background. It requires a 4.5:1 ratio for normal text and 3:1 for large text (18pt+/14pt bold), with a 3:1 minimum for UI components and graphical objects, ensuring accessibility.`,borderRadius:p}),(0,Z.jsx)(iz,{colorPair:E}),(0,Z.jsx)(Kz,{colorPair:E,borderRadius:p})]}),(0,Z.jsxs)(`section`,{className:`grid cols-1 cols-6-m g4`,children:[(0,Z.jsx)(xH,{colorPair:E}),(0,Z.jsx)(az,{colorPair:E}),(0,Z.jsx)(wH,{colorPair:E,mode:1}),(0,Z.jsx)(JQ,{borderRadius:p}),(0,Z.jsx)(`div`,{className:`component-gradient-wiggle ba`,children:(0,Z.jsxs)(`svg`,{width:`700`,height:`350`,viewBox:`0 0 700 350`,xmlns:`http://www.w3.org/2000/svg`,className:`component-gradient-wiggle-svg w-100`,children:[(0,Z.jsx)(`defs`,{children:(0,Z.jsxs)(`linearGradient`,{id:`grad`,gradientUnits:`userSpaceOnUse`,x1:`0`,y1:`175`,x2:`700`,y2:`175`,children:[(0,Z.jsx)(`stop`,{offset:`0%`,stopColor:`var(--fg)`}),(0,Z.jsx)(`stop`,{offset:`100%`,stopColor:`var(--bg)`})]})}),(0,Z.jsx)(`path`,{d:` 78 M 60 80 79 C 60 300, 160 300, 160 80 80 S 260 -140, 260 200 81 S 380 380, 380 80 82 S 520 -60, 520 200 83 S 640 300, 640 120 84 `,fill:`none`,stroke:`url(#grad)`,strokeWidth:`var(--thickness, 104)`,strokeLinecap:`round`,strokeLinejoin:`round`})]})}),(0,Z.jsx)(NH,{})]}),(0,Z.jsx)(`section`,{className:`theme-app-radius ba p5 p9-l grid g4`,children:(0,Z.jsx)(GQ,{})}),(0,Z.jsxs)(`section`,{className:`grid cols-1 cols-2-m g4 mt6 mt0-l`,children:[(0,Z.jsx)(`div`,{className:`theme-alt`,children:(0,Z.jsx)(PH,{})}),(0,Z.jsx)(`div`,{className:`theme shadow-border`,children:(0,Z.jsx)(PH,{})}),(0,Z.jsx)(Jz,{}),(0,Z.jsx)(Xz,{colorPair:E})]})]}),(0,Z.jsx)(KQ,{}),(0,Z.jsxs)(`article`,{className:`theme-app-radius shadow-border1 mt4 p5`,children:[(0,Z.jsx)(`h4`,{className:`mt0`,children:`Color Formats`}),(0,Z.jsxs)(`div`,{className:`column-1 column-2-m grid mt6 g4`,children:[(0,Z.jsx)(qz,{color:E[0]}),(0,Z.jsx)(qz,{color:E[1]})]})]})]}),(0,Z.jsx)(gz,{count:r}),(0,Z.jsx)($H,{open:oe,onOpenChange:K,swatches:ae,onSwatchesChange:G,useForGenerate:se,onUseForGenerateChange:ce,contrastAlgorithm:w,threshold:S})]})},h$=e=>{let t={hex:{space:`srgb`,ranges:[[0,1],[0,1],[0,1]]},rgb:{space:`srgb`,ranges:[[0,1],[0,1],[0,1]]},p3:{ranges:[[0,1],[0,1],[0,1]]},rec2020:{ranges:[[0,1],[0,1],[0,1]]},lab:{ranges:[[0,100],[-128,127],[-128,127]]},oklab:{ranges:[[0,1],[-.5,.5],[-.5,.5]]},lch:{ranges:[[0,100],[0,230],[0,360]]},oklch:{ranges:[[0,1],[0,.5],[0,360]]},hsl:{ranges:[[0,360],[0,100],[0,100]]}},n=t[e]||t.rgb,r=n.ranges.map(([e,t])=>Math.random()*(t-e)+e);return new q(n.space||e,r)};function g$(e,t,n){let r=[];for(let i=0;i<360;i+=360/e)for(let e=0;e<=100;e+=100/t)for(let t=0;t<=100;t+=100/n)r.push([i,e,t]);for(let e=r.length-1;e>0;e--){let t=Math.floor(Math.random()*(e+1));[r[e],r[t]]=[r[t],r[e]]}return r}function _$(e,t,n,r,i,a=!0){let o=0,s=null,c=-1,l=null,u=e=>{let r=Math.abs(e);switch(n){case`WCAG21`:return e>=t;case`APCA`:return r>=t;case`Michelson`:return r>=t;case`Weber`:return r>=t;case`Lstar`:return r>=t;case`deltaPhi`:return r>=t;default:return r>=t}};for(let t=0;t<2e3;t++){o++;let t=h$(r),a=i===0?[t.toString({format:r}),e]:[e,t.toString({format:r})],d=q.contrast(a[0],a[1],n);if(Math.abs(d)>Math.abs(c)&&(c=d,l=t),u(d)){s=t;break}}if(!s){let t=g$(12,10,10);for(let[a,d,f]of t){if(o>=2e4)break;o++;let t=new q(`hsl`,[a,d,f]),p=i===0?[t.toString({format:r}),e]:[e,t.toString({format:r})],m=q.contrast(p[0],p[1],n);if(Math.abs(m)>Math.abs(c)&&(c=m,l=t),u(m)){s=t;break}}}if(!s){let t=new q(`black`),a=new q(`white`),o=i===0?[t.toString({format:r}),e]:[e,t.toString({format:r})],d=i===0?[a.toString({format:r}),e]:[e,a.toString({format:r})],f=q.contrast(o[0],o[1],n),p=q.contrast(d[0],d[1],n);Math.abs(f)>Math.abs(c)&&(c=f,l=t),u(f)?s=t:(Math.abs(p)>Math.abs(c)&&(c=p,l=a),u(p)&&(s=a))}return{foundColor:s||l,iterations:o,maxContrast:c}}var v$=(e,t,n,r,i)=>{let a,o,s=0,c,l=e=>{let t=Math.abs(e);switch(i){case`WCAG21`:return e>=r;case`APCA`:return t>=r;case`Michelson`:return t>=r;case`Weber`:return t>=r;case`Lstar`:return t>=r;case`deltaPhi`:return t>=r;default:return t>=r}};if(e){let l=new q(e).toString({format:n}),{foundColor:u,iterations:d,maxContrast:f}=_$(l,r,i,n,t);s=d,c=f,t===0?(a=u.toString({format:n}),o=l):(a=l,o=u.toString({format:n}))}else{let e=0;for(;e<5;){e++;let t=h$(n).toString({format:n}),{foundColor:u,iterations:d,maxContrast:f}=_$(t,r,i,n,1);if(s+=d,l(f)){a=t,o=u.toString({format:n}),c=f;break}}if(!a){let e=h$(n).toString({format:n}),{foundColor:t,iterations:l,maxContrast:u}=_$(e,r,i,n,1);s+=l,a=e,o=t.toString({format:n}),c=u}}return{colorPair:[a,o],contrast:c,iterations:s}},y$=128,b$=({colorData:e})=>
84{let[t,n]=e.colors,r=Math.abs(e.contrast).toFixed(1);return(0,Z.jsx)(`button`,{onClick:()=>{let r=encodeURIComponent(t),i=encodeURIComponent(n),a=e.algorithm;window.location.href=`/${r}/${i}?algorithm=${a}`},title:`BG: ${t}\nFG: ${n}\nAlgo: ${e.algorithm}\nContrast: ${Math.abs(e.contrast).toFixed(2)}`,style:{WebkitAppearance:`none`,appearance:`none`,backgroundColor:t,color:n,aspectRatio:1,width:`100%`,borderRadius:`0px`,cursor:`pointer`,border:`none`,transition:`transform 0.1s ease`,fontSize:`6px`,fontWeight:`900`,animation:`pulseAndFadeIn 0.6s ease-out forwards`,padding:0},onMouseEnter:e=>e.currentTarget.style.transform=`scale(1.1)`,onMouseLeave:e=>e.currentTarget.style.transform=`scale(1)`,children:r})},x$=e=>{let t={};return e.forEach(e=>{let n=`unknown`;try{e.colors&&e.colors[0]&&(n=new q(e.colors[0]).spaceId||`unknown`)}catch(t){console.warn(`Could not parse color for grouping: ${e.colors[0]}`,t)}let r=e.algorithm||`unknown`;t[n]||(t[n]={}),t[n][r]||(t[n][r]=[]),t[n][r].length<y$&&t[n][r].push(e)}),t},S$=({title:e,groupedData:t})=>{let n=[`srgb`,`p3`,`hsl`,`lch`,`oklch`,`lab`,`oklab`,`rec2020`,`unknown`],r=[`APCA`,`WCAG21`,`Michelson`,`Weber`,`Lstar`,`deltaPhi`,`unknown`],i=Object.keys(t).sort((e,t)=>{let r=n.indexOf(e),i=n.indexOf(t);return r===-1&&(r=n.length),i===-1&&(i=n.length),r-i});return i.length===0?(0,Z.jsxs)(`div`,{className:`feed-section`,style:{height:`100%`,maxHeight:`90dvh`,overflowY:`scroll`},children:[(0,Z.jsx)(`h2`,{style:{fontSize:`1rem`,fontWeight:`600`,display:`flex`,alignItems:`center`},children:e}),(0,Z.jsx)(`div`,{style:{textAlign:`center`,padding:`2rem`,opacity:.5},children:`No color data for grids yet.`})]}):(0,Z.jsxs)(`div`,{style:{height:`100%`,maxHeight:`90dvh`,overflowY:`scroll`},children:[(0,Z.jsx)(`h2`,{style:{fontSize:`1rem`,fontWeight:`600`,display:`flex`,alignItems:`center`,marginTop:0,marginBottom:`16px`},children:e}),(0,Z.jsx)(`div`,{className:`feed-section`,style:{display:`grid`,gap:`32px`},children:i.map(e=>(0,Z.jsx)(`div`,{style:{borderRadius:`6px`,display:`grid`,gap:`16px`},children:r.map(n=>t[e]&&t[e][n]&&t[e][n].length>0?(0,Z.jsxs)(`div`,{children:[(0,Z.jsxs)(`h4`,{style:{fontSize:`12px`,fontWeight:`400`,margin:`0 0 16px 0`,opacity:1,textTransform:`uppercase`,letterSpacing:`0.1em`,fontFamily:`monospace`},children:[e,` `,n]}),(0,Z.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(16, 1fr)`,gap:`1px`},children:t[e][n].map(e=>(0,Z.jsx)(b$,{colorData:e},e.id))})]},n):null)},e))})]})},C$=({colorData:e,type:t})=>{let[n,r]=e.colors,i=new Date-new Date(e.timestamp),a=Math.floor(i/1e3),o=Math.floor(a/60),s=Math.floor(o/60),c=s>0?`${s}h ago`:o>0?`${o}m ago`:`${a}s ago`;return(0,Z.jsxs)(`div`,{className:`color-pair-card`,onClick:()=>{let t=encodeURIComponent(n),i=encodeURIComponent(r),a=e.algorithm;window.location.href=`/${t}/${i}?algorithm=${a}`},title:`color: ${r} / background: ${n}`,style:{backgroundColor:n,color:r,padding:`1rem`,position:`relative`,transition:`all 0.3s ease`,animation:`pulseAndFadeIn 0.5s ease-out forwards`,cursor:`pointer`,borderRadius:`0px`},children:[(0,Z.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,Z.jsx)(`div`,{style:{height:`8px`,borderRadius:`9999px`,width:`8px`,aspectRatio:1,background:r}}),(0,Z.jsxs)(`p`,{style:{margin:0,fontWeight:`600`,fontSize:`12px`},children:[e.algorithm,`: `,Math.abs(e.contrast).toFixed(2)]}),(0,Z.jsx)(`time`,{style:{marginLeft:`auto`,fontSize:`12px`,fontFamily:`monospace`,opacity:1},children:c})]}),(0,Z.jsx)(`div`,{style:{fontSize:`0.875rem`,fontFamily:`monospace`,display:`none`},children:(0,Z.jsx)(`div`,{children:(0,Z.jsxs)(`code`,{children:[`background: `,n,(0,Z.jsx)(`br`,{}),`color: `,r]})})})]})},w$=({colorData:e,type:t})=>{let[n,r]=e.colors,i=new Date-new Date(e.timestamp),a=Math.floor(i/1e3),o=Math.floor(a/60),s=Math.floor(o/60),c=s>0?`${s}h ago`:o>0?`${o}m ago`:`${a}s ago`;return(0,Z.jsxs)(`div`,{className:`color-pair-card`,onClick:()=>{let t=encodeURIComponent(n),i=encodeURIComponent(r),a=e.algorithm;window.location.href=`/${t}/${i}?algorithm=${a}`},title:`color: ${r} / background: ${n}`,style:{backgroundColor:n,color:r,padding:`1.5rem`,position:`relative`,transition:`all 0.3s ease`,animation:`pulseAndFadeIn 0.5s ease-out forwards`,cursor:`pointer`,borderRadius:`6px`},children:[(0,Z.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,Z.jsx)(`div`,{style:{height:`16px`,borderRadius:`9999px`,width:`16px`,aspectRatio:1,background:r}}),(0,Z.jsxs)(`p`,{style:{margin:0,fontWeight:`600`},children:[e.algorithm,`: `,Math.abs(e.contrast).toFixed(2)]}),(0,Z.jsx)(`time`,{style:{marginLeft:`auto`,fontSize:`12px`,fontFamily:`monospace`,opacity:1},children:c})]}),(0,Z.jsx)(`p`,{style:{lineHeight:1.5,fontSize:`12px`},children:`"The relation of color to light is much the same as that of music to sound. Color has its many hues its long scales of tints and shades, its true and its false chords." - Color Problems`}),(0,Z.jsx)(`div`,{style:{background:r,color:n,borderRadius:`9999px`,textAlign:`center`,padding:`8px 16px`},children:`Preview`}),(0,Z.jsx)(`div`,{style:{fontSize:`12px`,fontFamily:`monospace`,display:`none`},children:(0,Z.jsxs)(`code`,{children:[`background: `,n,(0,Z.jsx)(`br`,{}),`color: `,r]})})]})},T$=()=>{let[e]=(0,_.useState)(()=>`live-user-${za()}`),[t,n]=(0,_.useState)(!0),{recentColors:r,recentFavorites:i,isConnected:a,error:o,sendColorGenerated:s}=e$(),c=t?`#111`:`#fff`,l=t?`#fff`:`#000`,u=t?`#111`:`#fff`,d=t?`#1a1a1a`:`#f0f
840f0`;(0,_.useEffect)(()=>{let e=document.body.style.backgroundColor,t=document.documentElement.style.backgroundColor;return document.body.style.backgroundColor=c,document.documentElement.style.backgroundColor=c,()=>{document.body.style.backgroundColor=e,document.documentElement.style.backgroundColor=t}},[c]);let f=x$(r),p=x$(i),[m,h]=(0,_.useState)(0),g=`RANDOMA11Y`,v=async()=>{try{h(await(await fetch(`https://ts-gen-count.adam-f8f.workers.dev/?name=${g}`)).text())}catch(e){console.error(`Error fetching count:`,e)}},y=async()=>{try{await fetch(`https://ts-gen-count.adam-f8f.workers.dev/increment?name=${g}`,{method:`POST`}),v()}catch(e){console.error(`Error incrementing count:`,e)}};return(0,Z.jsxs)(`div`,{className:`root`,style:{minHeight:`100vh`,backgroundColor:c,color:l,paddingBottom:`2rem`,animation:`subtlePulseBg 15s infinite alternate`,transition:`background-color 0.3s ease, color 0.3s ease`,"--bg":c,"--fg":l,"--bg-alt":l,"--fg-alt":c,"--live-pulse-from":u,"--live-pulse-to":d},children:[(0,Z.jsx)(`style`,{children:` 85 @keyframes pulseAndFadeIn { 86 0% { 87 opacity: 0; 88 transform: scale(0.9) translateY(10px); 89 } 90 70% { 91 opacity: 1; 92 transform: scale(1.02) translateY(0); 93 } 94 100% { 95 transform: scale(1) translateY(0); 96 } 97 } 98 99 @keyframes subtlePulseBg { 100 from { 101 background-color: var(--live-pulse-from); 102 } 103 to { 104 background-color: var(--live-pulse-to); 105 } 106 } 107 .live-theme-btn { 108 display: inline-flex; 109 align-items: center; 110 justify-content: center; 111 width: 40px; 112 height: 40px; 113 border: none; 114 border-radius: 8px; 115 background: transparent; 116 color: currentColor; 117 opacity: 0.7; 118 cursor: pointer; 119 transition: opacity 0.2s; 120 outline: 0; 121 } 122 .live-theme-btn:hover { opacity: 1; } 123 124 @keyframes pulse { 125 0%, 100% { opacity: 1; } 126 50% { opacity: 0.5; } 127 } 128 129 .color-pair-card:hover { 130 transform: scale(1.02); 131 box-shadow: 0 4px 20px rgba(0,0,0,0.3); 132 z-index: 10; 133 } 134 135 .color-pair-card:active { 136 transform: scale(0.98); 137 } 138 139 .connection-indicator { 140 width: 6px; 141 height: 6px; 142 border-radius: 100%; 143 display: inline-block; 144 margin-right: 0.5rem; 145 font-size: 12px; 146 } 147 .feed-section { 148 margin-bottom: 2rem; 149 } 150 `}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsxs)(`header`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:`1rem`},children:[(0,Z.jsx)(`div`,{children:(0,Z.jsxs)(`a`,{href:`/`,style:{padding:`1.25rem 1rem`,backgroundColor:`transparent`,color:l,textDecoration:`none`,borderRadius:`0.25rem`,fontWeight:`500`,display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,Z.jsx)(mz,{size:20}),(0,Z.jsx)(`b`,{className:`dn db-m`,style:{fontSize:`12px`,letterSpacing:`-0.05em`,fontWeight:900},children:`RandomA11y`})]})}),(0,Z.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`1rem`,marginRight:`1rem`},children:[(0,Z.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,padding:`0.25rem .5rem`,backgroundColor:t?`rgba(255,255,255,0.1)`:`rgba(0,0,0,0.06)`,borderRadius:`6px`},children:[(0,Z.jsx)(`span`,{className:`connection-indicator`,style:{backgroundColor:a?`#0f0`:`#f00`,animation:a?`pulse 2s infinite`:`none`}}),(0,Z.jsx)(`span`,{style:{fontSize:`10px`,fontFamily:`monospace`},children:a?`Connected`:o||`Disconnected`})]}),(0,Z.jsxs)(`button`,{onClick:()=>{let t=[`p3`,`rec2020`,`hsl`,`lch`,`oklch`,`lab`],n=[`APCA`,`WCAG21`,`Michelson`,`Weber`,`Lstar`,`deltaPhi`],r=t[Math.floor(Math.random()*t.length)],i=n[Math.floor(Math.random()*n.length)],a;switch(i){case`APCA`:a=[45,60,75,90][Math.floor(Math.random()*4)];break;case`WCAG21`:a=[3,4.5,7][Math.floor(Math.random()*3)];break;case`Michelson`:a=[.6,.75,.85,.95][Math.floor(Math.random()*4)];break;case`Weber`:a=[.6,.75,.85,.95][Math.floor(Math.random()*4)];break;case`Lstar`:a=[45,55,65,75][Math.floor(Math.random()*4)];break;case`deltaPhi`:a=[1,1.5,2,2.5][Math.floor(Math.random()*4)];break;default:a=.5}let{colorPair:o,contrast:c,iterations:l}=v$(null,0,r,a,i);y(),s({id:za(),colors:o,contrast:c,algorithm:i,userId:e})},disabled:!a,style:{background:t?`rgba(255,255,255,0.9)`:`rgba(0,0,0,0.88)`,color:t?`#111`:`#fff`,border:`none`,padding:`8px 16px`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,borderRadius:`6px`,curs
150or:`pointer`,fontWeight:`bold`,transition:`all 0.2s ease`,opacity:a?1:.5,fontSize:`12px`,marginRight:`8px`,gap:`8px`},children:[`Generate`,(0,Z.jsx)(`svg`,{width:`15`,height:`15`,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{position:`relative`,zIndex:1},children:(0,Z.jsx)(`path`,{d:`M8.14645 3.14645C8.34171 2.95118 8.65829 2.95118 8.85355 3.14645L12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L8.85355 11.8536C8.65829 12.0488 8.34171 12.0488 8.14645 11.8536C7.95118 11.6583 7.95118 11.3417 8.14645 11.1464L11.2929 8H2.5C2.22386 8 2 7.77614 2 7.5C2 7.22386 2.22386 7 2.5 7H11.2929L8.14645 3.85355C7.95118 3.65829 7.95118 3.34171 8.14645 3.14645Z`,stroke:`currentColor`,strokeWidth:`.5px`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})]}),(0,Z.jsx)(`button`,{type:`button`,className:`live-theme-btn`,onClick:()=>n(e=>!e),"aria-label":t?`Switch to light background`:`Switch to dark background`,children:t?(0,Z.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:`22`,height:`22`,stroke:`currentColor`,strokeWidth:`2`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`5`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`1`,x2:`12`,y2:`3`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`21`,x2:`12`,y2:`23`}),(0,Z.jsx)(`line`,{x1:`4.22`,y1:`4.22`,x2:`5.64`,y2:`5.64`}),(0,Z.jsx)(`line`,{x1:`18.36`,y1:`18.36`,x2:`19.78`,y2:`19.78`}),(0,Z.jsx)(`line`,{x1:`1`,y1:`12`,x2:`3`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`12`,x2:`23`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`4.22`,y1:`19.78`,x2:`5.64`,y2:`18.36`}),(0,Z.jsx)(`line`,{x1:`18.36`,y1:`5.64`,x2:`19.78`,y2:`4.22`})]}):(0,Z.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`22`,height:`22`,stroke:`currentColor`,strokeWidth:`2`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,Z.jsx)(`path`,{d:`M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z`})})})]})]}),o===`WebSocket disabled`&&(0,Z.jsxs)(`div`,{style:{backgroundColor:t?`rgba(255, 255, 255, 0.1)`:`rgba(0, 0, 0, 0.06)`,border:t?`1px solid rgba(255, 255, 255, 0.2)`:`1px solid rgba(0, 0, 0, 0.12)`,borderRadius:`0.5rem`,padding:`2rem`,margin:`0 1rem 2rem 1rem`,textAlign:`center`},children:[(0,Z.jsx)(`h3`,{style:{marginBottom:`1rem`},children:`ð WebSocket Not Configured`}),(0,Z.jsx)(`p`,{style:{fontSize:`0.875rem`,opacity:.7},children:`The real-time feed is disabled. Please check your Worker configuration.`})]}),(0,Z.jsx)(`div`,{style:{padding:`1rem`},children:(0,Z.jsxs)(`div`,{style:{display:`grid`,gap:`1rem`,alignItems:`flex-start`,padding:`0 1rem`},className:`column-1 column-2-m column-4-l`,children:[` `,(0,Z.jsx)(`div`,{style:{display:`grid`},children:(0,Z.jsxs)(`div`,{className:`feed-section`,children:[(0,Z.jsx)(`h2`,{style:{fontSize:`1rem`,fontWeight:`600`,display:`flex`,alignItems:`center`,marginBottom:`1rem`,marginTop:0},children:`⨠Generated`}),r.length===0?(0,Z.jsx)(`div`,{style:{textAlign:`center`,padding:`3rem`,opacity:.5},children:`Waiting for new color generations...`}):(0,Z.jsx)(`div`,{style:{display:`grid`,gap:`1rem`,height:`100%`,overflowY:`scroll`,maxHeight:`90dvh`},children:r.map(e=>(0,Z.jsx)(C$,{colorData:e,type:`generated`},e.id))})]})}),(0,Z.jsx)(S$,{title:`Sorted`,groupedData:f}),(0,Z.jsx)(S$,{title:`Sorted - Favorites`,groupedData:p}),(0,Z.jsxs)(`div`,{className:`feed-section`,children:[(0,Z.jsxs)(`h2`,{style:{fontSize:`1rem`,fontWeight:`600`,alignItems:`center`,gap:`0.5rem`,marginBottom:`1rem`,marginTop:0},children:[(0,Z.jsx)(`span`,{children:`â¤ï¸`}),` Favorites`]}),i.length===0?(0,Z.jsx)(`div`,{style:{textAlign:`center`,padding:`3rem`,opacity:.5},children:`Waiting for favorites...`}):(0,Z.jsx)(`div`,{style:{display:`grid`,gap:`1rem`,height:`100%`,maxHeight:`90dvh`,overflowY:`scroll`},children:i.map(e=>(0,Z.jsx)(w$,{colorData:e,type:`favorited`},e.id))})]})]})}),!a&&o!==`WebSocket disabled`&&(0,Z.jsx)(`div`,{style:{position:`fixed`,bottom:`2rem`,left:`50%`,transform:`translateX(-50%)`,backgroundColor:`#ff4444`,color:`#fff`,padding:`1rem 1.5rem`,borderRadius:`0.5rem`,boxShadow:`0 4px 20px rgba(0,0,0,0.3)`,zIndex:1e3}
150,children:o||`Connection lost. Attempting to reconnect...`})]})]})},E$=[{hex:`#e02943`,wcag_white:`4.6`,wcag_black:`4.57`},{hex:`#a041f8`,wcag_white:`4.56`,wcag_black:`4.61`},{hex:`#c1497b`,wcag_white:`4.66`,wcag_black:`4.51`},{hex:`#d14162`,wcag_white:`4.52`,wcag_black:`4.64`},{hex:`#d14300`,wcag_white:`4.65`,wcag_black:`4.51`},{hex:`#e4037c`,wcag_white:`4.57`,wcag_black:`4.6`},{hex:`#bc5a02`,wcag_white:`4.56`,wcag_black:`4.6`},{hex:`#a852bc`,wcag_white:`4.57`,wcag_black:`4.56`},{hex:`#647b57`,wcag_white:`4.65`,wcag_black:`4.51`},{hex:`#5d62f3`,wcag_white:`4.66`,wcag_black:`4.51`},{hex:`#06873b`,wcag_white:`4.63`,wcag_black:`4.54`},{hex:`#3c8622`,wcag_white:`4.54`,wcag_black:`4.63`},{hex:`#3d66fe`,wcag_white:`4.64`,wcag_black:`4.53`},{hex:`#a947d2`,wcag_white:`4.65`,wcag_black:`4.52`},{hex:`#556be8`,wcag_white:`4.51`,wcag_black:`4.65`},{hex:`#e42b14`,wcag_white:`4.51`,wcag_black:`4.65`},{hex:`#697f00`,wcag_white:`4.53`,wcag_black:`4.64`}],D$=()=>{let e=Math.floor(Math.random()*360),t=.4+Math.random()*.4,n=.4+Math.random()*.2,r=new q(`hsl`,[e,t,n]).toString({format:`hex`}),i=q.contrast(r,`#ffffff`,`WCAG21`),a=q.contrast(r,`#000000`,`WCAG21`);return{hex:r,hue:e,saturation:t,lightness:n,wcag_white:i.toFixed(2),wcag_black:a.toFixed(2)}};function O$(){let[e,t]=(0,_.useState)([]),[n,r]=(0,_.useState)(1),[i,a]=(0,_.useState)(!1),[o,s]=(0,_.useState)(!0),[c,l]=(0,_.useState)(null),[u,d]=(0,_.useState)(null),[f,p]=(0,_.useState)(!1),[m,h]=(0,_.useState)(!1),[g,v]=(0,_.useState)(0),[y,b]=(0,_.useState)(!0),[x,S]=(0,_.useState)(2920),[C,w]=(0,_.useState)(`random`),[T,E]=(0,_.useState)(``),[D,O]=(0,_.useState)(null),[k,A]=(0,_.useState)(!1),[j,M]=(0,_.useState)(1),[N,P]=(0,_.useState)(!0),[F,I]=(0,_.useState)(``),[L,R]=(0,_.useState)(!0);(0,_.useRef)();let z=(0,_.useRef)(),B=(0,_.useRef)(null),V=(0,_.useRef)(null),H=(0,_.useRef)(new Set),U=(0,_.useRef)(null),ee=(0,_.useCallback)(()=>{let e=0,t;do t=Math.floor(Math.random()*x)+1,e++;while(H.current.has(t)&&e<20);return H.current.add(t),t},[x]),W=(0,_.useCallback)(()=>{let e=y?ee():n,t=`https://accessible-colors-api.adam-f8f.workers.dev/api/colors?page=${e}&pageSize=128`;return c&&(t=`https://accessible-colors-api.adam-f8f.workers.dev/api/colors/filter?page=${e}&pageSize=128`,c.minHue!==void 0&&(t+=`&minHue=${c.minHue}`),c.maxHue!==void 0&&(t+=`&maxHue=${c.maxHue}`),c.minSaturation!==void 0&&(t+=`&minSaturation=${c.minSaturation}`),c.maxSaturation!==void 0&&(t+=`&maxSaturation=${c.maxSaturation}`),c.minLightness!==void 0&&(t+=`&minLightness=${c.minLightness}`),c.maxLightness!==void 0&&(t+=`&maxLightness=${c.maxLightness}`)),t},[n,c,y,ee]),te=(0,_.useCallback)((e=20)=>{if(h(!0),c){let t=[],n=0;for(;t.length<e&&n<100;){n++;let e=D$();c.minHue!==void 0&&e.hue<c.minHue||c.maxHue!==void 0&&e.hue>c.maxHue||c.minSaturation!==void 0&&e.saturation<c.minSaturation||c.maxSaturation!==void 0&&e.saturation>c.maxSaturation||c.minLightness!==void 0&&e.lightness<c.minLightness||c.maxLightness!==void 0&&e.lightness>c.maxLightness||t.push(e)}return t}else return Array.from({length:e},D$)},[c]),ne=(0,_.useCallback)(async()=>{if(!(i||!o&&!y)){if(a(!0),f||m){let n=te(20);t(e=>{let t=[...e,...n];return v(t.length),t}),e.length>280&&s(!1),a(!1);return}try{let e=await fetch(W());if(!e.ok)throw Error(`API responded with status ${e.status}`);let i=await e.json();i&&Array.isArray(i)?(t(e=>{if(y&&e.length>0){let t=new Map(e.map(e=>[e.hex,!0])),n=i.filter(e=>!t.has(e.hex)),r=[...e,...n];return v(r.length),r}else{let t=n===1?i:[...e,...i];return v(t.length),t}}),i.meta&&i.meta.totalPages&&S(i.meta.totalPages),y?s(!0):(r(e=>e+1),s(i.length>0))):i&&i.data&&Array.isArray(i.data)?(t(e=>{if(y&&e.length>0){let t=new Map(e.map(e=>[e.hex,!0])),n=i.data.filter(e=>!t.has(e.hex)),r=[...e,...n];return v(r.length),r}else{let t=n===1?i.data:[...e,...i.data];return v(t.length),t}}),i.meta&&i.meta.totalPages&&S(i.meta.totalPages),y?s(!0):(r(e=>e+1),s(i.meta&&n<i.meta.totalPages))):(console.error(`Unexpected API response format:`,i),p(!0),t(e=>{let t=n===1?E$:[...e,...E$];return v(t.length),t}))}catch(e){console.error(`Error fetching colors:`,e),p(!0),n===1&&(t(E$),v(E$.length))}finally{a(!1)}}},[n,i,o,W,f,e,m,te,y]),re=(0,_.useCallback)(e=>C===`random`||e.length<10?e:[...e].sort((e,t)=>
150{try{let n=new q(e.hex),r=new q(t.hex);if(C===`hue`){let e=n.to(`hsl`),t=r.to(`hsl`);return e.coords[0]-t.coords[0]}else if(C===`lightness`)return n.luminance-r.luminance;return 0}catch{return 0}}),[C]),ie=(0,_.useCallback)(()=>re(e),[e,re]),ae=(0,_.useCallback)(()=>{t(e=>{let t=[...e];for(let e=t.length-1;e>0;e--){let n=Math.floor(Math.random()*(e+1));[t[e],t[n]]=[t[n],t[e]]}return t})},[]),G=(0,_.useCallback)(e=>{w(e)},[]);(0,_.useEffect)(()=>{let e=U.current;if(!e||!o)return;let t=new IntersectionObserver(e=>{e[0].isIntersecting&&o&&!i&&ne()},{rootMargin:`0px 0px 800px 0px`,threshold:0});return t.observe(e),()=>t.disconnect()},[i,o,ne]);let oe=e=>{navigator.clipboard.writeText(e).then(()=>{d(e),setTimeout(()=>d(null),1500)}).catch(e=>console.error(`Failed to copy color:`,e))},K=(e,n)=>{B.current&&clearTimeout(B.current),l(t=>({...t,[e]:n})),B.current=setTimeout(()=>{t([]),r(1),s(!0),p(!1)},500)},se=()=>{B.current&&=(clearTimeout(B.current),null),t([]),r(1),s(!0),p(!1),H.current.clear(),ne()},ce=()=>{b(e=>!e),t([]),r(1),s(!0)},le=(0,_.useCallback)(async(e,t=1,n=!1)=>{if(!e||e.length<3){O(null);return}let r=e.trim();r.startsWith(`#`)||(r=`#${r}`),t===1&&!n&&(O(null),M(1),P(!0),I(r));try{A(!0);let e=await fetch(`https://accessible-colors-api.adam-f8f.workers.dev/api/colors/closest?hex=${encodeURIComponent(r)}&page=${t}&pageSize=20`);if(!e.ok)throw Error(`Search API responded with status ${e.status}`);let i=await e.json();!i||!Array.isArray(i)||i.length===0?(P(!1),n||O([])):(O(e=>n&&e?[...e,...i]:i),P(i.length===20),M(t+1))}catch(e){console.error(`Error searching for closest colors:`,e),n||O([]),P(!1)}finally{A(!1)}},[]),ue=(0,_.useCallback)(e=>{k||(z.current&&z.current.disconnect(),z.current=new IntersectionObserver(e=>{e[0].isIntersecting&&N&&F&&le(F,j,!0)}),e&&z.current.observe(e))},[k,N,j,F,le]),de=e=>{E(e),V.current&&clearTimeout(V.current),V.current=setTimeout(()=>{le(e)},300)},fe=()=>{E(``),O(null),M(1),P(!0),I(``),V.current&&clearTimeout(V.current)};return(0,_.useEffect)(()=>{p(!1),h(!1),t([]),r(1),ne()},[c]),(0,Z.jsxs)(`div`,{style:{minHeight:`100vh`,backgroundColor:L?`#000`:`#fff`,color:L?`#fff`:`#000`,paddingBottom:`2rem`,transition:`background-color 0.3s ease, color 0.3s ease`,"--bg":L?`#000`:`#fff`,"--fg":L?`#fff`:`#000`,"--bg-alt":L?`#fff`:`#000`,"--fg-alt":L?`#000`:`#fff`},className:`root`,children:[(0,Z.jsx)(`style`,{children:` 151 @keyframes fadeIn { 152 from { opacity: 0; } 153 to { opacity: 1; } 154 } 155 156 @keyframes pulse { 157 0%, 100% { opacity: 0.3; } 158 50% { opacity: 1; } 159 } 160 161 .loading-dot { 162 display: inline-block; 163 width: 8px; 164 height: 8px; 165 border-radius: 50%; 166 background-color: currentColor; 167 animation: pulse 1.5s infinite ease-in-out; 168 } 169 170 .color-grid { 171 display: grid; 172 grid-template-columns: repeat(auto-fill, minmax(112px, 3fr)); 173 gap: 4px; 174 padding: 0 1rem; 175 } 176 177 .load-more-sentinel { 178 min-height: 1px; 179 width: 100%; 180 pointer-events: none; 181 } 182 183 .color-item { 184 position: relative; 185 aspect-ratio: 2.4/1; 186 border-radius: 0px; 187 animation: colorItemEnter 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; 188 cursor: pointer; 189 overflow: hidden; 190 transition: all 0.2s ease; 191 z-index:1 192 } 193 194 @keyframes colorItemEnter { 195 0% { 196 opacity: 0; 197 transform: scale(0.92); 198 } 199 100% { 200 opacity: 1; 201 transform: scale(1); 202 } 203 } 204 205 .color-item:hover { 206 transform: scale(1.05); 207 z-index: 1; 208 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); 209 } 210 211 .color-info { 212 font-family: monospace, monospace; 213 line-height: 1.5; 214 position: absolute; 215 top: 0; 216 bottom: 0; 217 left: 0; 218 right: 0; 219 color: white; 220 padding: 8px; 221 font-size: 10px; 222 } 223 224 225 226 /* Add responsive grid sizes */ 227 228 @media (min-width: 1024px) { 229 .color-grid { 230 grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); 231 } 232 } 233 234 @media (min-width: 1280px) { 235 .color-grid { 236 grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); 237 } 238 } 239 240 /* Sort controls */
241 .sort-controls { 242 display: flex; 243 gap: 8px; 244 align-items: center; 245 margin-bottom: 8px; 246 } 247 248 .sort-button { 249 background: rgba(255, 255, 255, 0.1); 250 border: 1px solid rgba(255, 255, 255, 0.2); 251 color: white; 252 font-size: 12px; 253 padding: 4px 8px; 254 border-radius: 0px; 255 cursor: pointer; 256 } 257 258 .sort-button.active { 259 background: rgba(255, 255, 255, 0.3); 260 font-weight: bold; 261 } 262 263 .copied-indicator { 264 position: absolute; 265 top: 0; 266 left: 0; 267 right: 0; 268 bottom: 0; 269 display: flex; 270 align-items: center; 271 justify-content: center; 272 background-color: rgba(0, 0, 0, 1); 273 color: white; 274 font-weight: bold; 275 animation: fadeIn 0.2s ease-in-out; 276 font-size: 10px; 277 } 278 279 .filter-container { 280 background-color: rgba(255, 255, 255, 0.05); 281 padding: 1rem; 282 margin: 1rem; 283 border-radius: 0px; 284 } 285 286 .filter-row { 287 display: grid; 288 grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 289 gap: 1rem; 290 margin-bottom: 1rem; 291 } 292 293 .filter-group { 294 display: flex; 295 flex-direction: column; 296 gap: 0.5rem; 297 } 298 299 .filter-label { 300 font-size: 12px; 301 opacity: 0.8; 302 } 303 304 .range-inputs { 305 display: flex; 306 align-items: center; 307 gap: 8px; 308 } 309 310 .filter-input { 311 background-color: rgba(255, 255, 255, 0.1); 312 border: 1px solid rgba(255, 255, 255, 0.2); 313 border-radius: 0px; 314 color: white; 315 padding: 6px 8px; 316 width: 100%; 317 } 318 319 .apply-button { 320 background-color: white; 321 color: black; 322 border: none; 323 padding: 10px 16px; 324 border-radius: 0px; 325 cursor: pointer; 326 font-weight: 500; 327 transition: background-color 0.2s ease; 328 } 329 330 .apply-button:hover { 331 background-color: rgba(255, 255, 255, 0.9); 332 } 333 334 .loading-indicator { 335 text-align: center; 336 padding: 2rem 1rem 3rem; 337 min-height: 50dvh; 338 display: flex; 339 align-items: center; 340 justify-content: center; 341 } 342 343 .loading-palette { 344 display: grid; 345 grid-template-columns: repeat(7, 1fr); 346 gap: 6px; 347 max-width: 260px; 348 margin: 0 auto 1.5rem; 349 } 350 351 .loading-swatch { 352 aspect-ratio: 1; 353 border-radius: 6px; 354 animation: loadingSwatchPop 1s cubic-bezier(0.34, 1.56, 0.64, 1) both; 355 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); 356 } 357 358 @keyframes loadingSwatchPop { 359 0% { 360 transform: scale(0.4); 361 opacity: 0; 362 } 363 60% { 364 opacity: 1; 365 } 366 100% { 367 transform: scale(1); 368 opacity: 1; 369 } 370 } 371 372 .loading-palette-caption { 373 font-size: 13px; 374 letter-spacing: 0.02em; 375 opacity: 0.9; 376 } 377 378 @keyframes loadingGradientShift { 379 0%, 100% { background-position: 0% 50%; } 380 50% { background-position: 100% 50%; } 381 } 382 383 .loading-dots-inline { 384 display: inline-flex; 385 align-items: center; 386 gap: 4px; 387 margin-left: 4px; 388 } 389 390 .loading-dots-inline span { 391 width: 6px; 392 height: 6px; 393 border-radius: 50%; 394 animation: loadingDotPulse 1.2s ease-in-out infinite both; 395 } 396 397 .loading-dots-inline span:nth-child(2) { animation-delay: 0.15s; } 398 .loading-dots-inline span:nth-child(3) { animation-delay: 0.3s; } 399 400 @keyframes loadingDotPulse { 401 0%, 100% { transform: scale(0.85); opacity: 0.6; } 402 50% { transform: scale(1.15); opacity: 1; } 403 } 404 405 .api-error { 406 background-color: rgba(255, 100, 100, 0.1); 407 border: 1px solid rgba(255, 100, 100, 0.2); 408 padding: 1rem; 409 margin: 1rem; 410 border-radius: 0px; 411 font-size: 14px; 412 } 413 414 /* Search bar styles */ 415 .search-container { 416 position: relative; 417 width: 100%; 418 max-width: 280px; 419 transition: max-width 0.3s ease; 420 } 421 422 .search-container:focus-within { 423 max-width: 320px; 424 } 425 426 .search-input { 427 width: 100%; 428 background-color: rgba(255, 255, 255, 0.1); 429 border: 1px solid rgba(255, 255, 255, 0.2); 430 border-radius: 0px; 431 color: white; 432 padding: 8px 32px 8px 12px; 433 font-size: 14px; 434 transition: all 0.2s ease; 435 } 436 437 .search-input:focus { 438 background-color: rgba(255, 255, 255, 0.15); 439 border-color: rgba(255, 255, 255, 0.3); 440 outline: none; 441 } 442 443 .search-input::placeholder { 444 color: rgba(255, 255, 255, 0.5); 445 } 446 447 .search-icon { 448 position: absolute; 449 right: 10px; 450 top: 50%; 451 transform: translateY(-50%); 452 opacity: 0.7; 453 } 454 455 .search-results { 456 position: absolute; 457 top: 100%; 458 left: 0; 459 right: 0; 460 background-color: #222; 461 border: 1px solid rgba(255, 255, 255, 0.2); 462 border-radius: 0px; 463 margin-top: 4px; 464 max-height: 400px; 465 overflow-y: auto; 466 z-index: 100; 467 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); 468 animation: fadeIn 0.2s ease-in-out; 469 scrollbar-width: thin; 470 scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.2); 471 } 472 473 .search-results::-webkit-scrollbar {
474 width: 6px; 475 } 476 477 .search-results::-webkit-scrollbar-track { 478 background: rgba(0, 0, 0, 0.2); 479 } 480 481 .search-results::-webkit-scrollbar-thumb { 482 background-color: rgba(255, 255, 255, 0.3); 483 border-radius: 3px; 484 } 485 486 .search-result-item { 487 display: flex; 488 align-items: center; 489 padding: 8px 12px; 490 cursor: pointer; 491 transition: background-color 0.2s ease; 492 border-bottom: 1px solid rgba(255, 255, 255, 0.05); 493 } 494 495 .search-result-item:last-child { 496 border-bottom: none; 497 } 498 499 .search-result-item:hover { 500 background-color: rgba(255, 255, 255, 0.1); 501 } 502 503 .color-swatch { 504 width: 24px; 505 height: 24px; 506 border-radius: 0px; 507 margin-right: 12px; 508 border: 1px solid rgba(255, 255, 255, 0.2); 509 } 510 511 .clear-search { 512 position: absolute; 513 right: 32px; 514 top: 50%; 515 transform: translateY(-50%); 516 background: transparent; 517 border: none; 518 color: rgba(255, 255, 255, 0.7); 519 cursor: pointer; 520 font-size: 14px; 521 display: flex; 522 align-items: center; 523 justify-content: center; 524 width: 16px; 525 height: 16px; 526 opacity: 0.7; 527 transition: opacity 0.2s ease; 528 } 529 530 .clear-search:hover { 531 opacity: 1; 532 } 533 534 .search-btn { 535 background: transparent; 536 border: 1px solid rgba(255, 255, 255, 0.3); 537 border-radius: 0px; 538 color: white; 539 padding: 4px 8px; 540 font-size: 10px; 541 cursor: pointer; 542 transition: all 0.2s ease; 543 } 544 545 .search-btn:hover { 546 background: rgba(255, 255, 255, 0.1); 547 } 548 549 .search-btn.primary { 550 background: white; 551 border: none; 552 color: black; 553 } 554 555 .search-btn.primary:hover { 556 background: rgba(255, 255, 255, 0.9); 557 } 558 559 @media (min-width: 640px) { 560 .search-results { 561 max-width: 400px; 562 min-width: 320px; 563 } 564 } 565 566 .theme-toggle-button { 567 display: inline-flex; 568 align-items: center; 569 justify-content: center; 570 width: 40px; 571 height: 40px; 572 padding: 0; 573 border: none; 574 border-radius: 8px; 575 background: transparent; 576 color: currentColor; 577 opacity: .7; 578 cursor: pointer; 579 transition: all .25s ease; 580 outline:0; 581 } 582 583 .theme-toggle-button:hover { 584 opacity: 1; 585 } 586 .theme-toggle-button:focus { 587 outline: 0; 588 } 589 .theme-toggle-button:focus-active { 590 outline: 0; 591 } 592 593 .theme-toggle-button:active { 594 transform: scale(0.96); 595 outline:0; 596 } 597 598 .colors-progress-track { 599 height: 4px; 600 border-radius: 0; 601 outline: 1px solid currentColor; 602 overflow: hidden; 603 opacity: .7; 604 } 605 606 .colors-progress-fill { 607 height: 100%; 608 background: currentColor; 609 opacity: 1; 610 transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); 611 } 612 613 .loading-bar-wrap { 614 overflow: hidden; 615 transition: height 0.35s ease-out; 616 } 617 618 .loading-bar-gradient { 619 transition: opacity 0.35s ease-out; 620 } 621 `}),(0,Z.jsxs)(`header`,{style:{position:`sticky`,top:0,right:0,left:0,zIndex:999,backgroundColor:L?`#000`:`#fff`,color:L?`#fff`:`#000`},children:[(0,Z.jsx)(`div`,{className:`loading-bar-wrap`,style:{height:e.length>0&&i?8:0},children:e.length>0&&(0,Z.jsx)(`div`,{className:`loading-bar-gradient`,style:{width:`100%`,height:`4px`,margin:0,borderRadius:0,opacity:+!!i,background:`linear-gradient(90deg, ${E$.slice(0,12).map(e=>e.hex).join(`, `)})`,backgroundSize:`150% 100%`,animation:i?`loadingGradientShift 4s ease-in-out infinite`:`none`}})}),(0,Z.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,padding:`1.25rem 1rem`},children:[(0,Z.jsxs)(`a`,{href:`/`,style:{textDecoration:`none`,color:L?`#fff`:`#000`,dis
621play:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,Z.jsx)(mz,{size:20}),(0,Z.jsx)(`span`,{className:`dn db-m f1 fw9 ttu tracked`,style:{color:L?`#fff`:`#000`},children:`RandomA11y`})]}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsxs)(`span`,{style:{display:`block`,fontFamily:`monospace`,marginBottom:`6px`,opacity:.7,textAlign:`center`,fontSize:`10px`},children:[g,` of 292,107`]}),(0,Z.jsx)(`div`,{className:`colors-progress-track`,style:{width:`140px`},role:`progressbar`,"aria-valuenow":g,"aria-valuemin":0,"aria-valuemax":292107,"aria-label":`Progress through color collection`,children:(0,Z.jsx)(`div`,{className:`colors-progress-fill`,style:{width:g<=0?`0%`:`${Math.min(100,100*Math.sqrt(g/292107))}%`,minWidth:g>0?`6px`:0}})})]}),(0,Z.jsxs)(`div`,{className:`search-container`,style:{display:`none`},children:[(0,Z.jsx)(`input`,{type:`text`,className:`search-input`,placeholder:`Search colors (e.g., #ff5733)`,value:T,onChange:e=>de(e.target.value),onKeyDown:e=>{e.key===`Escape`&&fe()}}),T&&(0,Z.jsx)(`button`,{className:`clear-search`,onClick:fe,title:`Clear search`,children:`Ã`}),(0,Z.jsx)(`div`,{className:`search-icon`,children:k?(0,Z.jsx)(`div`,{className:`loading-dot`,style:{width:`14px`,height:`14px`}}):(0,Z.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,Z.jsx)(`circle`,{cx:`11`,cy:`11`,r:`8`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`21`,x2:`16.65`,y2:`16.65`})]})}),D&&D.length>0&&(0,Z.jsxs)(`div`,{className:`search-results`,children:[(0,Z.jsxs)(`div`,{style:{padding:`8px 12px`,borderBottom:`1px solid rgba(255,255,255,0.1)`,fontSize:`12px`,opacity:.7},children:[`Found `,D.length,` closest colors to `,F]}),D.map((e,t)=>(0,Z.jsxs)(`div`,{ref:t===D.length-1?ue:null,className:`search-result-item`,children:[(0,Z.jsx)(`div`,{className:`color-swatch`,style:{backgroundColor:e.hex}}),(0,Z.jsxs)(`div`,{style:{flex:1},children:[(0,Z.jsx)(`div`,{style:{color:L?`#fff`:`#000`},children:e.hex}),(0,Z.jsxs)(`div`,{style:{fontSize:`10px`,opacity:.7},children:[`WCAG: `,e.wcag_white,`/`,e.wcag_black]})]}),(0,Z.jsxs)(`div`,{style:{display:`flex`,gap:`8px`},children:[(0,Z.jsx)(`button`,{onClick:()=>oe(e.hex),title:`Copy color code`,className:`search-btn`,children:`Copy`}),(0,Z.jsx)(`button`,{onClick:()=>{let t=parseFloat(e.wcag_white)>=parseFloat(e.wcag_black)?`#ffffff`:`#000000`;window.location.href=`/${encodeURIComponent(e.hex)}/${encodeURIComponent(t)}`},title:`View as color pair`,className:`search-btn primary`,children:`View`})]})]},e.hex+t)),k&&j>1&&(0,Z.jsxs)(`div`,{style:{padding:`12px`,textAlign:`center`,fontSize:`12px`},children:[(0,Z.jsxs)(`div`,{style:{display:`flex`,justifyContent:`center`,alignItems:`center`,gap:`8px`},children:[(0,Z.jsx)(`div`,{className:`loading-dot`,style:{width:`6px`,height:`6px`}}),(0,Z.jsx)(`div`,{className:`loading-dot`,style:{width:`6px`,height:`6px`,animationDelay:`0.2s`}}),(0,Z.jsx)(`div`,{className:`loading-dot`,style:{width:`6px`,height:`6px`,animationDelay:`0.4s`}})]}),(0,Z.jsx)(`div`,{style:{marginTop:`4px`,opacity:.7},children:`Loading more colors...`})]}),N&&!k&&(0,Z.jsx)(`div`,{style:{padding:`8px`,textAlign:`center`,fontSize:`12px`,opacity:.7},children:`Scroll for more results`}),!N&&(0,Z.jsx)(`div`,{style:{padding:`8px`,textAlign:`center`,fontSize:`12px`,opacity:.7},children:`End of results`})]}),k&&(0,Z.jsxs)(`div`,{className:`search-results`,style:{padding:`16px`,textAlign:`center`},children:[(0,Z.jsxs)(`div`,{style:{display:`flex`,justifyContent:`center`,alignItems:`center`,gap:`8px`},children:[(0,Z.jsx)(`div`,{className:`loading-dot`,style:{width:`8px`,height:`8px`}}),(0,Z.jsx)(`div`,{className:`loading-dot`,style:{width:`8px`,height:`8px`,animationDelay:`0.2s`}}),(0,Z.jsx)(`div`,{className:`loading-dot`,style:{width:`8px`,height:`8px`,animationDelay:`0.4s`}})]}),(0,Z.jsx)(`div`,{style:{marginTop:`8px`,fontSize:`12px`},children:`Searching for closest colors...`})]}),D&&D.length===0&&!k&&T.length>=3&&(0,Z.jsx)(`div`,{className:`search-results`,style:{padding:`12px`,textAlign:`center`},children:`No matching colors found`})]}),(0,Z.jsx)(`button`,{type:`button`,className:`theme-toggle-button`,onClick:()=>R(e=>!e),"aria-pressed":!L,"aria-label":L?`Switch to light background`:`Switch to dark background`,children:L?(0,Z.jsxs)(`svg`,{viewB
621ox:`0 0 24 24`,width:`22`,height:`22`,stroke:`currentColor`,strokeWidth:`2`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`5`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`1`,x2:`12`,y2:`3`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`21`,x2:`12`,y2:`23`}),(0,Z.jsx)(`line`,{x1:`4.22`,y1:`4.22`,x2:`5.64`,y2:`5.64`}),(0,Z.jsx)(`line`,{x1:`18.36`,y1:`18.36`,x2:`19.78`,y2:`19.78`}),(0,Z.jsx)(`line`,{x1:`1`,y1:`12`,x2:`3`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`12`,x2:`23`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`4.22`,y1:`19.78`,x2:`5.64`,y2:`18.36`}),(0,Z.jsx)(`line`,{x1:`18.36`,y1:`5.64`,x2:`19.78`,y2:`4.22`})]}):(0,Z.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`22`,height:`22`,stroke:`currentColor`,strokeWidth:`2`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,Z.jsx)(`path`,{d:`M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z`})})})]})]}),f&&(0,Z.jsx)(`div`,{className:`api-error`,children:(0,Z.jsxs)(`p`,{style:{margin:0},children:[(0,Z.jsx)(`strong`,{children:`Note:`}),` We're currently using locally generated colors because the API is unavailable. The colors shown are all accessible with both black and white text (WCAG 4.5+).`]})}),(0,Z.jsxs)(`div`,{className:`filter-container`,style:{display:`none`},children:[(0,Z.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:`1rem`},children:[(0,Z.jsx)(`h2`,{style:{fontSize:`1rem`,fontWeight:`600`,margin:0},children:`Filter Accessible Colors`}),(0,Z.jsxs)(`div`,{style:{display:`flex`,gap:`12px`,alignItems:`center`},children:[(0,Z.jsx)(`span`,{style:{fontSize:`12px`,opacity:.8},children:`Mode:`}),(0,Z.jsxs)(`label`,{style:{display:`flex`,alignItems:`center`,gap:`6px`,cursor:`pointer`},children:[(0,Z.jsx)(`input`,{type:`checkbox`,checked:y,onChange:ce,style:{accentColor:`white`}}),(0,Z.jsx)(`span`,{style:{fontSize:`12px`},children:`Random Pages`})]})]})]}),(0,Z.jsxs)(`div`,{className:`filter-row`,children:[(0,Z.jsxs)(`div`,{className:`filter-group`,children:[(0,Z.jsx)(`span`,{className:`filter-label`,children:`Hue Range (0-360°)`}),(0,Z.jsxs)(`div`,{className:`range-inputs`,children:[(0,Z.jsx)(`input`,{type:`number`,min:`0`,max:`360`,placeholder:`Min`,className:`filter-input`,onChange:e=>K(`minHue`,e.target.value?parseInt(e.target.value):void 0)}),(0,Z.jsx)(`span`,{children:`to`}),(0,Z.jsx)(`input`,{type:`number`,min:`0`,max:`360`,placeholder:`Max`,className:`filter-input`,onChange:e=>K(`maxHue`,e.target.value?parseInt(e.target.value):void 0)})]})]}),(0,Z.jsxs)(`div`,{className:`filter-group`,children:[(0,Z.jsx)(`span`,{className:`filter-label`,children:`Saturation (0-1)`}),(0,Z.jsxs)(`div`,{className:`range-inputs`,children:[(0,Z.jsx)(`input`,{type:`number`,min:`0`,max:`1`,step:`0.1`,placeholder:`Min`,className:`filter-input`,onChange:e=>K(`minSaturation`,e.target.value?parseFloat(e.target.value):void 0)}),(0,Z.jsx)(`span`,{children:`to`}),(0,Z.jsx)(`input`,{type:`number`,min:`0`,max:`1`,step:`0.1`,placeholder:`Max`,className:`filter-input`,onChange:e=>K(`maxSaturation`,e.target.value?parseFloat(e.target.value):void 0)})]})]}),(0,Z.jsxs)(`div`,{className:`filter-group`,children:[(0,Z.jsx)(`span`,{className:`filter-label`,children:`Lightness (0-1)`}),(0,Z.jsxs)(`div`,{className:`range-inputs`,children:[(0,Z.jsx)(`input`,{type:`number`,min:`0`,max:`1`,step:`0.1`,placeholder:`Min`,className:`filter-input`,onChange:e=>K(`minLightness`,e.target.value?parseFloat(e.target.value):void 0)}),(0,Z.jsx)(`span`,{children:`to`}),(0,Z.jsx)(`input`,{type:`number`,min:`0`,max:`1`,step:`0.1`,placeholder:`Max`,className:`filter-input`,onChange:e=>K(`maxLightness`,e.target.value?parseFloat(e.target.value):void 0)})]})]})]}),(0,Z.jsx)(`button`,{className:`apply-button`,onClick:se,children:`Apply Filters`})]}),(0,Z.jsxs)(`div`,{style:{padding:`2rem 1rem`,marginBottom:`1rem`},children:[(0,Z.jsxs)(`div`,{className:`grid cols-1 cols-2-m`,children:[(0,Z.jsx)(`h4`,{className:`f6`,style:{marginBottom:0,maxWidth:`45ch`},children:`Colors that are accessible with both black and white `}),(0,Z.jsx)(`p`,{style:{lineHeight:1.5,maxWidth:`45ch`,fontSize:`14px`},children:`An exhaustive list of all hex colors that have a contrast of 4.5 or greater with both white and black in the WCAG 2.1 contrast algorithm.`})]}
621),(0,Z.jsxs)(`div`,{className:`sort-controls`,style:{display:`none`},children:[(0,Z.jsx)(`span`,{style:{fontSize:`12px`,opacity:.8},children:`Sort:`}),(0,Z.jsx)(`button`,{className:`sort-button ${C===`random`?`active`:``}`,onClick:()=>G(`random`),children:`Random`}),(0,Z.jsx)(`button`,{className:`sort-button ${C===`hue`?`active`:``}`,onClick:()=>G(`hue`),children:`By Hue`}),(0,Z.jsx)(`button`,{className:`sort-button ${C===`lightness`?`active`:``}`,onClick:()=>G(`lightness`),children:`By Lightness`}),(0,Z.jsx)(`button`,{className:`sort-button`,onClick:ae,style:{marginLeft:`auto`},children:`Shuffle`})]})]}),(0,Z.jsx)(`div`,{className:`color-grid`,children:ie().map((e,t)=>(0,Z.jsxs)(`div`,{className:`color-item`,style:{backgroundColor:e.hex},onClick:()=>oe(e.hex),title:`Click to copy ${e.hex}`,children:[(0,Z.jsxs)(`div`,{className:`color-info`,children:[(0,Z.jsx)(`div`,{style:{color:L?`#000`:`#fff`},children:e.hex}),(0,Z.jsxs)(`div`,{style:{marginTop:`4px`,display:`flex`,justifyContent:`space-between`},children:[(0,Z.jsxs)(`section`,{children:[(0,Z.jsx)(`span`,{style:{background:`white`,height:`6px`,width:`6px`,display:`inline-block`,marginRight:`4px`}}),e.wcag_white]}),(0,Z.jsxs)(`section`,{children:[(0,Z.jsx)(`span`,{style:{background:`black`,height:`6px`,width:`6px`,display:`inline-block`,marginRight:`4px`}}),(0,Z.jsx)(`span`,{style:{color:`black`},children:e.wcag_black})]})]})]}),u===e.hex&&(0,Z.jsx)(`div`,{className:`copied-indicator`,children:`Copied!`})]},e.hex+t))}),e.length>0&&o&&(0,Z.jsx)(`div`,{ref:U,"aria-hidden":`true`,className:`load-more-sentinel`}),i&&e.length===0&&(0,Z.jsx)(`div`,{className:`loading-indicator`,children:(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`p`,{className:`loading-palette-caption`,style:{color:L?`#fff`:`#000`},children:`Loading colorsâ¦`}),(0,Z.jsx)(`div`,{style:{width:`512px`,height:`8px`,margin:`0.75rem auto 0`,borderRadius:`99px`,background:`linear-gradient(127deg, ${E$.slice(0,5).map(e=>e.hex).join(`, `)})`,backgroundSize:`200% 100%`,animation:`loadingGradientShift 4s ease-in-out infinite`}})]})}),!o&&!i&&e.length>0&&(0,Z.jsx)(`div`,{style:{textAlign:`center`,padding:`2rem`,opacity:.5},children:`You've reached the end of the color list ð¨`})]})}var k$=JSON.parse(`[{"hex":"#d6403d","hue":1.18,"saturation":0.651,"lightness":0.539,"wcag_white":4.51,"wcag_black":4.66},{"hex":"#d6403c","hue":1.56,"saturation":0.653,"lightness":0.537,"wcag_white":4.51,"wcag_black":4.66},{"hex":"#d6403b","hue":1.94,"saturation":0.654,"lightness":0.535,"wcag_white":4.51,"wcag_black":4.66},{"hex":"#d6403a","hue":2.31,"saturation":0.655,"lightness":0.533,"wcag_white":4.51,"wcag_black":4.65},{"hex":"#d64039","hue":2.68,"saturation":0.657,"lightness":0.531,"wcag_white":4.51,"wcag_black":4.65},{"hex":"#d64038","hue":3.04,"saturation":0.658,"lightness":0.529,"wcag_white":4.52,"wcag_black":4.65},{"hex":"#d64037","hue":3.4,"saturation":0.66,"lightness":0.527,"wcag_white":4.52,"wcag_black":4.65},{"hex":"#d64036","hue":3.75,"saturation":0.661,"lightness":0.525,"wcag_white":4.52,"wcag_black":4.65},{"hex":"#d64035","hue":4.1,"saturation":0.663,"lightness":0.524,"wcag_white":4.52,"wcag_black":4.64},{"hex":"#d64034","hue":4.44,"saturation":0.664,"lightness":0.522,"wcag_white":4.52,"wcag_black":4.64},{"hex":"#d64033","hue":4.79,"saturation":0.665,"lightness":0.52,"wcag_white":4.53,"wcag_black":4.64},{"hex":"#d64032","hue":5.12,"saturation":0.667,"lightness":0.518,"wcag_white":4.53,"wcag_black":4.64},{"hex":"#d64031","hue":5.45,"saturation":0.668,"lightness":0.516,"wcag_white":4.53,"wcag_black":4.64},{"hex":"#d64030","hue":5.78,"saturation":0.669,"lightness":0.514,"wcag_white":4.53,"wcag_black":4.64},{"hex":"#d6402f","hue":6.11,"saturation":0.671,"lightness":0.512,"wcag_white":4.53,"wcag_black":4.63},{"hex":"#d6402e","hue":6.43,"saturation":0.672,"lightness":0.51,"wcag_white":4.53,"wcag_black":4.63},{"hex":"#508300","hue":83.36,"saturation":1,"lightness":0.257,"wcag_white":4.58,"wcag_black":4.59},{"hex":"#508301","hue":83.54,"saturation":0.985,"lightness":0.259,"wcag_white":4.58,"wcag_black":4.59},{"hex":"#508302","hue":83.72,"saturation":0.97,"lightness":0.261,"wcag_white":4.58,"wcag_black":4.59},{"hex":"#508303","hue":83.91,"saturation":0.955,"lightness":0.263,"wcag_white":4.58,"wcag_black":4.59},{"hex":"#508304","hue":84.09,"saturation":0.941,"lightness":0.265,"wcag_white":4.58,"wcag_black":4.59},{"hex":"#508305","hue":84.29,"saturation":0.926,"lightness":0.267,"wcag_white":4.58,"wcag_black":4.59},{"hex":"#508306","hue":84.48,"saturation":0.912,"lightness":0.269,"wcag_white":4.57,"wcag_black":4.59},{"hex":"#508307","hue":84.68,"saturation":0.899,"lightness":0.271,"wcag_white":4.57,"wcag_black":4.59},{"hex":"#508308","hue":84.88,"saturation":0.885,"lightness":0.273,"wcag_white":4.57,"wcag_black":4.59},{"hex":"#508309","hue":85.08,"saturation":0.871,"lightness":0.275,"wcag_white":4.57,"wcag_black":4.59},{"hex":"#50830a","hue":85.29,"saturation":0.858,"lightness":0.276,"wcag_white":4.57,"wcag_black":4.59},{"hex":"#50830b","hue":85.5,"saturation":0.845,"lightness":0.278,"wcag_white":4.57,"wcag_black":4.59},{"hex":"#50830c","hue":85.71,"saturation":0.832,"lightness":0.28,"wcag_white":4.57,"wcag_black":4.59},{"hex":"#50830d","hue":85.93,"saturation":0.819,"lightness":0.282,"wcag_white":4.57,"wcag_black":4.59},{"hex":"#50830e","hue":86.15,"saturation":0.807,"lightness":0.284,"wcag_white":4.57,"wcag_black":4.59},{"hex":"#50830f","hue":86.38,"saturation":0.795,"lightness":0.286,"wcag_white":4.57,"wcag_black":4.59},{"hex":"#3a841f","hue":103.96,"saturation":0.62,"lightness":0.32,"wcag_white":4.67,"wcag_black":4.5},{"hex":"#3a8420","hue":104.4,"saturation":0.61,"lightness":0.322,"wcag_white":4.67,"wcag_black":4.5},{"hex":"#3a8421","hue":104.85,"saturation":0.6,"lightness":0.324,"wcag_white":4.66,"wcag_black":4.5},{"hex":"#3a8422","hue":105.31,"saturation":0.59,"lightness":0.325,"wcag_white":4.66,"wcag_black":4.5},{"hex":"#3a8423","hue":105.77,"saturation":0.581,"lightness":0.327,"wcag_white":4.66,"wcag_black":4.5},{"hex":"#3a8424","hue":106.25,"saturation":0.571,"lightness":0.329,"wcag_white":4.66,"wcag_black":4.51},{"hex":"#3a8425","hue":106.74,"saturation":0.562,"lightness":0.331,"wcag_white":4.66,"wcag_black":4.51},{"hex":"#3a8426","hue":107.23,"saturation":0.553,"lightness":0.333,"wcag_white":4.66,"wcag_black":4.51},{"hex":"#3a8427","hue":107.74,"saturation":0.544,"lightness":0.335,"wcag_white":4.66,"wcag_black":4.51},{"hex":"#3a8428","hue":108.26,"saturation":0.535,"lightness":0.337,"wcag_white":4.66,"wcag_black":4.51},{"hex":"#3a8429","hue":108.79,"saturation":0.526,"lightness":0.339,"wcag_white":4.65,"wcag_black":4.51},{"hex":"#3a842a","hue":109.33,"saturation":0.517,"lightness":0.341,"wcag_white":4.65,"wcag_black":4.51},{"hex":"#3a8349","hue":132.33,"saturation":0.386,"lightness":0.371,"wcag_white":4.64,"wcag_black":4.52},{"hex":"#3a834a","hue":133.15,"saturation":0.386,"lightness":0.371,"wcag_white":4.64,"wcag_black":4.53},{"hex":"#3a834b","hue":133.97,"saturation":0.386,"lightness":0.371,"wcag_white":4.64,"wcag_black":4.53},{"hex":"#3a834c","hue":134.79,"saturation":0.386,"lightness":0.371,"wcag_white":4.63,"wcag_black":4.53},{"hex":"#577f67","hue":144,"saturation":0.187,"lightness":0.42,"wcag_white":4.53,"wcag_black":4.64},{"hex":"#577f68","hue":145.5,"saturation":0.187,"lightness":0.42,"wcag_white":4.52,"wcag_black":4.64},{"hex":"#577f69","hue":147,"saturation":0.187,"lightness":0.42,"wcag_white":4.52,"wcag_black":4.64},{"hex":"#587c69","hue":148.33,"saturation":0.17,"lightness":0.416,"wcag_white":4.66,"wcag_black":4.5},{"hex":"#577f6a","hue":148.5,"saturation":0.187,"lightness":0.42,"wcag_white":4.52,"wcag_black":4.65},{"hex":"#577f6b","hue":150,"saturation":0.187,"lightness":0.42,"wcag_white":4.51,"wcag_black":4.65},{"hex":"#577f6c","hue":151.5,"saturation":0.187,"lightness":0.42,"wcag_white":4.51,"wcag_black":4.66},{"hex":"#577f6d","hue":153,"saturation":0.187,"lightness":0.42,"wcag_white":4.5,"wcag_black":4.66},{"hex":"#577f6e","hue":154.5,"saturation":0.187,"lightness":0.42,"wcag_white":4.5,"wcag_black":4.67},{"hex":"#587b74","hue":168,"saturation":0.166,"lightness":0.414,"wcag_white":4.67,"wcag_black":4.5},{"hex":"#587b75","hue":169.71,"saturation":0.166,"lightness":0.414,"wcag_white":4.66,"wcag_black":4.5},{"hex":"#587b76","hue":171.43,"saturation":0.166,"lightness":0.414,"wcag_white":4.66,"wcag_black":4.51},{"hex":"#587b77","hue":173.14,"saturation":0.166,"lightness":0.414,"wcag_white":4.65,"wcag_black":4.51},{"hex":"#587b78","hue":174.86,"saturation":0.166,"lightness":0.414,"wcag_white":4.65,"wcag_black":4.52},{"hex":"#587b79","hue":176.57,"saturation":0.166,"lightness":0.414,"wcag_white":4.64,"wcag_black":4.52}
621,{"hex":"#587b7a","hue":178.29,"saturation":0.166,"lightness":0.414,"wcag_white":4.64,"wcag_black":4.53},{"hex":"#1e8282","hue":180,"saturation":0.625,"lightness":0.314,"wcag_white":4.59,"wcag_black":4.57},{"hex":"#1e8283","hue":180.59,"saturation":0.627,"lightness":0.316,"wcag_white":4.59,"wcag_black":4.58},{"hex":"#1e818d","hue":186.49,"saturation":0.649,"lightness":0.335,"wcag_white":4.59,"wcag_black":4.58},{"hex":"#1e818e","hue":186.96,"saturation":0.651,"lightness":0.337,"wcag_white":4.58,"wcag_black":4.59},{"hex":"#1e818f","hue":187.43,"saturation":0.653,"lightness":0.339,"wcag_white":4.57,"wcag_black":4.59},{"hex":"#1e8190","hue":187.89,"saturation":0.655,"lightness":0.341,"wcag_white":4.57,"wcag_black":4.6},{"hex":"#1e8191","hue":188.35,"saturation":0.657,"lightness":0.343,"wcag_white":4.56,"wcag_black":4.6},{"hex":"#1e8192","hue":188.79,"saturation":0.659,"lightness":0.345,"wcag_white":4.55,"wcag_black":4.61},{"hex":"#1e8193","hue":189.23,"saturation":0.661,"lightness":0.347,"wcag_white":4.55,"wcag_black":4.62},{"hex":"#1e8194","hue":189.66,"saturation":0.663,"lightness":0.349,"wcag_white":4.54,"wcag_black":4.62},{"hex":"#1e8195","hue":190.08,"saturation":0.665,"lightness":0.351,"wcag_white":4.54,"wcag_black":4.63},{"hex":"#1e8196","hue":190.5,"saturation":0.667,"lightness":0.353,"wcag_white":4.53,"wcag_black":4.64},{"hex":"#1e8197","hue":190.91,"saturation":0.669,"lightness":0.355,"wcag_white":4.52,"wcag_black":4.64},{"hex":"#1e8198","hue":191.31,"saturation":0.67,"lightness":0.357,"wcag_white":4.52,"wcag_black":4.65},{"hex":"#1e8199","hue":191.71,"saturation":0.672,"lightness":0.359,"wcag_white":4.51,"wcag_black":4.66},{"hex":"#1e819a","hue":192.1,"saturation":0.674,"lightness":0.361,"wcag_white":4.5,"wcag_black":4.66},{"hex":"#566bd9","hue":230.38,"saturation":0.633,"lightness":0.594,"wcag_white":4.67,"wcag_black":4.5},{"hex":"#566bda","hue":230.45,"saturation":0.641,"lightness":0.596,"wcag_white":4.66,"wcag_black":4.51},{"hex":"#566bdb","hue":230.53,"saturation":0.649,"lightness":0.598,"wcag_white":4.64,"wcag_black":4.52},{"hex":"#566bdc","hue":230.6,"saturation":0.657,"lightness":0.6,"wcag_white":4.63,"wcag_black":4.53},{"hex":"#566bdd","hue":230.67,"saturation":0.665,"lightness":0.602,"wcag_white":4.62,"wcag_black":4.54},{"hex":"#566bde","hue":230.74,"saturation":0.673,"lightness":0.604,"wcag_white":4.61,"wcag_black":4.55},{"hex":"#566bdf","hue":230.8,"saturation":0.682,"lightness":0.606,"wcag_white":4.6,"wcag_black":4.56},{"hex":"#566be0","hue":230.87,"saturation":0.69,"lightness":0.608,"wcag_white":4.59,"wcag_black":4.58},{"hex":"#566be1","hue":230.94,"saturation":0.698,"lightness":0.61,"wcag_white":4.58,"wcag_black":4.59},{"hex":"#566be2","hue":231,"saturation":0.707,"lightness":0.612,"wcag_white":4.57,"wcag_black":4.6},{"hex":"#566be3","hue":231.06,"saturation":0.716,"lightness":0.614,"wcag_white":4.56,"wcag_black":4.61},{"hex":"#566be4","hue":231.13,"saturation":0.724,"lightness":0.616,"wcag_white":4.55,"wcag_black":4.62},{"hex":"#566be5","hue":231.19,"saturation":0.733,"lightness":0.618,"wcag_white":4.54,"wcag_black":4.63},{"hex":"#566ae9","hue":231.84,"saturation":0.77,"lightness":0.625,"wcag_white":4.53,"wcag_black":4.63},{"hex":"#566aea","hue":231.89,"saturation":0.779,"lightness":0.627,"wcag_white":4.52,"wcag_black":4.65},{"hex":"#566aeb","hue":231.95,"saturation":0.788,"lightness":0.629,"wcag_white":4.51,"wcag_black":4.66},{"hex":"#d316c1","hue":305.71,"saturation":0.811,"lightness":0.457,"wcag_white":4.51,"wcag_black":4.65},{"hex":"#d316c0","hue":306.03,"saturation":0.811,"lightness":0.457,"wcag_white":4.52,"wcag_black":4.65},{"hex":"#d316bf","hue":306.35,"saturation":0.811,"lightness":0.457,"wcag_white":4.53,"wcag_black":4.64},{"hex":"#d316be","hue":306.67,"saturation":0.811,"lightness":0.457,"wcag_white":4.54,"wcag_black":4.63},{"hex":"#d316bd","hue":306.98,"saturation":0.811,"lightness":0.457,"wcag_white":4.55,"wcag_black":4.62},{"hex":"#d316bc","hue":307.3,"saturation":0.811,"lightness":0.457,"wcag_white":4.55,"wcag_black":4.61},{"hex":"#d316bb","hue":307.62,"saturation":0.811,"lightness":0.457,"wcag_white":4.56,"wcag_black":4.6},{"hex":"#d316ba","hue":307.94,"saturation":0.811,"lightness":0.457,"wcag_white":4.57,"wcag_black":4.59}
621,{"hex":"#d316b9","hue":308.25,"saturation":0.811,"lightness":0.457,"wcag_white":4.58,"wcag_black":4.59},{"hex":"#d316b8","hue":308.57,"saturation":0.811,"lightness":0.457,"wcag_white":4.59,"wcag_black":4.58},{"hex":"#d316b7","hue":308.89,"saturation":0.811,"lightness":0.457,"wcag_white":4.6,"wcag_black":4.57},{"hex":"#d316b6","hue":309.21,"saturation":0.811,"lightness":0.457,"wcag_white":4.61,"wcag_black":4.56},{"hex":"#d316b5","hue":309.52,"saturation":0.811,"lightness":0.457,"wcag_white":4.61,"wcag_black":4.55},{"hex":"#d316b4","hue":309.84,"saturation":0.811,"lightness":0.457,"wcag_white":4.62,"wcag_black":4.54},{"hex":"#d316b3","hue":310.16,"saturation":0.811,"lightness":0.457,"wcag_white":4.63,"wcag_black":4.54},{"hex":"#d316b2","hue":310.48,"saturation":0.811,"lightness":0.457,"wcag_white":4.64,"wcag_black":4.53},{"hex":"#e4006c","hue":331.58,"saturation":1,"lightness":0.447,"wcag_white":4.65,"wcag_black":4.52},{"hex":"#e4006b","hue":331.84,"saturation":1,"lightness":0.447,"wcag_white":4.66,"wcag_black":4.51},{"hex":"#e4006a","hue":332.11,"saturation":1,"lightness":0.447,"wcag_white":4.66,"wcag_black":4.51},{"hex":"#e40069","hue":332.37,"saturation":1,"lightness":0.447,"wcag_white":4.66,"wcag_black":4.5},{"hex":"#e32b36","hue":356.41,"saturation":0.767,"lightness":0.529,"wcag_white":4.5,"wcag_black":4.66},{"hex":"#e32b35","hue":356.74,"saturation":0.767,"lightness":0.529,"wcag_white":4.5,"wcag_black":4.66},{"hex":"#e32b34","hue":357.07,"saturation":0.767,"lightness":0.529,"wcag_white":4.51,"wcag_black":4.66},{"hex":"#e32b33","hue":357.39,"saturation":0.767,"lightness":0.529,"wcag_white":4.51,"wcag_black":4.66},{"hex":"#e32b32","hue":357.72,"saturation":0.767,"lightness":0.529,"wcag_white":4.51,"wcag_black":4.66},{"hex":"#e32b31","hue":358.04,"saturation":0.767,"lightness":0.529,"wcag_white":4.51,"wcag_black":4.66},{"hex":"#e32b30","hue":358.37,"saturation":0.767,"lightness":0.529,"wcag_white":4.51,"wcag_black":4.65},{"hex":"#e32b2f","hue":358.7,"saturation":0.767,"lightness":0.529,"wcag_white":4.51,"wcag_black":4.65},{"hex":"#e32b2e","hue":359.02,"saturation":0.767,"lightness":0.529,"wcag_white":4.51,"wcag_black":4.65},{"hex":"#e32c2e","hue":359.34,"saturation":0.766,"lightness":0.531,"wcag_white":4.5,"wcag_black":4.67},{"hex":"#e32b2d","hue":359.35,"saturation":0.767,"lightness":0.529,"wcag_white":4.52,"wcag_black":4.65},{"hex":"#e32c2d","hue":359.67,"saturation":0.766,"lightness":0.531,"wcag_white":4.5,"wcag_black":4.66}]`);function A$(e,t){switch(e){case`conic`:return`conic-gradient(from ${t.angle}deg in oklch, ${t.c1}, ${t.c2})`;case`radial`:return`radial-gradient(circle in oklch, ${t.c1}, ${t.c2})`;default:return`linear-gradient(${t.angle}deg in oklch, ${t.c1}, ${t.c2})`}}var j$=`https://accessible-colors-api.adam-f8f.workers.dev/api/colors/filter`,M$=2900,N$=32,P$=48,F$=2200,I$=900,L$=3200,R$=420,z$=[{min:0,max:45},{min:45,max:90},{min:90,max:135},{min:135,max:180},{min:180,max:225},{min:225,max:270},{min:270,max:315},{min:315,max:360}],B$=[0,30,45,60,90,120,135,150,180],V$=[{hex:`#e02943`},{hex:`#a041f8`},{hex:`#c1497b`},{hex:`#d14162`},{hex:`#d14300`},{hex:`#e4037c`},{hex:`#bc5a02`},{hex:`#a852bc`},{hex:`#647b57`},{hex:`#5d62f3`},{hex:`#06873b`},{hex:`#3c8622`},{hex:`#3d66fe`},{hex:`#a947d2`},{hex:`#556be8`},{hex:`#e42b14`},{hex:`#697f00`}];function H$(e){return e?.hex?{hex:e.hex}:null}var U$=k$.map(H$).filter(Boolean),W$=U$.length>=2?U$:V$.map(e=>H$(e)).filter(Boolean);function G$(e){return function(){let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function K$(e,t){let n=e.slice(),r=G$(t);for(let e=n.length-1;e>0;e--){let t=Math.floor(r()*(e+1));[n[e],n[t]]=[n[t],n[e]]}return n}function q$(){if(typeof crypto<`u`&&crypto.getRandomValues){let e=new Uint32Array(1);return crypto.getRandomValues(e),e[0]}return Math.random()*4294967296>>>0}function J$(e){let t=[],n=0;for(let r=0;r<e.length;r++){let i=e[r]?.hex;if(i)for(let a=r+1;a<e.length;a++){let r=e[a]?.hex;r&&(t.push({c1:i,c2:r,angle:B$[n%B$.length]}),n++)}}return t}function Y$(e,t){let n=J$(e);if(n.length===0)return[];let r=K$(n,t);return r.slice(0,Math.min(L$,r.length))}
621function X$(e,t,n){let r=e.length;if(r<2)return[];let i=G$(n),a=[];for(let n=0;n<t*4&&a.length<t;n++){let t=Math.floor(i()*r),n=Math.floor(i()*r);if(t===n)continue;let o=e[t]?.hex,s=e[n]?.hex;if(!o||!s||o===s)continue;let c=i()<.5;a.push({c1:c?o:s,c2:c?s:o,angle:B$[Math.floor(i()*B$.length)]})}return a}async function Z$({min:e,max:t},n){try{let r=`${j$}?page=${n}&pageSize=${N$}&minHue=${e}&maxHue=${t}&minSaturation=0.14&minLightness=0.2&maxLightness=0.82`,i=await fetch(r);if(!i.ok)throw Error(`${i.status}`);let a=await i.json();return Array.isArray(a)?a:a?.data||[]}catch{return[]}}function Q$(e,t,n){let r=[];outer1:for(let i of t){let t=i?.hex;if(t)for(let i of e){if(r.length>=n)break outer1;let e=i?.hex;!e||t===e||r.push({c1:t,c2:e,angle:B$[r.length%B$.length]})}}outer2:for(let e=0;e<t.length;e++){let i=t[e]?.hex;if(i)for(let a=e+1;a<t.length;a++){if(r.length>=n)break outer2;let e=t[a]?.hex;!e||i===e||r.push({c1:i,c2:e,angle:B$[r.length%B$.length]})}}return r}var $$=(0,_.memo)(function({g:e,index:t,batchMod:n,gradientKind:r,onCopy:i,copiedKey:a}){let o=A$(r,e),s=`${r}|${e.c1}|${e.c2}|${e.angle}`,c=r===`radial`?`RAD`:`${e.angle}°`;return(0,Z.jsxs)(`div`,{className:`pg-card`,style:{background:o,animationDelay:`${t%n*12}ms`},onClick:()=>i(e),title:o,children:[(0,Z.jsxs)(`div`,{className:`pg-card-samples`,children:[(0,Z.jsxs)(`div`,{className:`pg-sample`,style:{color:`#fff`},children:[(0,Z.jsx)(`span`,{className:`pg-sample-lg`,children:`Aa`}),(0,Z.jsx)(`span`,{className:`pg-sample-sm`,children:`White text`})]}),(0,Z.jsxs)(`div`,{className:`pg-sample`,style:{color:`#000`,textAlign:`right`},children:[(0,Z.jsx)(`span`,{className:`pg-sample-lg`,children:`Aa`}),(0,Z.jsx)(`span`,{className:`pg-sample-sm`,children:`Black text`})]})]}),(0,Z.jsxs)(`div`,{className:`pg-card-meta`,children:[(0,Z.jsx)(`span`,{style:{color:`#fff`},children:e.c1}),(0,Z.jsx)(`span`,{className:`pg-tag`,style:{background:`rgba(0,0,0,0.25)`,color:`#fff`},children:c}),(0,Z.jsx)(`span`,{style:{color:`#000`},children:e.c2})]}),a===s&&(0,Z.jsx)(`div`,{className:`pg-copied`,children:`Copied CSS!`})]})});function e1(){let e=(0,_.useRef)(null);if(e.current===null){let t=q$(),n=Y$(W$,t);n.length===0&&(n=K$([{c1:`#e02943`,c2:`#3d66fe`,angle:90},{c1:`#06873b`,c2:`#a041f8`,angle:45},{c1:`#d14300`,c2:`#5d62f3`,angle:120}],t^3039406031));let r=Math.min(96,Math.max(P$,Math.min(n.length,96)));e.current={seed:t,grads:n,visible:r}}let t=(0,_.useRef)(e.current.seed);t.current=e.current.seed;let n=(0,_.useRef)(0),r=(0,_.useRef)(!1),[i,a]=(0,_.useState)(W$),[o,s]=(0,_.useState)(()=>e.current.grads),[c,l]=(0,_.useState)(()=>e.current.visible),[u,d]=(0,_.useState)(!0),[f,p]=(0,_.useState)(`linear`),[m,h]=(0,_.useState)(null),g=(0,_.useRef)(null),v=(0,_.useRef)(z$.map(()=>Math.floor(Math.random()*M$)+1)),y=(0,_.useRef)(z$.map(()=>Math.floor(Math.random()*11)+3)),b=(0,_.useRef)(new Set(W$.map(e=>e.hex))),x=(0,_.useRef)(!1),S=(0,_.useRef)(!1),C=(0,_.useRef)(W$),w=(0,_.useRef)(e.current.grads.length),T=(0,_.useRef)(e.current.visible),E=(0,_.useRef)(e.current.grads.length);(0,_.useEffect)(()=>{C.current=i},[i]),(0,_.useEffect)(()=>{w.current=o.length},[o.length]),(0,_.useEffect)(()=>{T.current=c},[c]);let D=(0,_.useCallback)(e=>{if(!e?.length)return;let t=K$(e,q$());s(e=>e.concat(t))},[]),O=(0,_.useCallback)(async()=>{if(x.current)return 0;x.current=!0;try{let e=await Promise.all(z$.map((e,t)=>Z$(e,v.current[t])));v.current=v.current.map((e,t)=>{let n=e+y.current[t];return n>M$?n%M$||1:n});let r=[];for(let t of e)for(let e of t){if(!e?.hex||b.current.has(e.hex))continue;b.current.add(e.hex);let t=H$(e);t&&r.push(t)}if(r.length===0&&b.current.size===0){let e=V$.map(e=>H$(e)).filter(Boolean);return e.forEach(e=>b.current.add(e.hex)),a(e),C.current=e,0}if(r.length>0)return a(e=>{let t=Q$(e,r,I$);if(t.length>0){let e=K$(t,q$());s(t=>t.concat(e))}let n=[...e,...r];return C.current=n,n}),r.length;let i=C.current;if(i.length>=2){n.current+=1;let e=X$(i,R$,(t.current^n.current*2654435761)>>>0);e.length&&D(e)}return 0}catch(e){console.error(`Error loading gradient colors:`,e);let r=C.current;if(r.length>=2){n.current+=1;let e=X$(r,R$,(t.current^n.current*2246822507)>>>0);e.length&&D(e)}return 0}finally{x.current=!1}},[D]),k=(0,_.useCallback)(e=>{let t=A$(f,e),n=`${f}|${e.c1}|${e.c2}|${e.angle}`;navigator.clipboard.writeText(t).then(()=>{h(n),setTimeout(()=>h(null),1500)}).catch(()=>{})},[f]),A=o.length<=c?o:o.slice(0,c),j=(0,_.useCallback)(e=>{if(typeof requestIdleCallback==`function`){let t=requestIdleCallback(e,{timeout:1200});return()=>cancelIdleCallback(t)}let t=setTimeout(e,0);return()=>clearTimeout(t)},[]),M=(0,_.useCallback)(async()=>
621{if(!r.current){r.current=!0;try{let e=w.current-T.current;for(let t=0;t<8&&e<F$;t++){if(x.current){await new Promise(e=>setTimeout(e,40));continue}await O(),await new Promise(e=>requestAnimationFrame(()=>requestAnimationFrame(e))),e=w.current-T.current}}finally{r.current=!1}}},[O]);(0,_.useEffect)(()=>{let e=E.current,t=o.length;t>e&&(E.current=t,l(n=>n>=e-P$*2?Math.min(t,n+(t-e)):n))},[o.length]),(0,_.useEffect)(()=>{let e=g.current;if(!e)return;let t=new IntersectionObserver(([e])=>{if(!e.isIntersecting)return;let t=w.current;l(e=>Math.min(e+P$,t)),M()},{rootMargin:`900px 0px`,threshold:0});return t.observe(e),()=>t.disconnect()},[M]),(0,_.useEffect)(()=>{if(!(w.current-T.current>=F$))return j(()=>{M()})},[o.length,c,j,M]),(0,_.useEffect)(()=>{if(S.current)return;S.current=!0;let e=requestAnimationFrame(()=>{M()});return()=>cancelAnimationFrame(e)},[M]);let N=u?`#000`:`#fff`,P=u?`#fff`:`#000`;return(0,Z.jsxs)(`div`,{style:{minHeight:`100vh`,backgroundColor:N,color:P,paddingBottom:`2rem`,transition:`background-color 0.3s ease, color 0.3s ease`,"--bg":N,"--fg":P,"--bg-alt":P,"--fg-alt":N},className:`root`,children:[(0,Z.jsx)(`style`,{children:` 622 @keyframes pgFadeIn { 623 from { opacity: 0.65; } 624 to { opacity: 1; } 625 } 626 .pg-grid { 627 display: grid; 628 grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 629 gap: 4px; 630 padding: 0 1rem; 631 } 632 @media (min-width: 768px) { 633 .pg-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); } 634 } 635 @media (min-width: 1280px) { 636 .pg-grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); } 637 } 638 .pg-card { 639 aspect-ratio: 16 / 10; 640 cursor: pointer; 641 position: relative; 642 overflow: hidden; 643 display: flex; 644 flex-direction: column; 645 justify-content: space-between; 646 animation: pgFadeIn 0.22s ease both; 647 transition: transform 0.2s ease, box-shadow 0.2s ease; 648 z-index: 1; 649 contain: content; 650 content-visibility: auto; 651 contain-intrinsic-size: 340px 212px; 652 } 653 .pg-card:hover { 654 transform: scale(1.02); 655 z-index: 2; 656 box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); 657 } 658 .pg-card-samples { 659 display: flex; 660 justify-content: space-between; 661 align-items: flex-start; 662 padding: 20px 24px 0; 663 flex: 1; 664 } 665 .pg-sample { display: flex; flex-direction: column; gap: 4px; } 666 .pg-sample-lg { 667 font-size: 56px; 668 font-weight: 900; 669 line-height: 1; 670 letter-spacing: -0.02em; 671 } 672 .pg-sample-sm { 673 font-size: 13px; 674 font-weight: 500; 675 line-height: 1.4; 676 opacity: 0.9; 677 } 678 .pg-card-meta { 679 display: flex; 680 justify-content: space-between; 681 align-items: flex-end; 682 padding: 0 24px 16px; 683 font-family: monospace, monospace; 684 font-size: 11px; 685 } 686 .pg-tag { 687 font-size: 9px; 688 font-weight: 600; 689 letter-spacing: 0.08em; 690 text-transform: uppercase; 691 padding: 3px 8px; 692 border-radius: 2px; 693 } 694 .pg-copied { 695 position: absolute; 696 inset: 0; 697 display: flex; 698 align-items: center; 699 justify-content: center; 700 background: rgba(0, 0, 0, 0.88); 701 color: #fff; 702 font-weight: 700; 703 font-size: 13px; 704 font-family: monospace, monospace; 705 animation: pgFadeIn 0.12s ease; 706 } 707 .pg-theme-btn { 708 display: inline-flex; 709 align-items: center; 710 justify-content: center; 711 width: 40px; 712 height: 40px; 713 border: none; 714 border-radius: 8px; 715 background: transparent; 716 color: currentColor; 717 opacity: 0.7; 718 cursor: pointer; 719 transition: opacity 0.2s; 720 outline: 0; 721 } 722 .pg-theme-btn:hover { opacity: 1; } 723 .pg-sentinel { 724 min-height: 1px; 725 width: 100%; 726 pointer-events: none; 727 } 728 .pg-tabs-list { 729 display: inline-flex; 730 flex-wrap: wrap; 731 gap: 0; 732 padding: 3px; 733 border-radius: 10px; 734 border: 1px solid rgba(128, 128, 128, 0.35); 735 background: rgba(128, 128, 128, 0.08); 736 } 737 .pg-tabs-tab { 738 font-family: inherit; 739 font-size: 12px; 740 font-weight: 600; 741 letter-spacing: 0.04em; 742 text-transform: uppercase; 743 padding: 8px 14px; 744 border: none; 745 border-radius: 7px; 746 background: transparent; 747 color: inherit; 748 cursor: pointer; 749 opacity: 0.65; 750 transition: opacity 0.15s ease, background 0.15s ease; 751 outline: 0; 752 } 753 .pg-tabs-tab:hover { opacity: 0.95; } 754 .pg-tabs-tab[data-active] { 755 opacity: 1; 756 background: rgba(128, 128, 128, 0.22); 757 } 758 .pg-tabs-tab:focus-visible { 759 box-shadow: 0 0 0 2px currentColor; 760 } 761 `}),(0,Z.jsx)(`header`,{style:{position:`sticky`,top:0,left:0,right:0,zIndex:999,backgroundColor:N,color:P},children:(0,Z.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,padding:`1.25rem 1rem`},children:[(0,Z.jsxs)(`a`,{href:`/`,style:{textDecoration:`none`,color:P,display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,Z.jsx)(mz,{size:20}),(0,Z.jsx)(`span`,{style:{fontWeight:900,textTransform:`uppercase`,letterSpacing:`0.05em`,fontSize:`14px`},children:`RandomA11y`})]}),(0,Z.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`16px`},children:[(0,Z.jsxs)(`span`,{style:{fontFamily:`monospace`,fontSize:`10px`,opacity:.7}
761,children:[i.length,` colors · `,A.length.toLocaleString(),` shown ·`,` `,o.length.toLocaleString(),` loaded`]}),(0,Z.jsx)(`button`,{type:`button`,className:`pg-theme-btn`,onClick:()=>d(e=>!e),"aria-label":u?`Switch to light background`:`Switch to dark background`,children:u?(0,Z.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:`22`,height:`22`,stroke:`currentColor`,strokeWidth:`2`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,Z.jsx)(`circle`,{cx:`12`,cy:`12`,r:`5`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`1`,x2:`12`,y2:`3`}),(0,Z.jsx)(`line`,{x1:`12`,y1:`21`,x2:`12`,y2:`23`}),(0,Z.jsx)(`line`,{x1:`4.22`,y1:`4.22`,x2:`5.64`,y2:`5.64`}),(0,Z.jsx)(`line`,{x1:`18.36`,y1:`18.36`,x2:`19.78`,y2:`19.78`}),(0,Z.jsx)(`line`,{x1:`1`,y1:`12`,x2:`3`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`21`,y1:`12`,x2:`23`,y2:`12`}),(0,Z.jsx)(`line`,{x1:`4.22`,y1:`19.78`,x2:`5.64`,y2:`18.36`}),(0,Z.jsx)(`line`,{x1:`18.36`,y1:`5.64`,x2:`19.78`,y2:`4.22`})]}):(0,Z.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`22`,height:`22`,stroke:`currentColor`,strokeWidth:`2`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,Z.jsx)(`path`,{d:`M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z`})})})]})]})}),(0,Z.jsx)(`div`,{style:{padding:`2rem 1rem 1.5rem`},children:(0,Z.jsxs)(`div`,{style:{maxWidth:`60ch`},children:[(0,Z.jsx)(`h4`,{style:{fontSize:`16px`,fontWeight:700,marginBottom:`8px`,marginTop:0},children:`Accessible Gradients`}),(0,Z.jsx)(`p`,{style:{fontSize:`14px`,lineHeight:1.6,margin:0,opacity:.85},children:`Two-color gradients in OKLCH from colors that meet WCAG 4.5:1 with both black and white text. Each visit shuffles thousands of unique pairs from the seed palette; the list never ends (network + on-device variety). Click a card to copy CSS.`}),(0,Z.jsx)(`div`,{style:{marginTop:`1.25rem`},children:(0,Z.jsx)(SZ,{value:f,onValueChange:p,children:(0,Z.jsxs)(AZ,{className:`pg-tabs-list`,"aria-label":`Gradient type`,children:[(0,Z.jsx)(EZ,{value:`linear`,className:`pg-tabs-tab`,children:`Linear`}),(0,Z.jsx)(EZ,{value:`conic`,className:`pg-tabs-tab`,children:`Conic`}),(0,Z.jsx)(EZ,{value:`radial`,className:`pg-tabs-tab`,children:`Radial`})]})})})]})}),o.length===0&&(0,Z.jsx)(`div`,{style:{textAlign:`center`,padding:`3rem`,opacity:.6},children:`No gradients to show.`}),(0,Z.jsx)(`div`,{className:`pg-grid`,children:A.map((e,t)=>(0,Z.jsx)($$,{g:e,index:t,batchMod:P$,gradientKind:f,onCopy:k,copiedKey:m},`${e.c1}-${e.c2}-${e.angle}`))}),(0,Z.jsx)(`div`,{ref:g,className:`pg-sentinel`,"aria-hidden":`true`}),(0,Z.jsx)(`div`,{style:{textAlign:`center`,padding:`2rem 1rem`,opacity:.5},children:(0,Z.jsx)(`p`,{style:{margin:0,fontSize:`13px`},children:`Scroll for more â the feed keeps growing`})})]})}function t1(){let[e,t]=(0,_.useState)(window.location.pathname);return _.useEffect(()=>{let e=()=>{t(window.location.pathname)};return window.addEventListener(`popstate`,e),()=>{window.removeEventListener(`popstate`,e)}},[]),e===`/live`?(0,Z.jsx)($Q,{children:(0,Z.jsx)(T$,{})}):e===`/base-ui`?(0,Z.jsx)(`main`,{className:`pt7 px5 pb9 pt8-m px6-m pb9-m`,children:(0,Z.jsx)(`div`,{className:`center grid g4`,children:(0,Z.jsx)(GQ,{})})}):e===`/primary`?(0,Z.jsx)(O$,{}):e===`/primary-gradients`?(0,Z.jsx)(e1,{}):(0,Z.jsx)($Q,{children:(0,Z.jsx)(m$,{})})}v.createRoot(document.getElementById(`root`)).render((0,Z.jsx)(_.StrictMode,{children:(0,Z.jsx)(t1,{})}));
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.