dns-worker 1.1.7 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/serverfull.mjs +166 -166
  2. package/dist/serverfull.mjs.map +3 -3
  3. package/package.json +3 -3
  4. package/static/assets/{AccountView-Yowwz2Gg.js → AccountView-DE0I53v4.js} +3 -3
  5. package/static/assets/AnalyticsView-2koXmar8.js +2 -0
  6. package/static/assets/{DestinationMap-DoNQwdnV.js → DestinationMap-DvmffkR6.js} +1 -1
  7. package/static/assets/{FilteringView-DVmIVx_P.js → FilteringView-C3e7d__9.js} +1 -1
  8. package/static/assets/{LogsView-D1dRHMqS.js → LogsView-jNLLQ8le.js} +3 -3
  9. package/static/assets/{RulesView-DnQoSZ4S.js → RulesView-CnmSPz0p.js} +1 -1
  10. package/static/assets/{SettingsView-Ci0mrIcm.js → SettingsView-BKvenuLL.js} +1 -1
  11. package/static/assets/{SetupView-CfkQXcdY.js → SetupView-3fqqCCHL.js} +1 -1
  12. package/static/assets/{SwipeableDrawer-DW0I7SLC.js → SwipeableDrawer-B1CCYC-Y.js} +1 -1
  13. package/static/assets/{TrendChart-B8jOSMgO.js → TrendChart-bmtDyrNL.js} +1 -1
  14. package/static/assets/browser-DGSv7yOq.js +1 -0
  15. package/static/assets/date-DqJrNNA3.js +1 -0
  16. package/static/assets/{index-BDIG7T8u.js → index-D0aw4Fjy.js} +6 -6
  17. package/static/assets/{services-CcZhHzmI.js → services-DYNQDGKX.js} +1 -1
  18. package/static/assets/{useLogsE2ee-DR83v9Pr.js → useLogsE2ee-Ceq0lZyV.js} +1 -1
  19. package/static/assets/vendor-i18next-BC3ewzY3.js +1 -0
  20. package/static/assets/{vendor-react-BOaLEa_F.js → vendor-react-BtC4HVVO.js} +2 -2
  21. package/static/assets/{vendor-ui-core-C8brnfYc.js → vendor-ui-core-DUyKOLA8.js} +1 -1
  22. package/static/assets/{vendor-utils-DkfyN6f3.js → vendor-utils-xrsi4rSa.js} +1 -1
  23. package/static/index.html +5 -5
  24. package/static/sw.js +1 -1
  25. package/static/assets/AnalyticsView-C9e4mI_K.js +0 -2
  26. package/static/assets/browser-BRLLTlVv.js +0 -1
  27. package/static/assets/date-Cw6CNU-1.js +0 -1
  28. package/static/assets/vendor-i18next-BlwxMUL4.js +0 -1
@@ -1,4 +1,4 @@
1
- import{i as e,n as t,t as n}from"./rolldown-runtime-C4Xdq4VV.js";import{S as r,b as i,x as a}from"./vendor-icons-other-BTYC6Wvz.js";import{r as o}from"./vendor-i18next-BlwxMUL4.js";var s=n((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&&A(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&&A(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,ee=k.port2;k.port1.onmessage=D,O=function(){ee.postMessage(null)}}else O=function(){_(D,0)};function A(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,A(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}}}})),c=n(((e,t)=>{t.exports=s()})),l=n((e=>{var t=r();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 i(){}var a={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(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=a,e.browser=function(e){return{$$typeof:s,_reason:e}},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 l(e,t,null,r)},e.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.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,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,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=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.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=d(n,t.crossOrigin);a.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=d(t.as,t.crossOrigin);a.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,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.1`})),u=n(((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=l()})),d=n((e=>{var t=c(),n=r(),i=u();function a(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 o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function l(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 d(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 f(e){if(s(e)!==e)throw Error(a(188))}function p(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(a(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return f(i),e;if(o===r)return f(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var c=!1,l=i.child;l;){if(l===n){c=!0,n=i,r=o;break}if(l===r){c=!0,r=i,n=o;break}l=l.sibling}if(!c){for(l=o.child;l;){if(l===n){c=!0,n=o,r=i;break}if(l===r){c=!0,r=o,n=i;break}l=l.sibling}if(!c)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}function h(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&h(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function g(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function v(e){var t=[null,null],n=g(e);return n===null||y(t,e,n.child,{foundSelf:!1}),t}function y(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&y(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(a(559))}}var x=null,S=null;function C(e,t,n){return e===n?!0:e===t?(x=e,!0):!1}function w(e,t,n){return e===n?(S=e,!1):e===t?(S!==null&&(x=e),!0):!1}function T(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function E(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var D=Object.assign,O=Symbol.for(`react.element`),k=Symbol.for(`react.transitional.element`),ee=Symbol.for(`react.portal`),A=Symbol.for(`react.fragment`),j=Symbol.for(`react.strict_mode`),te=Symbol.for(`react.profiler`),ne=Symbol.for(`react.consumer`),re=Symbol.for(`react.context`),ie=Symbol.for(`react.forward_ref`),ae=Symbol.for(`react.suspense`),oe=Symbol.for(`react.suspense_list`),se=Symbol.for(`react.memo`),ce=Symbol.for(`react.lazy`),le=Symbol.for(`react.activity`),ue=Symbol.for(`react.legacy_hidden`),de=Symbol.for(`react.memo_cache_sentinel`),fe=Symbol.for(`react.view_transition`),pe=Symbol.for(`react.recoverable`),me=Symbol.iterator;function he(e){return typeof e!=`object`||!e?null:(e=me&&e[me]||e[`@@iterator`],typeof e==`function`?e:null)}var ge=Symbol.for(`react.client.reference`);function _e(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ge?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case A:return`Fragment`;case te:return`Profiler`;case j:return`StrictMode`;case ae:return`Suspense`;case oe:return`SuspenseList`;case le:return`Activity`;case fe:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case ee:return`Portal`;case re:return e.displayName||`Context`;case ne:return(e._context.displayName||`Context`)+`.Consumer`;case ie:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case se:return t=e.displayName||null,t===null?_e(e.type)||`Memo`:t;case ce:t=e._payload,e=e._init;try{return _e(e(t))}catch{}}return null}var ve=Array.isArray,M=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye={pending:!1,data:null,method:null,action:null},be=[],xe=-1;function Se(e){return{current:e}}function Ce(e){0>xe||(e.current=be[xe],be[xe]=null,xe--)}function P(e,t){xe++,be[xe]=e.current,e.current=t}var we=Se(null),Te=Se(null),Ee=Se(null),De=Se(null);function Oe(e,t){switch(P(Ee,t),P(Te,e),P(we,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?dp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=dp(t),e=fp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}Ce(we),P(we,e)}function ke(){Ce(we),Ce(Te),Ce(Ee)}function Ae(e){var t=e.memoizedState;t!==null&&(ch._currentValue=t.memoizedState,P(De,e)),t=we.current;var n=fp(t,e.type);t!==n&&(P(Te,e),P(we,n))}function je(e){Te.current===e&&(Ce(we),Ce(Te)),De.current===e&&(Ce(De),ch._currentValue=ye)}var Me,Ne;function Pe(e){if(Me===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Me=t&&t[1]||``,Ne=-1<e.stack.indexOf(`
1
+ import{i as e,n as t,t as n}from"./rolldown-runtime-C4Xdq4VV.js";import{S as r,b as i,x as a}from"./vendor-icons-other-BTYC6Wvz.js";import{r as o}from"./vendor-i18next-BC3ewzY3.js";var s=n((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&&A(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&&A(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,ee=k.port2;k.port1.onmessage=D,O=function(){ee.postMessage(null)}}else O=function(){_(D,0)};function A(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,A(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}}}})),c=n(((e,t)=>{t.exports=s()})),l=n((e=>{var t=r();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 i(){}var a={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(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=a,e.browser=function(e){return{$$typeof:s,_reason:e}},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 l(e,t,null,r)},e.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.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,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,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=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.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=d(n,t.crossOrigin);a.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=d(t.as,t.crossOrigin);a.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,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.1`})),u=n(((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=l()})),d=n((e=>{var t=c(),n=r(),i=u();function a(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 o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function l(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 d(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 f(e){if(s(e)!==e)throw Error(a(188))}function p(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(a(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return f(i),e;if(o===r)return f(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var c=!1,l=i.child;l;){if(l===n){c=!0,n=i,r=o;break}if(l===r){c=!0,r=i,n=o;break}l=l.sibling}if(!c){for(l=o.child;l;){if(l===n){c=!0,n=o,r=i;break}if(l===r){c=!0,r=o,n=i;break}l=l.sibling}if(!c)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}function h(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&h(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function g(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function v(e){var t=[null,null],n=g(e);return n===null||y(t,e,n.child,{foundSelf:!1}),t}function y(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&y(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(a(559))}}var x=null,S=null;function C(e,t,n){return e===n?!0:e===t?(x=e,!0):!1}function w(e,t,n){return e===n?(S=e,!1):e===t?(S!==null&&(x=e),!0):!1}function T(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function E(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var D=Object.assign,O=Symbol.for(`react.element`),k=Symbol.for(`react.transitional.element`),ee=Symbol.for(`react.portal`),A=Symbol.for(`react.fragment`),j=Symbol.for(`react.strict_mode`),te=Symbol.for(`react.profiler`),ne=Symbol.for(`react.consumer`),re=Symbol.for(`react.context`),ie=Symbol.for(`react.forward_ref`),ae=Symbol.for(`react.suspense`),oe=Symbol.for(`react.suspense_list`),se=Symbol.for(`react.memo`),ce=Symbol.for(`react.lazy`),le=Symbol.for(`react.activity`),ue=Symbol.for(`react.legacy_hidden`),de=Symbol.for(`react.memo_cache_sentinel`),fe=Symbol.for(`react.view_transition`),pe=Symbol.for(`react.recoverable`),me=Symbol.iterator;function he(e){return typeof e!=`object`||!e?null:(e=me&&e[me]||e[`@@iterator`],typeof e==`function`?e:null)}var ge=Symbol.for(`react.client.reference`);function _e(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ge?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case A:return`Fragment`;case te:return`Profiler`;case j:return`StrictMode`;case ae:return`Suspense`;case oe:return`SuspenseList`;case le:return`Activity`;case fe:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case ee:return`Portal`;case re:return e.displayName||`Context`;case ne:return(e._context.displayName||`Context`)+`.Consumer`;case ie:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case se:return t=e.displayName||null,t===null?_e(e.type)||`Memo`:t;case ce:t=e._payload,e=e._init;try{return _e(e(t))}catch{}}return null}var ve=Array.isArray,M=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye={pending:!1,data:null,method:null,action:null},be=[],xe=-1;function Se(e){return{current:e}}function Ce(e){0>xe||(e.current=be[xe],be[xe]=null,xe--)}function P(e,t){xe++,be[xe]=e.current,e.current=t}var we=Se(null),Te=Se(null),Ee=Se(null),De=Se(null);function Oe(e,t){switch(P(Ee,t),P(Te,e),P(we,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?dp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=dp(t),e=fp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}Ce(we),P(we,e)}function ke(){Ce(we),Ce(Te),Ce(Ee)}function Ae(e){var t=e.memoizedState;t!==null&&(ch._currentValue=t.memoizedState,P(De,e)),t=we.current;var n=fp(t,e.type);t!==n&&(P(Te,e),P(we,n))}function je(e){Te.current===e&&(Ce(we),Ce(Te)),De.current===e&&(Ce(De),ch._currentValue=ye)}var Me,Ne;function Pe(e){if(Me===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Me=t&&t[1]||``,Ne=-1<e.stack.indexOf(`
2
2
  at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
3
3
  `+Me+e+Ne}var Fe=!1;function Ie(e,t){if(!e||Fe)return``;Fe=!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)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,`props`,{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,`props`,i))}}}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
4
  `),l=s.split(`
@@ -8,4 +8,4 @@ Error generating stack: `+e.message+`
8
8
  `+e.stack}}var ze=Object.prototype.hasOwnProperty,Be=t.unstable_scheduleCallback,Ve=t.unstable_cancelCallback,He=t.unstable_shouldYield,Ue=t.unstable_requestPaint,We=t.unstable_now,Ge=t.unstable_getCurrentPriorityLevel,Ke=t.unstable_ImmediatePriority,qe=t.unstable_UserBlockingPriority,Je=t.unstable_NormalPriority,Ye=t.unstable_LowPriority,Xe=t.unstable_IdlePriority,Ze=t.log,Qe=t.unstable_setDisableYieldValue,$e=null,et=null;function tt(e){if(typeof Ze==`function`&&Qe(e),et&&typeof et.setStrictMode==`function`)try{et.setStrictMode($e,e)}catch{}}var nt=Math.clz32?Math.clz32:at,rt=Math.log,it=Math.LN2;function at(e){return e>>>=0,e===0?32:31-(rt(e)/it|0)|0}var ot=256,st=262144,ct=4194304;function lt(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&-e;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 ut(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=lt(n))):i=lt(o):i=lt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=lt(n))):i=lt(o)):i=lt(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 dt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ft(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-nt(n),i=1<<r;t|=e[r],n&=~i}return t}function pt(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 mt(){var e=ct;return ct<<=1,!(ct&62914560)&&(ct=4194304),e}function ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function _t(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-nt(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&&vt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function vt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-nt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-nt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function bt(e,t){var n=t&-t;return n=n&42?1:xt(n),(n&(e.suspendedLanes|t))===0?n:0}function xt(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 St(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Ct(){var e=N.p;return e===0?(e=window.event,e===void 0?32:wh(e.type)):e}function wt(e,t){var n=N.p;try{return N.p=e,t()}finally{N.p=n}}var Tt=Math.random().toString(36).slice(2),Et=`__reactFiber$`+Tt,Dt=`__reactProps$`+Tt,Ot=`__reactContainer$`+Tt,kt=`__reactEvents$`+Tt,At=`__reactListeners$`+Tt,jt=`__reactHandles$`+Tt,Mt=`__reactResources$`+Tt,Nt=`__reactMarker$`+Tt,Pt=`__reactLoad$`+Tt;function Ft(e){delete e[Et],delete e[Dt],delete e[At],delete e[jt]}function It(e){var t;if(t=e[Et])return t;for(var n=e.parentNode;n;){if(t=n[Ot]||n[Et]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pm(e);e!==null;){if(n=e[Et])return n;e=pm(e)}return t}e=n,n=e.parentNode}return null}function Lt(e){if(e=e[Et]||e[Ot]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Rt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(a(33))}function zt(e){var t=e[Mt];return t||=e[Mt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Bt(e){e[Nt]=!0}function Vt(e){e[Pt]=void 0}var Ht=new Set,Ut={};function Wt(e,t){Gt(e,t),Gt(e+`Capture`,t)}function Gt(e,t){for(Ut[e]=t,e=0;e<t.length;e++)Ht.add(t[e])}var Kt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),qt={},Jt={};function Yt(e){return ze.call(Jt,e)?!0:ze.call(qt,e)?!1:Kt.test(e)?Jt[e]=!0:(qt[e]=!0,!1)}var F=!1;function Xt(){var e=F;return F=!1,e}function Zt(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 Qt(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 $t(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 en(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function tn(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function nn(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 rn(e){if(!e._valueTracker){var t=tn(e)?`checked`:`value`;e._valueTracker=nn(e,t,``+e[t])}}function an(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=tn(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}var on=/[\n"\\]/g;function sn(e){return e.replace(on,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function cn(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=``+en(t)):e.value!==``+en(t)&&(e.value=``+en(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):un(e,en(n)):o===`number`&&e.value==t?un(e,en(e.value)):un(e,en(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=``+en(s):e.removeAttribute(`name`)}function ln(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)){rn(e);return}n=n==null?``:``+en(n),t=t==null?n:``+en(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),rn(e)}function un(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function dn(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=``+en(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 fn(e,t,n){if(t!=null&&(t=``+en(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+en(n)}function pn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(a(92));if(ve(r)){if(1<r.length)throw Error(a(93));r=r[0]}n=r}n??=``,t=n}n=en(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),rn(e)}function mn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hn=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 gn(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||hn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function _n(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(a(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]=``,F=!0);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&(gn(e,i,r),F=!0)}else for(var o in t)t.hasOwnProperty(o)&&gn(e,o,t[o])}function vn(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 yn=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`],[`maskType`,`mask-type`],[`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`]]),bn=/^[\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 xn(e){return bn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Sn(){}var Cn=null;function wn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tn=null,En=null;function Dn(e){var t=Lt(e);if(t&&(e=t.stateNode)){var n=e[Dt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(cn(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="`+sn(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Dt]||null;if(!i)throw Error(a(90));cn(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&an(r)}break a;case`textarea`:fn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&dn(e,!!n.multiple,t,!1)}}}var On=!1;function kn(e,t,n){if(On)return e(t,n);On=!0;try{return e(t)}finally{if(On=!1,(Tn!==null||En!==null)&&(Bd(),Tn&&(t=Tn,e=En,En=Tn=null,Dn(t),e)))for(t=0;t<e.length;t++)Dn(e[t])}}function An(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Dt]||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(a(231,t,typeof n));return n}var jn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),Mn=!1;if(jn)try{var Nn={};Object.defineProperty(Nn,`passive`,{get:function(){Mn=!0}}),window.addEventListener(`test`,Nn,Nn),window.removeEventListener(`test`,Nn,Nn)}catch{Mn=!1}var Pn=null,Fn=null,In=null;function Ln(){if(In)return In;var e,t=Fn,n=t.length,r,i=`value`in Pn?Pn.value:Pn.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 In=i.slice(e,1<r?1-r:void 0)}function Rn(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 zn(){return!0}function Bn(){return!1}function Vn(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)?zn:Bn,this.isPropagationStopped=Bn,this}return D(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=zn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=zn)},persist:function(){},isPersistent:zn}),t}var Hn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Un=Vn(Hn),Wn=D({},Hn,{view:0,detail:0}),Gn=Vn(Wn),Kn,qn,Jn,Yn=D({},Wn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:or,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!==Jn&&(Jn&&e.type===`mousemove`?(Kn=e.screenX-Jn.screenX,qn=e.screenY-Jn.screenY):qn=Kn=0,Jn=e),Kn)},movementY:function(e){return`movementY`in e?e.movementY:qn}}),Xn=Vn(Yn),Zn=Vn(D({},Yn,{dataTransfer:0})),Qn=Vn(D({},Wn,{relatedTarget:0})),$n=Vn(D({},Hn,{animationName:0,elapsedTime:0,pseudoElement:0})),er=Vn(D({},Hn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),tr=Vn(D({},Hn,{data:0})),nr={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},rr={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},ir={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function ar(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ir[e])?!!t[e]:!1}function or(){return ar}var sr=Vn(D({},Wn,{key:function(e){if(e.key){var t=nr[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Rn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?rr[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:or,charCode:function(e){return e.type===`keypress`?Rn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Rn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),cr=Vn(D({},Yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),lr=Vn(D({},Hn,{submitter:0})),ur=Vn(D({},Wn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:or})),dr=Vn(D({},Hn,{propertyName:0,elapsedTime:0,pseudoElement:0})),fr=Vn(D({},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})),pr=Vn(D({},Hn,{newState:0,oldState:0,source:0})),mr=[9,13,27,32],hr=jn&&`CompositionEvent`in window,gr=null;jn&&`documentMode`in document&&(gr=document.documentMode);var _r=jn&&`TextEvent`in window&&!gr,vr=jn&&(!hr||gr&&8<gr&&11>=gr),yr=` `,br=!1;function xr(e,t){switch(e){case`keyup`:return mr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Sr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Cr=!1;function wr(e,t){switch(e){case`compositionend`:return Sr(t);case`keypress`:return t.which===32?(br=!0,yr):null;case`textInput`:return e=t.data,e===yr&&br?null:e;default:return null}}function Tr(e,t){if(Cr)return e===`compositionend`||!hr&&xr(e,t)?(e=Ln(),In=Fn=Pn=null,Cr=!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 vr&&t.locale!==`ko`?null:t.data;default:return null}}var Er={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 Dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Er[e.type]:t===`textarea`}function Or(e,t,n,r){Tn?En?En.push(r):En=[r]:Tn=r,t=Yf(t,`onChange`),0<t.length&&(n=new Un(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var kr=null,Ar=null;function jr(e){Hf(e,0)}function Mr(e){if(an(Rt(e)))return e}function Nr(e,t){if(e===`change`)return t}var Pr=!1;if(jn){var Fr;if(jn){var Ir=`oninput`in document;if(!Ir){var Lr=document.createElement(`div`);Lr.setAttribute(`oninput`,`return;`),Ir=typeof Lr.oninput==`function`}Fr=Ir}else Fr=!1;Pr=Fr&&(!document.documentMode||9<document.documentMode)}function Rr(){kr&&(kr.detachEvent(`onpropertychange`,zr),Ar=kr=null)}function zr(e){if(e.propertyName===`value`&&Mr(Ar)){var t=[];Or(t,Ar,e,wn(e)),kn(jr,t)}}function Br(e,t,n){e===`focusin`?(Rr(),kr=t,Ar=n,kr.attachEvent(`onpropertychange`,zr)):e===`focusout`&&Rr()}function Vr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Mr(Ar)}function Hr(e,t){if(e===`click`)return Mr(t)}function Ur(e,t){if(e===`input`||e===`change`)return Mr(t)}function Wr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Gr=typeof Object.is==`function`?Object.is:Wr;function Kr(e,t){if(Gr(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(!ze.call(t,i)||!Gr(e[i],t[i]))return!1}return!0}function qr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Jr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yr(e,t){var n=Jr(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=Jr(n)}}function Xr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=qr(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=qr(e.document)}return t}function Qr(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 $r=jn&&`documentMode`in document&&11>=document.documentMode,ei=null,ti=null,ni=null,ri=!1;function ii(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ri||ei==null||ei!==qr(r)||(r=ei,`selectionStart`in r&&Qr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ni&&Kr(ni,r)||(ni=r,r=Yf(ti,`onSelect`),0<r.length&&(t=new Un(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=ei)))}function ai(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var oi={animationend:ai(`Animation`,`AnimationEnd`),animationiteration:ai(`Animation`,`AnimationIteration`),animationstart:ai(`Animation`,`AnimationStart`),transitionrun:ai(`Transition`,`TransitionRun`),transitionstart:ai(`Transition`,`TransitionStart`),transitioncancel:ai(`Transition`,`TransitionCancel`),transitionend:ai(`Transition`,`TransitionEnd`)},si={},ci={};jn&&(ci=document.createElement(`div`).style,`AnimationEvent`in window||(delete oi.animationend.animation,delete oi.animationiteration.animation,delete oi.animationstart.animation),`TransitionEvent`in window||delete oi.transitionend.transition);function li(e){if(si[e])return si[e];if(!oi[e])return e;var t=oi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ci)return si[e]=t[n];return e}var ui=li(`animationend`),di=li(`animationiteration`),fi=li(`animationstart`),pi=li(`transitionrun`),mi=li(`transitionstart`),hi=li(`transitioncancel`),gi=li(`transitionend`),_i=new Map,vi=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(` `);vi.push(`scrollEnd`);function yi(e,t){_i.set(e,t),Wt(t,[e])}var bi=0;function xi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=xd.identifierPrefix;var n=bi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function Si(e){if(e==null||typeof e==`string`)return e;var t=null,n=kd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function Ci(e,t){return e=Si(e),t=Si(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var wi=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)},Ti=[],Ei=0,Di=0;function Oi(){for(var e=Ei,t=Di=Ei=0;t<e;){var n=Ti[t];Ti[t++]=null;var r=Ti[t];Ti[t++]=null;var i=Ti[t];Ti[t++]=null;var a=Ti[t];if(Ti[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&&Mi(n,i,a)}}function ki(e,t,n,r){Ti[Ei++]=e,Ti[Ei++]=t,Ti[Ei++]=n,Ti[Ei++]=r,Di|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ai(e,t,n,r){return ki(e,t,n,r),Ni(e)}function ji(e,t){return ki(e,null,null,t),Ni(e)}function Mi(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-nt(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Ni(e){if(50<Ad)throw Ad=0,jd=null,Error(a(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Pi={};function Fi(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 Ii(e,t,n,r){return new Fi(e,t,n,r)}function Li(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ri(e,t){var n=e.alternate;return n===null?(n=Ii(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&1206910976,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 zi(e,t){e.flags&=1206910978;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 Bi(e,t,n,r,i,o){var s=0;if(r=e,typeof r==`function`)Li(r)&&(s=1);else if(typeof r==`string`)s=Jm(e,n,we.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case le:return e=Ii(31,n,t,i),e.elementType=le,e.lanes=o,e;case A:return Vi(n.children,i,o,t);case j:s=8,i|=24;break;case te:return e=Ii(12,n,t,i|2),e.elementType=te,e.lanes=o,e;case ae:return e=Ii(13,n,t,i),e.elementType=ae,e.lanes=o,e;case oe:return e=Ii(19,n,t,i),e.elementType=oe,e.lanes=o,e;case ue:case fe:return e=i|32,e=Ii(30,n,t,e),e.elementType=fe,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case re:s=10;break a;case ne:s=9;break a;case ie:s=11;break a;case se:s=14;break a;case ce:s=16,r=null;break a}s=29,n=Error(a(130,e===null?`null`:typeof e,``)),r=null}return t=Ii(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Vi(e,t,n,r){return e=Ii(7,e,r,t),e.lanes=n,e}function Hi(e,t,n){return e=Ii(6,e,null,t),e.lanes=n,e}function Ui(e){var t=Ii(18,null,null,0);return t.stateNode=e,t}function Wi(e,t,n){return t=Ii(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Gi=new WeakMap;function Ki(e,t){if(typeof e==`object`&&e){var n=Gi.get(e);return n===void 0?(t={value:e,source:t,stack:Re(t)},Gi.set(e,t),t):n}return{value:e,source:t,stack:Re(t)}}var qi=[],Ji=0,Yi=null,Xi=0,Zi=[],Qi=0,$i=null,ea=1,ta=``;function na(e,t){qi[Ji++]=Xi,qi[Ji++]=Yi,Yi=e,Xi=t}function ra(e,t,n){Zi[Qi++]=ea,Zi[Qi++]=ta,Zi[Qi++]=$i,$i=e;var r=ea;e=ta;var i=32-nt(r)-1;r&=~(1<<i),n+=1;var a=32-nt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ea=1<<32-nt(t)+i|n<<i|r,ta=a+e}else ea=1<<a|n<<i|r,ta=e}function ia(e){e.return!==null&&(na(e,1),ra(e,1,0))}function aa(e){for(;e===Yi;)Yi=qi[--Ji],qi[Ji]=null,Xi=qi[--Ji],qi[Ji]=null;for(;e===$i;)$i=Zi[--Qi],Zi[Qi]=null,ta=Zi[--Qi],Zi[Qi]=null,ea=Zi[--Qi],Zi[Qi]=null}function oa(e,t){Zi[Qi++]=ea,Zi[Qi++]=ta,Zi[Qi++]=$i,ea=t.id,ta=t.overflow,$i=e}var sa=null,ca=null,I=!1,la=null,ua=!1,da=Error(a(519));function fa(e){throw va(Ki(Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),da}function pa(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Et]=e,t[Dt]=r,n){case`dialog`:Z(`cancel`,t),Z(`close`,t);break;case`iframe`:case`object`:case`embed`:Z(`load`,t);break;case`video`:case`audio`:for(n=0;n<Bf.length;n++)Z(Bf[n],t);break;case`source`:Z(`error`,t);break;case`img`:case`image`:case`link`:Z(`error`,t),Z(`load`,t);break;case`details`:Z(`toggle`,t);break;case`input`:Z(`invalid`,t),ln(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Z(`invalid`,t);break;case`textarea`:Z(`invalid`,t),pn(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||tp(t.textContent,n)?(r.popover!=null&&(Z(`beforetoggle`,t),Z(`toggle`,t)),r.onScroll!=null&&Z(`scroll`,t),r.onScrollEnd!=null&&Z(`scrollend`,t),r.onClick!=null&&(t.onclick=Sn),t=!0):t=!1,t||fa(e,!0)}function ma(e){for(sa=e.return;sa;)switch(sa.tag){case 5:case 31:case 13:ua=!1;return;case 27:case 3:ua=!0;return;default:sa=sa.return}}function ha(e){if(e!==sa)return!1;if(!I)return ma(e),I=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||mp(e.type,e.memoizedProps)),n=!n),n&&ca&&fa(e),ma(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));ca=fm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));ca=fm(e)}else t===27?(t=ca,Cp(e.type)?(e=dm,dm=null,ca=e):ca=t):ca=sa?um(e.stateNode.nextSibling):null;return!0}function ga(){ca=sa=null,I=!1}function _a(){var e=la;return e!==null&&(Y===null?Y=e:Y.push.apply(Y,e),la=null),e}function va(e){la===null?la=[e]:la.push(e)}var ya=Se(null),ba=null,xa=null;function Sa(e,t,n){P(ya,t._currentValue),t._currentValue=n}function Ca(e){e._currentValue=ya.current,Ce(ya)}function wa(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 Ta(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var s=i.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),wa(o.return,n,e),r||(s=null);break a}o=c.next}}else if(i.tag===18){if(s=i.return,s===null)throw Error(a(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),wa(s,n,e),s=null}else i.tag===13&&i.memoizedState!==null&&i.memoizedState.dehydrated===null?(i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),wa(i.return,n,e),s=i.child,s=s===null?null:s.sibling):s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}}function Ea(e,t,n,r){e=null;for(var i=t,o=!1;i!==null;){if(!o){if(i.flags&524288)o=!0;else if(i.flags&262144)break}if(i.tag===10){var s=i.alternate;if(s===null)throw Error(a(387));if(s=s.memoizedProps,s!==null){var c=i.type;Gr(i.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(i===De.current){if(s=i.alternate,s===null)throw Error(a(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[ch]:e.push(ch))}i=i.return}return e!==null&&Ta(t,e,n,r),t.flags|=262144,e!==null}function Da(e){for(e=e.firstContext;e!==null;){if(!Gr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Oa(e){ba=e,xa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ka(e){return ja(ba,e)}function Aa(e,t){return ba===null&&Oa(e),ja(e,t)}function ja(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},xa===null){if(e===null)throw Error(a(308));xa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xa=xa.next=t;return n}var Ma=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()})}},Na=t.unstable_scheduleCallback,Pa=t.unstable_NormalPriority,Fa={$$typeof:re,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ia(){return{controller:new Ma,data:new Map,refCount:0}}function La(e){e.refCount--,e.refCount===0&&Na(Pa,function(){e.controller.abort()})}function Ra(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var za=null;function Ba(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Va=null,Ha=0,Ua=0,Wa=null;function Ga(e,t){if(Va===null){var n=Va=[];Ha=0,Ua=Ff(),Wa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ha++,t.then(Ka,Ka),t}function Ka(){if(--Ha===0&&(za=null,Va!==null)){Wa!==null&&(Wa.status=`fulfilled`);var e=Va;Va=null,Ua=0,Wa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function qa(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 Ja=M.S;M.S=function(e,t){if(gd=We(),typeof t==`object`&&t&&typeof t.then==`function`&&Ga(e,t),za!==null)for(var n=xf;n!==null;)Ra(n,za),n=n.next;if(n=e.types,n!==null){for(var r=xf;r!==null;)Ra(r,n),r=r.next;if(Ua!==0){r=za,r===null&&(r=za=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ja!==null&&Ja(e,t)};var Ya=Se(null);function Xa(){var e=Ya.current;return e===null?W.pooledCache:e}function Za(e,t){t===null?P(Ya,Ya.current):P(Ya,t.pool)}function Qa(){var e=Xa();return e===null?null:{parent:Fa._currentValue,pool:e}}var $a=Error(a(460)),eo=Error(a(474)),to=Error(a(542)),no={then:function(){}};function ro(e){return e=e.status,e===`fulfilled`||e===`rejected`}function io(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Sn,Sn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,co(e),e===void 0&&!(`reason`in t)?Error(a(600)):e;default:if(typeof t.status==`string`)t.then(Sn,Sn);else{if(e=W,e!==null&&100<e.shellSuspendCounter)throw Error(a(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,co(e),e}throw oo=t,$a}}function ao(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(oo=e,$a):e}}var oo=null;function so(){if(oo===null)throw Error(a(459));var e=oo;return oo=null,e}function co(e){if(e===$a||e===to)throw Error(a(483))}var lo=null,uo=0;function fo(e){var t=uo;return uo+=1,lo===null&&(lo=[]),io(lo,e,t)}function po(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function mo(e,t){throw t.$$typeof===O?Error(a(525)):(e=Object.prototype.toString.call(t),Error(a(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ho(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 i(e,t){return e=Ri(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|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Hi(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===A?(e=d(e,t,n.props.children,r,n.key),po(e,n),e):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===ce&&ao(a)===t.type)?(t=i(t,n.props),po(t,n),t.return=e,t):(t=Bi(n.type,n.key,n.props,null,e.mode,r),po(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=Wi(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=Vi(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Hi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case k:return n=Bi(t.type,t.key,t.props,null,e.mode,n),po(n,t),n.return=e,n;case ee:return t=Wi(t,e.mode,n),t.return=e,t;case ce:return t=ao(t),f(e,t,n)}if(ve(t)||he(t))return t=Vi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,fo(t),n);if(t.$$typeof===re)return f(e,Aa(e,t),n);mo(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 k:return n.key===i?l(e,t,n,r):null;case ee:return n.key===i?u(e,t,n,r):null;case ce:return n=ao(n),p(e,t,n,r)}if(ve(n)||he(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,fo(n),r);if(n.$$typeof===re)return p(e,t,Aa(e,n),r);mo(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 k:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case ee:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case ce:return r=ao(r),m(e,t,n,r,i)}if(ve(r)||he(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,fo(r),i);if(r.$$typeof===re)return m(e,t,n,Aa(t,r),i);mo(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),I&&na(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 I&&na(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(_.key===null?h:_.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)}),I&&na(i,h),l}function g(i,s,c,l){if(c==null)throw Error(a(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(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),I&&na(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return I&&na(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),I&&na(i,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===A&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case k:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===A){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),po(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===ce&&ao(l)===r.type){n(e,r.sibling),c=i(r,o.props),po(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===A?(c=Vi(o.props.children,e.mode,c,o.key),po(c,o),c.return=e,e=c):(c=Bi(o.type,o.key,o.props,null,e.mode,c),po(c,o),c.return=e,e=c)}return s(e);case ee: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=i(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=Wi(o,e.mode,c),c.return=e,e=c}return s(e);case ce:return o=ao(o),_(e,r,o,c)}if(ve(o))return h(e,r,o,c);if(he(o)){if(l=he(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,fo(o),c);if(o.$$typeof===re)return _(e,r,Aa(e,o),c);mo(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=i(r,o),c.return=e,e=c):(n(e,r),c=Hi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{uo=0;var i=_(e,t,n,r);return lo=null,i}catch(t){if(t===$a||t===to)throw t;var a=Ii(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var go=ho(!0),_o=ho(!1),vo=!1;function yo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bo(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 xo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function So(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ni(e),Mi(e,null,n),t}return ki(e,r,t,n),Ni(e)}function Co(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,yt(e,n)}}function wo(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 To=!1;function Eo(){if(To){var e=Wa;if(e!==null)throw e}}function Do(e,t,n,r){To=!1;var i=e.updateQueue;vo=!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?(K&f)===f:(r&f)===f){f!==0&&f===Ua&&(To=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=D({},d,f);break a;case 2:vo=!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),cd|=o,e.lanes=o,e.memoizedState=d}}function Oo(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function ko(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Oo(n[e],t)}var Ao=Se(null),jo=Se(0);function Mo(e,t){e=sd,P(jo,e),P(Ao,t),sd=e|t.baseLanes}function No(){P(jo,sd),P(Ao,Ao.current)}function Po(){sd=jo.current,Ce(Ao),Ce(jo)}var Fo=Se(null),Io=null;function Lo(e){var t=e.alternate;P(Ho,Ho.current&1),P(Fo,e),Io===null&&(t===null||Ao.current!==null||t.memoizedState!==null)&&(Io=e)}function Ro(e){P(Ho,Ho.current),P(Fo,e),Io===null&&(Io=e)}function zo(e){e.tag===22?(P(Ho,Ho.current),P(Fo,e),Io===null&&(Io=e)):Bo()}function Bo(){P(Ho,Ho.current),P(Fo,Fo.current)}function Vo(e){Ce(Fo),Io===e&&(Io=null),Ce(Ho)}var Ho=Se(0);function Uo(e,t){P(Fo,Fo.current),P(Ho,t)}function Wo(e){Ce(Ho),Ce(Fo),Io===e&&(Io=null)}function Go(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||sm(n)||cm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){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 Ko=0,L=null,R=null,qo=null,Jo=!1,Yo=!1,Xo=!1,Zo=0,Qo=0,$o=null,es=0;function ts(){throw Error(a(321))}function ns(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gr(e[n],t[n]))return!1;return!0}function rs(e,t,n,r,i,a){return Ko=a,L=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?bc:xc,Xo=!1,a=n(r,i),Xo=!1,Yo&&(a=as(t,n,r,i)),is(e),a}function is(e){M.H=yc;var t=R!==null&&R.next!==null;if(Ko=0,qo=R=L=null,Jo=!1,Qo=0,$o=null,t)throw Error(a(300));e===null||Lc||(e=e.dependencies,e!==null&&Da(e)&&(Lc=!0))}function as(e,t,n,r){L=e;var i=0;do{if(Yo&&($o=null),Qo=0,Yo=!1,25<=i)throw Error(a(301));if(i+=1,qo=R=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}M.H=Sc,o=t(n,r)}while(Yo);return o}function os(){var e=M.H,t=e.useState()[0];return t=typeof t.then==`function`?ps(t):t,e=e.useState()[0],(R===null?null:R.memoizedState)!==e&&(L.flags|=1024),t}function ss(){var e=Zo!==0;return Zo=0,e}function cs(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ls(e){if(Jo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Jo=!1}Ko=0,qo=R=L=null,Yo=!1,Qo=Zo=0,$o=null}function us(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qo===null?L.memoizedState=qo=e:qo=qo.next=e,qo}function ds(){if(R===null){var e=L.alternate;e=e===null?null:e.memoizedState}else e=R.next;var t=qo===null?L.memoizedState:qo.next;if(t!==null)qo=t,R=e;else{if(e===null)throw L.alternate===null?Error(a(467)):Error(a(310));R=e,e={memoizedState:R.memoizedState,baseState:R.baseState,baseQueue:R.baseQueue,queue:R.queue,next:null},qo===null?L.memoizedState=qo=e:qo=qo.next=e}return qo}function fs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ps(e){var t=Qo;return Qo+=1,$o===null&&($o=[]),e=io($o,e,t),t=L,(qo===null?t.memoizedState:qo.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?bc:xc),e}function ms(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ps(e);if(e.$$typeof===pe)return;if(e.$$typeof===re)return ka(e)}throw Error(a(438,String(e)))}function hs(e){var t=null,n=L.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=L.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=fs(),L.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]=de;return t.index++,n}function gs(e,t){return typeof t==`function`?t(e):t}function _s(e){return vs(ds(),R,e)}function vs(e,t,n){var r=e.queue;if(r===null)throw Error(a(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Ko&f)===f:(K&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===Ua&&(d=!0);else if((Ko&p)===p){u=u.next,p===Ua&&(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,L.lanes|=p,cd|=p;f=u.action,Xo&&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,L.lanes|=f,cd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Gr(o,e.memoizedState)&&(Lc=!0,d&&(n=Wa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ys(e){var t=ds(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Gr(o,t.memoizedState)||(Lc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function bs(e,t,n){var r=L,i=ds(),o=I;if(o){if(n===void 0)throw Error(a(407));n=n()}else n=t();var s=!Gr((R||i).memoizedState,n);if(s&&(i.memoizedState=n,Lc=!0),i=i.queue,Gs(Cs.bind(null,r,i,e),[e]),e=i.getSnapshot!==t||s||qo!==null&&(qo.memoizedState.tag&1)!=0,Bs(e?9:8,{destroy:void 0},Ss.bind(null,r,i,n,t),null),e){if(r.flags|=2048,W===null)throw Error(a(349));o||Ko&127||xs(r,t,n)}return n}function xs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=L.updateQueue,t===null?(t=fs(),L.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ss(e,t,n,r){t.value=n,t.getSnapshot=r,ws(t)&&Ts(e)}function Cs(e,t,n){return n(function(){ws(t)&&Ts(e)})}function ws(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gr(e,n)}catch{return!0}}function Ts(e){var t=ji(e,2);t!==null&&Fd(t,e,2)}function Es(e){var t=us();if(typeof e==`function`){var n=e;if(e=n(),Xo){tt(!0);try{n()}finally{tt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gs,lastRenderedState:e},t}function Ds(e,t,n,r){return e.baseState=n,vs(e,R,typeof r==`function`?r:gs)}function Os(e,t,n,r,i){if(gc(e))throw Error(a(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};M.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,ks(t,o)):(o.next=n.next,t.pending=n.next=o)}}function ks(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=M.T,o={};o.types=a===null?null:a.types,M.T=o;try{var s=n(i,r),c=M.S;c!==null&&c(o,s),As(e,t,s)}catch(n){Ms(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),M.T=a}}else try{a=n(i,r),As(e,t,a)}catch(n){Ms(e,t,n)}}function As(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){js(e,t,n)},function(n){return Ms(e,t,n)}):js(e,t,n)}function js(e,t,n){t.status=`fulfilled`,t.value=n,Ns(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ks(e,n)))}function Ms(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ns(t),t=t.next;while(t!==r)}e.action=null}function Ns(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ps(e,t){return t}function Fs(e,t){if(I){var n=W.formState;if(n!==null){a:{var r=L;if(I){if(ca){b:{for(var i=ca,a=ua;i.nodeType!==8;){if(!a){i=null;break b}if(i=um(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ca=um(i.nextSibling),r=i.data===`F!`;break a}}fa(r)}r=!1}r&&(t=n[0])}}return n=us(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ps,lastRenderedState:t},n.queue=r,n=pc.bind(null,L,r),r.dispatch=n,r=Es(!1),a=hc.bind(null,L,!1,r.queue),r=us(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Os.bind(null,L,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Is(e){return Ls(ds(),R,e)}function Ls(e,t,n){if(t=vs(e,t,Ps)[0],e=_s(gs)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ps(t)}catch(e){throw e===$a?to:e}else r=t;t=ds();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(L.flags|=2048,Bs(9,{destroy:void 0},Rs.bind(null,i,n),null)),[r,a,e]}function Rs(e,t){e.action=t}function zs(e){var t=ds(),n=R;if(n!==null)return Ls(t,n,e);ds(),t=t.memoizedState,n=ds();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Bs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=L.updateQueue,t===null&&(t=fs(),L.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 Vs(){return ds().memoizedState}function Hs(e,t,n,r){var i=us();L.flags|=e,i.memoizedState=Bs(1|t,{destroy:void 0},n,r===void 0?null:r)}function Us(e,t,n,r){var i=ds();r=r===void 0?null:r;var a=i.memoizedState.inst;R!==null&&r!==null&&ns(r,R.memoizedState.deps)?i.memoizedState=Bs(t,a,n,r):(L.flags|=e,i.memoizedState=Bs(1|t,a,n,r))}function Ws(e,t){Hs(8390656,8,e,t)}function Gs(e,t){Us(2048,8,e,t)}function Ks(e){L.flags|=4;var t=L.updateQueue;if(t===null)t=fs(),L.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function qs(e){var t=ds().memoizedState;return Ks({ref:t,nextImpl:e}),function(){if(U&2)throw Error(a(440));return t.impl.apply(void 0,arguments)}}function Js(e,t){return Us(4,2,e,t)}function Ys(e,t){return Us(4,4,e,t)}function Xs(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 Zs(e,t,n){n=n==null?null:n.concat([e]),Us(4,4,Xs.bind(null,t,e),n)}function Qs(){}function $s(e,t){var n=ds();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&ns(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ec(e,t){var n=ds();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&ns(t,r[1]))return r[0];if(r=e(),Xo){tt(!0);try{e()}finally{tt(!1)}}return n.memoizedState=[r,t],r}function tc(e,t,n){return n===void 0||Ko&1073741824&&!(K&261930)?e.memoizedState=t:(e.memoizedState=n,e=Nd(),L.lanes|=e,cd|=e,n)}function nc(e,t,n,r){return Gr(n,t)?n:Ao.current===null?!(Ko&106)||Ko&1073741824&&!(K&261930)?(Lc=!0,e.memoizedState=n):(e=Nd(),L.lanes|=e,cd|=e,t):(e=tc(e,n,r),Gr(e,t)||(Lc=!0),e)}function rc(e,t,n,r,i){var a=N.p;N.p=a!==0&&8>a?a:8;var o=M.T,s={};s.types=o===null?null:o.types,M.T=s,hc(e,!1,t,n);try{var c=i(),l=M.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?mc(e,t,qa(c,r),Md(e)):mc(e,t,r,Md(e))}catch(n){mc(e,t,{then:function(){},status:`rejected`,reason:n},Md())}finally{N.p=a,o!==null&&s.types!==null&&(o.types=s.types),M.T=o}}function ic(){}function ac(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=oc(e).queue;rc(e,i,t,ye,n===null?ic:function(){return sc(e),n(r)})}function oc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ye,baseState:ye,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gs,lastRenderedState:ye},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function sc(e){var t=oc(e);t.next===null&&(t=e.alternate.memoizedState),mc(e,t.next.queue,{},Md())}function cc(){return ka(ch)}function lc(){return ds().memoizedState}function uc(){return ds().memoizedState}function dc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Md();e=xo(n);var r=So(t,e,n);r!==null&&(Fd(r,t,n),Co(r,t,n)),t={cache:Ia()},e.payload=t;return}t=t.return}}function fc(e,t,n){var r=Md();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},gc(e)?_c(t,n):(n=Ai(e,t,n,r),n!==null&&(Fd(n,e,r),vc(n,t,r)))}function pc(e,t,n){mc(e,t,n,Md())}function mc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(gc(e))_c(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,Gr(s,o))return ki(e,t,i,0),W===null&&Oi(),!1}catch{}if(n=Ai(e,t,i,r),n!==null)return Fd(n,e,r),vc(n,t,r),!0}return!1}function hc(e,t,n,r){if(r={lane:2,revertLane:Ff(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},gc(e)){if(t)throw Error(a(479))}else t=Ai(e,n,r,2),t!==null&&Fd(t,e,2)}function gc(e){var t=e.alternate;return e===L||t!==null&&t===L}function _c(e,t){Yo=Jo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,yt(e,n)}}var yc={readContext:ka,use:ms,useCallback:ts,useContext:ts,useEffect:ts,useImperativeHandle:ts,useLayoutEffect:ts,useInsertionEffect:ts,useMemo:ts,useReducer:ts,useRef:ts,useState:ts,useDebugValue:ts,useDeferredValue:ts,useTransition:ts,useSyncExternalStore:ts,useId:ts,useHostTransitionStatus:ts,useFormState:ts,useActionState:ts,useOptimistic:ts,useMemoCache:ts,useCacheRefresh:ts,useEffectEvent:ts},bc={readContext:ka,use:ms,useCallback:function(e,t){return us().memoizedState=[e,t===void 0?null:t],e},useContext:ka,useEffect:Ws,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Hs(4194308,4,Xs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hs(4194308,4,e,t)},useInsertionEffect:function(e,t){Hs(4,2,e,t)},useMemo:function(e,t){var n=us();t=t===void 0?null:t;var r=e();if(Xo){tt(!0);try{e()}finally{tt(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=us();if(n!==void 0){var i=n(t);if(Xo){tt(!0);try{n(t)}finally{tt(!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=fc.bind(null,L,e),[r.memoizedState,e]},useRef:function(e){var t=us();return e={current:e},t.memoizedState=e},useState:function(e){e=Es(e);var t=e.queue,n=pc.bind(null,L,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Qs,useDeferredValue:function(e,t){return tc(us(),e,t)},useTransition:function(){var e=Es(!1);return e=rc.bind(null,L,e.queue,!0,!1),us().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=L,i=us();if(I){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),W===null)throw Error(a(349));K&127||xs(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Ws(Cs.bind(null,r,o,e),[e]),r.flags|=2048,Bs(9,{destroy:void 0},Ss.bind(null,r,o,n,t),null),n},useId:function(){var e=us(),t=W.identifierPrefix;if(I){var n=ta,r=ea;n=(r&~(1<<32-nt(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Zo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=es++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:cc,useFormState:Fs,useActionState:Fs,useOptimistic:function(e){var t=us();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=hc.bind(null,L,!0,n),n.dispatch=t,[e,t]},useMemoCache:hs,useCacheRefresh:function(){return us().memoizedState=dc.bind(null,L)},useEffectEvent:function(e){var t=us(),n={impl:e};return t.memoizedState=n,function(){if(U&2)throw Error(a(440));return n.impl.apply(void 0,arguments)}}},xc={readContext:ka,use:ms,useCallback:$s,useContext:ka,useEffect:Gs,useImperativeHandle:Zs,useInsertionEffect:Js,useLayoutEffect:Ys,useMemo:ec,useReducer:_s,useRef:Vs,useState:function(){return _s(gs)},useDebugValue:Qs,useDeferredValue:function(e,t){return nc(ds(),R.memoizedState,e,t)},useTransition:function(){var e=_s(gs)[0],t=ds().memoizedState;return[typeof e==`boolean`?e:ps(e),t]},useSyncExternalStore:bs,useId:lc,useHostTransitionStatus:cc,useFormState:Is,useActionState:Is,useOptimistic:function(e,t){return Ds(ds(),R,e,t)},useMemoCache:hs,useCacheRefresh:uc,useEffectEvent:qs},Sc={readContext:ka,use:ms,useCallback:$s,useContext:ka,useEffect:Gs,useImperativeHandle:Zs,useInsertionEffect:Js,useLayoutEffect:Ys,useMemo:ec,useReducer:ys,useRef:Vs,useState:function(){return ys(gs)},useDebugValue:Qs,useDeferredValue:function(e,t){var n=ds();return R===null?tc(n,e,t):nc(n,R.memoizedState,e,t)},useTransition:function(){var e=ys(gs)[0],t=ds().memoizedState;return[typeof e==`boolean`?e:ps(e),t]},useSyncExternalStore:bs,useId:lc,useHostTransitionStatus:cc,useFormState:zs,useActionState:zs,useOptimistic:function(e,t){var n=ds();return R===null?(n.baseState=e,[e,n.queue.dispatch]):Ds(n,R,e,t)},useMemoCache:hs,useCacheRefresh:uc,useEffectEvent:qs};function Cc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:D({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var z={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Md(),i=xo(r);i.payload=t,n!=null&&(i.callback=n),t=So(e,i,r),t!==null&&(Fd(t,e,r),Co(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Md(),i=xo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=So(e,i,r),t!==null&&(Fd(t,e,r),Co(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Md(),r=xo(n);r.tag=2,t!=null&&(r.callback=t),t=So(e,r,n),t!==null&&(Fd(t,e,n),Co(t,e,n))}};function wc(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?!Kr(n,r)||!Kr(i,a):!0}function Tc(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&&z.enqueueReplaceState(t,t.state,null)}function Ec(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=D({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Dc(e){wi(e)}function Oc(e){console.error(e)}function kc(e){wi(e)}function Ac(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function jc(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 Mc(e,t,n){return n=xo(n),n.tag=3,n.payload={element:null},n.callback=function(){Ac(e,t)},n}function Nc(e){return e=xo(e),e.tag=3,e}function Pc(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(){jc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){jc(t,n,r),typeof i!=`function`&&(yd===null?yd=new Set([this]):yd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Fc(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Ea(t,n,i,!0),n=Fo.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Io===null?qd():n.alternate===null&&J===0&&(J=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===no?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),hf(e,r,i)),!1;case 22:return n.flags|=65536,r===no?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)),hf(e,r,i)),!1}throw Error(a(435,n.tag))}return hf(e,r,i),qd(),!1}if(I)return t=Fo.current,t===null?(r!==da&&(t=Error(a(423),{cause:r}),va(Ki(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=Ki(r,n),i=Mc(e.stateNode,r,i),wo(e,i),J!==4&&(J=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==da&&(e=Error(a(422),{cause:r}),va(Ki(e,n)))),!1;var o=Error(a(520),{cause:r});if(o=Ki(o,n),pd===null?pd=[o]:pd.push(o),J!==4&&(J=2),t===null)return!0;r=Ki(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Mc(n.stateNode,r,e),wo(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`&&(yd===null||!yd.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Nc(i),Pc(i,e,n,r),wo(n,i),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Ic=Error(a(461)),Lc=!1;function Rc(e,t,n,r){t.child=e===null?_o(t,null,n,r):go(t,e.child,n,r)}function zc(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 Oa(t),r=rs(e,t,n,o,a,i),s=ss(),e!==null&&!Lc?(cs(e,t,i),pl(e,t,i)):(I&&s&&ia(t),t.flags|=1,Rc(e,t,r,i),t.child)}function Bc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Li(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Vc(e,t,a,r,i)):(e=Bi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!ml(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Kr:n,n(o,r)&&e.ref===t.ref)return pl(e,t,i)}return t.flags|=1,e=Ri(a,r),e.ref=t.ref,e.return=t,t.child=e}function Vc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Kr(a,r)&&e.ref===t.ref)if(Lc=!1,t.pendingProps=r=a,ml(e,i))e.flags&131072&&(Lc=!0);else return t.lanes=e.lanes,pl(e,t,i)}return Yc(e,t,n,r,i)}function Hc(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 Wc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Za(t,a===null?null:a.cachePool),a===null?No():Mo(t,a),zo(t);else return r=t.lanes=536870912,Wc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Za(t,null),No(),Bo()):(Za(t,a.cachePool),Mo(t,a),Bo(),t.memoizedState=null);return Rc(e,t,i,n),t.child}function Uc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Wc(e,t,n,r,i){var a=Xa();return a=a===null?null:{parent:Fa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Za(t,null),No(),zo(t),e!==null&&Ea(e,t,r,!0),t.childLanes=i,null}function Gc(e,t){return t=il({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Kc(e,t,n){return go(t,e.child,null,n),e=Gc(t,t.pendingProps),e.flags|=2,Vo(t),t.memoizedState=null,e}function qc(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(I){if(r.mode===`hidden`)return e=Gc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Uc(null,e);if(Ro(t),(e=ca)?(e=om(e,ua),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$i===null?null:{id:ea,overflow:ta},retryLane:536870912,hydrationErrors:null},n=Ui(e),n.return=t,t.child=n,sa=t,ca=null)):e=null,e===null)throw fa(t);return t.lanes=536870912,null}return Gc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Ro(t),i)if(t.flags&256)t.flags&=-257,t=Kc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(a(558));else if(Lc||Ea(e,t,n,!1),i=(n&e.childLanes)!==0,Lc||i){if(Ao.current===null){if(r=W,r!==null&&(s=bt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ji(e,s),Fd(r,e,s),Ic;qd()}t=Kc(e,t,n)}else e=o.treeContext,ca=um(s.nextSibling),sa=t,I=!0,la=null,ua=!1,e!==null&&oa(t,e),t=Gc(t,r),t.flags|=134221824;return t}return e=Ri(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Jc(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(a(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Yc(e,t,n,r,i){return Oa(t),n=rs(e,t,n,r,void 0,i),r=ss(),e!==null&&!Lc?(cs(e,t,i),pl(e,t,i)):(I&&r&&ia(t),t.flags|=1,Rc(e,t,n,i),t.child)}function Xc(e,t,n,r,i,a){return Oa(t),t.updateQueue=null,n=as(t,r,n,i),is(e),r=ss(),e!==null&&!Lc?(cs(e,t,a),pl(e,t,a)):(I&&r&&ia(t),t.flags|=1,Rc(e,t,n,a),t.child)}function Zc(e,t,n,r,i){if(Oa(t),t.stateNode===null){var a=Pi,o=n.contextType;typeof o==`object`&&o&&(a=ka(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=z,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},yo(t),o=n.contextType,a.context=typeof o==`object`&&o?ka(o):Pi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Cc(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&&z.enqueueReplaceState(a,a.state,null),Do(t,r,a,i),Eo(),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=Ec(n,s);a.props=c;var l=a.context,u=n.contextType;o=Pi,typeof u==`object`&&u&&(o=ka(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)&&Tc(t,a,r,o),vo=!1;var f=t.memoizedState;a.state=f,Do(t,r,a,i),Eo(),l=t.memoizedState,s||f!==l||vo?(typeof d==`function`&&(Cc(t,n,d,r),l=t.memoizedState),(c=vo||wc(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,bo(e,t),o=t.memoizedProps,u=Ec(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Pi,typeof l==`object`&&l&&(c=ka(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)&&Tc(t,a,r,c),vo=!1,f=t.memoizedState,a.state=f,Do(t,r,a,i),Eo();var p=t.memoizedState;o!==d||f!==p||vo||e!==null&&e.dependencies!==null&&Da(e.dependencies)?(typeof s==`function`&&(Cc(t,n,s,r),p=t.memoizedState),(u=vo||wc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Da(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,Jc(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=go(t,e.child,null,i),t.child=go(t,null,n,i)):Rc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=pl(e,t,i),e}function Qc(e,t,n,r){return ga(),t.flags|=256,Rc(e,t,n,r),t.child}var $c={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function el(e){return{baseLanes:e,cachePool:Qa()}}function tl(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=dd),e}function nl(e,t,n){var r=t.pendingProps,i=!1,a=(t.flags&128)!=0,o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:(Ho.current&2)!=0),o&&(i=!0,t.flags&=-129),o=(t.flags&32)!=0,t.flags&=-33,e===null){if(I){if(i?Lo(t):Bo(),(e=ca)?(e=om(e,ua),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$i===null?null:{id:ea,overflow:ta},retryLane:536870912,hydrationErrors:null},n=Ui(e),n.return=t,t.child=n,sa=t,ca=null)):e=null,e===null)throw fa(t);return cm(e)?t.lanes=32:t.lanes=536870912,null}return a=r.children,r=r.fallback,i?(Bo(),i=t.mode,a=il({mode:`hidden`,children:a},i),r=Vi(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=el(n),r.childLanes=tl(e,o,n),t.memoizedState=$c,Uc(null,r)):(Lo(t),rl(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return ol(e,t,a,o,r,c,s,n)}return i?(Bo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Ri(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Vi(i,a,n,null),i.flags|=2):i=Ri(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Uc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=el(n):(a=i.cachePool,a===null?a=Qa():(s=Fa._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=tl(e,o,n),t.memoizedState=$c,Uc(e.child,r)):(Lo(t),n=e.child,e=n.sibling,n=Ri(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function rl(e,t){return t=il({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function il(e,t){return e=Ii(22,e,null,t),e.lanes=0,e}function al(e,t,n){return go(t,e.child,null,n),e=rl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ol(e,t,n,r,i,o,s,c){if(n)return t.flags&256?(Lo(t),t.flags&=-257,al(e,t,c)):t.memoizedState===null?(Bo(),o=i.fallback,s=t.mode,i=il({mode:`visible`,children:i.children},s),o=Vi(o,s,c,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,go(t,e.child,null,c),i=t.child,i.memoizedState=el(c),i.childLanes=tl(e,r,c),t.memoizedState=$c,Uc(null,i)):(Bo(),t.child=e.child,t.flags|=128,null);if(Lo(t),cm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(i=Error(a(419)),i.stack=``,i.digest=r,va({value:i,source:null,stack:null})),al(e,t,c)}if(Lc||Ea(e,t,c,!1),r=(c&e.childLanes)!==0,Lc||r){if(Ao.current!==null)return al(e,t,c);if(r=W,r!==null&&(i=bt(r,c),i!==0&&i!==s.retryLane))throw s.retryLane=i,ji(e,i),Fd(r,e,i),Ic;return sm(o)||qd(),al(e,t,c)}return sm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,ca=um(o.nextSibling),sa=t,I=!0,la=null,ua=!1,e!==null&&oa(t,e),t=rl(t,i.children),t.flags|=134221824,t)}function sl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),wa(e.return,t,n)}function cl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Go(n)===null&&(t=e),e=e.sibling}return t}function ll(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 ul(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function dl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Ho.current;if(t.flags&128)return Uo(t,o),null;var s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,Uo(t,o),i===`backwards`&&e!==null?(ul(e),Rc(e,t,r,n),ul(e)):Rc(e,t,r,n),r=I?Xi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sl(e,n,t);else if(e.tag===19)sl(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`backwards`:n=cl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,ul(t)),ll(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Go(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ll(t,!0,n,null,a,r);break;case`together`:ll(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=cl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ll(t,!1,i,n,a,r)}return t.child}function fl(e,t,n){var r=t.pendingProps;return Sa(t,t.type,r.value),Rc(e,t,r.children,n),t.child}function pl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),cd|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ea(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,n=Ri(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ri(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ml(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Da(e))):!0}function hl(e,t,n){switch(t.tag){case 3:Oe(t,t.stateNode.containerInfo),Sa(t,Fa,e.memoizedState.cache),ga();break;case 27:case 5:Ae(t);break;case 4:Oe(t,t.stateNode.containerInfo);break;case 10:Sa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ro(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Lo(t),t.flags|=128,null;r=Ea(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?nl(e,t,n):(Lo(t),e=pl(e,t,n),e===null?null:e.sibling)}Lo(t);break;case 19:if(t.flags&128)return dl(e,t,n);if(i=(e.flags&128)!=0,r=(n&t.childLanes)!==0,r||=(Ea(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return dl(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Uo(t,Ho.current),r)break;return null;case 22:return t.lanes=0,Hc(e,t,n,t.pendingProps);case 24:Sa(t,Fa,e.memoizedState.cache)}return pl(e,t,n)}function gl(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Lc=!0;else{if(!ml(e,n)&&!(t.flags&128))return Lc=!1,hl(e,t,n);Lc=!!(e.flags&131072)}else Lc=!1,I&&t.flags&1048576&&ra(t,Xi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=ao(t.elementType),t.type=e,typeof e==`function`)Li(e)?(r=Ec(e,r),t.tag=1,t=Zc(null,t,e,r,n)):(t.tag=0,t=Yc(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===ie){t.tag=11,t=zc(null,t,e,r,n);break a}else if(i===se){t.tag=14,t=Bc(null,t,e,r,n);break a}else if(i===re){t.tag=10,t.type=e,t=fl(null,t,n);break a}}throw t=_e(e)||e,Error(a(306,t,``))}}return t;case 0:return Yc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Ec(r,t.pendingProps),Zc(e,t,r,i,n);case 3:a:{if(Oe(t,t.stateNode.containerInfo),e===null)throw Error(a(387));r=t.pendingProps;var o=t.memoizedState;i=o.element,bo(e,t),Do(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Sa(t,Fa,r),r!==o.cache&&Ta(t,[Fa],n,!0),Eo(),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=Qc(e,t,r,n);break a}else if(r!==i){i=Ki(Error(a(424)),t),va(i),t=Qc(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(ca=um(e.firstChild),sa=t,I=!0,la=null,ua=!0,n=_o(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ga(),r===i){t=pl(e,t,n);break a}Rc(e,t,r,n)}t=t.child}return t;case 26:return Jc(e,t),e===null?(n=Pm(t.type,null,t.pendingProps,null))?t.memoizedState=n:I||(t.stateNode=pp(t.type,t.pendingProps,Ee.current,t)):t.memoizedState=Pm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ae(t),e===null&&I&&(r=t.stateNode=gm(t.type,t.pendingProps,Ee.current),sa=t,ua=!0,i=ca,Cp(t.type)?(dm=i,ca=um(r.firstChild)):ca=i),Rc(e,t,t.pendingProps.children,n),Jc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&I&&((i=r=ca)&&(r=im(r,t.type,t.pendingProps,ua),r===null?i=!1:(t.stateNode=r,sa=t,ca=um(r.firstChild),ua=!1,i=!0)),i||fa(t)),Ae(t),i=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,mp(i,o)?r=null:s!==null&&mp(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=rs(e,t,os,null,null,n),ch._currentValue=i),Jc(e,t),Rc(e,t,r,n),t.child;case 6:return e===null&&I&&((e=n=ca)&&(n=am(n,t.pendingProps,ua),n===null?e=!1:(t.stateNode=n,sa=t,ca=null,e=!0)),e||fa(t)),null;case 13:return nl(e,t,n);case 4:return Oe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=go(t,null,r,n):Rc(e,t,r,n),t.child;case 11:return zc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Jc(e,t),Rc(e,t,r,n),t.child;case 8:return Rc(e,t,t.pendingProps.children,n),t.child;case 12:return Rc(e,t,t.pendingProps.children,n),t.child;case 10:return fl(e,t,n);case 9:return i=t.type._context,r=t.pendingProps.children,Oa(t),i=ka(i),r=r(i),t.flags|=1,Rc(e,t,r,n),t.child;case 14:return Bc(e,t,t.type,t.pendingProps,n);case 15:return Vc(e,t,t.type,t.pendingProps,n);case 19:return dl(e,t,n);case 31:return qc(e,t,n);case 22:return Hc(e,t,n,t.pendingProps);case 24:return Oa(t),r=ka(Fa),e===null?(i=Xa(),i===null&&(i=W,o=Ia(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},yo(t),Sa(t,Fa,i)):((e.lanes&n)!==0&&(bo(e,t),Do(t,null,null,n),Eo()),i=e.memoizedState,o=t.memoizedState,i.parent===r?(r=o.cache,Sa(t,Fa,r),r!==i.cache&&Ta(t,[Fa],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Sa(t,Fa,r))),Rc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:I&&ia(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Jc(e,t),Rc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function _l(e){e.flags|=4}function vl(e,t,n,r,i){var a;if((a=(e.mode&32)!=0)&&(a=n===null?Ym(t,r):Ym(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Wd())e.flags|=8192;else throw oo=no,eo}else e.flags&=-16777217}function yl(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Xm(t))if(Wd())e.flags|=8192;else throw oo=no,eo}function bl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:mt(),e.lanes|=t,fd|=t)}function xl(e,t){if(!I)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,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;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function Sl(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&1206910976,r|=i.flags&1206910976,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 Cl(e,t,n){var r=t.pendingProps;switch(aa(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Sl(t),null;case 1:return Sl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ca(Fa),ke(),n.pendingContext&&=(n.context=n.pendingContext,null),(e===null||e.child===null)&&(ha(t)?_l(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,_a())),Sl(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(_l(t),o===null?(Sl(t),vl(t,i,null,r,n)):(Sl(t),yl(t,o))):o?o===e.memoizedState?(Sl(t),t.flags&=-16777217):(_l(t),Sl(t),yl(t,o)):(e=e.memoizedProps,e!==r&&_l(t),Sl(t),vl(t,i,e,r,n)),null;case 27:if(je(t),n=Ee.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&_l(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return Sl(t),t.subtreeFlags&=-33554433,null}e=we.current,ha(t)?pa(t,e):(e=gm(i,r,n),t.stateNode=e,_l(t))}return Sl(t),t.subtreeFlags&=-33554433,null;case 5:if(je(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&_l(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return Sl(t),t.subtreeFlags&=-33554433,null}if(o=we.current,ha(t))pa(t,o);else{var s=up(Ee.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);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(i,{is:r.is}):s.createElement(i)}}o[Et]=t,o[Dt]=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(rp(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&_l(t)}}return Sl(t),t.subtreeFlags&=-33554433,vl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&_l(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=Ee.current,ha(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=sa,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[Et]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||tp(e.nodeValue,n)),e||fa(t,!0)}else e=up(e).createTextNode(r),e[Et]=t,t.stateNode=e}return Sl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ha(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[Et]=t}else ga(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Sl(t),e=!1}else n=_a(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Vo(t),t):(Vo(t),null);if(t.flags&128)throw Error(a(558))}return Sl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=ha(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[Et]=t}else ga(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Sl(t),i=!1}else i=_a(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Vo(t),t):(Vo(t),null)}return Vo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),bl(t,t.updateQueue),Sl(t),null);case 4:return ke(),e===null&&Gf(t.stateNode.containerInfo),t.flags|=67108864,Sl(t),null;case 10:return Ca(t.type),Sl(t),null;case 19:if(Wo(t),r=t.memoizedState,r===null)return Sl(t),null;if(i=(t.flags&128)!=0,o=r.rendering,o===null)if(i)xl(r,!1);else{if(J!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Go(e),o!==null){for(t.flags|=128,xl(r,!1),e=o.updateQueue,t.updateQueue=e,bl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)zi(n,e),n=n.sibling;return Uo(t,Ho.current&1|2),I&&na(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&We()>_d&&(t.flags|=128,i=!0,xl(r,!1),t.lanes=4194304)}else{if(!i)if(e=Go(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,bl(t,e),xl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!I)return Sl(t),null}else 2*We()-r.renderingStartTime>_d&&n!==536870912&&(t.flags|=128,i=!0,xl(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)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=We(),e.sibling=null,o=Ho.current,o=i?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||I?Uo(t,o):(n=o,P(Fo,t),P(Ho,n),Io===null&&(Io=t)),I&&na(t,r.treeForkCount),e}return Sl(t),null;case 22:case 23:return Vo(t),Po(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Sl(t),t.subtreeFlags&6&&(t.flags|=8192)):Sl(t),n=t.updateQueue,n!==null&&bl(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&&Ce(Ya),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ca(Fa),Sl(t),null;case 25:return null;case 30:return t.flags|=33554432,Sl(t),null}throw Error(a(156,t.tag))}function wl(e,t){switch(aa(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ca(Fa),ke(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return je(t),null;case 31:if(t.memoizedState!==null){if(Vo(t),t.alternate===null)throw Error(a(340));ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Vo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Wo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return ke(),null;case 10:return Ca(t.type),null;case 22:case 23:return Vo(t),Po(),e!==null&&Ce(Ya),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ca(Fa),null;case 25:return null;default:return null}}function Tl(e,t){switch(aa(t),t.tag){case 3:Ca(Fa),ke();break;case 26:case 27:case 5:je(t);break;case 4:ke();break;case 31:t.memoizedState!==null&&Vo(t);break;case 13:Vo(t);break;case 19:Wo(t);break;case 10:Ca(t.type);break;case 22:case 23:Vo(t),Po(),e!==null&&Ce(Ya);break;case 24:Ca(Fa)}}function El(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){X(t,t.return,e)}}function Dl(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){X(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){X(t,t.return,e)}}function Ol(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ko(t,n)}catch(t){X(e,e.return,t)}}}function kl(e,t,n){n.props=Ec(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){X(e,t,n)}}function Al(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:var i=e.stateNode,a=xi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Fp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Ip(e);h(e.child,!1,$p,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){X(e,t,n)}}function jl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){X(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){X(e,t,n)}else n.current=null}function Ml(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)tm(e.stateNode,t[n])}function Nl(e){for(var t=e.return;t!==null&&(Il(t)&&tm(e.stateNode,t.stateNode),!Fl(t));)t=t.return}function Pl(e){for(var t=e.return;t!==null&&(Il(t)&&nm(e.stateNode,t.stateNode),!Fl(t));)t=t.return}function Fl(e){return e.tag===5||e.tag===3||e.tag===27}function Il(e){return e&&e.tag===7&&e.stateNode!==null}function Ll(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){X(e,e.return,t)}}function Rl(e,t,n){try{var r=e.stateNode;ap(r,e.type,n,t),r[Dt]=t}catch(t){X(e,e.return,t)}}function zl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Cp(e.type)||e.tag===4}function Bl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||zl(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&&Cp(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 Vl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Sn)),Ml(e,r),F=!0;else if(i!==4&&(i===27&&(Ml(e,r),r=null,Cp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Vl(e,t,n,r),e=e.sibling;e!==null;)Vl(e,t,n,r),e=e.sibling}function Hl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Ml(e,r),F=!0;else if(i!==4&&(i===27&&(Ml(e,r),r=null,Cp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Hl(e,t,n,r),e=e.sibling;e!==null;)Hl(e,t,n,r),e=e.sibling}function Ul(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);rp(t,r,n),t[Et]=e,t[Dt]=n}catch(t){X(e,e.return,t)}}var Wl=!1,Gl=null;function Kl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Wl=!0)}var ql=null;function Jl(){var e=ql;return ql=null,e}var Yl=0;function Xl(e,t,n,r,i){return Yl=0,Zl(e.child,t,n,r,i)}function Zl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=kp(o);r.push(s),s.view&&(a=!0)}else a||kp(o).view&&(a=!0);Wl=!0,Ep(o,Yl===0?t:t+`_`+Yl,n),Yl++}else (e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Zl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function Ql(e,t){for(;e!==null;)e.tag===5?Dp(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Ql(e.child,t)),e=e.sibling}function $l(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&($l(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(a(544));var n=t.name;t=Ci(t.default,t.share),t!==`none`&&(Xl(e,n,t,null,!1)||Ql(e.child,!1))}e=e.sibling}}function eu(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=xi(r,n),a=Ci(r.default,n.paired?r.share:r.enter);a===`none`?$l(e):Xl(e,i,a,null,!1)?($l(e),n.paired||t||Pd(e,r.onEnter)):Ql(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)eu(e,t),e=e.sibling;else $l(e)}function tu(e){if(Gl!==null&&Gl.size!==0){var t=Gl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=Ci(n.default,n.share);if(a!==`none`&&(Xl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Pd(e,n.onShare)):Ql(e.child,!1)),t.delete(r),t.size===0)break}}}tu(e)}e=e.sibling}}}function nu(e){if(e.tag===30){var t=e.memoizedProps,n=xi(t,e.stateNode),r=Gl===null?void 0:Gl.get(n),i=Ci(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Xl(e,n,i,null,!1)?r===void 0?Pd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Gl.delete(n),Pd(e,t.onShare)):Ql(e.child,!1)),Gl!==null&&tu(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)nu(e),e=e.sibling;else Gl!==null&&tu(e)}function ru(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=xi(t,e.stateNode);t=Ci(t.default,t.update),e.flags&=-5,t!==`none`&&Xl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&ru(e);e=e.sibling}}function iu(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Ql(e.child,!1))}iu(e)}e=e.sibling}}function au(e){if(e.tag===30)e.stateNode.paired=null,Ql(e.child,!1),iu(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)au(e),e=e.sibling;else iu(e)}function ou(e){for(e=e.child;e!==null;)e.tag===30?Ql(e.child,!1):e.subtreeFlags&33554432&&ou(e),e=e.sibling}function su(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Yl<a.length){var l=a[Yl],u=kp(c);(l.view||u.view)&&(s=!0);var d;if(d=(e.flags&4)==0)if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Ep(c,Yl===0?n:n+`_`+Yl,i),s&&e.flags&4||(ql===null&&(ql=[]),ql.push(c,Yl===0?r:r+`_`+Yl,t.memoizedProps)),Yl++}else (t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:su(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function cu(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=xi(n,r),a=Ci(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Ap)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Yl=0,i=su(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Pd(e,n.onUpdate))}else e.subtreeFlags&33554432&&cu(e,t);e=e.sibling}}var lu=!1,B=!1,uu=!1,du=!1,fu=typeof WeakSet==`function`?WeakSet:Set,pu=null,mu=!1,hu=!1,gu=!1,_u=!1;function vu(e,t,n){if(e=e.containerInfo,cp=_h,e=Zr(e),Qr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(lp={focusedElem:e,selectionRange:r},_h=!1,n=(n&335544064)===n,pu=t,t=n?9270:1024;pu!==null;){if(e=pu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&nu(r[a]);if(e.alternate===null&&e.flags&2)n&&Kl(e),yu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&nu(r),yu(n);continue}else if(r!==null&&r.memoizedState!==null){n&&Kl(e),yu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,pu=r):(n&&ru(e),yu(n))}}Gl=null}function yu(e){for(;pu!==null;){var t=pu,n=e,r=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(i&1024&&r!==null){n=void 0,i=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=Ec(t.type,i);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){X(t,t.return,e)}}break;case 3:if(i&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)rm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:rm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=xi(r.memoizedProps,r.stateNode),i=t.memoizedProps,i=Ci(i.default,i.update),i!==`none`&&Xl(r,n,i,r.memoizedState=[],!0));break;default:if(i&1024)throw Error(a(163))}if(r=t.sibling,r!==null){r.return=t.return,pu=r;break}pu=t.return}}function bu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Bu(e,n),r&4&&El(5,n);break;case 1:if(Bu(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){X(n,n.return,e)}else{var i=Ec(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){X(n,n.return,e)}}r&64&&Ol(n),r&512&&Al(n,n.return);break;case 3:if(Bu(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{ko(e,t)}catch(e){X(n,n.return,e)}}break;case 27:t===null&&r&4&&Ul(n);case 26:case 5:Bu(e,n),t===null&&r&4&&Ll(n),r&512&&Al(n,n.return);break;case 12:Bu(e,n);break;case 31:Bu(e,n),r&4&&ku(e,n);break;case 13:Bu(e,n),r&4&&Au(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=vf.bind(null,n),lm(e,n))));break;case 22:if(r=n.memoizedState!==null||lu,!r){var a=t!==null&&t.memoizedState!==null||B;t=lu,i=B,lu=r,(B=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Hu(e,n,r)):Bu(e,n),lu=t,B=i}break;case 30:Bu(e,n),r&512&&Al(n,n.return);break;case 7:r&512&&Al(n,n.return);default:Bu(e,n)}}function xu(e,t){for(e=e.child;e!==null;)Su(e,t),e=e.sibling}function Su(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){X(e,e.return,t)}Cu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,F=!0}catch(t){X(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Tp(s,!0):Tp(e.stateNode,!1)}catch(t){X(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&xu(e,t);break;default:xu(e,t)}}function Cu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:Su(n,r);break a;case 22:n.memoizedState===null&&Cu(n,r);break a;default:Cu(n,r)}}e=e.sibling}}function wu(e){var t=e.alternate;t!==null&&(e.alternate=null,wu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ft(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 Tu=null,Eu=!1;function Du(e,t,n){for(n=n.child;n!==null;)Ou(e,t,n),n=n.sibling}function Ou(e,t,n){if(et&&typeof et.onCommitFiberUnmount==`function`)try{et.onCommitFiberUnmount($e,n)}catch{}switch(n.tag){case 26:B||jl(n,t),Du(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!B&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:B||jl(n,t),Pl(n);var r=Tu,i=Eu;Cp(n.type)&&(Tu=n.stateNode,Eu=!1),Du(e,t,n),_m(n.stateNode,n.type,n.memoizedProps),Tu=r,Eu=i;break;case 5:B||jl(n,t),Pl(n);case 6:if(n.tag===6&&Pl(n),r=Tu,i=Eu,Tu=null,Du(e,t,n),Tu=r,Eu=i,Tu!==null)if(Eu)try{(Tu.nodeType===9?Tu.body:Tu.nodeName===`HTML`?Tu.ownerDocument.body:Tu).removeChild(n.stateNode),F=!0}catch(e){X(n,t,e)}else try{Tu.removeChild(n.stateNode),F=!0}catch(e){X(n,t,e)}break;case 18:Tu!==null&&(Eu?(e=Tu,wp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Uh(e)):wp(Tu,n.stateNode));break;case 4:r=Tu,i=Eu,Tu=n.stateNode.containerInfo,Eu=!0,Du(e,t,n),Tu=r,Eu=i;break;case 0:case 11:case 14:case 15:Dl(2,n,t),B||Dl(4,n,t),Du(e,t,n);break;case 1:B||(jl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&kl(n,t,r)),Du(e,t,n);break;case 21:Du(e,t,n);break;case 22:B=(r=B)||n.memoizedState!==null,Du(e,t,n),B=r;break;case 30:jl(n,t),Du(e,t,n);break;case 7:B||jl(n,t),Du(e,t,n);break;default:Du(e,t,n)}}function ku(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Uh(e)}catch(e){X(t,t.return,e)}}}function Au(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Uh(e)}catch(e){X(t,t.return,e)}}function ju(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new fu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new fu),t;default:throw Error(a(435,e.tag))}}function Mu(e,t){var n=ju(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=yf.bind(null,e,t);t.then(r,r)}})}function Nu(e,t,n){var r=t.deletions;if(r!==null)for(var i=0;i<r.length;i++){var o=r[i],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Cp(l.type)){Tu=l.stateNode,Eu=!1;break a}break;case 5:Tu=l.stateNode,Eu=!1;break a;case 3:case 4:Tu=l.stateNode.containerInfo,Eu=!0;break a}l=l.return}if(Tu===null)throw Error(a(160));Ou(s,c,o),Tu=null,Eu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Fu(t,e,n),t=t.sibling}var Pu=null;function Fu(e,t,n){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(i&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Nu(t,e,n),Iu(e),i&4&&(Dl(3,e,e.return),El(3,e),Dl(5,e,e.return));break;case 1:Nu(t,e,n),Iu(e),i&512&&(B||r===null||jl(r,r.return)),i&64&&lu&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Pu,Nu(t,e,n),Iu(e),i&512&&(B||r===null||jl(r,r.return)),i&4)if(i=r===null?null:r.memoizedState,n=e.memoizedState,r===null)if(n===null)if(e.stateNode===null)if(lu)e.stateNode=pp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,i=o.ownerDocument||o;b:switch(t){case`title`:r=i.getElementsByTagName(`title`)[0],(!r||r[Nt]||r[Et]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=i.createElement(t),i.head.insertBefore(r,i.querySelector(`head > title`))),rp(r,t,n),r[Et]=e,Bt(r),t=r;break a;case`link`:if(o=Km(`link`,`href`,i).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=i.createElement(t),rp(r,t,n),i.head.appendChild(r);break;case`meta`:if(o=Km(`meta`,`content`,i).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=i.createElement(t),rp(r,t,n),i.head.appendChild(r);break;default:throw Error(a(468,t))}r[Et]=e,Bt(r),t=r}e.stateNode=t}else lu||qm(o,e.type,e.stateNode);else e.stateNode=Vm(o,n,e.memoizedProps);else i===n?n===null&&e.stateNode!==null&&Rl(e,e.memoizedProps,r.memoizedProps):(i===null?(t=r.stateNode,t===null||B||t.parentNode.removeChild(t)):i.count--,n===null?lu||qm(o,e.type,e.stateNode):Vm(o,n,e.memoizedProps));break;case 27:Nu(t,e,n),Iu(e),i&512&&(B||r===null||jl(r,r.return)),r!==null&&i&4&&Rl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=uu,uu=!1,Nu(t,e,n),uu=o,Iu(e),i&512&&(B||r===null||jl(r,r.return)),e.flags&32){t=e.stateNode;try{mn(t,``),F=!0}catch(t){X(e,e.return,t)}}i&4&&e.stateNode!=null&&(t=e.memoizedProps,Rl(e,t,r===null?t:r.memoizedProps)),i&1024&&(du=!0);break;case 6:if(Nu(t,e,n),Iu(e),i&4){if(e.stateNode===null)throw Error(a(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,F=!0}catch(t){X(e,e.return,t)}}break;case 3:if(F=!1,Gm=null,o=Pu,Pu=xm(t.containerInfo),Nu(t,e,n),Pu=o,Iu(e),i&4&&r!==null&&r.memoizedState.isDehydrated)try{Uh(t.containerInfo)}catch(t){X(e,e.return,t)}du&&(du=!1,Lu(e)),F=!1;break;case 4:i=uu,uu=lu,r=Xt(),o=Pu,Pu=xm(e.stateNode.containerInfo),Nu(t,e,n),Iu(e),Pu=o,F&&hu&&(gu=!0),F=r,uu=i;break;case 12:Nu(t,e,n),Iu(e);break;case 31:Nu(t,e,n),Iu(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Mu(e,t)));break;case 13:Nu(t,e,n),Iu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(hd=We()),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Mu(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=lu,l=B,u=uu;lu=c||o,uu=u||o,B=l||s,Nu(t,e,n),B=l,uu=u,lu=c,Iu(e),i&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||lu||B||(t=s||B,n=lu,r=B,lu=o||lu,B=t,Vu(e,2),lu=n,B=r),!o&&uu||xu(e,o)),i&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Mu(e,n))));break;case 19:Nu(t,e,n),Iu(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Mu(e,t)));break;case 30:i&512&&(B||r===null||jl(r,r.return)),i=Xt(),o=hu,s=(n&335544064)===n,c=e.memoizedProps,hu=s&&Ci(c.default,c.update)!==`none`,Nu(t,e,n),Iu(e),s&&r!==null&&F&&(e.flags|=4),hu=o,F=i;break;case 21:break;case 7:i&512&&(B||r===null||jl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Nu(t,e,n),Iu(e)}}function Iu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(zl(r)){n=r;break}r=r.return}r=null;for(var i=e.return;i!==null;){if(Il(i)){var o=i.stateNode;r===null?r=[o]:r.push(o)}if(Fl(i))break;i=i.return}var s=r;if(n==null)throw Error(a(160));switch(n.tag){case 27:var c=n.stateNode;Hl(e,Bl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(mn(l,``),n.flags&=-33),Hl(e,Bl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Vl(e,Bl(e),u,s);break;default:throw Error(a(161))}}catch(t){X(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Lu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Lu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,_h=!0,t.reset(),_h=!1),e=e.sibling}}function Ru(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)zu(t,e),t=t.sibling;else cu(t,!1)}function zu(e,t){var n=e.alternate;if(n===null)eu(e,!1);else switch(e.tag){case 3:if(_u=mu=!1,Jl(),Ru(t,e),!mu&&!gu){if(e=ql,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Dp(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),_u=!0}ql=null;break;case 5:Ru(t,e);break;case 4:r=mu,mu=!1,Ru(t,e),mu&&(gu=!0),mu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Ru(t,e):eu(e,!1));break;case 30:r=mu,i=Jl(),mu=!1,Ru(t,e),mu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=xi(a,o),o=xi(n.memoizedProps,o);var s=Ci(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Yl=0,t=su(e,n,t,o,s,a,!0),Yl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Pd(e,e.memoizedProps.onUpdate),ql=i):i!==null&&(i.push.apply(i,ql),ql=i),mu=e.flags&32?!0:r;break;default:Ru(t,e)}}function Bu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)bu(e,t.alternate,t),t=t.sibling}function Vu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:Dl(4,n,n.return),Vu(n,r);break;case 1:jl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&kl(n,n.return,i),Vu(n,r);break;case 27:r&2&&_m(n.stateNode,n.type,n.memoizedProps);case 5:jl(n,n.return),n.tag!==5&&n.tag!==27||Pl(n),Vu(n,r);break;case 6:Pl(n);break;case 26:jl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||B||i.parentNode.removeChild(i),Vu(n,r);break;case 22:n.memoizedState===null&&Vu(n,r);break;case 30:jl(n,n.return),Vu(n,r);break;case 7:jl(n,n.return);default:Vu(n,r)}e=e.sibling}}function Hu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=(n&1)!=0;switch(a.tag){case 0:case 11:case 15:Hu(i,a,n),El(4,a);break;case 1:if(Hu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){X(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)Oo(l[i],c)}catch(e){X(r,r.return,e)}}s&&o&64&&Ol(a),Al(a,a.return);break;case 27:n&2&&Ul(a);case 5:a.tag!==5&&a.tag!==27||Nl(a),Hu(i,a,n),s&&r===null&&o&4&&Ll(a),Al(a,a.return);break;case 6:Nl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||lu||qm(xm(c.ownerDocument),a.type,c),Hu(i,a,n),s&&r===null&&o&4&&Ll(a),Al(a,a.return);break;case 12:Hu(i,a,n);break;case 31:Hu(i,a,n),s&&o&4&&ku(i,a);break;case 13:Hu(i,a,n),s&&o&4&&Au(i,a);break;case 22:a.memoizedState===null&&Hu(i,a,n),Al(a,a.return);break;case 30:Hu(i,a,n),Al(a,a.return);break;case 7:Al(a,a.return);default:Hu(i,a,n)}t=t.sibling}}function Uu(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&&La(n))}function Wu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&La(e))}function Gu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Ku(e,t,n,r),t=t.sibling;else i&&ou(t)}function Ku(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&au(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Gu(e,t,n,r),a&2048&&El(9,t);break;case 1:Gu(e,t,n,r);break;case 3:Gu(e,t,n,r),i&&_u&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&La(a)));break;case 12:if(a&2048){Gu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){X(t,t.return,e)}}else Gu(e,t,n,r);break;case 31:Gu(e,t,n,r);break;case 13:Gu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&au(t),o._visibility&2?Gu(e,t,n,r):(o._visibility|=2,qu(e,t,n,r,(t.subtreeFlags&10256)!=0||!1))):(i&&s!==null&&s.memoizedState===null&&au(s),o._visibility&2?Gu(e,t,n,r):Ju(e,t)),a&2048&&Uu(s,t);break;case 24:Gu(e,t,n,r),a&2048&&Wu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Ql(a.child,!0),Ql(t.child,!0))),Gu(e,t,n,r);break;default:Gu(e,t,n,r)}}function qu(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:qu(a,o,s,c,i),El(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,qu(a,o,s,c,i)):u._visibility&2?qu(a,o,s,c,i):Ju(a,o),i&&l&2048&&Uu(o.alternate,o);break;case 24:qu(a,o,s,c,i),i&&l&2048&&Wu(o.alternate,o);break;default:qu(a,o,s,c,i)}t=t.sibling}}function Ju(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:Ju(n,r),i&2048&&Uu(r.alternate,r);break;case 24:Ju(n,r),i&2048&&Wu(r.alternate,r);break;default:Ju(n,r)}t=t.sibling}}var Yu=8192;function Xu(e,t,n){if(e.subtreeFlags&Yu)for(e=e.child;e!==null;)Zu(e,t,n),e=e.sibling}function Zu(e,t,n){switch(e.tag){case 26:Xu(e,t,n),e.flags&Yu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&Qm(n,e)):$m(n,Pu,e.memoizedState,e.memoizedProps));break;case 5:Xu(e,t,n),e.flags&Yu&&(e=e.stateNode,(t&335544128)===t&&Qm(n,e));break;case 3:case 4:var r=Pu;Pu=xm(e.stateNode.containerInfo),Xu(e,t,n),Pu=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Yu,Yu=16777216,Xu(e,t,n),Yu=r):Xu(e,t,n));break;case 30:if((e.flags&Yu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Gl===null&&(Gl=new Map),Gl.set(r,i)}Xu(e,t,n);break;default:Xu(e,t,n)}}function Qu(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 V(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];pu=r,ed(r,e)}Qu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)H(e),e=e.sibling}function H(e){switch(e.tag){case 0:case 11:case 15:V(e),e.flags&2048&&Dl(9,e,e.return);break;case 3:V(e);break;case 12:V(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,$u(e)):V(e);break;default:V(e)}}function $u(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];pu=r,ed(r,e)}Qu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Dl(8,t,t.return),$u(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,$u(t));break;default:$u(t)}e=e.sibling}}function ed(e,t){for(;pu!==null;){var n=pu;switch(n.tag){case 0:case 11:case 15:Dl(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:La(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,pu=r;else a:for(n=e;pu!==null;){r=pu;var i=r.sibling,a=r.return;if(wu(r),r===n){pu=null;break a}if(i!==null){i.return=a,pu=i;break a}pu=a}}}var td={getCacheForType:function(e){var t=ka(Fa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ka(Fa).controller.signal}},nd=typeof WeakMap==`function`?WeakMap:Map,U=0,W=null,G=null,K=0,q=0,rd=null,id=!1,ad=!1,od=!1,sd=0,J=0,cd=0,ld=0,ud=0,dd=0,fd=0,pd=null,Y=null,md=!1,hd=0,gd=0,_d=1/0,vd=null,yd=null,bd=0,xd=null,Sd=null,Cd=0,wd=0,Td=null,Ed=null,Dd=null,Od=null,kd=null,Ad=0,jd=null;function Md(){return U&2&&K!==0?K&-K:M.T===null?Ct():Ff()}function Nd(){if(dd===0)if(!(K&536870912)||I){var e=st;st<<=1,!(st&3932160)&&(st=262144),dd=e}else dd=536870912;return e=Fo.current,e!==null&&(e.flags|=32),dd}function Pd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Fp(xi(e.memoizedProps,n))),Od===null&&(Od=[]),Od.push(t.bind(null,r))}}function Fd(e,t,n){(e===W&&(q===2||q===9)||e.cancelPendingCommit!==null)&&(Hd(e,0),zd(e,K,dd,!1)),gt(e,n),(!(U&2)||e!==W)&&(e===W&&(!(U&2)&&(ld|=n),J===4&&zd(e,K,dd,!1)),Df(e))}function Id(e,t,n){if(U&6)throw Error(a(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||dt(e,t),i=r?Xd(e,t):Jd(e,t,!0),o=r;do{if(i===0){ad&&!r&&zd(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Rd(n)){i=Jd(e,t,!1),o=!1;continue}if(i===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;i=pd;var l=c.current.memoizedState.isDehydrated;if(l&&(Hd(c,s).flags|=256),s=Jd(c,s,!1),s!==2&&s!==6){if(od&&!l){c.errorRecoveryDisabledLanes|=o,ld|=o,i=4;break a}o=Y,Y=i,o!==null&&(Y===null?Y=o:Y.push.apply(Y,o))}i=s}if(o=!1,i!==2)continue}}if(i===1){Hd(e,0),zd(e,t,0,!0);break}a:{switch(r=e,o=i,o){case 0:case 1:throw Error(a(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:zd(r,t,dd,!id);break a;case 2:Y=null;break;case 3:case 5:break;default:throw Error(a(329))}if((t&62914560)===t&&(i=hd+300-We(),10<i)){if(zd(r,t,dd,!id),ut(r,0,!0)!==0)break a;Cd=t,r.timeoutHandle=_p(Ld.bind(null,r,n,Y,vd,md,t,dd,ld,fd,id,o,`Throttled`,-0,0),i);break a}Ld(r,n,Y,vd,md,t,dd,ld,fd,id,o,null,-0,0)}}break}while(1);Df(e)}function Ld(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;if(d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Sn},Gl=null,Zu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=rh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?hd-We():(a&4194048)===a?gd-We():0,m=th(d,m),m!==null)){Cd=a,e.cancelPendingCommit=m(rf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),zd(e,a,o,!l);return}rf(e,t,a,n,r,i,o,s,c,l,u,d)}function Rd(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(!Gr(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 zd(e,t,n,r){t=ft(e,t),t&=~ud,t&=~ld,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-nt(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&vt(e,n,t)}function Bd(){return U&6?!0:(Of(0,!1),!1)}function Vd(){if(G!==null){if(q===0)var e=G.return;else e=G,xa=ba=null,ls(e),lo=null,uo=0,e=G;for(;e!==null;)Tl(e.alternate,e),e=e.return;G=null}}function Hd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,vp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Cd=0,Vd(),W=e,G=n=Ri(e.current,null),K=t,q=0,rd=null,id=!1,ad=dt(e,t),od=!1,fd=dd=ud=ld=cd=J=0,Y=pd=null,md=!1,sd=ft(e,t),Oi(),n}function Ud(e,t){L=null,M.H=yc,t===$a||t===to?(t=so(),q=3):t===eo?(t=so(),q=4):q=t===Ic?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,rd=t,G===null&&(J=1,Ac(e,Ki(t,e.current)))}function Wd(){var e=Fo.current;return e===null?!0:(K&4194048)===K?Io===null:(K&62914560)===K||K&536870912?e===Io:!1}function Gd(){var e=M.H;return M.H=yc,e===null?yc:e}function Kd(){var e=M.A;return M.A=td,e}function qd(){J=4,id||(K&4194048)!==K&&Fo.current!==null||(ad=!0),!(cd&134217727)&&!(ld&134217727)||W===null||zd(W,K,dd,!1)}function Jd(e,t,n){var r=U;U|=2;var i=Gd(),a=Kd();(W!==e||K!==t)&&(vd=null,Hd(e,t)),t=!1;var o=J;a:do try{if(q!==0&&G!==null){var s=G,c=rd;switch(q){case 8:Vd(),o=6;break a;case 3:case 2:case 9:case 6:Fo.current===null&&(t=!0);var l=q;if(q=0,rd=null,ef(e,s,c,l),n&&ad){o=0;break a}break;default:l=q,q=0,rd=null,ef(e,s,c,l)}}Yd(),o=J;break}catch(t){Ud(e,t)}while(1);return t&&e.shellSuspendCounter++,xa=ba=null,U=r,M.H=i,M.A=a,G===null&&(W=null,K=0,Oi()),o}function Yd(){for(;G!==null;)Qd(G)}function Xd(e,t){var n=U;U|=2;var r=Gd(),i=Kd();W!==e||K!==t?(vd=null,_d=We()+500,Hd(e,t)):ad=dt(e,t);a:do try{if(q!==0&&G!==null){t=G;var o=rd;b:switch(q){case 1:q=0,rd=null,ef(e,t,o,1);break;case 2:case 9:if(ro(o)){q=0,rd=null,$d(t);break}t=function(){q!==2&&q!==9||W!==e||(q=7),Df(e)},o.then(t,t);break a;case 3:q=7;break a;case 4:q=5;break a;case 7:ro(o)?(q=0,rd=null,$d(t)):(q=0,rd=null,ef(e,t,o,7));break;case 5:var s=null;switch(G.tag){case 26:s=G.memoizedState;case 5:case 27:var c=G;if(s?Xm(s):c.stateNode.complete){q=0,rd=null;var l=c.sibling;if(l!==null)G=l;else{var u=c.return;u===null?G=null:(G=u,tf(u))}break b}}q=0,rd=null,ef(e,t,o,5);break;case 6:q=0,rd=null,ef(e,t,o,6);break;case 8:Vd(),J=6;break a;default:throw Error(a(462))}}Zd();break}catch(t){Ud(e,t)}while(1);return xa=ba=null,M.H=r,M.A=i,U=n,G===null?(W=null,K=0,Oi(),J):0}function Zd(){for(;G!==null&&!He();)Qd(G)}function Qd(e){var t=gl(e.alternate,e,sd);e.memoizedProps=e.pendingProps,t===null?tf(e):G=t}function $d(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Xc(n,t,t.pendingProps,t.type,void 0,K);break;case 11:t=Xc(n,t,t.pendingProps,t.type.render,t.ref,K);break;case 5:ls(t);var r=t;r===sa&&(I?(ma(r),r.tag===5&&r.stateNode!=null&&(ca=r.stateNode)):(ma(r),I=!0));default:Tl(n,t),t=G=zi(t,sd),t=gl(n,t,sd)}e.memoizedProps=e.pendingProps,t===null?tf(e):G=t}function ef(e,t,n,r){xa=ba=null,ls(t),lo=null,uo=0;var i=t.return;try{if(Fc(e,i,t,n,K)){J=1,Ac(e,Ki(n,e.current)),G=null;return}}catch(t){if(i!==null)throw G=i,t;J=1,Ac(e,Ki(n,e.current)),G=null;return}t.flags&32768?(I||r===1?e=!0:ad||K&536870912?e=!1:(id=e=!0,(r===2||r===9||r===3||r===6)&&(r=Fo.current,r!==null&&r.tag===13&&(r.flags|=16384))),nf(t,e)):tf(t)}function tf(e){var t=e;do{if(t.flags&32768){nf(t,id);return}e=t.return;var n=Cl(t.alternate,t,sd);if(n!==null){G=n;return}if(t=t.sibling,t!==null){G=t;return}G=t=e}while(t!==null);J===0&&(J=5)}function nf(e,t){do{var n=wl(e.alternate,e);if(n!==null){n.flags&=32767,G=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){G=e;return}G=e=n}while(e!==null);J=6,G=null}function rf(e,t,n,r,i,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do ff();while(bd!==0);if(U&6)throw Error(a(327));if(t!==null){if(t===e.current)throw Error(a(177));e===W&&(G=W=null,K=0),Sd=t,xd=e,Cd=n,Td=i,Ed=r,af(e,t,n,s,c,l,f)}}function af(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(wd=s,s|=Di,_t(e,n,s,r,i,a),Od=null,(n&335544064)===n?(kd=Ba(e),r=10262):(kd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,bf(Je,function(){return pf(),null})):(e.callbackNode=null,e.callbackPriority=0),Wl=!1,r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=M.T,M.T=null,i=N.p,N.p=2,a=U,U|=4;try{vu(e,t,n)}finally{U=a,N.p=i,M.T=r}}bd=1,Wl?Dd=Np(o,e.containerInfo,kd,cf,lf,sf,uf,pf,of,null,null):(cf(),lf(),uf())}function of(e){if(bd!==0){var t=xd.onRecoverableError;t(e,{componentStack:null})}}function sf(){bd===3&&(bd=0,zu(Sd,xd),bd=4)}function cf(){if(bd===1){bd=0;var e=xd,t=Sd,n=Cd,r=(t.flags&13878)!=0;if(t.subtreeFlags&13878||r){r=M.T,M.T=null;var i=N.p;N.p=2;var a=U;U|=4;try{hu=gu=!1,Fu(t,e,n),n=lp;var o=Zr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Xr(s.ownerDocument.documentElement,s)){if(c!==null&&Qr(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 _=Yr(s,h),v=Yr(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}}_h=!!cp,lp=cp=null}finally{U=a,N.p=i,M.T=r}}e.current=t,bd=2}}function lf(){if(bd===2){bd=0;var e=xd,t=Sd,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=M.T,M.T=null;var r=N.p;N.p=2;var i=U;U|=4;try{bu(e,t.alternate,t)}finally{U=i,N.p=r,M.T=n}}bd=3}}function uf(){if(bd===4||bd===3){bd=0;var e=Dd;Dd=null,Ue();var t=xd,n=Sd,r=Cd,i=Ed,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?bd=5:(bd=0,Sd=xd=null,df(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(yd=null),St(r),n=n.stateNode,et&&typeof et.onCommitFiberRoot==`function`)try{et.onCommitFiberRoot($e,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=M.T,a=N.p,N.p=2,M.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{M.T=n,N.p=a}}if(i=Od,o=kd,kd=null,i!==null&&(Od=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Cd&3&&ff(),Df(t),a=t.pendingLanes,r&261930&&a&42?t===jd?Ad++:(Ad=0,jd=t):(Ad=0,jd=null),Of(0,!1)}}function df(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,La(t)))}function ff(){return Dd!==null&&(Dd.skipTransition(),Dd=null),cf(),lf(),uf(),pf()}function pf(){if(bd!==5)return!1;var e=xd,t=wd;wd=0;var n=St(Cd),r=M.T,i=N.p;try{N.p=32>n?32:n,M.T=null,n=Td,Td=null;var o=xd,s=Cd;if(bd=0,Sd=xd=null,Cd=0,U&6)throw Error(a(331));var c=U;if(U|=4,H(o.current),Ku(o,o.current,s,n),U=c,Of(0,!1),et&&typeof et.onPostCommitFiberRoot==`function`)try{et.onPostCommitFiberRoot($e,o)}catch{}return!0}finally{N.p=i,M.T=r,df(e,t)}}function mf(e,t,n){t=Ki(n,t),t=Mc(e.stateNode,t,2),e=So(e,t,2),e!==null&&(gt(e,2),Df(e))}function X(e,t,n){if(e.tag===3)mf(e,e,n);else for(;t!==null;){if(t.tag===3){mf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(yd===null||!yd.has(r))){e=Ki(n,e),n=Nc(2),r=So(t,n,2),r!==null&&(Pc(n,r,t,e),gt(r,2),Df(r));break}}t=t.return}}function hf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new nd;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)||(od=!0,i.add(n),e=gf.bind(null,e,t,n),t.then(e,e))}function gf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,W===e&&(K&n)===n&&(J===4||J===3&&(K&62914560)===K&&300>We()-hd?U&2?ud|=n:Hd(e,0):ud|=n,fd===K&&(fd=0)),Df(e)}function _f(e,t){t===0&&(t=mt()),e=ji(e,t),e!==null&&(gt(e,t),Df(e))}function vf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_f(e,n)}function yf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),_f(e,n)}function bf(e,t){return Be(e,t)}var xf=null,Sf=null,Cf=!1,wf=!1,Tf=!1,Ef=0;function Df(e){e!==Sf&&e.next===null&&(Sf===null?xf=Sf=e:Sf=Sf.next=e),wf=!0,Cf||(Cf=!0,Pf())}function Of(e,t){if(!Tf&&wf){Tf=!0;do for(var n=!1,r=xf;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-nt(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Nf(r,a))}else a=K,a=ut(r,r===W?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||dt(r,a)||(n=!0,Nf(r,a));r=r.next}while(n);Tf=!1}}function kf(){Af()}function Af(){wf=Cf=!1;var e=0;Ef!==0&&gp()&&(e=Ef);for(var t=We(),n=null,r=xf;r!==null;){var i=r.next,a=jf(r,t);a===0?(r.next=null,n===null?xf=i:n.next=i,i===null&&(Sf=n)):(n=r,(e!==0||a&3)&&(wf=!0)),r=i}bd!==0&&bd!==5||Of(e,!1),Ef!==0&&(Ef=0)}function jf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-nt(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=pt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=W,n=K,n=ut(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(q===2||q===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ve(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||dt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ve(r),St(n)){case 2:case 8:n=qe;break;case 32:n=Je;break;case 268435456:n=Xe;break;default:n=Je}return r=Mf.bind(null,e),n=Be(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ve(r),e.callbackPriority=2,e.callbackNode=null,2}function Mf(e,t){if(bd!==0&&bd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ff()&&e.callbackNode!==n)return null;var r=K;return r=ut(e,e===W?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Id(e,r,t),jf(e,We()),e.callbackNode!=null&&e.callbackNode===n?Mf.bind(null,e):null)}function Nf(e,t){if(ff())return null;Id(e,t,!0)}function Pf(){xp(function(){U&6?Be(Ke,kf):Af()})}function Ff(){if(Ef===0){var e=Ua;e===0&&(e=ot,ot<<=1,!(ot&261888)&&(ot=256)),Ef=e}return Ef}function If(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:xn(e)}function Lf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=If((i[Dt]||null).action),o=r.submitter;o&&(t=(t=o[Dt]||null)?If(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Un(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ef!==0){var e=new FormData(i,o);ac(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),ac(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Rf=0;Rf<vi.length;Rf++){var zf=vi[Rf];yi(zf.toLowerCase(),`on`+(zf[0].toUpperCase()+zf.slice(1)))}yi(ui,`onAnimationEnd`),yi(di,`onAnimationIteration`),yi(fi,`onAnimationStart`),yi(`dblclick`,`onDoubleClick`),yi(`focusin`,`onFocus`),yi(`focusout`,`onBlur`),yi(pi,`onTransitionRun`),yi(mi,`onTransitionStart`),yi(hi,`onTransitionCancel`),yi(gi,`onTransitionEnd`),Gt(`onMouseEnter`,[`mouseout`,`mouseover`]),Gt(`onMouseLeave`,[`mouseout`,`mouseover`]),Gt(`onPointerEnter`,[`pointerout`,`pointerover`]),Gt(`onPointerLeave`,[`pointerout`,`pointerover`]),Wt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Wt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Wt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Wt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Wt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Wt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Bf=`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(` `),Vf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Bf));function Hf(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){wi(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){wi(e)}i.currentTarget=null,a=c}}}}function Z(e,t){var n=t[kt];n===void 0&&(n=t[kt]=new Set);var r=e+`__bubble`;n.has(r)||(Kf(t,e,2,!1),n.add(r))}function Uf(e,t,n){var r=0;t&&(r|=4),Kf(n,e,r,t)}var Wf=`_reactListening`+Math.random().toString(36).slice(2);function Gf(e){if(!e[Wf]){e[Wf]=!0,Ht.forEach(function(t){t!==`selectionchange`&&(Vf.has(t)||Uf(t,!1,e),Uf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wf]||(t[Wf]=!0,Uf(`selectionchange`,!1,t))}}function Kf(e,t,n,r){switch(wh(t)){case 2:var i=vh;break;case 8:i=yh;break;default:i=bh}n=i.bind(null,t,n,e),i=void 0,!Mn||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 qf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var c=r.stateNode.containerInfo;if(c===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;c!==null;){if(o=It(c),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}c=c.parentNode}}r=r.return}kn(function(){var r=a,i=wn(n),o=[];a:{var c=_i.get(e);if(c!==void 0){var l=Un,u=e;switch(e){case`keypress`:if(Rn(n)===0)break a;case`keydown`:case`keyup`:l=sr;break;case`focusin`:u=`focus`,l=Qn;break;case`focusout`:u=`blur`,l=Qn;break;case`beforeblur`:case`afterblur`:l=Qn;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=Xn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Zn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=ur;break;case ui:case di:case fi:l=$n;break;case gi:l=dr;break;case`scroll`:case`scrollend`:l=Gn;break;case`wheel`:l=fr;break;case`copy`:case`cut`:case`paste`:l=er;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=cr;break;case`submit`:l=lr;break;case`toggle`:case`beforetoggle`:l=pr}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=An(m,p),g!=null&&d.push(Jf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),o.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==Cn&&(u=n.relatedTarget||n.fromElement)&&(It(u)||u[Ot]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?It(l):null,l!==null&&(f=s(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Xn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=cr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Rt(c),h=l==null?u:Rt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,It(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?E(c,l,Xf):null,c!==null&&Zf(o,u,c,d,!1),l!==null&&f!==null&&Zf(o,f,l,d,!0)))}a:{if(c=r?Rt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Nr;else if(Dr(c))if(Pr)_=Ur;else{_=Vr;var v=Br}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&vn(r.elementType)&&(_=Nr):_=Hr;if(_&&=_(e,r)){Or(o,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Rt(r):window,e){case`focusin`:(Dr(v)||v.contentEditable===`true`)&&(ei=v,ti=r,ni=null);break;case`focusout`:ni=ti=ei=null;break;case`mousedown`:ri=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:ri=!1,ii(o,n,i);break;case`selectionchange`:if($r)break;case`keydown`:case`keyup`:ii(o,n,i)}var y;if(hr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else Cr?xr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(vr&&n.locale!==`ko`&&(Cr||b!==`onCompositionStart`?b===`onCompositionEnd`&&Cr&&(y=Ln()):(Pn=i,Fn=`value`in Pn?Pn.value:Pn.textContent,Cr=!0)),v=Yf(r,b),0<v.length&&(b=new tr(b,e,null,n,i),o.push({event:b,listeners:v}),y?b.data=y:(y=Sr(n),y!==null&&(b.data=y)))),(y=_r?wr(e,n):Tr(e,n))&&(b=Yf(r,`onBeforeInput`),0<b.length&&(v=new tr(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:v,listeners:b}),v.data=y)),Lf(o,e,r,n,i)}Hf(o,t)})}function Jf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yf(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=An(e,n),i!=null&&r.unshift(Jf(e,i,a)),i=An(e,t),i!=null&&r.push(Jf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Xf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Zf(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=An(n,a),l!=null&&o.unshift(Jf(n,l,c))):i||(l=An(n,a),l!=null&&o.push(Jf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Qf=/\r\n?/g,$f=/\u0000|\uFFFD/g;function ep(e){return(typeof e==`string`?e:``+e).replace(Qf,`
9
9
  `).replace($f,``)}function tp(e,t){return t=ep(t),ep(e)===t}function Q(e,t,n,r,i,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||mn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&mn(e,``+r);else return;break;case`className`:Qt(e,`class`,r);break;case`tabIndex`:Qt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Qt(e,n,r);break;case`style`:_n(e,r,o);return;case`data`:if(t!==`object`){Qt(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=xn(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`&&Q(e,t,`name`,i.name,i,null),Q(e,t,`formEncType`,i.formEncType,i,null),Q(e,t,`formMethod`,i.formMethod,i,null),Q(e,t,`formTarget`,i.formTarget,i,null)):(Q(e,t,`encType`,i.encType,i,null),Q(e,t,`method`,i.method,i,null),Q(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=xn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Sn);return;case`onScroll`:r!=null&&Z(`scroll`,e);return;case`onScrollEnd`:r!=null&&Z(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(60));o?.__html!==n&&(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=xn(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`credentialless`: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`:Z(`beforetoggle`,e),Z(`toggle`,e),Zt(e,`popover`,r);break;case`xlinkActuate`:$t(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:$t(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:$t(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:$t(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:$t(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:$t(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:$t(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:$t(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:$t(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Zt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=yn.get(n)||n,Zt(e,n,r);else return}F=!0}function np(e,t,n,r,i,o){switch(n){case`style`:_n(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)mn(e,r);else if(typeof r==`number`||typeof r==`bigint`)mn(e,``+r);else return;break;case`onScroll`:r!=null&&Z(`scroll`,e);return;case`onScrollEnd`:r!=null&&Z(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=Sn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Ut.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),o=n.slice(2,i?n.length-7:void 0),t=e[Dt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,i),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,i);break a}F=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Zt(e,n,r)}return}F=!0}function rp(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Z(`error`,e),Z(`load`,e);var r=!1,i=!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`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(a(137,t));default:Q(e,t,o,s,n,null)}}i&&Q(e,t,`srcSet`,n.srcSet,n,null),r&&Q(e,t,`src`,n.src,n,null);return;case`input`:Z(`invalid`,e);var c=o=s=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=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(a(137,t));break;default:Q(e,t,r,d,n,null)}}ln(e,o,c,l,u,s,i,!1);return;case`select`:for(i in Z(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Q(e,t,i,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&dn(e,!!r,n,!0):dn(e,!!r,t,!1);return;case`textarea`:for(s in Z(`invalid`,e),o=i=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(a(91));break;default:Q(e,t,s,c,n,null)}pn(e,r,i,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:Q(e,t,l,r,n,null)}return;case`dialog`:Z(`beforetoggle`,e),Z(`toggle`,e),Z(`cancel`,e),Z(`close`,e);break;case`iframe`:case`object`:Z(`load`,e);break;case`video`:case`audio`:for(r=0;r<Bf.length;r++)Z(Bf[r],e);break;case`image`:Z(`error`,e),Z(`load`,e);break;case`details`:Z(`toggle`,e);break;case`embed`:case`source`:case`link`:Z(`error`,e),Z(`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(a(137,t));default:Q(e,t,u,r,n,null)}return;default:if(vn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&np(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Q(e,t,c,r,n,null))}var ip={};function ap(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 i=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)||Q(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`:m!==f&&(F=!0),o=m;break;case`name`:m!==f&&(F=!0),i=m;break;case`checked`:m!==f&&(F=!0),u=m;break;case`defaultChecked`:m!==f&&(F=!0),d=m;break;case`value`:m!==f&&(F=!0),s=m;break;case`defaultValue`:m!==f&&(F=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(a(137,t));break;default:m!==f&&Q(e,t,p,m,r,f)}}cn(e,s,c,l,u,d,o,i);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)||Q(e,t,o,null,r,l)}for(i in r)if(o=r[i],l=n[i],r.hasOwnProperty(i)&&(o!=null||l!=null))switch(i){case`value`:o!==l&&(F=!0),p=o;break;case`defaultValue`:o!==l&&(F=!0),c=o;break;case`multiple`:o!==l&&(F=!0),s=o;default:o!==l&&Q(e,t,i,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?dn(e,!!n,n?[]:``,!1):dn(e,!!n,t,!0)):dn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Q(e,t,c,null,r,i)}for(s in r)if(i=r[s],o=n[s],r.hasOwnProperty(s)&&(i!=null||o!=null))switch(s){case`value`:i!==o&&(F=!0),p=i;break;case`defaultValue`:i!==o&&(F=!0),m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(a(91));break;default:i!==o&&Q(e,t,s,i,r,o)}fn(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:Q(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`:p!==m&&(F=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Q(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)&&Q(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(a(137,t));break;default:Q(e,t,u,p,r,m)}return;default:if(vn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&np(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||np(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Q(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||Q(e,t,f,p,r,m)}function op(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function sp(){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&&op(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&&op(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 cp=null,lp=null;function up(e){return e.nodeType===9?e:e.ownerDocument}function dp(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 fp(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 pp(e,t,n,r){return n=up(n).createElement(e),n[Et]=r,n[Dt]=t,rp(n,e,t),Bt(n),n}function mp(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 hp=null;function gp(){var e=window.event;return e&&e.type===`popstate`?e===hp?!1:(hp=e,!0):(hp=null,!1)}var _p=typeof setTimeout==`function`?setTimeout:void 0,vp=typeof clearTimeout==`function`?clearTimeout:void 0,yp=typeof Promise==`function`?Promise:void 0,bp=typeof requestAnimationFrame==`function`?requestAnimationFrame:_p,xp=typeof queueMicrotask==`function`?queueMicrotask:yp===void 0?_p:function(e){return yp.resolve(null).then(e).catch(Sp)};function Sp(e){setTimeout(function(){throw e})}function Cp(e){return e===`head`}function wp(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),Uh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)vm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,vm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Nt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&vm(e.ownerDocument.body);n=i}while(n);Uh(t)}function Tp(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 Ep(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Dp(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Op(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function kp(e){return Op(e.getBoundingClientRect(),getComputedStyle(e),e)}function Ap(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Op(t,n,e)}function jp(e){return e.documentElement.clientHeight}function Mp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Np(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(jp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=Zm(f),u>eh){s.length=o;break}f=new Promise(Mp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Pp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Pp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:D({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Pp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Pp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Fp(e){return{name:e,group:new Pp(`group`,e),imagePair:new Pp(`image-pair`,e),old:new Pp(`old`,e),new:new Pp(`new`,e)}}function Ip(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Ip.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Vp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=zp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),h(this._fragmentFiber.child,!1,Lp,e,s,r)}this._eventListeners=a}};function Lp(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Ip.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Vp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=zp(i.optionsOrUseCapture),h(this._fragmentFiber.child,!1,Rp,e,n,i),r.splice(t,1),a!==null&&a()}};function Rp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function zp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Bp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Vp(e,t,n,r){if(e.length===0)return-1;r=Bp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Bp(a.optionsOrUseCapture)===r)return i}return-1}Ip.prototype.dispatchEvent=function(e){var t=g(this._fragmentFiber);if(t===null)return!0;t=b(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,zp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,zp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Ip.prototype.focus=function(e){h(this._fragmentFiber.child,!0,Hp,e,void 0,void 0)};function Hp(e,t){return e.tag===6?!1:(e=b(e),mm(e,t))}Ip.prototype.focusLast=function(e){var t=[];h(this._fragmentFiber.child,!0,Up,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Hp(t[n],e);n--);};function Up(e,t){return t.push(e),!1}Ip.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=up(e).activeElement,e!==null&&h(this._fragmentFiber.child,!1,Wp,e,void 0,void 0))};function Wp(e,t){return e.tag===6?!1:(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Ip.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),h(this._fragmentFiber.child,!1,Gp,e,void 0,void 0)};function Gp(e,t){return e.tag===6?!1:(e=b(e),t.observe(e),!1)}Ip.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),h(this._fragmentFiber.child,!1,Kp,e,void 0,void 0);for(var n=t=0;n<qp.length;n++){var r=qp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):qp[t++]=r}qp.length=t}};function Kp(e,t){return e.tag===6?!1:(e=b(e),t.unobserve(e),!1)}var qp=[],Jp=!1;function Yp(e,t,n){qp.push({fragmentInstance:e,observer:t,instance:n}),Jp||(Jp=!0,hm(function(){Jp=!1;var e=qp;qp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Ip.prototype.getClientRects=function(){var e=[];return h(this._fragmentFiber.child,!1,Xp,e,void 0,void 0),e};function Xp(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=b(e),t.push.apply(t,e.getClientRects());return!1}Ip.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Ip.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];h(this._fragmentFiber.child,!1,Up,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=b(n[0]),i=b(n[n.length-1]);var a=_(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Zp(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Zp(e,t,n,r,i){var a=It(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=g(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=E(n,a,T),t===null?t=!1:(h(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=E(r,a,T),t===null?t=!1:(h(t,!0,w,a,r),a=x,S=x=null,t=a!==null)),t):!1}function Qp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Ip.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(a(566));var t=[];h(this._fragmentFiber.child,!1,Up,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||g(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),Qp(e,n);return}if(r=b(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var i=t[r];i.tag===6?(i=b(i),Qp(i,n)):b(i).scrollIntoView(e),r+=n?-1:1}};function $p(e,t){return e=b(e),em(e,t),!1}function em(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function tm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,zp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<qp.length;i++){var a=qp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(qp[r++]=a)}qp.length=r,n.observe(e)}),em(e,t))}function nm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,zp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Yp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function rm(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`:rm(n),Ft(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function im(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(!e[Nt])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}}else 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;if(e=um(e.nextSibling),e===null)break}return null}function am(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=um(e.nextSibling),e===null))return null;return e}function om(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=um(e.nextSibling),e===null))return null;return e}function sm(e){return e.data===`$?`||e.data===`$~`}function cm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function lm(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 um(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 dm=null;function fm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return um(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function pm(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 mm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function hm(e){bp(function(){bp(function(t){return e(t)})})}function gm(e,t,n){switch(t=up(n),e){case`html`:if(e=t.documentElement,!e)throw Error(a(452));return e;case`head`:if(e=t.head,!e)throw Error(a(453));return e;case`body`:if(e=t.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function _m(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&Q(e,t,r,null,ip,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===Sn&&(e.onclick=null),Ft(e)}function vm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ft(e)}var ym=new Map,bm=new Set;function xm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Sm=N.d;N.d={f:Cm,r:wm,D:Dm,C:Om,L:km,m:Am,X:Mm,S:jm,M:Nm};function Cm(){var e=Sm.f(),t=Bd();return e||t}function wm(e){var t=Lt(e);t!==null&&t.tag===5&&t.type===`form`?sc(t):Sm.r(e)}var Tm=typeof document>`u`?null:document;function Em(e,t,n){var r=Tm;if(r&&typeof t==`string`&&t){var i=sn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),bm.has(i)||(bm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),rp(t,`link`,e),Bt(t),r.head.appendChild(t)))}}function Dm(e){Sm.D(e),Em(`dns-prefetch`,e,null)}function Om(e,t){Sm.C(e,t),Em(`preconnect`,e,t)}function km(e,t,n){Sm.L(e,t,n);var r=Tm;if(r&&e&&t){var i=`link[rel="preload"][as="`+sn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+sn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+sn(n.imageSizes)+`"]`)):i+=`[href="`+sn(e)+`"]`;var a=i;switch(t){case`style`:a=Fm(e);break;case`script`:a=zm(e)}if(!(ym.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),ym.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Im(a))||t===`script`&&r.querySelector(Bm(a))))){var o=r.createElement(`link`);rp(o,`link`,e),t===`style`&&(o[Pt]=!0,o.onload=o.onerror=function(){Vt(o)}),Bt(o),r.head.appendChild(o)}}}function Am(e,t){Sm.m(e,t);var n=Tm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+sn(r)+`"][href="`+sn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=zm(e)}if(!ym.has(a)&&(e=D({rel:`modulepreload`,href:e},t),ym.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Bm(a)))return}r=n.createElement(`link`),rp(r,`link`,e),Bt(r),n.head.appendChild(r)}}}function jm(e,t,n){Sm.S(e,t,n);var r=Tm;if(r&&e){var i=zt(r).hoistableStyles,a=Fm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Im(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=ym.get(a))&&Um(e,n);var c=o=r.createElement(`link`);Bt(c),rp(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,Hm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Mm(e,t){Sm.X(e,t);var n=Tm;if(n&&e){var r=zt(n).hoistableScripts,i=zm(e),a=r.get(i);a||(a=n.querySelector(Bm(i)),a||(e=D({src:e,async:!0},t),(t=ym.get(i))&&Wm(e,t),a=n.createElement(`script`),Bt(a),rp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t){Sm.M(e,t);var n=Tm;if(n&&e){var r=zt(n).hoistableScripts,i=zm(e),a=r.get(i);a||(a=n.querySelector(Bm(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=ym.get(i))&&Wm(e,t),a=n.createElement(`script`),Bt(a),rp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Pm(e,t,n,r){var i=(i=Ee.current)?xm(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Fm(n.href),t=zt(i).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,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=Fm(n.href);var o=zt(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(Im(e)))?o._p||(s.instance=o,s.state.loading=5):(o=ym.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ym.set(e,o)),Rm(i,e,o,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=zm(n),t=zt(i).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Fm(e){return`href="`+sn(e)+`"`}function Im(e){return`link[rel="stylesheet"][`+e+`]`}function Lm(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function Rm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Pt]){r.loading=1;return}}else t=e.createElement(`link`),t[Pt]=!0,t.onload=t.onerror=Vt.bind(null,t),rp(t,`link`,n),Bt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function zm(e){return`[src="`+sn(e)+`"]`}function Bm(e){return`script[async]`+e}function Vm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+sn(n.href)+`"]`);if(r)return t.instance=r,Bt(r),r;var i=D({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Bt(r),rp(r,`style`,i),Hm(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Fm(n.href);var o=e.querySelector(Im(i));if(o)return t.state.loading|=4,t.instance=o,Bt(o),o;r=Lm(n),(i=ym.get(i))&&Um(r,i),o=(e.ownerDocument||e).createElement(`link`),Bt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),rp(o,`link`,r),t.state.loading|=4,Hm(o,n.precedence,e),t.instance=o;case`script`:return o=zm(n.src),(i=e.querySelector(Bm(o)))?(t.instance=i,Bt(i),i):(r=n,(i=ym.get(o))&&(r=D({},n),Wm(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),Bt(i),rp(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Hm(r,n.precedence,e));return t.instance}function Hm(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 Um(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Wm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Gm=null;function Km(e,t,n){if(Gm===null){var r=new Map,i=Gm=new Map;i.set(n,r)}else i=Gm,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[Nt]||a[Et]||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 qm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Jm(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 Ym(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Xm(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Zm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Qm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Zm(t),e.suspenseyImages.push(t)),e=ih.bind(e),t.decode().then(e,e))}function $m(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=Fm(r.href),a=t.querySelector(Im(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=rh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Bt(a);return}a=t.ownerDocument||t,r=Lm(r),(i=ym.get(i))&&Um(r,i),a=a.createElement(`link`),Bt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),rp(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=rh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var eh=0;function th(e,t){return e.stylesheets&&e.count===0&&oh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&oh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&eh===0&&(eh=62500*sp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&oh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>eh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function nh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)oh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function rh(){this.count--,nh(this)}function ih(){this.imgCount--,nh(this)}var ah=null;function oh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ah=new Map,t.forEach(sh,e),ah=null,rh.call(e))}function sh(e,t){if(!(t.state.loading&4)){var n=ah.get(e);if(n)var r=n.get(null);else{n=new Map,ah.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=rh.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 ch={$$typeof:re,Provider:null,Consumer:null,_currentValue:ye,_currentValue2:ye,_threadCount:0};function lh(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=ht(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ht(0),this.hiddenUpdates=ht(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function uh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new lh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Ii(3,null,null,t),e.current=a,a.stateNode=e,t=Ia(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},yo(a),e}function dh(e){return e?(e=Pi,e):Pi}function fh(e,t,n,r,i,a){i=dh(i),r.context===null?r.context=i:r.pendingContext=i,r=xo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=So(e,r,t),n!==null&&(Fd(n,e,t),Co(n,e,t))}function ph(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function mh(e,t){ph(e,t),(e=e.alternate)&&ph(e,t)}function hh(e){if(e.tag===13||e.tag===31){var t=ji(e,67108864);t!==null&&Fd(t,e,67108864),mh(e,67108864)}}function gh(e){if(e.tag===13||e.tag===31){var t=Md();t=xt(t);var n=ji(e,t);n!==null&&Fd(n,e,t),mh(e,t)}}var _h=!0;function vh(e,t,n,r){var i=M.T;M.T=null;var a=N.p;try{N.p=2,bh(e,t,n,r)}finally{N.p=a,M.T=i}}function yh(e,t,n,r){var i=M.T;M.T=null;var a=N.p;try{N.p=8,bh(e,t,n,r)}finally{N.p=a,M.T=i}}function bh(e,t,n,r){if(_h){var i=xh(r);if(i===null)qf(e,t,r,Sh,n),Nh(e,r);else if(Fh(i,e,t,n,r))r.stopPropagation();else if(Nh(e,r),t&4&&-1<Mh.indexOf(e)){for(;i!==null;){var a=Lt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=lt(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-nt(o);s.entanglements[1]|=c,o&=~c}Df(a),!(U&6)&&(_d=We()+500,Of(0,!1))}}break;case 31:case 13:s=ji(a,2),s!==null&&Fd(s,a,2),Bd(),mh(a,2)}if(a=xh(r),a===null&&qf(e,t,r,Sh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else qf(e,t,r,null,n)}}function xh(e){return e=wn(e),Ch(e)}var Sh=null;function Ch(e){if(Sh=null,e=It(e),e!==null){var t=s(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=l(t),e!==null)return e;e=null}else if(n===31){if(e=d(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 Sh=e,null}function wh(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`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`fullscreenerror`: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`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ge()){case Ke:return 2;case qe:return 8;case Je:case Ye:return 32;case Xe:return 268435456;default:return 32}default:return 32}}var Th=!1,Eh=null,Dh=null,Oh=null,kh=new Map,Ah=new Map,jh=[],Mh=`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 Nh(e,t){switch(e){case`focusin`:case`focusout`:Eh=null;break;case`dragenter`:case`dragleave`:Dh=null;break;case`mouseover`:case`mouseout`:Oh=null;break;case`pointerover`:case`pointerout`:kh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Ah.delete(t.pointerId)}}function Ph(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=Lt(t),t!==null&&hh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Fh(e,t,n,r,i){switch(t){case`focusin`:return Eh=Ph(Eh,e,t,n,r,i),!0;case`dragenter`:return Dh=Ph(Dh,e,t,n,r,i),!0;case`mouseover`:return Oh=Ph(Oh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return kh.set(a,Ph(kh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Ah.set(a,Ph(Ah.get(a)||null,e,t,n,r,i)),!0}return!1}function Ih(e){var t=It(e.target);if(t!==null){var n=s(t);if(n!==null){if(t=n.tag,t===13){if(t=l(n),t!==null){e.blockedOn=t,wt(e.priority,function(){gh(n)});return}}else if(t===31){if(t=d(n),t!==null){e.blockedOn=t,wt(e.priority,function(){gh(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 Lh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Cn=r,n.target.dispatchEvent(r),Cn=null}else return t=Lt(n),t!==null&&hh(t),e.blockedOn=n,!1;t.shift()}return!0}function Rh(e,t,n){Lh(e)&&n.delete(t)}function zh(){Th=!1,Eh!==null&&Lh(Eh)&&(Eh=null),Dh!==null&&Lh(Dh)&&(Dh=null),Oh!==null&&Lh(Oh)&&(Oh=null),kh.forEach(Rh),Ah.forEach(Rh)}function Bh(e,n){e.blockedOn===n&&(e.blockedOn=null,Th||(Th=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,zh)))}var Vh=null;function Hh(e){Vh!==e&&(Vh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Vh===e&&(Vh=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(Ch(r||n)===null)continue;break}var a=Lt(n);a!==null&&(e.splice(t,3),t-=3,ac(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Uh(e){function t(t){return Bh(t,e)}Eh!==null&&Bh(Eh,e),Dh!==null&&Bh(Dh,e),Oh!==null&&Bh(Oh,e),kh.forEach(t),Ah.forEach(t);for(var n=0;n<jh.length;n++){var r=jh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<jh.length&&(n=jh[0],n.blockedOn===null);)Ih(n),n.blockedOn===null&&jh.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[Dt]||null;if(typeof a==`function`)o||Hh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Dt]||null)s=o.formAction;else if(Ch(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Hh(n)}}}function Wh(){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 Gh(e){this._internalRoot=e}Kh.prototype.render=Gh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));var n=t.current;fh(n,Md(),e,t,null,null)},Kh.prototype.unmount=Gh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fh(e.current,2,null,e,null,null),Bd(),t[Ot]=null}};function Kh(e){this._internalRoot=e}Kh.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jh.length&&t!==0&&t<jh[n].priority;n++);jh.splice(n,0,e),n===0&&Ih(e)}};var qh=n.version;if(qh!==`19.3.1`)throw Error(a(527,qh,`19.3.1`));N.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(a(188)):(e=Object.keys(e).join(`,`),Error(a(268,e)));return e=p(t),e=e===null?null:m(e),e=e===null?null:e.stateNode,e};var Jh={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:M,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Yh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yh.isDisabled&&Yh.supportsFiber)try{$e=Yh.inject(Jh),et=Yh}catch{}}e.createRoot=function(e,t){if(!o(e))throw Error(a(299));var n=!1,r=``,i=Dc,s=Oc,c=kc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=uh(e,1,!1,null,null,n,r,null,i,s,c,Wh),e[Ot]=t.current,Gf(e),new Gh(t)}})),f=n(((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=d()}));const p=(e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,`warn`,`react-i18next::`,!0);b(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)};var m={};const h=(e,t,n,r)=>{b(n)&&m[n]||(b(n)&&(m[n]=new Date),p(e,t,n,r))};var g=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}};const _=(e,t,n)=>{e.loadNamespaces(t,g(e,n))},v=(e,t,n,r)=>{if(b(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return _(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,g(e,r))},y=(e,t,n={})=>!t.languages||!t.languages.length?(h(t,`NO_LANGUAGES`,`i18n.languages were undefined or empty`,{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),b=e=>typeof e==`string`,x=e=>typeof e==`object`&&!!e;var S=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,C={"&amp;":`&`,"&#38;":`&`,"&lt;":`<`,"&#60;":`<`,"&gt;":`>`,"&#62;":`>`,"&apos;":`'`,"&#39;":`'`,"&quot;":`"`,"&#34;":`"`,"&nbsp;":`\xA0`,"&#160;":`\xA0`,"&copy;":`©`,"&#169;":`©`,"&reg;":`®`,"&#174;":`®`,"&hellip;":`…`,"&#8230;":`…`,"&#x2F;":`/`,"&#47;":`/`},w=e=>C[e],T={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:e=>e.replace(S,w),transDefaultProps:void 0};const E=(e={})=>{T={...T,...e}},D=()=>T;var O;const k=e=>{O=e},ee=()=>O,A={type:`3rdParty`,init(e){E(e.options.react),k(e)}};var j=e(r());const te=(0,j.createContext)();var ne=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},re=n((e=>{var t=r();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:n,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(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:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),ie=n(((e,t)=>{t.exports=re()})),ae=ie(),oe={t:(e,t)=>{if(b(t))return t;if(x(t)&&b(t.defaultValue))return t.defaultValue;if(typeof e==`function`)return``;if(Array.isArray(e)){let t=e[e.length-1];return typeof t==`function`?``:t}return e},ready:!1},se=()=>()=>{};const ce=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=(0,j.useContext)(te)||{},a=n||r||ee();a&&!a.reportNamespaces&&(a.reportNamespaces=new ne),a||h(a,`NO_I18NEXT_INSTANCE`,`useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.`);let s=(0,j.useMemo)(()=>({...D(),...a?.options?.react,...t}),[a,t]),{useSuspense:c,keyPrefix:l,bindI18n:u,bindI18nStore:d}=s,f=e||i||a?.options?.defaultNS,p=b(f)?[f]:f||[`translation`],m=(0,j.useMemo)(()=>p,[JSON.stringify(p)]);a?.reportNamespaces?.addUsedNamespaces?.(m);let g=(0,j.useRef)(0),x=(0,j.useCallback)(e=>{if(!a)return se;let t=()=>{g.current+=1,e()};return u&&a.on(u,t),d&&a.store.on(d,t),()=>{u&&u.split(` `).forEach(e=>a.off(e,t)),d&&d.split(` `).forEach(e=>a.store.off(e,t))}},[a,u,d]),S=(0,j.useRef)(),C=(0,j.useCallback)(()=>{if(!a)return oe;let e=!!(a.isInitialized||a.initializedStoreOnce)&&m.every(e=>y(e,a,s)),n=t.lng||a.language,r=g.current,i=typeof l==`function`?o(l,{...a.options,ns:m}):l,c=S.current;if(c&&c.i18n===a&&c.ready===e&&c.lng===n&&c.namespaces===m&&c.keyPrefix===i&&c.revision===r)return c;let u={t:a.getFixedT(n,s.nsMode===`fallback`?m:m[0],l,{scopeNs:m}),i18n:a,ready:e,lng:n,namespaces:m,keyPrefix:i,revision:r};return S.current=u,u},[a,m,l,s,t.lng]),[w,T]=(0,j.useState)(0),{t:E,ready:O}=(0,ae.useSyncExternalStore)(x,C,C),k;a&&c&&!O&&(k=new Promise(e=>{let n=()=>e();t.lng?v(a,t.lng,m,n):_(a,m,n)}),{t:E,ready:O}=C()),(0,j.useEffect)(()=>{if(a&&!O&&!c){let e=()=>T(e=>e+1);t.lng?v(a,t.lng,m,e):_(a,m,e)}},[a,t.lng,m,O,c,w]);let A=a||{},re=(0,j.useRef)(null),ie=(0,j.useRef)(),ce=e=>`${e.language}|${e.resolvedLanguage}|${e.languages?.join(`,`)}`,le=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,`__original`))try{Object.defineProperty(n,`__original`,{value:e,writable:!1,enumerable:!1,configurable:!1})}catch{}return n},ue=(0,j.useMemo)(()=>{let e=A,t=e&&ce(e),n=e;e&&(re.current&&re.current.__original===e&&ie.current===t?n=re.current:(n=le(e),re.current=n,ie.current=t));let r=!O&&!c?(...e)=>(h(a,`USE_T_BEFORE_READY`,`useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t.`),E(...e)):E,i=[r,n,O];return i.t=r,i.i18n=n,i.ready=O,i},[E,A,O,A.resolvedLanguage,A.language,A.languages]);if(a&&c&&!O){let e=!1;try{e=!1}catch{}throw e&&h(a,`SUSPENDED_WHILE_LOADING`,`useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook`),k}return ue};function le(){return le=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},le.apply(null,arguments)}function ue(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}function de(e,t){return de=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},de(e,t)}function fe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,de(e,t)}function pe(e,t){return e.classList?!!t&&e.classList.contains(t):(` `+(e.className.baseVal||e.className)+` `).indexOf(` `+t+` `)!==-1}function me(e,t){e.classList?e.classList.add(t):pe(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function he(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function ge(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=he(e.className,t):e.setAttribute(`class`,he(e.className&&e.className.baseVal||``,t))}var _e={disabled:!1},ve=j.createContext(null),M=function(e){return e.scrollTop},N=e(u()),ye=`unmounted`,be=`exited`,xe=`entering`,Se=`entered`,Ce=`exiting`,P=function(e){fe(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=be,r.appearStatus=xe):o=Se:o=t.unmountOnExit||t.mountOnEnter?ye:be,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:be}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=xe):(n===`entering`||n===`entered`)&&(t=Ce)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null)if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:N.default.findDOMNode(this);n&&M(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:ye})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[N.default.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||_e.disabled){this.safeSetState({status:Se},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:xe},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:Se},function(){t.props.onEntered(a,o)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:N.default.findDOMNode(this);if(!t||_e.disabled){this.safeSetState({status:be},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:Ce},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:be},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:N.default.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=ue(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return j.createElement(ve.Provider,{value:null},typeof n==`function`?n(e,r):j.cloneElement(j.Children.only(n),r))},t}(j.Component);P.contextType=ve,P.propTypes={};function we(){}P.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:we,onEntering:we,onEntered:we,onExit:we,onExiting:we,onExited:we},P.UNMOUNTED=ye,P.EXITED=be,P.ENTERING=xe,P.ENTERED=Se,P.EXITING=Ce;var Te=P,Ee=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return me(e,t)})},De=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return ge(e,t)})},Oe=function(e){fe(t,e);function t(){var t,n=[...arguments];return t=e.call.apply(e,[this].concat(n))||this,t.appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,`exit`),t.addClass(i,a?`appear`:`enter`,`base`),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.addClass(i,a,`active`),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.removeClasses(i,a),t.addClass(i,a,`done`),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`appear`),t.removeClasses(n,`enter`),t.addClass(n,`exit`,`base`),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,`exit`,`active`),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`exit`),t.addClass(n,`exit`,`done`),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r=typeof n==`string`,i=r&&n?n+`-`:``,a=r?``+i+e:n[e];return{baseClassName:a,activeClassName:r?a+`-active`:n[e+`Active`],doneClassName:r?a+`-done`:n[e+`Done`]}},t}var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+`ClassName`],i=this.getClassNames(`enter`).doneClassName;t===`appear`&&n===`done`&&i&&(r+=` `+i),n===`active`&&e&&M(e),r&&(this.appliedClasses[t][n]=r,Ee(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&De(e,r),i&&De(e,i),a&&De(e,a)},n.render=function(){var e=this.props;e.classNames;var t=ue(e,[`classNames`]);return j.createElement(Te,le({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(j.Component);Oe.defaultProps={classNames:``},Oe.propTypes={};var ke=Oe;function Ae(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function je(e,t){var n=function(e){return t&&(0,j.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&j.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function Me(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function Ne(e,t,n){return n[t]==null?e.props[t]:n[t]}function Pe(e,t){return je(e.children,function(n){return(0,j.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:Ne(n,`appear`,e),enter:Ne(n,`enter`,e),exit:Ne(n,`exit`,e)})})}function Fe(e,t,n){var r=je(e.children),i=Me(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,j.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,j.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,j.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:Ne(o,`exit`,e),enter:Ne(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,j.cloneElement)(o,{in:!1}):c&&s&&(0,j.isValidElement)(l)&&(i[a]=(0,j.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:Ne(o,`exit`,e),enter:Ne(o,`enter`,e)}))}}),i}var Ie=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Le={component:`div`,childFactory:function(e){return e}},Re=function(e){fe(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(Ae(r)),firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?Pe(e,r):Fe(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=je(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=le({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=ue(e,[`component`,`childFactory`]),i=this.state.contextValue,a=Ie(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?j.createElement(ve.Provider,{value:i},a):j.createElement(ve.Provider,{value:i},j.createElement(t,r,a))},t}(j.Component);Re.propTypes={},Re.defaultProps=Le;var ze=Re;function Be(){return typeof window<`u`}function Ve(e){return We(e)?(e.nodeName||``).toLowerCase():`#document`}function He(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ue(e){return((We(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function We(e){return Be()?e instanceof Node||e instanceof He(e).Node:!1}function Ge(e){return Be()?e instanceof Element||e instanceof He(e).Element:!1}function Ke(e){return Be()?e instanceof HTMLElement||e instanceof He(e).HTMLElement:!1}function qe(e){return!Be()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof He(e).ShadowRoot}function Je(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=at(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Ye(e){return/^(table|td|th)$/.test(Ve(e))}function Xe(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ze=/transform|translate|scale|rotate|perspective|filter/,Qe=/paint|layout|strict|content/,$e=e=>!!e&&e!==`none`,et;function tt(e){let t=Ge(e)?at(e):e;return $e(t.transform)||$e(t.translate)||$e(t.scale)||$e(t.rotate)||$e(t.perspective)||!rt()&&($e(t.backdropFilter)||$e(t.filter))||Ze.test(t.willChange||``)||Qe.test(t.contain||``)}function nt(e){let t=st(e);for(;Ke(t)&&!it(t);){if(tt(t))return t;if(Xe(t))return null;t=st(t)}return null}function rt(){return et??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),et}function it(e){return/^(html|body|#document)$/.test(Ve(e))}function at(e){return He(e).getComputedStyle(e)}function ot(e){return Ge(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function st(e){if(Ve(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||qe(e)&&e.host||Ue(e);return qe(t)?t.host:t}function ct(e){let t=st(e);return it(t)?(e.ownerDocument||e).body:Ke(t)&&Je(t)?t:ct(t)}function lt(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=ct(e),i=r===e.ownerDocument?.body,a=He(r);if(i){let e=ut(a);return t.concat(a,a.visualViewport||[],Je(r)?r:[],e&&n?lt(e):[])}else return t.concat(r,lt(r,[],n))}function ut(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var dt=[`top`,`right`,`bottom`,`left`],ft=[`start`,`end`],pt=dt.reduce((e,t)=>e.concat(t,t+`-`+ft[0],t+`-`+ft[1]),[]),mt=Math.min,ht=Math.max,gt=Math.round,_t=Math.floor,vt=e=>({x:e,y:e}),yt={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function bt(e,t,n){return ht(e,mt(t,n))}function xt(e,t){return typeof e==`function`?e(t):e}function St(e){return e.split(`-`)[0]}function Ct(e){return e.split(`-`)[1]}function wt(e){return e===`x`?`y`:`x`}function Tt(e){return e===`y`?`height`:`width`}function Et(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Dt(e){return wt(Et(e))}function Ot(e,t,n){n===void 0&&(n=!1);let r=Ct(e),i=Dt(e),a=Tt(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Lt(o)),[o,Lt(o)]}function kt(e){let t=Lt(e);return[At(e),t,At(t)]}function At(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var jt=[`left`,`right`],Mt=[`right`,`left`],Nt=[`top`,`bottom`],Pt=[`bottom`,`top`];function Ft(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Mt:jt:t?jt:Mt;case`left`:case`right`:return t?Nt:Pt;default:return[]}}function It(e,t,n,r){let i=Ct(e),a=Ft(St(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(At)))),a}function Lt(e){let t=St(e);return yt[t]+e.slice(t.length)}function Rt(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function zt(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Rt(e)}function Bt(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}}var Vt=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`;function Ht(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&qe(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ut(e){return`composedPath`in e?e.composedPath()[0]:e.target}function Wt(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 Gt(e){return e.matches(`html,body`)}function Kt(e){return e?.ownerDocument||document}function qt(e){return Ke(e)&&e.matches(Vt)}function Jt(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...Jt(e,t.id,n)])}function Yt(e){return`nativeEvent`in e}function F(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}var Xt=typeof document<`u`?j.useLayoutEffect:function(){},Zt={...j}.useInsertionEffect||(e=>e());function Qt(e){let t=j.useRef(()=>{});return Zt(()=>{t.current=e}),j.useCallback(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function $t(e,t,n){let{reference:r,floating:i}=e,a=Et(t),o=Dt(t),s=Tt(o),c=St(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}}let m=Ct(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function en(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}=xt(t,e),p=zt(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Bt(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=Bt(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 tn=50,nn=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:en},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=$t(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<tn&&(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}=$t(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},rn=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}=xt(e,t)||{};if(l==null)return{};let d=zt(u),f={x:n,y:r},p=Dt(i),m=Tt(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=mt(d[_],T),D=mt(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,ee=bt(E,k,O),A=!c.arrow&&Ct(i)!=null&&k!==ee&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,j=A?k<E?k-E:k-O:0;return{[p]:f[p]+j,data:{[p]:ee,centerOffset:k-ee-j,...A&&{alignmentOffset:j}},reset:A}}});function an(e,t,n){return(e?[...n.filter(t=>Ct(t)===e),...n.filter(t=>Ct(t)!==e)]:n.filter(e=>St(e)===e)).filter(n=>e?Ct(n)===e||(t?At(n)!==n:!1):!0)}var on=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=pt,autoAlignment:u=!0,...d}=xt(e,t),f=c!==void 0||l===pt?an(c||null,u,l):l,p=r.autoPlacement?.index||0,m=f[p];if(m==null)return{};if(i!==m)return{reset:{placement:f[0]}};let h=await a.detectOverflow(t,d),g=Ot(m,n,await(a.isRTL==null?void 0:a.isRTL(o.floating))),_=[h[St(m)],h[g[0]],h[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:m,overflows:_}],y=f[p+1];if(y)return{data:{index:p+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=Ct(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,Ct(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:p+1,overflows:v},reset:{placement:x}}}}},sn=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}=xt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=St(r),_=Et(o),v=St(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Lt(o)]:kt(o)),x=p!==`none`;!d&&x&&b.push(...It(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=Ot(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`&&_!==Et(t))||T.every(e=>Et(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=Et(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 cn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ln(e){return dt.some(t=>e[t]>=0)}var un=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=xt(e,t);switch(i){case`referenceHidden`:{let e=cn(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ln(e)}}}case`escaped`:{let e=cn(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ln(e)}}}default:return{}}}}};function dn(e){let t=mt(...e.map(e=>e.left)),n=mt(...e.map(e=>e.top)),r=ht(...e.map(e=>e.right)),i=ht(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function fn(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>Bt(dn(e)))}var pn=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=xt(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=fn(u),f=Bt(dn(u)),p=zt(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&c<e.right+p.right&&l>e.top-p.top&&l<e.bottom+p.bottom)||f;if(d.length>=2){if(Et(n)===`y`){let e=d[0],t=d[d.length-1],r=St(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return Bt({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=St(n)===`left`,t=ht(...d.map(e=>e.right)),r=mt(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return Bt({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},mn=new Set([`left`,`top`]);async function hn(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=St(n),s=Ct(n),c=Et(n)===`y`,l=mn.has(o)?-1:1,u=a&&c?-1:1,d=xt(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{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 gn=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 hn(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}}}}},_n=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}=xt(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Et(i),p=wt(f),m=u[p],h=u[f],g=(e,t)=>bt(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},vn=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=xt(e,t),c=await i.detectOverflow(t,s),l=St(n),u=Ct(n),d=Et(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=mt(p-c[m],g),y=mt(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*ht(c.left,c.right):S=p-2*ht(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function yn(e){let t=at(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Ke(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=gt(n)!==a||gt(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function bn(e){return Ge(e)?e:e.contextElement}function xn(e){let t=bn(e);if(!Ke(t))return vt(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=yn(t),o=(a?gt(n.width):n.width)/r,s=(a?gt(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Sn=vt(0);function Cn(e){let t=He(e);return!rt()||!t.visualViewport?Sn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wn(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===He(e)}function Tn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=bn(e),o=vt(1);t&&(r?Ge(r)&&(o=xn(r)):o=xn(e));let s=wn(a,n,r)?Cn(a):vt(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&&r){let e=He(a),t=Ge(r)?He(r):r,n=e,i=ut(n);for(;i&&t!==n;){let e=xn(i),t=i.getBoundingClientRect(),r=at(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=He(i),i=ut(n)}}return Bt({width:u,height:d,x:c,y:l})}function En(e,t){let n=ot(e).scrollLeft;return t?t.left+n:Tn(Ue(e)).left+n}function Dn(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-En(e,n),y:n.top+t.scrollTop}}function On(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Ue(r),s=t?Xe(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=vt(1),u=vt(0),d=Ke(r);if((d||!a)&&((Ve(r)!==`body`||Je(o))&&(c=ot(r)),d)){let e=Tn(r);l=xn(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Dn(o,c):vt(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 kn(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function An(e){let t=ot(e),n=e.ownerDocument.body,r=ht(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=ht(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+En(e),o=-t.scrollTop;return at(n).direction===`rtl`&&(a+=ht(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var jn=25;function Mn(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=He(e),a=Ue(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!rt()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(En(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=jn&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Nn(e,t){let n=Tn(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=xn(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Pn(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Mn(e,n,t);else if(t===`document`)r=An(Ue(e));else if(Ge(t))r=Nn(t,n);else{let n=Cn(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Bt(r)}function Fn(e,t){let n=t.get(e);if(n)return n;let r=lt(e,[],!1).filter(e=>Ge(e)&&Ve(e)!==`body`),i=null,a=at(e).position===`fixed`,o=a?st(e):e;for(;Ge(o)&&!it(o);){let e=at(o),t=tt(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=st(o)}return t.set(e,r),r}function In(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Xe(t)?[]:Fn(t,this._c):[].concat(n),r],o=Pn(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=Pn(t,a[e],i);s=ht(n.top,s),c=mt(n.right,c),l=mt(n.bottom,l),u=ht(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Ln(e){let{width:t,height:n}=yn(e);return{width:t,height:n}}function Rn(e,t,n){let r=Ke(t),i=Ue(t),a=n===`fixed`,o=Tn(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=vt(0);if((r||!a)&&((Ve(t)!==`body`||Je(i))&&(s=ot(t)),r)){let e=Tn(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=En(i));let l=i&&!r&&!a?Dn(i,s):vt(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function zn(e){return at(e).position===`static`}function Bn(e,t){if(!Ke(e)||at(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Ue(e)===n&&(n=n.ownerDocument.body),n}function Vn(e,t){let n=He(e);if(Xe(e))return n;if(!Ke(e)){let t=st(e);for(;t&&!it(t);){if(Ge(t)&&!zn(t))return t;t=st(t)}return n}let r=Bn(e,t);for(;r&&Ye(r)&&zn(r);)r=Bn(r,t);return r&&it(r)&&zn(r)&&!tt(r)?n:r||nt(e)||n}var Hn=async function(e){let t=this.getOffsetParent||Vn,n=this.getDimensions,r=await n(e.floating);return{reference:Rn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Un(e){return at(e).direction===`rtl`}var Wn={convertOffsetParentRelativeRectToViewportRelativeRect:On,getDocumentElement:Ue,getClippingRect:In,getOffsetParent:Vn,getElementRects:Hn,getClientRects:kn,getDimensions:Ln,getScale:xn,isElement:Ge,isRTL:Un};function Gn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Kn(e,t,n){let r=null,i,a=Ue(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=_t(d),h=_t(a.clientWidth-(u+f)),g=_t(a.clientHeight-(d+p)),_=_t(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:ht(0,mt(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Gn(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=He(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function qn(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=bn(e),u=i||a?[...l?lt(l):[],...t?lt(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Kn(l,n,a):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?Tn(e):null;c&&g();function g(){let t=Tn(e);h&&!Gn(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 Jn=gn,Yn=on,Xn=_n,Zn=sn,Qn=vn,$n=un,er=rn,tr=pn,nr=(e,t,n)=>{let r=new Map,i=n??{},a={...Wn,...i.platform,_c:r};return nn(e,t,{...i,platform:a})},rr=e(u(),1),ir=typeof document<`u`?j.useLayoutEffect:function(){};function ar(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(!ar(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)&&!ar(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function or(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sr(e,t){let n=or(e);return Math.round(t*n)/n}function cr(e){let t=j.useRef(e);return ir(()=>{t.current=e}),t}function lr(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]=j.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=j.useState(r);ar(f,r)||p(r);let[m,h]=j.useState(null),[g,_]=j.useState(null),v=j.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=j.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=j.useRef(null),C=j.useRef(null),w=j.useRef(u),T=c!=null,E=cr(c),D=cr(i),O=cr(l),k=j.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),nr(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};ee.current&&!ar(w.current,t)&&(w.current=t,rr.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);ir(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let ee=j.useRef(!1);ir(()=>(ee.current=!0,()=>{ee.current=!1}),[]),ir(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let A=j.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),te=j.useMemo(()=>({reference:b,floating:x}),[b,x]),ne=j.useMemo(()=>{let e={position:n,left:0,top:0};if(!te.floating)return e;let t=sr(te.floating,u.x),r=sr(te.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...or(te.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,te.floating,u.x,u.y]);return j.useMemo(()=>({...u,update:k,refs:A,elements:te,floatingStyles:ne}),[u,k,A,te,ne])}var ur=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:er({element:r.current,padding:i}).fn(n):r?er({element:r,padding:i}).fn(n):{}}}},dr=(e,t)=>{let n=Jn(e);return{name:n.name,fn:n.fn,options:[e,t]}},fr=(e,t)=>{let n=Xn(e);return{name:n.name,fn:n.fn,options:[e,t]}},pr=(e,t)=>{let n=Zn(e);return{name:n.name,fn:n.fn,options:[e,t]}},mr=(e,t)=>{let n=Qn(e);return{name:n.name,fn:n.fn,options:[e,t]}},hr=(e,t)=>{let n=Yn(e);return{name:n.name,fn:n.fn,options:[e,t]}},gr=(e,t)=>{let n=$n(e);return{name:n.name,fn:n.fn,options:[e,t]}},_r=(e,t)=>{let n=tr(e);return{name:n.name,fn:n.fn,options:[e,t]}},vr=(e,t)=>{let n=ur(e);return{name:n.name,fn:n.fn,options:[e,t]}},yr=e(i(),1);u();function br(e){let t=j.useRef(void 0),n=j.useCallback(t=>{let n=e.map(e=>{if(e!=null){if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>e?.())}},e);return j.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var xr=`data-floating-ui-focusable`,Sr=`active`,Cr=`selected`,wr=`ArrowLeft`,Tr=`ArrowRight`,Er=`ArrowUp`,Dr=`ArrowDown`,Or=[wr,Tr],kr=[Er,Dr];[...Or,...kr];var Ar={...j},jr=!1,Mr=0,Nr=()=>`floating-ui-`+Math.random().toString(36).slice(2,6)+ Mr++;function Pr(){let[e,t]=j.useState(()=>jr?Nr():void 0);return Xt(()=>{e??t(Nr())},[]),j.useEffect(()=>{jr=!0},[]),e}var Fr=Ar.useId||Pr;function Ir(){let e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}var Lr=j.createContext(null),Rr=j.createContext(null),zr=()=>j.useContext(Lr)?.id||null,Br=()=>j.useContext(Rr);function Vr(e){return`data-floating-ui-`+e}function Hr(e){return Ke(e.target)&&e.target.tagName===`BUTTON`}function Ur(e){return Ke(e.target)&&e.target.tagName===`A`}function Wr(e){return qt(e)}function Gr(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,dataRef:i,elements:{domReference:a}}=e,{enabled:o=!0,event:s=`click`,toggle:c=!0,ignoreMouse:l=!1,keyboardHandlers:u=!0,stickIfOpen:d=!0}=t,f=j.useRef(),p=j.useRef(!1),m=j.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){let t=f.current;e.button===0&&s!==`click`&&(F(t,!0)&&l||(n&&c&&(!(i.current.openEvent&&d)||i.current.openEvent.type===`mousedown`)?r(!1,e.nativeEvent,`click`):(e.preventDefault(),r(!0,e.nativeEvent,`click`))))},onClick(e){let t=f.current;if(s===`mousedown`&&f.current){f.current=void 0;return}F(t,!0)&&l||(n&&c&&(!(i.current.openEvent&&d)||i.current.openEvent.type===`click`)?r(!1,e.nativeEvent,`click`):r(!0,e.nativeEvent,`click`))},onKeyDown(e){f.current=void 0,!(e.defaultPrevented||!u||Hr(e))&&(e.key===` `&&!Wr(a)&&(e.preventDefault(),p.current=!0),!Ur(e)&&e.key===`Enter`&&r(!(n&&c),e.nativeEvent,`click`))},onKeyUp(e){e.defaultPrevented||!u||Hr(e)||Wr(a)||e.key===` `&&p.current&&(p.current=!1,r(!(n&&c),e.nativeEvent,`click`))}}),[i,a,s,l,u,r,n,d,c]);return j.useMemo(()=>o?{reference:m}:{},[o,m])}var Kr={pointerdown:`onPointerDown`,mousedown:`onMouseDown`,click:`onClick`},qr={pointerdown:`onPointerDownCapture`,mousedown:`onMouseDownCapture`,click:`onClickCapture`},Jr=e=>({escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0});function Yr(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l=`pointerdown`,referencePress:u=!1,referencePressEvent:d=`pointerdown`,ancestorScroll:f=!1,bubbles:p,capture:m}=t,h=Br(),g=Qt(typeof c==`function`?c:()=>!1),_=typeof c==`function`?g:c,v=j.useRef(!1),{escapeKey:y,outsidePress:b}=Jr(p),{escapeKey:x,outsidePress:S}=Jr(m),C=j.useRef(!1),w=Qt(e=>{if(!n||!o||!s||e.key!==`Escape`||C.current)return;let t=a.current.floatingContext?.nodeId,i=h?Jt(h.nodesRef.current,t):[];if(!y&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,Yt(e)?e.nativeEvent:e,`escape-key`)}),T=Qt(e=>{var t;let n=()=>{var t;w(e),(t=Ut(e))==null||t.removeEventListener(`keydown`,n)};(t=Ut(e))==null||t.addEventListener(`keydown`,n)}),E=Qt(e=>{let t=a.current.insideReactTree;a.current.insideReactTree=!1;let n=v.current;if(v.current=!1,l===`click`&&n||t||typeof _==`function`&&!_(e))return;let o=Ut(e),s=`[`+Vr(`inert`)+`]`,c=Kt(i.floating).querySelectorAll(s),u=Ge(o)?o:null;for(;u&&!it(u);){let e=st(u);if(it(e)||!Ge(e))break;u=e}if(c.length&&Ge(o)&&!Gt(o)&&!Ht(o,i.floating)&&Array.from(c).every(e=>!Ht(u,e)))return;if(Ke(o)&&k){let t=it(o),n=at(o),r=/auto|scroll/,i=t||r.test(n.overflowX),a=t||r.test(n.overflowY),s=i&&o.clientWidth>0&&o.scrollWidth>o.clientWidth,c=a&&o.clientHeight>0&&o.scrollHeight>o.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=o.offsetWidth-o.clientWidth:e.offsetX>o.clientWidth),d=s&&e.offsetY>o.clientHeight;if(u||d)return}let d=a.current.floatingContext?.nodeId,f=h&&Jt(h.nodesRef.current,d).some(t=>Wt(e,t.context?.elements.floating));if(Wt(e,i.floating)||Wt(e,i.domReference)||f)return;let p=h?Jt(h.nodesRef.current,d):[];if(p.length>0){let e=!0;if(p.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,`outside-press`)}),D=Qt(e=>{var t;let n=()=>{var t;E(e),(t=Ut(e))==null||t.removeEventListener(l,n)};(t=Ut(e))==null||t.addEventListener(l,n)});j.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=y,a.current.__outsidePressBubbles=b;let e=-1;function t(e){r(!1,e,`ancestor-scroll`)}function c(){window.clearTimeout(e),C.current=!0}function u(){e=window.setTimeout(()=>{C.current=!1},rt()?5:0)}let d=Kt(i.floating);s&&(d.addEventListener(`keydown`,x?T:w,x),d.addEventListener(`compositionstart`,c),d.addEventListener(`compositionend`,u)),_&&d.addEventListener(l,S?D:E,S);let p=[];return f&&(Ge(i.domReference)&&(p=lt(i.domReference)),Ge(i.floating)&&(p=p.concat(lt(i.floating))),!Ge(i.reference)&&i.reference&&i.reference.contextElement&&(p=p.concat(lt(i.reference.contextElement)))),p=p.filter(e=>e!==d.defaultView?.visualViewport),p.forEach(e=>{e.addEventListener(`scroll`,t)}),()=>{s&&(d.removeEventListener(`keydown`,x?T:w,x),d.removeEventListener(`compositionstart`,c),d.removeEventListener(`compositionend`,u)),_&&d.removeEventListener(l,S?D:E,S),p.forEach(e=>{e.removeEventListener(`scroll`,t)}),window.clearTimeout(e)}},[a,i,s,_,l,n,r,f,o,y,b,w,x,T,E,S,D]),j.useEffect(()=>{a.current.insideReactTree=!1},[a,_,l]);let O=j.useMemo(()=>({onKeyDown:w,...u&&{[Kr[d]]:e=>{r(!1,e.nativeEvent,`reference-press`)},...d!==`click`&&{onClick(e){r(!1,e.nativeEvent,`reference-press`)}}}}),[w,r,u,d]),k=j.useMemo(()=>{function e(e){e.button===0&&(v.current=!0)}return{onKeyDown:w,onMouseDown:e,onMouseUp:e,[qr[l]]:()=>{a.current.insideReactTree=!0}}},[w,l,a]);return j.useMemo(()=>o?{reference:O,floating:k}:{},[o,O,k])}function Xr(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=Fr(),a=j.useRef({}),[o]=j.useState(()=>Ir()),s=zr()!=null,[c,l]=j.useState(r.reference),u=Qt((e,t,r)=>{a.current.openEvent=e?t:void 0,o.emit(`openchange`,{open:e,event:t,reason:r,nested:s}),n?.(e,t,r)}),d=j.useMemo(()=>({setPositionReference:l}),[]),f=j.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return j.useMemo(()=>({dataRef:a,open:t,onOpenChange:u,elements:f,events:o,floatingId:i,refs:d}),[t,u,f,o,i,d])}function Zr(e){let{elements:t,...n}=e===void 0?{}:e,{nodeId:r}=n,i=Xr({...n,elements:{reference:t?.reference??null,floating:t?.floating??null}}),a=n.rootContext||i,o=a.elements,[s,c]=j.useState(null),[l,u]=j.useState(null),d=o?.domReference||s,f=j.useRef(null),p=Br();Xt(()=>{d&&(f.current=d)},[d]);let m=lr({...n,elements:{...o,...l&&{reference:l}}}),h=j.useCallback(e=>{let t=Ge(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=j.useCallback(e=>{(Ge(e)||e===null)&&(f.current=e,c(e)),(Ge(m.refs.reference.current)||m.refs.reference.current===null||e!==null&&!Ge(e))&&m.refs.setReference(e)},[m.refs]),_=j.useMemo(()=>({...m.refs,setReference:g,setPositionReference:h,domReference:f}),[m.refs,g,h]),v=j.useMemo(()=>({...m.elements,domReference:d}),[m.elements,d]),y=j.useMemo(()=>({...m,...a,refs:_,elements:v,nodeId:r}),[m,_,v,r,a]);return Xt(()=>{a.dataRef.current.floatingContext=y;let e=p?.nodesRef.current.find(e=>e.id===r);e&&(e.context=y)}),j.useMemo(()=>({...m,context:y,refs:_,elements:v}),[m,_,v,y])}function Qr(e,t,n){let r=new Map,i=n===`item`,a=e;if(i&&e){let{[Sr]:t,[Cr]:n,...r}=e;a=r}return{...n===`floating`&&{tabIndex:-1,[xr]:``},...a,...t.map(t=>{let r=t?t[n]:null;return typeof r==`function`?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,a]=t;if(!(i&&[Sr,Cr].includes(n)))if(n.indexOf(`on`)===0){if(r.has(n)||r.set(n,[]),typeof a==`function`){var o;(o=r.get(n))==null||o.push(a),e[n]=function(){var e=[...arguments];return r.get(n)?.map(t=>t(...e)).find(e=>e!==void 0)}}}else e[n]=a}),e),{})}}function $r(e){e===void 0&&(e=[]);let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=j.useCallback(t=>Qr(t,e,`reference`),t),a=j.useCallback(t=>Qr(t,e,`floating`),n),o=j.useCallback(t=>Qr(t,e,`item`),r);return j.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}var ei=n(((e,t)=>{var n=typeof Element<`u`,r=typeof Map==`function`,i=typeof Set==`function`,a=typeof ArrayBuffer==`function`&&!!ArrayBuffer.isView;function o(e,t){if(e===t)return!0;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(e.constructor!==t.constructor)return!1;var s,c,l;if(Array.isArray(e)){if(s=e.length,s!=t.length)return!1;for(c=s;c--!==0;)if(!o(e[c],t[c]))return!1;return!0}var u;if(r&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!t.has(c.value[0]))return!1;for(u=e.entries();!(c=u.next()).done;)if(!o(c.value[1],t.get(c.value[0])))return!1;return!0}if(i&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!t.has(c.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(s=e.length,s!=t.length)return!1;for(c=s;c--!==0;)if(e[c]!==t[c])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf==`function`&&typeof t.valueOf==`function`)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString==`function`&&typeof t.toString==`function`)return e.toString()===t.toString();if(l=Object.keys(e),s=l.length,s!==Object.keys(t).length)return!1;for(c=s;c--!==0;)if(!Object.prototype.hasOwnProperty.call(t,l[c]))return!1;if(n&&e instanceof Element)return!1;for(c=s;c--!==0;)if(!((l[c]===`_owner`||l[c]===`__v`||l[c]===`__o`)&&e.$$typeof)&&!o(e[l[c]],t[l[c]]))return!1;return!0}return e!==e&&t!==t}t.exports=function(e,t){try{return o(e,t)}catch(e){if((e.message||``).match(/stack|recursion/i))return console.warn(`react-fast-compare cannot handle circular refs`),!1;throw e}}})),ti=n(((e,t)=>{t.exports=function(e,t,n,r,i,a,o,s){if(!e){var c;if(t===void 0)c=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var l=[n,r,i,a,o,s],u=0;c=Error(t.replace(/%s/g,function(){return l[u++]})),c.name=`Invariant Violation`}throw c.framesToPop=1,c}}})),ni=n(((e,t)=>{t.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<a.length;c++){var l=a[c];if(!s(l))return!1;var u=e[l],d=t[l];if(i=n?n.call(r,u,d,l):void 0,i===!1||i===void 0&&u!==d)return!1}return!0}})),ri=e(ei()),ii=e(ti()),ai=e(ni()),oi=(e=>(e.BASE=`base`,e.BODY=`body`,e.HEAD=`head`,e.HTML=`html`,e.LINK=`link`,e.META=`meta`,e.NOSCRIPT=`noscript`,e.SCRIPT=`script`,e.STYLE=`style`,e.TITLE=`title`,e.FRAGMENT=`Symbol(react.fragment)`,e))(oi||{}),si={link:{rel:[`amphtml`,`canonical`,`alternate`]},script:{type:[`application/ld+json`]},meta:{charset:``,name:[`generator`,`robots`,`description`],property:[`og:type`,`og:title`,`og:url`,`og:image`,`og:image:alt`,`og:description`,`twitter:url`,`twitter:title`,`twitter:description`,`twitter:image`,`twitter:image:alt`,`twitter:card`,`twitter:site`]}},ci=Object.values(oi),li={accesskey:`accessKey`,charset:`charSet`,class:`className`,contenteditable:`contentEditable`,contextmenu:`contextMenu`,"http-equiv":`httpEquiv`,itemprop:`itemProp`,tabindex:`tabIndex`},ui=Object.entries(li).reduce((e,[t,n])=>(e[n]=t,e),{}),di=`data-rh`,fi={DEFAULT_TITLE:`defaultTitle`,DEFER:`defer`,ENCODE_SPECIAL_CHARACTERS:`encodeSpecialCharacters`,ON_CHANGE_CLIENT_STATE:`onChangeClientState`,TITLE_TEMPLATE:`titleTemplate`,PRIORITIZE_SEO_TAGS:`prioritizeSeoTags`},pi=(e,t)=>{for(let n=e.length-1;n>=0;--n){let r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},mi=e=>{let t=pi(e,`title`),n=pi(e,fi.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join(``)),n&&t)return n.replace(/%s/g,()=>t);let r=pi(e,fi.DEFAULT_TITLE);return t||r||void 0},hi=e=>pi(e,fi.ON_CHANGE_CLIENT_STATE)||(()=>{}),gi=(e,t)=>t.filter(t=>t[e]!==void 0).map(t=>t[e]).reduce((e,t)=>({...e,...t}),{}),_i=(e,t)=>t.filter(e=>e.base!==void 0).map(e=>e.base).reverse().reduce((t,n)=>{if(!t.length){let r=Object.keys(n);for(let i=0;i<r.length;i+=1){let a=r[i].toLowerCase();if(e.indexOf(a)!==-1&&n[a])return t.concat(n)}}return t},[]),vi=e=>console&&typeof console.warn==`function`&&console.warn(e),yi=(e,t,n)=>{let r={};return n.filter(t=>Array.isArray(t[e])?!0:(t[e]!==void 0&&vi(`Helmet: ${e} should be of type "Array". Instead found type "${typeof t[e]}"`),!1)).map(t=>t[e]).reverse().reduce((e,n)=>{let i={};n.filter(e=>{let n,a=Object.keys(e);for(let r=0;r<a.length;r+=1){let i=a[r],o=i.toLowerCase();t.indexOf(o)!==-1&&!(n===`rel`&&e[n].toLowerCase()===`canonical`)&&!(o===`rel`&&e[o].toLowerCase()===`stylesheet`)&&(n=o),t.indexOf(i)!==-1&&(i===`innerHTML`||i===`cssText`||i===`itemprop`)&&(n=i)}if(!n||!e[n])return!1;let o=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),r[n][o]?!1:(i[n][o]=!0,!0)}).reverse().forEach(t=>e.push(t));let a=Object.keys(i);for(let e=0;e<a.length;e+=1){let t=a[e];r[t]={...r[t],...i[t]}}return e},[]).reverse()},bi=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},xi=e=>({baseTag:_i([`href`],e),bodyAttributes:gi(`bodyAttributes`,e),defer:pi(e,fi.DEFER),encode:pi(e,fi.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:gi(`htmlAttributes`,e),linkTags:yi(`link`,[`rel`,`href`],e),metaTags:yi(`meta`,[`name`,`charset`,`http-equiv`,`property`,`itemprop`],e),noscriptTags:yi(`noscript`,[`innerHTML`],e),onChangeClientState:hi(e),scriptTags:yi(`script`,[`src`,`innerHTML`],e),styleTags:yi(`style`,[`cssText`],e),title:mi(e),titleAttributes:gi(`titleAttributes`,e),prioritizeSeoTags:bi(e,fi.PRIORITIZE_SEO_TAGS)}),Si=e=>Array.isArray(e)?e.join(``):e,Ci=(e,t)=>{let n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},wi=(e,t)=>Array.isArray(e)?e.reduce((e,n)=>(Ci(n,t)?e.priority.push(n):e.default.push(n),e),{priority:[],default:[]}):{default:e,priority:[]},Ti=(e,t)=>({...e,[t]:void 0}),Ei=[`noscript`,`script`,`style`],Di=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#x27;`),Oi=e=>Object.keys(e).reduce((t,n)=>{let r=e[n]===void 0?`${n}`:`${n}="${e[n]}"`;return t?`${t} ${r}`:r},``),ki=(e,t,n,r)=>{let i=Oi(n),a=Si(t);return i?`<${e} ${di}="true" ${i}>${Di(a,r)}</${e}>`:`<${e} ${di}="true">${Di(a,r)}</${e}>`},Ai=(e,t,n=!0)=>t.reduce((t,r)=>{let i=r,a=Object.keys(i).filter(e=>!(e===`innerHTML`||e===`cssText`)).reduce((e,t)=>{let r=i[t]===void 0?t:`${t}="${Di(i[t],n)}"`;return e?`${e} ${r}`:r},``),o=i.innerHTML||i.cssText||``;return`${t}<${e} ${di}="true" ${a}${Ei.indexOf(e)===-1?`/>`:`>${o}</${e}>`}`},``),ji=(e,t={})=>Object.keys(e).reduce((t,n)=>{let r=li[n];return t[r||n]=e[n],t},t),Mi=(e,t,n)=>{let r=ji(n,{key:t,[di]:!0});return[j.createElement(`title`,r,t)]},Ni=(e,t)=>t.map((t,n)=>{let r={key:n,[di]:!0};return Object.keys(t).forEach(e=>{let n=li[e]||e;n===`innerHTML`||n===`cssText`?r.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:r[n]=t[e]}),j.createElement(e,r)}),Pi=(e,t,n=!0)=>{switch(e){case`title`:return{toComponent:()=>Mi(e,t.title,t.titleAttributes),toString:()=>ki(e,t.title,t.titleAttributes,n)};case`bodyAttributes`:case`htmlAttributes`:return{toComponent:()=>ji(t),toString:()=>Oi(t)};default:return{toComponent:()=>Ni(e,t),toString:()=>Ai(e,t,n)}}},Fi=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{let i=wi(e,si.meta),a=wi(t,si.link),o=wi(n,si.script);return{priorityMethods:{toComponent:()=>[...Ni(`meta`,i.priority),...Ni(`link`,a.priority),...Ni(`script`,o.priority)],toString:()=>`${Pi(`meta`,i.priority,r)} ${Pi(`link`,a.priority,r)} ${Pi(`script`,o.priority,r)}`},metaTags:i.default,linkTags:a.default,scriptTags:o.default}},Ii=e=>{let{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:a,styleTags:o,title:s=``,titleAttributes:c,prioritizeSeoTags:l}=e,{linkTags:u,metaTags:d,scriptTags:f}=e,p={toComponent:()=>[],toString:()=>``};return l&&({priorityMethods:p,linkTags:u,metaTags:d,scriptTags:f}=Fi(e)),{priority:p,base:Pi(`base`,t,r),bodyAttributes:Pi(`bodyAttributes`,n,r),htmlAttributes:Pi(`htmlAttributes`,i,r),link:Pi(`link`,u,r),meta:Pi(`meta`,d,r),noscript:Pi(`noscript`,a,r),script:Pi(`script`,f,r),style:Pi(`style`,o,r),title:Pi(`title`,{title:s,titleAttributes:c},r)}},Li=[],Ri=!!(typeof window<`u`&&window.document&&window.document.createElement),zi=class{instances=[];canUseDOM=Ri;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Li:this.instances,add:e=>{(this.canUseDOM?Li:this.instances).push(e)},remove:e=>{let t=(this.canUseDOM?Li:this.instances).indexOf(e);(this.canUseDOM?Li:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Ii({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:``,titleAttributes:{}}))}},Bi=parseInt(`19.3.1`.split(`.`)[0],10)>=19,Vi=j.createContext({}),Hi=class e extends j.Component{static canUseDOM=Ri;helmetData;constructor(t){super(t),Bi?this.helmetData=null:this.helmetData=new zi(this.props.context||{},e.canUseDOM)}render(){return Bi?j.createElement(j.Fragment,null,this.props.children):j.createElement(Vi.Provider,{value:this.helmetData.value},this.props.children)}},Ui=(e,t)=>{let n=document.head||document.querySelector(`head`),r=n.querySelectorAll(`${e}[${di}]`),i=[].slice.call(r),a=[],o;return t&&t.length&&t.forEach(t=>{let n=document.createElement(e);for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e))if(e===`innerHTML`)n.innerHTML=t.innerHTML;else if(e===`cssText`){let e=t.cssText;n.appendChild(document.createTextNode(e))}else{let r=e,i=t[r]===void 0?``:t[r];n.setAttribute(e,i)}n.setAttribute(di,`true`),i.some((e,t)=>(o=t,n.isEqualNode(e)))?i.splice(o,1):a.push(n)}),i.forEach(e=>e.parentNode?.removeChild(e)),a.forEach(e=>n.appendChild(e)),{oldTags:i,newTags:a}},Wi=(e,t)=>{let n=document.getElementsByTagName(e)[0];if(!n)return;let r=n.getAttribute(di),i=r?r.split(`,`):[],a=[...i],o=Object.keys(t);for(let e of o){let r=t[e]||``;n.getAttribute(e)!==r&&n.setAttribute(e,r),i.indexOf(e)===-1&&i.push(e);let o=a.indexOf(e);o!==-1&&a.splice(o,1)}for(let e=a.length-1;e>=0;--e)n.removeAttribute(a[e]);i.length===a.length?n.removeAttribute(di):n.getAttribute(di)!==o.join(`,`)&&n.setAttribute(di,o.join(`,`))},Gi=(e,t)=>{e!==void 0&&document.title!==e&&(document.title=Si(e)),Wi(`title`,t)},Ki=(e,t)=>{let{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:a,metaTags:o,noscriptTags:s,onChangeClientState:c,scriptTags:l,styleTags:u,title:d,titleAttributes:f}=e;Wi(`body`,r),Wi(`html`,i),Gi(d,f);let p={baseTag:Ui(`base`,n),linkTags:Ui(`link`,a),metaTags:Ui(`meta`,o),noscriptTags:Ui(`noscript`,s),scriptTags:Ui(`script`,l),styleTags:Ui(`style`,u)},m={},h={};Object.keys(p).forEach(e=>{let{newTags:t,oldTags:n}=p[e];t.length&&(m[e]=t),n.length&&(h[e]=p[e].oldTags)}),t&&t(),c(e,m,h)},qi=null,Ji=e=>{qi&&cancelAnimationFrame(qi),e.defer?qi=requestAnimationFrame(()=>{Ki(e,()=>{qi=null})}):(Ki(e),qi=null)},Yi=class extends j.Component{rendered=!1;shouldComponentUpdate(e){return!(0,ai.default)(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){let{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){let{helmetInstances:e,setHelmet:t}=this.props.context,n=null,r=xi(e.get().map(e=>{let{context:t,...n}=e.props;return n}));Hi.canUseDOM?Ji(r):Ii&&(n=Ii(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;let{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},Xi=[],Zi=e=>{let t={};for(let n of Object.keys(e))t[ui[n]||n]=e[n];return t},Qi=e=>{let t={};for(let n of Object.keys(e)){let r=li[n];t[r||n]=e[n]}return t},$i=(e,t)=>{if(!Ri)return;let n=document.getElementsByTagName(e)[0];if(!n)return;let r=`data-rh-managed`,i=n.getAttribute(r),a=i?i.split(`,`):[],o=Object.keys(t);for(let e of a)o.includes(e)||n.removeAttribute(e);for(let e of o){let r=t[e];r==null||r===!1?n.removeAttribute(e):r===!0?n.setAttribute(e,``):n.setAttribute(e,String(r))}o.length>0?n.setAttribute(r,o.join(`,`)):n.removeAttribute(r)},ea=()=>{let e={},t={};for(let n of Xi){let{htmlAttributes:r,bodyAttributes:i}=n.props;r&&Object.assign(e,Zi(r)),i&&Object.assign(t,Zi(i))}$i(`html`,e),$i(`body`,t)},ta=class extends j.Component{componentDidMount(){Xi.push(this),ea()}componentDidUpdate(){ea()}componentWillUnmount(){let e=Xi.indexOf(this);e!==-1&&Xi.splice(e,1),ea()}resolveTitle(){let{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(``):e):e||n||void 0}renderTitle(){let e=this.resolveTitle();if(e===void 0)return null;let t=this.props.titleAttributes||{};return j.createElement(`title`,Qi(t),e)}renderBase(){let{base:e}=this.props;return e?j.createElement(`base`,Qi(e)):null}renderMeta(){let{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((e,t)=>j.createElement(`meta`,{key:t,...Qi(e)}))}renderLink(){let{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((e,t)=>j.createElement(`link`,{key:t,...Qi(e)}))}renderScript(){let{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((e,t)=>{let{innerHTML:n,...r}=e,i=Qi(r);return n&&(i.dangerouslySetInnerHTML={__html:n}),j.createElement(`script`,{key:t,...i})})}renderStyle(){let{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((e,t)=>{let{cssText:n,...r}=e,i=Qi(r);return n&&(i.dangerouslySetInnerHTML={__html:n}),j.createElement(`style`,{key:t,...i})})}renderNoscript(){let{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((e,t)=>{let{innerHTML:n,...r}=e,i=Qi(r);return n&&(i.dangerouslySetInnerHTML={__html:n}),j.createElement(`noscript`,{key:t,...i})})}render(){return j.createElement(j.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},na=class extends j.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!(0,ri.default)(Ti(this.props,`helmetData`),Ti(e,`helmetData`))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case`script`:case`noscript`:return{innerHTML:t};case`style`:return{cssText:t};default:throw Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case`title`:return{...t,[e.type]:r,titleAttributes:{...n}};case`body`:return{...t,bodyAttributes:{...n}};case`html`:return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(t=>{n={...n,[t]:e[t]}}),n}warnOnInvalidChildren(e,t){return(0,ii.default)(ci.some(t=>e.type===t),typeof e.type==`function`?`You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.`:`Only elements types ${ci.join(`, `)} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),(0,ii.default)(!t||typeof t==`string`||Array.isArray(t)&&!t.some(e=>typeof e!=`string`),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return j.Children.forEach(e,e=>{if(!e||!e.props)return;let{children:r,...i}=e.props,a=Object.keys(i).reduce((e,t)=>(e[ui[t]||t]=i[t],e),{}),{type:o}=e;switch(typeof o==`symbol`?o=o.toString():this.warnOnInvalidChildren(e,r),o){case`Symbol(react.fragment)`:t=this.mapChildrenToProps(r,t);break;case`link`:case`meta`:case`noscript`:case`script`:case`style`:n=this.flattenArrayTypeChildren(e,n,a,r);break;default:t=this.mapObjectTypeChildren(e,t,a,r);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){let{children:e,...t}=this.props,n={...t},{helmetData:r}=t;return e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof zi)&&(r=new zi(r.context,!0),delete n.helmetData),Bi?j.createElement(ta,{...n}):r?j.createElement(Yi,{...n,context:r.value}):j.createElement(Vi.Consumer,null,e=>j.createElement(Yi,{...n,context:e}))}},ra=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,ia=/^[\\/]{2}/;function aa(e,t){return t+e.replace(/\\/g,`/`)}var oa=`popstate`;function sa(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function ca(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return fa(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:pa(t)}return ha(t,n,null,e)}function I(e,t){if(e===!1||e==null)throw Error(t)}function la(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function ua(){return Math.random().toString(36).substring(2,10)}function da(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function fa(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?ma(t):t,state:n,key:t&&t.key||r||ua(),mask:i}}function pa({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function ma(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function ha(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=sa(e)?e:fa(h.location,e,t);n&&n(r,e),l=u()+1;let d=da(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=sa(e)?e:fa(h.location,e,t);n&&n(r,e),l=u();let i=da(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return ga(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(oa,d),c=e,()=>{i.removeEventListener(oa,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function ga(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),I(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:pa(t);return i=i.replace(/ $/,`%20`),!n&&ia.test(i)&&(i=r+i),new URL(i,r)}function _a(e,t,n=`/`){return va(e,t,n,!1)}function va(e,t,n,r,i){let a=Ra((typeof t==`string`?ma(t):t).pathname||`/`,n);if(a==null)return null;let o=i??ba(e),s=null,c=La(a);for(let e=0;s==null&&e<o.length;++e)s=Na(o[e],c,r);return s}function ya(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function ba(e){let t=xa(e);return Ca(t),t}function xa(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;I(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Ka([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(I(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),xa(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:ja(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Ia(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of Sa(e.path))a(e,t,!0,n)}),t}function Sa(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=Sa(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function Ca(e){e.sort((e,t)=>e.score===t.score?Ma(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var wa=/^:[\w-]+$/,Ta=3,Ea=2,Da=1,Oa=10,ka=-2,Aa=e=>e===`*`;function ja(e,t){let n=e.split(`/`),r=n.length;return n.some(Aa)&&(r+=ka),t&&(r+=Ea),n.filter(e=>!Aa(e)).reduce((e,t)=>e+(wa.test(t)?Ta:t===``?Da:Oa),r)}function Ma(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function Na(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?Fa(u,l,s.matcher,s.compiledParams):Pa(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Pa({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Ka([a,d.pathname]),pathnameBase:Ja(Ka([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Ka([a,d.pathnameBase]))}return o}function Pa(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Ia(e.path,e.caseSensitive,e.end);return Fa(e,t,n,r)}function Fa(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=qa(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=qa(a.slice(0,a.length-e.length),1)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Ia(e,t=!1,n=!0){la(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function La(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return la(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ra(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function za(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?ma(e):e,a;return n?(n=Ga(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?Ba(n.substring(1),`/`):Ba(n,t)):a=t,{pathname:a,search:Ya(r),hash:Xa(i)}}function Ba(e,t){let n=qa(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Va(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ha(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Ua(e){let t=Ha(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Wa(e,t,n,r=!1){let i;typeof e==`string`?i=ma(e):(i={...e},I(!i.pathname||!i.pathname.includes(`?`),Va(`?`,`pathname`,`search`,i)),I(!i.pathname||!i.pathname.includes(`#`),Va(`#`,`pathname`,`hash`,i)),I(!i.search||!i.search.includes(`#`),Va(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=za(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Ga=e=>e.replace(/[\\/]{2,}/g,`/`),Ka=e=>Ga(e.join(`/`));function qa(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var Ja=e=>qa(e).replace(/^\/*/,`/`),Ya=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Xa=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Za=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Qa(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function $a(e){return Ka(e.map(e=>e.route.path).filter(Boolean))||`/`}var eo=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function to(e,t){let n=e;if(typeof n!=`string`||!ra.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(eo)try{let e=new URL(window.location.href),r=ia.test(n)?new URL(aa(n,e.protocol)):new URL(n),a=Ra(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{la(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var no=new URL(`http://localhost`);function ro(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),no)}catch{return no}}function io(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function ao(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function oo(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!io(i,n),s=!io(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!ao(e,i)||!io(i,a)))throw Error(`External navigation is not allowed`)}var so=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function co(e){try{return so.includes(new URL(e).protocol)}catch{return!1}}var lo=j.createContext(null);lo.displayName=`DataRouter`;var uo=j.createContext(null);uo.displayName=`DataRouterState`;var fo=j.createContext(!1);function po(){return j.useContext(fo)}var mo=j.createContext({isTransitioning:!1});mo.displayName=`ViewTransition`;var ho=j.createContext(new Map);ho.displayName=`Fetchers`;var go=j.createContext(null);go.displayName=`Await`;var _o=j.createContext(null);_o.displayName=`Navigation`;var vo=j.createContext(null);vo.displayName=`Location`;var yo=j.createContext({outlet:null,matches:[],isDataRoute:!1});yo.displayName=`Route`;var bo=j.createContext(null);bo.displayName=`RouteError`;var xo=`REACT_ROUTER_ERROR`,So=`REDIRECT`,Co=`ROUTE_ERROR_RESPONSE`;function wo(e){if(e.startsWith(`${xo}:${So}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function To(e){if(e.startsWith(`${xo}:${Co}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Za(t.status,t.statusText,t.data)}catch{}}function Eo(e,{relative:t}={}){I(Do(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=j.useContext(_o),{hash:i,pathname:a,search:o}=Po(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Ka([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Do(){return j.useContext(vo)!=null}function Oo(){return I(Do(),`useLocation() may be used only in the context of a <Router> component.`),j.useContext(vo).location}var ko=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Ao(e){j.useContext(_o).static||j.useLayoutEffect(e)}function jo(){let{isDataRoute:e}=j.useContext(yo);return e?Zo():Mo()}function Mo(){I(Do(),`useNavigate() may be used only in the context of a <Router> component.`);let e=j.useContext(lo),{basename:t,navigator:n}=j.useContext(_o),{matches:r}=j.useContext(yo),{pathname:i}=Oo(),a=JSON.stringify(Ua(r)),o=j.useRef(!1);return Ao(()=>{o.current=!0}),j.useCallback((r,s={})=>{if(la(o.current,ko),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Wa(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Ka([t,c.pathname])),oo(typeof r==`string`?r:pa(r),n.createHref(c),ro(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}j.createContext(null);function No(){let{matches:e}=j.useContext(yo);return e[e.length-1]?.params??{}}function Po(e,{relative:t}={}){let{matches:n}=j.useContext(yo),{pathname:r}=Oo(),i=JSON.stringify(Ua(n));return j.useMemo(()=>Wa(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Fo(e,t){return Io(e,t)}function Io(e,t,n){I(Do(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=j.useContext(_o),{matches:i}=j.useContext(yo),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;$o(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
10
10
 
11
- Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=Oo(),d;if(t){let e=typeof t==`string`?ma(t):t;I(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):_a(e,{pathname:p});la(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),la(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=Uo(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Ka([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Ka([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?j.createElement(vo.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function Lo(){let e=Xo(),t=Qa(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=j.createElement(j.Fragment,null,j.createElement(`p`,null,`💿 Hey developer 👋`),j.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,j.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,j.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),j.createElement(j.Fragment,null,j.createElement(`h2`,null,`Unexpected Application Error!`),j.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?j.createElement(`pre`,{style:i},n):null,o)}var Ro=j.createElement(Lo,null),zo=class extends j.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=To(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:j.createElement(yo.Provider,{value:this.props.routeContext},j.createElement(bo.Provider,{value:e,children:this.props.component}));return this.context?j.createElement(Vo,{error:e},t):t}};zo.contextType=fo;var Bo=new WeakMap;function Vo({children:e,error:t}){let{basename:n,navigator:r}=j.useContext(_o);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=wo(t.digest);if(e){let i=Bo.get(t);if(i)throw i;let a=to(e.location,n),o=a.absoluteURL||a.to;if(oo(e.location,o,ro(r),`allow-explicit`),co(o))throw Error(`Invalid redirect location`);if(eo&&!Bo.get(t))if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw Bo.set(t,n),n}return j.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Ho({routeContext:e,match:t,children:n}){let r=j.useContext(lo);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),j.createElement(yo.Provider,{value:e},n)}function Uo(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);I(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:$a(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Ro,o&&(s<0&&c===0?($o(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?j.createElement(n.route.Component,null):n.route.element?n.route.element:e,j.createElement(Ho,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?j.createElement(zo,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Wo(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Go(e){let t=j.useContext(lo);return I(t,Wo(e)),t}function Ko(e){let t=j.useContext(uo);return I(t,Wo(e)),t}function L(e){let t=j.useContext(yo);return I(t,Wo(e)),t}function R(e){let t=L(e),n=t.matches[t.matches.length-1];return I(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function qo(){return R(`useRouteId`)}function Jo(){let e=Ko(`useNavigation`);return j.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function Yo(){let{matches:e,loaderData:t}=Ko(`useMatches`);return j.useMemo(()=>e.map(e=>ya(e,t)),[e,t])}function Xo(){let e=j.useContext(bo),t=Ko(`useRouteError`),n=R(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Zo(){let{router:e}=Go(`useNavigate`),t=R(`useNavigate`),n=j.useRef(!1);return Ao(()=>{n.current=!0}),j.useCallback(async(r,i={})=>{la(n.current,ko),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Qo={};function $o(e,t,n){!t&&!Qo[e]&&(Qo[e]=!0,la(!1,n))}j.useOptimistic,j.memo(es);function es({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Io(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function ts({to:e,replace:t,state:n,relative:r}){I(Do(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i,navigator:a}=j.useContext(_o);la(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:o}=j.useContext(yo),{pathname:s}=Oo(),c=jo(),l=Wa(e,Ua(o),s,r===`path`);oo(typeof e==`string`?e:pa(e),a.createHref(l),ro(a),`reject`);let u=JSON.stringify(l);return j.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function ns(e){I(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function rs({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){I(!Do(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=j.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=ma(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=j.useMemo(()=>{let e=Ra(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return la(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:j.createElement(_o.Provider,{value:c},j.createElement(vo.Provider,{children:t,value:h}))}function is({children:e,location:t}){return Fo(as(e),t)}function as(e,t=[]){let n=[];return j.Children.forEach(e,(e,r)=>{if(!j.isValidElement(e))return;let i=[...t,r];if(e.type===j.Fragment){n.push.apply(n,as(e.props.children,i));return}I(e.type===ns,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),I(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=as(e.props.children,i)),n.push(a)}),n}var os=`get`,ss=`application/x-www-form-urlencoded`;function cs(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function ls(e){return cs(e)&&e.tagName.toLowerCase()===`button`}function us(e){return cs(e)&&e.tagName.toLowerCase()===`form`}function ds(e){return cs(e)&&e.tagName.toLowerCase()===`input`}function fs(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ps(e,t){return e.button===0&&(!t||t===`_self`)&&!fs(e)}var ms=null;function hs(){if(ms===null)try{new FormData(document.createElement(`form`),0),ms=!1}catch{ms=!0}return ms}var gs=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function _s(e){return e!=null&&!gs.has(e)?(la(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ss}"`),null):e}function vs(e,t){let n,r,i,a,o;if(us(e)){let o=e.getAttribute(`action`);r=o?Ra(o,t):null,n=e.getAttribute(`method`)||os,i=_s(e.getAttribute(`enctype`))||ss,a=new FormData(e)}else if(ls(e)||ds(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Ra(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||os,i=_s(e.getAttribute(`formenctype`))||_s(o.getAttribute(`enctype`))||ss,a=new FormData(o,e),!hs()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(cs(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=os,r=null,i=ss,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var ys={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},bs=/[&><\u2028\u2029]/g;function xs(e){return e.replace(bs,e=>ys[e])}function Ss(e,t){if(e===!1||e==null)throw Error(t)}function Cs(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&Ra(i.pathname,t)===`/`?i.pathname=`${qa(t)}/_root.${r}`:i.pathname=`${qa(i.pathname)}.${r}`,i}async function ws(e,t){if(e.id in t)return t[e.id];try{let n=await a(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ts(e){return e!=null&&typeof e.page==`string`}function Es(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Ds(e,t,n){return Ms((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await ws(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Es).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Os(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function ks(e,t,{includeHydrateFallback:n}={}){return As(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function As(e){return[...new Set(e)]}function js(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Ms(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Ts(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(js(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Ns(){let e=j.useContext(lo);return Ss(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Ps(){let e=j.useContext(uo);return Ss(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Fs=j.createContext(void 0);Fs.displayName=`FrameworkContext`;function Is(){let e=j.useContext(Fs);return Ss(e,`You must render this element inside a <HydratedRouter> element`),e}function Ls(e,t){let n=j.useContext(Fs),[r,i]=j.useState(!1),[a,o]=j.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=j.useRef(null);j.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),j.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Rs(s,p),onBlur:Rs(c,m),onMouseEnter:Rs(l,p),onMouseLeave:Rs(u,m),onTouchStart:Rs(d,p)}]:[a,f,{}]:[!1,f,{}]}function Rs(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function zs({page:e,...t}){let n=po(),{nonce:r}=Is(),{router:i}=Ns(),a=j.useMemo(()=>_a(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?j.createElement(Vs,{page:e,matches:a,...t}):j.createElement(Hs,{page:e,matches:a,...t})):null}function Bs(e){let{manifest:t,routeModules:n}=Is(),[r,i]=j.useState([]);return j.useEffect(()=>{let r=!1;return Ds(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Vs({page:e,matches:t,...n}){let r=Oo(),{future:i}=Is(),{basename:a}=Ns(),o=j.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Cs(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return j.createElement(j.Fragment,null,o.map(e=>j.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Hs({page:e,matches:t,...n}){let r=Oo(),{future:i,manifest:a,routeModules:o}=Is(),{basename:s}=Ns(),{loaderData:c,matches:l}=Ps(),u=j.useMemo(()=>Os(e,t,l,a,r,`data`),[e,t,l,a,r]),d=j.useMemo(()=>Os(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=j.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=Cs(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=j.useMemo(()=>ks(d,a),[d,a]),m=Bs(d);return j.createElement(j.Fragment,null,f.map(e=>j.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>j.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>j.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Us(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var Ws=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Ws&&(window.__reactRouterVersion=`7.18.5`)}catch{}function Gs({basename:e,children:t,useTransitions:n,window:r}){let i=j.useRef();i.current??=ca({window:r,v5Compat:!0});let a=i.current,[o,s]=j.useState({action:a.action,location:a.location}),c=j.useCallback(e=>{n===!1?s(e):j.startTransition(()=>s(e))},[n]);return j.useLayoutEffect(()=>a.listen(c),[a,c]),j.createElement(rs,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function Ks({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=j.useState({action:n.action,location:n.location}),o=j.useCallback(e=>{r===!1?a(e):j.startTransition(()=>a(e))},[r]);return j.useLayoutEffect(()=>n.listen(o),[n,o]),j.createElement(rs,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}Ks.displayName=`unstable_HistoryRouter`;var qs=j.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=j.useContext(_o),v=typeof l==`string`&&ra.test(l),y=to(l,h);l=y.to;let b=Eo(l,{relative:r}),x=Oo(),S=null;if(o){let e=Wa(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Ka([h,e.pathname])),S=g.createHref(e)}let[C,w,T]=Ls(n,p),E=ec(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function D(t){e&&e(t),t.defaultPrevented||E(t)}let O=!(y.isExternal||i),k=j.createElement(`a`,{...p,...T,href:(O?S:void 0)||y.absoluteURL||b,onClick:O?D:e,ref:Us(m,w),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?j.createElement(j.Fragment,null,k,j.createElement(zs,{page:b})):k});qs.displayName=`Link`;var Js=j.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Po(a,{relative:c.relative}),d=Oo(),f=j.useContext(uo),{navigator:p,basename:m}=j.useContext(_o),h=f!=null&&uc(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=Ra(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,w;w=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let T=typeof i==`function`?i(S):i;return j.createElement(qs,{...c,"aria-current":C,className:w,ref:l,style:T,to:a,viewTransition:o},typeof s==`function`?s(S):s)});Js.displayName=`NavLink`;var Ys=j.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=os,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=j.useContext(_o),g=rc(),_=ic(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&ra.test(s);return j.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?j.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});Ys.displayName=`Form`;function Xs({getKey:e,storageKey:t,...n}){let r=j.useContext(Fs),{basename:i}=j.useContext(_o),a=Oo(),o=Yo();cc({getKey:e,storageKey:t});let s=j.useMemo(()=>{if(!r||!e)return null;let t=sc(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return n.nonce==null&&r?.nonce&&(n.nonce=r.nonce),j.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${xs(JSON.stringify(t||ac))}, ${xs(JSON.stringify(s))})`}})}Xs.displayName=`ScrollRestoration`;function Zs(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Qs(e){let t=j.useContext(lo);return I(t,Zs(e)),t}function $s(e){let t=j.useContext(uo);return I(t,Zs(e)),t}function ec(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=jo(),d=Oo(),f=Po(e,{relative:o});return j.useCallback(p=>{if(ps(p,t)){p.preventDefault();let t=n===void 0?pa(d)===pa(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?j.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}var tc=0,nc=()=>`__${String(++tc)}__`;function rc(){let{router:e}=Qs(`useSubmit`),{basename:t}=j.useContext(_o),n=qo(),r=e.fetch,i=e.navigate;return j.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=vs(e,t);a.navigate===!1?await r(a.fetcherKey||nc(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function ic(e,{relative:t}={}){let{basename:n}=j.useContext(_o),r=j.useContext(yo);I(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Po(e||`.`,{relative:t})},o=Oo();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Ka([n,a.pathname])),pa(a)}var ac=`react-router-scroll-positions`,oc={};function sc(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:Ra(e.pathname,n)||e.pathname},t)),i??=e.key,i}function cc({getKey:e,storageKey:t}={}){let{router:n}=Qs(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=$s(`useScrollRestoration`),{basename:a}=j.useContext(_o),o=Oo(),s=Yo(),c=Jo();j.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),lc(j.useCallback(()=>{if(c.state===`idle`){let t=sc(o,s,a,e);oc[t]=window.scrollY}try{sessionStorage.setItem(t||ac,JSON.stringify(oc))}catch(e){la(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(j.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||ac);e&&(oc=JSON.parse(e))}catch{}},[t]),j.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(oc,()=>window.scrollY,e?(t,n)=>sc(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),j.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{la(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function lc(e,t){let{capture:n}=t||{};j.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function uc(e,{relative:t}={}){let n=j.useContext(mo);I(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Qs(`useViewTransitionState`),i=Po(e,{relative:t});if(!n.isTransitioning)return!1;let a=Ra(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Ra(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Pa(i.pathname,o)!=null||Pa(i.pathname,a)!=null}var dc=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function fc(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:dc(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var pc=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t},mc=e=>{let t=pc(e);return t.charAt(0).toUpperCase()+t.slice(1)},hc=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),gc={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function _c(e){return e!=null}function vc(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??gc.width,a=e.size??e.height??gc.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?hc(...c):hc(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??gc[`stroke-width`])*Number(e.size??e.width??gc.width)/Number(t.size??t.width??gc.width):t.strokeWidth??gc[`stroke-width`];return[`svg`,{...Object.entries(gc).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&_c(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&_c(t.width)&&{[r(`width`)]:t.width},...`height`in t&&_c(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function yc(e,t={}){return vc(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var bc=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},xc=(0,j.createContext)({}),Sc=()=>(0,j.useContext)(xc),Cc=(0,j.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=Sc()??{},y=!!c||bc(d),[b,x,S=[]]=yc(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:hc(v,s),hasA11yProp:y,attributes:d});return(0,j.createElement)(b,{ref:f,...x},[...S.map(([e,t])=>(0,j.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function z(e,t=[],n=[]){let r=typeof e==`string`?fc(e,t,n):e,i=(0,j.forwardRef)(({className:e,...t},n)=>(0,j.createElement)(Cc,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=mc(r.name)),i}var wc={name:`activity`,size:24,node:[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]};wc.node;var Tc=z(wc),Ec={name:`app-window-mac`,size:24,node:[[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}],[`path`,{d:`M6 8h.01`,key:`x9i8wu`}],[`path`,{d:`M10 8h.01`,key:`1r9ogq`}],[`path`,{d:`M14 8h.01`,key:`1primd`}]]};Ec.node;var Dc=z(Ec),Oc={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]};Oc.node;var kc=z(Oc),Ac={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};Ac.node;var jc=z(Ac),Mc={name:`arrow-right-left`,size:24,node:[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]};Mc.node;var Nc=z(Mc),Pc={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};Pc.node;var Fc=z(Pc),Ic={name:`arrow-up-down`,size:24,node:[[`path`,{d:`m21 16-4 4-4-4`,key:`f6ql7i`}],[`path`,{d:`M17 20V4`,key:`1ejh1v`}],[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}]]};Ic.node;var Lc=z(Ic),Rc={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};Rc.node;var zc=z(Rc),Bc={name:`calendar`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]};Bc.node;var Vc=z(Bc),Hc={name:`chart-column`,size:24,node:[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]],aliases:[`bar-chart-3`]};Hc.node;var Uc=z(Hc),Wc={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Wc.node;var Gc=z(Wc),Kc={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};Kc.node;var qc=z(Kc),Jc={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};Jc.node;var Yc=z(Jc),Xc={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};Xc.node;var Zc=z(Xc),Qc={name:`circle-check-big`,size:24,node:[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]],aliases:[`check-circle`]};Qc.node;var $c=z(Qc),el={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};el.node;var tl=z(el),nl={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};nl.node;var rl=z(nl),il={name:`cloud`,size:24,node:[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]};il.node;var al=z(il),ol={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};ol.node;var sl=z(ol),cl={name:`cpu`,size:24,node:[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]};cl.node;var ll=z(cl),ul={name:`database`,size:24,node:[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]};ul.node;var dl=z(ul),fl={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};fl.node;var pl=z(fl),ml={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};ml.node;var hl=z(ml),gl={name:`eye-off`,size:24,node:[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]};gl.node;var _l=z(gl),vl={name:`eye`,size:24,node:[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};vl.node;var yl=z(vl),bl={name:`funnel`,size:24,node:[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]],aliases:[`filter`]};bl.node;var xl=z(bl),Sl={name:`globe`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]};Sl.node;var Cl=z(Sl),wl={name:`hard-drive`,size:24,node:[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]};wl.node;var Tl=z(wl),El={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};El.node;var Dl=z(El),Ol={name:`key`,size:24,node:[[`path`,{d:`m2 21 9.6-9.6`,key:`9l79m3`}],[`path`,{d:`m7.5 15.5 2.3 2.3a1 1 0 0 1 0 1.4l-2.1 2.1a1 1 0 0 1-1.4 0L4 19`,key:`fw8biw`}],[`circle`,{cx:`15.5`,cy:`7.5`,r:`5.5`,key:`4wxmhb`}]]};Ol.node;var kl=z(Ol),Al={name:`list-filter`,size:24,node:[[`path`,{d:`M2 5h20`,key:`1fs1ex`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M9 19h6`,key:`456am0`}]]};Al.node;var jl=z(Al),Ml={name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]};Ml.node;var Nl=z(Ml),Pl={name:`log-in`,size:24,node:[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]};Pl.node;var Fl=z(Pl),Il={name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]};Il.node;var Ll=z(Il),Rl={name:`map-pin`,size:24,node:[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]};Rl.node;var zl=z(Rl),Bl={name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]};Bl.node;var Vl=z(Bl),Hl={name:`monitor-smartphone`,size:24,node:[[`path`,{d:`M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8`,key:`10dyio`}],[`path`,{d:`M10 19v-3.96 3.15`,key:`1irgej`}],[`path`,{d:`M7 19h5`,key:`qswx4l`}],[`rect`,{width:`6`,height:`10`,x:`16`,y:`12`,rx:`2`,key:`1egngj`}]]};Hl.node;var Ul=z(Hl),Wl={name:`monitor`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]};Wl.node;var Gl=z(Wl),Kl={name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]};Kl.node;var ql=z(Kl),Jl={name:`network`,size:24,node:[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]};Jl.node;var Yl=z(Jl),Xl={name:`pen-line`,size:24,node:[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]],aliases:[`edit-3`]};Xl.node;var Zl=z(Xl),Ql={name:`pen`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]],aliases:[`edit-2`]};Ql.node;var $l=z(Ql),eu={name:`play`,size:24,node:[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]};eu.node;var tu=z(eu),nu={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};nu.node;var ru=z(nu),iu={name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]};iu.node;var au=z(iu),ou={name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]};ou.node;var su=z(ou),cu={name:`router`,size:24,node:[[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,key:`w68u3i`}],[`path`,{d:`M6.01 18H6`,key:`19vcac`}],[`path`,{d:`M10.01 18H10`,key:`uamcmx`}],[`path`,{d:`M15 10v4`,key:`qjz1xs`}],[`path`,{d:`M17.84 7.17a4 4 0 0 0-5.66 0`,key:`1rif40`}],[`path`,{d:`M20.66 4.34a8 8 0 0 0-11.31 0`,key:`6a5xfq`}]]};cu.node;var lu=z(cu),B={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};B.node;var uu=z(B),du={name:`server`,size:24,node:[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]};du.node;var fu=z(du),pu={name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};pu.node;var mu=z(pu),hu={name:`settings-2`,size:24,node:[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]};hu.node;var gu=z(hu),_u={name:`shield-alert`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]};_u.node;var vu=z(_u),yu={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};yu.node;var bu=z(yu),xu={name:`shield-off`,size:24,node:[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`,key:`1jlk70`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`,key:`18rp1v`}]]};xu.node;var Su=z(xu),Cu={name:`shield-x`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m14.5 9.5-5 5`,key:`17q4r4`}],[`path`,{d:`m9.5 9.5 5 5`,key:`18nt4w`}]],aliases:[`shield-close`]};Cu.node;var wu=z(Cu),Tu={name:`shield`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]};Tu.node;var Eu=z(Tu),Du={name:`smartphone`,size:24,node:[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]};Du.node;var Ou=z(Du),ku={name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]};ku.node;var Au=z(ku),ju={name:`terminal`,size:24,node:[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]};ju.node;var Mu=z(ju),Nu={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};Nu.node;var Pu=z(Nu),Fu={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};Fu.node;var Iu=z(Fu),Lu={name:`user-plus`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]};Lu.node;var Ru=z(Lu),zu={name:`user`,size:24,node:[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]};zu.node;var Bu=z(zu),Vu={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Vu.node;var Hu=z(Vu),Uu={name:`zap`,size:24,node:[[`path`,{d:`M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z`,key:`1v7up4`}]]};Uu.node;var Wu=z(Uu),Gu={name:`zoom-in`,size:24,node:[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`11`,x2:`11`,y1:`8`,y2:`14`,key:`1vmskp`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]};Gu.node;var Ku=z(Gu),qu={name:`zoom-out`,size:24,node:[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]};qu.node;var Ju=z(qu),Yu=class{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){let t=this._partials,n=0;for(let r=0;r<this._n&&r<32;r++){let i=t[r],a=e+i,o=Math.abs(e)<Math.abs(i)?e-(a-i):i-(a-e);o&&(t[n++]=o),e=a}return t[n]=e,this._n=n+1,this}valueOf(){let e=this._partials,t=this._n,n,r,i,a=0;if(t>0){for(a=e[--t];t>0&&(n=a,r=e[--t],a=n+r,i=r-(a-n),!i););t>0&&(i<0&&e[t-1]<0||i>0&&e[t-1]>0)&&(r=i*2,n=a+r,r==n-a&&(a=n))}return a}};function*Xu(e){for(let t of e)yield*t}function Zu(e){return Array.from(Xu(e))}function Qu(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}var V=1e-6,H=Math.PI,$u=H/2,ed=H/4,td=H*2,nd=180/H,U=H/180,W=Math.abs,G=Math.atan,K=Math.atan2,q=Math.cos,rd=Math.ceil,id=Math.exp,ad=Math.hypot,od=Math.log,sd=Math.pow,J=Math.sin,cd=Math.sign||function(e){return e>0?1:e<0?-1:0},ld=Math.sqrt,ud=Math.tan;function dd(e){return e>1?0:e<-1?H:Math.acos(e)}function fd(e){return e>1?$u:e<-1?-$u:Math.asin(e)}function pd(e){return(e=J(e/2))*e}function Y(){}function md(e,t){e&&gd.hasOwnProperty(e.type)&&gd[e.type](e,t)}var hd={Feature:function(e,t){md(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)md(n[r].geometry,t)}},gd={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){_d(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)_d(n[r],t,0)},Polygon:function(e,t){vd(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)vd(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)md(n[r],t)}};function _d(e,t,n){var r=-1,i=e.length-n,a;for(t.lineStart();++r<i;)a=e[r],t.point(a[0],a[1],a[2]);t.lineEnd()}function vd(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)_d(e[n],t,1);t.polygonEnd()}function yd(e,t){e&&hd.hasOwnProperty(e.type)?hd[e.type](e,t):md(e,t)}var bd=new Yu,xd=new Yu,Sd,Cd,wd,Td,Ed,Dd={point:Y,lineStart:Y,lineEnd:Y,polygonStart:function(){bd=new Yu,Dd.lineStart=Od,Dd.lineEnd=kd},polygonEnd:function(){var e=+bd;xd.add(e<0?td+e:e),this.lineStart=this.lineEnd=this.point=Y},sphere:function(){xd.add(td)}};function Od(){Dd.point=Ad}function kd(){jd(Sd,Cd)}function Ad(e,t){Dd.point=jd,Sd=e,Cd=t,e*=U,t*=U,wd=e,Td=q(t=t/2+ed),Ed=J(t)}function jd(e,t){e*=U,t*=U,t=t/2+ed;var n=e-wd,r=n>=0?1:-1,i=r*n,a=q(t),o=J(t),s=Ed*o,c=Td*a+s*q(i),l=s*r*J(i);bd.add(K(l,c)),wd=e,Td=a,Ed=o}function Md(e){return xd=new Yu,yd(e,Dd),xd*2}function Nd(e){return[K(e[1],e[0]),fd(e[2])]}function Pd(e){var t=e[0],n=e[1],r=q(n);return[r*q(t),r*J(t),J(n)]}function Fd(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Id(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Ld(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Rd(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function zd(e){var t=ld(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var Bd,Vd,Hd,Ud,Wd,Gd,Kd,qd,Jd,Yd,Xd,Zd={point:Qd,lineStart:ef,lineEnd:tf,polygonStart:function(){Zd.point=nf,Zd.lineStart=rf,Zd.lineEnd=af,Jd=new Yu,Dd.polygonStart()},polygonEnd:function(){Dd.polygonEnd(),Zd.point=Qd,Zd.lineStart=ef,Zd.lineEnd=tf,bd<0?(Bd=-(Hd=180),Vd=-(Ud=90)):Jd>1e-6?Ud=90:Jd<-1e-6&&(Vd=-90),Xd[0]=Bd,Xd[1]=Hd},sphere:function(){Bd=-(Hd=180),Vd=-(Ud=90)}};function Qd(e,t){Yd.push(Xd=[Bd=e,Hd=e]),t<Vd&&(Vd=t),t>Ud&&(Ud=t)}function $d(e,t){var n=Pd([e*U,t*U]);if(qd){var r=Id(qd,n),i=Id([r[1],-r[0],0],r);zd(i),i=Nd(i);var a=e-Wd,o=a>0?1:-1,s=i[0]*nd*o,c,l=W(a)>180;l^(o*Wd<s&&s<o*e)?(c=i[1]*nd,c>Ud&&(Ud=c)):(s=(s+360)%360-180,l^(o*Wd<s&&s<o*e)?(c=-i[1]*nd,c<Vd&&(Vd=c)):(t<Vd&&(Vd=t),t>Ud&&(Ud=t))),l?e<Wd?of(Bd,e)>of(Bd,Hd)&&(Hd=e):of(e,Hd)>of(Bd,Hd)&&(Bd=e):Hd>=Bd?(e<Bd&&(Bd=e),e>Hd&&(Hd=e)):e>Wd?of(Bd,e)>of(Bd,Hd)&&(Hd=e):of(e,Hd)>of(Bd,Hd)&&(Bd=e)}else Yd.push(Xd=[Bd=e,Hd=e]);t<Vd&&(Vd=t),t>Ud&&(Ud=t),qd=n,Wd=e}function ef(){Zd.point=$d}function tf(){Xd[0]=Bd,Xd[1]=Hd,Zd.point=Qd,qd=null}function nf(e,t){if(qd){var n=e-Wd;Jd.add(W(n)>180?n+(n>0?360:-360):n)}else Gd=e,Kd=t;Dd.point(e,t),$d(e,t)}function rf(){Dd.lineStart()}function af(){nf(Gd,Kd),Dd.lineEnd(),W(Jd)>1e-6&&(Bd=-(Hd=180)),Xd[0]=Bd,Xd[1]=Hd,qd=null}function of(e,t){return(t-=e)<0?t+360:t}function sf(e,t){return e[0]-t[0]}function cf(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}function lf(e){var t,n,r,i,a,o,s;if(Ud=Hd=-(Bd=Vd=1/0),Yd=[],yd(e,Zd),n=Yd.length){for(Yd.sort(sf),t=1,r=Yd[0],a=[r];t<n;++t)i=Yd[t],cf(r,i[0])||cf(r,i[1])?(of(r[0],i[1])>of(r[0],r[1])&&(r[1]=i[1]),of(i[0],r[1])>of(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,n=a.length-1,t=0,r=a[n];t<=n;r=i,++t)i=a[t],(s=of(r[1],i[0]))>o&&(o=s,Bd=i[0],Hd=r[1])}return Yd=Xd=null,Bd===1/0||Vd===1/0?[[NaN,NaN],[NaN,NaN]]:[[Bd,Vd],[Hd,Ud]]}var uf,df,ff,pf,mf,X,hf,gf,_f,vf,yf,bf,xf,Sf,Cf,wf,Tf={sphere:Y,point:Ef,lineStart:Of,lineEnd:jf,polygonStart:function(){Tf.lineStart=Mf,Tf.lineEnd=Nf},polygonEnd:function(){Tf.lineStart=Of,Tf.lineEnd=jf}};function Ef(e,t){e*=U,t*=U;var n=q(t);Df(n*q(e),n*J(e),J(t))}function Df(e,t,n){++uf,ff+=(e-ff)/uf,pf+=(t-pf)/uf,mf+=(n-mf)/uf}function Of(){Tf.point=kf}function kf(e,t){e*=U,t*=U;var n=q(t);Sf=n*q(e),Cf=n*J(e),wf=J(t),Tf.point=Af,Df(Sf,Cf,wf)}function Af(e,t){e*=U,t*=U;var n=q(t),r=n*q(e),i=n*J(e),a=J(t),o=K(ld((o=Cf*a-wf*i)*o+(o=wf*r-Sf*a)*o+(o=Sf*i-Cf*r)*o),Sf*r+Cf*i+wf*a);df+=o,X+=o*(Sf+(Sf=r)),hf+=o*(Cf+(Cf=i)),gf+=o*(wf+(wf=a)),Df(Sf,Cf,wf)}function jf(){Tf.point=Ef}function Mf(){Tf.point=Pf}function Nf(){Ff(bf,xf),Tf.point=Ef}function Pf(e,t){bf=e,xf=t,e*=U,t*=U,Tf.point=Ff;var n=q(t);Sf=n*q(e),Cf=n*J(e),wf=J(t),Df(Sf,Cf,wf)}function Ff(e,t){e*=U,t*=U;var n=q(t),r=n*q(e),i=n*J(e),a=J(t),o=Cf*a-wf*i,s=wf*r-Sf*a,c=Sf*i-Cf*r,l=ad(o,s,c),u=fd(l),d=l&&-u/l;_f.add(d*o),vf.add(d*s),yf.add(d*c),df+=u,X+=u*(Sf+(Sf=r)),hf+=u*(Cf+(Cf=i)),gf+=u*(wf+(wf=a)),Df(Sf,Cf,wf)}function If(e){uf=df=ff=pf=mf=X=hf=gf=0,_f=new Yu,vf=new Yu,yf=new Yu,yd(e,Tf);var t=+_f,n=+vf,r=+yf,i=ad(t,n,r);return i<1e-12&&(t=X,n=hf,r=gf,df<1e-6&&(t=ff,n=pf,r=mf),i=ad(t,n,r),i<1e-12)?[NaN,NaN]:[K(n,t)*nd,fd(r/i)*nd]}function Lf(e){return function(){return e}}function Rf(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return n=t.invert(n,r),n&&e.invert(n[0],n[1])}),n}function zf(e,t){return W(e)>H&&(e-=Math.round(e/td)*td),[e,t]}zf.invert=zf;function Bf(e,t,n){return(e%=td)?t||n?Rf(Hf(e),Z(t,n)):Hf(e):t||n?Z(t,n):zf}function Vf(e){return function(t,n){return t+=e,W(t)>H&&(t-=Math.round(t/td)*td),[t,n]}}function Hf(e){var t=Vf(e);return t.invert=Vf(-e),t}function Z(e,t){var n=q(e),r=J(e),i=q(t),a=J(t);function o(e,t){var o=q(t),s=q(e)*o,c=J(e)*o,l=J(t),u=l*n+s*r;return[K(c*i-u*a,s*n-l*r),fd(u*i+c*a)]}return o.invert=function(e,t){var o=q(t),s=q(e)*o,c=J(e)*o,l=J(t),u=l*i-c*a;return[K(c*i+l*a,s*n+u*r),fd(u*n-s*r)]},o}function Uf(e){e=Bf(e[0]*U,e[1]*U,e.length>2?e[2]*U:0);function t(t){return t=e(t[0]*U,t[1]*U),t[0]*=nd,t[1]*=nd,t}return t.invert=function(t){return t=e.invert(t[0]*U,t[1]*U),t[0]*=nd,t[1]*=nd,t},t}function Wf(e,t,n,r,i,a){if(n){var o=q(t),s=J(t),c=r*n;i==null?(i=t+r*td,a=t-c/2):(i=Gf(o,i),a=Gf(o,a),(r>0?i<a:i>a)&&(i+=r*td));for(var l,u=i;r>0?u>a:u<a;u-=c)l=Nd([o,-s*q(u),-s*J(u)]),e.point(l[0],l[1])}}function Gf(e,t){t=Pd(t),t[0]-=e,zd(t);var n=dd(-t[1]);return((-t[2]<0?-n:n)+td-V)%td}function Kf(){var e=Lf([0,0]),t=Lf(90),n=Lf(2),r,i,a={point:o};function o(e,t){r.push(e=i(e,t)),e[0]*=nd,e[1]*=nd}function s(){var o=e.apply(this,arguments),s=t.apply(this,arguments)*U,c=n.apply(this,arguments)*U;return r=[],i=Bf(-o[0]*U,-o[1]*U,0).invert,Wf(a,s,c,1),o={type:`Polygon`,coordinates:[r]},r=i=null,o}return s.center=function(t){return arguments.length?(e=typeof t==`function`?t:Lf([+t[0],+t[1]]),s):e},s.radius=function(e){return arguments.length?(t=typeof e==`function`?e:Lf(+e),s):t},s.precision=function(e){return arguments.length?(n=typeof e==`function`?e:Lf(+e),s):n},s}function qf(){var e=[],t;return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:Y,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Jf(e,t){return W(e[0]-t[0])<1e-6&&W(e[1]-t[1])<1e-6}function Yf(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Xf(e,t,n,r,i){var a=[],o=[],s,c;if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n=e[0],r=e[t],c;if(Jf(n,r)){if(!n[2]&&!r[2]){for(i.lineStart(),s=0;s<t;++s)i.point((n=e[s])[0],n[1]);i.lineEnd();return}r[0]+=2*V}a.push(c=new Yf(n,e,null,!0)),o.push(c.o=new Yf(n,null,c,!1)),a.push(c=new Yf(r,e,null,!1)),o.push(c.o=new Yf(r,null,c,!0))}}),a.length){for(o.sort(t),Zf(a),Zf(o),s=0,c=o.length;s<c;++s)o[s].e=n=!n;for(var l=a[0],u,d;;){for(var f=l,p=!0;f.v;)if((f=f.n)===l)return;u=f.z,i.lineStart();do{if(f.v=f.o.v=!0,f.e){if(p)for(s=0,c=u.length;s<c;++s)i.point((d=u[s])[0],d[1]);else r(f.x,f.n.x,1,i);f=f.n}else{if(p)for(u=f.p.z,s=u.length-1;s>=0;--s)i.point((d=u[s])[0],d[1]);else r(f.x,f.p.x,-1,i);f=f.p}f=f.o,u=f.z,p=!p}while(!f.v);i.lineEnd()}}}function Zf(e){if(t=e.length){for(var t,n=0,r=e[0],i;++n<t;)r.n=i=e[n],i.p=r,r=i;r.n=i=e[0],i.p=r}}function Qf(e){return W(e[0])<=H?e[0]:cd(e[0])*((W(e[0])+H)%td-H)}function $f(e,t){var n=Qf(t),r=t[1],i=J(r),a=[J(n),-q(n),0],o=0,s=0,c=new Yu;i===1?r=$u+V:i===-1&&(r=-$u-V);for(var l=0,u=e.length;l<u;++l)if(f=(d=e[l]).length)for(var d,f,p=d[f-1],m=Qf(p),h=p[1]/2+ed,g=J(h),_=q(h),v=0;v<f;++v,m=b,g=S,_=C,p=y){var y=d[v],b=Qf(y),x=y[1]/2+ed,S=J(x),C=q(x),w=b-m,T=w>=0?1:-1,E=T*w,D=E>H,O=g*S;if(c.add(K(O*T*J(E),_*C+O*q(E))),o+=D?w+T*td:w,D^m>=n^b>=n){var k=Id(Pd(p),Pd(y));zd(k);var ee=Id(a,k);zd(ee);var A=(D^w>=0?-1:1)*fd(ee[2]);(r>A||r===A&&(k[0]||k[1]))&&(s+=D^w>=0?1:-1)}}return(o<-1e-6||o<1e-6&&c<-1e-12)^s&1}function ep(e,t,n,r){return function(i){var a=t(i),o=qf(),s=t(o),c=!1,l,u,d,f={point:p,lineStart:h,lineEnd:g,polygonStart:function(){f.point=_,f.lineStart=v,f.lineEnd=y,u=[],l=[]},polygonEnd:function(){f.point=p,f.lineStart=h,f.lineEnd=g,u=Zu(u);var e=$f(l,r);u.length?(c||=(i.polygonStart(),!0),Xf(u,Q,e,n,i)):e&&(c||=(i.polygonStart(),!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),c&&=(i.polygonEnd(),!1),u=l=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function p(t,n){e(t,n)&&i.point(t,n)}function m(e,t){a.point(e,t)}function h(){f.point=m,a.lineStart()}function g(){f.point=p,a.lineEnd()}function _(e,t){d.push([e,t]),s.point(e,t)}function v(){s.lineStart(),d=[]}function y(){_(d[0][0],d[0][1]),s.lineEnd();var e=s.clean(),t=o.result(),n,r=t.length,a,f,p;if(d.pop(),l.push(d),d=null,r){if(e&1){if(f=t[0],(a=f.length-1)>0){for(c||=(i.polygonStart(),!0),i.lineStart(),n=0;n<a;++n)i.point((p=f[n])[0],p[1]);i.lineEnd()}return}r>1&&e&2&&t.push(t.pop().concat(t.shift())),u.push(t.filter(tp))}}return f}}function tp(e){return e.length>1}function Q(e,t){return((e=e.x)[0]<0?e[1]-$u-V:$u-e[1])-((t=t.x)[0]<0?t[1]-$u-V:$u-t[1])}var np=ep(function(){return!0},rp,ap,[-H,-$u]);function rp(e){var t=NaN,n=NaN,r=NaN,i;return{lineStart:function(){e.lineStart(),i=1},point:function(a,o){var s=a>0?H:-H,c=W(a-t);W(c-H)<1e-6?(e.point(t,n=(n+o)/2>0?$u:-$u),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),e.point(a,n),i=0):r!==s&&c>=H&&(W(t-r)<1e-6&&(t-=r*V),W(a-s)<1e-6&&(a-=s*V),n=ip(t,n,a,o),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),i=0),e.point(t=a,n=o),r=s},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-i}}}function ip(e,t,n,r){var i,a,o=J(e-n);return W(o)>1e-6?G((J(t)*(a=q(r))*J(n)-J(r)*(i=q(t))*J(e))/(i*a*o)):(t+r)/2}function ap(e,t,n,r){var i;if(e==null)i=n*$u,r.point(-H,i),r.point(0,i),r.point(H,i),r.point(H,0),r.point(H,-i),r.point(0,-i),r.point(-H,-i),r.point(-H,0),r.point(-H,i);else if(W(e[0]-t[0])>1e-6){var a=e[0]<t[0]?H:-H;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(t[0],t[1])}function op(e){var t=q(e),n=2*U,r=t>0,i=W(t)>V;function a(t,r,i,a){Wf(a,e,n,i,t,r)}function o(e,n){return q(e)*q(n)>t}function s(e){var t,n,a,s,u;return{lineStart:function(){s=a=!1,u=1},point:function(d,f){var p=[d,f],m,h=o(d,f),g=r?h?0:l(d,f):h?l(d+(d<0?H:-H),f):0;if(!t&&(s=a=h)&&e.lineStart(),h!==a&&(m=c(t,p),(!m||Jf(t,m)||Jf(p,m))&&(p[2]=1)),h!==a)u=0,h?(e.lineStart(),m=c(p,t),e.point(m[0],m[1])):(m=c(t,p),e.point(m[0],m[1],2),e.lineEnd()),t=m;else if(i&&t&&r^h){var _;!(g&n)&&(_=c(p,t,!0))&&(u=0,r?(e.lineStart(),e.point(_[0][0],_[0][1]),e.point(_[1][0],_[1][1]),e.lineEnd()):(e.point(_[1][0],_[1][1]),e.lineEnd(),e.lineStart(),e.point(_[0][0],_[0][1],3)))}h&&(!t||!Jf(t,p))&&e.point(p[0],p[1]),t=p,a=h,n=g},lineEnd:function(){a&&e.lineEnd(),t=null},clean:function(){return u|(s&&a)<<1}}}function c(e,n,r){var i=Pd(e),a=Pd(n),o=[1,0,0],s=Id(i,a),c=Fd(s,s),l=s[0],u=c-l*l;if(!u)return!r&&e;var d=t*c/u,f=-t*l/u,p=Id(o,s),m=Rd(o,d);Ld(m,Rd(s,f));var h=p,g=Fd(m,h),_=Fd(h,h),v=g*g-_*(Fd(m,m)-1);if(!(v<0)){var y=ld(v),b=Rd(h,(-g-y)/_);if(Ld(b,m),b=Nd(b),!r)return b;var x=e[0],S=n[0],C=e[1],w=n[1],T;S<x&&(T=x,x=S,S=T);var E=S-x,D=W(E-H)<V,O=D||E<1e-6;if(!D&&w<C&&(T=C,C=w,w=T),O?D?C+w>0^b[1]<(W(b[0]-x)<1e-6?C:w):C<=b[1]&&b[1]<=w:E>H^(x<=b[0]&&b[0]<=S)){var k=Rd(h,(-g+y)/_);return Ld(k,m),[b,Nd(k)]}}}function l(t,n){var i=r?e:H-e,a=0;return t<-i?a|=1:t>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return ep(o,s,a,r?[0,-e]:[-H,e-H])}function sp(e,t,n,r,i,a){var o=e[0],s=e[1],c=t[0],l=t[1],u=0,d=1,f=c-o,p=l-s,m=n-o;if(!(!f&&m>0)){if(m/=f,f<0){if(m<u)return;m<d&&(d=m)}else if(f>0){if(m>d)return;m>u&&(u=m)}if(m=i-o,!(!f&&m<0)){if(m/=f,f<0){if(m>d)return;m>u&&(u=m)}else if(f>0){if(m<u)return;m<d&&(d=m)}if(m=r-s,!(!p&&m>0)){if(m/=p,p<0){if(m<u)return;m<d&&(d=m)}else if(p>0){if(m>d)return;m>u&&(u=m)}if(m=a-s,!(!p&&m<0)){if(m/=p,p<0){if(m>d)return;m>u&&(u=m)}else if(p>0){if(m<u)return;m<d&&(d=m)}return u>0&&(e[0]=o+u*f,e[1]=s+u*p),d<1&&(t[0]=o+d*f,t[1]=s+d*p),!0}}}}}var cp=1e9,lp=-cp;function up(e,t,n,r){function i(i,a){return e<=i&&i<=n&&t<=a&&a<=r}function a(i,a,s,l){var u=0,d=0;if(i==null||(u=o(i,s))!==(d=o(a,s))||c(i,a)<0^s>0)do l.point(u===0||u===3?e:n,u>1?r:t);while((u=(u+s+4)%4)!==d);else l.point(a[0],a[1])}function o(r,i){return W(r[0]-e)<1e-6?i>0?0:3:W(r[0]-n)<1e-6?i>0?2:1:W(r[1]-t)<1e-6?i>0?1:0:i>0?3:2}function s(e,t){return c(e.x,t.x)}function c(e,t){var n=o(e,1),r=o(t,1);return n===r?n===0?t[1]-e[1]:n===1?e[0]-t[0]:n===2?e[1]-t[1]:t[0]-e[0]:n-r}return function(o){var c=o,l=qf(),u,d,f,p,m,h,g,_,v,y,b,x={point:S,lineStart:E,lineEnd:D,polygonStart:w,polygonEnd:T};function S(e,t){i(e,t)&&c.point(e,t)}function C(){for(var t=0,n=0,i=d.length;n<i;++n)for(var a=d[n],o=1,s=a.length,c=a[0],l,u,f=c[0],p=c[1];o<s;++o)l=f,u=p,c=a[o],f=c[0],p=c[1],u<=r?p>r&&(f-l)*(r-u)>(p-u)*(e-l)&&++t:p<=r&&(f-l)*(r-u)<(p-u)*(e-l)&&--t;return t}function w(){c=l,u=[],d=[],b=!0}function T(){var e=C(),t=b&&e,n=(u=Zu(u)).length;(t||n)&&(o.polygonStart(),t&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),n&&Xf(u,s,e,a,o),o.polygonEnd()),c=o,u=d=f=null}function E(){x.point=O,d&&d.push(f=[]),y=!0,v=!1,g=_=NaN}function D(){u&&(O(p,m),h&&v&&l.rejoin(),u.push(l.result())),x.point=S,v&&c.lineEnd()}function O(a,o){var s=i(a,o);if(d&&f.push([a,o]),y)p=a,m=o,h=s,y=!1,s&&(c.lineStart(),c.point(a,o));else if(s&&v)c.point(a,o);else{var l=[g=Math.max(lp,Math.min(cp,g)),_=Math.max(lp,Math.min(cp,_))],u=[a=Math.max(lp,Math.min(cp,a)),o=Math.max(lp,Math.min(cp,o))];sp(l,u,e,t,n,r)?(v||(c.lineStart(),c.point(l[0],l[1])),c.point(u[0],u[1]),s||c.lineEnd(),b=!1):s&&(c.lineStart(),c.point(a,o),b=!1)}g=a,_=o,v=s}return x}}function dp(){var e=0,t=0,n=960,r=500,i,a,o;return o={stream:function(o){return i&&a===o?i:i=up(e,t,n,r)(a=o)},extent:function(s){return arguments.length?(e=+s[0][0],t=+s[0][1],n=+s[1][0],r=+s[1][1],i=a=null,o):[[e,t],[n,r]]}}}var fp,pp,mp,hp,gp={sphere:Y,point:Y,lineStart:_p,lineEnd:Y,polygonStart:Y,polygonEnd:Y};function _p(){gp.point=yp,gp.lineEnd=vp}function vp(){gp.point=gp.lineEnd=Y}function yp(e,t){e*=U,t*=U,pp=e,mp=J(t),hp=q(t),gp.point=bp}function bp(e,t){e*=U,t*=U;var n=J(t),r=q(t),i=W(e-pp),a=q(i),o=r*J(i),s=hp*n-mp*r*a,c=mp*n+hp*r*a;fp.add(K(ld(o*o+s*s),c)),pp=e,mp=n,hp=r}function xp(e){return fp=new Yu,yd(e,gp),+fp}var Sp=[null,null],Cp={type:`LineString`,coordinates:Sp};function wp(e,t){return Sp[0]=e,Sp[1]=t,xp(Cp)}var Tp={Feature:function(e,t){return Dp(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)if(Dp(n[r].geometry,t))return!0;return!1}},Ep={Sphere:function(){return!0},Point:function(e,t){return Op(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(Op(n[r],t))return!0;return!1},LineString:function(e,t){return kp(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(kp(n[r],t))return!0;return!1},Polygon:function(e,t){return Ap(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(Ap(n[r],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)if(Dp(n[r],t))return!0;return!1}};function Dp(e,t){return e&&Ep.hasOwnProperty(e.type)?Ep[e.type](e,t):!1}function Op(e,t){return wp(e,t)===0}function kp(e,t){for(var n,r,i,a=0,o=e.length;a<o;a++){if(r=wp(e[a],t),r===0||a>0&&(i=wp(e[a],e[a-1]),i>0&&n<=i&&r<=i&&(n+r-i)*(1-((n-r)/i)**2)<1e-12*i))return!0;n=r}return!1}function Ap(e,t){return!!$f(e.map(jp),Mp(t))}function jp(e){return e=e.map(Mp),e.pop(),e}function Mp(e){return[e[0]*U,e[1]*U]}function Np(e,t){return(e&&Tp.hasOwnProperty(e.type)?Tp[e.type]:Dp)(e,t)}function Pp(e,t,n){var r=Qu(e,t-V,n).concat(t);return function(e){return r.map(function(t){return[e,t]})}}function Fp(e,t,n){var r=Qu(e,t-V,n).concat(t);return function(e){return r.map(function(t){return[t,e]})}}function Ip(){var e,t,n,r,i,a,o,s,c=10,l=c,u=90,d=360,f,p,m,h,g=2.5;function _(){return{type:`MultiLineString`,coordinates:v()}}function v(){return Qu(rd(r/u)*u,n,u).map(m).concat(Qu(rd(s/d)*d,o,d).map(h)).concat(Qu(rd(t/c)*c,e,c).filter(function(e){return W(e%u)>V}).map(f)).concat(Qu(rd(a/l)*l,i,l).filter(function(e){return W(e%d)>V}).map(p))}return _.lines=function(){return v().map(function(e){return{type:`LineString`,coordinates:e}})},_.outline=function(){return{type:`Polygon`,coordinates:[m(r).concat(h(o).slice(1),m(n).reverse().slice(1),h(s).reverse().slice(1))]}},_.extent=function(e){return arguments.length?_.extentMajor(e).extentMinor(e):_.extentMinor()},_.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],o=+e[1][1],r>n&&(e=r,r=n,n=e),s>o&&(e=s,s=o,o=e),_.precision(g)):[[r,s],[n,o]]},_.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],a=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),a>i&&(n=a,a=i,i=n),_.precision(g)):[[t,a],[e,i]]},_.step=function(e){return arguments.length?_.stepMajor(e).stepMinor(e):_.stepMinor()},_.stepMajor=function(e){return arguments.length?(u=+e[0],d=+e[1],_):[u,d]},_.stepMinor=function(e){return arguments.length?(c=+e[0],l=+e[1],_):[c,l]},_.precision=function(c){return arguments.length?(g=+c,f=Pp(a,i,90),p=Fp(t,e,g),m=Pp(s,o,90),h=Fp(r,n,g),_):g},_.extentMajor([[-180,-90+V],[180,90-V]]).extentMinor([[-180,-80-V],[180,80+V]])}function Lp(){return Ip()()}function Rp(e,t){var n=e[0]*U,r=e[1]*U,i=t[0]*U,a=t[1]*U,o=q(r),s=J(r),c=q(a),l=J(a),u=o*q(n),d=o*J(n),f=c*q(i),p=c*J(i),m=2*fd(ld(pd(a-r)+o*c*pd(i-n))),h=J(m),g=m?function(e){var t=J(e*=m)/h,n=J(m-e)/h,r=n*u+t*f,i=n*d+t*p,a=n*s+t*l;return[K(i,r)*nd,K(a,ld(r*r+i*i))*nd]}:function(){return[n*nd,r*nd]};return g.distance=m,g}var zp=e=>e,Bp=new Yu,Vp=new Yu,Hp,Up,Wp,Gp,Kp={point:Y,lineStart:Y,lineEnd:Y,polygonStart:function(){Kp.lineStart=qp,Kp.lineEnd=Xp},polygonEnd:function(){Kp.lineStart=Kp.lineEnd=Kp.point=Y,Bp.add(W(Vp)),Vp=new Yu},result:function(){var e=Bp/2;return Bp=new Yu,e}};function qp(){Kp.point=Jp}function Jp(e,t){Kp.point=Yp,Hp=Wp=e,Up=Gp=t}function Yp(e,t){Vp.add(Gp*e-Wp*t),Wp=e,Gp=t}function Xp(){Yp(Hp,Up)}var Zp=Kp,Qp=1/0,$p=Qp,em=-Qp,tm=em,nm={point:rm,lineStart:Y,lineEnd:Y,polygonStart:Y,polygonEnd:Y,result:function(){var e=[[Qp,$p],[em,tm]];return em=tm=-($p=Qp=1/0),e}};function rm(e,t){e<Qp&&(Qp=e),e>em&&(em=e),t<$p&&($p=t),t>tm&&(tm=t)}var im=nm,am=0,om=0,sm=0,cm=0,lm=0,um=0,dm=0,fm=0,pm=0,mm,hm,gm,_m,vm={point:ym,lineStart:bm,lineEnd:Cm,polygonStart:function(){vm.lineStart=wm,vm.lineEnd=Tm},polygonEnd:function(){vm.point=ym,vm.lineStart=bm,vm.lineEnd=Cm},result:function(){var e=pm?[dm/pm,fm/pm]:um?[cm/um,lm/um]:sm?[am/sm,om/sm]:[NaN,NaN];return am=om=sm=cm=lm=um=dm=fm=pm=0,e}};function ym(e,t){am+=e,om+=t,++sm}function bm(){vm.point=xm}function xm(e,t){vm.point=Sm,ym(gm=e,_m=t)}function Sm(e,t){var n=e-gm,r=t-_m,i=ld(n*n+r*r);cm+=i*(gm+e)/2,lm+=i*(_m+t)/2,um+=i,ym(gm=e,_m=t)}function Cm(){vm.point=ym}function wm(){vm.point=Em}function Tm(){Dm(mm,hm)}function Em(e,t){vm.point=Dm,ym(mm=gm=e,hm=_m=t)}function Dm(e,t){var n=e-gm,r=t-_m,i=ld(n*n+r*r);cm+=i*(gm+e)/2,lm+=i*(_m+t)/2,um+=i,i=_m*e-gm*t,dm+=i*(gm+e),fm+=i*(_m+t),pm+=i*3,ym(gm=e,_m=t)}var Om=vm;function km(e){this._context=e}km.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,td);break}},result:Y};var Am=new Yu,jm,Mm,Nm,Pm,Fm,Im={point:Y,lineStart:function(){Im.point=Lm},lineEnd:function(){jm&&Rm(Mm,Nm),Im.point=Y},polygonStart:function(){jm=!0},polygonEnd:function(){jm=null},result:function(){var e=+Am;return Am=new Yu,e}};function Lm(e,t){Im.point=Rm,Mm=Pm=e,Nm=Fm=t}function Rm(e,t){Pm-=e,Fm-=t,Am.add(ld(Pm*Pm+Fm*Fm)),Pm=e,Fm=t}var zm=Im,Bm,Vm,Hm,Um,Wm=class{constructor(e){this._append=e==null?Gm:Km(e),this._radius=4.5,this._=``}pointRadius(e){return this._radius=+e,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+=`Z`),this._point=NaN}point(e,t){switch(this._point){case 0:this._append`M${e},${t}`,this._point=1;break;case 1:this._append`L${e},${t}`;break;default:if(this._append`M${e},${t}`,this._radius!==Hm||this._append!==Vm){let e=this._radius,t=this._;this._=``,this._append`m0,${e}a${e},${e} 0 1,1 0,${-2*e}a${e},${e} 0 1,1 0,${2*e}z`,Hm=e,Vm=this._append,Um=this._,this._=t}this._+=Um;break}}result(){let e=this._;return this._=``,e.length?e:null}};function Gm(e){let t=1;this._+=e[0];for(let n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Km(e){let t=Math.floor(e);if(!(t>=0))throw RangeError(`invalid digits: ${e}`);if(t>15)return Gm;if(t!==Bm){let e=10**t;Bm=t,Vm=function(t){let n=1;this._+=t[0];for(let r=t.length;n<r;++n)this._+=Math.round(arguments[n]*e)/e+t[n]}}return Vm}function qm(e,t){let n=3,r=4.5,i,a;function o(e){return e&&(typeof r==`function`&&a.pointRadius(+r.apply(this,arguments)),yd(e,i(a))),a.result()}return o.area=function(e){return yd(e,i(Zp)),Zp.result()},o.measure=function(e){return yd(e,i(zm)),zm.result()},o.bounds=function(e){return yd(e,i(im)),im.result()},o.centroid=function(e){return yd(e,i(Om)),Om.result()},o.projection=function(t){return arguments.length?(i=t==null?(e=null,zp):(e=t).stream,o):e},o.context=function(e){return arguments.length?(a=e==null?(t=null,new Wm(n)):new km(t=e),typeof r!=`function`&&a.pointRadius(r),o):t},o.pointRadius=function(e){return arguments.length?(r=typeof e==`function`?e:(a.pointRadius(+e),+e),o):r},o.digits=function(e){if(!arguments.length)return n;if(e==null)n=null;else{let t=Math.floor(e);if(!(t>=0))throw RangeError(`invalid digits: ${e}`);n=t}return t===null&&(a=new Wm(n)),o},o.projection(e).digits(n).context(t)}function Jm(e){return{stream:Ym(e)}}function Ym(e){return function(t){var n=new Xm;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Xm(){}Xm.prototype={constructor:Xm,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Zm(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),yd(n,e.stream(im)),t(im.result()),r!=null&&e.clipExtent(r),e}function Qm(e,t,n){return Zm(e,function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],a=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+t[0][0]+(r-a*(n[1][0]+n[0][0]))/2,s=+t[0][1]+(i-a*(n[1][1]+n[0][1]))/2;e.scale(150*a).translate([o,s])},n)}function $m(e,t,n){return Qm(e,[[0,0],t],n)}function eh(e,t,n){return Zm(e,function(n){var r=+t,i=r/(n[1][0]-n[0][0]),a=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];e.scale(150*i).translate([a,o])},n)}function th(e,t,n){return Zm(e,function(n){var r=+t,i=r/(n[1][1]-n[0][1]),a=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([a,o])},n)}var nh=16,rh=q(30*U);function ih(e,t){return+t?oh(e,t):ah(e)}function ah(e){return Ym({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function oh(e,t){function n(r,i,a,o,s,c,l,u,d,f,p,m,h,g){var _=l-r,v=u-i,y=_*_+v*v;if(y>4*t&&h--){var b=o+f,x=s+p,S=c+m,C=ld(b*b+x*x+S*S),w=fd(S/=C),T=W(W(S)-1)<1e-6||W(a-d)<1e-6?(a+d)/2:K(x,b),E=e(T,w),D=E[0],O=E[1],k=D-r,ee=O-i,A=v*k-_*ee;(A*A/y>t||W((_*k+v*ee)/y-.5)>.3||o*f+s*p+c*m<rh)&&(n(r,i,a,o,s,c,D,O,T,b/=C,x/=C,S,h,g),g.point(D,O),n(D,O,T,b,x,S,l,u,d,f,p,m,h,g))}}return function(t){var r,i,a,o,s,c,l,u,d,f,p,m,h={point:g,lineStart:_,lineEnd:y,polygonStart:function(){t.polygonStart(),h.lineStart=b},polygonEnd:function(){t.polygonEnd(),h.lineStart=_}};function g(n,r){n=e(n,r),t.point(n[0],n[1])}function _(){u=NaN,h.point=v,t.lineStart()}function v(r,i){var a=Pd([r,i]),o=e(r,i);n(u,d,l,f,p,m,u=o[0],d=o[1],l=r,f=a[0],p=a[1],m=a[2],nh,t),t.point(u,d)}function y(){h.point=g,t.lineEnd()}function b(){_(),h.point=x,h.lineEnd=S}function x(e,t){v(r=e,t),i=u,a=d,o=f,s=p,c=m,h.point=v}function S(){n(u,d,l,f,p,m,i,a,r,o,s,c,nh,t),h.lineEnd=y,y()}return h}}var sh=Ym({point:function(e,t){this.stream.point(e*U,t*U)}});function ch(e){return Ym({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function lh(e,t,n,r,i){function a(a,o){return a*=r,o*=i,[t+e*a,n-e*o]}return a.invert=function(a,o){return[(a-t)/e*r,(n-o)/e*i]},a}function uh(e,t,n,r,i,a){if(!a)return lh(e,t,n,r,i);var o=q(a),s=J(a),c=o*e,l=s*e,u=o/e,d=s/e,f=(s*n-o*t)/e,p=(s*t+o*n)/e;function m(e,a){return e*=r,a*=i,[c*e-l*a+t,n-l*e-c*a]}return m.invert=function(e,t){return[r*(u*e-d*t+f),i*(p-d*e-u*t)]},m}function dh(e){return fh(function(){return e})()}function fh(e){var t,n=150,r=480,i=250,a=0,o=0,s=0,c=0,l=0,u,d=0,f=1,p=1,m=null,h=np,g=null,_,v,y,b=zp,x=.5,S,C,w,T,E;function D(e){return w(e[0]*U,e[1]*U)}function O(e){return e=w.invert(e[0],e[1]),e&&[e[0]*nd,e[1]*nd]}D.stream=function(e){return T&&E===e?T:T=sh(ch(u)(h(S(b(E=e)))))},D.preclip=function(e){return arguments.length?(h=e,m=void 0,ee()):h},D.postclip=function(e){return arguments.length?(b=e,g=_=v=y=null,ee()):b},D.clipAngle=function(e){return arguments.length?(h=+e?op(m=e*U):(m=null,np),ee()):m*nd},D.clipExtent=function(e){return arguments.length?(b=e==null?(g=_=v=y=null,zp):up(g=+e[0][0],_=+e[0][1],v=+e[1][0],y=+e[1][1]),ee()):g==null?null:[[g,_],[v,y]]},D.scale=function(e){return arguments.length?(n=+e,k()):n},D.translate=function(e){return arguments.length?(r=+e[0],i=+e[1],k()):[r,i]},D.center=function(e){return arguments.length?(a=e[0]%360*U,o=e[1]%360*U,k()):[a*nd,o*nd]},D.rotate=function(e){return arguments.length?(s=e[0]%360*U,c=e[1]%360*U,l=e.length>2?e[2]%360*U:0,k()):[s*nd,c*nd,l*nd]},D.angle=function(e){return arguments.length?(d=e%360*U,k()):d*nd},D.reflectX=function(e){return arguments.length?(f=e?-1:1,k()):f<0},D.reflectY=function(e){return arguments.length?(p=e?-1:1,k()):p<0},D.precision=function(e){return arguments.length?(S=ih(C,x=e*e),ee()):ld(x)},D.fitExtent=function(e,t){return Qm(D,e,t)},D.fitSize=function(e,t){return $m(D,e,t)},D.fitWidth=function(e,t){return eh(D,e,t)},D.fitHeight=function(e,t){return th(D,e,t)};function k(){var e=uh(n,0,0,f,p,d).apply(null,t(a,o)),m=uh(n,r-e[0],i-e[1],f,p,d);return u=Bf(s,c,l),C=Rf(t,m),w=Rf(u,C),S=ih(C,x),ee()}function ee(){return T=E=null,D}return function(){return t=e.apply(this,arguments),D.invert=t.invert&&O,k()}}function ph(e){var t=0,n=H/3,r=fh(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*U,n=e[1]*U):[t*nd,n*nd]},i}function mh(e){var t=q(e);function n(e,n){return[e*t,J(n)/t]}return n.invert=function(e,n){return[e/t,fd(n*t)]},n}function hh(e,t){var n=J(e),r=(n+J(t))/2;if(W(r)<1e-6)return mh(e);var i=1+n*(2*r-n),a=ld(i)/r;function o(e,t){var n=ld(i-2*r*J(t))/r;return[n*J(e*=r),a-n*q(e)]}return o.invert=function(e,t){var n=a-t,o=K(e,W(n))*cd(n);return n*r<0&&(o-=H*cd(e)*cd(n)),[o/r,fd((i-(e*e+n*n)*r*r)/(2*r))]},o}function gh(){return ph(hh).scale(155.424).center([0,33.6442])}function _h(){return gh().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function vh(e){var t=e.length;return{point:function(n,r){for(var i=-1;++i<t;)e[i].point(n,r)},sphere:function(){for(var n=-1;++n<t;)e[n].sphere()},lineStart:function(){for(var n=-1;++n<t;)e[n].lineStart()},lineEnd:function(){for(var n=-1;++n<t;)e[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<t;)e[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<t;)e[n].polygonEnd()}}}function yh(){var e,t,n=_h(),r,i=gh().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a,o=gh().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s,c,l={point:function(e,t){c=[e,t]}};function u(e){var t=e[0],n=e[1];return c=null,(r.point(t,n),c)||(a.point(t,n),c)||(s.point(t,n),c)}u.invert=function(e){var t=n.scale(),r=n.translate(),a=(e[0]-r[0])/t,s=(e[1]-r[1])/t;return(s>=.12&&s<.234&&a>=-.425&&a<-.214?i:s>=.166&&s<.234&&a>=-.214&&a<-.115?o:n).invert(e)},u.stream=function(r){return e&&t===r?e:e=vh([n.stream(t=r),i.stream(r),o.stream(r)])},u.precision=function(e){return arguments.length?(n.precision(e),i.precision(e),o.precision(e),d()):n.precision()},u.scale=function(e){return arguments.length?(n.scale(e),i.scale(e*.35),o.scale(e),u.translate(n.translate())):n.scale()},u.translate=function(e){if(!arguments.length)return n.translate();var t=n.scale(),c=+e[0],u=+e[1];return r=n.translate(e).clipExtent([[c-.455*t,u-.238*t],[c+.455*t,u+.238*t]]).stream(l),a=i.translate([c-.307*t,u+.201*t]).clipExtent([[c-.425*t+V,u+.12*t+V],[c-.214*t-V,u+.234*t-V]]).stream(l),s=o.translate([c-.205*t,u+.212*t]).clipExtent([[c-.214*t+V,u+.166*t+V],[c-.115*t-V,u+.234*t-V]]).stream(l),d()},u.fitExtent=function(e,t){return Qm(u,e,t)},u.fitSize=function(e,t){return $m(u,e,t)},u.fitWidth=function(e,t){return eh(u,e,t)},u.fitHeight=function(e,t){return th(u,e,t)};function d(){return e=t=null,u}return u.scale(1070)}function bh(e){return function(t,n){var r=q(t),i=q(n),a=e(r*i);return a===1/0?[2,0]:[a*i*J(t),a*J(n)]}}function xh(e){return function(t,n){var r=ld(t*t+n*n),i=e(r),a=J(i),o=q(i);return[K(t*a,r*o),fd(r&&n*a/r)]}}var Sh=bh(function(e){return ld(2/(1+e))});Sh.invert=xh(function(e){return 2*fd(e/2)});function Ch(){return dh(Sh).scale(124.75).clipAngle(179.999)}var wh=bh(function(e){return(e=dd(e))&&e/J(e)});wh.invert=xh(function(e){return e});function Th(){return dh(wh).scale(79.4188).clipAngle(179.999)}function Eh(e,t){return[e,od(ud(($u+t)/2))]}Eh.invert=function(e,t){return[e,2*G(id(t))-$u]};function Dh(){return Oh(Eh).scale(961/td)}function Oh(e){var t=dh(e),n=t.center,r=t.scale,i=t.translate,a=t.clipExtent,o=null,s,c,l;t.scale=function(e){return arguments.length?(r(e),u()):r()},t.translate=function(e){return arguments.length?(i(e),u()):i()},t.center=function(e){return arguments.length?(n(e),u()):n()},t.clipExtent=function(e){return arguments.length?(e==null?o=s=c=l=null:(o=+e[0][0],s=+e[0][1],c=+e[1][0],l=+e[1][1]),u()):o==null?null:[[o,s],[c,l]]};function u(){var n=H*r(),i=t(Uf(t.rotate()).invert([0,0]));return a(o==null?[[i[0]-n,i[1]-n],[i[0]+n,i[1]+n]]:e===Eh?[[Math.max(i[0]-n,o),s],[Math.min(i[0]+n,c),l]]:[[o,Math.max(i[1]-n,s)],[c,Math.min(i[1]+n,l)]])}return u()}function kh(e){return ud(($u+e)/2)}function Ah(e,t){var n=q(e),r=e===t?J(e):od(n/q(t))/od(kh(t)/kh(e)),i=n*sd(kh(e),r)/r;if(!r)return Eh;function a(e,t){i>0?t<-$u+1e-6&&(t=-$u+V):t>$u-1e-6&&(t=$u-V);var n=i/sd(kh(t),r);return[n*J(r*e),i-n*q(r*e)]}return a.invert=function(e,t){var n=i-t,a=cd(r)*ld(e*e+n*n),o=K(e,W(n))*cd(n);return n*r<0&&(o-=H*cd(e)*cd(n)),[o/r,2*G(sd(i/a,1/r))-$u]},a}function jh(){return ph(Ah).scale(109.5).parallels([30,30])}function Mh(e,t){return[e,t]}Mh.invert=Mh;function Nh(){return dh(Mh).scale(152.63)}function Ph(e,t){var n=q(e),r=e===t?J(e):(n-q(t))/(t-e),i=n/r+e;if(W(r)<1e-6)return Mh;function a(e,t){var n=i-t,a=r*e;return[n*J(a),i-n*q(a)]}return a.invert=function(e,t){var n=i-t,a=K(e,W(n))*cd(n);return n*r<0&&(a-=H*cd(e)*cd(n)),[a/r,i-cd(r)*ld(e*e+n*n)]},a}function Fh(){return ph(Ph).scale(131.154).center([0,13.9389])}var Ih=1.340264,Lh=-.081106,Rh=893e-6,zh=.003796,Bh=ld(3)/2,Vh=12;function Hh(e,t){var n=fd(Bh*J(t)),r=n*n,i=r*r*r;return[e*q(n)/(Bh*(Ih+3*Lh*r+i*(7*Rh+9*zh*r))),n*(Ih+Lh*r+i*(Rh+zh*r))]}Hh.invert=function(e,t){for(var n=t,r=n*n,i=r*r*r,a=0,o,s,c;a<Vh&&(s=n*(Ih+Lh*r+i*(Rh+zh*r))-t,c=Ih+3*Lh*r+i*(7*Rh+9*zh*r),n-=o=s/c,r=n*n,i=r*r*r,!(W(o)<1e-12));++a);return[Bh*e*(Ih+3*Lh*r+i*(7*Rh+9*zh*r))/q(n),fd(J(n)/Bh)]};function Uh(){return dh(Hh).scale(177.158)}function Wh(e,t){var n=q(t),r=q(e)*n;return[n*J(e)/r,J(t)/r]}Wh.invert=xh(G);function Gh(){return dh(Wh).scale(144.049).clipAngle(60)}function Kh(){var e=1,t=0,n=0,r=1,i=1,a=0,o,s,c=null,l,u,d,f=1,p=1,m=Ym({point:function(e,t){var n=y([e,t]);this.stream.point(n[0],n[1])}}),h=zp,g,_;function v(){return f=e*r,p=e*i,g=_=null,y}function y(e){var r=e[0]*f,i=e[1]*p;if(a){var c=i*o-r*s;r=r*o+i*s,i=c}return[r+t,i+n]}return y.invert=function(e){var r=e[0]-t,i=e[1]-n;if(a){var c=i*o+r*s;r=r*o-i*s,i=c}return[r/f,i/p]},y.stream=function(e){return g&&_===e?g:g=m(h(_=e))},y.postclip=function(e){return arguments.length?(h=e,c=l=u=d=null,v()):h},y.clipExtent=function(e){return arguments.length?(h=e==null?(c=l=u=d=null,zp):up(c=+e[0][0],l=+e[0][1],u=+e[1][0],d=+e[1][1]),v()):c==null?null:[[c,l],[u,d]]},y.scale=function(t){return arguments.length?(e=+t,v()):e},y.translate=function(e){return arguments.length?(t=+e[0],n=+e[1],v()):[t,n]},y.angle=function(e){return arguments.length?(a=e%360*U,s=J(a),o=q(a),v()):a*nd},y.reflectX=function(e){return arguments.length?(r=e?-1:1,v()):r<0},y.reflectY=function(e){return arguments.length?(i=e?-1:1,v()):i<0},y.fitExtent=function(e,t){return Qm(y,e,t)},y.fitSize=function(e,t){return $m(y,e,t)},y.fitWidth=function(e,t){return eh(y,e,t)},y.fitHeight=function(e,t){return th(y,e,t)},y}function qh(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(-.013791+r*(.003971*n-.001529*r))),t*(1.007226+n*(.015085+r*(-.044475+.028874*n-.005916*r)))]}qh.invert=function(e,t){var n=t,r=25,i;do{var a=n*n,o=a*a;n-=i=(n*(1.007226+a*(.015085+o*(-.044475+.028874*a-.005916*o)))-t)/(1.007226+a*(.015085*3+o*(-.044475*7+.028874*9*a-.005916*11*o)))}while(W(i)>1e-6&&--r>0);return[e/(.8707+(a=n*n)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),n]};function Jh(){return dh(qh).scale(175.295)}function Yh(e,t){return[q(t)*J(e),J(t)]}Yh.invert=xh(fd);function Xh(){return dh(Yh).scale(249.5).clipAngle(90+V)}function Zh(e,t){var n=q(t),r=1+q(e)*n;return[n*J(e)/r,J(t)/r]}Zh.invert=xh(function(e){return 2*G(e)});function Qh(){return dh(Zh).scale(250).clipAngle(142)}function $h(e,t){return[od(ud(($u+t)/2)),-e]}$h.invert=function(e,t){return[-t,2*G(id(e))-$u]};function eg(){var e=Oh($h),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):(e=n(),[e[0],e[1],e[2]-90])},n([0,0,90]).scale(159.155)}var tg=t({geoAlbers:()=>_h,geoAlbersUsa:()=>yh,geoArea:()=>Md,geoAzimuthalEqualArea:()=>Ch,geoAzimuthalEqualAreaRaw:()=>Sh,geoAzimuthalEquidistant:()=>Th,geoAzimuthalEquidistantRaw:()=>wh,geoBounds:()=>lf,geoCentroid:()=>If,geoCircle:()=>Kf,geoClipAntimeridian:()=>np,geoClipCircle:()=>op,geoClipExtent:()=>dp,geoClipRectangle:()=>up,geoConicConformal:()=>jh,geoConicConformalRaw:()=>Ah,geoConicEqualArea:()=>gh,geoConicEqualAreaRaw:()=>hh,geoConicEquidistant:()=>Fh,geoConicEquidistantRaw:()=>Ph,geoContains:()=>Np,geoDistance:()=>wp,geoEqualEarth:()=>Uh,geoEqualEarthRaw:()=>Hh,geoEquirectangular:()=>Nh,geoEquirectangularRaw:()=>Mh,geoGnomonic:()=>Gh,geoGnomonicRaw:()=>Wh,geoGraticule:()=>Ip,geoGraticule10:()=>Lp,geoIdentity:()=>Kh,geoInterpolate:()=>Rp,geoLength:()=>xp,geoMercator:()=>Dh,geoMercatorRaw:()=>Eh,geoNaturalEarth1:()=>Jh,geoNaturalEarth1Raw:()=>qh,geoOrthographic:()=>Xh,geoOrthographicRaw:()=>Yh,geoPath:()=>qm,geoProjection:()=>dh,geoProjectionMutator:()=>fh,geoRotation:()=>Uf,geoStereographic:()=>Qh,geoStereographicRaw:()=>Zh,geoStream:()=>yd,geoTransform:()=>Jm,geoTransverseMercator:()=>eg,geoTransverseMercatorRaw:()=>$h},1),ng=(e,t)=>[e,t],rg=(e,t)=>[e,t],ig=(e,t)=>[e,t],ag=(e,t,n)=>[e,t,n],og=(e,t)=>[e,t];function sg(e,t,n,r){let i=Error(t);return i.type=e,n&&(i.geography=n),r&&(i.details=r),i}function $(e,t,n,r){let i=Error(t);return i.name=`GeographyError`,i.type=e,i.timestamp=new Date().toISOString(),n&&(i.geography=n),r&&(i.cause=r,r.stack&&(i.stack=r.stack),i.details={originalMessage:r.message,originalName:r.name}),i}function cg(e){if(!(e instanceof Error))return!1;let t=e;return`type`in t&&typeof t.type==`string`&&[`GEOGRAPHY_LOAD_ERROR`,`GEOGRAPHY_PARSE_ERROR`,`PROJECTION_ERROR`,`VALIDATION_ERROR`,`SECURITY_ERROR`,`CONFIGURATION_ERROR`,`CONTEXT_ERROR`].includes(t.type)}function lg(e,t=!1){if(typeof e!=`string`)throw $(`VALIDATION_ERROR`,`Expected string, got `+typeof e);if(e.length>_g.maxStringLength)throw $(`VALIDATION_ERROR`,`String too long: ${e.length} characters (max: ${_g.maxStringLength})`);let n=e;return t||(n=n.replace(/<[^>]*>/g,``).replace(/&[^;]+;/g,``).replace(/javascript:/gi,``).replace(/data:/gi,``).replace(/vbscript:/gi,``)),n=n.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/g,``),n}function ug(e){if(typeof e!=`string`)throw $(`VALIDATION_ERROR`,`Expected string, got `+typeof e);let t=e.trim();if(!t)throw $(`VALIDATION_ERROR`,`URL must be a non-empty string`);if(t.length>_g.maxStringLength)throw $(`VALIDATION_ERROR`,`String too long: ${t.length} characters (max: ${_g.maxStringLength})`);if(/[\x00-\x1F\x7F]/.test(t))throw $(`VALIDATION_ERROR`,`URL contains invalid control characters`);try{let e=new URL(t);if([`javascript:`,`data:`,`vbscript:`,`file:`].some(t=>e.protocol.toLowerCase().startsWith(t)))throw $(`SECURITY_ERROR`,`Dangerous protocol detected: ${e.protocol}`);if(e.hostname.includes(`..`)||e.hostname.includes(`%`))throw $(`SECURITY_ERROR`,`Invalid hostname: ${e.hostname}`);return e.toString()}catch(e){throw e instanceof TypeError?$(`VALIDATION_ERROR`,`Invalid URL format: ${t}`):e}}function dg(e,t=-1/0,n=1/0){if(typeof e!=`number`)throw $(`VALIDATION_ERROR`,`Expected number, got `+typeof e);if(!Number.isFinite(e))throw $(`VALIDATION_ERROR`,`Number must be finite`);if(e<t||e>n)throw $(`VALIDATION_ERROR`,`Number ${e} is outside allowed range [${t}, ${n}]`);return e}function fg(e){if(!Array.isArray(e)||e.length!==2)throw $(`VALIDATION_ERROR`,`Coordinates must be an array of exactly 2 numbers`);let[t,n]=e;return[dg(t,-180,180),dg(n,-90,90)]}function pg(e,t){if(!Array.isArray(e))throw $(`VALIDATION_ERROR`,`Expected array, got `+typeof e);if(e.length>_g.maxArrayLength)throw $(`VALIDATION_ERROR`,`Array too long: ${e.length} items (max: ${_g.maxArrayLength})`);return t?e.map((e,n)=>{try{return t(e,n)}catch(e){throw $(`VALIDATION_ERROR`,`Invalid array item at index ${n}: ${e instanceof Error?e.message:`Unknown error`}`)}}):e}function mg(e,t=0){if(typeof e!=`object`||!e||Array.isArray(e))throw $(`VALIDATION_ERROR`,`Expected object, got `+typeof e);if(t>_g.maxObjectDepth)throw $(`VALIDATION_ERROR`,`Object nesting too deep: ${t} levels (max: ${_g.maxObjectDepth})`);let n=e,r=Object.create(null);for(let[e,i]of Object.entries(n)){let n=lg(e);vg.has(n)||(typeof i!=`object`||!i||Array.isArray(i)?r[n]=i:r[n]=mg(i,t+1))}return r}function hg(e){let t=mg(e),n={};if(Object.hasOwn(t,`center`)&&t.center!==void 0&&(n.center=fg(t.center)),Object.hasOwn(t,`rotate`)&&t.rotate!==void 0&&Array.isArray(t.rotate)){let e=pg(t.rotate,e=>dg(e,-360,360)),[r,i,a=0]=e;e.length!==2&&e.length!==3||r===void 0||i===void 0||(n.rotate=ag(r,i,a))}if(Object.hasOwn(t,`scale`)&&t.scale!==void 0){let e=dg(t.scale);if(e<=0)throw $(`VALIDATION_ERROR`,`Projection scale must be greater than 0, got ${e}`);n.scale=e}if(Object.hasOwn(t,`parallels`)&&t.parallels!==void 0&&Array.isArray(t.parallels)){let e=pg(t.parallels,e=>dg(e,-90,90));e.length===2&&e[0]!==void 0&&e[1]!==void 0&&(n.parallels=og(e[0],e[1]))}return n}var gg={strictMode:!0,allowUnsafeContent:!1,maxStringLength:1e4,maxArrayLength:1e3,maxObjectDepth:10},_g=function(){let e={...gg};return typeof process<`u`&&e.allowUnsafeContent&&(e.allowUnsafeContent=!1),Object.freeze(e)}(),vg=new Set([`__proto__`,`constructor`,`prototype`]),{geoPath:yg,...bg}=tg,xg=(0,j.createContext)(void 0),Sg=Object.freeze({}),Cg=({width:e,height:t,projection:n,projectionConfig:r=Sg,children:i})=>{let a=typeof n==`function`?Sg:hg(r),[o,s]=a.center??[],[c,l,u]=a.rotate??[],[d,f]=a.parallels??[],{scale:p}=a,m=(0,j.useMemo)(()=>{let r={};return o!==void 0&&s!==void 0&&(r.center=ng(o,s)),c!==void 0&&l!==void 0&&u!==void 0&&(r.rotate=ag(c,l,u)),d!==void 0&&f!==void 0&&(r.parallels=og(d,f)),p!==void 0&&(r.scale=p),(({projectionConfig:e=Sg,projection:t=`geoEqualEarth`,width:n=800,height:r=600})=>{if(typeof t==`function`)return t;let i=t.trim();if(!i)throw sg(`PROJECTION_ERROR`,`Projection name must be a non-empty string`);if(!/^geo[A-Za-z0-9]+$/.test(i))throw sg(`PROJECTION_ERROR`,`Invalid projection name: ${i}`);let a=i,o;if(a in bg)try{o=bg[a]()}catch{}if((s=o)==null||typeof s.scale!=`function`||typeof s.translate!=`function`)throw sg(`PROJECTION_ERROR`,`Unknown projection: ${i}`,void 0,{availableProjections:Object.keys(bg)});var s;let c=o.translate([n/2,r/2]);return e.center&&c.center&&(c=c.center(e.center)),e.rotate&&c.rotate&&(c=c.rotate(e.rotate)),e.scale&&c.scale&&(c=c.scale(e.scale)),e.parallels&&`parallels`in c&&typeof c.parallels==`function`&&c.parallels(e.parallels),c})({projectionConfig:r,projection:n||`geoEqualEarth`,width:e,height:t})},[e,t,n,o,s,c,l,u,d,f,p]);return(0,yr.jsx)(xg,{value:(0,j.useMemo)(()=>({width:e,height:t,projection:m,path:yg().projection(m)}),[e,t,m]),children:i})},wg=()=>{let e=(0,j.useContext)(xg);if(e===void 0)throw sg(`CONTEXT_ERROR`,`useMapContext must be used within a MapProvider`);return e};function Tg(){return null}function Eg(e,t){let n=Dg.getInstance();return{logRender:(0,j.useCallback)((r,i)=>n.logRender(e,r,i,t),[e,n,t])}}var Dg=class e{static instance;debugLogs=[];isEnabled=this.getDebugMode();getDebugMode(){if(typeof process<`u`){let e={}.REACT_SIMPLE_MAPS_DEBUG;if(e===`true`||e===`1`)return!0;if(e===`false`||e===`0`)return!1}return!1}setDebugMode(e){this.isEnabled=e}isDebugEnabled(){return this.isEnabled}static getInstance(){return e.instance||=new e,e.instance}logRender(e,t,n,r=this.isEnabled){if(!r)return;let i=Tg(),a={componentName:e,ownerStack:i,timestamp:Date.now(),...t&&{props:this.sanitizeProps(t)},...n&&{state:this.sanitizeState(n)}};this.debugLogs.push(a),this.debugLogs.length>100&&this.debugLogs.shift(),console.group(`🗺️ ${e} Render`),console.log(`Owner Stack:`,i),t&&console.log(`Props:`,t),n&&console.log(`State:`,n),console.groupEnd()}getAllLogs(){return[...this.debugLogs]}clear(){this.debugLogs.length=0}sanitizeProps(e){if(!e)return;let t={};for(let[n,r]of Object.entries(e))typeof r==`function`?t[n]=`[Function]`:r&&typeof r==`object`&&typeof r.constructor==`function`&&r.constructor!==Object&&r.constructor!==Array?t[n]=`[${r.constructor.name}]`:t[n]=r;return t}sanitizeState(e){return this.sanitizeProps(e)}},Og={debugGeographyLoading:(e,t,n)=>{if(Dg.getInstance().isDebugEnabled())try{let r=Tg();console.group(`🌍 Geography Loading: ${e}`),console.log(`Status:`,t),console.log(`Owner Stack:`,r),n&&console.log(`Data:`,n),console.groupEnd()}catch{console.log(`🌍 Geography Loading: ${e} - Status: ${t}`),n&&console.log(`Data:`,n)}}};function kg({width:e=800,height:t=600,projection:n=`geoEqualEarth`,projectionConfig:r=Ag,className:i=``,debug:a,children:o,ref:s,onGeographyError:c,fallback:l,...u}){let{logRender:d}=Eg(`ComposableMap`,a);return(0,j.useEffect)(()=>{d({width:e,height:t,projection:n,projectionConfig:r,className:i})},[d,e,t,n,r,i]),(0,yr.jsx)(Cg,{width:e,height:t,projection:n,projectionConfig:r,children:(0,yr.jsx)(`svg`,{ref:s,viewBox:`0 0 ${e} ${t}`,className:`rsm-svg ${i}`,...u,children:o})})}var Ag=Object.freeze({});kg.displayName=`ComposableMap`;var jg=(0,j.memo)(kg);function Mg(e){if((typeof e==`object`||typeof e==`function`)&&e!==null){let t=Kg.get(e);if(t)return t;qg+=1;let n=`obj:${qg}`;return Kg.set(e,n),n}return String(e)}function Ng(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return`str:${e.length}:${(t>>>0).toString(16)}`}function Pg(e,t){let n;return n=typeof e==`string`?Ng(e):typeof e!=`object`&&typeof e!=`function`||e===null?Ng(String(e)):Mg(e),t?`${n}:${t}`:n}function Fg(e,t){Gg.features.set(e,t)}function Ig(e){return Gg.features.get(e)}function Lg(e,t){Gg.preparedFeatures.set(e,t)}function Rg(e){return Gg.preparedFeatures.get(e)}function zg(e,t){Gg.meshData.set(e,t)}function Bg(e){return Gg.meshData.get(e)}function Vg(e,t){return Pg(e,`features:${t?Mg(t):`default`}`)}function Hg(e,t){return`prepared:${Mg(e)}:${Mg(t)}`}function Ug(e,t){return Pg(e,`mesh:${Mg(t)}`)}var Wg=class{cache;maxSize;constructor(e){this.cache=new Map,this.maxSize=e}get(e){let t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){let e=this.cache.keys().next().value;e!==void 0&&this.cache.delete(e)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}},Gg={features:new Wg(50),preparedFeatures:new Wg(30),meshData:new Wg(40)},Kg=new WeakMap,qg=0;function Jg(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Yg(e,t){if(!Array.isArray(e))return!1;for(let n of e)if(!t(n))return!1;return!0}function Xg(e){return Array.isArray(e)&&e.length>=2&&Yg(e,e=>typeof e==`number`&&Number.isFinite(e))}function Zg(e){return Array.isArray(e)&&(e.length===0||e.length>=2)&&Yg(e,Xg)}function Qg(e){if(!Array.isArray(e)||e.length<4)return!1;let t=e[0],n=e[e.length-1];return Xg(t)&&Xg(n)&&t.length===n.length&&t.every((e,t)=>e===n[t])&&Yg(e,Xg)}function $g(e,t,n){return t===0?n(e):Yg(e,e=>$g(e,t-1,n))}function e_(e,t=!1){return(t&&e.properties===void 0||e.properties===null||Jg(e.properties))&&(e.id===void 0||typeof e.id==`string`||typeof e.id==`number`)}function t_(e,t){let n=new Set,r=[{geometry:e}];for(;r.length>0;){let e=r.pop();if(!e||!Jg(e.geometry))return!1;let i=e.geometry;if(e.exit)n.delete(i);else{if(n.has(i)||t!==void 0&&!e_(i,!0))return!1;if(i.type===`GeometryCollection`){if(!Array.isArray(i.geometries))return!1;n.add(i),r.push({geometry:i,exit:!0});for(let e of i.geometries)r.push({geometry:e})}else if(!n_(i,t))return!1}}return!0}function n_(e,t){if(t!==void 0&&e.type===null)return!0;let n;switch(e.type){case`Point`:return Xg(e.coordinates);case`MultiPoint`:return Yg(e.coordinates,Xg);case`LineString`:n=1;break;case`Polygon`:case`MultiLineString`:n=2;break;case`MultiPolygon`:n=3;break;default:return!1}return t===void 0?e.type===`Polygon`||e.type===`MultiPolygon`?$g(e.coordinates,n-1,Qg):$g(e.coordinates,n-1,Zg):$g(e.arcs,n-1,e=>Array.isArray(e)&&e.length>0&&Yg(e,e=>typeof e!=`number`||!Number.isInteger(e)?!1:(t[e<0?-e-1:e]?.length??0)>0))}function r_(e){if(!Jg(e)||e.type!==`Topology`||!Jg(e.objects)||!Yg(e.arcs,e=>Yg(e,Xg)))return!1;let t=e.arcs;return!!(e.transform===void 0||Jg(e.transform)&&Xg(e.transform.scale)&&e.transform.scale.length===2&&Xg(e.transform.translate)&&e.transform.translate.length===2)&&Object.values(e.objects).every(e=>t_(e,t))}function i_(e,t=!1){return Jg(e)&&e.type===`FeatureCollection`&&Yg(e.features,e=>a_(e,t))}function a_(e,t=!1){return Jg(e)&&e.type===`Feature`&&e_(e)&&(t&&e.geometry===null||o_(e.geometry))}function o_(e){return t_(e)}function s_(e){return r_(e)||i_(e,!0)}function c_(){return typeof process<`u`&&!0}function l_(){return S_}function u_(e){return e.startsWith(`[`)&&e.endsWith(`]`)?e.slice(1,-1):e}function d_(e){let t=u_(e).toLowerCase().replace(/\.$/,``);return t===`localhost`||t.endsWith(`.localhost`)||t===`127.0.0.1`||t===`::1`}function f_(e){if(!e||e===`localhost`)return!1;let t=u_(e),n=/^\d{1,3}(?:\.\d{1,3}){3}$/.test(t);for(let e of[/^10\./,/^172\.(1[6-9]|2[0-9]|3[01])\./,/^192\.168\./,/^127\./,/^169\.254\./,/^0\./,/^100\.(6[4-9]|[7-9]\d|1[01]\d|12[0-7])\./,/^192\.0\.0\./,/^192\.0\.2\./,/^198\.51\.100\./,/^203\.0\.113\./,/^198\.1[89]\./,/^233\.252\.0\./])if(n&&e.test(t))return!0;for(let e of[/^::1$/i,/^fe[89ab][0-9a-f]:/i,/^f[cd][0-9a-f]{2}:/i,/^::$/i,/^ff[0-9a-f]{2}:/i,/^100::/i,/^2001:db8:/i,/^2001:(?:0{1,4}:|:)/i])if(e.test(t))return!0;let r=t.match(/^::ffff:(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})$/i);if(r?.[1])return f_(r[1]);let i=t.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(i?.[1]&&i[2]){let e=parseInt(i[1],16),t=parseInt(i[2],16);return f_(`${e>>8&255}.${255&e}.${t>>8&255}.${255&t}`)}return!1}function p_(){return typeof process<`u`&&process.release?.name===`node`&&typeof window>`u`}async function m_(e){if(!p_())return[];let t=u_(e);if(!t)return[];let n=await async function(){if(typeof process<`u`){let e=typeof process.getBuiltinModule==`function`?process.getBuiltinModule(`node:dns/promises`):null;if(e?.lookup)return e}try{let e=await a(()=>import(`node:dns/promises`),[]);return e.lookup?e:null}catch{return null}}();if(!n?.lookup)throw $(`SECURITY_ERROR`,`Unable to resolve hostname ${t} for security validation`,t);try{return(await n.lookup(t,{all:!0,verbatim:!0})).map(e=>e.address)}catch(e){throw $(`SECURITY_ERROR`,`Unable to resolve hostname ${t} for security validation`,t,e instanceof Error?e:void 0)}}function h_(e,t=S_){let n=ug(e);try{let r=new URL(n);if(t.STRICT_HTTPS_ONLY){if(r.protocol!==`https:`)throw $(`SECURITY_ERROR`,`Strict HTTPS-only mode: ${r.protocol} is not allowed. Only HTTPS is permitted.`,e)}else{if(!t.ALLOWED_PROTOCOLS.includes(r.protocol)){let n=t.ALLOWED_PROTOCOLS.join(`, `);throw $(`SECURITY_ERROR`,`Unsupported protocol: ${r.protocol}. Only ${n} are allowed.`,e)}if(r.protocol===`http:`){if(!t.ALLOW_HTTP_LOCALHOST)throw $(`SECURITY_ERROR`,`HTTP protocol is disabled for security. Use HTTPS or enable development mode explicitly.`,e);if(!d_(r.hostname))throw $(`SECURITY_ERROR`,`HTTP protocol is only allowed for localhost. Use HTTPS for remote URLs.`,e);if(c_())throw $(`SECURITY_ERROR`,`HTTP localhost access is not allowed in production`,e);console.warn(`Security Warning: Using HTTP for localhost (${e}). This should only be used in development.`)}}if(d_(r.hostname)&&c_())throw $(`SECURITY_ERROR`,`Localhost access is not allowed in production`,e);if(f_(r.hostname))throw $(`SECURITY_ERROR`,`Access to private IP address ${r.hostname} is not allowed`,e)}catch(t){throw t instanceof TypeError?$(`VALIDATION_ERROR`,`Invalid URL format: ${e}`,e,t):t}}async function g_(e,t=S_,n=m_){if(h_(e,t),n===m_&&!p_())return;let{hostname:r}=new URL(e),i=u_(r);if(i&&!d_(r)&&!f_(r)&&(await n(i)).some(e=>f_(e)))throw $(`SECURITY_ERROR`,`Hostname ${i} resolves to a private IP address, which is not allowed`,e)}function __(e,t=S_){let n=e.headers.get(`content-type`);if(!n)throw $(`VALIDATION_ERROR`,`Missing Content-Type header`);let r=n.split(`;`,1)[0]?.trim().toLowerCase()??``;if(!t.ALLOWED_CONTENT_TYPES.includes(r))throw $(`VALIDATION_ERROR`,`Invalid content type: ${n}. Expected one of: ${t.ALLOWED_CONTENT_TYPES.join(`, `)}`)}async function v_(e,t=S_){let n=e.headers.get(`content-length`);if(n){let e=parseInt(n,10);if(e>t.MAX_RESPONSE_SIZE)throw $(`VALIDATION_ERROR`,`Response too large: ${e} bytes. Maximum allowed: ${t.MAX_RESPONSE_SIZE} bytes`)}}async function y_(e,t=S_.MAX_RESPONSE_SIZE){let n=e.body?.getReader();if(!n){let n=await e.arrayBuffer();if(n.byteLength>t)throw $(`VALIDATION_ERROR`,`Response too large: ${n.byteLength} bytes exceeds limit of ${t} bytes`);return n}let r=[],i=0;for(;;){let{done:e,value:a}=await n.read();if(e)break;if(i+=a.byteLength,i>t)throw n.cancel().catch(()=>{}),$(`VALIDATION_ERROR`,`Response too large: exceeded limit of ${t} bytes`);r.push(a)}let a=new Uint8Array(i),o=0;for(let e of r)a.set(e,o),o+=e.byteLength;return a.buffer}function b_(e){if(!e||typeof e!=`object`)throw $(`VALIDATION_ERROR`,`Invalid geography data: not a valid object`);let t=e;if(!t.type||t.type!==`Topology`&&t.type!==`FeatureCollection`)throw $(`VALIDATION_ERROR`,`Invalid geography data: expected Topology or FeatureCollection, got ${t.type}`);if(t.type===`Topology`&&(typeof t.objects!=`object`||t.objects===null||Array.isArray(t.objects)))throw $(`VALIDATION_ERROR`,`Invalid topology data: expected a non-null objects map`);if(t.type===`FeatureCollection`&&!Array.isArray(t.features))throw $(`VALIDATION_ERROR`,`Invalid feature collection data: expected a features array`);if(!s_(e))throw $(`VALIDATION_ERROR`,`Invalid geography data: malformed ${t.type} geometry or coordinates`)}var x_={TIMEOUT_MS:1e4,MAX_RESPONSE_SIZE:52428800,ALLOWED_CONTENT_TYPES:[`application/json`,`application/geo+json`],ALLOWED_PROTOCOLS:[`https:`],ALLOW_HTTP_LOCALHOST:!1,STRICT_HTTPS_ONLY:!0};({...x_});var S_=Object.freeze({...x_,ALLOWED_CONTENT_TYPES:Object.freeze([...x_.ALLOWED_CONTENT_TYPES]),ALLOWED_PROTOCOLS:Object.freeze([...x_.ALLOWED_PROTOCOLS])}),C_=u();function w_(e,t=!1){if(typeof e!=`string`||!e)return;let n=typeof window<`u`;if(!n||!T_.has(e))try{h_(e);let r=new URL(e);(0,C_.prefetchDNS)(r.origin),(0,C_.preconnect)(r.origin),n&&T_.add(e),(t||typeof process<`u`)&&(0,C_.preload)(e,{as:`fetch`,crossOrigin:`anonymous`})}catch{}}var T_=new Set;function E_(e){return e}function D_(e){if(e==null)return E_;var t,n,r=e.scale[0],i=e.scale[1],a=e.translate[0],o=e.translate[1];return function(e,s){s||(t=n=0);var c=2,l=e.length,u=Array(l);for(u[0]=(t+=e[0])*r+a,u[1]=(n+=e[1])*i+o;c<l;)u[c]=e[c],++c;return u}}function O_(e,t){for(var n,r=e.length,i=r-t;i<--r;)n=e[i],e[i++]=e[r],e[r]=n}function k_(e,t){return typeof t==`string`&&(t=e.objects[t]),t.type===`GeometryCollection`?{type:`FeatureCollection`,features:t.geometries.map(function(t){return A_(e,t)})}:A_(e,t)}function A_(e,t){var n=t.id,r=t.bbox,i=t.properties==null?{}:t.properties,a=j_(e,t);return n==null&&r==null?{type:`Feature`,properties:i,geometry:a}:r==null?{type:`Feature`,id:n,properties:i,geometry:a}:{type:`Feature`,id:n,bbox:r,properties:i,geometry:a}}function j_(e,t){var n=D_(e.transform),r=e.arcs;function i(e,t){t.length&&t.pop();for(var i=r[e<0?~e:e],a=0,o=i.length;a<o;++a)t.push(n(i[a],a));e<0&&O_(t,o)}function a(e){return n(e)}function o(e){for(var t=[],n=0,r=e.length;n<r;++n)i(e[n],t);return t.length<2&&t.push(t[0]),t}function s(e){for(var t=o(e);t.length<4;)t.push(t[0]);return t}function c(e){return e.map(s)}function l(e){var t=e.type,n;switch(t){case`GeometryCollection`:return{type:t,geometries:e.geometries.map(l)};case`Point`:n=a(e.coordinates);break;case`MultiPoint`:n=e.coordinates.map(a);break;case`LineString`:n=o(e.arcs);break;case`MultiLineString`:n=e.arcs.map(o);break;case`Polygon`:n=c(e.arcs);break;case`MultiPolygon`:n=e.arcs.map(c);break;default:return null}return{type:t,coordinates:n}}return l(t)}function M_(e,t){var n={},r={},i={},a=[],o=-1;t.forEach(function(n,r){var i=e.arcs[n<0?~n:n],a;i.length<3&&!i[1][0]&&!i[1][1]&&(a=t[++o],t[o]=n,t[r]=a)}),t.forEach(function(e){var t=s(e),n=t[0],a=t[1],o,c;if(o=i[n])if(delete i[o.end],o.push(e),o.end=a,c=r[a]){delete r[c.start];var l=c===o?o:o.concat(c);r[l.start=o.start]=i[l.end=c.end]=l}else r[o.start]=i[o.end]=o;else if(o=r[a])if(delete r[o.start],o.unshift(e),o.start=n,c=i[n]){delete i[c.end];var u=c===o?o:c.concat(o);r[u.start=c.start]=i[u.end=o.end]=u}else r[o.start]=i[o.end]=o;else o=[e],r[o.start=n]=i[o.end=a]=o});function s(t){var n=e.arcs[t<0?~t:t],r=n[0],i;return e.transform?(i=[0,0],n.forEach(function(e){i[0]+=e[0],i[1]+=e[1]})):i=n[n.length-1],t<0?[i,r]:[r,i]}function c(e,t){for(var r in e){var i=e[r];delete t[i.start],delete i.start,delete i.end,i.forEach(function(e){n[e<0?~e:e]=1}),a.push(i)}}return c(i,r),c(r,i),t.forEach(function(e){n[e<0?~e:e]||a.push([e])}),a}function N_(e){return j_(e,P_.apply(this,arguments))}function P_(e,t,n){var r,i,a;if(arguments.length>1)r=F_(e,t,n);else for(i=0,r=Array(a=e.arcs.length);i<a;++i)r[i]=i;return{type:`MultiLineString`,arcs:M_(e,r)}}function F_(e,t,n){var r=[],i=[],a;function o(e){var t=e<0?~e:e;(i[t]||(i[t]=[])).push({i:e,g:a})}function s(e){e.forEach(o)}function c(e){e.forEach(s)}function l(e){e.forEach(c)}function u(e){switch(a=e,e.type){case`GeometryCollection`:e.geometries.forEach(u);break;case`LineString`:s(e.arcs);break;case`MultiLineString`:case`Polygon`:c(e.arcs);break;case`MultiPolygon`:l(e.arcs);break}}return u(t),i.forEach(n==null?function(e){r.push(e[0].i)}:function(e){n(e[0].g,e[e.length-1].g)&&r.push(e[0].i)}),r}function I_(e){return typeof e==`string`}function L_(e){return e.type===`GeometryCollection`?{...e,geometries:e.geometries.filter(e=>e!==null).map(L_)}:e}function R_(e,t){return Array.isArray(e)?t?t(e):e:e.type===`Topology`?function(e,t){let n=Object.keys(e.objects);if(n.length===0)return[];let r=n[0];if(!r)return[];let i=e.objects[r];if(!i)return[];let a=k_(e,i),o=(`features`in a?a.features||[]:[a]).filter(e=>e.geometry!==null).map(e=>e.geometry.type===`GeometryCollection`?{...e,geometry:L_(e.geometry)}:e);return t?t(o):o}(e,t):e.type===`FeatureCollection`?function(e,t){let n=(e.features||[]).filter(e=>e.geometry!==null);return t?t(n):n}(e,t):[]}function z_(e){return e&&typeof e==`object`&&!Array.isArray(e)&&`type`in e&&e.type===`Topology`?function(e){let t=Object.keys(e.objects);if(t.length===0)return null;let n=t[0];if(!n)return null;let r=e.objects[n];if(!r)return null;try{return{outline:N_(e,r,(e,t)=>e===t),borders:N_(e,r,(e,t)=>e!==t)}}catch{return null}}(e):null}function B_(e,t,n){let r={};if(e){let t=n(e);t&&(r.outline=t)}if(t){let e=n(t);e&&(r.borders=e)}return r}function V_(e){let t=e.rsmKey;return t==null?e.id!==void 0&&e.id!==null?String(e.id):null:String(t)}function H_(e,t){return t.some(t=>t.has(e))}function U_(e,t){if(!H_(e,t))return e;let n=1,r=`${e}-${n}`;for(;H_(r,t);)n+=1,r=`${e}-${n}`;return r}function W_(e,t){if(!e||e.length===0)return[];let n=e.map((e,n)=>{let r=t(e);return r?{explicitKey:V_(e),feature:e,index:n,svgPath:r}:null}).filter(e=>e!==null),r=new Set(n.map(e=>e.explicitKey).filter(e=>e!==null)),i=new Set;return n.map(({explicitKey:e,feature:t,index:n,svgPath:a})=>{let o=e===null?function(e,t,n){return U_(`geo-${e}`,[t,n])}(n,i,r):function(e,t,n){return t.has(e)?U_(e,[t,n]):e}(e,i,r);return i.add(o),{...t,svgPath:a,rsmKey:o}})}function G_(e,t){return{signal:e,headers:{Accept:t.ALLOWED_CONTENT_TYPES.join(`, `)},mode:`cors`,credentials:`omit`,redirect:`manual`}}function K_(e,t){if(!t)return e;let n=()=>{},r=new Promise((e,r)=>{n=()=>{let e=Error(`Request aborted`);e.name=`AbortError`,r(e)},t.aborted?n():t.addEventListener(`abort`,n,{once:!0})});return Promise.race([e,r]).finally(()=>t.removeEventListener(`abort`,n))}async function q_(e,t,n){let r=e,i=[e];for(let a=0;;a++){let o=await fetch(r,t);if(o.type===`opaqueredirect`)throw $(`SECURITY_ERROR`,`Cannot validate an opaque redirect. Use the final resource URL directly.`,r);if(o.status<300||o.status>=400)return{response:o,urls:i};try{await o.body?.cancel()}catch{}if(a===5)throw $(`SECURITY_ERROR`,`Too many redirects (exceeded 5 hops)`,e);let s=o.headers.get(`location`);if(!s)throw $(`SECURITY_ERROR`,`Redirect response (HTTP ${o.status}) missing Location header`,r);let c=new URL(s,r).href;h_(c,n),await K_(g_(c,n),t.signal),r=c,i.push(c)}}function J_(e){let t=new AbortController,n=setTimeout(()=>{t.abort()},e);return{controller:t,cleanup:()=>clearTimeout(n)}}function Y_(){return rv}async function X_(e,t){let n=await globalThis.crypto.subtle.digest(t,e),r=new Uint8Array(n),i;if(globalThis.btoa!==void 0)i=globalThis.btoa(String.fromCharCode(...r));else{let e=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,t=``;for(let n=0;n<r.length;n+=3){let i=(r[n]||0)<<16|(r[n+1]||0)<<8|(r[n+2]||0);t+=e.charAt(i>>18&63),t+=e.charAt(i>>12&63),t+=n+1<r.length?e.charAt(i>>6&63):`=`,t+=n+2<r.length?e.charAt(63&i):`=`}i=t}return i}async function Z_(e,t,n){let r=await X_(e,{sha256:`SHA-256`,sha384:`SHA-384`,sha512:`SHA-512`}[n.algorithm]),i=n.hash.replace(`${n.algorithm}-`,``);if(r!==i){let e=Error(`Subresource Integrity check failed for ${t}. Expected ${n.algorithm}-${i}, got ${n.algorithm}-${r}`);throw e.expectedHash=n.hash,e.calculatedHash=`${n.algorithm}-${r}`,e.algorithm=n.algorithm,$(`SECURITY_ERROR`,e.message,t,e)}}function Q_(e,t=!1){return e.replace(/%[0-9a-f]{2}/gi,e=>{let n=String.fromCharCode(parseInt(e.slice(1),16));return/[\w.~-]/.test(n)||t&&n===`@`?n:e.toUpperCase()})}function $_(e,t=!1){try{let n=new URL(e);return n.hash=``,n.search=t?``:Q_(n.search),(n.protocol===`https:`&&n.port===`443`||n.protocol===`http:`&&n.port===`80`)&&(n.port=``),n.hostname=n.hostname.replace(/\.$/,``),n.pathname=Q_(n.pathname,t),t&&(n.pathname=n.pathname.replace(/\/+$/,``)||`/`),n.href}catch{return e}}function ev(e,t=rv){let n=$_(e),r=t.customSRIMap[n]??t.customSRIMap[e];if(r?.enforceIntegrity)return r;let i=tv[$_(e,!0)];if(i&&t.enforceForKnownSources)return i;if(t.enforceForAllSources&&!t.allowUnknownSources)throw $(`SECURITY_ERROR`,`SRI enforcement is enabled but no integrity hash is available for ${e}`,e);return null}var tv={"https://unpkg.com/world-atlas@2/countries-110m.json":{algorithm:`sha384`,hash:`sha384-yOCJ+8ShBm8UDqtAVtAvxTDDf4gXo5edxl/YG0FmVC5OTmqVLl7utuVGBDEeZWHf`,enforceIntegrity:!0},"https://unpkg.com/world-atlas@2.0.2/countries-110m.json":{algorithm:`sha384`,hash:`sha384-yOCJ+8ShBm8UDqtAVtAvxTDDf4gXo5edxl/YG0FmVC5OTmqVLl7utuVGBDEeZWHf`,enforceIntegrity:!0},"https://unpkg.com/world-atlas@2/countries-50m.json":{algorithm:`sha384`,hash:`sha384-Aw4s9pX1PTPntIYkZ/qV9IYiF5Gv8eTl6Dd/TT56zfO1Wwd+owFwYUuuXNUMrWkc`,enforceIntegrity:!0},"https://unpkg.com/world-atlas@2.0.2/countries-50m.json":{algorithm:`sha384`,hash:`sha384-Aw4s9pX1PTPntIYkZ/qV9IYiF5Gv8eTl6Dd/TT56zfO1Wwd+owFwYUuuXNUMrWkc`,enforceIntegrity:!0},"https://unpkg.com/world-atlas@2/land-110m.json":{algorithm:`sha384`,hash:`sha384-5oFOGoMd0tkagYW08lVco4uAi7XDEDBwBxOdeKx+SA1ihbsHiR/aFAJGretluTzG`,enforceIntegrity:!0},"https://unpkg.com/world-atlas@2.0.2/land-110m.json":{algorithm:`sha384`,hash:`sha384-5oFOGoMd0tkagYW08lVco4uAi7XDEDBwBxOdeKx+SA1ihbsHiR/aFAJGretluTzG`,enforceIntegrity:!0},"https://unpkg.com/world-atlas@2/land-50m.json":{algorithm:`sha384`,hash:`sha384-c0VeCJd1wVbV5WQZNjf1hcMqPr9QXweEArnbdgS1k75TBNjta2M/NddyAulA/Glb`,enforceIntegrity:!0},"https://unpkg.com/world-atlas@2.0.2/land-50m.json":{algorithm:`sha384`,hash:`sha384-c0VeCJd1wVbV5WQZNjf1hcMqPr9QXweEArnbdgS1k75TBNjta2M/NddyAulA/Glb`,enforceIntegrity:!0}},nv={enforceForKnownSources:!0,enforceForAllSources:!1,allowUnknownSources:!0,customSRIMap:{}},rv=Object.freeze({...nv,customSRIMap:Object.freeze({...nv.customSRIMap})});async function iv(e,t,n){h_(e,t);let r=ev(e,n),{controller:i,cleanup:a}=J_(t.TIMEOUT_MS);try{await K_(g_(e,t),i.signal);let{response:a,urls:o}=await q_(e,G_(i.signal,t),t);try{if(!a.ok)throw $(`GEOGRAPHY_LOAD_ERROR`,`HTTP ${a.status}: ${a.statusText}`,e);__(a,t),await v_(a,t)}catch(e){throw await a.body?.cancel().catch(()=>{}),e}let s=await y_(a,t.MAX_RESPONSE_SIZE);r&&await Z_(s,e,r);let c={...n,enforceForAllSources:!1};for(let e of o.slice(1)){let t=ev(e,c);t&&await Z_(s,e,t)}return await async function(e,t){try{let t=new TextDecoder().decode(e),n=JSON.parse(t);return b_(n),n}catch(e){throw e instanceof SyntaxError?$(`GEOGRAPHY_PARSE_ERROR`,`Invalid JSON format in geography data`,t,e):e}}(s,e)}catch(n){throw function(e,t,n){if(cg(e))return e.geography??=t,e;if(e instanceof Error){if(e.name===`AbortError`)return $(`GEOGRAPHY_LOAD_ERROR`,`Request timeout after ${n.TIMEOUT_MS}ms`,t,e);if(e.name===`TypeError`&&e.message.includes(`fetch`))return $(`GEOGRAPHY_LOAD_ERROR`,`Network error: Unable to fetch geography from ${t}`,t,e)}return $(`GEOGRAPHY_LOAD_ERROR`,e instanceof Error?e.message:`Unknown error occurred`,t,e instanceof Error?e:void 0)}(n,e,t)}finally{a()}}function av(e){let t=l_(),n=Y_(),r=ov.get(e);if(r?.securityConfig===t&&r.sriConfig===n)return r.promise;let i={promise:iv(e,t,n),securityConfig:t,sriConfig:n},a=()=>{ov.get(e)===i&&ov.delete(e)};return i.promise.then(a,a),ov.set(e,i),i.promise}var ov=new Map;function sv({geography:e,parseGeographies:t}){let{path:n}=wg(),[r,i]=(0,j.useState)(null),[a,o]=(0,j.useState)(0),s=(0,j.useCallback)(()=>{o(e=>e+1)},[]);(0,j.useEffect)(()=>{if(i(null),!I_(e))return;let t=!1;return Og.debugGeographyLoading(e,`start`),w_(e),av(e).then(n=>{t||(Og.debugGeographyLoading(e,`success`,n),i({url:e,attempt:a,data:n}))},n=>{t||(Og.debugGeographyLoading(e,`error`,n),i({url:e,attempt:a,error:n instanceof Error?n:Error(String(n))}))}),()=>{t=!0}},[e,a]);let c=I_(e),l=c&&r?.url===e&&r.attempt===a?r:null,u=c?l?.data??null:e,d=c&&!l,f=l?.error??null,p=(0,j.useMemo)(()=>{if(d||!u)return[];let e=Vg(u,t),n=Ig(e);if(n)return n;let r=R_(u,t);return Fg(e,r),r},[u,d,t]),m=(0,j.useMemo)(()=>d||!u?null:z_(u),[u,d]),h=(0,j.useMemo)(()=>{if(p.length===0)return[];let e=Hg(p,n),t=Rg(e);if(t)return t;let r=W_(p,n);return Lg(e,r),r},[p,n]),g=(0,j.useMemo)(()=>{if(!m)return{outline:``,borders:``};let e=Ug(u,n),t=Bg(e);if(t)return t;let r=B_(m.outline||null,m.borders||null,n),i={outline:r.outline||``,borders:r.borders||``};return zg(e,i),i},[m,n,u]);return(0,j.useMemo)(()=>({geographies:h,outline:g.outline,borders:g.borders,isLoading:d,error:f,refetch:s}),[h,g,d,f,s])}function cv(e,t){return(0,yr.jsxs)(`g`,{className:`rsm-error-boundary`,role:`alert`,children:[(0,yr.jsx)(`text`,{className:`rsm-error-text`,x:`50%`,y:`42%`,textAnchor:`middle`,dominantBaseline:`middle`,fill:`currentColor`,children:`Failed to load geography data.`}),(0,yr.jsx)(`text`,{className:`rsm-error-retry`,x:`50%`,y:`58%`,textAnchor:`middle`,dominantBaseline:`middle`,fill:`currentColor`,role:`button`,tabIndex:0,style:{cursor:`pointer`},onClick:t,onKeyDown:e=>{e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),t())},children:`Retry`})]})}function lv({children:e,fallback:t=cv,onError:n,resetKey:r}){let[i,a]=(0,j.useState)(0),o=(0,j.useCallback)((e,t)=>{n&&n(e)},[n]),s=(0,j.useCallback)(()=>{a(e=>e+1)},[]);return(0,yr.jsx)(uv,{fallback:(0,j.useCallback)(e=>t(e,s),[t,s]),onError:o,resetKey:r,children:e},i)}var uv=class extends j.Component{constructor(e){super(e),this.state={hasError:!1,error:null,resetKey:e.resetKey}}static getDerivedStateFromError(e){let t;try{t=e instanceof Error?e:Error(String(e))}catch{t=Error(`Unknown geography rendering error`)}return{hasError:!0,error:t}}static getDerivedStateFromProps(e,t){return Object.is(e.resetKey,t.resetKey)?null:{hasError:!1,error:null,resetKey:e.resetKey}}componentDidCatch(e,t){this.props.onError&&this.state.error&&this.props.onError(this.state.error,t)}render(){return this.state.hasError&&this.state.error?this.props.fallback(this.state.error):this.props.children}};function dv({geography:e,children:t,parseGeographies:n,onGeographyError:r,fallback:i}){let{path:a,projection:o}=wg(),{geographies:s,outline:c,borders:l,isLoading:u,error:d,refetch:f}=sv({geography:e,...n&&{parseGeographies:n}}),p=(0,j.useRef)(null);return(0,j.useEffect)(()=>{d?r&&p.current!==d&&(p.current=d,r(d)):p.current=null},[d,r]),u?pv:d?i&&typeof i==`function`?i(d,f??(()=>{})):(0,yr.jsx)(`text`,{className:`rsm-error-text`,x:`50%`,y:`50%`,textAnchor:`middle`,fill:`currentColor`,children:`Failed to load geography data`}):s.length?t({geographies:s,outline:c,borders:l,path:a,projection:o}):null}function fv({className:e=``,errorBoundary:t=!1,ref:n,geography:r,children:i,parseGeographies:a,onGeographyError:o,fallback:s,...c}){let l=(0,yr.jsx)(dv,{geography:r,...a&&{parseGeographies:a},...o&&{onGeographyError:o},...s&&{fallback:s},children:i});return(0,yr.jsx)(`g`,{ref:n,className:`rsm-geographies ${e}`,...c,children:t?(0,yr.jsx)(lv,{resetKey:typeof r==`string`?r:void 0,...o&&{onError:o},...s&&{fallback:s},children:l}):l})}var pv=(0,yr.jsx)(`text`,{className:`rsm-loading-text`,x:`50%`,y:`50%`,textAnchor:`middle`,children:`Loading...`}),mv=new Set([`geography`,`children`,`parseGeographies`,`className`,`errorBoundary`,`onGeographyError`,`fallback`,`ref`]);fv.displayName=`Geographies`;var hv=(0,j.memo)(fv,function(e,t){if(e.geography!==t.geography||e.className!==t.className||e.errorBoundary!==t.errorBoundary||e.children!==t.children||e.parseGeographies!==t.parseGeographies||e.onGeographyError!==t.onGeographyError||e.fallback!==t.fallback||e.ref!==t.ref)return!1;let n=e,r=t,i=new Set([...Object.keys(n),...Object.keys(r)]);for(let e of i)if(!mv.has(e)&&n[e]!==r[e])return!1;return!0});function gv(e){if(!e?.geometry)return null;let t;try{t=If(e)}catch{return null}return!t||!isFinite(t[0])||!isFinite(t[1])||Math.abs(t[0])>180||Math.abs(t[1])>90?null:ng(t[0],t[1])}function _v(e){if(!e?.geometry)return null;let t;try{t=lf(e)}catch{return null}if(!(t&&Array.isArray(t)&&t.length===2&&Array.isArray(t[0])&&Array.isArray(t[1])&&t[0].length===2&&t[1].length===2))return null;let[n,r]=t;return!isFinite(n[0])||!isFinite(n[1])||!isFinite(r[0])||!isFinite(r[1])||Math.abs(n[0])>180||Math.abs(n[1])>90||Math.abs(r[0])>180||Math.abs(r[1])>90?null:[ng(n[0],n[1]),ng(r[0],r[1])]}function vv(e){if(!e?.geometry)return null;let{geometry:t}=e;switch(t.type){case`Point`:if(t.coordinates&&Array.isArray(t.coordinates)&&t.coordinates.length>=2&&typeof t.coordinates[0]==`number`&&typeof t.coordinates[1]==`number`){let[e,n]=t.coordinates;return ng(e,n)}break;case`LineString`:if(t.coordinates&&Array.isArray(t.coordinates)&&t.coordinates.length>0&&Array.isArray(t.coordinates[0])&&t.coordinates[0].length>=2&&typeof t.coordinates[0][0]==`number`&&typeof t.coordinates[0][1]==`number`){let[e,n]=t.coordinates[0];return ng(e,n)}break;case`Polygon`:if(t.coordinates&&Array.isArray(t.coordinates)&&t.coordinates.length>0&&Array.isArray(t.coordinates[0])&&t.coordinates[0].length>0&&Array.isArray(t.coordinates[0][0])&&t.coordinates[0][0].length>=2&&typeof t.coordinates[0][0][0]==`number`&&typeof t.coordinates[0][0][1]==`number`){let[e,n]=t.coordinates[0][0];return ng(e,n)}break;case`MultiPoint`:if(t.coordinates&&Array.isArray(t.coordinates)&&t.coordinates.length>0&&Array.isArray(t.coordinates[0])&&t.coordinates[0].length>=2&&typeof t.coordinates[0][0]==`number`&&typeof t.coordinates[0][1]==`number`){let[e,n]=t.coordinates[0];return ng(e,n)}break;case`MultiLineString`:if(Array.isArray(t.coordinates)){for(let e of t.coordinates)if(!Array.isArray(e)||e.length!==0)return vv({geometry:{type:`LineString`,coordinates:e}})}break;case`MultiPolygon`:if(Array.isArray(t.coordinates)){for(let e of t.coordinates)if(!Array.isArray(e)||e.length!==0)return vv({geometry:{type:`Polygon`,coordinates:e}})}break;default:return null}return null}function yv(e){if(!e?.geometry)return null;let t=[e.geometry],n=new Set;for(;t.length>0;){let e=t.pop();if(e)if(e.type===`GeometryCollection`){if(n.has(e)||!Array.isArray(e.geometries))continue;n.add(e);for(let n=e.geometries.length-1;n>=0;--n){let r=e.geometries[n];r&&t.push(r)}}else{let t=vv({geometry:e});if(xv(t))return t}}return null}function bv(e){return gv(e)||yv(e)}function xv(e){return Array.isArray(e)&&e.length===2&&typeof e[0]==`number`&&typeof e[1]==`number`&&isFinite(e[0])&&isFinite(e[1])&&Math.abs(e[0])<=180&&Math.abs(e[1])<=90}function Sv(e){let{currentTarget:t,ctrlKey:n,shiftKey:r,altKey:i,metaKey:a}=e,o=t.ownerDocument.defaultView,s=new(o?.MouseEvent??MouseEvent)(`click`,{bubbles:!0,cancelable:!0,composed:!0,ctrlKey:n,shiftKey:r,altKey:i,metaKey:a});Object.defineProperty(s,`view`,{value:o}),t.dispatchEvent(s)}function Cv({geography:e,onClick:t,onMouseEnter:n,onMouseLeave:r,onMouseDown:i,onMouseUp:a,onFocus:o,onBlur:s,onKeyDown:c,onKeyUp:l,style:u={},className:d=``,ref:f,...p}){let[m,h]=(0,j.useState)(!1),[g,_]=(0,j.useState)(!1),[v,y]=(0,j.useState)(!1),b=(0,j.useRef)(!1),x=(0,j.useMemo)(()=>({geography:e,centroid:gv(e),bounds:_v(e),coordinates:bv(e)}),[e]),S=(0,j.useCallback)(e=>{t&&t(e,x)},[t,x]),C=(0,j.useCallback)(e=>{_(!0),n&&n(e,x)},[n,x]),w=(0,j.useCallback)(e=>{_(!1),m&&h(!1),r&&r(e,x)},[r,x,m]),T=(0,j.useCallback)(e=>{y(!0),o&&o(e,x)},[o,x]),E=(0,j.useCallback)(e=>{y(!1),b.current=!1,m&&h(!1),s&&s(e,x)},[s,x,m]),D=(0,j.useCallback)(e=>{h(!0),i&&i(e,x)},[i,x]),O=(0,j.useCallback)(e=>{h(!1),a&&a(e,x)},[a,x]),k=(0,j.useCallback)(e=>{c?.(e),t&&!e.defaultPrevented&&(e.key===`Enter`?(e.preventDefault(),Sv(e)):e.key===` `&&(e.preventDefault(),b.current=!0,h(!0)))},[c,t]),ee=(0,j.useCallback)(e=>{l?.(e),e.key===` `&&b.current&&(b.current=!1,h(!1),t&&!e.defaultPrevented&&(e.preventDefault(),Sv(e)))},[l,t]),A=(0,j.useMemo)(()=>m?`pressed`:v?`focused`:g?`hover`:`default`,[m,v,g]),te=(0,j.useMemo)(()=>e.svgPath,[e]),ne=(0,j.useMemo)(()=>u[A],[u,A]);return(0,yr.jsx)(`path`,{ref:f,tabIndex:0,role:t?`button`:void 0,className:`rsm-geography ${d}`,d:te,onClick:S,onMouseEnter:C,onMouseLeave:w,onFocus:T,onBlur:E,onMouseDown:D,onMouseUp:O,onKeyDown:k,onKeyUp:ee,style:ne,...p})}var wv=new Set([`geography`,`onClick`,`onMouseEnter`,`onMouseLeave`,`onMouseDown`,`onMouseUp`,`onFocus`,`onBlur`,`style`,`className`,`ref`]);Cv.displayName=`Geography`;var Tv=(0,j.memo)(Cv,function(e,t){if(e.geography!==t.geography||e.style!==t.style||e.className!==t.className||e.onClick!==t.onClick||e.onMouseEnter!==t.onMouseEnter||e.onMouseLeave!==t.onMouseLeave||e.onMouseDown!==t.onMouseDown||e.onMouseUp!==t.onMouseUp||e.onFocus!==t.onFocus||e.onBlur!==t.onBlur||e.ref!==t.ref)return!1;let n=e,r=t,i=new Set([...Object.keys(n),...Object.keys(r)]);for(let e of i)if(!wv.has(e)&&n[e]!==r[e])return!1;return!0}),Ev=(0,j.createContext)(void 0),Dv={x:0,y:0,k:1,transformString:`translate(0 0) scale(1)`},Ov=({value:e=Dv,children:t})=>(0,yr.jsx)(Ev,{value:e,children:t}),kv={value:()=>{}};function Av(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new jv(n)}function jv(e){this._=e}function Mv(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}jv.prototype=Av.prototype={constructor:jv,on:function(e,t){var n=this._,r=Mv(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Nv(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=Pv(n[i],e.name,t);else if(t==null)for(i in n)n[i]=Pv(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new jv(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function Nv(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function Pv(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=kv,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Fv=Av,Iv={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function Lv(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),Iv.hasOwnProperty(t)?{space:Iv[t],local:e}:e}function Rv(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function zv(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Bv(e){var t=Lv(e);return(t.local?zv:Rv)(t)}function Vv(){}function Hv(e){return e==null?Vv:function(){return this.querySelector(e)}}function Uv(e){typeof e!=`function`&&(e=Hv(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new jb(r,this._parents)}function Wv(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Gv(){return[]}function Kv(e){return e==null?Gv:function(){return this.querySelectorAll(e)}}function qv(e){return function(){return Wv(e.apply(this,arguments))}}function Jv(e){e=typeof e==`function`?qv(e):Kv(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new jb(r,i)}function Yv(e){return function(){return this.matches(e)}}function Xv(e){return function(t){return t.matches(e)}}var Zv=Array.prototype.find;function Qv(e){return function(){return Zv.call(this.children,e)}}function $v(){return this.firstElementChild}function ey(e){return this.select(e==null?$v:Qv(typeof e==`function`?e:Xv(e)))}var ty=Array.prototype.filter;function ny(){return Array.from(this.children)}function ry(e){return function(){return ty.call(this.children,e)}}function iy(e){return this.selectAll(e==null?ny:ry(typeof e==`function`?e:Xv(e)))}function ay(e){typeof e!=`function`&&(e=Yv(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new jb(r,this._parents)}function oy(e){return Array(e.length)}function sy(){return new jb(this._enter||this._groups.map(oy),this._parents)}function cy(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}cy.prototype={constructor:cy,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function ly(e){return function(){return e}}function uy(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new cy(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function dy(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new cy(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function fy(e){return e.__data__}function py(e,t){if(!arguments.length)return Array.from(this,fy);var n=t?dy:uy,r=this._parents,i=this._groups;typeof e!=`function`&&(e=ly(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=my(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new jb(o,r),o._enter=s,o._exit=c,o}function my(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function hy(){return new jb(this._exit||this._groups.map(oy),this._parents)}function gy(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function _y(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new jb(s,this._parents)}function vy(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function yy(e){e||=by;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new jb(i,this._parents).order()}function by(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function xy(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Sy(){return Array.from(this)}function Cy(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function wy(){let e=0;for(let t of this)++e;return e}function Ty(){return!this.node()}function Ey(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Dy(e){return function(){this.removeAttribute(e)}}function Oy(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ky(e,t){return function(){this.setAttribute(e,t)}}function Ay(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function jy(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function My(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Ny(e,t){var n=Lv(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Oy:Dy:typeof t==`function`?n.local?My:jy:n.local?Ay:ky)(n,t))}function Py(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Fy(e){return function(){this.style.removeProperty(e)}}function Iy(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Ly(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Ry(e,t,n){return arguments.length>1?this.each((t==null?Fy:typeof t==`function`?Ly:Iy)(e,t,n??``)):zy(this.node(),e)}function zy(e,t){return e.style.getPropertyValue(t)||Py(e).getComputedStyle(e,null).getPropertyValue(t)}function By(e){return function(){delete this[e]}}function Vy(e,t){return function(){this[e]=t}}function Hy(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Uy(e,t){return arguments.length>1?this.each((t==null?By:typeof t==`function`?Hy:Vy)(e,t)):this.node()[e]}function Wy(e){return e.trim().split(/^|\s+/)}function Gy(e){return e.classList||new Ky(e)}function Ky(e){this._node=e,this._names=Wy(e.getAttribute(`class`)||``)}Ky.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function qy(e,t){for(var n=Gy(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Jy(e,t){for(var n=Gy(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Yy(e){return function(){qy(this,e)}}function Xy(e){return function(){Jy(this,e)}}function Zy(e,t){return function(){(t.apply(this,arguments)?qy:Jy)(this,e)}}function Qy(e,t){var n=Wy(e+``);if(arguments.length<2){for(var r=Gy(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?Zy:t?Yy:Xy)(n,t))}function $y(){this.textContent=``}function eb(e){return function(){this.textContent=e}}function tb(e){return function(){this.textContent=e.apply(this,arguments)??``}}function nb(e){return arguments.length?this.each(e==null?$y:(typeof e==`function`?tb:eb)(e)):this.node().textContent}function rb(){this.innerHTML=``}function ib(e){return function(){this.innerHTML=e}}function ab(e){return function(){this.innerHTML=e.apply(this,arguments)??``}}function ob(e){return arguments.length?this.each(e==null?rb:(typeof e==`function`?ab:ib)(e)):this.node().innerHTML}function sb(){this.nextSibling&&this.parentNode.appendChild(this)}function cb(){return this.each(sb)}function lb(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ub(){return this.each(lb)}function db(e){var t=typeof e==`function`?e:Bv(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function fb(){return null}function pb(e,t){var n=typeof e==`function`?e:Bv(e),r=t==null?fb:typeof t==`function`?t:Hv(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function mb(){var e=this.parentNode;e&&e.removeChild(this)}function hb(){return this.each(mb)}function gb(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function _b(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function vb(e){return this.select(e?_b:gb)}function yb(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function bb(e){return function(t){e.call(this,t,this.__data__)}}function xb(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Sb(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Cb(e,t,n){return function(){var r=this.__on,i,a=bb(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function wb(e,t,n){var r=xb(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?Cb:Sb,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Tb(e,t,n){var r=Py(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Eb(e,t){return function(){return Tb(this,e,t)}}function Db(e,t){return function(){return Tb(this,e,t.apply(this,arguments))}}function Ob(e,t){return this.each((typeof t==`function`?Db:Eb)(e,t))}function*kb(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var Ab=[null];function jb(e,t){this._groups=e,this._parents=t}function Mb(){return new jb([[document.documentElement]],Ab)}function Nb(){return this}jb.prototype=Mb.prototype={constructor:jb,select:Uv,selectAll:Jv,selectChild:ey,selectChildren:iy,filter:ay,data:py,enter:sy,exit:hy,join:gy,merge:_y,selection:Nb,order:vy,sort:yy,call:xy,nodes:Sy,node:Cy,size:wy,empty:Ty,each:Ey,attr:Ny,style:Ry,property:Uy,classed:Qy,text:nb,html:ob,raise:cb,lower:ub,append:db,insert:pb,remove:hb,clone:vb,datum:yb,on:wb,dispatch:Ob,[Symbol.iterator]:kb};var Pb=Mb;function Fb(e){return typeof e==`string`?new jb([[document.querySelector(e)]],[document.documentElement]):new jb([[e]],Ab)}function Ib(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Lb(e,t){if(e=Ib(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const Rb={capture:!0,passive:!1};function zb(e){e.preventDefault(),e.stopImmediatePropagation()}function Bb(e){var t=e.document.documentElement,n=Fb(e).on(`dragstart.drag`,zb,Rb);`onselectstart`in t?n.on(`selectstart.drag`,zb,Rb):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function Vb(e,t){var n=e.document.documentElement,r=Fb(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,zb,Rb),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Hb(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ub(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Wb(){}var Gb=.7,Kb=1/Gb,qb=`\\s*([+-]?\\d+)\\s*`,Jb=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,Yb=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Xb=/^#([0-9a-f]{3,8})$/,Zb=RegExp(`^rgb\\(${qb},${qb},${qb}\\)$`),Qb=RegExp(`^rgb\\(${Yb},${Yb},${Yb}\\)$`),$b=RegExp(`^rgba\\(${qb},${qb},${qb},${Jb}\\)$`),ex=RegExp(`^rgba\\(${Yb},${Yb},${Yb},${Jb}\\)$`),tx=RegExp(`^hsl\\(${Jb},${Yb},${Yb}\\)$`),nx=RegExp(`^hsla\\(${Jb},${Yb},${Yb},${Jb}\\)$`),rx={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};Hb(Wb,cx,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ix,formatHex:ix,formatHex8:ax,formatHsl:ox,formatRgb:sx,toString:sx});function ix(){return this.rgb().formatHex()}function ax(){return this.rgb().formatHex8()}function ox(){return xx(this).formatHsl()}function sx(){return this.rgb().formatRgb()}function cx(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Xb.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?lx(t):n===3?new px(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ux(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ux(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=Zb.exec(e))?new px(t[1],t[2],t[3],1):(t=Qb.exec(e))?new px(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=$b.exec(e))?ux(t[1],t[2],t[3],t[4]):(t=ex.exec(e))?ux(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=tx.exec(e))?bx(t[1],t[2]/100,t[3]/100,1):(t=nx.exec(e))?bx(t[1],t[2]/100,t[3]/100,t[4]):rx.hasOwnProperty(e)?lx(rx[e]):e===`transparent`?new px(NaN,NaN,NaN,0):null}function lx(e){return new px(e>>16&255,e>>8&255,e&255,1)}function ux(e,t,n,r){return r<=0&&(e=t=n=NaN),new px(e,t,n,r)}function dx(e){return e instanceof Wb||(e=cx(e)),e?(e=e.rgb(),new px(e.r,e.g,e.b,e.opacity)):new px}function fx(e,t,n,r){return arguments.length===1?dx(e):new px(e,t,n,r??1)}function px(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Hb(px,fx,Ub(Wb,{brighter(e){return e=e==null?Kb:Kb**+e,new px(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Gb:Gb**+e,new px(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new px(vx(this.r),vx(this.g),vx(this.b),_x(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:mx,formatHex:mx,formatHex8:hx,formatRgb:gx,toString:gx}));function mx(){return`#${yx(this.r)}${yx(this.g)}${yx(this.b)}`}function hx(){return`#${yx(this.r)}${yx(this.g)}${yx(this.b)}${yx((isNaN(this.opacity)?1:this.opacity)*255)}`}function gx(){let e=_x(this.opacity);return`${e===1?`rgb(`:`rgba(`}${vx(this.r)}, ${vx(this.g)}, ${vx(this.b)}${e===1?`)`:`, ${e})`}`}function _x(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function vx(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function yx(e){return e=vx(e),(e<16?`0`:``)+e.toString(16)}function bx(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Cx(e,t,n,r)}function xx(e){if(e instanceof Cx)return new Cx(e.h,e.s,e.l,e.opacity);if(e instanceof Wb||(e=cx(e)),!e)return new Cx;if(e instanceof Cx)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 Cx(o,s,c,e.opacity)}function Sx(e,t,n,r){return arguments.length===1?xx(e):new Cx(e,t,n,r??1)}function Cx(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Hb(Cx,Sx,Ub(Wb,{brighter(e){return e=e==null?Kb:Kb**+e,new Cx(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Gb:Gb**+e,new Cx(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 px(Ex(e>=240?e-240:e+120,i,r),Ex(e,i,r),Ex(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Cx(wx(this.h),Tx(this.s),Tx(this.l),_x(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=_x(this.opacity);return`${e===1?`hsl(`:`hsla(`}${wx(this.h)}, ${Tx(this.s)*100}%, ${Tx(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function wx(e){return e=(e||0)%360,e<0?e+360:e}function Tx(e){return Math.max(0,Math.min(1,e||0))}function Ex(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 Dx=e=>()=>e;function Ox(e,t){return function(n){return e+n*t}}function kx(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Ax(e){return(e=+e)==1?jx:function(t,n){return n-t?kx(t,n,e):Dx(isNaN(t)?n:t)}}function jx(e,t){var n=t-e;return n?Ox(e,n):Dx(isNaN(e)?t:e)}var Mx=(function e(t){var n=Ax(t);function r(e,t){var r=n((e=fx(e)).r,(t=fx(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=jx(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 Nx(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Px=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Fx=new RegExp(Px.source,`g`);function Ix(e){return function(){return e}}function Lx(e){return function(t){return e(t)+``}}function Rx(e,t){var n=Px.lastIndex=Fx.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Px.exec(e))&&(i=Fx.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:Nx(r,i)})),n=Fx.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Lx(c[0].x):Ix(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(``)})}var zx=180/Math.PI,Bx={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Vx(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*zx,skewX:Math.atan(c)*zx,scaleX:o,scaleY:s}}var Hx;function Ux(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Bx:Vx(t.a,t.b,t.c,t.d,t.e,t.f)}function Wx(e){return e==null||(Hx||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Hx.setAttribute(`transform`,e),!(e=Hx.transform.baseVal.consolidate()))?Bx:(e=e.matrix,Vx(e.a,e.b,e.c,e.d,e.e,e.f))}function Gx(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:Nx(e,i)},{i:c-2,x:Nx(r,a)})}else (i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:Nx(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:Nx(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:Nx(e,n)},{i:s-2,x:Nx(t,r)})}else (n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var Kx=Gx(Ux,`px, `,`px)`,`deg)`),qx=Gx(Wx,`, `,`)`,`)`),Jx=1e-12;function Yx(e){return((e=Math.exp(e))+1/e)/2}function Xx(e){return((e=Math.exp(e))-1/e)/2}function Zx(e){return((e=Math.exp(2*e))-1)/(e+1)}var Qx=(function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<Jx)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=Yx(y),c=s/(n*g)*(i*Zx(t*r+y)-Xx(y));return[a+c*d,o+c*f,s*i/Yx(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i})(Math.SQRT2,2,4),$x=0,eS=0,tS=0,nS=1e3,rS,iS,aS=0,oS=0,sS=0,cS=typeof performance==`object`&&performance.now?performance:Date,lS=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function uS(){return oS||=(lS(dS),cS.now()+sS)}function dS(){oS=0}function fS(){this._call=this._time=this._next=null}fS.prototype=pS.prototype={constructor:fS,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?uS():+n)+(t==null?0:+t),!this._next&&iS!==this&&(iS?iS._next=this:rS=this,iS=this),this._call=e,this._time=n,vS()},stop:function(){this._call&&(this._call=null,this._time=1/0,vS())}};function pS(e,t,n){var r=new fS;return r.restart(e,t,n),r}function mS(){uS(),++$x;for(var e=rS,t;e;)(t=oS-e._time)>=0&&e._call.call(void 0,t),e=e._next;--$x}function hS(){oS=(aS=cS.now())+sS,$x=eS=0;try{mS()}finally{$x=0,_S(),oS=0}}function gS(){var e=cS.now(),t=e-aS;t>nS&&(sS-=t,aS=e)}function _S(){for(var e,t=rS,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:rS=n);iS=e,vS(r)}function vS(e){$x||(eS&&=clearTimeout(eS),e-oS>24?(e<1/0&&(eS=setTimeout(hS,e-cS.now()-sS)),tS&&=clearInterval(tS)):(tS||=(aS=cS.now(),setInterval(gS,nS)),$x=1,lS(hS)))}function yS(e,t,n){var r=new fS;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var bS=Fv(`start`,`end`,`cancel`,`interrupt`),xS=[];function SS(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;ES(e,n,{name:t,index:r,group:i,on:bS,tween:xS,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function CS(e,t){var n=TS(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function wS(e,t){var n=TS(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function TS(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function ES(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=pS(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return yS(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(yS(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function DS(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function OS(e){return this.each(function(){DS(this,e)})}function kS(e,t){var n,r;return function(){var i=wS(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function AS(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=wS(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function jS(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=TS(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?kS:AS)(n,e,t))}function MS(e,t,n){var r=e._id;return e.each(function(){var e=wS(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return TS(e,r).value[t]}}function NS(e,t){var n;return(typeof t==`number`?Nx:t instanceof cx?Mx:(n=cx(t))?(t=n,Mx):Rx)(e,t)}function PS(e){return function(){this.removeAttribute(e)}}function FS(e){return function(){this.removeAttributeNS(e.space,e.local)}}function IS(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function LS(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function RS(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function zS(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function BS(e,t){var n=Lv(e),r=n===`transform`?qx:NS;return this.attrTween(e,typeof t==`function`?(n.local?zS:RS)(n,r,MS(this,`attr.`+e,t)):t==null?(n.local?FS:PS)(n):(n.local?LS:IS)(n,r,t))}function VS(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function HS(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function US(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&HS(e,i)),n}return i._value=t,i}function WS(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&VS(e,i)),n}return i._value=t,i}function GS(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=Lv(e);return this.tween(n,(r.local?US:WS)(r,t))}function KS(e,t){return function(){CS(this,e).delay=+t.apply(this,arguments)}}function qS(e,t){return t=+t,function(){CS(this,e).delay=t}}function JS(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?KS:qS)(t,e)):TS(this.node(),t).delay}function YS(e,t){return function(){wS(this,e).duration=+t.apply(this,arguments)}}function XS(e,t){return t=+t,function(){wS(this,e).duration=t}}function ZS(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?YS:XS)(t,e)):TS(this.node(),t).duration}function QS(e,t){if(typeof t!=`function`)throw Error();return function(){wS(this,e).ease=t}}function $S(e){var t=this._id;return arguments.length?this.each(QS(t,e)):TS(this.node(),t).ease}function eC(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();wS(this,e).ease=n}}function tC(e){if(typeof e!=`function`)throw Error();return this.each(eC(this._id,e))}function nC(e){typeof e!=`function`&&(e=Yv(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new jC(r,this._parents,this._name,this._id)}function rC(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new jC(o,this._parents,this._name,this._id)}function iC(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function aC(e,t,n){var r,i,a=iC(t)?CS:wS;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function oC(e,t){var n=this._id;return arguments.length<2?TS(this.node(),n).on.on(e):this.each(aC(n,e,t))}function sC(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function cC(){return this.on(`end.remove`,sC(this._id))}function lC(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Hv(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,SS(l[f],t,n,f,l,TS(u,n)));return new jC(a,this._parents,t,n)}function uC(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Kv(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=TS(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&SS(p,t,n,h,f,m);a.push(f),o.push(u)}return new jC(a,o,t,n)}var dC=Pb.prototype.constructor;function fC(){return new dC(this._groups,this._parents)}function pC(e,t){var n,r,i;return function(){var a=zy(this,e),o=(this.style.removeProperty(e),zy(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function mC(e){return function(){this.style.removeProperty(e)}}function hC(e,t,n){var r,i=n+``,a;return function(){var o=zy(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function gC(e,t,n){var r,i,a;return function(){var o=zy(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),zy(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function _C(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=wS(this,e),l=c.on,u=c.value[a]==null?s||=mC(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function vC(e,t,n){var r=(e+=``)==`transform`?Kx:NS;return t==null?this.styleTween(e,pC(e,r)).on(`end.style.`+e,mC(e)):typeof t==`function`?this.styleTween(e,gC(e,r,MS(this,`style.`+e,t))).each(_C(this._id,e)):this.styleTween(e,hC(e,r,t),n).on(`end.style.`+e,null)}function yC(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function bC(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&yC(e,a,n)),r}return a._value=t,a}function xC(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,bC(e,t,n??``))}function SC(e){return function(){this.textContent=e}}function CC(e){return function(){this.textContent=e(this)??``}}function wC(e){return this.tween(`text`,typeof e==`function`?CC(MS(this,`text`,e)):SC(e==null?``:e+``))}function TC(e){return function(t){this.textContent=e.call(this,t)}}function EC(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&TC(r)),t}return r._value=e,r}function DC(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,EC(e))}function OC(){for(var e=this._name,t=this._id,n=NC(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=TS(c,t);SS(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new jC(r,this._parents,e,n)}function kC(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=wS(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var AC=0;function jC(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function MC(e){return Pb().transition(e)}function NC(){return++AC}var PC=Pb.prototype;jC.prototype=MC.prototype={constructor:jC,select:lC,selectAll:uC,selectChild:PC.selectChild,selectChildren:PC.selectChildren,filter:nC,merge:rC,selection:fC,transition:OC,call:PC.call,nodes:PC.nodes,node:PC.node,size:PC.size,empty:PC.empty,each:PC.each,on:oC,attr:BS,attrTween:GS,style:vC,styleTween:xC,text:wC,textTween:DC,remove:cC,tween:jS,delay:JS,duration:ZS,ease:$S,easeVarying:tC,end:kC,[Symbol.iterator]:PC[Symbol.iterator]};function FC(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var IC={time:null,delay:0,duration:250,ease:FC};function LC(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function RC(e){var t,n;e instanceof jC?(t=e._id,e=e._name):(t=NC(),(n=IC).time=uS(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&SS(c,e,t,l,o,n||LC(c,t));return new jC(r,this._parents,e,t)}Pb.prototype.interrupt=OS,Pb.prototype.transition=RC;var zC=e=>()=>e;function BC(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function VC(e,t,n){this.k=e,this.x=t,this.y=n}VC.prototype={constructor:VC,scale:function(e){return e===1?this:new VC(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new VC(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var HC=new VC(1,0,0);UC.prototype=VC.prototype;function UC(e){for(;!e.__zoom;)if(!(e=e.parentNode))return HC;return e.__zoom}function WC(e){e.stopImmediatePropagation()}function GC(e){e.preventDefault(),e.stopImmediatePropagation()}function KC(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function qC(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute(`viewBox`)?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function JC(){return this.__zoom||HC}function YC(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function XC(){return navigator.maxTouchPoints||`ontouchstart`in this}function ZC(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function QC(){var e=KC,t=qC,n=ZC,r=YC,i=XC,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=Qx,l=Fv(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,JC).on(`wheel.zoom`,w,{passive:!1}).on(`mousedown.zoom`,T).on(`dblclick.zoom`,E).filter(i).on(`touchstart.zoom`,D).on(`touchmove.zoom`,O).on(`touchend.zoom touchcancel.zoom`,k).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}_.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,JC),e===i?i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):x(e,t,n,r)},_.scaleBy=function(e,t,n,r){_.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},_.scaleTo=function(e,r,i,a){_.transform(e,function(){var e=t.apply(this,arguments),a=this.__zoom,s=i==null?b(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(s),l=typeof r==`function`?r.apply(this,arguments):r;return n(y(v(a,l),s,c),e,o)},i,a)},_.translateBy=function(e,r,i,a){_.transform(e,function(){return n(this.__zoom.translate(typeof r==`function`?r.apply(this,arguments):r,typeof i==`function`?i.apply(this,arguments):i),t.apply(this,arguments),o)},null,a)},_.translateTo=function(e,r,i,a,s){_.transform(e,function(){var e=t.apply(this,arguments),s=this.__zoom,c=a==null?b(e):typeof a==`function`?a.apply(this,arguments):a;return n(HC.translate(c[0],c[1]).scale(s.k).translate(typeof r==`function`?-r.apply(this,arguments):-r,typeof i==`function`?-i.apply(this,arguments):-i),e,o)},a,s)};function v(e,t){return t=Math.max(a[0],Math.min(a[1],t)),t===e.k?e:new VC(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new VC(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,n,r,i){e.on(`start.zoom`,function(){S(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){S(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=S(e,a).event(i),s=t.apply(e,a),l=r==null?b(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof n==`function`?n.apply(e,a):n,p=c(d.invert(l).concat(u/d.k),f.invert(l).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new VC(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function S(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=Fb(this.that).datum();l.call(e,this.that,new BC(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function w(t,...i){if(!e.apply(this,arguments))return;var s=S(this,i).event(t),c=this.__zoom,l=Math.max(a[0],Math.min(a[1],c.k*2**r.apply(this,arguments))),u=Lb(t);if(s.wheel)(s.mouse[0][0]!==u[0]||s.mouse[0][1]!==u[1])&&(s.mouse[1]=c.invert(s.mouse[0]=u)),clearTimeout(s.wheel);else if(c.k===l)return;else s.mouse=[u,c.invert(u)],DS(this),s.start();GC(t),s.wheel=setTimeout(d,m),s.zoom(`mouse`,n(y(v(c,l),s.mouse[0],s.mouse[1]),s.extent,o));function d(){s.wheel=null,s.end()}}function T(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=Fb(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=Lb(t,i),l=t.clientX,u=t.clientY;Bb(t.view),WC(t),a.mouse=[c,this.__zoom.invert(c)],DS(this),a.start();function d(e){if(GC(e),!a.moved){var t=e.clientX-l,r=e.clientY-u;a.moved=t*t+r*r>h}a.event(e).zoom(`mouse`,n(y(a.that.__zoom,a.mouse[0]=Lb(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),Vb(e.view,a.moved),GC(e),a.event(e).end()}}function E(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=Lb(r.changedTouches?r.changedTouches[0]:r,this),l=a.invert(c),u=a.k*(r.shiftKey?.5:2),d=n(y(v(a,u),c,l),t.apply(this,i),o);GC(r),s>0?Fb(this).transition().duration(s).call(x,d,c,r):Fb(this).call(_.transform,d,c,r)}}function D(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=S(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(WC(t),s=0;s<i;++s)c=r[s],l=Lb(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!u);u&&=clearTimeout(u),o&&(a.taps<2&&(d=l[0],u=setTimeout(function(){u=null},p)),DS(this),a.start())}}function O(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for(GC(e),s=0;s<a;++s)c=i[s],l=Lb(c,this),r.touch0&&r.touch0[2]===c.identifier?r.touch0[0]=l:r.touch1&&r.touch1[2]===c.identifier&&(r.touch1[0]=l);if(c=r.that.__zoom,r.touch1){var d=r.touch0[0],f=r.touch0[1],p=r.touch1[0],m=r.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=v(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(r.touch0)l=r.touch0[0],u=r.touch0[1];else return;r.zoom(`touch`,n(y(c,l,u),r.extent,o))}}function k(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(WC(e),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=Lb(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=Fb(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:zC(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:zC(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:zC(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:zC([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),_):t},_.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],_):[a[0],a[1]]},_.translateExtent=function(e){return arguments.length?(o[0][0]=+e[0][0],o[1][0]=+e[1][0],o[0][1]=+e[0][1],o[1][1]=+e[1][1],_):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},_.constrain=function(e){return arguments.length?(n=e,_):n},_.duration=function(e){return arguments.length?(s=+e,_):s},_.interpolate=function(e){return arguments.length?(c=e,_):c},_.on=function(){var e=l.on.apply(l,arguments);return e===l?_:e},_.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,_):Math.sqrt(h)},_.tapDistance=function(e){return arguments.length?(g=+e,_):g},_}function $C(e,t,n){let r=(e*n.k-e)/2,i=(t*n.k-t)/2;return ng(e/2-(r+n.x)/n.k,t/2-(i+n.y)/n.k)}function ew({mapRef:e,enableZoom:t=!0,enablePan:n=!0,width:r,height:i,projection:a,scaleExtent:o,translateExtent:s,filterZoomEvent:c,onZoom:l,onZoomStart:u,onZoomEnd:d,onMove:f,bypassEvents:p}){let m=(0,j.useRef)(void 0),[h,g]=(0,j.useState)(0),[_,v]=(0,j.useState)(null),y=(0,j.useRef)(new Set),b=(0,j.useRef)(new WeakMap),x=(0,j.useRef)(!1),[S,C]=o,[w,T]=s,[E,D]=w,[O,k]=T,ee=(0,j.useCallback)(e=>{if(p.current)return;let{transform:t,sourceEvent:n}=e;if(l&&l({x:t.x,y:t.y,k:t.k},n),!f)return;let o=$C(r,i,t),s=a.invert?.(o);s?.every(Number.isFinite)&&f({coordinates:tw(s[0],s[1]),zoom:t.k},e.sourceEvent||e)},[l,f,r,i,a,p]),A=(0,j.useRef)({handleZoom:ee,onZoomStart:u,onZoomEnd:d,filterZoomEvent:c});return(0,j.useLayoutEffect)(()=>{A.current={handleZoom:ee,onZoomStart:u,onZoomEnd:d,filterZoomEvent:c},_!==e.current&&v(e.current)}),(0,j.useEffect)(()=>{function e(e){let t=b.current.get(e.sourceEvent);return t?{...e,sourceEvent:t}:e}function o(n){n=e(n),t||T.scaleExtent([n.transform.k,n.transform.k]);let o=A.current.onZoomStart;if(!o||p.current)return;let s=$C(r,i,n.transform),l=a.invert?.(s);if(l?.every(Number.isFinite))try{o({coordinates:tw(l[0],l[1]),zoom:n.transform.k},n.sourceEvent||n)}finally{v&&(w=UC(c))}}let s=y.current;if(s.clear(),!_)return;let c=_,l=Fb(c),u=new Set,d=new Map,f,h,v=!1,w=UC(c),T=QC().extent([[0,0],[r,i]]).filter(function(e){if(e.type===`touchcancel`||!t&&!n)return!1;let r=e.type===`wheel`||e.type===`dblclick`||e.type===`touchend`;if(r&&!t||!n&&!r&&e.type!==`touchstart`)return!1;let i=b.current.get(e)??e,a=i,o=A.current.filterZoomEvent,l=o?o(i):!(a.ctrlKey&&e.type!==`wheel`||a.button);if(v)return!1;if(l&&e.type===`touchstart`)for(let e of Array.from(i.changedTouches))c.contains(e.target)&&s.add(e.identifier);return l}).scaleExtent([S,C]).translateExtent([[E,D],[O,k]]).on(`start`,function(e){e.sourceEvent?.type===`mousedown`&&h&&Reflect.set(h.root,`__noselect`,h.value);let t=c.__zooming;if(t&&(u.add(t),e.sourceEvent?.type===`mousedown`)){let n=e.sourceEvent.view,r=n&&Fb(n).on(`mouseup.zoom`);n&&r&&d.set(n,{gesture:t,mouseup:r})}if(!x.current){if(!n&&e.sourceEvent?.type===`touchstart`&&e.sourceEvent.touches.length===1)return f=e,void 0;f=void 0,o(e)}}).on(`zoom`,function(t){if(!v&&!x.current){if(f){let e=f;f=void 0,o(e)}v||A.current.handleZoom(e(t))}}).on(`end`,function(t){for(let e of u)e.active===0&&u.delete(e);if(x.current)return;if(f)return f=void 0,void 0;if(p.current)return;t=e(t);let n=$C(r,i,t.transform),o=a.invert?.(n);if(o?.every(Number.isFinite)){let[e,n]=o,r=A.current.onZoomEnd;if(!r)return;r({coordinates:tw(e,n),zoom:t.transform.k},t.sourceEvent||t)}});if(n||T.constrain(e=>{let t=UC(c),n=e.k/t.k;return HC.translate(r/2-(r/2-t.x)*n,i/2-(i/2-t.y)*n).scale(e.k)}),!t){let e=UC(c).k;T.scaleExtent([e,e])}m.current=T,l.call(T);let ee=l.on(`wheel.zoom`);l.on(`wheel.zoom`,function(e,t){try{ee?.call(this,e,t)}finally{if(v){for(let e of u)e.wheel&&clearTimeout(e.wheel);l.property(`__zoom`,w)}}},{passive:!1});let j=l.on(`mousedown.zoom`);if(l.on(`mousedown.zoom`,function(e,t){let n=e.view?.document.documentElement;h=n&&Reflect.has(n,`__noselect`)?{root:n,value:Reflect.get(n,`__noselect`)}:void 0;try{j?.call(this,e,t)}finally{h=void 0}}),n||t)for(let e of[`touchstart`,`touchmove`,`touchend`,`touchcancel`]){let t=l.on(`${e}.zoom`);t&&l.on(`${e}.zoom`,function(r,i){if(e!==`touchstart`&&!Array.from(r.changedTouches).some(e=>s.has(e.identifier)))return;let a=!n&&e===`touchmove`&&Array.from(r.touches).filter(e=>s.has(e.identifier)).length<2,o=new Proxy(r,{get(e,t){if(t===`touches`||t===`changedTouches`||t===`targetTouches`)return Array.from(e[t]).filter(e=>s.has(e.identifier));if(a&&(t===`preventDefault`||t===`stopImmediatePropagation`))return()=>{};let n=Reflect.get(e,t,e);return typeof n==`function`?n.bind(e):n}});b.current.set(o,r);try{if(a){if(s.size===0)return;x.current=!0}t.call(this,o,i),a&&T.transform(l,UC(c))}finally{if(a&&(x.current=!1),e===`touchend`||e===`touchcancel`)for(let e of Array.from(r.changedTouches))s.delete(e.identifier)}},{passive:!1})}for(let e of[`touchend`,`touchcancel`]){let t=l.on(`${e}.zoom`);t&&l.on(`${e}.zoom`,function(n,r){let i=c.__zooming;(i?.touch0||i?.touch1)&&(t.call(this,n,r),e!==`touchcancel`||i.touch0||i.touch1||g(e=>e+1))},{passive:!1})}return()=>{v=!0,w=UC(c),T.on(`start zoom end`,null),l.on(`.zoom`,null),T.transform(l,UC(c));for(let e of u)e.wheel&&clearTimeout(e.wheel);for(let[e,{gesture:t,mouseup:n}]of d){if(Fb(e).on(`mouseup.zoom`)!==n)continue;t.moved=!1;let r=new MouseEvent(`mouseup`);Object.defineProperty(r,`view`,{value:e}),n.call(e,r,Fb(e).datum())}c.__zooming&&u.has(c.__zooming)&&delete c.__zooming,s.clear(),m.current===T&&(m.current=void 0)}},[_,h,t,n,r,i,E,D,O,k,S,C,a,e,p]),{zoomRef:m,handleZoom:ee}}var tw=(e,t)=>[e,t];function nw({mapRef:e,zoomRef:t,width:n,height:r,projection:i,center:a,zoom:o,bypassEvents:s,onPositionChange:c,startTransition:l}){let u=(0,j.useRef)({x:0,y:0,k:1}),d=(0,j.useRef)(null),f=(0,j.useCallback)((a,o)=>{let[f,p]=a,m=i([f,p]);if(!m?.every(Number.isFinite)||!e.current||!t.current)return;let h=m[0]*o,g=m[1]*o,_=Fb(e.current);s.current=!0,l(()=>{try{t.current&&_.call(t.current.transform,HC.translate(n/2-h,r/2-g).scale(o))}finally{s.current=!1}c&&c({x:n/2-h,y:r/2-g,k:o})}),u.current={x:f,y:p,k:o},d.current={width:n,height:r,projection:i,element:e.current}},[i,e,t,s,l,n,r,c]);return(0,j.useEffect)(()=>{let[t,s]=a;t===u.current.x&&s===u.current.y&&o===u.current.k&&n===d.current?.width&&r===d.current?.height&&i===d.current?.projection&&e.current===d.current?.element||f(a,o)},[e,a,o,n,r,i,l,f]),{lastPosition:u,programmaticMove:f}}function rw({initialPosition:e={x:0,y:0,k:1},transitionPriority:t=`normal`,deferredUpdateThreshold:n=16}={}){let[r,i]=(0,j.useTransition)(),[a,o]=(0,j.useState)(0),[s,c]=(0,j.useState)(0),[l,u]=(0,j.useState)(e),[d,f]=(0,j.useState)(e),p=(0,j.useDeferredValue)(d,e),m=p!==d,h=(0,j.useMemo)(()=>{let e=d.dragging?d:p;return`translate(${e.x} ${e.y}) scale(${e.k})`},[p,d]);return{position:l,smoothPosition:p,optimisticPosition:d,setPosition:(0,j.useCallback)(e=>{let t=performance.now(),r=t-s;o(e=>e+1),c(t),f(e),r<n?i(()=>{u(e)}):u(e)},[s,n,i]),setOptimisticPosition:f,isPending:r,startTransition:i,transformString:h,isDeferred:m,updateCount:a}}function iw({center:e,filterZoomEvent:t,onMoveStart:n,onMoveEnd:r,onMove:i,translateExtent:a=ig(ng(-1/0,-1/0),ng(1/0,1/0)),scaleExtent:o=rg(1,8),zoom:s=1},{enableZoom:c=!0,enablePan:l=!0}={}){let{width:u,height:d,projection:f}=wg(),p=(0,j.useDeferredValue)(e),m=(0,j.useDeferredValue)(s),h=f(e),g=h?.every(Number.isFinite)?{x:u/2-h[0]*s,y:d/2-h[1]*s,k:s}:{x:0,y:0,k:1},[,_]=(0,j.useState)(null),[v]=(0,j.useState)(()=>{let e=null;return{get current(){return e},set current(t){e!==t&&(e=t,_(t))}}}),y=(0,j.useRef)(!1),{smoothPosition:b,setPosition:x,setOptimisticPosition:S,isPending:C,startTransition:w,transformString:T}=rw({initialPosition:g}),{zoomRef:E}=ew({mapRef:v,enableZoom:c,enablePan:l,width:u,height:d,projection:f,scaleExtent:o,translateExtent:a,onZoomStart:n,onZoomEnd:r,onMove:i,bypassEvents:y,onZoom:(e,t)=>{let n={x:e.x,y:e.y,k:e.k,dragging:t};S(n),w(()=>{x(n)})},...t&&{filterZoomEvent:t}});return nw({mapRef:v,zoomRef:E,width:u,height:d,projection:f,center:p,zoom:m,bypassEvents:y,onPositionChange:e=>{x(e)},startTransition:w}),{mapRef:v,position:b,transformString:T,isPending:C}}function aw(e){let{center:t=ng(0,0),zoom:n=1,filterZoomEvent:r,onMoveStart:i,onMove:a,onMoveEnd:o,className:s=``,children:c,ref:l,minZoom:u,maxZoom:d,enableZoom:f=!0,enablePan:p=!0,scaleExtent:m,translateExtent:h,...g}=e,{width:_,height:v}=wg(),y,b,x;if(function(e){return`enableZoom`in e||`enablePan`in e||`minZoom`in e&&`maxZoom`in e&&!(`scaleExtent`in e)}(e))y=e.minZoom??1,b=e.maxZoom??8,x=e.translateExtent??(!1===e.enablePan?void 0:ig(ng(-1/0,-1/0),ng(1/0,1/0)));else{let t=e;y=t.minZoom??1,b=t.maxZoom??8,x=t.translateExtent}let S=m??rg(y,b),{mapRef:C,transformString:w,position:T}=iw({center:t,...r&&{filterZoomEvent:r},...i&&{onMoveStart:i},...a&&{onMove:a},...o&&{onMoveEnd:o},scaleExtent:S,...x&&{translateExtent:x},zoom:n},{enableZoom:f,enablePan:p});return(0,yr.jsx)(Ov,{value:{x:T.x,y:T.y,k:T.k,transformString:w},children:(0,yr.jsxs)(`g`,{ref:C,children:[(0,yr.jsx)(`rect`,{width:_,height:v,fill:`transparent`}),(0,yr.jsx)(`g`,{ref:l,transform:w,className:`rsm-zoomable-group ${s}`,...g,children:c})]})})}aw.displayName=`ZoomableGroup`;function ow({projectedCoords:e,children:t,onMouseEnter:n,onMouseLeave:r,onMouseDown:i,onMouseUp:a,onFocus:o,onBlur:s,style:c={},className:l=``,ref:u,...d}){let[f,p]=(0,j.useState)(!1),[m,h]=(0,j.useState)(!1),[g,_]=(0,j.useState)(!1),v=(0,j.useCallback)(e=>{h(!0),n&&n(e)},[n]),y=(0,j.useCallback)(e=>{h(!1),f&&p(!1),r&&r(e)},[r,f]),b=(0,j.useCallback)(e=>{_(!0),o&&o(e)},[o]),x=(0,j.useCallback)(e=>{_(!1),f&&p(!1),s&&s(e)},[s,f]),S=(0,j.useCallback)(e=>{p(!0),i&&i(e)},[i]),C=(0,j.useCallback)(e=>{p(!1),a&&a(e)},[a]),w=(0,j.useMemo)(()=>f?`pressed`:g?`focused`:m?`hover`:`default`,[f,g,m]),T=(0,j.useMemo)(()=>c?.[w],[c,w]);return(0,yr.jsx)(`g`,{ref:u,transform:(0,j.useMemo)(()=>{let[t,n]=e;return`translate(${t}, ${n})`},[e]),className:`rsm-marker ${l}`,onMouseEnter:v,onMouseLeave:y,onFocus:b,onBlur:x,onMouseDown:S,onMouseUp:C,style:T,...d,children:t})}function sw({coordinates:e,...t}){let{projection:n}=wg(),r=(0,j.useMemo)(()=>{let t=n(e);return t?.every(Number.isFinite)?t:null},[n,e]);return r?(0,yr.jsx)(ow,{...t,projectedCoords:r}):null}sw.displayName=`Marker`;var cw=(0,j.memo)(sw),lw=n((e=>{var t=r();typeof Object.is==`function`&&Object.is,t.useSyncExternalStore,t.useRef,t.useEffect,t.useMemo,t.useDebugValue}));n(((e,t)=>{t.exports=lw()}))();function uw(e){e()}function dw(){let e=null,t=null;return{clear(){e=null,t=null},notify(){uw(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var fw={notify(){},get:()=>[]};function pw(e,t){let n,r=fw,i=0,a=!1;function o(e){u();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),d())}}function s(){r.notify()}function c(){m.onStateChange&&m.onStateChange()}function l(){return a}function u(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=dw())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=fw)}function f(){a||(a=!0,u())}function p(){a&&(a=!1,d())}let m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:l,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}var mw=(()=>typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0)(),hw=(()=>typeof navigator<`u`&&navigator.product===`ReactNative`)(),gw=(()=>mw||hw?j.useLayoutEffect:j.useEffect)();function _w(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function vw(e,t){if(_w(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!_w(e[n[r]],t[n[r]]))return!1;return!0}Object.prototype;var yw=Symbol.for(`react-redux-context`),bw=typeof globalThis<`u`?globalThis:{};function xw(){if(!j.createContext)return{};let e=bw[yw]??=new Map,t=e.get(j.createContext);return t||(t=j.createContext(null),e.set(j.createContext,t)),t}var Sw=xw();function Cw(e){let{children:t,context:n,serverState:r,store:i}=e,a=j.useMemo(()=>({store:i,subscription:pw(i),getServerState:r?()=>r:void 0}),[i,r]),o=j.useMemo(()=>i.getState(),[i]);gw(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,o]);let s=n||Sw;return j.createElement(s.Provider,{value:a},t)}var ww=Cw;export{kl as $,ke as $t,bu as A,ts as At,tu as B,Zr as Bt,Pu as C,Fc as Ct,Eu as D,Dc as Dt,Ou as E,kc as Et,uu as F,No as Ft,Gl as G,pr as Gt,Zl as H,br as Ht,lu as I,na as It,zl as J,dr as Jt,Ul as K,gr as Kt,su as L,Hi as Lt,gu as M,is as Mt,mu as N,Oo as Nt,wu as O,Tc as Ot,fu as P,jo as Pt,jl as Q,ze as Qt,au as R,Gr as Rt,Iu as S,Lc as St,Au as T,jc as Tt,Yl as U,vr as Ut,$l as V,$r as Vt,ql as W,hr as Wt,Fl as X,mr as Xt,Ll as Y,fr as Yt,Nl as Z,qn as Zt,Ku as _,qc as _t,Rx as a,_l as at,Bu as b,Vc as bt,Dx as c,dl as ct,hv as d,al as dt,ce as en,Dl as et,jg as f,rl as ft,Ju as g,Yc as gt,Qu as h,Zc as ht,aw as i,u as in,yl as it,vu as j,ns as jt,Su as k,Gs as kt,cx as l,ll as lt,ng as m,$c as mt,vw as n,A as nn,Cl as nt,Nx as o,hl as ot,ig as p,tl as pt,Vl as q,_r as qt,cw as r,f as rn,xl as rt,Mx as s,pl as st,ww as t,ie as tn,Tl as tt,Tv as u,sl as ut,Wu as v,Gc as vt,Mu as w,Nc as wt,Ru as x,zc as xt,Hu as y,Uc as yt,ru as z,Yr as zt};
11
+ Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=Oo(),d;if(t){let e=typeof t==`string`?ma(t):t;I(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):_a(e,{pathname:p});la(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),la(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=Uo(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Ka([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Ka([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?j.createElement(vo.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function Lo(){let e=Xo(),t=Qa(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=j.createElement(j.Fragment,null,j.createElement(`p`,null,`💿 Hey developer 👋`),j.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,j.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,j.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),j.createElement(j.Fragment,null,j.createElement(`h2`,null,`Unexpected Application Error!`),j.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?j.createElement(`pre`,{style:i},n):null,o)}var Ro=j.createElement(Lo,null),zo=class extends j.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=To(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:j.createElement(yo.Provider,{value:this.props.routeContext},j.createElement(bo.Provider,{value:e,children:this.props.component}));return this.context?j.createElement(Vo,{error:e},t):t}};zo.contextType=fo;var Bo=new WeakMap;function Vo({children:e,error:t}){let{basename:n,navigator:r}=j.useContext(_o);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=wo(t.digest);if(e){let i=Bo.get(t);if(i)throw i;let a=to(e.location,n),o=a.absoluteURL||a.to;if(oo(e.location,o,ro(r),`allow-explicit`),co(o))throw Error(`Invalid redirect location`);if(eo&&!Bo.get(t))if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw Bo.set(t,n),n}return j.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Ho({routeContext:e,match:t,children:n}){let r=j.useContext(lo);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),j.createElement(yo.Provider,{value:e},n)}function Uo(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);I(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:$a(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Ro,o&&(s<0&&c===0?($o(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?j.createElement(n.route.Component,null):n.route.element?n.route.element:e,j.createElement(Ho,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?j.createElement(zo,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Wo(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Go(e){let t=j.useContext(lo);return I(t,Wo(e)),t}function Ko(e){let t=j.useContext(uo);return I(t,Wo(e)),t}function L(e){let t=j.useContext(yo);return I(t,Wo(e)),t}function R(e){let t=L(e),n=t.matches[t.matches.length-1];return I(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function qo(){return R(`useRouteId`)}function Jo(){let e=Ko(`useNavigation`);return j.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function Yo(){let{matches:e,loaderData:t}=Ko(`useMatches`);return j.useMemo(()=>e.map(e=>ya(e,t)),[e,t])}function Xo(){let e=j.useContext(bo),t=Ko(`useRouteError`),n=R(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Zo(){let{router:e}=Go(`useNavigate`),t=R(`useNavigate`),n=j.useRef(!1);return Ao(()=>{n.current=!0}),j.useCallback(async(r,i={})=>{la(n.current,ko),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Qo={};function $o(e,t,n){!t&&!Qo[e]&&(Qo[e]=!0,la(!1,n))}j.useOptimistic,j.memo(es);function es({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Io(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function ts({to:e,replace:t,state:n,relative:r}){I(Do(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i,navigator:a}=j.useContext(_o);la(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:o}=j.useContext(yo),{pathname:s}=Oo(),c=jo(),l=Wa(e,Ua(o),s,r===`path`);oo(typeof e==`string`?e:pa(e),a.createHref(l),ro(a),`reject`);let u=JSON.stringify(l);return j.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function ns(e){I(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function rs({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){I(!Do(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=j.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=ma(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=j.useMemo(()=>{let e=Ra(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return la(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:j.createElement(_o.Provider,{value:c},j.createElement(vo.Provider,{children:t,value:h}))}function is({children:e,location:t}){return Fo(as(e),t)}function as(e,t=[]){let n=[];return j.Children.forEach(e,(e,r)=>{if(!j.isValidElement(e))return;let i=[...t,r];if(e.type===j.Fragment){n.push.apply(n,as(e.props.children,i));return}I(e.type===ns,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),I(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=as(e.props.children,i)),n.push(a)}),n}var os=`get`,ss=`application/x-www-form-urlencoded`;function cs(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function ls(e){return cs(e)&&e.tagName.toLowerCase()===`button`}function us(e){return cs(e)&&e.tagName.toLowerCase()===`form`}function ds(e){return cs(e)&&e.tagName.toLowerCase()===`input`}function fs(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ps(e,t){return e.button===0&&(!t||t===`_self`)&&!fs(e)}var ms=null;function hs(){if(ms===null)try{new FormData(document.createElement(`form`),0),ms=!1}catch{ms=!0}return ms}var gs=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function _s(e){return e!=null&&!gs.has(e)?(la(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ss}"`),null):e}function vs(e,t){let n,r,i,a,o;if(us(e)){let o=e.getAttribute(`action`);r=o?Ra(o,t):null,n=e.getAttribute(`method`)||os,i=_s(e.getAttribute(`enctype`))||ss,a=new FormData(e)}else if(ls(e)||ds(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Ra(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||os,i=_s(e.getAttribute(`formenctype`))||_s(o.getAttribute(`enctype`))||ss,a=new FormData(o,e),!hs()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(cs(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=os,r=null,i=ss,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var ys={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},bs=/[&><\u2028\u2029]/g;function xs(e){return e.replace(bs,e=>ys[e])}function Ss(e,t){if(e===!1||e==null)throw Error(t)}function Cs(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&Ra(i.pathname,t)===`/`?i.pathname=`${qa(t)}/_root.${r}`:i.pathname=`${qa(i.pathname)}.${r}`,i}async function ws(e,t){if(e.id in t)return t[e.id];try{let n=await a(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ts(e){return e!=null&&typeof e.page==`string`}function Es(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Ds(e,t,n){return Ms((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await ws(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Es).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Os(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function ks(e,t,{includeHydrateFallback:n}={}){return As(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function As(e){return[...new Set(e)]}function js(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Ms(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Ts(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(js(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Ns(){let e=j.useContext(lo);return Ss(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Ps(){let e=j.useContext(uo);return Ss(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Fs=j.createContext(void 0);Fs.displayName=`FrameworkContext`;function Is(){let e=j.useContext(Fs);return Ss(e,`You must render this element inside a <HydratedRouter> element`),e}function Ls(e,t){let n=j.useContext(Fs),[r,i]=j.useState(!1),[a,o]=j.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=j.useRef(null);j.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),j.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Rs(s,p),onBlur:Rs(c,m),onMouseEnter:Rs(l,p),onMouseLeave:Rs(u,m),onTouchStart:Rs(d,p)}]:[a,f,{}]:[!1,f,{}]}function Rs(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function zs({page:e,...t}){let n=po(),{nonce:r}=Is(),{router:i}=Ns(),a=j.useMemo(()=>_a(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?j.createElement(Vs,{page:e,matches:a,...t}):j.createElement(Hs,{page:e,matches:a,...t})):null}function Bs(e){let{manifest:t,routeModules:n}=Is(),[r,i]=j.useState([]);return j.useEffect(()=>{let r=!1;return Ds(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Vs({page:e,matches:t,...n}){let r=Oo(),{future:i}=Is(),{basename:a}=Ns(),o=j.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Cs(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return j.createElement(j.Fragment,null,o.map(e=>j.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Hs({page:e,matches:t,...n}){let r=Oo(),{future:i,manifest:a,routeModules:o}=Is(),{basename:s}=Ns(),{loaderData:c,matches:l}=Ps(),u=j.useMemo(()=>Os(e,t,l,a,r,`data`),[e,t,l,a,r]),d=j.useMemo(()=>Os(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=j.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=Cs(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=j.useMemo(()=>ks(d,a),[d,a]),m=Bs(d);return j.createElement(j.Fragment,null,f.map(e=>j.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>j.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>j.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Us(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var Ws=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Ws&&(window.__reactRouterVersion=`7.18.5`)}catch{}function Gs({basename:e,children:t,useTransitions:n,window:r}){let i=j.useRef();i.current??=ca({window:r,v5Compat:!0});let a=i.current,[o,s]=j.useState({action:a.action,location:a.location}),c=j.useCallback(e=>{n===!1?s(e):j.startTransition(()=>s(e))},[n]);return j.useLayoutEffect(()=>a.listen(c),[a,c]),j.createElement(rs,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function Ks({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=j.useState({action:n.action,location:n.location}),o=j.useCallback(e=>{r===!1?a(e):j.startTransition(()=>a(e))},[r]);return j.useLayoutEffect(()=>n.listen(o),[n,o]),j.createElement(rs,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}Ks.displayName=`unstable_HistoryRouter`;var qs=j.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=j.useContext(_o),v=typeof l==`string`&&ra.test(l),y=to(l,h);l=y.to;let b=Eo(l,{relative:r}),x=Oo(),S=null;if(o){let e=Wa(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Ka([h,e.pathname])),S=g.createHref(e)}let[C,w,T]=Ls(n,p),E=ec(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function D(t){e&&e(t),t.defaultPrevented||E(t)}let O=!(y.isExternal||i),k=j.createElement(`a`,{...p,...T,href:(O?S:void 0)||y.absoluteURL||b,onClick:O?D:e,ref:Us(m,w),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?j.createElement(j.Fragment,null,k,j.createElement(zs,{page:b})):k});qs.displayName=`Link`;var Js=j.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Po(a,{relative:c.relative}),d=Oo(),f=j.useContext(uo),{navigator:p,basename:m}=j.useContext(_o),h=f!=null&&uc(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=Ra(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,w;w=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let T=typeof i==`function`?i(S):i;return j.createElement(qs,{...c,"aria-current":C,className:w,ref:l,style:T,to:a,viewTransition:o},typeof s==`function`?s(S):s)});Js.displayName=`NavLink`;var Ys=j.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=os,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=j.useContext(_o),g=rc(),_=ic(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&ra.test(s);return j.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?j.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});Ys.displayName=`Form`;function Xs({getKey:e,storageKey:t,...n}){let r=j.useContext(Fs),{basename:i}=j.useContext(_o),a=Oo(),o=Yo();cc({getKey:e,storageKey:t});let s=j.useMemo(()=>{if(!r||!e)return null;let t=sc(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return n.nonce==null&&r?.nonce&&(n.nonce=r.nonce),j.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${xs(JSON.stringify(t||ac))}, ${xs(JSON.stringify(s))})`}})}Xs.displayName=`ScrollRestoration`;function Zs(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Qs(e){let t=j.useContext(lo);return I(t,Zs(e)),t}function $s(e){let t=j.useContext(uo);return I(t,Zs(e)),t}function ec(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=jo(),d=Oo(),f=Po(e,{relative:o});return j.useCallback(p=>{if(ps(p,t)){p.preventDefault();let t=n===void 0?pa(d)===pa(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?j.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}var tc=0,nc=()=>`__${String(++tc)}__`;function rc(){let{router:e}=Qs(`useSubmit`),{basename:t}=j.useContext(_o),n=qo(),r=e.fetch,i=e.navigate;return j.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=vs(e,t);a.navigate===!1?await r(a.fetcherKey||nc(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function ic(e,{relative:t}={}){let{basename:n}=j.useContext(_o),r=j.useContext(yo);I(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Po(e||`.`,{relative:t})},o=Oo();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Ka([n,a.pathname])),pa(a)}var ac=`react-router-scroll-positions`,oc={};function sc(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:Ra(e.pathname,n)||e.pathname},t)),i??=e.key,i}function cc({getKey:e,storageKey:t}={}){let{router:n}=Qs(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=$s(`useScrollRestoration`),{basename:a}=j.useContext(_o),o=Oo(),s=Yo(),c=Jo();j.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),lc(j.useCallback(()=>{if(c.state===`idle`){let t=sc(o,s,a,e);oc[t]=window.scrollY}try{sessionStorage.setItem(t||ac,JSON.stringify(oc))}catch(e){la(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(j.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||ac);e&&(oc=JSON.parse(e))}catch{}},[t]),j.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(oc,()=>window.scrollY,e?(t,n)=>sc(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),j.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{la(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function lc(e,t){let{capture:n}=t||{};j.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function uc(e,{relative:t}={}){let n=j.useContext(mo);I(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Qs(`useViewTransitionState`),i=Po(e,{relative:t});if(!n.isTransitioning)return!1;let a=Ra(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Ra(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Pa(i.pathname,o)!=null||Pa(i.pathname,a)!=null}var dc=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function fc(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:dc(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var pc=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t},mc=e=>{let t=pc(e);return t.charAt(0).toUpperCase()+t.slice(1)},hc=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),gc={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function _c(e){return e!=null}function vc(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??gc.width,a=e.size??e.height??gc.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?hc(...c):hc(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??gc[`stroke-width`])*Number(e.size??e.width??gc.width)/Number(t.size??t.width??gc.width):t.strokeWidth??gc[`stroke-width`];return[`svg`,{...Object.entries(gc).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&_c(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&_c(t.width)&&{[r(`width`)]:t.width},...`height`in t&&_c(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function yc(e,t={}){return vc(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var bc=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},xc=(0,j.createContext)({}),Sc=()=>(0,j.useContext)(xc),Cc=(0,j.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=Sc()??{},y=!!c||bc(d),[b,x,S=[]]=yc(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:hc(v,s),hasA11yProp:y,attributes:d});return(0,j.createElement)(b,{ref:f,...x},[...S.map(([e,t])=>(0,j.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function z(e,t=[],n=[]){let r=typeof e==`string`?fc(e,t,n):e,i=(0,j.forwardRef)(({className:e,...t},n)=>(0,j.createElement)(Cc,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=mc(r.name)),i}var wc={name:`activity`,size:24,node:[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]};wc.node;var Tc=z(wc),Ec={name:`app-window-mac`,size:24,node:[[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}],[`path`,{d:`M6 8h.01`,key:`x9i8wu`}],[`path`,{d:`M10 8h.01`,key:`1r9ogq`}],[`path`,{d:`M14 8h.01`,key:`1primd`}]]};Ec.node;var Dc=z(Ec),Oc={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]};Oc.node;var kc=z(Oc),Ac={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};Ac.node;var jc=z(Ac),Mc={name:`arrow-right-left`,size:24,node:[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]};Mc.node;var Nc=z(Mc),Pc={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};Pc.node;var Fc=z(Pc),Ic={name:`arrow-up-down`,size:24,node:[[`path`,{d:`m21 16-4 4-4-4`,key:`f6ql7i`}],[`path`,{d:`M17 20V4`,key:`1ejh1v`}],[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}]]};Ic.node;var Lc=z(Ic),Rc={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};Rc.node;var zc=z(Rc),Bc={name:`calendar`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]};Bc.node;var Vc=z(Bc),Hc={name:`chart-column`,size:24,node:[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]],aliases:[`bar-chart-3`]};Hc.node;var Uc=z(Hc),Wc={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Wc.node;var Gc=z(Wc),Kc={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};Kc.node;var qc=z(Kc),Jc={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};Jc.node;var Yc=z(Jc),Xc={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};Xc.node;var Zc=z(Xc),Qc={name:`circle-check-big`,size:24,node:[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]],aliases:[`check-circle`]};Qc.node;var $c=z(Qc),el={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};el.node;var tl=z(el),nl={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};nl.node;var rl=z(nl),il={name:`cloud`,size:24,node:[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]};il.node;var al=z(il),ol={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};ol.node;var sl=z(ol),cl={name:`cpu`,size:24,node:[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]};cl.node;var ll=z(cl),ul={name:`database`,size:24,node:[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]};ul.node;var dl=z(ul),fl={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};fl.node;var pl=z(fl),ml={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};ml.node;var hl=z(ml),gl={name:`eye-off`,size:24,node:[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]};gl.node;var _l=z(gl),vl={name:`eye`,size:24,node:[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};vl.node;var yl=z(vl),bl={name:`funnel`,size:24,node:[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]],aliases:[`filter`]};bl.node;var xl=z(bl),Sl={name:`globe`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]};Sl.node;var Cl=z(Sl),wl={name:`hard-drive`,size:24,node:[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]};wl.node;var Tl=z(wl),El={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};El.node;var Dl=z(El),Ol={name:`key`,size:24,node:[[`path`,{d:`m2 21 9.6-9.6`,key:`9l79m3`}],[`path`,{d:`m7.5 15.5 2.3 2.3a1 1 0 0 1 0 1.4l-2.1 2.1a1 1 0 0 1-1.4 0L4 19`,key:`fw8biw`}],[`circle`,{cx:`15.5`,cy:`7.5`,r:`5.5`,key:`4wxmhb`}]]};Ol.node;var kl=z(Ol),Al={name:`list-filter`,size:24,node:[[`path`,{d:`M2 5h20`,key:`1fs1ex`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M9 19h6`,key:`456am0`}]]};Al.node;var jl=z(Al),Ml={name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]};Ml.node;var Nl=z(Ml),Pl={name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]};Pl.node;var Fl=z(Pl),Il={name:`log-in`,size:24,node:[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]};Il.node;var Ll=z(Il),Rl={name:`map-pin`,size:24,node:[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]};Rl.node;var zl=z(Rl),Bl={name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]};Bl.node;var Vl=z(Bl),Hl={name:`monitor-smartphone`,size:24,node:[[`path`,{d:`M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8`,key:`10dyio`}],[`path`,{d:`M10 19v-3.96 3.15`,key:`1irgej`}],[`path`,{d:`M7 19h5`,key:`qswx4l`}],[`rect`,{width:`6`,height:`10`,x:`16`,y:`12`,rx:`2`,key:`1egngj`}]]};Hl.node;var Ul=z(Hl),Wl={name:`monitor`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]};Wl.node;var Gl=z(Wl),Kl={name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]};Kl.node;var ql=z(Kl),Jl={name:`network`,size:24,node:[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]};Jl.node;var Yl=z(Jl),Xl={name:`pen-line`,size:24,node:[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]],aliases:[`edit-3`]};Xl.node;var Zl=z(Xl),Ql={name:`pen`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]],aliases:[`edit-2`]};Ql.node;var $l=z(Ql),eu={name:`play`,size:24,node:[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]};eu.node;var tu=z(eu),nu={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};nu.node;var ru=z(nu),iu={name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]};iu.node;var au=z(iu),ou={name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]};ou.node;var su=z(ou),cu={name:`router`,size:24,node:[[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,key:`w68u3i`}],[`path`,{d:`M6.01 18H6`,key:`19vcac`}],[`path`,{d:`M10.01 18H10`,key:`uamcmx`}],[`path`,{d:`M15 10v4`,key:`qjz1xs`}],[`path`,{d:`M17.84 7.17a4 4 0 0 0-5.66 0`,key:`1rif40`}],[`path`,{d:`M20.66 4.34a8 8 0 0 0-11.31 0`,key:`6a5xfq`}]]};cu.node;var lu=z(cu),B={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};B.node;var uu=z(B),du={name:`server`,size:24,node:[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]};du.node;var fu=z(du),pu={name:`settings-2`,size:24,node:[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]};pu.node;var mu=z(pu),hu={name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};hu.node;var gu=z(hu),_u={name:`shield-alert`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]};_u.node;var vu=z(_u),yu={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};yu.node;var bu=z(yu),xu={name:`shield-off`,size:24,node:[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`,key:`1jlk70`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`,key:`18rp1v`}]]};xu.node;var Su=z(xu),Cu={name:`shield-x`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m14.5 9.5-5 5`,key:`17q4r4`}],[`path`,{d:`m9.5 9.5 5 5`,key:`18nt4w`}]],aliases:[`shield-close`]};Cu.node;var wu=z(Cu),Tu={name:`shield`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]};Tu.node;var Eu=z(Tu),Du={name:`smartphone`,size:24,node:[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]};Du.node;var Ou=z(Du),ku={name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]};ku.node;var Au=z(ku),ju={name:`terminal`,size:24,node:[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]};ju.node;var Mu=z(ju),Nu={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};Nu.node;var Pu=z(Nu),Fu={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};Fu.node;var Iu=z(Fu),Lu={name:`user-plus`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]};Lu.node;var Ru=z(Lu),zu={name:`user`,size:24,node:[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]};zu.node;var Bu=z(zu),Vu={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Vu.node;var Hu=z(Vu),Uu={name:`zap`,size:24,node:[[`path`,{d:`M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z`,key:`1v7up4`}]]};Uu.node;var Wu=z(Uu),Gu={name:`zoom-in`,size:24,node:[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`11`,x2:`11`,y1:`8`,y2:`14`,key:`1vmskp`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]};Gu.node;var Ku=z(Gu),qu={name:`zoom-out`,size:24,node:[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]};qu.node;var Ju=z(qu),Yu=class{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){let t=this._partials,n=0;for(let r=0;r<this._n&&r<32;r++){let i=t[r],a=e+i,o=Math.abs(e)<Math.abs(i)?e-(a-i):i-(a-e);o&&(t[n++]=o),e=a}return t[n]=e,this._n=n+1,this}valueOf(){let e=this._partials,t=this._n,n,r,i,a=0;if(t>0){for(a=e[--t];t>0&&(n=a,r=e[--t],a=n+r,i=r-(a-n),!i););t>0&&(i<0&&e[t-1]<0||i>0&&e[t-1]>0)&&(r=i*2,n=a+r,r==n-a&&(a=n))}return a}};function*Xu(e){for(let t of e)yield*t}function Zu(e){return Array.from(Xu(e))}function Qu(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}var V=1e-6,H=Math.PI,$u=H/2,ed=H/4,td=H*2,nd=180/H,U=H/180,W=Math.abs,G=Math.atan,K=Math.atan2,q=Math.cos,rd=Math.ceil,id=Math.exp,ad=Math.hypot,od=Math.log,sd=Math.pow,J=Math.sin,cd=Math.sign||function(e){return e>0?1:e<0?-1:0},ld=Math.sqrt,ud=Math.tan;function dd(e){return e>1?0:e<-1?H:Math.acos(e)}function fd(e){return e>1?$u:e<-1?-$u:Math.asin(e)}function pd(e){return(e=J(e/2))*e}function Y(){}function md(e,t){e&&gd.hasOwnProperty(e.type)&&gd[e.type](e,t)}var hd={Feature:function(e,t){md(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)md(n[r].geometry,t)}},gd={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){_d(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)_d(n[r],t,0)},Polygon:function(e,t){vd(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)vd(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)md(n[r],t)}};function _d(e,t,n){var r=-1,i=e.length-n,a;for(t.lineStart();++r<i;)a=e[r],t.point(a[0],a[1],a[2]);t.lineEnd()}function vd(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)_d(e[n],t,1);t.polygonEnd()}function yd(e,t){e&&hd.hasOwnProperty(e.type)?hd[e.type](e,t):md(e,t)}var bd=new Yu,xd=new Yu,Sd,Cd,wd,Td,Ed,Dd={point:Y,lineStart:Y,lineEnd:Y,polygonStart:function(){bd=new Yu,Dd.lineStart=Od,Dd.lineEnd=kd},polygonEnd:function(){var e=+bd;xd.add(e<0?td+e:e),this.lineStart=this.lineEnd=this.point=Y},sphere:function(){xd.add(td)}};function Od(){Dd.point=Ad}function kd(){jd(Sd,Cd)}function Ad(e,t){Dd.point=jd,Sd=e,Cd=t,e*=U,t*=U,wd=e,Td=q(t=t/2+ed),Ed=J(t)}function jd(e,t){e*=U,t*=U,t=t/2+ed;var n=e-wd,r=n>=0?1:-1,i=r*n,a=q(t),o=J(t),s=Ed*o,c=Td*a+s*q(i),l=s*r*J(i);bd.add(K(l,c)),wd=e,Td=a,Ed=o}function Md(e){return xd=new Yu,yd(e,Dd),xd*2}function Nd(e){return[K(e[1],e[0]),fd(e[2])]}function Pd(e){var t=e[0],n=e[1],r=q(n);return[r*q(t),r*J(t),J(n)]}function Fd(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Id(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Ld(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Rd(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function zd(e){var t=ld(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var Bd,Vd,Hd,Ud,Wd,Gd,Kd,qd,Jd,Yd,Xd,Zd={point:Qd,lineStart:ef,lineEnd:tf,polygonStart:function(){Zd.point=nf,Zd.lineStart=rf,Zd.lineEnd=af,Jd=new Yu,Dd.polygonStart()},polygonEnd:function(){Dd.polygonEnd(),Zd.point=Qd,Zd.lineStart=ef,Zd.lineEnd=tf,bd<0?(Bd=-(Hd=180),Vd=-(Ud=90)):Jd>1e-6?Ud=90:Jd<-1e-6&&(Vd=-90),Xd[0]=Bd,Xd[1]=Hd},sphere:function(){Bd=-(Hd=180),Vd=-(Ud=90)}};function Qd(e,t){Yd.push(Xd=[Bd=e,Hd=e]),t<Vd&&(Vd=t),t>Ud&&(Ud=t)}function $d(e,t){var n=Pd([e*U,t*U]);if(qd){var r=Id(qd,n),i=Id([r[1],-r[0],0],r);zd(i),i=Nd(i);var a=e-Wd,o=a>0?1:-1,s=i[0]*nd*o,c,l=W(a)>180;l^(o*Wd<s&&s<o*e)?(c=i[1]*nd,c>Ud&&(Ud=c)):(s=(s+360)%360-180,l^(o*Wd<s&&s<o*e)?(c=-i[1]*nd,c<Vd&&(Vd=c)):(t<Vd&&(Vd=t),t>Ud&&(Ud=t))),l?e<Wd?of(Bd,e)>of(Bd,Hd)&&(Hd=e):of(e,Hd)>of(Bd,Hd)&&(Bd=e):Hd>=Bd?(e<Bd&&(Bd=e),e>Hd&&(Hd=e)):e>Wd?of(Bd,e)>of(Bd,Hd)&&(Hd=e):of(e,Hd)>of(Bd,Hd)&&(Bd=e)}else Yd.push(Xd=[Bd=e,Hd=e]);t<Vd&&(Vd=t),t>Ud&&(Ud=t),qd=n,Wd=e}function ef(){Zd.point=$d}function tf(){Xd[0]=Bd,Xd[1]=Hd,Zd.point=Qd,qd=null}function nf(e,t){if(qd){var n=e-Wd;Jd.add(W(n)>180?n+(n>0?360:-360):n)}else Gd=e,Kd=t;Dd.point(e,t),$d(e,t)}function rf(){Dd.lineStart()}function af(){nf(Gd,Kd),Dd.lineEnd(),W(Jd)>1e-6&&(Bd=-(Hd=180)),Xd[0]=Bd,Xd[1]=Hd,qd=null}function of(e,t){return(t-=e)<0?t+360:t}function sf(e,t){return e[0]-t[0]}function cf(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}function lf(e){var t,n,r,i,a,o,s;if(Ud=Hd=-(Bd=Vd=1/0),Yd=[],yd(e,Zd),n=Yd.length){for(Yd.sort(sf),t=1,r=Yd[0],a=[r];t<n;++t)i=Yd[t],cf(r,i[0])||cf(r,i[1])?(of(r[0],i[1])>of(r[0],r[1])&&(r[1]=i[1]),of(i[0],r[1])>of(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,n=a.length-1,t=0,r=a[n];t<=n;r=i,++t)i=a[t],(s=of(r[1],i[0]))>o&&(o=s,Bd=i[0],Hd=r[1])}return Yd=Xd=null,Bd===1/0||Vd===1/0?[[NaN,NaN],[NaN,NaN]]:[[Bd,Vd],[Hd,Ud]]}var uf,df,ff,pf,mf,X,hf,gf,_f,vf,yf,bf,xf,Sf,Cf,wf,Tf={sphere:Y,point:Ef,lineStart:Of,lineEnd:jf,polygonStart:function(){Tf.lineStart=Mf,Tf.lineEnd=Nf},polygonEnd:function(){Tf.lineStart=Of,Tf.lineEnd=jf}};function Ef(e,t){e*=U,t*=U;var n=q(t);Df(n*q(e),n*J(e),J(t))}function Df(e,t,n){++uf,ff+=(e-ff)/uf,pf+=(t-pf)/uf,mf+=(n-mf)/uf}function Of(){Tf.point=kf}function kf(e,t){e*=U,t*=U;var n=q(t);Sf=n*q(e),Cf=n*J(e),wf=J(t),Tf.point=Af,Df(Sf,Cf,wf)}function Af(e,t){e*=U,t*=U;var n=q(t),r=n*q(e),i=n*J(e),a=J(t),o=K(ld((o=Cf*a-wf*i)*o+(o=wf*r-Sf*a)*o+(o=Sf*i-Cf*r)*o),Sf*r+Cf*i+wf*a);df+=o,X+=o*(Sf+(Sf=r)),hf+=o*(Cf+(Cf=i)),gf+=o*(wf+(wf=a)),Df(Sf,Cf,wf)}function jf(){Tf.point=Ef}function Mf(){Tf.point=Pf}function Nf(){Ff(bf,xf),Tf.point=Ef}function Pf(e,t){bf=e,xf=t,e*=U,t*=U,Tf.point=Ff;var n=q(t);Sf=n*q(e),Cf=n*J(e),wf=J(t),Df(Sf,Cf,wf)}function Ff(e,t){e*=U,t*=U;var n=q(t),r=n*q(e),i=n*J(e),a=J(t),o=Cf*a-wf*i,s=wf*r-Sf*a,c=Sf*i-Cf*r,l=ad(o,s,c),u=fd(l),d=l&&-u/l;_f.add(d*o),vf.add(d*s),yf.add(d*c),df+=u,X+=u*(Sf+(Sf=r)),hf+=u*(Cf+(Cf=i)),gf+=u*(wf+(wf=a)),Df(Sf,Cf,wf)}function If(e){uf=df=ff=pf=mf=X=hf=gf=0,_f=new Yu,vf=new Yu,yf=new Yu,yd(e,Tf);var t=+_f,n=+vf,r=+yf,i=ad(t,n,r);return i<1e-12&&(t=X,n=hf,r=gf,df<1e-6&&(t=ff,n=pf,r=mf),i=ad(t,n,r),i<1e-12)?[NaN,NaN]:[K(n,t)*nd,fd(r/i)*nd]}function Lf(e){return function(){return e}}function Rf(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return n=t.invert(n,r),n&&e.invert(n[0],n[1])}),n}function zf(e,t){return W(e)>H&&(e-=Math.round(e/td)*td),[e,t]}zf.invert=zf;function Bf(e,t,n){return(e%=td)?t||n?Rf(Hf(e),Z(t,n)):Hf(e):t||n?Z(t,n):zf}function Vf(e){return function(t,n){return t+=e,W(t)>H&&(t-=Math.round(t/td)*td),[t,n]}}function Hf(e){var t=Vf(e);return t.invert=Vf(-e),t}function Z(e,t){var n=q(e),r=J(e),i=q(t),a=J(t);function o(e,t){var o=q(t),s=q(e)*o,c=J(e)*o,l=J(t),u=l*n+s*r;return[K(c*i-u*a,s*n-l*r),fd(u*i+c*a)]}return o.invert=function(e,t){var o=q(t),s=q(e)*o,c=J(e)*o,l=J(t),u=l*i-c*a;return[K(c*i+l*a,s*n+u*r),fd(u*n-s*r)]},o}function Uf(e){e=Bf(e[0]*U,e[1]*U,e.length>2?e[2]*U:0);function t(t){return t=e(t[0]*U,t[1]*U),t[0]*=nd,t[1]*=nd,t}return t.invert=function(t){return t=e.invert(t[0]*U,t[1]*U),t[0]*=nd,t[1]*=nd,t},t}function Wf(e,t,n,r,i,a){if(n){var o=q(t),s=J(t),c=r*n;i==null?(i=t+r*td,a=t-c/2):(i=Gf(o,i),a=Gf(o,a),(r>0?i<a:i>a)&&(i+=r*td));for(var l,u=i;r>0?u>a:u<a;u-=c)l=Nd([o,-s*q(u),-s*J(u)]),e.point(l[0],l[1])}}function Gf(e,t){t=Pd(t),t[0]-=e,zd(t);var n=dd(-t[1]);return((-t[2]<0?-n:n)+td-V)%td}function Kf(){var e=Lf([0,0]),t=Lf(90),n=Lf(2),r,i,a={point:o};function o(e,t){r.push(e=i(e,t)),e[0]*=nd,e[1]*=nd}function s(){var o=e.apply(this,arguments),s=t.apply(this,arguments)*U,c=n.apply(this,arguments)*U;return r=[],i=Bf(-o[0]*U,-o[1]*U,0).invert,Wf(a,s,c,1),o={type:`Polygon`,coordinates:[r]},r=i=null,o}return s.center=function(t){return arguments.length?(e=typeof t==`function`?t:Lf([+t[0],+t[1]]),s):e},s.radius=function(e){return arguments.length?(t=typeof e==`function`?e:Lf(+e),s):t},s.precision=function(e){return arguments.length?(n=typeof e==`function`?e:Lf(+e),s):n},s}function qf(){var e=[],t;return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:Y,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Jf(e,t){return W(e[0]-t[0])<1e-6&&W(e[1]-t[1])<1e-6}function Yf(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Xf(e,t,n,r,i){var a=[],o=[],s,c;if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n=e[0],r=e[t],c;if(Jf(n,r)){if(!n[2]&&!r[2]){for(i.lineStart(),s=0;s<t;++s)i.point((n=e[s])[0],n[1]);i.lineEnd();return}r[0]+=2*V}a.push(c=new Yf(n,e,null,!0)),o.push(c.o=new Yf(n,null,c,!1)),a.push(c=new Yf(r,e,null,!1)),o.push(c.o=new Yf(r,null,c,!0))}}),a.length){for(o.sort(t),Zf(a),Zf(o),s=0,c=o.length;s<c;++s)o[s].e=n=!n;for(var l=a[0],u,d;;){for(var f=l,p=!0;f.v;)if((f=f.n)===l)return;u=f.z,i.lineStart();do{if(f.v=f.o.v=!0,f.e){if(p)for(s=0,c=u.length;s<c;++s)i.point((d=u[s])[0],d[1]);else r(f.x,f.n.x,1,i);f=f.n}else{if(p)for(u=f.p.z,s=u.length-1;s>=0;--s)i.point((d=u[s])[0],d[1]);else r(f.x,f.p.x,-1,i);f=f.p}f=f.o,u=f.z,p=!p}while(!f.v);i.lineEnd()}}}function Zf(e){if(t=e.length){for(var t,n=0,r=e[0],i;++n<t;)r.n=i=e[n],i.p=r,r=i;r.n=i=e[0],i.p=r}}function Qf(e){return W(e[0])<=H?e[0]:cd(e[0])*((W(e[0])+H)%td-H)}function $f(e,t){var n=Qf(t),r=t[1],i=J(r),a=[J(n),-q(n),0],o=0,s=0,c=new Yu;i===1?r=$u+V:i===-1&&(r=-$u-V);for(var l=0,u=e.length;l<u;++l)if(f=(d=e[l]).length)for(var d,f,p=d[f-1],m=Qf(p),h=p[1]/2+ed,g=J(h),_=q(h),v=0;v<f;++v,m=b,g=S,_=C,p=y){var y=d[v],b=Qf(y),x=y[1]/2+ed,S=J(x),C=q(x),w=b-m,T=w>=0?1:-1,E=T*w,D=E>H,O=g*S;if(c.add(K(O*T*J(E),_*C+O*q(E))),o+=D?w+T*td:w,D^m>=n^b>=n){var k=Id(Pd(p),Pd(y));zd(k);var ee=Id(a,k);zd(ee);var A=(D^w>=0?-1:1)*fd(ee[2]);(r>A||r===A&&(k[0]||k[1]))&&(s+=D^w>=0?1:-1)}}return(o<-1e-6||o<1e-6&&c<-1e-12)^s&1}function ep(e,t,n,r){return function(i){var a=t(i),o=qf(),s=t(o),c=!1,l,u,d,f={point:p,lineStart:h,lineEnd:g,polygonStart:function(){f.point=_,f.lineStart=v,f.lineEnd=y,u=[],l=[]},polygonEnd:function(){f.point=p,f.lineStart=h,f.lineEnd=g,u=Zu(u);var e=$f(l,r);u.length?(c||=(i.polygonStart(),!0),Xf(u,Q,e,n,i)):e&&(c||=(i.polygonStart(),!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),c&&=(i.polygonEnd(),!1),u=l=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function p(t,n){e(t,n)&&i.point(t,n)}function m(e,t){a.point(e,t)}function h(){f.point=m,a.lineStart()}function g(){f.point=p,a.lineEnd()}function _(e,t){d.push([e,t]),s.point(e,t)}function v(){s.lineStart(),d=[]}function y(){_(d[0][0],d[0][1]),s.lineEnd();var e=s.clean(),t=o.result(),n,r=t.length,a,f,p;if(d.pop(),l.push(d),d=null,r){if(e&1){if(f=t[0],(a=f.length-1)>0){for(c||=(i.polygonStart(),!0),i.lineStart(),n=0;n<a;++n)i.point((p=f[n])[0],p[1]);i.lineEnd()}return}r>1&&e&2&&t.push(t.pop().concat(t.shift())),u.push(t.filter(tp))}}return f}}function tp(e){return e.length>1}function Q(e,t){return((e=e.x)[0]<0?e[1]-$u-V:$u-e[1])-((t=t.x)[0]<0?t[1]-$u-V:$u-t[1])}var np=ep(function(){return!0},rp,ap,[-H,-$u]);function rp(e){var t=NaN,n=NaN,r=NaN,i;return{lineStart:function(){e.lineStart(),i=1},point:function(a,o){var s=a>0?H:-H,c=W(a-t);W(c-H)<1e-6?(e.point(t,n=(n+o)/2>0?$u:-$u),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),e.point(a,n),i=0):r!==s&&c>=H&&(W(t-r)<1e-6&&(t-=r*V),W(a-s)<1e-6&&(a-=s*V),n=ip(t,n,a,o),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),i=0),e.point(t=a,n=o),r=s},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-i}}}function ip(e,t,n,r){var i,a,o=J(e-n);return W(o)>1e-6?G((J(t)*(a=q(r))*J(n)-J(r)*(i=q(t))*J(e))/(i*a*o)):(t+r)/2}function ap(e,t,n,r){var i;if(e==null)i=n*$u,r.point(-H,i),r.point(0,i),r.point(H,i),r.point(H,0),r.point(H,-i),r.point(0,-i),r.point(-H,-i),r.point(-H,0),r.point(-H,i);else if(W(e[0]-t[0])>1e-6){var a=e[0]<t[0]?H:-H;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(t[0],t[1])}function op(e){var t=q(e),n=2*U,r=t>0,i=W(t)>V;function a(t,r,i,a){Wf(a,e,n,i,t,r)}function o(e,n){return q(e)*q(n)>t}function s(e){var t,n,a,s,u;return{lineStart:function(){s=a=!1,u=1},point:function(d,f){var p=[d,f],m,h=o(d,f),g=r?h?0:l(d,f):h?l(d+(d<0?H:-H),f):0;if(!t&&(s=a=h)&&e.lineStart(),h!==a&&(m=c(t,p),(!m||Jf(t,m)||Jf(p,m))&&(p[2]=1)),h!==a)u=0,h?(e.lineStart(),m=c(p,t),e.point(m[0],m[1])):(m=c(t,p),e.point(m[0],m[1],2),e.lineEnd()),t=m;else if(i&&t&&r^h){var _;!(g&n)&&(_=c(p,t,!0))&&(u=0,r?(e.lineStart(),e.point(_[0][0],_[0][1]),e.point(_[1][0],_[1][1]),e.lineEnd()):(e.point(_[1][0],_[1][1]),e.lineEnd(),e.lineStart(),e.point(_[0][0],_[0][1],3)))}h&&(!t||!Jf(t,p))&&e.point(p[0],p[1]),t=p,a=h,n=g},lineEnd:function(){a&&e.lineEnd(),t=null},clean:function(){return u|(s&&a)<<1}}}function c(e,n,r){var i=Pd(e),a=Pd(n),o=[1,0,0],s=Id(i,a),c=Fd(s,s),l=s[0],u=c-l*l;if(!u)return!r&&e;var d=t*c/u,f=-t*l/u,p=Id(o,s),m=Rd(o,d);Ld(m,Rd(s,f));var h=p,g=Fd(m,h),_=Fd(h,h),v=g*g-_*(Fd(m,m)-1);if(!(v<0)){var y=ld(v),b=Rd(h,(-g-y)/_);if(Ld(b,m),b=Nd(b),!r)return b;var x=e[0],S=n[0],C=e[1],w=n[1],T;S<x&&(T=x,x=S,S=T);var E=S-x,D=W(E-H)<V,O=D||E<1e-6;if(!D&&w<C&&(T=C,C=w,w=T),O?D?C+w>0^b[1]<(W(b[0]-x)<1e-6?C:w):C<=b[1]&&b[1]<=w:E>H^(x<=b[0]&&b[0]<=S)){var k=Rd(h,(-g+y)/_);return Ld(k,m),[b,Nd(k)]}}}function l(t,n){var i=r?e:H-e,a=0;return t<-i?a|=1:t>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return ep(o,s,a,r?[0,-e]:[-H,e-H])}function sp(e,t,n,r,i,a){var o=e[0],s=e[1],c=t[0],l=t[1],u=0,d=1,f=c-o,p=l-s,m=n-o;if(!(!f&&m>0)){if(m/=f,f<0){if(m<u)return;m<d&&(d=m)}else if(f>0){if(m>d)return;m>u&&(u=m)}if(m=i-o,!(!f&&m<0)){if(m/=f,f<0){if(m>d)return;m>u&&(u=m)}else if(f>0){if(m<u)return;m<d&&(d=m)}if(m=r-s,!(!p&&m>0)){if(m/=p,p<0){if(m<u)return;m<d&&(d=m)}else if(p>0){if(m>d)return;m>u&&(u=m)}if(m=a-s,!(!p&&m<0)){if(m/=p,p<0){if(m>d)return;m>u&&(u=m)}else if(p>0){if(m<u)return;m<d&&(d=m)}return u>0&&(e[0]=o+u*f,e[1]=s+u*p),d<1&&(t[0]=o+d*f,t[1]=s+d*p),!0}}}}}var cp=1e9,lp=-cp;function up(e,t,n,r){function i(i,a){return e<=i&&i<=n&&t<=a&&a<=r}function a(i,a,s,l){var u=0,d=0;if(i==null||(u=o(i,s))!==(d=o(a,s))||c(i,a)<0^s>0)do l.point(u===0||u===3?e:n,u>1?r:t);while((u=(u+s+4)%4)!==d);else l.point(a[0],a[1])}function o(r,i){return W(r[0]-e)<1e-6?i>0?0:3:W(r[0]-n)<1e-6?i>0?2:1:W(r[1]-t)<1e-6?i>0?1:0:i>0?3:2}function s(e,t){return c(e.x,t.x)}function c(e,t){var n=o(e,1),r=o(t,1);return n===r?n===0?t[1]-e[1]:n===1?e[0]-t[0]:n===2?e[1]-t[1]:t[0]-e[0]:n-r}return function(o){var c=o,l=qf(),u,d,f,p,m,h,g,_,v,y,b,x={point:S,lineStart:E,lineEnd:D,polygonStart:w,polygonEnd:T};function S(e,t){i(e,t)&&c.point(e,t)}function C(){for(var t=0,n=0,i=d.length;n<i;++n)for(var a=d[n],o=1,s=a.length,c=a[0],l,u,f=c[0],p=c[1];o<s;++o)l=f,u=p,c=a[o],f=c[0],p=c[1],u<=r?p>r&&(f-l)*(r-u)>(p-u)*(e-l)&&++t:p<=r&&(f-l)*(r-u)<(p-u)*(e-l)&&--t;return t}function w(){c=l,u=[],d=[],b=!0}function T(){var e=C(),t=b&&e,n=(u=Zu(u)).length;(t||n)&&(o.polygonStart(),t&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),n&&Xf(u,s,e,a,o),o.polygonEnd()),c=o,u=d=f=null}function E(){x.point=O,d&&d.push(f=[]),y=!0,v=!1,g=_=NaN}function D(){u&&(O(p,m),h&&v&&l.rejoin(),u.push(l.result())),x.point=S,v&&c.lineEnd()}function O(a,o){var s=i(a,o);if(d&&f.push([a,o]),y)p=a,m=o,h=s,y=!1,s&&(c.lineStart(),c.point(a,o));else if(s&&v)c.point(a,o);else{var l=[g=Math.max(lp,Math.min(cp,g)),_=Math.max(lp,Math.min(cp,_))],u=[a=Math.max(lp,Math.min(cp,a)),o=Math.max(lp,Math.min(cp,o))];sp(l,u,e,t,n,r)?(v||(c.lineStart(),c.point(l[0],l[1])),c.point(u[0],u[1]),s||c.lineEnd(),b=!1):s&&(c.lineStart(),c.point(a,o),b=!1)}g=a,_=o,v=s}return x}}function dp(){var e=0,t=0,n=960,r=500,i,a,o;return o={stream:function(o){return i&&a===o?i:i=up(e,t,n,r)(a=o)},extent:function(s){return arguments.length?(e=+s[0][0],t=+s[0][1],n=+s[1][0],r=+s[1][1],i=a=null,o):[[e,t],[n,r]]}}}var fp,pp,mp,hp,gp={sphere:Y,point:Y,lineStart:_p,lineEnd:Y,polygonStart:Y,polygonEnd:Y};function _p(){gp.point=yp,gp.lineEnd=vp}function vp(){gp.point=gp.lineEnd=Y}function yp(e,t){e*=U,t*=U,pp=e,mp=J(t),hp=q(t),gp.point=bp}function bp(e,t){e*=U,t*=U;var n=J(t),r=q(t),i=W(e-pp),a=q(i),o=r*J(i),s=hp*n-mp*r*a,c=mp*n+hp*r*a;fp.add(K(ld(o*o+s*s),c)),pp=e,mp=n,hp=r}function xp(e){return fp=new Yu,yd(e,gp),+fp}var Sp=[null,null],Cp={type:`LineString`,coordinates:Sp};function wp(e,t){return Sp[0]=e,Sp[1]=t,xp(Cp)}var Tp={Feature:function(e,t){return Dp(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)if(Dp(n[r].geometry,t))return!0;return!1}},Ep={Sphere:function(){return!0},Point:function(e,t){return Op(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(Op(n[r],t))return!0;return!1},LineString:function(e,t){return kp(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(kp(n[r],t))return!0;return!1},Polygon:function(e,t){return Ap(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(Ap(n[r],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)if(Dp(n[r],t))return!0;return!1}};function Dp(e,t){return e&&Ep.hasOwnProperty(e.type)?Ep[e.type](e,t):!1}function Op(e,t){return wp(e,t)===0}function kp(e,t){for(var n,r,i,a=0,o=e.length;a<o;a++){if(r=wp(e[a],t),r===0||a>0&&(i=wp(e[a],e[a-1]),i>0&&n<=i&&r<=i&&(n+r-i)*(1-((n-r)/i)**2)<1e-12*i))return!0;n=r}return!1}function Ap(e,t){return!!$f(e.map(jp),Mp(t))}function jp(e){return e=e.map(Mp),e.pop(),e}function Mp(e){return[e[0]*U,e[1]*U]}function Np(e,t){return(e&&Tp.hasOwnProperty(e.type)?Tp[e.type]:Dp)(e,t)}function Pp(e,t,n){var r=Qu(e,t-V,n).concat(t);return function(e){return r.map(function(t){return[e,t]})}}function Fp(e,t,n){var r=Qu(e,t-V,n).concat(t);return function(e){return r.map(function(t){return[t,e]})}}function Ip(){var e,t,n,r,i,a,o,s,c=10,l=c,u=90,d=360,f,p,m,h,g=2.5;function _(){return{type:`MultiLineString`,coordinates:v()}}function v(){return Qu(rd(r/u)*u,n,u).map(m).concat(Qu(rd(s/d)*d,o,d).map(h)).concat(Qu(rd(t/c)*c,e,c).filter(function(e){return W(e%u)>V}).map(f)).concat(Qu(rd(a/l)*l,i,l).filter(function(e){return W(e%d)>V}).map(p))}return _.lines=function(){return v().map(function(e){return{type:`LineString`,coordinates:e}})},_.outline=function(){return{type:`Polygon`,coordinates:[m(r).concat(h(o).slice(1),m(n).reverse().slice(1),h(s).reverse().slice(1))]}},_.extent=function(e){return arguments.length?_.extentMajor(e).extentMinor(e):_.extentMinor()},_.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],o=+e[1][1],r>n&&(e=r,r=n,n=e),s>o&&(e=s,s=o,o=e),_.precision(g)):[[r,s],[n,o]]},_.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],a=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),a>i&&(n=a,a=i,i=n),_.precision(g)):[[t,a],[e,i]]},_.step=function(e){return arguments.length?_.stepMajor(e).stepMinor(e):_.stepMinor()},_.stepMajor=function(e){return arguments.length?(u=+e[0],d=+e[1],_):[u,d]},_.stepMinor=function(e){return arguments.length?(c=+e[0],l=+e[1],_):[c,l]},_.precision=function(c){return arguments.length?(g=+c,f=Pp(a,i,90),p=Fp(t,e,g),m=Pp(s,o,90),h=Fp(r,n,g),_):g},_.extentMajor([[-180,-90+V],[180,90-V]]).extentMinor([[-180,-80-V],[180,80+V]])}function Lp(){return Ip()()}function Rp(e,t){var n=e[0]*U,r=e[1]*U,i=t[0]*U,a=t[1]*U,o=q(r),s=J(r),c=q(a),l=J(a),u=o*q(n),d=o*J(n),f=c*q(i),p=c*J(i),m=2*fd(ld(pd(a-r)+o*c*pd(i-n))),h=J(m),g=m?function(e){var t=J(e*=m)/h,n=J(m-e)/h,r=n*u+t*f,i=n*d+t*p,a=n*s+t*l;return[K(i,r)*nd,K(a,ld(r*r+i*i))*nd]}:function(){return[n*nd,r*nd]};return g.distance=m,g}var zp=e=>e,Bp=new Yu,Vp=new Yu,Hp,Up,Wp,Gp,Kp={point:Y,lineStart:Y,lineEnd:Y,polygonStart:function(){Kp.lineStart=qp,Kp.lineEnd=Xp},polygonEnd:function(){Kp.lineStart=Kp.lineEnd=Kp.point=Y,Bp.add(W(Vp)),Vp=new Yu},result:function(){var e=Bp/2;return Bp=new Yu,e}};function qp(){Kp.point=Jp}function Jp(e,t){Kp.point=Yp,Hp=Wp=e,Up=Gp=t}function Yp(e,t){Vp.add(Gp*e-Wp*t),Wp=e,Gp=t}function Xp(){Yp(Hp,Up)}var Zp=Kp,Qp=1/0,$p=Qp,em=-Qp,tm=em,nm={point:rm,lineStart:Y,lineEnd:Y,polygonStart:Y,polygonEnd:Y,result:function(){var e=[[Qp,$p],[em,tm]];return em=tm=-($p=Qp=1/0),e}};function rm(e,t){e<Qp&&(Qp=e),e>em&&(em=e),t<$p&&($p=t),t>tm&&(tm=t)}var im=nm,am=0,om=0,sm=0,cm=0,lm=0,um=0,dm=0,fm=0,pm=0,mm,hm,gm,_m,vm={point:ym,lineStart:bm,lineEnd:Cm,polygonStart:function(){vm.lineStart=wm,vm.lineEnd=Tm},polygonEnd:function(){vm.point=ym,vm.lineStart=bm,vm.lineEnd=Cm},result:function(){var e=pm?[dm/pm,fm/pm]:um?[cm/um,lm/um]:sm?[am/sm,om/sm]:[NaN,NaN];return am=om=sm=cm=lm=um=dm=fm=pm=0,e}};function ym(e,t){am+=e,om+=t,++sm}function bm(){vm.point=xm}function xm(e,t){vm.point=Sm,ym(gm=e,_m=t)}function Sm(e,t){var n=e-gm,r=t-_m,i=ld(n*n+r*r);cm+=i*(gm+e)/2,lm+=i*(_m+t)/2,um+=i,ym(gm=e,_m=t)}function Cm(){vm.point=ym}function wm(){vm.point=Em}function Tm(){Dm(mm,hm)}function Em(e,t){vm.point=Dm,ym(mm=gm=e,hm=_m=t)}function Dm(e,t){var n=e-gm,r=t-_m,i=ld(n*n+r*r);cm+=i*(gm+e)/2,lm+=i*(_m+t)/2,um+=i,i=_m*e-gm*t,dm+=i*(gm+e),fm+=i*(_m+t),pm+=i*3,ym(gm=e,_m=t)}var Om=vm;function km(e){this._context=e}km.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,td);break}},result:Y};var Am=new Yu,jm,Mm,Nm,Pm,Fm,Im={point:Y,lineStart:function(){Im.point=Lm},lineEnd:function(){jm&&Rm(Mm,Nm),Im.point=Y},polygonStart:function(){jm=!0},polygonEnd:function(){jm=null},result:function(){var e=+Am;return Am=new Yu,e}};function Lm(e,t){Im.point=Rm,Mm=Pm=e,Nm=Fm=t}function Rm(e,t){Pm-=e,Fm-=t,Am.add(ld(Pm*Pm+Fm*Fm)),Pm=e,Fm=t}var zm=Im,Bm,Vm,Hm,Um,Wm=class{constructor(e){this._append=e==null?Gm:Km(e),this._radius=4.5,this._=``}pointRadius(e){return this._radius=+e,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+=`Z`),this._point=NaN}point(e,t){switch(this._point){case 0:this._append`M${e},${t}`,this._point=1;break;case 1:this._append`L${e},${t}`;break;default:if(this._append`M${e},${t}`,this._radius!==Hm||this._append!==Vm){let e=this._radius,t=this._;this._=``,this._append`m0,${e}a${e},${e} 0 1,1 0,${-2*e}a${e},${e} 0 1,1 0,${2*e}z`,Hm=e,Vm=this._append,Um=this._,this._=t}this._+=Um;break}}result(){let e=this._;return this._=``,e.length?e:null}};function Gm(e){let t=1;this._+=e[0];for(let n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Km(e){let t=Math.floor(e);if(!(t>=0))throw RangeError(`invalid digits: ${e}`);if(t>15)return Gm;if(t!==Bm){let e=10**t;Bm=t,Vm=function(t){let n=1;this._+=t[0];for(let r=t.length;n<r;++n)this._+=Math.round(arguments[n]*e)/e+t[n]}}return Vm}function qm(e,t){let n=3,r=4.5,i,a;function o(e){return e&&(typeof r==`function`&&a.pointRadius(+r.apply(this,arguments)),yd(e,i(a))),a.result()}return o.area=function(e){return yd(e,i(Zp)),Zp.result()},o.measure=function(e){return yd(e,i(zm)),zm.result()},o.bounds=function(e){return yd(e,i(im)),im.result()},o.centroid=function(e){return yd(e,i(Om)),Om.result()},o.projection=function(t){return arguments.length?(i=t==null?(e=null,zp):(e=t).stream,o):e},o.context=function(e){return arguments.length?(a=e==null?(t=null,new Wm(n)):new km(t=e),typeof r!=`function`&&a.pointRadius(r),o):t},o.pointRadius=function(e){return arguments.length?(r=typeof e==`function`?e:(a.pointRadius(+e),+e),o):r},o.digits=function(e){if(!arguments.length)return n;if(e==null)n=null;else{let t=Math.floor(e);if(!(t>=0))throw RangeError(`invalid digits: ${e}`);n=t}return t===null&&(a=new Wm(n)),o},o.projection(e).digits(n).context(t)}function Jm(e){return{stream:Ym(e)}}function Ym(e){return function(t){var n=new Xm;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Xm(){}Xm.prototype={constructor:Xm,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Zm(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),yd(n,e.stream(im)),t(im.result()),r!=null&&e.clipExtent(r),e}function Qm(e,t,n){return Zm(e,function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],a=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+t[0][0]+(r-a*(n[1][0]+n[0][0]))/2,s=+t[0][1]+(i-a*(n[1][1]+n[0][1]))/2;e.scale(150*a).translate([o,s])},n)}function $m(e,t,n){return Qm(e,[[0,0],t],n)}function eh(e,t,n){return Zm(e,function(n){var r=+t,i=r/(n[1][0]-n[0][0]),a=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];e.scale(150*i).translate([a,o])},n)}function th(e,t,n){return Zm(e,function(n){var r=+t,i=r/(n[1][1]-n[0][1]),a=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([a,o])},n)}var nh=16,rh=q(30*U);function ih(e,t){return+t?oh(e,t):ah(e)}function ah(e){return Ym({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function oh(e,t){function n(r,i,a,o,s,c,l,u,d,f,p,m,h,g){var _=l-r,v=u-i,y=_*_+v*v;if(y>4*t&&h--){var b=o+f,x=s+p,S=c+m,C=ld(b*b+x*x+S*S),w=fd(S/=C),T=W(W(S)-1)<1e-6||W(a-d)<1e-6?(a+d)/2:K(x,b),E=e(T,w),D=E[0],O=E[1],k=D-r,ee=O-i,A=v*k-_*ee;(A*A/y>t||W((_*k+v*ee)/y-.5)>.3||o*f+s*p+c*m<rh)&&(n(r,i,a,o,s,c,D,O,T,b/=C,x/=C,S,h,g),g.point(D,O),n(D,O,T,b,x,S,l,u,d,f,p,m,h,g))}}return function(t){var r,i,a,o,s,c,l,u,d,f,p,m,h={point:g,lineStart:_,lineEnd:y,polygonStart:function(){t.polygonStart(),h.lineStart=b},polygonEnd:function(){t.polygonEnd(),h.lineStart=_}};function g(n,r){n=e(n,r),t.point(n[0],n[1])}function _(){u=NaN,h.point=v,t.lineStart()}function v(r,i){var a=Pd([r,i]),o=e(r,i);n(u,d,l,f,p,m,u=o[0],d=o[1],l=r,f=a[0],p=a[1],m=a[2],nh,t),t.point(u,d)}function y(){h.point=g,t.lineEnd()}function b(){_(),h.point=x,h.lineEnd=S}function x(e,t){v(r=e,t),i=u,a=d,o=f,s=p,c=m,h.point=v}function S(){n(u,d,l,f,p,m,i,a,r,o,s,c,nh,t),h.lineEnd=y,y()}return h}}var sh=Ym({point:function(e,t){this.stream.point(e*U,t*U)}});function ch(e){return Ym({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function lh(e,t,n,r,i){function a(a,o){return a*=r,o*=i,[t+e*a,n-e*o]}return a.invert=function(a,o){return[(a-t)/e*r,(n-o)/e*i]},a}function uh(e,t,n,r,i,a){if(!a)return lh(e,t,n,r,i);var o=q(a),s=J(a),c=o*e,l=s*e,u=o/e,d=s/e,f=(s*n-o*t)/e,p=(s*t+o*n)/e;function m(e,a){return e*=r,a*=i,[c*e-l*a+t,n-l*e-c*a]}return m.invert=function(e,t){return[r*(u*e-d*t+f),i*(p-d*e-u*t)]},m}function dh(e){return fh(function(){return e})()}function fh(e){var t,n=150,r=480,i=250,a=0,o=0,s=0,c=0,l=0,u,d=0,f=1,p=1,m=null,h=np,g=null,_,v,y,b=zp,x=.5,S,C,w,T,E;function D(e){return w(e[0]*U,e[1]*U)}function O(e){return e=w.invert(e[0],e[1]),e&&[e[0]*nd,e[1]*nd]}D.stream=function(e){return T&&E===e?T:T=sh(ch(u)(h(S(b(E=e)))))},D.preclip=function(e){return arguments.length?(h=e,m=void 0,ee()):h},D.postclip=function(e){return arguments.length?(b=e,g=_=v=y=null,ee()):b},D.clipAngle=function(e){return arguments.length?(h=+e?op(m=e*U):(m=null,np),ee()):m*nd},D.clipExtent=function(e){return arguments.length?(b=e==null?(g=_=v=y=null,zp):up(g=+e[0][0],_=+e[0][1],v=+e[1][0],y=+e[1][1]),ee()):g==null?null:[[g,_],[v,y]]},D.scale=function(e){return arguments.length?(n=+e,k()):n},D.translate=function(e){return arguments.length?(r=+e[0],i=+e[1],k()):[r,i]},D.center=function(e){return arguments.length?(a=e[0]%360*U,o=e[1]%360*U,k()):[a*nd,o*nd]},D.rotate=function(e){return arguments.length?(s=e[0]%360*U,c=e[1]%360*U,l=e.length>2?e[2]%360*U:0,k()):[s*nd,c*nd,l*nd]},D.angle=function(e){return arguments.length?(d=e%360*U,k()):d*nd},D.reflectX=function(e){return arguments.length?(f=e?-1:1,k()):f<0},D.reflectY=function(e){return arguments.length?(p=e?-1:1,k()):p<0},D.precision=function(e){return arguments.length?(S=ih(C,x=e*e),ee()):ld(x)},D.fitExtent=function(e,t){return Qm(D,e,t)},D.fitSize=function(e,t){return $m(D,e,t)},D.fitWidth=function(e,t){return eh(D,e,t)},D.fitHeight=function(e,t){return th(D,e,t)};function k(){var e=uh(n,0,0,f,p,d).apply(null,t(a,o)),m=uh(n,r-e[0],i-e[1],f,p,d);return u=Bf(s,c,l),C=Rf(t,m),w=Rf(u,C),S=ih(C,x),ee()}function ee(){return T=E=null,D}return function(){return t=e.apply(this,arguments),D.invert=t.invert&&O,k()}}function ph(e){var t=0,n=H/3,r=fh(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*U,n=e[1]*U):[t*nd,n*nd]},i}function mh(e){var t=q(e);function n(e,n){return[e*t,J(n)/t]}return n.invert=function(e,n){return[e/t,fd(n*t)]},n}function hh(e,t){var n=J(e),r=(n+J(t))/2;if(W(r)<1e-6)return mh(e);var i=1+n*(2*r-n),a=ld(i)/r;function o(e,t){var n=ld(i-2*r*J(t))/r;return[n*J(e*=r),a-n*q(e)]}return o.invert=function(e,t){var n=a-t,o=K(e,W(n))*cd(n);return n*r<0&&(o-=H*cd(e)*cd(n)),[o/r,fd((i-(e*e+n*n)*r*r)/(2*r))]},o}function gh(){return ph(hh).scale(155.424).center([0,33.6442])}function _h(){return gh().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function vh(e){var t=e.length;return{point:function(n,r){for(var i=-1;++i<t;)e[i].point(n,r)},sphere:function(){for(var n=-1;++n<t;)e[n].sphere()},lineStart:function(){for(var n=-1;++n<t;)e[n].lineStart()},lineEnd:function(){for(var n=-1;++n<t;)e[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<t;)e[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<t;)e[n].polygonEnd()}}}function yh(){var e,t,n=_h(),r,i=gh().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a,o=gh().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s,c,l={point:function(e,t){c=[e,t]}};function u(e){var t=e[0],n=e[1];return c=null,(r.point(t,n),c)||(a.point(t,n),c)||(s.point(t,n),c)}u.invert=function(e){var t=n.scale(),r=n.translate(),a=(e[0]-r[0])/t,s=(e[1]-r[1])/t;return(s>=.12&&s<.234&&a>=-.425&&a<-.214?i:s>=.166&&s<.234&&a>=-.214&&a<-.115?o:n).invert(e)},u.stream=function(r){return e&&t===r?e:e=vh([n.stream(t=r),i.stream(r),o.stream(r)])},u.precision=function(e){return arguments.length?(n.precision(e),i.precision(e),o.precision(e),d()):n.precision()},u.scale=function(e){return arguments.length?(n.scale(e),i.scale(e*.35),o.scale(e),u.translate(n.translate())):n.scale()},u.translate=function(e){if(!arguments.length)return n.translate();var t=n.scale(),c=+e[0],u=+e[1];return r=n.translate(e).clipExtent([[c-.455*t,u-.238*t],[c+.455*t,u+.238*t]]).stream(l),a=i.translate([c-.307*t,u+.201*t]).clipExtent([[c-.425*t+V,u+.12*t+V],[c-.214*t-V,u+.234*t-V]]).stream(l),s=o.translate([c-.205*t,u+.212*t]).clipExtent([[c-.214*t+V,u+.166*t+V],[c-.115*t-V,u+.234*t-V]]).stream(l),d()},u.fitExtent=function(e,t){return Qm(u,e,t)},u.fitSize=function(e,t){return $m(u,e,t)},u.fitWidth=function(e,t){return eh(u,e,t)},u.fitHeight=function(e,t){return th(u,e,t)};function d(){return e=t=null,u}return u.scale(1070)}function bh(e){return function(t,n){var r=q(t),i=q(n),a=e(r*i);return a===1/0?[2,0]:[a*i*J(t),a*J(n)]}}function xh(e){return function(t,n){var r=ld(t*t+n*n),i=e(r),a=J(i),o=q(i);return[K(t*a,r*o),fd(r&&n*a/r)]}}var Sh=bh(function(e){return ld(2/(1+e))});Sh.invert=xh(function(e){return 2*fd(e/2)});function Ch(){return dh(Sh).scale(124.75).clipAngle(179.999)}var wh=bh(function(e){return(e=dd(e))&&e/J(e)});wh.invert=xh(function(e){return e});function Th(){return dh(wh).scale(79.4188).clipAngle(179.999)}function Eh(e,t){return[e,od(ud(($u+t)/2))]}Eh.invert=function(e,t){return[e,2*G(id(t))-$u]};function Dh(){return Oh(Eh).scale(961/td)}function Oh(e){var t=dh(e),n=t.center,r=t.scale,i=t.translate,a=t.clipExtent,o=null,s,c,l;t.scale=function(e){return arguments.length?(r(e),u()):r()},t.translate=function(e){return arguments.length?(i(e),u()):i()},t.center=function(e){return arguments.length?(n(e),u()):n()},t.clipExtent=function(e){return arguments.length?(e==null?o=s=c=l=null:(o=+e[0][0],s=+e[0][1],c=+e[1][0],l=+e[1][1]),u()):o==null?null:[[o,s],[c,l]]};function u(){var n=H*r(),i=t(Uf(t.rotate()).invert([0,0]));return a(o==null?[[i[0]-n,i[1]-n],[i[0]+n,i[1]+n]]:e===Eh?[[Math.max(i[0]-n,o),s],[Math.min(i[0]+n,c),l]]:[[o,Math.max(i[1]-n,s)],[c,Math.min(i[1]+n,l)]])}return u()}function kh(e){return ud(($u+e)/2)}function Ah(e,t){var n=q(e),r=e===t?J(e):od(n/q(t))/od(kh(t)/kh(e)),i=n*sd(kh(e),r)/r;if(!r)return Eh;function a(e,t){i>0?t<-$u+1e-6&&(t=-$u+V):t>$u-1e-6&&(t=$u-V);var n=i/sd(kh(t),r);return[n*J(r*e),i-n*q(r*e)]}return a.invert=function(e,t){var n=i-t,a=cd(r)*ld(e*e+n*n),o=K(e,W(n))*cd(n);return n*r<0&&(o-=H*cd(e)*cd(n)),[o/r,2*G(sd(i/a,1/r))-$u]},a}function jh(){return ph(Ah).scale(109.5).parallels([30,30])}function Mh(e,t){return[e,t]}Mh.invert=Mh;function Nh(){return dh(Mh).scale(152.63)}function Ph(e,t){var n=q(e),r=e===t?J(e):(n-q(t))/(t-e),i=n/r+e;if(W(r)<1e-6)return Mh;function a(e,t){var n=i-t,a=r*e;return[n*J(a),i-n*q(a)]}return a.invert=function(e,t){var n=i-t,a=K(e,W(n))*cd(n);return n*r<0&&(a-=H*cd(e)*cd(n)),[a/r,i-cd(r)*ld(e*e+n*n)]},a}function Fh(){return ph(Ph).scale(131.154).center([0,13.9389])}var Ih=1.340264,Lh=-.081106,Rh=893e-6,zh=.003796,Bh=ld(3)/2,Vh=12;function Hh(e,t){var n=fd(Bh*J(t)),r=n*n,i=r*r*r;return[e*q(n)/(Bh*(Ih+3*Lh*r+i*(7*Rh+9*zh*r))),n*(Ih+Lh*r+i*(Rh+zh*r))]}Hh.invert=function(e,t){for(var n=t,r=n*n,i=r*r*r,a=0,o,s,c;a<Vh&&(s=n*(Ih+Lh*r+i*(Rh+zh*r))-t,c=Ih+3*Lh*r+i*(7*Rh+9*zh*r),n-=o=s/c,r=n*n,i=r*r*r,!(W(o)<1e-12));++a);return[Bh*e*(Ih+3*Lh*r+i*(7*Rh+9*zh*r))/q(n),fd(J(n)/Bh)]};function Uh(){return dh(Hh).scale(177.158)}function Wh(e,t){var n=q(t),r=q(e)*n;return[n*J(e)/r,J(t)/r]}Wh.invert=xh(G);function Gh(){return dh(Wh).scale(144.049).clipAngle(60)}function Kh(){var e=1,t=0,n=0,r=1,i=1,a=0,o,s,c=null,l,u,d,f=1,p=1,m=Ym({point:function(e,t){var n=y([e,t]);this.stream.point(n[0],n[1])}}),h=zp,g,_;function v(){return f=e*r,p=e*i,g=_=null,y}function y(e){var r=e[0]*f,i=e[1]*p;if(a){var c=i*o-r*s;r=r*o+i*s,i=c}return[r+t,i+n]}return y.invert=function(e){var r=e[0]-t,i=e[1]-n;if(a){var c=i*o+r*s;r=r*o-i*s,i=c}return[r/f,i/p]},y.stream=function(e){return g&&_===e?g:g=m(h(_=e))},y.postclip=function(e){return arguments.length?(h=e,c=l=u=d=null,v()):h},y.clipExtent=function(e){return arguments.length?(h=e==null?(c=l=u=d=null,zp):up(c=+e[0][0],l=+e[0][1],u=+e[1][0],d=+e[1][1]),v()):c==null?null:[[c,l],[u,d]]},y.scale=function(t){return arguments.length?(e=+t,v()):e},y.translate=function(e){return arguments.length?(t=+e[0],n=+e[1],v()):[t,n]},y.angle=function(e){return arguments.length?(a=e%360*U,s=J(a),o=q(a),v()):a*nd},y.reflectX=function(e){return arguments.length?(r=e?-1:1,v()):r<0},y.reflectY=function(e){return arguments.length?(i=e?-1:1,v()):i<0},y.fitExtent=function(e,t){return Qm(y,e,t)},y.fitSize=function(e,t){return $m(y,e,t)},y.fitWidth=function(e,t){return eh(y,e,t)},y.fitHeight=function(e,t){return th(y,e,t)},y}function qh(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(-.013791+r*(.003971*n-.001529*r))),t*(1.007226+n*(.015085+r*(-.044475+.028874*n-.005916*r)))]}qh.invert=function(e,t){var n=t,r=25,i;do{var a=n*n,o=a*a;n-=i=(n*(1.007226+a*(.015085+o*(-.044475+.028874*a-.005916*o)))-t)/(1.007226+a*(.015085*3+o*(-.044475*7+.028874*9*a-.005916*11*o)))}while(W(i)>1e-6&&--r>0);return[e/(.8707+(a=n*n)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),n]};function Jh(){return dh(qh).scale(175.295)}function Yh(e,t){return[q(t)*J(e),J(t)]}Yh.invert=xh(fd);function Xh(){return dh(Yh).scale(249.5).clipAngle(90+V)}function Zh(e,t){var n=q(t),r=1+q(e)*n;return[n*J(e)/r,J(t)/r]}Zh.invert=xh(function(e){return 2*G(e)});function Qh(){return dh(Zh).scale(250).clipAngle(142)}function $h(e,t){return[od(ud(($u+t)/2)),-e]}$h.invert=function(e,t){return[-t,2*G(id(e))-$u]};function eg(){var e=Oh($h),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):(e=n(),[e[0],e[1],e[2]-90])},n([0,0,90]).scale(159.155)}var tg=t({geoAlbers:()=>_h,geoAlbersUsa:()=>yh,geoArea:()=>Md,geoAzimuthalEqualArea:()=>Ch,geoAzimuthalEqualAreaRaw:()=>Sh,geoAzimuthalEquidistant:()=>Th,geoAzimuthalEquidistantRaw:()=>wh,geoBounds:()=>lf,geoCentroid:()=>If,geoCircle:()=>Kf,geoClipAntimeridian:()=>np,geoClipCircle:()=>op,geoClipExtent:()=>dp,geoClipRectangle:()=>up,geoConicConformal:()=>jh,geoConicConformalRaw:()=>Ah,geoConicEqualArea:()=>gh,geoConicEqualAreaRaw:()=>hh,geoConicEquidistant:()=>Fh,geoConicEquidistantRaw:()=>Ph,geoContains:()=>Np,geoDistance:()=>wp,geoEqualEarth:()=>Uh,geoEqualEarthRaw:()=>Hh,geoEquirectangular:()=>Nh,geoEquirectangularRaw:()=>Mh,geoGnomonic:()=>Gh,geoGnomonicRaw:()=>Wh,geoGraticule:()=>Ip,geoGraticule10:()=>Lp,geoIdentity:()=>Kh,geoInterpolate:()=>Rp,geoLength:()=>xp,geoMercator:()=>Dh,geoMercatorRaw:()=>Eh,geoNaturalEarth1:()=>Jh,geoNaturalEarth1Raw:()=>qh,geoOrthographic:()=>Xh,geoOrthographicRaw:()=>Yh,geoPath:()=>qm,geoProjection:()=>dh,geoProjectionMutator:()=>fh,geoRotation:()=>Uf,geoStereographic:()=>Qh,geoStereographicRaw:()=>Zh,geoStream:()=>yd,geoTransform:()=>Jm,geoTransverseMercator:()=>eg,geoTransverseMercatorRaw:()=>$h},1),ng=(e,t)=>[e,t],rg=(e,t)=>[e,t],ig=(e,t)=>[e,t],ag=(e,t,n)=>[e,t,n],og=(e,t)=>[e,t];function sg(e,t,n,r){let i=Error(t);return i.type=e,n&&(i.geography=n),r&&(i.details=r),i}function $(e,t,n,r){let i=Error(t);return i.name=`GeographyError`,i.type=e,i.timestamp=new Date().toISOString(),n&&(i.geography=n),r&&(i.cause=r,r.stack&&(i.stack=r.stack),i.details={originalMessage:r.message,originalName:r.name}),i}function cg(e){if(!(e instanceof Error))return!1;let t=e;return`type`in t&&typeof t.type==`string`&&[`GEOGRAPHY_LOAD_ERROR`,`GEOGRAPHY_PARSE_ERROR`,`PROJECTION_ERROR`,`VALIDATION_ERROR`,`SECURITY_ERROR`,`CONFIGURATION_ERROR`,`CONTEXT_ERROR`].includes(t.type)}function lg(e,t=!1){if(typeof e!=`string`)throw $(`VALIDATION_ERROR`,`Expected string, got `+typeof e);if(e.length>_g.maxStringLength)throw $(`VALIDATION_ERROR`,`String too long: ${e.length} characters (max: ${_g.maxStringLength})`);let n=e;return t||(n=n.replace(/<[^>]*>/g,``).replace(/&[^;]+;/g,``).replace(/javascript:/gi,``).replace(/data:/gi,``).replace(/vbscript:/gi,``)),n=n.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/g,``),n}function ug(e){if(typeof e!=`string`)throw $(`VALIDATION_ERROR`,`Expected string, got `+typeof e);let t=e.trim();if(!t)throw $(`VALIDATION_ERROR`,`URL must be a non-empty string`);if(t.length>_g.maxStringLength)throw $(`VALIDATION_ERROR`,`String too long: ${t.length} characters (max: ${_g.maxStringLength})`);if(/[\x00-\x1F\x7F]/.test(t))throw $(`VALIDATION_ERROR`,`URL contains invalid control characters`);try{let e=new URL(t);if([`javascript:`,`data:`,`vbscript:`,`file:`].some(t=>e.protocol.toLowerCase().startsWith(t)))throw $(`SECURITY_ERROR`,`Dangerous protocol detected: ${e.protocol}`);if(e.hostname.includes(`..`)||e.hostname.includes(`%`))throw $(`SECURITY_ERROR`,`Invalid hostname: ${e.hostname}`);return e.toString()}catch(e){throw e instanceof TypeError?$(`VALIDATION_ERROR`,`Invalid URL format: ${t}`):e}}function dg(e,t=-1/0,n=1/0){if(typeof e!=`number`)throw $(`VALIDATION_ERROR`,`Expected number, got `+typeof e);if(!Number.isFinite(e))throw $(`VALIDATION_ERROR`,`Number must be finite`);if(e<t||e>n)throw $(`VALIDATION_ERROR`,`Number ${e} is outside allowed range [${t}, ${n}]`);return e}function fg(e){if(!Array.isArray(e)||e.length!==2)throw $(`VALIDATION_ERROR`,`Coordinates must be an array of exactly 2 numbers`);let[t,n]=e;return[dg(t,-180,180),dg(n,-90,90)]}function pg(e,t){if(!Array.isArray(e))throw $(`VALIDATION_ERROR`,`Expected array, got `+typeof e);if(e.length>_g.maxArrayLength)throw $(`VALIDATION_ERROR`,`Array too long: ${e.length} items (max: ${_g.maxArrayLength})`);return t?e.map((e,n)=>{try{return t(e,n)}catch(e){throw $(`VALIDATION_ERROR`,`Invalid array item at index ${n}: ${e instanceof Error?e.message:`Unknown error`}`)}}):e}function mg(e,t=0){if(typeof e!=`object`||!e||Array.isArray(e))throw $(`VALIDATION_ERROR`,`Expected object, got `+typeof e);if(t>_g.maxObjectDepth)throw $(`VALIDATION_ERROR`,`Object nesting too deep: ${t} levels (max: ${_g.maxObjectDepth})`);let n=e,r=Object.create(null);for(let[e,i]of Object.entries(n)){let n=lg(e);vg.has(n)||(typeof i!=`object`||!i||Array.isArray(i)?r[n]=i:r[n]=mg(i,t+1))}return r}function hg(e){let t=mg(e),n={};if(Object.hasOwn(t,`center`)&&t.center!==void 0&&(n.center=fg(t.center)),Object.hasOwn(t,`rotate`)&&t.rotate!==void 0&&Array.isArray(t.rotate)){let e=pg(t.rotate,e=>dg(e,-360,360)),[r,i,a=0]=e;e.length!==2&&e.length!==3||r===void 0||i===void 0||(n.rotate=ag(r,i,a))}if(Object.hasOwn(t,`scale`)&&t.scale!==void 0){let e=dg(t.scale);if(e<=0)throw $(`VALIDATION_ERROR`,`Projection scale must be greater than 0, got ${e}`);n.scale=e}if(Object.hasOwn(t,`parallels`)&&t.parallels!==void 0&&Array.isArray(t.parallels)){let e=pg(t.parallels,e=>dg(e,-90,90));e.length===2&&e[0]!==void 0&&e[1]!==void 0&&(n.parallels=og(e[0],e[1]))}return n}var gg={strictMode:!0,allowUnsafeContent:!1,maxStringLength:1e4,maxArrayLength:1e3,maxObjectDepth:10},_g=function(){let e={...gg};return typeof process<`u`&&e.allowUnsafeContent&&(e.allowUnsafeContent=!1),Object.freeze(e)}(),vg=new Set([`__proto__`,`constructor`,`prototype`]),{geoPath:yg,...bg}=tg,xg=(0,j.createContext)(void 0),Sg=Object.freeze({}),Cg=({width:e,height:t,projection:n,projectionConfig:r=Sg,children:i})=>{let a=typeof n==`function`?Sg:hg(r),[o,s]=a.center??[],[c,l,u]=a.rotate??[],[d,f]=a.parallels??[],{scale:p}=a,m=(0,j.useMemo)(()=>{let r={};return o!==void 0&&s!==void 0&&(r.center=ng(o,s)),c!==void 0&&l!==void 0&&u!==void 0&&(r.rotate=ag(c,l,u)),d!==void 0&&f!==void 0&&(r.parallels=og(d,f)),p!==void 0&&(r.scale=p),(({projectionConfig:e=Sg,projection:t=`geoEqualEarth`,width:n=800,height:r=600})=>{if(typeof t==`function`)return t;let i=t.trim();if(!i)throw sg(`PROJECTION_ERROR`,`Projection name must be a non-empty string`);if(!/^geo[A-Za-z0-9]+$/.test(i))throw sg(`PROJECTION_ERROR`,`Invalid projection name: ${i}`);let a=i,o;if(a in bg)try{o=bg[a]()}catch{}if((s=o)==null||typeof s.scale!=`function`||typeof s.translate!=`function`)throw sg(`PROJECTION_ERROR`,`Unknown projection: ${i}`,void 0,{availableProjections:Object.keys(bg)});var s;let c=o.translate([n/2,r/2]);return e.center&&c.center&&(c=c.center(e.center)),e.rotate&&c.rotate&&(c=c.rotate(e.rotate)),e.scale&&c.scale&&(c=c.scale(e.scale)),e.parallels&&`parallels`in c&&typeof c.parallels==`function`&&c.parallels(e.parallels),c})({projectionConfig:r,projection:n||`geoEqualEarth`,width:e,height:t})},[e,t,n,o,s,c,l,u,d,f,p]);return(0,yr.jsx)(xg,{value:(0,j.useMemo)(()=>({width:e,height:t,projection:m,path:yg().projection(m)}),[e,t,m]),children:i})},wg=()=>{let e=(0,j.useContext)(xg);if(e===void 0)throw sg(`CONTEXT_ERROR`,`useMapContext must be used within a MapProvider`);return e};function Tg(){return null}function Eg(e,t){let n=Dg.getInstance();return{logRender:(0,j.useCallback)((r,i)=>n.logRender(e,r,i,t),[e,n,t])}}var Dg=class e{static instance;debugLogs=[];isEnabled=this.getDebugMode();getDebugMode(){if(typeof process<`u`){let e={}.REACT_SIMPLE_MAPS_DEBUG;if(e===`true`||e===`1`)return!0;if(e===`false`||e===`0`)return!1}return!1}setDebugMode(e){this.isEnabled=e}isDebugEnabled(){return this.isEnabled}static getInstance(){return e.instance||=new e,e.instance}logRender(e,t,n,r=this.isEnabled){if(!r)return;let i=Tg(),a={componentName:e,ownerStack:i,timestamp:Date.now(),...t&&{props:this.sanitizeProps(t)},...n&&{state:this.sanitizeState(n)}};this.debugLogs.push(a),this.debugLogs.length>100&&this.debugLogs.shift(),console.group(`🗺️ ${e} Render`),console.log(`Owner Stack:`,i),t&&console.log(`Props:`,t),n&&console.log(`State:`,n),console.groupEnd()}getAllLogs(){return[...this.debugLogs]}clear(){this.debugLogs.length=0}sanitizeProps(e){if(!e)return;let t={};for(let[n,r]of Object.entries(e))typeof r==`function`?t[n]=`[Function]`:r&&typeof r==`object`&&typeof r.constructor==`function`&&r.constructor!==Object&&r.constructor!==Array?t[n]=`[${r.constructor.name}]`:t[n]=r;return t}sanitizeState(e){return this.sanitizeProps(e)}},Og={debugGeographyLoading:(e,t,n)=>{if(Dg.getInstance().isDebugEnabled())try{let r=Tg();console.group(`🌍 Geography Loading: ${e}`),console.log(`Status:`,t),console.log(`Owner Stack:`,r),n&&console.log(`Data:`,n),console.groupEnd()}catch{console.log(`🌍 Geography Loading: ${e} - Status: ${t}`),n&&console.log(`Data:`,n)}}};function kg({width:e=800,height:t=600,projection:n=`geoEqualEarth`,projectionConfig:r=Ag,className:i=``,debug:a,children:o,ref:s,onGeographyError:c,fallback:l,...u}){let{logRender:d}=Eg(`ComposableMap`,a);return(0,j.useEffect)(()=>{d({width:e,height:t,projection:n,projectionConfig:r,className:i})},[d,e,t,n,r,i]),(0,yr.jsx)(Cg,{width:e,height:t,projection:n,projectionConfig:r,children:(0,yr.jsx)(`svg`,{ref:s,viewBox:`0 0 ${e} ${t}`,className:`rsm-svg ${i}`,...u,children:o})})}var Ag=Object.freeze({});kg.displayName=`ComposableMap`;var jg=(0,j.memo)(kg);function Mg(e){if((typeof e==`object`||typeof e==`function`)&&e!==null){let t=Kg.get(e);if(t)return t;qg+=1;let n=`obj:${qg}`;return Kg.set(e,n),n}return String(e)}function Ng(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return`str:${e.length}:${(t>>>0).toString(16)}`}function Pg(e,t){let n;return n=typeof e==`string`?Ng(e):typeof e!=`object`&&typeof e!=`function`||e===null?Ng(String(e)):Mg(e),t?`${n}:${t}`:n}function Fg(e,t){Gg.features.set(e,t)}function Ig(e){return Gg.features.get(e)}function Lg(e,t){Gg.preparedFeatures.set(e,t)}function Rg(e){return Gg.preparedFeatures.get(e)}function zg(e,t){Gg.meshData.set(e,t)}function Bg(e){return Gg.meshData.get(e)}function Vg(e,t){return Pg(e,`features:${t?Mg(t):`default`}`)}function Hg(e,t){return`prepared:${Mg(e)}:${Mg(t)}`}function Ug(e,t){return Pg(e,`mesh:${Mg(t)}`)}var Wg=class{cache;maxSize;constructor(e){this.cache=new Map,this.maxSize=e}get(e){let t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){let e=this.cache.keys().next().value;e!==void 0&&this.cache.delete(e)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}},Gg={features:new Wg(50),preparedFeatures:new Wg(30),meshData:new Wg(40)},Kg=new WeakMap,qg=0;function Jg(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Yg(e,t){if(!Array.isArray(e))return!1;for(let n of e)if(!t(n))return!1;return!0}function Xg(e){return Array.isArray(e)&&e.length>=2&&Yg(e,e=>typeof e==`number`&&Number.isFinite(e))}function Zg(e){return Array.isArray(e)&&(e.length===0||e.length>=2)&&Yg(e,Xg)}function Qg(e){if(!Array.isArray(e)||e.length<4)return!1;let t=e[0],n=e[e.length-1];return Xg(t)&&Xg(n)&&t.length===n.length&&t.every((e,t)=>e===n[t])&&Yg(e,Xg)}function $g(e,t,n){return t===0?n(e):Yg(e,e=>$g(e,t-1,n))}function e_(e,t=!1){return(t&&e.properties===void 0||e.properties===null||Jg(e.properties))&&(e.id===void 0||typeof e.id==`string`||typeof e.id==`number`)}function t_(e,t){let n=new Set,r=[{geometry:e}];for(;r.length>0;){let e=r.pop();if(!e||!Jg(e.geometry))return!1;let i=e.geometry;if(e.exit)n.delete(i);else{if(n.has(i)||t!==void 0&&!e_(i,!0))return!1;if(i.type===`GeometryCollection`){if(!Array.isArray(i.geometries))return!1;n.add(i),r.push({geometry:i,exit:!0});for(let e of i.geometries)r.push({geometry:e})}else if(!n_(i,t))return!1}}return!0}function n_(e,t){if(t!==void 0&&e.type===null)return!0;let n;switch(e.type){case`Point`:return Xg(e.coordinates);case`MultiPoint`:return Yg(e.coordinates,Xg);case`LineString`:n=1;break;case`Polygon`:case`MultiLineString`:n=2;break;case`MultiPolygon`:n=3;break;default:return!1}return t===void 0?e.type===`Polygon`||e.type===`MultiPolygon`?$g(e.coordinates,n-1,Qg):$g(e.coordinates,n-1,Zg):$g(e.arcs,n-1,e=>Array.isArray(e)&&e.length>0&&Yg(e,e=>typeof e!=`number`||!Number.isInteger(e)?!1:(t[e<0?-e-1:e]?.length??0)>0))}function r_(e){if(!Jg(e)||e.type!==`Topology`||!Jg(e.objects)||!Yg(e.arcs,e=>Yg(e,Xg)))return!1;let t=e.arcs;return!!(e.transform===void 0||Jg(e.transform)&&Xg(e.transform.scale)&&e.transform.scale.length===2&&Xg(e.transform.translate)&&e.transform.translate.length===2)&&Object.values(e.objects).every(e=>t_(e,t))}function i_(e,t=!1){return Jg(e)&&e.type===`FeatureCollection`&&Yg(e.features,e=>a_(e,t))}function a_(e,t=!1){return Jg(e)&&e.type===`Feature`&&e_(e)&&(t&&e.geometry===null||o_(e.geometry))}function o_(e){return t_(e)}function s_(e){return r_(e)||i_(e,!0)}function c_(){return typeof process<`u`&&!0}function l_(){return S_}function u_(e){return e.startsWith(`[`)&&e.endsWith(`]`)?e.slice(1,-1):e}function d_(e){let t=u_(e).toLowerCase().replace(/\.$/,``);return t===`localhost`||t.endsWith(`.localhost`)||t===`127.0.0.1`||t===`::1`}function f_(e){if(!e||e===`localhost`)return!1;let t=u_(e),n=/^\d{1,3}(?:\.\d{1,3}){3}$/.test(t);for(let e of[/^10\./,/^172\.(1[6-9]|2[0-9]|3[01])\./,/^192\.168\./,/^127\./,/^169\.254\./,/^0\./,/^100\.(6[4-9]|[7-9]\d|1[01]\d|12[0-7])\./,/^192\.0\.0\./,/^192\.0\.2\./,/^198\.51\.100\./,/^203\.0\.113\./,/^198\.1[89]\./,/^233\.252\.0\./])if(n&&e.test(t))return!0;for(let e of[/^::1$/i,/^fe[89ab][0-9a-f]:/i,/^f[cd][0-9a-f]{2}:/i,/^::$/i,/^ff[0-9a-f]{2}:/i,/^100::/i,/^2001:db8:/i,/^2001:(?:0{1,4}:|:)/i])if(e.test(t))return!0;let r=t.match(/^::ffff:(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})$/i);if(r?.[1])return f_(r[1]);let i=t.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(i?.[1]&&i[2]){let e=parseInt(i[1],16),t=parseInt(i[2],16);return f_(`${e>>8&255}.${255&e}.${t>>8&255}.${255&t}`)}return!1}function p_(){return typeof process<`u`&&process.release?.name===`node`&&typeof window>`u`}async function m_(e){if(!p_())return[];let t=u_(e);if(!t)return[];let n=await async function(){if(typeof process<`u`){let e=typeof process.getBuiltinModule==`function`?process.getBuiltinModule(`node:dns/promises`):null;if(e?.lookup)return e}try{let e=await a(()=>import(`node:dns/promises`),[]);return e.lookup?e:null}catch{return null}}();if(!n?.lookup)throw $(`SECURITY_ERROR`,`Unable to resolve hostname ${t} for security validation`,t);try{return(await n.lookup(t,{all:!0,verbatim:!0})).map(e=>e.address)}catch(e){throw $(`SECURITY_ERROR`,`Unable to resolve hostname ${t} for security validation`,t,e instanceof Error?e:void 0)}}function h_(e,t=S_){let n=ug(e);try{let r=new URL(n);if(t.STRICT_HTTPS_ONLY){if(r.protocol!==`https:`)throw $(`SECURITY_ERROR`,`Strict HTTPS-only mode: ${r.protocol} is not allowed. Only HTTPS is permitted.`,e)}else{if(!t.ALLOWED_PROTOCOLS.includes(r.protocol)){let n=t.ALLOWED_PROTOCOLS.join(`, `);throw $(`SECURITY_ERROR`,`Unsupported protocol: ${r.protocol}. Only ${n} are allowed.`,e)}if(r.protocol===`http:`){if(!t.ALLOW_HTTP_LOCALHOST)throw $(`SECURITY_ERROR`,`HTTP protocol is disabled for security. Use HTTPS or enable development mode explicitly.`,e);if(!d_(r.hostname))throw $(`SECURITY_ERROR`,`HTTP protocol is only allowed for localhost. Use HTTPS for remote URLs.`,e);if(c_())throw $(`SECURITY_ERROR`,`HTTP localhost access is not allowed in production`,e);console.warn(`Security Warning: Using HTTP for localhost (${e}). This should only be used in development.`)}}if(d_(r.hostname)&&c_())throw $(`SECURITY_ERROR`,`Localhost access is not allowed in production`,e);if(f_(r.hostname))throw $(`SECURITY_ERROR`,`Access to private IP address ${r.hostname} is not allowed`,e)}catch(t){throw t instanceof TypeError?$(`VALIDATION_ERROR`,`Invalid URL format: ${e}`,e,t):t}}async function g_(e,t=S_,n=m_){if(h_(e,t),n===m_&&!p_())return;let{hostname:r}=new URL(e),i=u_(r);if(i&&!d_(r)&&!f_(r)&&(await n(i)).some(e=>f_(e)))throw $(`SECURITY_ERROR`,`Hostname ${i} resolves to a private IP address, which is not allowed`,e)}function __(e,t=S_){let n=e.headers.get(`content-type`);if(!n)throw $(`VALIDATION_ERROR`,`Missing Content-Type header`);let r=n.split(`;`,1)[0]?.trim().toLowerCase()??``;if(!t.ALLOWED_CONTENT_TYPES.includes(r))throw $(`VALIDATION_ERROR`,`Invalid content type: ${n}. Expected one of: ${t.ALLOWED_CONTENT_TYPES.join(`, `)}`)}async function v_(e,t=S_){let n=e.headers.get(`content-length`);if(n){let e=parseInt(n,10);if(e>t.MAX_RESPONSE_SIZE)throw $(`VALIDATION_ERROR`,`Response too large: ${e} bytes. Maximum allowed: ${t.MAX_RESPONSE_SIZE} bytes`)}}async function y_(e,t=S_.MAX_RESPONSE_SIZE){let n=e.body?.getReader();if(!n){let n=await e.arrayBuffer();if(n.byteLength>t)throw $(`VALIDATION_ERROR`,`Response too large: ${n.byteLength} bytes exceeds limit of ${t} bytes`);return n}let r=[],i=0;for(;;){let{done:e,value:a}=await n.read();if(e)break;if(i+=a.byteLength,i>t)throw n.cancel().catch(()=>{}),$(`VALIDATION_ERROR`,`Response too large: exceeded limit of ${t} bytes`);r.push(a)}let a=new Uint8Array(i),o=0;for(let e of r)a.set(e,o),o+=e.byteLength;return a.buffer}function b_(e){if(!e||typeof e!=`object`)throw $(`VALIDATION_ERROR`,`Invalid geography data: not a valid object`);let t=e;if(!t.type||t.type!==`Topology`&&t.type!==`FeatureCollection`)throw $(`VALIDATION_ERROR`,`Invalid geography data: expected Topology or FeatureCollection, got ${t.type}`);if(t.type===`Topology`&&(typeof t.objects!=`object`||t.objects===null||Array.isArray(t.objects)))throw $(`VALIDATION_ERROR`,`Invalid topology data: expected a non-null objects map`);if(t.type===`FeatureCollection`&&!Array.isArray(t.features))throw $(`VALIDATION_ERROR`,`Invalid feature collection data: expected a features array`);if(!s_(e))throw $(`VALIDATION_ERROR`,`Invalid geography data: malformed ${t.type} geometry or coordinates`)}var x_={TIMEOUT_MS:1e4,MAX_RESPONSE_SIZE:52428800,ALLOWED_CONTENT_TYPES:[`application/json`,`application/geo+json`],ALLOWED_PROTOCOLS:[`https:`],ALLOW_HTTP_LOCALHOST:!1,STRICT_HTTPS_ONLY:!0};({...x_});var S_=Object.freeze({...x_,ALLOWED_CONTENT_TYPES:Object.freeze([...x_.ALLOWED_CONTENT_TYPES]),ALLOWED_PROTOCOLS:Object.freeze([...x_.ALLOWED_PROTOCOLS])}),C_=u();function w_(e,t=!1){if(typeof e!=`string`||!e)return;let n=typeof window<`u`;if(!n||!T_.has(e))try{h_(e);let r=new URL(e);(0,C_.prefetchDNS)(r.origin),(0,C_.preconnect)(r.origin),n&&T_.add(e),(t||typeof process<`u`)&&(0,C_.preload)(e,{as:`fetch`,crossOrigin:`anonymous`})}catch{}}var T_=new Set;function E_(e){return e}function D_(e){if(e==null)return E_;var t,n,r=e.scale[0],i=e.scale[1],a=e.translate[0],o=e.translate[1];return function(e,s){s||(t=n=0);var c=2,l=e.length,u=Array(l);for(u[0]=(t+=e[0])*r+a,u[1]=(n+=e[1])*i+o;c<l;)u[c]=e[c],++c;return u}}function O_(e,t){for(var n,r=e.length,i=r-t;i<--r;)n=e[i],e[i++]=e[r],e[r]=n}function k_(e,t){return typeof t==`string`&&(t=e.objects[t]),t.type===`GeometryCollection`?{type:`FeatureCollection`,features:t.geometries.map(function(t){return A_(e,t)})}:A_(e,t)}function A_(e,t){var n=t.id,r=t.bbox,i=t.properties==null?{}:t.properties,a=j_(e,t);return n==null&&r==null?{type:`Feature`,properties:i,geometry:a}:r==null?{type:`Feature`,id:n,properties:i,geometry:a}:{type:`Feature`,id:n,bbox:r,properties:i,geometry:a}}function j_(e,t){var n=D_(e.transform),r=e.arcs;function i(e,t){t.length&&t.pop();for(var i=r[e<0?~e:e],a=0,o=i.length;a<o;++a)t.push(n(i[a],a));e<0&&O_(t,o)}function a(e){return n(e)}function o(e){for(var t=[],n=0,r=e.length;n<r;++n)i(e[n],t);return t.length<2&&t.push(t[0]),t}function s(e){for(var t=o(e);t.length<4;)t.push(t[0]);return t}function c(e){return e.map(s)}function l(e){var t=e.type,n;switch(t){case`GeometryCollection`:return{type:t,geometries:e.geometries.map(l)};case`Point`:n=a(e.coordinates);break;case`MultiPoint`:n=e.coordinates.map(a);break;case`LineString`:n=o(e.arcs);break;case`MultiLineString`:n=e.arcs.map(o);break;case`Polygon`:n=c(e.arcs);break;case`MultiPolygon`:n=e.arcs.map(c);break;default:return null}return{type:t,coordinates:n}}return l(t)}function M_(e,t){var n={},r={},i={},a=[],o=-1;t.forEach(function(n,r){var i=e.arcs[n<0?~n:n],a;i.length<3&&!i[1][0]&&!i[1][1]&&(a=t[++o],t[o]=n,t[r]=a)}),t.forEach(function(e){var t=s(e),n=t[0],a=t[1],o,c;if(o=i[n])if(delete i[o.end],o.push(e),o.end=a,c=r[a]){delete r[c.start];var l=c===o?o:o.concat(c);r[l.start=o.start]=i[l.end=c.end]=l}else r[o.start]=i[o.end]=o;else if(o=r[a])if(delete r[o.start],o.unshift(e),o.start=n,c=i[n]){delete i[c.end];var u=c===o?o:c.concat(o);r[u.start=c.start]=i[u.end=o.end]=u}else r[o.start]=i[o.end]=o;else o=[e],r[o.start=n]=i[o.end=a]=o});function s(t){var n=e.arcs[t<0?~t:t],r=n[0],i;return e.transform?(i=[0,0],n.forEach(function(e){i[0]+=e[0],i[1]+=e[1]})):i=n[n.length-1],t<0?[i,r]:[r,i]}function c(e,t){for(var r in e){var i=e[r];delete t[i.start],delete i.start,delete i.end,i.forEach(function(e){n[e<0?~e:e]=1}),a.push(i)}}return c(i,r),c(r,i),t.forEach(function(e){n[e<0?~e:e]||a.push([e])}),a}function N_(e){return j_(e,P_.apply(this,arguments))}function P_(e,t,n){var r,i,a;if(arguments.length>1)r=F_(e,t,n);else for(i=0,r=Array(a=e.arcs.length);i<a;++i)r[i]=i;return{type:`MultiLineString`,arcs:M_(e,r)}}function F_(e,t,n){var r=[],i=[],a;function o(e){var t=e<0?~e:e;(i[t]||(i[t]=[])).push({i:e,g:a})}function s(e){e.forEach(o)}function c(e){e.forEach(s)}function l(e){e.forEach(c)}function u(e){switch(a=e,e.type){case`GeometryCollection`:e.geometries.forEach(u);break;case`LineString`:s(e.arcs);break;case`MultiLineString`:case`Polygon`:c(e.arcs);break;case`MultiPolygon`:l(e.arcs);break}}return u(t),i.forEach(n==null?function(e){r.push(e[0].i)}:function(e){n(e[0].g,e[e.length-1].g)&&r.push(e[0].i)}),r}function I_(e){return typeof e==`string`}function L_(e){return e.type===`GeometryCollection`?{...e,geometries:e.geometries.filter(e=>e!==null).map(L_)}:e}function R_(e,t){return Array.isArray(e)?t?t(e):e:e.type===`Topology`?function(e,t){let n=Object.keys(e.objects);if(n.length===0)return[];let r=n[0];if(!r)return[];let i=e.objects[r];if(!i)return[];let a=k_(e,i),o=(`features`in a?a.features||[]:[a]).filter(e=>e.geometry!==null).map(e=>e.geometry.type===`GeometryCollection`?{...e,geometry:L_(e.geometry)}:e);return t?t(o):o}(e,t):e.type===`FeatureCollection`?function(e,t){let n=(e.features||[]).filter(e=>e.geometry!==null);return t?t(n):n}(e,t):[]}function z_(e){return e&&typeof e==`object`&&!Array.isArray(e)&&`type`in e&&e.type===`Topology`?function(e){let t=Object.keys(e.objects);if(t.length===0)return null;let n=t[0];if(!n)return null;let r=e.objects[n];if(!r)return null;try{return{outline:N_(e,r,(e,t)=>e===t),borders:N_(e,r,(e,t)=>e!==t)}}catch{return null}}(e):null}function B_(e,t,n){let r={};if(e){let t=n(e);t&&(r.outline=t)}if(t){let e=n(t);e&&(r.borders=e)}return r}function V_(e){let t=e.rsmKey;return t==null?e.id!==void 0&&e.id!==null?String(e.id):null:String(t)}function H_(e,t){return t.some(t=>t.has(e))}function U_(e,t){if(!H_(e,t))return e;let n=1,r=`${e}-${n}`;for(;H_(r,t);)n+=1,r=`${e}-${n}`;return r}function W_(e,t){if(!e||e.length===0)return[];let n=e.map((e,n)=>{let r=t(e);return r?{explicitKey:V_(e),feature:e,index:n,svgPath:r}:null}).filter(e=>e!==null),r=new Set(n.map(e=>e.explicitKey).filter(e=>e!==null)),i=new Set;return n.map(({explicitKey:e,feature:t,index:n,svgPath:a})=>{let o=e===null?function(e,t,n){return U_(`geo-${e}`,[t,n])}(n,i,r):function(e,t,n){return t.has(e)?U_(e,[t,n]):e}(e,i,r);return i.add(o),{...t,svgPath:a,rsmKey:o}})}function G_(e,t){return{signal:e,headers:{Accept:t.ALLOWED_CONTENT_TYPES.join(`, `)},mode:`cors`,credentials:`omit`,redirect:`manual`}}function K_(e,t){if(!t)return e;let n=()=>{},r=new Promise((e,r)=>{n=()=>{let e=Error(`Request aborted`);e.name=`AbortError`,r(e)},t.aborted?n():t.addEventListener(`abort`,n,{once:!0})});return Promise.race([e,r]).finally(()=>t.removeEventListener(`abort`,n))}async function q_(e,t,n){let r=e,i=[e];for(let a=0;;a++){let o=await fetch(r,t);if(o.type===`opaqueredirect`)throw $(`SECURITY_ERROR`,`Cannot validate an opaque redirect. Use the final resource URL directly.`,r);if(o.status<300||o.status>=400)return{response:o,urls:i};try{await o.body?.cancel()}catch{}if(a===5)throw $(`SECURITY_ERROR`,`Too many redirects (exceeded 5 hops)`,e);let s=o.headers.get(`location`);if(!s)throw $(`SECURITY_ERROR`,`Redirect response (HTTP ${o.status}) missing Location header`,r);let c=new URL(s,r).href;h_(c,n),await K_(g_(c,n),t.signal),r=c,i.push(c)}}function J_(e){let t=new AbortController,n=setTimeout(()=>{t.abort()},e);return{controller:t,cleanup:()=>clearTimeout(n)}}function Y_(){return rv}async function X_(e,t){let n=await globalThis.crypto.subtle.digest(t,e),r=new Uint8Array(n),i;if(globalThis.btoa!==void 0)i=globalThis.btoa(String.fromCharCode(...r));else{let e=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,t=``;for(let n=0;n<r.length;n+=3){let i=(r[n]||0)<<16|(r[n+1]||0)<<8|(r[n+2]||0);t+=e.charAt(i>>18&63),t+=e.charAt(i>>12&63),t+=n+1<r.length?e.charAt(i>>6&63):`=`,t+=n+2<r.length?e.charAt(63&i):`=`}i=t}return i}async function Z_(e,t,n){let r=await X_(e,{sha256:`SHA-256`,sha384:`SHA-384`,sha512:`SHA-512`}[n.algorithm]),i=n.hash.replace(`${n.algorithm}-`,``);if(r!==i){let e=Error(`Subresource Integrity check failed for ${t}. Expected ${n.algorithm}-${i}, got ${n.algorithm}-${r}`);throw e.expectedHash=n.hash,e.calculatedHash=`${n.algorithm}-${r}`,e.algorithm=n.algorithm,$(`SECURITY_ERROR`,e.message,t,e)}}function Q_(e,t=!1){return e.replace(/%[0-9a-f]{2}/gi,e=>{let n=String.fromCharCode(parseInt(e.slice(1),16));return/[\w.~-]/.test(n)||t&&n===`@`?n:e.toUpperCase()})}function $_(e,t=!1){try{let n=new URL(e);return n.hash=``,n.search=t?``:Q_(n.search),(n.protocol===`https:`&&n.port===`443`||n.protocol===`http:`&&n.port===`80`)&&(n.port=``),n.hostname=n.hostname.replace(/\.$/,``),n.pathname=Q_(n.pathname,t),t&&(n.pathname=n.pathname.replace(/\/+$/,``)||`/`),n.href}catch{return e}}function ev(e,t=rv){let n=$_(e),r=t.customSRIMap[n]??t.customSRIMap[e];if(r?.enforceIntegrity)return r;let i=tv[$_(e,!0)];if(i&&t.enforceForKnownSources)return i;if(t.enforceForAllSources&&!t.allowUnknownSources)throw $(`SECURITY_ERROR`,`SRI enforcement is enabled but no integrity hash is available for ${e}`,e);return null}var tv={"https://unpkg.com/world-atlas@2/countries-110m.json":{algorithm:`sha384`,hash:`sha384-yOCJ+8ShBm8UDqtAVtAvxTDDf4gXo5edxl/YG0FmVC5OTmqVLl7utuVGBDEeZWHf`,enforceIntegrity:!0},"https://unpkg.com/world-atlas@2.0.2/countries-110m.json":{algorithm:`sha384`,hash:`sha384-yOCJ+8ShBm8UDqtAVtAvxTDDf4gXo5edxl/YG0FmVC5OTmqVLl7utuVGBDEeZWHf`,enforceIntegrity:!0},"https://unpkg.com/world-atlas@2/countries-50m.json":{algorithm:`sha384`,hash:`sha384-Aw4s9pX1PTPntIYkZ/qV9IYiF5Gv8eTl6Dd/TT56zfO1Wwd+owFwYUuuXNUMrWkc`,enforceIntegrity:!0},"https://unpkg.com/world-atlas@2.0.2/countries-50m.json":{algorithm:`sha384`,hash:`sha384-Aw4s9pX1PTPntIYkZ/qV9IYiF5Gv8eTl6Dd/TT56zfO1Wwd+owFwYUuuXNUMrWkc`,enforceIntegrity:!0},"https://unpkg.com/world-atlas@2/land-110m.json":{algorithm:`sha384`,hash:`sha384-5oFOGoMd0tkagYW08lVco4uAi7XDEDBwBxOdeKx+SA1ihbsHiR/aFAJGretluTzG`,enforceIntegrity:!0},"https://unpkg.com/world-atlas@2.0.2/land-110m.json":{algorithm:`sha384`,hash:`sha384-5oFOGoMd0tkagYW08lVco4uAi7XDEDBwBxOdeKx+SA1ihbsHiR/aFAJGretluTzG`,enforceIntegrity:!0},"https://unpkg.com/world-atlas@2/land-50m.json":{algorithm:`sha384`,hash:`sha384-c0VeCJd1wVbV5WQZNjf1hcMqPr9QXweEArnbdgS1k75TBNjta2M/NddyAulA/Glb`,enforceIntegrity:!0},"https://unpkg.com/world-atlas@2.0.2/land-50m.json":{algorithm:`sha384`,hash:`sha384-c0VeCJd1wVbV5WQZNjf1hcMqPr9QXweEArnbdgS1k75TBNjta2M/NddyAulA/Glb`,enforceIntegrity:!0}},nv={enforceForKnownSources:!0,enforceForAllSources:!1,allowUnknownSources:!0,customSRIMap:{}},rv=Object.freeze({...nv,customSRIMap:Object.freeze({...nv.customSRIMap})});async function iv(e,t,n){h_(e,t);let r=ev(e,n),{controller:i,cleanup:a}=J_(t.TIMEOUT_MS);try{await K_(g_(e,t),i.signal);let{response:a,urls:o}=await q_(e,G_(i.signal,t),t);try{if(!a.ok)throw $(`GEOGRAPHY_LOAD_ERROR`,`HTTP ${a.status}: ${a.statusText}`,e);__(a,t),await v_(a,t)}catch(e){throw await a.body?.cancel().catch(()=>{}),e}let s=await y_(a,t.MAX_RESPONSE_SIZE);r&&await Z_(s,e,r);let c={...n,enforceForAllSources:!1};for(let e of o.slice(1)){let t=ev(e,c);t&&await Z_(s,e,t)}return await async function(e,t){try{let t=new TextDecoder().decode(e),n=JSON.parse(t);return b_(n),n}catch(e){throw e instanceof SyntaxError?$(`GEOGRAPHY_PARSE_ERROR`,`Invalid JSON format in geography data`,t,e):e}}(s,e)}catch(n){throw function(e,t,n){if(cg(e))return e.geography??=t,e;if(e instanceof Error){if(e.name===`AbortError`)return $(`GEOGRAPHY_LOAD_ERROR`,`Request timeout after ${n.TIMEOUT_MS}ms`,t,e);if(e.name===`TypeError`&&e.message.includes(`fetch`))return $(`GEOGRAPHY_LOAD_ERROR`,`Network error: Unable to fetch geography from ${t}`,t,e)}return $(`GEOGRAPHY_LOAD_ERROR`,e instanceof Error?e.message:`Unknown error occurred`,t,e instanceof Error?e:void 0)}(n,e,t)}finally{a()}}function av(e){let t=l_(),n=Y_(),r=ov.get(e);if(r?.securityConfig===t&&r.sriConfig===n)return r.promise;let i={promise:iv(e,t,n),securityConfig:t,sriConfig:n},a=()=>{ov.get(e)===i&&ov.delete(e)};return i.promise.then(a,a),ov.set(e,i),i.promise}var ov=new Map;function sv({geography:e,parseGeographies:t}){let{path:n}=wg(),[r,i]=(0,j.useState)(null),[a,o]=(0,j.useState)(0),s=(0,j.useCallback)(()=>{o(e=>e+1)},[]);(0,j.useEffect)(()=>{if(i(null),!I_(e))return;let t=!1;return Og.debugGeographyLoading(e,`start`),w_(e),av(e).then(n=>{t||(Og.debugGeographyLoading(e,`success`,n),i({url:e,attempt:a,data:n}))},n=>{t||(Og.debugGeographyLoading(e,`error`,n),i({url:e,attempt:a,error:n instanceof Error?n:Error(String(n))}))}),()=>{t=!0}},[e,a]);let c=I_(e),l=c&&r?.url===e&&r.attempt===a?r:null,u=c?l?.data??null:e,d=c&&!l,f=l?.error??null,p=(0,j.useMemo)(()=>{if(d||!u)return[];let e=Vg(u,t),n=Ig(e);if(n)return n;let r=R_(u,t);return Fg(e,r),r},[u,d,t]),m=(0,j.useMemo)(()=>d||!u?null:z_(u),[u,d]),h=(0,j.useMemo)(()=>{if(p.length===0)return[];let e=Hg(p,n),t=Rg(e);if(t)return t;let r=W_(p,n);return Lg(e,r),r},[p,n]),g=(0,j.useMemo)(()=>{if(!m)return{outline:``,borders:``};let e=Ug(u,n),t=Bg(e);if(t)return t;let r=B_(m.outline||null,m.borders||null,n),i={outline:r.outline||``,borders:r.borders||``};return zg(e,i),i},[m,n,u]);return(0,j.useMemo)(()=>({geographies:h,outline:g.outline,borders:g.borders,isLoading:d,error:f,refetch:s}),[h,g,d,f,s])}function cv(e,t){return(0,yr.jsxs)(`g`,{className:`rsm-error-boundary`,role:`alert`,children:[(0,yr.jsx)(`text`,{className:`rsm-error-text`,x:`50%`,y:`42%`,textAnchor:`middle`,dominantBaseline:`middle`,fill:`currentColor`,children:`Failed to load geography data.`}),(0,yr.jsx)(`text`,{className:`rsm-error-retry`,x:`50%`,y:`58%`,textAnchor:`middle`,dominantBaseline:`middle`,fill:`currentColor`,role:`button`,tabIndex:0,style:{cursor:`pointer`},onClick:t,onKeyDown:e=>{e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),t())},children:`Retry`})]})}function lv({children:e,fallback:t=cv,onError:n,resetKey:r}){let[i,a]=(0,j.useState)(0),o=(0,j.useCallback)((e,t)=>{n&&n(e)},[n]),s=(0,j.useCallback)(()=>{a(e=>e+1)},[]);return(0,yr.jsx)(uv,{fallback:(0,j.useCallback)(e=>t(e,s),[t,s]),onError:o,resetKey:r,children:e},i)}var uv=class extends j.Component{constructor(e){super(e),this.state={hasError:!1,error:null,resetKey:e.resetKey}}static getDerivedStateFromError(e){let t;try{t=e instanceof Error?e:Error(String(e))}catch{t=Error(`Unknown geography rendering error`)}return{hasError:!0,error:t}}static getDerivedStateFromProps(e,t){return Object.is(e.resetKey,t.resetKey)?null:{hasError:!1,error:null,resetKey:e.resetKey}}componentDidCatch(e,t){this.props.onError&&this.state.error&&this.props.onError(this.state.error,t)}render(){return this.state.hasError&&this.state.error?this.props.fallback(this.state.error):this.props.children}};function dv({geography:e,children:t,parseGeographies:n,onGeographyError:r,fallback:i}){let{path:a,projection:o}=wg(),{geographies:s,outline:c,borders:l,isLoading:u,error:d,refetch:f}=sv({geography:e,...n&&{parseGeographies:n}}),p=(0,j.useRef)(null);return(0,j.useEffect)(()=>{d?r&&p.current!==d&&(p.current=d,r(d)):p.current=null},[d,r]),u?pv:d?i&&typeof i==`function`?i(d,f??(()=>{})):(0,yr.jsx)(`text`,{className:`rsm-error-text`,x:`50%`,y:`50%`,textAnchor:`middle`,fill:`currentColor`,children:`Failed to load geography data`}):s.length?t({geographies:s,outline:c,borders:l,path:a,projection:o}):null}function fv({className:e=``,errorBoundary:t=!1,ref:n,geography:r,children:i,parseGeographies:a,onGeographyError:o,fallback:s,...c}){let l=(0,yr.jsx)(dv,{geography:r,...a&&{parseGeographies:a},...o&&{onGeographyError:o},...s&&{fallback:s},children:i});return(0,yr.jsx)(`g`,{ref:n,className:`rsm-geographies ${e}`,...c,children:t?(0,yr.jsx)(lv,{resetKey:typeof r==`string`?r:void 0,...o&&{onError:o},...s&&{fallback:s},children:l}):l})}var pv=(0,yr.jsx)(`text`,{className:`rsm-loading-text`,x:`50%`,y:`50%`,textAnchor:`middle`,children:`Loading...`}),mv=new Set([`geography`,`children`,`parseGeographies`,`className`,`errorBoundary`,`onGeographyError`,`fallback`,`ref`]);fv.displayName=`Geographies`;var hv=(0,j.memo)(fv,function(e,t){if(e.geography!==t.geography||e.className!==t.className||e.errorBoundary!==t.errorBoundary||e.children!==t.children||e.parseGeographies!==t.parseGeographies||e.onGeographyError!==t.onGeographyError||e.fallback!==t.fallback||e.ref!==t.ref)return!1;let n=e,r=t,i=new Set([...Object.keys(n),...Object.keys(r)]);for(let e of i)if(!mv.has(e)&&n[e]!==r[e])return!1;return!0});function gv(e){if(!e?.geometry)return null;let t;try{t=If(e)}catch{return null}return!t||!isFinite(t[0])||!isFinite(t[1])||Math.abs(t[0])>180||Math.abs(t[1])>90?null:ng(t[0],t[1])}function _v(e){if(!e?.geometry)return null;let t;try{t=lf(e)}catch{return null}if(!(t&&Array.isArray(t)&&t.length===2&&Array.isArray(t[0])&&Array.isArray(t[1])&&t[0].length===2&&t[1].length===2))return null;let[n,r]=t;return!isFinite(n[0])||!isFinite(n[1])||!isFinite(r[0])||!isFinite(r[1])||Math.abs(n[0])>180||Math.abs(n[1])>90||Math.abs(r[0])>180||Math.abs(r[1])>90?null:[ng(n[0],n[1]),ng(r[0],r[1])]}function vv(e){if(!e?.geometry)return null;let{geometry:t}=e;switch(t.type){case`Point`:if(t.coordinates&&Array.isArray(t.coordinates)&&t.coordinates.length>=2&&typeof t.coordinates[0]==`number`&&typeof t.coordinates[1]==`number`){let[e,n]=t.coordinates;return ng(e,n)}break;case`LineString`:if(t.coordinates&&Array.isArray(t.coordinates)&&t.coordinates.length>0&&Array.isArray(t.coordinates[0])&&t.coordinates[0].length>=2&&typeof t.coordinates[0][0]==`number`&&typeof t.coordinates[0][1]==`number`){let[e,n]=t.coordinates[0];return ng(e,n)}break;case`Polygon`:if(t.coordinates&&Array.isArray(t.coordinates)&&t.coordinates.length>0&&Array.isArray(t.coordinates[0])&&t.coordinates[0].length>0&&Array.isArray(t.coordinates[0][0])&&t.coordinates[0][0].length>=2&&typeof t.coordinates[0][0][0]==`number`&&typeof t.coordinates[0][0][1]==`number`){let[e,n]=t.coordinates[0][0];return ng(e,n)}break;case`MultiPoint`:if(t.coordinates&&Array.isArray(t.coordinates)&&t.coordinates.length>0&&Array.isArray(t.coordinates[0])&&t.coordinates[0].length>=2&&typeof t.coordinates[0][0]==`number`&&typeof t.coordinates[0][1]==`number`){let[e,n]=t.coordinates[0];return ng(e,n)}break;case`MultiLineString`:if(Array.isArray(t.coordinates)){for(let e of t.coordinates)if(!Array.isArray(e)||e.length!==0)return vv({geometry:{type:`LineString`,coordinates:e}})}break;case`MultiPolygon`:if(Array.isArray(t.coordinates)){for(let e of t.coordinates)if(!Array.isArray(e)||e.length!==0)return vv({geometry:{type:`Polygon`,coordinates:e}})}break;default:return null}return null}function yv(e){if(!e?.geometry)return null;let t=[e.geometry],n=new Set;for(;t.length>0;){let e=t.pop();if(e)if(e.type===`GeometryCollection`){if(n.has(e)||!Array.isArray(e.geometries))continue;n.add(e);for(let n=e.geometries.length-1;n>=0;--n){let r=e.geometries[n];r&&t.push(r)}}else{let t=vv({geometry:e});if(xv(t))return t}}return null}function bv(e){return gv(e)||yv(e)}function xv(e){return Array.isArray(e)&&e.length===2&&typeof e[0]==`number`&&typeof e[1]==`number`&&isFinite(e[0])&&isFinite(e[1])&&Math.abs(e[0])<=180&&Math.abs(e[1])<=90}function Sv(e){let{currentTarget:t,ctrlKey:n,shiftKey:r,altKey:i,metaKey:a}=e,o=t.ownerDocument.defaultView,s=new(o?.MouseEvent??MouseEvent)(`click`,{bubbles:!0,cancelable:!0,composed:!0,ctrlKey:n,shiftKey:r,altKey:i,metaKey:a});Object.defineProperty(s,`view`,{value:o}),t.dispatchEvent(s)}function Cv({geography:e,onClick:t,onMouseEnter:n,onMouseLeave:r,onMouseDown:i,onMouseUp:a,onFocus:o,onBlur:s,onKeyDown:c,onKeyUp:l,style:u={},className:d=``,ref:f,...p}){let[m,h]=(0,j.useState)(!1),[g,_]=(0,j.useState)(!1),[v,y]=(0,j.useState)(!1),b=(0,j.useRef)(!1),x=(0,j.useMemo)(()=>({geography:e,centroid:gv(e),bounds:_v(e),coordinates:bv(e)}),[e]),S=(0,j.useCallback)(e=>{t&&t(e,x)},[t,x]),C=(0,j.useCallback)(e=>{_(!0),n&&n(e,x)},[n,x]),w=(0,j.useCallback)(e=>{_(!1),m&&h(!1),r&&r(e,x)},[r,x,m]),T=(0,j.useCallback)(e=>{y(!0),o&&o(e,x)},[o,x]),E=(0,j.useCallback)(e=>{y(!1),b.current=!1,m&&h(!1),s&&s(e,x)},[s,x,m]),D=(0,j.useCallback)(e=>{h(!0),i&&i(e,x)},[i,x]),O=(0,j.useCallback)(e=>{h(!1),a&&a(e,x)},[a,x]),k=(0,j.useCallback)(e=>{c?.(e),t&&!e.defaultPrevented&&(e.key===`Enter`?(e.preventDefault(),Sv(e)):e.key===` `&&(e.preventDefault(),b.current=!0,h(!0)))},[c,t]),ee=(0,j.useCallback)(e=>{l?.(e),e.key===` `&&b.current&&(b.current=!1,h(!1),t&&!e.defaultPrevented&&(e.preventDefault(),Sv(e)))},[l,t]),A=(0,j.useMemo)(()=>m?`pressed`:v?`focused`:g?`hover`:`default`,[m,v,g]),te=(0,j.useMemo)(()=>e.svgPath,[e]),ne=(0,j.useMemo)(()=>u[A],[u,A]);return(0,yr.jsx)(`path`,{ref:f,tabIndex:0,role:t?`button`:void 0,className:`rsm-geography ${d}`,d:te,onClick:S,onMouseEnter:C,onMouseLeave:w,onFocus:T,onBlur:E,onMouseDown:D,onMouseUp:O,onKeyDown:k,onKeyUp:ee,style:ne,...p})}var wv=new Set([`geography`,`onClick`,`onMouseEnter`,`onMouseLeave`,`onMouseDown`,`onMouseUp`,`onFocus`,`onBlur`,`style`,`className`,`ref`]);Cv.displayName=`Geography`;var Tv=(0,j.memo)(Cv,function(e,t){if(e.geography!==t.geography||e.style!==t.style||e.className!==t.className||e.onClick!==t.onClick||e.onMouseEnter!==t.onMouseEnter||e.onMouseLeave!==t.onMouseLeave||e.onMouseDown!==t.onMouseDown||e.onMouseUp!==t.onMouseUp||e.onFocus!==t.onFocus||e.onBlur!==t.onBlur||e.ref!==t.ref)return!1;let n=e,r=t,i=new Set([...Object.keys(n),...Object.keys(r)]);for(let e of i)if(!wv.has(e)&&n[e]!==r[e])return!1;return!0}),Ev=(0,j.createContext)(void 0),Dv={x:0,y:0,k:1,transformString:`translate(0 0) scale(1)`},Ov=({value:e=Dv,children:t})=>(0,yr.jsx)(Ev,{value:e,children:t}),kv={value:()=>{}};function Av(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new jv(n)}function jv(e){this._=e}function Mv(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}jv.prototype=Av.prototype={constructor:jv,on:function(e,t){var n=this._,r=Mv(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Nv(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=Pv(n[i],e.name,t);else if(t==null)for(i in n)n[i]=Pv(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new jv(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function Nv(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function Pv(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=kv,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Fv=Av,Iv={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function Lv(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),Iv.hasOwnProperty(t)?{space:Iv[t],local:e}:e}function Rv(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function zv(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Bv(e){var t=Lv(e);return(t.local?zv:Rv)(t)}function Vv(){}function Hv(e){return e==null?Vv:function(){return this.querySelector(e)}}function Uv(e){typeof e!=`function`&&(e=Hv(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new jb(r,this._parents)}function Wv(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Gv(){return[]}function Kv(e){return e==null?Gv:function(){return this.querySelectorAll(e)}}function qv(e){return function(){return Wv(e.apply(this,arguments))}}function Jv(e){e=typeof e==`function`?qv(e):Kv(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new jb(r,i)}function Yv(e){return function(){return this.matches(e)}}function Xv(e){return function(t){return t.matches(e)}}var Zv=Array.prototype.find;function Qv(e){return function(){return Zv.call(this.children,e)}}function $v(){return this.firstElementChild}function ey(e){return this.select(e==null?$v:Qv(typeof e==`function`?e:Xv(e)))}var ty=Array.prototype.filter;function ny(){return Array.from(this.children)}function ry(e){return function(){return ty.call(this.children,e)}}function iy(e){return this.selectAll(e==null?ny:ry(typeof e==`function`?e:Xv(e)))}function ay(e){typeof e!=`function`&&(e=Yv(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new jb(r,this._parents)}function oy(e){return Array(e.length)}function sy(){return new jb(this._enter||this._groups.map(oy),this._parents)}function cy(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}cy.prototype={constructor:cy,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function ly(e){return function(){return e}}function uy(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new cy(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function dy(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new cy(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function fy(e){return e.__data__}function py(e,t){if(!arguments.length)return Array.from(this,fy);var n=t?dy:uy,r=this._parents,i=this._groups;typeof e!=`function`&&(e=ly(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=my(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new jb(o,r),o._enter=s,o._exit=c,o}function my(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function hy(){return new jb(this._exit||this._groups.map(oy),this._parents)}function gy(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function _y(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new jb(s,this._parents)}function vy(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function yy(e){e||=by;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new jb(i,this._parents).order()}function by(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function xy(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Sy(){return Array.from(this)}function Cy(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function wy(){let e=0;for(let t of this)++e;return e}function Ty(){return!this.node()}function Ey(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Dy(e){return function(){this.removeAttribute(e)}}function Oy(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ky(e,t){return function(){this.setAttribute(e,t)}}function Ay(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function jy(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function My(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Ny(e,t){var n=Lv(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Oy:Dy:typeof t==`function`?n.local?My:jy:n.local?Ay:ky)(n,t))}function Py(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Fy(e){return function(){this.style.removeProperty(e)}}function Iy(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Ly(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Ry(e,t,n){return arguments.length>1?this.each((t==null?Fy:typeof t==`function`?Ly:Iy)(e,t,n??``)):zy(this.node(),e)}function zy(e,t){return e.style.getPropertyValue(t)||Py(e).getComputedStyle(e,null).getPropertyValue(t)}function By(e){return function(){delete this[e]}}function Vy(e,t){return function(){this[e]=t}}function Hy(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Uy(e,t){return arguments.length>1?this.each((t==null?By:typeof t==`function`?Hy:Vy)(e,t)):this.node()[e]}function Wy(e){return e.trim().split(/^|\s+/)}function Gy(e){return e.classList||new Ky(e)}function Ky(e){this._node=e,this._names=Wy(e.getAttribute(`class`)||``)}Ky.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function qy(e,t){for(var n=Gy(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Jy(e,t){for(var n=Gy(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Yy(e){return function(){qy(this,e)}}function Xy(e){return function(){Jy(this,e)}}function Zy(e,t){return function(){(t.apply(this,arguments)?qy:Jy)(this,e)}}function Qy(e,t){var n=Wy(e+``);if(arguments.length<2){for(var r=Gy(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?Zy:t?Yy:Xy)(n,t))}function $y(){this.textContent=``}function eb(e){return function(){this.textContent=e}}function tb(e){return function(){this.textContent=e.apply(this,arguments)??``}}function nb(e){return arguments.length?this.each(e==null?$y:(typeof e==`function`?tb:eb)(e)):this.node().textContent}function rb(){this.innerHTML=``}function ib(e){return function(){this.innerHTML=e}}function ab(e){return function(){this.innerHTML=e.apply(this,arguments)??``}}function ob(e){return arguments.length?this.each(e==null?rb:(typeof e==`function`?ab:ib)(e)):this.node().innerHTML}function sb(){this.nextSibling&&this.parentNode.appendChild(this)}function cb(){return this.each(sb)}function lb(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ub(){return this.each(lb)}function db(e){var t=typeof e==`function`?e:Bv(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function fb(){return null}function pb(e,t){var n=typeof e==`function`?e:Bv(e),r=t==null?fb:typeof t==`function`?t:Hv(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function mb(){var e=this.parentNode;e&&e.removeChild(this)}function hb(){return this.each(mb)}function gb(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function _b(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function vb(e){return this.select(e?_b:gb)}function yb(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function bb(e){return function(t){e.call(this,t,this.__data__)}}function xb(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Sb(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Cb(e,t,n){return function(){var r=this.__on,i,a=bb(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function wb(e,t,n){var r=xb(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?Cb:Sb,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Tb(e,t,n){var r=Py(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Eb(e,t){return function(){return Tb(this,e,t)}}function Db(e,t){return function(){return Tb(this,e,t.apply(this,arguments))}}function Ob(e,t){return this.each((typeof t==`function`?Db:Eb)(e,t))}function*kb(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var Ab=[null];function jb(e,t){this._groups=e,this._parents=t}function Mb(){return new jb([[document.documentElement]],Ab)}function Nb(){return this}jb.prototype=Mb.prototype={constructor:jb,select:Uv,selectAll:Jv,selectChild:ey,selectChildren:iy,filter:ay,data:py,enter:sy,exit:hy,join:gy,merge:_y,selection:Nb,order:vy,sort:yy,call:xy,nodes:Sy,node:Cy,size:wy,empty:Ty,each:Ey,attr:Ny,style:Ry,property:Uy,classed:Qy,text:nb,html:ob,raise:cb,lower:ub,append:db,insert:pb,remove:hb,clone:vb,datum:yb,on:wb,dispatch:Ob,[Symbol.iterator]:kb};var Pb=Mb;function Fb(e){return typeof e==`string`?new jb([[document.querySelector(e)]],[document.documentElement]):new jb([[e]],Ab)}function Ib(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Lb(e,t){if(e=Ib(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const Rb={capture:!0,passive:!1};function zb(e){e.preventDefault(),e.stopImmediatePropagation()}function Bb(e){var t=e.document.documentElement,n=Fb(e).on(`dragstart.drag`,zb,Rb);`onselectstart`in t?n.on(`selectstart.drag`,zb,Rb):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function Vb(e,t){var n=e.document.documentElement,r=Fb(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,zb,Rb),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Hb(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ub(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Wb(){}var Gb=.7,Kb=1/Gb,qb=`\\s*([+-]?\\d+)\\s*`,Jb=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,Yb=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Xb=/^#([0-9a-f]{3,8})$/,Zb=RegExp(`^rgb\\(${qb},${qb},${qb}\\)$`),Qb=RegExp(`^rgb\\(${Yb},${Yb},${Yb}\\)$`),$b=RegExp(`^rgba\\(${qb},${qb},${qb},${Jb}\\)$`),ex=RegExp(`^rgba\\(${Yb},${Yb},${Yb},${Jb}\\)$`),tx=RegExp(`^hsl\\(${Jb},${Yb},${Yb}\\)$`),nx=RegExp(`^hsla\\(${Jb},${Yb},${Yb},${Jb}\\)$`),rx={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};Hb(Wb,cx,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ix,formatHex:ix,formatHex8:ax,formatHsl:ox,formatRgb:sx,toString:sx});function ix(){return this.rgb().formatHex()}function ax(){return this.rgb().formatHex8()}function ox(){return xx(this).formatHsl()}function sx(){return this.rgb().formatRgb()}function cx(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Xb.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?lx(t):n===3?new px(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ux(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ux(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=Zb.exec(e))?new px(t[1],t[2],t[3],1):(t=Qb.exec(e))?new px(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=$b.exec(e))?ux(t[1],t[2],t[3],t[4]):(t=ex.exec(e))?ux(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=tx.exec(e))?bx(t[1],t[2]/100,t[3]/100,1):(t=nx.exec(e))?bx(t[1],t[2]/100,t[3]/100,t[4]):rx.hasOwnProperty(e)?lx(rx[e]):e===`transparent`?new px(NaN,NaN,NaN,0):null}function lx(e){return new px(e>>16&255,e>>8&255,e&255,1)}function ux(e,t,n,r){return r<=0&&(e=t=n=NaN),new px(e,t,n,r)}function dx(e){return e instanceof Wb||(e=cx(e)),e?(e=e.rgb(),new px(e.r,e.g,e.b,e.opacity)):new px}function fx(e,t,n,r){return arguments.length===1?dx(e):new px(e,t,n,r??1)}function px(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Hb(px,fx,Ub(Wb,{brighter(e){return e=e==null?Kb:Kb**+e,new px(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Gb:Gb**+e,new px(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new px(vx(this.r),vx(this.g),vx(this.b),_x(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:mx,formatHex:mx,formatHex8:hx,formatRgb:gx,toString:gx}));function mx(){return`#${yx(this.r)}${yx(this.g)}${yx(this.b)}`}function hx(){return`#${yx(this.r)}${yx(this.g)}${yx(this.b)}${yx((isNaN(this.opacity)?1:this.opacity)*255)}`}function gx(){let e=_x(this.opacity);return`${e===1?`rgb(`:`rgba(`}${vx(this.r)}, ${vx(this.g)}, ${vx(this.b)}${e===1?`)`:`, ${e})`}`}function _x(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function vx(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function yx(e){return e=vx(e),(e<16?`0`:``)+e.toString(16)}function bx(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Cx(e,t,n,r)}function xx(e){if(e instanceof Cx)return new Cx(e.h,e.s,e.l,e.opacity);if(e instanceof Wb||(e=cx(e)),!e)return new Cx;if(e instanceof Cx)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 Cx(o,s,c,e.opacity)}function Sx(e,t,n,r){return arguments.length===1?xx(e):new Cx(e,t,n,r??1)}function Cx(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Hb(Cx,Sx,Ub(Wb,{brighter(e){return e=e==null?Kb:Kb**+e,new Cx(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Gb:Gb**+e,new Cx(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 px(Ex(e>=240?e-240:e+120,i,r),Ex(e,i,r),Ex(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Cx(wx(this.h),Tx(this.s),Tx(this.l),_x(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=_x(this.opacity);return`${e===1?`hsl(`:`hsla(`}${wx(this.h)}, ${Tx(this.s)*100}%, ${Tx(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function wx(e){return e=(e||0)%360,e<0?e+360:e}function Tx(e){return Math.max(0,Math.min(1,e||0))}function Ex(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 Dx=e=>()=>e;function Ox(e,t){return function(n){return e+n*t}}function kx(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Ax(e){return(e=+e)==1?jx:function(t,n){return n-t?kx(t,n,e):Dx(isNaN(t)?n:t)}}function jx(e,t){var n=t-e;return n?Ox(e,n):Dx(isNaN(e)?t:e)}var Mx=(function e(t){var n=Ax(t);function r(e,t){var r=n((e=fx(e)).r,(t=fx(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=jx(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 Nx(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Px=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Fx=new RegExp(Px.source,`g`);function Ix(e){return function(){return e}}function Lx(e){return function(t){return e(t)+``}}function Rx(e,t){var n=Px.lastIndex=Fx.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Px.exec(e))&&(i=Fx.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:Nx(r,i)})),n=Fx.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Lx(c[0].x):Ix(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(``)})}var zx=180/Math.PI,Bx={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Vx(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*zx,skewX:Math.atan(c)*zx,scaleX:o,scaleY:s}}var Hx;function Ux(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Bx:Vx(t.a,t.b,t.c,t.d,t.e,t.f)}function Wx(e){return e==null||(Hx||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Hx.setAttribute(`transform`,e),!(e=Hx.transform.baseVal.consolidate()))?Bx:(e=e.matrix,Vx(e.a,e.b,e.c,e.d,e.e,e.f))}function Gx(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:Nx(e,i)},{i:c-2,x:Nx(r,a)})}else (i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:Nx(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:Nx(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:Nx(e,n)},{i:s-2,x:Nx(t,r)})}else (n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var Kx=Gx(Ux,`px, `,`px)`,`deg)`),qx=Gx(Wx,`, `,`)`,`)`),Jx=1e-12;function Yx(e){return((e=Math.exp(e))+1/e)/2}function Xx(e){return((e=Math.exp(e))-1/e)/2}function Zx(e){return((e=Math.exp(2*e))-1)/(e+1)}var Qx=(function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<Jx)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=Yx(y),c=s/(n*g)*(i*Zx(t*r+y)-Xx(y));return[a+c*d,o+c*f,s*i/Yx(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i})(Math.SQRT2,2,4),$x=0,eS=0,tS=0,nS=1e3,rS,iS,aS=0,oS=0,sS=0,cS=typeof performance==`object`&&performance.now?performance:Date,lS=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function uS(){return oS||=(lS(dS),cS.now()+sS)}function dS(){oS=0}function fS(){this._call=this._time=this._next=null}fS.prototype=pS.prototype={constructor:fS,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?uS():+n)+(t==null?0:+t),!this._next&&iS!==this&&(iS?iS._next=this:rS=this,iS=this),this._call=e,this._time=n,vS()},stop:function(){this._call&&(this._call=null,this._time=1/0,vS())}};function pS(e,t,n){var r=new fS;return r.restart(e,t,n),r}function mS(){uS(),++$x;for(var e=rS,t;e;)(t=oS-e._time)>=0&&e._call.call(void 0,t),e=e._next;--$x}function hS(){oS=(aS=cS.now())+sS,$x=eS=0;try{mS()}finally{$x=0,_S(),oS=0}}function gS(){var e=cS.now(),t=e-aS;t>nS&&(sS-=t,aS=e)}function _S(){for(var e,t=rS,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:rS=n);iS=e,vS(r)}function vS(e){$x||(eS&&=clearTimeout(eS),e-oS>24?(e<1/0&&(eS=setTimeout(hS,e-cS.now()-sS)),tS&&=clearInterval(tS)):(tS||=(aS=cS.now(),setInterval(gS,nS)),$x=1,lS(hS)))}function yS(e,t,n){var r=new fS;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var bS=Fv(`start`,`end`,`cancel`,`interrupt`),xS=[];function SS(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;ES(e,n,{name:t,index:r,group:i,on:bS,tween:xS,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function CS(e,t){var n=TS(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function wS(e,t){var n=TS(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function TS(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function ES(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=pS(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return yS(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(yS(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function DS(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function OS(e){return this.each(function(){DS(this,e)})}function kS(e,t){var n,r;return function(){var i=wS(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function AS(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=wS(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function jS(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=TS(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?kS:AS)(n,e,t))}function MS(e,t,n){var r=e._id;return e.each(function(){var e=wS(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return TS(e,r).value[t]}}function NS(e,t){var n;return(typeof t==`number`?Nx:t instanceof cx?Mx:(n=cx(t))?(t=n,Mx):Rx)(e,t)}function PS(e){return function(){this.removeAttribute(e)}}function FS(e){return function(){this.removeAttributeNS(e.space,e.local)}}function IS(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function LS(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function RS(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function zS(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function BS(e,t){var n=Lv(e),r=n===`transform`?qx:NS;return this.attrTween(e,typeof t==`function`?(n.local?zS:RS)(n,r,MS(this,`attr.`+e,t)):t==null?(n.local?FS:PS)(n):(n.local?LS:IS)(n,r,t))}function VS(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function HS(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function US(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&HS(e,i)),n}return i._value=t,i}function WS(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&VS(e,i)),n}return i._value=t,i}function GS(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=Lv(e);return this.tween(n,(r.local?US:WS)(r,t))}function KS(e,t){return function(){CS(this,e).delay=+t.apply(this,arguments)}}function qS(e,t){return t=+t,function(){CS(this,e).delay=t}}function JS(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?KS:qS)(t,e)):TS(this.node(),t).delay}function YS(e,t){return function(){wS(this,e).duration=+t.apply(this,arguments)}}function XS(e,t){return t=+t,function(){wS(this,e).duration=t}}function ZS(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?YS:XS)(t,e)):TS(this.node(),t).duration}function QS(e,t){if(typeof t!=`function`)throw Error();return function(){wS(this,e).ease=t}}function $S(e){var t=this._id;return arguments.length?this.each(QS(t,e)):TS(this.node(),t).ease}function eC(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();wS(this,e).ease=n}}function tC(e){if(typeof e!=`function`)throw Error();return this.each(eC(this._id,e))}function nC(e){typeof e!=`function`&&(e=Yv(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new jC(r,this._parents,this._name,this._id)}function rC(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new jC(o,this._parents,this._name,this._id)}function iC(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function aC(e,t,n){var r,i,a=iC(t)?CS:wS;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function oC(e,t){var n=this._id;return arguments.length<2?TS(this.node(),n).on.on(e):this.each(aC(n,e,t))}function sC(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function cC(){return this.on(`end.remove`,sC(this._id))}function lC(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Hv(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,SS(l[f],t,n,f,l,TS(u,n)));return new jC(a,this._parents,t,n)}function uC(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Kv(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=TS(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&SS(p,t,n,h,f,m);a.push(f),o.push(u)}return new jC(a,o,t,n)}var dC=Pb.prototype.constructor;function fC(){return new dC(this._groups,this._parents)}function pC(e,t){var n,r,i;return function(){var a=zy(this,e),o=(this.style.removeProperty(e),zy(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function mC(e){return function(){this.style.removeProperty(e)}}function hC(e,t,n){var r,i=n+``,a;return function(){var o=zy(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function gC(e,t,n){var r,i,a;return function(){var o=zy(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),zy(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function _C(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=wS(this,e),l=c.on,u=c.value[a]==null?s||=mC(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function vC(e,t,n){var r=(e+=``)==`transform`?Kx:NS;return t==null?this.styleTween(e,pC(e,r)).on(`end.style.`+e,mC(e)):typeof t==`function`?this.styleTween(e,gC(e,r,MS(this,`style.`+e,t))).each(_C(this._id,e)):this.styleTween(e,hC(e,r,t),n).on(`end.style.`+e,null)}function yC(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function bC(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&yC(e,a,n)),r}return a._value=t,a}function xC(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,bC(e,t,n??``))}function SC(e){return function(){this.textContent=e}}function CC(e){return function(){this.textContent=e(this)??``}}function wC(e){return this.tween(`text`,typeof e==`function`?CC(MS(this,`text`,e)):SC(e==null?``:e+``))}function TC(e){return function(t){this.textContent=e.call(this,t)}}function EC(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&TC(r)),t}return r._value=e,r}function DC(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,EC(e))}function OC(){for(var e=this._name,t=this._id,n=NC(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=TS(c,t);SS(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new jC(r,this._parents,e,n)}function kC(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=wS(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var AC=0;function jC(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function MC(e){return Pb().transition(e)}function NC(){return++AC}var PC=Pb.prototype;jC.prototype=MC.prototype={constructor:jC,select:lC,selectAll:uC,selectChild:PC.selectChild,selectChildren:PC.selectChildren,filter:nC,merge:rC,selection:fC,transition:OC,call:PC.call,nodes:PC.nodes,node:PC.node,size:PC.size,empty:PC.empty,each:PC.each,on:oC,attr:BS,attrTween:GS,style:vC,styleTween:xC,text:wC,textTween:DC,remove:cC,tween:jS,delay:JS,duration:ZS,ease:$S,easeVarying:tC,end:kC,[Symbol.iterator]:PC[Symbol.iterator]};function FC(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var IC={time:null,delay:0,duration:250,ease:FC};function LC(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function RC(e){var t,n;e instanceof jC?(t=e._id,e=e._name):(t=NC(),(n=IC).time=uS(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&SS(c,e,t,l,o,n||LC(c,t));return new jC(r,this._parents,e,t)}Pb.prototype.interrupt=OS,Pb.prototype.transition=RC;var zC=e=>()=>e;function BC(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function VC(e,t,n){this.k=e,this.x=t,this.y=n}VC.prototype={constructor:VC,scale:function(e){return e===1?this:new VC(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new VC(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var HC=new VC(1,0,0);UC.prototype=VC.prototype;function UC(e){for(;!e.__zoom;)if(!(e=e.parentNode))return HC;return e.__zoom}function WC(e){e.stopImmediatePropagation()}function GC(e){e.preventDefault(),e.stopImmediatePropagation()}function KC(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function qC(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute(`viewBox`)?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function JC(){return this.__zoom||HC}function YC(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function XC(){return navigator.maxTouchPoints||`ontouchstart`in this}function ZC(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function QC(){var e=KC,t=qC,n=ZC,r=YC,i=XC,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=Qx,l=Fv(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,JC).on(`wheel.zoom`,w,{passive:!1}).on(`mousedown.zoom`,T).on(`dblclick.zoom`,E).filter(i).on(`touchstart.zoom`,D).on(`touchmove.zoom`,O).on(`touchend.zoom touchcancel.zoom`,k).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}_.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,JC),e===i?i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):x(e,t,n,r)},_.scaleBy=function(e,t,n,r){_.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},_.scaleTo=function(e,r,i,a){_.transform(e,function(){var e=t.apply(this,arguments),a=this.__zoom,s=i==null?b(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(s),l=typeof r==`function`?r.apply(this,arguments):r;return n(y(v(a,l),s,c),e,o)},i,a)},_.translateBy=function(e,r,i,a){_.transform(e,function(){return n(this.__zoom.translate(typeof r==`function`?r.apply(this,arguments):r,typeof i==`function`?i.apply(this,arguments):i),t.apply(this,arguments),o)},null,a)},_.translateTo=function(e,r,i,a,s){_.transform(e,function(){var e=t.apply(this,arguments),s=this.__zoom,c=a==null?b(e):typeof a==`function`?a.apply(this,arguments):a;return n(HC.translate(c[0],c[1]).scale(s.k).translate(typeof r==`function`?-r.apply(this,arguments):-r,typeof i==`function`?-i.apply(this,arguments):-i),e,o)},a,s)};function v(e,t){return t=Math.max(a[0],Math.min(a[1],t)),t===e.k?e:new VC(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new VC(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,n,r,i){e.on(`start.zoom`,function(){S(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){S(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=S(e,a).event(i),s=t.apply(e,a),l=r==null?b(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof n==`function`?n.apply(e,a):n,p=c(d.invert(l).concat(u/d.k),f.invert(l).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new VC(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function S(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=Fb(this.that).datum();l.call(e,this.that,new BC(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function w(t,...i){if(!e.apply(this,arguments))return;var s=S(this,i).event(t),c=this.__zoom,l=Math.max(a[0],Math.min(a[1],c.k*2**r.apply(this,arguments))),u=Lb(t);if(s.wheel)(s.mouse[0][0]!==u[0]||s.mouse[0][1]!==u[1])&&(s.mouse[1]=c.invert(s.mouse[0]=u)),clearTimeout(s.wheel);else if(c.k===l)return;else s.mouse=[u,c.invert(u)],DS(this),s.start();GC(t),s.wheel=setTimeout(d,m),s.zoom(`mouse`,n(y(v(c,l),s.mouse[0],s.mouse[1]),s.extent,o));function d(){s.wheel=null,s.end()}}function T(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=Fb(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=Lb(t,i),l=t.clientX,u=t.clientY;Bb(t.view),WC(t),a.mouse=[c,this.__zoom.invert(c)],DS(this),a.start();function d(e){if(GC(e),!a.moved){var t=e.clientX-l,r=e.clientY-u;a.moved=t*t+r*r>h}a.event(e).zoom(`mouse`,n(y(a.that.__zoom,a.mouse[0]=Lb(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),Vb(e.view,a.moved),GC(e),a.event(e).end()}}function E(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=Lb(r.changedTouches?r.changedTouches[0]:r,this),l=a.invert(c),u=a.k*(r.shiftKey?.5:2),d=n(y(v(a,u),c,l),t.apply(this,i),o);GC(r),s>0?Fb(this).transition().duration(s).call(x,d,c,r):Fb(this).call(_.transform,d,c,r)}}function D(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=S(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(WC(t),s=0;s<i;++s)c=r[s],l=Lb(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!u);u&&=clearTimeout(u),o&&(a.taps<2&&(d=l[0],u=setTimeout(function(){u=null},p)),DS(this),a.start())}}function O(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for(GC(e),s=0;s<a;++s)c=i[s],l=Lb(c,this),r.touch0&&r.touch0[2]===c.identifier?r.touch0[0]=l:r.touch1&&r.touch1[2]===c.identifier&&(r.touch1[0]=l);if(c=r.that.__zoom,r.touch1){var d=r.touch0[0],f=r.touch0[1],p=r.touch1[0],m=r.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=v(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(r.touch0)l=r.touch0[0],u=r.touch0[1];else return;r.zoom(`touch`,n(y(c,l,u),r.extent,o))}}function k(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(WC(e),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=Lb(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=Fb(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:zC(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:zC(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:zC(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:zC([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),_):t},_.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],_):[a[0],a[1]]},_.translateExtent=function(e){return arguments.length?(o[0][0]=+e[0][0],o[1][0]=+e[1][0],o[0][1]=+e[0][1],o[1][1]=+e[1][1],_):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},_.constrain=function(e){return arguments.length?(n=e,_):n},_.duration=function(e){return arguments.length?(s=+e,_):s},_.interpolate=function(e){return arguments.length?(c=e,_):c},_.on=function(){var e=l.on.apply(l,arguments);return e===l?_:e},_.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,_):Math.sqrt(h)},_.tapDistance=function(e){return arguments.length?(g=+e,_):g},_}function $C(e,t,n){let r=(e*n.k-e)/2,i=(t*n.k-t)/2;return ng(e/2-(r+n.x)/n.k,t/2-(i+n.y)/n.k)}function ew({mapRef:e,enableZoom:t=!0,enablePan:n=!0,width:r,height:i,projection:a,scaleExtent:o,translateExtent:s,filterZoomEvent:c,onZoom:l,onZoomStart:u,onZoomEnd:d,onMove:f,bypassEvents:p}){let m=(0,j.useRef)(void 0),[h,g]=(0,j.useState)(0),[_,v]=(0,j.useState)(null),y=(0,j.useRef)(new Set),b=(0,j.useRef)(new WeakMap),x=(0,j.useRef)(!1),[S,C]=o,[w,T]=s,[E,D]=w,[O,k]=T,ee=(0,j.useCallback)(e=>{if(p.current)return;let{transform:t,sourceEvent:n}=e;if(l&&l({x:t.x,y:t.y,k:t.k},n),!f)return;let o=$C(r,i,t),s=a.invert?.(o);s?.every(Number.isFinite)&&f({coordinates:tw(s[0],s[1]),zoom:t.k},e.sourceEvent||e)},[l,f,r,i,a,p]),A=(0,j.useRef)({handleZoom:ee,onZoomStart:u,onZoomEnd:d,filterZoomEvent:c});return(0,j.useLayoutEffect)(()=>{A.current={handleZoom:ee,onZoomStart:u,onZoomEnd:d,filterZoomEvent:c},_!==e.current&&v(e.current)}),(0,j.useEffect)(()=>{function e(e){let t=b.current.get(e.sourceEvent);return t?{...e,sourceEvent:t}:e}function o(n){n=e(n),t||T.scaleExtent([n.transform.k,n.transform.k]);let o=A.current.onZoomStart;if(!o||p.current)return;let s=$C(r,i,n.transform),l=a.invert?.(s);if(l?.every(Number.isFinite))try{o({coordinates:tw(l[0],l[1]),zoom:n.transform.k},n.sourceEvent||n)}finally{v&&(w=UC(c))}}let s=y.current;if(s.clear(),!_)return;let c=_,l=Fb(c),u=new Set,d=new Map,f,h,v=!1,w=UC(c),T=QC().extent([[0,0],[r,i]]).filter(function(e){if(e.type===`touchcancel`||!t&&!n)return!1;let r=e.type===`wheel`||e.type===`dblclick`||e.type===`touchend`;if(r&&!t||!n&&!r&&e.type!==`touchstart`)return!1;let i=b.current.get(e)??e,a=i,o=A.current.filterZoomEvent,l=o?o(i):!(a.ctrlKey&&e.type!==`wheel`||a.button);if(v)return!1;if(l&&e.type===`touchstart`)for(let e of Array.from(i.changedTouches))c.contains(e.target)&&s.add(e.identifier);return l}).scaleExtent([S,C]).translateExtent([[E,D],[O,k]]).on(`start`,function(e){e.sourceEvent?.type===`mousedown`&&h&&Reflect.set(h.root,`__noselect`,h.value);let t=c.__zooming;if(t&&(u.add(t),e.sourceEvent?.type===`mousedown`)){let n=e.sourceEvent.view,r=n&&Fb(n).on(`mouseup.zoom`);n&&r&&d.set(n,{gesture:t,mouseup:r})}if(!x.current){if(!n&&e.sourceEvent?.type===`touchstart`&&e.sourceEvent.touches.length===1)return f=e,void 0;f=void 0,o(e)}}).on(`zoom`,function(t){if(!v&&!x.current){if(f){let e=f;f=void 0,o(e)}v||A.current.handleZoom(e(t))}}).on(`end`,function(t){for(let e of u)e.active===0&&u.delete(e);if(x.current)return;if(f)return f=void 0,void 0;if(p.current)return;t=e(t);let n=$C(r,i,t.transform),o=a.invert?.(n);if(o?.every(Number.isFinite)){let[e,n]=o,r=A.current.onZoomEnd;if(!r)return;r({coordinates:tw(e,n),zoom:t.transform.k},t.sourceEvent||t)}});if(n||T.constrain(e=>{let t=UC(c),n=e.k/t.k;return HC.translate(r/2-(r/2-t.x)*n,i/2-(i/2-t.y)*n).scale(e.k)}),!t){let e=UC(c).k;T.scaleExtent([e,e])}m.current=T,l.call(T);let ee=l.on(`wheel.zoom`);l.on(`wheel.zoom`,function(e,t){try{ee?.call(this,e,t)}finally{if(v){for(let e of u)e.wheel&&clearTimeout(e.wheel);l.property(`__zoom`,w)}}},{passive:!1});let j=l.on(`mousedown.zoom`);if(l.on(`mousedown.zoom`,function(e,t){let n=e.view?.document.documentElement;h=n&&Reflect.has(n,`__noselect`)?{root:n,value:Reflect.get(n,`__noselect`)}:void 0;try{j?.call(this,e,t)}finally{h=void 0}}),n||t)for(let e of[`touchstart`,`touchmove`,`touchend`,`touchcancel`]){let t=l.on(`${e}.zoom`);t&&l.on(`${e}.zoom`,function(r,i){if(e!==`touchstart`&&!Array.from(r.changedTouches).some(e=>s.has(e.identifier)))return;let a=!n&&e===`touchmove`&&Array.from(r.touches).filter(e=>s.has(e.identifier)).length<2,o=new Proxy(r,{get(e,t){if(t===`touches`||t===`changedTouches`||t===`targetTouches`)return Array.from(e[t]).filter(e=>s.has(e.identifier));if(a&&(t===`preventDefault`||t===`stopImmediatePropagation`))return()=>{};let n=Reflect.get(e,t,e);return typeof n==`function`?n.bind(e):n}});b.current.set(o,r);try{if(a){if(s.size===0)return;x.current=!0}t.call(this,o,i),a&&T.transform(l,UC(c))}finally{if(a&&(x.current=!1),e===`touchend`||e===`touchcancel`)for(let e of Array.from(r.changedTouches))s.delete(e.identifier)}},{passive:!1})}for(let e of[`touchend`,`touchcancel`]){let t=l.on(`${e}.zoom`);t&&l.on(`${e}.zoom`,function(n,r){let i=c.__zooming;(i?.touch0||i?.touch1)&&(t.call(this,n,r),e!==`touchcancel`||i.touch0||i.touch1||g(e=>e+1))},{passive:!1})}return()=>{v=!0,w=UC(c),T.on(`start zoom end`,null),l.on(`.zoom`,null),T.transform(l,UC(c));for(let e of u)e.wheel&&clearTimeout(e.wheel);for(let[e,{gesture:t,mouseup:n}]of d){if(Fb(e).on(`mouseup.zoom`)!==n)continue;t.moved=!1;let r=new MouseEvent(`mouseup`);Object.defineProperty(r,`view`,{value:e}),n.call(e,r,Fb(e).datum())}c.__zooming&&u.has(c.__zooming)&&delete c.__zooming,s.clear(),m.current===T&&(m.current=void 0)}},[_,h,t,n,r,i,E,D,O,k,S,C,a,e,p]),{zoomRef:m,handleZoom:ee}}var tw=(e,t)=>[e,t];function nw({mapRef:e,zoomRef:t,width:n,height:r,projection:i,center:a,zoom:o,bypassEvents:s,onPositionChange:c,startTransition:l}){let u=(0,j.useRef)({x:0,y:0,k:1}),d=(0,j.useRef)(null),f=(0,j.useCallback)((a,o)=>{let[f,p]=a,m=i([f,p]);if(!m?.every(Number.isFinite)||!e.current||!t.current)return;let h=m[0]*o,g=m[1]*o,_=Fb(e.current);s.current=!0,l(()=>{try{t.current&&_.call(t.current.transform,HC.translate(n/2-h,r/2-g).scale(o))}finally{s.current=!1}c&&c({x:n/2-h,y:r/2-g,k:o})}),u.current={x:f,y:p,k:o},d.current={width:n,height:r,projection:i,element:e.current}},[i,e,t,s,l,n,r,c]);return(0,j.useEffect)(()=>{let[t,s]=a;t===u.current.x&&s===u.current.y&&o===u.current.k&&n===d.current?.width&&r===d.current?.height&&i===d.current?.projection&&e.current===d.current?.element||f(a,o)},[e,a,o,n,r,i,l,f]),{lastPosition:u,programmaticMove:f}}function rw({initialPosition:e={x:0,y:0,k:1},transitionPriority:t=`normal`,deferredUpdateThreshold:n=16}={}){let[r,i]=(0,j.useTransition)(),[a,o]=(0,j.useState)(0),[s,c]=(0,j.useState)(0),[l,u]=(0,j.useState)(e),[d,f]=(0,j.useState)(e),p=(0,j.useDeferredValue)(d,e),m=p!==d,h=(0,j.useMemo)(()=>{let e=d.dragging?d:p;return`translate(${e.x} ${e.y}) scale(${e.k})`},[p,d]);return{position:l,smoothPosition:p,optimisticPosition:d,setPosition:(0,j.useCallback)(e=>{let t=performance.now(),r=t-s;o(e=>e+1),c(t),f(e),r<n?i(()=>{u(e)}):u(e)},[s,n,i]),setOptimisticPosition:f,isPending:r,startTransition:i,transformString:h,isDeferred:m,updateCount:a}}function iw({center:e,filterZoomEvent:t,onMoveStart:n,onMoveEnd:r,onMove:i,translateExtent:a=ig(ng(-1/0,-1/0),ng(1/0,1/0)),scaleExtent:o=rg(1,8),zoom:s=1},{enableZoom:c=!0,enablePan:l=!0}={}){let{width:u,height:d,projection:f}=wg(),p=(0,j.useDeferredValue)(e),m=(0,j.useDeferredValue)(s),h=f(e),g=h?.every(Number.isFinite)?{x:u/2-h[0]*s,y:d/2-h[1]*s,k:s}:{x:0,y:0,k:1},[,_]=(0,j.useState)(null),[v]=(0,j.useState)(()=>{let e=null;return{get current(){return e},set current(t){e!==t&&(e=t,_(t))}}}),y=(0,j.useRef)(!1),{smoothPosition:b,setPosition:x,setOptimisticPosition:S,isPending:C,startTransition:w,transformString:T}=rw({initialPosition:g}),{zoomRef:E}=ew({mapRef:v,enableZoom:c,enablePan:l,width:u,height:d,projection:f,scaleExtent:o,translateExtent:a,onZoomStart:n,onZoomEnd:r,onMove:i,bypassEvents:y,onZoom:(e,t)=>{let n={x:e.x,y:e.y,k:e.k,dragging:t};S(n),w(()=>{x(n)})},...t&&{filterZoomEvent:t}});return nw({mapRef:v,zoomRef:E,width:u,height:d,projection:f,center:p,zoom:m,bypassEvents:y,onPositionChange:e=>{x(e)},startTransition:w}),{mapRef:v,position:b,transformString:T,isPending:C}}function aw(e){let{center:t=ng(0,0),zoom:n=1,filterZoomEvent:r,onMoveStart:i,onMove:a,onMoveEnd:o,className:s=``,children:c,ref:l,minZoom:u,maxZoom:d,enableZoom:f=!0,enablePan:p=!0,scaleExtent:m,translateExtent:h,...g}=e,{width:_,height:v}=wg(),y,b,x;if(function(e){return`enableZoom`in e||`enablePan`in e||`minZoom`in e&&`maxZoom`in e&&!(`scaleExtent`in e)}(e))y=e.minZoom??1,b=e.maxZoom??8,x=e.translateExtent??(!1===e.enablePan?void 0:ig(ng(-1/0,-1/0),ng(1/0,1/0)));else{let t=e;y=t.minZoom??1,b=t.maxZoom??8,x=t.translateExtent}let S=m??rg(y,b),{mapRef:C,transformString:w,position:T}=iw({center:t,...r&&{filterZoomEvent:r},...i&&{onMoveStart:i},...a&&{onMove:a},...o&&{onMoveEnd:o},scaleExtent:S,...x&&{translateExtent:x},zoom:n},{enableZoom:f,enablePan:p});return(0,yr.jsx)(Ov,{value:{x:T.x,y:T.y,k:T.k,transformString:w},children:(0,yr.jsxs)(`g`,{ref:C,children:[(0,yr.jsx)(`rect`,{width:_,height:v,fill:`transparent`}),(0,yr.jsx)(`g`,{ref:l,transform:w,className:`rsm-zoomable-group ${s}`,...g,children:c})]})})}aw.displayName=`ZoomableGroup`;function ow({projectedCoords:e,children:t,onMouseEnter:n,onMouseLeave:r,onMouseDown:i,onMouseUp:a,onFocus:o,onBlur:s,style:c={},className:l=``,ref:u,...d}){let[f,p]=(0,j.useState)(!1),[m,h]=(0,j.useState)(!1),[g,_]=(0,j.useState)(!1),v=(0,j.useCallback)(e=>{h(!0),n&&n(e)},[n]),y=(0,j.useCallback)(e=>{h(!1),f&&p(!1),r&&r(e)},[r,f]),b=(0,j.useCallback)(e=>{_(!0),o&&o(e)},[o]),x=(0,j.useCallback)(e=>{_(!1),f&&p(!1),s&&s(e)},[s,f]),S=(0,j.useCallback)(e=>{p(!0),i&&i(e)},[i]),C=(0,j.useCallback)(e=>{p(!1),a&&a(e)},[a]),w=(0,j.useMemo)(()=>f?`pressed`:g?`focused`:m?`hover`:`default`,[f,g,m]),T=(0,j.useMemo)(()=>c?.[w],[c,w]);return(0,yr.jsx)(`g`,{ref:u,transform:(0,j.useMemo)(()=>{let[t,n]=e;return`translate(${t}, ${n})`},[e]),className:`rsm-marker ${l}`,onMouseEnter:v,onMouseLeave:y,onFocus:b,onBlur:x,onMouseDown:S,onMouseUp:C,style:T,...d,children:t})}function sw({coordinates:e,...t}){let{projection:n}=wg(),r=(0,j.useMemo)(()=>{let t=n(e);return t?.every(Number.isFinite)?t:null},[n,e]);return r?(0,yr.jsx)(ow,{...t,projectedCoords:r}):null}sw.displayName=`Marker`;var cw=(0,j.memo)(sw),lw=n((e=>{var t=r();typeof Object.is==`function`&&Object.is,t.useSyncExternalStore,t.useRef,t.useEffect,t.useMemo,t.useDebugValue}));n(((e,t)=>{t.exports=lw()}))();function uw(e){e()}function dw(){let e=null,t=null;return{clear(){e=null,t=null},notify(){uw(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var fw={notify(){},get:()=>[]};function pw(e,t){let n,r=fw,i=0,a=!1;function o(e){u();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),d())}}function s(){r.notify()}function c(){m.onStateChange&&m.onStateChange()}function l(){return a}function u(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=dw())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=fw)}function f(){a||(a=!0,u())}function p(){a&&(a=!1,d())}let m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:l,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}var mw=(()=>typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0)(),hw=(()=>typeof navigator<`u`&&navigator.product===`ReactNative`)(),gw=(()=>mw||hw?j.useLayoutEffect:j.useEffect)();function _w(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function vw(e,t){if(_w(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!_w(e[n[r]],t[n[r]]))return!1;return!0}Object.prototype;var yw=Symbol.for(`react-redux-context`),bw=typeof globalThis<`u`?globalThis:{};function xw(){if(!j.createContext)return{};let e=bw[yw]??=new Map,t=e.get(j.createContext);return t||(t=j.createContext(null),e.set(j.createContext,t)),t}var Sw=xw();function Cw(e){let{children:t,context:n,serverState:r,store:i}=e,a=j.useMemo(()=>({store:i,subscription:pw(i),getServerState:r?()=>r:void 0}),[i,r]),o=j.useMemo(()=>i.getState(),[i]);gw(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,o]);let s=n||Sw;return j.createElement(s.Provider,{value:a},t)}var ww=Cw;export{kl as $,ke as $t,bu as A,ts as At,tu as B,Zr as Bt,Pu as C,Fc as Ct,Eu as D,Dc as Dt,Ou as E,kc as Et,uu as F,No as Ft,Gl as G,pr as Gt,Zl as H,br as Ht,lu as I,na as It,zl as J,dr as Jt,Ul as K,gr as Kt,su as L,Hi as Lt,gu as M,is as Mt,mu as N,Oo as Nt,wu as O,Tc as Ot,fu as P,jo as Pt,jl as Q,ze as Qt,au as R,Gr as Rt,Iu as S,Lc as St,Au as T,jc as Tt,Yl as U,vr as Ut,$l as V,$r as Vt,ql as W,hr as Wt,Fl as X,mr as Xt,Ll as Y,fr as Yt,Nl as Z,qn as Zt,Ku as _,qc as _t,Rx as a,_l as at,Bu as b,Vc as bt,Dx as c,dl as ct,hv as d,al as dt,ce as en,Dl as et,jg as f,rl as ft,Ju as g,Yc as gt,Qu as h,Zc as ht,aw as i,u as in,yl as it,vu as j,ns as jt,Su as k,Gs as kt,cx as l,ll as lt,ng as m,$c as mt,vw as n,A as nn,Cl as nt,Nx as o,hl as ot,ig as p,tl as pt,Vl as q,_r as qt,cw as r,f as rn,xl as rt,Mx as s,pl as st,ww as t,ie as tn,Tl as tt,Tv as u,sl as ut,Wu as v,Gc as vt,Mu as w,Nc as wt,Ru as x,zc as xt,Hu as y,Uc as yt,ru as z,Yr as zt};